Skip to content

Commit ca28f9b

Browse files
docs: make the modernizer agent float-only (#55)
The agent told Copilot to preserve Q15/Q31 support, which AGENTS.md forbids and no algorithm has. Claude-Session: https://claude.ai/code/session_014WUWh6PszuBc5nyRurYVqf Co-authored-by: Claude <noreply@anthropic.com>
1 parent f5747e5 commit ca28f9b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/agents/modernizer.agent.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
description: "Refactor a pre-roadmap robotics/ algorithm to reuse shared math/ utilities, add coverage-build infra, and simplify/dedupe tests — preserving existing Q15/Q31 support. Behavior-preserving."
2+
description: "Refactor a pre-roadmap robotics/ algorithm to reuse shared math/ utilities, add coverage-build infra, and simplify/dedupe tests. Float-only, behavior-preserving."
33
tools: [read, edit, search, execute, todo]
44
handoffs:
55
- label: "Review Changes"
@@ -17,7 +17,7 @@ change unless required to remove duplication.
1717

1818
1. Read the target `.hpp`, its `test/Test*.cpp`, and `doc/<domain>/<Name>.md`.
1919
2. Find duplication: logic that already exists in `numerical/math/`
20-
(`CompilerOptimizations.hpp`, `Tolerance.hpp`, `ComplexNumber.hpp`, `QNumber.hpp`,
20+
(`CompilerOptimizations.hpp`, `Tolerance.hpp`, `ComplexNumber.hpp`,
2121
`RecursiveBuffer.hpp`, `Statistics.hpp`, …) or scaffolding repeated across `test/` files
2222
(e.g. `CalculateMagnitude`, twiddle-factor mocks — emulate `PowerDensitySpectrumTestSupport.hpp`).
2323
3. Replace the duplicated logic with the shared utility; delete the local copy.
@@ -50,4 +50,4 @@ Every algorithm in this repository is float-only: `static_assert(std::is_floatin
5050
## What NOT to do
5151
- No behavior/API change beyond removing duplication.
5252
- No new abstractions except extracting one that is already repeated.
53-
- Don't touch unrelated algorithms; don't strip `Q15`/`Q31`.
53+
- Don't touch unrelated algorithms.

0 commit comments

Comments
 (0)