Repository navigation
refactor(ci): choose a linked issue's spec source in one pure function - #18434
Conversation
Which spec source wins for a linked issue (written, split child, own-agent, briefed, recurring, upstream drift, main-red incident) moves from a ternary chain in resolve-pr.mjs linkedIssues into spec-source.mjs specSource, a pure function of the facts each source already produced, pinned by a table test with no GitHub stub. Every decider it is fed was already pure and total, so evaluating each once per issue leaves every resolved spec identical. The module joins the hold floor as enforcement beside resolve-pr.mjs. Reasons kept from deleted comments: - The upstream-drift and main-red incident sources yield only to a written, split-child or recurring spec, so beside an own-agent or briefed body they still mark the source; the table test pins this. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated hold-floor files take main's side and are regenerated by scripts/sync-hold-floor.py; floor pins are main's counts plus this branch's one enforcement row (.github/scripts/pr-verify/spec-source.mjs). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated hold-floor files take main's side and are regenerated by scripts/sync-hold-floor.py; floor pins are main's values plus this branch's one enforcement row (.github/scripts/pr-verify/spec-source.mjs). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-review reviewed Code review: no findings. The PR moves the choice of a linked issue's spec source out of an inline ternary chain in Equivalence check. I compared the old chain with
Hold-floor sync. The new glob appears in all five places, each next to Loosened checks. Nothing here loosens a check. The pin and count updates in Closing issue. The PR closes no issue ("No related issue"), so there are no acceptance criteria to check. Tests. The new Spend. None beyond normal CI. The PR changes no workflow behaviour except listing one more path. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #18434This PR has no security issues. What it changes. The chain of ternaries in Trust controls read
No critical-findings: 0 |
Keep main's floor rows from #18434 and this branch's two test-scope gate rows in the merge-holds floor, regenerate the floor copies with scripts/sync-hold-floor.py, and repin the babysit floor tests to the combined counts and digests. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01UJUn7MnPkm1aG9ivrZ2Enp
No related issue: candidate 21 of an
/architecture:improvedeepening pass over the CI lanes, run in a local session.Summary
pr-verify/resolve-pr.mjschose a linked issue's spec through a chain of null-guard ternaries over seven sources plus the trusted-human body (resolve-pr.mjs:1124-1138before this change): written, split child, own agent, briefed, recurring, upstream drift and main-red incident. Each new source had landed as a fix to that chain.Fix
.github/scripts/pr-verify/spec-source.mjsexports a purespecSource(facts)that returns{source?, body}with the same keys in the same order.linkedIssuesgathers the facts as before and calls it. The module imports nothing.ownAgentText,briefedIssue,recurringSpecandmainRedIncidentare pure and total, so computing each once per issue changes no output.spec-source.mjsjoins the hold floor asenforcement;sync-hold-floor.pyregenerated its copies and the floor pins moved..baseis a full checkout in the verify and merge-risk jobs, so no workflow line changes.ratedBy,laneOf,RATED_*,RESOLVE_LANE).pr-rate-merge-risk.ymlruns.base/.github/scripts/pr-verify/resolve-pr.mjsat three steps, so moving them changes what those steps run.Reasons kept from deleted comments
Verification
spec-source.test.mjs: 14 rows, each pinned from the old code's output; two deliberate breaks each turn one row red.resolve-pr.test.mjsunchanged: 197 pass. Importer suites: 1717 pass, 0 fail.affected-tests.shselects both suites;plan-test-lanes.shendsunmapped=0; the can't-fail scan passes on the 3 changed test files.Follow-ups
sourcewhile the body is the filing's own text. Today their authors keep them apart (ownAgentIdsexcludes the Actions bot);briefedIssuewould overlap only iflaneAppIdwere the Actions bot id. Pinned by two table rows.Related
Part of the
.githubdeepening series; follows #18349 (size-split module).🤖 Generated with Claude Code