gsdd-cli 0.18.4 → 0.19.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/LICENSE +21 -21
- package/README.md +625 -607
- package/agents/DISTILLATION.md +421 -421
- package/agents/README.md +62 -62
- package/agents/approach-explorer.md +361 -361
- package/agents/debugger.md +82 -82
- package/agents/executor.md +394 -394
- package/agents/integration-checker.md +318 -318
- package/agents/mapper.md +103 -103
- package/agents/planner.md +313 -313
- package/agents/researcher.md +84 -84
- package/agents/roadmapper.md +296 -296
- package/agents/synthesizer.md +236 -236
- package/agents/verifier.md +337 -337
- package/bin/adapters/agents.mjs +34 -34
- package/bin/adapters/claude.mjs +191 -191
- package/bin/adapters/codex.mjs +85 -85
- package/bin/adapters/index.mjs +20 -20
- package/bin/adapters/opencode.mjs +278 -278
- package/bin/gsdd.mjs +123 -116
- package/bin/lib/cli-utils.mjs +28 -28
- package/bin/lib/evidence-contract.mjs +112 -112
- package/bin/lib/file-ops.mjs +209 -161
- package/bin/lib/health-truth.mjs +181 -178
- package/bin/lib/health.mjs +265 -235
- package/bin/lib/init-flow.mjs +252 -236
- package/bin/lib/init-prompts.mjs +248 -247
- package/bin/lib/init-runtime.mjs +225 -212
- package/bin/lib/init.mjs +17 -17
- package/bin/lib/lifecycle-preflight.mjs +360 -333
- package/bin/lib/lifecycle-state.mjs +351 -267
- package/bin/lib/manifest.mjs +116 -114
- package/bin/lib/models.mjs +411 -411
- package/bin/lib/phase.mjs +397 -378
- package/bin/lib/plan-constants.mjs +30 -30
- package/bin/lib/provenance.mjs +109 -106
- package/bin/lib/rendering.mjs +178 -130
- package/bin/lib/runtime-freshness.mjs +221 -219
- package/bin/lib/templates.mjs +225 -224
- package/bin/lib/workspace-root.mjs +132 -0
- package/distilled/DESIGN.md +2347 -2327
- package/distilled/EVIDENCE-INDEX.md +397 -394
- package/distilled/README.md +196 -193
- package/distilled/SKILL.md +86 -85
- package/distilled/templates/agents.block.md +21 -21
- package/distilled/templates/agents.md +6 -6
- package/distilled/templates/approach.md +232 -232
- package/distilled/templates/auth-matrix.md +78 -78
- package/distilled/templates/brownfield-change/CHANGE.md +99 -0
- package/distilled/templates/brownfield-change/HANDOFF.md +38 -0
- package/distilled/templates/brownfield-change/VERIFICATION.md +56 -0
- package/distilled/templates/codebase/architecture.md +110 -110
- package/distilled/templates/codebase/concerns.md +95 -95
- package/distilled/templates/codebase/conventions.md +193 -193
- package/distilled/templates/codebase/stack.md +96 -96
- package/distilled/templates/delegates/approach-explorer.md +25 -25
- package/distilled/templates/delegates/mapper-arch.md +26 -26
- package/distilled/templates/delegates/mapper-concerns.md +27 -27
- package/distilled/templates/delegates/mapper-quality.md +28 -28
- package/distilled/templates/delegates/mapper-tech.md +25 -25
- package/distilled/templates/delegates/plan-checker.md +68 -68
- package/distilled/templates/delegates/researcher-architecture.md +30 -30
- package/distilled/templates/delegates/researcher-features.md +30 -30
- package/distilled/templates/delegates/researcher-pitfalls.md +30 -30
- package/distilled/templates/delegates/researcher-stack.md +30 -30
- package/distilled/templates/delegates/researcher-synthesizer.md +31 -31
- package/distilled/templates/research/architecture.md +57 -57
- package/distilled/templates/research/features.md +23 -23
- package/distilled/templates/research/pitfalls.md +46 -46
- package/distilled/templates/research/stack.md +45 -45
- package/distilled/templates/research/summary.md +67 -67
- package/distilled/templates/roadmap.md +74 -62
- package/distilled/templates/spec.md +110 -110
- package/distilled/workflows/audit-milestone.md +275 -271
- package/distilled/workflows/complete-milestone.md +336 -332
- package/distilled/workflows/execute.md +454 -449
- package/distilled/workflows/map-codebase.md +253 -253
- package/distilled/workflows/new-milestone.md +242 -238
- package/distilled/workflows/new-project.md +398 -398
- package/distilled/workflows/pause.md +160 -156
- package/distilled/workflows/plan-milestone-gaps.md +183 -183
- package/distilled/workflows/plan.md +451 -447
- package/distilled/workflows/progress.md +227 -223
- package/distilled/workflows/quick.md +351 -347
- package/distilled/workflows/resume.md +220 -212
- package/distilled/workflows/verify-work.md +260 -260
- package/distilled/workflows/verify.md +431 -429
- package/docs/BROWNFIELD-PROOF.md +95 -95
- package/docs/RUNTIME-SUPPORT.md +93 -75
- package/docs/USER-GUIDE.md +440 -399
- package/docs/VERIFICATION-DISCIPLINE.md +59 -59
- package/docs/claude/context-monitor.md +98 -98
- package/docs/proof/consumer-node-cli/README.md +37 -37
- package/docs/proof/consumer-node-cli/ROADMAP.md +14 -14
- package/docs/proof/consumer-node-cli/SPEC.md +17 -17
- package/docs/proof/consumer-node-cli/brief.md +9 -9
- package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-PLAN.md +34 -34
- package/docs/proof/consumer-node-cli/phases/01-foundation/01-01-SUMMARY.md +10 -10
- package/docs/proof/consumer-node-cli/phases/01-foundation/01-VERIFICATION.md +30 -30
- package/package.json +62 -61
package/agents/debugger.md
CHANGED
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
# Debugger
|
|
2
|
-
|
|
3
|
-
> Investigates bugs using systematic scientific method with persistent debug log.
|
|
4
|
-
|
|
5
|
-
**This is a utility role, not part of the core lifecycle (init -> plan -> execute -> verify).**
|
|
6
|
-
|
|
7
|
-
## Responsibility
|
|
8
|
-
|
|
9
|
-
Accountable for finding root causes through hypothesis testing, maintaining a persistent debug log (so investigation can resume after interruption), and optionally applying and verifying fixes. The user reports symptoms; the debugger investigates causes.
|
|
10
|
-
|
|
11
|
-
## Input Contract
|
|
12
|
-
|
|
13
|
-
- **Required:** Bug symptoms (expected behavior, actual behavior, error messages)
|
|
14
|
-
- **Optional:** Reproduction steps
|
|
15
|
-
- **Optional:** Mode flag: `find_root_cause_only` (diagnose but don't fix) or `find_and_fix` (default, full cycle)
|
|
16
|
-
- **Optional:** Pre-filled symptoms from automated diagnosis (skip symptom gathering)
|
|
17
|
-
|
|
18
|
-
## Output Contract
|
|
19
|
-
|
|
20
|
-
- **Artifacts:** Debug log file written to the output directory, tracking: symptoms, hypotheses, eliminated paths, evidence, and resolution
|
|
21
|
-
- **Return:** One of:
|
|
22
|
-
- `ROOT CAUSE FOUND` -- with cause, evidence, files involved, and suggested fix direction
|
|
23
|
-
- `DEBUG COMPLETE` -- with root cause, fix applied, verification result, files changed
|
|
24
|
-
- `INVESTIGATION INCONCLUSIVE` -- with what was checked, eliminated hypotheses, remaining possibilities
|
|
25
|
-
- `ESCALATE` -- when user input is unavoidable (credentials, environment access, architectural decision)
|
|
26
|
-
|
|
27
|
-
## Core Algorithm
|
|
28
|
-
|
|
29
|
-
1. **Check for existing debug log.** Resume from last recorded state if exists, create new if not.
|
|
30
|
-
2. **Gather symptoms** (unless pre-filled). Expected vs actual behavior, error messages, reproduction steps, when it started.
|
|
31
|
-
3. **Investigation loop:**
|
|
32
|
-
a. **Gather initial evidence.** Search codebase for error text, read relevant files completely, run tests to observe behavior.
|
|
33
|
-
b. **Form hypothesis.** Must be specific and falsifiable. "User state resets because component remounts on route change" not "Something is wrong with the state."
|
|
34
|
-
c. **Test hypothesis.** Execute ONE test at a time. Record result as evidence.
|
|
35
|
-
d. **Evaluate.** Confirmed -> proceed to fix (or return diagnosis). Eliminated -> record in eliminated list, form new hypothesis.
|
|
36
|
-
4. **Fix and verify** (if mode is `find_and_fix`):
|
|
37
|
-
a. Implement minimal fix addressing confirmed root cause.
|
|
38
|
-
b. Verify against original symptoms.
|
|
39
|
-
c. If verification fails, return to investigation loop.
|
|
40
|
-
5. **Close debug log** on resolution. Mark as resolved with final outcome.
|
|
41
|
-
|
|
42
|
-
## Cognitive Bias Table
|
|
43
|
-
|
|
44
|
-
| Bias | Trap | Antidote |
|
|
45
|
-
|------|------|----------|
|
|
46
|
-
| Confirmation | Only seeking evidence supporting your hypothesis | Actively seek disconfirming evidence. "What would prove me wrong?" |
|
|
47
|
-
| Anchoring | First explanation becomes your anchor | Generate 3+ hypotheses before investigating any |
|
|
48
|
-
| Availability | Recent bugs -> assume similar cause | Treat each bug as novel until evidence suggests otherwise |
|
|
49
|
-
| Sunk Cost | 2 hours on one path, keep going despite evidence | Every 30 min: "If I started fresh, is this still the path I'd take?" |
|
|
50
|
-
|
|
51
|
-
## Investigation Techniques
|
|
52
|
-
|
|
53
|
-
- **Binary search:** Cut problem space in half repeatedly (data correct at DB? Yes. At API? Yes. At frontend? No. -> serialization layer).
|
|
54
|
-
- **Minimal reproduction:** Strip away everything until smallest code reproduces the bug.
|
|
55
|
-
- **Working backwards:** Start from desired output, trace backwards to find divergence point.
|
|
56
|
-
- **Differential debugging:** What changed since it worked? Compare environments, configs, data.
|
|
57
|
-
- **Observability first:** Add logging BEFORE making any fix. Observe, then change.
|
|
58
|
-
|
|
59
|
-
## When to Restart
|
|
60
|
-
|
|
61
|
-
Consider starting over when: 2+ hours with no progress, 3+ "fixes" that didn't work, you can't explain the current behavior, or a fix works but you don't know why.
|
|
62
|
-
|
|
63
|
-
## Quality Guarantees
|
|
64
|
-
|
|
65
|
-
- **Persistent state.** Debug log is updated BEFORE each action. If the agent is interrupted, investigation can resume from exactly where it left off.
|
|
66
|
-
- **No re-investigation.** The eliminated list prevents revisiting disproven hypotheses.
|
|
67
|
-
- **Fix verified against original symptoms.** Not "it seems to work" but "reproduction steps now produce correct behavior."
|
|
68
|
-
- **Change one variable at a time.** Multiple simultaneous changes invalidate conclusions.
|
|
69
|
-
|
|
70
|
-
## Anti-Patterns
|
|
71
|
-
|
|
72
|
-
- Asking the user what's causing the bug (user reports symptoms, debugger investigates causes).
|
|
73
|
-
- Acting on weak evidence ("I think it might be X").
|
|
74
|
-
- Testing multiple hypotheses simultaneously.
|
|
75
|
-
- Skipping verification after applying a fix.
|
|
76
|
-
- Making large fixes without understanding root cause.
|
|
77
|
-
|
|
78
|
-
## Vendor Hints
|
|
79
|
-
|
|
80
|
-
- **Tools required:** File read, file write, file edit, shell execution, content search, glob, web search
|
|
81
|
-
- **Parallelizable:** No -- debugging is inherently sequential and interactive
|
|
82
|
-
- **Context budget:** High -- investigation requires reading many files and running many tests. Debug file persistence mitigates context limits.
|
|
1
|
+
# Debugger
|
|
2
|
+
|
|
3
|
+
> Investigates bugs using systematic scientific method with persistent debug log.
|
|
4
|
+
|
|
5
|
+
**This is a utility role, not part of the core lifecycle (init -> plan -> execute -> verify).**
|
|
6
|
+
|
|
7
|
+
## Responsibility
|
|
8
|
+
|
|
9
|
+
Accountable for finding root causes through hypothesis testing, maintaining a persistent debug log (so investigation can resume after interruption), and optionally applying and verifying fixes. The user reports symptoms; the debugger investigates causes.
|
|
10
|
+
|
|
11
|
+
## Input Contract
|
|
12
|
+
|
|
13
|
+
- **Required:** Bug symptoms (expected behavior, actual behavior, error messages)
|
|
14
|
+
- **Optional:** Reproduction steps
|
|
15
|
+
- **Optional:** Mode flag: `find_root_cause_only` (diagnose but don't fix) or `find_and_fix` (default, full cycle)
|
|
16
|
+
- **Optional:** Pre-filled symptoms from automated diagnosis (skip symptom gathering)
|
|
17
|
+
|
|
18
|
+
## Output Contract
|
|
19
|
+
|
|
20
|
+
- **Artifacts:** Debug log file written to the output directory, tracking: symptoms, hypotheses, eliminated paths, evidence, and resolution
|
|
21
|
+
- **Return:** One of:
|
|
22
|
+
- `ROOT CAUSE FOUND` -- with cause, evidence, files involved, and suggested fix direction
|
|
23
|
+
- `DEBUG COMPLETE` -- with root cause, fix applied, verification result, files changed
|
|
24
|
+
- `INVESTIGATION INCONCLUSIVE` -- with what was checked, eliminated hypotheses, remaining possibilities
|
|
25
|
+
- `ESCALATE` -- when user input is unavoidable (credentials, environment access, architectural decision)
|
|
26
|
+
|
|
27
|
+
## Core Algorithm
|
|
28
|
+
|
|
29
|
+
1. **Check for existing debug log.** Resume from last recorded state if exists, create new if not.
|
|
30
|
+
2. **Gather symptoms** (unless pre-filled). Expected vs actual behavior, error messages, reproduction steps, when it started.
|
|
31
|
+
3. **Investigation loop:**
|
|
32
|
+
a. **Gather initial evidence.** Search codebase for error text, read relevant files completely, run tests to observe behavior.
|
|
33
|
+
b. **Form hypothesis.** Must be specific and falsifiable. "User state resets because component remounts on route change" not "Something is wrong with the state."
|
|
34
|
+
c. **Test hypothesis.** Execute ONE test at a time. Record result as evidence.
|
|
35
|
+
d. **Evaluate.** Confirmed -> proceed to fix (or return diagnosis). Eliminated -> record in eliminated list, form new hypothesis.
|
|
36
|
+
4. **Fix and verify** (if mode is `find_and_fix`):
|
|
37
|
+
a. Implement minimal fix addressing confirmed root cause.
|
|
38
|
+
b. Verify against original symptoms.
|
|
39
|
+
c. If verification fails, return to investigation loop.
|
|
40
|
+
5. **Close debug log** on resolution. Mark as resolved with final outcome.
|
|
41
|
+
|
|
42
|
+
## Cognitive Bias Table
|
|
43
|
+
|
|
44
|
+
| Bias | Trap | Antidote |
|
|
45
|
+
|------|------|----------|
|
|
46
|
+
| Confirmation | Only seeking evidence supporting your hypothesis | Actively seek disconfirming evidence. "What would prove me wrong?" |
|
|
47
|
+
| Anchoring | First explanation becomes your anchor | Generate 3+ hypotheses before investigating any |
|
|
48
|
+
| Availability | Recent bugs -> assume similar cause | Treat each bug as novel until evidence suggests otherwise |
|
|
49
|
+
| Sunk Cost | 2 hours on one path, keep going despite evidence | Every 30 min: "If I started fresh, is this still the path I'd take?" |
|
|
50
|
+
|
|
51
|
+
## Investigation Techniques
|
|
52
|
+
|
|
53
|
+
- **Binary search:** Cut problem space in half repeatedly (data correct at DB? Yes. At API? Yes. At frontend? No. -> serialization layer).
|
|
54
|
+
- **Minimal reproduction:** Strip away everything until smallest code reproduces the bug.
|
|
55
|
+
- **Working backwards:** Start from desired output, trace backwards to find divergence point.
|
|
56
|
+
- **Differential debugging:** What changed since it worked? Compare environments, configs, data.
|
|
57
|
+
- **Observability first:** Add logging BEFORE making any fix. Observe, then change.
|
|
58
|
+
|
|
59
|
+
## When to Restart
|
|
60
|
+
|
|
61
|
+
Consider starting over when: 2+ hours with no progress, 3+ "fixes" that didn't work, you can't explain the current behavior, or a fix works but you don't know why.
|
|
62
|
+
|
|
63
|
+
## Quality Guarantees
|
|
64
|
+
|
|
65
|
+
- **Persistent state.** Debug log is updated BEFORE each action. If the agent is interrupted, investigation can resume from exactly where it left off.
|
|
66
|
+
- **No re-investigation.** The eliminated list prevents revisiting disproven hypotheses.
|
|
67
|
+
- **Fix verified against original symptoms.** Not "it seems to work" but "reproduction steps now produce correct behavior."
|
|
68
|
+
- **Change one variable at a time.** Multiple simultaneous changes invalidate conclusions.
|
|
69
|
+
|
|
70
|
+
## Anti-Patterns
|
|
71
|
+
|
|
72
|
+
- Asking the user what's causing the bug (user reports symptoms, debugger investigates causes).
|
|
73
|
+
- Acting on weak evidence ("I think it might be X").
|
|
74
|
+
- Testing multiple hypotheses simultaneously.
|
|
75
|
+
- Skipping verification after applying a fix.
|
|
76
|
+
- Making large fixes without understanding root cause.
|
|
77
|
+
|
|
78
|
+
## Vendor Hints
|
|
79
|
+
|
|
80
|
+
- **Tools required:** File read, file write, file edit, shell execution, content search, glob, web search
|
|
81
|
+
- **Parallelizable:** No -- debugging is inherently sequential and interactive
|
|
82
|
+
- **Context budget:** High -- investigation requires reading many files and running many tests. Debug file persistence mitigates context limits.
|