Skip to content

fix: validation-scripts - Repair defects, merge hook and vendored caches #3471

Open

Description

@eleshar

Part of #3464.

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.
  • Hand-kept indexes drift (for example skills/SKILL_REGISTRY.json); generate them from frontmatter (with task: skills - Conform all skills to the SKILL.md spec #3467).

Vendored content under agents/

Activity

  1. linear-code commented on Sep 23, 2026

    @linear-code
  2. eleshar commented on Sep 23, 2026

    @eleshar
    ContributorAuthor

    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").

    The other items still stand.

  3. 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions