Repository navigation
intelligence-operated-release - #30
instruktai-author[bot] wants to merge 32 commits into
Conversation
Adds the pending feature spec for a shared release workflow: an AI judges the change since a project's last completed release, the version follows deterministically, providers fail over in a configured order, and the project's own build and publication receive the version in the same run. Session: t3:thread:delegated-task:command%3Amcp%3A462de802-9aaa-4584-a48c-32999228eb1d%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A1 Human-Involved: false Todo: intelligence-operated-release
The project's publication owns the completed-release record the workflow reads as its baseline; the default provider order is stated; run serialization and the below-1.0 major step leave the contract until they are decided; the judge reads the interval only. Session: t3:thread:delegated-task:command%3Amcp%3A462de802-9aaa-4584-a48c-32999228eb1d%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A1 Human-Involved: false Todo: intelligence-operated-release
A dry run hands over the decided version, revision and notes with a dry-run signal, as the full dry run requires; no-release and failed-judgment cases state what the workflow hands over and how it concludes, leaving release completion to the project's publication. Session: t3:thread:delegated-task:command%3Amcp%3A462de802-9aaa-4584-a48c-32999228eb1d%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A1 Human-Involved: false Todo: intelligence-operated-release
…ntract Codex's saved subscription login, seeded, refreshed and kept usable by the workflow; a judge with read-only repository tools; the complete version table with 1.0.0 only from a stated version; the triggering commit as the one judged; no AI on a run with no new commits; first-release notes. Session: t3:thread:delegated-task:command%3Amcp%3A462de802-9aaa-4584-a48c-32999228eb1d%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A1 Human-Involved: false Todo: intelligence-operated-release
Session: t3:thread:delegated-task:command%3Amcp%3A760fad67-9f41-4d89-920e-fdaa4e56eab3%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A5 Human-Involved: false Todo: intelligence-operated-release
Session: t3:thread:delegated-task:command%3Amcp%3A760fad67-9f41-4d89-920e-fdaa4e56eab3%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A5 Human-Involved: false Todo: intelligence-operated-release
Port project-scope third-party documentation from TeleClaude for codex-cli (ci-managed-auth, permissions, install-and-update), claude-code-action (subscription-auth), github-actions (secret-and-artifact-lifecycle, hosted-runtime-validation), and age (file-encryption), re-verified against current vendor documentation and local CLI surfaces. Excluded non-selected candidates (codex-cli commands/research-log and git-cliff/git-cliff-action). Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
Author pending structural design for the release bounded context and the judged-release reusable GitHub Actions workflow covering fail-closed default-branch admission, pinned commit capture, read-only repo-tool judging, ordered Claude/Codex failover, public-repo-safe Codex auth stream with cold-fallback keepalive, unbounded release-notes handoff, and PR self-test isolation. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
Document that codex --ignore-user-config skips profile loading and record web_search/mcp_servers/project_doc_max_bytes profile controls (C-1, I-1); correct claude-code-action display_report vs track_progress, deduplicate Ubuntu 24.04 AppArmor/bwrap setup into github-actions/hosted-runtime-validation, add workflow_call conclusion/masking/expired-artifact facts, and strip project/CI prescriptions across ported third-party docs (I-12). Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
Resolve RV-1..RV-4, C-1..C-10, and I-1..I-11 across the release domain spec and judged-release design: - Add provider/keepalive continue-on-error, always() && !cancelled() guards, positive valid sentinels, missing-artifact synthesis, and output coalescing. - Fix Codex --strict-config --profile without --ignore-user-config, add web_search/MCP/project_doc confinement, minimal env allowlist, step secret isolation, private file stdout/stderr capture, and unconditional post-run settled persistence with internal timeout headroom. - Move CodexAuthStream freshness evaluation solely into keepalive-codex (adding judge-slot2-codex to needs: and dropping actions: read from capture), prune codex-keepalive-days from public inputs, and specify expired/empty seed/reseed semantics. - Bind non-empty codex-environment fallback, total version-input precedence, seed-codex gating independent of providers, strict guard allowlists on model/tag/env inputs, contents: read on checkout jobs, and gh api transport. - Separate Edge/Core/Infrastructure layers, move caller prerequisites and AuthEnvelope wire schema to judged-release design, keep release domain spec technology-independent, and strip inline rationale and literal payload copies. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
…icies and constraints Reconciles the pending release domain spec and architectural design after synchronizing origin/main (de877e7): - Replace anthropics/claude-code-action (which rejects push events per project/workflows/policy/reliability-checklist) with direct pinned native claude CLI (--restricted --safe-mode) over the same gitless exported inspection workspace. - Cache pinned outside binaries (claude, codex, age) via SHA-pinned actions/cache keyed on the pin with unconditional SHA-256 verification (sdlc/policy/ci-pipeline-conventions). - Collapse the 15-module Python library into 7 narrow shellcheck-clean Bash scripts owning external CLI and gh api orchestration plus one narrow stdlib-only pure-data Python helper (judge_logic.py) with zero subprocess or service-CLI calls, honoring sdlc/policy/python/core, sdlc/policy/shell/core, and the human constraint against a growing Python library. - Remove the unapproved self-test-judged-release.yml and test/judged-release/ Python unittest suite per sdlc/policy/testing, sdlc/policy/python/testing, and human steering; rely on standing repo checks, reliability-checklist event verification, and delivery-time live verification. - Remove retired docs/third-party/ files so instrukt docs validate passes cleanly under the current three-position snippet schema. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
Dependency update reviewProvenance (deterministic)
Code review (model)No valid verdict. OutcomeBlocked. This pull request stays open for a human:
Known limit: minified or bundled code cannot be reviewed reliably; for ordinary updates the release-age wait is the backstop. |
Author shared prompt templates and strict wire JSON Schemas for judged and summary runs under scripts/judged-release/prompts/ with explicit prompt-injection boundaries and Anthropic/OpenAI compatible schemas (omitting minLength so judge_logic.py enforces non-empty content). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
Add single stdlib-only, zero-subprocess, strictly typed Python module implementing semver, export-tree, validate-report, verify-auth-chain, and assemble-notes with StrEnum closed vocabularies, frozen dataclasses, and literal Command dispatch. Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
Implement fail-closed default-branch admission (guard.sh), cached SHA-256-verified tool provisioning (install-tool.sh), and baseline resolution + sealed gitless evidence capture (capture.sh) with multi-page gh api normalization and ai_task=none short-circuiting. Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…decision scripts Implement confined native Claude runner (run-claude.sh), encrypted CodexAuthStream lifecycle manager (codex-auth.sh), AppArmor/bwrap sandboxed Codex runner with --skip-git-repo-check (run-codex.sh), and attempt aggregation + SemVer/notes handoff orchestrator (decide.sh). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…path ignore Author 9-job reusable workflow with top-level empty permissions, minimal per-job read permissions, SHA-pinned actions, cached checksum-verified binaries, step-level Codex secret isolation, single-line script delegations, and matching actionlint path ignore. Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…DME.md Document judged-release.yml in the repository catalog and add caller plumbing examples for Claude-only and Claude+Codex failover setups, including environment secret-isolation prerequisites, seeding/reseeding, and the GitHub Actions workflow-filename environment scoping caveat. Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
There was a problem hiding this comment.
Build review: changes requested · reviewed commit 6e0b864af1842b356021ed3647b035c0332f376a
REVIEW COMPLETE: intelligence-operated-release
Verdict: REQUEST CHANGES
Requirement-Violations: 0
Critical: 1 (C-1)
Important: 4 (I-1 through I-4)
Exact target and authority
Discovery build review, build-reviewer/1. Frozen HEAD: 6e0b864. Dispatched base and independently checked merge-base with origin/main: de877e7. The full target comprises 18 changed files, including three pending preparation snippets. The builder-only range from 4618b23 is 15 files and 2,494 added lines, within the plan's 2,500-line ceiling. This measurement is not a correctness judgment.
Authority read: input@sha256:c7c29a2d017cdabcad706a56ed94455a1dd1f73a11904bc4e05490d18091f8a2; human-approved prd@sha256:60fc80198648d104c153d2acfc51204cdf609ea9e8280d14f56fcc86b45581c2; architecture@sha256:5d8fc47f360605f54b3236b56dfcd37a44d4e1d26d694e7be012cce2e385da80; implementation-plan@sha256:c1e22d05ea65e53214778c94280993dfb132cdc4d2dc1214e58606054e82ac16; plan-review-findings@sha256:3068cbbe12947680b58bab4c425aac3bcbfc3e5183ed503f2812cd9021c45c06; widening log@sha256:ec9a3b4dbc6feecd4243fafb4feb4cf8da889a8af1e0067baf1bb5f796bb5a4f. Artifact discovery found no quality-checklist, diagnosis or deferrals artifact. The relevant README, generated AGENTS.md, project index, pending release domain/feature/design and current published reliability checklist were read.
The required outcomes were derived from input and PRD before reconciling implementation: trusted default-branch admission, fixed triggering SHA and completed-release baseline, actual-impact judgment, ordered failure-transparent subscription providers, deterministic version decisions, no-change/none termination, first/stated deterministic notes, public-safe workflow-owned Codex login maintenance, dry-run signal and same-run caller handoff. Caller build/publication/concurrency and unrelated skill/config work remain outside the target.
All six planned tasks have corresponding committed implementation, from f916c2f through 6e0b864; no undelivered planned task or unjustified deferral was found. Preparation approvals were treated as earlier assessments, not proof: C-1 and I-1/I-2/I-3/I-4 below are grounded against the actual candidate and current sources. The plan's hidden-file upload lead is satisfied by include-hidden-files: true on evidence upload. The alternative suggestion to use Python for scrubbing was not a requirement; I-3 concerns duplicated knowledge, not the language chosen.
Conversation limitation: native t3_thread_read was attempted with the exact builder session identifier recorded in the commits. It returned thread_not_found. No archive/history service was used. The committed candidate and durable authority above remain the review basis under sdlc/procedure/lifecycle/review step 0. No missing intent was inferred.
Review sizing and execution
The implementation is one bounded release capability with seven shell scripts, one Python transformer, four prompt/schema assets and a declarative DAG. Its security consequences warranted a separate pass over confinement, provenance, redaction and settlement after the scope/data-flow pass. The complete surface fit in this reviewer's context, so every executed lane was answered directly; no investigators or subagents were assigned. No investigator model/effort settings exist to report. next-code-reviewer, find-docs and context7-mcp were applied; current instrukt contracts govern conflicts with generic skill guidance.
Static white-box review only. No provider invocation, saved-login access, runtime fault injection, altered environment, workflow dispatch, live sandbox probe or full test suite was used. Downstream verifier and integrate/CI retain those obligations. Existing plan claims of local smoke success were read but were not promoted to independent live evidence.
Scope verification
All criterion quotations below are from the current approved PRD. Tests and killing mutations are N/A because this project has no test-authorship opt-in; scope was checked against source. C-1 is a required error-handling defect in the delivered mechanism; the report does not assert an observed provider outage or guarantee external account availability.
SC-1
Source: @prd#sc-1.
Calling the shared workflow from a project's own workflow with its provider
credentials is sufficient for the shared workflow to judge, decide a version,
handle provider failover, and hand over its outputs; its caller interface
requires no judging, versioning, or failover logic in the calling workflow.
Reviewed delivery: Workflow inputs, guard/capture/provider/decide jobs and README expose one caller surface; judging, versioning and failover stay here. Credential prerequisites need correction under I-1.
SC-2
Source: @prd#sc-2.
When the default branch has changed since the last completed release, a run
produces a judgment and a version that follows from it and the last release's
version, and the project's build and publication receive that version, the
judged commit and the release notes in the same run.
Reviewed delivery: capture.sh:20-137 fixes the SHA and exports the interval; judge.md supplies impact judgment; judge_logic.py:278-370 steps the version; decide.sh:79-125 and workflow outputs provide same-run handoff.
SC-3
Source: @prd#sc-3.
In a judged (automatic) run, when the change warrants no release, or the
captured commit is the last completed release's commit, the shared workflow
finishes successfully, hands over no version, and says why; in the second case
no provider is asked.
Reviewed delivery: judge_logic.py:344-354 selects no-change; capture.sh:76-79 bypasses export; provider job predicates bypass AI; decide.sh:72-95 returns successful no-change/no-release with an explanation.
SC-4
Source: @prd#sc-4.
When a provider cannot judge for any reason, the next configured provider
judges; each unsuccessful attempt's reason is visible in the run, also when a
later provider succeeds, without disclosing caller-supplied or dynamically
refreshed credentials.
Reviewed delivery: Slot-2 jobs use always(), non-skipped slot-1 and valid != true; both runners write sanitized attempts; decide.sh:37-70 retains earlier reasons and synthesizes missing artifacts. The separate keepalive failure handling is C-1.
SC-5
Source: @prd#sc-5.
In a judged run, when no provider returns a valid, complete judgment, the shared
workflow hands over no version and fails, showing every provider's reason
without disclosing caller-supplied or dynamically refreshed credentials.
Reviewed delivery: decide.sh:82-89 fails judged runs without a validated winner and emits no version; it includes every attempted slot's reason.
SC-6
Source: @prd#sc-6.
Claude judges with only the subscription token the project passes, and a run
stores nothing of that credential back for a later run.
Reviewed delivery: run-claude.sh:24-28,67-115 uses only the supplied subscription credential in its clean child environment, validates its result and deletes its temporary workspace; no credential storage-back job exists.
SC-7
Source: @prd#sc-7.
Every stage of the shared workflow runs on a GitHub-hosted runner.
Reviewed delivery: All nine workflow jobs declare runs-on: ubuntu-latest; there are no self-hosted stages.
SC-8
Source: @prd#sc-8.
For a project that has never released, the first run hands the project's build
and publication the version the project currently declares, with release notes
listing every commit reachable from the captured commit and an AI summary when
one can be produced; every unsuccessful summary attempt and its reason remain
visible in the run (without disclosing credentials), and an absent summary does
not prevent the shared workflow from handing over the declared version and
complete commit-list notes.
Reviewed delivery: judge_logic.py:342-348 selects the initial declared version; capture.sh:89-93 lists all reachable commits; decide.sh:103-105 and assemble-notes preserve deterministic notes when summaries fail.
SC-9
Source: @prd#sc-9.
The shared workflow never decides or hands over a version at or below the last
completed release's, or one the project's record already holds, and the commit
it judges and hands over is the triggering run's commit.
Reviewed delivery: guard.sh:28-34 fixes github.sha; capture.sh:15-19 checks checkout identity; judge_logic.py:329-351 and :357-370 reject used/non-increasing versions.
SC-10
Source: @prd#sc-10.
The AI that judges cannot change the repository or publish, and in a judged run
a report that fails validation never leads to a version being handed over.
Reviewed delivery: Native Claude tools are restricted to Read/Glob/Grep with project customization disabled; Codex has a dedicated read-only/no-network profile and credential-free preflight; validate-report enforces structural validity and completion before valid=true is emitted. Hosted enforcement is downstream verification evidence, not claimed here.
SC-11
Source: @prd#sc-11.
A maintainer can request a stated version, and the shared workflow hands it over
with complete deterministic commit-list notes even when no AI summary can be
produced, while keeping every unsuccessful summary attempt and its reason
visible in the run (without disclosing credentials).
Reviewed delivery: judge_logic.py:331-341 gives stated versions precedence and validates them; capture/decide share ai_task=none handling for zero-commit promotion; summary failures do not block deterministic notes.
SC-12
Source: @prd#sc-12.
A dry run shows the judgment and the version it leads to, and hands the project's
build and publication that version, the captured commit and the release notes
together with a dry-run signal.
Reviewed delivery: guard.sh carries operation; decide.sh:25 and judge_logic.py:713 carry the dry-run boolean while preserving the same decision and notes path.
SC-13
Source: @prd#sc-13.
The release notes handed to the project list every commit in the interval with
its subject, carry the AI summary when there is one, and disclose no
caller-supplied or dynamically refreshed credentials.
Reviewed delivery: capture.sh:84-93 enumerates the complete interval; assemble-notes:719-766 keeps full commit-list notes and a separately bounded GitHub release body; provider reports are checked for exact active secret values before retention.
SC-14
Source: @prd#sc-14.
A maintainer seeds and reseeds Codex's saved login through the shared workflow,
and each run in which Codex runs leaves the refreshed login for the next run;
the shared workflow's caller interface requires no Codex auth-lifecycle logic in
the calling workflow.
Reviewed delivery: seed-codex and codex-auth.sh implement environment-secret seed/reseed, authenticated encryption, provenance selection, begun checkpoint and unconditional settlement. Codex report publication requires settlement confirmation. I-1 corrects the documented prerequisite, not ownership of this lifecycle.
SC-15
Source: @prd#sc-15.
After a stretch of runs in which Claude judged every time, Codex can still take
over when Claude cannot judge.
Reviewed delivery: keepalive-codex gates on Claude success with unused configured Codex; verify-auth-chain computes freshness and requests refresh. C-1 establishes that the keepalive execution result is not assessed; static source therefore does not justify a clean keepalive failure-handling disposition.
SC-16
Source: @prd#sc-16.
Across the full Codex saved-login lifecycle — seed/reseed intake, initial
seeded state, and post-refresh persisted state — the shared workflow protects
stored login state on public repositories too so it cannot be read or reused
from public repository outputs or without the caller-scoped access/credential
boundary, and never discloses caller-supplied or dynamically refreshed
credentials in run logs, visible failure reasons, or release notes.
Reviewed delivery: Secrets are step scoped, private auth/output files are masked before sanitized publication, persisted auth is age encrypted, and chain selection checks repository/default-branch/event/workflow/recipient provenance. The documented broad secret-passing premise is invalid under I-1. No credential leak is asserted.
SC-17
Source: @prd#sc-17.
When a caller configures Claude alone, the shared workflow completes judging,
version decision, and handoff without any Codex seeding or saved Codex login.
Reviewed delivery: All Codex release/keepalive jobs have configuration-dependent guards and are skipped for providers=claude; release work has no Codex seed prerequisite. The README caller-permission concern is a lead below, not an asserted runtime failure.
SC-18
Source: @prd#sc-18.
Both providers judge on subscription auth, with bounded read-only repository
tools.
Reviewed delivery: run-claude.sh and run-codex.sh implement subscription-auth native CLIs, bounded execution, restricted repository access, and shared prompt/schema inputs; no per-use API-key integration is added.
SC-19
Source: @prd#sc-19.
When the shared workflow is invoked — for a release run or a Codex seed/reseed
run — from a non-default branch or an untrusted trigger, it fails closed visibly
with a reason without invoking any AI provider, accessing saved provider
credentials, or handing over a version.
Reviewed delivery: Unconditional secret-free guard admits only schedule/push/workflow_dispatch on the exact default-branch ref; every protected/provider job depends on successful guard. It rejects before saved-credential restoration or model execution.
Complete lane dispositions and findings
scope — applicable; answered by reviewer
Question: does every required outcome have an authorized implementation, and does each material addition serve it? The 19 entries above cover both directions. guard/capture/decision serve admission and versioning; provider scripts/prompts serve actual-impact judgment and failover; encrypted auth/keepalive serve SC-14..SC-16; notes/README serve handoff. No new product goal, persistent test corpus, provider-settings management, Instrukt CLI delta or consumer publication implementation was introduced. The 2,494-line builder delta is within the frozen aggregate budget. No separate Requirement-Violation or orphan-task finding.
code — applicable; answered by reviewer
Question: does the whole implementation preserve call contracts, explicit effects and language rules? Read every changed source file and all run delegations. capture/export/manifest paths align with both provider inputs and decide downloads; the zero-commit stated branch uses direct outputs; native CLI arguments include the reviewed non-Git flag. Shell entrypoints are executable, strict, and argument vectors are quoted. Python is stdlib-only with no subprocess/network integration. C-1 is the missing outcome check; I-2 and I-3 are language/type and duplicated-knowledge defects. The SHA/pin and shell static checks passed. No behavioral runtime proof is claimed.
ownership — applicable; answered by reviewer
Question: whose domain rule is each changed behavior, and do callers cross the published boundary? Admission, baseline, judgment/report validation, provider order, auth stream, SemVer and handoff remain in workflows/release under its new domain spec. Consumer checks, serialization, environment governance, manifest editing, build and publication stay with the consumer through workflow_call and needs outputs. Existing repository self-release is untouched. No wrong-context implementation or consumer-publication policy was added.
paradigm — applicable; answered by reviewer
Question: does the implementation reuse established paths and honestly declare departures? Comparable existing paths were inspected in dep-pr-review.yml, release.yml, actionlint.yml, scripts/check-pins.py and scripts/dep-pr-review/export-tree.py. The new path reuses exact-workflow-commit checkout, Git object export, gh transport and pin checks; direct native Claude is a declared departure from the event-limited action. No prior shared release judge exists in the repository. No existing persisted schema is changed; initial CodexAuthStream state is declared in the design. Blueprint is off in instrukt.yaml, so YAML-to-shell, process, schema, artifact-name and README couplings were followed manually. No pre-existing structural debt on the exercised path earns a separate ratchet finding. I-1 disproves the rationale for the declared broad-secret-passing departure.
principles — applicable; answered by reviewer
Question: are fallbacks, effects and complexity justified by the actual outcome? Provider failover and deterministic first/stated notes are explicitly required by input/PRD, with their UX reason in preparation and code flow; no heuristic replaces release judgment. Checksum failure is closed; no API/OAuth protocol is implemented in Python. Native gh/git/age/provider tools carry external behavior. The remaining effect-free transforms implement the release-owned fixed wire shapes and stable-only version subset. C-1 violates explicit failure propagation; I-3 violates DRY. No independent DIP, ownership or invented infrastructure finding.
intelligence-boundaries — applicable; answered by reviewer
Question: where does each decision about free text execute? Public-contract impact and release-note meaning execute in the Claude/Codex sessions through judge.md/summary.md. Code reads declared classifications, validates exact keys/types/enums/booleans/non-empty strings, computes SemVer and lengths, exports Git data and checks verbatim credential containment. Regexes validate deterministic identifiers/paths/versions or select credential field names; they do not infer meaning from prose. Ordered provider service failover is the requested software behavior, not a lifecycle-role gate. No free-text scorer, prose test or agent-role policing was found.
security — applicable; answered by reviewer
Question: do boundary validation, credential isolation and least privilege hold in the delivered paths? Reviewed every changed text surface for committed secrets/private runtime identities, shell interpolation, provenance and output disclosure. Inputs enter through environment variables and discrete argv; guard runs without secrets; no job requests write permissions; binaries are checksum pinned and unconditionally verified after cache restore; native providers receive reduced environments. Codex protection identity/GITHUB_TOKEN do not enter exec, and auth payloads are encrypted before persisted artifact publication. Pre/post token extraction precedes sanitized report retention. No concrete credential leak or injection path was established. I-1 concerns an unjustified credential-passing prerequisite, without asserting that this candidate leaked a secret. Real hosted enforcement remains unverified downstream.
tests — applicable policy check; authorship/binding demands N/A; answered by reviewer
Question: is test work admitted and are any added/changed assertions meaningful? No test-authorship opt-in exists in project index/policies; the human constraints and sdlc/policy/testing forbid the requested helper-suite growth. There are no added/changed tests, snapshots or test hooks. The nine feature scenarios were authored in preparation, and the builder range changes no scenario. No test demand or coverage reward is made.
TQ-01 N/A: no added/changed behavioral tests. TQ-02 N/A: no functional tests. TQ-03 N/A: no behavioral/smoke test is credited. TQ-04 N/A: no configuration/default assertion. TQ-05 N/A: no dependency/service test. TQ-06 N/A: no authored test assertion. TQ-07 N/A: no string-content assertion. TQ-08 N/A: no source-scanning runtime test. TQ-09 N/A: no time-dependent test. TQ-10 N/A: no language-governed authored test. TQ-11 N/A: this is an initial model, not an alteration to a pre-existing owned persisted field set. TQ-12 N/A: no snapshot delta. TQ-13 N/A under the no-authorship default: no bindings exist or are added/removed/weakened, and the builder does not alter the prepared scenario inventory. No missing live-verification finding is made merely because downstream verification has not yet run.
errors — applicable; answered by reviewer
Question: does every external operation/result and failure path preserve a visible, diagnostic outcome? Audited all ||/catch/default paths, timeout handling, artifact absence and settlement conditions. Claude nonzero/is_error/missing structured output fail into a sanitized attempt; judged Codex checks its stored exit code after settlement; decide synthesizes missing attempts and fails without a judged winner. First/stated summary degradation is expressly authorized and keeps attempt reasons. C-1 is the contrasting keepalive path that writes but never checks the exec status.
types — applicable; answered by reviewer
Question: are the new states and invariants retained in the language's closed types? SemVer, VersionDecision, judgment/summary and auth records are annotated; enum dispatch is literal and named; external data is narrowed at boundaries. I-2 identifies ReleaseHandoff fields that erase existing closed enum ownership back to str. No speculative invalid-runtime-state bug is asserted for that structural finding.
comments — applicable; answered by reviewer
Question: do added comments accurately describe their local code and add useful context? Read the shell/Python comments, static schema descriptions and workflow comments against call sites. Pin provenance comments, intentional provider splitting and the step-level secret-isolation comments match the implementation. No distinct stale/factually false comment finding. Errors in architectural choosing reasoning are I-1, and snippet restatement is I-4.
logging — applicable; answered by reviewer
Question: are ordinary boundary outcomes and failures observable without credential disclosure? The guard, install, provider attempts and final decision use Actions diagnostics, summaries or structured artifacts; Python stdout is a consumed command-result protocol, not an ad-hoc debug stream. Reports and reasons are checked/scrubbed before attempt retention. C-1 is missing failure observability for keepalive; no separate duplicate finding is filed.
docs — applicable; answered by reviewer
Question: do caller inputs, secrets, outputs and pending behavioral contracts match the actual implementation? README and the three pending snippets cover the shared capability; docs validate passes and delivered_by remains pending for this slug. No generated entrypoint or main-branch authoring occurred. I-1 finds incorrect credential setup guidance; I-4 finds copied configuration in the architectural snippet. The caller-permission validation uncertainty is recorded separately as a lead, not counted as a defect.
doc-hygiene — applicable; answered by reviewer
Question: do all three newly introduced pending snippets and new directive surfaces state authorized, useful contracts at their owners? All three new bodies were reviewed, including frontmatter; none is a published skill body, no ADR or general procedure is changed, and there are no co-tenant markers or modified live parents with companions. The project index is unchanged and no new ambient manual is promoted. No general extension declaration/fill is added or changed. Commands are code formatted; no workflow/lifecycle process-layer control is altered. Prompt counters address the untrusted instruction material the judge actually reads. I-4 is the source/configuration-restatement finding; I-1 is grounded against the actual vendor owner rather than accepted from preparation.
simplify — sequencing condition not met
The catalog runs this lane after other lanes pass. C-1 and I-1..I-4 remain unresolved, so no separate simplification pass was executed or credited. Duplication/necessity checks required by code and paradigm were performed above; this disposition does not withhold an executed lane's evidence.
conditional lanes and project focus
Bug-fix lane N/A: kind is feature; no diagnosis. Doc-first fast-track check N/A: full preparation authored the pending contracts before implementation; docs/doc-hygiene examined the actual full target and no missing contract delta was found. ADR-specific checks N/A: no ADR delta. Process-change governance N/A: no general/SDLC lifecycle contract is changed.
Reliability checklist: current published policy includes both issue #18 event-path and issue #21 sender gates (the retained worktree file contains the older first entry). For all new jobs the admitted release/seed events are schedule, push and workflow_dispatch; rejection paths stop at the guard. checkout/cache/upload/download are the four third-party action kinds used, with no event-specific or sender-specific invocation inputs. Native CLI judging removes claude-code-action's push/sender admission path. No new/changed sender identity or sender gate exists. The existing checklist entries carry inspectable issue/run occurrence addresses; this review adds none and claims no hosted per-event live result.
Critical
C-1 — Keepalive treats auth settlement as successful execution
Critical — Policy: sdlc/procedure/lifecycle/work/silent-failure-audit, steps 2–3 (propagation correctness and silent failure); sdlc/policy/code-quality-practices, Error Handling and Recovery; project/workflows/design/architecture/judged-release, Failure modes (failed keepalive refresh remains visible). Confidence: 98/100.
Location: scripts/judged-release/run-codex.sh:146-154,173-180; scripts/judged-release/codex-auth.sh:186-203; .github/workflows/judged-release.yml:395-418.
Violation: The keepalive handler catches Codex/timeout failure, records its code privately, and then suppresses that outcome whenever re-uploading the auth file succeeds.
Method: Direct whole-call-chain source comparison, tracing the existing exec subprocess result through the actual keepalive workflow and settlement code. No constructed input, synthetic runtime failure, state tampering, timing control or live provider execution was used; this finding concerns the explicit error-handling path, not a claimed observed outage.
Evidence: exec-judge and exec-keepalive share the rc capture at run-codex.sh:146-153 and the script continues successfully after printf regardless of rc. Only finalize-attempt reads codex-exit-code.txt (lines 162-164), and keepalive never calls finalize-attempt. The keepalive workflow still runs settle/confirmation whenever begun was confirmed. settle accepts an existing object-shaped auth.json and writes a new envelope timestamp regardless of the stored exec result. keepalive-summary examines only NEEDS_REFRESH and SETTLE_CONFIRMED, not the subprocess result or its captured stderr. Thus the intended producer's nonzero result, including the supported timeout/error outcome, has no visible keepalive failure disposition when settlement succeeds; durable file settlement is substituted for operation success. This directly contradicts the design's failure row without assuming an external service transaction guarantee.
Closure: Keepalive's execution result and sanitized failure reason are assessed and visible independently of successful auth-file settlement; successful persistence alone does not establish a successful authenticated keepalive or refresh-freshness claim. Claude's valid release handoff remains independent.
Important
I-1 — Broad-secret prerequisite rests on a contradicted vendor premise
Important — Policy: sdlc/policy/substrate-anchoring (declared divergence whose stated reason does not hold); sdlc/policy/ci-pipeline-conventions, Shared workflows (hand over only what is needed); general/policy/documentation-discipline, The doc layer tracks reality. Confidence: 100/100.
Location: docs/project/design/architecture/judged-release.md:55-70; README.md:485-488,502,525-527; @architecture#governing-contracts.
Violation: The delivery requires Codex callers to inherit all secrets and excludes cross-organization Codex callers on the false premise that named mappings cannot access environment-only secrets.
Method: Direct comparison of the candidate's choosing rationale and caller instructions with the current official GitHub documentation, independently retrieved through Context7 and the vendor page. No workflow execution or account changes.
Evidence: The architecture artifact expressly says named mapping would force CODEX_AUTH_AGE_IDENTITY into repository-wide scope; the pending design and README carry that conclusion as a mandatory setup rule. GitHub's current 'Using inputs and secrets in a reusable workflow' explicitly permits passing named secrets even when they exist only in the environment, with environment selection on the called job and environment-secret precedence applying to named mapping as well as inheritance. The workflow already declares both Codex secret names and its inner jobs already bind the environment, so no absent local interface feature supports the asserted limitation. Source: https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows#using-inputs-and-secrets-in-a-reusable-workflow (retrieved 2026-12-04). The documented alternative preserves the current protected-environment boundary; this finding does not require moving credentials or changing consumer governance.
Closure: The target's credential contract and caller guidance require only the needed credentials and carry no mandatory broad-inheritance/cross-organization restriction based on that disproved environment-secret premise. Any remaining divergence is supported by current evidence.
I-2 — Handoff erases closed vocabulary back to unrestricted strings
Important — Policy: sdlc/policy/python/core, Rules (fixed related string values use StrEnum and structured models); sdlc/policy/definition-of-done-lanes, Type design review. Confidence: 96/100.
Location: scripts/judged-release/judge_logic.py:181-193,710-714,761.
Violation: ReleaseHandoff stores decision mode, classification and provider as str despite the existing canonical closed types for all three fields.
Method: Static type/model and construction-call inspection; no invalid fixture or runtime probe was constructed.
Evidence: DecisionMode, Classification and Provider are declared at lines 48,58,77, but ReleaseHandoff.decision_mode/classification/provider at 186-188 accept every string. assemble-notes constructs Classification/Provider only as discarded validation calls, then builds the handoff from the original argparse strings. The handoff model therefore cannot retain or enforce the finite-domain contract through its type surface. This is a structural language-policy finding, not an assertion that the checked CLI has already emitted a bad value.
Closure: The handoff's finite-domain fields retain their canonical closed types, including an explicit representation for the permitted absence, through model construction and wire serialization.
I-3 — Exact-secret redaction knowledge is duplicated between providers
Important — Policy: sdlc/policy/code-quality-practices, Duplication and Abstraction; sdlc/principle/design-fundamentals, DRY. Confidence: 94/100.
Location: scripts/judged-release/run-claude.sh:31-38; scripts/judged-release/run-codex.sh:18-25.
Violation: Both provider runners independently implement the same fixed-string credential-redaction algorithm for the same retained-attempt diagnostic contract.
Method: Direct side-by-side source comparison and call-site trace; no scanner grading prose and no constructed secret was used.
Evidence: Both scrub_stdin bodies load secret lines into an awk array and use the same repeated index/substr replacement loop to replace verbatim matches with [REDACTED]; both feed the resulting reason to the same attempt.json shape. The only difference is how the secret-file argument reaches the function. This is shared security knowledge within the same release owner, not similar syntax belonging to unrelated domains, and neither implementation invokes one owner of that knowledge. A redaction-policy correction currently has two independent implementation sites.
Closure: Both provider diagnostic paths consume one authoritative implementation of the exact-secret redaction behavior, preserving their separate secret-file inputs and sanitized attempt contract.
I-4 — Architectural snippet repeats executable configuration
Important — Policy: general/policy/snippet-value-contract, Anti-patterns (Restatement and Value-copying); sdlc/policy/definition-of-done-lanes, Doc-snippet hygiene. Confidence: 100/100.
Location: docs/project/design/architecture/judged-release.md:281-304,375-387 (and its Inputs/Outputs defaults table).
Violation: The new architectural snippet copies current retention periods, an internal refresh threshold, defaults and detailed job expressions whose declarations already live in YAML/Python.
Method: Direct semantic comparison of the entire newly added pending design with the candidate workflow and Python declarations; no automated prose classifier was used.
Evidence: The design repeats evidence/notes/auth retention periods, the internal keepalive threshold and exact needs/if expressions; the corresponding owners are workflow retention-days fields, judge_logic.py:DEFAULT_KEEPALIVE_DAYS and the workflow job declarations. These are configuration/declaration facts recoverable directly from their owners, rather than architecture constraints invisible in code. The policy explicitly includes retention windows, thresholds, defaults and copies of configuration shapes. The meaningful encryption, authority, confidentiality, ownership and handoff invariants can remain without copying those settings.
Closure: The snippet retains durable architecture intent and invariants, references the executable owners for current configuration, and contains no second copy of their configured values or job-expression recipes.
Requirement-Violations
None separately established. C-1's failure-path defect and the four Important policy violations remain blocking under the review arithmetic.
Investigation lead — not a finding
The Claude-only README example at README.md:468 passes only contents: read, while four jobs in the called workflow declare actions: read even though their if predicates should skip for providers=claude. GitHub documents that called workflows cannot elevate caller token permissions (https://docs.github.com/en/actions/reference/workflows-and-actions/reusing-workflow-configurations#supported-keywords-for-jobs-that-call-a-reusable-workflow), and unspecified permissions become none (https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax#permissions). This review did not establish the hosted validator's ordering of permission validation versus skipped called jobs. The potential caller rejection therefore remains a non-blocking lead, not an asserted failure or required remediation.
Independent structural check evidence
- shellcheck scripts/judged-release/*.sh: exit 0.
- python3 -B -I scripts/check-pins.py .github/workflows/judged-release.yml: exit 0; every uses is local or full-SHA pinned with version comment.
- instrukt docs validate: exit 0.
- git diff --check de877e7 6e0b864: exit 0.
- git merge-base HEAD origin/main: dispatched base de877e7.
- git status --short: clean before report persistence.
No test suite, provider execution, hosted DAG, artifact/cache lifecycle or real sandbox probe was run in this review. A passing static gate does not resolve C-1 or prove hosted behavior. Why No Issues is inapplicable because unresolved Important-or-higher findings exist.
Arithmetic verdict
0 Requirement-Violations + 1 Critical + 4 Important unresolved findings => REQUEST CHANGES.
Only review-findings and its bound build_review verdict are owned result writes; no repository source, test, documentation, configuration or preparation artifact was edited.
…and separate settlement from freshness Addresses build-review owning-phase findings I-1, I-4, and the structural freshness-vs-persistence contract surfaced by C-1: - I-1: Replace the disproved mandatory secrets: inherit prerequisite and cross-organization Codex exclusion with explicit named secret passing (GitHub Actions resolves named mappings for environment-only secrets with environment-secret precedence on called jobs binding that environment), preserving the default-branch-restricted codex-environment boundary. - I-4: Remove copied defaults, retention periods, thresholds, allowlist regexes, CLI flag/env-var lists, and verbatim job expressions from project/workflows/design/architecture/judged-release, pointing directly to executable owners while retaining all durable invariants. - C-1 (structural contract): Distinguish unconditional post-run settled persistence (which preserves any rotated auth.json and closes begun->settled regardless of codex exec exit code) from advancing refreshed_at (which advances only on seed/reseed or confirmed zero-exit codex exec, carrying forward predecessor refreshed_at on failed/timed-out runs), with keepalive failure visibility evaluated independently of settlement confirmation. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
The domain spec still sent future readers to trigger and enumeration tables removed from the architectural design. Point those two references to the existing executable declarations while preserving the feature's semantic classification/provider contract. This closes architecture-review finding I-1 under documentation-discipline and preparation-artifact-quality: a changed ownership premise must reach its dependent statements. Repairing the pointers is sufficient; copying the removed values back into prose would recreate the restatement. Runtime behavior, the pending carrier, and all other release contracts stay as they were. Session: t3:instrukt:launch:304ca69fc94d2b00913de86134a34901baebb9e2d4444e8368a4fda4cc691774 Human-Involved: false Todo: intelligence-operated-release
Type ReleaseHandoff.decision_mode, classification, and provider with DecisionMode, Classification | None, and Provider | None, construct from parsed enums in assemble-notes, and serialize through to_wire() while preserving the release-handoff.json wire contract (resolves I-2). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…_logic.py scrub Add Command.SCRUB to judge_logic.py reusing _load_secrets for verbatim fixed-string redaction (longest-first) and replace the duplicated awk scrub_stdin blocks in run-claude.sh and run-codex.sh (resolves I-3). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…face keepalive failures Parameterize write_envelope with explicit refreshed_at in codex-auth.sh so settle carries forward predecessor_refreshed_at on non-zero codex exec exit while still settling rotated auth.json, and update run-codex.sh keepalive-summary to evaluate codex-exit-code.txt and sanitized codex.stderr independently of SETTLE_CONFIRMED (resolves C-1). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
Replace secrets: inherit and the cross-organization exclusion in README.md with explicit least-privilege named secret passing (CLAUDE_CODE_OAUTH_TOKEN, CODEX_AUTH_AGE_IDENTITY, CODEX_AUTH_SEED) and remove the unrelated-secrets inheritance caveat while preserving environment branch-policy and governance prerequisites (resolves remaining builder scope of I-1). Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
There was a problem hiding this comment.
Build review: approved · reviewed commit 0704a9e276dd2f6e972cf1e01cff5222bb03b9b6
REVIEW COMPLETE: intelligence-operated-release
Requirement-Violations: 0
Critical: 0
Important: 0
Verdict: APPROVE
Frozen target, authority, and review history
Independent build-reviewer/2 remediation review at HEAD 0704a9e. The dispatched base and independently observed merge-base with origin/main are de877e7. The full target contains 18 changed files; the remediation since discovery HEAD 6e0b864 changes seven files: README, the release domain/design snippets, codex-auth.sh, run-codex.sh, run-claude.sh, and judge_logic.py. All were inspected directly. The unchanged workflow, guard/capture/install/decide scripts, four prompt/schema assets, actionlint addition, and feature snippet were also read to check composition.
Authority: input@sha256:c7c29a2d017cdabcad706a56ed94455a1dd1f73a11904bc4e05490d18091f8a2; approved prd@sha256:60fc80198648d104c153d2acfc51204cdf609ea9e8280d14f56fcc86b45581c2; architecture@sha256:9a02069cdf2b75ed84460622f17d7b79c9a536c717d8802f775713974a5695ec; implementation-plan@sha256:2751d639edaceb5c7206ead63fb66c275203c4dc02be11dd027579963aa95fa0; plan-review-findings@sha256:bf615410bd7705e293bfe9ca2a73662fd600bfa7b0150b2314737e4bf005f8cf; widening log@sha256:0843bdce72954191e6485a1c4c11fd0d8c46b89bb6b4a8d37651a7ab82ef1cb4.
Artifact discovery found no quality-checklist, diagnosis, or deferrals artifact. The current record confirms the exact candidate and reviewer binding. The prior discovery report is review-findings@sha256:bda155342a283f7f7be3742d3aced36e7fa678fd983fdfb3bda587d66982592e; architect/builder dispositions are retained in review-findings@sha256:5c2f6b635735704138595804e08d5c78c07c363379bfc2d9659daa8d54ed838b. A retained-version diff and the current report were read to reconcile the original findings with those appended dispositions. Source derivation preceded disposition reconciliation; neither producer closure labels nor preparation approvals were accepted as proof.
The authorized outcomes were independently reconstructed from input/PRD: trusted default-branch admission; one fixed triggering SHA and completed-release baseline; actual-impact AI judgment; ordered, failure-transparent subscription providers; deterministic versioning; no-change/none termination; first/stated deterministic notes; public-safe workflow-owned Codex login maintenance; dry-run signaling; and same-run caller handoff. Consumer build/publication/concurrency/governance remain outside this implementation. No growing helper framework, authored test corpus, provider-settings management, Instrukt CLI change, or skill/compression implementation is introduced.
The native originating conversation was readable: thread 414372b7-0e77-4f34-96ee-957233cd450c, relevant messages at positions 939–988, confirms the input's release intent and authorization. The native builder thread recorded in the commits was also readable (thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1): remediation assignment at position 172 and completion at 232, including continuation beyond the initially truncated text, were inspected. No archive/history service was used. Builder smoke observations remain producer evidence, not independent live verification.
Review sizing and execution
One release context, seven shell entrypoints, one deterministic Python transformer, four prompt/schema assets, and one workflow DAG fit in this reviewer's context. All lanes were answered directly, with a second focused static pass over credential handling, auth settlement/freshness, diagnostics, and their workflow callers. No investigators or subagents were assigned; there are no investigator execution settings to report. next-code-reviewer, find-docs, and context7-mcp were applied; current instrukt review and language contracts resolve conflicts with older generic skill guidance.
This is static white-box review. No provider invocation, saved-login access, runtime fault injection, altered runtime environment, hosted workflow dispatch, live sandbox probe, or test-suite run was performed. Independent exact-candidate behavioral verification and integrate/CI remain separate downstream obligations.
Finding reconciliation
C-1 — Resolved
Method: direct whole-call-chain source inspection; no synthetic inputs or runtime fault staging.
codex-auth.sh:154–165 obtains the predecessor freshness from verify-auth-chain's existing output and carries it in transient begin metadata. write_envelope receives an explicit timestamp. seed/reseed supplies current time; settle at :187–208 still encrypts and persists valid post-run auth after a confirmed checkpoint, but :199–203 selects current time only for a zero exec exit and otherwise retains predecessor freshness. No persisted envelope field is added. judge_logic.py:594–677 continues to derive staleness from that timestamp.
run-codex.sh:164–180 now reads execution status independently of SETTLE_CONFIRMED, reports preflight/auth errors, timeout, nonzero exec diagnostics, or unconfirmed settlement through scrubbed warning/summary output. Nonzero execution with successful settlement no longer becomes silent success. The shared exec path writes the exit-code file; all three Codex workflow jobs share the same STATE_DIR across restore, execution, settlement, and finalization/summary. The keepalive job stays independent of decide. This meets the original closure condition and the corrected persistence-versus-freshness contract without adding state, coordination, or an external transactional guarantee.
I-1 — Resolved
Method: direct comparison of README/pending structural contracts with current official GitHub documentation retrieved independently through Context7.
README.md:478–526 uses explicit named secret mappings and retains protected-environment, default-branch, seed/reseed, and workflow-governance prerequisites. The design's Caller prerequisites and the domain's Ownership boundary agree. Mandatory broad inheritance and the unsupported cross-organization Codex exclusion are removed. The existing workflow already declares both Codex secrets and binds the environment on Codex jobs, so no workflow change was needed.
GitHub's current documentation explicitly supports a named mapping even for a secret existing only in the environment selected by the called job, with environment-secret precedence under both named mapping and inheritance: https://docs.github.com/en/actions/how-tos/reuse-automations/reuse-workflows#using-inputs-and-secrets-in-a-reusable-workflow . This directly supports the corrected premise. This review makes no claim that a real hosted environment run was executed.
I-2 — Resolved
Method: static model, constructor, and serialization trace.
judge_logic.py:182–201 retains DecisionMode, Classification | None, and Provider | None in ReleaseHandoff. assemble-notes at :715–718 constructs those canonical types and at :764–768 serializes via to_wire; absent optional values retain the established empty-string wire representation. The types no longer erase the closed vocabularies, and the same-run handoff shape is preserved.
I-3 — Resolved
Method: direct side-by-side source comparison and caller trace.
judge_logic.py:773–791 owns the new SCRUB command through the literal enum-keyed dispatch table. It loads the caller's secret file and performs longest-first verbatim replacement. Both provider record_and_exit functions and keepalive-summary invoke that owner with their separate secret-file inputs; the duplicated awk implementations are gone. The is_file handling permits the existing empty-secret /dev/null call path without treating it as a regular secret file. No semantic classification, new service, or dependency is introduced.
I-4 — Resolved
Method: semantic comparison of the revised architecture snippet with its executable owners and the prior finding.
The Inputs/Outputs declaration tables, configured retention values, keepalive threshold, copied allowlist/CLI recipes, and exact job-expression tables have been pruned. Authoritative interface declarations, invariant sections, and Job topology now point to workflow/scripts/schema owners while retaining confidentiality, provenance, ownership, failure, freshness, and handoff guarantees. The domain's Trusted default-branch trigger and Allowed values references follow guard.sh, the workflow, and judge_logic.py rather than assigning the deleted enumerations to the design. No stale requirement was lost through that pointer correction.
No prior finding was waived. No new remediation-induced finding was established.
Scope verification
Each quotation below is from the unchanged approved PRD at the named header. All named source locations are in the frozen candidate. Scenario-bound tests and killing mutations are N/A under this project's no-test-authorship default; source analysis supplies this static review's evidence.
SC-1 — @prd#sc-1
"Calling the shared workflow from a project's own workflow with its provider credentials is sufficient for the shared workflow to judge, decide a version, handle provider failover, and hand over its outputs; its caller interface requires no judging, versioning, or failover logic in the calling workflow."
Delivery: judged-release.yml:8–46 and its guard/capture/provider/decide jobs encapsulate the release decision; README.md:440–526 supplies corrected caller setup. No release-decision logic is required in the caller.
SC-2 — @prd#sc-2
"When the default branch has changed since the last completed release, a run produces a judgment and a version that follows from it and the last release's version, and the project's build and publication receive that version, the judged commit and the release notes in the same run."
Delivery: capture.sh:15–137 exports the pinned interval; prompts/judge.md directs actual-impact assessment; judge_logic.py:_step_semver and _cmd_semver enforce the step; decide.sh:79–125 and workflow outputs provide same-run handoff.
SC-3 — @prd#sc-3
"In a judged (automatic) run, when the change warrants no release, or the captured commit is the last completed release's commit, the shared workflow finishes successfully, hands over no version, and says why; in the second case no provider is asked."
Delivery: judge_logic.py:351–360 selects no-change; capture.sh:76–79 bypasses export, and workflow predicates bypass providers; decide.sh:72–95 explains successful no-change/no-release with no version.
SC-4 — @prd#sc-4
"When a provider cannot judge for any reason, the next configured provider judges; each unsuccessful attempt's reason is visible in the run, also when a later provider succeeds, without disclosing caller-supplied or dynamically refreshed credentials."
Delivery: workflow slot-2 predicates require an attempted slot-1 without a valid sentinel; provider record_and_exit paths share judge_logic.py:scrub; decide.sh:37–70 retains reasons and synthesizes missing artifacts.
SC-5 — @prd#sc-5
"In a judged run, when no provider returns a valid, complete judgment, the shared workflow hands over no version and fails, showing every provider's reason without disclosing caller-supplied or dynamically refreshed credentials."
Delivery: decide.sh:82–89 emits each sanitized failure, non-releasing outputs, and nonzero exit when no valid winner exists.
SC-6 — @prd#sc-6
"Claude judges with only the subscription token the project passes, and a run stores nothing of that credential back for a later run."
Delivery: run-claude.sh:24–28,60–107 uses the supplied subscription token in a clean child environment and removes temporary state; no Claude credential persistence job exists.
SC-7 — @prd#sc-7
"Every stage of the shared workflow runs on a GitHub-hosted runner."
Delivery: all nine jobs in judged-release.yml declare ubuntu-latest; none uses a self-hosted runner.
SC-8 — @prd#sc-8
"For a project that has never released, the first run hands the project's build and publication the version the project currently declares, with release notes listing every commit reachable from the captured commit and an AI summary when one can be produced; every unsuccessful summary attempt and its reason remain visible in the run (without disclosing credentials), and an absent summary does not prevent the shared workflow from handing over the declared version and complete commit-list notes."
Delivery: judge_logic.py:353–357 selects first-release and the declared version; capture.sh:89–93 lists reachable commits; decide.sh:103–105 and assemble-notes retain deterministic notes independently of summary success.
SC-9 — @prd#sc-9
"The shared workflow never decides or hands over a version at or below the last completed release's, or one the project's record already holds, and the commit it judges and hands over is the triggering run's commit."
Delivery: guard.sh:28–34 fixes github.sha; capture.sh:15–19 verifies checkout identity; judge_logic.py:_cmd_semver rejects used and non-increasing versions.
SC-10 — @prd#sc-10
"The AI that judges cannot change the repository or publish, and in a judged run a report that fails validation never leads to a version being handed over."
Delivery: run-claude.sh:60–85 restricts tools/customizations; run-codex.sh:18–48,65–142 defines read-only/no-network access and credential-free preflight; judge_logic.py:464–508 validates reports before positive validity is emitted. Hosted enforcement is not claimed as live-proven here.
SC-11 — @prd#sc-11
"A maintainer can request a stated version, and the shared workflow hands it over with complete deterministic commit-list notes even when no AI summary can be produced, while keeping every unsuccessful summary attempt and its reason visible in the run (without disclosing credentials)."
Delivery: judge_logic.py:342–352 validates and prioritizes stated versions; decide.sh:106–125 uses optional summaries and deterministic notes, including direct zero-new-commit promotion.
SC-12 — @prd#sc-12
"A dry run shows the judgment and the version it leads to, and hands the project's build and publication that version, the captured commit and the release notes together with a dry-run signal."
Delivery: guard.sh carries operation; decide.sh:25,110–125 and judge_logic.py:718 retain the boolean dry-run signal alongside unchanged version/notes calculation.
SC-13 — @prd#sc-13
"The release notes handed to the project list every commit in the interval with its subject, carry the AI summary when there is one, and disclose no caller-supplied or dynamically refreshed credentials."
Delivery: capture.sh:84–93 enumerates commits; judge_logic.py:721–768 preserves the full list and optional summary separately from the bounded GitHub body. Provider reports are checked against active secrets before retained publication.
SC-14 — @prd#sc-14
"A maintainer seeds and reseeds Codex's saved login through the shared workflow, and each run in which Codex runs leaves the refreshed login for the next run; the shared workflow's caller interface requires no Codex auth-lifecycle logic in the calling workflow."
Delivery: seed-codex plus codex-auth.sh:95–210 implement seed/reseed, encryption, verified restoration, pre-execution checkpoint, and post-run settlement. Workflow report finalization requires confirmed settlement; callers supply credentials rather than lifecycle logic.
SC-15 — @prd#sc-15
"After a stretch of runs in which Claude judged every time, Codex can still take over when Claude cannot judge."
Delivery: keepalive-codex selects Claude-success/unused-Codex runs; judge_logic.py:660–675 evaluates freshness; codex-auth.sh:154–208 separates settlement from successful refresh, and run-codex.sh:164–180 makes failures visible. External availability and idle-expiry limits remain the documented caveats.
SC-16 — @prd#sc-16
"Across the full Codex saved-login lifecycle — seed/reseed intake, initial seeded state, and post-refresh persisted state — the shared workflow protects stored login state on public repositories too so it cannot be read or reused from public repository outputs or without the caller-scoped access/credential boundary, and never discloses caller-supplied or dynamically refreshed credentials in run logs, visible failure reasons, or release notes."
Delivery: workflow step-scoped secrets, codex-auth.sh token masking/encryption, judge_logic.py provenance checks/report secret rejection, and shared diagnostic scrubbing implement the confidentiality boundaries. Named-secret documentation preserves the protected environment; governance remains with the consumer. No hosted credential-exposure test was performed.
SC-17 — @prd#sc-17
"When a caller configures Claude alone, the shared workflow completes judging, version decision, and handoff without any Codex seeding or saved Codex login."
Delivery: guard.sh provider outputs and workflow Codex predicates skip the auth lifecycle for providers=claude; README.md:452–476 documents that path. The earlier hosted permission-validation uncertainty remains a lead, not a proven failure.
SC-18 — @prd#sc-18
"Both providers judge on subscription auth, with bounded read-only repository tools."
Delivery: run-claude.sh and run-codex.sh use subscription-auth native CLIs, bounded execution, restricted repository tools, and shared evidence/prompt/schema inputs. No per-use API-key integration is added.
SC-19 — @prd#sc-19
"When the shared workflow is invoked — for a release run or a Codex seed/reseed run — from a non-default branch or an untrusted trigger, it fails closed visibly with a reason without invoking any AI provider, accessing saved provider credentials, or handing over a version."
Delivery: unconditional secret-free guard and guard.sh:20–44 reject before any downstream credential/provider job. All protected jobs depend on successful admission.
Complete review lanes
scope — applicable, satisfied; answered by reviewer
Question: does every outcome have a delivering change, and does each material addition serve authorized intent? The nineteen entries above and the reverse mapping of admission/capture, provider/auth, decision/notes, and caller docs cover the complete surface. Tasks 1–6 retain their committed delivery; Tasks 7–10 have commits 636f19f, 4b6877f, cb797da, and 0704a9e. No task is missing or unjustifiably deferred. The builder-only footprint is exactly 2,500 added lines across 15 files versus preparation base 4618b23, within the unchanged ceiling; no tests, packages, files, envelope fields, or workflow edits were added in remediation. Removed broad-secret restrictions withdraw the unsupported cross-organization exclusion and unnecessary unrelated-secret exposure, while preserving environment governance.
code — applicable, satisfied; answered by reviewer
Question: do implementations and callers preserve contract fidelity and language rules? Read every script and workflow delegation. The new scrub command is wired in the canonical enum dispatch; both providers use it. Explicit timestamp arguments reach every write_envelope caller. Missing/nonzero exec status cannot advance freshness. Typed handoff conversion preserves optional wire values. Shellcheck passes. Python remains stdlib-only, without subprocess/network integration; no executable logic moved into YAML. The artifact paths and STATE_DIR wiring compose correctly.
ownership — applicable, satisfied; answered by reviewer
Question: does each rule remain with its single context owner? Release owns admission, baseline, judgment/report validation, ordering, auth stream, SemVer, and handoff under the domain spec. Consumer checks, serialization, credential governance, manifests, build, and publication stay across workflow_call. SCRUB shares release-owned redaction knowledge; it does not import unrelated domain policy. No boundary or owner is redrawn.
paradigm — applicable, satisfied; answered by reviewer
Question: does the change use existing paths and preserve declared state placement? Comparable paths in dep-pr-review.yml, release.yml, actionlint.yml, check-pins.py, and Git export helpers supply pinned checkout/transport conventions; no sibling shared release judge exists. Remediation extends the existing helper and existing status/freshness files, removes duplicate redaction, and uses the existing workflow environment bindings. Tool cache remains derived public binaries; encrypted auth artifacts remain the declared authoritative external-session stream. Transient begin metadata gains predecessor freshness without altering a durable field set. Blueprint is off in instrukt.yaml, so cross-language calls, artifact/output names, schemas, and README couplings were followed manually. No newly introduced/worsened structural debt or unjustified ratchet deferral was established.
principles — applicable, satisfied; answered by reviewer
Question: do failure handling, dependencies, and complexity honor the documented principles? The silent-failure audit and principle hunt trace execution failure independently of persistence. Required provider failover and deterministic first/stated notes remain explicitly justified by intent. Single redaction ownership resolves DRY; type retention resolves the closed-vocabulary violation. No new fallback, consumer policy owner, shell-out from Python, hand-built external protocol, or speculative recovery mechanism was added.
intelligence-boundaries — applicable, satisfied; answered by reviewer
Question: where is every decision about free text made? AI sessions judge public impact and summary meaning through judge.md/summary.md. Code checks structural keys/types/enums/completion/non-empty values, exact-secret containment, deterministic SemVer, Git data, and output length. SCRUB replaces exact secret strings; it does not classify meaning. No prose scoring, prompt replay test, or agent-role coordination gate exists.
security — applicable, satisfied; answered by reviewer
Question: are trust boundaries and least privilege preserved? Reviewed every changed text surface for secrets/private runtime identity, injection, and credential exposure. Named mappings remove mandatory inheritance; step-scoped protection identities remain outside Codex exec. New diagnostics use the existing masked token inventory and shared exact-secret scrubber. Ciphertext is authenticated-encrypted before storage; provenance/default-branch/workflow/recipient validation stays intact. Existing checksum pins and read-only job permissions remain unchanged. No concrete introduced leak, injection path, or authorization relaxation was established. Hosted sandbox/environment enforcement remains downstream evidence.
tests — applicable policy check, satisfied; authorship/binding demands N/A; answered by reviewer
Question: is test work authorized, and are any assertions or bindings changed? Project index has no test-authorship opt-in; human steering rejects helper unit suites. No test corpus, snapshot, test hook, or scenario binding is added/changed. Prepared feature scenarios are unchanged by build/remediation. No test is credited as independent proof and no forbidden suite is demanded.
TQ-01 N/A: no added/changed tests.
TQ-02 N/A: no functional test.
TQ-03 N/A: no behavioral/smoke test is credited.
TQ-04 N/A: no configuration/default assertion.
TQ-05 N/A: no service/dependency test.
TQ-06 N/A: no authored assertion.
TQ-07 N/A: no string-content assertion.
TQ-08 N/A: no runtime source-scanning test.
TQ-09 N/A: no timing-dependent test.
TQ-10 N/A: no language-governed authored test.
TQ-11 N/A: durable envelope field set is unchanged; added predecessor freshness is transient per-run metadata, not an old persisted record requiring migration.
TQ-12 N/A: no snapshot delta.
TQ-13 N/A under the no-authorship default: no binding is added/removed/weakened and no prepared use case is changed by the implementation.
errors — applicable, satisfied; answered by reviewer
Question: does an operation's supported failure remain visible independently of other successful work? run-codex exec writes status, settle preserves credentials without declaring failed execution fresh, and keepalive-summary checks status plus settlement. Timeout/nonzero/preflight/auth/unconfirmed cases have explicit diagnostic branches; successful execution and settlement require no warning. Claude/Codex attempts and decide's missing-artifact synthesis preserve failover evidence. First/stated summary degradation stays authorized. No new silent catch or substitute-success path was found.
types — applicable, satisfied; answered by reviewer
Question: do finite-domain invariants survive construction and output? ReleaseHandoff retains canonical enums and explicit None; to_wire alone adapts optional values to the established JSON contract. SCRUB uses Command and the module-level literal dispatch. No permissive alias or scanner substitutes for the type rule.
comments — applicable, satisfied; answered by reviewer
Question: do changed comments describe the current behavior accurately? The persistence/freshness comment matches the zero-exit branch. The Python command documentation and existing step-isolation comments agree with the resulting calls. No stale or misleading changed comment, commented-out code, or temporary probe remains.
logging — applicable, satisfied; answered by reviewer
Question: are significant outcomes and failures diagnosable without credential disclosure? Keepalive failure now reaches Actions warning/step summary independently of settlement; provider failures retain sanitized attempt reasons and final decision summaries. Python stdout is a consumed transform/result protocol, not an ad-hoc logging probe. No new private raw CLI output is published. The keepalive anomaly is recoverable relative to Claude handoff and remains visible.
docs — applicable, satisfied; answered by reviewer
Question: do interface guidance and owning contracts match the resulting implementation? README and the three pending snippets cover the release surface; corrected named-secret guidance matches current GitHub documentation and existing workflow declarations. Persistence/freshness guarantees match code. No new configuration is undocumented. Pending markers remain under the live slug; no fold, generated-entrypoint edit, or main-branch authoring occurred.
doc-hygiene — applicable, satisfied; answered by reviewer
Question: do the pending bodies and directive surfaces carry useful, authorized contracts at their owners? The design's configuration copies were removed; domain pointers follow their executable owners. The feature body's authorized behavioral scenarios remain unchanged. Reviewed frontmatter and reference relationships; docs validation passes. No body is selected for skill publication, no ADR/general procedure/root role/subscription changes, no co-tenant markers or unsynced companions, and no new ambient manual exist. Project extension-point check: no declaration or fill is added/modified by this target; the existing reliability fill is consumed. Reader instructions preserve the release intent and trust boundary. No lifecycle/process control relaxation is introduced.
simplify — applicable, satisfied; answered by reviewer after other lanes passed
Question: does the completed delta leave avoidable duplication, dead paths, or excess abstraction? The two awk copies are removed and their real callers use one small operation in the existing transformer; no new module/framework appears. Timestamp threading uses existing chain output and exec status rather than new workflow coordination. to_wire makes the boundary conversion explicit. The design is shorter and points to declarations. No concrete KISS, dead-code, or naming violation requiring further simplification was established.
Conditional lanes and project focus
Bug-fix lane N/A: kind is feature; no diagnosis.
Doc-first fast-track check: full preparation supplied pending contracts before build; docs/doc-hygiene verified no missing reflection delta.
ADR/process-control checks N/A: no ADR or SDLC lifecycle control changes.
Browser/UI N/A: declarative workflow and scripts, no web UI.
Current published project/workflows/policy/reliability-checklist contains both the issue #18 event-path and issue #21 sender-identity entries, each with inspectable real issue/run evidence. The retained worktree carries the earlier event-path-only version, so published policy was read as the current authority. Event-path trigger applies to the whole new workflow: guard admits schedule, push, workflow_dispatch; downstream actions are checkout/cache/upload/download, with no event-specific inputs. Native CLI use avoids the prior Claude action's event/sender gates. Remediation changes no workflow/action selection. Sender-identity trigger finds no changed PR identity or sender gate. No hosted per-event execution proof is claimed.
Independent structural checks and evidence limits
- shellcheck scripts/judged-release/*.sh: exit 0.
- python3 -B -I scripts/check-pins.py .github/workflows/judged-release.yml: exit 0; all uses are local or full-SHA pinned with version comments.
- instrukt docs validate: exit 0.
- git diff --check de877e7 0704a9e: exit 0.
- git merge-base HEAD origin/main: de877e7.
- git diff --stat 4618b23..HEAD restricted to builder files: 15 files, 2,500 insertions.
- git status --short: clean; git rev-parse HEAD matches the frozen target.
The current role's docs help does not expose docs render --check; it was not invoked. No unavailable command was replaced with a broader write. Builder-reported isolated smoke results were inspected in the native completion but are not independent review evidence. Live hosted DAG, artifact/cache lifecycle, environment resolution, AppArmor/sandbox, and authenticated subscription execution remain unproven by this static pass; no missing-downstream-verification finding is made.
Why No Issues
- Paradigm fit: the remediation extends the existing release helper/status files, uses native service/crypto tools and existing environment bindings, preserves declared state placement, and removes the unsupported broad-secret departure without constructing parallel infrastructure.
- Contract satisfaction: every approved PRD criterion has a source trace above; C-1 and I-1 through I-4 now meet their original closure states, with no weakening of assertions or authorized outcomes. Completed tasks remain committed; no unjustified deferral remains.
- Duplication: both provider redaction paths and keepalive consume judge_logic.py:scrub; the copied awk algorithms are removed. The design points to executable defaults/thresholds/expressions rather than maintaining second declarations.
- Security: secret-free admission, read-only permissions/confinement, step-scoped credentials, encrypted auth storage, provenance checks, exact-secret report/diagnostic handling, pinned binaries/actions, and least-privilege caller guidance were inspected together. No introduced violation was established within the static boundary.
Investigation leads
The discovery report's Claude-only caller permission-validation ordering question remains a non-finding. Its runtime premise is still not established by this static review; remediation leaves that unrelated path unchanged. It creates no required work or producer response. No new lead is promoted to a finding.
Arithmetic verdict
0 unresolved Requirement-Violations + 0 Critical + 0 Important = APPROVE.
Only review-findings and its bound build_review verdict are reviewer-owned result writes. No source, tests, configuration, generated files, or preparation artifacts were edited.
…ry summary direction Remove Codex provider, multi-provider failover, and saved-login lifecycle from the judged-release feature spec following the revised human direction. Require a non-blank user-facing summary on every handed-over release: automatic judged runs and automatic first releases fail cleanly when Claude cannot produce a valid judgment or summary, and explicit-version runs enforce version and summary as a mandatory pair that fails immediately at admission when unpaired and skips Claude when both are supplied. Preserve unbounded full release notes alongside a bounded release-body form, fail-closed trusted default-branch admission, exact commit capture, deterministic SemVer stepping, dry runs, and same-run handoff. Session: t3:thread:delegated-task:command%3Amcp%3A760fad67-9f41-4d89-920e-fdaa4e56eab3%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aintaker%253A5 Human-Involved: false Todo: intelligence-operated-release
…ith mandatory version/summary pair Aligns project/workflows/spec/domain/release and project/workflows/design/architecture/judged-release with human-approved PRD v7 (prd@99495233) and feature spec at e619761: - Strip Codex, CodexAuthStream, multi-provider failover, age/codex binary pinning, AppArmor/bwrap sandbox, seed/keepalive jobs, codex-environment, and actions: read permissions; converge on the 4-job Claude-only DAG (guard -> capture -> judge -> decide) under permissions: { contents: read } and explicit CLAUDE_CODE_OAUTH_TOKEN. - Specify fail-fast admission in guard for whitespace-trimmed version and summary pairing (failing immediately naming the missing input when unpaired before checkout or credential access), Claude bypass on paired explicit version + summary with safe env-to-file summary transport and secret non-disclosure checks, and mandatory valid/complete Claude summaries on automatic judged and first-release runs (no commit-list-only degradation). - Preserve reliability-checklist event-path and sender compatibility, snippet-value-contract declaration-owner hygiene, cached SHA-256-verified native claude CLI, narrow 5-script Bash + 1 pure-data Python footprint, unbounded/bounded release notes, and zero unapproved unit suites. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
…guard.sh trigger owner citation Remediates architecture-review-findings I-1 and I-2: - I-1 (sdlc/policy/state-storage): Separate cross-run actions/cache storage for the pinned native claude binary from in-flight transient state in project/workflows/design/architecture/judged-release, classifying it as a Derived store with owner, network re-download + sha256sum rebuild/loss cost, immutable pin-keyed write isolation, per-consuming-repository scope, and cache-eviction bound/retirement. - I-2 (general/policy/snippet-value-contract): Point Trusted default-branch trigger in project/workflows/spec/domain/release directly to the allowlist owned by scripts/judged-release/guard.sh. Session: t3:thread:delegated-task:command%3Amcp%3A1cee0d67-2c77-4015-8405-aa4d21f9b7ef%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Aarchitect%253A1 Human-Involved: false Todo: intelligence-operated-release
…pt to first release Delete obsolete scripts/judged-release/codex-auth.sh and run-codex.sh and align prompts/summary.md to automatic first-release summarization under the Claude-only PRD v7 architecture. Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…flow Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
…README Session: t3:thread:delegated-task:command%3Amcp%3Aabdcf9b9-b187-48a9-bd46-3a3061833902%3Adelegate-task%3Ainstrukt%253Atodo%253Aworkflows%252F48ab582f587c8c1eb79453203fd0571f%253Abuilder%253A1 Human-Involved: false Todo: intelligence-operated-release
There was a problem hiding this comment.
Build review: approved · reviewed commit 55343cfb417ece704ec8908cd055e7c63be369f3
REVIEW COMPLETE: intelligence-operated-release
Requirement-Violations:
- None.
Critical:
- None.
Important:
- None.
Verdict: APPROVE
Frozen target and authority
Reviewed commit 55343cf against base de877e7, independently confirmed as merge-base with origin/main. Binding of build-reviewer/3 was confirmed in the native assignment and todo ledger before result writes. The worktree is clean and its local and remote heads match the target.
Scope authority: input@sha256:f03ef94a9af5bb211c5b0d052f9d543f177b0e0962a4874783629d0f9f7d06b5 and human-approved prd@sha256:99495233403a407f0c07c151e58493557add2a22cc5ff30eef7d925b6334be59. Supporting contracts: architecture@sha256:7939ce26a5a1f9a53672e59da67cf76af06f1ede5e736b6db35a73892fc25612, implementation-plan@sha256:63c67f0a3351d60372b95e2a18f97b657c15fd2a5e8e1a68804892a06d1d4006, plan-review-findings@sha256:6d906736a0cfd8aeb7a15192a6ac7b2c50548efe820de18993f65644f78f34ca, and log@sha256:7bd7ddc2669e8ae750eff265c985661966cee1116152dbd5415c4fd63ee1d038. Artifact discovery found no quality-checklist or diagnosis. Deferrals and the historical verification report were also read.
Independent outcome derivation preceded reconciliation of earlier review conclusions: one reusable, hosted, read-only Claude subscription release decision; exact triggering SHA and completed-release baseline; deterministic version precedence and stepping; successful no-change/none termination; mandatory summaries on all release paths; immediate version/summary pair rejection; complete notes and same-run dry-run-aware handoff. Consumer checks, serialization, build and publication remain with the consumer. Codex, saved-login state, failover, environments, paid API keys, helper test suites and unrelated skill work are excluded.
The native originating conversation was read directly: instrukt:launch:304ca69fc94d2b00913de86134a34901baebb9e2d4444e8368a4fda4cc691774, positions 1490–1575, including the human's clarification that summary-less manual releases were the concern, rejection of paid API keys, mandatory-pair direction at 1515, and approval at 1575. These support the current input and approved PRD. Native builder assignment/completion at positions 234/301 of the commit-trailer session were read, including the continuation of its completion text. No archive/history service was used.
Target census, prior evidence and completeness
Read all 16 changed files: workflow and actionlint configuration; README; release domain, feature and architecture snippets; five Bash scripts; the Python transformer; and four prompt/schema assets. Also read the complete revised build delta dff415f..55343cf (11 files, 339 additions and 1,242 deletions), sibling dep-pr-review workflow/tree exporter, the existing actionlint/pin-check gate, project index/configuration, and current published reliability policy.
The pending domain spec identifies release as the sole modeled context and indexes its feature/design contracts. No separate context-map snippet exists; that entry-point gap is explicitly recorded in the domain spec and architecture. Blueprint is disabled in instrukt.yaml; manual tracing covered YAML-to-shell calls, Python subcommands, prompt/schema selection, file/output keys and all artifact upload/download boundaries. No undiscovered graph was assumed.
All five current plan tasks have matching commits: 086ff42 (Codex removal/prompt), 198e01a (transformer), 167ebe9 (admission/install/capture), 2596740 (Claude/decision), and 55343cf (workflow/README). Net non-doc additions against the assigned merge-base are 1,597 lines across 13 files, within the 1,650-line ceiling. No persistent test corpus, Python package dependency, authoritative cross-run auth state or unrelated consumer change was added. The single derived binary cache matches the reviewed design. No planned delivery task remains unjustifiably deferred.
Historical review-findings@sha256:07f63b4b0c04ea3fa81774e89e15f64bb319bcce998bad37566b0e8d78c9c06d approved 0704a9e under the superseded multi-provider PRD; its approval is not carried to this target. C-1 concerned deleted Codex settlement/keepalive; I-1's broad-secret setup is removed; I-2's closed handoff types remain; I-3's redaction now has one shell owner after the second provider is removed; I-4's declaration pointers remain in the structural docs. Current code was independently checked rather than accepted from those closure labels. The historical verifier's byte-for-byte Claude pin verification is reusable supply-chain evidence because that binary pin is unchanged; its old hosted BLOCKED disposition supplies no execution approval for this commit. OBS-V2/OBS-V3 changes are present in the revised approved plan; old Codex observations no longer have a subject. No observation was promoted to a new requirement.
Scope verification
Each quotation below is the operative clause of the named approved PRD criterion; the full criterion was read. Source locations refer to the frozen candidate. Scenario-bound tests and killing mutations are N/A because no project test-authorship opt-in exists.
- SC-1 (@prd#sc-1): "its caller interface requires no judging, versioning, or per-repository environment ceremony". judged-release.yml:7–40 and 44–192 expose one call and encapsulate capture, Claude execution, decision and artifact handoff; README:440–498 documents explicit named-token passing and consumer-owned checks/publication.
- SC-2 (@prd#sc-2): "a version that follows deterministically from it and the last release's version". capture.sh:25–105 fixes the interval; prompts/judge.md directs actual-impact inspection; judge_logic.py:213–305 implements the specified pre-/post-1.0 stepping and version checks; decide.sh:117–138 and workflow outputs deliver the result in the same run.
- SC-3 (@prd#sc-3): "finishes successfully, hands over no version, and says why". judge_logic.py:289–292 selects no-change before AI; workflow:110 skips judge; decide.sh:88–94 and 122–128 explain no-change/none and emit empty version/tag successfully.
- SC-4 (@prd#sc-4): "hands over no version and fails cleanly, showing the failure reason". run-claude.sh:43–76 and 110–145 record invalid/missing/failed/incomplete outcomes; workflow:112,136–143,164–167 preserves decision-stage execution; decide.sh:57–85,96–106,118–120 surfaces sanitized reasons and exits nonzero without a release.
- SC-5 (@prd#sc-5): "subscription auth using only the long-lived subscription token ... bounded read-only tools only". workflow permissions are contents:read; install-tool.sh verifies the pinned binary; run-claude.sh:78–115 uses restricted/safe mode, only Read/Glob/Grep, empty MCP configuration, bounded turns/time and a clean child environment carrying OAuth but no API/GitHub/Actions token. validate-report at judge_logic.py:393–437 gates the validity sentinel. No credential cache/write-back exists.
- SC-6 (@prd#sc-6): "Every stage ... on a GitHub-hosted runner". The four jobs declare ubuntu-latest at workflow:47,75,111,144.
- SC-7 (@prd#sc-7): "requires a valid non-blank Claude summary ... every commit reachable". judge_logic.py:281–288 validates initial-version and selects summary; capture.sh:93–105 exports reachable commit subjects; summary prompt/schema and report validator require completion/nonblank notes; decide.sh:139–148 fails closed if unavailable, otherwise hands off the declared version and notes.
- SC-8 (@prd#sc-8): "never ... not a valid stable semantic version, ... at or below ... or ... already holds" and "triggering run's commit". guard.sh:31–39 pins github.sha; capture.sh:25–29 verifies it; judge_logic.py:181–192,224–305 parses the explicitly stable-X.Y.Z subset, resolves completed releases and recorded tags, and checks declared/stated/stepped versions; workflow:25–26 preserves the captured SHA.
- SC-9 (@prd#sc-9): "supplies both a valid explicit version ... and a non-blank ... summary ... skips Claude altogether". guard.sh:46–60 enforces the pair; judge_logic.py:271–280 validates stated precedence with ai_task=none; capture.sh:85–109 retains manifest/commits while skipping model evidence; workflow:103–110,161–163 transfers those records; decide.sh:150–158,166–198 safely assembles and hands off the supplied summary.
- SC-10 (@prd#sc-10): "fails immediately at admission ... clear error stating ... mandatory". Secret-free guard receives both inputs via env at workflow:60–69; guard.sh:46–60 rejects either unpaired direction with the missing input named, before capture, Claude or provider-secret steps.
- SC-11 (@prd#sc-11): "non-blank ... summary together with every commit ... unbounded ... plus a bounded release-body". capture.sh:93–97 creates the full subject list; decide.sh:179–185 passes both files; judge_logic.py:479–532 checks mandatory summary and active-secret non-containment, preserves every commit in release-notes.md, and bounds github-release-body.md with an overflow pointer. Notes remain artifact files, not GITHUB_OUTPUT prose.
- SC-12 (@prd#sc-12): "evaluates ... exactly as a live release would ... together with a dry-run signal". guard admits the operation; decide.sh:27–30,48–50 and judge_logic.py:476,527 retain the same calculation/notes path with dry_run; workflow:27–28 and README publication condition expose/honor that signal.
- SC-13 (@prd#sc-13): "non-default branch or an untrusted trigger ... fails closed visibly". guard.sh:26–39 checks the closed event set and default-branch ref; downstream capture requires successful guard and no provider secret is supplied to guard. The initial checkout is trusted workflow helper code at job.workflow_sha, not caller source; caller checkout starts in capture only.
Reverse trace: admission/pair checks serve SC-8/10/13; baseline/export serves SC-2/3/7/8/9/11; cached native tooling and Claude report path serve SC-1/4/5/7; version/notes/outputs serve SC-2/3/7–12; the actionlint accommodation and documentation serve the existing lint/interface contracts. No material element lacks intent or governing-principle authority.
Review sizing and execution
One cohesive release context and its bounded script/data interfaces fit whole in this session. Every lane below was answered directly by this reviewer, with additional separate attention passes for credentials/failure propagation and artifact/data-flow composition. No investigators or child agents were dispatched; investigator model/effort settings are N/A. Applied next-code-reviewer and current documentation lookup; current instrukt/language contracts govern reviewer separation and the static boundary.
Lane evidence
scope — applicable, satisfied; reviewer
Question: are all authorized outcomes delivered without invention or unjustified deferral? The thirteen entries, reverse trace, five task commits and measured size above answer this. Removal of provider failover, saved-login maintenance and commit-list-only degradation follows the explicitly revised human outcome; those withdrawn behaviors are accounted for rather than silently omitted.
code — applicable, satisfied; reviewer
Question: do all changed functions/callers preserve contracts and follow shell/Python rules? Read every script and transformer branch, including stream order, symlink/gitlink materialization, stable-version parsing, EOF checks, mode precedence, schema field typing and notes length calculation. Shell vectors remain quoted/array-based and strict; Python is typed and subprocess/network-free; the literal Command dispatch declares its edges. Every workflow run block is a single script delegation. The actionlint exception targets current vendor job.workflow_* fields unsupported by the linter model, not an ignored product defect.
ownership — applicable, satisfied; reviewer
Question: does each decision have its single domain owner and correct layer? Release owns admission, baseline, model report validity, versions and handoff. Its shell adapters own external commands; the Python module owns deterministic transforms. Callers retain build/publication/recording and run serialization. No sibling release state or consumer manifest is written, and no SDLC role/turn choreography enters the product contract.
paradigm — applicable, satisfied; reviewer
Question: does this fit the existing path, established external capabilities and state ownership? Sibling dep-pr-review supplies read-only model jobs, workflow-SHA helper checkout and raw Git-object export. The architecture explicitly departs from its action wrapper because that action rejects admitted push/bot paths. Native Claude, gh api, git, jq and Actions cache/artifacts provide external capabilities. The stable SemVer subset is explicit and refuses prerelease/build/other syntax. Exporter similarities concern separate domain consumers; this design moves Git/process effects into shell rather than copying the sibling's Python subprocess integration. The single declared derived cache is pin-keyed and verified on every use; no durable schema migration is introduced. No worsened on-path structural debt requiring another deepening was established.
principles — applicable, satisfied; reviewer
Question: are fallback, fail-fast, cohesion, state and external-infrastructure principles preserved? Failed model execution never authorizes release. Missing attempt artifacts become explicit failed outcomes, not successful substitutes. Missing cache causes re-download from its named source, followed by verification. Summary-less paths and auth-stream machinery are removed. Runtime state is run-scoped and cleaned with traps; cross-run state is solely the declared derived binary cache. No hand-built service/protocol or new framework is introduced.
intelligence-boundaries — applicable, satisfied; reviewer
Question: where does every free-text decision execute? Actual-impact classification, assessment completeness declaration and user-facing summarization execute in Claude under the two prompts. Code checks documented JSON shape/types/enums, booleans, whitespace presence, exact-secret containment and deterministic version ordering. It neither derives a semantic category from prose nor scores prose quality, and no prose test/replay is introduced.
security — applicable, satisfied; reviewer
Question: are source/input/auth boundaries and privacy preserved? Helpers are pinned to workflow identity, caller checkout to captured SHA, persist-credentials is false, every job holds only contents:read, and the judge has no publication token. Native tool checksum validation precedes cache installation/execution; the minimal child environment excludes API/GitHub/Actions credentials. Read-only restricted/safe-mode tools and the prompt trust boundary compose with gitless exports and plain-file symlink markers. Caller summary travels through env then a private file, never evaluated/interpolated as shell. Active secrets are masked, diagnostic-redacted and rejected from retained report/notes. All changed repository text was read for secrets/environment-derived private topology; none was introduced.
tests — applicable policy assessment, satisfied; reviewer
Question: does this honor the project's test-authoring contract and every triggered TQ predicate? No project opt-in exists; the human explicitly excluded helper unit suites. No persistent tests or snapshots changed. Independent specs coverage --check passed: 8 bindable, 0 bound, 0 anonymous, 0 duplicates, 0 orphans. Unbound scenarios are not a missing-test finding under this ruling.
TQ-01 N/A: no added/changed test. TQ-02 N/A: no functional test. TQ-03 N/A: no test credited. TQ-04 N/A: no config/default assertion. TQ-05 N/A: no dependency test. TQ-06 N/A: no assertion. TQ-07 N/A: no string assertion. TQ-08 N/A: no runtime source-scanning test. TQ-09 N/A: no timing test. TQ-10 N/A: no authored unit/functional test. TQ-11 N/A: no existing durable owned record changes shape; attempt/handoff files are transient new-candidate outputs, not migrated cross-run state. TQ-12 N/A: no snapshot delta. TQ-13: scenario inventory inspected against the preparation base, unchanged by the five build commits, and coverage has no duplicate/orphan/stale binding. Builder completion's differently named TQ checklist was not accepted as registry proof.
errors — applicable, satisfied; reviewer
Question: can a failure be swallowed or become a release? Followed guard refusals, external command failures, binary integrity rejection, invalid bundle/token/CLI/report paths and decision-stage missing artifacts. Shell strict mode and explicit failure branches stop handoff; Claude job failure is consolidated into a failing decide outcome. No failed automatic first release falls through to commit-list-only notes. User diagnostics and attempt records distinguish failure categories without retaining raw CLI streams.
types — applicable, satisfied; reviewer
Question: do introduced models express their invariants at boundaries? Operation, DecisionMode, Classification, ChangeType, AiTask and commands use closed StrEnums. Parsing constructs structured frozen report/decision records; explicit bool checks reject numeric stand-ins. ReleaseHandoff retains DecisionMode and Classification|None and converts absence only at to_wire. SemVer ordering is structural after strict parse. JSON schemas and independent validator agree on exact report keys and required completion/summary fields.
comments — applicable, satisfied; reviewer
Question: are changed comments accurate and useful? Headers, capture early-exit/stated-mode comments, binary verification notes, child-environment explanation and pre-1.0 step comment match their branches. No stale Codex/failover description, commented-out implementation or debugging probe remains in the surviving release surface.
logging — applicable, satisfied; reviewer
Question: are ordinary decisions and failures observable without sensitive output? GITHUB_STEP_SUMMARY carries mode, full captured SHA, sanitized attempt category/reason and final/no-release result; failure branches emit Actions error annotations. Raw stdout/stderr stay private and are trap-cleaned. Python stdout is a consumed machine result protocol, not an ad-hoc debug log. No new daemon/logger subsystem is warranted by these short-lived transforms.
docs — applicable, satisfied; reviewer
Question: do interface/configuration docs match implementation? README exposes the token, pair requirement, allowed trusted triggers, dry-run, notes bundle, same-run outputs and consumer serialization/publication duties. The feature/domain/design contracts agree with the new behavior and owning paths. No generated entrypoint, committed-main edit or fold occurred. No consumer adoption is claimed.
doc-hygiene — applicable, satisfied; reviewer
Question: are the full pending bodies and changed directives authorized, useful, current and correctly referenced? Read all three pending snippets, frontmatter and their cited owners. They state the release outcome/ownership/security/failure invariants and point to executable declarations for exact interfaces, flags, retention and ceilings. Human-readable semantics and architectural constraints remain in their owning contracts. No stale Codex lifecycle contract, unrelated process control or cross-context acceptance promise survives. The prompts reach a judging/summarizing role with an explicit data-versus-instruction boundary. No skill-published body, ADR, general procedure, subscription, ambient selection, co-tenant block or unsynced companion is changed. Project extension-point check: no declaration/fill is authored by this target; the existing reliability-checklist fill is consumed.
simplify — applicable, satisfied after preceding lanes; reviewer
Question: does any concrete avoidable complexity or duplicate knowledge remain in the changed surface? The delta removes two scripts and collapses the provider jobs and attempt path and removes auth bookkeeping/provider configuration. One diagnostic redaction site remains, no single-consumer framework or dead provider dispatch remains, and all four transformer commands have actual shell callers. Further decomposition would add interfaces without a demonstrated contract benefit.
Conditional lanes and project focus
Doc-first: full preparation supplied the pending contracts before this build; docs/doc-hygiene checked no reflection delta was missed. Bug-fix N/A: feature, no diagnosis. Browser/UI N/A: no browser surface. ADR/process-control N/A: no contestable new architecture fork or SDLC lifecycle control delta is introduced by this implementation.
Reliability-checklist: current published policy includes inspectable real issue/run evidence for #18 and #21. The workflow adds event paths, so the event-path check applies: guard visibly refuses events outside schedule/push/workflow_dispatch; admitted jobs use pinned checkout/cache/upload/download actions, with no event-specific action input/gate. Native Claude avoids the earlier action-wrapper event/sender gates. No changed PR identity or event-sender gate exists, so the sender-trigger's additional live matrix is N/A for this diff; user/bot actors are not filtered by this implementation. Hosted execution remains downstream proof, not a claim of this static pass.
Independent checks and external grounding
All independently run structural checks passed: shellcheck scripts/judged-release/*.sh; python3 -B -I scripts/check-pins.py .github/workflows/judged-release.yml; instrukt docs validate; instrukt specs coverage --check; git diff --check at assigned base/head. The checkout remained clean at the frozen SHA.
Actionlint is not installed locally; the existing actionlint.yml CI gate remains its execution surface. Current role help exposes no docs render command, so no unsupported command was substituted. No test suite, provider execution, hosted dispatch, secret access, local runtime shim or live probe was run by this reviewer. Builder smoke observations are reported provenance, not independent review proof.
Current external docs were fetched via Context7 and official web sources. Claude docs confirm restricted file-tool confinement, safe-mode preserving auth, and setup-token/OAuth support:
- https://code.claude.com/docs/en/cli-reference
- https://code.claude.com/docs/en/authentication
- https://code.claude.com/docs/en/env-vars
GitHub documents the workflow identity checkout and output context: - https://docs.github.com/en/actions/reference/workflows-and-actions/contexts
Pinned action declarations were inspected at their exact source refs for checkout inputs/history, cache pin keys/post behavior, hidden-file upload and same-run download: - https://raw.githubusercontent.com/actions/checkout/3d3c42e5aac5ba805825da76410c181273ba90b1/action.yml
- https://raw.githubusercontent.com/actions/cache/55cc8345863c7cc4c66a329aec7e433d2d1c52a9/action.yml
- https://raw.githubusercontent.com/actions/upload-artifact/cf430e030ddbb5b0abf93d22962f4752f3646cd9/action.yml
- https://raw.githubusercontent.com/actions/download-artifact/9000827ccba6bdab643e8b6fd33ac0654aef8333/action.yml
Context7 has no exact 2.1.332 documentation snapshot and served current Claude docs. Direct web access to the release manifest failed; unchanged-pin independent verification evidence was reused as identified above. No fresh download/execution proof is claimed.
Why No Issues
- Paradigm fit: checked sibling read-only model/export paths and the declared direct-CLI divergence; the current four-job composition uses maintained external tools, shell effect boundaries and one deterministic transformer with the declared binary cache.
- Contract satisfaction: every current PRD criterion has a source trace, all five plan tasks have commits, the authorized removals are explicit, and the measured implementation fits its size/state/dependency budget.
- Duplication: traced all Python subcommands and artifact consumers, compared sibling exporter contracts, and checked that removed multi-provider paths leave one redaction owner and no duplicate release-decision path.
- Security: inspected pinned code/binary loading, fail-closed admission, read-only credentials/tools, summary transport, report/diagnostic/notes secret handling and every changed repository text surface together.
Investigation leads and verdict arithmetic
No new investigation lead is promoted to work. Prior hosted-execution gaps remain with exact-candidate verifier/integration; static approval does not establish a live pass or admission to publication.
0 unresolved Requirement-Violations + 0 Critical + 0 Important = APPROVE.
Only review-findings and its bound build_review verdict are reviewer-owned result writes. No source, configuration, tests, preparation artifact or pending snippet was changed.
Implements #17.