Repository navigation
Description
Parent
#1269 — bound detail subprocess streams and the complete packet budget.
Depends on:
- ci-efficiency(baseline): retain the current runner, duplicate-work and packet-cost corpus #1270 — retained before-state measurement corpus;
- runtime(output): define a streaming bounded-capture contract and truncation receipt #1279 — bounded-capture primitive;
- runtime(sensor-output): route primary and nested sensor processes through bounded capture #1280 — sensor and nested/detail process adoption;
- runtime(proof-output): route proof and worker process streams through bounded capture #1281 — proof/worker process adoption;
- runtime(packet-budget): enforce expanded file and packet budgets before artifact upload #1282 — whole-packet budget and pre-upload enforcement.
Objective
Prove the complete output-containment contract on production-style packets and retain the before/after evidence needed by #1275.
This issue is the integration acceptance node. It adds no new capture, packet-budget or outcome model beyond its dependencies.
Positive scenarios
- Real RIPR regression — replay the relevant runtime(task-ledger): observe proof and worker execution in shadow #1266 diff/config/tool path or the smallest source-equivalent fixture that invokes the same primary and detail subprocess boundaries. Preserve a separate exact-head hosted run using the real supported RIPR version.
- Structured evidence plus oversized diagnostics — source-owned normalized findings remain complete while raw stdout/stderr is truncated.
- Proof and worker output pressure — oversized test/build output remains bounded while exit-based proof truth and worker receipt semantics remain correct.
- Optional packet degradation — debug/diagnostic artifacts are omitted in priority order and the packet remains complete.
- Required evidence too large/unavailable — the packet remains bounded and FinalizedOutcome becomes
not_provenwith exact reason. - Deterministic failure plus pressure — code/policy FAIL survives optional diagnostic omission.
- Model-off complete packet — no provider/model artifact is required for a bounded deterministic outcome.
Negative scenarios
- nested/detail process bypasses the capture wrapper;
- full-pipe stdout/stderr deadlock;
- unbounded temporary file written before post-hoc truncation;
- forged observed/retained byte count or stream digest;
- stale oversized artifact from an earlier attempt;
- missing capture receipt for a physical process;
- undeclared artifact retention class;
- symlink/path traversal or file mutation during inventory;
- optional artifact incorrectly retained before Required structured evidence;
- Required artifact silently omitted while result stays PASS;
- packet manifest or failure packet exceeds its own limit;
- upload step begins against an over-budget logical tree;
- compression ratio used to admit an over-budget expanded packet;
- stream/packet failure leaves a task receipt-pending or resource unreleased.
Retained evidence
Produce one versioned integration receipt joining:
exact revision and tool/runtime profile
physical process inventory
TaskLedger process/task identities
capture receipts and structured artifact references
per-file authority classes and logical bytes
packet budget decisions and omissions
FinalizedOutcome before/after budget finalization
archive compressed size
workflow/run/job/artifact identity
independent verifier result
#1270 before-state source references
Record peak memory/disk only when measured by a named method. Unknown remains unknown.
Acceptance
- Every physical sensor/detail/proof/worker process has one bounded capture result joined to its TaskLedger lifecycle.
- No retained or temporary stream grows with unbounded source output.
- Every publishable packet satisfies per-file, file-count, manifest and total expanded-byte limits.
- Source-owned structured findings/receipts survive independently of optional raw output.
- Required output loss becomes
not_proven; optional loss remains nonblocking; deterministic failure remains fail. - No task or resource remains nonterminal because stream or packet finalization failed.
- The real RIPR hosted packet remains independently verifiable and no longer contains the ~1.51 GB raw detail stream.
- Before/after logical bytes, compressed bytes, upload time and runner/process time are source-linked without claiming universal savings.
- Every negative control fails at its intended capture, lifecycle, packet, outcome or upload boundary with a stable reason.
- Replaying the retained input produces the same bounded inventory and outcome.
- No task selection, scheduler, tool threshold, model review, gate enforcement or branch-protection behavior changes.
Proof
- Frozen production-style integration corpus containing all positive and one-mutation negative cases.
- Real exact-head RIPR run and downloaded artifact verification.
- Peak-memory/disk measurement for a generated hostile-output process substantially larger than configured limits.
- Offline independent packet/capture/outcome verifier.
- Action pre-upload and archive inspection.
- Full sensor/proof/worker/task/artifact/outcome/verifier/workspace/fmt/Clippy/policy validation.
Non-goals
- No general CI-efficiency conclusion; integration(ci-efficiency): prove one model-off scheduler reduces Rust CI work without weakening Required evidence #1275 owns the two-repository economic pilot.
- No RIPR upgrade, suppression or threshold change.
- No scheduler/cache implementation.
- No existing-CI retirement or branch-protection mutation.
Completion
Close #1269 only when this retained receipt proves that hostile process output cannot escape per-stream or whole-packet bounds, and every resulting evidence/outcome distinction remains truthful.
Rollback
Keep raw diagnostic output disabled while preserving structured evidence, capture/packet receipts and bounded terminal packets. Never restore an unbounded path merely because a tool normally behaves.
Activity