cadre-ai 4.1.0-beta.0 → 4.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.
- package/.claude-plugin/plugin.json +13 -4
- package/.codex-plugin/plugin.json +11 -7
- package/CHANGELOG.md +86 -23
- package/LICENSE +202 -21
- package/NOTICE +17 -0
- package/README.md +138 -79
- package/dist/THIRD_PARTY_NOTICES.txt +2411 -0
- package/dist/cadre-cli.mjs +14269 -19813
- package/dist/cadre-mcp.mjs +18021 -7071
- package/marketplace/claude.json +2 -1
- package/marketplace/codex.json +1 -1
- package/package.json +10 -8
- package/skills/create/SKILL.md +1 -3
- package/skills/implement/SKILL.md +5 -3
- package/skills/quick/SKILL.md +41 -0
- package/skills/quick/agents/openai.yaml +4 -0
- package/skills/refresh/SKILL.md +36 -10
- package/skills/refresh/agents/openai.yaml +2 -2
- package/skills/revert/SKILL.md +2 -4
- package/skills/review/SKILL.md +6 -4
- package/skills/revise/SKILL.md +5 -3
- package/skills/status/SKILL.md +5 -1
- package/skills/track/SKILL.md +6 -4
- package/skills/wisp/SKILL.md +3 -3
- package/templates/{v6 → v8}/init/workflow.md +24 -3
- package/templates/v8/project/refresh.md +37 -0
- package/templates/v8/quick/record.json +15 -0
- package/skills/archive/SKILL.md +0 -58
- package/skills/archive/agents/openai.yaml +0 -4
- package/skills/archive/references/github-collaboration.md +0 -46
- package/skills/create/references/github-collaboration.md +0 -46
- package/skills/implement/references/github-collaboration.md +0 -46
- package/skills/refresh/references/github-collaboration.md +0 -46
- package/skills/revert/references/github-collaboration.md +0 -46
- package/skills/review/references/github-collaboration.md +0 -46
- package/skills/revise/references/github-collaboration.md +0 -46
- package/skills/track/references/github-collaboration.md +0 -46
- package/templates/github-v1/enforcement.yml +0 -38
- package/templates/github-v1/workflow.md +0 -46
- package/templates/v6/project/archive-operation.json +0 -19
- package/templates/v6/project/refresh.md +0 -21
- /package/templates/{v6 → v8}/init/archive/.gitkeep +0 -0
- /package/templates/{v6 → v8}/init/gitignore.template +0 -0
- /package/templates/{v6 → v8}/init/guidelines.md +0 -0
- /package/templates/{v6 → v8}/init/operations/.gitkeep +0 -0
- /package/templates/{v6 → v8}/init/patterns/index.md +0 -0
- /package/templates/{v6 → v8}/init/product.md +0 -0
- /package/templates/{v6 → v8}/init/project.json +0 -0
- /package/templates/{v6 → v8}/init/refreshes/.gitkeep +0 -0
- /package/templates/{v6 → v8}/init/styleguides/general.md +0 -0
- /package/templates/{v6 → v8}/init/styleguides/language.md +0 -0
- /package/templates/{v6 → v8}/init/tech-stack.md +0 -0
- /package/templates/{v6 → v8}/init/tracks/.gitkeep +0 -0
- /package/templates/{v6 → v8}/init/tracks.md +0 -0
- /package/templates/{v6 → v8}/init/wisps/.gitkeep +0 -0
- /package/templates/{v6 → v8}/project/pattern.md +0 -0
- /package/templates/{v6 → v8}/project/refresh-operation.json +0 -0
- /package/templates/{v6 → v8}/styleguides/dart.md +0 -0
- /package/templates/{v6 → v8}/styleguides/flutter.md +0 -0
- /package/templates/{v6 → v8}/styleguides/go.md +0 -0
- /package/templates/{v6 → v8}/styleguides/gradle.md +0 -0
- /package/templates/{v6 → v8}/styleguides/html-css.md +0 -0
- /package/templates/{v6 → v8}/styleguides/index.md +0 -0
- /package/templates/{v6 → v8}/styleguides/java.md +0 -0
- /package/templates/{v6 → v8}/styleguides/javascript.md +0 -0
- /package/templates/{v6 → v8}/styleguides/kotlin.md +0 -0
- /package/templates/{v6 → v8}/styleguides/maven.md +0 -0
- /package/templates/{v6 → v8}/styleguides/python.md +0 -0
- /package/templates/{v6 → v8}/styleguides/react.md +0 -0
- /package/templates/{v6 → v8}/styleguides/swift.md +0 -0
- /package/templates/{v6 → v8}/styleguides/swiftui.md +0 -0
- /package/templates/{v6 → v8}/styleguides/typescript.md +0 -0
- /package/templates/{v6 → v8}/track/bug.md +0 -0
- /package/templates/{v6 → v8}/track/dependency-context.json +0 -0
- /package/templates/{v6 → v8}/track/execution.json +0 -0
- /package/templates/{v6 → v8}/track/learning.md +0 -0
- /package/templates/{v6 → v8}/track/plan.md +0 -0
- /package/templates/{v6 → v8}/track/revert-operation.json +0 -0
- /package/templates/{v6 → v8}/track/revise-operation.json +0 -0
- /package/templates/{v6 → v8}/track/revision.md +0 -0
- /package/templates/{v6 → v8}/track/spec.md +0 -0
- /package/templates/{v6 → v8}/track/state.json +0 -0
package/README.md
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
# Cadre
|
|
1
|
+
# Dhivon Cadre
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
Cadre is a product of [Dhivon AI](https://dhivon.ai).
|
|
4
|
+
|
|
5
|
+
**Cadre 4.2.0** adds optional operation telemetry to help diagnose slow MCP
|
|
6
|
+
operations and failures. Telemetry-capable builds default on outside CI, with clear
|
|
7
|
+
installation/startup disclosure, persistent opt-out, and support for your own
|
|
8
|
+
Sentry DSN or a Sentry-free build. Ten workflows, 21 MCP tools, and immutable
|
|
9
|
+
template v8 support Codex, Claude Code, and Zed Agent. See [cadre-ai on npm](https://www.npmjs.com/package/cadre-ai).
|
|
7
10
|
|
|
8
11
|
Cadre is a human-governed, Git-aware delivery harness for Codex, Claude Code,
|
|
9
12
|
and Zed Agent. All three integrations are stable as of Cadre 3.9.1.
|
|
@@ -17,73 +20,113 @@ server provides deterministic state operations and immutable, versioned
|
|
|
17
20
|
templates. A project keeps only approved, mutable delivery state under
|
|
18
21
|
`.cadre/`; runtime code and template catalogs are not copied into the project.
|
|
19
22
|
|
|
20
|
-
**Documentation:** [cadre
|
|
21
|
-
[Quickstart](https://cadre
|
|
22
|
-
[Release notes](https://cadre
|
|
23
|
-
|
|
24
|
-
##
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
`
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
- **
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
4.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
23
|
+
**Documentation:** [cadre.dhivon.ai](https://cadre.dhivon.ai/) ·
|
|
24
|
+
[Quickstart](https://cadre.dhivon.ai/quickstart/) ·
|
|
25
|
+
[Release notes](https://cadre.dhivon.ai/release-notes/)
|
|
26
|
+
|
|
27
|
+
## What changes in 4.2.0
|
|
28
|
+
|
|
29
|
+
- **Understand bottlenecks:** operation and nested-phase timing, approval wait,
|
|
30
|
+
sanitized error codes, inspection counters, and client/release/template versions.
|
|
31
|
+
- **Observe usage:** timestamped project, track, and Quick inventories with random
|
|
32
|
+
IDs. Counts describe observed project installations; repeated snapshots are not totals.
|
|
33
|
+
- **Control collection:** disable with `cadre-ai telemetry disable`,
|
|
34
|
+
`cadre-ai install --telemetry off`, or `DO_NOT_TRACK=1`. Saved preferences survive upgrades.
|
|
35
|
+
- **Choose the destination:** replace the default with your own DSN, or build with
|
|
36
|
+
`CADRE_BUILD_TELEMETRY=none` to exclude Sentry and the default DSN.
|
|
37
|
+
Builds without `CADRE_BUILD_SENTRY_DSN` also omit Sentry entirely; release builds
|
|
38
|
+
receive it from the `CADRE_SENTRY_DSN` GitHub Actions secret.
|
|
39
|
+
- **Keep project state compatible:** existing 3.9.x, 4.0.0, and 4.1.0 schema-2
|
|
40
|
+
projects remain supported. No migration is needed for telemetry.
|
|
41
|
+
|
|
42
|
+
See [telemetry configuration](https://cadre.dhivon.ai/configuration/#optional-telemetry)
|
|
43
|
+
for collected/excluded data, precedence, and best-effort delivery limits.
|
|
44
|
+
|
|
45
|
+
## What changes in 4.1.0
|
|
46
|
+
|
|
47
|
+
- **Quick changes:** deliver one bounded fix, refactor, documentation change,
|
|
48
|
+
test, or small feature with one final approval, one durable outcome record,
|
|
49
|
+
and one combined commit.
|
|
50
|
+
- **Unified Refresh:** assess repository changes, project context, existing
|
|
51
|
+
patterns, selected track learning, and up to 20 quick outcomes together.
|
|
52
|
+
Update guidance, reassess active-track seeds and dependencies, and archive
|
|
53
|
+
completed work under one approval, one receipt, and one commit.
|
|
54
|
+
- **Ten workflows, 21 tools:** remove the standalone archive skill and
|
|
55
|
+
`archive_batch_candidate`. New archival uses Refresh; approved historical
|
|
56
|
+
archive journals remain recoverable through `candidate_apply`.
|
|
57
|
+
- **Compatible upgrades:** schema-2 projects from 3.9.0, 3.9.1, 3.9.2, and 4.0.0
|
|
58
|
+
remain readable and usable. Adopt new workflow contracts through an approved
|
|
59
|
+
Refresh that preserves custom policy, completed history, and recovery authority.
|
|
60
|
+
- **Template v8 and client cleanup:** retain immutable v1–v7 source history;
|
|
61
|
+
safely remove obsolete Cadre-owned Zed archive links and exact tool permissions.
|
|
62
|
+
|
|
63
|
+
Quick and Refresh verification includes 660 dummy-project protocol cases across
|
|
64
|
+
Codex, Claude Code, and Zed identities, plus live Codex delivery and recovery.
|
|
65
|
+
Claude Code and Zed coverage is protocol/installer coverage, not native model
|
|
66
|
+
execution. See the [testing and release documentation](https://cadre.dhivon.ai/testing-and-release/).
|
|
67
|
+
|
|
68
|
+
## Unified Refresh
|
|
69
|
+
|
|
70
|
+
Refresh now combines context maintenance, learning consolidation and completed-track archival under one approval, receipt and commit. Cadre 4.2.0 exposes ten workflows and 21 MCP tools with template v8. The standalone archive skill and MCP tool are removed. Existing approved archive journals remain recoverable through `candidate_apply`. Older supported projects adopt the new workflow contract in an approved Refresh.
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
Create → Track → Implement → Review → completed tracks ─┐
|
|
74
|
+
└──→ Quick → verified outcomes ─────────────────────┤
|
|
75
|
+
Context + patterns + repository changes ────────────────┤
|
|
76
|
+
↓
|
|
77
|
+
Refresh
|
|
78
|
+
context + learning + active seeds + archival
|
|
79
|
+
one approval · one receipt · one commit
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Omitting track IDs selects all eligible completed tracks in dependency order.
|
|
83
|
+
Explicit IDs limit the batch; an explicit empty selection skips track archival.
|
|
84
|
+
Refresh assesses up to 20 quick outcomes with the selected tracks, with no track
|
|
85
|
+
batch limit. It also works without completed tracks or new guidance to add.
|
|
86
|
+
|
|
87
|
+
## Quick changes
|
|
88
|
+
|
|
89
|
+
Use `quick` for one bounded fix, refactor, documentation change, test, or small
|
|
90
|
+
feature. It reads relevant Cadre context, implements and verifies the change,
|
|
91
|
+
then asks for one final approval of the diff and outcome record. Material scope
|
|
92
|
+
choices are discussed before editing. One local commit contains the change and
|
|
93
|
+
its durable record. A later approved `refresh` batch consolidates useful lessons
|
|
94
|
+
and moves unchanged records to `.cadre/archive/.quick/`. Routine track context
|
|
95
|
+
loads no quick history; focused search retrieves relevant outcomes when needed.
|
|
96
|
+
|
|
97
|
+
Invoke `$cadre:quick` in Codex, `/cadre:quick` in Claude Code, or `/cadre-quick`
|
|
98
|
+
in Zed. Cadre 4.2.0 includes Quick and unified Refresh with template v8. Existing v5/v6
|
|
99
|
+
projects retain their workflows; enabling quick requires an approved refresh
|
|
100
|
+
adopting its contract. Wisp remains stateless exploration.
|
|
101
|
+
|
|
102
|
+
## Upcoming roadmap
|
|
103
|
+
|
|
104
|
+
Three optional capabilities are planned beyond 4.2.0:
|
|
105
|
+
|
|
106
|
+
1. **Deeper GitHub / GitLab integration** for coordinating work across multiple
|
|
107
|
+
people, including shared work status, ownership and review handoffs.
|
|
108
|
+
2. **A knowledge base built as work happens**, capturing decisions and learning
|
|
109
|
+
during delivery and using relevant knowledge as context for subsequent work.
|
|
110
|
+
3. **Polyrepo support** for coordinating dependencies and delivery across
|
|
111
|
+
multiple repositories while retaining per-repository history and approvals.
|
|
112
|
+
|
|
113
|
+
Each capability will be independently **opt-in and disabled by default**. The
|
|
114
|
+
core single-repository workflow will remain usable without enabling any of them.
|
|
115
|
+
These are upcoming roadmap items, not features included in 4.2.0; no delivery dates
|
|
116
|
+
are committed. See the [roadmap](https://cadre.dhivon.ai/team-and-polyrepo/).
|
|
74
117
|
|
|
75
118
|
## Capabilities
|
|
76
119
|
|
|
77
120
|
- Greenfield and brownfield project onboarding, with an explicit classification gate when the repository is ambiguous.
|
|
78
121
|
- Human approval of scope and approval policy, with explicit author approval for clean track completion.
|
|
79
|
-
- Resumable create, specification, planning, implementation, review, revision, refresh
|
|
122
|
+
- Resumable create, specification, planning, implementation, review, revision, refresh with archival, and revert flows.
|
|
80
123
|
- Parallel-by-default implementation of dependency DAGs, with an explicit sequential mode.
|
|
81
124
|
- Isolated phase and task workers in Cadre-managed Git worktrees, coordinated and integrated only by the main agent.
|
|
82
125
|
- Feature and bug tracks with functional requirements, non-functional requirements, acceptance criteria, dependencies, phased tasks, and manual-verification gates.
|
|
83
126
|
- Dependency enforcement before implementation and cascading-impact analysis after specification, workflow, stack, styleguide, or pattern changes.
|
|
84
127
|
- Incremental learning in each track's `learning.md`; each phase reads its declared dependency learning and applicable constraints before work starts.
|
|
85
128
|
- Review → remediation → implementation cycles until the human accepts a clean review.
|
|
86
|
-
-
|
|
129
|
+
- Unified Refresh with context updates, track and quick learning consolidation, active-track reseeding, and completed-track archival.
|
|
87
130
|
- Git-aware task, phase, setup, review, revision, refresh, revert, and archive provenance using Conventional Commits.
|
|
88
131
|
- Read-before-edit enforcement: existing files and directly relevant context must be inspected before modification.
|
|
89
132
|
- Stateless exploration through `wisp`, without mutating Cadre lifecycle state.
|
|
@@ -303,27 +346,27 @@ Zed Agent: /cadre-review passwordless-login
|
|
|
303
346
|
|
|
304
347
|
Findings are presented before they become Cadre state. Approved bugs create a timestamped bug artifact and add remediation phases to the plan. A human-approved clean review marks the track `completed`.
|
|
305
348
|
|
|
306
|
-
### 5.
|
|
349
|
+
### 5. Refresh and archive completed work
|
|
307
350
|
|
|
308
351
|
```text
|
|
309
|
-
Codex: $cadre:
|
|
310
|
-
Claude Code: /cadre:
|
|
311
|
-
Zed Agent: /cadre-
|
|
352
|
+
Codex: $cadre:refresh passwordless-login account-lockout
|
|
353
|
+
Claude Code: /cadre:refresh all completed
|
|
354
|
+
Zed Agent: /cadre-refresh all completed
|
|
312
355
|
```
|
|
313
356
|
|
|
314
|
-
|
|
357
|
+
Refresh accepts one or more completed tracks in one resumable batch. It distills their durable learning into the project pattern catalog, updates relevant seeds for active tracks, preserves the full track history, and moves each selected track to its derived archive location.
|
|
315
358
|
|
|
316
359
|
## Command reference
|
|
317
360
|
|
|
318
361
|
| Command | Purpose |
|
|
319
362
|
| --- | --- |
|
|
320
363
|
| `create` | Initialize or resume Cadre, classify project context, initialize Git when needed, and establish approved project artifacts. |
|
|
364
|
+
| `quick` | Deliver a bounded change with one final approval, one combined commit, and a durable outcome record. |
|
|
321
365
|
| `track` | Create or resume a feature/bug specification, phased plan, dependency set, and learning seed. |
|
|
322
366
|
| `implement` | Execute or resume the approved phase/task DAG in parallel by default or explicitly sequentially, with worktrees, tests, learning, approvals, and commit provenance. |
|
|
323
367
|
| `review` | Review a ready track, record approved findings, add remediation phases, or complete an approved clean cycle. |
|
|
324
368
|
| `revise` | Route a requested change by lifecycle state, revise an approved active baseline, or propose a successor for completed history. |
|
|
325
|
-
| `
|
|
326
|
-
| `refresh` | Refresh project context from user input, repository changes, and completed-track outcomes. |
|
|
369
|
+
| `refresh` | Update context, consolidate track/quick learning, reseed active work, and archive completed tracks in one approval and commit. |
|
|
327
370
|
| `revert` | Prepare and execute a human-approved additive Git revert for a task, phase, or track. |
|
|
328
371
|
| `status` | Validate and summarize project, operation, track, dependency, review, and archive state without mutation. |
|
|
329
372
|
| `wisp` | Explore or investigate without creating or changing Cadre lifecycle state. |
|
|
@@ -334,12 +377,12 @@ Archive accepts one or more completed tracks in one resumable batch. It distills
|
|
|
334
377
|
drafting-spec → drafting-plan → planned → in_progress → ready_for_review
|
|
335
378
|
│ │ ├─ revise → in_progress/planned
|
|
336
379
|
└─ revise ──┴───────────────┼─ approved bugs → in_progress
|
|
337
|
-
└─ approved clean review → completed → archived
|
|
380
|
+
└─ approved clean review → completed ─ refresh → archived
|
|
338
381
|
|
|
339
382
|
completed/archived ── changed intent → successor track
|
|
340
383
|
```
|
|
341
384
|
|
|
342
|
-
Only `review` can mark a track completed. Only `
|
|
385
|
+
Only `review` can mark a track completed. Only `refresh` can mark it archived. The `revise` command is callable in every state, but its behavior preserves approved history:
|
|
343
386
|
|
|
344
387
|
- `drafting-spec` changes continue the track draft without creating a revision.
|
|
345
388
|
- In `drafting-plan`, an approved-spec change is a revision while an unapproved-plan change remains drafting.
|
|
@@ -366,6 +409,7 @@ An initialized project has this shape:
|
|
|
366
409
|
├── patterns/
|
|
367
410
|
├── receipts/ # tracked immutable operation evidence
|
|
368
411
|
├── operations/ # retained historical journals, when present
|
|
412
|
+
├── quick/ # immutable small-change outcome records
|
|
369
413
|
├── refreshes/
|
|
370
414
|
├── tracks/
|
|
371
415
|
│ └── <track-id>/
|
|
@@ -377,6 +421,8 @@ An initialized project has this shape:
|
|
|
377
421
|
│ ├── bugs/
|
|
378
422
|
│ └── revisions/
|
|
379
423
|
├── archive/
|
|
424
|
+
│ ├── <track-id>/
|
|
425
|
+
│ └── .quick/ # consolidated immutable quick records
|
|
380
426
|
├── stage/ # ignored candidates and approved recovery journals
|
|
381
427
|
├── .worktrees/ # ignored, temporary execution worktrees
|
|
382
428
|
└── wisps/ # ignored, disposable exploration output
|
|
@@ -396,12 +442,10 @@ Important sources of truth:
|
|
|
396
442
|
|
|
397
443
|
## MCP capabilities
|
|
398
444
|
|
|
399
|
-
The `cadre` stdio server exposes active immutable resources at `cadre://templates/
|
|
445
|
+
The `cadre` stdio server exposes active immutable resources at `cadre://templates/v8/...` and 21 tools:
|
|
400
446
|
|
|
401
447
|
| Tool | Mutation | Purpose |
|
|
402
448
|
| --- | --- | --- |
|
|
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
449
|
| `workflow_elicit` | No | Return required workflow questions through native elicitation or a structured fallback. |
|
|
406
450
|
| `template_get_many` | No | Read an ordered template bundle in one call; immutable catalog contents are cached for the server lifetime. |
|
|
407
451
|
| `styleguide_resolve` | No | Resolve default styleguide descriptors and hashes for an approved technology list. |
|
|
@@ -414,7 +458,6 @@ The `cadre` stdio server exposes active immutable resources at `cadre://template
|
|
|
414
458
|
| `candidate_apply` | Approval-aware | Prepare/apply approved candidates and resume/reconcile immutable operation receipts. |
|
|
415
459
|
| `execution_graph_validate` | No | Parse and validate phase/task dependencies, cycles, and derived manual-verification barriers. |
|
|
416
460
|
| `review_complete` | Adaptive | Derive the review range from the execution base or original Autonomous baseline, then prepare/apply clean completion. |
|
|
417
|
-
| `archive_batch_candidate` | Adaptive | Read staged pattern/seed files, return the complete batch for approval, then apply its unchanged token. |
|
|
418
461
|
| `execution_start` | Atomic | Create the authorized execution journal and enter `in_progress` in one call. |
|
|
419
462
|
| `execution_checkpoint` | Atomic | Apply one strict `scope` + event-specific `action` with required evidence. |
|
|
420
463
|
| `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
|
|
@@ -431,13 +474,13 @@ its declared fields, while apply accepts only an unchanged `proposalToken`.
|
|
|
431
474
|
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
|
|
432
475
|
server cannot approve its own proposals or run arbitrary shell commands. Its
|
|
433
476
|
Git surface is limited to derived Cadre worktree creation, non-squash
|
|
434
|
-
integration, status, verified cleanup
|
|
477
|
+
integration, status, and verified cleanup. It never force-deletes a branch,
|
|
435
478
|
resolves a conflict, edits product files, or commits on behalf of a worker.
|
|
436
479
|
Multi-file state operations use atomic individual writes and converge from
|
|
437
480
|
matching partial state; mismatched bytes, hashes, journals, or Git HEAD remain
|
|
438
481
|
hard failures.
|
|
439
482
|
|
|
440
|
-
Review and
|
|
483
|
+
Review and refresh 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 refresh track IDs selects all eligible completed tracks in dependency order. Refresh 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.
|
|
441
484
|
|
|
442
485
|
### Worktree layout and worker model
|
|
443
486
|
|
|
@@ -455,7 +498,7 @@ Codex uses implementation subagents when parallel nodes are available. Claude Co
|
|
|
455
498
|
|
|
456
499
|
## Resumability and safety
|
|
457
500
|
|
|
458
|
-
Multi-step state changes—including revisions, refreshes, reverts, archive batches, and implementation executions—write an operation or execution journal before artifact or Git mutation. On the next invocation, Cadre reconciles that journal with files, worker identities, registered worktrees, branches, dirty state, commits, and merges:
|
|
501
|
+
Multi-step state changes—including revisions, refreshes with archival, reverts, historical archive batches, and implementation executions—write an operation or execution journal before artifact or Git mutation. On the next invocation, Cadre reconciles that journal with files, worker identities, registered worktrees, branches, dirty state, commits, and merges:
|
|
459
502
|
|
|
460
503
|
- matching dirty work resumes at the first incomplete checkpoint;
|
|
461
504
|
- a clean tree with the expected commit records the commit instead of repeating work;
|
|
@@ -466,7 +509,7 @@ Multi-step state changes—including revisions, refreshes, reverts, archive batc
|
|
|
466
509
|
|
|
467
510
|
Task conflicts are resolved and reverified in the owning phase worktree. Phase conflicts are resolved and reverified in the canonical worktree. The main agent reviews each resolution and records its verification and mode-appropriate authorization before its merge commit. A revision or refresh that changes execution-governing context first quiesces active workers and reconciles their work; a changed plan graph creates a new execution identity rather than rewriting the old journal.
|
|
468
511
|
|
|
469
|
-
|
|
512
|
+
Refresh archival accepts only tracks that centralized state validation already proves are `completed` with a clean review bound to the current execution, plan revision, graph digest, and reviewed head. It does not rerun implementation barriers or review logic.
|
|
470
513
|
|
|
471
514
|
Product work uses Conventional Commits. Cadre-only state commits use `cadre(<command>): <description>`. Reverts prefer additive `git revert` commits over destructive history rewriting.
|
|
472
515
|
|
|
@@ -491,7 +534,7 @@ pnpm --filter cadre-ai validate
|
|
|
491
534
|
|
|
492
535
|
### Memory format upgrade
|
|
493
536
|
|
|
494
|
-
|
|
537
|
+
Cadre 4.2.0 packages template set v8 and supports existing 4.0.0 and 4.1.0 projects. 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.2.0. Published v1–v7 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.
|
|
495
538
|
|
|
496
539
|
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.
|
|
497
540
|
|
|
@@ -506,3 +549,19 @@ Parallel scheduling remains the default and Sequential is available independentl
|
|
|
506
549
|
Legacy Autonomous requires an explicit Track-or-Autonomous choice through approved
|
|
507
550
|
refresh. Policy v2 persists loop authority, cumulative review baseline, and stable
|
|
508
551
|
findings; a finding unresolved after two remediation attempts pauses for guidance.
|
|
552
|
+
|
|
553
|
+
## License
|
|
554
|
+
|
|
555
|
+
Cadre is licensed under [Apache-2.0](https://cadre.dhivon.ai/LICENSE.txt). Copyright 2026 Dhivon AI. See the packaged `NOTICE` or the [licensing guide](https://cadre.dhivon.ai/licensing/).
|
|
556
|
+
|
|
557
|
+
## Optional Telemetry
|
|
558
|
+
|
|
559
|
+
Telemetry-capable Cadre 4.2.0 builds default on outside CI and announce it before
|
|
560
|
+
installation and on MCP startup. Disable before installing with
|
|
561
|
+
`cadre-ai install --target all --telemetry off`, or use
|
|
562
|
+
`cadre-ai telemetry disable` / `DO_NOT_TRACK=1`. Saved choices survive upgrades
|
|
563
|
+
and `--yes`. Timings, sanitized errors, versions, counts, and random IDs help
|
|
564
|
+
identify bottlenecks; prompts, files, names, paths, and raw MCP payloads are excluded.
|
|
565
|
+
Use `cadre-ai telemetry configure --dsn <DSN>` for your own Sentry destination.
|
|
566
|
+
See [configuration](https://cadre.dhivon.ai/configuration/#optional-telemetry)
|
|
567
|
+
for precedence, privacy, delivery limitations, and Sentry-free builds.
|