Skip to content

fix(evidence): attest tested checkout and PR source head separately - #129

Closed
mark-e-deyoung wants to merge 4 commits into
mainfrom
fix/trust-pack-dual-commit-provenance-20261023
Closed

mark-e-deyoung wants to merge 4 commits into
mainfrom
fix/trust-pack-dual-commit-provenance-20261023

Conversation

@mark-e-deyoung

Copy link
Copy Markdown
Collaborator

Reason

An independent artifact audit under private security issue agent-dispatch-private#515 found that a published trust-pack-ci/summary.md used an abbreviated git rev-parse HEAD commit that differed from the CI run's actual PR source head. GitHub Actions can test a synthetic PR merge checkout; the identity mismatch is expected, but presenting a single unlabeled "Commit" as source attestation is misleading.

Bounded correction

  • The generated trust-pack summary now records two 40-hex full SHAs with disjoint meanings: Tested checkout commit (actual git rev-parse HEAD) and Source head commit (immutable github.event.pull_request.head.sha or github.sha for non-PR events).
  • Both identities are validated before a report is emitted; invalid/missing checkout identity fails closed. Local/direct runs may default source=head of current checkout, explicitly retaining their actual semantics.
  • The reusable smoke-gate workflow passes the event source head to the generator without exposing host/runtime settings.
  • Adds deterministic fake-Git positive/negative tests and wires them into the normal containerized unit-test lane. No new host, network, credential, hardware, or runner identity fields are published.

Qualification and release gates

  • Based on main@d0fe951cc7a0a9e2ce1f3dba52e44db02ad15611.
  • Changes only four trust-pack/test files. Static compare: no changes to Dockerfile, public conformance report, build-record suppression, release publishing, runtime API, or license.
  • CI and new artifact-byte result pending; qualification should pair with independent fix(build): restore WinInspect portable asset pin for REL image #124/security(ci): suppress automatic public BuildKit history artifacts #125 corrected-image candidates without merging. Read both commits before associating report with exact source; a synthetic checkout may differ.
  • Trust pack contains a static repository-relative inventory whose separate security eligibility remains governed by #515. This fix corrects provenance labels, not a portfolio-wide public disclosure clearance.

DRAFT. No merge, archive, historical artifact deletion, release, or security admission authorized by PR creation.

Copy link
Copy Markdown
Collaborator Author

2026-10-23 exact-head qualification handoff (source candidate unchanged)

Draft #129 remains at e5c3328d61a7ed51ff7e436e3e7ead3e79e5cfb9. Its ordinary PR CI run 39953307413 stopped during the already-known main WinInspect v0.4.0 checksum mismatch in the unit-image build, before new unit-test assertions executed. Do not interpret that as a trust-pack provenance assertion failure.

A bounded public cloud consumer RDTE #130 composes the exact #129 files with the independently verified #124/#125/#127 safety/build changes. Two initial integration-composition failures were separately diagnosed:

  1. An incorrectly replaced reusable workflow omitted security(ci): suppress automatic public BuildKit history artifacts #125's DOCKER_BUILD_RECORD_UPLOAD: 'false'; the existing public-artifact policy test failed closed. Its restored workflow now matches the security(ci): suppress automatic public BuildKit history artifacts #125 version plus only the source-SHA env stanza.
  2. An additive tree operation accidentally marked existing executable scripts/ci/test.sh and scripts/ci/generate-trust-pack.sh as 100644, so container execution was denied before assertions. Git trees have now been independently checked at source fix(evidence): attest tested checkout and PR source head separately #129, main, and corrected RDTE: all these shell scripts are again 100755 and their file blobs are unchanged from fix(evidence): attest tested checkout and PR source head separately #129.

Current exact RDTE correction: 8814b4995a73ff582a1500675943f2e559a6e117 and Actions run 39954423487 executing; no test pass or trust-pack artifact quality claimed until completed and inspected.

The two defects are integration-test branch preparation failures, not changes to production #129, which remains draft and unmerged. Preserve previous RDTE commit/run receipts rather than rewriting history. The target proof is a public trust pack whose source head matches the RDTE PR head while the independently tested checkout commit may differ (synthetic merge). Security authority #515 still owns release/publication admission.

Copy link
Copy Markdown
Collaborator Author

Hygiene disposition — fully integrated via current-main squash #148

Original draft head e5c3328d61a7ed51ff7e436e3e7ead3e79e5cfb9 had diverged after opt-in visual profile #137 merged. The source and tests were reconstructed against actual accepted main in PR #148, tested independently on $0 public Actions 41980394123 PASS / 0 artifacts, and squash-merged as 3ad71f422cc7c884344daad86429fa3b826f0232. Independent post-merge GitHub file readback verifies main source generator blob ede0863cbe772105106d8d47793dda6f4e93b280, reuse workflow blob 54700811de4b566470cb8a89e0a72def5925a3fc, unit test list blob 8acafd0547842cc33cf8345931899c2b51ff8abe: exact provenance correction present, visual profile #137 and provenance tests both retained.

Close historical draft #129 UNMERGED; do not reapply its diverged script registry or duplicate changes. Earlier PR source SHA/review history remains preserved. General CI still fails independently at historical WinInspect v0.4.0 download; package/release/security gates unaffected. No branch deletion without worktree custody; no direct private testing or image release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant