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,121 @@
|
|
|
1
|
+
# ============================================================
|
|
2
|
+
# LAYER 3: AGENT BEHAVIORAL PROTOCOL
|
|
3
|
+
# ============================================================
|
|
4
|
+
|
|
5
|
+
protocol:
|
|
6
|
+
purpose: >
|
|
7
|
+
The agent's job is not just to complete tasks. It is to build and
|
|
8
|
+
maintain a project intelligence layer that makes every future session
|
|
9
|
+
more effective than the last. When you change something, you also update
|
|
10
|
+
the project's understanding of itself. When you make a decision, you
|
|
11
|
+
record it. When you encounter something new, you build context.
|
|
12
|
+
|
|
13
|
+
core_directives:
|
|
14
|
+
- id: P-01
|
|
15
|
+
name: Build understanding, not just output
|
|
16
|
+
project_types: [universal]
|
|
17
|
+
directive: >
|
|
18
|
+
Every change is also a context change. When you add a module,
|
|
19
|
+
update the project map. When you make an architecture decision,
|
|
20
|
+
record it. When you discover a new domain, propose a specialist.
|
|
21
|
+
The agent is always building the project's self-knowledge.
|
|
22
|
+
|
|
23
|
+
- id: P-02
|
|
24
|
+
name: Maintain for your future self
|
|
25
|
+
project_types: [universal]
|
|
26
|
+
directive: >
|
|
27
|
+
Every session starts cold. Write decisions, open questions,
|
|
28
|
+
and context updates as if leaving notes for a colleague who
|
|
29
|
+
will continue your work but has no memory of this session.
|
|
30
|
+
|
|
31
|
+
- id: P-03
|
|
32
|
+
name: Cascade is not optional
|
|
33
|
+
project_types: [universal]
|
|
34
|
+
directive: >
|
|
35
|
+
File changes ripple through dependencies. Check the cascade table
|
|
36
|
+
after every change. Do it in the same response. Deferred cascades
|
|
37
|
+
are skipped cascades.
|
|
38
|
+
|
|
39
|
+
- id: P-04
|
|
40
|
+
name: Scope to avoid drowning
|
|
41
|
+
project_types: [universal]
|
|
42
|
+
directive: >
|
|
43
|
+
Context windows are finite. Follow the scoping table. Load BASE.md
|
|
44
|
+
+ one specialist. If you need more, split the query.
|
|
45
|
+
|
|
46
|
+
- id: P-05
|
|
47
|
+
name: Surface uncertainty, don't hide it
|
|
48
|
+
project_types: [universal]
|
|
49
|
+
directive: >
|
|
50
|
+
Silent assumptions are the primary failure mode. When unsure,
|
|
51
|
+
write an open question. When ambiguous, ask.
|
|
52
|
+
|
|
53
|
+
- id: P-06
|
|
54
|
+
name: The human controls direction
|
|
55
|
+
project_types: [universal]
|
|
56
|
+
directive: >
|
|
57
|
+
The agent proposes; the human decides. The plan checkpoint exists
|
|
58
|
+
because the human's judgment about WHAT to build is more reliable
|
|
59
|
+
than the agent's.
|
|
60
|
+
|
|
61
|
+
- id: P-07
|
|
62
|
+
name: Keep files loadable
|
|
63
|
+
project_types: [universal]
|
|
64
|
+
directive: >
|
|
65
|
+
Context that doesn't fit in the window can't help. Intelligence
|
|
66
|
+
layer files that grow beyond 300 lines consume disproportionate
|
|
67
|
+
tokens. When a file exceeds this threshold, restructure it into
|
|
68
|
+
an index (active content + navigation) and component files
|
|
69
|
+
(archived sections). The index stays small; components are loaded
|
|
70
|
+
only when their specific content is needed.
|
|
71
|
+
|
|
72
|
+
- id: P-08
|
|
73
|
+
name: Methodology is additive only
|
|
74
|
+
project_types: [universal]
|
|
75
|
+
directive: >
|
|
76
|
+
The methodology NEVER modifies project source code, tests, or
|
|
77
|
+
pre-existing documentation. It only creates and modifies its own
|
|
78
|
+
files (STATE.md, .context/, PLAN.md, SUMMARY.md, etc.). In
|
|
79
|
+
brownfield projects, existing files are NEVER deleted or
|
|
80
|
+
overwritten — methodology content is appended to existing entry
|
|
81
|
+
points and new files are created alongside existing ones.
|
|
82
|
+
|
|
83
|
+
- id: P-09
|
|
84
|
+
name: Surface capability limitations
|
|
85
|
+
project_types: [universal]
|
|
86
|
+
directive: >
|
|
87
|
+
Monitor your own methodology adherence during a session. If you
|
|
88
|
+
notice repeated cascade misses, forgotten STATE.md updates,
|
|
89
|
+
shallow context, or lost conventions, surface this to the user
|
|
90
|
+
rather than silently degrading. Record the observation as an
|
|
91
|
+
open question in STATE.md. Suggest switching to a more capable
|
|
92
|
+
model or a lighter integration profile. Two rules followed
|
|
93
|
+
consistently beat ten rules followed inconsistently.
|
|
94
|
+
|
|
95
|
+
- id: P-10
|
|
96
|
+
name: Document proportionally
|
|
97
|
+
project_types: [universal]
|
|
98
|
+
directive: >
|
|
99
|
+
Match documentation effort to task significance. Low-effort tasks
|
|
100
|
+
(status checks, lookups, clarifications) need no STATE.md or
|
|
101
|
+
SESSION-LOG updates beyond the cascade contract. Medium-effort tasks
|
|
102
|
+
get targeted recording (decisions yes, session log optional).
|
|
103
|
+
High-effort tasks get full recording including session metrics and
|
|
104
|
+
refinement tracking. The agent self-assesses materiality and documents
|
|
105
|
+
accordingly. Never record routine queries in STATE.md or SESSION-LOG.md.
|
|
106
|
+
|
|
107
|
+
workflow_selection: >
|
|
108
|
+
When a query arrives, the agent selects the appropriate guided workflow:
|
|
109
|
+
- First session / template just copied → WF-04 (bootstrap)
|
|
110
|
+
- Brownfield project, first application of methodology → WF-08 (discovery)
|
|
111
|
+
- Code modification request → WF-02 (code-change)
|
|
112
|
+
- Data submitted or data question → WF-05 (data-exploration)
|
|
113
|
+
- "Refresh context" or detected drift → WF-03 (context-refresh)
|
|
114
|
+
- General task request → WF-01 (standard-task)
|
|
115
|
+
- Analytical/prompt system task → WF-06 (analytical-system)
|
|
116
|
+
- Spec writing or methodology design → WF-07 (specification-project)
|
|
117
|
+
If no workflow matches, follow WF-01 as the default pattern.
|
|
118
|
+
Project type is inferred from the entry point's scoping table content.
|
|
119
|
+
Lifecycle stage (from PROJECT-PROFILE.md) further adjusts feature priorities —
|
|
120
|
+
see docs/architecture/project-lifecycle.md for the activation table.
|
|
121
|
+
|
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
# ============================================================
|
|
2
|
+
# LAYER 4: ROUTING RULES
|
|
3
|
+
# Computable query classification and feature activation
|
|
4
|
+
# ============================================================
|
|
5
|
+
|
|
6
|
+
query_patterns:
|
|
7
|
+
# --- Universal patterns ---
|
|
8
|
+
- query_type: planning
|
|
9
|
+
match_rules:
|
|
10
|
+
keywords: [plan, roadmap, phase, requirements, scope, prioritize]
|
|
11
|
+
phrases: ["what should we", "next phase", "plan for"]
|
|
12
|
+
workflow: WF-01
|
|
13
|
+
project_types: [universal]
|
|
14
|
+
|
|
15
|
+
- query_type: context_refresh
|
|
16
|
+
match_rules:
|
|
17
|
+
keywords: [refresh, resync, update context, drift, stale]
|
|
18
|
+
phrases: ["refresh context", "update .context", "resync"]
|
|
19
|
+
workflow: WF-03
|
|
20
|
+
project_types: [universal]
|
|
21
|
+
|
|
22
|
+
- query_type: phase_completion
|
|
23
|
+
match_rules:
|
|
24
|
+
keywords: [complete, finish, close, done, gate]
|
|
25
|
+
phrases: ["phase complete", "mark done", "close session"]
|
|
26
|
+
workflow: WF-01
|
|
27
|
+
project_types: [universal]
|
|
28
|
+
|
|
29
|
+
- query_type: backlog
|
|
30
|
+
match_rules:
|
|
31
|
+
keywords: [backlog, idea, future, todo, later]
|
|
32
|
+
phrases: ["add to backlog", "future work"]
|
|
33
|
+
workflow: WF-01
|
|
34
|
+
project_types: [universal]
|
|
35
|
+
|
|
36
|
+
# --- Code project patterns ---
|
|
37
|
+
- query_type: code_change
|
|
38
|
+
match_rules:
|
|
39
|
+
keywords: [implement, code, build, fix, refactor, add feature, modify]
|
|
40
|
+
phrases: ["add a", "change the", "fix the", "refactor", "implement"]
|
|
41
|
+
workflow: WF-02
|
|
42
|
+
project_types: [code]
|
|
43
|
+
|
|
44
|
+
- query_type: bug_fix
|
|
45
|
+
match_rules:
|
|
46
|
+
keywords: [bug, error, broken, failing, debug]
|
|
47
|
+
phrases: ["fix the bug", "why is this", "not working"]
|
|
48
|
+
workflow: WF-02
|
|
49
|
+
project_types: [code]
|
|
50
|
+
|
|
51
|
+
- query_type: dependency_update
|
|
52
|
+
match_rules:
|
|
53
|
+
keywords: [dependency, package, upgrade, install, npm, pip]
|
|
54
|
+
phrases: ["update package", "add dependency"]
|
|
55
|
+
workflow: WF-02
|
|
56
|
+
project_types: [code]
|
|
57
|
+
|
|
58
|
+
- query_type: database_work
|
|
59
|
+
match_rules:
|
|
60
|
+
keywords: [database, schema, migration, model, table, query, sql]
|
|
61
|
+
phrases: ["add a table", "update schema", "run migration"]
|
|
62
|
+
workflow: WF-02
|
|
63
|
+
project_types: [code]
|
|
64
|
+
|
|
65
|
+
- query_type: api_work
|
|
66
|
+
match_rules:
|
|
67
|
+
keywords: [api, endpoint, route, controller, rest, graphql]
|
|
68
|
+
phrases: ["add endpoint", "api route", "rest endpoint"]
|
|
69
|
+
workflow: WF-02
|
|
70
|
+
project_types: [code]
|
|
71
|
+
|
|
72
|
+
- query_type: deployment_work
|
|
73
|
+
match_rules:
|
|
74
|
+
keywords: [deploy, infrastructure, pipeline, ci, cd, environment, staging, production, devops]
|
|
75
|
+
phrases: ["deploy to", "set up pipeline", "configure environment", "infrastructure change"]
|
|
76
|
+
workflow: WF-02
|
|
77
|
+
project_types: [code]
|
|
78
|
+
|
|
79
|
+
# --- Data exploration patterns ---
|
|
80
|
+
- query_type: data_ingest
|
|
81
|
+
match_rules:
|
|
82
|
+
keywords: [ingest, import, load, submit, upload, dataset, csv]
|
|
83
|
+
phrases: ["here is the data", "load this", "analyze this dataset"]
|
|
84
|
+
workflow: WF-05
|
|
85
|
+
project_types: [data]
|
|
86
|
+
|
|
87
|
+
- query_type: schema_query
|
|
88
|
+
match_rules:
|
|
89
|
+
keywords: [schema, columns, fields, types, structure, table]
|
|
90
|
+
phrases: ["what columns", "show schema", "field types"]
|
|
91
|
+
workflow: WF-05
|
|
92
|
+
project_types: [data]
|
|
93
|
+
|
|
94
|
+
- query_type: explore_entity
|
|
95
|
+
match_rules:
|
|
96
|
+
keywords: [explore, entity, about, details, info]
|
|
97
|
+
phrases: ["explore", "tell me about", "what do we know about"]
|
|
98
|
+
workflow: WF-05
|
|
99
|
+
project_types: [data]
|
|
100
|
+
|
|
101
|
+
- query_type: relationship_query
|
|
102
|
+
match_rules:
|
|
103
|
+
keywords: [relate, relationship, connect, join, link, between]
|
|
104
|
+
phrases: ["how does X relate to", "connection between"]
|
|
105
|
+
workflow: WF-05
|
|
106
|
+
project_types: [data]
|
|
107
|
+
|
|
108
|
+
- query_type: quality_check
|
|
109
|
+
match_rules:
|
|
110
|
+
keywords: [quality, null, missing, duplicate, integrity]
|
|
111
|
+
phrases: ["data quality", "check quality", "missing values"]
|
|
112
|
+
workflow: WF-05
|
|
113
|
+
project_types: [data]
|
|
114
|
+
|
|
115
|
+
- query_type: analytical_query
|
|
116
|
+
match_rules:
|
|
117
|
+
keywords: [trend, compare, analyze, distribution, aggregate, count]
|
|
118
|
+
phrases: ["show me trends", "compare", "how many"]
|
|
119
|
+
workflow: WF-05
|
|
120
|
+
project_types: [data]
|
|
121
|
+
|
|
122
|
+
- query_type: document_search
|
|
123
|
+
match_rules:
|
|
124
|
+
keywords: [document, search, find, topic, reference, policy]
|
|
125
|
+
phrases: ["search for", "find documents about", "what does the policy say"]
|
|
126
|
+
workflow: WF-05
|
|
127
|
+
project_types: [data]
|
|
128
|
+
|
|
129
|
+
- query_type: dimension_management
|
|
130
|
+
match_rules:
|
|
131
|
+
keywords: [dimension, add dimension, queryable, aspect]
|
|
132
|
+
phrases: ["add dimension", "new queryable aspect", "list dimensions"]
|
|
133
|
+
workflow: WF-05
|
|
134
|
+
project_types: [data]
|
|
135
|
+
|
|
136
|
+
- query_type: add_reference
|
|
137
|
+
match_rules:
|
|
138
|
+
keywords: [reference, add reference, build reference, catalog, registry entry]
|
|
139
|
+
phrases: ["add a reference", "build reference for", "new reference entry"]
|
|
140
|
+
workflow: WF-05
|
|
141
|
+
project_types: [data]
|
|
142
|
+
|
|
143
|
+
# --- Analytical system patterns ---
|
|
144
|
+
- query_type: chain_work
|
|
145
|
+
match_rules:
|
|
146
|
+
keywords: [chain, pipeline, prompt, composition, orchestration, stage]
|
|
147
|
+
phrases: ["build a chain", "compose prompts", "pipeline stage", "chain architecture"]
|
|
148
|
+
workflow: WF-06
|
|
149
|
+
project_types: [analytical]
|
|
150
|
+
|
|
151
|
+
- query_type: evaluation
|
|
152
|
+
match_rules:
|
|
153
|
+
keywords: [evaluate, score, rubric, criteria, benchmark, test prompt]
|
|
154
|
+
phrases: ["evaluate this", "scoring rubric", "how well does", "benchmark against"]
|
|
155
|
+
workflow: WF-06
|
|
156
|
+
project_types: [analytical]
|
|
157
|
+
|
|
158
|
+
- query_type: composition
|
|
159
|
+
match_rules:
|
|
160
|
+
keywords: [compose, template, prompt template, context window, token]
|
|
161
|
+
phrases: ["compose a prompt", "prompt template", "context strategy"]
|
|
162
|
+
workflow: WF-06
|
|
163
|
+
project_types: [analytical]
|
|
164
|
+
|
|
165
|
+
- query_type: domain_research
|
|
166
|
+
match_rules:
|
|
167
|
+
keywords: [research, domain, pattern, best practice, prior art]
|
|
168
|
+
phrases: ["research patterns", "domain knowledge", "what works for"]
|
|
169
|
+
workflow: WF-06
|
|
170
|
+
project_types: [analytical]
|
|
171
|
+
|
|
172
|
+
# --- Discovery / brownfield patterns ---
|
|
173
|
+
- query_type: project_discovery
|
|
174
|
+
match_rules:
|
|
175
|
+
keywords: [discover, inventory, map project, assess, scan codebase, understand, brownfield]
|
|
176
|
+
phrases: ["what does this project do", "scan the codebase", "map the project", "understand the architecture"]
|
|
177
|
+
workflow: WF-08
|
|
178
|
+
project_types: [universal]
|
|
179
|
+
|
|
180
|
+
- query_type: dependency_analysis
|
|
181
|
+
match_rules:
|
|
182
|
+
keywords: [dependencies, imports, connections, coupling, what uses, used by]
|
|
183
|
+
phrases: ["map dependencies", "what depends on", "trace imports", "dependency graph"]
|
|
184
|
+
workflow: WF-08
|
|
185
|
+
project_types: [universal]
|
|
186
|
+
|
|
187
|
+
- query_type: pattern_analysis
|
|
188
|
+
match_rules:
|
|
189
|
+
keywords: [patterns, conventions, architecture, how is this built, coding style]
|
|
190
|
+
phrases: ["what patterns", "coding conventions", "architectural decisions", "how does this work"]
|
|
191
|
+
workflow: WF-08
|
|
192
|
+
project_types: [universal]
|
|
193
|
+
|
|
194
|
+
- query_type: debt_assessment
|
|
195
|
+
match_rules:
|
|
196
|
+
keywords: [debt, technical debt, outdated, risks, security audit, code quality]
|
|
197
|
+
phrases: ["assess technical debt", "what needs fixing", "code quality", "security review"]
|
|
198
|
+
workflow: WF-08
|
|
199
|
+
project_types: [universal]
|
|
200
|
+
|
|
201
|
+
# --- Specification project patterns ---
|
|
202
|
+
- query_type: spec_writing
|
|
203
|
+
match_rules:
|
|
204
|
+
keywords: [spec, specification, standard, define, formalize, document]
|
|
205
|
+
phrases: ["write a spec", "define the standard", "formalize this", "specification for"]
|
|
206
|
+
workflow: WF-07
|
|
207
|
+
project_types: [universal]
|
|
208
|
+
|
|
209
|
+
- query_type: cross_reference
|
|
210
|
+
match_rules:
|
|
211
|
+
keywords: [cross-reference, consistency, align, reconcile, trace]
|
|
212
|
+
phrases: ["cross-reference with", "check consistency", "align specs"]
|
|
213
|
+
workflow: WF-07
|
|
214
|
+
project_types: [universal]
|
|
215
|
+
|
|
216
|
+
routing:
|
|
217
|
+
algorithm: >
|
|
218
|
+
1. CLASSIFY: Match query against entry point scoping table first (project-specific).
|
|
219
|
+
If no match, check query_patterns (registry-level). Default: general_task → WF-01.
|
|
220
|
+
2. SELECT: Use workflow field from matched pattern. Check for bootstrap override
|
|
221
|
+
(first session → WF-04).
|
|
222
|
+
3. RESOLVE: Get workflow steps. For current stage, collect features from step + activation map.
|
|
223
|
+
4. COMPUTE: Aggregate reads/writes from scoping table row + resolved features.
|
|
224
|
+
5. EXECUTE: Agent loads read set, performs work, writes to write set.
|
|
225
|
+
6. CASCADE: For each written file, walk cascade table + registry dependencies (max 2 levels).
|
|
226
|
+
|
|
227
|
+
project_type_detection: >
|
|
228
|
+
Infer from entry point scoping table content and PROJECT-PROFILE.md:
|
|
229
|
+
- Has PROJECT-PROFILE.md → read project types and lifecycle stage directly
|
|
230
|
+
- Has "code change", "bug fix", "API work" rows → code project
|
|
231
|
+
- Has "schema query", "explore", "data ingest" rows → data project
|
|
232
|
+
- Has "chain work", "evaluation", "composition" rows → analytical project
|
|
233
|
+
- Has "spec writing", "cross-reference" rows → specification project (uses WF-07)
|
|
234
|
+
- Has "project discovery", "dependency analysis" rows → discovery active (uses WF-08)
|
|
235
|
+
- Has rows from multiple types → mixed project (multiple workflows available)
|
|
236
|
+
- Has neither → general project (WF-01 only)
|
|
237
|
+
Lifecycle stage (from PROJECT-PROFILE.md) adjusts feature activation priorities
|
|
238
|
+
but does not change project type detection.
|
|
239
|
+
|
|
240
|
+
priority_rules:
|
|
241
|
+
- Scoping table (project-specific) takes priority over registry patterns
|
|
242
|
+
- Entry point cascade table takes priority over registry dependencies
|
|
243
|
+
- One specialist per query (never load multiple)
|
|
244
|
+
- Write sets are constraints (agent should not write outside them)
|
|
245
|
+
- Max cascade depth is 2 levels
|
|
246
|
+
- Ambiguous classification → ask user (STT-02)
|
|
247
|
+
|
|
248
|
+
# ============================================================
|
|
249
|
+
# ACTIVATION AND DEPENDENCY MAPS
|
|
250
|
+
# ============================================================
|
|
251
|
+
|
|
252
|
+
activation:
|
|
253
|
+
initialize: [QRY-01, HAI-02, TPL-02]
|
|
254
|
+
scope: [QRY-02, CTX-03]
|
|
255
|
+
plan: [TSK-01, HAI-01, STT-02]
|
|
256
|
+
execute: [STT-01, QRY-03, CTX-04, CTX-05, CTX-06, HAI-03, HAI-05, EXP-02, EXP-03, EXP-04, SCAN-03]
|
|
257
|
+
verify: [TSK-02, SCAN-04]
|
|
258
|
+
close: [TSK-03, TSK-04, STT-03, HAI-04, HAI-06]
|
|
259
|
+
on_demand: [CTX-01, CTX-02, TPL-01, TPL-03, EXP-01, SCAN-01, SCAN-02, SCAN-05, SCAN-06, SCAN-07]
|
|
260
|
+
|
|
261
|
+
dependencies:
|
|
262
|
+
TPL-01: [CTX-01, TPL-02]
|
|
263
|
+
CTX-01: [CTX-05]
|
|
264
|
+
QRY-01: [QRY-02]
|
|
265
|
+
QRY-02: [CTX-03]
|
|
266
|
+
TSK-01: [HAI-01]
|
|
267
|
+
HAI-02: [HAI-01]
|
|
268
|
+
TSK-03: [TSK-04, QRY-03]
|
|
269
|
+
STT-03: [TSK-03]
|
|
270
|
+
HAI-03: [HAI-04]
|
|
271
|
+
CTX-02: [CTX-05]
|
|
272
|
+
CTX-06: [QRY-03]
|
|
273
|
+
EXP-01: [CTX-05]
|
|
274
|
+
EXP-02: [EXP-01, CTX-05]
|
|
275
|
+
EXP-03: [QRY-02, CTX-03]
|
|
276
|
+
EXP-04: [EXP-03]
|
|
277
|
+
SCAN-01: [CTX-05]
|
|
278
|
+
SCAN-02: [SCAN-01]
|
|
279
|
+
SCAN-03: [SCAN-01]
|
|
280
|
+
SCAN-04: [SCAN-01, SCAN-03]
|
|
281
|
+
SCAN-05: [SCAN-01, SCAN-02]
|
|
282
|
+
SCAN-06: [SCAN-05]
|
|
283
|
+
SCAN-07: [SCAN-01]
|
|
284
|
+
|
|
285
|
+
versions:
|
|
286
|
+
v1:
|
|
287
|
+
features: 22
|
|
288
|
+
workflows: 4
|
|
289
|
+
protocol_directives: 6
|
|
290
|
+
notes: Core methodology. File-driven, single-agent. Workflows compose features into task patterns.
|
|
291
|
+
v1.1:
|
|
292
|
+
features: 26
|
|
293
|
+
workflows: 5
|
|
294
|
+
protocol_directives: 6
|
|
295
|
+
query_patterns: 19
|
|
296
|
+
notes: >
|
|
297
|
+
Adds EXP domain (4 features), WF-05 (data-exploration), project-type annotations,
|
|
298
|
+
query patterns for automated routing, Layer 4 routing rules. CTX-05 generalized
|
|
299
|
+
to mapProject. Backwards-compatible with v1.
|
|
300
|
+
v1.2:
|
|
301
|
+
features: 27
|
|
302
|
+
workflows: 5
|
|
303
|
+
protocol_directives: 7
|
|
304
|
+
query_patterns: 19
|
|
305
|
+
notes: >
|
|
306
|
+
Adds CTX-06 manageScale (file size monitoring + index restructuring) and P-07
|
|
307
|
+
Keep files loadable (context window efficiency). Backwards-compatible with v1.1.
|
|
308
|
+
v1.3:
|
|
309
|
+
features: 27
|
|
310
|
+
workflows: 7
|
|
311
|
+
protocol_directives: 7
|
|
312
|
+
query_patterns: 25
|
|
313
|
+
notes: >
|
|
314
|
+
Adds WF-06 analytical-system, WF-07 specification-project. 6 new query patterns
|
|
315
|
+
for analytical and specification work. Backwards-compatible with v1.2.
|
|
316
|
+
v1.4:
|
|
317
|
+
features: 31
|
|
318
|
+
workflows: 8
|
|
319
|
+
protocol_directives: 7
|
|
320
|
+
query_patterns: 29
|
|
321
|
+
notes: >
|
|
322
|
+
Adds SCAN domain (4 features: SCAN-01 codebaseInventory, SCAN-02 dependencyMapping,
|
|
323
|
+
SCAN-03 patternExtraction, SCAN-04 debtAssessment). Adds WF-08 discovery workflow
|
|
324
|
+
for brownfield project entry. 4 new query patterns for discovery. Adds lifecycle
|
|
325
|
+
stage awareness to routing. PROJECT-PROFILE.md as new intelligence layer file.
|
|
326
|
+
Backwards-compatible with v1.3.
|
|
327
|
+
v1.5:
|
|
328
|
+
features: 32
|
|
329
|
+
workflows: 8
|
|
330
|
+
protocol_directives: 10
|
|
331
|
+
query_patterns: 29
|
|
332
|
+
notes: >
|
|
333
|
+
Adds HAI-05 modelCapabilityCheck (degradation detection + user surfacing).
|
|
334
|
+
Adds P-08 Methodology is additive only (safety invariant for brownfield).
|
|
335
|
+
Adds P-09 Surface capability limitations (self-monitoring directive).
|
|
336
|
+
Integration profiles (lite/standard/full) for controlling methodology surface area.
|
|
337
|
+
.context/METHODOLOGY.md as overflow target for lighter profiles.
|
|
338
|
+
Brownfield merge protocol (append-only, never delete). Model tier entry point setting.
|
|
339
|
+
Backwards-compatible with v1.4.
|
|
340
|
+
v1.6:
|
|
341
|
+
features: 36
|
|
342
|
+
workflows: 8
|
|
343
|
+
protocol_directives: 10
|
|
344
|
+
query_patterns: 29
|
|
345
|
+
notes: >
|
|
346
|
+
Adds HAI-06 writeObligations (close-stage enforcement via PROTOCOL.yaml close_check).
|
|
347
|
+
YAML-centric agent protocol: entry points become thin boot loaders (~50 lines),
|
|
348
|
+
all recurring rules move to .context/PROTOCOL.yaml (~120 lines YAML).
|
|
349
|
+
Adds SCAN-05 docDependencyGraph (document dependency graph in doc-tokens.yaml),
|
|
350
|
+
SCAN-06 docReviewGenerate (internal document registry generation),
|
|
351
|
+
and SCAN-07 boundariesConfig (configurable path resolution via PROTOCOL.yaml boundaries).
|
|
352
|
+
New CLI commands: deps, doc-review. New flags: --deps, --internal-registry.
|
|
353
|
+
.context/INDEX.yaml as navigation manifest with live metrics.
|
|
354
|
+
Template file counts: starter 20, full 34 (+PROTOCOL.yaml, +INDEX.yaml per tier).
|
|
355
|
+
Backwards-compatible with v1.5.
|
|
356
|
+
v2:
|
|
357
|
+
adds: [multi-agent orchestration, automated gate verification, template generator CLI]
|
|
358
|
+
notes: Extends v1.5. Backwards-compatible. New workflows for multi-agent patterns.
|