sdtk-spec-kit 0.3.12 → 0.3.14

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.
Files changed (30) hide show
  1. package/assets/manifest/toolkit-bundle.manifest.json +82 -37
  2. package/assets/manifest/toolkit-bundle.sha256.txt +27 -18
  3. package/assets/toolkit/toolkit/AGENTS.md +1 -1
  4. package/assets/toolkit/toolkit/README.md +4 -3
  5. package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +9 -3
  6. package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +111 -0
  7. package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +103 -0
  8. package/assets/toolkit/toolkit/scripts/agents/validate-mailbox-formal-artifact.py +87 -0
  9. package/assets/toolkit/toolkit/scripts/generate-code-handoff.ps1 +317 -246
  10. package/assets/toolkit/toolkit/scripts/install-claude-skills.ps1 +1 -1
  11. package/assets/toolkit/toolkit/skills/sdtk-api-design-spec/scripts/generate_api_design_detail.py +1 -1
  12. package/assets/toolkit/toolkit/skills/sdtk-ba/SKILL.md +17 -0
  13. package/assets/toolkit/toolkit/skills/sdtk-dev/SKILL.md +29 -4
  14. package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +71 -0
  15. package/assets/toolkit/toolkit/skills/sdtk-orchestrator/SKILL.md +8 -0
  16. package/assets/toolkit/toolkit/skills/sdtk-pm/SKILL.md +37 -0
  17. package/assets/toolkit/toolkit/skills/skills.catalog.yaml +25 -0
  18. package/assets/toolkit/toolkit/skills-claude/ba/SKILL.md +17 -0
  19. package/assets/toolkit/toolkit/skills-claude/dev/SKILL.md +59 -57
  20. package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +71 -0
  21. package/assets/toolkit/toolkit/skills-claude/orchestrator/SKILL.md +7 -0
  22. package/assets/toolkit/toolkit/skills-claude/pm/SKILL.md +38 -2
  23. package/assets/toolkit/toolkit/templates/docs/dev/FEATURE_IMPL_PLAN_TEMPLATE.md +13 -2
  24. package/assets/toolkit/toolkit/templates/docs/dev/OPS_HANDOFF_CREATION_RULES.md +369 -0
  25. package/assets/toolkit/toolkit/templates/docs/product/CONDENSED_UPSTREAM_INPUT_TEMPLATE.md +276 -0
  26. package/assets/toolkit/toolkit/templates/handoffs/DEV_TO_SDTK_CODE.md +60 -29
  27. package/assets/toolkit/toolkit/templates/handoffs/PM_TO_BA.md +5 -1
  28. package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +50 -0
  29. package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +63 -0
  30. package/package.json +46 -46
@@ -1,29 +1,60 @@
1
- # DEV to SDTK-CODE Handoff
2
-
3
- ## Required Inputs
4
- - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
5
- - `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
6
- - `sdtk-spec.config.json`
7
- - required upstream refs listed in the handoff artifact
8
-
9
- ## Required Outputs
10
- - explicit readiness decision for SDTK-CODE:
11
- - `READY_FOR_SDTK_CODE`, or
12
- - `BLOCKED_FOR_SDTK_CODE`
13
- - recommended lane:
14
- - `feature`, or
15
- - `bugfix`
16
- - implementation slices
17
- - test obligations
18
- - blocker list when not ready
19
-
20
- ## Mandatory Checks
21
- - `FEATURE_IMPL_PLAN` and `CODE_HANDOFF` reference the same feature key.
22
- - `required_refs` always include `ARCH_DESIGN` and `BACKLOG`.
23
- - implementation slices and test obligations are concrete enough for downstream execution.
24
- - suggested next command appears only when the handoff status is `READY_FOR_SDTK_CODE`.
25
-
26
- ## Forbidden Shortcuts
27
- - Do not auto-run `sdtk-code` from `/dev`.
28
- - Do not emit `READY_FOR_SDTK_CODE` with hidden blockers.
29
- - Do not treat planning notes as a substitute for the machine-readable `CODE_HANDOFF` artifact.
1
+ # DEV to SDTK-CODE Handoff
2
+
3
+ ## Required Inputs
4
+ - `docs/dev/FEATURE_IMPL_PLAN_[FEATURE_KEY].md`
5
+ - `docs/dev/CODE_HANDOFF_[FEATURE_KEY].json`
6
+ - `sdtk-spec.config.json`
7
+ - required upstream refs listed in the handoff artifact
8
+
9
+ ## Required Outputs
10
+ Current canonical generator output is schema `0.2`; downstream `SDTK-CODE` still accepts `0.1` handoffs for truthful compatibility.
11
+
12
+ - explicit readiness decision for SDTK-CODE:
13
+ - `READY_FOR_SDTK_CODE`, or
14
+ - `BLOCKED_FOR_SDTK_CODE`
15
+ - recommended lane:
16
+ - `feature`, or
17
+ - `bugfix`
18
+ - implementation slices (ordered build sequence)
19
+ - impact map derived from the current handoff refs
20
+ - test obligations
21
+ - optional recovery notes
22
+ - blocker list when not ready
23
+
24
+ ## Mandatory Checks
25
+ - `FEATURE_IMPL_PLAN` and `CODE_HANDOFF` reference the same feature key.
26
+ - `required_refs` always include `ARCH_DESIGN` and `BACKLOG`.
27
+ - implementation slices stay in the recommended downstream build order.
28
+ - test obligations are implementation-ready acceptance mapping statements, not vague labels.
29
+ - suggested next command appears only when the handoff status is `READY_FOR_SDTK_CODE`.
30
+
31
+ ## Workflow-Domain Guidance (Approval/Workflow Features Only)
32
+ Use this section only when the current feature includes approval states, state transitions, role-based gates, or policy-sensitive workflow behavior.
33
+
34
+ - Keep `implementation_slices` in state-machine-first order. The recommended seven-slice pattern is:
35
+ 1. workflow state machine and domain invariants
36
+ 2. API and transition contracts
37
+ 3. RBAC and actor-to-transition permissions
38
+ 4. transition guards and policy enforcement
39
+ 5. submitter-facing UI
40
+ 6. approver-facing UI
41
+ 7. downstream integration or notification hooks
42
+ - Populate all four `impact_map` keys (`api_refs`, `database_refs`, `ui_refs`, `flow_refs`) with concrete refs when they exist. If `database_refs` is missing for a workflow-domain handoff, carry that gap as an explicit `open_blocker`. For other intentionally absent surfaces, make the gap explicit in planning notes instead of leaving the surface implied.
43
+ - Write `test_obligations` that cover all four workflow categories:
44
+ - valid positive transitions
45
+ - blocked or invalid transitions
46
+ - role-permission boundaries
47
+ - policy-sensitive edge cases
48
+ - Add `recovery_notes` when the workflow has fragile coupling points, especially state-machine changes or cases where an unresolved OQ can invalidate current transition assumptions mid-implementation.
49
+ - Required source inputs for workflow-domain handoff authoring:
50
+ - `docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md`
51
+ - `docs/architecture/ARCH_DESIGN_[FEATURE_KEY].md`
52
+ - `docs/product/BACKLOG_[FEATURE_KEY].md`
53
+ - `docs/specs/[FEATURE_KEY]_FLOW_ACTION_SPEC.md`
54
+ - at least one `docs/database/*` source
55
+ - Carry unresolved workflow decisions that still affect implementation truth as `open_blockers`. Do not emit `READY_FOR_SDTK_CODE` if an unresolved `OQ-xx` still changes role permissions, transition legality, or policy outcome semantics.
56
+
57
+ ## Forbidden Shortcuts
58
+ - Do not auto-run `sdtk-code` from `/dev`.
59
+ - Do not emit `READY_FOR_SDTK_CODE` with hidden blockers.
60
+ - Do not treat planning notes as a substitute for the machine-readable `CODE_HANDOFF` artifact.
@@ -4,6 +4,10 @@
4
4
  - `docs/product/PROJECT_INITIATION_[FEATURE_KEY].md`
5
5
  - source requirement notes or attachments
6
6
  - current `SHARED_PLANNING.md`
7
+ - (Optional) `docs/product/CONDENSED_UPSTREAM_INPUT_[FEATURE_KEY].md` if a
8
+ condensation step was run before PM initiation. If present, BA must
9
+ read it alongside the Project Initiation doc. All condensed content is DRAFT
10
+ and requires human review before adoption.
7
11
 
8
12
  ## Required Outputs
9
13
  - `docs/specs/BA_SPEC_[FEATURE_KEY].md`
@@ -23,4 +27,4 @@
23
27
  - Feature: `[FEATURE_KEY]`
24
28
  - PM scope summary: 3 to 7 bullets
25
29
  - Known open questions: `OQ-xx` list or `None`
26
- - Expected BA focus: rules, use cases, acceptance criteria, NFRs
30
+ - Expected BA focus: rules, use cases, acceptance criteria, NFRs
@@ -0,0 +1,50 @@
1
+ # AGENT REPORT TEMPLATE
2
+ 1. Metadata
3
+ - Worker
4
+ - Runtime
5
+ - Phase
6
+ - Repo / Branch
7
+ - Decision Requested
8
+ - Issue Closeout Mode
9
+ - Runtime Outcome (`completed` | `stalled` | `fallback-used`)
10
+ 2. Short Summary
11
+ - <summary>
12
+ 3. Exact Files Changed
13
+ - <path>
14
+ - <path>
15
+ 4. Carryover Findings Resolution
16
+ - <prior blocker or truth preserved or resolved>
17
+ - <prior blocker or truth preserved or resolved>
18
+ 5. Formal Artifact Truth
19
+ - primary formal artifact path
20
+ - written by agent or controller fallback
21
+ - fallback reason when controller authored the artifact
22
+ 6. Phase Artifact Validation
23
+ - canonical filename pass or fail or skipped
24
+ - canonical verdict vocabulary pass or fail or skipped
25
+ - validator output summary or skip reason
26
+ 7. Exact Verification Results
27
+ - <command> -> <result>
28
+ - <command> -> <result>
29
+ 8. Boundary Truth
30
+ - included surfaces actually touched
31
+ - excluded surfaces not touched
32
+ - formal artifacts created
33
+ - boundary mode actually executed
34
+ - parent issue status after this batch (`DONE` | `IN_PROGRESS`)
35
+ 9. Git Truth
36
+ - git status --short --untracked-files=all
37
+ - git diff --name-only
38
+ - git diff --cached --name-only
39
+ - git rev-parse HEAD
40
+ - git branch --show-current
41
+ 10. Fallback Truth
42
+ - fallback trigger reached or not
43
+ - fallback path used or not
44
+ - stalled runtime diff accepted: yes or no
45
+ 11. Blockers / Open Questions
46
+ - <item>
47
+ 12. Ready State
48
+ - <ready / not ready>
49
+ - <reason>
50
+ - <next step>
@@ -0,0 +1,63 @@
1
+ # AGENT TASK TEMPLATE
2
+ Issue:
3
+ - <ISSUE_KEY> | <TITLE>
4
+ Runtime:
5
+ - <claude|codex>
6
+ Phase:
7
+ - <plan|controller-spec|implementation|controller-dev-review|qa-review|controller-acceptance|post-issue-retrospective|ops|other>
8
+ Worktree / Repo:
9
+ - <ABSOLUTE_PATH>
10
+ - Branch: <BRANCH>
11
+ Objective:
12
+ - <one clear sentence>
13
+ Decision Requested:
14
+ - <exact decision or ready-state question>
15
+ Issue Closeout Mode:
16
+ - <full-issue|phase-only>
17
+ Formal Outputs To Produce:
18
+ 1. <tracked artifact path>
19
+ 2. <tracked artifact path>
20
+ Include Boundary:
21
+ 1. <path or surface>
22
+ 2. <path or surface>
23
+ Exclude Boundary:
24
+ 1. <excluded path or surface>
25
+ 2. <excluded path or surface>
26
+ Inputs:
27
+ - <file 1>
28
+ - <file 2>
29
+ - <file 3>
30
+ Boundary Mode:
31
+ - <canonical-only|canonical+distribution|other>
32
+ Primary Formal Artifact:
33
+ - <tracked artifact path that controller will trust first>
34
+ Canonical Review-Phase Artifact Rules:
35
+ - controller-dev-review => `SDTK_BK###_CONTROLLER_DEV_REVIEW_R#_YYYYMMDD.md` + `APPROVED FOR QA HANDOFF` or `CHANGES REQUIRED BEFORE QA`
36
+ - qa-review => `SDTK_BK###_QA_CHECKPOINT_REPORT_R#_YYYYMMDD.md` + `APPROVED FOR CONTROLLER ACCEPTANCE` or `CHANGES REQUIRED BEFORE CONTROLLER ACCEPTANCE`
37
+ - controller-acceptance => `SDTK_BK###_CONTROLLER_ACCEPTANCE_R#_YYYYMMDD.md` + `APPROVED FOR COMMIT-READY STATE` or `NOT APPROVED FOR COMMIT-READY STATE`
38
+ Carryover Findings / Fixed Truth To Preserve:
39
+ - <prior blocker ID or prior approved truth>
40
+ - <prior blocker ID or prior approved truth>
41
+ Formal Artifact Write Expectation:
42
+ - <agent-authored formal artifact|controller-authored fallback allowed if runtime is blocked>
43
+ Timebox / Search Budget:
44
+ - <deliver-first / max search budget / when to stop and escalate>
45
+ Runtime Stall Budget / Fallback Trigger:
46
+ - <max runtime wait or retry budget / exact trigger that allows controller-local or native fallback>
47
+ Execution Rules:
48
+ 1. <critical rule>
49
+ 2. <critical rule>
50
+ 3. <commit/push restriction if relevant>
51
+ Required Verification:
52
+ - <command 1>
53
+ - <command 2>
54
+ - <command 3>
55
+ Return Format:
56
+ 1. metadata
57
+ 2. short summary
58
+ 3. exact files changed
59
+ 4. formal artifact truth
60
+ 5. exact verification results
61
+ 6. boundary truth
62
+ 7. blockers or open questions
63
+ 8. explicit readiness statement
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
1
  {
2
- "name": "sdtk-spec-kit",
3
- "version": "0.3.12",
4
- "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
- "bin": {
6
- "sdtk-spec": "./bin/sdtk.js"
7
- },
8
- "main": "src/index.js",
9
- "type": "commonjs",
10
- "files": [
11
- "bin/",
12
- "src/",
13
- "assets/"
14
- ],
15
- "scripts": {
16
- "test": "npm run verify:payload && npm run pack:smoke",
17
- "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 && powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
- "verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
19
- "pack:smoke": "npm pack --dry-run",
20
- "pack:release": "npm pack",
21
- "prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
22
- },
23
- "engines": {
24
- "node": ">=18.13.0"
25
- },
26
- "keywords": [
27
- "sdtk",
28
- "sdtk-spec",
29
- "sdtk-spec-kit",
30
- "cli",
31
- "documentation",
32
- "toolkit",
33
- "dockkit"
34
- ],
35
- "license": "MIT",
36
- "repository": {
37
- "type": "git",
38
- "url": "https://github.com/codexsdtk/sdtk-toolkit.git",
39
- "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
- },
41
- "homepage": "https://agenttoolkits.dev",
42
- "bugs": {
43
- "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
- },
45
- "publishConfig": {
46
- "access": "public"
47
- }
2
+ "name": "sdtk-spec-kit",
3
+ "version": "0.3.14",
4
+ "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
+ "bin": {
6
+ "sdtk-spec": "bin/sdtk.js"
7
+ },
8
+ "main": "src/index.js",
9
+ "type": "commonjs",
10
+ "files": [
11
+ "bin/",
12
+ "src/",
13
+ "assets/"
14
+ ],
15
+ "scripts": {
16
+ "test": "npm run verify:payload && npm run pack:smoke",
17
+ "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 && powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
+ "verify:payload": "node -e \"require('./src/lib/toolkit-payload').verify()\"",
19
+ "pack:smoke": "npm pack --dry-run",
20
+ "pack:release": "npm pack",
21
+ "prepublishOnly": "node -e \"require('./src/lib/toolkit-payload').verify()\""
22
+ },
23
+ "engines": {
24
+ "node": ">=18.13.0"
25
+ },
26
+ "keywords": [
27
+ "sdtk",
28
+ "sdtk-spec",
29
+ "sdtk-spec-kit",
30
+ "cli",
31
+ "documentation",
32
+ "toolkit",
33
+ "dockkit"
34
+ ],
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "git+https://github.com/codexsdtk/sdtk-toolkit.git",
39
+ "directory": "products/sdtk-spec/distribution/sdtk-spec-kit"
40
+ },
41
+ "homepage": "https://agenttoolkits.dev",
42
+ "bugs": {
43
+ "url": "https://github.com/codexsdtk/sdtk-toolkit/issues"
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ }
48
48
  }