cadre-ai 3.2.0 → 3.4.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/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +127 -0
- package/README.md +20 -22
- package/dist/cadre-cli.mjs +2 -2
- package/dist/cadre-mcp.mjs +1510 -652
- package/package.json +1 -1
- package/skills/archive/SKILL.md +6 -6
- package/skills/create/SKILL.md +5 -4
- package/skills/implement/SKILL.md +34 -83
- package/skills/implement/references/conflict-handling.md +5 -0
- package/skills/implement/references/governed-mode.md +7 -0
- package/skills/implement/references/parallel-workers.md +9 -0
- package/skills/implement/references/resume-recovery.md +10 -0
- package/skills/refresh/SKILL.md +4 -4
- package/skills/revert/SKILL.md +6 -6
- package/skills/review/SKILL.md +7 -7
- package/skills/revise/SKILL.md +6 -6
- package/skills/status/SKILL.md +1 -1
- package/skills/track/SKILL.md +5 -5
- package/templates/v2/init/archive/.gitkeep +1 -0
- package/templates/v2/init/gitignore.template +8 -0
- package/templates/v2/init/guidelines.md +25 -0
- package/templates/v2/init/operations/.gitkeep +1 -0
- package/templates/v2/init/patterns/index.md +6 -0
- package/templates/v2/init/product.md +30 -0
- package/templates/v2/init/project.json +27 -0
- package/templates/v2/init/refreshes/.gitkeep +1 -0
- package/templates/v2/init/styleguides/general.md +14 -0
- package/templates/v2/init/styleguides/language.md +21 -0
- package/templates/v2/init/tech-stack.md +21 -0
- package/templates/v2/init/tracks/.gitkeep +1 -0
- package/templates/v2/init/tracks.md +6 -0
- package/templates/v2/init/wisps/.gitkeep +1 -0
- package/templates/v2/init/workflow.md +72 -0
- package/templates/v2/project/archive-operation.json +19 -0
- package/templates/v2/project/pattern.md +20 -0
- package/templates/v2/project/refresh-operation.json +18 -0
- package/templates/v2/project/refresh.md +21 -0
- package/templates/v2/styleguides/dart.md +27 -0
- package/templates/v2/styleguides/flutter.md +27 -0
- package/templates/v2/styleguides/go.md +29 -0
- package/templates/v2/styleguides/gradle.md +28 -0
- package/templates/v2/styleguides/html-css.md +39 -0
- package/templates/v2/styleguides/index.md +27 -0
- package/templates/v2/styleguides/java.md +27 -0
- package/templates/v2/styleguides/javascript.md +27 -0
- package/templates/v2/styleguides/kotlin.md +26 -0
- package/templates/v2/styleguides/maven.md +28 -0
- package/templates/v2/styleguides/python.md +27 -0
- package/templates/v2/styleguides/react.md +28 -0
- package/templates/v2/styleguides/swift.md +27 -0
- package/templates/v2/styleguides/swiftui.md +27 -0
- package/templates/v2/styleguides/typescript.md +26 -0
- package/templates/v2/track/bug.md +14 -0
- package/templates/v2/track/execution.json +19 -0
- package/templates/v2/track/learning.md +39 -0
- package/templates/v2/track/plan.md +39 -0
- package/templates/v2/track/revert-operation.json +17 -0
- package/templates/v2/track/revise-operation.json +18 -0
- package/templates/v2/track/revision.md +36 -0
- package/templates/v2/track/spec.md +38 -0
- package/templates/v2/track/state.json +31 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,132 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.4.0] - 2026-08-27
|
|
4
|
+
|
|
5
|
+
Cadre 3.4.0 is a breaking MCP and template-contract release. Existing v1
|
|
6
|
+
projects remain readable but require an explicit approved refresh before
|
|
7
|
+
state mutation.
|
|
8
|
+
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
|
|
11
|
+
- Adaptive commands now require exclusive `prepare` or `apply` input shapes.
|
|
12
|
+
- Direct clients must replace retired template, candidate, and worktree reads
|
|
13
|
+
with MCP resources, `candidate_inspect`, and scoped `project_status`.
|
|
14
|
+
- New projects use template set v2. Legacy mutation fails with
|
|
15
|
+
`PROJECT_REFRESH_REQUIRED` until an approved refresh updates workflow and
|
|
16
|
+
runtime/template versions.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Added bounded, Git-ignored staging under `.cadre/stage/<candidate-id>/` and
|
|
21
|
+
one `candidate_inspect` call for manifests plus optional plan validation.
|
|
22
|
+
- Added scoped project/track/implementation status views, immutable v2
|
|
23
|
+
templates, explicit legacy upgrade reporting, and approved v1→v2 refresh.
|
|
24
|
+
- Added honest adaptive schemas requiring `mode`, embedded template resources,
|
|
25
|
+
compact descriptors/receipts, and resumable composite worktree transitions.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- New initialization generates unchanged v2 workflow/styleguide defaults in
|
|
30
|
+
MCP and stages only authored context or explicit overrides. `.cadre/init/*`
|
|
31
|
+
remains invalid.
|
|
32
|
+
- Removed retired template and candidate tools; resources cover discovery and
|
|
33
|
+
individual reads. The MCP surface is 22 tools.
|
|
34
|
+
- Coalesced worktree start, integration, and completion bookkeeping, reducing a
|
|
35
|
+
delegated task to four calls (five for governed integration).
|
|
36
|
+
- Legacy projects remain readable but fail closed for mutation until an
|
|
37
|
+
explicit approved refresh upgrades runtime/template versions.
|
|
38
|
+
|
|
39
|
+
### Compatibility And Upgrade
|
|
40
|
+
|
|
41
|
+
- Published v1 template files remain byte-for-byte unchanged.
|
|
42
|
+
- 3.3.0 proposal tokens must be prepared again after upgrading.
|
|
43
|
+
- Reinstall the CLI/native plugins and restart client sessions so the 3.4 tool
|
|
44
|
+
schemas and compact skills replace cached 3.3 definitions.
|
|
45
|
+
|
|
46
|
+
## [3.3.0] - 2026-08-09
|
|
47
|
+
|
|
48
|
+
Cadre 3.3.0 makes long-running MCP delivery sessions durable across server
|
|
49
|
+
restarts and substantially reduces repeated protocol payloads. It keeps
|
|
50
|
+
project-local state and execution journals compatible while changing several
|
|
51
|
+
MCP response shapes from complete canonical artifacts to compact receipts and
|
|
52
|
+
path/SHA-256 manifests.
|
|
53
|
+
|
|
54
|
+
### Breaking Changes
|
|
55
|
+
|
|
56
|
+
- Changed execution checkpoint responses to return a changed-node transition
|
|
57
|
+
receipt instead of the complete execution
|
|
58
|
+
journal. Apply retains compact `derivedStatus` scheduling arrays and focused
|
|
59
|
+
guidance for changed, active, or blocked nodes.
|
|
60
|
+
- Changed `execution_status` to return execution metadata, node-status counts,
|
|
61
|
+
ready/active/blocked scheduling state, and minimal actionable-node records.
|
|
62
|
+
It no longer echoes the complete journal or guidance for every completed and
|
|
63
|
+
pending node; pass optional `nodeId` for focused full-node detail.
|
|
64
|
+
- Changed initialization, review, archive, execution start/finish, and derived
|
|
65
|
+
track-index responses to return outcome metadata and path/SHA-256 manifests
|
|
66
|
+
instead of full proposed or written artifact contents.
|
|
67
|
+
- Changed proposal tokens from self-contained gzip/base64 payloads to 42-byte
|
|
68
|
+
opaque capabilities backed by the local Cadre runtime cache. Outstanding
|
|
69
|
+
3.2.0 tokens must be previewed again after upgrading.
|
|
70
|
+
|
|
71
|
+
### Added
|
|
72
|
+
|
|
73
|
+
- Added durable proposal records under
|
|
74
|
+
`${CADRE_HOME:-~/.cadre}/runtime/proposals`, allowing a preview produced by
|
|
75
|
+
one MCP process to be applied safely after Codex or Claude restarts it.
|
|
76
|
+
- Added seven-day proposal expiry, a 256-record and 32 MiB retained-cache
|
|
77
|
+
bound, an 8 MiB per-proposal bound, and oldest-first cleanup.
|
|
78
|
+
- Added optional focused `nodeId` lookup to `execution_status` without adding a
|
|
79
|
+
separate arbitrary journal-reading tool.
|
|
80
|
+
- Added explicit checkpoint receipts recording the semantic event, source
|
|
81
|
+
status, intermediate transition sequence, target status, and checkpoint.
|
|
82
|
+
|
|
83
|
+
### Changed
|
|
84
|
+
|
|
85
|
+
- Kept full execution journals as the canonical atomic validation and
|
|
86
|
+
persistence model while projecting only scheduler-relevant state at the MCP
|
|
87
|
+
transport boundary.
|
|
88
|
+
- Kept `proposalToken`, preview/apply tool names, semantic digests, stale-state
|
|
89
|
+
recomputation, and compact `derivedStatus` scheduling arrays stable for
|
|
90
|
+
workflow skills.
|
|
91
|
+
- Updated implementation guidance to reuse checkpoint apply results, request
|
|
92
|
+
focused node detail only when needed, and avoid re-reading the journal after
|
|
93
|
+
each event.
|
|
94
|
+
|
|
95
|
+
### Security And Reliability
|
|
96
|
+
|
|
97
|
+
- Proposal filenames are derived only from validated 192-bit random tokens;
|
|
98
|
+
callers never supply runtime paths.
|
|
99
|
+
- Runtime proposal directories and records are permission-restricted, written
|
|
100
|
+
with exclusive creation and fsync, and checked for ownership, file type,
|
|
101
|
+
symlinks, size, kind, expiry, and schema before use.
|
|
102
|
+
- Proposal resolution remains digest-gated: every apply recomputes current
|
|
103
|
+
state and rejects a stale proposal even when its runtime record is valid.
|
|
104
|
+
- Concurrent cleanup tolerates records already removed by another Codex or
|
|
105
|
+
Claude MCP process, and lost-response retries can reuse retained tokens until
|
|
106
|
+
normal domain idempotency or stale-state checks resolve them.
|
|
107
|
+
|
|
108
|
+
### Performance
|
|
109
|
+
|
|
110
|
+
- Reduced the live 46-node `execution_status` result from roughly 19.5 KiB of
|
|
111
|
+
minified domain data to a 3.1 KiB complete MCP response with no embedded
|
|
112
|
+
journal.
|
|
113
|
+
- Added response-budget regression checks requiring checkpoint preview/apply
|
|
114
|
+
results below 4 KiB and a 50-node default status view below 8 KiB.
|
|
115
|
+
- Removed repeated full workflow, plan, journal, state, pattern, and generated
|
|
116
|
+
index content from mutation responses when an exact digest-bound manifest is
|
|
117
|
+
sufficient.
|
|
118
|
+
|
|
119
|
+
### Compatibility And Upgrade
|
|
120
|
+
|
|
121
|
+
- Existing 3.2.0 `.cadre` projects, track states, operation journals, and
|
|
122
|
+
execution journals require no migration.
|
|
123
|
+
- Direct MCP consumers that read complete artifacts from preview/apply results
|
|
124
|
+
must adopt the compact receipt and manifest shapes. Canonical artifacts
|
|
125
|
+
remain available at their reported project paths.
|
|
126
|
+
- Reinstall the package and native plugins, start a new Codex conversation,
|
|
127
|
+
and run `/reload-plugins` in Claude Code so both clients load the 3.3.0 tool
|
|
128
|
+
schemas. Re-run preview for any proposal token created by 3.2.0.
|
|
129
|
+
|
|
3
130
|
## [3.2.0] - 2026-08-07
|
|
4
131
|
|
|
5
132
|
Cadre 3.2.0 simplifies the execution and governance contracts after analysis
|
package/README.md
CHANGED
|
@@ -271,6 +271,7 @@ An initialized project has this shape:
|
|
|
271
271
|
│ ├── bugs/
|
|
272
272
|
│ └── revisions/
|
|
273
273
|
├── archive/
|
|
274
|
+
├── stage/ # ignored, unapproved candidate artifacts
|
|
274
275
|
├── .worktrees/ # ignored, temporary execution worktrees
|
|
275
276
|
└── wisps/ # ignored, disposable exploration output
|
|
276
277
|
```
|
|
@@ -288,38 +289,35 @@ Important sources of truth:
|
|
|
288
289
|
|
|
289
290
|
## MCP capabilities
|
|
290
291
|
|
|
291
|
-
The `cadre` stdio server exposes immutable resources at `cadre://templates/
|
|
292
|
+
The `cadre` stdio server exposes active immutable resources at `cadre://templates/v2/...` and 22 tools:
|
|
292
293
|
|
|
293
294
|
| Tool | Mutation | Purpose |
|
|
294
295
|
| --- | --- | --- |
|
|
295
|
-
| `template_catalog` | No | List template IDs, resource URIs, media types, and content hashes. |
|
|
296
|
-
| `template_get` | No | Read one versioned template by logical ID. |
|
|
297
296
|
| `template_get_many` | No | Read an ordered template bundle in one call; immutable catalog contents are cached for the server lifetime. |
|
|
298
|
-
| `styleguide_resolve` | No | Resolve default
|
|
299
|
-
| `project_status` | No |
|
|
297
|
+
| `styleguide_resolve` | No | Resolve default styleguide descriptors and hashes for an approved technology list. |
|
|
298
|
+
| `project_status` | No | Return scoped project, track, or implementation status. |
|
|
300
299
|
| `state_validate` | No | Validate project, track, plan, learning, dependency, review, and archive invariants. |
|
|
300
|
+
| `candidate_stage_prepare` | Atomic | Create/resume `.cadre/stage/<id>` and enforce its Git ignore rule. |
|
|
301
|
+
| `candidate_inspect` | No | Return one exact manifest and optional staged-plan graph validation. |
|
|
301
302
|
| `execution_graph_validate` | No | Parse and validate phase/task dependencies, cycles, and derived manual-verification barriers. |
|
|
302
|
-
| `
|
|
303
|
-
| `
|
|
304
|
-
| `
|
|
305
|
-
| `
|
|
306
|
-
| `
|
|
307
|
-
| `execution_status` | No |
|
|
308
|
-
| `
|
|
309
|
-
| `
|
|
310
|
-
| `
|
|
311
|
-
| `
|
|
312
|
-
| `
|
|
313
|
-
| `project_init_preview` | No | Return the complete proposed initialization file set and digest. |
|
|
314
|
-
| `project_init_apply` | Yes | Atomically create `.cadre` only when inputs match the approved preview digest. |
|
|
303
|
+
| `review_complete` | Adaptive | Return `approval_required` for a clean-review decision, then apply the unchanged token after approval. |
|
|
304
|
+
| `archive_batch_candidate` | Adaptive | Read staged pattern/seed files, return the complete batch for approval, then apply its unchanged token. |
|
|
305
|
+
| `archive_batch_record` | Atomic | Record the resulting archive commit in track, project, and batch provenance without a second decision. |
|
|
306
|
+
| `execution_start` | Atomic | Create the authorized execution journal and enter `in_progress` in one call. |
|
|
307
|
+
| `execution_checkpoint` | Atomic | Expand and apply one semantic event as a complete legal, evidence-gated transition sequence. |
|
|
308
|
+
| `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
|
|
309
|
+
| `execution_finish` | Atomic | Require completed nodes, current plan evidence, and removed worktrees before writing `ready_for_review`. |
|
|
310
|
+
| `worktree_create` | Atomic | Create/reconcile a worktree and record node start. |
|
|
311
|
+
| `integration` | Adaptive | Merge and record integration; require a second call only in governed mode. |
|
|
312
|
+
| `worktree_cleanup` | Atomic | Remove a verified integrated worktree and record completion. |
|
|
313
|
+
| `project_init_candidate` | Adaptive | Generate defaults around staged authored context and apply after approval. |
|
|
315
314
|
| `setup_record_git_initialized` | Yes | Record the verified Git-initialization checkpoint. |
|
|
316
315
|
| `setup_record_commit` | Yes | Record the already-created setup commit SHA and complete setup state. |
|
|
317
|
-
| `
|
|
318
|
-
| `tracks_render_apply` | Yes | Write `tracks.md` only when current state matches the approved preview digest. |
|
|
316
|
+
| `tracks_render` | Atomic | Validate and write deterministic `tracks.md` from current track state. |
|
|
319
317
|
|
|
320
|
-
The MCP server cannot approve its own proposals or run arbitrary shell commands. Its Git surface is limited to derived Cadre worktree creation, non-squash integration, status, and verified cleanup. It never force-deletes a branch, resolves a conflict, edits product files, or commits on behalf of a worker.
|
|
318
|
+
The MCP server cannot approve its own proposals or run arbitrary shell commands. Its Git surface is limited to derived Cadre worktree creation, non-squash integration, status, and verified cleanup. It never force-deletes a branch, resolves a conflict, edits product files, or commits on behalf of a worker. Already-authorized deterministic writes and Git mutations validate and apply atomically; genuine decision boundaries retain digest-bound proposal tokens and stale-state rejection.
|
|
321
319
|
|
|
322
|
-
Review and archive minimize approval fragmentation without weakening governance. A finding disposition and its exact remediation artifacts may share one approval; explicit reject-and-complete records accepted risks in the clean review; and a uniquely eligible archive target is included directly in the full batch proposal.
|
|
320
|
+
Review and archive minimize approval fragmentation without weakening governance. A finding disposition and its exact remediation artifacts may share one approval; explicit reject-and-complete records accepted risks in the clean review; and a uniquely eligible archive target is included directly in the full batch proposal. Archive prepare computes the post-move `tracks.md` before approval, including archived rows. Any changed content, selection, digest, or consequence requires a corrected proposal and renewed approval.
|
|
323
321
|
|
|
324
322
|
### Worktree layout and worker model
|
|
325
323
|
|
package/dist/cadre-cli.mjs
CHANGED
|
@@ -74,8 +74,8 @@ import { dirname, extname, join as join2, relative, resolve as resolve2, sep } f
|
|
|
74
74
|
import { fileURLToPath } from "node:url";
|
|
75
75
|
|
|
76
76
|
// src/domain/version.ts
|
|
77
|
-
var CADRE_RUNTIME_VERSION = "3.
|
|
78
|
-
var TEMPLATE_SET_VERSION = "
|
|
77
|
+
var CADRE_RUNTIME_VERSION = "3.4.0";
|
|
78
|
+
var TEMPLATE_SET_VERSION = "v2";
|
|
79
79
|
|
|
80
80
|
// src/domain/templates.ts
|
|
81
81
|
var TEMPLATE_IDS = [
|