Skip to content

qualify: record with the default-branch harness when the dispatch takes it (056 3.5) - #581

Merged
bartekus merged 1 commit into
mainfrom
qualify-record-harness
Nov 9, 2026
Merged

bartekus merged 1 commit into
mainfrom
qualify-record-harness

Conversation

@bartekus

@bartekus bartekus commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

With harness_from_default_branch, the record job of qualify.yml now runs the default branch's rustev-release qualify, not the tag's.

Why: the 2026-11-08 requalification dispatches for spec 068's acceptance, v0.6.0 (run 42564690022) and v0.5.0 (run 42564691757), passed every step on all 7 platforms. Then record failed because the tag's tool rejects the new npm_provenance field:

darwin-arm64.npm.json: unknown field `npm_provenance`, expected one of `schema`, ...

Verification: I ran main's rustev-release qualify locally on both runs' downloaded evidence and the tags' release files. Both recorded qualified. The evidence holds v0.6.0 with 21/21 packages verified and v0.5.0 with 21/21 not_required.

Without the input, and in the release run's call, record is unchanged.

Spec: 056 implementation record paragraph (3.5, A-74).

@bartekus
bartekus enabled auto-merge November 9, 2026 05:58
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown

AI review (no-findings)

Reviewing the two changed files against the governance context.

.github/workflows/qualify.yml

The diff adds an optional checkout of the default branch into harness/ and a conditional code path that runs rustev-release qualify from that harness instead of the tag's tooling. I checked:

  • Expression vs. shell condition alignment: The checkout gate is if: ${{ inputs.harness_from_default_branch }}; the shell branch is if [ "$FROM_DEFAULT" = true ]. For a boolean workflow input GitHub serialises the value as the literal string "true" or "false", so the two conditions are equivalent in practice.
  • Path arithmetic: The new subshell (cd harness && cargo run ... -- qualify ../release ../evidence) resolves ../release and ../evidence to the same workspace-root directories the original qualify release evidence call uses. Correct.
  • Output capture: (cd harness && ...) > qualification.json redirects the subshell's stdout to qualification.json in the caller's CWD (workspace root), identical to the original redirection.
  • Tag fetch in harness: git -C harness fetch --force origin "refs/tags/$TAG:refs/tags/$TAG" mirrors the existing fetch in the main checkout, giving the harness tool access to the tag ref for the same reasons (signature verification or identity checks the tool performs).
  • Credential handling: both the new harness checkout and the existing main checkout set persist-credentials: false; the subsequent git fetch commands match the existing pattern and present no new credential-exposure surface.
  • Injection: FROM_DEFAULT is derived from a boolean workflow input set via env: and tested with a quoted shell comparison; github.event.repository.default_branch is a repository property, not user-supplied; $TAG is existing. No injection surface.
  • Pinned action: The added actions/checkout step uses the same pinned SHA (9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0) as the existing checkout step above it.
  • Workflow-file governance: AGENTS.md requires statecraft-review-exception Environment approval for .github/workflows/ changes; that gate is enforced elsewhere and is not a reviewer finding per the review contract.

specs/056-release-0-1-1-and-consumer-qualification/spec.md

Adds a prose record of the 2026-11-08 dispatches and the new harness_from_default_branch behaviour. This is consistent with the existing record-keeping style in the same spec and raises no governance or correctness concern.

No concrete defects found in either file.

{"head": "698d81f60b34c5c2e8f636d42b29cf3df18a066a", "verdict": "no-findings", "findings": []}

Subject: e93a1c4...698d81f, diff digest c007096dc958a47b7ad66a9fc4354dce2668ee94e96efe1def55a8d967609364, 1 call(s). An AI comment is not an approval.

@bartekus
bartekus temporarily deployed to statecraft-review-exception November 9, 2026 06:00 — with GitHub Actions Inactive
@bartekus
bartekus added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@bartekus
bartekus added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit 652677b Nov 9, 2026
72 of 76 checks passed
@bartekus
bartekus deleted the qualify-record-harness branch November 9, 2026 08:55

This branch was previously deployed

1 inactive deployment
statecraft-review-exception — 698d81f6 Deployed Nov 9, 2026 by bartekus via review-exception #3914
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