Skip to content

fix(release): bind release evidence toolchain - #152

Closed
seonghobae wants to merge 15 commits into
mainfrom
fix/release-evidence-exact-toolchain
Closed

seonghobae wants to merge 15 commits into
mainfrom
fix/release-evidence-exact-toolchain

Conversation

@seonghobae

@seonghobae seonghobae commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Closes #151 and advances the stronger isolation boundary in #155.

Purpose

Test-first hardening of the signed release-evidence execution plane. Dependency installation and repository quality verification run without OIDC/attestation/publication authority. Exact release materialization is performed in a separate read-only job and handed to the credentialed attestation job only through a bounded identity- and digest-bound artifact.

RCA -> materially distinct remedies -> selected architecture

Protected release-evidence.yml originally installed lockfile dependencies inside the same job that owned id-token: write, attestations: write, and artifact-metadata authority. A clean tracked worktree after npm ci can detect some source changes, but cannot revoke lifecycle code's already-exposed job/network/credential authority or account for ignored/non-worktree side effects.

Distinct remedies considered were tracked/untracked worktree checks only, npm ci --ignore-scripts, one privileged job with the reviewed lifecycle allowlist, and job-plane separation. The selected architecture is:

  1. unprivileged exact toolchain/install/quality verification;
  2. unprivileged sterile source/SBOM/evidence materialization;
  3. bounded artifact handoff;
  4. credentialed attestation only after artifact identity verification;
  5. immutable publication as a separate authority plane.

The handoff binds repository, semantic tag/ref, full commit SHA, package version, workflow path/ref, run ID/attempt, positive payload bytes, GitHub artifact ID/digest/size/head SHA, and exact retained file hashes. Symlinks, missing/extra files, digest drift, wrong run/head identity, malformed metadata, or source mismatch fail closed. The attestation job performs no dependency installation or repository code execution before authenticating that handoff.

Exact current source

  • live protected base: f1b5a5626b4779b7a554aee76ba600e19ad53cc7;
  • branch: fix/release-evidence-exact-toolchain;
  • current non-forced two-parent refresh: e906a382fa84aa5eb1f3d39f024bdd41a11a2ecb;
  • fresh compare: 0 behind live main with exactly three changed paths;
  • preserved exact blobs:
    • .github/workflows/release-evidence.yml 439d59851bf84651edde2b2bfb76f48be8df3e14;
    • test/release-evidence-install-integrity.test.ts f17902fdb3116f296bc488f8240137c4ba23d8a0;
    • test/release-evidence-toolchain-integrity.test.ts 551574038b3f37b253ed989fc658767b19859ca2.

No predecessor checks, reviews, scanner/model output, or release evidence transfer after the refresh.

Current exact-head state

For exact head e906a382fa84aa5eb1f3d39f024bdd41a11a2ecb:

  • application ci 31593460396: queued/non-passing;
  • reviewer-ci 31593460384: queued/non-passing;
  • protected-base eligible central Security Scan 31593460422: queued/non-passing;
  • current formal reviews: 0;
  • current inline review threads: 0.

The PR remains Draft until the unchanged exact head has terminal-success application/reviewer/security evidence and current findings remain clean. Current live ruleset requirements must be re-read immediately before merge; no approval rule is invented when absent.

Authority boundary

This workflow architecture reduces release-attestation authority exposure. It does not publish a release by itself, prove immutable publication, deploy production, establish KPI/revenue/owner-legal/IP-transfer evidence, choose an outbound license, or create acquisition readiness. Actual tag-bound protected execution, publication verification, rollback/recovery, NOTICE/licensing consistency, and buyer acceptance remain separate release gates.

Related: #27, #29, #77, #79, #91, #112, #114, #151, #155

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@seonghobae, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 49 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3c73788b-bda3-487a-8fd9-a8384baf980a

📥 Commits

Reviewing files that changed from the base of the PR and between e52f802 and 70ab0de.

📒 Files selected for processing (3)
  • .github/workflows/release-evidence.yml
  • test/release-evidence-install-integrity.test.ts
  • test/release-evidence-toolchain-integrity.test.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@seonghobae
seonghobae marked this pull request as ready for review August 11, 2026 05:46
@seonghobae
seonghobae marked this pull request as ready for review August 12, 2026 20:03
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.

build(release): bind release evidence to exact reviewed Node/npm toolchain

1 participant