Skip to content

M5 foundation: run a released stable coordinator as required authority and candidate as shadow #814

Open

Description

@EffortlessSteven

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

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

  1. coderabbitai commented on Aug 2, 2026

    @coderabbitai
    Contributor
    🔗 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 plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.

    • Create Plan

    🧪 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:

    issue_enrichment:
      auto_enrich:
        enabled: false

    💬 Have feedback or questions? Drop into our discord!

  2. added
    epic
    on Aug 2, 2026
  3. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Frozen-input / outcome amendment

    When #814 is implemented, use the shared authority contracts rather than a stable-coordinator-specific frozen packet:

    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.

  4. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    PR-sized decomposition — #945 E4.1–E4.4

    1. E4.1 FrozenInputSnapshot — exact runtime: bind every task, claim, receipt, and outcome to immutable revision identity #923 revision, repo: define a trusted RepositoryContract and architecture knowledge packet for review and proof #940 contract, ci: define the repository-owned minimal deterministic spine and required receipt contract #941 spine, orchestrator: compile one shared gate-and-review run plan over the same revision context and caches #942 plan/policy/context/tool identities and digest; stable/candidate parity fixture.
    2. E4.2 dual execution — install released stable coordinator as required authority and run candidate separately in shadow on the same snapshot.
    3. E4.3 comparison/compatibility — verdict/reasons/tasks/receipts/schemas/posting/runtime/policy differences; candidate cannot weaken trusted base.
    4. E4.4 live self-dogfood — candidate crash, malformed artifact, provider outage and self-modifying gate fixtures while stable result remains intact.

    No child publishes the terminal GitHub check; #809 consumes the stable result. No release publication or branch mutation.

  5. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Concrete PR decomposition

    #1073 freeze one trusted input snapshot over revision/contract/spine/RunPlan
    → #1074 run released stable Required authority + candidate shadow on identical input
    → #1075 compare verdict/proof/schema/policy/review/economics exactly
    → #1076 exercise stable/candidate self-dogfood on live UB Review PRs
    

    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.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    epic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions