Skip to content

chore: reconcile skill-mirror divergences (8 diverged, 10 missing across the 3 roots) #738

Closed

Description

@admarble

Problem

scripts/check-skill-sync.ts reports widespread drift across the three skill mirror roots (.claude/skills/, templates/skills/, skills/): 24 synced, 8 diverged, 10 missing (42 total). Because sequant init/sync regenerate from the templates/skills mirrors, divergence means downstream installs can receive stale or missing skill content. This is pre-existing debt, surfaced while resolving #733 (whose own qa/exec SKILL.md edits are correctly 3/3 synced) — it is unrelated to #733 and was deliberately kept out of PR #737 to keep that diff focused.

Current divergences (as of main @ 2026-06-22)

Diverged (content differs across roots):

  • improve/SKILL.md — .claude/skills: 672 | skills: 659
  • loop/SKILL.md — .claude/skills: 504 | templates/skills: 406 | skills: 406
  • qa/references/code-review-checklist.md — .claude/skills: 66 | skills: 67
  • qa/references/quality-gates.md — .claude/skills: 467 | templates/skills: 180 | skills: 138
  • qa/references/testing-requirements.md — .claude/skills: 150 | templates/skills: 110 | skills: 110
  • qa/scripts/quality-checks.sh — .claude/skills: 735 | templates/skills: 669 | skills: 669
  • security-review/SKILL.md — .claude/skills: 362 | skills: 363
  • security-review/references/security-checklists.md — .claude/skills: 433 | skills: 380

Missing in one or more mirrors:

  • _shared/references/force-push.md (templates/skills, skills)
  • _shared/references/prompt-templates.md (skills)
  • qa/references/anti-pattern-detection.md (templates/skills, skills)
  • qa/references/call-site-review.md (templates/skills, skills)
  • qa/references/semgrep-rules.md (skills)
  • qa/references/test-quality-checklist.md (templates/skills, skills)
  • references/shared/framework-gotchas.md (templates/skills, skills)
  • release/SKILL.md (templates/skills, skills)
  • test/references/browser-testing-patterns.md (templates/skills, skills)
  • upstream/SKILL.md (templates/skills, skills)

Acceptance Criteria

  • AC-1 — Establish/confirm the canonical source root (.claude/skills/ is the working copy in this repo; templates/skills/ + skills/ are mirrors) and document the direction in the sync script or CONTRIBUTING.
  • AC-2 — Reconcile all 8 diverged files so check-skill-sync.ts reports 0 diverged. Each reconciliation reviewed for intentional vs accidental drift (some .claude/skills files are substantially longer — confirm the extra content should propagate, not be dropped).
  • AC-3 — Resolve the 10 missing files (copy into the mirrors, or intentionally exclude with a documented allowlist in the sync script).
  • AC-4 — check-skill-sync.ts passes clean in CI (consider gating CI on it if not already).

Notes

  • This is a content-reconciliation task requiring per-file judgment (longest ≠ always canonical). Not mechanical.
  • Three-directory sync is a recurring maintenance hazard; an enforced CI gate (AC-4) is the durable fix.

Activity

  1. added
    refactor
    on Jun 22, 2026
  2. admarble commented on Jun 22, 2026

    @admarble
    ContributorAuthor

    Complexity: Complex (4 ACs, ~5 directories: .claude/skills/, templates/skills/, skills/, scripts/, .github/workflows/)

    AC Quality Check

    All 4 ACs are scoped and measurable. The repo AC-parser parsed 0 (issue uses - [ ] **AC-1** — em-dash format; parser expects **AC-1:** colon form — minor parser gap, not a blocker for this plan; worth a follow-up).

    • AC-1 — slightly open-ended ("Establish/confirm ... document the direction"). The direction is already documented in scripts/check-skill-sync.ts:6 (Source of truth: .claude/skills/). Tighten AC-1 to "confirm + add a CONTRIBUTING/contributor-facing note + a documented exclude allowlist."
    • AC-2/AC-3 — measurable (0 diverged, all missing resolved). Good. AC-2 correctly flags the judgment requirement.
    • AC-4 — measurable (check-skill-sync green in CI). Good.

    Scope Assessment

    Non-Goals: ⚠️ No Non-Goals section in the issue. Recommend adding: not re-architecting the 3-mirror model into build-time single-source generation (that's the durable fix — see Open Questions); not editing skill content semantics beyond reconciliation.

    Metric Value Status
    Feature count 1 (sync reconciliation + CI gate) ✅
    AC items 4 ✅
    Directory spread ~5 (3 skill roots + scripts + CI) ⚠️

    Verdict: ✅ SCOPE_OK — single coherent goal. Breadth is in content files touched, not in distinct features. Keep the architectural redesign out (follow-up issue).


    Acceptance Criteria

    AC-1: Confirm + document canonical source direction

    Verification: Manual Test (+ grep assertion)
    Scenario: Given the repo → When a contributor opens scripts/check-skill-sync.ts / CONTRIBUTING → Then .claude/skills/ is named as source of truth and templates/skills/ + skills/ as mirrors, with the documented exclude allowlist.
    Assumptions: .claude/skills/ is canonical even where it is shorter than a mirror — confirmed by evidence: qa/references/code-review-checklist.md .claude version carries the #265/#309 "prefer Grep tool over bash" refactor; mirror still has the stale bash loop.

    AC-2: Reconcile all 8 diverged files → 0 diverged

    Verification: Integration Test (CLI: check-skill-sync.ts exits 0 / "0 diverged") + Manual (per-file diff review)
    Scenario: Given 8 diverged files → When each diff is reviewed and .claude/skills content propagated to mirrors (after confirming no intentional mirror-only content is dropped) → Then check-skill-sync.ts reports 0 diverged.
    Assumptions: Direction is uniformly .claude/skills → mirrors (validated: loop/SKILL.md got the #502 edit in .claude but mirrors lagged). One line needs a human decision: the mirror-only - Task entry in security-review/SKILL.md (mirror is +1 line) — confirm it drops, not back-propagates.

    AC-3: Resolve all 10 missing files

    Verification: Integration Test (CLI: 0 missing among content files) + Manual (allowlist review)
    Scenario: Given 10 files present in .claude/skills but missing in ≥1 mirror → When each is copied into the mirrors OR added to a documented exclude allowlist in the script → Then check-skill-sync.ts reports 0 missing (excluded files are not counted).
    Assumptions: All 10 are legitimate skill content to propagate. The transient .sequant/.token-usage-*.json under .claude/skills/ (git-ignored, local-only) is a false positive the script currently surfaces — fix via dotfile/dot-dir skip so it never gates locally or in CI.

    AC-4: check-skill-sync.ts passes clean in CI (gate it)

    Verification: Integration Test (CI step runs script, exits 0)
    Scenario: Given a PR → When CI runs the new npm run lint:skill-sync step → Then it fails on any future drift and passes when synced.
    Assumptions: Slots into the existing skills-validation job in ci.yml right after "Lint skill calls" (ci.yml:122-123), mirroring the lint:skill-calls pattern.


    Implementation Plan

    Phase 1: Harden the sync script (enables a durable AC-4)

    1. scripts/check-skill-sync.ts — add an exclude allowlist const (documented) + skip dotfiles/dot-directories in collectFiles() (kills the .sequant/.token-usage-*.json false positive). This is the only new logic in the issue.
    2. Add package.json script: "lint:skill-sync": "npx tsx scripts/check-skill-sync.ts" (mirrors lint:skill-calls).

    Phase 2: Reconcile content (the judgment work — AC-2 + AC-3)

    1. Review each of the 8 diverged diffs (diff .claude/skills/<f> vs each mirror). Default direction .claude/skills → mirrors. Flag/decide the security-review/SKILL.md - Task line before propagating.
    2. Review each of the 10 missing files; decide copy-into-mirrors (default) vs allowlist-exclude.
    3. Apply with npx tsx scripts/check-skill-sync.ts --fix (copies .claude/skills → mirrors for all non-synced; creates parent dirs). Then re-run without --fix to confirm 0 diverged, 0 missing.
      • ⚠️ Run --fix only after step 3/4 review — blind --fix would overwrite any legitimately-mirror-only content.

    Phase 3: Document + gate (AC-1 + AC-4)

    1. Confirm/strengthen the source-of-truth note in check-skill-sync.ts header and add a short contributor note (CONTRIBUTING or the script) + document the exclude allowlist.
    2. ci.yml — add step after line 123: - name: Check skill sync / run: npm run lint:skill-sync.

    Design Review

    1. Where does this logic belong? The exclude/dotfile-skip belongs in scripts/check-skill-sync.ts (the single authority). The gate belongs in the existing skills-validation job in ci.yml. Content lives in the 3 skill roots; .claude/skills is owner.
    2. Simplest correct approach? Use the existing --fix for mechanical propagation; overlay human diff-review before running it. Don't build new tooling. Rejected: a brand-new reconcile script (the existing one already does copy + parent-dir creation).
    3. Existing pattern? lint:skill-calls (scripts/lint-skill-calls.ts + npm script + ci.yml:122-123) is the exact precedent for a script-backed CI lint gate. Follow it verbatim.
    4. What would a senior reviewer challenge? "Why reconcile 3 copies forever instead of generating mirrors from one source?" — valid; that's the durable fix, deliberately scoped out here as a follow-up (Open Questions). Also: "Did you confirm .claude is canonical even when shorter?" — yes, evidenced (Audit skill prompts: prefer dedicated tools over bash for file operations #265/refactor(#265): prefer dedicated tools over bash for file operations #309 refactor in code-review-checklist).

    Feature Quality Planning

    All standard checks pass. Notable items:

    • False-positive robustness (gap): script has no ignore filter — git-ignored/transient dotfiles (.sequant/.token-usage-*.json) are reported as "missing". Must skip dotfiles for AC-4 to be trustworthy locally. (In a fresh CI checkout the file is absent since git-ignored, so CI itself won't flake — but local DX and correctness warrant the fix.)
    • Idempotency: after reconciliation, re-running --fix must be a no-op; verify 0 fixed on second run.
    • Allowlist documentation (AC-3): any excluded file must be enumerated + justified inline, or future contributors will "fix" it back.

    Derived ACs

    Source Derived AC Priority
    Robustness AC-5: check-skill-sync.ts skips dotfiles/dot-dirs and documented allowlist entries (no false-positive "missing") Medium

    Open Questions

    1. Eliminate 3-way duplication entirely? — Recommendation: keep this issue scoped to reconcile + CI gate; file a follow-up to generate templates/skills/ + skills/ from .claude/skills/ at build/release time (removes the recurring hazard at its root). Impact if ignored: drift recurs; the CI gate just detects it, contributors still hand-sync 3 copies.
    2. security-review/SKILL.md - Task line — Recommendation: drop it (treat .claude as canonical) unless it's a deliberate mirror-only tool grant. Impact if wrong: a tool is silently removed from the agent's allowed list in the downstream-installed skill.

    Recommended Workflow

    Phases: spec → testgen → exec → qa
    Quality Loop: enabled (refactor label + content-judgment task → adversarial QA valuable; AC-2 explicitly needs per-file verification)
    Reasoning: AC-3/AC-4 add real script logic (exclude allowlist + dotfile-skip) with Integration-Test verification → testgen stubs that logic before implementation. The bulk (content reconciliation) is mechanical-with-judgment; QA must verify 0 diverged / 0 missing and that no intentional content was dropped (per AC-2). No UI → no test phase. Not security-sensitive in the auth/payments sense (skip security-review).


    Label Review

    Current: refactor
    Recommended: refactor, chore (and consider tech-debt if it exists)
    Reason: Content reconciliation + tooling/CI hardening — refactor fits; chore matches the title prefix.
    Quality Loop: Will auto-enable under SCOPE_WARNING-adjacent breadth + refactor label; recommended ON regardless given the per-file judgment in AC-2.

    → gh issue edit 738 --add-label chore

  3. added
    planned
    on Jun 22, 2026
  4. admarble commented on Jun 22, 2026

    @admarble
    ContributorAuthor

    Implementation Progress (/exec)

    PR: #742

    AC Coverage

    AC Source Status Evidence
    AC-1 Original ✅ Implemented CONTRIBUTING.md "Skill mirror sync" section + strengthened check-skill-sync.ts header documenting .claude/skills/ canonical → mirrors
    AC-2 Original ✅ Implemented 8 diverged → 0. Per-file review done. quality-checks.sh merged (kept #310 tautology detection + restored #278/#303 cache-metrics JSON writer). - Task grant dropped from security-review mirror (canonical has no Task usage).
    AC-3 Original ✅ Implemented 10 missing → 0; all copied into mirrors
    AC-4 Original ✅ Implemented npm run lint:skill-sync + CI step in ci.yml (after lint:skill-calls), exits 0 on clean / 1 on drift
    AC-5 Derived (Robustness) ✅ Implemented collectFiles skips dotfiles/dot-dirs (kills .sequant/.token-usage-*.json false positive) + documented EXCLUDE allowlist

    Final check: 42 synced, 0 diverged, 0 missing (exit 0), idempotent on re-run.

    Key reconciliation judgment (AC-2)

    The only file that was not a clean .claude → mirror copy: qa/scripts/quality-checks.sh had genuine bidirectional drift — .claude uniquely had test-tautology detection (#310), the mirrors uniquely had the #278/#303 structured cache-metrics JSON writer that worktree-manager.ts:444 reads to populate PhaseLog.cacheMetrics (shown by sequant logs). A blind copy would have dropped a live observability feature. Resolved by merging both into canonical .claude first, then propagating. Verified the cache-metrics JSON shape matches CacheMetricsSchema (hits/misses/skipped).

    Files changed

    • Logic: scripts/check-skill-sync.ts (dotfile/dot-dir skip, EXCLUDE allowlist, exports + main-guard), package.json (lint:skill-sync)
    • CI / docs: .github/workflows/ci.yml, CONTRIBUTING.md, CHANGELOG.md
    • Tests: scripts/check-skill-sync.test.ts (unit), __tests__/integration/skill-sync.integration.test.ts (whole-repo guard)
    • Content: 30 skill-mirror files across .claude/skills/, templates/skills/, skills/

    Quality Plan Alignment

    Dimension Status Notes
    False-positive robustness ✅ Dotfile/dot-dir skip implemented (AC-5)
    Idempotency ✅ Second --fix = "Nothing to fix — all files synced"
    Allowlist documentation ✅ EXCLUDE documented inline; empty by design (dotfiles handled structurally)

    Derived ACs: 1/1 (AC-5) addressed.

    Checks

    • npm run build ✅ · npm run lint ✅ · npm run lint:skill-sync ✅ (exit 0)
    • New tests: 8 pass · batch-executor.test.ts (cache-metrics consumer) 39 pass · existing behavior-rule-skill-sync 6 pass · bash -n clean on all 3 quality-checks.sh

    Known follow-ups (out of scope, flagged for triage)

    1. Durable fix: generate templates/skills/ + skills/ from .claude/skills/ at build/release time to eliminate hand-syncing 3 copies (spec Open Question feat: Complete remaining v1.0 features (AC-10, AC-13, AC-14) #1).
    2. npm run sync:skills direction bug: it copies templates/skills/* → .claude/skills/ — the reverse of canonical. Left untouched to avoid changing contributor workflow in this PR; worth a dedicated fix.
  5. added a commit that references this issue on Jun 22, 2026
  6. admarble commented on Jun 22, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #738

    Reviewed at commit 8754bc1 · PR #742 · all 8 CI checks green

    ⚠️ QA caught a real regression and it was fixed during this pass. The first exec commit (cd71ccc) reconciled the mirrors correctly per the sync model, but propagating references/shared/framework-gotchas.md introduced a new top-level references/ dir into skills/ and templates/skills/. Both CI validators treat every top-level dir except _shared/ as a skill, so they failed (references/SKILL.md missing). Fixed in 8754bc1 by skipping references/ alongside _shared/ in both jobs + the validate:skills npm script. CI is now fully green.

    AC Coverage

    AC Source Description Status Notes
    AC-1 Original Confirm + document canonical source root ✅ MET CONTRIBUTING.md "Skill mirror sync" section names .claude/skills/ canonical, mirrors generated outward; check-skill-sync.ts header strengthened; EXCLUDE allowlist documented
    AC-2 Original Reconcile 8 diverged → 0 ✅ MET check-skill-sync.ts reports 0 diverged. Per-file review done; quality-checks.sh merged (kept #310 tautology detection + restored #278/#303 cache-metrics writer — verified live consumer at worktree-manager.ts:444); - Task grant dropped from security-review (body has zero Task usage; mirror now validates)
    AC-3 Original Resolve 10 missing → 0 ✅ MET 0 missing; all 10 propagated. Surfaced + fixed the latent references/ validator gap
    AC-4 Original check-skill-sync.ts passes clean in CI (gated) ✅ MET npm run lint:skill-sync step added to ci.yml; passing in CI; exits 0 clean / 1 on drift
    AC-5 Derived (Robustness) Skip dotfiles/dot-dirs + documented allowlist ✅ MET collectFiles skips dotfiles/dot-dirs (kills .sequant/.token-usage-*.json false positive); EXCLUDE allowlist exported + documented; 6 unit tests

    Coverage: 5/5 AC items met (4 original + 1 derived).


    CI Status

    Check State Impact
    Plugin Structure Validation ✅ pass (was fail) MET
    validate-skills ✅ pass (was fail) MET
    build (22.x) ✅ pass MET
    typecheck · node-floor-guard · validate-plugin · Hooks Validation · Setup Directory Creation ✅ pass MET

    CI Summary: 8 passed, 0 pending, 0 failed. AC-4 (clean CI) verified green at HEAD.


    Quality Metrics

    Metric Value Status
    Type issues (any) in logic files 0 OK
    Deleted tests 0 OK
    Files changed 39 OK (33 are mechanical mirror copies)
    Lines added / deleted +7012 / -137 OK (bulk = mirror content)

    Test Coverage Analysis

    Changed logic file Tier Has Tests?
    scripts/check-skill-sync.ts Standard ✅ scripts/check-skill-sync.test.ts (6) + __tests__/integration/skill-sync.integration.test.ts (2)
    quality-checks.sh (merge) Standard ✅ consumer covered by batch-executor.test.ts (39 pass); bash -n clean across 3 roots

    Coverage: logic changes have direct + integration tests; 8/8 new tests pass.


    Execution Evidence

    Command Result
    npm run lint:skill-sync ✅ 42 synced, 0 diverged, 0 missing, exit 0 (idempotent)
    npm run validate:skills ✅ all skills valid, exit 0
    npx vitest run (new tests) ✅ 8/8 pass

    Evidence status: Complete.

    Script Verification Override

    Override: Yes · Justification: Equivalent automated test coverage — skill-sync.integration.test.ts executes the modified script end-to-end and asserts 0 diverged / 0 missing + exit 0. · Risk: Low.


    Detection Pattern Verification

    Not Required (by provenance). The changed mirror .md files contain grep/awk/jq literals in added lines, but check-skill-sync confirms 0 diverged — every such line is byte-identical to the canonical .claude/skills/ source already in active use in this repo. No new detection pattern was authored; this is mechanical propagation of already-reviewed canonical content, so there is no new pattern to verify against a corpus.

    Skill Command Verification

    Passed (by provenance). Same reasoning — propagated commands are byte-identical to canonical. The one authored change (quality-checks.sh merge) is shell, syntax-validated (bash -n) across all 3 roots, and its cache-metrics.json output matches CacheMetricsSchema (hits/misses/skipped).


    CHANGELOG Verification

    Check Status
    CHANGELOG.md exists ✅
    User-facing change (fix(#738):) ✅
    [Unreleased] entry for #738 ✅ Present (Fixed)

    Risk Assessment

    • Likely failure mode: Future drift between the 3 roots — mitigated by the new CI gate. The durable fix (generate mirrors from canonical at build time) remains a documented follow-up.
    • Not tested: Skill content is prose (not unit-tested per-file); covered by the whole-repo sync guard + script-logic unit tests — correct altitude.
    • Sibling sites considered: Scanned all skill-dir iteration sites. Three iterate the mirrors and assumed _shared-only (ci.yml, plugin-install-test.yml, validate:skills) — all three fixed. src/ sites (status.ts, skill-version.ts) iterate .claude/skills/ which already had references/ pre-PR → unaffected (no new behavior).
    • Sibling-line audit: The references/ skip is the only newly-needed exclusion; no adjacent call sites with the same root cause remain.

    Adversarial Re-Read

    Findings: No gaps found because: (1) fixtures — the issue's motivating target (8 diverged / 10 missing) is verified resolved to 0 diverged / 0 missing via the actual script; (2) evidence — exec evidence is post-fix state, not a bug repro; (3) process state — working tree clean, 0 behind origin/main, single feature branch; (4) sibling sites — cross-file scan complete (3 mirror-iterating sites fixed, src/ sites unaffected); (5) Non-Goals — no re-architecting of the 3-mirror model and no skill content-semantics edits beyond reconciliation (the quality-checks.sh merge restores an existing mirror feature, not new behavior).

    Status: Clean


    Verdict: READY_FOR_MERGE

    All 5 ACs met, CI fully green at 8754bc1, tests pass, quality clean, adversarial re-read clean. The QA pass caught and fixed a genuine CI regression introduced by the reconciliation; the fix is minimal and consistent with existing _shared/ handling.

    Documentation: Before merging, optionally run /docs 738 — though CONTRIBUTING + CHANGELOG are already updated as part of this PR.

    Next Steps

    1. Merge PR chore(#738): reconcile skill-mirror divergences (8 diverged, 10 missing) + CI gate #742.
    2. (Follow-up, out of scope) Consider generating templates/skills/ + skills/ from .claude/skills/ at build time to retire hand-syncing.
    3. (Follow-up) npm run sync:skills copies templates → .claude (reverse of canonical) — worth a dedicated fix.
  7. added
    ready-for-review
    on Jun 22, 2026
  8. admarble commented on Jun 22, 2026

    @admarble
    ContributorAuthor

    QA Review for Issue #738

    AC Coverage

    AC Description Status Notes
    AC-1 Establish/document canonical source root + direction MET .claude/skills/ documented as canonical in both scripts/check-skill-sync.ts header and a new CONTRIBUTING.md "Skill mirror sync" section, with the explicit "canonical even when a mirror is longer" rule.
    AC-2 Reconcile all 8 diverged → 0 diverged, per-file intentional-drift review MET check-skill-sync.ts now reports 0 diverged. Spot-checked previously-diverged files: canonical (longer) content propagated, not dropped. The one non-trivial case (qa/scripts/quality-checks.sh) was correctly merged — .claude's tautology detection (#310) + mirrors' cache-metrics writer (#278/#303) both present in all 3 roots (byte-identical, md5 0d9fb3b…).
    AC-3 Resolve 10 missing files (copy or documented allowlist) MET All 10 copied into the mirrors; check-skill-sync.ts reports 0 missing. Documented EXCLUDE allowlist escape hatch added (currently empty); dotfiles/dot-dirs now skipped structurally to kill the .token-usage-*.json false positive.
    AC-4 check-skill-sync passes clean in CI + CI gate MET New npm run lint:skill-sync step added to ci.yml (alongside lint:skill-calls). CI green on PR #742. Follow-up commit correctly excludes the new top-level references/ shared dir from the skill-validation loops in ci.yml + plugin-install-test.yml.

    Coverage: 4/4 AC items fully met


    Verification Evidence

    • npx tsx scripts/check-skill-sync.ts → 42 synced, 0 diverged, 0 missing (exit 0)
    • New tests: scripts/check-skill-sync.test.ts + __tests__/integration/skill-sync.integration.test.ts → 8 passed
    • CI (PR chore(#738): reconcile skill-mirror divergences (8 diverged, 10 missing) + CI gate #742): all 8 checks pass — validate-skills, Plugin Structure Validation, build (22.x), typecheck, node-floor-guard, validate-plugin, Hooks Validation, Setup Directory Creation
    • Cache-metrics consumer claim verified: src/lib/workflow/worktree-manager.ts reads the cache-metrics.json the merged script writes (line 736 of quality-checks.sh) — the merge restored real PhaseLog.cacheMetrics observability.

    Quality Metrics

    Metric Value Status
    Files changed 39 OK (mirror propagation)
    Lines added +7012 OK (mostly verbatim mirror copies)
    Lines deleted -137 OK
    Deleted tests 0 OK
    New tests 2 files / 8 cases OK

    Code Review

    Strengths:

    Issues: None blocking.

    Suggestions: None material.


    Detection Pattern Verification

    The mirror files contain grep/awk/jq literals, but they are verbatim propagations of already-canonical, already-shipped .claude/skills/ content — no net-new patterns are authored here. The corpus-drift risk §6c guards against does not apply to byte-for-byte mirror copies. Status: N/A (no net-new patterns authored).


    Risk Assessment

    • Likely failure mode: Future edits to a single root re-introduce drift — mitigated by the new CI gate that now fails the build on any divergence.
    • Not tested: No test asserts the content of each reconciled file is the canonical version (only that the three roots match); acceptable since the sync check + manual spot-check + the quality-checks.sh merge verification cover the intentional-drift concern.
    • Sibling sites considered: The CI skill-validation loops in both ci.yml and plugin-install-test.yml were both updated for the new references/ shared dir — the cross-file sibling was caught and fixed.
    • Sibling-line audit: N/A — reconciliation task, not a localized bug fix.

    Adversarial Re-Read

    Findings: No gaps found because: (1) ran check-skill-sync.ts to ground-truth 0 diverged / 0 missing rather than trusting the diff; (2) verified the one non-mechanical reconciliation (quality-checks.sh) is a real feature-preserving merge — both #310 and #278/#303 present, all 3 roots byte-identical, and the cache-metrics consumer in worktree-manager.ts confirmed live; (3) confirmed canonical (longer) content won for spot-checked diverged files, addressing the issue's "don't drop extra content" warning; (4) traced the references/ CI-exclusion follow-up to its cause (new top-level shared dir would fail the skill-validation loop) and confirmed both workflow files patched; (5) no Non-Goals expanded — diff is scoped to reconciliation + gate.

    Status: Clean


    Verdict: READY_FOR_MERGE

    All 4 ACs met. check-skill-sync.ts reports 0 diverged / 0 missing, CI is fully green on PR #742, new tests pass, and the only non-mechanical reconciliation (the quality-checks.sh 3-way merge) was verified to preserve both divergent feature sets. The durable CI gate (AC-4) closes the recurring drift hazard.

    Documentation

    Next Steps

    1. Merge PR chore(#738): reconcile skill-mirror divergences (8 diverged, 10 missing) + CI gate #742.
  9. added 2 commits that reference this issue on Jun 22, 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

    Labels

    plannedready-for-reviewrefactor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions