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.
Files changed (82) hide show
  1. package/.claude-plugin/plugin.json +13 -4
  2. package/.codex-plugin/plugin.json +11 -7
  3. package/CHANGELOG.md +86 -23
  4. package/LICENSE +202 -21
  5. package/NOTICE +17 -0
  6. package/README.md +138 -79
  7. package/dist/THIRD_PARTY_NOTICES.txt +2411 -0
  8. package/dist/cadre-cli.mjs +14269 -19813
  9. package/dist/cadre-mcp.mjs +18021 -7071
  10. package/marketplace/claude.json +2 -1
  11. package/marketplace/codex.json +1 -1
  12. package/package.json +10 -8
  13. package/skills/create/SKILL.md +1 -3
  14. package/skills/implement/SKILL.md +5 -3
  15. package/skills/quick/SKILL.md +41 -0
  16. package/skills/quick/agents/openai.yaml +4 -0
  17. package/skills/refresh/SKILL.md +36 -10
  18. package/skills/refresh/agents/openai.yaml +2 -2
  19. package/skills/revert/SKILL.md +2 -4
  20. package/skills/review/SKILL.md +6 -4
  21. package/skills/revise/SKILL.md +5 -3
  22. package/skills/status/SKILL.md +5 -1
  23. package/skills/track/SKILL.md +6 -4
  24. package/skills/wisp/SKILL.md +3 -3
  25. package/templates/{v6 → v8}/init/workflow.md +24 -3
  26. package/templates/v8/project/refresh.md +37 -0
  27. package/templates/v8/quick/record.json +15 -0
  28. package/skills/archive/SKILL.md +0 -58
  29. package/skills/archive/agents/openai.yaml +0 -4
  30. package/skills/archive/references/github-collaboration.md +0 -46
  31. package/skills/create/references/github-collaboration.md +0 -46
  32. package/skills/implement/references/github-collaboration.md +0 -46
  33. package/skills/refresh/references/github-collaboration.md +0 -46
  34. package/skills/revert/references/github-collaboration.md +0 -46
  35. package/skills/review/references/github-collaboration.md +0 -46
  36. package/skills/revise/references/github-collaboration.md +0 -46
  37. package/skills/track/references/github-collaboration.md +0 -46
  38. package/templates/github-v1/enforcement.yml +0 -38
  39. package/templates/github-v1/workflow.md +0 -46
  40. package/templates/v6/project/archive-operation.json +0 -19
  41. package/templates/v6/project/refresh.md +0 -21
  42. /package/templates/{v6 → v8}/init/archive/.gitkeep +0 -0
  43. /package/templates/{v6 → v8}/init/gitignore.template +0 -0
  44. /package/templates/{v6 → v8}/init/guidelines.md +0 -0
  45. /package/templates/{v6 → v8}/init/operations/.gitkeep +0 -0
  46. /package/templates/{v6 → v8}/init/patterns/index.md +0 -0
  47. /package/templates/{v6 → v8}/init/product.md +0 -0
  48. /package/templates/{v6 → v8}/init/project.json +0 -0
  49. /package/templates/{v6 → v8}/init/refreshes/.gitkeep +0 -0
  50. /package/templates/{v6 → v8}/init/styleguides/general.md +0 -0
  51. /package/templates/{v6 → v8}/init/styleguides/language.md +0 -0
  52. /package/templates/{v6 → v8}/init/tech-stack.md +0 -0
  53. /package/templates/{v6 → v8}/init/tracks/.gitkeep +0 -0
  54. /package/templates/{v6 → v8}/init/tracks.md +0 -0
  55. /package/templates/{v6 → v8}/init/wisps/.gitkeep +0 -0
  56. /package/templates/{v6 → v8}/project/pattern.md +0 -0
  57. /package/templates/{v6 → v8}/project/refresh-operation.json +0 -0
  58. /package/templates/{v6 → v8}/styleguides/dart.md +0 -0
  59. /package/templates/{v6 → v8}/styleguides/flutter.md +0 -0
  60. /package/templates/{v6 → v8}/styleguides/go.md +0 -0
  61. /package/templates/{v6 → v8}/styleguides/gradle.md +0 -0
  62. /package/templates/{v6 → v8}/styleguides/html-css.md +0 -0
  63. /package/templates/{v6 → v8}/styleguides/index.md +0 -0
  64. /package/templates/{v6 → v8}/styleguides/java.md +0 -0
  65. /package/templates/{v6 → v8}/styleguides/javascript.md +0 -0
  66. /package/templates/{v6 → v8}/styleguides/kotlin.md +0 -0
  67. /package/templates/{v6 → v8}/styleguides/maven.md +0 -0
  68. /package/templates/{v6 → v8}/styleguides/python.md +0 -0
  69. /package/templates/{v6 → v8}/styleguides/react.md +0 -0
  70. /package/templates/{v6 → v8}/styleguides/swift.md +0 -0
  71. /package/templates/{v6 → v8}/styleguides/swiftui.md +0 -0
  72. /package/templates/{v6 → v8}/styleguides/typescript.md +0 -0
  73. /package/templates/{v6 → v8}/track/bug.md +0 -0
  74. /package/templates/{v6 → v8}/track/dependency-context.json +0 -0
  75. /package/templates/{v6 → v8}/track/execution.json +0 -0
  76. /package/templates/{v6 → v8}/track/learning.md +0 -0
  77. /package/templates/{v6 → v8}/track/plan.md +0 -0
  78. /package/templates/{v6 → v8}/track/revert-operation.json +0 -0
  79. /package/templates/{v6 → v8}/track/revise-operation.json +0 -0
  80. /package/templates/{v6 → v8}/track/revision.md +0 -0
  81. /package/templates/{v6 → v8}/track/spec.md +0 -0
  82. /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
- **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).
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-docs.pages.dev](https://cadre-docs.pages.dev/) ·
21
- [Quickstart](https://cadre-docs.pages.dev/quickstart/) ·
22
- [Release notes](https://cadre-docs.pages.dev/release-notes/)
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/).
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, revert, and archive flows.
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
- - Single-track or multi-track archival with consolidated pattern distillation and relevant reseeding of active tracks.
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. Archive completed work
349
+ ### 5. Refresh and archive completed work
307
350
 
308
351
  ```text
309
- Codex: $cadre:archive passwordless-login account-lockout
310
- Claude Code: /cadre:archive all completed
311
- Zed Agent: /cadre-archive all completed
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
- Archive 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.
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
- | `archive` | Archive one or more completed tracks, distill patterns, and reseed active tracks by relevance. |
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 `archive` can mark it archived. The `revise` command is callable in every state, but its behavior preserves approved history:
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/v6/...` and 24 tools:
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, and explicitly opted-in GitHub PR coordination. It never force-deletes a branch,
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 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.
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
- Archive remains deliberately small: it 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.
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
- 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.
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.