Skip to content

Fix dead doc references, alias routing, red_at check and audit log ignore - #25

Merged
loiane merged 1 commit into
mainfrom
loiane/docs-cleanup-small-fixes
Nov 4, 2026
Merged

loiane merged 1 commit into
mainfrom
loiane/docs-cleanup-small-fixes

Conversation

@loiane

@loiane loiane commented Nov 4, 2026

Copy link
Copy Markdown
Owner

Summary

Step 5a of the review: the docs cleanup plus small hook and config fixes.

Docs that pointed at things that don't exist

  • The Copilot instructions said to apply shared/skills/.... There is no shared/, so they now point to .github/skills/....
  • docs/platform-mapping.md described a planned layout: shared/, guard-tdd instruction and rule files, .windsurf/rules/{skills,agents}/, .windsurf/mcp/, sync-platforms.sh, detect-stack.sh --mcp, and a Copilot chatmode that "excludes editFiles until red". I rewrote it to describe the real layout: the mapping table, guardrail files by scope, actual MCP config locations, and manual sync with parity enforced by CI.
  • docs/methodology.md no longer tells the agent to run the unimplemented detect-stack.sh --mcp.
  • The README pointed to docs/known-debt.md; it is now .specs/_known-debt.md. The brownfield example pointed to shared/maven/....

Alias hook (route-natural-language-aliases.sh)

  • It matched substrings anywhere in the prompt, so "How do I validate the request body?" routed to /validate and "Explain the code review rubric" routed to /review. Aliases now fire only when the prompt starts with the phrase; a polite lead-in such as "please", "can you", "let's" or "ok," is allowed.
  • Added the documented "implement T-NNN" / "build T-NNN" → /build T-NNN alias.
  • The JSON output is now built with jq instead of a heredoc.

TDD hook vs. docs

  • artifact-contract.md said red_at was required, but the hook never checked it, and it only checked red_failure_excerpt in the red phase. The hook now requires both in every phase where editing is allowed (red, green, refactor, simplify).
  • The Copilot and Windsurf guardrails said phase == "red" only, which would have told the implementer not to edit during green or refactor. All three platforms and the contract now state the same rule.

.gitignore

  • *.log was ignoring .specs/<feature>/.tdd-audit.log, the red-before-green audit trail. It is now un-ignored and documented in artifact-contract.md as a committed artifact.

Testing

  • tests/run.sh: 79 pass on bash 3.2 and 5. The new cases cover 12 alias prompts, including 4 that must not route, plus red_at and excerpt checks in the green and refactor phases.
  • shellcheck is clean, markdownlint reports 0 issues, lychee reports 0 errors, and parity is OK.

…nore

- docs: remove references to shared/, guard-tdd, .windsurf/rules/{skills,agents},
  .windsurf/mcp, sync-platforms.sh, detect-stack --mcp, docs/known-debt.md;
  rewrite platform-mapping.md to match the real layout
- alias hook: match only at the start of the prompt; add implement/build T-NNN
- TDD hook: require red_at and red_failure_excerpt in every editable phase;
  align guardrail docs on all three platforms
- .gitignore: stop ignoring .tdd-audit.log
- tests for the above
@loiane
loiane merged commit 27d8ac5 into main Nov 4, 2026
6 checks passed
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.

1 participant