sdtk-spec-kit 0.3.15 → 0.3.17

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 (37) hide show
  1. package/README.md +131 -2
  2. package/assets/atlas/build_atlas.py +865 -0
  3. package/assets/atlas/doc_atlas_viewer_template.html +3706 -0
  4. package/assets/atlas/vendor/mermaid.min.js +2029 -0
  5. package/assets/manifest/toolkit-bundle.manifest.json +16 -16
  6. package/assets/manifest/toolkit-bundle.sha256.txt +7 -7
  7. package/assets/toolkit/toolkit/SDTK_TOOLKIT.md +14 -0
  8. package/assets/toolkit/toolkit/scripts/agents/run-claude-task.ps1 +332 -111
  9. package/assets/toolkit/toolkit/scripts/agents/run-codex-task.ps1 +517 -16
  10. package/assets/toolkit/toolkit/skills/sdtk-mailbox-dispatch/SKILL.md +73 -71
  11. package/assets/toolkit/toolkit/skills-claude/mailbox-dispatch/SKILL.md +73 -71
  12. package/assets/toolkit/toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md +62 -49
  13. package/assets/toolkit/toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md +21 -10
  14. package/package.json +48 -48
  15. package/src/commands/atlas.js +379 -0
  16. package/src/commands/entitlement.js +163 -0
  17. package/src/commands/help.js +140 -6
  18. package/src/commands/project.js +51 -0
  19. package/src/index.js +10 -1
  20. package/src/lib/atlas-ask.js +170 -0
  21. package/src/lib/atlas-config.js +200 -0
  22. package/src/lib/atlas-runner.js +355 -0
  23. package/src/lib/browser-open.js +39 -0
  24. package/src/lib/capabilities.js +98 -0
  25. package/src/lib/entitlements.js +203 -0
  26. package/src/lib/github-access.js +75 -0
  27. package/src/lib/legacy-auth-migration.js +56 -0
  28. package/src/lib/premium-loader.js +126 -0
  29. package/src/lib/premium-packs.js +333 -0
  30. package/src/lib/premium-sync.js +235 -0
  31. package/src/lib/project-audit.js +332 -0
  32. package/src/lib/project-config.js +108 -0
  33. package/src/lib/project-ingest.js +450 -0
  34. package/src/lib/project-refresh.js +666 -0
  35. package/src/lib/project-target-guard.js +28 -2
  36. package/src/lib/state.js +37 -46
  37. package/src/lib/suite-state.js +65 -0
@@ -1,71 +1,73 @@
1
- ---
2
- name: sdtk-mailbox-dispatch
3
- description: Controller-owned mailbox delegation for SDTK-SPEC. Use when PM or Orchestrator needs to assign a bounded phase to Claude or Codex, preserve exact include/exclude boundaries, review raw reports against formal artifacts, and run a mandatory post-issue mailbox retrospective.
4
- ---
5
-
6
- # SDTK Mailbox Dispatch
7
-
8
- Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
9
-
10
- ## Critical Constraints
11
- - I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
12
- - I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
13
- - I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
14
- - I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
15
-
16
- ## Use When
17
- - one bounded issue phase should be delegated through the mailbox runtime
18
- - runtime choice between Claude and Codex matters
19
- - the task needs exact include/exclude boundaries and a stable review packet
20
- - the phase is implementation, review, QA, or controller acceptance
21
- - you want the closeout loop to absorb new mailbox lessons automatically
22
-
23
- ## Do Not Use
24
- - broad exploratory planning when the controller already has enough local context
25
- - unbounded multi-issue orchestration or a generic worker platform
26
- - tasks that require a direct external-CLI-to-chat-session bridge
27
-
28
- ## Required Inputs
29
- Read these shipped toolkit surfaces before dispatching or reviewing a run:
30
- - `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
31
- - `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
32
- - `toolkit/scripts/agents/run-claude-task.ps1`
33
- - `toolkit/scripts/agents/run-codex-task.ps1`
34
- - current issue spec/plan/review artifacts for the bounded phase
35
- - current git truth for the included surfaces
36
-
37
- ## Workflow
38
- 1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
39
- 2. Choose runtime:
40
- - Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
41
- - Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
42
- 3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
43
- 4. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
44
- 5. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy.
45
- 6. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
46
- 7. Promote only approved code/docs/tests/artifacts into tracked paths.
47
- 8. Run a default post-issue retrospective before the next mailbox-driven issue:
48
- - update the mailbox contract/spec if a real new lesson appeared
49
- - otherwise record `no new mailbox lessons` in the closeout summary
50
-
51
- ## Boundary Rules
52
- - Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
53
- - Do not mix mailbox runtime dirt into feature commit boundaries.
54
- - State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
55
- - Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
56
-
57
- ## Fallback Rules
58
- - If an external runtime stalls, use a bounded fallback path instead of blocking the issue.
59
- - For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
60
- - If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
61
- - QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
62
- - If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
63
-
64
- ## Default Phase Order
65
- 1. `controller-spec` or `plan`
66
- 2. `implementation`
67
- 3. `controller-dev-review`
68
- 4. `qa-review`
69
- 5. `controller-acceptance`
70
- 6. `commit/push`
71
- 7. `post-issue-retrospective`
1
+ ---
2
+ name: sdtk-mailbox-dispatch
3
+ description: Controller-owned mailbox delegation for SDTK-SPEC. Use when PM or Orchestrator needs to assign a bounded phase to Claude or Codex, preserve exact include/exclude boundaries, review raw reports against formal artifacts, and run a mandatory post-issue mailbox retrospective.
4
+ ---
5
+
6
+ # SDTK Mailbox Dispatch
7
+
8
+ Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
9
+
10
+ ## Critical Constraints
11
+ - I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
12
+ - I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
13
+ - I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
14
+ - I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
15
+
16
+ ## Use When
17
+ - one bounded issue phase should be delegated through the mailbox runtime
18
+ - runtime choice between Claude and Codex matters
19
+ - the task needs exact include/exclude boundaries and a stable review packet
20
+ - the phase is implementation, review, QA, or controller acceptance
21
+ - you want the closeout loop to absorb new mailbox lessons automatically
22
+
23
+ ## Do Not Use
24
+ - broad exploratory planning when the controller already has enough local context
25
+ - unbounded multi-issue orchestration or a generic worker platform
26
+ - tasks that require a direct external-CLI-to-chat-session bridge
27
+
28
+ ## Required Inputs
29
+ Read these shipped toolkit surfaces before dispatching or reviewing a run:
30
+ - `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
31
+ - `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
32
+ - `toolkit/scripts/agents/run-claude-task.ps1`
33
+ - `toolkit/scripts/agents/run-codex-task.ps1`
34
+ - current issue spec/plan/review artifacts for the bounded phase
35
+ - current git truth for the included surfaces
36
+
37
+ ## Workflow
38
+ 1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
39
+ 2. Choose runtime:
40
+ - Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
41
+ - Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
42
+ 3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, explicit execution permission, a complete approval record for any writable implementation run, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
43
+ 4. For implementation runs, list the exact authoritative input files needed to start the patch; do not rely on repo-wide example hunts as an unstated discovery step.`r`n5. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
44
+ 6. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy. If an implementation run timed out or exited without a usable report, expect a launcher-authored partial-failure blocker report instead of a missing report file.
45
+ 7. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
46
+ 8. Promote only approved code/docs/tests/artifacts into tracked paths.
47
+ 9. Run a default post-issue retrospective before the next mailbox-driven issue:
48
+ - update the mailbox contract/spec if a real new lesson appeared
49
+ - otherwise record `no new mailbox lessons` in the closeout summary
50
+
51
+ ## Boundary Rules
52
+ - Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
53
+ - Do not mix mailbox runtime dirt into feature commit boundaries.
54
+ - State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
55
+ - Keep review, QA, and controller-acceptance phases read-only by default; writable implementation runs require explicit human-approved permission metadata in the task packet.
56
+ - Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
57
+ - Treat listed Inputs: as the authoritative starting source set for implementation runs; broad repo-wide discovery is a fallback only when a direct dependency is missing.
58
+
59
+ ## Fallback Rules
60
+ - If an external runtime stalls, use a bounded fallback path instead of blocking the issue. Long-running Codex implementation runs should now terminate within the declared stall budget and emit a launcher-authored partial-failure blocker report when a usable report is missing.
61
+ - For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
62
+ - If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
63
+ - QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
64
+ - If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
65
+
66
+ ## Default Phase Order
67
+ 1. `controller-spec` or `plan`
68
+ 2. `implementation`
69
+ 3. `controller-dev-review`
70
+ 4. `qa-review`
71
+ 5. `controller-acceptance`
72
+ 6. `commit/push`
73
+ 7. `post-issue-retrospective`
@@ -1,71 +1,73 @@
1
- ---
2
- name: mailbox-dispatch
3
- description: Controller-owned mailbox delegation for SDTK-SPEC. Use when PM or Orchestrator needs to assign a bounded phase to Claude or Codex, preserve exact include/exclude boundaries, review raw reports against formal artifacts, and run a mandatory post-issue mailbox retrospective.
4
- ---
5
-
6
- # SDTK Mailbox Dispatch
7
-
8
- Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
9
-
10
- ## Critical Constraints
11
- - I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
12
- - I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
13
- - I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
14
- - I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
15
-
16
- ## Use When
17
- - one bounded issue phase should be delegated through the mailbox runtime
18
- - runtime choice between Claude and Codex matters
19
- - the task needs exact include/exclude boundaries and a stable review packet
20
- - the phase is implementation, review, QA, or controller acceptance
21
- - you want the closeout loop to absorb new mailbox lessons automatically
22
-
23
- ## Do Not Use
24
- - broad exploratory planning when the controller already has enough local context
25
- - unbounded multi-issue orchestration or a generic worker platform
26
- - tasks that require a direct external-CLI-to-chat-session bridge
27
-
28
- ## Required Inputs
29
- Read these shipped toolkit surfaces before dispatching or reviewing a run:
30
- - `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
31
- - `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
32
- - `toolkit/scripts/agents/run-claude-task.ps1`
33
- - `toolkit/scripts/agents/run-codex-task.ps1`
34
- - current issue spec/plan/review artifacts for the bounded phase
35
- - current git truth for the included surfaces
36
-
37
- ## Workflow
38
- 1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
39
- 2. Choose runtime:
40
- - Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
41
- - Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
42
- 3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
43
- 4. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
44
- 5. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy.
45
- 6. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
46
- 7. Promote only approved code/docs/tests/artifacts into tracked paths.
47
- 8. Run a default post-issue retrospective before the next mailbox-driven issue:
48
- - update the mailbox contract/spec if a real new lesson appeared
49
- - otherwise record `no new mailbox lessons` in the closeout summary
50
-
51
- ## Boundary Rules
52
- - Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
53
- - Do not mix mailbox runtime dirt into feature commit boundaries.
54
- - State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
55
- - Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
56
-
57
- ## Fallback Rules
58
- - If an external runtime stalls, use a bounded fallback path instead of blocking the issue.
59
- - For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
60
- - If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
61
- - QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
62
- - If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
63
-
64
- ## Default Phase Order
65
- 1. `controller-spec` or `plan`
66
- 2. `implementation`
67
- 3. `controller-dev-review`
68
- 4. `qa-review`
69
- 5. `controller-acceptance`
70
- 6. `commit/push`
71
- 7. `post-issue-retrospective`
1
+ ---
2
+ name: mailbox-dispatch
3
+ description: Controller-owned mailbox delegation for SDTK-SPEC. Use when PM or Orchestrator needs to assign a bounded phase to Claude or Codex, preserve exact include/exclude boundaries, review raw reports against formal artifacts, and run a mandatory post-issue mailbox retrospective.
4
+ ---
5
+
6
+ # SDTK Mailbox Dispatch
7
+
8
+ Use this skill only for controller-owned delegation. It is the shipped SDTK-SPEC mailbox flow for bounded PM or Orchestrator dispatch, not a generic autonomous worker platform.
9
+
10
+ ## Critical Constraints
11
+ - I do not use mailbox dispatch for broad exploratory planning when the controller already has enough local context to plan safely.
12
+ - I do not mix transient runtime files under `governance/ai/agent-mailbox/runtime/` into feature commit boundaries.
13
+ - I do not widen include/exclude boundaries, fallback rules, or verification commands without an explicit controller decision.
14
+ - I do not leak internal backlog IDs into runtime-facing docs, templates, samples, or public guidance.
15
+
16
+ ## Use When
17
+ - one bounded issue phase should be delegated through the mailbox runtime
18
+ - runtime choice between Claude and Codex matters
19
+ - the task needs exact include/exclude boundaries and a stable review packet
20
+ - the phase is implementation, review, QA, or controller acceptance
21
+ - you want the closeout loop to absorb new mailbox lessons automatically
22
+
23
+ ## Do Not Use
24
+ - broad exploratory planning when the controller already has enough local context
25
+ - unbounded multi-issue orchestration or a generic worker platform
26
+ - tasks that require a direct external-CLI-to-chat-session bridge
27
+
28
+ ## Required Inputs
29
+ Read these shipped toolkit surfaces before dispatching or reviewing a run:
30
+ - `toolkit/templates/mailbox/AGENT_TASK_TEMPLATE.md`
31
+ - `toolkit/templates/mailbox/AGENT_REPORT_TEMPLATE.md`
32
+ - `toolkit/scripts/agents/run-claude-task.ps1`
33
+ - `toolkit/scripts/agents/run-codex-task.ps1`
34
+ - current issue spec/plan/review artifacts for the bounded phase
35
+ - current git truth for the included surfaces
36
+
37
+ ## Workflow
38
+ 1. Decide whether the controller should plan locally first. Default to local planning when the codebase context is already strong.
39
+ 2. Choose runtime:
40
+ - Claude for controller spec drafting, wording-heavy review, and SDTK-SPEC shaping
41
+ - Codex for code changes, tests, workflow/harness changes, and verification-heavy implementation
42
+ 3. Write the task packet with exact boundary truth, boundary mode, carryover findings, formal artifact write expectation, explicit execution permission, a complete approval record for any writable implementation run, an explicit runtime-stall budget plus fallback trigger, and a clear closeout mode (`full-issue` or `phase-only`).
43
+ 4. For implementation runs, list the exact authoritative input files needed to start the patch; do not rely on repo-wide example hunts as an unstated discovery step.`r`n5. Dispatch through the mailbox launcher into `governance/ai/agent-mailbox/runtime/...`.
44
+ 6. Review the raw report against git truth and the formal artifact on disk. Prefer the formal artifact when console output is lossy. If an implementation run timed out or exited without a usable report, expect a launcher-authored partial-failure blocker report instead of a missing report file.
45
+ 7. For `controller-dev-review`, `qa-review`, and `controller-acceptance`, keep the primary formal artifact on the canonical filename family and canonical verdict vocabulary for that phase. The launcher validates `toolkit/scripts/agents/validate-mailbox-formal-artifact.py` automatically when the artifact exists.
46
+ 8. Promote only approved code/docs/tests/artifacts into tracked paths.
47
+ 9. Run a default post-issue retrospective before the next mailbox-driven issue:
48
+ - update the mailbox contract/spec if a real new lesson appeared
49
+ - otherwise record `no new mailbox lessons` in the closeout summary
50
+
51
+ ## Boundary Rules
52
+ - Treat runtime files under `governance/ai/agent-mailbox/runtime/` as transient.
53
+ - Do not mix mailbox runtime dirt into feature commit boundaries.
54
+ - State explicitly whether a batch is `canonical-only` or includes packaged distribution parity.
55
+ - Keep review, QA, and controller-acceptance phases read-only by default; writable implementation runs require explicit human-approved permission metadata in the task packet.
56
+ - Keep internal backlog IDs out of runtime-facing docs, templates, and public guidance.
57
+ - Treat listed Inputs: as the authoritative starting source set for implementation runs; broad repo-wide discovery is a fallback only when a direct dependency is missing.
58
+
59
+ ## Fallback Rules
60
+ - If an external runtime stalls, use a bounded fallback path instead of blocking the issue. Long-running Codex implementation runs should now terminate within the declared stall budget and emit a launcher-authored partial-failure blocker report when a usable report is missing.
61
+ - For long implementation passes, one bounded external attempt is enough before controller-local or native fallback if the trigger defined in the task packet is reached.
62
+ - If quota or permission prevents the agent from writing the formal artifact, the controller may author it directly, but the artifact must state the fallback reason.
63
+ - QA and controller acceptance may inherit fresh controller verification only when the implementation scope is unchanged and the inheritance is declared explicitly.
64
+ - If the controller fixes a bounded hygiene defect between phases, later mailbox tasks must review current repo truth and treat the resolved defect as fixed instead of repeating stale findings from earlier raw reports.
65
+
66
+ ## Default Phase Order
67
+ 1. `controller-spec` or `plan`
68
+ 2. `implementation`
69
+ 3. `controller-dev-review`
70
+ 4. `qa-review`
71
+ 5. `controller-acceptance`
72
+ 6. `commit/push`
73
+ 7. `post-issue-retrospective`
@@ -1,50 +1,63 @@
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>
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. Execution Permission Audit
23
+ - declared execution permission
24
+ - effective runtime permission mode
25
+ - permission approval status
26
+ - approved by
27
+ - approval reason
28
+ - approved writable scope
29
+ - approval reference
30
+ - launcher decision summary
31
+ 7. Phase Artifact Validation
32
+ - canonical filename pass or fail or skipped
33
+ - canonical verdict vocabulary pass or fail or skipped
34
+ - validator output summary or skip reason
35
+ 8. Exact Verification Results
36
+ - <command> -> <result>
37
+ - <command> -> <result>
38
+ 9. Boundary Truth
39
+ - included surfaces actually touched
40
+ - excluded surfaces not touched
41
+ - formal artifacts created
42
+ - boundary mode actually executed
43
+ - parent issue status after this batch (`DONE` | `IN_PROGRESS`)
44
+ 10. Git Truth
45
+ - git status --short --untracked-files=all
46
+ - git diff --name-only
47
+ - git diff --cached --name-only
48
+ - git rev-parse HEAD
49
+ - git branch --show-current
50
+ 11. Fallback Truth
51
+ - fallback trigger reached or not
52
+ - fallback path used or not
53
+ - stalled runtime diff accepted: yes or no
54
+ - watchdog timeout reached: yes or no
55
+ - launcher-authored partial-failure closeout emitted: yes or no
56
+ - raw log path
57
+ - raw runtime report state before closeout
58
+ 12. Blockers / Open Questions
59
+ - <item>
60
+ 13. Ready State
61
+ - <ready / not ready>
62
+ - <reason>
50
63
  - <next step>
@@ -1,4 +1,4 @@
1
- # AGENT TASK TEMPLATE
1
+ # AGENT TASK TEMPLATE
2
2
  Issue:
3
3
  - <ISSUE_KEY> | <TITLE>
4
4
  Runtime:
@@ -16,6 +16,16 @@ Issue Closeout Mode:
16
16
  - <full-issue|phase-only>
17
17
  Execution Permission:
18
18
  - <read-only|workspace-write-approved>
19
+ Permission Approval Status:
20
+ - <not-required|human-approved>
21
+ Approved By:
22
+ - <name/role|n/a>
23
+ Approval Reason:
24
+ - <short reason|n/a>
25
+ Approved Writable Scope:
26
+ - <exact writable scope|n/a>
27
+ Approval Reference:
28
+ - <ticket/comment/reference|n/a>
19
29
  Formal Outputs To Produce:
20
30
  1. <tracked artifact path>
21
31
  2. <tracked artifact path>
@@ -26,7 +36,7 @@ Exclude Boundary:
26
36
  1. <excluded path or surface>
27
37
  2. <excluded path or surface>
28
38
  Inputs:
29
- - <file 1>
39
+ - <file 1; authoritative source input, read before any broader search>
30
40
  - <file 2>
31
41
  - <file 3>
32
42
  Boundary Mode:
@@ -45,11 +55,11 @@ Formal Artifact Write Expectation:
45
55
  Timebox / Search Budget:
46
56
  - <deliver-first / max search budget / when to stop and escalate>
47
57
  Runtime Stall Budget / Fallback Trigger:
48
- - <max runtime wait or retry budget / exact trigger that allows controller-local or native fallback>
58
+ - <e.g. 35 minutes / exact trigger that allows controller-local or native fallback>
49
59
  Execution Rules:
50
- 1. <critical rule>
51
- 2. <critical rule>
52
- 3. <commit/push restriction if relevant>
60
+ 1. Read every listed input first and treat `Inputs:` as the authoritative starting source set unless blocked by a missing exact dependency.
61
+ 2. Do not run broad repo-wide or directory-wide discovery before you have read the listed inputs; any extra inspection must stay inside `Include Boundary`.
62
+ 3. <additional critical rule or commit/push restriction if relevant>
53
63
  Required Verification:
54
64
  - <command 1>
55
65
  - <command 2>
@@ -59,7 +69,8 @@ Return Format:
59
69
  2. short summary
60
70
  3. exact files changed
61
71
  4. formal artifact truth
62
- 5. exact verification results
63
- 6. boundary truth
64
- 7. blockers or open questions
65
- 8. explicit readiness statement
72
+ 5. execution permission audit
73
+ 6. exact verification results
74
+ 7. boundary truth
75
+ 8. blockers or open questions
76
+ 9. explicit readiness statement
package/package.json CHANGED
@@ -1,48 +1,48 @@
1
- {
2
- "name": "sdtk-spec-kit",
3
- "version": "0.3.15",
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 \u0026\u0026 npm run pack:smoke",
17
- "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 \u0026\u0026 powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
- "verify:payload": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\"",
19
- "pack:smoke": "npm pack --dry-run",
20
- "pack:release": "npm pack",
21
- "prepublishOnly": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\""
22
- },
23
- "engines": {
24
- "node": "\u003e=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
- }
1
+ {
2
+ "name": "sdtk-spec-kit",
3
+ "version": "0.3.17",
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 \u0026\u0026 npm run pack:smoke",
17
+ "build:payload": "powershell -ExecutionPolicy Bypass -File scripts/sync-toolkit-assets.ps1 \u0026\u0026 powershell -ExecutionPolicy Bypass -File scripts/build-toolkit-manifest.ps1",
18
+ "verify:payload": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\"",
19
+ "pack:smoke": "npm pack --dry-run",
20
+ "pack:release": "npm pack",
21
+ "prepublishOnly": "node -e \"require(\u0027./src/lib/toolkit-payload\u0027).verify()\""
22
+ },
23
+ "engines": {
24
+ "node": "\u003e=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
+ }