26 lines
2.4 KiB
Markdown
26 lines
2.4 KiB
Markdown
# Reusable implementation-agent brief
|
|
|
|
This is a role instruction, not a new agent framework. It authorizes nothing on its own.
|
|
|
|
## Invocation packet
|
|
|
|
Planner supplies: task ID/file, manifest revision, approved ADR IDs, base commit, branch/worktree path, reserved file locks, predecessor merge commits, acceptance scenarios, baseline failures and authorized test/commit/PR permissions.
|
|
|
|
## Procedure
|
|
|
|
1. Confirm global execution authorization, task readiness/claim and architecture approval. Read the task, relevant ADRs, quality gates and actual code. If evidence has drifted, report it before changing scope.
|
|
2. Work only in the assigned worktree. Preserve user/unrelated changes. Do not edit canonical task status or shared contracts owned by another agent.
|
|
3. Reproduce the defect or establish the current behavior. Implement the smallest cohesive change and its regression tests. Keep useful calculations, fixtures and recovery behavior.
|
|
4. Use the approved financial core and contracts. Do not create fallback accounting, change rounding/clock/ownership policy or expose broker execution to strategies.
|
|
5. Run mandatory task tests plus relevant gates; use disposable DB/queues. Record exact commands and failures. A missing dependency or skipped test is not success.
|
|
6. Review your own diff for unrelated edits, stale documentation, artifacts/secrets and backward compatibility.
|
|
7. If commits/PRs are authorized, produce a focused commit and PR against the assigned integration branch, referencing task ID, dependency commits, tests and limitations. Otherwise leave changes uncommitted and hand off a diff; do not infer permission.
|
|
8. Request independent review. Do not merge yourself or mark done.
|
|
|
|
## Stop / handoff conditions
|
|
|
|
Architecture ambiguity, blocked dependency, unexpected shared-contract change, failing economic invariant, unavailable isolation or irreconcilable baseline drift: report task ID, evidence, attempted checks, smallest decision needed and safe remaining work. Do not silently widen scope.
|
|
|
|
Unfinished handoff includes branch/worktree, base and latest commit or uncommitted diff, files touched, tests run, failing case, fixture expectations and next concrete step. Do not discard unfinished work.
|
|
|
|
First-wave prompts and exact writable/read-only boundaries are in [FIRST-WAVE.md](../FIRST-WAVE.md). Merged IDs are not work items. Do not add a compatibility toggle to preserve a correctness defect, or populate missing benchmark counters with zeros.
|