dino-spec 20.4.0 → 21.1.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/.claude/rules/dino/change-categories.md +56 -56
- package/.claude/rules/dino/confidence.md +147 -147
- package/.claude/rules/dino/quality.md +112 -112
- package/.claude/skills/dino.analyze-codebase/SKILL.md +139 -139
- package/.claude/skills/dino.refactor/SKILL.md +146 -146
- package/.claude/skills/dino.statusline/SKILL.md +56 -56
- package/.claude/skills/dino.team/SKILL.md +136 -136
- package/.claude/skills/dino.verify/SKILL.md +195 -195
- package/.claude/skills/research/SKILL.md +149 -149
- package/bin/dino.js +23 -1
- package/dist/.build-meta.json +1 -0
- package/dist/commands/debug.js +27 -27
- package/dist/commands/hooks/index.d.ts +1 -0
- package/dist/commands/hooks/index.d.ts.map +1 -1
- package/dist/commands/hooks/index.js +18 -53
- package/dist/commands/hooks/index.js.map +1 -1
- package/dist/commands/hooks/registry.d.ts.map +1 -1
- package/dist/commands/hooks/registry.js +0 -46
- package/dist/commands/hooks/registry.js.map +1 -1
- package/dist/commands/hooks/types.d.ts +2 -1
- package/dist/commands/hooks/types.d.ts.map +1 -1
- package/dist/commands/hooks/types.js.map +1 -1
- package/dist/commands/hooks/utils.d.ts +0 -4
- package/dist/commands/hooks/utils.d.ts.map +1 -1
- package/dist/commands/hooks/utils.js +0 -4
- package/dist/commands/hooks/utils.js.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +27 -13
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/mcp.js +12 -12
- package/dist/commands/mcp.js.map +1 -1
- package/dist/commands/update.js +2 -2
- package/dist/commands/update.js.map +1 -1
- package/dist/core/agents/__tests__/skill-creator.test.js +13 -13
- package/dist/core/agents/coordination/checkpoint.d.ts +65 -0
- package/dist/core/agents/coordination/checkpoint.d.ts.map +1 -0
- package/dist/core/agents/coordination/checkpoint.js +187 -0
- package/dist/core/agents/coordination/checkpoint.js.map +1 -0
- package/dist/core/agents/coordination/index.d.ts +5 -0
- package/dist/core/agents/coordination/index.d.ts.map +1 -1
- package/dist/core/agents/coordination/index.js +7 -0
- package/dist/core/agents/coordination/index.js.map +1 -1
- package/dist/core/agents/coordination/self-healing.d.ts +58 -0
- package/dist/core/agents/coordination/self-healing.d.ts.map +1 -0
- package/dist/core/agents/coordination/self-healing.js +318 -0
- package/dist/core/agents/coordination/self-healing.js.map +1 -0
- package/dist/core/agents/core/index.d.ts +4 -6
- package/dist/core/agents/core/index.d.ts.map +1 -1
- package/dist/core/agents/core/index.js +4 -7
- package/dist/core/agents/core/index.js.map +1 -1
- package/dist/core/agents/index.d.ts +0 -1
- package/dist/core/agents/index.d.ts.map +1 -1
- package/dist/core/agents/index.js +0 -2
- package/dist/core/agents/index.js.map +1 -1
- package/dist/core/agents/programmatic/script-executor.js +134 -134
- package/dist/core/agents/skill-creator.js +75 -75
- package/dist/core/analyzer/index.d.ts +0 -1
- package/dist/core/analyzer/index.d.ts.map +1 -1
- package/dist/core/analyzer/index.js +0 -2
- package/dist/core/analyzer/index.js.map +1 -1
- package/dist/core/analyzer/multi-lang/index.d.ts +4 -2
- package/dist/core/analyzer/multi-lang/index.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/index.js +44 -33
- package/dist/core/analyzer/multi-lang/index.js.map +1 -1
- package/dist/core/analyzer/multi-lang/language-detector.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/language-detector.js +67 -0
- package/dist/core/analyzer/multi-lang/language-detector.js.map +1 -1
- package/dist/core/analyzer/multi-lang/pattern-extractor.d.ts.map +1 -1
- package/dist/core/analyzer/multi-lang/pattern-extractor.js +92 -0
- package/dist/core/analyzer/multi-lang/pattern-extractor.js.map +1 -1
- package/dist/core/analyzer/multi-lang/semantic-diff.d.ts +29 -0
- package/dist/core/analyzer/multi-lang/semantic-diff.d.ts.map +1 -0
- package/dist/core/analyzer/multi-lang/semantic-diff.js +163 -0
- package/dist/core/analyzer/multi-lang/semantic-diff.js.map +1 -0
- package/dist/core/analyzer/multi-lang/types.d.ts +1 -1
- package/dist/core/analyzer/multi-lang/types.d.ts.map +1 -1
- package/dist/core/cache/index.d.ts +0 -1
- package/dist/core/cache/index.d.ts.map +1 -1
- package/dist/core/cache/index.js +0 -1
- package/dist/core/cache/index.js.map +1 -1
- package/dist/core/config/index.d.ts +0 -1
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +0 -1
- package/dist/core/config/index.js.map +1 -1
- package/dist/core/context/budget-thresholds.d.ts +6 -0
- package/dist/core/context/budget-thresholds.d.ts.map +1 -1
- package/dist/core/context/budget-thresholds.js +18 -46
- package/dist/core/context/budget-thresholds.js.map +1 -1
- package/dist/core/context/context-health.js +1 -1
- package/dist/core/context/context-health.js.map +1 -1
- package/dist/core/context/index.d.ts +1 -3
- package/dist/core/context/index.d.ts.map +1 -1
- package/dist/core/context/index.js +1 -5
- package/dist/core/context/index.js.map +1 -1
- package/dist/core/context/lazy-loader.js +3 -3
- package/dist/core/environment/__tests__/pre-verify.test.js +8 -8
- package/dist/core/environment/index.d.ts +0 -1
- package/dist/core/environment/index.d.ts.map +1 -1
- package/dist/core/generator/claude-md.js +40 -40
- package/dist/core/generator/session-md.js +31 -31
- package/dist/core/memory/agents/index.d.ts +0 -1
- package/dist/core/memory/agents/index.d.ts.map +1 -1
- package/dist/core/memory/agents/index.js +0 -2
- package/dist/core/memory/agents/index.js.map +1 -1
- package/dist/core/memory/index.d.ts +1 -2
- package/dist/core/memory/index.d.ts.map +1 -1
- package/dist/core/memory/index.js +1 -5
- package/dist/core/memory/index.js.map +1 -1
- package/dist/core/ralph/__tests__/prd-generator-session-context.test.js +31 -31
- package/dist/core/ralph/index.d.ts +0 -2
- package/dist/core/ralph/index.d.ts.map +1 -1
- package/dist/core/ralph/index.js +0 -1
- package/dist/core/ralph/index.js.map +1 -1
- package/dist/core/ralph/progress-tracker.js +14 -14
- package/dist/core/ralph/state-handler.js +5 -5
- package/dist/core/ralph/sub-agent-spawner.js +9 -9
- package/dist/core/registry/feature-registry.d.ts.map +1 -1
- package/dist/core/registry/feature-registry.js +0 -56
- package/dist/core/registry/feature-registry.js.map +1 -1
- package/dist/core/updater/deprecated-files.d.ts.map +1 -1
- package/dist/core/updater/deprecated-files.js +21 -0
- package/dist/core/updater/deprecated-files.js.map +1 -1
- package/dist/hooks/code-safety-patterns.d.ts.map +1 -1
- package/dist/hooks/code-safety-patterns.js +81 -4
- package/dist/hooks/code-safety-patterns.js.map +1 -1
- package/dist/hooks/constants.d.ts.map +1 -1
- package/dist/hooks/constants.js +0 -1
- package/dist/hooks/constants.js.map +1 -1
- package/dist/hooks/generator-factory.d.ts +7 -5
- package/dist/hooks/generator-factory.d.ts.map +1 -1
- package/dist/hooks/generator-factory.js +49 -36
- package/dist/hooks/generator-factory.js.map +1 -1
- package/dist/hooks/handlers/execution.d.ts.map +1 -1
- package/dist/hooks/handlers/execution.js +9 -21
- package/dist/hooks/handlers/execution.js.map +1 -1
- package/dist/hooks/handlers/index.d.ts +1 -1
- package/dist/hooks/handlers/index.d.ts.map +1 -1
- package/dist/hooks/handlers/index.js +45 -10
- package/dist/hooks/handlers/index.js.map +1 -1
- package/dist/hooks/handlers/memory-lifecycle.d.ts +2 -2
- package/dist/hooks/handlers/memory-lifecycle.d.ts.map +1 -1
- package/dist/hooks/handlers/memory-lifecycle.js +29 -10
- package/dist/hooks/handlers/memory-lifecycle.js.map +1 -1
- package/dist/hooks/handlers/post-edit.d.ts.map +1 -1
- package/dist/hooks/handlers/post-edit.js +39 -1
- package/dist/hooks/handlers/post-edit.js.map +1 -1
- package/dist/hooks/handlers/types.d.ts +19 -1
- package/dist/hooks/handlers/types.d.ts.map +1 -1
- package/dist/hooks/handlers/types.js +42 -0
- package/dist/hooks/handlers/types.js.map +1 -1
- package/dist/hooks/handlers/user-input.d.ts +0 -4
- package/dist/hooks/handlers/user-input.d.ts.map +1 -1
- package/dist/hooks/handlers/user-input.js +6 -28
- package/dist/hooks/handlers/user-input.js.map +1 -1
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/memory-correlator.js +1 -1
- package/dist/hud/charts/bar-chart.d.ts +47 -0
- package/dist/hud/charts/bar-chart.d.ts.map +1 -0
- package/dist/hud/charts/bar-chart.js +91 -0
- package/dist/hud/charts/bar-chart.js.map +1 -0
- package/dist/hud/charts/index.d.ts +8 -0
- package/dist/hud/charts/index.d.ts.map +1 -0
- package/dist/hud/charts/index.js +8 -0
- package/dist/hud/charts/index.js.map +1 -0
- package/dist/hud/charts/sparkline.d.ts +38 -0
- package/dist/hud/charts/sparkline.d.ts.map +1 -0
- package/dist/hud/charts/sparkline.js +105 -0
- package/dist/hud/charts/sparkline.js.map +1 -0
- package/dist/hud/render/index.d.ts +0 -6
- package/dist/hud/render/index.d.ts.map +1 -1
- package/dist/hud/render/index.js +0 -9
- package/dist/hud/render/index.js.map +1 -1
- package/dist/mcp/cache.d.ts.map +1 -1
- package/dist/mcp/cache.js +0 -1
- package/dist/mcp/cache.js.map +1 -1
- package/dist/mcp/index.d.ts +0 -1
- package/dist/mcp/index.d.ts.map +1 -1
- package/dist/mcp/index.js +0 -1
- package/dist/mcp/index.js.map +1 -1
- package/dist/mcp/setup.d.ts +6 -6
- package/dist/mcp/setup.d.ts.map +1 -1
- package/dist/mcp/setup.js +24 -24
- package/dist/mcp/setup.js.map +1 -1
- package/dist/mcp/tool-recommender.d.ts +1 -0
- package/dist/mcp/tool-recommender.d.ts.map +1 -1
- package/dist/mcp/tool-recommender.js +1 -16
- package/dist/mcp/tool-recommender.js.map +1 -1
- package/dist/mcp/tool-sequence-store.d.ts +99 -0
- package/dist/mcp/tool-sequence-store.d.ts.map +1 -0
- package/dist/mcp/tool-sequence-store.js +316 -0
- package/dist/mcp/tool-sequence-store.js.map +1 -0
- package/dist/mcp/tools/index.d.ts +1 -2
- package/dist/mcp/tools/index.d.ts.map +1 -1
- package/dist/mcp/tools/index.js +0 -5
- package/dist/mcp/tools/index.js.map +1 -1
- package/dist/mcp/tools/lazy-context.js +6 -6
- package/dist/services/memory/migrations.d.ts.map +1 -1
- package/dist/services/memory/migrations.js +221 -199
- package/dist/services/memory/migrations.js.map +1 -1
- package/dist/services/memory/repos/contradiction-repo.js +4 -4
- package/dist/services/memory/repos/decision-repo.js +1 -1
- package/dist/services/memory/repos/heatmap-repo.js +5 -5
- package/dist/services/memory/repos/injection-snapshot-repo.js +1 -1
- package/dist/services/memory/repos/learning-repo.js +1 -1
- package/dist/services/memory/repos/negative-repo.js +1 -1
- package/dist/services/memory/repos/observation-repo.js +4 -4
- package/dist/services/memory/repos/pain-point-repo.js +1 -1
- package/dist/services/memory/repos/pattern-repo.js +1 -1
- package/dist/services/memory/repos/pending-message-repo.js +2 -2
- package/dist/services/memory/repos/session-summary-repo.js +3 -3
- package/dist/services/memory/repos/sync-status-repo.js +4 -4
- package/dist/statusline/index.d.ts +0 -1
- package/dist/statusline/index.d.ts.map +1 -1
- package/dist/statusline/index.js +54 -56
- package/dist/statusline/index.js.map +1 -1
- package/dist/utils/ascii-art.js +11 -11
- package/dist/utils/dead-export-detector.d.ts +32 -0
- package/dist/utils/dead-export-detector.d.ts.map +1 -0
- package/dist/utils/dead-export-detector.js +189 -0
- package/dist/utils/dead-export-detector.js.map +1 -0
- package/dist/utils/dino-dist-path.d.ts +16 -0
- package/dist/utils/dino-dist-path.d.ts.map +1 -0
- package/dist/utils/dino-dist-path.js +31 -0
- package/dist/utils/dino-dist-path.js.map +1 -0
- package/package.json +1 -2
- package/dist/core/agents/__tests__/orchestrator.test.d.ts +0 -5
- package/dist/core/agents/__tests__/orchestrator.test.d.ts.map +0 -1
- package/dist/core/agents/__tests__/orchestrator.test.js +0 -332
- package/dist/core/agents/__tests__/orchestrator.test.js.map +0 -1
- package/dist/core/agents/core/orchestrator.d.ts +0 -125
- package/dist/core/agents/core/orchestrator.d.ts.map +0 -1
- package/dist/core/agents/core/orchestrator.js +0 -548
- package/dist/core/agents/core/orchestrator.js.map +0 -1
- package/dist/core/analyzer/change-intent.d.ts +0 -59
- package/dist/core/analyzer/change-intent.d.ts.map +0 -1
- package/dist/core/analyzer/change-intent.js +0 -306
- package/dist/core/analyzer/change-intent.js.map +0 -1
- package/dist/core/cache/cache-analyzer.d.ts +0 -67
- package/dist/core/cache/cache-analyzer.d.ts.map +0 -1
- package/dist/core/cache/cache-analyzer.js +0 -325
- package/dist/core/cache/cache-analyzer.js.map +0 -1
- package/dist/core/config/generated-files.d.ts +0 -30
- package/dist/core/config/generated-files.d.ts.map +0 -1
- package/dist/core/config/generated-files.js +0 -41
- package/dist/core/config/generated-files.js.map +0 -1
- package/dist/core/context/adaptation-strategy.d.ts +0 -125
- package/dist/core/context/adaptation-strategy.d.ts.map +0 -1
- package/dist/core/context/adaptation-strategy.js +0 -233
- package/dist/core/context/adaptation-strategy.js.map +0 -1
- package/dist/core/context/auto-unload-engine.d.ts +0 -102
- package/dist/core/context/auto-unload-engine.d.ts.map +0 -1
- package/dist/core/context/auto-unload-engine.js +0 -299
- package/dist/core/context/auto-unload-engine.js.map +0 -1
- package/dist/core/context/feedback-loop-engine.d.ts +0 -129
- package/dist/core/context/feedback-loop-engine.d.ts.map +0 -1
- package/dist/core/context/feedback-loop-engine.js +0 -354
- package/dist/core/context/feedback-loop-engine.js.map +0 -1
- package/dist/core/environment/types.d.ts +0 -37
- package/dist/core/environment/types.d.ts.map +0 -1
- package/dist/core/environment/types.js +0 -5
- package/dist/core/environment/types.js.map +0 -1
- package/dist/core/memory/agents/memory-capture-agent.d.ts +0 -83
- package/dist/core/memory/agents/memory-capture-agent.d.ts.map +0 -1
- package/dist/core/memory/agents/memory-capture-agent.js +0 -603
- package/dist/core/memory/agents/memory-capture-agent.js.map +0 -1
- package/dist/core/ralph/executor.d.ts +0 -105
- package/dist/core/ralph/executor.d.ts.map +0 -1
- package/dist/core/ralph/executor.js +0 -319
- package/dist/core/ralph/executor.js.map +0 -1
- package/dist/core/retrieval/coordinator.d.ts +0 -129
- package/dist/core/retrieval/coordinator.d.ts.map +0 -1
- package/dist/core/retrieval/coordinator.js +0 -290
- package/dist/core/retrieval/coordinator.js.map +0 -1
- package/dist/core/retrieval/hybrid.d.ts +0 -28
- package/dist/core/retrieval/hybrid.d.ts.map +0 -1
- package/dist/core/retrieval/hybrid.js +0 -190
- package/dist/core/retrieval/hybrid.js.map +0 -1
- package/dist/core/retrieval/index.d.ts +0 -45
- package/dist/core/retrieval/index.d.ts.map +0 -1
- package/dist/core/retrieval/index.js +0 -95
- package/dist/core/retrieval/index.js.map +0 -1
- package/dist/core/retrieval/ranker.d.ts +0 -112
- package/dist/core/retrieval/ranker.d.ts.map +0 -1
- package/dist/core/retrieval/ranker.js +0 -307
- package/dist/core/retrieval/ranker.js.map +0 -1
- package/dist/core/retrieval/stages.d.ts +0 -33
- package/dist/core/retrieval/stages.d.ts.map +0 -1
- package/dist/core/retrieval/stages.js +0 -250
- package/dist/core/retrieval/stages.js.map +0 -1
- package/dist/core/retrieval/types.d.ts +0 -147
- package/dist/core/retrieval/types.d.ts.map +0 -1
- package/dist/core/retrieval/types.js +0 -45
- package/dist/core/retrieval/types.js.map +0 -1
- package/dist/hooks/post-typecheck.d.ts +0 -14
- package/dist/hooks/post-typecheck.d.ts.map +0 -1
- package/dist/hooks/post-typecheck.js +0 -15
- package/dist/hooks/post-typecheck.js.map +0 -1
- package/dist/hooks/session-end.d.ts +0 -14
- package/dist/hooks/session-end.d.ts.map +0 -1
- package/dist/hooks/session-end.js +0 -15
- package/dist/hooks/session-end.js.map +0 -1
- package/dist/hooks/shared/index.d.ts +0 -12
- package/dist/hooks/shared/index.d.ts.map +0 -1
- package/dist/hooks/shared/index.js +0 -12
- package/dist/hooks/shared/index.js.map +0 -1
- package/dist/hooks/shared/utils.d.ts +0 -117
- package/dist/hooks/shared/utils.d.ts.map +0 -1
- package/dist/hooks/shared/utils.js +0 -295
- package/dist/hooks/shared/utils.js.map +0 -1
- package/dist/hooks/subagent-start.d.ts +0 -14
- package/dist/hooks/subagent-start.d.ts.map +0 -1
- package/dist/hooks/subagent-start.js +0 -15
- package/dist/hooks/subagent-start.js.map +0 -1
- package/dist/hooks/subagent-stop.d.ts +0 -14
- package/dist/hooks/subagent-stop.d.ts.map +0 -1
- package/dist/hooks/subagent-stop.js +0 -15
- package/dist/hooks/subagent-stop.js.map +0 -1
- package/dist/hud/render/blockers-badge.d.ts +0 -38
- package/dist/hud/render/blockers-badge.d.ts.map +0 -1
- package/dist/hud/render/blockers-badge.js +0 -81
- package/dist/hud/render/blockers-badge.js.map +0 -1
- package/dist/hud/render/budget-pressure.d.ts +0 -64
- package/dist/hud/render/budget-pressure.d.ts.map +0 -1
- package/dist/hud/render/budget-pressure.js +0 -158
- package/dist/hud/render/budget-pressure.js.map +0 -1
- package/dist/hud/render/focus-display.d.ts +0 -68
- package/dist/hud/render/focus-display.d.ts.map +0 -1
- package/dist/hud/render/focus-display.js +0 -217
- package/dist/hud/render/focus-display.js.map +0 -1
- package/dist/hud/render/phase-indicator.d.ts +0 -27
- package/dist/hud/render/phase-indicator.d.ts.map +0 -1
- package/dist/hud/render/phase-indicator.js +0 -62
- package/dist/hud/render/phase-indicator.js.map +0 -1
- package/dist/hud/render/status-icons.d.ts +0 -51
- package/dist/hud/render/status-icons.d.ts.map +0 -1
- package/dist/hud/render/status-icons.js +0 -158
- package/dist/hud/render/status-icons.js.map +0 -1
- package/dist/hud/render/tools.d.ts +0 -54
- package/dist/hud/render/tools.d.ts.map +0 -1
- package/dist/hud/render/tools.js +0 -139
- package/dist/hud/render/tools.js.map +0 -1
- package/dist/mcp/focus-tag-learner.d.ts +0 -135
- package/dist/mcp/focus-tag-learner.d.ts.map +0 -1
- package/dist/mcp/focus-tag-learner.js +0 -274
- package/dist/mcp/focus-tag-learner.js.map +0 -1
- package/dist/mcp/tool-loader.d.ts +0 -191
- package/dist/mcp/tool-loader.d.ts.map +0 -1
- package/dist/mcp/tool-loader.js +0 -381
- package/dist/mcp/tool-loader.js.map +0 -1
- package/dist/mcp/tools/retrieval.d.ts +0 -34
- package/dist/mcp/tools/retrieval.d.ts.map +0 -1
- package/dist/mcp/tools/retrieval.js +0 -124
- package/dist/mcp/tools/retrieval.js.map +0 -1
- package/dist/statusline/budget-tracker.d.ts +0 -94
- package/dist/statusline/budget-tracker.d.ts.map +0 -1
- package/dist/statusline/budget-tracker.js +0 -237
- package/dist/statusline/budget-tracker.js.map +0 -1
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
# Change Categories
|
|
2
|
-
|
|
3
|
-
## File Classification
|
|
4
|
-
|
|
5
|
-
Files are classified into categories based on path and name:
|
|
6
|
-
|
|
7
|
-
### dependency (High Significance)
|
|
8
|
-
Files that affect project dependencies:
|
|
9
|
-
- `package.json`, `bun.lockb`, `package-lock.json`
|
|
10
|
-
|
|
11
|
-
**Pending Action:** Run package manager install command
|
|
12
|
-
|
|
13
|
-
### structural (High Significance)
|
|
14
|
-
Files that affect project structure:
|
|
15
|
-
- Entry points: `index.ts`, `main.ts`, `app.ts`
|
|
16
|
-
- Configuration: `tsconfig.json`, `webpack.config.js`
|
|
17
|
-
- Build configs: `build.js`, `vite.config.ts`
|
|
18
|
-
- Directory additions/removals
|
|
19
|
-
|
|
20
|
-
**Pending Action:** Verify import paths
|
|
21
|
-
|
|
22
|
-
### config (Medium Significance)
|
|
23
|
-
Configuration files:
|
|
24
|
-
- `.env`, `.env.*`
|
|
25
|
-
- `*.config.js`, `*.config.ts`
|
|
26
|
-
- `.eslintrc`, `.prettierrc`
|
|
27
|
-
- CI/CD files: `.github/`, `.gitlab-ci.yml`
|
|
28
|
-
|
|
29
|
-
### test (Medium Significance)
|
|
30
|
-
Test files:
|
|
31
|
-
- `*.test.ts`, `*.test.js`
|
|
32
|
-
- `*.spec.ts`, `*.spec.js`
|
|
33
|
-
- `test/`, `tests/`, `__tests__/` directories
|
|
34
|
-
|
|
35
|
-
### code (Low Significance)
|
|
36
|
-
Source code files:
|
|
37
|
-
- `src/`, `lib/` directories
|
|
38
|
-
- Main programming language files
|
|
39
|
-
- Utility and helper files
|
|
40
|
-
|
|
41
|
-
### documentation (Low Significance)
|
|
42
|
-
Documentation files:
|
|
43
|
-
- `*.md`, `README*`
|
|
44
|
-
- `docs/` directory
|
|
45
|
-
- Code comments (when detected)
|
|
46
|
-
|
|
47
|
-
## Impact on Workflow
|
|
48
|
-
|
|
49
|
-
| Category | Run Tests | Run Build | Review |
|
|
50
|
-
|----------|-----------|-----------|--------|
|
|
51
|
-
| dependency | After install | Yes | Changelog |
|
|
52
|
-
| structural | Yes | Yes | Imports |
|
|
53
|
-
| config | Maybe | Maybe | Side effects |
|
|
54
|
-
| test | Yes | No | Coverage |
|
|
55
|
-
| code | Yes | Yes | Normal |
|
|
56
|
-
| documentation | No | No | Spelling |
|
|
1
|
+
# Change Categories
|
|
2
|
+
|
|
3
|
+
## File Classification
|
|
4
|
+
|
|
5
|
+
Files are classified into categories based on path and name:
|
|
6
|
+
|
|
7
|
+
### dependency (High Significance)
|
|
8
|
+
Files that affect project dependencies:
|
|
9
|
+
- `package.json`, `bun.lockb`, `package-lock.json`
|
|
10
|
+
|
|
11
|
+
**Pending Action:** Run package manager install command
|
|
12
|
+
|
|
13
|
+
### structural (High Significance)
|
|
14
|
+
Files that affect project structure:
|
|
15
|
+
- Entry points: `index.ts`, `main.ts`, `app.ts`
|
|
16
|
+
- Configuration: `tsconfig.json`, `webpack.config.js`
|
|
17
|
+
- Build configs: `build.js`, `vite.config.ts`
|
|
18
|
+
- Directory additions/removals
|
|
19
|
+
|
|
20
|
+
**Pending Action:** Verify import paths
|
|
21
|
+
|
|
22
|
+
### config (Medium Significance)
|
|
23
|
+
Configuration files:
|
|
24
|
+
- `.env`, `.env.*`
|
|
25
|
+
- `*.config.js`, `*.config.ts`
|
|
26
|
+
- `.eslintrc`, `.prettierrc`
|
|
27
|
+
- CI/CD files: `.github/`, `.gitlab-ci.yml`
|
|
28
|
+
|
|
29
|
+
### test (Medium Significance)
|
|
30
|
+
Test files:
|
|
31
|
+
- `*.test.ts`, `*.test.js`
|
|
32
|
+
- `*.spec.ts`, `*.spec.js`
|
|
33
|
+
- `test/`, `tests/`, `__tests__/` directories
|
|
34
|
+
|
|
35
|
+
### code (Low Significance)
|
|
36
|
+
Source code files:
|
|
37
|
+
- `src/`, `lib/` directories
|
|
38
|
+
- Main programming language files
|
|
39
|
+
- Utility and helper files
|
|
40
|
+
|
|
41
|
+
### documentation (Low Significance)
|
|
42
|
+
Documentation files:
|
|
43
|
+
- `*.md`, `README*`
|
|
44
|
+
- `docs/` directory
|
|
45
|
+
- Code comments (when detected)
|
|
46
|
+
|
|
47
|
+
## Impact on Workflow
|
|
48
|
+
|
|
49
|
+
| Category | Run Tests | Run Build | Review |
|
|
50
|
+
|----------|-----------|-----------|--------|
|
|
51
|
+
| dependency | After install | Yes | Changelog |
|
|
52
|
+
| structural | Yes | Yes | Imports |
|
|
53
|
+
| config | Maybe | Maybe | Side effects |
|
|
54
|
+
| test | Yes | No | Coverage |
|
|
55
|
+
| code | Yes | Yes | Normal |
|
|
56
|
+
| documentation | No | No | Spelling |
|
|
@@ -1,147 +1,147 @@
|
|
|
1
|
-
# Confidence & Validation
|
|
2
|
-
|
|
3
|
-
Consolidated from: confidence-handling, spec-kit, research-validation
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Confidence Gate
|
|
8
|
-
|
|
9
|
-
Implementation BLOCKED until confidence threshold reached.
|
|
10
|
-
|
|
11
|
-
### Thresholds
|
|
12
|
-
|
|
13
|
-
| Task Type | Required | Reason |
|
|
14
|
-
|-----------|----------|--------|
|
|
15
|
-
| Standard | 80% | Typical implementation |
|
|
16
|
-
| Complex (Ralph-eligible) | 90% | Multi-story work |
|
|
17
|
-
|
|
18
|
-
### Confidence Factors
|
|
19
|
-
|
|
20
|
-
| Factor | Impact |
|
|
21
|
-
|--------|--------|
|
|
22
|
-
| Vague verbs | -5% each |
|
|
23
|
-
| Missing target | -5% |
|
|
24
|
-
| Unclear success | -5% |
|
|
25
|
-
| Security-related | -15% |
|
|
26
|
-
| Data-related | -10% |
|
|
27
|
-
| Breaking change | -10% |
|
|
28
|
-
| Package recommendation | -15% |
|
|
29
|
-
| API usage from training | -10% |
|
|
30
|
-
|
|
31
|
-
### Gate Flow
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
Task → Analyze Confidence → [>= threshold?]
|
|
35
|
-
↓ no
|
|
36
|
-
[ambiguity > 40?] → Research
|
|
37
|
-
↓ no
|
|
38
|
-
Clarification → Re-check
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Max Rounds
|
|
42
|
-
|
|
43
|
-
| Phase | Max |
|
|
44
|
-
|-------|-----|
|
|
45
|
-
| Research | 2 |
|
|
46
|
-
| Clarification | 5 |
|
|
47
|
-
|
|
48
|
-
After max rounds: User must validate assumptions explicitly.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Spec Analysis
|
|
53
|
-
|
|
54
|
-
### Auto-Trigger
|
|
55
|
-
|
|
56
|
-
Triggers when:
|
|
57
|
-
- Ambiguity > 40 (vague verbs, missing details)
|
|
58
|
-
- Implementation request ("add", "create", "build", "fix")
|
|
59
|
-
|
|
60
|
-
Does NOT trigger for:
|
|
61
|
-
- Status checks
|
|
62
|
-
- Simple queries
|
|
63
|
-
- Explicit skip (`--skip-spec`)
|
|
64
|
-
|
|
65
|
-
### Modes
|
|
66
|
-
|
|
67
|
-
| Mode | When | Behavior |
|
|
68
|
-
|------|------|----------|
|
|
69
|
-
| Skip | complexity < 30, ambiguity < 20 | Proceed directly |
|
|
70
|
-
| Lightweight | complexity < 30, ambiguity >= 20 | Quick check |
|
|
71
|
-
| Full | complexity >= 30 | Thorough analysis |
|
|
72
|
-
|
|
73
|
-
### Multi-Part Requests
|
|
74
|
-
|
|
75
|
-
1. Split into discrete tasks
|
|
76
|
-
2. Present recommended order
|
|
77
|
-
3. Analyze first task only
|
|
78
|
-
4. Queue remaining tasks
|
|
79
|
-
|
|
80
|
-
### Routing After Spec
|
|
81
|
-
|
|
82
|
-
| Complexity | Route |
|
|
83
|
-
|------------|-------|
|
|
84
|
-
| < 30 points | Direct action |
|
|
85
|
-
| 30-70 points | EnterPlanMode |
|
|
86
|
-
| > 70 points | /ralph-gate |
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
## Research Validation
|
|
91
|
-
|
|
92
|
-
Validates packages, APIs, and libraries for security and quality.
|
|
93
|
-
|
|
94
|
-
### Trigger Points
|
|
95
|
-
|
|
96
|
-
| Trigger | Validated |
|
|
97
|
-
|---------|-----------|
|
|
98
|
-
| `bun add <pkg>` | Package before install |
|
|
99
|
-
| `/validate-deps` | All dependencies |
|
|
100
|
-
| `/ralph-gate` | PRD dependencies |
|
|
101
|
-
| Research output | Package recommendations |
|
|
102
|
-
|
|
103
|
-
### Security Checks
|
|
104
|
-
|
|
105
|
-
| Check | Action |
|
|
106
|
-
|-------|--------|
|
|
107
|
-
| Critical vulnerability | BLOCK |
|
|
108
|
-
| High vulnerability | BLOCK + require override |
|
|
109
|
-
| Deprecated | Warn with alternative |
|
|
110
|
-
| Malicious | BLOCK |
|
|
111
|
-
|
|
112
|
-
### Quality Checks
|
|
113
|
-
|
|
114
|
-
| Check | Threshold | Action |
|
|
115
|
-
|-------|-----------|--------|
|
|
116
|
-
| Size | > 100KB gzipped | Warn |
|
|
117
|
-
| Downloads | < 1000/week | Info |
|
|
118
|
-
| Last update | > 2 years | Warn |
|
|
119
|
-
| No maintainers | - | Block |
|
|
120
|
-
|
|
121
|
-
### Severity Levels
|
|
122
|
-
|
|
123
|
-
| Level | Action |
|
|
124
|
-
|-------|--------|
|
|
125
|
-
| critical | BLOCK |
|
|
126
|
-
| high | BLOCK + override |
|
|
127
|
-
| moderate | WARN |
|
|
128
|
-
| low | Note |
|
|
129
|
-
| info | Note only |
|
|
130
|
-
|
|
131
|
-
### MCP Tools
|
|
132
|
-
|
|
133
|
-
- `dino_validate_package` - Single package
|
|
134
|
-
- `dino_validate` (action: deps) - Batch validation
|
|
135
|
-
- `dino_validate` (action: scan) - Security-only
|
|
136
|
-
|
|
137
|
-
---
|
|
138
|
-
|
|
139
|
-
## Bypassing
|
|
140
|
-
|
|
141
|
-
Not recommended, but available:
|
|
142
|
-
|
|
143
|
-
- `--force` flag
|
|
144
|
-
- Explicit validation after max rounds
|
|
145
|
-
- `DINO_SKIP_VALIDATION=true`
|
|
146
|
-
|
|
147
|
-
All bypasses logged in session.md.
|
|
1
|
+
# Confidence & Validation
|
|
2
|
+
|
|
3
|
+
Consolidated from: confidence-handling, spec-kit, research-validation
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Confidence Gate
|
|
8
|
+
|
|
9
|
+
Implementation BLOCKED until confidence threshold reached.
|
|
10
|
+
|
|
11
|
+
### Thresholds
|
|
12
|
+
|
|
13
|
+
| Task Type | Required | Reason |
|
|
14
|
+
|-----------|----------|--------|
|
|
15
|
+
| Standard | 80% | Typical implementation |
|
|
16
|
+
| Complex (Ralph-eligible) | 90% | Multi-story work |
|
|
17
|
+
|
|
18
|
+
### Confidence Factors
|
|
19
|
+
|
|
20
|
+
| Factor | Impact |
|
|
21
|
+
|--------|--------|
|
|
22
|
+
| Vague verbs | -5% each |
|
|
23
|
+
| Missing target | -5% |
|
|
24
|
+
| Unclear success | -5% |
|
|
25
|
+
| Security-related | -15% |
|
|
26
|
+
| Data-related | -10% |
|
|
27
|
+
| Breaking change | -10% |
|
|
28
|
+
| Package recommendation | -15% |
|
|
29
|
+
| API usage from training | -10% |
|
|
30
|
+
|
|
31
|
+
### Gate Flow
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
Task → Analyze Confidence → [>= threshold?]
|
|
35
|
+
↓ no
|
|
36
|
+
[ambiguity > 40?] → Research
|
|
37
|
+
↓ no
|
|
38
|
+
Clarification → Re-check
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Max Rounds
|
|
42
|
+
|
|
43
|
+
| Phase | Max |
|
|
44
|
+
|-------|-----|
|
|
45
|
+
| Research | 2 |
|
|
46
|
+
| Clarification | 5 |
|
|
47
|
+
|
|
48
|
+
After max rounds: User must validate assumptions explicitly.
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Spec Analysis
|
|
53
|
+
|
|
54
|
+
### Auto-Trigger
|
|
55
|
+
|
|
56
|
+
Triggers when:
|
|
57
|
+
- Ambiguity > 40 (vague verbs, missing details)
|
|
58
|
+
- Implementation request ("add", "create", "build", "fix")
|
|
59
|
+
|
|
60
|
+
Does NOT trigger for:
|
|
61
|
+
- Status checks
|
|
62
|
+
- Simple queries
|
|
63
|
+
- Explicit skip (`--skip-spec`)
|
|
64
|
+
|
|
65
|
+
### Modes
|
|
66
|
+
|
|
67
|
+
| Mode | When | Behavior |
|
|
68
|
+
|------|------|----------|
|
|
69
|
+
| Skip | complexity < 30, ambiguity < 20 | Proceed directly |
|
|
70
|
+
| Lightweight | complexity < 30, ambiguity >= 20 | Quick check |
|
|
71
|
+
| Full | complexity >= 30 | Thorough analysis |
|
|
72
|
+
|
|
73
|
+
### Multi-Part Requests
|
|
74
|
+
|
|
75
|
+
1. Split into discrete tasks
|
|
76
|
+
2. Present recommended order
|
|
77
|
+
3. Analyze first task only
|
|
78
|
+
4. Queue remaining tasks
|
|
79
|
+
|
|
80
|
+
### Routing After Spec
|
|
81
|
+
|
|
82
|
+
| Complexity | Route |
|
|
83
|
+
|------------|-------|
|
|
84
|
+
| < 30 points | Direct action |
|
|
85
|
+
| 30-70 points | EnterPlanMode |
|
|
86
|
+
| > 70 points | /ralph-gate |
|
|
87
|
+
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
## Research Validation
|
|
91
|
+
|
|
92
|
+
Validates packages, APIs, and libraries for security and quality.
|
|
93
|
+
|
|
94
|
+
### Trigger Points
|
|
95
|
+
|
|
96
|
+
| Trigger | Validated |
|
|
97
|
+
|---------|-----------|
|
|
98
|
+
| `bun add <pkg>` | Package before install |
|
|
99
|
+
| `/validate-deps` | All dependencies |
|
|
100
|
+
| `/ralph-gate` | PRD dependencies |
|
|
101
|
+
| Research output | Package recommendations |
|
|
102
|
+
|
|
103
|
+
### Security Checks
|
|
104
|
+
|
|
105
|
+
| Check | Action |
|
|
106
|
+
|-------|--------|
|
|
107
|
+
| Critical vulnerability | BLOCK |
|
|
108
|
+
| High vulnerability | BLOCK + require override |
|
|
109
|
+
| Deprecated | Warn with alternative |
|
|
110
|
+
| Malicious | BLOCK |
|
|
111
|
+
|
|
112
|
+
### Quality Checks
|
|
113
|
+
|
|
114
|
+
| Check | Threshold | Action |
|
|
115
|
+
|-------|-----------|--------|
|
|
116
|
+
| Size | > 100KB gzipped | Warn |
|
|
117
|
+
| Downloads | < 1000/week | Info |
|
|
118
|
+
| Last update | > 2 years | Warn |
|
|
119
|
+
| No maintainers | - | Block |
|
|
120
|
+
|
|
121
|
+
### Severity Levels
|
|
122
|
+
|
|
123
|
+
| Level | Action |
|
|
124
|
+
|-------|--------|
|
|
125
|
+
| critical | BLOCK |
|
|
126
|
+
| high | BLOCK + override |
|
|
127
|
+
| moderate | WARN |
|
|
128
|
+
| low | Note |
|
|
129
|
+
| info | Note only |
|
|
130
|
+
|
|
131
|
+
### MCP Tools
|
|
132
|
+
|
|
133
|
+
- `dino_validate_package` - Single package
|
|
134
|
+
- `dino_validate` (action: deps) - Batch validation
|
|
135
|
+
- `dino_validate` (action: scan) - Security-only
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
## Bypassing
|
|
140
|
+
|
|
141
|
+
Not recommended, but available:
|
|
142
|
+
|
|
143
|
+
- `--force` flag
|
|
144
|
+
- Explicit validation after max rounds
|
|
145
|
+
- `DINO_SKIP_VALIDATION=true`
|
|
146
|
+
|
|
147
|
+
All bypasses logged in session.md.
|
|
@@ -1,112 +1,112 @@
|
|
|
1
|
-
# Testing & Quality
|
|
2
|
-
|
|
3
|
-
Consolidated from: smart-tests, mandatory-review, auto-memory-capture, confidence-gate
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## 80% Confidence Gate
|
|
8
|
-
|
|
9
|
-
**Confidence Gate**: See `.claude/rules/dino/confidence.md` for thresholds, factors, and flow.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Smart Test Optimization
|
|
14
|
-
|
|
15
|
-
Reduce test run times by 60-80% through intelligent scope detection.
|
|
16
|
-
|
|
17
|
-
### Test Scopes
|
|
18
|
-
|
|
19
|
-
| Scope | When | Duration |
|
|
20
|
-
|-------|------|----------|
|
|
21
|
-
| SKIP | No changes since passing | Instant |
|
|
22
|
-
| TARGETED | Single feature changes | Fast |
|
|
23
|
-
| FULL | Cross-cutting changes | Complete |
|
|
24
|
-
|
|
25
|
-
### Decision Tree
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
No changes since passing → SKIP
|
|
29
|
-
Dependency/config changes → FULL
|
|
30
|
-
Shared code (utils/, core/) → FULL
|
|
31
|
-
Single feature changes → TARGETED
|
|
32
|
-
Documentation only → SKIP
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Full Test Triggers
|
|
36
|
-
|
|
37
|
-
- `package.json`, lock files
|
|
38
|
-
- `tsconfig.json`, `vitest.config.ts`
|
|
39
|
-
- Entry points (`index.ts`, `main.ts`)
|
|
40
|
-
- Shared modules (`src/utils/`, `src/core/`, `src/lib/`)
|
|
41
|
-
|
|
42
|
-
### Targeted Patterns
|
|
43
|
-
|
|
44
|
-
| Focus | Pattern |
|
|
45
|
-
|-------|---------|
|
|
46
|
-
| `src/hooks/` | `hooks` |
|
|
47
|
-
| `src/core/ralph/` | `ralph` |
|
|
48
|
-
| `src/commands/*.ts` | `commands` |
|
|
49
|
-
| Multiple features | FULL |
|
|
50
|
-
|
|
51
|
-
### Usage in Skills
|
|
52
|
-
|
|
53
|
-
**`/dino.aging`**: Uses smart test workflow to analyze scope before running tests.
|
|
54
|
-
|
|
55
|
-
**`/dino.release`**: Uses smart test detection to optimize release verification.
|
|
56
|
-
|
|
57
|
-
**`/dino.hunt`**: Uses incremental testing during implementation.
|
|
58
|
-
|
|
59
|
-
### Performance Targets
|
|
60
|
-
|
|
61
|
-
| Scenario | Target Duration |
|
|
62
|
-
|----------|-----------------|
|
|
63
|
-
| SKIP (no changes) | 0s |
|
|
64
|
-
| TARGETED (single feature) | 10-30s |
|
|
65
|
-
| FULL (must run all) | < 3 min |
|
|
66
|
-
|
|
67
|
-
---
|
|
68
|
-
|
|
69
|
-
## Mandatory Review
|
|
70
|
-
|
|
71
|
-
Set `DINO_MANDATORY_REVIEW=true` to enable code review gate. Disabled by default.
|
|
72
|
-
|
|
73
|
-
---
|
|
74
|
-
|
|
75
|
-
## Auto-Memory Capture
|
|
76
|
-
|
|
77
|
-
Preserve learnings after significant work.
|
|
78
|
-
|
|
79
|
-
### When to Capture
|
|
80
|
-
|
|
81
|
-
| Event | Source |
|
|
82
|
-
|-------|--------|
|
|
83
|
-
| /spec completes | Analysis decisions |
|
|
84
|
-
| /hunt task completes | Implementation learnings |
|
|
85
|
-
| Tests pass after fix | What fixed the issue |
|
|
86
|
-
| User confirms decision | Decision text |
|
|
87
|
-
| Ralph iteration | Iteration learnings |
|
|
88
|
-
|
|
89
|
-
### How to Capture
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
dino_memory_auto_capture({
|
|
93
|
-
text: "Summary of decision or learning",
|
|
94
|
-
source: "spec-complete" | "test-fix" | "ralph-iteration",
|
|
95
|
-
focusArea: "src/core/"
|
|
96
|
-
})
|
|
97
|
-
```
|
|
98
|
-
|
|
99
|
-
### Detection Patterns
|
|
100
|
-
|
|
101
|
-
| Type | Keywords |
|
|
102
|
-
|------|----------|
|
|
103
|
-
| Decisions | "decided", "chose", "selected" |
|
|
104
|
-
| Learnings | "didn't work", "failed", "learned" |
|
|
105
|
-
| Patterns | "pattern", "convention", "prefer" |
|
|
106
|
-
|
|
107
|
-
### Skip Capture When
|
|
108
|
-
|
|
109
|
-
- Trivial task (typo fix)
|
|
110
|
-
- No decisions made
|
|
111
|
-
- Only reading/exploring
|
|
112
|
-
- Already captured recently
|
|
1
|
+
# Testing & Quality
|
|
2
|
+
|
|
3
|
+
Consolidated from: smart-tests, mandatory-review, auto-memory-capture, confidence-gate
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 80% Confidence Gate
|
|
8
|
+
|
|
9
|
+
**Confidence Gate**: See `.claude/rules/dino/confidence.md` for thresholds, factors, and flow.
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## Smart Test Optimization
|
|
14
|
+
|
|
15
|
+
Reduce test run times by 60-80% through intelligent scope detection.
|
|
16
|
+
|
|
17
|
+
### Test Scopes
|
|
18
|
+
|
|
19
|
+
| Scope | When | Duration |
|
|
20
|
+
|-------|------|----------|
|
|
21
|
+
| SKIP | No changes since passing | Instant |
|
|
22
|
+
| TARGETED | Single feature changes | Fast |
|
|
23
|
+
| FULL | Cross-cutting changes | Complete |
|
|
24
|
+
|
|
25
|
+
### Decision Tree
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
No changes since passing → SKIP
|
|
29
|
+
Dependency/config changes → FULL
|
|
30
|
+
Shared code (utils/, core/) → FULL
|
|
31
|
+
Single feature changes → TARGETED
|
|
32
|
+
Documentation only → SKIP
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Full Test Triggers
|
|
36
|
+
|
|
37
|
+
- `package.json`, lock files
|
|
38
|
+
- `tsconfig.json`, `vitest.config.ts`
|
|
39
|
+
- Entry points (`index.ts`, `main.ts`)
|
|
40
|
+
- Shared modules (`src/utils/`, `src/core/`, `src/lib/`)
|
|
41
|
+
|
|
42
|
+
### Targeted Patterns
|
|
43
|
+
|
|
44
|
+
| Focus | Pattern |
|
|
45
|
+
|-------|---------|
|
|
46
|
+
| `src/hooks/` | `hooks` |
|
|
47
|
+
| `src/core/ralph/` | `ralph` |
|
|
48
|
+
| `src/commands/*.ts` | `commands` |
|
|
49
|
+
| Multiple features | FULL |
|
|
50
|
+
|
|
51
|
+
### Usage in Skills
|
|
52
|
+
|
|
53
|
+
**`/dino.aging`**: Uses smart test workflow to analyze scope before running tests.
|
|
54
|
+
|
|
55
|
+
**`/dino.release`**: Uses smart test detection to optimize release verification.
|
|
56
|
+
|
|
57
|
+
**`/dino.hunt`**: Uses incremental testing during implementation.
|
|
58
|
+
|
|
59
|
+
### Performance Targets
|
|
60
|
+
|
|
61
|
+
| Scenario | Target Duration |
|
|
62
|
+
|----------|-----------------|
|
|
63
|
+
| SKIP (no changes) | 0s |
|
|
64
|
+
| TARGETED (single feature) | 10-30s |
|
|
65
|
+
| FULL (must run all) | < 3 min |
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Mandatory Review
|
|
70
|
+
|
|
71
|
+
Set `DINO_MANDATORY_REVIEW=true` to enable code review gate. Disabled by default.
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## Auto-Memory Capture
|
|
76
|
+
|
|
77
|
+
Preserve learnings after significant work.
|
|
78
|
+
|
|
79
|
+
### When to Capture
|
|
80
|
+
|
|
81
|
+
| Event | Source |
|
|
82
|
+
|-------|--------|
|
|
83
|
+
| /spec completes | Analysis decisions |
|
|
84
|
+
| /hunt task completes | Implementation learnings |
|
|
85
|
+
| Tests pass after fix | What fixed the issue |
|
|
86
|
+
| User confirms decision | Decision text |
|
|
87
|
+
| Ralph iteration | Iteration learnings |
|
|
88
|
+
|
|
89
|
+
### How to Capture
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
dino_memory_auto_capture({
|
|
93
|
+
text: "Summary of decision or learning",
|
|
94
|
+
source: "spec-complete" | "test-fix" | "ralph-iteration",
|
|
95
|
+
focusArea: "src/core/"
|
|
96
|
+
})
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Detection Patterns
|
|
100
|
+
|
|
101
|
+
| Type | Keywords |
|
|
102
|
+
|------|----------|
|
|
103
|
+
| Decisions | "decided", "chose", "selected" |
|
|
104
|
+
| Learnings | "didn't work", "failed", "learned" |
|
|
105
|
+
| Patterns | "pattern", "convention", "prefer" |
|
|
106
|
+
|
|
107
|
+
### Skip Capture When
|
|
108
|
+
|
|
109
|
+
- Trivial task (typo fix)
|
|
110
|
+
- No decisions made
|
|
111
|
+
- Only reading/exploring
|
|
112
|
+
- Already captured recently
|