Repository navigation
Description
Parents
- program(ci-efficiency): reach a trustworthy model-off Rust gate before full reviewer convergence #1268 — model-off CI-efficiency programme.
- orchestrator: compile one shared gate-and-review run plan over the same revision context and caches #942 — one shared gate-and-review run plan.
- program: daily advisory use by 2026-12-31 and the path to a trusted gate #945 — Horizon B plan contracts.
Dependencies
- integration(authority): prove one coherent packet before any live scheduler migration #962 — one coherent current-run authority packet.
- B0.7 proof(identity): satisfy later equivalent consumers from current-revision terminal receipts #966 — canonical execution identity plus current-revision receipt satisfaction.
- B4a integration(portfolio): prove a model-off Required-first portfolio from local spine and mechanical impact #1271 — retained model-off Required-first portfolio receipt.
- B2.1 ci-spine: define local Required obligations and map current tools proof and policy #970/B3.1 impact: compose RevisionIdentity DiffContext and Cargo ownership with correct causal attribution #973/B3.2 impact: identify exact changed tests targets consumers and bounded reverse dependencies #974/B4.1 proof(portfolio): define Required Detective Advisory consumer semantics and gate truth table #976 as source contracts consumed through B4a integration(portfolio): prove a model-off Required-first portfolio from local spine and mechanical impact #1271.
Complete RepositoryContract enrichment, model programme selection and prompt-prefix planning are not prerequisites for this deterministic core. They later augment the same plan under #983–#985/#1120.
Objective
Compile the model-off form of SharedRunPlan from verified deterministic inputs without executing anything.
This must not create a parallel DeterministicRunPlan authority. The artifact is the deterministic core/version of the same SharedRunPlan contract later consumed by model-on review.
Inputs
RevisionIdentity
+ CiSpine local Required obligations
+ canonical execution identities and consumers
+ mechanical MaterialChangeMap subset
+ model-off evidence portfolio
+ current-revision existing-receipt satisfaction links
→ SharedRunPlan { deterministic tasks, empty model stages, source manifest }
Scope
- Define or factor one versioned SharedRunPlan core carrying:
- exact revision/source digests;
- applicable Required/Detective/Advisory consumers;
- approved canonical task identities;
- dependencies and readiness preconditions;
- already-satisfied current-revision receipt links;
- selected/deferred/non-runnable dispositions from B4a integration(portfolio): prove a model-off Required-first portfolio from local spine and mechanical impact #1271;
- resource classes and conservative static estimates already known;
- explicit missing/unknown inputs;
- empty/disabled model-programme section with a stable augmentation boundary.
- Preserve source-specific request, policy and candidate IDs as provenance rather than execution identity.
- Compile TaskLedger proposals/consumer attachments without producing lifecycle events.
- Reject duplicate exact task proposals by attaching consumers, while preserving explicitly distinct modes/sides/environments.
- Record why each task exists and which obligation/change/consumer requires it.
- Version, serialize, digest and independently recompute the plan deterministically.
- Keep the existing live orchestration authoritative.
Acceptance
- Every applicable local Required obligation appears exactly once as a consumer of one task or explicit non-runnable gap.
- Equivalent gate/sensor/proof work plans one canonical execution with every exact consumer attached.
- Current-revision terminal receipt satisfaction removes physical execution while preserving consumer proof links.
- Stale, malformed, wrong-mode or incompatible receipts never satisfy planned work.
- HEAD-pass and base-plus-tests sides remain distinct.
- Exact changed-seam work and broad fallback reflect the B4a integration(portfolio): prove a model-off Required-first portfolio from local spine and mechanical impact #1271 portfolio without re-ranking inside the plan compiler.
- Model-off is represented by an explicit empty/disabled model section, not a different plan type.
- Missing mandatory source digest, Required obligation or canonical identity fails closed.
- Source/file/consumer arrival order cannot change bytes, digest or semantic task set.
- The plan cannot become a lifecycle or receipt authority: TaskLedger remains authoritative after execution begins.
- Existing scheduler, process, provider, gate, review and delivery behavior is unchanged.
Proof
- Local Required fmt/check/clippy/test/docs/policy/artifact plan golden.
- Identical sensor/gate/review consumer attachment fixture.
- Current-revision existing-receipt satisfaction and stale/wrong-mode negatives.
- Exact changed-test, base-plus-tests, broad-fallback and multi-package scenarios.
- Model-off empty-section compatibility and future-augmentation round-trip fixture.
- Duplicate task, missing Required, forged source digest, unknown task and order-invariance negatives.
- TaskLedger proposal adapter test proving no lifecycle event is emitted by compilation.
- Full focused/workspace/fmt/Clippy/policy/verifier validation.
Non-goals
- No live scheduling, process or provider call.
- No complete RepositoryContract/ArchitectureKnowledgePacket input.
- No model programme catalog/routing, shared prompt prefix or final-lead stage.
- No duration learning, deadline phase transitions, cache reuse or gate enforcement.
- No second plan schema.
Completion
Close when one retained plan artifact answers:
what deterministic work exists?
why does it exist?
which consumers share it?
which work is already satisfied?
what is non-runnable or missing?
#1273 adds readiness and completion reserves to this same plan. #983–#985 later augment it for the complete reviewer without replacing the deterministic core.
Rollback
Keep the compiler in shadow and continue current orchestration. Retain the plan fixtures and source-manifest contract; never fall back to independent source-specific plans as the intended architecture.
Activity