Repository navigation
Description
Parent
#1268 — model-off CI-efficiency programme.
Related:
- runtime(sensor-output): bound detail subprocess streams and the complete packet budget #1269/runtime(packet-budget): enforce expanded file and packet budgets before artifact upload #1282/integration(output-budget): prove bounded hostile-output packets and close the RIPR regression #1283 — bounded logical packet and upload contract.
- ci-efficiency(baseline): retain the current runner, duplicate-work and packet-cost corpus #1270/integration(ci-efficiency): prove one model-off scheduler reduces Rust CI work without weakening Required evidence #1275 — before-state and CI-efficiency measurement.
Verified current cost shape
In PR #1266 run 33240853970, the main gate uploaded one ub-review-gate artifact of 148,138,955 compressed bytes. The following coverage telemetry job downloaded the UB Review packet before uploading coverage, even though it needed only the bounded coverage outputs and source identity.
GitHub artifact download is archive-granular. A consumer that needs a few small files pays transfer, extraction and trust-validation cost for the complete audit packet unless the producer publishes a separate handoff artifact.
Objective
Publish small, schema-validated, revision-bound inter-job handoff artifacts for coverage and any other bounded downstream consumer. Keep the complete audit packet as one separately retained artifact for review, replay and incident analysis.
This is transport separation, not another evidence authority. The handoff contains references/digests and the exact small payloads a downstream job needs; it never replaces the canonical packet artifacts.
Scope
- Inventory every workflow job that downloads the complete UB Review artifact and identify the exact files/fields it consumes.
- Define one versioned handoff manifest containing:
- immutable revision/run/attempt identity;
- producer coordinator/action/tool identity;
- canonical full-packet manifest/digest reference;
- bounded payload inventory, per-file digest and schema;
- intended consumer/job class;
- created/expiry/retention metadata where available;
- no executable content or credentials.
- For coverage telemetry, publish a separate small artifact containing only the exact coverage report(s), source/path mapping required by the uploader, and the handoff manifest.
- Add analogous handoffs only for demonstrated consumers; do not pre-create one artifact per internal directory.
- Make downstream jobs validate revision, run/attempt, manifest, file inventory, digest, schema and size before consumption.
- Treat handoff data as untrusted input: consumers may parse bounded data but must not execute files, load dynamic libraries or source scripts from the artifact.
- Upload the full bounded audit packet once through runtime(packet-budget): enforce expanded file and packet budgets before artifact upload #1282 and retain its independent verification/audit role.
- Record uploaded/downloaded compressed/logical bytes and transfer/extraction time where GitHub exposes or the workflow measures them.
- Choose explicit retention periods for full audit and transient handoff artifacts; do not inherit a long default silently.
- Preserve failure semantics: coverage upload failure remains telemetry/infrastructure state according to policy and cannot rewrite complete local coverage or deterministic code truth.
Acceptance
- The coverage telemetry job no longer downloads or extracts the full audit packet.
- The coverage handoff contains only a bounded allowlisted inventory and exact source/full-packet references.
- Downstream consumption rejects stale revision, wrong run/attempt, missing/extra file, digest mismatch, wrong schema and over-budget payload.
- No artifact-provided executable, script, config, library or command is run by the consumer.
- The full packet remains independently retained and verifiable; handoff omission does not erase its evidence.
- Handoff and full-packet artifacts cannot be confused as the same authority surface.
- Coverage uploader path/source mapping still produces the same accepted coverage result on a positive fixture.
- Missing/corrupt handoff is an explicit telemetry failure or configured evidence gap, not silent success or fabricated code failure.
- Model-off works identically.
- Before/after artifact-transfer bytes and job wall time are retained for integration(ci-efficiency): prove one model-off scheduler reduces Rust CI work without weakening Required evidence #1275.
- Artifact retention periods are explicit and tested in workflow/static contracts.
- No task selection, scheduler, gate, review, release or branch-protection behavior changes.
Proof
- Exact current workflow-consumer inventory.
- Coverage handoff positive hosted run.
- Stale revision, wrong attempt, extra/missing file, digest/schema/size and path-traversal negatives.
- Non-execution sentinel artifact proving consumers never execute downloaded content.
- Full packet versus handoff identity/confusion negative.
- Coverage result parity and upload-failure classification.
- Before/after transfer-size and timing receipt.
- Action/workflow static checks, artifact verifier, policy, actionlint and exact-head hosted inspection.
Order
The manifest/fixture contract may be prepared after #1270. Production workflow adoption should consume #1282's final packet manifest/budget contract. It is useful before #1275 but does not block the core scheduler authority if its implementation would create unrelated workflow contention.
Non-goals
- No selective-download claim unsupported by GitHub artifact semantics.
- No duplication of the complete packet into several overlapping archives.
- No coverage-policy or Codecov threshold change.
- No execution of downloaded artifact content.
- No new generic artifact bus or external storage service.
- No claim that transfer savings alone satisfy integration(ci-efficiency): prove one model-off scheduler reduces Rust CI work without weakening Required evidence #1275.
Completion
Close when every demonstrated small downstream consumer downloads one minimal validated handoff instead of the full audit packet, with retained transfer/timing evidence and unchanged semantic results.
Rollback
Temporarily restore full-packet download only as an explicit compatibility fallback with measured warning. Retain the handoff manifest and validation tests; never consume unvalidated partial files.
Activity
EffortlessSteven commentedon Sep 7, 2026
Partial implementation landed in #1291 as d312193: coverage telemetry now downloads a dedicated LCOV artifact instead of the entire gate packet. Exact-head gate34170316595 and independent baseline34170314877 passed. Artifact10035553306 contains only lcov.info (2,748,873 expanded bytes; archive digest sha256:d36879dd755033dcd3c0267e32a738bf5150b2343730154f1bce39bdabf680a6); root independently inspected it and verified the full gate packet separately.
This satisfies the LCOV-selection portion only. It does not establish minimal receipt handoffs for other cross-job consumers, hostile expanded-packet bounds, measured network/billing savings, or the complete #1284 acceptance. Keep this issue open with #1291 as source evidence and avoid duplicating that completed subset.