Skip to content

docs: codify recurring Phase 0-3 review findings as agent rules#73

Merged
astar-development-jb merged 1 commit into
mainfrom
docs/review-lessons
Jul 6, 2026
Merged

docs: codify recurring Phase 0-3 review findings as agent rules#73
astar-development-jb merged 1 commit into
mainfrom
docs/review-lessons

Conversation

@jaybarden1

Copy link
Copy Markdown
Contributor

Summary

Analysis of c-sharp-reviewer findings across Phases 0–3 (PRs #69#72) showed four repeated mistake classes. This codifies them as rules so the agents stop repeating them:

  1. Silent behaviour deviations in behaviour-frozen refactors (Phase 3: concurrent Task.WhenAll href fetch, empty-header error path, exception-type change; Phase 0: unreproducible B5 claim) → new REFACTOR RULES section in CLAUDE.md: frozen = no observable change incl. concurrency/exception types/error paths; deviations must be test-pinned, declared in a DEVIATIONS section, and approved.
  2. New public APIs without guard clauses (Phase 0, Phase 3 ×2) → mandatory item in new c-sharp-dev pre-report self-review checklist.
  3. Incomplete consistency sweeps within the same PR (Phase 1 style misses, Phase 2 leftover magic numbers, Phase 3 var/ConfigureAwait inconsistency) → full-diff grep sweep required before the dev agent reports done.
  4. Mirror-type API parity + pinning-test gaps (Phase 1 blocker: missing Exceptional Task-receiver overloads; Phase 2 untested constants) → parity-diff checklist item for dev; c-sharp-qa rule: freeze tests pin exception types/error paths, constants get pinning tests.

Test plan

  • Docs-only change; no code affected
  • dotnet build unaffected

🤖 Generated with Claude Code

- CLAUDE.md: REFACTOR RULES section — behaviour-frozen definition
  (concurrency, exception types, error paths) + mandatory declared,
  test-pinned, approved DEVIATIONS
- c-sharp-dev: pre-report self-review checklist (consistency sweep,
  guards on new public APIs, factory-over-ctor, mirror-type parity,
  DEVIATIONS section)
- c-sharp-qa: freeze tests pin exception types/error paths; new
  constants classes get pinning tests

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@jaybarden1 jaybarden1 requested a review from a team July 6, 2026 00:57
@astar-development-jb astar-development-jb enabled auto-merge (squash) July 6, 2026 00:58
@astar-development-jb astar-development-jb merged commit ea6f9e8 into main Jul 6, 2026
6 checks passed
@astar-development-jb astar-development-jb deleted the docs/review-lessons branch July 6, 2026 01:00
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.

2 participants