cadre-ai 3.1.0 → 3.3.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 +131 -0
- package/README.md +3 -4
- package/dist/cadre-cli.mjs +1 -1
- package/dist/cadre-mcp.mjs +1060 -246
- package/package.json +1 -1
- package/skills/archive/SKILL.md +5 -5
- package/skills/create/SKILL.md +2 -2
- package/skills/implement/SKILL.md +8 -8
- package/skills/revert/SKILL.md +1 -1
- package/skills/review/SKILL.md +2 -2
- package/skills/revise/SKILL.md +1 -1
- package/templates/v1/init/workflow.md +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,136 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.3.0] - 2026-08-09
|
|
4
|
+
|
|
5
|
+
Cadre 3.3.0 makes long-running MCP delivery sessions durable across server
|
|
6
|
+
restarts and substantially reduces repeated protocol payloads. It keeps
|
|
7
|
+
project-local state and execution journals compatible while changing several
|
|
8
|
+
MCP response shapes from complete canonical artifacts to compact receipts and
|
|
9
|
+
path/SHA-256 manifests.
|
|
10
|
+
|
|
11
|
+
### Breaking Changes
|
|
12
|
+
|
|
13
|
+
- Changed `execution_checkpoint_preview` and `execution_checkpoint_apply` to
|
|
14
|
+
return a changed-node transition receipt instead of the complete execution
|
|
15
|
+
journal. Apply retains compact `derivedStatus` scheduling arrays and focused
|
|
16
|
+
guidance for changed, active, or blocked nodes.
|
|
17
|
+
- Changed `execution_status` to return execution metadata, node-status counts,
|
|
18
|
+
ready/active/blocked scheduling state, and minimal actionable-node records.
|
|
19
|
+
It no longer echoes the complete journal or guidance for every completed and
|
|
20
|
+
pending node; pass optional `nodeId` for focused full-node detail.
|
|
21
|
+
- Changed initialization, review, archive, execution start/finish, and derived
|
|
22
|
+
track-index responses to return outcome metadata and path/SHA-256 manifests
|
|
23
|
+
instead of full proposed or written artifact contents.
|
|
24
|
+
- Changed proposal tokens from self-contained gzip/base64 payloads to 42-byte
|
|
25
|
+
opaque capabilities backed by the local Cadre runtime cache. Outstanding
|
|
26
|
+
3.2.0 tokens must be previewed again after upgrading.
|
|
27
|
+
|
|
28
|
+
### Added
|
|
29
|
+
|
|
30
|
+
- Added durable proposal records under
|
|
31
|
+
`${CADRE_HOME:-~/.cadre}/runtime/proposals`, allowing a preview produced by
|
|
32
|
+
one MCP process to be applied safely after Codex or Claude restarts it.
|
|
33
|
+
- Added seven-day proposal expiry, a 256-record and 32 MiB retained-cache
|
|
34
|
+
bound, an 8 MiB per-proposal bound, and oldest-first cleanup.
|
|
35
|
+
- Added optional focused `nodeId` lookup to `execution_status` without adding a
|
|
36
|
+
separate arbitrary journal-reading tool.
|
|
37
|
+
- Added explicit checkpoint receipts recording the semantic event, source
|
|
38
|
+
status, intermediate transition sequence, target status, and checkpoint.
|
|
39
|
+
|
|
40
|
+
### Changed
|
|
41
|
+
|
|
42
|
+
- Kept full execution journals as the canonical atomic validation and
|
|
43
|
+
persistence model while projecting only scheduler-relevant state at the MCP
|
|
44
|
+
transport boundary.
|
|
45
|
+
- Kept `proposalToken`, preview/apply tool names, semantic digests, stale-state
|
|
46
|
+
recomputation, and compact `derivedStatus` scheduling arrays stable for
|
|
47
|
+
workflow skills.
|
|
48
|
+
- Updated implementation guidance to reuse checkpoint apply results, request
|
|
49
|
+
focused node detail only when needed, and avoid re-reading the journal after
|
|
50
|
+
each event.
|
|
51
|
+
|
|
52
|
+
### Security And Reliability
|
|
53
|
+
|
|
54
|
+
- Proposal filenames are derived only from validated 192-bit random tokens;
|
|
55
|
+
callers never supply runtime paths.
|
|
56
|
+
- Runtime proposal directories and records are permission-restricted, written
|
|
57
|
+
with exclusive creation and fsync, and checked for ownership, file type,
|
|
58
|
+
symlinks, size, kind, expiry, and schema before use.
|
|
59
|
+
- Proposal resolution remains digest-gated: every apply recomputes current
|
|
60
|
+
state and rejects a stale proposal even when its runtime record is valid.
|
|
61
|
+
- Concurrent cleanup tolerates records already removed by another Codex or
|
|
62
|
+
Claude MCP process, and lost-response retries can reuse retained tokens until
|
|
63
|
+
normal domain idempotency or stale-state checks resolve them.
|
|
64
|
+
|
|
65
|
+
### Performance
|
|
66
|
+
|
|
67
|
+
- Reduced the live 46-node `execution_status` result from roughly 19.5 KiB of
|
|
68
|
+
minified domain data to a 3.1 KiB complete MCP response with no embedded
|
|
69
|
+
journal.
|
|
70
|
+
- Added response-budget regression checks requiring checkpoint preview/apply
|
|
71
|
+
results below 4 KiB and a 50-node default status view below 8 KiB.
|
|
72
|
+
- Removed repeated full workflow, plan, journal, state, pattern, and generated
|
|
73
|
+
index content from mutation responses when an exact digest-bound manifest is
|
|
74
|
+
sufficient.
|
|
75
|
+
|
|
76
|
+
### Compatibility And Upgrade
|
|
77
|
+
|
|
78
|
+
- Existing 3.2.0 `.cadre` projects, track states, operation journals, and
|
|
79
|
+
execution journals require no migration.
|
|
80
|
+
- Direct MCP consumers that read complete artifacts from preview/apply results
|
|
81
|
+
must adopt the compact receipt and manifest shapes. Canonical artifacts
|
|
82
|
+
remain available at their reported project paths.
|
|
83
|
+
- Reinstall the package and native plugins, start a new Codex conversation,
|
|
84
|
+
and run `/reload-plugins` in Claude Code so both clients load the 3.3.0 tool
|
|
85
|
+
schemas. Re-run preview for any proposal token created by 3.2.0.
|
|
86
|
+
|
|
87
|
+
## [3.2.0] - 2026-08-07
|
|
88
|
+
|
|
89
|
+
Cadre 3.2.0 simplifies the execution and governance contracts after analysis
|
|
90
|
+
of a full production implementation/review/archive session. This is a breaking
|
|
91
|
+
MCP release with no compatibility shims for removed tools or apply arguments.
|
|
92
|
+
|
|
93
|
+
### Breaking Changes
|
|
94
|
+
|
|
95
|
+
- Replaced `execution_node_*` and `execution_nodes_*` with the semantic
|
|
96
|
+
`execution_checkpoint_*` pair. Events expand into complete legal transition
|
|
97
|
+
sequences and `execution_status` now reports semantic event guidance.
|
|
98
|
+
- Changed mutation apply tools to accept only the opaque `proposalToken`
|
|
99
|
+
returned by preview. Repeated semantic inputs, caller-supplied digests, and
|
|
100
|
+
the `proposalDigest` response alias are removed.
|
|
101
|
+
- Removed caller-supplied execution IDs, timestamps, Git bases/heads, archive
|
|
102
|
+
batch IDs, archive commits, worktree phase IDs, and worktree base commits
|
|
103
|
+
where the runtime can derive them safely.
|
|
104
|
+
- Changed archive content inputs from arbitrary paths to structured pattern,
|
|
105
|
+
pattern-index, and active-track-seed updates. Template IDs are now validated
|
|
106
|
+
from the immutable catalog at the MCP boundary.
|
|
107
|
+
|
|
108
|
+
### Changed
|
|
109
|
+
|
|
110
|
+
- Kept `phase` as the default approval mode and preserved recorded mode on
|
|
111
|
+
resume, while eliminating mechanical prompts covered by the active mode.
|
|
112
|
+
- Made execution finish atomically derive and write task/phase commit markers,
|
|
113
|
+
the completed journal, `ready_for_review` state, and `tracks.md`.
|
|
114
|
+
- Made bare archive selection include all eligible completed tracks in
|
|
115
|
+
dependency order and derive archive metadata from current state.
|
|
116
|
+
- Allowed canonical integration with only the exact active execution journal
|
|
117
|
+
dirty; unrelated product or Cadre changes still fail closed.
|
|
118
|
+
|
|
119
|
+
### Fixed
|
|
120
|
+
|
|
121
|
+
- Added Git reachability validation for persisted project, track, plan,
|
|
122
|
+
execution, review, revision, and archive provenance.
|
|
123
|
+
- Derived clean-review and archive provenance from actual Git history instead
|
|
124
|
+
of accepting guessed SHAs, including ancestry-safe review bookkeeping.
|
|
125
|
+
- Added regression coverage for semantic checkpoints, proposal-token binding,
|
|
126
|
+
tracked-journal integration, atomic plan evidence, and unreachable commits.
|
|
127
|
+
|
|
128
|
+
### Upgrade
|
|
129
|
+
|
|
130
|
+
- Reinstall the package and native plugins after upgrading. Start a new Codex
|
|
131
|
+
conversation and reload Claude Code plugins so the 3.2.0 MCP schemas replace
|
|
132
|
+
the removed 3.1.x contracts.
|
|
133
|
+
|
|
3
134
|
## [3.1.0] - 2026-07-30
|
|
4
135
|
|
|
5
136
|
Compared with 3.0.2, this release adds explicit implementation approval modes,
|
package/README.md
CHANGED
|
@@ -303,15 +303,14 @@ The `cadre` stdio server exposes immutable resources at `cadre://templates/v1/..
|
|
|
303
303
|
| `archive_batch_preview` / `archive_batch_apply` | Preview/apply | Preview and apply selected moves, lifecycle states, patterns, seeds, journal, and post-archive index as one approved batch. |
|
|
304
304
|
| `archive_batch_record_preview` / `archive_batch_record_apply` | Preview/apply | Record the resulting archive commit in track, project, and batch provenance without a second batch decision. |
|
|
305
305
|
| `execution_start_preview` / `execution_start_apply` | Preview/apply | Create an approved, digest-gated execution journal and enter `in_progress`. |
|
|
306
|
-
| `
|
|
307
|
-
| `
|
|
308
|
-
| `execution_status` | No | Derive ready phases, ready tasks within running phases, active nodes, and blockers. |
|
|
306
|
+
| `execution_checkpoint_preview` / `execution_checkpoint_apply` | Preview/apply | Expand one semantic execution event into its complete legal, evidence-gated transition sequence, apply it atomically, and return a compact transition receipt. |
|
|
307
|
+
| `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
|
|
309
308
|
| `execution_finish_preview` / `execution_finish_apply` | Preview/apply | Require completed nodes, current plan evidence, and removed worktrees before `ready_for_review`. |
|
|
310
309
|
| `worktree_create_preview` / `worktree_create_apply` | Preview/apply | Create or reconcile one derived phase/task worktree and branch. |
|
|
311
310
|
| `integration_preview` / `integration_apply` | Preview/apply | Inspect and merge a clean worker branch into its derived parent, reporting conflicts without resolving them. |
|
|
312
311
|
| `worktree_cleanup_preview` / `worktree_cleanup_apply` | Preview/apply | Remove only a clean worker whose branch is proven integrated into its parent. |
|
|
313
312
|
| `worktree_status` | No | Report Cadre-managed worktrees and orphaned runtime directories. |
|
|
314
|
-
| `project_init_preview` | No | Return the complete proposed initialization
|
|
313
|
+
| `project_init_preview` | No | Return the complete proposed initialization path/hash manifest and digest without echoing file contents. |
|
|
315
314
|
| `project_init_apply` | Yes | Atomically create `.cadre` only when inputs match the approved preview digest. |
|
|
316
315
|
| `setup_record_git_initialized` | Yes | Record the verified Git-initialization checkpoint. |
|
|
317
316
|
| `setup_record_commit` | Yes | Record the already-created setup commit SHA and complete setup state. |
|
package/dist/cadre-cli.mjs
CHANGED
|
@@ -74,7 +74,7 @@ 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.
|
|
77
|
+
var CADRE_RUNTIME_VERSION = "3.3.0";
|
|
78
78
|
var TEMPLATE_SET_VERSION = "v1";
|
|
79
79
|
|
|
80
80
|
// src/domain/templates.ts
|