Skip to content

integration(output-budget): prove bounded hostile-output packets and close the RIPR regression #1283

Open

Description

@EffortlessSteven

Parent

#1269 — bound detail subprocess streams and the complete packet budget.

Depends on:

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

  1. 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.
  2. Structured evidence plus oversized diagnostics — source-owned normalized findings remain complete while raw stdout/stderr is truncated.
  3. Proof and worker output pressure — oversized test/build output remains bounded while exit-based proof truth and worker receipt semantics remain correct.
  4. Optional packet degradation — debug/diagnostic artifacts are omitted in priority order and the packet remains complete.
  5. Required evidence too large/unavailable — the packet remains bounded and FinalizedOutcome becomes not_proven with exact reason.
  6. Deterministic failure plus pressure — code/policy FAIL survives optional diagnostic omission.
  7. 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

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

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