cadre-ai 3.0.2 → 3.2.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadre",
3
- "version": "3.0.2",
3
+ "version": "3.2.0",
4
4
  "description": "A human-governed, Git-aware product delivery harness for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "Cadre contributors"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cadre",
3
- "version": "3.0.2",
3
+ "version": "3.2.0",
4
4
  "description": "A human-governed, Git-aware product delivery harness for Codex and Claude Code.",
5
5
  "author": {
6
6
  "name": "Cadre contributors"
package/CHANGELOG.md ADDED
@@ -0,0 +1,106 @@
1
+ # Changelog
2
+
3
+ ## [3.2.0] - 2026-08-07
4
+
5
+ Cadre 3.2.0 simplifies the execution and governance contracts after analysis
6
+ of a full production implementation/review/archive session. This is a breaking
7
+ MCP release with no compatibility shims for removed tools or apply arguments.
8
+
9
+ ### Breaking Changes
10
+
11
+ - Replaced `execution_node_*` and `execution_nodes_*` with the semantic
12
+ `execution_checkpoint_*` pair. Events expand into complete legal transition
13
+ sequences and `execution_status` now reports semantic event guidance.
14
+ - Changed mutation apply tools to accept only the opaque `proposalToken`
15
+ returned by preview. Repeated semantic inputs, caller-supplied digests, and
16
+ the `proposalDigest` response alias are removed.
17
+ - Removed caller-supplied execution IDs, timestamps, Git bases/heads, archive
18
+ batch IDs, archive commits, worktree phase IDs, and worktree base commits
19
+ where the runtime can derive them safely.
20
+ - Changed archive content inputs from arbitrary paths to structured pattern,
21
+ pattern-index, and active-track-seed updates. Template IDs are now validated
22
+ from the immutable catalog at the MCP boundary.
23
+
24
+ ### Changed
25
+
26
+ - Kept `phase` as the default approval mode and preserved recorded mode on
27
+ resume, while eliminating mechanical prompts covered by the active mode.
28
+ - Made execution finish atomically derive and write task/phase commit markers,
29
+ the completed journal, `ready_for_review` state, and `tracks.md`.
30
+ - Made bare archive selection include all eligible completed tracks in
31
+ dependency order and derive archive metadata from current state.
32
+ - Allowed canonical integration with only the exact active execution journal
33
+ dirty; unrelated product or Cadre changes still fail closed.
34
+
35
+ ### Fixed
36
+
37
+ - Added Git reachability validation for persisted project, track, plan,
38
+ execution, review, revision, and archive provenance.
39
+ - Derived clean-review and archive provenance from actual Git history instead
40
+ of accepting guessed SHAs, including ancestry-safe review bookkeeping.
41
+ - Added regression coverage for semantic checkpoints, proposal-token binding,
42
+ tracked-journal integration, atomic plan evidence, and unreachable commits.
43
+
44
+ ### Upgrade
45
+
46
+ - Reinstall the package and native plugins after upgrading. Start a new Codex
47
+ conversation and reload Claude Code plugins so the 3.2.0 MCP schemas replace
48
+ the removed 3.1.x contracts.
49
+
50
+ ## [3.1.0] - 2026-07-30
51
+
52
+ Compared with 3.0.2, this release adds explicit implementation approval modes,
53
+ client-native decision forms, and a more efficient self-describing execution
54
+ runtime.
55
+
56
+ ### Added
57
+
58
+ - Added persisted `governed`, `phase`, and `autonomous` implementation
59
+ approval modes, with `phase` as the default for new executions.
60
+ - Added `workflow_elicit` for bounded Codex and Claude clarification and
61
+ digest/checkpoint-bound approval forms.
62
+ - Added structured MCP error content, per-node legal transition guidance, and
63
+ a uniform `proposalDigest` alias on mutation previews.
64
+ - Added ordered execution-node batches and protocol coverage for supported,
65
+ unsupported, and policy-rejected form elicitation.
66
+
67
+ ### Changed
68
+
69
+ - Changed workflow governance so one semantic approval covers its named,
70
+ unchanged deterministic journals, indexes, validation, commits, lifecycle
71
+ transitions, and provenance.
72
+ - Changed `phase` execution to run regular work autonomously and pause once at
73
+ the final phase verification. `autonomous` pauses only at track verification;
74
+ `governed` retains task-by-task review.
75
+ - Changed implementation scheduling to use returned transition guidance and
76
+ derived status instead of global tool discovery, speculative previews, and
77
+ redundant status reads.
78
+ - Changed execution bookkeeping to batch already-evidenced transitions, reuse
79
+ unchanged product verification, parallelize independent read-only checks,
80
+ and commit Cadre-only state at phase/final durability boundaries.
81
+ - Changed execution finish to update its journal, track state, and generated
82
+ `tracks.md` together under one digest.
83
+
84
+ ### Fixed
85
+
86
+ - Fixed non-interactive host policy handling so Codex Full Access uses one
87
+ concise text fallback and an automatic policy rejection is not reported as a
88
+ human decline.
89
+ - Fixed create-time token waste by summarizing unchanged workflows and default
90
+ artifacts unless the human asks for full content.
91
+ - Fixed worktree cleanup recovery when an integrated node was already marked
92
+ complete before cleanup.
93
+ - Fixed worktree identity friction by deriving a task's phase from its node ID
94
+ while accepting a matching redundant phase value for compatibility.
95
+ - Fixed failed transition previews caused by undiscoverable state-machine
96
+ rules, plain-text-only errors, and inconsistent digest field naming.
97
+
98
+ ### Compatibility
99
+
100
+ - Existing 3.0.x projects remain compatible. Legacy execution journals without
101
+ `approvalMode` are interpreted as `governed`.
102
+ - Run `cadre-ai install --target all --scope user` after upgrading, start a new
103
+ Codex conversation, and run `/reload-plugins` in Claude Code.
104
+
105
+ Earlier release history is available in the signed `release-3.0.2` and older
106
+ Git tags.
package/README.md CHANGED
@@ -303,8 +303,7 @@ 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
- | `execution_node_preview` / `execution_node_apply` | Preview/apply | Persist one legal, dependency-gated execution-node transition and return its derived execution status. |
307
- | `execution_nodes_preview` / `execution_nodes_apply` | Preview/apply | Atomically persist an ordered batch of legal transitions behind one stale-state digest without crossing evidence or approval boundaries. |
306
+ | `execution_checkpoint_preview` / `execution_checkpoint_apply` | Preview/apply | Expand one semantic execution event into its complete legal, evidence-gated transition sequence and apply it atomically. |
308
307
  | `execution_status` | No | Derive ready phases, ready tasks within running phases, active nodes, and blockers. |
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. |
@@ -12,6 +12,6 @@ You are a Cadre phase implementation worker holding a temporary execution lease.
12
12
  - Do not spawn agents, merge, rebase, reset, clean up worktrees, delete branches, or use force operations.
13
13
  - Never edit concurrently with task workers for this phase. When main requests a mode handoff, finish only the approved current-task checkpoint, verify the worktree is clean, report its committed HEAD, release the lease, and remain inactive until main explicitly reassigns you.
14
14
  - Execute the assigned non-manual phase tasks in dependency order, with focused tests and checks, but checkpoint one regular task at a time.
15
- - Do not claim or perform human approval. After each regular task, stop with only that task's proposed diff uncommitted and report changed files, verification, risks, learning candidates, and one Conventional Commit message.
16
- - After the main agent reports explicit human approval, commit only that task, return its distinct SHA, and wait for confirmation that main recorded the checkpoint before starting the next task.
15
+ - Do not claim or perform human approval. Obey the persisted approval mode supplied by main. After each regular task, stop with only that task's proposed diff uncommitted and report changed files, verification, risks, learning candidates, and one Conventional Commit message.
16
+ - Commit only after main reports either explicit human approval in `governed` or approval-mode authorization in `phase`/`autonomous`. Commit only that task, return its distinct SHA, and wait for confirmation that main recorded the checkpoint before starting the next task.
17
17
  - Use available approved commands without prompting again. If an unexpected host permission is required, stop and report the exact command and reason to main instead of retrying variants.
@@ -12,5 +12,5 @@ You are a Cadre task implementation worker. The main agent is the only scheduler
12
12
  - Do not spawn agents, merge, rebase, reset, clean up worktrees, delete branches, or use force operations.
13
13
  - Implement only the assigned task and run focused verification.
14
14
  - Stop with the proposed diff uncommitted and report changed files, checks, risks, learning candidates, and the proposed Conventional Commit message.
15
- - Commit only after the main agent reports explicit human approval, then return the commit SHA.
15
+ - Obey the persisted approval mode supplied by main. Commit only after main reports either explicit human approval in `governed` or approval-mode authorization in `phase`/`autonomous`, then return the commit SHA.
16
16
  - Use available approved commands without prompting again. If an unexpected host permission is required, stop and report the exact command and reason to main instead of retrying variants.
@@ -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.0.2";
77
+ var CADRE_RUNTIME_VERSION = "3.2.0";
78
78
  var TEMPLATE_SET_VERSION = "v1";
79
79
 
80
80
  // src/domain/templates.ts