cadre-ai 3.9.1 → 4.1.0-beta.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 +191 -0
- package/README.md +78 -18
- package/dist/cadre-cli.mjs +17733 -160
- package/dist/cadre-mcp.mjs +6590 -4054
- package/package.json +3 -2
- package/skills/archive/SKILL.md +13 -11
- package/skills/archive/references/github-collaboration.md +46 -0
- package/skills/create/SKILL.md +11 -9
- package/skills/create/references/github-collaboration.md +46 -0
- package/skills/implement/SKILL.md +9 -7
- package/skills/implement/references/github-collaboration.md +46 -0
- package/skills/implement/references/resume-recovery.md +2 -0
- package/skills/refresh/SKILL.md +27 -18
- package/skills/refresh/references/github-collaboration.md +46 -0
- package/skills/revert/SKILL.md +31 -13
- package/skills/revert/references/github-collaboration.md +46 -0
- package/skills/review/SKILL.md +23 -30
- package/skills/review/references/github-collaboration.md +46 -0
- package/skills/revise/SKILL.md +23 -11
- package/skills/revise/references/github-collaboration.md +46 -0
- package/skills/status/SKILL.md +2 -0
- package/skills/track/SKILL.md +12 -6
- package/skills/track/references/github-collaboration.md +46 -0
- package/templates/github-v1/enforcement.yml +38 -0
- package/templates/github-v1/workflow.md +46 -0
- package/templates/{v5 → v6}/init/workflow.md +1 -1
- package/templates/v1/init/gitignore.template +0 -5
- package/templates/v1/init/patterns/index.md +0 -6
- package/templates/v1/init/project.json +0 -26
- package/templates/v1/init/workflow.md +0 -181
- package/templates/v1/project/archive-operation.json +0 -15
- package/templates/v1/project/refresh-operation.json +0 -14
- package/templates/v1/track/execution.json +0 -19
- package/templates/v1/track/learning.md +0 -39
- package/templates/v1/track/plan.md +0 -39
- package/templates/v1/track/revert-operation.json +0 -13
- package/templates/v1/track/revise-operation.json +0 -14
- package/templates/v1/track/state.json +0 -25
- package/templates/v2/init/archive/.gitkeep +0 -1
- package/templates/v2/init/gitignore.template +0 -8
- package/templates/v2/init/guidelines.md +0 -25
- package/templates/v2/init/operations/.gitkeep +0 -1
- package/templates/v2/init/patterns/index.md +0 -6
- package/templates/v2/init/product.md +0 -30
- package/templates/v2/init/project.json +0 -27
- package/templates/v2/init/refreshes/.gitkeep +0 -1
- package/templates/v2/init/styleguides/general.md +0 -14
- package/templates/v2/init/styleguides/language.md +0 -21
- package/templates/v2/init/tech-stack.md +0 -21
- package/templates/v2/init/tracks/.gitkeep +0 -1
- package/templates/v2/init/tracks.md +0 -6
- package/templates/v2/init/wisps/.gitkeep +0 -1
- package/templates/v2/init/workflow.md +0 -72
- package/templates/v2/project/pattern.md +0 -20
- package/templates/v2/project/refresh.md +0 -21
- package/templates/v2/styleguides/dart.md +0 -27
- package/templates/v2/styleguides/flutter.md +0 -27
- package/templates/v2/styleguides/go.md +0 -29
- package/templates/v2/styleguides/gradle.md +0 -28
- package/templates/v2/styleguides/html-css.md +0 -39
- package/templates/v2/styleguides/index.md +0 -27
- package/templates/v2/styleguides/java.md +0 -27
- package/templates/v2/styleguides/javascript.md +0 -27
- package/templates/v2/styleguides/kotlin.md +0 -26
- package/templates/v2/styleguides/maven.md +0 -28
- package/templates/v2/styleguides/python.md +0 -27
- package/templates/v2/styleguides/react.md +0 -28
- package/templates/v2/styleguides/swift.md +0 -27
- package/templates/v2/styleguides/swiftui.md +0 -27
- package/templates/v2/styleguides/typescript.md +0 -26
- package/templates/v2/track/bug.md +0 -14
- package/templates/v2/track/execution.json +0 -19
- package/templates/v2/track/learning.md +0 -39
- package/templates/v2/track/plan.md +0 -39
- package/templates/v2/track/revision.md +0 -36
- package/templates/v2/track/spec.md +0 -38
- package/templates/v2/track/state.json +0 -31
- package/templates/v3/init/archive/.gitkeep +0 -1
- package/templates/v3/init/gitignore.template +0 -8
- package/templates/v3/init/guidelines.md +0 -25
- package/templates/v3/init/operations/.gitkeep +0 -1
- package/templates/v3/init/product.md +0 -30
- package/templates/v3/init/project.json +0 -27
- package/templates/v3/init/refreshes/.gitkeep +0 -1
- package/templates/v3/init/styleguides/general.md +0 -14
- package/templates/v3/init/styleguides/language.md +0 -21
- package/templates/v3/init/tech-stack.md +0 -21
- package/templates/v3/init/tracks/.gitkeep +0 -1
- package/templates/v3/init/tracks.md +0 -6
- package/templates/v3/init/wisps/.gitkeep +0 -1
- package/templates/v3/init/workflow.md +0 -82
- package/templates/v3/project/archive-operation.json +0 -19
- package/templates/v3/project/pattern.md +0 -20
- package/templates/v3/project/refresh-operation.json +0 -18
- package/templates/v3/project/refresh.md +0 -21
- package/templates/v3/styleguides/dart.md +0 -27
- package/templates/v3/styleguides/flutter.md +0 -27
- package/templates/v3/styleguides/go.md +0 -29
- package/templates/v3/styleguides/gradle.md +0 -28
- package/templates/v3/styleguides/html-css.md +0 -39
- package/templates/v3/styleguides/index.md +0 -27
- package/templates/v3/styleguides/java.md +0 -27
- package/templates/v3/styleguides/javascript.md +0 -27
- package/templates/v3/styleguides/kotlin.md +0 -26
- package/templates/v3/styleguides/maven.md +0 -28
- package/templates/v3/styleguides/python.md +0 -27
- package/templates/v3/styleguides/react.md +0 -28
- package/templates/v3/styleguides/swift.md +0 -27
- package/templates/v3/styleguides/swiftui.md +0 -27
- package/templates/v3/styleguides/typescript.md +0 -26
- package/templates/v3/track/bug.md +0 -14
- package/templates/v3/track/execution.json +0 -19
- package/templates/v3/track/plan.md +0 -39
- package/templates/v3/track/revert-operation.json +0 -17
- package/templates/v3/track/revise-operation.json +0 -18
- package/templates/v3/track/revision.md +0 -36
- package/templates/v3/track/spec.md +0 -38
- package/templates/v3/track/state.json +0 -31
- package/templates/v4/init/archive/.gitkeep +0 -1
- package/templates/v4/init/gitignore.template +0 -8
- package/templates/v4/init/guidelines.md +0 -25
- package/templates/v4/init/operations/.gitkeep +0 -1
- package/templates/v4/init/patterns/index.md +0 -8
- package/templates/v4/init/product.md +0 -30
- package/templates/v4/init/project.json +0 -27
- package/templates/v4/init/refreshes/.gitkeep +0 -1
- package/templates/v4/init/styleguides/general.md +0 -14
- package/templates/v4/init/styleguides/language.md +0 -21
- package/templates/v4/init/tech-stack.md +0 -21
- package/templates/v4/init/tracks/.gitkeep +0 -1
- package/templates/v4/init/tracks.md +0 -6
- package/templates/v4/init/wisps/.gitkeep +0 -1
- package/templates/v4/init/workflow.md +0 -91
- package/templates/v4/project/archive-operation.json +0 -19
- package/templates/v4/project/pattern.md +0 -20
- package/templates/v4/project/refresh-operation.json +0 -18
- package/templates/v4/project/refresh.md +0 -21
- package/templates/v4/styleguides/dart.md +0 -27
- package/templates/v4/styleguides/flutter.md +0 -27
- package/templates/v4/styleguides/go.md +0 -29
- package/templates/v4/styleguides/gradle.md +0 -28
- package/templates/v4/styleguides/html-css.md +0 -39
- package/templates/v4/styleguides/index.md +0 -27
- package/templates/v4/styleguides/java.md +0 -27
- package/templates/v4/styleguides/javascript.md +0 -27
- package/templates/v4/styleguides/kotlin.md +0 -26
- package/templates/v4/styleguides/maven.md +0 -28
- package/templates/v4/styleguides/python.md +0 -27
- package/templates/v4/styleguides/react.md +0 -28
- package/templates/v4/styleguides/swift.md +0 -27
- package/templates/v4/styleguides/swiftui.md +0 -27
- package/templates/v4/styleguides/typescript.md +0 -26
- package/templates/v4/track/bug.md +0 -14
- package/templates/v4/track/execution.json +0 -20
- package/templates/v4/track/learning.md +0 -45
- package/templates/v4/track/plan.md +0 -39
- package/templates/v4/track/revert-operation.json +0 -17
- package/templates/v4/track/revise-operation.json +0 -18
- package/templates/v4/track/revision.md +0 -36
- package/templates/v4/track/spec.md +0 -38
- package/templates/v4/track/state.json +0 -31
- package/templates/v5/init/archive/.gitkeep +0 -1
- package/templates/v5/init/guidelines.md +0 -25
- package/templates/v5/init/operations/.gitkeep +0 -1
- package/templates/v5/init/patterns/index.md +0 -8
- package/templates/v5/init/product.md +0 -30
- package/templates/v5/init/refreshes/.gitkeep +0 -1
- package/templates/v5/init/styleguides/general.md +0 -14
- package/templates/v5/init/styleguides/language.md +0 -21
- package/templates/v5/init/tech-stack.md +0 -21
- package/templates/v5/init/tracks/.gitkeep +0 -1
- package/templates/v5/init/tracks.md +0 -6
- package/templates/v5/init/wisps/.gitkeep +0 -1
- package/templates/v5/project/archive-operation.json +0 -19
- package/templates/v5/project/pattern.md +0 -20
- package/templates/v5/project/refresh-operation.json +0 -18
- package/templates/v5/project/refresh.md +0 -21
- package/templates/v5/styleguides/dart.md +0 -27
- package/templates/v5/styleguides/flutter.md +0 -27
- package/templates/v5/styleguides/go.md +0 -29
- package/templates/v5/styleguides/gradle.md +0 -28
- package/templates/v5/styleguides/html-css.md +0 -39
- package/templates/v5/styleguides/index.md +0 -27
- package/templates/v5/styleguides/java.md +0 -27
- package/templates/v5/styleguides/javascript.md +0 -27
- package/templates/v5/styleguides/kotlin.md +0 -26
- package/templates/v5/styleguides/maven.md +0 -28
- package/templates/v5/styleguides/python.md +0 -27
- package/templates/v5/styleguides/react.md +0 -28
- package/templates/v5/styleguides/swift.md +0 -27
- package/templates/v5/styleguides/swiftui.md +0 -27
- package/templates/v5/styleguides/typescript.md +0 -26
- package/templates/v5/track/bug.md +0 -14
- package/templates/v5/track/learning.md +0 -45
- package/templates/v5/track/revert-operation.json +0 -17
- package/templates/v5/track/revise-operation.json +0 -18
- package/templates/v5/track/revision.md +0 -36
- package/templates/v5/track/spec.md +0 -38
- /package/templates/{v1 → v6}/init/archive/.gitkeep +0 -0
- /package/templates/{v5 → v6}/init/gitignore.template +0 -0
- /package/templates/{v1 → v6}/init/guidelines.md +0 -0
- /package/templates/{v1 → v6}/init/operations/.gitkeep +0 -0
- /package/templates/{v3 → v6}/init/patterns/index.md +0 -0
- /package/templates/{v1 → v6}/init/product.md +0 -0
- /package/templates/{v5 → v6}/init/project.json +0 -0
- /package/templates/{v1 → v6}/init/refreshes/.gitkeep +0 -0
- /package/templates/{v1 → v6}/init/styleguides/general.md +0 -0
- /package/templates/{v1 → v6}/init/styleguides/language.md +0 -0
- /package/templates/{v1 → v6}/init/tech-stack.md +0 -0
- /package/templates/{v1 → v6}/init/tracks/.gitkeep +0 -0
- /package/templates/{v1 → v6}/init/tracks.md +0 -0
- /package/templates/{v1 → v6}/init/wisps/.gitkeep +0 -0
- /package/templates/{v2 → v6}/project/archive-operation.json +0 -0
- /package/templates/{v1 → v6}/project/pattern.md +0 -0
- /package/templates/{v2 → v6}/project/refresh-operation.json +0 -0
- /package/templates/{v1 → v6}/project/refresh.md +0 -0
- /package/templates/{v1 → v6}/styleguides/dart.md +0 -0
- /package/templates/{v1 → v6}/styleguides/flutter.md +0 -0
- /package/templates/{v1 → v6}/styleguides/go.md +0 -0
- /package/templates/{v1 → v6}/styleguides/gradle.md +0 -0
- /package/templates/{v1 → v6}/styleguides/html-css.md +0 -0
- /package/templates/{v1 → v6}/styleguides/index.md +0 -0
- /package/templates/{v1 → v6}/styleguides/java.md +0 -0
- /package/templates/{v1 → v6}/styleguides/javascript.md +0 -0
- /package/templates/{v1 → v6}/styleguides/kotlin.md +0 -0
- /package/templates/{v1 → v6}/styleguides/maven.md +0 -0
- /package/templates/{v1 → v6}/styleguides/python.md +0 -0
- /package/templates/{v1 → v6}/styleguides/react.md +0 -0
- /package/templates/{v1 → v6}/styleguides/swift.md +0 -0
- /package/templates/{v1 → v6}/styleguides/swiftui.md +0 -0
- /package/templates/{v1 → v6}/styleguides/typescript.md +0 -0
- /package/templates/{v1 → v6}/track/bug.md +0 -0
- /package/templates/{v5 → v6}/track/dependency-context.json +0 -0
- /package/templates/{v5 → v6}/track/execution.json +0 -0
- /package/templates/{v3 → v6}/track/learning.md +0 -0
- /package/templates/{v5 → v6}/track/plan.md +0 -0
- /package/templates/{v2 → v6}/track/revert-operation.json +0 -0
- /package/templates/{v2 → v6}/track/revise-operation.json +0 -0
- /package/templates/{v1 → v6}/track/revision.md +0 -0
- /package/templates/{v1 → v6}/track/spec.md +0 -0
- /package/templates/{v5 → v6}/track/state.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,196 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.1.0-beta.0] - 2026-10-22
|
|
4
|
+
|
|
5
|
+
- Add explicitly opt-in GitHub Integration (Beta) through `gh`, resource reservations,
|
|
6
|
+
shared draft PRs, writer leases, phase synchronization and verified checkpoint
|
|
7
|
+
publication. Local-only workflows require no GitHub access or migration.
|
|
8
|
+
- Add trusted GitHub Actions generation, approval-gated protection activation,
|
|
9
|
+
dependency/delivery checks, current-head review evidence and incident recovery.
|
|
10
|
+
- Add `github_status`, `github_operation` and the `cadre-ai github` CLI.
|
|
11
|
+
GitHub assets use their own immutable `github-v1` template directory.
|
|
12
|
+
- CI uses an exact published validator version or a digest-pinned candidate
|
|
13
|
+
archive, with credentials isolated to a default-branch-only environment.
|
|
14
|
+
- Publish beta tags to npm’s `beta` channel without moving `latest` or deploying
|
|
15
|
+
production docs. Existing 4.0.0 local-only project state remains compatible.
|
|
16
|
+
- GitLab integration is planned for a future release; no date is committed.
|
|
17
|
+
|
|
18
|
+
## [4.0.0] - 2026-10-14
|
|
19
|
+
|
|
20
|
+
Cadre 4.0.0 is a breaking runtime/API release that removes parallel legacy
|
|
21
|
+
mutation paths while preserving supported project state and delivery workflows.
|
|
22
|
+
The package, runtime, docs and native plugin manifests are versioned together at
|
|
23
|
+
4.0.0. This release also includes the revision, review and recovery hardening
|
|
24
|
+
recorded in the unreleased 3.9.2 development notes below.
|
|
25
|
+
|
|
26
|
+
### One active mutation contract
|
|
27
|
+
|
|
28
|
+
- Use operation receipts for initialization, implementation completion, clean review and archive. Remove legacy direct-write completion paths and the `archive_batch_record`, `setup_record_commit` and `setup_record_git_initialized` tools. The MCP surface now has 22 tools.
|
|
29
|
+
- Ship only immutable template set v6. Published v1–v5 source bytes remain unchanged for historical fixtures; they are excluded from the npm and installed plugin payloads.
|
|
30
|
+
- Keep schema-2 project/track state, schema-1 execution journals and receipts, approval policy v2, retained-context reuse, all ten workflows, four approval modes and both schedules.
|
|
31
|
+
- Continue existing 3.9.0/3.9.1/3.9.2 schema-2/v5 projects without rewriting metadata or requiring a project refresh. Install the new runtime and reload the client. Receipt recovery and historical evidence remain supported.
|
|
32
|
+
- Warn on unsupported older formats with `PROJECT_UPGRADE_REQUIRED` and prevent delivery mutations. Do not silently translate approval authority or change old version labels.
|
|
33
|
+
- Clarify active revision drafting: use the combined revision preparation path, exact completed-task commit markers, and sequential task ordinals. Preserve completed IDs and renumber only pending work; do not compare a proposed graph against its unsuperseded execution through separate candidate inspection. This addresses rejected proposals observed in a native Codex interruption/revision test.
|
|
34
|
+
- Keep scope, retained-context tokens and knowledge arguments stable across context pages; adding `knownSources` midway invalidates the cursor. Native testing exercised the rejection and recovery, and the shared workflow guidance now states this constraint.
|
|
35
|
+
|
|
36
|
+
### Compatibility and verification
|
|
37
|
+
|
|
38
|
+
- Reconcile public guides and the package README with the 4.0 receipt/recovery paths, approval modes, archive selection and all 22 MCP tools.
|
|
39
|
+
- Fix documentation heading links containing underscores or punctuation. Add social-preview images, page structured data and export validation for metadata, internal links, sitemap and robots directives.
|
|
40
|
+
- Keep homepage content near the top on tall mobile viewports instead of stretching the hero to the viewport height. Add npm package links to desktop and mobile navigation, and run content/SEO validation before Cloudflare deployment.
|
|
41
|
+
|
|
42
|
+
All ten skills, four approval modes, sequential/parallel scheduling, schema-2
|
|
43
|
+
project/track state, historical journals and approval evidence remain supported.
|
|
44
|
+
Direct MCP consumers must replace the three removed setup/archive tools with
|
|
45
|
+
receipt-based initialization and archive operations plus `candidate_apply`
|
|
46
|
+
reconciliation. New template requests use v6; older template catalogs are no
|
|
47
|
+
longer shipped. Compatible 3.9.x/v5 projects do not need a migration.
|
|
48
|
+
|
|
49
|
+
Verification passed **480/480 harness tests**, type checking, package validation,
|
|
50
|
+
pack dry run and the full documentation check. A disposable brownfield project
|
|
51
|
+
completed **14 real Codex sessions** through interrupted track drafting, revision
|
|
52
|
+
during implementation, a seeded defect and review/remediation cycle, stale
|
|
53
|
+
completion rejection after a manual edit, clean completion, interrupted archive
|
|
54
|
+
recovery and refresh. Its **26 tests** and **200,020 independent arithmetic
|
|
55
|
+
comparisons** passed. All nine operation receipts mapped to exactly one commit;
|
|
56
|
+
original authority, completed-task evidence and archived history were preserved.
|
|
57
|
+
|
|
58
|
+
The native run used Autonomous approval and sequential scheduling with labelled
|
|
59
|
+
synthetic fixture approvals. It does not establish exhaustive native coverage of
|
|
60
|
+
every client/mode. Final 4.0.0 installation and activation checks passed for
|
|
61
|
+
Codex, Claude Code and Zed, including packaged server parity, narrow approval
|
|
62
|
+
settings and discovery of all ten skills.
|
|
63
|
+
|
|
64
|
+
### Roadmap at the 4.0.0 release
|
|
65
|
+
|
|
66
|
+
Three optional capabilities are planned beyond 4.0.0:
|
|
67
|
+
|
|
68
|
+
1. **Deeper GitHub / GitLab integration** for coordinating work across multiple
|
|
69
|
+
people, including shared work status, ownership and review handoffs.
|
|
70
|
+
2. **A knowledge base built as work happens**, capturing decisions and learning
|
|
71
|
+
during delivery and using relevant knowledge as context for subsequent work.
|
|
72
|
+
3. **Polyrepo support** for coordinating dependencies and delivery across
|
|
73
|
+
multiple repositories while retaining per-repository history and approvals.
|
|
74
|
+
|
|
75
|
+
Each capability will be independently **opt-in and disabled by default**. The
|
|
76
|
+
core single-repository workflow will remain usable without enabling any of them.
|
|
77
|
+
These are upcoming roadmap items, not features shipped in 4.0.0; no delivery dates
|
|
78
|
+
are committed. See the [roadmap](https://cadre-docs.pages.dev/team-and-polyrepo/).
|
|
79
|
+
|
|
80
|
+
### Older-project upgrade route
|
|
81
|
+
|
|
82
|
+
1. Install the bridge: `npm install -g cadre-ai@3.9.0`, then `cadre-ai install --target all --scope user`. Reload the client.
|
|
83
|
+
2. In 3.9.0, complete or reconcile interrupted operations and run Cadre refresh for an explicitly approved migration to schema-2 project/active-track state and template v5 at a quiescent boundary. Preserve historical records. Make any required approval-policy choice explicitly.
|
|
84
|
+
3. Install `cadre-ai@4.0.0`, run `cadre-ai install --target all --scope user`, reload the client and continue.
|
|
85
|
+
|
|
86
|
+
This bridge is unnecessary for compatible 3.9.x/v5 projects. An already inconsistent track still requires its existing approved recovery; installation never repairs approval records by changing labels.
|
|
87
|
+
|
|
88
|
+
## [3.9.2] - Unreleased
|
|
89
|
+
|
|
90
|
+
Cadre 3.9.2 fixes an active-revision bug in 3.9.1 that could strand a revised track with **“Autonomous scope changed; obtain explicit authority through refresh/revise.”** A revision record could be committed while canonical state still retained revision 1 and the original execution authority. Repeating receipt reconciliation could not advance fields missing from that approved promotion.
|
|
91
|
+
|
|
92
|
+
### Active revision fix
|
|
93
|
+
|
|
94
|
+
- Preview and approve the revision record, state revision, scope authority, and execution disposition together. Reject incomplete scope-only promotions and inconsistent revision numbers before mutation.
|
|
95
|
+
- At a quiescent boundary, preserve the old journal as `superseded` history and start a new execution for the revised graph. Keep original authorization, cumulative review baseline, finding identities/attempts, completed-task commits, verification, and handoffs. Superseded does not claim successful completion.
|
|
96
|
+
- Inherit approval and scheduling modes. An empty historical scheduler now routes to the new execution instead of becoming a delivery blocker.
|
|
97
|
+
- Preserve completed tasks and phases. Reject new members in completed commit groups, rewritten authority/history, and unfinished worker/task activity; appended delivery uses a fresh group.
|
|
98
|
+
- Clarify the v5 revise prepare path so it does not run legacy inspection against the old execution binding. Existing committed retries remain zero-change and preserve their original receipt.
|
|
99
|
+
- Treat removed worker worktrees and branches as historical provenance, including paths inherited from earlier executions. Revise and refresh check actual Git/filesystem activity, retain completed evidence, and still reject live workers, orphaned paths, retained branches, and unsafe symlinks.
|
|
100
|
+
- Support active scope cascades within one v5 refresh approval. Each affected track supplies a fresh revision record, synchronized counters, and reassessed learning/dependency context; the runtime derives journal supersession and renewed Autonomous scope authority. Context-only refresh keeps the journal and scope references stable, including identical copied spec/plan files.
|
|
101
|
+
- Reject standalone revision-record promotions and records that disagree with canonical spec/plan counters. Reject counter-only context refreshes while retaining learning-only dependent reseeding.
|
|
102
|
+
- Preserve the complete original Autonomous authority during context refresh, including its cumulative review baseline, finding attempts and blockers. Reject authored authority/policy rewrites before mutation; verify explicitly created legacy migration authority against its original execution.
|
|
103
|
+
- Persist approved unchanged-input fingerprints in the temporary recovery journal. Resume rejects changed pattern, dependency and context inputs before any remaining writes, preserves dirty files and pending intent, and retains zero-change committed replay. Published receipt formats remain unchanged; older pending receipts check fingerprints retained in their proposed artifacts.
|
|
104
|
+
- Support approved-spec revisions in imported `drafting-plan` tracks after refresh. Retain prior spec approval, keep the draft plan unapproved, and return to track planning before implementation. Initial drafts without a plan use explicit previous plan revision 0.
|
|
105
|
+
|
|
106
|
+
### Review, reversal and retry safeguards
|
|
107
|
+
|
|
108
|
+
- Enforce the persisted blocked/stalled Autonomous gate before automatic remediation and generic recovery. A proposed checkpoint cannot remove a blocker; only the explicit approved refresh retry renews authority. Pending remediation retains its original authority even after state promotion or candidate-stage loss.
|
|
109
|
+
- Bind revert reconciliation to the complete original artifact manifest from `candidate_inspect.files`. Reject changed, missing or extra authored artifacts before writing state; preserve exact authority through self-contained ignored recovery proof. Correct the regression fixture that previously read the nonexistent `manifest` result field.
|
|
110
|
+
- Verify actual reversal patches/results in an isolated Git index and object directory. Reject empty, unrelated, incomplete, reordered or wrong-result reversals; require retained execution provenance and explicitly approved merge mainlines. Conflict resolutions require an approved result tree limited to the target paths. Published receipt schemas and immutable templates remain unchanged.
|
|
111
|
+
- Reject changed product or verification-policy content before clean completion in every approval mode. Interrupted clean and finding-bearing review recovery checks the reviewed HEAD before remaining writes; already committed approvals retain historical zero-change replay.
|
|
112
|
+
- Constrain revert reconciliation to its persisted approved reversal, reachable additive reversal commits, exact durable reversal record, retained original journal and matching restored execution. Preserve the original Autonomous authorization, cumulative baseline, finding attempts and blockers; reject state-only authority rewrites.
|
|
113
|
+
- Add an explicit `reviewRetry` request to refresh prepare for blocked/stalled policy-v2 Autonomous loops. A new digest-bound approval records the full prior loop and human instructions, retains every attempt and the original cumulative baseline, and grants a new bounded two-attempt budget. Healthy loops cannot silently renew authority.
|
|
114
|
+
- Correct archive interruption guidance: resume the original pending promotion through `candidate_apply`, commit/reconcile once, and use the original archive token only for committed replay. Do not repeat apply or create another batch to bypass `COMMIT_PENDING`.
|
|
115
|
+
|
|
116
|
+
### Create and target-scoped reversal fixes
|
|
117
|
+
|
|
118
|
+
- Bind create approval to the repository HEAD, index and tracked/untracked product inputs. Recheck canonical setup before initial promotion; stale proposals cannot overwrite a newer initialized project. Interrupted setup retains the original repository evidence, while committed receipt replay remains zero-change after later delivery.
|
|
119
|
+
- Require reversal commits and journal resets to match the named task, phase or track and approved whole shared group. Reject commits from another scope and omitted delivery boundaries; a phase integration reverses its introduced tasks once. Preserve unrelated nodes, worker history, handoffs and the execution contract.
|
|
120
|
+
- Compute Git’s rename-aware reversal result in disposable refs, worktree, index and object storage. Verify exact resulting trees and bound approved conflict resolutions to target paths and verified later renames, preserving the delivery Git state.
|
|
121
|
+
- Retain pre-existing user edits through an approved `reverts/revert-<id>-baseline.json` artifact. Stage preparation returns `revertBaseline`; the operation names its `repositoryBaselinePath`. Changed product/policy inputs still block apply and recovery. The runtime never stashes, cleans or commits those user files.
|
|
122
|
+
- Published receipts and immutable templates remain unchanged. Existing projects need no schema migration. Older pending operations retain their original approval contract; missing required evidence needs an explicitly approved repair rather than fabricated hashes or repeated Git reversals.
|
|
123
|
+
|
|
124
|
+
### Shared review and execution-history invariants
|
|
125
|
+
|
|
126
|
+
- Apply completed-plan preservation to every review mode. Remediation keeps the specification revision and completed phases/tasks intact, increments the plan revision once, and appends one execution-bound review cycle. Ordinary review cannot silently reopen delivered work.
|
|
127
|
+
- Preserve completed and superseded execution journals byte-for-byte during refresh. Active journal changes are limited to an explicitly supported legacy policy migration or runtime-derived supersession; context refresh cannot replace verification, approvals, commits or handoffs.
|
|
128
|
+
- Distinguish actual merge deltas from direct-main and fast-forward completion heads during phase/track reversal. Require every uncovered task boundary, require separate reversals for tasks already present in the selected merge mainline, and reject reversing a task twice through its covering merge.
|
|
129
|
+
- Enforce the same preservation rules before preview/promotion and during pending recovery. New ignored recovery journals retain exact original state, plan and journal bytes. Older intents reuse matching original evidence when available and otherwise require an approved repair; committed receipts remain historical zero-change replay.
|
|
130
|
+
- Published receipt schemas and immutable templates remain unchanged. Existing healthy projects need a runtime update/server restart, without a project migration. Already-affected state needs an explicitly approved evidence-based repair.
|
|
131
|
+
|
|
132
|
+
### Project-wide transition admission
|
|
133
|
+
|
|
134
|
+
- Share project configuration, track identity, terminal review, dependency readiness and cycle rules between candidate promotion and canonical validation. Validate the proposed overlay without writing a temporary control plane, including during interrupted recovery.
|
|
135
|
+
- Preserve lifecycle status, checkpoint, execution ownership and commit authority during context-only refresh. Completion belongs to clean review; scope changes use their approved revision transition.
|
|
136
|
+
- Reserve track IDs across active and archived locations. Archived work requires a distinct successor ID; an older pending duplicate proposal is retained for approved repair.
|
|
137
|
+
- Treat dependency changes as scope revisions even when plan text is unchanged. Require the next track revision and a fresh revision record, and reject active delivery with unfinished dependencies.
|
|
138
|
+
- Reject invalid project context and removal of required ignore rules before promotion. Shared configuration checks cover recovery after stage loss as well as fresh proposals.
|
|
139
|
+
- Keep published receipt schemas and immutable templates unchanged. Healthy projects need the updated runtime and server restart, without a project migration. Invalid older pending operations retain their intent and files for an explicitly approved repair.
|
|
140
|
+
|
|
141
|
+
### Workflow routing and refresh records
|
|
142
|
+
|
|
143
|
+
- Correct Zed upgrade guidance: run `workspace: reload` before opening a new Agent thread. Native testing found that replacing the installed payload can leave a running workspace with an empty cached skill list; reloading restores all ten skills.
|
|
144
|
+
|
|
145
|
+
- Require a fresh, nonempty Markdown audit record for every refresh, including context-only updates, policy migration and approved Autonomous retries. Preserve earlier records and bind the selected new record into project refresh metadata and history. Multiple fresh migration records remain supported.
|
|
146
|
+
- Reject revise proposals that create a track without an existing approved active baseline. New tracks use track; completed or archived work uses a distinct successor.
|
|
147
|
+
- Preserve the committed approved specification, revision and dependencies when finishing an imported draft plan. Scope changes use revise, even when the working copy already contains an unapproved specification edit.
|
|
148
|
+
- Recheck these boundaries during interrupted promotion using original before-images, including after partial writes and stage loss. Reject invalid older pending intents without changing their files; preserve zero-change replay for already-committed approvals. Healthy projects need only the updated runtime and server restart, without a schema migration.
|
|
149
|
+
|
|
150
|
+
### Revision recovery and draft counter boundaries
|
|
151
|
+
|
|
152
|
+
- Share basic track-state validation between canonical reads and proposed overlays. Reject empty checkpoints and malformed state before approval or interrupted promotion, rather than reporting a valid proposal that becomes invalid canonical state.
|
|
153
|
+
- Enforce fresh revision records, synchronized specification/plan/track counters and retained history during pending revision recovery. Reject incomplete older specification-only promotions, reused records, stale counters and erased history without changing the pending intent or remaining files. Refresh scope revisions use the same record checks.
|
|
154
|
+
- Bind draft planning's specification revision counter to the reachable specification approval, even if an unapproved on-disk draft has already changed its counter. Valid draft planning and partial recovery remain supported.
|
|
155
|
+
- Preserve already-committed receipt replay and supported evidence-based repairs. These guards do not change published receipt schemas or immutable templates; healthy projects need the updated runtime and server restart, without a project migration.
|
|
156
|
+
|
|
157
|
+
### Imported draft revision authority
|
|
158
|
+
|
|
159
|
+
- Resolve imported draft specification counters from their reachable approval commit during track, revise and refresh. Edited unapproved draft counters cannot become the baseline for a new scope revision.
|
|
160
|
+
- Recheck the draft lifecycle during pending revision recovery. A specification revision retains `drafting-plan`, its prior specification evidence and an unapproved plan; it cannot create plan or execution approval. Invalid older intents remain available for approved repair.
|
|
161
|
+
- Allow a scope refresh to introduce the first draft plan when the approved specification predates it. Missing proposed artifacts count as additions instead of causing a filesystem error.
|
|
162
|
+
- Repeated revise/refresh sequences and interrupted promotion retain valid draft approvals. Receipt schemas and templates are unchanged; healthy projects need a runtime update and client restart, without migration.
|
|
163
|
+
|
|
164
|
+
### Repairing an already stuck track
|
|
165
|
+
|
|
166
|
+
Updating the runtime prevents the faulty transition; it does **not** silently rewrite previously approved state. Reconcile the original receipt once, preserve it and the original revision record, and use revise to prepare a fresh, explicitly approved repair from actual canonical counters and verified execution evidence. When the current plan and journal differ, the repair names the original execution graph and reachable plan commit under `Recovery evidence`; the runtime verifies that committed baseline. Do not manually clear operations or rewrite journals to bypass the scope guard.
|
|
167
|
+
|
|
168
|
+
### Validation
|
|
169
|
+
|
|
170
|
+
Latest verification passed **450/450 maintained tests**, including 11 new imported-draft regressions. A further **24/24 packaged stdio cases** passed across three client identities, four approval modes and both schedules. The matrix rotated all four two-step revise/refresh orders and initial-plan variants, recovered 48 revisions, and completed planning, implementation, review and archive for all 24 tracks. Frozen installation, type checking, package validation, pack dry run, all ten skill validators and full documentation checks passed. The final candidate is installed and enabled in Codex and Claude; all three installed MCP bundles match the tested build and initialize with 25 tools. Native Zed lists all ten skills and shows an active server after workspace reload. The locally packed global CLI reports 3.9.2 and passes doctor. These are synthetic runtime fixtures plus native installation checks, not exhaustive model-driven conversations. No additional defect appeared in the final pass; publication has not been performed.
|
|
171
|
+
|
|
172
|
+
Previous verification passed **439/439 maintained tests**, including 19 new revision-recovery and draft-counter regressions. A further **24/24 packaged stdio matrix cases** passed across three client identities, four approval modes and both schedules; all 24 tracks completed revision, implementation, review and archive. Frozen installation, strict type checking, package validation, pack dry run, all ten skill validators and full documentation checks passed. Codex and Claude report the updated candidate enabled; all three installed MCP bundles match the tested build and initialize with 25 tools. Native Zed lists all ten skills and shows an active server after workspace reload. The locally packed global CLI reports 3.9.2 and passes doctor. These are synthetic runtime fixtures plus native installation checks, not exhaustive model-driven conversations. No known blockers remain in this tested scope; publication has not been performed.
|
|
173
|
+
|
|
174
|
+
Previous verification passed **420/420 maintained tests**, including 20 new workflow-routing and refresh-record regressions. A further **48/48 matrix cases** passed: 24 full lifecycle cases and 24 packaged stdio routing/restart cases across three client identities, four approval modes and both schedules. These cases completed review and archive for 72 tracks. Frozen installation, type checking, package validation, pack dry run, all ten skill validators and full docs checks passed; the final installer guidance also passed all eight CLI tests. The updated candidate is installed and enabled in Codex and Claude. All three installed MCP bundles match the tested build and initialize with 25 tools; native Zed lists all ten skills and shows an active server after `workspace: reload`. The global CLI reports 3.9.2 and passes doctor. These are synthetic runtime fixtures plus native installation checks, not exhaustive model-driven conversations. No known blockers remain in the tested scope; publication has not been performed.
|
|
175
|
+
|
|
176
|
+
Previous verification passed **400/400 maintained tests**, including 21 new regressions for project-wide admission, context-refresh preservation, dependency revisions and interrupted recovery. **144/144 packaged stdio cases** passed across three client identities, four approval modes and both scheduling modes: 96 unsafe transition cases, 24 repeated remediation flows through archive, and 24 final configuration/restart flows through refresh, review and archive. A separate **24/24 lifecycle matrix** completed revision, revert, review, archive, refresh and successor delivery. Type checking, package validation, pack dry run, complete docs checks and all ten skill validators passed. These are runtime fixtures with explicit synthetic approvals, not exhaustive native AI conversations. The final candidate installed successfully in Codex, Claude and Zed; Codex/Claude report enabled candidate versions, all three installed MCP bundles match the tested build and initialize with 25 tools, and unrelated client settings are preserved. Zed native verification also passed: its Skills settings list all ten Cadre workflows, and MCP settings show Cadre enabled with a green server status. The native Zed process launches the tested packaged bundle. No known release blockers remain in the tested scope; publication has not been performed.
|
|
177
|
+
|
|
178
|
+
Previous follow-up verification passed **357/357 maintained tests**, with 40 new regressions for repository-bound create, target-aligned reversals, rename semantics, retained edits and recovery. **169/169 packaged stdio checks** passed: 156 matrix cases, three unborn-Git checks, seven existing review/revert recovery checks and three nested-baseline restart recoveries. The matrix covers all four approval modes and both requested scheduling modes across three client identities; 120 valid reversals finished review/archive and 24 wrong-scope reconciliations were rejected. These are runtime fixtures, not exhaustive native AI conversations. Native installer/activation validation remains a publication gate.
|
|
179
|
+
|
|
180
|
+
Earlier verification on 2026-10-13 recorded **317/317 maintained harness tests**, including 38 new regressions for blocked review, approval manifests, reversal results and recovery. The follow-up matrix passed **78/78 cases** and **15/15 packaged stdio server checks**, covering former defect rejection, complete lifecycle, repeated retry budgets, interrupted archive and restart recovery. Earlier verification passed 102 matrix and nine packaged cases. Type, package, packaging, and documentation checks pass. These are disposable runtime fixtures with explicit test approvals; exhaustive native AI-session coverage is not claimed. Final patched-payload installation and activation remain publication gates.
|
|
181
|
+
|
|
182
|
+
### Upgrade
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
npm install -g cadre-ai@3.9.2
|
|
186
|
+
cadre-ai --version
|
|
187
|
+
cadre-ai doctor
|
|
188
|
+
cadre-ai install --target all --scope user
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
Start a new Codex task, reload Claude Code plugins, and run `workspace: reload` in Zed before opening a new Agent thread. Existing 3.9.0/3.9.1 projects using v5 need no routine refresh or schema/template migration. Older contracts retain their existing approved refresh requirements. Codex, Claude Code, and native Zed Agent remain stable integrations. Final clean completion still requires explicit approval.
|
|
192
|
+
|
|
193
|
+
|
|
3
194
|
## [3.9.1] - 2026-10-01
|
|
4
195
|
|
|
5
196
|
Cadre 3.9.1 fixes implementation/review bookkeeping loops and interrupted-operation recovery. Native Zed Agent joins Codex and Claude Code as a stable integration. Track remains the default approval mode and Parallel remains the default scheduling mode; clean completion still requires explicit final approval.
|
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# Cadre
|
|
2
2
|
|
|
3
|
-
**Cadre
|
|
3
|
+
**Cadre 4.0.0** simplifies the runtime around one receipt-based mutation path
|
|
4
|
+
and the current v6 template catalog. All ten workflows, four approval modes,
|
|
5
|
+
both scheduling modes, and stable Codex, Claude Code and Zed integrations remain
|
|
6
|
+
available. Install [cadre-ai from npm](https://www.npmjs.com/package/cadre-ai).
|
|
4
7
|
|
|
5
8
|
Cadre is a human-governed, Git-aware delivery harness for Codex, Claude Code,
|
|
6
9
|
and Zed Agent. All three integrations are stable as of Cadre 3.9.1.
|
|
@@ -18,6 +21,56 @@ templates. A project keeps only approved, mutable delivery state under
|
|
|
18
21
|
[Quickstart](https://cadre-docs.pages.dev/quickstart/) ·
|
|
19
22
|
[Release notes](https://cadre-docs.pages.dev/release-notes/)
|
|
20
23
|
|
|
24
|
+
## GitHub Integration (Beta)
|
|
25
|
+
|
|
26
|
+
The opt-in GitHub Integration Beta adds shared PR ownership, phase synchronization, automatic
|
|
27
|
+
checkpoint publication and generated GitHub enforcement. It is explicitly
|
|
28
|
+
opt-in: local-only projects keep their workflows and require no GitHub access.
|
|
29
|
+
Install the beta with `npm install -g cadre-ai@beta` (4.1.0-beta.0). Stable installs
|
|
30
|
+
continue using 4.0.0. CI requires an exact validator version, such as
|
|
31
|
+
`4.1.0-beta.0`, or a digest-pinned candidate archive.
|
|
32
|
+
GitLab support is planned for a future release, with no committed date.
|
|
33
|
+
See [GitHub Integration (Beta)](https://cadre-docs.pages.dev/github-collaboration/).
|
|
34
|
+
|
|
35
|
+
## What changes in 4.0.0
|
|
36
|
+
|
|
37
|
+
- **One recovery contract:** initialization, implementation completion, clean
|
|
38
|
+
review and archive use immutable operation receipts. Commit each operation
|
|
39
|
+
once, then reconcile its receipt; no follow-up commit is needed to record its SHA.
|
|
40
|
+
- **Smaller public surface:** 22 MCP tools and only template v6 in the installed
|
|
41
|
+
payload. Direct integrations must stop calling `archive_batch_record`,
|
|
42
|
+
`setup_record_commit` and `setup_record_git_initialized`.
|
|
43
|
+
- **Existing projects:** 3.9.0/3.9.1/3.9.2 projects with schema-2 state and v5
|
|
44
|
+
templates continue without a project migration or version-only refresh.
|
|
45
|
+
Historical journals, approval evidence and interrupted receipt recovery remain
|
|
46
|
+
supported.
|
|
47
|
+
- **Older formats:** `PROJECT_UPGRADE_REQUIRED` provides the bridge route:
|
|
48
|
+
install Cadre 3.9.0, reconcile interrupted work and run its approved refresh to
|
|
49
|
+
schema-2/v5, then install 4.0.0 and reload the client. Never change version labels
|
|
50
|
+
by hand. See the [release notes](https://cadre-docs.pages.dev/release-notes/).
|
|
51
|
+
|
|
52
|
+
Verification passed 480 harness tests and a dummy-project lifecycle across 14
|
|
53
|
+
fresh Codex sessions: brownfield create, interrupted track drafting, active
|
|
54
|
+
revision, review/remediation, manual-edit freshness checks, archive recovery and
|
|
55
|
+
refresh. The dummy app passed 26 tests and 200,020 arithmetic comparisons. Native
|
|
56
|
+
workflow coverage was Autonomous/sequential; it does not establish exhaustive
|
|
57
|
+
coverage of every mode or client. See the [testing and release documentation](https://cadre-docs.pages.dev/testing-and-release/).
|
|
58
|
+
|
|
59
|
+
## Roadmap
|
|
60
|
+
|
|
61
|
+
1. **GitHub Integration — Beta:** shared PR ownership, checkpoint pushes,
|
|
62
|
+
phase synchronization and GitHub enforcement in the opt-in candidate.
|
|
63
|
+
2. **GitLab Integration — Coming Soon:** future support for team coordination
|
|
64
|
+
through GitLab merge requests; not implemented yet.
|
|
65
|
+
3. **Knowledge Base — Coming Soon:** capture decisions and learning during
|
|
66
|
+
delivery and reuse relevant knowledge as context for subsequent work.
|
|
67
|
+
4. **Polyrepo Support — Coming Soon:** coordinate dependencies and delivery
|
|
68
|
+
across repositories while retaining per-repository history and approvals.
|
|
69
|
+
|
|
70
|
+
These capabilities are independently **opt-in and disabled by default**. Local-only
|
|
71
|
+
workflows remain unchanged. GitHub Beta is not part of the published 4.0.0 package;
|
|
72
|
+
install the beta channel to try it. Future capabilities have no committed
|
|
73
|
+
release dates. See the [roadmap](https://cadre-docs.pages.dev/team-and-polyrepo/).
|
|
21
74
|
|
|
22
75
|
## Capabilities
|
|
23
76
|
|
|
@@ -166,8 +219,10 @@ After installation or update:
|
|
|
166
219
|
|
|
167
220
|
- Start a new Codex conversation so the new skills and MCP tools are loaded.
|
|
168
221
|
- In Claude Code, run `/reload-plugins` or start a new session.
|
|
169
|
-
- In Zed,
|
|
170
|
-
|
|
222
|
+
- In Zed, run `workspace: reload` from the command palette, then open a new
|
|
223
|
+
Agent thread. Confirm all ten skills under AI → Skills and the active Cadre
|
|
224
|
+
server under AI → MCP Servers. Replacing the installed payload can leave
|
|
225
|
+
an already-open workspace with stale skill discovery until it reloads.
|
|
171
226
|
|
|
172
227
|
You can inspect installation state with:
|
|
173
228
|
|
|
@@ -236,7 +291,7 @@ Zed Agent: /cadre-implement passwordless-login sequentially
|
|
|
236
291
|
|
|
237
292
|
Implementation starts only after declared track dependencies are completed. Phase and task dependencies form a hierarchical DAG: phase dependencies activate phases, task dependencies expose phase-local work, and main allocates one global worker bound across every ready task. The generated workflow defaults to three delegated workers, the execution runtime accepts `maxWorkers` from 1 through 32, and effective concurrency is clamped by safe ready nodes and available host worker slots. Different phases can use direct execution, a sequential phase worker, or task-worker fan-out concurrently. Within one phase, execution can switch between sequential and fan-out modes only at a clean, journaled checkpoint. The main agent remains the only scheduler, operational owner of phase integration worktrees, state owner, merger, conflict resolver, worktree cleaner, and recorder of human approval.
|
|
238
293
|
|
|
239
|
-
Every delivery phase ends with a derived
|
|
294
|
+
Every delivery phase ends with a derived verification barrier over its tasks. The final track-level verification depends on every delivery phase and always runs in the main agent against the canonical worktree. Governed and Phase modes require human phase approval; Governed, Phase and Track require human track verification. Autonomous verifies under persisted authority and requires explicit final clean-completion approval. Cadre resumes from its execution journal, reads dependency-phase learning, verifies changes under the selected mode, records task and phase provenance, and advances the track to `ready_for_review` only after all barriers pass.
|
|
240
295
|
|
|
241
296
|
### 4. Review and complete the track
|
|
242
297
|
|
|
@@ -309,7 +364,8 @@ An initialized project has this shape:
|
|
|
309
364
|
├── tracks.md
|
|
310
365
|
├── styleguides/
|
|
311
366
|
├── patterns/
|
|
312
|
-
├──
|
|
367
|
+
├── receipts/ # tracked immutable operation evidence
|
|
368
|
+
├── operations/ # retained historical journals, when present
|
|
313
369
|
├── refreshes/
|
|
314
370
|
├── tracks/
|
|
315
371
|
│ └── <track-id>/
|
|
@@ -321,7 +377,7 @@ An initialized project has this shape:
|
|
|
321
377
|
│ ├── bugs/
|
|
322
378
|
│ └── revisions/
|
|
323
379
|
├── archive/
|
|
324
|
-
├── stage/ # ignored
|
|
380
|
+
├── stage/ # ignored candidates and approved recovery journals
|
|
325
381
|
├── .worktrees/ # ignored, temporary execution worktrees
|
|
326
382
|
└── wisps/ # ignored, disposable exploration output
|
|
327
383
|
```
|
|
@@ -333,51 +389,55 @@ Important sources of truth:
|
|
|
333
389
|
- `executions/execution-<id>.json` is the resumable runtime journal. Ready and active nodes are derived from it; track state does not duplicate an active phase or task.
|
|
334
390
|
- Track-local `state.json` defines identity, type, lifecycle status, track dependencies, revision, checkpoints, operation history, and the last completed execution reference.
|
|
335
391
|
- `project.json` contains project setup and refresh history; it does not duplicate track records.
|
|
336
|
-
- `.cadre/
|
|
392
|
+
- `.cadre/receipts/<operation-id>.json` preserves immutable operation evidence. Commit it with the promoted artifacts once; reconciliation verifies that commit without writing a follow-up SHA commit.
|
|
393
|
+
- `.cadre/stage/operations/<operation-id>.json` retains ignored approved recovery state until reconciliation. Preserve it across interruptions. Historical `.cadre/operations/` records remain supported evidence.
|
|
337
394
|
- `tracks.md` is generated from track-local state and is never hand-edited.
|
|
338
395
|
- Track directory paths are derived from status and ID. A path is never persisted in track state.
|
|
339
396
|
|
|
340
397
|
## MCP capabilities
|
|
341
398
|
|
|
342
|
-
The `cadre` stdio server exposes active immutable resources at `cadre://templates/
|
|
399
|
+
The `cadre` stdio server exposes active immutable resources at `cadre://templates/v6/...` and 24 tools:
|
|
343
400
|
|
|
344
401
|
| Tool | Mutation | Purpose |
|
|
345
402
|
| --- | --- | --- |
|
|
403
|
+
| `github_status` | No | Inspect explicitly opted-in GitHub coordination; local projects make no GitHub calls. |
|
|
404
|
+
| `github_operation` | Approval-aware | Reserve/join PRs, publish checkpoints, synchronize, assess review and recover incidents. |
|
|
405
|
+
| `workflow_elicit` | No | Return required workflow questions through native elicitation or a structured fallback. |
|
|
346
406
|
| `template_get_many` | No | Read an ordered template bundle in one call; immutable catalog contents are cached for the server lifetime. |
|
|
347
407
|
| `styleguide_resolve` | No | Resolve default styleguide descriptors and hashes for an approved technology list. |
|
|
348
408
|
| `context_read` | No | Read required track/node context with source hashes, freshness findings, and complete continuation pages. |
|
|
409
|
+
| `diagnostic_read` | No | Page through a full process-local diagnostic after a bounded error response. |
|
|
349
410
|
| `project_status` | No | Return complete validation plus scoped canonical, staged, shadowed, or implementation status. |
|
|
350
411
|
| `state_validate` | No | Validate project, track, plan, learning, dependency, review, and archive invariants. |
|
|
351
412
|
| `candidate_stage_prepare` | Atomic | Create/resume a stage and optionally prune files outside its exact `expectedFiles` set. |
|
|
352
413
|
| `candidate_inspect` | No | Return one exact manifest and validate every staged root or nested plan against its declared target status. |
|
|
414
|
+
| `candidate_apply` | Approval-aware | Prepare/apply approved candidates and resume/reconcile immutable operation receipts. |
|
|
353
415
|
| `execution_graph_validate` | No | Parse and validate phase/task dependencies, cycles, and derived manual-verification barriers. |
|
|
354
|
-
| `review_complete` | Adaptive | Derive the
|
|
416
|
+
| `review_complete` | Adaptive | Derive the review range from the execution base or original Autonomous baseline, then prepare/apply clean completion. |
|
|
355
417
|
| `archive_batch_candidate` | Adaptive | Read staged pattern/seed files, return the complete batch for approval, then apply its unchanged token. |
|
|
356
|
-
| `archive_batch_record` | Atomic | Record the resulting archive commit in track, project, and batch provenance without a second decision. |
|
|
357
418
|
| `execution_start` | Atomic | Create the authorized execution journal and enter `in_progress` in one call. |
|
|
358
419
|
| `execution_checkpoint` | Atomic | Apply one strict `scope` + event-specific `action` with required evidence. |
|
|
359
420
|
| `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
|
|
360
|
-
| `execution_finish` | Atomic |
|
|
421
|
+
| `execution_finish` | Atomic | Promote completed execution, plan markers, `ready_for_review` state, index and receipt with resumable per-file writes. |
|
|
361
422
|
| `worktree_create` | Atomic | Create/reconcile a worktree and record node start. |
|
|
362
423
|
| `integration` | Adaptive | Merge and record integration; require a second call only in governed mode. |
|
|
363
424
|
| `worktree_cleanup` | Atomic | Remove a verified integrated worktree and record completion. |
|
|
364
425
|
| `project_init_candidate` | Adaptive | Generate defaults around staged authored context and apply after approval. |
|
|
365
|
-
| `setup_record_git_initialized` | Yes | Record the verified Git-initialization checkpoint. |
|
|
366
|
-
| `setup_record_commit` | Yes | Record the already-created setup commit SHA and complete setup state. |
|
|
367
426
|
| `tracks_render` | Atomic | Validate and write deterministic `tracks.md` from current track state. |
|
|
368
427
|
|
|
369
|
-
|
|
370
|
-
declared fields, while apply accepts only an unchanged `proposalToken`.
|
|
428
|
+
Adaptive prepare/apply tools use a strict `request` union: prepare accepts only
|
|
429
|
+
its declared fields, while apply accepts only an unchanged `proposalToken`.
|
|
430
|
+
`candidate_apply` also supports explicit resume and reconcile requests. The MCP
|
|
371
431
|
selects one result representation: structured JSON and output schemas for recognized structured clients, compact text for other clients. Server-side output validation remains strict in both cases. Template bodies appear once. The Node-18-compatible serialized tool catalog is kept below 80 KiB, including the context and handoff contracts. The MCP
|
|
372
432
|
server cannot approve its own proposals or run arbitrary shell commands. Its
|
|
373
433
|
Git surface is limited to derived Cadre worktree creation, non-squash
|
|
374
|
-
integration, status, and
|
|
434
|
+
integration, status, verified cleanup, and explicitly opted-in GitHub PR coordination. It never force-deletes a branch,
|
|
375
435
|
resolves a conflict, edits product files, or commits on behalf of a worker.
|
|
376
436
|
Multi-file state operations use atomic individual writes and converge from
|
|
377
437
|
matching partial state; mismatched bytes, hashes, journals, or Git HEAD remain
|
|
378
438
|
hard failures.
|
|
379
439
|
|
|
380
|
-
Review and archive minimize approval fragmentation without weakening governance. A finding disposition and its exact remediation artifacts may share one approval
|
|
440
|
+
Review and archive minimize approval fragmentation without weakening governance. A finding disposition and its exact remediation artifacts may share one approval. Outside Autonomous, explicit reject-and-complete records accepted risks; Autonomous completion requires no unresolved findings or accepted risks. Omitting archive track IDs selects all eligible completed tracks in dependency order. 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.
|
|
381
441
|
|
|
382
442
|
### Worktree layout and worker model
|
|
383
443
|
|
|
@@ -431,7 +491,7 @@ pnpm --filter cadre-ai validate
|
|
|
431
491
|
|
|
432
492
|
### Memory format upgrade
|
|
433
493
|
|
|
434
|
-
The current
|
|
494
|
+
The current package ships template set v6. Existing 3.9.0/3.9.1/3.9.2 schema-2/v5 projects need no project migration or version-only refresh. Older formats must use Cadre 3.9.0 for an approved refresh to schema-2/v5 before installing 4.0. Published v1–v5 templates remain unchanged in source, and terminal learning remains historical evidence. Active Pattern Seeds record revisions and exact pattern fingerprints; changed guidance requires reassessment. Task handoffs preserve decisions, failed approaches, uncertainty, and next actions alongside existing checkpoints. Use all `context_read` pages before acting, and retain source inspection and approval gates. Routine `project_status` uses summaries; request `detail: "full"` for history/graph diagnostics. Filtered/paged listings never narrow validation coverage.
|
|
435
495
|
|
|
436
496
|
Release preparation includes regression tests, package inspection, and documentation checks. Publishing still requires native installer/discovery/activation checks for Codex, Claude Code, and Zed. Local model tests and byte benchmarks do not establish universal token savings or semantic correctness of generated learning.
|
|
437
497
|
|