agent-method 1.5.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +343 -0
- package/bin/wwa.js +115 -0
- package/docs/internal/cli-commands.yaml +259 -0
- package/docs/internal/doc-tokens.yaml +1103 -0
- package/docs/internal/feature-registry.yaml +1643 -0
- package/lib/boundaries.js +247 -0
- package/lib/cli/add.js +170 -0
- package/lib/cli/casestudy.js +1000 -0
- package/lib/cli/check.js +323 -0
- package/lib/cli/close.js +838 -0
- package/lib/cli/completion.js +735 -0
- package/lib/cli/deps.js +234 -0
- package/lib/cli/digest.js +73 -0
- package/lib/cli/doc-review.js +486 -0
- package/lib/cli/docs.js +315 -0
- package/lib/cli/helpers.js +198 -0
- package/lib/cli/implement.js +169 -0
- package/lib/cli/init.js +280 -0
- package/lib/cli/pipeline.js +206 -0
- package/lib/cli/plan.js +140 -0
- package/lib/cli/record.js +98 -0
- package/lib/cli/refine.js +202 -0
- package/lib/cli/report-helpers.js +113 -0
- package/lib/cli/review.js +76 -0
- package/lib/cli/routable.js +109 -0
- package/lib/cli/route.js +101 -0
- package/lib/cli/scan.js +133 -0
- package/lib/cli/serve.js +23 -0
- package/lib/cli/status.js +65 -0
- package/lib/cli/update-docs.js +574 -0
- package/lib/cli/upgrade.js +222 -0
- package/lib/cli/watch.js +32 -0
- package/lib/dependencies.js +196 -0
- package/lib/init.js +692 -0
- package/lib/mcp-server.js +612 -0
- package/lib/pipeline.js +907 -0
- package/lib/registry.js +132 -0
- package/lib/watcher.js +165 -0
- package/package.json +54 -0
- package/templates/README.md +363 -0
- package/templates/entry-points/.cursorrules +90 -0
- package/templates/entry-points/AGENT.md +90 -0
- package/templates/entry-points/CLAUDE.md +88 -0
- package/templates/extensions/MANIFEST.md +110 -0
- package/templates/extensions/analytical-system.md +96 -0
- package/templates/extensions/code-project.md +77 -0
- package/templates/extensions/data-exploration.md +117 -0
- package/templates/full/.context/BASE.md +101 -0
- package/templates/full/.context/COMPOSITION.md +47 -0
- package/templates/full/.context/INDEX.yaml +56 -0
- package/templates/full/.context/METHODOLOGY.md +246 -0
- package/templates/full/.context/PROTOCOL.yaml +169 -0
- package/templates/full/.context/REGISTRY.md +75 -0
- package/templates/full/.cursorrules +90 -0
- package/templates/full/AGENT.md +90 -0
- package/templates/full/CLAUDE.md +90 -0
- package/templates/full/Management/DIGEST.md +23 -0
- package/templates/full/Management/STATUS.md +46 -0
- package/templates/full/PLAN.md +67 -0
- package/templates/full/PROJECT-PROFILE.md +61 -0
- package/templates/full/PROJECT.md +80 -0
- package/templates/full/REQUIREMENTS.md +30 -0
- package/templates/full/ROADMAP.md +39 -0
- package/templates/full/Reviews/INDEX.md +41 -0
- package/templates/full/Reviews/backlog.md +52 -0
- package/templates/full/Reviews/plan.md +43 -0
- package/templates/full/Reviews/project.md +41 -0
- package/templates/full/Reviews/requirements.md +42 -0
- package/templates/full/Reviews/roadmap.md +41 -0
- package/templates/full/Reviews/state.md +56 -0
- package/templates/full/SESSION-LOG.md +102 -0
- package/templates/full/STATE.md +42 -0
- package/templates/full/SUMMARY.md +27 -0
- package/templates/full/agentWorkflows/INDEX.md +42 -0
- package/templates/full/agentWorkflows/observations.md +65 -0
- package/templates/full/agentWorkflows/patterns.md +68 -0
- package/templates/full/agentWorkflows/sessions.md +92 -0
- package/templates/full/intro/README.md +39 -0
- package/templates/full/registry/feature-registry.yaml +25 -0
- package/templates/full/registry/features/catalog.yaml +743 -0
- package/templates/full/registry/features/protocol.yaml +121 -0
- package/templates/full/registry/features/routing.yaml +358 -0
- package/templates/full/registry/features/workflows.yaml +404 -0
- package/templates/full/todos/backlog.md +19 -0
- package/templates/starter/.context/BASE.md +66 -0
- package/templates/starter/.context/INDEX.yaml +51 -0
- package/templates/starter/.context/METHODOLOGY.md +228 -0
- package/templates/starter/.context/PROTOCOL.yaml +165 -0
- package/templates/starter/.cursorrules +90 -0
- package/templates/starter/AGENT.md +90 -0
- package/templates/starter/CLAUDE.md +90 -0
- package/templates/starter/Management/DIGEST.md +23 -0
- package/templates/starter/Management/STATUS.md +46 -0
- package/templates/starter/PLAN.md +67 -0
- package/templates/starter/PROJECT-PROFILE.md +44 -0
- package/templates/starter/PROJECT.md +80 -0
- package/templates/starter/ROADMAP.md +39 -0
- package/templates/starter/Reviews/INDEX.md +75 -0
- package/templates/starter/SESSION-LOG.md +102 -0
- package/templates/starter/STATE.md +42 -0
- package/templates/starter/SUMMARY.md +27 -0
- package/templates/starter/agentWorkflows/INDEX.md +61 -0
- package/templates/starter/intro/README.md +37 -0
- package/templates/starter/registry/feature-registry.yaml +25 -0
- package/templates/starter/registry/features/catalog.yaml +743 -0
- package/templates/starter/registry/features/protocol.yaml +121 -0
- package/templates/starter/registry/features/routing.yaml +358 -0
- package/templates/starter/registry/features/workflows.yaml +404 -0
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
# Methodology Reference
|
|
2
|
+
|
|
3
|
+
Pair with: entry point (CLAUDE.md / .cursorrules / AGENT.md) + `.context/PROTOCOL.yaml`
|
|
4
|
+
Use when: agent needs onboarding protocol, format specs, or operational depth beyond PROTOCOL.yaml
|
|
5
|
+
|
|
6
|
+
Rules (scoping, cascade, conventions) live in `.context/PROTOCOL.yaml`. This file provides onboarding flows, format specifications, and operational details loaded on-demand.
|
|
7
|
+
|
|
8
|
+
## First session protocol
|
|
9
|
+
|
|
10
|
+
<!-- AGENT: Follow this protocol when PROJECT.md contains {placeholder} text. -->
|
|
11
|
+
|
|
12
|
+
When PROJECT.md still contains `{placeholder}` text, this is a first session. Guide the user through onboarding — ask questions, show what you'll write, get confirmation before writing each file.
|
|
13
|
+
|
|
14
|
+
### Greenfield onboarding (no existing codebase)
|
|
15
|
+
|
|
16
|
+
**Stage 1 — Project vision** → populates PROJECT.md
|
|
17
|
+
Ask the user:
|
|
18
|
+
1. What is your project about? (1-2 sentences)
|
|
19
|
+
2. Who is it for?
|
|
20
|
+
3. What problem does it solve?
|
|
21
|
+
4. What technologies, languages, or frameworks will you use?
|
|
22
|
+
5. What are 2-3 guiding principles for this project?
|
|
23
|
+
|
|
24
|
+
CHECKPOINT: Draft PROJECT.md from the answers. Show the user the draft. Wait for approval before writing.
|
|
25
|
+
|
|
26
|
+
**Stage 2 — Architecture** → populates .context/BASE.md, PROJECT-PROFILE.md, .context/DOCS-MAP.md
|
|
27
|
+
Ask the user:
|
|
28
|
+
1. What are the main components or modules?
|
|
29
|
+
2. How do they connect? (data flow, API calls, event-driven, etc.)
|
|
30
|
+
3. What is the directory structure? (or what will it be?)
|
|
31
|
+
4. What are the key dependencies?
|
|
32
|
+
|
|
33
|
+
CHECKPOINT: Draft .context/BASE.md, PROJECT-PROFILE.md, and .context/DOCS-MAP.md. Show the user. Wait for approval.
|
|
34
|
+
|
|
35
|
+
**Stage 3 — Goals** → populates ROADMAP.md, PLAN.md
|
|
36
|
+
Ask the user:
|
|
37
|
+
1. What are your immediate goals? (next 1-3 sessions)
|
|
38
|
+
2. What does "done" look like for this project?
|
|
39
|
+
3. Can you break this into 2-4 phases?
|
|
40
|
+
|
|
41
|
+
CHECKPOINT: Draft ROADMAP.md and PLAN.md (first task). Show the user. Wait for approval.
|
|
42
|
+
|
|
43
|
+
**Stage 4 — Starting state** → populates STATE.md
|
|
44
|
+
Ask the user:
|
|
45
|
+
1. Any decisions already made? (tech choices, architecture, constraints)
|
|
46
|
+
2. Any known blockers or risks?
|
|
47
|
+
3. Any open questions you want tracked?
|
|
48
|
+
|
|
49
|
+
CHECKPOINT: Draft STATE.md. Show the user. Wait for approval. Then begin normal work.
|
|
50
|
+
|
|
51
|
+
### Brownfield onboarding (existing codebase)
|
|
52
|
+
|
|
53
|
+
Brownfield onboarding uses **segmented stages** driven by `registry/doc-tokens.yaml` categories. Each segment has a bounded context budget, scans only what it needs, asks 1-3 questions maximum, and checkpoints before the next. This prevents context overload and ensures the agent populates registries incrementally.
|
|
54
|
+
|
|
55
|
+
**Segment 1 — Identity** (~500 tokens) → populates PROJECT-PROFILE.md, `registry/doc-tokens.yaml` (project section)
|
|
56
|
+
Scan: package.json/config files, README, top-level directory listing only.
|
|
57
|
+
Discover: project type (code/data/analytical/mixed), lifecycle stage, key tech stack.
|
|
58
|
+
Ask (only what scan couldn't determine):
|
|
59
|
+
1. What's the current state — active development, maintenance, exploration?
|
|
60
|
+
|
|
61
|
+
CHECKPOINT: Present identity summary. Draft PROJECT-PROFILE.md + doc-tokens.yaml `project:` values. Wait for approval.
|
|
62
|
+
|
|
63
|
+
**Segment 2 — Architecture** (~1500 tokens) → populates .context/BASE.md, PROJECT.md, .context/DOCS-MAP.md, doc-tokens.yaml `doc_graph`
|
|
64
|
+
Scan: key source files (entry points, main modules), import graph, config files.
|
|
65
|
+
Discover: system model, codebase map, component relationships, dependencies.
|
|
66
|
+
**Doc structure scan** — also scan `docs/` directory (if present):
|
|
67
|
+
- List all files in `docs/` — add each as a `doc_graph` node with category `docs`
|
|
68
|
+
- Check for cross-references between docs (markdown links, .context/ references)
|
|
69
|
+
- Create `reads_from` edges for discovered dependencies between documents
|
|
70
|
+
- Create `cascades_to` edges where PROTOCOL.yaml cascade patterns apply
|
|
71
|
+
- Write discovered graph to `doc-tokens.yaml` `doc_graph` section
|
|
72
|
+
Ask (only what scan couldn't determine):
|
|
73
|
+
1. Any architectural decisions not documented in code? (key patterns, constraints)
|
|
74
|
+
2. Are there areas I should understand deeply vs. ignore?
|
|
75
|
+
|
|
76
|
+
**Boundaries configuration** — if project has non-standard paths (e.g. registry not in .context/):
|
|
77
|
+
- Uncomment `boundaries:` section in PROTOCOL.yaml
|
|
78
|
+
- Set `registries.tokens` to actual token registry path
|
|
79
|
+
- Set `visibility.internal` / `visibility.release` to match project structure
|
|
80
|
+
- Set `distribution` rules to match .gitignore / .npmignore patterns
|
|
81
|
+
|
|
82
|
+
CHECKPOINT: Draft .context/BASE.md (codebase map), PROJECT.md (vision), .context/DOCS-MAP.md, doc_graph edges. Show user. Wait for approval.
|
|
83
|
+
|
|
84
|
+
**Segment 3 — Workflow alignment** (~500 tokens) → populates PROTOCOL.yaml customizations
|
|
85
|
+
Read: `registry/feature-registry.yaml` (workflows, query patterns), discovered project type from Segment 1.
|
|
86
|
+
Discover: which workflows apply (WF-01 through WF-08), which scoping query types are relevant.
|
|
87
|
+
Ask:
|
|
88
|
+
1. What are the most common types of changes you make? (maps to query types)
|
|
89
|
+
|
|
90
|
+
CHECKPOINT: Show proposed PROTOCOL.yaml `scoping:` additions and workflow selection. Wait for approval.
|
|
91
|
+
|
|
92
|
+
**Segment 4 — Convention alignment** (~500 tokens) → populates `registry/doc-tokens.yaml` names + `project_names`, PROTOCOL.yaml conventions
|
|
93
|
+
Read: linting configs, CI/CD files, existing coding standards, doc-tokens.yaml `names:` section.
|
|
94
|
+
Discover: naming patterns, existing conventions, project-specific terminology.
|
|
95
|
+
**Terminology capture** — populate `doc-tokens.yaml` `project_names:`:
|
|
96
|
+
For code projects: modules = services/libraries/components; apis = endpoints/routes; entities = models/schemas; conventions = naming/patterns.
|
|
97
|
+
For data projects: modules = data sources/pipelines; apis = query interfaces; entities = schemas/dimensions/measures; conventions = validation rules.
|
|
98
|
+
For analytical projects: modules = chains/evaluators; apis = prompt templates/tool interfaces; entities = domain concepts/evaluation criteria; conventions = composition patterns.
|
|
99
|
+
- Scan source code for module/class/service names → add to `project_names.modules`
|
|
100
|
+
- Scan API routes or endpoints → add to `project_names.apis`
|
|
101
|
+
- Scan database schemas or data models → add to `project_names.entities`
|
|
102
|
+
- Note naming conventions discovered → add to `project_names.conventions`
|
|
103
|
+
Ask:
|
|
104
|
+
1. Any conventions not captured in config? (naming, review process, etc.)
|
|
105
|
+
|
|
106
|
+
CHECKPOINT: Show proposed doc-tokens.yaml `names:` additions, `project_names` entries, and PROTOCOL.yaml `conventions:` customizations. Wait for approval.
|
|
107
|
+
|
|
108
|
+
**Segment 5 — State initialization** (~500 tokens) → populates STATE.md, ROADMAP.md
|
|
109
|
+
Read: decisions discovered in Segments 1-4, open questions accumulated.
|
|
110
|
+
Propose initial state:
|
|
111
|
+
1. Decisions already implicit in the codebase (document them)
|
|
112
|
+
2. Current position (lifecycle stage confirmed)
|
|
113
|
+
3. Immediate goals (ask: what are your next 1-3 priorities?)
|
|
114
|
+
|
|
115
|
+
CHECKPOINT: Draft STATE.md and ROADMAP.md. Show user. Wait for approval. Then begin normal work.
|
|
116
|
+
|
|
117
|
+
### Post-onboarding: registry-driven documentation
|
|
118
|
+
|
|
119
|
+
After brownfield onboarding completes, the agent uses the populated registries for all subsequent work:
|
|
120
|
+
- **doc-tokens.yaml `names:`** — Reference after every query to ensure consistent terminology in documentation updates
|
|
121
|
+
- **doc-tokens.yaml `tokens:`** — Reference for project-specific values (counts, versions, paths) when writing docs
|
|
122
|
+
- **feature-registry.yaml** — Reference to identify which features were activated and which workflows apply to the current query
|
|
123
|
+
- **doc-tokens.yaml `propagation_targets:`** — After changing any token value, check listed files for stale references
|
|
124
|
+
|
|
125
|
+
### Checkpoint rules
|
|
126
|
+
|
|
127
|
+
- NEVER write to a methodology file without showing the user what you will write first
|
|
128
|
+
- At each CHECKPOINT, present the draft as a code block the user can review
|
|
129
|
+
- If the user says "looks good" or similar, write the file
|
|
130
|
+
- If the user edits or corrects, incorporate changes and show the updated draft
|
|
131
|
+
- If the user says "skip", leave the file as template placeholder
|
|
132
|
+
- After all stages complete, summarize what was populated and begin normal work
|
|
133
|
+
- For brownfield: `.context/REGISTRY.md` is deferred — not created during onboarding
|
|
134
|
+
|
|
135
|
+
## Interaction level
|
|
136
|
+
|
|
137
|
+
The entry point's `mode` setting controls checkpoint density:
|
|
138
|
+
|
|
139
|
+
| Level | Behavior |
|
|
140
|
+
|-------|----------|
|
|
141
|
+
| autonomous | Execute full plan, report at completion |
|
|
142
|
+
| checkpoint | Propose plan, wait for approval, report at completion (default) |
|
|
143
|
+
| collaborative | Back-and-forth at each step |
|
|
144
|
+
| supervised | Explain intent before every file change |
|
|
145
|
+
|
|
146
|
+
## Write obligation format specs
|
|
147
|
+
|
|
148
|
+
These formats are referenced by `.context/PROTOCOL.yaml` cascade triggers.
|
|
149
|
+
|
|
150
|
+
### SESSION-LOG.md metrics entry
|
|
151
|
+
|
|
152
|
+
Each entry is a compact block with these fields:
|
|
153
|
+
- **effort**: low | medium | high
|
|
154
|
+
- **ambiguity**: low | medium | high
|
|
155
|
+
- **context**: minimal | moderate | deep
|
|
156
|
+
- **tokens**: estimated token count
|
|
157
|
+
- **time**: session duration
|
|
158
|
+
- **response**: accepted | edited | revised | rejected | redirected
|
|
159
|
+
- **refinement delta** (medium/high effort only): revision count, magnitude (none/minor/moderate/major/rework), delta categories, survival rate
|
|
160
|
+
- **workflow**: WF-XX workflow ID
|
|
161
|
+
- **features**: comma-separated feature IDs used
|
|
162
|
+
- **cascades**: number of cascade updates triggered
|
|
163
|
+
- **friction**: description or "none"
|
|
164
|
+
- **findings**: methodology-relevant observations or "none"
|
|
165
|
+
|
|
166
|
+
### Management/DIGEST.md row
|
|
167
|
+
|
|
168
|
+
| Date | Task | Query | Outcome | Key changes | Decisions | Effort | Time |
|
|
169
|
+
|
|
170
|
+
Only high-effort tasks: 3+ files, architectural decisions, phase completions, complex multi-step queries, new feature implementations.
|
|
171
|
+
|
|
172
|
+
### Management/STATUS.md update
|
|
173
|
+
|
|
174
|
+
Update after milestones: current phase, active work, recent decisions (last 5), blockers, health indicators.
|
|
175
|
+
|
|
176
|
+
## Safety invariants
|
|
177
|
+
|
|
178
|
+
These rules are absolute — they hold regardless of profile, project type, or lifecycle stage:
|
|
179
|
+
|
|
180
|
+
- **Never modify project source code** through methodology operations — only create/modify methodology files
|
|
181
|
+
- **Never delete existing project files** — methodology integration is purely additive
|
|
182
|
+
- **Never overwrite existing entry point content** — only append methodology sections
|
|
183
|
+
|
|
184
|
+
## File scale management
|
|
185
|
+
|
|
186
|
+
When any intelligence layer file exceeds 300 lines (~3,750 tokens):
|
|
187
|
+
1. Split into index file (original path) + components subdirectory
|
|
188
|
+
2. Index keeps active content + navigation table
|
|
189
|
+
3. Components hold archived sections grouped by semantic boundary
|
|
190
|
+
4. Update .context/REGISTRY.md (if it exists) with new file entries
|
|
191
|
+
|
|
192
|
+
## Reporting layers
|
|
193
|
+
|
|
194
|
+
Three directories separate reporting concerns from operational files:
|
|
195
|
+
|
|
196
|
+
### Management/
|
|
197
|
+
|
|
198
|
+
Management-facing project oversight. Managers read this, not STATE.md or SESSION-LOG.md.
|
|
199
|
+
|
|
200
|
+
- **DIGEST.md** — Append a row for every high-effort task (see format spec above)
|
|
201
|
+
- **STATUS.md** — Update after milestones (see format spec above)
|
|
202
|
+
|
|
203
|
+
### Reviews/
|
|
204
|
+
|
|
205
|
+
Synthesized views of intelligence layer files. Updated when doing a "project review" query.
|
|
206
|
+
|
|
207
|
+
When doing project review or self-review (4-phase) sessions, use the **collection checklist** for consistent capture of usage, practice, issues, and improvements: see `docs/internal/review/collection-checklist.md` (if present in this repo).
|
|
208
|
+
|
|
209
|
+
- **INDEX.md** — Dashboard with key metrics and links to drill-down files.
|
|
210
|
+
- **Drill-down files**: roadmap.md, plan.md, project.md, requirements.md, state.md, backlog.md — each synthesizes from its source file.
|
|
211
|
+
|
|
212
|
+
### agentWorkflows/
|
|
213
|
+
|
|
214
|
+
Agent workflow performance analysis. Updated after high-effort sessions.
|
|
215
|
+
|
|
216
|
+
- **INDEX.md** — Workflow summary, quick stats, links to analysis files.
|
|
217
|
+
- **sessions.md** — SESSION-LOG.md synthesis: effort distribution, query patterns, acceptance rates, refinement analysis.
|
|
218
|
+
- **patterns.md** — Extracted behavioral patterns: what works, friction points, anti-patterns, improvement suggestions.
|
|
219
|
+
- **observations.md** — Case study observations: findings with methodology implications, severity classification.
|
|
220
|
+
|
|
221
|
+
### Audit trail format
|
|
222
|
+
|
|
223
|
+
SUMMARY.md is the session audit trail. Each entry follows this structure:
|
|
224
|
+
```
|
|
225
|
+
### {date} — {brief description}
|
|
226
|
+
**Plan**: {what was planned}
|
|
227
|
+
**Outcome**: {what was done}
|
|
228
|
+
**Files created**: {list}
|
|
229
|
+
**Files updated**: {list}
|
|
230
|
+
**Decisions**: {key decisions made}
|
|
231
|
+
**Next**: {what should happen next session}
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## Docs maintenance triggers
|
|
235
|
+
|
|
236
|
+
| Trigger | Update these docs/ files |
|
|
237
|
+
|---------|------------------------|
|
|
238
|
+
| Phase completed | docs/index.md (progress section — create from DOCS-MAP.md if it doesn't exist yet) |
|
|
239
|
+
| Architecture decision | docs/index.md (architecture section) |
|
|
240
|
+
|
|
241
|
+
## Navigation registry protocol
|
|
242
|
+
|
|
243
|
+
When .context/REGISTRY.md exists, update it after:
|
|
244
|
+
- File split, creation, deletion, or rename
|
|
245
|
+
- Topic index changes (new keywords)
|
|
246
|
+
- Growth alerts (files approaching 300-line threshold)
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# Agent Protocol — scoping, cascade, obligations, conventions
|
|
2
|
+
# Read on: every session (entry point directs here)
|
|
3
|
+
# Updated by: wwa upgrade | Validated by: wwa check
|
|
4
|
+
# Close-stage: read close_check before ending any file-modifying response
|
|
5
|
+
|
|
6
|
+
version: v1.6
|
|
7
|
+
last_verified: "{date}"
|
|
8
|
+
|
|
9
|
+
# === SCOPING: query type → file sets ===
|
|
10
|
+
scoping:
|
|
11
|
+
planning:
|
|
12
|
+
reads: [REQUIREMENTS.md, ROADMAP.md]
|
|
13
|
+
writes: [STATE.md, PLAN.md]
|
|
14
|
+
context_refresh:
|
|
15
|
+
reads: [".context/*", "registry/doc-tokens.yaml", project structure]
|
|
16
|
+
writes: [".context/*", "registry/doc-tokens.yaml", "entry point if scoping affected"]
|
|
17
|
+
project_discovery:
|
|
18
|
+
reads: [project structure, package files, key source files, "registry/feature-registry.yaml", "registry/doc-tokens.yaml"]
|
|
19
|
+
writes: [.context/BASE.md, ".context/ specialists", "registry/doc-tokens.yaml", STATE.md]
|
|
20
|
+
structural_navigation:
|
|
21
|
+
reads: [.context/REGISTRY.md]
|
|
22
|
+
writes: [.context/REGISTRY.md]
|
|
23
|
+
methodology_guidance:
|
|
24
|
+
reads: [this file]
|
|
25
|
+
writes: []
|
|
26
|
+
phase_completion:
|
|
27
|
+
reads: [SUMMARY.md]
|
|
28
|
+
writes: [SUMMARY.md, STATE.md, ROADMAP.md]
|
|
29
|
+
backlog:
|
|
30
|
+
reads: [todos/backlog.md]
|
|
31
|
+
writes: [todos/backlog.md]
|
|
32
|
+
management_overview:
|
|
33
|
+
reads: [Management/DIGEST.md, Management/STATUS.md, STATE.md]
|
|
34
|
+
writes: [Management/STATUS.md, Management/DIGEST.md]
|
|
35
|
+
project_review:
|
|
36
|
+
reads: [Reviews/INDEX.md, "relevant source files"]
|
|
37
|
+
writes: ["Reviews/"]
|
|
38
|
+
workflow_analysis:
|
|
39
|
+
reads: [agentWorkflows/INDEX.md, SESSION-LOG.md]
|
|
40
|
+
writes: ["agentWorkflows/"]
|
|
41
|
+
docs_update:
|
|
42
|
+
reads: [.context/DOCS-MAP.md, "registry/doc-tokens.yaml", "relevant docs/"]
|
|
43
|
+
writes: ["docs/", .context/DOCS-MAP.md]
|
|
44
|
+
# CUSTOMIZE: add project-specific query types below
|
|
45
|
+
# Each should pair .context/BASE.md with one specialist.
|
|
46
|
+
# "{domain}":
|
|
47
|
+
# reads: [.context/BASE.md, ".context/{SPECIALIST}.md"]
|
|
48
|
+
# writes: ["{working files}"]
|
|
49
|
+
|
|
50
|
+
# === CASCADE: change → propagation targets ===
|
|
51
|
+
cascade:
|
|
52
|
+
decision_made:
|
|
53
|
+
target: STATE.md
|
|
54
|
+
section: decisions table
|
|
55
|
+
timing: same-response
|
|
56
|
+
directive: P-02
|
|
57
|
+
file_changed:
|
|
58
|
+
action: check this cascade section
|
|
59
|
+
timing: same-response
|
|
60
|
+
directive: P-03
|
|
61
|
+
phase_complete:
|
|
62
|
+
targets: [SUMMARY.md, STATE.md, ROADMAP.md]
|
|
63
|
+
actions: [append entry, update position, mark done]
|
|
64
|
+
timing: non-negotiable
|
|
65
|
+
requirements_change:
|
|
66
|
+
targets: [REQUIREMENTS.md, ROADMAP.md, PLAN.md]
|
|
67
|
+
condition: if current task affected
|
|
68
|
+
question_resolved:
|
|
69
|
+
target: STATE.md
|
|
70
|
+
action: "mark resolved with text — don't delete"
|
|
71
|
+
structure_changed:
|
|
72
|
+
targets: [.context/BASE.md, .context/REGISTRY.md]
|
|
73
|
+
condition: file created, deleted, renamed, or split
|
|
74
|
+
file_exceeds_300_lines:
|
|
75
|
+
action: split into index + components subdirectory
|
|
76
|
+
update: .context/REGISTRY.md (file tree, topic index, structural log)
|
|
77
|
+
new_domain_area:
|
|
78
|
+
targets: [.context/BASE.md, entry point]
|
|
79
|
+
consider: new .context/ specialist file
|
|
80
|
+
lifecycle_stage_change:
|
|
81
|
+
targets: [PROJECT-PROFILE.md, STATE.md]
|
|
82
|
+
high_effort_task:
|
|
83
|
+
targets: [SESSION-LOG.md, Management/DIGEST.md]
|
|
84
|
+
condition: "materiality >= medium (3+ files, architectural decisions, phase completions)"
|
|
85
|
+
session_log_fields: [effort, ambiguity, context, tokens, time, response,
|
|
86
|
+
refinement_delta, workflow, features, cascades, friction, findings]
|
|
87
|
+
digest_fields: [date, task, query, outcome, key_changes, decisions, effort, time]
|
|
88
|
+
milestone:
|
|
89
|
+
targets: [Management/STATUS.md]
|
|
90
|
+
fields: [current_state, recent_decisions, health_indicators]
|
|
91
|
+
new_component:
|
|
92
|
+
targets: [.context/DOCS-MAP.md]
|
|
93
|
+
check: scaffolding rules for new docs/ proposals
|
|
94
|
+
docs_changed:
|
|
95
|
+
targets: [.context/DOCS-MAP.md, docs/index.md]
|
|
96
|
+
terminology_established:
|
|
97
|
+
target: "registry/doc-tokens.yaml"
|
|
98
|
+
action: "populate tokens (project identity, counts) and names (project-specific terms)"
|
|
99
|
+
timing: during brownfield onboarding and when new patterns are discovered
|
|
100
|
+
registry_values_changed:
|
|
101
|
+
target: "files using changed values"
|
|
102
|
+
action: "check doc-tokens.yaml propagation_targets for stale values"
|
|
103
|
+
condition: "only files that reference the changed token"
|
|
104
|
+
doc_graph_changed:
|
|
105
|
+
target: "registry/doc-tokens.yaml"
|
|
106
|
+
section: doc_graph
|
|
107
|
+
timing: same-response
|
|
108
|
+
condition: "new file discovered, dependency link identified, or document structure changed"
|
|
109
|
+
# CUSTOMIZE: add project-specific cascade rules below
|
|
110
|
+
|
|
111
|
+
# === WORKFLOWS: task pattern selection (Phase 7q-3: all standard workflows) ===
|
|
112
|
+
workflows:
|
|
113
|
+
general_task: [Review, Plan, Implement, Document, Update]
|
|
114
|
+
code_change: [Review, Plan, Implement, Context-sync, Update]
|
|
115
|
+
context_refresh: [Scan, Compare, Update-context, Cascade, Record]
|
|
116
|
+
bootstrap: [Detect, Create-context, Populate, Validate]
|
|
117
|
+
greenfield_onboarding: [Ask, Populate, Confirm]
|
|
118
|
+
brownfield_onboarding: [Identity, Architecture, Workflow-align, Convention-align, State-init]
|
|
119
|
+
analytical_system: [Discover, Map-chains, Build-context, Compose, Evaluate, Refine]
|
|
120
|
+
specification_project: [Scope, Draft, Review, Align, Update]
|
|
121
|
+
discovery: [Scan, Identify, Map, Document, Cascade]
|
|
122
|
+
# Each segment: scan relevant subset → ask 1-3 questions → populate → checkpoint
|
|
123
|
+
# Driven by doc-tokens.yaml categories — see METHODOLOGY.md for full protocol
|
|
124
|
+
|
|
125
|
+
# === CONVENTIONS (Phase 7q-3: P-01 … P-07, P-10 in numerical order) ===
|
|
126
|
+
conventions:
|
|
127
|
+
- "Every code change is also a context change — update codebase map (P-01)"
|
|
128
|
+
- "Record decisions in STATE.md in the SAME response — never defer (P-02)"
|
|
129
|
+
- "After every file change, check cascade section above (P-03)"
|
|
130
|
+
- "Load .context/BASE.md + one specialist per query — never all .context/ files (P-04)"
|
|
131
|
+
- "Surface uncertainty as open questions in STATE.md (P-05)"
|
|
132
|
+
- "Propose plans and wait for approval — human controls direction (P-06)"
|
|
133
|
+
- "Keep intelligence layer files under 300 lines — split when exceeded (P-07)"
|
|
134
|
+
- "Document proportionally — low-effort: no STATE.md/SESSION-LOG; high-effort: full (P-10)"
|
|
135
|
+
- "After completing work, reference registry/doc-tokens.yaml names for consistent terminology"
|
|
136
|
+
- "Use registry/feature-registry.yaml to identify activated features and applicable workflows"
|
|
137
|
+
|
|
138
|
+
# === CLOSE CHECK: scan before ending any file-modifying response ===
|
|
139
|
+
close_check:
|
|
140
|
+
- "Decision made? → STATE.md decisions table"
|
|
141
|
+
- "File changed? → check cascade section above"
|
|
142
|
+
- "Phase complete? → SUMMARY.md + STATE.md + ROADMAP.md"
|
|
143
|
+
- "High effort? → SESSION-LOG.md + Management/DIGEST.md"
|
|
144
|
+
- "Structure changed? → .context/BASE.md + .context/REGISTRY.md"
|
|
145
|
+
- "Milestone? → Management/STATUS.md"
|
|
146
|
+
- "Docs changed? → .context/DOCS-MAP.md + docs/index.md"
|
|
147
|
+
- "New terminology or values? → registry/doc-tokens.yaml"
|
|
148
|
+
|
|
149
|
+
# === BOUNDARIES: path resolution, visibility, distribution (Phase 7q-3: active by default) ===
|
|
150
|
+
boundaries:
|
|
151
|
+
registries:
|
|
152
|
+
tokens: "registry/doc-tokens.yaml"
|
|
153
|
+
feature_registry: "registry/feature-registry.yaml"
|
|
154
|
+
docs_map: ".context/DOCS-MAP.md"
|
|
155
|
+
output: "docs/internal/"
|
|
156
|
+
visibility:
|
|
157
|
+
internal: [".context/", "registry/", "research/", "todos/", "docs/internal/"]
|
|
158
|
+
release: ["docs/architecture/", "docs/workflow/", "docs/guides/", "templates/"]
|
|
159
|
+
scan:
|
|
160
|
+
include: ["docs/", ".context/", "registry/", "templates/"]
|
|
161
|
+
exclude: ["node_modules/", ".git/"]
|
|
162
|
+
distribution:
|
|
163
|
+
git:
|
|
164
|
+
exclude: ["STATE.md", "PLAN.md", ".context/", "research/", "todos/"]
|
|
165
|
+
npm:
|
|
166
|
+
include: ["bin/", "lib/", "templates/"]
|
|
167
|
+
exclude: [".context/", "docs/internal/"]
|
|
168
|
+
|
|
169
|
+
# A response that modifies files but skips triggered obligations is INCOMPLETE.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Navigation Registry
|
|
2
|
+
|
|
3
|
+
<!-- INSTRUCTION: This file is the agent's map of all intelligence layer files.
|
|
4
|
+
It enables fast content location across split file trees without reading every file.
|
|
5
|
+
|
|
6
|
+
Populate this file when your first file split happens (any intelligence layer file
|
|
7
|
+
exceeding 300 lines). Until then, this file can remain empty — your project is small
|
|
8
|
+
enough that direct navigation works.
|
|
9
|
+
|
|
10
|
+
Three sections to maintain:
|
|
11
|
+
1. File tree — every intelligence layer file with path, lines, status, digest
|
|
12
|
+
2. Topic index — keyword → file path + section hint for fast lookup
|
|
13
|
+
3. Structural log — when files are split, deleted, or renamed
|
|
14
|
+
|
|
15
|
+
Update this file as a cascade whenever:
|
|
16
|
+
- A file is split into index + components
|
|
17
|
+
- A file is created, deleted, or renamed
|
|
18
|
+
- During context refresh (verify line counts, flag stale entries) -->
|
|
19
|
+
|
|
20
|
+
## File tree
|
|
21
|
+
|
|
22
|
+
<!-- INSTRUCTION: Add rows as your project grows. Status: active (normal file),
|
|
23
|
+
index (split into components), component (archived section from a split file) -->
|
|
24
|
+
|
|
25
|
+
| Path | Lines | Status | Digest |
|
|
26
|
+
|------|-------|--------|--------|
|
|
27
|
+
| `{AGENT}.md` | — | active | Agent entry point |
|
|
28
|
+
| `STATE.md` | — | active | Current position, decisions, blockers |
|
|
29
|
+
| `ROADMAP.md` | — | active | Development phases |
|
|
30
|
+
| `PLAN.md` | — | active | Current task |
|
|
31
|
+
| `SUMMARY.md` | — | active | Session history |
|
|
32
|
+
| `REQUIREMENTS.md` | — | active | What the project must achieve |
|
|
33
|
+
| `.context/BASE.md` | — | active | System model, project map |
|
|
34
|
+
| `.context/REGISTRY.md` | — | active | This file |
|
|
35
|
+
|
|
36
|
+
### Growth alerts
|
|
37
|
+
|
|
38
|
+
<!-- Files approaching the 300-line threshold. Update during context refresh. -->
|
|
39
|
+
|
|
40
|
+
| Path | Lines | Threshold | Action needed |
|
|
41
|
+
|------|-------|-----------|---------------|
|
|
42
|
+
| — | — | 300 | No files approaching threshold yet |
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
## Topic index
|
|
47
|
+
|
|
48
|
+
<!-- INSTRUCTION: Add entries as your project develops content worth indexing.
|
|
49
|
+
The topic index is most valuable AFTER files have been split — it lets the agent
|
|
50
|
+
find content that moved from one file to component files. -->
|
|
51
|
+
|
|
52
|
+
| Topic | File | Section hint |
|
|
53
|
+
|-------|------|-------------|
|
|
54
|
+
| — | — | Populate when content is worth indexing |
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## Structural log
|
|
59
|
+
|
|
60
|
+
<!-- Records when files are split, created, deleted, or renamed.
|
|
61
|
+
Enables the agent to understand why an expected file might not exist. -->
|
|
62
|
+
|
|
63
|
+
| Date | Action | Source | Target(s) | Reason |
|
|
64
|
+
|------|--------|--------|-----------|--------|
|
|
65
|
+
| — | — | — | — | No structural changes yet |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Maintenance protocol
|
|
70
|
+
|
|
71
|
+
**After file split**: Update file tree (new components, changed statuses). Add topic index entries. Add structural log entry.
|
|
72
|
+
|
|
73
|
+
**After file creation/deletion**: Update file tree. Update topic index. Add structural log entry.
|
|
74
|
+
|
|
75
|
+
**During context refresh**: Verify line counts. Flag growth alerts. Remove stale entries.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# {Project Name} — Agent Entry Point
|
|
2
|
+
|
|
3
|
+
<!-- INSTRUCTION: Replace {Project Name} and write a 1-2 sentence project description below -->
|
|
4
|
+
{Describe what your project does, its architecture, and key technologies.}
|
|
5
|
+
|
|
6
|
+
## On every query
|
|
7
|
+
|
|
8
|
+
1. This file is auto-loaded — read it first
|
|
9
|
+
2. Read `STATE.md` for current position, decisions, blockers
|
|
10
|
+
3. Read `.context/PROTOCOL.yaml` for scoping, cascade, and conventions
|
|
11
|
+
4. Scope query against PROTOCOL.yaml `scoping:` section
|
|
12
|
+
5. After work, check PROTOCOL.yaml `close_check` before ending response
|
|
13
|
+
|
|
14
|
+
## Settings
|
|
15
|
+
|
|
16
|
+
mode: checkpoint
|
|
17
|
+
<!-- autonomous | checkpoint | collaborative | supervised -->
|
|
18
|
+
<!-- checkpoint: propose plan, wait for approval, report at completion (default) -->
|
|
19
|
+
|
|
20
|
+
tier: full
|
|
21
|
+
<!-- lite | standard | full -->
|
|
22
|
+
<!-- lite: minimal rules, STATE.md only — for Haiku or simple projects -->
|
|
23
|
+
<!-- standard: core rules + context pairing — for Sonnet (default) -->
|
|
24
|
+
<!-- full: all rules, all intelligence layer files — for Opus or complex projects -->
|
|
25
|
+
|
|
26
|
+
method_version: 1.6
|
|
27
|
+
<!-- Use `wwa status` to compare against latest -->
|
|
28
|
+
|
|
29
|
+
## CLI tools (optional)
|
|
30
|
+
|
|
31
|
+
Install: `npm install -g agent-method` (then use `wwa`), or `pip install wwa-tools`.
|
|
32
|
+
|
|
33
|
+
| When you want to... | Run |
|
|
34
|
+
|---------------------|-----|
|
|
35
|
+
| Validate this entry point | `wwa check` |
|
|
36
|
+
| See what type of project this is | `wwa scan` |
|
|
37
|
+
| Test how a query routes | `wwa route "your question"` |
|
|
38
|
+
| See current plan status | `wwa plan` |
|
|
39
|
+
| Get implementation guidance | `wwa implement` |
|
|
40
|
+
| View project review dashboard | `wwa review` |
|
|
41
|
+
| Show management digest | `wwa digest` |
|
|
42
|
+
| Session close + project snapshot | `wwa close` |
|
|
43
|
+
| Extract a refinement report | `wwa refine` |
|
|
44
|
+
| Extract a case study (with project tokens) | `wwa casestudy` |
|
|
45
|
+
| Check docs coverage | `wwa docs` |
|
|
46
|
+
| Show dependency graph | `wwa deps` |
|
|
47
|
+
| Generate document registry | `wwa doc-review` |
|
|
48
|
+
| Check methodology version | `wwa status` |
|
|
49
|
+
| Update methodology files | `wwa upgrade` |
|
|
50
|
+
| Set up a new project | `wwa init` |
|
|
51
|
+
| Run project discovery workflow | `wwa project-discovery` |
|
|
52
|
+
| Run context refresh workflow | `wwa context-refresh` |
|
|
53
|
+
| Run phase completion workflow | `wwa phase-complete` |
|
|
54
|
+
| Show routing for backlog | `wwa backlog` |
|
|
55
|
+
| Run planning workflow | `wwa plan-create` |
|
|
56
|
+
| Run dependency analysis workflow | `wwa dependency-analysis` |
|
|
57
|
+
| Run debt assessment workflow | `wwa debt-assessment` |
|
|
58
|
+
| Run docs update workflow | `wwa docs-update` |
|
|
59
|
+
| Run cross-reference workflow | `wwa cross-reference` |
|
|
60
|
+
| Append to backlog / decision / finding / session / summary | `wwa add <type> [content]` |
|
|
61
|
+
|
|
62
|
+
When doing **project review** or **self-review** sessions, use the collection checklist for capture format: `docs/internal/review/collection-checklist.md` (if present).
|
|
63
|
+
|
|
64
|
+
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
65
|
+
project setup, or methodology updates. All commands auto-detect project type and find
|
|
66
|
+
entry points automatically. Add --json for machine-readable output. -->
|
|
67
|
+
|
|
68
|
+
## Do not
|
|
69
|
+
|
|
70
|
+
- Modify project source code, tests, or pre-existing documentation through methodology operations — only create/modify methodology files (STATE.md, .context/, PLAN.md, etc.)
|
|
71
|
+
- Delete existing project files during brownfield integration — methodology is additive only
|
|
72
|
+
- Load files not in PROTOCOL.yaml scoping read-set for the current query type
|
|
73
|
+
- Defer STATE.md decision recording to end of session
|
|
74
|
+
- Skip cascade checks after file changes
|
|
75
|
+
- Load multiple specialist .context/ files for a single query
|
|
76
|
+
- Record routine queries in STATE.md or SESSION-LOG.md — only decisions, blockers, and high-effort work warrant documentation
|
|
77
|
+
|
|
78
|
+
<!-- INSTRUCTION: Add project-specific "do not" rules as you discover common mistakes -->
|
|
79
|
+
|
|
80
|
+
## First session
|
|
81
|
+
|
|
82
|
+
<!-- AGENT: If PROJECT.md contains {placeholder} text, this is a first session. -->
|
|
83
|
+
Follow the onboarding protocol in `.context/METHODOLOGY.md` — it guides you through
|
|
84
|
+
greenfield (4 stages) or brownfield (5 stages) setup with checkpoints at each step.
|
|
85
|
+
|
|
86
|
+
## Before ending this response
|
|
87
|
+
|
|
88
|
+
Read `.context/PROTOCOL.yaml` `close_check`. For each triggered item,
|
|
89
|
+
update the target file now. A response that modifies files but skips
|
|
90
|
+
triggered obligations is incomplete.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# {Project Name} — Agent Entry Point
|
|
2
|
+
|
|
3
|
+
<!-- INSTRUCTION: Replace {Project Name} and write a 1-2 sentence project description below -->
|
|
4
|
+
{Describe what your project does, its architecture, and key technologies.}
|
|
5
|
+
|
|
6
|
+
## On every query
|
|
7
|
+
|
|
8
|
+
1. This file is auto-loaded — read it first
|
|
9
|
+
2. Read `STATE.md` for current position, decisions, blockers
|
|
10
|
+
3. Read `.context/PROTOCOL.yaml` for scoping, cascade, and conventions
|
|
11
|
+
4. Scope query against PROTOCOL.yaml `scoping:` section
|
|
12
|
+
5. After work, check PROTOCOL.yaml `close_check` before ending response
|
|
13
|
+
|
|
14
|
+
## Settings
|
|
15
|
+
|
|
16
|
+
mode: checkpoint
|
|
17
|
+
<!-- autonomous | checkpoint | collaborative | supervised -->
|
|
18
|
+
<!-- checkpoint: propose plan, wait for approval, report at completion (default) -->
|
|
19
|
+
|
|
20
|
+
tier: full
|
|
21
|
+
<!-- lite | standard | full -->
|
|
22
|
+
<!-- lite: minimal rules, STATE.md only — for Haiku or simple projects -->
|
|
23
|
+
<!-- standard: core rules + context pairing — for Sonnet (default) -->
|
|
24
|
+
<!-- full: all rules, all intelligence layer files — for Opus or complex projects -->
|
|
25
|
+
|
|
26
|
+
method_version: 1.6
|
|
27
|
+
<!-- Use `wwa status` to compare against latest -->
|
|
28
|
+
|
|
29
|
+
## CLI tools (optional)
|
|
30
|
+
|
|
31
|
+
Install: `npm install -g agent-method` (then use `wwa`), or `pip install wwa-tools`.
|
|
32
|
+
|
|
33
|
+
| When you want to... | Run |
|
|
34
|
+
|---------------------|-----|
|
|
35
|
+
| Validate this entry point | `wwa check` |
|
|
36
|
+
| See what type of project this is | `wwa scan` |
|
|
37
|
+
| Test how a query routes | `wwa project-discovery` / `wwa context-refresh` / `wwa plan-create` (see CLI docs) |
|
|
38
|
+
| See current plan status | `wwa plan` |
|
|
39
|
+
| Get implementation guidance | `wwa implement` |
|
|
40
|
+
| View project review dashboard | `wwa review` |
|
|
41
|
+
| Show management digest | `wwa digest` |
|
|
42
|
+
| Session close + project snapshot | `wwa close` |
|
|
43
|
+
| Extract a refinement report | `wwa refine` |
|
|
44
|
+
| Extract a case study (with project tokens) | `wwa casestudy` |
|
|
45
|
+
| Check docs coverage | `wwa docs` |
|
|
46
|
+
| Show dependency graph | `wwa deps` |
|
|
47
|
+
| Generate document registry | `wwa doc-review` |
|
|
48
|
+
| Check methodology version | `wwa status` |
|
|
49
|
+
| Update methodology files | `wwa upgrade` |
|
|
50
|
+
| Set up a new project | `wwa init` |
|
|
51
|
+
| Run project discovery workflow | `wwa project-discovery` |
|
|
52
|
+
| Run context refresh workflow | `wwa context-refresh` |
|
|
53
|
+
| Run phase completion workflow | `wwa phase-complete` |
|
|
54
|
+
| Show routing for backlog | `wwa backlog` |
|
|
55
|
+
| Run planning workflow | `wwa plan-create` |
|
|
56
|
+
| Run dependency analysis workflow | `wwa dependency-analysis` |
|
|
57
|
+
| Run debt assessment workflow | `wwa debt-assessment` |
|
|
58
|
+
| Run docs update workflow | `wwa docs-update` |
|
|
59
|
+
| Run cross-reference workflow | `wwa cross-reference` |
|
|
60
|
+
| Append to backlog / decision / finding / session / summary | `wwa add <type> [content]` |
|
|
61
|
+
|
|
62
|
+
When doing **project review** or **self-review** sessions, use the collection checklist for capture format: `docs/internal/review/collection-checklist.md` (if present).
|
|
63
|
+
|
|
64
|
+
<!-- INSTRUCTION: The agent can suggest these commands when the user asks about validation,
|
|
65
|
+
project setup, or methodology updates. All commands auto-detect project type and find
|
|
66
|
+
entry points automatically. Add --json for machine-readable output. -->
|
|
67
|
+
|
|
68
|
+
## Do not
|
|
69
|
+
|
|
70
|
+
- Modify project source code, tests, or pre-existing documentation through methodology operations — only create/modify methodology files (STATE.md, .context/, PLAN.md, etc.)
|
|
71
|
+
- Delete existing project files during brownfield integration — methodology is additive only
|
|
72
|
+
- Load files not in PROTOCOL.yaml scoping read-set for the current query type
|
|
73
|
+
- Defer STATE.md decision recording to end of session
|
|
74
|
+
- Skip cascade checks after file changes
|
|
75
|
+
- Load multiple specialist .context/ files for a single query
|
|
76
|
+
- Record routine queries in STATE.md or SESSION-LOG.md — only decisions, blockers, and high-effort work warrant documentation
|
|
77
|
+
|
|
78
|
+
<!-- INSTRUCTION: Add project-specific "do not" rules as you discover common mistakes -->
|
|
79
|
+
|
|
80
|
+
## First session
|
|
81
|
+
|
|
82
|
+
<!-- AGENT: If PROJECT.md contains {placeholder} text, this is a first session. -->
|
|
83
|
+
Follow the onboarding protocol in `.context/METHODOLOGY.md` — it guides you through
|
|
84
|
+
greenfield (4 stages) or brownfield (5 stages) setup with checkpoints at each step.
|
|
85
|
+
|
|
86
|
+
## Before ending this response
|
|
87
|
+
|
|
88
|
+
Read `.context/PROTOCOL.yaml` `close_check`. For each triggered item,
|
|
89
|
+
update the target file now. A response that modifies files but skips
|
|
90
|
+
triggered obligations is incomplete.
|