Repository navigation
Description
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
plannedin 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
- No canonical cross-source task merge; scheduler: give executable work one canonical identity and explicit subsumption rules #860 owns execution identity.
- No scheduler/admission changes; scheduler: enforce one live resource authority across baseline, sensors, and proof #861 consumes the proven ledger later.
- No learned duration/ranking.
- No gate enforcement switch.
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
EffortlessSteven commentedon Aug 24, 2026
PR decomposition
Instrument current execution in three bounded shadow PRs:
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.
EffortlessSteven commentedon Aug 24, 2026
Completion amendment — retained corpus and coherent horizon proof
#925's implementation children remain #955/#956/#957, but the evidence chain now includes:
#925 closes after #957 proves every live execution path reconciles. #962 then proves the complete revision/task/delivery/outcome chain before scheduler authority begins.
EffortlessSteven commentedon Aug 27, 2026
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.
EffortlessSteven commentedon Aug 27, 2026
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.
EffortlessSteven commentedon Aug 28, 2026
A2.4 closeout: PR #1263 squash-merged as
55e4fbab879b3a83c31f35cdc9f7e5cd99f0a6c8and 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 baseline33140109246and product gate33140110441passed. The serial implementation front is now #956; #957 remains ordered after #956 and consumes the already-merged #961 corpus.