Skip to content

feat(pr-verify): add the manual-dispatch whole-map verification workflow - #16951

Merged
kyle-sexton merged 5 commits into
mainfrom
feat/whole-map-verify-workflow
Nov 18, 2026
Merged

kyle-sexton merged 5 commits into
mainfrom
feat/whole-map-verify-workflow

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Refs: #16564

Summary

Adds maintenance-verify-whole-map.yml: a workflow a listed human dispatches by hand to run /testing:run-e2e map over the whole feature map, in the pull-request capture's sandbox, launch broker and key proxy on the pr-verify API key. It has never been dispatched: the pr-verify key is out of credit, so everything below was checked without a real run.

Fix

  • One job, workflow_dispatch only, default branch and first attempt only, behind the kill switch (as budget-spending work) and the listed-human gate. Inputs features, max_entries (default 40, ceiling 100) and baseline_run reach scripts through env only.
  • Before any model turn it prints the entry count, both token caps, the driven model and the turn limit. The count comes from a new script over main's control skill; the run warns when its row count differs.
  • findings.json uploads alone at 90 days and is registered in the artifact retention registry with this workflow as its reader; evidence uploads at 7 days. The baseline is the newest successful run's findings.json, or none.
  • The sandbox, proxy and probe steps are copies of pr-verify-capture.yml's, held identical by a parity test under a declared substitution table. pr-verify-capture.yml is unchanged.
  • A new verify-map run route with its own profile (300 turns) in docs/conventions/pr-pipeline.yaml; the capture's token caps are kept.

Outside the planned file list, each forced by an existing test:

  • CARRY_REFUSES (both copies) gains plugins/testing/scripts/** and the run-e2e scripts, because the new workflow loads them and it is a hold path; the hold-floor pins and digests are regenerated.
  • The kill-switch test's reading of a step condition now treats a skipped step's outcome != 'skipped', outputs.x != '' and a parenthesized group as false on a budget stop.

Verification

  • node --test on the new whole-map tests, the pr-verify directory, check-kill-switch, resolve-config callers and models, lane-transcripts and the all-workflow suites: 603 tests, 0 failures (build session). Breaking a shared step on purpose failed the parity test.
  • Hold floor: sync-hold-floor.py --check exit 0; the babysit pytest suite, 4388 passed.
  • actionlint exit 0, offline zizmor no findings, artifact retention 158 uploads matched, runner policy and vocabulary checks pass.

Left out: any real dispatch (no key credit), so these are unverified: resolve-config.sh map and date under dontAsk, real turns and tokens against the 300-turn limit and the caps (300 turns covers 40 entries at about 3 turns each, not the 100-entry ceiling), the 355/340/330-minute timeouts, the baseline artifact round trip, and the collect step's root-owned checker. The full .github suite and the online zizmor audits were not run locally.

Related

Known limit

  • A pass with a smaller max_entries followed by a larger one reports the extra entries' findings NEW, because findings-compare.sh does not know which entries the baseline drove. A pass narrowed by features uploads its findings.json as map-findings-narrowed (90 days), which the baseline lookup never reads, so it does not cause this (owner decision on Add the manual-dispatch workflow for the whole-map live verification pass #16564).

Remaining

Read first

Two edits outside the plan change safety checks. The opening session read both; no independent reviewer has yet:

  • .github/actions/check-kill-switch/check-kill-switch.test.mjs: the budget-stop reading accepts three more condition shapes.
  • CARRY_REFUSES in .github/scripts/pr-merge/merge-holds.mjs and babysit_merge_policy.py, with the regenerated hold-floor pins. It adds two paths, so more pushes stop an approval carrying; it removes none.
    🤖 Generated with Claude Code

kyle-sexton and others added 2 commits November 17, 2026 14:15
maintenance-verify-whole-map.yml runs /testing:run-e2e map on a listed
human's dispatch, on the default branch, first attempt only, in the
capture's sandbox, launch broker and key proxy on the pr-verify API key.
It stops on the kill switch (with the budget), upstream status and the
human gate, prints the entry count, both token caps, the driven model
and the driver's turns before any model turn, keeps findings.json as
map-findings for 90 days and the evidence for 7, and takes the newest
earlier pass's map-findings as its baseline.

Every step it shares with pr-verify-capture.yml is held identical to the
capture's by whole-map/workflow.test.mjs under a declared substitution
table; the capture is unchanged. The driver leg takes the new verify-map
run route and profile. The lane joins the funding catalog, transcript
puller, kill-switch classes, retention registry, key-proxy pin, key-only
leg exemption and the hold floor (regenerated), and the plugin scripts it
runs join CARRY_REFUSES.

Refs: #16564

Co-authored-by: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 17, 2026 22:13
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T22:16:20.421743Z ae51700 Draft marked ready
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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: ae51700e06

ℹ️ 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".

…cked

A summary the map skill wrote with capture.status blocked was collected
as a success. The collect step now sets the blocked reason, so the
report step fails the run.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 50b82c7cd7e8c0bd38fd4ef7297500de84afccc6: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review (incremental, blocking only): no security issues found

This review covers only what changed since 8252202e: .github/artifact-retention.json, .github/scripts/pr-verify/whole-map/workflow.test.mjs and .github/workflows/maintenance-verify-whole-map.yml. I read every hunk of all three files in the incremental diff. This lane already reviewed an earlier head, so the review reports only blocking findings.

What changed: a pass narrowed by features now keeps its findings.json for 90 days in a separate artifact, map-findings-narrowed. The earlier head dropped that file, or put it in the 7-day evidence artifact.

  • Narrowed findings can't become a baseline: "Find the baseline" accepts an artifact only on an exact name match: select(.name == "map-findings" ...) (L307). Its download also names map-findings exactly (L337). A narrowed pass's findings therefore can't be taken as a later pass's baseline.
  • Same checks before upload: the narrowed findings go through the same checks as a whole-map pass before upload. "Collect the pass" still needs the file listed in publishable, a realpath match, a regular file, a size cap of 1 MiB or less, and findings-compare.sh to accept it. The new scan-narrowed step runs the scan-upload credential scan, and "Upload the narrowed findings" runs only when that scan reports clean == 'true' (L1310-L1324).
  • Exactly one upload per pass: the whole-map scan and upload steps now also require features == '', and the narrowed pair requires features != ''. A pass therefore uploads its findings under exactly one of the two names.
  • Evidence copy: the copy loop now always skips findings.json and e2e-summary.json, which removes one path from what the evidence copy includes.
  • FEATURES handling: FEATURES moved from "Collect the pass" to the env of "Report the pass". There it is only tested with [ -z "$FEATURES" ] and never expanded into the command text. Its value comes from the inputs step, which already checks it against a feature-id pattern.
  • Retention entry: the new map-findings-narrowed entry in artifact-retention.json sets "scan": "upload" and the repository's maximum retention, 90 days.

Trust controls: none are touched. The trigger, permissions:, kill-switch and trusted-trigger gates, and the token steps are all unchanged by this push.

Test change: the test only adds assertions on the new step shapes and their scan gates.

Spend: nothing billed. Narrowed passes now store one more artifact for 90 days. The retention entry records this as the repository's retention with no paid storage, and the change adds no model turns.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

claude-review: 3 inline finding(s) on ae51700e0687b16a53abec31e9f289bf681c9fde; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 50b82c7cd7e8c0bd38fd4ef7297500de84afccc6: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Code review (incremental, blocking only): 8252202e..50b82c7c

This lane already reviewed an earlier head, so this pass reports blocking findings only. I read all three files in .claude-lane/incremental.diff, every hunk. I checked them against maintenance-verify-whole-map.yml at head: the "Check the inputs" step (L148-171), "Find the baseline" (L307-337) and L1217-1374. I ran nothing.

What changed:

  • A pass narrowed by features now keeps its findings.json for 90 days, uploaded as map-findings-narrowed. Before this push it went into the 7-day evidence artifact.

    • Collect the pass no longer reads FEATURES. It always stages the checked findings.json in map-findings/, and always leaves it out of the evidence copy.
    • The existing scan and upload steps (name map-findings) now run only when features == ''. A new pair, scan-narrowed and "Upload the narrowed findings", runs only when features != ''. Each pair is gated on its own scan's clean.
    • Report the pass adds a summary line naming map-findings-narrowed for a narrowed pass.
  • artifact-retention.json registers map-findings-narrowed at max (90 days), with this workflow as its reader.

  • workflow.test.mjs pins:

    • the third upload
    • the features == / != gates
    • the scan-before-upload order for the new pair

    It also drops the regex for the removed notice.

No blocking findings. The earlier baseline-coverage thread (L319-328) stays fixed for features:

  • The baseline lookup matches the name exactly, both in the API filter ?name=map-findings and in the jq select(.name == "map-findings") (L307).
  • The download names map-findings exactly (L337).
  • So a run that uploaded only map-findings-narrowed is never chosen automatically. A baseline_run that names such a run is refused (L315).
  • features is validated against ^[A-Za-z0-9][A-Za-z0-9._/-]*(,…)*$ (L163), so a whitespace-only value can't slip past the == '' gate.
  • The max_entries half stays a stated limit, as the owner decided. I am not raising it again.

Notes:

  • The earlier blocking threads on check-kill-switch.test.mjs L496-498 and callers.test.mjs L2516-2517 are outside this push and still open. The owner's replies only say a decision is pending on Add the manual-dispatch workflow for the whole-map live verification pass #16564, which states no decision, so they are not settled. I did not re-review them and they are not counted here.
  • There is no closing issue in the PR context (Refs: #16564 only), so I checked no acceptance criteria.
  • No plugin manifest changed.
  • Nothing in this push loosens a check:
    • The removed test regex pinned the notice this push deletes.
    • The new assertions pin the new gates.
    • The new upload passes through the same credential scan as the others.
  • Spend: one more 90-day artifact per narrowed pass, a findings.json of at most 1 MB, within the repository's retention. The owner decision cited on Add the manual-dispatch workflow for the whole-map live verification pass #16564 says no paid storage. This is not a hold.

Loosened-check verdict: fail (no loosened_check_verdict: line in the prompt, default used); patterns: 0 (no loosened_check_patterns: line)

Verifier dropped 0 of 0 candidates.

…atures

A later whole-map pass compared with a narrowed pass's findings would
report every other feature's finding NEW. A narrowed pass now uploads
its findings.json with the evidence only, not as map-findings.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 17, 2026
…wn name

Every pass keeps findings.json at the repository's retention. A pass
narrowed by features uploads it as map-findings-narrowed, which the
baseline lookup never reads, so a later whole-map pass does not report
the other features' findings NEW. This replaces the earlier change that
kept a narrowed pass's findings with the 7-day evidence.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton kyle-sexton removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 18, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 18, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit f081d21 Nov 18, 2026
110 checks passed
@kyle-sexton
kyle-sexton deleted the feat/whole-map-verify-workflow branch November 18, 2026 01:59
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant