Skip to content

ci(artifact-handoff): separate minimal cross-job receipts from the full audit packet #1284

Open

Description

@EffortlessSteven

Parent

#1268 — model-off CI-efficiency programme.

Related:

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

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

  1. EffortlessSteven commented on Sep 7, 2026

    @EffortlessSteven
    MemberAuthor

    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.

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