gsdd-cli 0.27.0 → 0.29.0
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 +53 -22
- package/agents/DISTILLATION.md +2 -2
- package/agents/README.md +4 -4
- package/agents/approach-explorer.md +4 -4
- package/agents/executor.md +20 -20
- package/agents/integration-checker.md +2 -2
- package/agents/planner.md +10 -26
- package/agents/researcher.md +2 -2
- package/agents/roadmapper.md +6 -6
- package/agents/synthesizer.md +18 -18
- package/agents/verifier.md +3 -3
- package/bin/adapters/agents.mjs +3 -3
- package/bin/adapters/claude.mjs +16 -14
- package/bin/adapters/opencode.mjs +15 -12
- package/bin/gsdd.mjs +16 -13
- package/bin/lib/{models.mjs → config.mjs} +23 -16
- package/bin/lib/control-map.mjs +17 -488
- package/bin/lib/health-truth.mjs +8 -13
- package/bin/lib/health.mjs +25 -39
- package/bin/lib/init-flow.mjs +44 -38
- package/bin/lib/init-prompts.mjs +3 -3
- package/bin/lib/init-runtime.mjs +11 -30
- package/bin/lib/lifecycle-preflight.mjs +97 -410
- package/bin/lib/lifecycle-state.mjs +2 -1
- package/bin/lib/next.mjs +243 -20
- package/bin/lib/phase.mjs +706 -280
- package/bin/lib/plan-constants.mjs +0 -5
- package/bin/lib/rendering.mjs +64 -44
- package/bin/lib/runtime-freshness.mjs +18 -15
- package/bin/lib/state-dir.mjs +45 -0
- package/bin/lib/templates.mjs +59 -22
- package/bin/lib/work-context.mjs +12 -1
- package/bin/lib/workflows.mjs +0 -1
- package/bin/lib/workspace-root.mjs +11 -6
- package/distilled/DESIGN.md +89 -31
- package/distilled/EVIDENCE-INDEX.md +18 -5
- package/distilled/README.md +23 -33
- package/distilled/SKILL.md +9 -10
- package/distilled/templates/agents.block.md +5 -5
- package/distilled/templates/approach.md +3 -3
- package/distilled/templates/auth-matrix.md +2 -2
- package/distilled/templates/brownfield-change/CHANGE.md +1 -1
- package/distilled/templates/delegates/approach-explorer.md +5 -5
- package/distilled/templates/delegates/mapper-arch.md +3 -3
- package/distilled/templates/delegates/mapper-concerns.md +4 -4
- package/distilled/templates/delegates/mapper-quality.md +3 -3
- package/distilled/templates/delegates/mapper-tech.md +3 -3
- package/distilled/templates/delegates/plan-checker.md +18 -19
- package/distilled/templates/delegates/researcher-architecture.md +3 -3
- package/distilled/templates/delegates/researcher-features.md +3 -3
- package/distilled/templates/delegates/researcher-pitfalls.md +3 -3
- package/distilled/templates/delegates/researcher-stack.md +3 -3
- package/distilled/templates/delegates/researcher-synthesizer.md +7 -7
- package/distilled/templates/research/architecture.md +1 -1
- package/distilled/templates/research/pitfalls.md +1 -1
- package/distilled/templates/research/stack.md +1 -1
- package/distilled/templates/roadmap.md +4 -4
- package/distilled/templates/spec.md +2 -2
- package/distilled/templates/ui-proof.md +81 -181
- package/distilled/workflows/audit-milestone.md +23 -23
- package/distilled/workflows/complete-milestone.md +35 -35
- package/distilled/workflows/execute.md +34 -35
- package/distilled/workflows/map-codebase.md +30 -30
- package/distilled/workflows/new-milestone.md +18 -18
- package/distilled/workflows/new-project.md +45 -45
- package/distilled/workflows/pause.md +15 -15
- package/distilled/workflows/plan.md +106 -114
- package/distilled/workflows/progress.md +40 -39
- package/distilled/workflows/quick.md +49 -50
- package/distilled/workflows/resume.md +23 -22
- package/distilled/workflows/verify-work.md +7 -7
- package/distilled/workflows/verify.md +26 -26
- package/docs/BROWNFIELD-PROOF.md +1 -1
- package/docs/RUNTIME-SUPPORT.md +13 -13
- package/docs/USER-GUIDE.md +26 -21
- package/docs/claude/context-monitor.md +1 -1
- package/docs/proof/consumer-node-cli/README.md +1 -1
- package/package.json +3 -3
- package/bin/lib/closeout-report.mjs +0 -318
- package/bin/lib/evidence-contract.mjs +0 -325
- package/bin/lib/provenance.mjs +0 -390
- package/bin/lib/session-fingerprint.mjs +0 -223
- package/bin/lib/ui-proof.mjs +0 -1007
- package/distilled/workflows/plan-milestone-gaps.md +0 -204
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# Phase Approach Template
|
|
2
2
|
|
|
3
|
-
Template for `.
|
|
3
|
+
Template for `.work/phases/XX-name/{phase_num}-APPROACH.md` — captures implementation decisions and validated assumptions for a phase.
|
|
4
4
|
|
|
5
5
|
**Purpose:** Document decisions that downstream agents need. Planner uses this to know WHAT choices are locked vs flexible. Plan-checker verifies plans honor these decisions.
|
|
6
6
|
|
|
7
7
|
**Key principle:** The top-level structure (`<domain>`, `<decisions>`, `<assumptions>`, `<deferred>`) is fixed. Section names WITHIN `<decisions>` emerge from what was actually discussed for THIS phase — a CLI phase has CLI-relevant sections, a UI phase has UI-relevant sections.
|
|
8
8
|
|
|
9
|
-
**Alignment proof:** When `.
|
|
9
|
+
**Alignment proof:** When `.work/config.json` has `workflow.discuss: true`, every APPROACH artifact must include an `## Alignment Proof` section before `<domain>`. It must record the canonical fields `alignment_status`, `alignment_method`, `user_confirmed_at`, `explicit_skip_approved`, `skip_scope`, `skip_rationale`, and `confirmed_decisions`. `Agent's Discretion` and agent-only "No questions needed" are not valid proof.
|
|
10
10
|
|
|
11
11
|
**Downstream consumers:**
|
|
12
12
|
- `planner` — Reads decisions to constrain implementation choices. Locked decisions must be implemented. Agent's Discretion items allow planner flexibility.
|
|
@@ -266,7 +266,7 @@ Users can register and log in with email/password. Session management via JWT. O
|
|
|
266
266
|
The output should answer: "What choices are locked for the planner? Where does the planner have discretion?"
|
|
267
267
|
|
|
268
268
|
**After creation:**
|
|
269
|
-
- File lives in phase directory: `.
|
|
269
|
+
- File lives in phase directory: `.work/phases/XX-name/{phase_num}-APPROACH.md`
|
|
270
270
|
- Planner reads decisions to constrain implementation tasks
|
|
271
271
|
- Plan-checker verifies approach_alignment: plans must implement chosen approaches
|
|
272
272
|
- Downstream agents should NOT need to ask the user again about captured decisions
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Authorization Matrix Template
|
|
2
2
|
|
|
3
3
|
> OWASP-style authorization matrix for systematic auth verification.
|
|
4
|
-
> Create `.
|
|
4
|
+
> Create `.work/AUTH_MATRIX.md` using this template when your project has multiple user roles or protected resources.
|
|
5
5
|
|
|
6
6
|
## When to Create This Matrix
|
|
7
7
|
|
|
@@ -73,6 +73,6 @@ The narrative auth check (Step 4) always runs regardless of whether this matrix
|
|
|
73
73
|
|
|
74
74
|
## File Location
|
|
75
75
|
|
|
76
|
-
Save your project's authorization matrix as `.
|
|
76
|
+
Save your project's authorization matrix as `.work/AUTH_MATRIX.md`.
|
|
77
77
|
|
|
78
78
|
The integration checker will automatically detect and consume it when present. No configuration needed.
|
|
@@ -9,7 +9,7 @@ type: medium_scope_brownfield
|
|
|
9
9
|
> This folder is the bounded medium-scope lane.
|
|
10
10
|
> It represents one active medium-scope change only.
|
|
11
11
|
> Do not add phase numbering, roadmap checkboxes, or milestone state here.
|
|
12
|
-
> Instantiate the live operational artifact at `.
|
|
12
|
+
> Instantiate the live operational artifact at `.work/brownfield-change/CHANGE.md`.
|
|
13
13
|
> `progress` and `resume` read this file first for status, scope, integration surface, and the authoritative next action.
|
|
14
14
|
> If this lane no longer fits one active stream, widen explicitly through `/gsdd-new-project` (first milestone) or `/gsdd-new-milestone` (subsequent milestone) using this folder as the preserved input surface. Do not invent a separate promotion artifact.
|
|
15
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/approach-explorer.md` before starting. Follow its algorithm, scope, anti-patterns, and quality standards.
|
|
2
2
|
|
|
3
3
|
You are the approach explorer delegate for the plan workflow.
|
|
4
4
|
|
|
@@ -7,12 +7,12 @@ You are the approach explorer delegate for the plan workflow.
|
|
|
7
7
|
When `workflow.discuss: true`, APPROACH.md must prove user alignment before planning: use `alignment_status: user_confirmed` for real user-confirmed decisions or `alignment_status: approved_skip` only when the user explicitly approves skipping discussion. Record the canonical fields `alignment_method`, `user_confirmed_at`, `explicit_skip_approved`, `skip_scope`, `skip_rationale`, and `confirmed_decisions`. `Agent's Discretion` and agent-only "No questions needed" are not valid alignment proof.
|
|
8
8
|
|
|
9
9
|
Read only the explicit inputs provided by the orchestrator:
|
|
10
|
-
- target phase goal and requirement IDs from `.
|
|
11
|
-
- project config from `.
|
|
12
|
-
- locked decisions and deferred items from `.
|
|
10
|
+
- target phase goal and requirement IDs from `.work/ROADMAP.md`
|
|
11
|
+
- project config from `.work/config.json`, especially `workflow.discuss`
|
|
12
|
+
- locked decisions and deferred items from `.work/SPEC.md`
|
|
13
13
|
- phase research file (if exists)
|
|
14
14
|
- relevant codebase files (existing patterns and conventions)
|
|
15
|
-
- approach template at `.
|
|
15
|
+
- approach template at `.work/templates/approach.md`
|
|
16
16
|
|
|
17
17
|
## Gray Area Classification
|
|
18
18
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/mapper.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
Map the architecture and structure of this codebase. Read key source files to understand component boundaries, data flow, and patterns.
|
|
4
4
|
|
|
5
|
-
Write ARCHITECTURE.md to `.
|
|
5
|
+
Write ARCHITECTURE.md to `.work/codebase/` using the template at `.work/templates/codebase/architecture.md`.
|
|
6
6
|
|
|
7
7
|
Include:
|
|
8
8
|
- Major components and their responsibilities (what belongs in each, what doesn't)
|
|
@@ -21,6 +21,6 @@ Include:
|
|
|
21
21
|
- [ ] Golden files table populated with at least one file per major layer
|
|
22
22
|
</quality_gate>
|
|
23
23
|
|
|
24
|
-
Write to: `.
|
|
24
|
+
Write to: `.work/codebase/ARCHITECTURE.md`
|
|
25
25
|
Return: Routing summary to the Orchestrator (100-200 tokens) when done.
|
|
26
26
|
Guardrails: Max Agent Hops = 3. No static directory dumps.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/mapper.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
Map the technical debt, security concerns, and risks in this codebase.
|
|
4
4
|
|
|
5
|
-
**Security check first (hard stop):** Follow the Hard stop directive in `.
|
|
5
|
+
**Security check first (hard stop):** Follow the Hard stop directive in `.work/templates/roles/mapper.md` — grep for secrets before writing anything. If found: STOP and report to Orchestrator immediately.
|
|
6
6
|
|
|
7
|
-
If no secrets found, write CONCERNS.md to `.
|
|
7
|
+
If no secrets found, write CONCERNS.md to `.work/codebase/` using the template at `.work/templates/codebase/concerns.md`.
|
|
8
8
|
|
|
9
9
|
Include:
|
|
10
10
|
- Known bugs or fragile areas (with file references where possible)
|
|
@@ -22,6 +22,6 @@ Include:
|
|
|
22
22
|
- [ ] Downstream impact table ranks at least top 3 concerns with Blocks column populated
|
|
23
23
|
</quality_gate>
|
|
24
24
|
|
|
25
|
-
Write to: `.
|
|
25
|
+
Write to: `.work/codebase/CONCERNS.md`
|
|
26
26
|
Return: Routing summary to the Orchestrator (100-200 tokens) when done. If secrets found, STOP and report immediately.
|
|
27
27
|
Guardrails: Max Agent Hops = 3. Hard stop on secrets.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/mapper.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
Map the conventions and quality patterns of this codebase. Read existing tests, lint config, and code samples.
|
|
4
4
|
|
|
5
|
-
Write CONVENTIONS.md to `.
|
|
5
|
+
Write CONVENTIONS.md to `.work/codebase/` using the template at `.work/templates/codebase/conventions.md`.
|
|
6
6
|
|
|
7
7
|
Include:
|
|
8
8
|
- Naming patterns (files, functions, variables, exports)
|
|
@@ -23,6 +23,6 @@ Include:
|
|
|
23
23
|
- [ ] Golden files section lists at least 2 files with rationale
|
|
24
24
|
</quality_gate>
|
|
25
25
|
|
|
26
|
-
Write to: `.
|
|
26
|
+
Write to: `.work/codebase/CONVENTIONS.md`
|
|
27
27
|
Return: Routing summary to the Orchestrator (100-200 tokens) when done.
|
|
28
28
|
Guardrails: Max Agent Hops = 3. Rules not inventories.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/mapper.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
Map the technology stack of this codebase. Read package manifests, lockfiles, and entry points.
|
|
4
4
|
|
|
5
|
-
Write STACK.md to `.
|
|
5
|
+
Write STACK.md to `.work/codebase/` using the template at `.work/templates/codebase/stack.md`.
|
|
6
6
|
|
|
7
7
|
Include:
|
|
8
8
|
- Languages and runtimes (with versions)
|
|
@@ -20,6 +20,6 @@ Include:
|
|
|
20
20
|
- [ ] Must-know packages section identifies at least 3 packages with risk index (low/medium/high)
|
|
21
21
|
</quality_gate>
|
|
22
22
|
|
|
23
|
-
Write to: `.
|
|
23
|
+
Write to: `.work/codebase/STACK.md`
|
|
24
24
|
Return: Routing summary to the Orchestrator (100-200 tokens) when done.
|
|
25
25
|
Guardrails: Max Agent Hops = 3. No static dependency dumps.
|
|
@@ -1,43 +1,42 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/planner.md` before starting. Reuse its planning vocabulary and quality standards, but this wrapper overrides your objective: you are reviewing plans, not authoring them.
|
|
2
2
|
|
|
3
3
|
You are the fresh-context plan checker for `/gsdd-plan`. This is a read-only review delegate: return the JSON finding summary only, and do not edit plan artifacts yourself.
|
|
4
4
|
|
|
5
5
|
Read only the explicit inputs provided by the orchestrator:
|
|
6
6
|
- target phase goal and requirement IDs
|
|
7
|
-
- relevant locked decisions or deferred items from `.
|
|
8
|
-
- project config from `.
|
|
9
|
-
- approach decisions from `.
|
|
7
|
+
- relevant locked decisions or deferred items from `.work/SPEC.md`
|
|
8
|
+
- project config from `.work/config.json`, especially `workflow.discuss` and `workflow.planCheck`
|
|
9
|
+
- approach decisions from `.work/phases/*-APPROACH.md` (if provided)
|
|
10
10
|
- any relevant phase research file
|
|
11
|
-
- the produced `.
|
|
11
|
+
- the produced `.work/phases/*-PLAN.md` file(s)
|
|
12
12
|
|
|
13
13
|
Do NOT inherit the planner's hidden reasoning. Treat the current plans as untrusted drafts that must prove they will achieve the phase goal before execution.
|
|
14
14
|
|
|
15
15
|
Verify these dimensions:
|
|
16
|
-
- `requirement_coverage`: every phase requirement is covered by at least one concrete task
|
|
16
|
+
- `requirement_coverage`: every phase requirement is covered by at least one concrete task.
|
|
17
17
|
- `task_completeness`: every executable task has files, action, verify, and done fields. Additionally check verify quality:
|
|
18
18
|
- **Runnable?** Does `<verify>` contain at least one command that an executor can run programmatically (e.g., a shell command, test runner invocation, curl request)? If ALL verify items are observational text with no runnable command -> `blocker`.
|
|
19
19
|
- **Fast?** Do verify commands complete quickly? Flag full E2E suites (playwright, cypress, selenium) without a faster smoke test -> `warning`. Flag watch-mode flags (`--watchAll`, `--watch`) -> `blocker`. Flag arbitrary delays > 30s -> `warning`.
|
|
20
20
|
- **Ordered?** If a verify command references a test file, does an earlier task in the plan create that file? If the referenced file has no prior task producing it -> `blocker`.
|
|
21
|
-
-
|
|
22
|
-
- `
|
|
23
|
-
- `
|
|
24
|
-
- `
|
|
21
|
+
- **Browser proof command?** If the plan requires browser proof, the Browser Proof Plan names a runnable evidence command or an explicit narrowed no-command rationale. A rendered-UI claim with neither is a `blocker`.
|
|
22
|
+
- `dependency_correctness`: ordering, dependencies, and plan structure are coherent.
|
|
23
|
+
- `key_link_completeness`: important wiring/integration links are planned, not just isolated artifacts.
|
|
24
|
+
- `scope_sanity`: plans are sized so an executor can complete them without context collapse, and hard boundaries, anti-goals, and explicit out-of-scope items are preserved in task scope.
|
|
25
|
+
- `must_have_quality`: success criteria and must-haves are specific, observable, and reflected in tasks.
|
|
25
26
|
- `context_compliance`: locked decisions are honored and deferred ideas stay out of scope. Additionally check scope consistency:
|
|
26
27
|
- **Must-have coverage?** Every must-have requirement mapped to this phase in SPEC.md must appear in at least one plan task. A must-have that silently disappears from the plan is a `blocker`.
|
|
27
28
|
- **Deferred exclusion?** Items marked "Nice to Have", "Deferred", or "Out of Scope" in SPEC.md must not appear as plan tasks. Present → `blocker`.
|
|
28
29
|
- **Cross-surface consistency?** If SPEC.md marks an item as must-have but APPROACH.md marks it as deferred (or vice versa), surface the contradiction → `blocker`. Include a `fix_hint` asking the planner to resolve the conflict with the user before proceeding.
|
|
30
|
+
- **Anti-regression captured?** Known prior failures, compatibility risks, and behavior that must not regress are represented in tasks or verification.
|
|
31
|
+
- **Escalation preserved?** Tasks include checkpoints or escalation when evidence, permissions, user decisions, or risky ambiguity are required.
|
|
32
|
+
- **Abstraction justified?** Reject a task or refactor whose only rationale is "cleaner code" without reducing risk, removing meaningful duplication, simplifying a consumer path, or matching an existing repo pattern.
|
|
29
33
|
- `goal_achievement`: does the plan, if executed perfectly, actually achieve the stated phase goal? Check:
|
|
30
34
|
- **Goal addressed?** Compare the phase goal statement to the plan's collective task outputs. Would successful completion of all tasks deliver the goal? If the goal says "users can authenticate" but tasks only set up database schema → `blocker`.
|
|
31
35
|
- **Success criteria reachable?** Are the phase success criteria from ROADMAP.md achievable through the planned tasks? Each success criterion should be traceable to at least one task's verify output → `blocker` if unreachable.
|
|
32
36
|
- **Outcome observable?** After execution, could a human or automated check confirm the goal was met? Plans that produce only internal artifacts with no user-visible or testable outcome → `warning`.
|
|
33
|
-
-
|
|
34
|
-
-
|
|
35
|
-
-
|
|
36
|
-
- `closure_honesty`: the plan's done criteria and evidence limits support only claims that execution can actually prove.
|
|
37
|
-
- `closure_honesty`: for UI proof, reject agent-only `looks good` closure, artifact-count proof, unsupported evidence kinds, and human acceptance that converts missing/mismatched non-human evidence into `satisfied` proof. Waiver, deferment, proof debt, or narrowed-claim language is acceptable only when the stronger UI claim is not treated as proven.
|
|
38
|
-
- `closure_honesty`: for UI proof planning, reject weak slots that omit a specific route/state, viewport rationale or narrowed viewport claim limit, minimum observations, expected artifact types, runnable validation, or a way to compare observed proof back to the planned claim. Treat under-specified viewport coverage as a blocker for responsive or layout-sensitive claims. `agent-browser` is the default live runtime evidence path; do not block a slot solely for using another project-native browser path, but require the plan to explain the `agent-browser` availability constraint and fallback choice.
|
|
39
|
-
- `closure_honesty`: for UI proof privacy, require artifact `visibility`, `retention`, `sensitivity`, and `safe_to_publish`, require `gsdd ui-proof validate` or `gsdd health` when bundle metadata exists, and reject public/tracked/delivery/publication proof claims backed by local-only or `safe_to_publish: false` artifacts.
|
|
40
|
-
- `high_leverage_review`: high-leverage surfaces have a second-pass review or equivalent contradiction/staleness check before completion.
|
|
37
|
+
- **Claim honest?** Done criteria and evidence limits support only claims that execution can actually prove. For browser proof, reject agent-only "looks good" closure, artifact-count proof, unsupported evidence kinds, and human acceptance that replaces required code, test, runtime, or delivery evidence.
|
|
38
|
+
- **Browser proof specific?** Required browser proof names exact route/state, viewport coverage or a narrowed viewport claim, runtime path, evidence kind, rendered observations, artifacts/privacy notes, and claim limit. Under-specified viewport coverage is a blocker for responsive or layout-sensitive claims, and fallback browser tooling must state the `agent-browser` availability constraint.
|
|
39
|
+
- **Second pass present?** Shared or high-leverage surfaces have a final contradiction/staleness review before completion.
|
|
41
40
|
- `approach_alignment`: when APPROACH.md is provided, verify that plan tasks implement the chosen approaches from the user's decisions. Check:
|
|
42
41
|
- **Alignment proof valid?** When `workflow.discuss` is `true`, APPROACH.md must record `alignment_status: user_confirmed` or `alignment_status: approved_skip`. Missing alignment proof, unknown status, or agent-discretion-only proof -> `blocker` with `fix_hint` telling the planner to revise APPROACH.md through real user alignment or an explicit user-approved skip.
|
|
43
42
|
- **Canonical proof fields present?** APPROACH.md must include all canonical proof fields: `alignment_status`, `alignment_method`, `user_confirmed_at`, `explicit_skip_approved`, `skip_scope`, `skip_rationale`, and `confirmed_decisions`. Missing fields -> `blocker`.
|
|
@@ -56,7 +55,7 @@ Return JSON only as a single finding summary object with this shape:
|
|
|
56
55
|
"summary": "One sentence overall assessment",
|
|
57
56
|
"issues": [
|
|
58
57
|
{
|
|
59
|
-
"dimension": "requirement_coverage | task_completeness | dependency_correctness | key_link_completeness | scope_sanity | must_have_quality | context_compliance | goal_achievement |
|
|
58
|
+
"dimension": "requirement_coverage | task_completeness | dependency_correctness | key_link_completeness | scope_sanity | must_have_quality | context_compliance | goal_achievement | approach_alignment",
|
|
60
59
|
"severity": "blocker | warning",
|
|
61
60
|
"description": "What is wrong",
|
|
62
61
|
"plan": "01-PLAN",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/researcher.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
You are researching ONE dimension: how systems in this domain are typically structured.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Your output informs phase structure in ROADMAP.md. Include:
|
|
|
24
24
|
- [ ] Hard-to-reverse decisions flagged explicitly
|
|
25
25
|
</quality_gate>
|
|
26
26
|
|
|
27
|
-
Write to: `.
|
|
28
|
-
Use template: `.
|
|
27
|
+
Write to: `.work/research/ARCHITECTURE.md`
|
|
28
|
+
Use template: `.work/templates/research/architecture.md` (if it exists)
|
|
29
29
|
Return: Human-read structured summary to the Orchestrator (300-500 tokens) when done.
|
|
30
30
|
Guardrails: Max Agent Hops = 3.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/researcher.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
You are researching ONE dimension: what features exist in this domain.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Your output feeds SPEC requirements. Categorize explicitly:
|
|
|
24
24
|
- [ ] v1 vs v2 recommendation for differentiators
|
|
25
25
|
</quality_gate>
|
|
26
26
|
|
|
27
|
-
Write to: `.
|
|
28
|
-
Use template: `.
|
|
27
|
+
Write to: `.work/research/FEATURES.md`
|
|
28
|
+
Use template: `.work/templates/research/features.md` (if it exists)
|
|
29
29
|
Return: Human-read structured summary to the Orchestrator (300-500 tokens) when done.
|
|
30
30
|
Guardrails: Max Agent Hops = 3.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/researcher.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
You are researching ONE dimension: what goes wrong in projects in this domain.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Your output prevents mistakes in roadmap and planning. For each pitfall:
|
|
|
24
24
|
- [ ] Sources cited for non-obvious claims
|
|
25
25
|
</quality_gate>
|
|
26
26
|
|
|
27
|
-
Write to: `.
|
|
28
|
-
Use template: `.
|
|
27
|
+
Write to: `.work/research/PITFALLS.md`
|
|
28
|
+
Use template: `.work/templates/research/pitfalls.md` (if it exists)
|
|
29
29
|
Return: Human-read structured summary to the Orchestrator (300-500 tokens) when done.
|
|
30
30
|
Guardrails: Max Agent Hops = 3.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/researcher.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
You are researching ONE dimension: the technology stack for the project domain.
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Your output feeds the roadmapper. Be prescriptive:
|
|
|
24
24
|
- [ ] Confidence level assigned to each recommendation
|
|
25
25
|
</quality_gate>
|
|
26
26
|
|
|
27
|
-
Write to: `.
|
|
28
|
-
Use template: `.
|
|
27
|
+
Write to: `.work/research/STACK.md`
|
|
28
|
+
Use template: `.work/templates/research/stack.md` (if it exists)
|
|
29
29
|
Return: Human-read structured summary to the Orchestrator (300-500 tokens) when done.
|
|
30
30
|
Guardrails: Max Agent Hops = 3.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
**Role contract:** Read `.
|
|
1
|
+
**Role contract:** Read `.work/templates/roles/synthesizer.md` before starting. Follow its algorithm, quality guarantees, and anti-patterns.
|
|
2
2
|
|
|
3
3
|
Synthesize the 4 research files into a single actionable SUMMARY.md.
|
|
4
4
|
|
|
5
5
|
Read these files (all should exist):
|
|
6
|
-
- `.
|
|
7
|
-
- `.
|
|
8
|
-
- `.
|
|
9
|
-
- `.
|
|
6
|
+
- `.work/research/STACK.md`
|
|
7
|
+
- `.work/research/FEATURES.md`
|
|
8
|
+
- `.work/research/ARCHITECTURE.md`
|
|
9
|
+
- `.work/research/PITFALLS.md`
|
|
10
10
|
|
|
11
11
|
Cross-reference them. Surface conflicts and dependencies between findings. Do NOT do new research — synthesize what exists.
|
|
12
12
|
|
|
@@ -17,7 +17,7 @@ SUMMARY.md MUST include:
|
|
|
17
17
|
4. **Confidence Assessment** — per domain: stack / features / architecture / pitfalls
|
|
18
18
|
5. **Sources** — all sources cited across the 4 research files, deduplicated
|
|
19
19
|
|
|
20
|
-
Use template: `.
|
|
20
|
+
Use template: `.work/templates/research/summary.md` (if it exists)
|
|
21
21
|
|
|
22
22
|
<quality_gate>
|
|
23
23
|
- [ ] "Implications for Roadmap" section populated with phase suggestions
|
|
@@ -26,6 +26,6 @@ Use template: `.planning/templates/research/summary.md` (if it exists)
|
|
|
26
26
|
- [ ] No new claims introduced (only synthesis)
|
|
27
27
|
</quality_gate>
|
|
28
28
|
|
|
29
|
-
Write to: `.
|
|
29
|
+
Write to: `.work/research/SUMMARY.md`
|
|
30
30
|
Return: Agent-mediated structured summary to the Orchestrator (500-800 tokens) when done.
|
|
31
31
|
Guardrails: Max Agent Hops = 2. Do not do new research — synthesize only.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ROADMAP.md Template
|
|
2
2
|
|
|
3
|
-
Use this template when creating `.
|
|
3
|
+
Use this template when creating `.work/ROADMAP.md` (phase breakdown + progress tracker).
|
|
4
4
|
|
|
5
5
|
```markdown
|
|
6
6
|
# Roadmap: [Project Name]
|
|
@@ -21,7 +21,7 @@ Use this template when creating `.planning/ROADMAP.md` (phase breakdown + progre
|
|
|
21
21
|
|
|
22
22
|
**Goal**: [What this phase delivers]
|
|
23
23
|
**Status**: [ ]
|
|
24
|
-
**Requirements**: [REQ-IDs from `.
|
|
24
|
+
**Requirements**: [REQ-IDs from `.work/SPEC.md`]
|
|
25
25
|
**Success Criteria** (must be TRUE when done):
|
|
26
26
|
1. [Observable behavior]
|
|
27
27
|
2. [Observable behavior]
|
|
@@ -53,7 +53,7 @@ Use this template when creating `.planning/ROADMAP.md` (phase breakdown + progre
|
|
|
53
53
|
## Guidelines
|
|
54
54
|
|
|
55
55
|
- Prefer 3-8 phases for most projects.
|
|
56
|
-
- Every v1 requirement in `.
|
|
56
|
+
- Every v1 requirement in `.work/SPEC.md` must map to exactly one phase (no orphans).
|
|
57
57
|
- Success criteria are 2-5 observable behaviors per phase.
|
|
58
58
|
- No time estimates: focus on verifiable outcomes.
|
|
59
59
|
- These status markers are the portable source of truth. Workflow files and summaries should use `[ ]`, `[-]`, and `[x]` consistently.
|
|
@@ -64,7 +64,7 @@ Use this template when creating `.planning/ROADMAP.md` (phase breakdown + progre
|
|
|
64
64
|
|
|
65
65
|
After creating the roadmap, verify:
|
|
66
66
|
```
|
|
67
|
-
For each v1 requirement in .
|
|
67
|
+
For each v1 requirement in .work/SPEC.md:
|
|
68
68
|
[ ] Requirement appears in exactly one phase's "Requirements" list
|
|
69
69
|
[ ] The phase's success criteria would prove the requirement is met
|
|
70
70
|
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SPEC.md Template
|
|
2
2
|
|
|
3
|
-
Use this template when creating `.
|
|
3
|
+
Use this template when creating `.work/SPEC.md` - the project's single source of truth.
|
|
4
4
|
|
|
5
5
|
> **Agentic PRD Constraint:** Do not write narrative prose or fluff. Use strict checklists, dense tables, and typed schemas. There is no artificial line limit, but every single line must be highly deterministic and actionable for a downstream Subagent.
|
|
6
6
|
|
|
@@ -105,5 +105,5 @@ If auditing an existing codebase during `init`:
|
|
|
105
105
|
|
|
106
106
|
When a major milestone completes:
|
|
107
107
|
1. The SPEC.md "Current State" section reflects the new state
|
|
108
|
-
2. Completed phases have summaries in `.
|
|
108
|
+
2. Completed phases have summaries in `.work/phases/{N}-SUMMARY.md`
|
|
109
109
|
3. SPEC.md itself stays lean - don't accumulate history here
|