Skip to content

intelligence-operated-release #17

Backlog

Description

@instruktai

Kind: feature · Status: active
Prerequisites: hosted-workflow-verification-bootstrap

Intent

Intelligence-operated releases as a shared workflow

Outcome

A project consumes one reusable workflow from this repository and releases
itself: Claude judges what changed on the default branch since the project's
last release, determines the SemVer bump and writes a user-facing prose
summary, and hands the version, captured commit, and complete release notes to
the project's own build and publication in the same run. When Claude is
unavailable (or for an explicit milestone such as 1.0.0), a maintainer or
local AI dispatches the release with an explicit version and summary pair
(both mandatory together, failing immediately if either is omitted), skipping
Claude and publishing a complete release with proper release notes. No release
ever publishes without a summary. instrukt is the first consumer; its first
run releases its current version.

Original human intent, thread t3:414372b7-0e77-4f34-96ee-957233cd450c, 2026-11-25

  • "The pipeline for […] releasing. […] Shut the […] up about […] manual
    steps".
  • "The releases are intelligence operated. Intelligence determines whether
    something is breaking or not. Whether something is, I don't know, patch
    only or minor or major only. I think I had extensive talks about the
    releasing and we already had it working in teleclawed."
  • "This time to make a betterment to what existed before."
  • "it was a little bit fragile because we had our own runner on our own
    MacBook and we had many problems with the networking with little snitch and
    all of the […] pop-ups and blocking of the […] firewall".
  • "go" on: file the shared release workflow here with TeleClaude's release
    design as prior art; instrukt's release.yml then calls it.

Revised human direction, thread t3:instrukt:launch:304ca69fc94d2b00913de86134a34901baebb9e2d4444e8368a4fda4cc691774, 2026-12-04

After inspecting PR #30's Codex subscription auth machinery (CodexAuthStream),
the human rejected the operational cost and local refresh-token fragility of
Codex subscription persistence in CI, rejected paid API keys (subscription-only
constraint stands), rejected publishing releases with missing summaries, and
explicitly approved the following simplified direction:

  1. Claude-only subscription auth in CI (zero API keys, zero Codex):
    • Remove Codex and all Codex auth/sandbox machinery completely
      (codex-auth.sh, run-codex.sh, age, codex binary pinning,
      seed-codex, keepalive-codex, codex-environment,
      CODEX_AUTH_AGE_IDENTITY, CODEX_AUTH_SEED, seed/reseed
      operations, multi-provider failover, and auth-chain verification).
    • Run Claude on the long-lived subscription token (CLAUDE_CODE_OAUTH_TOKEN
      from claude setup-token), storing nothing back between runs, with zero
      paid API keys and zero per-repo environment ceremony.
  2. Never publish a release without a summary; mandatory version + summary
    pair failing immediately:
    • Automatic judged runs (neither version nor summary passed): Claude
      judges the diff, decides the classification/version, and writes the prose
      summary. If Claude fails (e.g., exhausted quota, error, or invalid report),
      the workflow fails cleanly without handing over a version.
    • First release (no prior completed release, declared via
      initial-version, with neither version nor summary passed): Claude
      writes the prose summary; if Claude fails to produce a valid summary, the
      workflow fails cleanly rather than publishing a summary-less release.
    • Manual explicit-version runs (version and summary mandatory
      together):
      Passing version without a non-blank summary fails
      immediately at admission (guard) with a clear error stating that
      summary is mandatory when version is specified; passing summary
      without version fails immediately at admission (guard) stating that
      version is mandatory when summary is specified. When both version and
      summary are supplied, the workflow skips Claude altogether, validates
      the version against baseline/tags, combines the supplied summary with the
      complete deterministic commit list, and hands the release over in the same
      run. (This lets any local AI — Codex, Gemini, etc. — assess the diff,
      write the summary, and trigger one release command whenever Claude's CI
      quota is out or for an explicit milestone like 1.0.0.)
  3. Unchanged core commitments:
    • Every stage runs on GitHub-hosted runners (ubuntu-latest).
    • Fail-closed trusted default-branch admission (schedule, push on
      default branch, workflow_dispatch).
    • Exact triggering-commit capture, deterministic SemVer stepping (<1.0.0
      maps major/minor to next minor; 1.0.0 requires explicit version),
      unbounded release-notes.md + bounded github-release-body.md, dry-run
      support, and same-run handoff to the caller's build and publication jobs.
    • Narrow release helpers: no growing Python framework, no helper unit-test
      suite without project opt-in, and no provider-internals configuration
      management.
  4. Trim prerequisite #31 (hosted-workflow-verification-bootstrap):
    • Shrink #31 to verify only the Claude-only workflow_call DAG, native
      Linux claude execution, and CLAUDE_CODE_OAUTH_TOKEN (no Codex
      credentials, protected Codex environment, age, codex binary, or
      Ubuntu AppArmor/bwrap sandbox).

Prior art

  • InstruktAI/TeleClaude: .github/workflows/release.yaml and
    docs/local/spec/feature/release/publication.md (capture once, judge the
    actual change against the last completed release, classification none,
    patch, minor or major, deterministic version calculation, no publication
    without a valid report, automatic publication enabled only after a full dry
    run).
  • This repository's dep-pr-review.yml: a read-only Claude model job on
    CLAUDE_CODE_OAUTH_TOKEN, failing closed, with its prompt-injection boundary.

Consumer

InstruktAI/instrukt: .github/workflows/release.yml builds and publishes
three targets on a pushed v* tag, and no tag has ever been pushed, so it has
never released. project/instrukt/spec/feature/distribution/release-installer
specifies publication by tag push. Adopting this workflow there is that
project's own follow-up work.

Activity

  1. instruktai commented on Nov 25, 2026

    @instruktai
    ContributorAuthor

    [instrukt record · intelligence-operated-release · rev 2 on rev 0]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions