Skip to content

C2.3 runtime(deadline): implement signal decision optional-stop finalization and hard-wall states #994

Open

Description

@EffortlessSteven

Parent

#768 — safe wind-down and deadline authority.

Roadmap: #945 C2.3. Deterministic acceleration parent: #1268.

Dependencies

#984 later augments the same plan with model proof/reconsideration/final-lead/delivery reserves. It is not a prerequisite for the model-off deadline state machine. Model-stage consumers may enter these states only after #1120 and their C4/C5 prerequisites.

Objective

Replace one cutoff with explicit live product-level deadline phases shared by deterministic model-off execution and later model-on augmentation.

States

signal_target
normal_decision_window
optional_admission_stopped
deterministic_finalization_reserve
hard_kill

The augmented plan may expose model-specific sub-reserves inside the normal/finalization windows. Required deterministic tasks and terminal cleanup/outcome capacity remain authoritative.

Scope

Acceptance

  • State transitions are deterministic under the injected monotonic clock.
  • Required tasks start according to B6a.2 orchestrator(plan): make Required work immediately ready and protect deterministic completion reserves #1273 and optional work cannot consume their planned capacity.
  • Short exact valuable work may start after long broad work becomes unsafe.
  • No new executable task starts in deterministic finalization reserve.
  • Required work that cannot fit becomes an exact not_proven input.
  • Optional/deferred work remains nonblocking and artifact-only unless it carries an applicable Required consumer.
  • Hard kill is distinct from soft admission stop and produces a terminal timeout/cancel receipt plus resource release.
  • Queue/resource wait and actual elapsed time remain distinct from deadline phase.
  • Model-off requires no placeholder model stage/reserve.
  • Later B6b.2 orchestrator(plan): add protected model proof, final-lead and delivery reserves #984 model reserves map into the same state machine without changing deterministic phase semantics.
  • Replay from the same plan, estimates and event clock is identical.
  • No public wording, gate enforcement or branch-protection behavior changes.

Proof

  • Complete phase-boundary truth table.
  • Short-exact-after-long-broad case.
  • Required-unfit and optional-deferred cases.
  • Finalization-reserve no-new-work and receipt/verification/outcome/packet/cleanup completion.
  • Soft-stop versus deliberate hard hang/kill.
  • Queue/resource wait versus execution/deadline timing.
  • Model-off replay and later model-reserve augmentation compatibility.
  • Clock rollback/jump, stale estimate/plan, invalid reserve and forged phase-transition negatives.
  • Full scheduler/time/task/outcome/verifier/workspace/fmt/Clippy/policy validation.

Non-goals

Completion

Close when live model-off execution has one replayable deadline authority that admits short valuable work safely, protects deterministic finalization, exposes Required inability as not_proven, and hard-kills only at the explicit wall.

Rollback

Use conservative earlier optional-stop and finalization boundaries while retaining typed states and reasons. Never return to one ambiguous global cutoff.

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