prizmkit 1.1.154 → 1.1.155
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/bundled/VERSION.json +3 -3
- package/bundled/adapters/codex/skill-adapter.js +1 -1
- package/bundled/adapters/pi/skill-adapter.js +2 -1
- package/bundled/dev-pipeline/.env.example +2 -6
- package/bundled/dev-pipeline/README.md +21 -27
- package/bundled/dev-pipeline/prizmkit_runtime/checkpoint_state.py +341 -15
- package/bundled/dev-pipeline/prizmkit_runtime/cli.py +0 -3
- package/bundled/dev-pipeline/prizmkit_runtime/daemon.py +1 -15
- package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +48 -14
- package/bundled/dev-pipeline/prizmkit_runtime/runner_classification.py +50 -2
- package/bundled/dev-pipeline/prizmkit_runtime/runner_models.py +0 -9
- package/bundled/dev-pipeline/prizmkit_runtime/runner_prompts.py +3 -3
- package/bundled/dev-pipeline/prizmkit_runtime/runners.py +120 -22
- package/bundled/dev-pipeline/prizmkit_runtime/runtime_commit.py +482 -0
- package/bundled/dev-pipeline/prizmkit_runtime/test_result.py +64 -11
- package/bundled/dev-pipeline/scripts/generate-bootstrap-prompt.py +145 -367
- package/bundled/dev-pipeline/scripts/generate-bugfix-prompt.py +91 -62
- package/bundled/dev-pipeline/scripts/generate-refactor-prompt.py +105 -69
- package/bundled/dev-pipeline/scripts/prompt_framework.py +36 -41
- package/bundled/dev-pipeline/scripts/update-bug-status.py +1 -4
- package/bundled/dev-pipeline/scripts/update-checkpoint.py +61 -13
- package/bundled/dev-pipeline/scripts/update-feature-status.py +1 -4
- package/bundled/dev-pipeline/scripts/update-refactor-status.py +1 -4
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +22 -27
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +71 -104
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +59 -111
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +37 -72
- package/bundled/dev-pipeline/templates/sections/artifact-manifest.md +39 -0
- package/bundled/dev-pipeline/templates/sections/bugfix-critical-paths.md +3 -1
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-commit-report.md +8 -25
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-diagnose-plan.md +3 -3
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-implement.md +2 -2
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-review.md +3 -3
- package/bundled/dev-pipeline/templates/sections/bugfix-phase-test.md +2 -2
- package/bundled/dev-pipeline/templates/sections/bugfix-reminders.md +4 -4
- package/bundled/dev-pipeline/templates/sections/bugfix-session-context.md +0 -1
- package/bundled/dev-pipeline/templates/sections/checkpoint-system.md +7 -4
- package/bundled/dev-pipeline/templates/sections/context-budget-rules.md +14 -27
- package/bundled/dev-pipeline/templates/sections/feature-completion-summary.md +20 -0
- package/bundled/dev-pipeline/templates/sections/phase-commit-full.md +8 -71
- package/bundled/dev-pipeline/templates/sections/phase-implement-full.md +7 -7
- package/bundled/dev-pipeline/templates/sections/phase-prizmkit-test.md +3 -3
- package/bundled/dev-pipeline/templates/sections/phase-review-full.md +4 -4
- package/bundled/dev-pipeline/templates/sections/phase-specify-plan-full.md +5 -17
- package/bundled/dev-pipeline/templates/sections/refactor-critical-paths.md +3 -1
- package/bundled/dev-pipeline/templates/sections/refactor-phase-commit-report.md +10 -23
- package/bundled/dev-pipeline/templates/sections/refactor-phase-implement.md +2 -2
- package/bundled/dev-pipeline/templates/sections/refactor-phase-plan.md +2 -2
- package/bundled/dev-pipeline/templates/sections/refactor-phase-review.md +3 -3
- package/bundled/dev-pipeline/templates/sections/refactor-phase-test.md +2 -2
- package/bundled/dev-pipeline/templates/sections/refactor-reminders.md +7 -7
- package/bundled/dev-pipeline/templates/sections/refactor-session-context.md +0 -1
- package/bundled/dev-pipeline/templates/sections/retrospective.md +12 -0
- package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +35 -0
- package/bundled/dev-pipeline/templates/session-status-schema.json +45 -62
- package/bundled/dev-pipeline/tests/test_checkpoint_state.py +469 -18
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +262 -175
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +62 -23
- package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +76 -28
- package/bundled/dev-pipeline/tests/test_python_runner_parity.py +168 -18
- package/bundled/dev-pipeline/tests/test_recovery_workflow.py +111 -0
- package/bundled/dev-pipeline/tests/test_reset_preserve.py +0 -2
- package/bundled/dev-pipeline/tests/test_runtime_commit.py +608 -0
- package/bundled/dev-pipeline/tests/test_unified_cli.py +167 -25
- package/bundled/skills/_metadata.json +9 -9
- package/bundled/skills/app-planner/SKILL.md +3 -3
- package/bundled/skills/app-planner/references/generated-plan-review.md +2 -1
- package/bundled/skills/app-planner/references/rules/backend/derivation-rules.md +56 -64
- package/bundled/skills/app-planner/references/rules/backend/fixed-rules.md +85 -240
- package/bundled/skills/app-planner/references/rules/backend/question-bank.md +25 -25
- package/bundled/skills/app-planner/references/rules/backend/question-manifest.json +16 -7
- package/bundled/skills/app-planner/references/rules/backend/template.md +74 -92
- package/bundled/skills/app-planner/references/rules/database/derivation-rules.md +93 -93
- package/bundled/skills/app-planner/references/rules/database/fixed-rules.md +66 -173
- package/bundled/skills/app-planner/references/rules/database/question-bank.md +31 -26
- package/bundled/skills/app-planner/references/rules/database/question-manifest.json +13 -4
- package/bundled/skills/app-planner/references/rules/database/template.md +76 -98
- package/bundled/skills/app-planner/references/rules/frontend/derivation-rules.md +68 -95
- package/bundled/skills/app-planner/references/rules/frontend/fixed-rules.md +93 -166
- package/bundled/skills/app-planner/references/rules/frontend/question-bank.md +46 -36
- package/bundled/skills/app-planner/references/rules/frontend/question-manifest.json +11 -2
- package/bundled/skills/app-planner/references/rules/frontend/template.md +79 -257
- package/bundled/skills/app-planner/references/rules/mobile/derivation-rules.md +91 -99
- package/bundled/skills/app-planner/references/rules/mobile/fixed-rules.md +73 -246
- package/bundled/skills/app-planner/references/rules/mobile/question-bank.md +17 -17
- package/bundled/skills/app-planner/references/rules/mobile/question-manifest.json +17 -2
- package/bundled/skills/app-planner/references/rules/mobile/template.md +73 -85
- package/bundled/skills/app-planner/references/rules-configuration.md +133 -65
- package/bundled/skills/app-planner/scripts/validate-rules-configuration.py +291 -0
- package/bundled/skills/prizmkit/SKILL.md +17 -18
- package/bundled/skills/prizmkit/references/workflow-state-protocol.md +22 -18
- package/bundled/skills/prizmkit-code-review/SKILL.md +22 -58
- package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +6 -6
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +2 -2
- package/bundled/skills/prizmkit-committer/SKILL.md +82 -132
- package/bundled/skills/prizmkit-deploy/SKILL.md +27 -11
- package/bundled/skills/prizmkit-deploy/assets/deploy-document-template.md +89 -0
- package/bundled/skills/prizmkit-deploy/references/ci-cd-workflows.md +44 -14
- package/bundled/skills/prizmkit-deploy/references/cloud-platform-deploy.md +19 -3
- package/bundled/skills/prizmkit-deploy/references/database-setup.md +22 -12
- package/bundled/skills/prizmkit-deploy/references/deploy-config-schema.md +3 -1
- package/bundled/skills/prizmkit-deploy/references/deploy-history-schema.md +22 -6
- package/bundled/skills/prizmkit-deploy/references/deploy-metadata-schema.json +49 -0
- package/bundled/skills/prizmkit-deploy/references/live-validation-notes.md +1 -1
- package/bundled/skills/prizmkit-deploy/references/pending-input-schema.json +164 -0
- package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +9 -8
- package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +6 -6
- package/bundled/skills/prizmkit-implement/SKILL.md +30 -66
- package/bundled/skills/prizmkit-implement/references/implementation-subagent-procedure.md +4 -4
- package/bundled/skills/prizmkit-init/SKILL.md +4 -0
- package/bundled/skills/prizmkit-plan/SKILL.md +21 -64
- package/bundled/skills/prizmkit-plan/references/artifact-identity.md +38 -0
- package/bundled/skills/prizmkit-plan/references/independent-plan-review.md +4 -4
- package/bundled/skills/prizmkit-plan/references/review-plan-spec-loop.md +5 -5
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +11 -1
- package/bundled/skills/prizmkit-retrospective/SKILL.md +63 -77
- package/bundled/skills/prizmkit-retrospective/references/knowledge-injection-steps.md +3 -3
- package/bundled/skills/prizmkit-retrospective/references/retrospective-result-schema.json +138 -0
- package/bundled/skills/prizmkit-retrospective/references/structural-sync-steps.md +17 -23
- package/bundled/skills/prizmkit-test/SKILL.md +64 -51
- package/bundled/skills/prizmkit-test/references/boundary-contract-and-test-double-guidance.md +206 -0
- package/bundled/skills/prizmkit-test/references/independent-test-review.md +17 -9
- package/bundled/skills/prizmkit-test/references/test-coverage-model.md +45 -21
- package/bundled/skills/prizmkit-test/references/test-report-template.md +20 -13
- package/bundled/skills/prizmkit-workflow/SKILL.md +35 -37
- package/bundled/skills/prizmkit-workflow/references/artifact-identity.md +34 -0
- package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +22 -18
- package/bundled/skills/recovery-workflow/SKILL.md +2 -1
- package/bundled/skills/recovery-workflow/references/detection.md +4 -3
- package/bundled/skills/recovery-workflow/scripts/detect-recovery-state.py +15 -5
- package/package.json +1 -1
- package/src/scaffold.js +33 -22
- package/bundled/dev-pipeline/templates/sections/bugfix-artifacts.md +0 -16
- package/bundled/dev-pipeline/templates/sections/bugfix-session-status.md +0 -31
- package/bundled/dev-pipeline/templates/sections/critical-paths-agent.md +0 -7
- package/bundled/dev-pipeline/templates/sections/critical-paths-lite.md +0 -7
- package/bundled/dev-pipeline/templates/sections/directory-convention-agent.md +0 -9
- package/bundled/dev-pipeline/templates/sections/directory-convention-lite.md +0 -6
- package/bundled/dev-pipeline/templates/sections/headless-commit-authorization.md +0 -15
- package/bundled/dev-pipeline/templates/sections/phase-commit.md +0 -61
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-agent-suffix.md +0 -24
- package/bundled/dev-pipeline/templates/sections/phase-context-snapshot-lite-suffix.md +0 -12
- package/bundled/dev-pipeline/templates/sections/phase-implement-agent.md +0 -44
- package/bundled/dev-pipeline/templates/sections/phase-implement-lite.md +0 -25
- package/bundled/dev-pipeline/templates/sections/phase-plan-agent.md +0 -20
- package/bundled/dev-pipeline/templates/sections/phase-plan-lite.md +0 -20
- package/bundled/dev-pipeline/templates/sections/phase-review-agent.md +0 -20
- package/bundled/dev-pipeline/templates/sections/refactor-artifacts.md +0 -17
- package/bundled/dev-pipeline/templates/sections/refactor-session-status.md +0 -28
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-agent.md +0 -52
- package/bundled/dev-pipeline/templates/sections/test-failure-recovery-lite.md +0 -52
- package/bundled/skills/prizmkit-code-review/references/workflow-state-protocol.md +0 -174
- package/bundled/skills/prizmkit-committer/references/workflow-state-protocol.md +0 -174
- package/bundled/skills/prizmkit-implement/references/workflow-state-protocol.md +0 -174
- package/bundled/skills/prizmkit-plan/references/workflow-state-protocol.md +0 -174
- package/bundled/skills/prizmkit-retrospective/references/workflow-state-protocol.md +0 -174
- package/bundled/skills/prizmkit-test/references/external-contract-mock-guidance.md +0 -119
|
@@ -29,8 +29,8 @@ Do not create worktrees, copied repositories, remote checkouts, or branch switch
|
|
|
29
29
|
1. Read `context-snapshot.md` first when it exists.
|
|
30
30
|
2. Use Section 3 for relevant Prizm rules/traps and Section 4 File Manifest for file summaries.
|
|
31
31
|
3. Do not re-read files already summarized in the File Manifest unless a specific implementation detail is missing.
|
|
32
|
-
4. If no context snapshot exists, read `.prizmkit/prizm-docs/root.prizm`, relevant
|
|
33
|
-
5. If
|
|
32
|
+
4. If no context snapshot exists, read `.prizmkit/prizm-docs/root.prizm`, follow only relevant module/detail pointers, then read targeted source files.
|
|
33
|
+
5. If relevant detail documentation is missing, use source fallback and note the missing context without creating documentation.
|
|
34
34
|
|
|
35
35
|
## Implementation Rules
|
|
36
36
|
|
|
@@ -41,7 +41,7 @@ Do not create worktrees, copied repositories, remote checkouts, or branch switch
|
|
|
41
41
|
- Do not execute git `add`, `commit`, `reset`, `push`, branch checkout, rebase, merge, or stash operations.
|
|
42
42
|
- Do not spawn further agents.
|
|
43
43
|
- Do not perform broad repository rediscovery. Read only delegated files and targeted dependencies needed for correctness.
|
|
44
|
-
- Do not write
|
|
44
|
+
- Do not write internal execution IDs, branch names, absolute worktree paths, or runtime artifact paths into `.prizmkit/prizm-docs/`, user-visible UI text, API responses, emails, notifications, or expected product-copy tests.
|
|
45
45
|
- If creating a new sub-module, note the durable facts needed for retrospective; do not overwrite existing `.prizmkit/prizm-docs/` files in full.
|
|
46
46
|
|
|
47
47
|
## Output Format
|
|
@@ -61,7 +61,7 @@ Report exactly:
|
|
|
61
61
|
- command/check: result
|
|
62
62
|
|
|
63
63
|
### Notes for Main Agent
|
|
64
|
-
- durable decisions, missing
|
|
64
|
+
- durable decisions, missing detail documentation, or blockers
|
|
65
65
|
```
|
|
66
66
|
|
|
67
67
|
For `WRONG_CHECKOUT`, include only the checkout mismatch evidence and do not include normal implementation findings.
|
|
@@ -23,6 +23,10 @@ Recommended project initialization skill. Scans any brownfield or greenfield pro
|
|
|
23
23
|
- If artifacts already exist: idempotent status check offers regenerate/skip choices (see Phase 3: Idempotent Status Check)
|
|
24
24
|
- If no source files found in any directory: fall back to greenfield mode
|
|
25
25
|
|
|
26
|
+
### Artifact Ownership
|
|
27
|
+
|
|
28
|
+
All paths under `.prizmkit/` are framework-internal and remain outside automated task commits. Initialization must not stage or commit them. Root instruction or platform-support files written during setup also remain support data rather than task-owned source.
|
|
29
|
+
|
|
26
30
|
## Execution Steps
|
|
27
31
|
|
|
28
32
|
**Phase 1: Platform Detection**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-plan"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Create and review spec.md and plan.md artifacts for one supplied software requirement. Covers features, bug fixes, refactors, migrations, tests, and other scoped changes; returns PLAN_READY or PLAN_BLOCKED. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PrizmKit Plan
|
|
7
7
|
|
|
8
|
-
`/prizmkit-plan`
|
|
8
|
+
`/prizmkit-plan` converts one caller-supplied natural-language change into a reviewed change artifact: `spec.md` defines WHAT and WHY; `plan.md` defines HOW and executable tasks.
|
|
9
9
|
|
|
10
10
|
A change artifact can describe a feature, bug fix, refactor, migration, test improvement, or another scoped requirement.
|
|
11
11
|
|
|
@@ -19,47 +19,34 @@ A change artifact can describe a feature, bug fix, refactor, migration, test imp
|
|
|
19
19
|
## When NOT to Use
|
|
20
20
|
|
|
21
21
|
- Direct edit: typo, pure formatting, small documentation edit, or another explicitly low-risk non-requirement change.
|
|
22
|
-
- The
|
|
23
|
-
|
|
24
|
-
## Formal Lifecycle
|
|
25
|
-
|
|
26
|
-
A successful plan starts this fixed lifecycle:
|
|
27
|
-
|
|
28
|
-
```text
|
|
29
|
-
plan → implement → code-review → test → retrospective → committer
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Planning depth may be concise or comprehensive, but no later formal lifecycle stage may be silently skipped.
|
|
22
|
+
- The supplied artifact directory already has an adequate reviewed `spec.md` and `plan.md`; return the existing stage result instead of regenerating them.
|
|
33
23
|
|
|
34
24
|
## Input
|
|
35
25
|
|
|
36
26
|
| Parameter | Required | Description |
|
|
37
27
|
|---|---|---|
|
|
38
28
|
| `description` | Yes | Natural-language description of the requirement. |
|
|
39
|
-
| `artifact_dir` | No |
|
|
29
|
+
| `artifact_dir` | No | Exact caller-supplied directory for the change artifact. If omitted, create a deterministic numbered directory under `.prizmkit/specs/` using `${SKILL_DIR}/references/artifact-identity.md`. |
|
|
40
30
|
|
|
41
31
|
## Atomic Stage Boundary
|
|
42
32
|
|
|
43
|
-
`prizmkit-plan` owns
|
|
33
|
+
`prizmkit-plan` owns specification, plan, task generation, and planning-quality review for one supplied requirement. Its terminal outputs are `PLAN_READY` or `PLAN_BLOCKED`; it stops after producing that result.
|
|
44
34
|
|
|
45
35
|
## Phase 0: Initialization Check and Context
|
|
46
36
|
|
|
47
37
|
1. Check whether project context such as `.prizmkit/prizm-docs/root.prizm`, `.prizmkit/config.json`, or a project brief exists.
|
|
48
|
-
2. If initialization context is missing
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
- if the user continues, load the README, manifests, project instruction files, source structure, and relevant source files as fallback.
|
|
52
|
-
3. If Prizm docs exist, read `root.prizm`, relevant L1 docs, relevant L2 docs when present, and source fallback when L2 is absent.
|
|
53
|
-
4. Resolve `artifact_dir` once and reuse it for every later lifecycle handoff. Do not re-detect another artifact during the same requirement.
|
|
38
|
+
2. If initialization context is missing, do not block planning; load the README, manifests, project instruction files, source structure, and relevant source files as fallback.
|
|
39
|
+
3. If Prizm docs exist, read `root.prizm`, follow only its relevant module/detail pointers, and use source fallback when detailed documentation is absent.
|
|
40
|
+
4. Read `${SKILL_DIR}/references/artifact-identity.md`, validate or generate `artifact_dir` exactly once, and keep it stable throughout this planning invocation.
|
|
54
41
|
|
|
55
42
|
## Phase 1: Specify (`spec.md`)
|
|
56
43
|
|
|
57
44
|
Skip regeneration when `spec.md` already exists and still matches the requested requirement.
|
|
58
45
|
|
|
59
46
|
1. Gather the requirement description. If it is missing in an interactive run, ask the user; otherwise return a clear blocked result.
|
|
60
|
-
2. Determine the artifact directory
|
|
61
|
-
-
|
|
62
|
-
- otherwise
|
|
47
|
+
2. Determine the artifact directory through `${SKILL_DIR}/references/artifact-identity.md`:
|
|
48
|
+
- validate and preserve the exact caller-provided `artifact_dir` when present;
|
|
49
|
+
- otherwise derive the normalized title slug, allocate the next collision-safe number, and create `.prizmkit/specs/<number>-<slug>/`.
|
|
63
50
|
3. Generate `spec.md` from `${SKILL_DIR}/assets/spec-template.md`:
|
|
64
51
|
- focus on WHAT and WHY, not HOW;
|
|
65
52
|
- include only relevant sections;
|
|
@@ -86,7 +73,7 @@ Precondition: `spec.md` exists with no unresolved blocker.
|
|
|
86
73
|
- component and file changes;
|
|
87
74
|
- data migration approach when relevant;
|
|
88
75
|
- interface/API contract design when relevant;
|
|
89
|
-
- test strategy
|
|
76
|
+
- project-native test strategy appropriate to the requirement;
|
|
90
77
|
- risks and mitigations;
|
|
91
78
|
- behavior-preservation strategy for refactors.
|
|
92
79
|
5. Cross-check every spec goal against the plan.
|
|
@@ -98,7 +85,7 @@ Precondition: `spec.md` exists with no unresolved blocker.
|
|
|
98
85
|
2. Append `## Tasks` to `plan.md` using `${SKILL_DIR}/assets/plan-template.md`.
|
|
99
86
|
3. Include setup, foundation, core, polish, and checkpoint tasks only when applicable.
|
|
100
87
|
4. Mark `[P]` only for tasks that can safely execute independently.
|
|
101
|
-
5. Include implementation-local
|
|
88
|
+
5. Include appropriate implementation-local and regression verification tasks without executing them during planning.
|
|
102
89
|
6. Run `${SKILL_DIR}/references/verification-checklist.md` and repair plan defects.
|
|
103
90
|
|
|
104
91
|
## Phase 4: Plan/Spec Review Loop
|
|
@@ -113,7 +100,7 @@ Run every time `spec.md` or `plan.md` is created or changed. This is the mandato
|
|
|
113
100
|
6. If a `BLOCKER` remains, ask targeted questions in interactive mode; otherwise record `PLAN_BLOCKED` and stop.
|
|
114
101
|
7. Continue only when no unresolved blocker remains.
|
|
115
102
|
|
|
116
|
-
The planning review must not
|
|
103
|
+
The planning review must not modify product/source code or execute the planned verification strategy.
|
|
117
104
|
|
|
118
105
|
## Phase 5: Independent Plan Review
|
|
119
106
|
|
|
@@ -127,47 +114,17 @@ Run only after the Main-Agent Plan/Spec review converges. This optional check ne
|
|
|
127
114
|
6. If neither compliant continuation nor replacement is available after modification, record downgrade and rerun the Main-Agent local Plan/Spec review over that modification as specified by the reference.
|
|
128
115
|
7. If the final allowed response causes a modification, run targeted verification, record that the final state was not independently rechecked, and do not exceed the response budget.
|
|
129
116
|
8. Append the terminal `## Independent Plan Review` record. Appending that audit record does not trigger another response.
|
|
130
|
-
9. Any unresolved correction produces `PLAN_BLOCKED`; otherwise independent convergence or strict downgrade
|
|
131
|
-
|
|
132
|
-
## Phase 6: Workflow State and Handoff
|
|
133
|
-
|
|
134
|
-
Read `${SKILL_DIR}/references/workflow-state-protocol.md` and create or update:
|
|
135
|
-
|
|
136
|
-
```text
|
|
137
|
-
.prizmkit/state/workflows/<requirement-slug>.json
|
|
138
|
-
```
|
|
139
|
-
|
|
140
|
-
Follow the bundled protocol. At minimum record:
|
|
141
|
-
|
|
142
|
-
```json
|
|
143
|
-
{
|
|
144
|
-
"schema_version": 1,
|
|
145
|
-
"artifact_dir": ".prizmkit/specs/001-example",
|
|
146
|
-
"stage": "plan",
|
|
147
|
-
"status": "completed",
|
|
148
|
-
"stage_result": "PLAN_READY",
|
|
149
|
-
"completed_stages": ["plan"],
|
|
150
|
-
"repair_round": 0,
|
|
151
|
-
"repair_scope": null,
|
|
152
|
-
"next_stage": "implement",
|
|
153
|
-
"resume_from": "prizmkit-implement"
|
|
154
|
-
}
|
|
155
|
-
```
|
|
156
|
-
|
|
157
|
-
The state file is runtime metadata. Do not change the target project's Git or ignore policy.
|
|
117
|
+
9. Any unresolved correction produces `PLAN_BLOCKED`; otherwise independent convergence or strict downgrade produces `PLAN_READY`.
|
|
158
118
|
|
|
159
119
|
## Output
|
|
160
120
|
|
|
161
|
-
|
|
162
|
-
- Workflow state with `PLAN_READY` or a truthful blocked result.
|
|
163
|
-
- Planning depth, key decisions, task count, and checkpoint summary.
|
|
164
|
-
- The same `artifact_dir` for every downstream stage.
|
|
165
|
-
|
|
166
|
-
## Handoff
|
|
121
|
+
Return only planning-stage outputs:
|
|
167
122
|
|
|
168
|
-
|
|
123
|
+
- the resolved `artifact_dir`;
|
|
124
|
+
- `spec.md` and `plan.md` paths;
|
|
125
|
+
- planning depth, key decisions, and task count;
|
|
126
|
+
- `PLAN_READY` when artifacts pass planning review, otherwise `PLAN_BLOCKED` with unresolved planning blockers.
|
|
169
127
|
|
|
170
|
-
|
|
171
|
-
2. For direct stage use with no active orchestrator, report exactly one deterministic next action: `/prizmkit-implement`, with `stage_result=PLAN_READY`, the state-file path, and `artifact_dir`; a host may perform that semantic handoff on the user's behalf.
|
|
128
|
+
Return only the listed planning outputs. Do not invoke another Skill.
|
|
172
129
|
|
|
173
130
|
Read `${SKILL_DIR}/references/examples.md` only when a worked planning example is needed.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Planning Artifact Identity
|
|
2
|
+
|
|
3
|
+
Use one stable, project-relative artifact directory for the entire planning invocation.
|
|
4
|
+
|
|
5
|
+
## Generated Directory
|
|
6
|
+
|
|
7
|
+
When the caller does not provide `artifact_dir`:
|
|
8
|
+
|
|
9
|
+
1. Inspect only direct child directories of `.prizmkit/specs/` whose basenames match `<number>-<slug>`, where `<number>` is at least three decimal digits.
|
|
10
|
+
2. Choose one greater than the highest valid number, starting at `001`, and zero-pad to at least three digits. Numbers above `999` retain all digits.
|
|
11
|
+
3. Derive `<slug>` from the concise requirement title:
|
|
12
|
+
- normalize text with Unicode NFKC and lowercase where the script has a lowercase form;
|
|
13
|
+
- retain Unicode letters and decimal digits;
|
|
14
|
+
- replace every run of other characters with one ASCII hyphen;
|
|
15
|
+
- trim leading/trailing hyphens;
|
|
16
|
+
- truncate without splitting a Unicode code point until the slug is at most 64 code points and the complete `<number>-<slug>` basename is at most 200 UTF-8 bytes, then trim a trailing hyphen;
|
|
17
|
+
- use `requirement` if no letter or digit remains.
|
|
18
|
+
4. Create `.prizmkit/specs/<number>-<slug>/` without overwriting an existing path. If it appeared concurrently, rescan and retry with the next number; after three collisions, return `PLAN_BLOCKED`.
|
|
19
|
+
|
|
20
|
+
Examples:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
.prizmkit/specs/001-user-login/
|
|
24
|
+
.prizmkit/specs/070-skill-generated-artifact-contracts/
|
|
25
|
+
.prizmkit/specs/1000-支付回调/
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Caller-Supplied Directory
|
|
29
|
+
|
|
30
|
+
An explicit `artifact_dir` is preserved exactly; never slugify or relocate it. Before writing:
|
|
31
|
+
|
|
32
|
+
- require a project-relative path that resolves inside the active checkout;
|
|
33
|
+
- reject `.`/`..` components, control characters, symlink escape, and an empty basename;
|
|
34
|
+
- require a basename of 1-96 Unicode code points and at most 200 UTF-8 bytes, containing only letters, decimal digits, ASCII hyphens, or ASCII underscores, with a letter or digit at both ends;
|
|
35
|
+
- if existing `spec.md` or `plan.md` belongs to a different requirement, return `PLAN_BLOCKED` rather than overwrite it;
|
|
36
|
+
- if the directory already contains the same requirement, reuse it and preserve its identity.
|
|
37
|
+
|
|
38
|
+
The directory basename is the requirement identity exposed to callers. `spec.md` and `plan.md` are the only planning filenames in that directory.
|
|
@@ -54,7 +54,7 @@ spec_path: [EXACT_SPEC_PATH]
|
|
|
54
54
|
plan_path: [EXACT_PLAN_PATH]
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
The
|
|
57
|
+
The caller supplies these exact paths as planning-stage input even when ignored by Git. Never ask the Reviewer to discover a latest artifact or guess among multiple `spec.md` and `plan.md` files.
|
|
58
58
|
|
|
59
59
|
The Plan Reviewer receives only:
|
|
60
60
|
|
|
@@ -90,7 +90,7 @@ Execution boundaries:
|
|
|
90
90
|
- Complete this review personally.
|
|
91
91
|
- Do not create, schedule, resume, continue, request, or coordinate another execution unit.
|
|
92
92
|
- Do not ask the Main Agent to create a helper.
|
|
93
|
-
- Do not re-enter
|
|
93
|
+
- Do not re-enter delegation or another review process.
|
|
94
94
|
- Do not modify, create, delete, rename, stage, commit, or otherwise mutate files.
|
|
95
95
|
- Do not execute shell, Git, tests, builds, network calls, external processes, or any operation that can change state.
|
|
96
96
|
- Read only the supplied planning input at the exact paths and contents identified above.
|
|
@@ -133,7 +133,7 @@ All initial execution boundaries and the Reviewer Output Protocol remain mandato
|
|
|
133
133
|
|
|
134
134
|
## Reviewer Output Protocol
|
|
135
135
|
|
|
136
|
-
Return exactly one of these forms. Do not add severity, confidence, dimension,
|
|
136
|
+
Return exactly one of these forms. Do not add severity, confidence, dimension, caller-routing impact, or acceptance fields.
|
|
137
137
|
|
|
138
138
|
### No Correction Needed
|
|
139
139
|
|
|
@@ -181,7 +181,7 @@ Every correction contains only `Target`, `Problem`, `Evidence`, and `Correction`
|
|
|
181
181
|
No review verdict was produced.
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
`REVIEW_BLOCKED` is an internal independent-review result, not
|
|
184
|
+
`REVIEW_BLOCKED` is an internal independent-review result, not the planning-stage result.
|
|
185
185
|
|
|
186
186
|
## Main-Agent Adjudication
|
|
187
187
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Purpose
|
|
4
4
|
|
|
5
|
-
Run this local planning-quality gate after `spec.md` and `plan.md` are drafted or updated, before
|
|
5
|
+
Run this local planning-quality gate after `spec.md` and `plan.md` are drafted or updated, before returning `PLAN_READY`.
|
|
6
6
|
|
|
7
7
|
This is not a separate skill and it does not use a Critic agent. It is the mandatory Main-Agent baseline executed inside `prizmkit-plan` to improve the planning artifacts only. Its maximum of two local rounds remains independent of the optional Reviewer described in `independent-plan-review.md`.
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ Do not do any of the following from this guide:
|
|
|
12
12
|
|
|
13
13
|
- Start implementation or edit product/source code.
|
|
14
14
|
- Run tests, builds, lint, or package commands.
|
|
15
|
-
-
|
|
15
|
+
- Start implementation or any other execution process.
|
|
16
16
|
- Spawn or require a Critic agent inside this Main-Agent loop. The separate optional independent review is considered only after this loop converges and only through `independent-plan-review.md`.
|
|
17
17
|
- Create a separate review-loop skill.
|
|
18
18
|
- Expand scope beyond improving `spec.md` and `plan.md`.
|
|
@@ -75,7 +75,7 @@ Examples:
|
|
|
75
75
|
- Alternative task grouping with no correctness impact.
|
|
76
76
|
- A lower-risk cleanup suggestion outside current scope.
|
|
77
77
|
|
|
78
|
-
Optional findings do not block
|
|
78
|
+
Optional findings do not block planning completion.
|
|
79
79
|
|
|
80
80
|
## Loop Algorithm
|
|
81
81
|
|
|
@@ -92,10 +92,10 @@ Optional findings do not block handoff.
|
|
|
92
92
|
|
|
93
93
|
## Output Summary
|
|
94
94
|
|
|
95
|
-
At
|
|
95
|
+
At completion, include a short summary:
|
|
96
96
|
|
|
97
97
|
- Review rounds run: `1` or `2`.
|
|
98
98
|
- Fixes applied to `spec.md`: short list or `none`.
|
|
99
99
|
- Fixes applied to `plan.md`: short list or `none`.
|
|
100
100
|
- Optional findings deferred: short list or `none`.
|
|
101
|
-
- Unresolved blockers: `none` before
|
|
101
|
+
- Unresolved blockers: `none` before `PLAN_READY`.
|
|
@@ -111,9 +111,19 @@ Steps:
|
|
|
111
111
|
6. Validate migrated docs against format rules and size limits.
|
|
112
112
|
7. Report files processed, generated `.prizm` files, and manual review items.
|
|
113
113
|
|
|
114
|
+
## Recovery Backup Contract
|
|
115
|
+
|
|
116
|
+
Before replacing a corrupted `root.prizm`, copy its exact bytes outside the managed documentation tree:
|
|
117
|
+
|
|
118
|
+
```text
|
|
119
|
+
.prizmkit/backups/prizm-docs/root.prizm.bak
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
If that path exists, use the lowest available suffix `.001`, `.002`, and so on, for example `root.prizm.bak.001`. Never overwrite an earlier backup, never place backup files under `.prizmkit/prizm-docs/`, and never normalize or partially parse the backup content. Report the backup path before rebuilding. Backups are recovery copies, not Prizm documents or sources of durable knowledge.
|
|
123
|
+
|
|
114
124
|
## Error Handling
|
|
115
125
|
|
|
116
|
-
- `root.prizm` corrupted or invalid:
|
|
126
|
+
- `root.prizm` corrupted or invalid: create the byte-for-byte recovery backup above, then rebuild affected docs from source.
|
|
117
127
|
- Broken pointers: create the missing `.prizm` file if the source module exists; remove the pointer if the source module was deleted.
|
|
118
128
|
- Size limit exceeded: consolidate L0, move L1 implementation detail to L2, trim L2 derived detail.
|
|
119
129
|
- No git history: fall back to filesystem timestamps for freshness checks and warn that accuracy is reduced.
|
|
@@ -1,80 +1,76 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: "prizmkit-retrospective"
|
|
3
|
-
description: "
|
|
3
|
+
description: "Synchronize durable Prizm documentation for one caller-supplied project change, or record that no documentation update is warranted. Writes retrospective-result.json and returns RETRO_COMPLETE or RETRO_BLOCKED. (project)"
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# PrizmKit Retrospective
|
|
7
7
|
|
|
8
|
-
`/prizmkit-retrospective`
|
|
8
|
+
`/prizmkit-retrospective` synchronizes durable project documentation for one explicitly supplied project change.
|
|
9
9
|
|
|
10
10
|
It performs two jobs:
|
|
11
11
|
|
|
12
12
|
1. **Structural Sync** — reflect changed code structure, interfaces, dependencies, and file mappings in `.prizmkit/prizm-docs/` when the documentation system exists.
|
|
13
|
-
2. **Knowledge Injection** — add durable TRAPS, RULES, and DECISIONS
|
|
13
|
+
2. **Knowledge Injection** — add durable TRAPS, RULES, and DECISIONS revealed by the supplied project change.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
When no documentation update is warranted, it records `NO_DOC_CHANGE` rather than silently producing no result.
|
|
16
16
|
|
|
17
17
|
For first-time documentation setup, validation, rebuild, migration, or out-of-band repair after docs drift, use `/prizmkit-prizm-docs` independently.
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Input
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
```
|
|
21
|
+
| Parameter | Required | Description |
|
|
22
|
+
|---|---|---|
|
|
23
|
+
| `artifact_dir` | Yes | Exact caller-supplied directory in which to write `retrospective-result.json`. |
|
|
24
|
+
| `change_paths` | Yes | Exact project-relative non-`.prizmkit/` paths whose current change is the documentation input. May be an explicit empty list only when the caller requests a no-change determination. |
|
|
25
|
+
| `change_summary` | No | Caller-supplied summary used only as context; source changes remain authoritative. |
|
|
26
|
+
|
|
27
|
+
Do not discover a different artifact directory, expand the path set, or infer prerequisite work.
|
|
29
28
|
|
|
30
|
-
## Atomic
|
|
29
|
+
## Atomic Boundary
|
|
31
30
|
|
|
32
|
-
`prizmkit-retrospective` owns only structural documentation synchronization, durable knowledge injection, and retrospective
|
|
31
|
+
`prizmkit-retrospective` owns only structural documentation synchronization, durable knowledge injection, and `retrospective-result.json` for the supplied paths. It returns `RETRO_COMPLETE` or `RETRO_BLOCKED` and stops.
|
|
33
32
|
|
|
34
33
|
## When to Use
|
|
35
34
|
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
35
|
+
- A caller supplies exact project change paths that may affect durable documentation.
|
|
36
|
+
- A previously interrupted documentation synchronization is resumed with the same explicit inputs.
|
|
37
|
+
- The user explicitly requests a retrospective or documentation synchronization for a named change.
|
|
39
38
|
|
|
40
39
|
## When NOT to Use
|
|
41
40
|
|
|
42
|
-
- The
|
|
43
|
-
-
|
|
44
|
-
-
|
|
45
|
-
- First-time docs initialization or out-of-band docs repair; use `/prizmkit-prizm-docs` instead.
|
|
41
|
+
- The requested change paths are missing, unsafe, contradictory, or cannot be inspected.
|
|
42
|
+
- The request asks this Skill to discover what work should be documented.
|
|
43
|
+
- First-time docs initialization or out-of-band docs repair is needed; use `/prizmkit-prizm-docs` instead.
|
|
46
44
|
|
|
47
|
-
##
|
|
45
|
+
## Input Validation and Scope
|
|
48
46
|
|
|
49
|
-
1.
|
|
50
|
-
2.
|
|
51
|
-
3.
|
|
52
|
-
4.
|
|
53
|
-
5. If the
|
|
47
|
+
1. Resolve `artifact_dir` and every `change_paths` entry exactly as supplied.
|
|
48
|
+
2. Reject paths outside the checkout, paths under `.prizmkit/`, and paths that do not belong to the supplied project change.
|
|
49
|
+
3. Inspect only the supplied non-`.prizmkit/` project changes and the Prizm docs necessary to synchronize them.
|
|
50
|
+
4. Treat `change_summary` as supporting context only. Never infer durable facts from generated records or caller metadata when source/project files do not establish those facts.
|
|
51
|
+
5. If the input cannot safely establish the documentation scope, return `RETRO_BLOCKED` with the exact blocker.
|
|
54
52
|
|
|
55
|
-
|
|
53
|
+
Only targeted `.prizmkit/prizm-docs/` changes and `{artifact_dir}/retrospective-result.json` are outputs.
|
|
56
54
|
|
|
57
55
|
## Job 1: Structural Sync
|
|
58
56
|
|
|
59
|
-
When `.prizmkit/prizm-docs/` exists, read `${SKILL_DIR}/references/structural-sync-steps.md` and synchronize documentation with the
|
|
57
|
+
When `.prizmkit/prizm-docs/` exists, read `${SKILL_DIR}/references/structural-sync-steps.md` and synchronize documentation with the supplied project changes.
|
|
60
58
|
|
|
61
|
-
Review only
|
|
59
|
+
Review only supplied project files outside `.prizmkit/`:
|
|
62
60
|
|
|
63
61
|
- added, modified, deleted, and renamed source files;
|
|
64
62
|
- structural module files, configuration, interfaces, and tests when they reveal durable project behavior;
|
|
65
|
-
- documentation mappings affected by those
|
|
63
|
+
- documentation mappings affected by those project changes;
|
|
66
64
|
- stale pointers and stale traps implicated by those project changes;
|
|
67
65
|
- format, pointer, size, and memory-hygiene constraints for any docs the retrospective updates.
|
|
68
66
|
|
|
69
|
-
|
|
67
|
+
When `.prizmkit/prizm-docs/` does not exist, record `NO_DOC_CHANGE` with reason `PRIZM_DOCS_NOT_INITIALIZED` and recommend documentation initialization as a separate action.
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
Do not create an L2 document merely because one was missing during implementation. Create it only when the final change contains meaningful durable module knowledge.
|
|
69
|
+
Create a detail document only when the supplied change contains meaningful durable module knowledge.
|
|
74
70
|
|
|
75
71
|
## Job 2: Knowledge Injection
|
|
76
72
|
|
|
77
|
-
When the
|
|
73
|
+
When the supplied project change reveals durable knowledge, read `${SKILL_DIR}/references/knowledge-injection-steps.md` and inject only stable product/domain knowledge into Prizm docs.
|
|
78
74
|
|
|
79
75
|
Candidate knowledge includes:
|
|
80
76
|
|
|
@@ -83,73 +79,63 @@ Candidate knowledge includes:
|
|
|
83
79
|
- interface or contract changes;
|
|
84
80
|
- dependencies affecting module behavior;
|
|
85
81
|
- observable behavior changes;
|
|
86
|
-
- test-
|
|
82
|
+
- test-established boundaries or regression rules.
|
|
87
83
|
|
|
88
84
|
Do not write transient artifact paths, task IDs, branch names, dates, session/run metadata, or changelog material into Prizm docs.
|
|
89
85
|
|
|
90
86
|
When no durable structural or knowledge change exists, return `NO_DOC_CHANGE` and explain why.
|
|
91
87
|
|
|
92
|
-
## Verification
|
|
88
|
+
## Verification
|
|
93
89
|
|
|
94
90
|
1. Validate any updated docs using the project documentation rules.
|
|
95
|
-
2. Review the final diff and ensure only intended
|
|
96
|
-
3. Do not change the target project's Git
|
|
91
|
+
2. Review the final documentation diff and ensure only intended changes are present.
|
|
92
|
+
3. Do not change the target project's Git/ignore policy and do not stage or commit documentation changes. All paths under `.prizmkit/` are framework-internal and remain outside automated task commits.
|
|
97
93
|
4. Never claim documentation synchronization passed if validation failed.
|
|
98
94
|
|
|
99
|
-
##
|
|
95
|
+
## Result Artifact
|
|
100
96
|
|
|
101
|
-
|
|
97
|
+
Read `${SKILL_DIR}/references/retrospective-result-schema.json` and write `{artifact_dir}/retrospective-result.json` atomically:
|
|
102
98
|
|
|
103
99
|
```json
|
|
104
100
|
{
|
|
105
|
-
"
|
|
106
|
-
"
|
|
101
|
+
"schema_version": 1,
|
|
102
|
+
"outcome": "RETRO_COMPLETE",
|
|
107
103
|
"result": "DOCS_UPDATED",
|
|
108
104
|
"reason": "Durable module interfaces and traps changed",
|
|
109
|
-
"
|
|
110
|
-
"
|
|
105
|
+
"change_paths": ["src/example.py"],
|
|
106
|
+
"documentation_paths": [".prizmkit/prizm-docs/example/module.prizm"],
|
|
107
|
+
"validation": ["python3 core/templates/hooks/validate-prizm-docs.py --all"]
|
|
111
108
|
}
|
|
112
109
|
```
|
|
113
110
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
## Workflow State and Handoff
|
|
111
|
+
Every retrospective artifact has exactly these seven keys: `schema_version`, `outcome`, `result`, `reason`, `change_paths`, `documentation_paths`, and `validation`. Do not add routing, checkpoint, or caller-state fields.
|
|
117
112
|
|
|
118
|
-
|
|
113
|
+
`outcome` is `RETRO_COMPLETE` for a valid `DOCS_UPDATED` or `NO_DOC_CHANGE` result. Use `NO_DOC_CHANGE` with a concrete reason and an empty or unchanged `documentation_paths` list.
|
|
119
114
|
|
|
120
|
-
|
|
115
|
+
If documentation validation or synchronization cannot safely complete, atomically write the same seven-key shape with `result: null`:
|
|
121
116
|
|
|
122
117
|
```json
|
|
123
118
|
{
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
"
|
|
119
|
+
"schema_version": 1,
|
|
120
|
+
"outcome": "RETRO_BLOCKED",
|
|
121
|
+
"result": null,
|
|
122
|
+
"reason": "Exact validation or synchronization blocker",
|
|
123
|
+
"change_paths": ["src/example.py"],
|
|
124
|
+
"documentation_paths": [".prizmkit/prizm-docs/example/module.prizm"],
|
|
125
|
+
"validation": ["validation command or check that failed"]
|
|
130
126
|
}
|
|
131
127
|
```
|
|
132
128
|
|
|
133
|
-
|
|
129
|
+
For a blocked outcome, `reason` is the exact non-empty blocker, `change_paths` remains the exact supplied input, `documentation_paths` lists only files actually changed before blocking, and `validation` lists only checks actually attempted. Never use `DOCS_UPDATED`, `NO_DOC_CHANGE`, an empty success reason, or an invented validation command with `RETRO_BLOCKED`.
|
|
134
130
|
|
|
135
|
-
|
|
131
|
+
## Output
|
|
136
132
|
|
|
137
|
-
|
|
133
|
+
Return only:
|
|
138
134
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
-
|
|
142
|
-
-
|
|
143
|
-
-
|
|
144
|
-
- validation evidence;
|
|
145
|
-
- workflow state path and status;
|
|
146
|
-
- the same `artifact_dir` for the next stage.
|
|
147
|
-
|
|
148
|
-
After `RETRO_COMPLETE`:
|
|
149
|
-
|
|
150
|
-
```text
|
|
151
|
-
RETRO_COMPLETE
|
|
152
|
-
→ /prizmkit-committer
|
|
153
|
-
```
|
|
135
|
+
- `artifact_dir` and `retrospective-result.json` path;
|
|
136
|
+
- `RETRO_COMPLETE` with `DOCS_UPDATED` or `NO_DOC_CHANGE`;
|
|
137
|
+
- documentation paths updated or intentionally unchanged;
|
|
138
|
+
- durable knowledge decisions and validation evidence;
|
|
139
|
+
- `RETRO_BLOCKED` with exact blockers when synchronization cannot complete.
|
|
154
140
|
|
|
155
|
-
|
|
141
|
+
Return only the listed retrospective outputs. Do not invoke another Skill.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
- Targeted unchanged source, interfaces, callers, dependents, or tests only when an eligible diff raises a concrete ambiguity
|
|
8
8
|
- The affected Prizm docs only as update targets and existing-knowledge checks, never as changed project input
|
|
9
9
|
|
|
10
|
-
Do not scan or mine
|
|
10
|
+
Do not scan or mine generated records for retrospective knowledge. Caller metadata and existing Prizm docs may describe transient or generated material; they must not create a retrospective fact independently of an observed change in the exact non-`.prizmkit/` project paths supplied as input.
|
|
11
11
|
|
|
12
12
|
**2b.** Extract knowledge from what was **observed in code**, not invented:
|
|
13
13
|
|
|
@@ -41,10 +41,10 @@ When writing TRAPS:
|
|
|
41
41
|
|
|
42
42
|
**QUALITY GATE**: Every item must answer: "If a new AI session reads only `.prizmkit/prizm-docs/` and this entry, does it gain actionable understanding?" If not, discard. Do not record trivially observable code patterns — the AI can read the code directly.
|
|
43
43
|
|
|
44
|
-
**MEMORY HYGIENE GATE**: Before writing any `.prizmkit/prizm-docs/` entry, remove
|
|
44
|
+
**MEMORY HYGIENE GATE**: Before writing any `.prizmkit/prizm-docs/` entry, remove transient caller metadata. Never write CHANGELOG sections/files, UPDATED/date metadata, internal execution IDs, branch names, absolute worktree paths, or generated artifact paths. Write only durable product/domain facts established by the supplied project changes.
|
|
45
45
|
|
|
46
46
|
**2c.** Inject into the correct `.prizmkit/prizm-docs/` file:
|
|
47
|
-
- Module-level TRAPS/RULES/DECISIONS → the affected
|
|
47
|
+
- Module-level TRAPS/RULES/DECISIONS → the affected detail `.prizm` file. If the target detail document does not exist, create it from the detail-document generation template before injecting knowledge. These sections belong in detail documentation, not the module index.
|
|
48
48
|
- Project-level RULES/PATTERNS → `root.prizm` (respect the current format — MODULE_INDEX or MODULE_GROUPS — do not convert between them during injection)
|
|
49
49
|
- Cross-module concerns spanning 2+ modules → `root.prizm` CROSS_CUTTING section
|
|
50
50
|
|