Skip to content

B6a.1 orchestrator(plan): compile the deterministic model-off core of SharedRunPlan #1272

Open

Description

@EffortlessSteven

Parents

Dependencies

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

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions