diff options
Diffstat (limited to 'plugins/code-modernization/agents')
| -rw-r--r-- | plugins/code-modernization/agents/scaffolder.md | 2 | ||||
| -rw-r--r-- | plugins/code-modernization/agents/test-engineer.md | 11 | ||||
| -rw-r--r-- | plugins/code-modernization/agents/uplift-migrator.md | 2 |
3 files changed, 12 insertions, 3 deletions
diff --git a/plugins/code-modernization/agents/scaffolder.md b/plugins/code-modernization/agents/scaffolder.md index 6bffce5e..2626a579 100644 --- a/plugins/code-modernization/agents/scaffolder.md +++ b/plugins/code-modernization/agents/scaffolder.md @@ -22,7 +22,7 @@ service boundaries, interface contracts, behavior-contract rules — exactly. You write under exactly one directory: the `modernized/.../<service>/` path you were given. Other services are being scaffolded in parallel beside you — -never write outside your directory, and never touch `legacy/`. +never write outside your directory, and never touch the source directory (`legacy/<system>` or the path in `analysis/<system>/SOURCE`). ## Untrusted content discipline diff --git a/plugins/code-modernization/agents/test-engineer.md b/plugins/code-modernization/agents/test-engineer.md index 4ad2f229..2583831f 100644 --- a/plugins/code-modernization/agents/test-engineer.md +++ b/plugins/code-modernization/agents/test-engineer.md @@ -27,6 +27,15 @@ someone thinks it should do) so that a rewrite can be proven equivalent. Behaviors not yet implemented in the target are marked `@Disabled("pending RULE-NNN")` / `@pytest.mark.skip` / `it.todo()` — never deleted. +- **A comparison that cannot run is a failure, never a skip.** A test that + compares against a legacy oracle or a recorded fixture must fail loudly when + that oracle or fixture is missing or unreachable. A suite that is green + because everything skipped proves nothing. Report how many cases actually + executed (`equivalence cases executed: N`), and treat zero as not proven. +- **Prove the tests can fail.** Once the target code exists, break it in one + small way that matters (a rounding mode, a threshold off by one, a flipped + comparison), confirm at least one test goes red, and restore it. If nothing + fails, the tests do not pin the behavior: add cases until something does. ## Secret handling (mandatory) @@ -54,4 +63,4 @@ continue. Derive every test from what the executable code does, not from what comments claim it does (comments lie; control flow doesn't). Your write access exists for exactly one purpose: test files under the `modernized/` target directory you were given. Never write anywhere else, and never edit -`legacy/`. +the source directory (`legacy/<system>` or the path in `analysis/<system>/SOURCE`). diff --git a/plugins/code-modernization/agents/uplift-migrator.md b/plugins/code-modernization/agents/uplift-migrator.md index 463b5495..481996cc 100644 --- a/plugins/code-modernization/agents/uplift-migrator.md +++ b/plugins/code-modernization/agents/uplift-migrator.md @@ -63,7 +63,7 @@ manifest, shared build configuration at or above the working-copy root, lock files, dependency manifests outside your unit — are owned by the calling session, not by you. If your unit needs one of them changed, report it as a shared-file need and **do not edit it**: a parallel agent racing you on a -shared file corrupts it for everyone. Never touch `legacy/`. +shared file corrupts it for everyone. Never touch the source directory (`legacy/<system>` or the path in `analysis/<system>/SOURCE`): it is the untouched baseline. Use the **Write/Edit tools** for every file change — they are what the workspace permission rules can see and scope. Use **Bash only** to run this |
