Repository navigation
refactor(ci): break the admit and size-split import cycle with issue-spec.mjs - #18440
Conversation
size-split.mjs imported 14 names from admit.mjs while admit.mjs imported size-split.mjs. The spec and trust readers both need, plus splitChildBody (trustedSpecTexts calls it and it calls trustedTaskLines), move unchanged into intake-triage/issue-spec.mjs. size-split.mjs now imports nothing from admit.mjs; admit.mjs and size-split.mjs re-export the moved names their other importers still take from them. issue-spec.test.mjs walks the static imports to prove the cycle is gone. issue-spec.mjs joins the hold floor as enforcement, beside its importers. Reasons kept from deleted comments: - A model eval run spends subscription usage or promotional credits, which stop at a limit and never bill (owner direction 2026-11-02), so it goes to the host queue; only one naming a billing account (BILLED) can bill the owner, so it is an owner decision. unrunnableCriteria tries a paid eval first so a billed eval on a named host still reaches the owner. - A live Claude Code CLI run is unrunnable: the lane's Bash runs only named wrappers, and a nested CLI gets no credential. - A comment in place of a file change is unrunnable: resolve-issue cannot write the tracker, and its pull request is the deliverable. - unrunnableRulesOf throws on a malformed rules file so admission fails closed rather than admit an item a row holds. - specOf reads the first SPEC_COMMENTS (100) comments because pr-verify reads those and stops on an issue with more. - refinementSpec counts only the newest lanes App refinement, and only while unedited; resolve-pr.mjs linkedIssues shares the rule and also requires the comment to predate the pull request. - personChecks honors a split record only when its items are exactly the ones the lane cannot perform and at least one is left, so a record never drops a runnable criterion; the body is never edited. - plainText drops invisible characters because a copied refinement breaks :// and www. with a zero-width space so no link renders. - trustedSpecTexts counts the texts pr-verify reads as spec; no other Bot or App text counts except a size-split sub-issue body. - vendoredDriftSpecText names no skill or script, so a new vendored row needs no change to the spec text. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated hold-floor blocks taken from main and regenerated with scripts/sync-hold-floor.py; floor pins recomputed as main's counts plus the branch's issue-spec.mjs enforcement row (classes 162, enforcement 66, review 66). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated hold-floor blocks taken from main and regenerated with scripts/sync-hold-floor.py; floor pins recomputed as main's counts plus the branch's issue-spec.mjs enforcement row (classes 165, enforcement 67, review 67). Test-scope lines keep main's paths plus issue-spec.mjs; engine-d.test.sh also scopes resolve-config predicate.mjs and vocabulary.mjs, which the suite reads. 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: #18440, refactor(ci): break the admit and size-split import cycle with issue-spec.mjsNo findings. I read all 19 changed files in What I checked
I did not run anything. The author's test results (3216 pass, Closing issue: none. The PR says it closes no issue, so there are no acceptance criteria to check. Loosened checks. None found. The pin changes in Plugin manifests: the diff changes none. Verifier dropped 0 of 0 candidates. |
|
claude-security-review reviewed Security review: PR #18440, the admit / size-split import-cycle refactorI found no security issues. I read all 19 changed files in full. What changed. The spec and trust readers move unchanged from
What the moved code still reads.
Trust controls.
Other checks. Prior findings: none (this is the lane's first review of the PR). The PR description contains no embedded instructions aimed at the lane. critical-findings: 0 |
No related issue: candidate 14 of an
/architecture:improvedeepening pass over the CI lanes, run in a local session.Summary
intake-triage/size-split.mjsimported 14 names fromadmit.mjswhileadmit.mjsimportedsize-split.mjs: an import cycle between the admission gate and the split rules.Fix
specOf,personChecks,taskItems,withoutItems,taskLinesOf,trustedTaskLines,parentOfand their helpers), the drift spec readerstrustedSpecTextscalls, andsplitChildBodywith its helpers (it callstrustedTaskLines) move unchanged into the new.github/scripts/intake-triage/issue-spec.mjs: 81 declarations, 605 lines out ofadmit.mjs. The moved code is byte-identical apart from comments andexporton 7 helpersadmit.mjsstill needs.decide, charge detection,driftIssueId,driftShapedandauthorTruststay inadmit.mjs.size-split.mjsimports nothing fromadmit.mjs.admit.mjs(37 names) andsize-split.mjs(8 names) re-export the moved names, so their other importers do not change.resolve-pr.mjs,write-issue.mjs,check-blockers.mjsandrefine.mjsimport fromissue-spec.mjs.issue-spec.mjsjoins the hold floor asenforcement, the class of its importers;sync-hold-floor.pyregenerated the floor copies and the pins moved. No workflow sparse-checkout or copy list names these modules, so no trust path changes.Reasons kept from deleted comments
unrunnableCriteriatries a paid eval first so a billed eval on a named host still reaches the owner.unrunnableRulesOfthrows on a malformed rules file so admission fails closed rather than admit an item a row holds.specOfreads the firstSPEC_COMMENTS(100) comments because pr-verify reads those and stops on an issue with more.refinementSpeccounts only the newest lanes App refinement, and only while unedited;resolve-pr.mjslinkedIssuesshares the rule and also requires the comment to predate the pull request.personCheckshonors a split record only when its items are exactly the ones the lane cannot perform and at least one is left, so a record never drops a runnable criterion; the body is never edited.plainTextdrops invisible characters because a copied refinement breaks://andwww.with a zero-width space so no link renders.trustedSpecTextscounts the texts pr-verify reads as spec; no other Bot or App text counts except a size-split sub-issue body.vendoredDriftSpecTextnames no skill or script, so a new vendored row needs no change to the spec text.Verification
issue-spec.test.mjswalks the static imports:size-split.mjsreachesissue-spec.mjsbut notadmit.mjs, andissue-spec.mjsreaches neither. Re-adding anadmit.mjsimport tosize-split.mjsfails it.node --test --test-concurrency=4over the size-split (withsplit-child.vectors.json), admit, refine, resolve-pr, write-issue, check-blockers and other importer suites: 3216 pass, 0 fail. The floor and trust Python suites pass.plan-test-lanes.sh --base origin/mainendsunmapped=0; the can't-fail scan passes on the 3 changed test files.Follow-ups
label-unblocked,fix-ci-context,apply-verdict, tests, and node calls in the Python and shell suites) can point atissue-spec.mjsdirectly so the re-exports drop; prose namingadmit.mjs specOforsize-split.mjs splitChildBody(babysit_verify_evidence.pydocstrings,pr-pipeline.schema.json:1187) still resolves through them.Related
Part of the
.githubdeepening series; follows #18349 (size-split module) and #18432 (lane vocabulary).🤖 Generated with Claude Code