You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Defects and hygiene items found while reviewing #3434 and in the external repo review. Each was checked against the current tree.
Scripts
.specify/scripts/bash/migrate-specs.sh: cp -a "$source_entry" "$TARGET_DIR/" copies into an existing directory of the same name (.github/specs/foo/foo); verification then fails and the migration rolls back.
.specify/scripts/bash/create-new-feature.sh: the case "$SPECS_DIRECTORY" guard duplicates read_specs_directory in common.sh and can never fire.
scripts/validation/lib/dedup-engine.js: calculateHash() duplicates SkillsCatalog.calculateFileHash and is unused; the checked set is keyed on the content-hash pair, dropping near-duplicate pairs for exact duplicates.
scripts/validation/phase-5-skills-audit.js: generateDeduplicationAudit(catalog, skills) never uses skills.
Hooks and indexes
.claude/hooks/validate-pr-merge.sh exists but .claude/settings.json only wires SessionStart. Wire it, and add a check that every hook file is referenced.
Correction: the first script item above is wrong, and I have tested two related review claims.
migrate-specs.sh nesting: false. GNU cp -a src/dup target/ merges into an existing target/dup; it does not create target/dup/dup. A sandbox run with the same directory in source and target migrated correctly and verification passed.
cmd || rollback defeating set -e (raised in review on refactor: changelog-agent - establish quality framework and spec 015 structure #3434): false. Under set -e, a failing rollback at the end of a || list, or as a plain command in an if body, stops the script with exit 1. Confirmed with a minimal reproduction and with the real script (unreadable source file: exit 1, source intact, nothing left behind, no "Migration complete").
changed the title [-]fix: validation script defects, unwired merge hook and vendored caches[/-][+]fix: validation-scripts - Repair defects, merge hook and vendored caches[/+]on Nov 24, 2026
Activity
linear-code commentedon Sep 23, 2026
LS-4236
eleshar commentedon Sep 23, 2026
Correction: the first script item above is wrong, and I have tested two related review claims.
migrate-specs.shnesting: false. GNUcp -a src/dup target/merges into an existingtarget/dup; it does not createtarget/dup/dup. A sandbox run with the same directory in source and target migrated correctly and verification passed.cmd || rollbackdefeatingset -e(raised in review on refactor: changelog-agent - establish quality framework and spec 015 structure #3434): false. Underset -e, a failingrollbackat the end of a||list, or as a plain command in anifbody, stops the script with exit 1. Confirmed with a minimal reproduction and with the real script (unreadable source file: exit 1, source intact, nothing left behind, no "Migration complete").The other items still stand.
[-]fix: validation script defects, unwired merge hook and vendored caches[/-][+]fix: validation-scripts - Repair defects, merge hook and vendored caches[/+]