agent-method 1.5.3 → 1.5.6

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.
Files changed (64) hide show
  1. package/README.md +197 -57
  2. package/bin/wwa.js +35 -9
  3. package/docs/internal/doc-tokens.yaml +452 -0
  4. package/docs/internal/feature-registry.yaml +13 -1
  5. package/lib/cli/casestudy.js +691 -0
  6. package/lib/cli/check.js +71 -71
  7. package/lib/cli/close.js +446 -0
  8. package/lib/cli/completion.js +639 -0
  9. package/lib/cli/digest.js +66 -0
  10. package/lib/cli/docs.js +207 -0
  11. package/lib/cli/helpers.js +49 -2
  12. package/lib/cli/implement.js +159 -0
  13. package/lib/cli/init.js +25 -6
  14. package/lib/cli/plan.js +128 -0
  15. package/lib/cli/refine.js +202 -202
  16. package/lib/cli/review.js +68 -0
  17. package/lib/cli/scan.js +28 -28
  18. package/lib/cli/status.js +61 -61
  19. package/lib/cli/upgrade.js +150 -147
  20. package/lib/init.js +478 -296
  21. package/package.json +12 -4
  22. package/templates/README.md +73 -25
  23. package/templates/entry-points/.cursorrules +143 -14
  24. package/templates/entry-points/AGENT.md +143 -14
  25. package/templates/entry-points/CLAUDE.md +143 -14
  26. package/templates/extensions/analytical-system.md +1 -1
  27. package/templates/extensions/code-project.md +1 -1
  28. package/templates/extensions/data-exploration.md +1 -1
  29. package/templates/full/.context/BASE.md +33 -0
  30. package/templates/full/.context/METHODOLOGY.md +62 -5
  31. package/templates/full/.cursorrules +128 -18
  32. package/templates/full/AGENT.md +128 -18
  33. package/templates/full/CLAUDE.md +128 -18
  34. package/templates/full/Management/DIGEST.md +23 -0
  35. package/templates/full/Management/STATUS.md +46 -0
  36. package/templates/full/PROJECT.md +34 -0
  37. package/templates/full/Reviews/INDEX.md +41 -0
  38. package/templates/full/Reviews/backlog.md +52 -0
  39. package/templates/full/Reviews/plan.md +43 -0
  40. package/templates/full/Reviews/project.md +41 -0
  41. package/templates/full/Reviews/requirements.md +42 -0
  42. package/templates/full/Reviews/roadmap.md +41 -0
  43. package/templates/full/Reviews/state.md +56 -0
  44. package/templates/full/SESSION-LOG.md +29 -0
  45. package/templates/full/SUMMARY.md +7 -4
  46. package/templates/full/agentWorkflows/INDEX.md +42 -0
  47. package/templates/full/agentWorkflows/observations.md +65 -0
  48. package/templates/full/agentWorkflows/patterns.md +68 -0
  49. package/templates/full/agentWorkflows/sessions.md +92 -0
  50. package/templates/full/intro/README.md +39 -0
  51. package/templates/starter/.context/BASE.md +35 -0
  52. package/templates/starter/.context/METHODOLOGY.md +59 -5
  53. package/templates/starter/.cursorrules +135 -13
  54. package/templates/starter/AGENT.md +135 -13
  55. package/templates/starter/CLAUDE.md +135 -13
  56. package/templates/starter/Management/DIGEST.md +23 -0
  57. package/templates/starter/Management/STATUS.md +46 -0
  58. package/templates/starter/PROJECT.md +34 -0
  59. package/templates/starter/Reviews/INDEX.md +75 -0
  60. package/templates/starter/SESSION-LOG.md +29 -0
  61. package/templates/starter/SUMMARY.md +27 -0
  62. package/templates/starter/agentWorkflows/INDEX.md +61 -0
  63. package/templates/starter/intro/README.md +37 -0
  64. package/templates/full/docs/index.md +0 -46
@@ -0,0 +1,452 @@
1
+ # Documentation Token Registry
2
+ # Single source of truth for values AND names that appear across documentation.
3
+ # When a value or name changes, update this file FIRST, then propagate to all docs.
4
+ #
5
+ # Two sections:
6
+ # tokens: — values that change (CLI commands, version numbers, counts, thresholds)
7
+ # names: — terminology that must stay consistent (concepts, workflows, stages, file roles)
8
+ #
9
+ # Usage: Agent reads this file before writing or updating any docs/ file.
10
+ # Cascade rule: when this file changes, check all docs/ for stale token values or name inconsistencies.
11
+
12
+ # ============================================================
13
+ # SECTION 1: VALUES (things that change)
14
+ # ============================================================
15
+
16
+ tokens:
17
+
18
+ # --- CLI and distribution ---
19
+ cli_command: wwa # Primary command after global install
20
+ npm_package: agent-method # npm package name (npx agent-method)
21
+ pip_package: wwa-tools # pip package name
22
+ npx_zero_install: "npx agent-method" # Zero-install invocation
23
+ npm_global_install: "npm install -g agent-method"
24
+ pip_install: "pip install wwa-tools"
25
+ mcp_server_start: "npx agent-method serve" # MCP server command
26
+ watcher_start: "npx agent-method watch" # Watcher command
27
+
28
+ # --- Project identity ---
29
+ project_name: wwa
30
+ repo_url: "https://github.com/anthropics/wwa.git"
31
+ npm_version: "1.5.1"
32
+
33
+ # --- Registry and capability counts ---
34
+ registry_version: "v1.5"
35
+ feature_count: 32
36
+ domain_count: 8
37
+ directive_count: 10
38
+ workflow_count: 8
39
+ query_pattern_count: 29
40
+
41
+ # --- Integration profiles (model names) ---
42
+ lite_models: "Haiku, GPT-3.5, Gemini Flash"
43
+ standard_models: "Sonnet, GPT-4, Gemini Pro, Codex"
44
+ full_models: "Opus, o1, Gemini Ultra"
45
+
46
+ # --- File thresholds ---
47
+ max_file_lines: 300 # Intelligence layer file split threshold
48
+ base_md_max_lines: 100 # .context/BASE.md target
49
+ specialist_max_lines: 150 # Specialist context file target
50
+ entry_point_target_lines: 60 # Agent-parsed entry point content target
51
+
52
+ # --- Template tiers ---
53
+ starter_file_count: 18 # 3 entry points + PROJECT.md + STATE.md + ROADMAP.md + PLAN.md + PROJECT-PROFILE.md + SESSION-LOG.md + SUMMARY.md + .context/{BASE,METHODOLOGY,DOCS-MAP}.md + Management/{DIGEST,STATUS}.md + Reviews/INDEX.md + agentWorkflows/INDEX.md + intro/README.md
54
+ full_file_count: 32 # Starter + REQUIREMENTS.md + .context/{REGISTRY,COMPOSITION}.md + todos/backlog.md + Reviews/6 drill-downs + agentWorkflows/3 analysis files
55
+
56
+ # --- Developer commands (primary format: wwa <cmd>) ---
57
+ cmd_init: "wwa init"
58
+ cmd_check: "wwa check"
59
+ cmd_scan: "wwa scan"
60
+ cmd_route: "wwa route"
61
+ cmd_plan: "wwa plan"
62
+ cmd_implement: "wwa implement"
63
+ cmd_review: "wwa review"
64
+ cmd_digest: "wwa digest"
65
+ cmd_close: "wwa close"
66
+ cmd_refine: "wwa refine"
67
+ cmd_status: "wwa status"
68
+ cmd_upgrade: "wwa upgrade"
69
+ cmd_casestudy: "wwa casestudy"
70
+ cmd_docs: "wwa docs"
71
+ cmd_serve: "wwa serve"
72
+ cmd_watch: "wwa watch"
73
+ cmd_completion: "wwa completion"
74
+
75
+ # --- Developer command count ---
76
+ developer_cmd_count: 14 # check, scan, route, refine, status, upgrade, init, plan, implement, review, digest, close, casestudy, docs
77
+ pipeline_cmd_count: 5 # classify, select, resolve, cascade, test
78
+ server_cmd_count: 2 # serve, watch
79
+ completion_cmd_count: 1 # completion (bash/zsh/fish/powershell)
80
+ total_cmd_count: 22 # all commands (14 dev + 5 pipeline + 2 server + 1 completion)
81
+
82
+ # --- Node.js requirements ---
83
+ node_min_version: "18"
84
+ python_min_version: "3.9"
85
+
86
+ # ============================================================
87
+ # SECTION 2: NAMES (terminology that must stay consistent)
88
+ # ============================================================
89
+ # Each entry has:
90
+ # canonical: the standard form to use in documentation
91
+ # aliases: variant forms (abbreviations, CLI names, display names)
92
+ # context: where/how this name is typically used
93
+
94
+ names:
95
+
96
+ # --- 1. Workflow stages (the 6 sequential stages) ---
97
+ workflow_stages:
98
+ - canonical: Initialize
99
+ aliases: [init, cold start, session start]
100
+ context: "First stage. Agent loads entry point + STATE.md."
101
+ - canonical: Scope
102
+ aliases: [scoping, query classification]
103
+ context: "Agent classifies query against scoping table, loads relevant files."
104
+ - canonical: Plan
105
+ aliases: [planning, task planning]
106
+ context: "Agent proposes structured plan. Primary checkpoint."
107
+ - canonical: Execute
108
+ aliases: [execution, implement, implementation]
109
+ context: "Agent implements approved plan. Records decisions in STATE.md."
110
+ - canonical: Verify
111
+ aliases: [verification, validation]
112
+ context: "Agent checks work against plan criteria."
113
+ - canonical: Close
114
+ aliases: [session close, wrap-up]
115
+ context: "Agent writes SUMMARY.md entry, updates STATE.md position."
116
+
117
+ # --- 2. Interaction levels (4 density settings) ---
118
+ interaction_levels:
119
+ - canonical: autonomous
120
+ context: "Routine, low-risk work. Agent handles independently."
121
+ - canonical: checkpoint
122
+ context: "Default. Approve plan, trust execution, report at completion."
123
+ - canonical: collaborative
124
+ context: "Complex tasks. Iterate on each step."
125
+ - canonical: supervised
126
+ context: "Learning methodology, high-risk, or debugging."
127
+
128
+ # --- 3. Integration profiles (3 tiers) ---
129
+ integration_profiles:
130
+ - canonical: lite
131
+ aliases: [Lite]
132
+ context: "Minimal rules, STATE.md only, 2 cascade rules. For Haiku, GPT-3.5, Gemini Flash."
133
+ - canonical: standard
134
+ aliases: [Standard]
135
+ context: "Default. Core rules + context pairing, overflow to METHODOLOGY.md. For Sonnet, GPT-4, Gemini Pro, Codex."
136
+ - canonical: full
137
+ aliases: [Full]
138
+ context: "All rules inline, all intelligence layer files. For Opus, o1, Gemini Ultra."
139
+
140
+ # --- 4. Template tiers (2 tiers) ---
141
+ template_tiers:
142
+ - canonical: starter
143
+ aliases: [Starter]
144
+ context: "7 files. Entry point, PROJECT.md, STATE.md, ROADMAP.md, PLAN.md, .context/BASE.md, PROJECT-PROFILE.md."
145
+ - canonical: full
146
+ aliases: [Full]
147
+ context: "11+ files. Adds REQUIREMENTS.md, SUMMARY.md, .context/REGISTRY.md, .context/COMPOSITION.md, todos/backlog.md."
148
+
149
+ # --- 5. Project types (5 types + CLI aliases) ---
150
+ project_types:
151
+ - canonical: general
152
+ cli_alias: general
153
+ context: "Universal rules only. No extensions."
154
+ - canonical: code
155
+ cli_alias: code
156
+ context: "Software development. Code change, bug fix, dependency, database, API, deployment."
157
+ - canonical: data
158
+ cli_alias: data
159
+ context: "Dataset analysis, document exploration. Data ingest, schema, exploration."
160
+ - canonical: analytical
161
+ cli_alias: context
162
+ context: "Research, evaluation, prompt/context work. Chain work, evaluation, composition."
163
+ - canonical: mixed
164
+ cli_alias: mix
165
+ context: "Multiple extensions combined. Code + data, code + analytical."
166
+
167
+ # --- 6. Guided workflows (8 workflows) ---
168
+ guided_workflows:
169
+ - id: WF-01
170
+ canonical: standard-task
171
+ display: "Standard task"
172
+ context: "Review → Plan → Implement → Document → Update. Default for general queries."
173
+ - id: WF-02
174
+ canonical: code-change
175
+ display: "Code change"
176
+ context: "Review → Plan → Implement → Context-sync → Update. Code projects."
177
+ - id: WF-03
178
+ canonical: context-refresh
179
+ display: "Context refresh"
180
+ context: "Scan → Compare → Update context → Cascade → Record."
181
+ - id: WF-04
182
+ canonical: agent-guided-onboarding
183
+ display: "Agent-guided onboarding"
184
+ aliases: [bootstrap, first session]
185
+ context: "Ask → Populate → Confirm. Greenfield (4 stages) and brownfield (5 stages)."
186
+ - id: WF-05
187
+ canonical: data-exploration
188
+ display: "Data exploration"
189
+ context: "Ingest → Map → Reference → Explore → Refine. Data projects."
190
+ - id: WF-06
191
+ canonical: analytical-system
192
+ display: "Analytical system"
193
+ context: "Discover → Map chains → Build context → Compose → Evaluate → Refine."
194
+ - id: WF-07
195
+ canonical: specification-project
196
+ display: "Specification project"
197
+ context: "For spec writing projects."
198
+ - id: WF-08
199
+ canonical: discovery
200
+ display: "Discovery"
201
+ aliases: [brownfield discovery]
202
+ context: "Inventory → Map → Extract → Assess → Bootstrap. Brownfield projects."
203
+
204
+ # --- 7. Feature domains (8 domains) ---
205
+ feature_domains:
206
+ - id: CTX
207
+ canonical: Context management
208
+ feature_range: "CTX-01 through CTX-06"
209
+ context: "Bootstrap, maintain, evolve .context/ files."
210
+ - id: QRY
211
+ canonical: Query routing
212
+ feature_range: "QRY-01 through QRY-03"
213
+ context: "Session init, query classification, cascade propagation."
214
+ - id: STT
215
+ canonical: State management
216
+ feature_range: "STT-01 through STT-03"
217
+ context: "Decision capture, uncertainty tracking, position tracking."
218
+ - id: TSK
219
+ canonical: Task execution
220
+ feature_range: "TSK-01 through TSK-04"
221
+ context: "Planning, verification, session close, audit trail."
222
+ - id: HAI
223
+ canonical: Human-agent interaction
224
+ feature_range: "HAI-01 through HAI-05"
225
+ context: "Checkpoints, interaction levels, audience separation, docs triggers, model capability."
226
+ - id: TPL
227
+ canonical: Template and bootstrap
228
+ feature_range: "TPL-01 through TPL-03"
229
+ context: "Project init, runtime detection, structure selection."
230
+ - id: EXP
231
+ canonical: Data exploration
232
+ feature_range: "EXP-01 through EXP-04"
233
+ context: "Data ingest, reference building, exploration commands, abstraction management."
234
+ - id: SCAN
235
+ canonical: Project discovery
236
+ aliases: [Brownfield discovery]
237
+ feature_range: "SCAN-01 through SCAN-04"
238
+ context: "Codebase inventory, dependency mapping, pattern extraction, debt assessment."
239
+
240
+ # --- 8. Protocol directives (10 directives) ---
241
+ protocol_directives:
242
+ - id: P-01
243
+ canonical: Build understanding
244
+ short: "Every change is also a context change"
245
+ - id: P-02
246
+ canonical: Maintain for future self
247
+ short: "Record decisions in STATE.md in the SAME response"
248
+ - id: P-03
249
+ canonical: Cascade is not optional
250
+ short: "After every file change, check the cascade table"
251
+ - id: P-04
252
+ canonical: Scope to avoid drowning
253
+ short: "Load BASE.md + one specialist per query"
254
+ - id: P-05
255
+ canonical: Surface uncertainty
256
+ short: "Surface uncertainty as open questions in STATE.md"
257
+ - id: P-06
258
+ canonical: Human controls direction
259
+ short: "Propose plans and wait for approval"
260
+ - id: P-07
261
+ canonical: Keep files loadable
262
+ short: "Intelligence layer files under 300 lines"
263
+ - id: P-08
264
+ canonical: Methodology is additive only
265
+ short: "Never modify source code, never delete existing files"
266
+ - id: P-09
267
+ canonical: Surface capability limitations
268
+ short: "Agent self-monitors and alerts user to degradation"
269
+ - id: P-10
270
+ canonical: Document proportionally
271
+ short: "Match documentation effort to task significance"
272
+
273
+ # --- 9. Methodology concepts (~10 key terms) ---
274
+ methodology_concepts:
275
+ - canonical: context pairing
276
+ aliases: [BASE + specialist model]
277
+ context: "Loading BASE.md + one specialist file per query type."
278
+ - canonical: dependency cascade
279
+ aliases: [cascade, cascade table, cascade rules]
280
+ context: "When X changes, also update Y. Prevents file drift."
281
+ - canonical: scoping rules
282
+ aliases: [scoping table, query routing]
283
+ context: "Query type → file set mapping in entry point."
284
+ - canonical: intelligence layer
285
+ aliases: [project intelligence layer]
286
+ context: "PROJECT/STATE/REQUIREMENTS/ROADMAP/PLAN/SUMMARY files."
287
+ - canonical: interaction level
288
+ context: "Configurable checkpoint density: autonomous/checkpoint/collaborative/supervised."
289
+ - canonical: entry point
290
+ aliases: [agent entry point]
291
+ context: "Auto-loaded file (CLAUDE.md/.cursorrules/AGENT.md) with scoping + cascade."
292
+ - canonical: specialist context
293
+ aliases: [specialist file, specialist]
294
+ context: "Domain-specific .context/ file loaded per scoping rule."
295
+ - canonical: phase gate
296
+ aliases: [gate, gate criteria]
297
+ context: "Testable criteria that define done per phase."
298
+ - canonical: codebase map
299
+ context: "Table of paths, purposes, patterns in BASE.md for code projects."
300
+ - canonical: context refresh
301
+ context: "Agent rescans project and updates .context/ files."
302
+ - canonical: scale management
303
+ aliases: [file splitting, index + components]
304
+ context: "When files exceed 300 lines, split into index + components subdirectory."
305
+
306
+ # --- 10. Intelligence layer files ---
307
+ intelligence_layer_files:
308
+ - file: PROJECT.md
309
+ role: "Project vision, audiences, principles"
310
+ audience: human
311
+ - file: PROJECT-PROFILE.md
312
+ role: "Project type, lifecycle stage, active extensions"
313
+ audience: agent
314
+ - file: STATE.md
315
+ role: "Current position, decisions, blockers, open questions"
316
+ audience: both
317
+ - file: REQUIREMENTS.md
318
+ role: "Formal requirements with traceability"
319
+ tier: full
320
+ - file: ROADMAP.md
321
+ role: "Phase breakdown with deliverables and gate criteria"
322
+ audience: both
323
+ - file: PLAN.md
324
+ role: "Current atomic task with verification criteria"
325
+ audience: agent
326
+ - file: SUMMARY.md
327
+ role: "Session audit trail (chronological record of work done)"
328
+ audience: both
329
+ - file: SESSION-LOG.md
330
+ role: "Session metrics and refinement tracking"
331
+ audience: agent
332
+ - file: ".context/BASE.md"
333
+ role: "System model, always loaded with entry point"
334
+ audience: agent
335
+ - file: ".context/REGISTRY.md"
336
+ role: "Navigation registry for split file trees"
337
+ tier: full
338
+ - file: ".context/METHODOLOGY.md"
339
+ role: "Workflow and convention overflow for lite/standard profiles"
340
+ audience: agent
341
+ - file: "Management/DIGEST.md"
342
+ role: "High-effort task digest for managers and leads"
343
+ audience: human
344
+ - file: "Management/STATUS.md"
345
+ role: "Project health snapshot — phase, blockers, decisions, risk"
346
+ audience: human
347
+ - file: "Reviews/INDEX.md"
348
+ role: "Synthesized project intelligence dashboard"
349
+ audience: both
350
+ - file: "agentWorkflows/INDEX.md"
351
+ role: "Agent workflow performance overview"
352
+ audience: both
353
+
354
+ # --- 11. Communication point types ---
355
+ communication_points:
356
+ - canonical: direction
357
+ context: "Human → agent. Drives work. Queries, approvals, redirects."
358
+ - canonical: checkpoint
359
+ context: "Agent → human. Surfaces state. Plans, status, questions."
360
+ - canonical: record
361
+ context: "Persistent artifacts. STATE.md, SUMMARY.md, .context/ files."
362
+
363
+ # --- 12. Interaction patterns (7 patterns) ---
364
+ interaction_patterns:
365
+ - canonical: Cold start
366
+ aliases: [session start, initialization]
367
+ context: "Two-file load: entry point + STATE.md."
368
+ - canonical: Scoped reading
369
+ aliases: [query scoping]
370
+ context: "Query classification → file set loading."
371
+ - canonical: Decision recording
372
+ context: "Immediate capture in STATE.md decisions table."
373
+ - canonical: Cascade updating
374
+ context: "Post-change propagation via cascade table."
375
+ - canonical: Uncertainty flagging
376
+ context: "Open questions surfaced in STATE.md."
377
+ - canonical: Audit trail
378
+ context: "SUMMARY.md session entries at close."
379
+ - canonical: Session metrics
380
+ context: "Effort, ambiguity, context, tokens, time, user response tracking."
381
+
382
+ # --- 13. Entry point runtimes ---
383
+ entry_point_runtimes:
384
+ - file: CLAUDE.md
385
+ runtime: Claude Code
386
+ auto_loaded: true
387
+ - file: ".cursorrules"
388
+ runtime: Cursor
389
+ aliases: [Cursor Composer]
390
+ auto_loaded: true
391
+ - file: AGENT.md
392
+ runtime: Other
393
+ aliases: [Gemini, Codex, Cline, Aider]
394
+ auto_loaded: false
395
+ note: "Paste or reference manually"
396
+
397
+ # ============================================================
398
+ # SECTION 3: PROPAGATION TRACKING
399
+ # ============================================================
400
+ # Files known to use tokens/names from this registry.
401
+ # When tokens change, check these files for stale values.
402
+ # When names change, check docs for inconsistent terminology.
403
+
404
+ propagation_targets:
405
+ docs:
406
+ - docs/guides/quick-start.md
407
+ - docs/guides/for-developers.md
408
+ - docs/guides/for-developers/cli-tools.md
409
+ - docs/guides/for-managers.md
410
+ - docs/guides/mcp-integration.md
411
+ - docs/index.md
412
+ - docs/architecture/file-roles.md
413
+ - docs/architecture/scoping-rules.md
414
+ - docs/architecture/dependency-cascade.md
415
+ - docs/architecture/context-pairing.md
416
+ - docs/architecture/integration-profiles.md
417
+ - docs/architecture/project-lifecycle.md
418
+ - docs/architecture/feature-tree.md
419
+ - docs/architecture/workflow-extensions.md
420
+ - docs/workflow/stages.md
421
+ - docs/workflow/interaction-patterns.md
422
+ - docs/workflow/communication-points.md
423
+ - docs/workflow/human-agent-contract.md
424
+ - docs/workflow/session-protocol.md
425
+ - docs/workflow/task-structure.md
426
+ templates:
427
+ - templates/README.md
428
+ - templates/starter/CLAUDE.md
429
+ - templates/starter/AGENT.md
430
+ - templates/starter/.cursorrules
431
+ - templates/full/CLAUDE.md
432
+ - templates/full/AGENT.md
433
+ - templates/full/.cursorrules
434
+ - templates/entry-points/CLAUDE.md
435
+ - templates/entry-points/AGENT.md
436
+ - templates/entry-points/.cursorrules
437
+ - templates/extensions/code-project.md
438
+ - templates/extensions/data-exploration.md
439
+ - templates/extensions/analytical-system.md
440
+ - templates/extensions/MANIFEST.md
441
+ project:
442
+ - README.md
443
+ - PROJECT.md
444
+ - CHANGELOG.md
445
+ - REQUIREMENTS.md
446
+ case_studies:
447
+ - case-studies/framework.md
448
+ internal:
449
+ - docs/internal/features.md
450
+ - docs/internal/feature-registry.yaml
451
+ - docs/internal/doc-update-policy.md
452
+ - docs/internal/docs-navigation-agent.md
@@ -1176,6 +1176,18 @@ protocol:
1176
1176
  model or a lighter integration profile. Two rules followed
1177
1177
  consistently beat ten rules followed inconsistently.
1178
1178
 
1179
+ - id: P-10
1180
+ name: Document proportionally
1181
+ project_types: [universal]
1182
+ directive: >
1183
+ Match documentation effort to task significance. Low-effort tasks
1184
+ (status checks, lookups, clarifications) need no STATE.md or
1185
+ SESSION-LOG updates beyond the cascade contract. Medium-effort tasks
1186
+ get targeted recording (decisions yes, session log optional).
1187
+ High-effort tasks get full recording including session metrics and
1188
+ refinement tracking. The agent self-assesses materiality and documents
1189
+ accordingly. Never record routine queries in STATE.md or SESSION-LOG.md.
1190
+
1179
1191
  workflow_selection: >
1180
1192
  When a query arrives, the agent selects the appropriate guided workflow:
1181
1193
  - First session / template just copied → WF-04 (bootstrap)
@@ -1517,7 +1529,7 @@ versions:
1517
1529
  v1.5:
1518
1530
  features: 32
1519
1531
  workflows: 8
1520
- protocol_directives: 9
1532
+ protocol_directives: 10
1521
1533
  query_patterns: 29
1522
1534
  notes: >
1523
1535
  Adds HAI-05 modelCapabilityCheck (degradation detection + user surfacing).