Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
2d67bbc
feat(task-ledger): observe sensor execution in shadow
EffortlessSteven Aug 28, 2026
7f6e95f
fix(task-ledger): record process start after spawn
EffortlessSteven Aug 28, 2026
45fc50d
fix(task-ledger): allow empty sensor plans
EffortlessSteven Aug 28, 2026
56bf0f2
policy(ripr): receipt sensor ledger probes
EffortlessSteven Aug 28, 2026
efa122c
fix(task-ledger): clear stale empty-plan artifacts
EffortlessSteven Aug 28, 2026
3132020
policy(ripr): receipt stale artifact cleanup
EffortlessSteven Aug 28, 2026
dc097ad
fix(task-ledger): keep sensor evidence current
EffortlessSteven Aug 28, 2026
731d003
fix(task-ledger): observe sensor process completion
EffortlessSteven Aug 28, 2026
36e5da8
fix(task-ledger): preserve valid proposal pairs
EffortlessSteven Aug 28, 2026
ef5bdf2
fix(task-ledger): classify tokmd version drift
EffortlessSteven Aug 28, 2026
47b83aa
fix(task-ledger): terminalize sensor runner errors
EffortlessSteven Aug 28, 2026
962931d
policy(ripr): receipt final sensor ledger probes
EffortlessSteven Aug 28, 2026
6180088
docs(policy): attribute hosted sensor receipts
EffortlessSteven Aug 28, 2026
d5b0b42
fix(task-ledger): confirm sensor child termination
EffortlessSteven Aug 28, 2026
0f5985d
fix(task-ledger): stop after unconfirmed sensor exit
EffortlessSteven Aug 28, 2026
796537b
fix(task-ledger): reject stale setup receipts
EffortlessSteven Aug 28, 2026
c77c426
fix(runtime): prove sensor reap boundaries
EffortlessSteven Aug 28, 2026
3f7a7d7
test(task-ledger): distinguish stale setup receipts
EffortlessSteven Aug 28, 2026
6173dcf
policy(ripr): receipt final sensor lifecycle probes
EffortlessSteven Aug 28, 2026
aa297e5
revert: remove premature RIPR receipts
EffortlessSteven Aug 28, 2026
953eedb
fix(runtime): close sensor subprocess authority gaps
EffortlessSteven Aug 28, 2026
565005f
Merge remote-tracking branch 'origin/codex/955-sensor-task-ledger' in…
EffortlessSteven Aug 28, 2026
a4ebb28
chore: export exact PR source for bounded repair
EffortlessSteven Aug 28, 2026
50f332a
chore(ci): remove temporary source export
EffortlessSteven Aug 28, 2026
b6713a5
policy(ripr): reconcile final sensor lifecycle probes
EffortlessSteven Aug 28, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2,100 changes: 1,869 additions & 231 deletions .ripr/suppressions.toml

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions docs/REVIEW_LEDGER.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ src/work_queue.rs work_queue_task_from_sensor (#325 late-phase pending rule)
src/task_ledger_artifact.rs strict v1 replay, digest, and snapshot contract
<-> verifier require_task_ledger_artifacts (cross-language golden pinned by
self_test_task_ledger_contract)
src/sensor_task_ledger.rs production sensor shadow adapter and artifact writer
<-> src/sensors/mod.rs fast/late execution boundaries and status receipts
(focused sensor lifecycle tests plus dry-run CLI artifact inventory)
schema strings ub-review.<name>.vN in Rust
<-> exact strings the verifier pins
```
Expand Down
33 changes: 27 additions & 6 deletions docs/specs/UB-REVIEW-SPEC-0004-artifact-contract.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,22 +124,42 @@ receipt_routes.ndjson tool_gate_outcomes.ndjson
resource_leases.ndjson
```

Task-ledger A2.3 adds a dormant, optional pair before production task
instrumentation lands in #925:
Task-ledger A2.3 defines the strict pair, and A2.4 emits it for every planned
sensor in production shadow mode:

```text
task_ledger_events.ndjson ub-review.task_ledger_event.v1 lines
review/task_ledger_snapshot.json ub-review.task_ledger_snapshot.v1
```

Neither file is emitted by `run` yet, preserving the current production
tree. If either is present, the verifier requires both and requires strong
packet revision binding. Event records use contiguous caller order, a
`run` emits both after the late sensor phase joins when the resolved plan has
at least one sensor; a legitimately empty sensor plan omits the optional pair.
Empty-plan runs remove a stale pair from a reused output directory as one
rollback-safe pair transition.
Publication stages both files and restores the prior on-disk pair state when
either final publish fails, so a failed run does not leave a mixed pair.
Every resolved sensor has one proposal. Runnable fast and late sensors record queued, admitted, setup,
process, receipt-attempt, and release events around the unchanged runner;
skipped and dry-run sensors terminate without fabricated process timing.
Process completion is observed when the child or aggregate subprocess set
returns, before sensor post-processing and status-receipt publication; cleanup,
receipt validation, and resource release are recorded afterward in that order.
Each attempt removes its prior sensor-status receipt before execution, so its
terminal state can only derive from the current attempt. A tokmd proposal uses
the aggregate ceiling for its version preflight, four required report commands,
and optional changed-path context command because each subprocess receives the
configured timeout independently.
Plan construction normalizes a configured zero-second sensor timeout to a
one-second safe floor for runnable, skipped, and dry-run proposals.
Sensor phase remains scheduling metadata in the linked sensor status receipt,
not a second lifecycle model. Event records use contiguous caller order, a
SHA-256 source-digest chain, strict transition replay, canonical LF-delimited
JSON bytes, and artifact-relative receipt references. The snapshot is only a
derived cache: the verifier recomputes it from the event stream and requires
byte equality. A structurally valid external receipt reference is a pointer,
not proof; #925 owns joining it to a produced receipt.
not proof; #957 owns joining it to every produced projection after #956 adds
the remaining proof and worker sources. The verifier therefore still permits
the pair to be absent in legacy/non-run packets during the shadow rollout.

`review/` (the compiled review surface):

Expand Down Expand Up @@ -679,6 +699,7 @@ named Rust test in src/main.rs. The schema column abbreviates
| tool-gate-outcomes.json + review/ mirror | stable | tool_gate_outcomes.v1; entries tool_gate_outcome.v1 | downstream automation; gate-check cross-check | required (require_tool_gate_outcome_artifacts) |
| work_queue.json | stable | work_queue.v1; tasks work_queue_task.v1 | downstream automation | required (require_work_queue_artifacts) |
| work_events.ndjson | stable | work_event.v1 lines | downstream automation | required (require_work_queue_artifacts) |
| task_ledger_events.ndjson + review/task_ledger_snapshot.json | experimental shadow coverage | task_ledger_event.v1 lines + task_ledger_snapshot.v1 derived replay cache; sensor sources complete, proof/worker sources pending #956 | downstream reconciliation | emitted by `run`; verified when present (require_task_ledger_artifacts) |
| events.ndjson | stable | none (ts/kind/payload; eight required kinds) | downstream automation | required (require_events) |
| running-summary.md | stable | five required headings | humans (GitHub step summary) | required (require_summary) |
| input/changed-files.txt, input/diff.patch, input/diff-context.json | stable | none | downstream automation | required (require_common_tree) |
Expand Down
13 changes: 1 addition & 12 deletions policy/allow.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,6 @@ created = "2026-08-27"
review_after = "2026-09-27"
expires = "2026-11-27"

[[exception]]
id = "task-ledger-artifact-shadow"
kind = "rust-lint-suppression"
path = "src/task_ledger_artifact.rs"
lint = "dead_code"
owner = "ub-review/core"
reason = "A2.3 intentionally lands deterministic task-ledger persistence and verification before A2.4 instruments production task sources; remove this module-level expectation when #925 connects the writer."
created = "2026-08-27"
review_after = "2026-09-27"
expires = "2026-11-27"

[[exception]]
id = "non-rust-github-actions"
kind = "non-rust-file"
Expand Down Expand Up @@ -99,7 +88,7 @@ glob = ".ripr/suppressions.toml"
category = "configuration-and-policy"
language = "toml"
owner = "ub-review/core"
reason = "RIPR's durable suppression manifest; every entry carries owner and reason per the suppression-health contract, and suppressed findings stay visible as suppressed in the gate receipt. Content-addressed IDs follow code rather than source lines; the receipt's review_after/expires carries the dating obligation. Re-verify entries after semantic edits and RIPR upgrades. Reviewed 2026-08-08 (PR #848), which added 25 entries for cfg(test) and integration-test fixture probes plus const/static declarations that RIPR 0.10.0 scores as production seams (ripr-swarm#1055). Reviewed 2026-08-21 (PR #870), which added 7 entries for impact_plan::relative_to_repo probes that RIPR 0.10.0 scores weakly_exposed despite exact-value unit-test discrimination of every branch. Reviewed 2026-08-21 (PR #854), which added 287 entries for the base+tests hunk-classification diff: cfg(test) test-module and declaration/const seams scored as production code (ripr-swarm#1055) plus weakly_exposed/no_static_path probes whose behavior is pinned by exact-value assertions in each file's co-located suite but whose discriminate check cannot match output-level assertion text. Reviewed 2026-08-21 (PR #853), which added 29 entries for suggestion-gate/delivery probes whose co-located tests discriminate with exact oracles that RIPR 0.10.0 cannot statically link (fixture_opaque), plus const/array declarations and two cfg(test) fixture lines. Reviewed 2026-08-22 (PR #915), which added 54 entries for the typed comment-plan envelope diff (#913): no_static_path declaration seams (gap variants, envelope/entry fields, schema const, disposition variant) and weakly_exposed parse/join probes whose colocated comment_plan_* and repair-queue tests assert every branch with exact-value oracles that RIPR 0.10.0 cannot statically attribute. Reviewed 2026-08-27 (PR #1255), which added exact receipts for the trusted-base admission declarations, context-free routing, isolated Git plumbing, and cfg(test) fixture probes after focused unit/action/CLI tests pinned successful artifacts and fail-closed identity, object, path, execution, and context boundaries (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #953), which replaced stale A2.1 task-ledger IDs with exact A2.2 accounting/release IDs after fallible truth-table tests pinned timing, terminal, receipt, consumer, revision, replay, and malformed-event behavior (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #954), which added 182 exact A2.3 artifact/replay and control-character validation IDs after co-located Rust and mirrored Python tests pinned cross-language golden bytes plus corruption, ordering, revision, terminal-release, receipt-reference, consumer, snapshot-integrity, and C0/C1 rejection failures (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #961), which added 79 exact integration-test loader and fixture-copier receipts after six executable Rust tests pinned the exact corpus, three hosted contradiction shapes, and eleven negative mutation classes; RIPR 0.10.0 cannot attribute fallible anyhow::ensure! oracles inside integration tests (ripr-swarm#1054/#1055)."
reason = "RIPR's durable suppression manifest; every entry carries owner and reason per the suppression-health contract, and suppressed findings stay visible as suppressed in the gate receipt. Content-addressed IDs follow code rather than source lines; the receipt's review_after/expires carries the dating obligation. Re-verify entries after semantic edits and RIPR upgrades. Reviewed 2026-08-08 (PR #848), which added 25 entries for cfg(test) and integration-test fixture probes plus const/static declarations that RIPR 0.10.0 scores as production seams (ripr-swarm#1055). Reviewed 2026-08-21 (PR #870), which added 7 entries for impact_plan::relative_to_repo probes that RIPR 0.10.0 scores weakly_exposed despite exact-value unit-test discrimination of every branch. Reviewed 2026-08-21 (PR #854), which added 287 entries for the base+tests hunk-classification diff: cfg(test) test-module and declaration/const seams scored as production code (ripr-swarm#1055) plus weakly_exposed/no_static_path probes whose behavior is pinned by exact-value assertions in each file's co-located suite but whose discriminate check cannot match output-level assertion text. Reviewed 2026-08-21 (PR #853), which added 29 entries for suggestion-gate/delivery probes whose co-located tests discriminate with exact oracles that RIPR 0.10.0 cannot statically link (fixture_opaque), plus const/array declarations and two cfg(test) fixture lines. Reviewed 2026-08-22 (PR #915), which added 54 entries for the typed comment-plan envelope diff (#913): no_static_path declaration seams (gap variants, envelope/entry fields, schema const, disposition variant) and weakly_exposed parse/join probes whose colocated comment_plan_* and repair-queue tests assert every branch with exact-value oracles that RIPR 0.10.0 cannot statically attribute. Reviewed 2026-08-27 (PR #1255), which added exact receipts for the trusted-base admission declarations, context-free routing, isolated Git plumbing, and cfg(test) fixture probes after focused unit/action/CLI tests pinned successful artifacts and fail-closed identity, object, path, execution, and context boundaries (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #953), which replaced stale A2.1 task-ledger IDs with exact A2.2 accounting/release IDs after fallible truth-table tests pinned timing, terminal, receipt, consumer, revision, replay, and malformed-event behavior (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #954), which added 182 exact A2.3 artifact/replay and control-character validation IDs after co-located Rust and mirrored Python tests pinned cross-language golden bytes plus corruption, ordering, revision, terminal-release, receipt-reference, consumer, snapshot-integrity, and C0/C1 rejection failures (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #961), which added 79 exact integration-test loader and fixture-copier receipts after six executable Rust tests pinned the exact corpus, three hosted contradiction shapes, and eleven negative mutation classes; RIPR 0.10.0 cannot attribute fallible anyhow::ensure! oracles inside integration tests (ripr-swarm#1054/#1055). Reviewed 2026-08-27 (issue #955), which carries 273 exact sensor TaskLedger lifecycle receipts after final source review: hosted gate run 33139645715 retained 146 current #955 receipts, removed 40 displaced content-addressed receipts, and added 127 exact subprocess-authority, RIPR detail, aggregate-timeout, and stale-receipt projection IDs. The named focused suites and full Rust, policy, and verifier proof pin lifecycle, timing, terminal, receipt, release, artifact, and reused-output behavior (ripr-swarm#1054/#1055)."
created = "2026-06-07"
review_after = "2026-11-21"
expires = "2026-12-22"
Expand Down
Loading
Loading