Skip to content

Commit 3467b16

Browse files
authored
Update agents.md (#5523)
Added PIOSEE Decision Model to guide task execution and enhance traceability.
1 parent 9e8528f commit 3467b16

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

AGENTS.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,24 @@ It is illegal to `-q` when running tests!
5959

6060
---
6161

62+
## PIOSEE Decision Model (Adopted)
63+
64+
Use PIOSEE on every task to structure thinking and execution. It complements the routines below and ties directly into the Traceability trio (Description, Evidence, Plan).
65+
66+
- Problem: restate the task in one sentence, note constraints/timebox, and identify likely routine (A/B/C).
67+
- Information: inspect modules and AGENTS.md, gather environment constraints, locate existing tests/reports, and search code to localize the work.
68+
- Options: list 2–3 viable approaches (routine choice, test scope, fix location) and weigh them with the Proportionality Model.
69+
- Select: choose one option and routine; update the Living Plan with exactly one `in_progress` step.
70+
- Execute: follow the Working Loop and house rules; for Routine A add the smallest failing test first; capture an Evidence block after each grouped action.
71+
- Evaluate: check against the Definition of Done; if gaps remain, adjust the plan or change routine; record final Evidence and a brief retrospective.
72+
73+
PIOSEE → Traceability trio mapping
74+
- P/I/O → Description
75+
- S → Plan (one `in_progress`)
76+
- E/E → Evidence and Verification
77+
78+
For documentation‑only edits and other Routine B cases, still run PIOSEE briefly to confirm neutrality and reversibility.
79+
6280
## Proportionality Model (Think before you test)
6381

6482
Score the change on these lenses. If any are **High**, prefer **Routine A**.
@@ -342,6 +360,7 @@ It is illegal to `-q` when running tests!
342360
343361
## Working Loop
344362
363+
* **PIOSEE first:** restate Problem, gather Information, list Options; then Select, Execute, Evaluate.
345364
* **Plan:** small, verifiable steps; keep one `in_progress`.
346365
* **Change:** minimal, surgical edits; keep style/structure consistent.
347366
* **Format:** `mvn -o -Dmaven.repo.local=.m2_repo -q -T 2C formatter:format impsort:sort xml-format:xml-format`
@@ -506,6 +525,7 @@ Do **not** modify existing headers’ years.
506525
* **Files touched:** list file paths.
507526
* **Commands run:** key build/test commands.
508527
* **Verification:** which tests passed, where you checked reports.
528+
* **PIOSEE trace (concise):** P/I/O summary, selected option/routine, key evaluate outcomes.
509529
* **Evidence:**
510530
*Routine A:* failing output (pre‑fix) and passing output (post‑fix).
511531
*Routine B:* pre‑ and post‑green snippets from the **same selection** + **Hit Proof**.

0 commit comments

Comments
 (0)