cadre-ai 3.0.1 → 3.1.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.1",
3
+ "version": "3.1.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.1",
3
+ "version": "3.1.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,59 @@
1
+ # Changelog
2
+
3
+ ## [3.1.0] - 2026-07-30
4
+
5
+ Compared with 3.0.2, this release adds explicit implementation approval modes,
6
+ client-native decision forms, and a more efficient self-describing execution
7
+ runtime.
8
+
9
+ ### Added
10
+
11
+ - Added persisted `governed`, `phase`, and `autonomous` implementation
12
+ approval modes, with `phase` as the default for new executions.
13
+ - Added `workflow_elicit` for bounded Codex and Claude clarification and
14
+ digest/checkpoint-bound approval forms.
15
+ - Added structured MCP error content, per-node legal transition guidance, and
16
+ a uniform `proposalDigest` alias on mutation previews.
17
+ - Added ordered execution-node batches and protocol coverage for supported,
18
+ unsupported, and policy-rejected form elicitation.
19
+
20
+ ### Changed
21
+
22
+ - Changed workflow governance so one semantic approval covers its named,
23
+ unchanged deterministic journals, indexes, validation, commits, lifecycle
24
+ transitions, and provenance.
25
+ - Changed `phase` execution to run regular work autonomously and pause once at
26
+ the final phase verification. `autonomous` pauses only at track verification;
27
+ `governed` retains task-by-task review.
28
+ - Changed implementation scheduling to use returned transition guidance and
29
+ derived status instead of global tool discovery, speculative previews, and
30
+ redundant status reads.
31
+ - Changed execution bookkeeping to batch already-evidenced transitions, reuse
32
+ unchanged product verification, parallelize independent read-only checks,
33
+ and commit Cadre-only state at phase/final durability boundaries.
34
+ - Changed execution finish to update its journal, track state, and generated
35
+ `tracks.md` together under one digest.
36
+
37
+ ### Fixed
38
+
39
+ - Fixed non-interactive host policy handling so Codex Full Access uses one
40
+ concise text fallback and an automatic policy rejection is not reported as a
41
+ human decline.
42
+ - Fixed create-time token waste by summarizing unchanged workflows and default
43
+ artifacts unless the human asks for full content.
44
+ - Fixed worktree cleanup recovery when an integrated node was already marked
45
+ complete before cleanup.
46
+ - Fixed worktree identity friction by deriving a task's phase from its node ID
47
+ while accepting a matching redundant phase value for compatibility.
48
+ - Fixed failed transition previews caused by undiscoverable state-machine
49
+ rules, plain-text-only errors, and inconsistent digest field naming.
50
+
51
+ ### Compatibility
52
+
53
+ - Existing 3.0.x projects remain compatible. Legacy execution journals without
54
+ `approvalMode` are interpreted as `governed`.
55
+ - Run `cadre-ai install --target all --scope user` after upgrading, start a new
56
+ Codex conversation, and run `/reload-plugins` in Claude Code.
57
+
58
+ Earlier release history is available in the signed `release-3.0.2` and older
59
+ Git tags.
@@ -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.1";
77
+ var CADRE_RUNTIME_VERSION = "3.1.0";
78
78
  var TEMPLATE_SET_VERSION = "v1";
79
79
 
80
80
  // src/domain/templates.ts