sdtk-spec-kit 0.6.0 → 0.6.1

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.6.0",
3
- "sourceCommit": "c0dd62d02e1ed12e1c87c01051a10ebb545e6857",
2
+ "version": "0.6.1",
3
+ "sourceCommit": "958c734ede338089150af3f802b3e2a407c78748",
4
4
  "fileCount": 100,
5
5
  "files": [
6
6
  {
@@ -140,8 +140,8 @@
140
140
  },
141
141
  {
142
142
  "path": "toolkit/skills-claude/evolve/SKILL.md",
143
- "sha256": "ddf304f49b53dd1980241b8e231bdfbcfb781d11e6d6bc0cef843b1552af0577",
144
- "size": 6396
143
+ "sha256": "d345ac17251f28a3a7b428a20aa8d6a8675bf8c2cfd1c03c5ca35e22fb8f0041",
144
+ "size": 7660
145
145
  },
146
146
  {
147
147
  "path": "toolkit/skills-claude/mailbox-dispatch/SKILL.md",
@@ -240,8 +240,8 @@
240
240
  },
241
241
  {
242
242
  "path": "toolkit/skills/sdtk-evolve/SKILL.md",
243
- "sha256": "e37ed094bc30e76b49f460acb428705af54e4b5925921d5d5bcd5d3aed72aeed",
244
- "size": 6792
243
+ "sha256": "6fe9b6657f11dd4b9a9ecf2a40a1fefab80b9a743e1c1af057ca541be390421a",
244
+ "size": 7987
245
245
  },
246
246
  {
247
247
  "path": "toolkit/skills/sdtk-mailbox-dispatch/SKILL.md",
@@ -25,7 +25,7 @@ c17bb4faff318032ee99ead56e5fa182811c7bcaa176e463d0377cefde213ac1 toolkit/skills
25
25
  b4de86bc4730c4fcfe4f1bde8f9f64f03fd517825bb699e911199825cc3d4249 toolkit/skills-claude/dev-backend/SKILL.md
26
26
  37b3ae11db18bc3f64a76b22bca95cea778d6cfbb8b038d46851bd44ff8ff8f1 toolkit/skills-claude/dev-frontend/SKILL.md
27
27
  a4f326e2cafff865aaaed8f8de9407f3baa3cfebe33979528a15eb26d2e8482b toolkit/skills-claude/dev/SKILL.md
28
- ddf304f49b53dd1980241b8e231bdfbcfb781d11e6d6bc0cef843b1552af0577 toolkit/skills-claude/evolve/SKILL.md
28
+ d345ac17251f28a3a7b428a20aa8d6a8675bf8c2cfd1c03c5ca35e22fb8f0041 toolkit/skills-claude/evolve/SKILL.md
29
29
  6fa2283aa1ebb7bf5b6e84d5d5d9d9ddf71082091b108bd46895923a5fca3e09 toolkit/skills-claude/mailbox-dispatch/SKILL.md
30
30
  aa086be1038e34b1b29f7f65bacf254b5c1bfdc1203bd3e643c27acca4f9c2fa toolkit/skills-claude/orchestrator/SKILL.md
31
31
  e9e346ff0e1fc66236ceabf64a043c9a28926e7ff06296b26dd5836cf045802a toolkit/skills-claude/pm/SKILL.md
@@ -45,7 +45,7 @@ ce5af79e5c4902b9c8ceb7e8dae848a6a5a26d5b845eee94ee8aafff88990256 toolkit/skills
45
45
  6c866b7f8dec193a4c26066e8ac43004ff809f6407ead467a3cb72d90425af52 toolkit/skills/sdtk-dev/prompts/implementer.md
46
46
  55dd53b1ccbedd271ad23ca8df01afc317eced27ee17af3b37f31f0b9176ca8b toolkit/skills/sdtk-dev/prompts/spec-reviewer.md
47
47
  749f0ff0865d8940cec9b16859706fd46f111a4d9bf54b6ccba381fe9db7a90e toolkit/skills/sdtk-dev/SKILL.md
48
- e37ed094bc30e76b49f460acb428705af54e4b5925921d5d5bcd5d3aed72aeed toolkit/skills/sdtk-evolve/SKILL.md
48
+ 6fe9b6657f11dd4b9a9ecf2a40a1fefab80b9a743e1c1af057ca541be390421a toolkit/skills/sdtk-evolve/SKILL.md
49
49
  df593d5ab4e7c5f4b05ac9ddb5078189b25bd954e546ab65c0147d024e4f4d59 toolkit/skills/sdtk-mailbox-dispatch/SKILL.md
50
50
  66ddb66fee3b12b008ea269baa57acde77f8614ac15a9f87cc994eae64ca63dc toolkit/skills/sdtk-orchestrator/SKILL.md
51
51
  ae53d96b6a4fb4ea60fb5de6578b2620c3adb43e1d722a0469cdfa5a90b92903 toolkit/skills/sdtk-pm/SKILL.md
@@ -5,14 +5,14 @@ description: "Local self-improvement loop for SDTK (BK-316). Harvest the operato
5
5
 
6
6
  # SDTK Evolve — learn from your own sessions, behind a human gate
7
7
 
8
- Every turn produced while executing this skill is part of an **SDTK-EVOLVE CYCLE**. Begin your first reply with the literal marker line `SDTK-EVOLVE CYCLE` — future harvests use it to skip evolve-generated content, so the loop never mines itself.
8
+ Every turn produced while executing this skill is part of an evolve cycle. Begin your first reply with the literal, versioned marker line `<!-- sdtk-evolve:harvest-session:v1 -->` — future harvests use it to skip evolve-generated content, so the loop never mines itself. (Harvest filters must also skip content carrying the legacy `SDTK-EVOLVE CYCLE` marker from older sessions.)
9
9
 
10
10
  ## Critical Constraints
11
11
  - I propose **at most 4** bounded edits per cycle — `add`, `delete`, or `replace` of single bullets — and I never rewrite the learned document wholesale.
12
12
  - I **never edit** `.sdtk/evolve/LEARNED.md`, `state.json`, or any live file myself. `sdtk evolve stage` is the only writer of staging; only the human's `sdtk evolve adopt` applies it (there is **no auto-adopt** — the flag does not exist), and `sdtk evolve revert` restores the pre-adopt backup.
13
13
  - Every proposed edit carries **evidence** (which sessions, how many occurrences) and a pre-registered falsifiable **bet** ("friction signature X stops appearing"). No measurable bet → the edit is dropped, not softened.
14
14
  - Redaction is **fail-closed**: secrets, tokens, PII, prompts, and full transcripts never enter a draft. When unsure whether content is sensitive, describe it — never copy it. (`sdtk evolve stage` re-scans and refuses on any hit.)
15
- - I never guess the Codex session-log format: the Codex harvest path follows the **issue #247** validated format only. Until that report is merged, Codex harvest is marked *pending #247* and skipped — the Claude Code path (when its transcripts exist on this machine) proceeds regardless.
15
+ - I never guess the Codex session-log format: the Codex harvest path follows the format validated by the issue #247 report only, and stays **gated** until the marker-persistence integration proof exists — the Claude path proceeds regardless.
16
16
  - Opinion-only lessons (no falsifiable claim) may enter only as preference bullets and never override correctness lessons.
17
17
 
18
18
  ## When to run
@@ -25,8 +25,8 @@ Every turn produced while executing this skill is part of an **SDTK-EVOLVE CYCLE
25
25
  1. **Load state.** Run `sdtk evolve status`. Read `.sdtk/evolve/state.json` (last harvest time, adopted lessons with signatures) and `.sdtk/evolve/LEARNED.md` (current lessons + line count vs the **150**-line cap). If the CLI is unavailable, stop and tell the operator to update `sdtk-kit` (the `evolve` CLI ships with sdtk-kit ≥ 1.16.0) — do **not** hand-write staging files.
26
26
  2. **Harvest.** Scan sessions since the last harvest:
27
27
  - **Claude Code (if present on this machine):** `~/.claude/projects/<project-slug>/*.jsonl` — extract per-session digests: user intents, tool usage, and correction signals (negative: "vẫn sai", "làm lại", "that's wrong", "I told you", "again"; positive: "perfect", "đúng rồi", "great").
28
- - **Codex:** *pending #247* — once `SDTK_BK316_CODEX_HARVEST_VALIDATION_R1_*.md` is merged, harvest Codex session logs per its validated format; until then, note "codex: skipped (pending #247)" in the report.
29
- - **Filters (both sources):** skip meta prompts (bare skill invocations, pasted-text stubs, system noise) and skip any content carrying the `SDTK-EVOLVE CYCLE` marker (self-pollution guard).
28
+ - **Codex — format validated, harvest GATED:** the on-disk format is ground-truthed by `governance/ai/reviews/shared/SDTK_BK316_CODEX_HARVEST_VALIDATION_R1_20260710.md` (Codex CLI 0.144.1). When enabled, follow its rules exactly: scan `$CODEX_HOME/sessions/**/*.jsonl` recursively as the primary source (CODEX_HOME defaults to `~/.codex`) plus `archived_sessions/*.jsonl` as legacy input deduped by session id; extract ONLY canonical `response_item` records with `payload.type=="message" && payload.role=="user"`, taking `content[]` blocks of type `input_text` — never `event_msg` duplicates of the same turn, never developer-role records, never `<environment_context>`/AGENTS wrappers; require a filename-matching `session_meta` with non-empty `cwd` (project attribution) or skip the file fail-closed; pre-scan the WHOLE file for the self-pollution marker (v1 or legacy) and exclude the entire file on a match; never read tool `arguments`/`output`; stream large files rather than loading them whole. **Codex harvest remains gated until an integration proof shows the marker persists in a real Codex evolve session (report §7 condition 6)** — until then, note "codex: gated (marker persistence proof pending)" in the report and harvest Claude only.
29
+ - **Filters (both sources):** skip meta prompts (bare skill invocations, pasted-text stubs, system noise) and skip any content carrying the `<!-- sdtk-evolve:harvest-session:v1 -->` marker or the legacy `SDTK-EVOLVE CYCLE` marker (self-pollution guard).
30
30
  3. **Score recurrence** for every adopted lesson: did its signature re-appear in post-adoption sessions? Render the verdict table — `WORKING` (no recurrence) or `FAILING` (recurred). A lesson FAILING for 2 consecutive cycles **must** get a `replace` or `delete` proposal before any new `add`. The same rule applies when `LEARNED.md` is over the 150-line cap.
31
31
  4. **Reflect.** From the harvested friction, draft **at most 4** edits targeting the lane sections of `LEARNED.md` (`## Chung`, `## SPEC`, `## CODE`, `## OPS`, `## DESIGN`). Prefer one excellent lesson over four mediocre ones. Write the draft to a scratch file using this contract:
32
32
 
@@ -5,14 +5,14 @@ description: Local self-improvement loop for SDTK (BK-316). Harvest the operator
5
5
 
6
6
  # SDTK Evolve — learn from your own sessions, behind a human gate
7
7
 
8
- Every turn produced while executing this skill is part of an **SDTK-EVOLVE CYCLE**. Begin your first reply with the literal marker line `SDTK-EVOLVE CYCLE` — future harvests use it to skip evolve-generated content, so the loop never mines itself.
8
+ Every turn produced while executing this skill is part of an evolve cycle. Begin your first reply with the literal, versioned marker line `<!-- sdtk-evolve:harvest-session:v1 -->` — future harvests use it to skip evolve-generated content, so the loop never mines itself. (Harvest filters must also skip content carrying the legacy `SDTK-EVOLVE CYCLE` marker from older sessions.)
9
9
 
10
10
  ## Critical Constraints
11
11
  - I propose **at most 4** bounded edits per cycle — `add`, `delete`, or `replace` of single bullets — and I never rewrite the learned document wholesale.
12
12
  - I **never edit** `.sdtk/evolve/LEARNED.md`, `state.json`, or any live file myself. `sdtk evolve stage` is the only writer of staging; only the human's `sdtk evolve adopt` applies it (there is **no auto-adopt** — the flag does not exist), and `sdtk evolve revert` restores the pre-adopt backup.
13
13
  - Every proposed edit carries **evidence** (which sessions, how many occurrences) and a pre-registered falsifiable **bet** ("friction signature X stops appearing"). No measurable bet → the edit is dropped, not softened.
14
14
  - Redaction is **fail-closed**: secrets, tokens, PII, prompts, and full transcripts never enter a draft. When unsure whether content is sensitive, describe it — never copy it. (`sdtk evolve stage` re-scans and refuses on any hit.)
15
- - I never guess the Codex session-log format: the Codex harvest path follows the **issue #247** validated format only. Until that report is merged, Codex harvest is marked *pending #247* and skipped — the Claude path proceeds regardless.
15
+ - I never guess the Codex session-log format: the Codex harvest path follows the format validated by the issue #247 report only, and stays **gated** until the marker-persistence integration proof exists — the Claude path proceeds regardless.
16
16
  - Opinion-only lessons (no falsifiable claim) may enter only as preference bullets and never override correctness lessons.
17
17
 
18
18
  ## When to run
@@ -25,8 +25,8 @@ Every turn produced while executing this skill is part of an **SDTK-EVOLVE CYCLE
25
25
  1. **Load state.** Run `sdtk evolve status`. Read `.sdtk/evolve/state.json` (last harvest time, adopted lessons with signatures) and `.sdtk/evolve/LEARNED.md` (current lessons + line count vs the **150**-line cap). If the CLI is unavailable, stop and tell the operator to update `sdtk-kit` (the `evolve` CLI ships with sdtk-kit ≥ 1.16.0) — do **not** hand-write staging files.
26
26
  2. **Harvest.** Scan sessions since the last harvest:
27
27
  - **Claude Code:** `~/.claude/projects/<project-slug>/*.jsonl` — extract per-session digests: user intents, tool usage, and correction signals (negative: "vẫn sai", "làm lại", "that's wrong", "I told you", "again"; positive: "perfect", "đúng rồi", "great").
28
- - **Codex:** *pending #247* — once `SDTK_BK316_CODEX_HARVEST_VALIDATION_R1_*.md` is merged, harvest per its validated format; until then, note "codex: skipped (pending #247)" in the report.
29
- - **Filters (both sources):** skip meta prompts (bare slash commands, pasted-text stubs, system noise) and skip any content carrying the `SDTK-EVOLVE CYCLE` marker (self-pollution guard).
28
+ - **Codex — format validated, harvest GATED:** the on-disk format is ground-truthed by `governance/ai/reviews/shared/SDTK_BK316_CODEX_HARVEST_VALIDATION_R1_20260710.md` (Codex CLI 0.144.1). When enabled, follow its rules exactly: scan `$CODEX_HOME/sessions/**/*.jsonl` recursively as the primary source (CODEX_HOME defaults to `~/.codex`) plus `archived_sessions/*.jsonl` as legacy input deduped by session id; extract ONLY canonical `response_item` records with `payload.type=="message" && payload.role=="user"`, taking `content[]` blocks of type `input_text` — never `event_msg` duplicates of the same turn, never developer-role records, never `<environment_context>`/AGENTS wrappers; require a filename-matching `session_meta` with non-empty `cwd` (project attribution) or skip the file fail-closed; pre-scan the WHOLE file for the self-pollution marker (v1 or legacy) and exclude the entire file on a match; never read tool `arguments`/`output`; stream large files rather than loading them whole. **Codex harvest remains gated until an integration proof shows the marker persists in a real Codex evolve session (report §7 condition 6)** — until then, note "codex: gated (marker persistence proof pending)" in the report and harvest Claude only.
29
+ - **Filters (both sources):** skip meta prompts (bare slash commands, pasted-text stubs, system noise) and skip any content carrying the `<!-- sdtk-evolve:harvest-session:v1 -->` marker or the legacy `SDTK-EVOLVE CYCLE` marker (self-pollution guard).
30
30
  3. **Score recurrence** for every adopted lesson: did its signature re-appear in post-adoption sessions? Render the verdict table — `WORKING` (no recurrence) or `FAILING` (recurred). A lesson FAILING for 2 consecutive cycles **must** get a `replace` or `delete` proposal before any new `add`. The same rule applies when `LEARNED.md` is over the 150-line cap.
31
31
  4. **Reflect.** From the harvested friction, draft **at most 4** edits targeting the lane sections of `LEARNED.md` (`## Chung`, `## SPEC`, `## CODE`, `## OPS`, `## DESIGN`). Prefer one excellent lesson over four mediocre ones. Write the draft to a scratch file using this contract:
32
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdtk-spec-kit",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "SDTK-SPEC CLI toolkit for deterministic software documentation workflows via the sdtk-spec command",
5
5
  "bin": {
6
6
  "sdtk-spec": "bin/sdtk.js"