sdtk-code-kit 0.1.3 → 0.2.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 +202 -185
- package/assets/manifest/toolkit-bundle.manifest.json +49 -49
- package/assets/manifest/toolkit-bundle.sha256.txt +24 -24
- package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +78 -78
- package/assets/toolkit/toolkit/scripts/install-codex-skills.ps1 +150 -150
- package/assets/toolkit/toolkit/scripts/uninstall-claude-skills.ps1 +62 -62
- package/assets/toolkit/toolkit/scripts/uninstall-codex-skills.ps1 +82 -82
- package/assets/toolkit/toolkit/sdtk-spec.config.profiles.example.json +12 -12
- package/assets/toolkit/toolkit/skills/code-brainstorm/SKILL.md +55 -55
- package/assets/toolkit/toolkit/skills/code-debug/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/code-debug/references/root-cause-tracing.md +68 -68
- package/assets/toolkit/toolkit/skills/code-execute/SKILL.md +74 -74
- package/assets/toolkit/toolkit/skills/code-finish/SKILL.md +205 -205
- package/assets/toolkit/toolkit/skills/code-parallel/SKILL.md +64 -64
- package/assets/toolkit/toolkit/skills/code-parallel/references/code-quality-reviewer-prompt.md +26 -26
- package/assets/toolkit/toolkit/skills/code-parallel/references/implementer-prompt.md +113 -113
- package/assets/toolkit/toolkit/skills/code-parallel/references/spec-reviewer-prompt.md +61 -61
- package/assets/toolkit/toolkit/skills/code-plan/SKILL.md +85 -85
- package/assets/toolkit/toolkit/skills/code-review/SKILL.md +79 -79
- package/assets/toolkit/toolkit/skills/code-review/references/checklist.md +125 -125
- package/assets/toolkit/toolkit/skills/code-review/references/code-reviewer.md +146 -146
- package/assets/toolkit/toolkit/skills/code-ship/SKILL.md +52 -52
- package/assets/toolkit/toolkit/skills/code-tdd/SKILL.md +1 -1
- package/assets/toolkit/toolkit/skills/code-tdd/references/testing-anti-patterns.md +299 -299
- package/assets/toolkit/toolkit/skills/code-verify/SKILL.md +144 -144
- package/assets/toolkit/toolkit/skills/code-worktree/SKILL.md +13 -13
- package/assets/toolkit/toolkit/templates/CODE_WORKFLOW_TEMPLATE.md +140 -112
- package/bin/sdtk-code.js +14 -14
- package/package.json +4 -4
- package/src/commands/build.js +53 -53
- package/src/commands/doctor.js +52 -0
- package/src/commands/generate.js +11 -11
- package/src/commands/guardrails.js +123 -0
- package/src/commands/help.js +28 -4
- package/src/commands/plan.js +53 -53
- package/src/commands/readiness.js +77 -0
- package/src/commands/resume.js +62 -0
- package/src/commands/runtime.js +224 -224
- package/src/commands/ship.js +59 -59
- package/src/commands/start.js +89 -89
- package/src/commands/status.js +78 -0
- package/src/commands/verify.js +71 -66
- package/src/index.js +32 -1
- package/src/lib/args.js +107 -107
- package/src/lib/errors.js +41 -41
- package/src/lib/powershell.js +65 -65
- package/src/lib/scope.js +72 -72
- package/src/lib/ship-readiness.js +281 -0
- package/src/lib/toolkit-payload.js +72 -72
- package/src/lib/trust-events.js +166 -0
- package/src/lib/trust-file-scope.js +154 -0
- package/src/lib/trust-policy.js +212 -0
- package/src/lib/trust-redact.js +35 -0
- package/src/lib/trust-trace.js +179 -0
- package/src/lib/workflow-artifact.js +503 -496
- package/src/lib/workflow-build.js +127 -127
- package/src/lib/workflow-doctor.js +84 -0
- package/src/lib/workflow-handoff.js +1029 -937
- package/src/lib/workflow-intake.js +101 -101
- package/src/lib/workflow-plan.js +193 -193
- package/src/lib/workflow-review-packet.js +89 -0
- package/src/lib/workflow-ship.js +213 -213
- package/src/lib/workflow-state.js +439 -0
- package/src/lib/workflow-verify.js +43 -6
|
@@ -1,144 +1,144 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: code-verify
|
|
3
|
-
description: Verification before completion. Use before claiming any work is done -- run verification commands and confirm output, evidence before assertions.
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
# Code Verify
|
|
7
|
-
|
|
8
|
-
## Critical Constraints
|
|
9
|
-
- I do not claim code is done, passing, or ready without fresh command evidence.
|
|
10
|
-
- I do not substitute "should work" language for executed verification output.
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
## Overview
|
|
14
|
-
|
|
15
|
-
Claiming work is complete without verification is dishonesty, not efficiency.
|
|
16
|
-
|
|
17
|
-
**Core principle:** Evidence before claims, always.
|
|
18
|
-
|
|
19
|
-
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
20
|
-
|
|
21
|
-
## The Iron Law
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
25
|
-
```
|
|
26
|
-
|
|
27
|
-
If you haven't run the verification command in this message, you cannot claim it passes.
|
|
28
|
-
|
|
29
|
-
## Process
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
BEFORE claiming any status or expressing satisfaction:
|
|
33
|
-
|
|
34
|
-
1. IDENTIFY: What command proves this claim?
|
|
35
|
-
2. RUN: Execute the FULL command (fresh, complete)
|
|
36
|
-
3. READ: Full output, check exit code, count failures
|
|
37
|
-
4. VERIFY: Does output confirm the claim?
|
|
38
|
-
- If NO: State actual status with evidence
|
|
39
|
-
- If YES: State claim WITH evidence
|
|
40
|
-
5. ONLY THEN: Make the claim
|
|
41
|
-
|
|
42
|
-
Skip any step = lying, not verifying
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
## Common Failures
|
|
46
|
-
|
|
47
|
-
| Claim | Requires | Not Sufficient |
|
|
48
|
-
|-------|----------|----------------|
|
|
49
|
-
| Tests pass | Test command output: 0 failures | Previous run, "should pass" |
|
|
50
|
-
| Linter clean | Linter output: 0 errors | Partial check, extrapolation |
|
|
51
|
-
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
|
|
52
|
-
| Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
|
|
53
|
-
| Regression test works | Red-green cycle verified | Test passes once |
|
|
54
|
-
| Agent completed | VCS diff shows changes | Agent reports "success" |
|
|
55
|
-
| Requirements met | Line-by-line checklist | Tests passing |
|
|
56
|
-
|
|
57
|
-
## Red Flags - STOP
|
|
58
|
-
|
|
59
|
-
- Using "should", "probably", "seems to"
|
|
60
|
-
- Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
|
|
61
|
-
- About to commit/push/PR without verification
|
|
62
|
-
- Trusting agent success reports
|
|
63
|
-
- Relying on partial verification
|
|
64
|
-
- Thinking "just this once"
|
|
65
|
-
- Tired and wanting work over
|
|
66
|
-
- **ANY wording implying success without having run verification**
|
|
67
|
-
|
|
68
|
-
## Rationalization Prevention
|
|
69
|
-
|
|
70
|
-
| Excuse | Reality |
|
|
71
|
-
|--------|---------|
|
|
72
|
-
| "Should work now" | RUN the verification |
|
|
73
|
-
| "I'm confident" | Confidence evidence |
|
|
74
|
-
| "Just this once" | No exceptions |
|
|
75
|
-
| "Linter passed" | Linter compiler |
|
|
76
|
-
| "Agent said success" | Verify independently |
|
|
77
|
-
| "I'm tired" | Exhaustion excuse |
|
|
78
|
-
| "Partial check is enough" | Partial proves nothing |
|
|
79
|
-
| "Different words so rule doesn't apply" | Spirit over letter |
|
|
80
|
-
|
|
81
|
-
## Key Patterns
|
|
82
|
-
|
|
83
|
-
**Tests:**
|
|
84
|
-
```
|
|
85
|
-
[Run test command] [See: 34/34 pass] "All tests pass"
|
|
86
|
-
"Should pass now" / "Looks correct"
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
**Regression tests (TDD Red-Green):**
|
|
90
|
-
```
|
|
91
|
-
Write -> Run (pass) -> Revert fix -> Run (MUST FAIL) -> Restore -> Run (pass)
|
|
92
|
-
"I've written a regression test" (without red-green verification)
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Build:**
|
|
96
|
-
```
|
|
97
|
-
[Run build] [See: exit 0] "Build passes"
|
|
98
|
-
"Linter passed" (linter doesn't check compilation)
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
**Requirements:**
|
|
102
|
-
```
|
|
103
|
-
Re-read plan -> Create checklist -> Verify each -> Report gaps or completion
|
|
104
|
-
"Tests pass, phase complete"
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
**Agent delegation:**
|
|
108
|
-
```
|
|
109
|
-
Agent reports success -> Check VCS diff -> Verify changes -> Report actual state
|
|
110
|
-
Trust agent report
|
|
111
|
-
```
|
|
112
|
-
|
|
113
|
-
## Why This Matters
|
|
114
|
-
|
|
115
|
-
From 24 failure memories:
|
|
116
|
-
- the user said "I don't believe you" - trust broken
|
|
117
|
-
- Undefined functions shipped - would crash
|
|
118
|
-
- Missing requirements shipped - incomplete features
|
|
119
|
-
- Time wasted on false completion -> redirect -> rework
|
|
120
|
-
- Violates: "Honesty is a core value. If you lie, you'll be replaced."
|
|
121
|
-
|
|
122
|
-
## When To Apply
|
|
123
|
-
|
|
124
|
-
**ALWAYS before:**
|
|
125
|
-
- ANY variation of success/completion claims
|
|
126
|
-
- ANY expression of satisfaction
|
|
127
|
-
- ANY positive statement about work state
|
|
128
|
-
- Committing, PR creation, task completion
|
|
129
|
-
- Moving to next task
|
|
130
|
-
- Delegating to agents
|
|
131
|
-
|
|
132
|
-
**Rule applies to:**
|
|
133
|
-
- Exact phrases
|
|
134
|
-
- Paraphrases and synonyms
|
|
135
|
-
- Implications of success
|
|
136
|
-
- ANY communication suggesting completion/correctness
|
|
137
|
-
|
|
138
|
-
## The Bottom Line
|
|
139
|
-
|
|
140
|
-
**No shortcuts for verification.**
|
|
141
|
-
|
|
142
|
-
Run the command. Read the output. THEN claim the result.
|
|
143
|
-
|
|
144
|
-
This is non-negotiable.
|
|
1
|
+
---
|
|
2
|
+
name: code-verify
|
|
3
|
+
description: Verification before completion. Use before claiming any work is done -- run verification commands and confirm output, evidence before assertions.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Code Verify
|
|
7
|
+
|
|
8
|
+
## Critical Constraints
|
|
9
|
+
- I do not claim code is done, passing, or ready without fresh command evidence.
|
|
10
|
+
- I do not substitute "should work" language for executed verification output.
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
## Overview
|
|
14
|
+
|
|
15
|
+
Claiming work is complete without verification is dishonesty, not efficiency.
|
|
16
|
+
|
|
17
|
+
**Core principle:** Evidence before claims, always.
|
|
18
|
+
|
|
19
|
+
**Violating the letter of this rule is violating the spirit of this rule.**
|
|
20
|
+
|
|
21
|
+
## The Iron Law
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
NO COMPLETION CLAIMS WITHOUT FRESH VERIFICATION EVIDENCE
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
If you haven't run the verification command in this message, you cannot claim it passes.
|
|
28
|
+
|
|
29
|
+
## Process
|
|
30
|
+
|
|
31
|
+
```
|
|
32
|
+
BEFORE claiming any status or expressing satisfaction:
|
|
33
|
+
|
|
34
|
+
1. IDENTIFY: What command proves this claim?
|
|
35
|
+
2. RUN: Execute the FULL command (fresh, complete)
|
|
36
|
+
3. READ: Full output, check exit code, count failures
|
|
37
|
+
4. VERIFY: Does output confirm the claim?
|
|
38
|
+
- If NO: State actual status with evidence
|
|
39
|
+
- If YES: State claim WITH evidence
|
|
40
|
+
5. ONLY THEN: Make the claim
|
|
41
|
+
|
|
42
|
+
Skip any step = lying, not verifying
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Common Failures
|
|
46
|
+
|
|
47
|
+
| Claim | Requires | Not Sufficient |
|
|
48
|
+
|-------|----------|----------------|
|
|
49
|
+
| Tests pass | Test command output: 0 failures | Previous run, "should pass" |
|
|
50
|
+
| Linter clean | Linter output: 0 errors | Partial check, extrapolation |
|
|
51
|
+
| Build succeeds | Build command: exit 0 | Linter passing, logs look good |
|
|
52
|
+
| Bug fixed | Test original symptom: passes | Code changed, assumed fixed |
|
|
53
|
+
| Regression test works | Red-green cycle verified | Test passes once |
|
|
54
|
+
| Agent completed | VCS diff shows changes | Agent reports "success" |
|
|
55
|
+
| Requirements met | Line-by-line checklist | Tests passing |
|
|
56
|
+
|
|
57
|
+
## Red Flags - STOP
|
|
58
|
+
|
|
59
|
+
- Using "should", "probably", "seems to"
|
|
60
|
+
- Expressing satisfaction before verification ("Great!", "Perfect!", "Done!", etc.)
|
|
61
|
+
- About to commit/push/PR without verification
|
|
62
|
+
- Trusting agent success reports
|
|
63
|
+
- Relying on partial verification
|
|
64
|
+
- Thinking "just this once"
|
|
65
|
+
- Tired and wanting work over
|
|
66
|
+
- **ANY wording implying success without having run verification**
|
|
67
|
+
|
|
68
|
+
## Rationalization Prevention
|
|
69
|
+
|
|
70
|
+
| Excuse | Reality |
|
|
71
|
+
|--------|---------|
|
|
72
|
+
| "Should work now" | RUN the verification |
|
|
73
|
+
| "I'm confident" | Confidence evidence |
|
|
74
|
+
| "Just this once" | No exceptions |
|
|
75
|
+
| "Linter passed" | Linter compiler |
|
|
76
|
+
| "Agent said success" | Verify independently |
|
|
77
|
+
| "I'm tired" | Exhaustion excuse |
|
|
78
|
+
| "Partial check is enough" | Partial proves nothing |
|
|
79
|
+
| "Different words so rule doesn't apply" | Spirit over letter |
|
|
80
|
+
|
|
81
|
+
## Key Patterns
|
|
82
|
+
|
|
83
|
+
**Tests:**
|
|
84
|
+
```
|
|
85
|
+
[Run test command] [See: 34/34 pass] "All tests pass"
|
|
86
|
+
"Should pass now" / "Looks correct"
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**Regression tests (TDD Red-Green):**
|
|
90
|
+
```
|
|
91
|
+
Write -> Run (pass) -> Revert fix -> Run (MUST FAIL) -> Restore -> Run (pass)
|
|
92
|
+
"I've written a regression test" (without red-green verification)
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
**Build:**
|
|
96
|
+
```
|
|
97
|
+
[Run build] [See: exit 0] "Build passes"
|
|
98
|
+
"Linter passed" (linter doesn't check compilation)
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
**Requirements:**
|
|
102
|
+
```
|
|
103
|
+
Re-read plan -> Create checklist -> Verify each -> Report gaps or completion
|
|
104
|
+
"Tests pass, phase complete"
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
**Agent delegation:**
|
|
108
|
+
```
|
|
109
|
+
Agent reports success -> Check VCS diff -> Verify changes -> Report actual state
|
|
110
|
+
Trust agent report
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
## Why This Matters
|
|
114
|
+
|
|
115
|
+
From 24 failure memories:
|
|
116
|
+
- the user said "I don't believe you" - trust broken
|
|
117
|
+
- Undefined functions shipped - would crash
|
|
118
|
+
- Missing requirements shipped - incomplete features
|
|
119
|
+
- Time wasted on false completion -> redirect -> rework
|
|
120
|
+
- Violates: "Honesty is a core value. If you lie, you'll be replaced."
|
|
121
|
+
|
|
122
|
+
## When To Apply
|
|
123
|
+
|
|
124
|
+
**ALWAYS before:**
|
|
125
|
+
- ANY variation of success/completion claims
|
|
126
|
+
- ANY expression of satisfaction
|
|
127
|
+
- ANY positive statement about work state
|
|
128
|
+
- Committing, PR creation, task completion
|
|
129
|
+
- Moving to next task
|
|
130
|
+
- Delegating to agents
|
|
131
|
+
|
|
132
|
+
**Rule applies to:**
|
|
133
|
+
- Exact phrases
|
|
134
|
+
- Paraphrases and synonyms
|
|
135
|
+
- Implications of success
|
|
136
|
+
- ANY communication suggesting completion/correctness
|
|
137
|
+
|
|
138
|
+
## The Bottom Line
|
|
139
|
+
|
|
140
|
+
**No shortcuts for verification.**
|
|
141
|
+
|
|
142
|
+
Run the command. Read the output. THEN claim the result.
|
|
143
|
+
|
|
144
|
+
This is non-negotiable.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
---
|
|
1
|
+
---
|
|
2
2
|
name: code-worktree
|
|
3
3
|
description: Git worktrees for feature isolation. Use when starting feature work that needs isolation -- creates isolated worktrees with safety verification.
|
|
4
4
|
---
|
|
@@ -37,17 +37,17 @@ ls -d worktrees 2>/dev/null # Alternative
|
|
|
37
37
|
|
|
38
38
|
**If found:** Use that directory. If both exist, `.worktrees` wins.
|
|
39
39
|
|
|
40
|
-
### 2. Check Repository Guidance
|
|
41
|
-
|
|
42
|
-
```bash
|
|
43
|
-
rg -n -i "worktree|worktrees|\\.worktrees" AGENTS.md 2>/dev/null
|
|
44
|
-
```
|
|
40
|
+
### 2. Check Repository Guidance
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
rg -n -i "worktree|worktrees|\\.worktrees" AGENTS.md 2>/dev/null
|
|
44
|
+
```
|
|
45
45
|
|
|
46
46
|
**If preference specified:** Use it without asking.
|
|
47
47
|
|
|
48
48
|
### 3. Ask User
|
|
49
49
|
|
|
50
|
-
If no directory exists and no repository guidance preference:
|
|
50
|
+
If no directory exists and no repository guidance preference:
|
|
51
51
|
|
|
52
52
|
```
|
|
53
53
|
No worktree directory found. Where should I create worktrees?
|
|
@@ -71,7 +71,7 @@ git check-ignore -q .worktrees 2>/dev/null || git check-ignore -q worktrees 2>/d
|
|
|
71
71
|
|
|
72
72
|
**If NOT ignored:**
|
|
73
73
|
|
|
74
|
-
Per SDTK repository hygiene:
|
|
74
|
+
Per SDTK repository hygiene:
|
|
75
75
|
1. Add appropriate line to .gitignore
|
|
76
76
|
2. Commit the change
|
|
77
77
|
3. Proceed with worktree creation
|
|
@@ -158,7 +158,7 @@ Ready to implement <feature-name>
|
|
|
158
158
|
| `.worktrees/` exists | Use it (verify ignored) |
|
|
159
159
|
| `worktrees/` exists | Use it (verify ignored) |
|
|
160
160
|
| Both exist | Use `.worktrees/` |
|
|
161
|
-
| Neither exists | Check AGENTS.md -> Ask user |
|
|
161
|
+
| Neither exists | Check AGENTS.md -> Ask user |
|
|
162
162
|
| Directory not ignored | Add to .gitignore + commit |
|
|
163
163
|
| Tests fail during baseline | Report failures + ask |
|
|
164
164
|
| No package.json/Cargo.toml | Skip dependency install |
|
|
@@ -173,7 +173,7 @@ Ready to implement <feature-name>
|
|
|
173
173
|
### Assuming directory location
|
|
174
174
|
|
|
175
175
|
- **Problem:** Creates inconsistency, violates project conventions
|
|
176
|
-
- **Fix:** Follow priority: existing > AGENTS.md > ask
|
|
176
|
+
- **Fix:** Follow priority: existing > AGENTS.md > ask
|
|
177
177
|
|
|
178
178
|
### Proceeding with failing tests
|
|
179
179
|
|
|
@@ -196,7 +196,7 @@ You: I'm using the code-worktree skill to set up an isolated workspace.
|
|
|
196
196
|
[Run npm install]
|
|
197
197
|
[Run npm test - 47 passing]
|
|
198
198
|
|
|
199
|
-
Worktree ready at /Users/example/myproject/.worktrees/auth
|
|
199
|
+
Worktree ready at /Users/example/myproject/.worktrees/auth
|
|
200
200
|
Tests passing (47 tests, 0 failures)
|
|
201
201
|
Ready to implement auth feature
|
|
202
202
|
```
|
|
@@ -208,10 +208,10 @@ Ready to implement auth feature
|
|
|
208
208
|
- Skip baseline test verification
|
|
209
209
|
- Proceed with failing tests without asking
|
|
210
210
|
- Assume directory location when ambiguous
|
|
211
|
-
- Skip repository guidance check
|
|
211
|
+
- Skip repository guidance check
|
|
212
212
|
|
|
213
213
|
**Always:**
|
|
214
|
-
- Follow directory priority: existing > AGENTS.md > ask
|
|
214
|
+
- Follow directory priority: existing > AGENTS.md > ask
|
|
215
215
|
- Verify directory is ignored for project-local
|
|
216
216
|
- Auto-detect and run project setup
|
|
217
217
|
- Verify clean test baseline
|
|
@@ -1,112 +1,140 @@
|
|
|
1
|
-
# CODE_WORKFLOW __FEATURE_KEY__
|
|
2
|
-
|
|
3
|
-
<!-- SDTK-CODE:METADATA:START -->
|
|
4
|
-
## 1. Metadata
|
|
5
|
-
- Feature key: `__FEATURE_KEY__`
|
|
6
|
-
- Lane: `__LANE__`
|
|
7
|
-
- Current phase: `start`
|
|
8
|
-
- Phase status: `__PHASE_STATUS__`
|
|
9
|
-
- Intake outcome: `__INTAKE_OUTCOME__`
|
|
10
|
-
- Last updated: `__LAST_UPDATED__`
|
|
11
|
-
<!-- SDTK-CODE:METADATA:END -->
|
|
12
|
-
|
|
13
|
-
<!-- SDTK-CODE:INPUTS:START -->
|
|
14
|
-
## 2. Inputs
|
|
15
|
-
### Required Inputs
|
|
16
|
-
__REQUIRED_INPUTS__
|
|
17
|
-
|
|
18
|
-
### Additional Discovered Inputs
|
|
19
|
-
__ADDITIONAL_INPUTS__
|
|
20
|
-
|
|
21
|
-
### Missing Required Inputs
|
|
22
|
-
__MISSING_INPUTS__
|
|
23
|
-
<!-- SDTK-CODE:INPUTS:END -->
|
|
24
|
-
|
|
25
|
-
<!-- SDTK-CODE:PLAN:START -->
|
|
26
|
-
## 3. Scope Lock
|
|
27
|
-
### In Scope
|
|
28
|
-
- Pending confirmation during workflow planning.
|
|
29
|
-
|
|
30
|
-
### Out Of Scope
|
|
31
|
-
- Pending confirmation during workflow planning.
|
|
32
|
-
|
|
33
|
-
### Assumptions
|
|
34
|
-
- No explicit planning assumptions recorded.
|
|
35
|
-
|
|
36
|
-
### Risks
|
|
37
|
-
- No explicit planning risks recorded.
|
|
38
|
-
|
|
39
|
-
## 4. Plan / Slices
|
|
40
|
-
- Pending lane-specific planning or build guidance.
|
|
41
|
-
|
|
42
|
-
### Planning Notes
|
|
43
|
-
- No additional planning notes recorded.
|
|
44
|
-
<!-- SDTK-CODE:PLAN:END -->
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
###
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
###
|
|
86
|
-
- No
|
|
87
|
-
|
|
88
|
-
###
|
|
89
|
-
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
-
|
|
112
|
-
|
|
1
|
+
# CODE_WORKFLOW __FEATURE_KEY__
|
|
2
|
+
|
|
3
|
+
<!-- SDTK-CODE:METADATA:START -->
|
|
4
|
+
## 1. Metadata
|
|
5
|
+
- Feature key: `__FEATURE_KEY__`
|
|
6
|
+
- Lane: `__LANE__`
|
|
7
|
+
- Current phase: `start`
|
|
8
|
+
- Phase status: `__PHASE_STATUS__`
|
|
9
|
+
- Intake outcome: `__INTAKE_OUTCOME__`
|
|
10
|
+
- Last updated: `__LAST_UPDATED__`
|
|
11
|
+
<!-- SDTK-CODE:METADATA:END -->
|
|
12
|
+
|
|
13
|
+
<!-- SDTK-CODE:INPUTS:START -->
|
|
14
|
+
## 2. Inputs
|
|
15
|
+
### Required Inputs
|
|
16
|
+
__REQUIRED_INPUTS__
|
|
17
|
+
|
|
18
|
+
### Additional Discovered Inputs
|
|
19
|
+
__ADDITIONAL_INPUTS__
|
|
20
|
+
|
|
21
|
+
### Missing Required Inputs
|
|
22
|
+
__MISSING_INPUTS__
|
|
23
|
+
<!-- SDTK-CODE:INPUTS:END -->
|
|
24
|
+
|
|
25
|
+
<!-- SDTK-CODE:PLAN:START -->
|
|
26
|
+
## 3. Scope Lock
|
|
27
|
+
### In Scope
|
|
28
|
+
- Pending confirmation during workflow planning.
|
|
29
|
+
|
|
30
|
+
### Out Of Scope
|
|
31
|
+
- Pending confirmation during workflow planning.
|
|
32
|
+
|
|
33
|
+
### Assumptions
|
|
34
|
+
- No explicit planning assumptions recorded.
|
|
35
|
+
|
|
36
|
+
### Risks
|
|
37
|
+
- No explicit planning risks recorded.
|
|
38
|
+
|
|
39
|
+
## 4. Plan / Slices
|
|
40
|
+
- Pending lane-specific planning or build guidance.
|
|
41
|
+
|
|
42
|
+
### Planning Notes
|
|
43
|
+
- No additional planning notes recorded.
|
|
44
|
+
<!-- SDTK-CODE:PLAN:END -->
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
## Provenance
|
|
48
|
+
|
|
49
|
+
When external references are consulted for this workflow batch, include the full provenance log below:
|
|
50
|
+
|
|
51
|
+
### Source References Consulted
|
|
52
|
+
| # | Source | URL or Path | Consulted Date | Purpose |
|
|
53
|
+
|---|---|---|---|---|
|
|
54
|
+
| 1 | <reference name> | <url or relative path> | <YYYY-MM-DD> | <why consulted> |
|
|
55
|
+
|
|
56
|
+
### Behavioral Ideas Extracted
|
|
57
|
+
| # | Source Ref | Behavioral Idea Extracted | SDTK-Native Contract Written | High-Risk Material? |
|
|
58
|
+
|---|---|---|---|---|
|
|
59
|
+
| 1 | <ref #> | <plain description of idea> | <yes/no + what was written> | <yes/no> |
|
|
60
|
+
|
|
61
|
+
### High-Risk Surfaces Reviewed
|
|
62
|
+
| # | Source Ref | Material Reviewed | Decision | Reason |
|
|
63
|
+
|---|---|---|---|---|
|
|
64
|
+
| 1 | <ref #> | <what was reviewed> | REJECTED / REDESIGNED | <reason> |
|
|
65
|
+
|
|
66
|
+
### Controller Provenance Sign-Off
|
|
67
|
+
- Reviewed by: <controller name or alias>
|
|
68
|
+
- Date: <YYYY-MM-DD>
|
|
69
|
+
- Decision: APPROVED / NEEDS REVISION
|
|
70
|
+
- Notes: <any additional controller notes>
|
|
71
|
+
|
|
72
|
+
If no external material was consulted, keep this section and record only the no-reference declaration:
|
|
73
|
+
- No external source references were consulted for this batch.
|
|
74
|
+
<!-- SDTK-CODE:BUILD:START -->
|
|
75
|
+
### Build Progress
|
|
76
|
+
- Build status: `pending`
|
|
77
|
+
- Execution mode: `sequential`
|
|
78
|
+
|
|
79
|
+
### Active Slices
|
|
80
|
+
- Pending build-phase execution.
|
|
81
|
+
|
|
82
|
+
### Build Notes
|
|
83
|
+
- No build notes recorded yet.
|
|
84
|
+
|
|
85
|
+
### Debug Notes
|
|
86
|
+
- No debug notes recorded.
|
|
87
|
+
|
|
88
|
+
### Parallelization Justification
|
|
89
|
+
- Not using explicit parallel execution in this build pass.
|
|
90
|
+
<!-- SDTK-CODE:BUILD:END -->
|
|
91
|
+
|
|
92
|
+
<!-- SDTK-CODE:STATUS:START -->
|
|
93
|
+
## 5. Status Checklist
|
|
94
|
+
- Current phase: `start`
|
|
95
|
+
- Next recommended phase: `__NEXT_PHASE__`
|
|
96
|
+
- Suggested engine entrypoints: __SUGGESTED_ENGINE__
|
|
97
|
+
- Blocking state: `__BLOCKING_STATE__`
|
|
98
|
+
<!-- SDTK-CODE:STATUS:END -->
|
|
99
|
+
|
|
100
|
+
<!-- SDTK-CODE:VERIFY:START -->
|
|
101
|
+
## 6. Evidence And Review Notes
|
|
102
|
+
### Evidence Summary
|
|
103
|
+
- No summarized verification evidence recorded yet.
|
|
104
|
+
|
|
105
|
+
### Raw Output References
|
|
106
|
+
- Store raw command output under `docs/dev/evidence/__FEATURE_KEY__/` and reference it from this section.
|
|
107
|
+
|
|
108
|
+
### Review Gate Status
|
|
109
|
+
- Evidence gate: `pending`
|
|
110
|
+
- Spec/compliance gate: `pending`
|
|
111
|
+
- Quality gate: `pending`
|
|
112
|
+
|
|
113
|
+
### Spec / Compliance Notes
|
|
114
|
+
- No spec/compliance notes recorded yet.
|
|
115
|
+
|
|
116
|
+
### Quality Notes
|
|
117
|
+
- No quality review notes recorded yet.
|
|
118
|
+
|
|
119
|
+
### Debug Follow-Up
|
|
120
|
+
- No reactive debug follow-up recorded.
|
|
121
|
+
<!-- SDTK-CODE:VERIFY:END -->
|
|
122
|
+
|
|
123
|
+
<!-- SDTK-CODE:SHIP:START -->
|
|
124
|
+
## 7. Ship / Finish Decision
|
|
125
|
+
### Final Decision
|
|
126
|
+
- Decision: `pending`
|
|
127
|
+
- Ship status: `pending`
|
|
128
|
+
|
|
129
|
+
### Preflight Summary
|
|
130
|
+
- No ship preflight entries recorded yet.
|
|
131
|
+
|
|
132
|
+
### Follow-Up Items
|
|
133
|
+
- No follow-up items recorded.
|
|
134
|
+
|
|
135
|
+
### Ship Notes
|
|
136
|
+
- No additional ship notes recorded.
|
|
137
|
+
|
|
138
|
+
### Debug Follow-Up
|
|
139
|
+
- No reactive debug follow-up recorded.
|
|
140
|
+
<!-- SDTK-CODE:SHIP:END -->
|
package/bin/sdtk-code.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
"use strict";
|
|
4
|
-
|
|
5
|
-
const { run } = require("../src/index");
|
|
6
|
-
|
|
7
|
-
run(process.argv.slice(2))
|
|
8
|
-
.then((exitCode) => {
|
|
9
|
-
process.exitCode = Number.isInteger(exitCode) ? exitCode : 0;
|
|
10
|
-
})
|
|
11
|
-
.catch((error) => {
|
|
12
|
-
console.error(`sdtk-code: ${error.message}`);
|
|
13
|
-
process.exitCode = typeof error.exitCode === "number" ? error.exitCode : 4;
|
|
14
|
-
});
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
|
|
5
|
+
const { run } = require("../src/index");
|
|
6
|
+
|
|
7
|
+
run(process.argv.slice(2))
|
|
8
|
+
.then((exitCode) => {
|
|
9
|
+
process.exitCode = Number.isInteger(exitCode) ? exitCode : 0;
|
|
10
|
+
})
|
|
11
|
+
.catch((error) => {
|
|
12
|
+
console.error(`sdtk-code: ${error.message}`);
|
|
13
|
+
process.exitCode = typeof error.exitCode === "number" ? error.exitCode : 4;
|
|
14
|
+
});
|