You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+12-8Lines changed: 12 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@
36
36
-`ARCHITECTURE.md`: current file structure and architectural boundaries.
37
37
-`GAME_RULES.md`: implementation-aligned game mechanics and controls.
38
38
-`PROGRESS.md`: single running project log.
39
-
-`docs/reviews/`: multi-CLI review artifacts for substantive changes and full-codebase audits.
39
+
-`docs/threads/`: active and completed work threads, including multi-CLI review artifacts and full-codebase audits.
40
40
41
41
## Validation Gates
42
42
@@ -66,14 +66,18 @@
66
66
- Review is required for changes to files such as `AGENTS.md`, `CLAUDE.md`, `ARCHITECTURE.md`, `GAME_RULES.md`, `.github/workflows/*`, `.pre-commit-config.yaml`, `pyproject.toml`, `environment.yml`, and any new review-process docs.
67
67
- Review is also required for game-mechanic changes in `src/`, public API changes in `src/env.py` or `src/mediator.py`, balance/config changes in `src/config.py`, and new architectural boundaries.
68
68
- Trivial typo fixes, status summaries, dependency inspection, simple setup commands, and README wording polish can skip review if they do not change behavior or process.
69
-
- Store review artifacts under `docs/reviews/<scope>/<YYYY-MM-DD>/<iteration>/`:
69
+
- Store active thread artifacts under `docs/threads/current/<theme>/<YYYY-MM-DD>/<iteration>/`:
70
70
-`raw/codex.md`
71
71
-`raw/opus.md`
72
72
- optional extra independent reviewers as `raw/codex-2.md`, `raw/opus-2.md`, etc.
73
73
- optional `raw/*.stdout.log` and `raw/*.stderr.log`
74
74
-`diff.md`
75
75
-`REVIEW.md`
76
-
- Use path-limited diffs from `main`, for example `git diff -- AGENTS.md ARCHITECTURE.md docs/reviews/README.md`.
76
+
- Use short kebab-case theme names. Full-codebase review threads always use `full`.
77
+
- When a thread is complete, move or merge it into `docs/threads/done/<theme>/`. If that theme already exists under `done/`, move only the new date or iteration directories into the existing theme; never replace the whole theme directory.
78
+
- Before choosing a new iteration number for a recurring theme, inspect both `docs/threads/current/<theme>/<YYYY-MM-DD>/` and `docs/threads/done/<theme>/<YYYY-MM-DD>/`.
79
+
- Preserve `raw/` reviewer outputs verbatim. Record path migrations or follow-up context in `REVIEW.md` rather than rewriting raw reviewer text.
80
+
- Use path-limited diffs from `main`, for example `git diff -- AGENTS.md ARCHITECTURE.md docs/threads/README.md`.
77
81
- Reviewer prompt baseline:
78
82
79
83
```text
@@ -85,23 +89,23 @@ You are a senior code reviewer. Flag bugs, process regressions, stale documentat
85
89
86
90
## Full-Codebase Review
87
91
88
-
- Full-codebase review iterations live under `docs/reviews/full/<YYYY-MM-DD>/<iteration>/`.
89
-
- Before starting a new iteration, inspect existing numeric iteration folders for the same date and use the next number. If earlier iterations exist, give reviewers the previous `REVIEW.md` summaries and ask them to verify that earlier findings were resolved.
92
+
- Full-codebase review iterations start under `docs/threads/current/full/<YYYY-MM-DD>/<iteration>/` and move or merge into `docs/threads/done/full/<YYYY-MM-DD>/<iteration>/` when complete.
93
+
- Before starting a new iteration, inspect existing numeric iteration folders for the same date under both `current/full/`and`done/full/`, then use the next number. If earlier iterations exist, give reviewers the previous `REVIEW.md` summaries and ask them to verify that earlier findings were resolved.
90
94
- Run three independent reviewers. Use both Codex and Claude when available; if one service is unavailable or out of quota, run additional independent instances of the available service until there are three raw reports.
91
95
- Codex full-codebase reviewer command. Keep the prompt in a file and pipe it through stdin; this avoids PowerShell splitting multi-line prompts into unexpected positional arguments. Use `--ignore-user-config` so local plugin sync or user config does not interfere with a read-only review run:
claude -p $prompt --model best --effort max --permission-mode bypassPermissions --no-session-persistence --tools "Read,Glob,Grep,Bash" --allowedTools "Read,Glob,Grep,Bash(git *),Bash(python -m unittest *),Bash(C:\Users\38909\miniconda3\envs\py313\python.exe -m unittest *)" --output-format text
102
106
```
103
107
104
-
- Save raw reviewer output under `raw/`, then synthesize `REVIEW.md` with severity, evidence, disposition, and a fix plan. Only fix findings after checking them against the codebase. Re-review fixes in the next iteration if code changes are made.
108
+
- Save raw reviewer output under `raw/`, then synthesize `REVIEW.md` with severity, evidence, disposition, and a fix plan. Only fix findings after checking them against the codebase. Re-review fixes in the next iteration if code changes are made. When the full review is complete, move or merge the thread into `docs/threads/done/full/`.
Copy file name to clipboardExpand all lines: PROGRESS.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,5 +81,6 @@
81
81
## 2026-04-28
82
82
83
83
- Added Python/py313 workflow guidance in `AGENTS.md` with a `CLAUDE.md` shim, reflected the removed `.cursor/rules`, and added an initial review artifact directory.
84
-
- Moved review artifacts under `docs/reviews/` and documented robust full-codebase Codex/Claude review commands.
84
+
- Moved review artifacts under the docs thread area and documented robust full-codebase Codex/Claude review commands.
85
85
- Ran the first full-codebase review, fixed terminal-state API mutation, malformed action handling, loop routing closure, stale travel-plan cleanup, the graph node hash contract, and the stale Ruff pre-commit hook, then added focused regressions.
86
+
- Renamed review artifacts into the broader `docs/threads/` lifecycle, with active work in `current/`, completed work in `done/`, and completed `full` and `agents-repo-fit` themes migrated under `done/`.
This directory stores work threads. A thread is the durable record for one coherent piece of work, named by theme.
4
+
5
+
Threads start under `current/` while work is active and move to `done/` when the work is complete. If a completed theme already exists under `done/`, merge the new date or iteration directories into that theme instead of replacing the whole theme directory.
6
+
7
+
Use short kebab-case theme names, such as `agents-repo-fit`, `thread-structure`, or `metro-dwell-fix`. Full-codebase review work always uses the theme name `full`.
8
+
9
+
Preserve `raw/` reviewer outputs verbatim. If a folder migration changes where a thread lives, document that migration in `REVIEW.md` or another non-raw note instead of rewriting the original reviewer text.
Start iteration numbering at `1` and increment it only when a re-review or revised artifact set is needed after addressing findings. For recurring themes, inspect both `current/<theme>/` and `done/<theme>/` before choosing the next date or iteration number.
Active work threads live here while they are in progress.
4
+
5
+
Use `docs/threads/current/<theme>/<YYYY-MM-DD>/<iteration>/` for review artifacts, notes, diffs, and raw reviewer output that belong to the active thread. When the work is complete, move or merge the thread into `docs/threads/done/<theme>/`.
If a theme already exists, add the new date or iteration directories under the existing theme. Do not replace an existing theme directory just because a new thread shares the same name.
-`C:\Users\38909\miniconda3\envs\py313\python.exe -m pre_commit run --files AGENTS.md ARCHITECTURE.md CLAUDE.md PROGRESS.md docs/reviews/README.md docs/reviews/agents-repo-fit/2026-04-28/1/diff.md docs/reviews/agents-repo-fit/2026-04-28/1/REVIEW.md docs/reviews/agents-repo-fit/2026-04-28/1/raw/codex.md docs/reviews/agents-repo-fit/2026-04-28/1/raw/opus.md`: passed after adding a final newline to `CLAUDE.md`.
-`C:\Users\38909\miniconda3\envs\py313\python.exe -m pre_commit run --files AGENTS.md ARCHITECTURE.md CLAUDE.md PROGRESS.md docs/threads/README.md docs/threads/done/agents-repo-fit/2026-04-28/1/diff.md docs/threads/done/agents-repo-fit/2026-04-28/1/REVIEW.md docs/threads/done/agents-repo-fit/2026-04-28/1/raw/codex.md docs/threads/done/agents-repo-fit/2026-04-28/1/raw/opus.md`: passed after adding a final newline to `CLAUDE.md`.
- P2: `PROGRESS.md` and the review artifact path use `2026-04-28`, while the reviewer inferred April 27, 2026 from local session context. Disposition: not accepted for the same reason as the Codex date finding.
24
-
- P2: The `PROGRESS.md` bullet under-described the actual process change. Disposition: accepted. The bullet now names `AGENTS.md`, `CLAUDE.md`, the removed `.cursor/rules`, and `docs/reviews/`.
24
+
- P2: The `PROGRESS.md` bullet under-described the actual process change. Disposition: accepted. The bullet now names `AGENTS.md`, `CLAUDE.md`, the removed `.cursor/rules`, and `docs/threads/done/`.
25
25
- P3: The review packet should include the `.cursor/rules` deletion and `CLAUDE.md` addition. Disposition: accepted. `diff.md` was regenerated with those paths included.
Copy file name to clipboardExpand all lines: docs/threads/done/agents-repo-fit/2026-04-28/1/diff.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,7 @@ index 0000000..bf60f17
104
104
+- `ARCHITECTURE.md`: current file structure and architectural boundaries.
105
105
+- `GAME_RULES.md`: implementation-aligned game mechanics and controls.
106
106
+- `PROGRESS.md`: single running project log.
107
-
+- `reviews/`: multi-CLI review artifacts for substantive changes.
107
+
+- `docs/threads/done/`: multi-CLI review artifacts for substantive changes.
108
108
+
109
109
+## Validation Gates
110
110
+
@@ -134,13 +134,13 @@ index 0000000..bf60f17
134
134
+- Review is required for changes to files such as `AGENTS.md`, `CLAUDE.md`, `ARCHITECTURE.md`, `GAME_RULES.md`, `.github/workflows/*`, `.pre-commit-config.yaml`, `pyproject.toml`, `environment.yml`, and any new review-process docs.
135
135
+- Review is also required for game-mechanic changes in `src/`, public API changes in `src/env.py` or `src/mediator.py`, balance/config changes in `src/config.py`, and new architectural boundaries.
136
136
+- Trivial typo fixes, status summaries, dependency inspection, simple setup commands, and README wording polish can skip review if they do not change behavior or process.
137
-
+- Store review artifacts under `reviews/<scope>/<YYYY-MM-DD>/<iteration>/`:
137
+
+- Store review artifacts under `docs/threads/current/<theme>/<YYYY-MM-DD>/<iteration>/`:
138
138
+-`raw/codex.md`
139
139
+-`raw/opus.md`
140
140
+- optional `raw/*.stdout.log` and `raw/*.stderr.log`
141
141
+-`diff.md`
142
142
+-`REVIEW.md`
143
-
+- Use path-limited diffs from `main`, for example `git diff -- AGENTS.md ARCHITECTURE.md reviews/README.md`.
143
+
+- Use path-limited diffs from `main`, for example `git diff -- AGENTS.md ARCHITECTURE.md docs/threads/README.md`.
144
144
+- Reviewer prompt baseline:
145
145
+
146
146
+```text
@@ -186,7 +186,7 @@ index e678939..a6b66ef 100644
186
186
| \- test.yml
187
187
+|- .vscode/
188
188
+| \- settings.json
189
-
+|- reviews/
189
+
+|- docs/threads/done/
190
190
+| \- README.md
191
191
|- src/
192
192
| |- agent_play.py
@@ -219,12 +219,12 @@ index d858993..b3879b3 100644
219
219
+
220
220
+## 2026-04-28
221
221
+
222
-
+- Added Python/py313 workflow guidance in `AGENTS.md` with a `CLAUDE.md` shim, reflected the removed `.cursor/rules`, and added a `reviews/` artifact directory.
+- Added Python/py313 workflow guidance in `AGENTS.md` with a `CLAUDE.md` shim, reflected the removed `.cursor/rules`, and added a `docs/threads/done/` artifact directory.
0 commit comments