@christang/keel 5.174.0 → 5.176.0
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/.claude-plugin/plugin.json +1 -1
- package/README.md +58 -22
- package/README.zh-CN.md +650 -128
- package/assets/bootstrap/AGENTS.md +3 -3
- package/assets/openspec/schemas/keel-spec-driven/schema.yaml +16 -15
- package/assets/openspec/schemas/keel-spec-driven/templates/tasks.md +6 -5
- package/bin/keel.js +5 -6
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/plugins/keel/.claude-plugin/plugin.json +1 -1
- package/plugins/keel/.codex-plugin/plugin.json +1 -1
- package/plugins/keel/skills/keel-debug-failure/SKILL.md +2 -2
- package/scripts/validate_plugin.py +291 -33
- package/src/core/chat/cli.js +1 -1
- package/src/core/config.js +3 -2
- package/src/core/task-contract.js +1 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
<!-- keel:start version=5.
|
|
1
|
+
<!-- keel:start version=5.176.0 -->
|
|
2
2
|
## Keel Bootstrap
|
|
3
3
|
|
|
4
4
|
- Start every session with `keel context`; OpenSpec artifacts and Git are the durable authority, and memory or transcripts may only inform.
|
|
5
5
|
- Obey the selected task capsule: `keel gate task-start` before implementing, `--record` its fingerprint to Evidence `Contract`, which `task-complete` requires, before checking complete. Touch bounds product writes; the change's own dir is exempt. On Claude a passing `task-start` guards it by default (`--no-guard` opts out).
|
|
6
|
-
- Work through an approved `tasks.md` in order, each task through its own gates. A subagent is the model's choice and is treated as the main agent is. No commit, sync, or archive
|
|
6
|
+
- Work through an approved `tasks.md` in order, each task through its own gates. A subagent is the model's choice and is treated as the main agent is. No commit, push, sync, or archive unless the task, the owner, or `keel/config.yaml` authorizes it.
|
|
7
7
|
- Route Full (the OpenSpec flow) for new features, interface or protocol changes, cross-module work, or over ~3 files / 100 lines; Lite for local fixes with no interface change. No gate checks routing; a project corrects the size bar with `full_mode_paths:` in `keel/config.yaml`, which `keel context` reports.
|
|
8
|
-
-
|
|
8
|
+
- SessionStart projections are disposable views, never authority; without the plugin, run the commands by hand.
|
|
9
9
|
- Keel skills and hooks come from the `keel` native plugin (`codex plugin add` / `claude plugin install`); `keel --init` owns only the OpenSpec schema, overlays, and this bootstrap.
|
|
10
10
|
<!-- keel:end -->
|
|
@@ -79,8 +79,7 @@ artifacts:
|
|
|
79
79
|
the compiled fingerprint into that Contract line, and task-complete
|
|
80
80
|
refuses a task that recorded none: without an anchor there is nothing for
|
|
81
81
|
completion to compare against, so the task has no drift detection. Omitted fields inherit
|
|
82
|
-
versioned keel-task-capsule/v1 defaults:
|
|
83
|
-
agent, Mode is implementation, Read is the change artifacts plus
|
|
82
|
+
versioned keel-task-capsule/v1 defaults: Mode is implementation, Read is the change artifacts plus
|
|
84
83
|
discovered repository context, Acceptance derives from the resolved
|
|
85
84
|
Covers authority, the Autonomy boundary is hard-stop, and Coupling is
|
|
86
85
|
none. Exceptional boundaries are declared only when they differ from
|
|
@@ -95,7 +94,8 @@ artifacts:
|
|
|
95
94
|
compact form.
|
|
96
95
|
Verify selects the least-cost strategy that still proves the resolved
|
|
97
96
|
Acceptance: vertical-tdd, regression-first, characterization,
|
|
98
|
-
snapshot-characterization, rendered-behavior,
|
|
97
|
+
snapshot-characterization, rendered-behavior, evidence-first, or
|
|
98
|
+
equivalence (which also declares `Base:` and `Fields:`).
|
|
99
99
|
Red-green strategies record per-label `.red` and `.green` Evidence in
|
|
100
100
|
addition to the bare `M<n>` Evidence, which is always required; all three
|
|
101
101
|
must be concrete before completion. An `M<n>` may carry a comma-separated
|
|
@@ -134,25 +134,26 @@ artifacts:
|
|
|
134
134
|
|
|
135
135
|
Use `Coupling: none` by default. When `Coupling: required`, define one
|
|
136
136
|
complete candidate, its allowed provisional failures, completion gate,
|
|
137
|
-
final assertions,
|
|
137
|
+
final assertions, immediate task-stop conditions, and
|
|
138
138
|
evidence. The task must agree with design.md's Coupled Iteration Contract.
|
|
139
139
|
|
|
140
|
-
`/opsx:apply`
|
|
141
|
-
|
|
140
|
+
`/opsx:apply` works through the unchecked tasks of this file in order. Any
|
|
141
|
+
repository file may be read needed for the selected task; Read lists required
|
|
142
142
|
starting context, not a read allowlist. The Slice Start Gate requires each
|
|
143
143
|
selected current slice or contiguous slice group to name source
|
|
144
144
|
expectations and compile to a capsule whose Read, Touch, Acceptance,
|
|
145
145
|
verification checks, and Stop/Autonomy boundaries are sufficient to
|
|
146
146
|
execute without guessing. Rough
|
|
147
147
|
future slices may remain drafts, but cannot be selected for
|
|
148
|
-
implementation or marked complete.
|
|
149
|
-
|
|
148
|
+
implementation or marked complete. Only files listed under Touch for the
|
|
149
|
+
selected task may be modified. If implementation requires files
|
|
150
150
|
outside Touch, broader design work, or an interface/security boundary
|
|
151
151
|
change not covered by design.md, stop and report an Out-of-scope Need.
|
|
152
|
-
Before task completion, Evidence records the
|
|
152
|
+
Before task completion, Evidence records the semantic
|
|
153
153
|
Review with Status, Acceptance check, Scope check, and Findings. Status is
|
|
154
154
|
one of pass, passed, complete, completed, ok, or done. Findings
|
|
155
|
-
are `none` or carry a
|
|
155
|
+
are `none` or carry a disposition — `Resolved here:` naming a check this
|
|
156
|
+
task declares or a path that exists, or a durable owner: a `Discard reason:`/`Discard
|
|
156
157
|
rationale:` prefix, an absolute `https://…` reference, or any
|
|
157
158
|
repo-relative path that exists, named after `Durable owner:` so it reads
|
|
158
159
|
as the owner rather than a file the finding mentions;
|
|
@@ -186,18 +187,18 @@ apply:
|
|
|
186
187
|
|
|
187
188
|
Apply workflow:
|
|
188
189
|
1. Read the current change's proposal.md, specs, design.md when present, and tasks.md.
|
|
189
|
-
2.
|
|
190
|
+
2. Take the first unchecked task of tasks.md; later ones follow in order (step 8).
|
|
190
191
|
3. Run the Task Authoring Gate: every relevant critical expectation must be covered by a selected slice, deferred to a durable owner, or explicitly discarded with rationale.
|
|
191
192
|
4. Run the Slice Start Gate: every selected current slice must name source expectations and compile to a complete keel-task-capsule/v1 contract from its compact Covers, Touch, Verify, and Evidence fields plus any declared exceptional Mode, Read, Acceptance delta, Autonomy boundary, Coupling/Candidate Boundary, or Stop if clauses.
|
|
192
|
-
5. If a selected task lacks an execution contract, source expectations, or accepted hidden-knowledge assumptions raised by risk-triggered deep alignment or a domain lens, update OpenSpec first instead of
|
|
193
|
+
5. If a selected task lacks an execution contract, source expectations, or accepted hidden-knowledge assumptions raised by risk-triggered deep alignment or a domain lens, update OpenSpec first instead of starting implementation.
|
|
193
194
|
6. Rough future slices may remain non-executable drafts, but they cannot be selected for implementation or marked complete.
|
|
194
195
|
7. Treat any Execution recommendation as an advisory implementation note, not as a completion gate.
|
|
195
196
|
8. Work through the unchecked tasks of an approved `tasks.md` in order, each through its own `keel gate task-start` and `keel gate task-complete`; every stop trigger still halts. A subagent is the model's choice and is treated as the main agent is.
|
|
196
197
|
9. Use the current checkout and selected task contract. Verification failure or context pressure preserves the checkout; continue from evidence, record a blocker, or explicitly roll back to last-green only when authorized.
|
|
197
198
|
10. When `Coupling: required`, verify design.md contains a Coupled Iteration Contract and that the task defines a complete candidate, completion gate, and evidence. If not, update OpenSpec instead of execution.
|
|
198
|
-
11.
|
|
199
|
+
11. Any repository file needed for the selected task may be read; reading does not expand write authority.
|
|
199
200
|
12. Modify only files listed under Touch. If modifying any other file is required, stop and report an Out-of-scope Need with file or area, why needed, consequence if unchanged, minimal proposed change, and evidence.
|
|
200
|
-
13. Do not commit or push unless the selected task
|
|
201
|
+
13. Do not commit or push unless the selected task, a human instruction, or a standing authorization in `keel/config.yaml` allows it.
|
|
201
202
|
14. After each iteration, compare Changed Files and command evidence with the selected task contract before checking tasks complete.
|
|
202
|
-
15. Run `keel-review-checklist` only at completion gates: after a complete task group, before `/opsx:sync openspec/changes/<change>/tasks.md` or `/opsx:archive openspec/changes/<change>/tasks.md`, before meaningful handoff, or when implementation reports risks, follow-ups, or out-of-scope need.
|
|
203
|
+
15. Run `keel-review-checklist` only at completion gates: after a complete task group, before `/opsx:sync openspec/changes/<change>/tasks.md` or `/opsx:archive openspec/changes/<change>/tasks.md`, before meaningful handoff, or when implementation reports risks, follow-ups, or out-of-scope need. No hook gates completion; running the gates is the agent's own step.
|
|
203
204
|
16. Before archive or handoff, unresolved follow-ups must be owned by current OpenSpec tasks, a new OpenSpec change, archive evidence, or an explicit discard reason.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<!-- Compact v4 task source (keel-task-capsule/v1, defaults version 1).
|
|
2
2
|
Record only task-specific authority. Omitted fields inherit versioned
|
|
3
|
-
defaults:
|
|
3
|
+
defaults: Mode is implementation, Read
|
|
4
4
|
is the change proposal/design/specs/tasks plus discovered repository
|
|
5
5
|
context, Acceptance derives from Covers, Coupling defaults to none, and a
|
|
6
6
|
subagent is the model's choice, treated as the main agent is. The next
|
|
@@ -23,7 +23,8 @@
|
|
|
23
23
|
- Verify:
|
|
24
24
|
<!-- verification discipline: Strategy is REQUIRED and is one of
|
|
25
25
|
vertical-tdd, regression-first, characterization,
|
|
26
|
-
snapshot-characterization, rendered-behavior,
|
|
26
|
+
snapshot-characterization, rendered-behavior, evidence-first, or
|
|
27
|
+
equivalence (which also declares Base: and Fields:).
|
|
27
28
|
Nothing is supplied by default, because the value an omission
|
|
28
29
|
would select is the one with no red-green requirement.
|
|
29
30
|
evidence-first additionally carries a `Reason:` entry beside
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
- M1: pending
|
|
51
52
|
- Review:
|
|
52
53
|
<!-- Status: one of pass, passed, complete, completed, ok, done -->
|
|
53
|
-
<!-- Findings: none, or
|
|
54
|
+
<!-- Findings: none, or "Resolved here:" naming a check this task declares or a path that exists, or a durable owner — a "Discard reason:"/"Discard rationale:" prefix, an absolute https://… reference, or any repo-relative path that exists (keel/archive/…, an openspec/changes/… artifact, or the repository's own ledger) named after "Durable owner:"; not keel/HANDOFF.md, which is a pointer override -->
|
|
54
55
|
- Status: pending
|
|
55
56
|
- Acceptance check: pending
|
|
56
57
|
- Scope check: pending
|
|
@@ -66,13 +67,13 @@
|
|
|
66
67
|
sync, archive, or mark tasks complete
|
|
67
68
|
- Read: additional required starting context beyond the base set
|
|
68
69
|
- Acceptance: a task-specific observable delta the Covers authority does not express
|
|
69
|
-
- Execution recommendation / Rationale: advisory notes for the
|
|
70
|
+
- Execution recommendation / Rationale: advisory notes for whoever executes the task
|
|
70
71
|
- Autonomy boundary: a pre-authorized fallback with its exact reversible bound and required evidence
|
|
71
72
|
- Coupling: required, with the design.md Coupled Iteration Contract, one
|
|
72
73
|
complete candidate, Candidate Boundary, completion-gate final assertions,
|
|
73
74
|
and candidate-level Stop Rules
|
|
74
75
|
- Stop if: extra hard limits beyond the standard prohibitions
|
|
75
|
-
Requires modifying files outside Touch
|
|
76
|
+
`Requires modifying files outside Touch.` always remains a stop condition. -->
|
|
76
77
|
|
|
77
78
|
## 2. <!-- Task Group Name -->
|
|
78
79
|
|
package/bin/keel.js
CHANGED
|
@@ -99,6 +99,8 @@ Usage:
|
|
|
99
99
|
keel shift request|check|ready|start|resume|status ... (a role's shift change; see keel shift --help)
|
|
100
100
|
keel lock acquire|release|list ... (shared resource leases; see keel lock --help)
|
|
101
101
|
keel worktrees [--repo <path>] [--issues <file>] [--json] (read-only worktree overview)
|
|
102
|
+
keel patrol [--issues <file>] [--idle <dur>] [--since-last [--notify]] [--nudge] [--json] [--repo <path>] (the coordinator's patrol; keel patrol task prints its schedule)
|
|
103
|
+
keel tick [--repo <path>] [--json] (one model-free step for a host scheduler; keel tick task prints the job)
|
|
102
104
|
keel openspec [args...]
|
|
103
105
|
keel --init [repo] [--target claude|codex|opencode] [--dry-run] [--force-template-update]
|
|
104
106
|
keel --install [repo] [--target claude|codex|opencode] [--dry-run] [--force-template-update] [--with-git-hooks]
|
|
@@ -1085,7 +1087,7 @@ function updateClaudePlugin(options) {
|
|
|
1085
1087
|
updateLine(
|
|
1086
1088
|
component,
|
|
1087
1089
|
versionChange(installed.version, after && after.version),
|
|
1088
|
-
"running sessions use it at their next hook call; their skills
|
|
1090
|
+
"running sessions use it at their next hook call; their skills after /reload-plugins"
|
|
1089
1091
|
);
|
|
1090
1092
|
return true;
|
|
1091
1093
|
}
|
|
@@ -1718,7 +1720,6 @@ function keelOpenSpecOverlay(action) {
|
|
|
1718
1720
|
"- Sync completion is gated by `keel gate change-close --action sync` plus `keel-review-checklist`; there is no runtime hook for it, so running the gate is the agent's own step.",
|
|
1719
1721
|
"- Before syncing, each related critical expectation must have behavior evidence, a durable follow-up owner, or an explicit discard reason.",
|
|
1720
1722
|
SUBAGENT_SENTENCE,
|
|
1721
|
-
"- Invoke OpenSpec through `keel openspec` (for example `keel openspec validate`); a bare `openspec` command may not be on PATH.",
|
|
1722
1723
|
"- Syncing promotes the change's spec delta into `openspec/specs/`. A later archive of the same change must use `--skip-specs`, because archive is not idempotent over an already-promoted delta.",
|
|
1723
1724
|
];
|
|
1724
1725
|
if (action === "sync") {
|
|
@@ -1740,19 +1741,17 @@ function keelOpenSpecOverlay(action) {
|
|
|
1740
1741
|
? [
|
|
1741
1742
|
"- Work through the unchecked tasks of an approved `tasks.md` in order, each started by `keel gate task-start` and completed by `keel gate task-complete`; every stop trigger still halts.",
|
|
1742
1743
|
"- Run the Task Authoring Gate: each relevant critical expectation must be covered by a slice, deferred to a durable owner, or explicitly discarded.",
|
|
1743
|
-
"- Run the Slice Start Gate: selected current slices must name source expectations and
|
|
1744
|
+
"- Run the Slice Start Gate: selected current slices must name source expectations and compile to a capsule whose Read, Touch, Acceptance, Verify checks, and Stop/Autonomy boundaries are complete before implementation.",
|
|
1744
1745
|
"- Rough future slices may remain drafts, but cannot be selected for implementation or marked complete.",
|
|
1745
|
-
"- Obey the selected task contract: Read is required starting context, Touch is the write boundary,
|
|
1746
|
+
"- Obey the selected task contract: Read is required starting context, Touch is the write boundary, Verify checks prove Acceptance, and the Autonomy boundary controls fallback decisions.",
|
|
1746
1747
|
"- When implementation exposes a material expectation, acceptance boundary, or user-owned decision absent from durable authority, stop before implementing that choice, rerun `keel-align-expectations`, and reauthor the affected proposal/design/spec/task authority first.",
|
|
1747
1748
|
"- A discovered repository fact that does not change accepted behavior or scope may be recorded and execution continues inside the existing task boundary without a product interview.",
|
|
1748
|
-
"- Invoke OpenSpec through `keel openspec` (for example `keel openspec validate`); a bare `openspec` command may not be on PATH.",
|
|
1749
1749
|
"- Consult the repository's standing authorization in `keel/config.yaml` before asking the user to confirm a repository action: a standing-authorized action proceeds without a per-occurrence confirmation, and an undeclared action still requires the confirmation it requires today.",
|
|
1750
1750
|
"- A standing authorization covers the action and never substitutes for a gate, evidence, or Review; it removes the confirmation, not the record, and it is not a trigger to perform the action.",
|
|
1751
1751
|
]
|
|
1752
1752
|
: [
|
|
1753
1753
|
"- Archive completion is gated by `keel gate change-close --action archive` plus `keel-review-checklist`; verify task evidence, follow-up ownership, and completion gates before proceeding.",
|
|
1754
1754
|
"- Before final sync/archive, each related critical expectation must have behavior evidence, a durable follow-up owner, or an explicit discard reason.",
|
|
1755
|
-
"- Invoke OpenSpec through `keel openspec` (for example `keel openspec validate`); a bare `openspec` command may not be on PATH.",
|
|
1756
1755
|
"- When `/opsx:sync` has already promoted the change's spec delta, run the archive with `--skip-specs` so the promoted delta is not re-applied; archive is not idempotent over an already-synced delta.",
|
|
1757
1756
|
"- After archiving, run `keel guard clear` to drop the change's guard manifest; the read-only gate never clears it for you.",
|
|
1758
1757
|
"- A repository that standing-authorizes `archive` in `keel/config.yaml` does not need the per-occurrence archive confirmation; a repository that declares nothing still needs it.",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@christang/keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.176.0",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@christang/keel",
|
|
9
|
-
"version": "5.
|
|
9
|
+
"version": "5.176.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@fission-ai/openspec": "^1.4.1"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.176.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "keel",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.176.0",
|
|
4
4
|
"description": "Keel OpenSpec execution discipline: stateless continuity, task capsules, deterministic gates, and expectation alignment for Codex and Claude Code.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "TanglmChris",
|
|
@@ -21,8 +21,8 @@ When the change's artifacts or the failing surface signal a domain, consult the
|
|
|
21
21
|
There is no fixed attempt count: keep going while each attempt adds evidence, and stop when one does not. When you stop, report the original key error plus what changed during each attempt.
|
|
22
22
|
|
|
23
23
|
For `Coupling: required`, an allowed provisional failure inside a candidate is
|
|
24
|
-
|
|
25
|
-
candidate completion gate. Follow the task's immediate task-stop
|
|
24
|
+
expected rather than a stop; the evidence that matters is the final assertion
|
|
25
|
+
at the candidate completion gate. Follow the task's immediate task-stop
|
|
26
26
|
rules for scope breach, missing design authority, non-reproducible evidence,
|
|
27
27
|
or a baseline or acceptance change during a candidate.
|
|
28
28
|
|