Skip to content

docs: audit fixes — nav orphans, stale refs, version sync, hygiene tests#509

Merged
bradygaster merged 3 commits intobradygaster:devfrom
diberry:squad/docs-audit-fixes
Mar 23, 2026
Merged

docs: audit fixes — nav orphans, stale refs, version sync, hygiene tests#509
bradygaster merged 3 commits intobradygaster:devfrom
diberry:squad/docs-audit-fixes

Conversation

@diberry
Copy link
Copy Markdown
Collaborator

@diberry diberry commented Mar 22, 2026

Summary

Full docs catalog audit and remediation — PAO audited 90+ pages, found 5 classes of issues, team fixed them all and added regression tests.

Changes

Fixes:

  • whatsnew.md updated from stale v0.8.2 → v0.8.25 + auto-sync script (scripts/sync-whatsnew-version.mjs)
  • insider-program.md rewritten from broken npx github: to current npm install path
  • 9 orphaned pages added to
    avigation.ts (FAQ, built-in-roles, vscode-troubleshooting, context-hygiene, cost-tracking, issue-templates, build-autonomous-agent, choose-your-interface, github-auth-setup)
  • 5 stale legacy root-level files deleted
  • Deprecated .ai-team/ and npx github: refs replaced in 10 scenario files

Automation:

  • scripts/sync-whatsnew-version.mjs — auto-syncs whatsnew.md version heading on every build
  • Wired into package.json prebuild hook

Tests (6 new):

  • test/whatsnew-version-sync.test.ts — version heading matches package.json
  • 5 docs hygiene guards in test/docs-build.test.ts: orphan detection, dead nav links, stale root files, deprecated install commands, deprecated directory refs
  • Allowlists for migration/blog historical content

Skill:

  • .squad/skills/docs-catalog-audit/SKILL.md — reusable 7-step audit methodology

Test results

  • 28/28 docs-build tests ✅
  • 1/1 whatsnew-version-sync ✅

squad obo dina

diberry pushed a commit to diberry/squad that referenced this pull request Mar 22, 2026
…nav sanity checks

scripts/sync-whatsnew-version.mjs:
- Wrap readFileSync/writeFileSync in try/catch with actionable error messages
- Validate pkg.version is a non-empty string before use; exit 1 if missing/invalid
- Tighten CURRENT_RELEASE_RE regex from [\d.][\d.]* to \d+\.\d+\.\d+ (proper semver)

test/whatsnew-version-sync.test.ts:
- Match script: tighten regex capture group to \d+\.\d+\.\d+ (semver)

test/docs-build.test.ts:
- getNavSlugs() now throws if it returns 0 slugs (guards against silent format change in navigation.ts)
- Add 'allowlists contain only files that exist on disk' test — stale allowlist entries now fail CI

All 30 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry
Copy link
Copy Markdown
Collaborator Author

diberry commented Mar 22, 2026

Hey @bradygaster — this is ready for your review. squad obo dina

Summary: Full docs catalog audit and remediation. PAO audited 90+ pages, found 5 classes of issues, team fixed them all and added regression tests.

Reviewed by: Flight (approve), CONTROL (request changes → fixed by EECOM → approve on re-review)

30/30 tests green. 4 commits, no .squad/ files in the diff.

Copilot AI added 3 commits March 22, 2026 15:21
- Fix whatsnew.md stale version (v0.8.2 → v0.8.25) + auto-sync script
- Rewrite insider-program.md install commands to current npm path
- Add 9 orphaned pages to navigation.ts (FAQ, built-in-roles, etc.)
- Delete 5 stale legacy root-level files via git rm
- Replace deprecated .ai-team/ and npx github: refs in 10 scenario files
- Add 5 docs hygiene regression tests (orphan guard, dead links, stale roots, deprecated commands/dirs)
- Add LEGACY_DIR_ALLOWLIST and LEGACY_INSTALL_ALLOWLIST for migration/blog historical content
- Add docs-catalog-audit skill for repeatable audits

squad obo dina

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Clarify that versions before v0.8.0 were GitHub-only and npm distribution
began at v0.8.0. Added a callout block after the Quick Reference table and
a version boundary sentence in Scenario 5.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…nav sanity checks

scripts/sync-whatsnew-version.mjs:
- Wrap readFileSync/writeFileSync in try/catch with actionable error messages
- Validate pkg.version is a non-empty string before use; exit 1 if missing/invalid
- Tighten CURRENT_RELEASE_RE regex from [\d.][\d.]* to \d+\.\d+\.\d+ (proper semver)

test/whatsnew-version-sync.test.ts:
- Match script: tighten regex capture group to \d+\.\d+\.\d+ (semver)

test/docs-build.test.ts:
- getNavSlugs() now throws if it returns 0 slugs (guards against silent format change in navigation.ts)
- Add 'allowlists contain only files that exist on disk' test — stale allowlist entries now fail CI

All 30 tests pass.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@diberry diberry force-pushed the squad/docs-audit-fixes branch from 18fe06d to 5f2cf71 Compare March 22, 2026 22:21
@bradygaster bradygaster merged commit 51c573e into bradygaster:dev Mar 23, 2026
0 of 2 checks passed
chrislomonico pushed a commit to clomonico/squad that referenced this pull request Mar 26, 2026
…radygaster#540)

Wires 5 ghost commands: hire→init, heartbeat→doctor, shell→REPL, loop→triage, run→stub with redirect.

Closes bradygaster#501, Closes bradygaster#503, Closes bradygaster#504, Closes bradygaster#507, Closes bradygaster#509

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants