Skip to content

ci(release): add exact-candidate server archive qualification - #3147

Merged
EffortlessSteven merged 13 commits into
mainfrom
codex/server-archive-qualification-2769
Aug 11, 2026
Merged

EffortlessSteven merged 13 commits into
mainfrom
codex/server-archive-qualification-2769

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

What this does

The release path needs a credential-free way to qualify server archives for one immutable candidate before source-side publication. This workflow provides archive-shape evidence without creating release assets or changing repository contents.

Change: qualify an exact candidate SHA and strict protected release tag when supplied, using only bounded unauthenticated public ruleset reads. The five-target matrix enforces Windows .zip versus non-Windows .tar.gz, rejects unexpected archive entries and manifest drift, and records ruleset source URL, response SHA-256, mode, repository, and ruleset ID in the qualification receipt.

Verification

Check Result
cargo xtask check-network-policy pass
cargo xtask check-workflows pass
actionlint, rustfmt --check, git diff --check pass
focused xtask policy test timed out under shared Cargo contention; not run to completion

Review map

  • .github/workflows/server-archive-qualification.yml: exact format-aware target inventory, public REST ruleset provenance, minimal permissions, and Actions-artifact-only output.
  • xtask/src/tests.rs: structured workflow oracle with negative fixtures rejecting authenticated API/token use, writable permissions, credential persistence, publication, tag protection, and manifest drift.
  • policy/network_allowlist.txt and policy/workflow_allowlist.txt: narrow reviewed allowances for the exact public ruleset API and bounded workflow block.
  • docs/RELEASE_BINARIES.md: documents the public ruleset verification boundary.

The current candidate head is 2041aa0b. Hosted matrix execution remains intentionally unclaimed by this PR. Actions artifacts are qualification evidence, not GitHub Release assets or publication proof.

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

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

Next review available in: 26 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: ASSERTIVE

Plan: Pro Plus

Run ID: 3f5123b3-1089-44fd-b847-940924b13c56

📥 Commits

Reviewing files that changed from the base of the PR and between 63b859d and 672f21a.

📒 Files selected for processing (1)
  • xtask/src/tests.rs

Summary by CodeRabbit

  • New Features

    • Added a read-only workflow to qualify server archives across five Windows, Linux, and macOS targets.
    • Validates candidate identity, protected tags, archive contents, checksums, permissions, and binary versions.
    • Produces downloadable target archives and JSON/Markdown qualification receipts without publishing releases or modifying repository content.
  • Documentation

    • Added instructions for running the workflow and interpreting qualification artifacts.
  • Tests

    • Added coverage for workflow security, target coverage, validation, and artifact configuration.

Walkthrough

The PR adds a read-only GitHub Actions workflow that verifies an immutable candidate, builds and validates five server archive targets, and uploads manifests and qualification receipts. Documentation, policy allowlisting, and automated workflow checks support the process.

Changes

Server archive qualification

Layer / File(s) Summary
Candidate-bound multi-target build
.github/workflows/server-archive-qualification.yml
The workflow accepts candidate inputs, verifies the candidate SHA and optional tag, checks the active tag-protection ruleset, and builds archives for five Windows, Linux, and macOS targets.
Archive validation and target artifacts
.github/workflows/server-archive-qualification.yml, policy/workflow_allowlist.txt
The workflow validates checksums, archive contents, labels, permissions, and binary versions. It uploads target artifacts and adds the workflow to the policy allowlist.
Manifest receipts and release boundary
.github/workflows/server-archive-qualification.yml, docs/RELEASE_BINARIES.md, policy/network_allowlist.txt, xtask/src/tests.rs
The workflow generates and verifies manifests, aggregate checksums, and JSON/Markdown qualification receipts. Documentation, network policy, and tests cover read-only permissions, SHA binding, ruleset checks, and the absence of release publication or secret access.

Estimated code review effort: 4 (Complex) | ~60 minutes

Sequence Diagram(s)

sequenceDiagram
  participant WorkflowDispatch
  participant RulesetsAPI
  participant BuildMatrix
  participant ManifestJob
  participant ActionsArtifacts
  WorkflowDispatch->>RulesetsAPI: Verify candidate and tag rules
  RulesetsAPI-->>WorkflowDispatch: Return ruleset metadata
  WorkflowDispatch->>BuildMatrix: Start five target builds
  BuildMatrix->>ActionsArtifacts: Upload validated target archives
  ManifestJob->>ActionsArtifacts: Download target archives
  ManifestJob->>ManifestJob: Generate manifest, checksums, and receipts
  ManifestJob->>ActionsArtifacts: Upload qualification outputs
Loading

Possibly related issues

Possibly related PRs

  • EffortlessMetrics/ripr-swarm#3148: Both PRs add credential-free, manually triggered qualification workflows with immutable candidate validation, read-only permissions, artifact-only receipts, policy allowlists, documentation, and static workflow tests.
  • EffortlessMetrics/ripr-swarm#3099: Both PRs use exact-candidate SHA validation in release qualification workflows.

Suggested labels: enhancement

Poem

A rabbit checks each archive tight,
Five targets pass the checksum night.
No tags are changed, no releases fly,
Receipts and manifests reach the sky.
“SHA-bound!” thumps one happy paw.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change and verification, but it omits most required template sections, including scope classification, policy impact, proof, rollback, and gates. Complete the repository template sections, including scope, impact, proof, claim boundary, rollback, traceability, engineering checks, CI economics, and applicable gate results.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the CI release change: exact-candidate server archive qualification.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/server-archive-qualification-2769

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/server-archive-qualification.yml:
- Around line 119-121: Bind archive qualification to the candidate package
version by comparing normalized QUALIFICATION_VERSION with
expected_binary_version before packaging in
.github/workflows/server-archive-qualification.yml:95-97, at the existing Linux
version check in .github/workflows/server-archive-qualification.yml:119-121, and
in the Windows verifier at
.github/workflows/server-archive-qualification.yml:140-143. Document this
version-match requirement in docs/RELEASE_BINARIES.md:32-40, and update the
workflow-policy test in xtask/src/tests.rs:8616-8630 to require the binding
check.
- Around line 36-39: Set persist-credentials: false on all three
actions/checkout steps in .github/workflows/server-archive-qualification.yml at
lines 36-39, 81-84, and 157-160. Update
server_archive_qualification_workflow_is_sha_bound_and_credential_free in
xtask/src/tests.rs at lines 8632-8644 to require this setting for every checkout
step.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 9c71a542-adc4-4781-a017-e0729869fa41

📥 Commits

Reviewing files that changed from the base of the PR and between 9f0682f and b60efd4.

📒 Files selected for processing (4)
  • .github/workflows/server-archive-qualification.yml
  • docs/RELEASE_BINARIES.md
  • policy/workflow_allowlist.txt
  • xtask/src/tests.rs

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b60efd4844

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@codecov

codecov Bot commented Aug 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head substantive review

reviewed_head_sha: 57f1ee9
integration_basis: main at 9f0682f
claim_boundary: credential-free, exact-SHA-bound archive-shape qualification for the five server targets; no source publication or GitHub Release creation

Blocking findings:

[P1] Runtime qualification does not enforce the five-target manifest inventory

Failure mode: release-server-manifest enumerates whatever archive files are present, while the receipt at .github/workflows/server-archive-qualification.yml:205-210 hard-codes a five-target list. If the matrix or artifact collection loses a target, manifest generation and sha256sum -c can still succeed and the receipt can still claim all five targets. The current test only checks that each target string occurs somewhere in the YAML; it does not enforce the runtime set or cardinality.

Why here: The PR claims a supported five-target matrix and issue #3146 requires rejection of missing/partial target evidence. A receipt must not say five targets when its manifest contains fewer.

Fix direction: After manifest generation, parse the generated manifest (or compare the archive filenames in dist/) against the exact five-target set and fail on missing, extra, duplicate, or mismatched target entries before writing/uploading the receipt. Add an accept/reject fixture that removes one target and proves qualification fails.

Validation: Run the focused xtask test plus cargo xtask check-workflows; exercise the workflow with a missing-target artifact or equivalent fixture.

Confidence: High; this follows directly from release_server_assets and the receipt construction at the cited head.

[P1] Archive extraction checks presence but not exact content

Failure mode: The Linux and Windows verification steps at .github/workflows/server-archive-qualification.yml:132-142 and :156-165 assert that the executable, two licenses, and README exist, but accept arbitrary additional files or nested paths. A candidate-controlled packaging implementation could add an unexpected payload and still receive a qualified receipt/artifact.

Why here: The stated archive contract is a flat package containing exactly ripr(.exe), LICENSE-MIT, LICENSE-APACHE, and README-server.txt; qualification is the boundary that must inspect the produced bytes, not merely required-file presence.

Fix direction: Enumerate extracted paths on both platforms and compare to the exact four-entry set, rejecting nested/extra entries before the binary check. Add a fixture/regression case with one extra file and one nested path.

Validation: Run the archive packaging/extraction tests and the workflow-policy gate; the added negative case must fail before the repair and pass after it.

Confidence: High; the current runtime checks are visibly presence-only.

[P1] The tag claim is ref-resolution, not protected-tag binding

Failure mode: .github/workflows/server-archive-qualification.yml:49-52 treats candidate_tag as optional and only checks that refs/tags/${tag} currently resolves to the SHA. It accepts an arbitrary tag name (including a non-protected/lightweight tag) and the receipt records no evidence that the tag is covered by the active release-transaction protection. This cannot establish the immutable W5/protected-tag claim described by the release source of truth.

Why here: The active release contract identifies a protected tag under ruleset release-transaction-pins; a current Git ref lookup is not proof that the ref is protected or immutable. The receipt is intended for a source-side consumer that must reject incomparable or stale identity evidence.

Fix direction: Either require and validate the exact protected tag/ref as an input with an explicit protection/identity evidence field consumed downstream, or narrow the workflow/docs/receipt language to “tag resolved to candidate at run time” and make source preflight independently require the protected-tag evidence. Do not call an arbitrary optional tag immutable.

Validation: Add reject coverage for no tag, wrong tag, and an unprotected/currently-resolving tag; verify the source-side consumer accepts only the protected-tag evidence contract.

Confidence: High for the claim boundary; git rev-list proves resolution only, not GitHub ruleset protection.

[P1] Workflow-policy test is a substring oracle, not a behavioral guard

Failure mode: xtask/src/tests.rs:8608-8665 checks marker strings and counts, but does not parse the workflow or assert ordering, permissions, exact target cardinality, exact extracted contents, tag semantics, or publication boundaries at the decision points. For example, moving the version check after packaging, deleting contents: read, or changing the manifest target set can leave the test green while violating the PR contract.

Why here: Workflow security and release-integrity checks need discriminating accept/reject evidence; source-text coincidence is not proof of rendered workflow behavior.

Fix direction: Replace/augment the marker test with fixture-style workflow parsing or a focused checker that models the three jobs and asserts (a) explicit minimal permissions, (b) every checkout's credential setting and candidate ref, (c) pre-package version binding, (d) exact target matrix, (e) exact archive-content checks, and (f) forbidden publication/secrets. Include wrong/missing/moved checks as negative fixtures.

Validation: Run the focused xtask test directly and cargo xtask check-workflows; each negative fixture must fail for the intended reason.

Confidence: High; the current test body is a direct string scan.

Non-blocking suggestions: None.

Refuted or stale findings: The prior CodeRabbit findings about persist-credentials: false, pre-package version binding, and SHA normalization are addressed on this exact head and the corresponding threads are resolved.

Proof and CI observed: PR metadata binds the head/base above. Current hosted checks show successful source-of-truth, routed Rust, coverage, tests, security, and policy-related checks; the required Ripr Rust Small Result route remains pending (Ripr Rust Small on GitHub Hosted), and no manual run of this new workflow against the exact candidate was observed. The PR body reports cargo xtask check-workflows pass and a focused test timeout; those claims were not independently rerun in this read-only pass.

Proof or review missing: exact hosted route completion; a real workflow_dispatch qualification run with all five jobs/artifacts; runtime negative evidence for missing target/extra archive content/tag protection; semantic fixture coverage for the policy checker.

affected_currentness_dimensions: production implementation, test oracle, public claim, exact-head CI receipts, integration/identity evidence
residual_assumptions_and_non_claims: The review inspected the committed workflow and Rust packaging/manifest consumers at the exact head. It does not claim archive qualification, public release readiness, source integration, or tag-protection proof. GitHub ruleset protection was observed active for tags, but this workflow does not bind its input to that protected-tag state.
disposition: REPAIR_REQUIRED

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head re-review

reviewed_head_sha: 640397d
integration_basis: main at 9f0682f
claim_boundary: credential-free, exact-SHA/protected-tag-bound archive-shape qualification for the five server targets; no source publication or GitHub Release creation

Blocking finding:

[P1] Protected-tag verification reintroduced a credential/secrets surface

Failure mode: .github/workflows/server-archive-qualification.yml:42-70 sets GH_TOKEN: ${{ github.token }} and invokes gh api to enumerate/read repository rulesets. This contradicts the workflow's documented and receipted secrets_required: false / credential-free boundary. Candidate-controlled code runs later in the same job; even with persist-credentials: false, the token is explicitly present in the verification step's environment and the workflow now depends on an authenticated GitHub API credential. The policy test at xtask/src/tests.rs does not reject GH_TOKEN or github.token, so the new negative-oracle suite would still pass this regression.

Why here: The PR's release-control contract says only Actions artifacts may be written and no repository secrets/token/publication surface is allowed. Ruleset protection is repository control-plane evidence, not a reason to expose a token to the qualification job.

Fix direction: Remove GH_TOKEN/gh api from this workflow. Keep the qualification workflow credential-free and make the source-side consumer require independently recorded protected-tag/ruleset evidence, or pass a non-secret immutable protection receipt as an input/artifact without claiming the workflow itself verified live ruleset state. Extend server_archive_qualification_workflow_is_sha_bound_and_credential_free to reject both GH_TOKEN and github.token, with a mutation fixture proving the guard.

Validation: Run the focused xtask test and cargo xtask check-workflows; verify the rendered workflow has no token/secret env and the receipt remains truthful.

Confidence: High; the exact new head contains both the explicit env assignment and gh api calls.

Prior findings status: The exact five-target manifest inventory check, exact archive-entry checks on Linux/Windows, strict tag/ref checks, and negative mutation fixtures are present on this head. No unresolved review threads were observed. Those repairs do not cure the newly introduced token boundary violation.

Proof and CI observed: gh pr checks 3147 shows successful routed Rust, tests, coverage, security, dependency, source-of-truth, and policy-adjacent checks; Ripr Rust Small on GitHub Hosted remains pending. No manual run of this new workflow against a candidate was observed. The exact-head PR review set has no unresolved threads.

proof_or_review_missing: exact hosted route completion and a real workflow_dispatch qualification run remain unavailable; the new credential-bearing path must be removed before merge convergence.

affected_currentness_dimensions: production implementation, security/public claim, test oracle, exact-head CI receipts
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness. It observes the active tag ruleset separately; it does not treat that control-plane fact as permission to expose a token in the qualification job.
disposition: REPAIR_REQUIRED

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head re-review

reviewed_head_sha: feac7d0
integration_basis: main at 9f0682f
claim_boundary: credential-free public-REST/receipt-backed exact-SHA and protected-tag archive qualification

Blocking findings:

[P1] Manifest inventory still requires .tar.gz for Windows

Failure mode: .github/workflows/server-archive-qualification.yml:275-282 appends ripr-server-v${version}-${target}.tar.gz for every target, but the matrix defines x86_64-pc-windows-msvc as archive: zip. The exact inventory diff therefore rejects the valid Windows artifact and the manifest job cannot qualify the five-target set.

Why here: This is a direct contradiction between the matrix archive type and the new runtime inventory check; Graphite's unresolved exact-head thread identifies the same failure at line 280.

Fix direction: Derive the expected extension from the target/archive matrix (or explicitly map Windows to .zip and all others to .tar.gz) and include matching sidecars. Add a negative/positive fixture that preserves the Windows zip while rejecting a missing or wrong-extension artifact.

Validation: Re-run the focused workflow-policy test, cargo xtask check-workflows, and the manifest inventory fixture.

Confidence: High; the mismatch is visible in the committed workflow.

[P1] The public REST/receipt fallback is spoofable and not provenance-bound

Failure mode: When the unauthenticated REST call is unavailable, ruleset_receipt_url and ruleset_receipt_sha256 are both caller-supplied. The workflow accepts any redirectable URL and any matching hash supplied in the dispatch, then trusts JSON fields for repository, candidate SHA/tag, and ruleset shape. A caller can host a forged receipt and provide its digest; the final qualification receipt does not retain the URL, digest, fallback/direct source, or the fetched receipt bytes/hash, so a downstream consumer cannot audit which protected-rule evidence was used.

Why here: A digest proves bytes match a separately supplied digest, not producer authenticity or that the URL is an approved public governance source. The release contract requires evidence that cannot be spoofed or replayed as protected-tag proof.

Fix direction: Restrict fallback URLs to an approved GitHub/public governance origin and bind the receipt to a committed/source-authenticated producer artifact (or require the source-side consumer to verify that provenance). Record ruleset_receipt_url, receipt SHA-256, source mode, and the fetched receipt identity in the qualification receipt; reject unapproved hosts, redirects, missing identity, and stale/wrong candidate/tag bindings. Add fixtures for attacker-hosted URL + matching hash, redirect, wrong repository/SHA/tag, and replayed receipt.

Validation: Run the negative receipt fixtures and verify the emitted receipt contains the exact source/hash identity.

Confidence: High; the URL and hash are untrusted workflow inputs and are not carried into the emitted receipt.

[P1] Exact-head required CI is red on the changed workflow

Failure mode: rust-tests-junit for this head failed tests::count_policy_gates_have_no_stale_bounds. The retained log reports check-network-policy found curl 3 times in .github/workflows/server-archive-qualification.yml and 2 times in xtask/src/tests.rs, with allowlist budget 0; the run cancelled 803 remaining tests. This is a real policy failure, not an infrastructure timeout.

Fix direction: Remove the inline network fallback or update the governed network policy/receipt in the same bounded change if the fallback is approved; then rerun the exact-head required suite. Do not treat the failed job as a pass.

Validation: cargo xtask check-network-policy, focused tests, and fresh exact-head required CI.

Confidence: High; observed in run 31492702516.

Prior finding status: The GH_TOKEN/github.token surface is removed and the credential-free negative checks are present. The exact archive-entry and protected-tag structural checks remain present, but the fallback provenance and Windows extension defects are new blockers.

Proof and CI observed: Exact head and base are bound above. No unresolved review threads were present except the current Graphite thread at workflow line 280, which reports the Windows extension mismatch. Current checks include pending hosted route, failed rust-tests-junit, pending coverage/ub-review, and successful source-of-truth/routed Rust/dependency checks. No manual workflow_dispatch qualification run was observed.

proof_or_review_missing: credential-free fallback authenticity, receipt provenance, exact Windows inventory execution, and fresh green required CI.

affected_currentness_dimensions: production implementation, public claim, security/provenance, test oracle, exact-head CI receipts
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness. The direct public API path and fallback path are treated as separate evidence sources; neither is independently sufficient without retained producer identity.
disposition: REPAIR_REQUIRED

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 5

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/server-archive-qualification.yml:
- Around line 284-288: Strengthen the manifest validation in the jq check by,
after confirming the asset-key shape, iterating over each expected target and
comparing `.assets[target].sha256` with the verified `dist/<asset>.sha256` value
and `.assets[target].url` with the exact archive URL and filename for that
target. Keep the existing version and shape checks, and ensure every expected
manifest entry is bound to its corresponding verified archive rather than only
matching hash format and release URL prefix.
- Around line 63-68: Update the tag validation block in the workflow to query
both the tag ref and its peeled ^{} ref, resolve annotated tags to the
underlying commit, and compare that commit with candidate_sha while retaining
commit validation. In docs/RELEASE_BINARIES.md sections covering the accepted
release-tag format at lines 32-35 and 43-50, document the
ripr-release-MAJOR.MINOR.PATCH format and explicitly state that annotated tags
are valid.
- Around line 41-45: Align the three actions/checkout steps at
.github/workflows/server-archive-qualification.yml:41-45, :139-143, and :244-248
with the documented authentication contract: use an unauthenticated public
checkout if qualification must be credential-free; otherwise retain the default
checkout authentication and remove the github.token claim from
docs/RELEASE_BINARIES.md:52-56.

In `@xtask/src/tests.rs`:
- Around line 8730-8771: Update the negative-fixture loop around validate so
each fixture changes only the gate it claims to test: make publication alter the
publication marker, authenticated API alter only its curl marker, and token
credential alter only its token-credential marker. Add isolated fixtures
covering candidate identity/tag strictness, the five-target matrix inventory,
and the marker loop, including an extra matrix target, downgraded tag regex, and
removed single marker. Ensure every fixture is rejected through its intended
validation path.
- Around line 8667-8681: Update the matrix extraction in the candidate
validation block to require both the “matrix:” prefix and the exact blank-line
“steps:” terminator; if either delimiter is missing, return an error instead of
using a default or the remaining workflow text. Keep the existing
exact-five-target uniqueness check operating only on the bounded matrix slice.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: cf066e71-31c9-4477-b1b1-d926066314a9

📥 Commits

Reviewing files that changed from the base of the PR and between b60efd4 and 8625d1d.

📒 Files selected for processing (5)
  • .github/workflows/server-archive-qualification.yml
  • docs/RELEASE_BINARIES.md
  • policy/network_allowlist.txt
  • policy/workflow_allowlist.txt
  • xtask/src/tests.rs

Comment thread xtask/src/tests.rs Resolved
Comment thread xtask/src/tests.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head final re-review

reviewed_head_sha: 8625d1d
integration_basis: main at 9f0682f
claim_boundary: credential-free public-REST-only exact-SHA/protected-tag archive qualification with auditable receipt provenance

Blocking findings:

[P1] Checkout still injects the GitHub token despite the credential-free claim

Failure mode: All three actions/checkout steps use the action default token (${{ github.token }}); persist-credentials: false only prevents persistence after checkout. The workflow/docs still claim credential-free/no-secrets qualification, while candidate-controlled build/package code runs later in those jobs.

Fix direction: Use an unauthenticated public checkout path if that is the contract, or remove the credential-free/no-secrets claim and narrow the receipt/docs. Add a negative test that rejects checkout token injection, not just GH_TOKEN/gh api.

[P1] Annotated release tags are rejected

Failure mode: .github/workflows/server-archive-qualification.yml:63-68 compares the SHA returned by git ls-remote --refs directly to the candidate commit. For an annotated tag, --refs returns the tag-object SHA, not the peeled commit SHA, so a valid protected annotated release tag fails qualification.

Fix direction: Query the exact tag and ^{} peeled ref, compare the peeled commit to candidate_sha, and retain commit-type validation. Add an annotated-tag fixture.

[P1] Manifest entries are not bound to verified archive sidecars

Failure mode: The manifest check validates only target keys, 64-hex hash shape, and URL prefix. It never compares each .assets[target].sha256 to dist/<exact-archive>.sha256 or URL to the exact target filename. A candidate-produced manifest can therefore point consumers at a wrong hash/asset while local SHA256SUMS remains green.

Fix direction: Iterate expected targets after shape validation and compare manifest hash and exact URL against the verified sidecar and archive name. Add wrong-hash and wrong-filename negative fixtures.

[P1] Required exact-head CI is failing

Failure mode: Current checks show Ripr Rust Small Result, rust-coverage, and rust-tests-junit failed. The prior exact-head network-policy failure was real; fresh exact-head green proof is absent. Hosted route and GitGuardian remain pending.

Fix direction: Repair the changed workflow/policy/test failures and obtain fresh exact-head required CI. Do not merge on aggregate or partial green checks.

[P2] Negative workflow fixtures remain non-isolating and matrix parser is fail-open

xtask/src/tests.rs mutations for authenticated API/token/publication can be rejected by unrelated marker/count checks, while candidate matrix extraction uses unwrap_or_default() when delimiters are absent. Add isolated fixtures for identity/tag strictness, exact matrix cardinality, and each marker; require both matrix delimiters.

Proof and CI observed: No unresolved thread was previously present, but this refresh finds current unresolved CodeRabbit threads at workflow lines 45, 68, 288 and test lines 8681/8771. Current checks: required result fail; coverage fail; rust-tests-junit fail; hosted route pending; GitGuardian pending; source-of-truth, routed Rust, dependency, ub-review, and plan checks pass.

proof_or_review_missing: credential-free checkout proof, annotated-tag proof, manifest-to-archive binding, exact-head green CI, and a real workflow_dispatch qualification run.

affected_currentness_dimensions: production implementation, security/public claim, tag identity, manifest integrity, test oracle, exact-head CI receipts
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REPAIR_REQUIRED

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head re-review

reviewed_head_sha: 29bed1f
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA fetch, lightweight/annotated protected-tag resolution, five-target archive qualification, and auditable manifest/sidecar evidence

Blocking finding:

[P1] Exact-head required CI is still failing

Failure mode: Current gh pr checks 3147 shows rust-tests-junit failed; the required Ripr Rust Small Result is not green because the hosted route remains pending. Coverage and ub-review are also pending. Therefore this candidate has no exact-head green required proof and cannot advance to merge readiness.

Fix direction: Inspect the exact failed rust-tests-junit report, repair the first real failure, and rerun the required exact-head suite. Preserve the network-policy and workflow receipts; do not treat partial green checks or a pending hosted route as qualification.

Validation: Fresh exact-head rust-tests-junit, cargo xtask check-network-policy, routed result, coverage, and hosted route.

Confidence: High; observed current checks for 29bed1f.

Repaired surfaces observed: checkout was replaced with explicit git init plus credential.helper=/http.extraheader=-cleared unauthenticated fetches; annotated and lightweight tags now resolve via peeled ^{} fallback; Windows zip inventory is explicit; manifest hashes and exact URLs are compared to local archives/sidecars; matrix delimiter and negative fixtures were strengthened.

Residual review gaps: no real workflow_dispatch qualification run was observed. The current check failure prevents a REVIEW_READY disposition even though no unresolved review threads were reported in the refresh.

proof_or_review_missing: exact-head green CI and real five-target workflow execution.
affected_currentness_dimensions: exact-head CI receipts, rendered workflow execution, release evidence
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REPAIR_REQUIRED

Comment thread xtask/src/tests.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head re-review

reviewed_head_sha: b482635
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA/tag-bound archive qualification with manifest and sidecar integrity proof

Blocking finding:

[P1] The credential-persistence negative fixture is vacuous

Failure mode: xtask/src/tests.rs:8736 still mutates persist-credentials: false to true, but the workflow no longer contains any actions/checkout or persist-credentials marker after the raw unauthenticated Git-fetch repair. replacen performs zero replacements and validate(&broken) sees the unchanged valid workflow, so this fixture does not test the claimed security regression.

Fix direction: Remove the obsolete fixture or replace it with an isolated mutation of the actual credential-free seam (for example, remove -c credential.helper= -c http.extraheader= from exactly one fetch/ls-remote command and assert validation rejects it). Keep the negative fixture tied to a real decision path.

Validation: Run the focused workflow-policy test and full rust-tests-junit; confirm the mutation is rejected for the intended credential-control reason.

Confidence: High; the current workflow has no persist-credentials: false, and the unresolved exact-head Graphite thread at this line reports the same issue.

CI and review state: The marker repair is present, but exact-head checks are not complete: rust-tests-junit, coverage, ub-review, and hosted route are pending; no green required result is available. One unresolved review thread remains at this exact head.

Prior semantic findings: Raw credential-cleared fetches, annotated/lightweight tag peeling, Windows zip inventory, manifest-to-sidecar/hash/URL binding, bounded matrix parsing, and other prior repairs are present in the inspected diff. No REVIEW_READY disposition is earned while this negative oracle is vacuous and required CI is pending.

proof_or_review_missing: isolated credential-control negative oracle, exact-head green required checks, and a real workflow_dispatch qualification run.
affected_currentness_dimensions: test oracle, exact-head CI receipts, rendered workflow execution
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REPAIR_REQUIRED

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REPAIR_REQUIRED — exact-head re-review

reviewed_head_sha: bf945de
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA/tag-bound archive qualification with manifest/sidecar integrity proof

Blocking finding:

[P1] The focused workflow-policy test still fails on a stale tag marker

Failure mode: Exact-head rust-tests-junit fails tests::server_archive_qualification_workflow_is_sha_bound_and_credential_free with candidate tag must be strict, remote-bound, and commit-typed. The workflow now uses git -C "${GITHUB_WORKSPACE}" cat-file -t, but the test still requires the literal git cat-file -t; the intended credential mutation repair did not update this marker. The run reached 5,868/6,066 tests with one failure.

Fix direction: Update the marker to the actual command shape (or assert the structured git -C ... cat-file -t semantic), then rerun the focused test and full exact-head suite.

Validation: Fresh rust-tests-junit, rust-coverage, Ripr Rust Small Result, and hosted route must all pass. Current head has required result, hosted route, coverage, and rust-tests-junit failing; no REVIEW_READY evidence exists.

Confidence: High; observed exact failure in run 31500171221 and current source mismatch.

Prior semantic findings: Credential-cleared raw fetches, annotated/lightweight tag peeling, Windows zip inventory, manifest-to-sidecar/hash/URL binding, bounded matrix parsing, and non-vacuous credential mutation are otherwise present in the inspected diff. No unresolved-thread or green-check exception can override the failed required proof.

affected_currentness_dimensions: test oracle, exact-head CI receipts
proof_or_review_missing: corrected marker and fresh green required checks; no real workflow_dispatch qualification run observed.
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REPAIR_REQUIRED

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_INCOMPLETE — exact-head re-review

reviewed_head_sha: 63b859d
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA/tag-bound archive qualification with manifest/sidecar integrity proof

No new actionable source finding was identified in the inspected repair. The stale commit-type marker is now centralized as QUALIFICATION_COMMIT_TYPE_COMMAND, and the test requires the actual credential-cleared ls-remote and git -C ... cat-file -t command shapes. Prior semantic repairs remain present: raw credential-cleared fetches, lightweight/annotated tag peeling, Windows zip inventory, manifest-to-sidecar/hash/URL binding, bounded matrix parsing, and non-vacuous credential mutations.

Current proof boundary: exact-head checks are not complete. rust-tests-junit, coverage, UB review, hosted route, and CodeRabbit are pending; source-of-truth, routed Rust, dependency, cargo-deny, plan, and docs-only checks pass. No unresolved review threads were observed. No real workflow_dispatch qualification run was observed.

The candidate cannot emit REVIEW_READY until the pending required/current-head checks complete green and the qualification workflow has an actual candidate-bound run. This is a proof-availability disposition, not a source defect.

affected_currentness_dimensions: exact-head CI receipts, rendered workflow execution
proof_or_review_missing: fresh green required checks and real five-target workflow_dispatch qualification run.
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REVIEW_INCOMPLETE

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
.github/workflows/server-archive-qualification.yml (1)

324-325: 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Require SHA256SUMS to cover every distributable file.

sha256sum -c SHA256SUMS validates only listed entries. An empty or partial file can pass this command while omitting an archive or manifest. The receipt then reports aggregate checksum verification without complete evidence.

Generate expected checksum lines from every non-sidecar file in dist, compare them with SHA256SUMS, and then run sha256sum -c.

Proposed fix
           set -euo pipefail
+          (
+            cd dist
+            find . -mindepth 1 -maxdepth 1 -type f \
+              ! -name '*.sha256' ! -name 'SHA256SUMS' -printf '%f\n' |
+              LC_ALL=C sort |
+              while IFS= read -r file; do
+                sha256sum "${file}"
+              done
+          ) > expected-SHA256SUMS
+          diff -u expected-SHA256SUMS dist/SHA256SUMS
           (cd dist && sha256sum -c SHA256SUMS)

As per coding guidelines: “A gate, field, or command must enforce the strength of its stated contract; do not expose stronger claims than the implementation verifies.”

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/server-archive-qualification.yml around lines 324 - 325,
Update the checksum verification step around SHA256SUMS to generate expected
checksum entries for every non-sidecar distributable file in dist, compare that
complete set against SHA256SUMS, and only then run sha256sum -c SHA256SUMS.
Preserve strict failure behavior so empty, partial, or mismatched checksum
manifests cannot pass while the receipt claims aggregate verification.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@xtask/src/tests.rs`:
- Around line 8782-8785: Update the "matrix inventory" negative fixture in the
workflow test to replace one target with an exact duplicate of another existing
target, rather than appending a suffix to the Windows target. Ensure the
resulting matrix has one required target missing and another duplicated so the
existing five-target count validation is exercised.
- Around line 8739-8746: Update the “credential clearing” assertion in validate
to count occurrences of the full credential-clearing fetch command with
matches(...).count() and require exactly 3, replacing the current single
replacen-based contains check so the fixture detects missing commands.

---

Outside diff comments:
In @.github/workflows/server-archive-qualification.yml:
- Around line 324-325: Update the checksum verification step around SHA256SUMS
to generate expected checksum entries for every non-sidecar distributable file
in dist, compare that complete set against SHA256SUMS, and only then run
sha256sum -c SHA256SUMS. Preserve strict failure behavior so empty, partial, or
mismatched checksum manifests cannot pass while the receipt claims aggregate
verification.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: c14aade8-6df0-44c8-b276-91b3cf822bd6

📥 Commits

Reviewing files that changed from the base of the PR and between 8625d1d and 63b859d.

📒 Files selected for processing (4)
  • .github/workflows/server-archive-qualification.yml
  • docs/RELEASE_BINARIES.md
  • policy/workflow_allowlist.txt
  • xtask/src/tests.rs

Comment thread xtask/src/tests.rs Resolved
Comment thread xtask/src/tests.rs Resolved

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_INCOMPLETE — exact-head re-review

reviewed_head_sha: 672f21a
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA/tag-bound archive qualification with manifest/sidecar integrity proof

The current repair makes the previously stale assertions meaningful: all three raw fetches are counted, archive matrix markers use the actual YAML shape, and the matrix negative mutation duplicates a concrete target entry. No new semantic source finding was identified; prior credential-cleared fetch, annotated/lightweight tag peeling, Windows zip inventory, manifest-to-sidecar/hash/URL binding, and bounded matrix repairs remain present.

Current proof boundary: rust-tests-junit, coverage, UB review, and the hosted route are still pending. Source-of-truth, routed Rust, dependency, cargo-deny, plan, and docs-only checks pass. No unresolved review threads were observed. No real candidate-bound workflow_dispatch qualification run was observed.

This is not REVIEW_READY until exact-head required checks complete green and the workflow itself produces a candidate-bound five-target qualification receipt.

affected_currentness_dimensions: exact-head CI receipts, rendered workflow execution
proof_or_review_missing: fresh green required checks and real workflow_dispatch qualification run.
residual_assumptions_and_non_claims: This review does not establish archive qualification or release readiness.
disposition: REVIEW_INCOMPLETE

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY — exact-head substantive review

reviewed_head_sha: 672f21a
integration_basis: main at 9f0682f
claim_boundary: unauthenticated exact-SHA/tag-bound archive qualification with manifest/sidecar integrity proof; no source publication or release creation

The exact-head semantic repairs are present and no unresolved review threads remain. Required current-head proof is green: rust-tests-junit, rust-coverage, ub-review, Ripr Rust Small on GitHub Hosted, Ripr Rust Small Result, source-of-truth, cargo-deny, dependency-review, pr-plan, and routed checks. Hosted run 31505299237 is bound to headSha 672f21a.

This review establishes candidate implementation and current-head CI proof only. It does not establish the separate W5 candidate-bound server qualification receipt or release readiness.

@EffortlessSteven EffortlessSteven left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

REVIEW_READY — exact-head merge disposition

reviewed_head_sha: 672f21a
integration_basis: main at 9f0682f

All applicable exact-head checks pass and mergeability is CLEAN. All review threads are now resolved. The only new Graphite finding was refuted with source evidence: the Linux version equality gate rejects the malformed multi-v-prefix input before Windows can qualify divergently. The exact-head candidate implementation and CI proof are merge-ready.

Claim boundary: this establishes PR candidate proof only; separate W5 server qualification remains outstanding.

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