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.
- package/bundled/VERSION.json +3 -3
- package/bundled/adapters/codebuddy/settings-adapter.js +76 -25
- package/bundled/dev-pipeline/prizmkit_runtime/gitops.py +9 -2
- package/bundled/dev-pipeline/prizmkit_runtime/heartbeat.py +9 -6
- package/bundled/dev-pipeline/prizmkit_runtime/runtime_commit.py +155 -93
- package/bundled/dev-pipeline/templates/bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/bootstrap-tier3.md +2 -2
- package/bundled/dev-pipeline/templates/bugfix-bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/refactor-bootstrap-prompt.md +1 -1
- package/bundled/dev-pipeline/templates/sections/runtime-commit-handoff.md +9 -15
- package/bundled/dev-pipeline/tests/test_generate_bootstrap_prompt.py +9 -5
- package/bundled/dev-pipeline/tests/test_generate_bugfix_prompt.py +4 -2
- package/bundled/dev-pipeline/tests/test_generate_refactor_prompt.py +4 -2
- package/bundled/dev-pipeline/tests/test_runtime_commit.py +228 -69
- package/bundled/dev-pipeline/tests/test_unified_cli.py +182 -10
- package/bundled/rules/prizm/prizm-commit-workflow.md +14 -7
- package/bundled/rules/prizm/prizm-documentation.md +24 -65
- package/bundled/rules/prizm/prizm-progressive-loading.md +9 -8
- package/bundled/skills/_metadata.json +1 -1
- package/bundled/skills/prizmkit-code-review/SKILL.md +5 -5
- package/bundled/skills/prizmkit-code-review/references/independent-code-review.md +4 -5
- package/bundled/skills/prizmkit-code-review/references/review-report-template.md +4 -6
- package/bundled/skills/prizmkit-code-review/scripts/render_review_report.py +1 -4
- package/bundled/skills/prizmkit-committer/SKILL.md +50 -59
- package/bundled/skills/prizmkit-deploy/SKILL.md +172 -198
- package/bundled/skills/prizmkit-deploy/references/capability-contract.md +137 -0
- package/bundled/skills/prizmkit-deploy/references/deploy-record-schema.json +1053 -0
- package/bundled/skills/prizmkit-deploy/references/deployment-declaration-schema.json +291 -0
- package/bundled/skills/prizmkit-deploy/references/legacy-migration.md +90 -0
- package/bundled/skills/prizmkit-deploy/references/policy-and-execution.md +170 -0
- package/bundled/skills/prizmkit-deploy/references/real-resource-test-policy.md +73 -0
- package/bundled/skills/prizmkit-deploy/references/verification-and-recovery.md +164 -0
- package/bundled/skills/prizmkit-deploy/scripts/validate-deploy-artifact.py +371 -0
- package/bundled/skills/prizmkit-implement/SKILL.md +2 -2
- package/bundled/skills/prizmkit-init/SKILL.md +17 -17
- package/bundled/skills/prizmkit-init/references/update-supplement.md +5 -5
- package/bundled/skills/prizmkit-prizm-docs/SKILL.md +17 -11
- package/bundled/skills/prizmkit-prizm-docs/assets/prizm-docs-format.md +95 -155
- package/bundled/skills/prizmkit-prizm-docs/references/op-init.md +6 -5
- package/bundled/skills/prizmkit-prizm-docs/references/op-rebuild.md +4 -2
- package/bundled/skills/prizmkit-prizm-docs/references/op-status.md +9 -10
- package/bundled/skills/prizmkit-prizm-docs/references/op-update.md +6 -5
- package/bundled/skills/prizmkit-prizm-docs/references/op-validate.md +13 -12
- package/bundled/skills/prizmkit-retrospective/SKILL.md +3 -3
- package/bundled/skills/prizmkit-test/SKILL.md +28 -15
- package/bundled/skills/prizmkit-test/references/boundary-contract-and-test-double-guidance.md +8 -4
- package/bundled/skills/prizmkit-test/references/independent-test-review.md +7 -3
- package/bundled/skills/prizmkit-test/references/test-coverage-model.md +34 -11
- package/bundled/skills/prizmkit-test/references/test-report-template.md +33 -11
- package/bundled/skills/prizmkit-workflow/SKILL.md +4 -8
- package/bundled/skills/prizmkit-workflow/references/workflow-state-protocol.md +10 -9
- package/bundled/templates/hooks/commit-intent-status.py +9 -41
- package/bundled/templates/hooks/commit-intent.json +3 -3
- package/bundled/templates/hooks/diff-prizm-docs.py +3 -1
- package/bundled/templates/hooks/prizm-pre-commit.py +32 -6
- package/bundled/templates/hooks/run-python-hook.cjs +44 -0
- package/bundled/templates/hooks/validate-prizm-docs.py +399 -173
- package/bundled/templates/project-memory-template.md +19 -19
- package/package.json +1 -1
- package/src/clean.js +6 -7
- package/src/gitignore-template.js +8 -12
- package/src/scaffold.js +125 -71
- package/bundled/skills/prizmkit-deploy/assets/deploy-document-template.md +0 -89
- package/bundled/skills/prizmkit-deploy/references/ci-cd-workflows.md +0 -145
- package/bundled/skills/prizmkit-deploy/references/cloud-platform-deploy.md +0 -109
- package/bundled/skills/prizmkit-deploy/references/data-safety-examples.md +0 -120
- package/bundled/skills/prizmkit-deploy/references/database-setup.md +0 -65
- package/bundled/skills/prizmkit-deploy/references/deploy-config-schema.md +0 -150
- package/bundled/skills/prizmkit-deploy/references/deploy-history-schema.md +0 -78
- package/bundled/skills/prizmkit-deploy/references/deploy-metadata-schema.json +0 -49
- package/bundled/skills/prizmkit-deploy/references/deployment-modes.md +0 -50
- package/bundled/skills/prizmkit-deploy/references/direct-upload.md +0 -26
- package/bundled/skills/prizmkit-deploy/references/dns-setup.md +0 -42
- package/bundled/skills/prizmkit-deploy/references/docker-deploy.md +0 -31
- package/bundled/skills/prizmkit-deploy/references/firewall-setup.md +0 -37
- package/bundled/skills/prizmkit-deploy/references/live-validation-notes.md +0 -21
- package/bundled/skills/prizmkit-deploy/references/nginx-blue-green.md +0 -59
- package/bundled/skills/prizmkit-deploy/references/pending-input-schema.json +0 -164
- package/bundled/skills/prizmkit-deploy/references/ssh-adapter-flow.md +0 -221
- package/bundled/skills/prizmkit-deploy/references/ssh-bootstrap-flow.md +0 -49
- package/bundled/skills/prizmkit-deploy/references/ssh-execution-flow.md +0 -41
- package/bundled/skills/prizmkit-deploy/references/ssh-takeover.md +0 -20
- 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
|
|
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
|
|
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
|
|
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
|
|
22
|
-
| `
|
|
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-
|
|
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
|
-
##
|
|
33
|
+
## Complete Git-Visible Workspace
|
|
36
34
|
|
|
37
|
-
|
|
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
|
-
|
|
37
|
+
- staged and unstaged tracked changes;
|
|
38
|
+
- added, modified, deleted, renamed, and copied paths;
|
|
39
|
+
- non-ignored untracked files.
|
|
47
40
|
|
|
48
|
-
|
|
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
|
-
|
|
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
|
-
|
|
53
|
-
<type>(<scope>): <description>
|
|
54
|
-
```
|
|
45
|
+
## Step 1: Validate Evidence and the Complete Final Workspace
|
|
55
46
|
|
|
56
|
-
|
|
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
|
-
|
|
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
|
-
|
|
58
|
+
## Step 2: Build the Commit Message
|
|
67
59
|
|
|
68
|
-
|
|
60
|
+
Generate one concise single-line Conventional Commit message describing the combined final workspace:
|
|
69
61
|
|
|
70
|
-
|
|
62
|
+
```text
|
|
63
|
+
<type>(<scope>): <description>
|
|
64
|
+
```
|
|
71
65
|
|
|
72
|
-
|
|
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
|
|
79
|
-
2. Ask the current user to confirm that
|
|
80
|
-
3.
|
|
81
|
-
4.
|
|
82
|
-
5.
|
|
83
|
-
6.
|
|
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`
|
|
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":
|
|
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`
|
|
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
|
-
-
|
|
113
|
-
-
|
|
114
|
-
-
|
|
115
|
-
5. Return `COMMIT_REQUEST_READY`,
|
|
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
|
-
|
|
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
|
|
125
|
+
Every blocked result includes concrete missing evidence, unsafe or incorrect content, stale authority, or validation errors. Return only the listed commit-operation outputs.
|