Skip to content

runtime: reconcile every sensor, proof, and worker execution into the shadow task ledger #925

Open

Description

@EffortlessSteven

Parent

#924 — append-only task ledger and pure reducer.

Related execution parents: #767, #861.

Verified gap

Current artifacts describe different task universes. Retained production packets have shown impact proof receipts for tasks absent from the final work queue/portfolio, successful sensors left in planned, required proof unproven despite equivalent successful work, and fill/calibration views that omit or reinterpret executions.

Before the task ledger may control admission, it must prove that it can observe and reconcile the current system completely.

Outcome

Instrument every current executable path into #924's ledger in shadow mode and make packet verification reject unexplained execution/accounting divergence.

Initial sources:

  • fast sensors;
  • late sensors;
  • configured required proof;
  • deterministic impact/focused proof;
  • model-requested proof;
  • follow-up proof;
  • local/distributed worker execution.

No scheduling or deduplication changes in this slice.

Scope

  • Emit task lifecycle events at the existing production execution boundaries.
  • Persist approved command/spec metadata sufficient to reconcile executions without making the ledger an argv-authorization layer.
  • Attach source IDs, consumer IDs, existing receipt IDs, resource leases, and timing where available.
  • Require every spawned process to map to one known ledger task/start event.
  • Require every terminal execution to have one terminal task disposition and canonical/current receipt or explicit receipt-generation failure.
  • Require every proof/sensor/worker receipt to map back to a ledger task.
  • Derive or compare work_queue, proof portfolio, resource leases, scheduler summary, fill ledger, gate required-evidence counts, and cost/calibration task counts against the ledger.
  • Preserve existing artifacts during the shadow period; mismatches are explicit verifier failures/diagnostics, not silently reconciled guesses.

Acceptance

  • Every current executable path produces a ledger lifecycle.
  • An executed task absent from the final queue/portfolio is detected.
  • A successful sensor left as planned in another artifact is detected.
  • A receipt referring to no ledger task is rejected.
  • A ledger task recorded running/terminal without matching execution/receipt evidence is rejected.
  • Double ownership / conflicting terminal state is rejected.
  • A configured required consumer can be traced to the exact task that did or did not satisfy it.
  • Model-off packets reconcile through the same ledger.
  • Existing public review and gate behavior remain unchanged while shadow reconciliation is being proven.

Regression packets

Use retained exact hosted packets shaped like PRs #915, #916, and #921 as permanent reconciliation fixtures. In particular, preserve the #921 contradictions where impact tasks executed but were missing from queue/portfolio views and required proof remained unproven.

Proof

  • Frozen packet replay importer/fixture for the retained contradictions.
  • Spawn-without-ledger, receipt-without-task, terminal-without-receipt, duplicate-terminal and stale-revision negatives.
  • Source adapter tests for sensors/proof/workers.
  • Deterministic projection comparison tests.
  • Full verifier/CLI/workspace/fmt/Clippy/policy/exact-head gate.

Non-goals

Dependency/order

Depends on #923 and #924. Complete before #861 becomes production admission authority.

Rollback

Disable shadow reconciliation while retaining the pure #924 model and failing packet fixtures. Do not activate scheduler authority until reconciliation is complete.

Activity

  1. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    PR decomposition

    Instrument current execution in three bounded shadow PRs:

    #955  fast/late sensor lifecycle adapters
    → #956 configured/impact/model/follow-up proof + local/distributed worker adapters
    → #957 derive/compare queue/portfolio/lease/gate projections and freeze #915/#916/#921 contradictions
    

    No child may merge equivalent work, change execution order, or become a live scheduler. The exit criterion is complete observation and reconciliation: every spawned process/receipt is known and every current artifact-plane disagreement becomes a testable verifier result.

  2. EffortlessSteven commented on Aug 24, 2026

    @EffortlessSteven
    MemberAuthor

    Completion amendment — retained corpus and coherent horizon proof

    #925's implementation children remain #955/#956/#957, but the evidence chain now includes:

    #954 ledger artifact/version contract
    → #961 minimal retained #915/#916/#921 incident corpus
    → #955/#956 production shadow adapters
    → #957 generic reconciliation
    → #962 complete Horizon A packet proof after #960
    

    #925 closes after #957 proves every live execution path reconciles. #962 then proves the complete revision/task/delivery/outcome chain before scheduler authority begins.

  3. EffortlessSteven commented on Aug 27, 2026

    @EffortlessSteven
    MemberAuthor

    Dependency closeout: PR #1262 merged as f02f4a8 and closed #961. It preserves the exact hosted contradiction artifacts from PRs #915/#916/#921 as a sanitized, digest-bound replay corpus with six focused Rust tests. Exact-head CI passed; hosted ripr reported 0 unsuppressed and 79 suppressed test-loader probes. This removes the corpus prerequisite for #957; the projection-reconciliation lane is now dependency-ready.

  4. EffortlessSteven commented on Aug 27, 2026

    @EffortlessSteven
    MemberAuthor

    Dependency correction: #961 completed the frozen corpus input, but the established implementation order remains #955 -> #956 -> #957. Starting #955 next; #957 is not yet implementation-ready while #955/#956 remain open.

  5. EffortlessSteven commented on Aug 28, 2026

    @EffortlessSteven
    MemberAuthor

    A2.4 closeout: PR #1263 squash-merged as 55e4fbab879b3a83c31f35cdc9f7e5cd99f0a6c8 and closed #955. Production fast/late sensors now emit the shared shadow TaskLedger lifecycle, including current-attempt receipt authority, confirmed child cleanup, RIPR detail observation, aggregate timeout accounting, and replay-verified event/snapshot publication. Local source proof passed 1,134 tests with 1 expected ignore; exact-head independent baseline 33140109246 and product gate 33140110441 passed. The serial implementation front is now #956; #957 remains ordered after #956 and consumes the already-merged #961 corpus.

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