prizmkit 1.1.159 → 1.1.161

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 (83) hide show
  1. package/bundled/VERSION.json +3 -3
  2. package/bundled/adapters/codebuddy/settings-adapter.js +76 -25
  3. package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +9 -2
  4. package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +9 -6
  5. package/bundled/dev-pipeline/prizmkit_runtime/runtime_commit.py +155 -93
  6. package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
  7. package/bundled/dev-pipeline/templates/bootstrap-tier3.md +2 -2
  8. package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +1 -1
  9. package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +1 -1
  10. package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +9 -15
  11. package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +9 -5
  12. package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +4 -2
  13. package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +4 -2
  14. package/bundled/dev-pipeline/tests/test_runtime_commit.py +228 -69
  15. package/bundled/dev-pipeline/tests/test_unified_cli.py +182 -10
  16. package/bundled/rules/prizm/prizm-commit-workflow.md +14 -7
  17. package/bundled/rules/prizm/prizm-documentation.md +24 -65
  18. package/bundled/rules/prizm/prizm-progressive-loading.md +9 -8
  19. package/bundled/skills/_metadata.json +1 -1
  20. package/bundled/skills/prizmkit-code-review/SKILL.md +5 -5
  21. package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +4 -5
  22. package/bundled/skills/prizmkit-code-review/references/review-report-template.md +4 -6
  23. package/bundled/skills/prizmkit-code-review/scripts/render_review_report.py +1 -4
  24. package/bundled/skills/prizmkit-committer/SKILL.md +50 -59
  25. package/bundled/skills/prizmkit-deploy/SKILL.md +172 -198
  26. package/bundled/skills/prizmkit-deploy/references/capability-contract.md +137 -0
  27. package/bundled/skills/prizmkit-deploy/references/deploy-record-schema.json +1053 -0
  28. package/bundled/skills/prizmkit-deploy/references/deployment-declaration-schema.json +291 -0
  29. package/bundled/skills/prizmkit-deploy/references/legacy-migration.md +90 -0
  30. package/bundled/skills/prizmkit-deploy/references/policy-and-execution.md +170 -0
  31. package/bundled/skills/prizmkit-deploy/references/real-resource-test-policy.md +73 -0
  32. package/bundled/skills/prizmkit-deploy/references/verification-and-recovery.md +164 -0
  33. package/bundled/skills/prizmkit-deploy/scripts/validate-deploy-artifact.py +371 -0
  34. package/bundled/skills/prizmkit-implement/SKILL.md +2 -2
  35. package/bundled/skills/prizmkit-init/SKILL.md +17 -17
  36. package/bundled/skills/prizmkit-init/references/update-supplement.md +5 -5
  37. package/bundled/skills/prizmkit-prizm-docs/SKILL.md +17 -11
  38. package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +95 -155
  39. package/bundled/skills/prizmkit-prizm-docs/references/op-init.md +6 -5
  40. package/bundled/skills/prizmkit-prizm-docs/references/op-rebuild.md +4 -2
  41. package/bundled/skills/prizmkit-prizm-docs/references/op-status.md +9 -10
  42. package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +6 -5
  43. package/bundled/skills/prizmkit-prizm-docs/references/op-validate.md +13 -12
  44. package/bundled/skills/prizmkit-retrospective/SKILL.md +3 -3
  45. package/bundled/skills/prizmkit-test/SKILL.md +28 -15
  46. package/bundled/skills/prizmkit-test/references/boundary-contract-and-test-double-guidance.md +8 -4
  47. package/bundled/skills/prizmkit-test/references/independent-test-review.md +7 -3
  48. package/bundled/skills/prizmkit-test/references/test-coverage-model.md +34 -11
  49. package/bundled/skills/prizmkit-test/references/test-report-template.md +33 -11
  50. package/bundled/skills/prizmkit-workflow/SKILL.md +4 -8
  51. package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +10 -9
  52. package/bundled/templates/hooks/commit-intent-status.py +9 -41
  53. package/bundled/templates/hooks/commit-intent.json +3 -3
  54. package/bundled/templates/hooks/diff-prizm-docs.py +3 -1
  55. package/bundled/templates/hooks/prizm-pre-commit.py +32 -6
  56. package/bundled/templates/hooks/run-python-hook.cjs +44 -0
  57. package/bundled/templates/hooks/validate-prizm-docs.py +399 -173
  58. package/bundled/templates/project-memory-template.md +19 -19
  59. package/package.json +1 -1
  60. package/src/clean.js +6 -7
  61. package/src/gitignore-template.js +8 -12
  62. package/src/scaffold.js +125 -71
  63. package/bundled/skills/prizmkit-deploy/assets/deploy-document-template.md +0 -89
  64. package/bundled/skills/prizmkit-deploy/references/ci-cd-workflows.md +0 -145
  65. package/bundled/skills/prizmkit-deploy/references/cloud-platform-deploy.md +0 -109
  66. package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +0 -120
  67. package/bundled/skills/prizmkit-deploy/references/database-setup.md +0 -65
  68. package/bundled/skills/prizmkit-deploy/references/deploy-config-schema.md +0 -150
  69. package/bundled/skills/prizmkit-deploy/references/deploy-history-schema.md +0 -78
  70. package/bundled/skills/prizmkit-deploy/references/deploy-metadata-schema.json +0 -49
  71. package/bundled/skills/prizmkit-deploy/references/deployment-modes.md +0 -50
  72. package/bundled/skills/prizmkit-deploy/references/direct-upload.md +0 -26
  73. package/bundled/skills/prizmkit-deploy/references/dns-setup.md +0 -42
  74. package/bundled/skills/prizmkit-deploy/references/docker-deploy.md +0 -31
  75. package/bundled/skills/prizmkit-deploy/references/firewall-setup.md +0 -37
  76. package/bundled/skills/prizmkit-deploy/references/live-validation-notes.md +0 -21
  77. package/bundled/skills/prizmkit-deploy/references/nginx-blue-green.md +0 -59
  78. package/bundled/skills/prizmkit-deploy/references/pending-input-schema.json +0 -164
  79. package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +0 -221
  80. package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
  81. package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
  82. package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +0 -20
  83. package/bundled/skills/prizmkit-deploy/references/ssl-setup.md +0 -56
@@ -1,14 +1,14 @@
1
1
  ---
2
2
  name: "prizmkit-committer"
3
- description: "Perform one commit stage for a caller-supplied final change. Either preview and create an explicitly confirmed interactive local commit, or validate the final diff and write an exact runtime-commit-request.json without Git mutation. Returns only commit-stage results. (project)"
3
+ description: "Perform one commit stage for a caller-supplied final change. Either review, preview, confirm, and commit the complete Git-visible workspace interactively, or validate it and prepare a pathless Runtime commit request without Git mutation. Returns only commit-stage results. (project)"
4
4
  ---
5
5
 
6
6
  # PrizmKit Committer
7
7
 
8
- `/prizmkit-committer` handles one caller-supplied final change through one explicit operation:
8
+ `/prizmkit-committer` handles one caller-supplied final workspace through one explicit operation:
9
9
 
10
- - `operation=interactive-commit`: preview, confirm, stage, commit, and verify locally.
11
- - `operation=prepare-runtime-commit`: validate the intended change and write an exact commit request without staging or committing.
10
+ - `operation=interactive-commit`: inspect the complete Git-visible workspace, preview it, confirm it, stage it, commit it, and verify it locally.
11
+ - `operation=prepare-runtime-commit`: validate the complete Git-visible workspace and write a pathless Runtime request without staging or committing.
12
12
 
13
13
  Remote publication is outside this Skill.
14
14
 
@@ -18,69 +18,64 @@ Remote publication is outside this Skill.
18
18
  |---|---|---|
19
19
  | `artifact_dir` | Yes | Exact caller-supplied artifact root for this commit stage. |
20
20
  | `operation` | Yes | `interactive-commit` or `prepare-runtime-commit`. |
21
- | `evidence_paths` | Yes | Exact caller-supplied project-relative artifacts that establish commit readiness. |
22
- | `intended_paths` | Interactive only: Yes | Exact unique project-relative final paths approved by the caller for preview and staging. It is never inferred from `git add .` or workspace breadth. |
23
- | `support_validation_evidence` | Interactive conditional | Required when `intended_paths` contains an explicit support path. Supply one exact record per support path with `path`, named semantic `contract`, completed `validation`, `result=PASS`, and an exact `evidence_path` also present in `evidence_paths`. |
24
- | `excluded_paths` | No | Exact caller-owned metadata paths that must remain outside the commit and are also excluded by the selected operation's consumer contract. It is not an allowlist for unrelated project changes. |
21
+ | `evidence_paths` | Yes | Exact caller-supplied artifacts that establish final Review/Test/Retrospective readiness. |
22
+ | `causal_bookkeeping_path` | Interactive conditional | The one exact caller-owned coordinator state whose truthful finalization must follow this commit. It cannot exclude ordinary content. |
25
23
  | `request_path` | Preparation only | Must equal `{artifact_dir}/runtime-commit-request.json`. |
26
24
 
27
- Do not discover another artifact root or infer the operation from provider, platform, prompt style, or human availability.
25
+ There is no caller-supplied commit-path manifest, support-path admission record, or ownership classification. Do not discover another artifact root or infer the operation from provider, platform, prompt style, tracking policy, checkout cleanliness, or human availability.
28
26
 
29
27
  ## Stage Boundary
30
28
 
31
- This Skill owns only final-change inspection and its selected commit operation. It does not invoke another Skill.
29
+ This Skill owns only final-workspace inspection and its selected commit operation. It does not invoke another Skill or repair incorrect content.
32
30
 
33
- In preparation mode it must not stage, unstage, commit, amend, reset, merge, or push.
31
+ In preparation mode it must not stage, unstage, commit, amend, reset, merge, or push. It may write only the exact Runtime request after validation succeeds.
34
32
 
35
- ## Step 1: Validate Supplied Evidence and Final Change
33
+ ## Complete Git-Visible Workspace
36
34
 
37
- 1. Resolve `artifact_dir` and every `evidence_paths` entry exactly as supplied by the caller. For interactive operation, also resolve every exact `intended_paths` entry without broadening it.
38
- 2. Reject missing, unreadable, stale, contradictory, blocked, or explicitly non-passing evidence.
39
- 3. Inspect staged, unstaged, untracked, deleted, and renamed files with bounded Git status/diff commands.
40
- 4. Confirm every intended path belongs to the supplied change, a concrete dependency, its tests, durable documentation, or an explicitly caller-owned support artifact. Unknown or unrelated Git-visible changes block rather than entering the manifest.
41
- 5. For every explicit support path, require one unique `support_validation_evidence` record whose `path` equals that manifest entry, whose `evidence_path` is supplied and readable, and whose named contract, completed validation, and `result=PASS` agree with that evidence. Missing, generic, self-asserted, or non-passing support evidence blocks admission.
42
- 6. Reject unresolved merge state and sensitive files such as real environment files, credentials, secrets, private keys, certificates, or local settings.
43
- 7. Confirm no requested task output remains to be generated after this stage.
44
- 8. Never force-add an ignored file or modify Git/ignore policy. An intended durable documentation path that is not stageable under the project's existing policy blocks with the exact path and policy reason.
35
+ The candidate commit is the complete current Git-visible workspace:
45
36
 
46
- The caller decides which evidence is required and how the returned commit-stage result is used. This Skill validates the supplied evidence but does not infer a larger stage sequence.
37
+ - staged and unstaged tracked changes;
38
+ - added, modified, deleted, renamed, and copied paths;
39
+ - non-ignored untracked files.
47
40
 
48
- ## Step 2: Build Commit Message and Intended Path Set
41
+ Ignored files remain naturally absent, stay local, do not block, and are never force-added. Git visibility is independent of path provenance: product, test, documentation, `.prizmkit`, generated, instruction, lock, host-support, or previously existing content receives no namespace-based admission or exclusion. A non-clean starting checkout is acceptable when the combined final workspace is correct and fully validated.
49
42
 
50
- Generate one concise Conventional Commit message:
43
+ The only non-final Git-visible content that may remain outside a commit snapshot is exact active coordinator/Runtime bookkeeping whose final mutation cannot truthfully precede the commit: one validated caller-supplied interactive coordinator-state path, or the automated request/checkpoint and post-commit receipt. This is a causal operation boundary, not a directory allowlist, denylist, or general exclusion mechanism.
51
44
 
52
- ```text
53
- <type>(<scope>): <description>
54
- ```
45
+ ## Step 1: Validate Evidence and the Complete Final Workspace
55
46
 
56
- Classify every observed change before validating either operation.
47
+ 1. Resolve `artifact_dir`, every `evidence_paths` entry, the optional interactive `causal_bookkeeping_path`, and preparation `request_path` exactly as supplied. Reject any causal path not proven to be the active caller-owned coordinator state finalized after this operation.
48
+ 2. Reject missing, unreadable, stale, contradictory, blocked, or explicitly non-passing readiness evidence.
49
+ 3. Inventory staged, unstaged, untracked, deleted, renamed, and copied Git-visible files with bounded Git status and diff commands. Do not discover ignored files. Identify only the exact active causal bookkeeping path for the selected operation; every other visible path remains a candidate.
50
+ 4. Inspect every candidate path and its relevant diff/content. Correct pre-existing or requirement-adjacent changes may be included even when they were not created in the current implementation session.
51
+ 5. Require behavior-affecting content to be covered by the supplied final Code Review and Test authority. If production behavior changed after authoritative Review/Test, block with the exact stale-evidence reason so the caller can re-enter those stages.
52
+ 6. Reject unresolved merge state, known incorrect or incoherent changes, unreadable or unverifiable final content, real environment files, credentials, Secrets, private keys/certificates, dangerous local settings, and other sensitive material. Safety checks apply globally without namespace exceptions.
53
+ 7. Confirm no requested final output remains to be generated and that at least one commit candidate exists.
54
+ 8. Never force-add, change or interpret ignore policy, or reject a valid candidate merely because it is unrelated to the original requirement or came from a dirty checkout.
57
55
 
58
- - **task-owned**: justified source, tests, product/project documentation, configuration, and dependency changes outside recognized support namespaces;
59
- - **durable Prizm documentation**: exact stageable `.prizmkit/prizm-docs/**` paths listed by one supplied `retrospective-result.json` whose `outcome=RETRO_COMPLETE`, `result=DOCS_UPDATED`, non-empty `validation`, and `documentation_paths` exactly authorize those paths;
60
- - **explicit interactive support**: `AGENTS.md`, `skills-lock.json`, or another support path named by the exact spec/plan, covered one-to-one by passing `support_validation_evidence`, labeled separately in the interactive preview, and included in the user's confirmation;
61
- - **PrizmKit transient/internal**: `.prizmkit/specs/**`, `.prizmkit/state/**`, `.prizmkit/dev-pipeline/**`, config, plans/status, installed Runtime files, checkpoints, and other framework execution data;
62
- - **generated platform support**: installed platform directories and local platform settings not explicitly owned by the interactive requirement;
63
- - **project transient**: data the project already excludes through Git ignore rules;
64
- - **unknown Git-visible**: any remaining path whose task ownership cannot be proven.
56
+ The caller decides which readiness evidence is required and how the returned stage result is routed. This Skill validates supplied evidence and current content but does not infer a larger lifecycle.
65
57
 
66
- All paths under `.prizmkit/` are framework-internal and remain outside automated task commits.
58
+ ## Step 2: Build the Commit Message
67
59
 
68
- For `operation=interactive-commit`, validate the caller-supplied `intended_paths` as the complete approved manifest. It may contain task-owned paths, evidence-backed durable Prizm documentation, and explicitly owned support paths. Every entry must be exact, unique, project-relative, currently changed, stageable without force, and covered by the applicable evidence above. An instruction support file contract must validate readable structure, referenced project paths, consistency with the exact requirement and applicable project conventions, and secret absence. A lockfile support contract must validate parse/schema integrity and owning-installer or deterministic-regeneration parity. Another support class requires the exact project-native semantic validator named by the spec/plan; if no applicable validator exists, support admission blocks. The following remain prohibited: `.git/**`, every PrizmKit transient/internal path, installed platform payloads, local settings, secrets, temporary files, and unrelated or unknown changes.
60
+ Generate one concise single-line Conventional Commit message describing the combined final workspace:
69
61
 
70
- For `operation=prepare-runtime-commit`, preserve the existing automated consumer boundary: construct a unique exact set of task-owned changed paths outside recognized support namespaces, and exclude the complete `.prizmkit/` tree plus platform support and sensitive/unrelated files. Preparation mode preserves the Python Runtime's exact path-coverage contract and does not admit the interactive durable-documentation or support exceptions.
62
+ ```text
63
+ <type>(<scope>): <description>
64
+ ```
71
65
 
72
- Unknown Git-visible paths block the selected operation; do not silently classify them as transient. Project-specific transient data belongs in the project's Git ignore rules, not caller-provided exclusions. Do not use wildcard pathspecs, `git add .`, or `git add -A`. In preparation mode, reject an `excluded_paths` entry unless the Python Runtime independently excludes that exact caller-owned metadata class; unrelated or user-authored project changes cannot be hidden from exact-path coverage.
66
+ A heterogeneous but coherent workspace may use the narrowest truthful shared scope and description. If no truthful single commit description exists, block as incoherent content rather than silently omit files.
73
67
 
74
68
  ## Step 3A: Interactive Commit
75
69
 
76
70
  For `operation=interactive-commit`:
77
71
 
78
- 1. Present the exact `intended_paths`, change summary, sensitive-file warnings, diff statistics, proposed message, intentionally excluded changes, and a separate label for each admitted durable Prizm documentation or explicit support path.
79
- 2. Ask the current user to confirm that exact local commit.
80
- 3. Only after confirmation, stage with `git add -- <exact paths>` semantics: use exact pathspecs for tracked changes, deletions, and explicitly named new files; never stage workspace breadth.
81
- 4. Verify the staged diff exactly matches the confirmed manifest and contains no path added by a hook or incidental operation.
82
- 5. Create the local commit and verify its hash, message, committed paths, and remaining workspace changes against the confirmed manifest.
83
- 6. Return `COMMITTED`, the commit hash/message, committed paths, and intentional remaining changes.
72
+ 1. Present the complete Git-visible candidate set, the exact validated interactive causal bookkeeping path retained locally when visible, change summary, diff statistics, sensitive-content result, proposed message, and a clear statement that confirmation covers every candidate while ignored files stay local.
73
+ 2. Ask the current user to confirm that complete local commit.
74
+ 3. If the workspace changes after preview, repeat whole-workspace validation and preview before using the confirmation.
75
+ 4. Only after confirmation, stage the complete workspace with ordinary `git add -A -- .` semantics, then reset only the validated `causal_bookkeeping_path` in the index to `HEAD` when it is Git-visible. Never force-add ignored content or accept any other exclusion.
76
+ 5. Verify that the staged paths equal the in-memory confirmed candidate set, no non-ignored unstaged/untracked candidate remains outside the exact causal state, no incidental path appeared, and the staged snapshot still passes global sensitive-content checks.
77
+ 6. Create the local commit and verify its hash, single parent, message, committed path set, and remaining Git-visible workspace against the confirmed snapshot.
78
+ 7. Return `COMMITTED`, commit hash/message, committed paths, and any remaining ignored or causal bookkeeping content that is intentionally local.
84
79
 
85
80
  If confirmation is declined, return `COMMIT_DECLINED` without Git mutation.
86
81
 
@@ -89,33 +84,29 @@ If confirmation is declined, return `COMMIT_DECLINED` without Git mutation.
89
84
  For `operation=prepare-runtime-commit`:
90
85
 
91
86
  1. Require `request_path={artifact_dir}/runtime-commit-request.json`.
92
- 2. Read the current full `HEAD` hash as `base_head`.
93
- 3. Write this JSON atomically:
87
+ 2. Read the current full `HEAD` as `base_head`.
88
+ 3. Write this JSON atomically without Git mutation:
94
89
 
95
90
  ```json
96
91
  {
97
- "schema_version": 1,
92
+ "schema_version": 2,
98
93
  "artifact_dir": ".prizmkit/specs/example",
99
94
  "base_head": "<full current HEAD hash>",
100
- "commit_message": "feat(scope): concise description",
101
- "intended_paths": [
102
- "src/example.py",
103
- "tests/test_example.py"
104
- ]
95
+ "commit_message": "feat(scope): concise description"
105
96
  }
106
97
  ```
107
98
 
108
99
  4. Verify:
109
- - `artifact_dir` identifies the supplied artifact root;
100
+ - `artifact_dir` equals the supplied artifact root;
110
101
  - `base_head` equals current `HEAD`;
111
102
  - `commit_message` is one non-empty line;
112
- - `intended_paths` is non-empty, unique, exact, project-relative, and covers the complete task-owned Git-visible change outside recognized support namespaces;
113
- - no path escapes the checkout or enters `.prizmkit/`, another support namespace, or a sensitive location;
114
- - every unknown Git-visible path caused a block rather than an implicit exclusion.
115
- 5. Return `COMMIT_REQUEST_READY`, the request path, message, intended paths, and explicit confirmation that no Git mutation occurred.
103
+ - the request has no path manifest or caller-owned commit receipt;
104
+ - the complete current Git-visible workspace passed Step 1;
105
+ - the exact request and workflow checkpoint are treated only as causal Runtime bookkeeping when Git-visible.
106
+ 5. Return `COMMIT_REQUEST_READY`, request path, message, and explicit confirmation that no Git staging or commit mutation occurred.
116
107
  6. Stop.
117
108
 
118
- The request is preparation data. Its consumer independently validates it before any Git mutation.
109
+ Schema version 1 path-manifest requests are not silently reinterpreted as workspace authorization. The Python Runtime independently validates the schema, base, final workspace, safety, commit identity, recovery receipt, and post-commit checkpoint order.
119
110
 
120
111
  ## Output
121
112
 
@@ -131,4 +122,4 @@ Preparation operation returns exactly one of:
131
122
  COMMIT_REQUEST_READY | COMMIT_BLOCKED
132
123
  ```
133
124
 
134
- Every blocked result includes concrete missing evidence, unsafe paths, or validation errors. Return only the listed commit-operation outputs.
125
+ Every blocked result includes concrete missing evidence, unsafe or incorrect content, stale authority, or validation errors. Return only the listed commit-operation outputs.