prizmkit 1.0.105 → 1.0.106

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,5 +1,5 @@
1
1
  {
2
- "frameworkVersion": "1.0.105",
3
- "bundledAt": "2026-03-25T15:34:22.423Z",
4
- "bundledFrom": "c46942e"
2
+ "frameworkVersion": "1.0.106",
3
+ "bundledAt": "2026-03-25T15:56:50.507Z",
4
+ "bundledFrom": "d91f86f"
5
5
  }
@@ -80,7 +80,7 @@ cat .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md 2>/dev/null || echo "NO_PREV
80
80
  If failure-log.md exists:
81
81
  - Read ROOT_CAUSE and SUGGESTION — adjust your approach accordingly
82
82
  - Read DISCOVERED_TRAPS — if any are genuine, inject into .prizm-docs/ during Phase 4 retrospective
83
- - Do NOT delete failure-log.md until this session succeeds
83
+ - Do NOT delete failure-log.md until this session completes all phases and commits successfully
84
84
 
85
85
  ```bash
86
86
  ls .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md 2>/dev/null && echo "EXISTS" || echo "MISSING"
@@ -193,6 +193,11 @@ If you encounter an unrecoverable error, context overflow, or are about to exit
193
193
 
194
194
  2. This file is intentionally lightweight — write it BEFORE context runs out.
195
195
 
196
+ **Lifecycle**: failure-log.md is a temporary cross-session artifact. Do NOT commit it to git. After a successful session (all phases complete + commit done), delete it:
197
+ ```bash
198
+ rm -f .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md
199
+ ```
200
+
196
201
  ## Reminders
197
202
 
198
203
  - Tier 1: you handle everything directly — no subagents needed
@@ -91,7 +91,7 @@ cat .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md 2>/dev/null || echo "NO_PREV
91
91
  If failure-log.md exists:
92
92
  - Read ROOT_CAUSE and SUGGESTION — adjust your approach accordingly
93
93
  - Read DISCOVERED_TRAPS — if any are genuine, inject into .prizm-docs/ during Phase 5 retrospective
94
- - Do NOT delete failure-log.md until this session succeeds
94
+ - Do NOT delete failure-log.md until this session completes all phases and commits successfully
95
95
 
96
96
  ```bash
97
97
  ls .prizmkit/specs/{{FEATURE_SLUG}}/context-snapshot.md 2>/dev/null && echo "EXISTS" || echo "MISSING"
@@ -242,6 +242,11 @@ If you encounter an unrecoverable error, context overflow, or are about to exit
242
242
 
243
243
  2. This file is intentionally lightweight — write it BEFORE context runs out.
244
244
 
245
+ **Lifecycle**: failure-log.md is a temporary cross-session artifact. Do NOT commit it to git. After a successful session (all phases complete + commit done), delete it:
246
+ ```bash
247
+ rm -f .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md
248
+ ```
249
+
245
250
  ## Reminders
246
251
 
247
252
  - Tier 2: orchestrator builds context+plan, Dev implements, Reviewer reviews+tests — use direct Agent spawn for agents
@@ -154,7 +154,7 @@ cat .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md 2>/dev/null || echo "NO_PREV
154
154
  If failure-log.md exists:
155
155
  - Read ROOT_CAUSE and SUGGESTION — adjust your approach accordingly
156
156
  - Read DISCOVERED_TRAPS — if any are genuine, inject into .prizm-docs/ during Phase 6 retrospective
157
- - Do NOT delete failure-log.md until this session succeeds
157
+ - Do NOT delete failure-log.md until this session completes all phases and commits successfully
158
158
 
159
159
  Check existing artifacts first:
160
160
  ```bash
@@ -422,6 +422,11 @@ If you encounter an unrecoverable error, context overflow, or are about to exit
422
422
 
423
423
  2. This file is intentionally lightweight — write it BEFORE context runs out.
424
424
 
425
+ **Lifecycle**: failure-log.md is a temporary cross-session artifact. Do NOT commit it to git. After a successful session (all phases complete + commit done), delete it:
426
+ ```bash
427
+ rm -f .prizmkit/specs/{{FEATURE_SLUG}}/failure-log.md
428
+ ```
429
+
425
430
  ## Reminders
426
431
 
427
432
  - Tier 3: full team — Dev (implementation) → Reviewer (review + test) — spawn agents directly via Agent tool
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.105",
2
+ "version": "1.0.106",
3
3
  "skills": {
4
4
  "prizm-kit": {
5
5
  "description": "Full-lifecycle dev toolkit. Covers spec-driven development, Prizm context docs, code quality, debugging, deployment, and knowledge management.",
@@ -250,7 +250,7 @@ CONSTRAINTS:
250
250
  - TRAPS section is CRITICAL for preventing AI from making known mistakes
251
251
  - TRAPS entries MUST have severity prefix ([CRITICAL], [HIGH], or [LOW]). [REVIEW] may precede severity as a temporary staleness marker.
252
252
  - TRAPS optional fields: append `| REF: <7-char-hash>` for traceability, `| STALE_IF: <glob>` for auto-expiry detection
253
- - TRAPS severity guide: CRITICAL = data loss/security/financial/crash, HIGH = functional failure/silent error, LOW = naming/minor quality
253
+ - TRAPS severity: CRITICAL = data loss/security/financial/crash, HIGH = functional failure/silent error, LOW = naming/minor quality (see TRAPS_FORMAT_REFERENCE in Section 3.2)
254
254
  - REJECTED entries prevent AI from re-proposing failed approaches
255
255
  - FILES lists all files, not just key ones
256
256
  - RULES may only SUPPLEMENT root.prizm RULES with module-specific exceptions, never contradict them
@@ -78,8 +78,8 @@ While updating an affected L1/L2 doc, if you encounter TRAPS entries **without**
78
78
  **1g. TRAPS staleness check** (only when an L2 doc's TRAPS section has > 10 entries):
79
79
 
80
80
  Perform a quick staleness scan on existing TRAPS to prevent unbounded accumulation:
81
- 1. If a TRAP has `STALE_IF:` and the glob-matched files no longer exist (verified via `ls` or `git status`) → delete the TRAP entry, append CHANGELOG: `remove: archived stale TRAP - <summary>`
82
- 2. If a TRAP has `REF:` and the referenced code has been substantially rewritten (>80% of the original diff is gone, checked via `git log --follow`) → prepend `[REVIEW]` to the severity, signaling it needs manual verification
81
+ 1. If a TRAP has `STALE_IF:` and the glob-matched files no longer exist (verified via `ls`) → delete the TRAP entry, append CHANGELOG: `remove: archived stale TRAP - <summary>`
82
+ 2. If a TRAP has `REF:` check if the referenced file still exists and the REF commit is less than 180 days old (via `git log --since="180 days ago" <hash> 2>/dev/null`). If the file is deleted OR the REF commit is older than 180 days → prepend `[REVIEW]` to the severity, signaling it needs verification during the next retrospective Job 2
83
83
  3. Process at most 5 of the oldest TRAPS per L2 doc per session (to bound context cost)
84
84
 
85
85
  This step is lightweight — it only triggers when TRAPS exceed 10 entries, and processes at most 5 per run.
@@ -117,10 +117,10 @@ Extract TRAPS, RULES, and DECISIONS from development work and inject into `.priz
117
117
  - Full format: `- [SEVERITY] <description> | FIX: <approach> | REF: <hash> | STALE_IF: <glob>`
118
118
  - Source: actual bugs hit, surprising behavior discovered in code, non-obvious coupling
119
119
 
120
- **TRAPS severity classification guide**:
121
- - `[CRITICAL]`: data loss, security vulnerability, financial error, system crash
120
+ **TRAPS severity classification**:
121
+ - `[CRITICAL]`: data loss, security, financial error, system crash
122
122
  - `[HIGH]`: functional failure, silent error, interface incompatibility
123
- - `[LOW]`: misleading naming, non-intuitive API usage, minor performance issue
123
+ - `[LOW]`: misleading naming, non-intuitive API, minor performance issue
124
124
 
125
125
  When writing TRAPS:
126
126
  - Severity prefix is MANDATORY (e.g., `[CRITICAL]`, `[HIGH]`, `[LOW]`)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prizmkit",
3
- "version": "1.0.105",
3
+ "version": "1.0.106",
4
4
  "description": "Create a new PrizmKit-powered project with clean initialization — no framework dev files, just what you need.",
5
5
  "type": "module",
6
6
  "bin": {