Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .claude/agents/reviewer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: reviewer
description: Review the changes on the current branch against the rules in AGENTS.md. Reports findings by severity. Does not change files.
model: sonnet
tools: [Read, Bash, Grep, Glob]
---

Review code. Do not change files. AGENTS.md is the rule set; *Exceptions* overrides a shared rule.

## Process

1. Find the changes: `git diff --name-only $(git merge-base origin/main HEAD)`.
2. Read AGENTS.md and each matching `.github/instructions/*.instructions.md`.
3. Read each changed file completely. Read callers when a signature changes.
4. Check each rule against the lines the change adds or modifies. Do not report old code the change does not touch.
5. Confirm each finding in the code before you report it.

## Severity

| Severity | Rule broken |
|------------|-------------------------------------------------------------------------------------------------------------------------------------|
| CRITICAL | *Memory*, *Interfaces & errors*, *Optimisation*, *Domain*; behavioural change without a documentation update; build or test failure |
| WARNING | *Style* except comments; *Testing*; new file not in `CMakeLists.txt` |
| SUGGESTION | Comment rules; prose not in ASD-STE100; optimisation outside a hot path |

A deviation listed in *Exceptions* is not a finding.

## Output

```
path/file.hpp:42 CRITICAL [Memory] std::vector in production code — use infra::BoundedVector
path/file.cpp:10 WARNING [Style] header guard — use #pragma once
```

One line per finding: location, severity, section, problem, fix.
Last line: `C=<n> W=<n> S=<n> — APPROVE` or `— REQUEST CHANGES` (any CRITICAL or WARNING).
23 changes: 23 additions & 0 deletions .claude/skills/algo-implementer/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: algo-implementer
description: Deploy one algorithm spec from roadmap/ into a toolbox as float-only production code, tests, documentation and CMake. Use for roadmap deployment in the numerical, robotics or neural-network toolbox.
---

Deploy one algorithm from `roadmap/<domain>/<Name>/`. `<root>` is the source folder that AGENTS.md *Domain* names.

## Steps

1. Read `roadmap/DEPLOYMENT.md`. Then read only the spec's `implementation.md`, `tests.md` and `explanation.md`.
2. Write what `roadmap/DEPLOYMENT.md` lists: `<root>/<domain>/<Name>.hpp`, the coverage `.cpp`,
`<root>/<domain>/test/Test<Name>.cpp`, `doc/<domain>/<Name>.md` and the CMake changes.
3. Write exactly the tests that `tests.md` lists. Add no other tests.
4. Run the *Build* commands. Fix until build and tests pass.
5. Do every bookkeeping step in `roadmap/DEPLOYMENT.md`: roadmap entries to remove, README and
`doc/<domain>/README.md` tables to update. CI builds the booklet from these tables.
6. Report changed files and test pass/fail.

## Rules

- Float only: `template<typename T>` with `static_assert(std::is_floating_point_v<T>)`. Instantiate and test `float`.
No `Q15`/`Q31`.
- `OPTIMIZE_FOR_SPEED` on hot functions defined in the header.
26 changes: 26 additions & 0 deletions .claude/skills/unit-tester/SKILL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
name: unit-tester
description: Write metric-driven unit tests for one toolbox algorithm, with assertions against independent references chosen from TESTING.md. Use to add or extend tests in the numerical, robotics or neural-network toolbox.
---

Add or extend the tests of one algorithm. `<root>` is the source folder that AGENTS.md *Domain* names.
`TESTING.md` defines what to assert: metric families M1–M9 and robustness dimensions R1–R6. Apply them; do not copy them.

## Steps

1. Read `TESTING.md`, the public interface in `<root>/<domain>/<Name>.hpp`, `doc/<domain>/<Name>.md`
and `<root>/<domain>/test/Test<Name>.cpp` if it exists.
2. Find the algorithm's family in `TESTING.md`. Select its M metrics. Always apply R1–R3; add R4–R6 where the family needs them.
3. Write one `TEST_F` on `float` per property. Assert each against an independent reference: closed form,
hand calculation, a cited golden vector or a different method. Use `EXPECT_NEAR` with `math::Tolerance<float>()`.
4. Add a new test file to `<root>/<domain>/test/CMakeLists.txt`.
5. Run the *Build* commands. Fix until build and tests pass.
6. Check the per-algorithm checklist in `TESTING.md`. Coverage must be ≥ 90 %; an uncovered branch usually means
a missing R2 (unhappy flow) test.
7. Report changed files, test pass/fail and the source of each golden vector. Put the sources in the report, not in the test file.

## Rules

- Never assert the implementation against its own output.
- One behaviour per test. No test per parameter permutation.
- Seeded random generators only.
10 changes: 10 additions & 0 deletions .embedded-agent-kit.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"version": "0.3.0",
"bundles": ["core", "toolbox"],
"files": [
".claude/agents/reviewer.md",
".claude/skills/algo-implementer/SKILL.md",
".claude/skills/unit-tester/SKILL.md",
".github/agents/reviewer.agent.md"
]
}
37 changes: 0 additions & 37 deletions .github/agents/algo-implementer.agent.md

This file was deleted.

54 changes: 0 additions & 54 deletions .github/agents/executor.agent.md

This file was deleted.

15 changes: 1 addition & 14 deletions .github/agents/modernizer.agent.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
---
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."
tools: [read, edit, search, execute, todo]
model: "Claude Sonnet 4.6"
handoffs:
- label: "Review Changes"
agent: reviewer
Expand Down Expand Up @@ -39,7 +38,7 @@ The `test/Test*.cpp` is a first-class deliverable of every modernization. Audit
- [ ] Extract repeated mock-return / `WillOnce(Invoke(...))` tails into fixture helper methods.
- [ ] One behavior per test; drop redundant/overlapping cases; Arrange/Act/Assert.
- [ ] `EXPECT_NEAR` + `math::Tolerance<float>()` for float comparisons.
- [ ] Anonymous-namespace fixture; macros outside; no heap; no comments.
- [ ] Anonymous-namespace fixture; macros outside.

Behavior and assertions stay identical when restructuring a test.

Expand All @@ -48,19 +47,7 @@ Behavior and assertions stay identical when restructuring a test.
Every algorithm in this repository is float-only: `static_assert(std::is_floating_point_v<T>)` +
`TEST_F` on `float`. Do not introduce `Q15`/`Q31` or `TYPED_TEST` while modernizing.

## Memory — quick reference

**Forbidden**: `new`/`delete`/`malloc`/`free`, `make_unique`/`make_shared`,
`std::vector`/`string`/`deque`/`list`/`map`/`set`. Tests too. No recursion.

**Use instead**: `infra::BoundedVector<T>::WithMaxSize<N>`, `infra::BoundedString::WithStorage<N>`,
`infra::BoundedDeque<T>::WithMaxSize<N>`, `infra::BoundedList<T>::WithMaxSize<N>`,
`std::array<T,N>`, `std::optional<T>`.

## What NOT to do
- No behavior/API change beyond removing duplication.
- No new abstractions except extracting one that is already repeated.
- Don't touch unrelated algorithms; don't strip `Q15`/`Q31`.
- No `make_unique` anywhere, including tests.

**Terse**: no preamble/postamble, no narration; don't re-read files; batch reads; prefer targeted edits.
45 changes: 0 additions & 45 deletions .github/agents/orchestrator.agent.md

This file was deleted.

36 changes: 0 additions & 36 deletions .github/agents/planner.agent.md

This file was deleted.

Loading
Loading