Repository navigation
refactor(lib): simplify check-retirements, config-cascade and confirm-verdict shared libs - #15412
Conversation
Route the parser's record errors through one bad_record helper, fold the blank and comment line skips into one test, and turn if/die blocks into `cmd || die`. Output, exit codes and cleanup are unchanged. Refs: #14327 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
resolve() and readLayers() now share the plugin-name check, the convention-home and file-layer setup, the escaped-home layer and the layer-prefixed error recorder. fileState() loses its never-false repo flag and the symlink-following branch it guarded, and hasConfigBlock() reads through readText(). Values, provenance, layers, errors and legacy reports are unchanged. Refs: #14327 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
Write the verdict record with one printf over the verdict line and the item lines. The record file, exit codes and printed text are unchanged. Refs: #14327 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
The random suffix cb5f6caf contains "caf", which typos flags. Same fragment content under a new suffix. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH
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-security-review reviewed Security review: PR #15412, refactor of three shared lib sourcesI found no security issues in this pull request. Scope. I read every hunk of the three changed sources: What I checked:
PR context. It holds no embedded instructions aimed at this lane. Spend. None. critical-findings: 0 |
|
claude-review reviewed Code review: no findingsThis PR simplifies three of #14327's shared lib sources: Behavior checks (done by reading the code, nothing run)
Closing issue #14327
Other checks
|
Closes #14327
Summary
Simplifies three of #14327's six shared lib sources without changing their behavior:
lib/check-retirements.sh,lib/config-cascade.mjsandlib/confirm-verdict.sh. The other three are unchanged:lib/config-root.sh: a simplification nets about zero lines while touching its 33 copies and about 19 fragments.lib/check-convention-facts.mjs: already minimal; its read-all-then-print order is part of its behavior.lib/context-zone.fixtures.mjs: test data that two resolvers share.Built by hand rather than by the issue lane: the lane's patch was refused at the 262144-byte scan cap because these sources have regenerated copies under
plugins/(config-cascade.mjs about 20, check-retirements.sh 8). The hand build was agreed with the hub session.session: Simplify Planning
Fix
bad_record/invalidhelper, the blank and comment skips are one test, and if/die blocks arecmd || die. Bash 3.2-safe; printed text byte-identical.resolveandreadLayersshare the plugin check, home and stem setup, the escaped-home layer and the error-prefix recorder.fileState'srepoflag, which was never false, and the branch it guarded are gone;hasConfigBlockreads throughreadText. Exports, error text and error order unchanged.scripts/sync-shared-copies.shregenerated the copies; each carrier plugin has onebump: patchfragment. One fragment was renamed in a last commit because its random suffix tripped the typos check.Verification
lib/setup-apply.test.shhas 6 of 694 checks failing that also fail at base 42517b5.sync-shared-copies.sh --checkand--check-bump,sync-config-cascade-semantics.py --check(up to date, 82 surfaces), fragment--checkand--check-required, validate-plugin-contracts, shellcheck: clean.Related
🤖 Generated with Claude Code
https://claude.ai/code/session_01VQb9Q3tnh28AzDYZ8AUjhH