Repository navigation
Description
Parent
#771 — stable released coordinator and candidate shadow.
Trust-boundary parent: #658.
Depends on #808 for pilot readiness, the published and externally verified stable release from #817, and #812 for the stable required analyzer bundle. #815 proves release-only installation; #816 supplies the exact candidate and rollback packet that #817 authorizes and publishes.
Problem
The self-gate currently evaluates candidate changes with candidate action/binary code. A PR that changes command selection, gate reasons, artifact verification, workflow behavior, or policy can therefore influence the mechanism that judges the same PR. That is acceptable for alpha dogfood but not for a sole required gate.
Invariant
The required conclusion is produced by immutable released code and trusted base policy. Candidate code runs separately in shadow against the same frozen input and cannot affect the required conclusion.
Scope
- Install the exact M3e: authorize, publish, and verify the exact next release #817 released stable ub-review binary/action by immutable ref and checksum.
- Freeze one input snapshot: head SHA, base, diff, repo policy, required proof identities, thread/context inputs, and relevant environment/box state.
- Run the stable coordinator to produce the required gate packet.
- Build/run the candidate implementation separately against the same frozen snapshot.
- Keep trusted base policy authoritative; compare candidate policy through an explicit compatibility artifact.
- Emit stable-versus-candidate comparison artifacts for verdict, reasons, proof selection, receipts, schemas, posting plan, terminal state, runtime, and failures.
- Detect PRs that change gate/action/workflow/policy/artifact/posting surfaces and require the shadow comparison.
- Preserve model-off operation in the stable coordinator.
- Record the exact previous stable release for M5b: exercise stable-coordinator rollback and receipted break-glass #810 rollback.
Acceptance
- A self-modifying candidate cannot green itself.
- Stable and candidate runs name the same frozen input digest.
- The required check records exact stable binary/action and tool identities.
- Candidate verdict differences are visible and cannot affect the required result.
- Candidate policy cannot silently weaken trusted base policy.
- Accepted schema/behavior differences require explicit compatibility fixtures.
- Stable model-off mode produces a complete deterministic result.
- Provider failure changes review depth only.
- Candidate crash, timeout, or malformed artifact remains shadow evidence and does not erase the stable conclusion.
- The previous stable pin is retained for M5b: exercise stable-coordinator rollback and receipted break-glass #810 rollback.
Proof
- Self-modifying gate fixture.
- Stable/candidate pass/fail/inconclusive disagreement fixtures.
- Base-policy weakening fixture.
- Schema-compatible and schema-incompatible change fixtures.
- Candidate crash/provider outage/model-off fixtures.
- Exact frozen-input digest parity test.
- M3c: prove v0.1.0 release-only installation without host Cargo #815/M3d: prepare and verify the next SHA-bound release candidate #816/M3e: authorize, publish, and verify the exact next release #817 release, authorization, and install receipts for the stable binary.
- Live self-dogfood shadow pilot before M5a: wire the gate watchdog to live GitHub observations and terminal check publication #809 publishes the terminal authority.
Relationship to #809
This issue produces the trusted stable result and shadow comparison. #809 gathers live GitHub state, runs the watchdog classifier, and publishes the terminal required check for every current head.
Non-goals
- No branch-protection mutation.
- No live watchdog publication.
- No break-glass implementation.
- No release publication.
Rollback
Disable candidate shadow and restore the previous released stable coordinator as the required authority. Preserve comparison artifacts.
Activity
coderabbitai commentedon Aug 2, 2026
🔗 Related PRs
#758 - feat(review): narrow current-head claims and adaptive proof planning [merged]
#779 - feat(review): bind thread context to current head [merged]
#793 - fix(verifier): reconcile blocking evidence-gap counts [merged]
#799 - chore(policy): restore strict RIPR ceiling [open]
📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!
EffortlessSteven commentedon Aug 24, 2026
Frozen-input / outcome amendment
When #814 is implemented, use the shared authority contracts rather than a stable-coordinator-specific frozen packet:
RevisionIdentitysupplies exact base/head/reviewed tree + diff identity for both stable and candidate runs.FinalizedOutcomesupplies the stable required result and candidate shadow result.Candidate and stable may differ in selection/implementation, but both must consume the same immutable admitted revision/policy snapshot. Candidate cache/artifacts remain in an untrusted shadow domain; they cannot influence the stable privileged result.
EffortlessSteven commentedon Aug 24, 2026
PR-sized decomposition — #945 E4.1–E4.4
No child publishes the terminal GitHub check; #809 consumes the stable result. No release publication or branch mutation.
EffortlessSteven commentedon Aug 24, 2026
Concrete PR decomposition
Stable alone remains authoritative. Candidate crash, hang, malformed output or self-modifying gate cannot affect the Required result. Close #814 only after identical-input comparison works in live hostile-head-safe self-dogfood.