Repository navigation
Enforce TDD on Angular files and bring Windsurf to Angular parity - #26
Merged
Merged
Conversation
- TDD hooks cover Angular production files (*.ts/html/scss/css under src/, except *.spec.ts); files-in-scope hook covers *.spec.ts - Windsurf: five Angular agent workflows and a frontend-code rule - Copilot frontend instructions gain the TDD precondition - guardrail globs use a **/ prefix so they apply in multi-module repos and frontend/ subdirectories - check-parity.sh also checks agents, commands and guardrails per platform - tests, docs and changelog updated
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Step 5b of the review: Angular TDD enforcement and Windsurf parity for the Angular agents.
TDD hooks now cover Angular
Before,
block-impl-without-failing-test.shonly fired on*/src/main/*, so Angular production code could be edited without a failing test.*.ts,*.html,*.scss,*.cssundersrc/, except*.spec.ts/*.test.ts) now need a recorded red step (red_at,red_failure_excerpt) and must be infiles_in_scope. This includessrc/main.tsandsrc/styles.css.enforce-files-in-scope.shnow checks*.spec.tsas well assrc/test/**.node_modules/, plus files outsidesrc/such asangular.jsonandpackage.json.angular-test-engineeragent (all three platforms) now lists the.tdd-state.jsonfields the hook requires.Windsurf parity
.windsurf/workflows/angular-{architect,test-engineer,implementer,validator,code-reviewer}.md. The bodies are identical to the Claude agents. Windsurf's/buildalready delegated to these agents, but they didn't exist..windsurf/rules/frontend-code.md, which mirrors the Copilot frontend instructions.frontend-code.instructions.mdgained an explicit TDD-precondition block, likeproduction-code.instructions.md.Guardrail globs
Copilot
applyToand Windsurfglobsweresrc/main/**,src/test/**andsrc/**, which match only at the repo root. Guardrails therefore never applied in multi-module repos or to an Angular app underfrontend/. They now use**/src/....Parity check
tools/check-parity.shnow also checks that every agent, slash command and guardrail exists on all three platforms (Claude agents/commands ↔ Copilot chatmodes/prompts ↔ Windsurf workflows; Copilot instructions ↔ Windsurf rules). It would have caught the missing Windsurf Angular workflows.Testing
tests/run.sh: 12 new Angular hook cases, 91 total. They pass on bash 3.2 and 5.frontend-code.mdis removed.