cadre-ai 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/.claude-plugin/plugin.json +13 -4
  2. package/.codex-plugin/plugin.json +11 -7
  3. package/CHANGELOG.md +54 -8
  4. package/LICENSE +202 -21
  5. package/NOTICE +13 -0
  6. package/README.md +93 -52
  7. package/dist/cadre-cli.mjs +30 -13
  8. package/dist/cadre-mcp.mjs +4008 -3691
  9. package/marketplace/claude.json +2 -1
  10. package/marketplace/codex.json +1 -1
  11. package/package.json +9 -7
  12. package/skills/create/SKILL.md +1 -1
  13. package/skills/implement/SKILL.md +5 -1
  14. package/skills/quick/SKILL.md +41 -0
  15. package/skills/quick/agents/openai.yaml +4 -0
  16. package/skills/refresh/SKILL.md +36 -8
  17. package/skills/refresh/agents/openai.yaml +2 -2
  18. package/skills/revert/SKILL.md +2 -2
  19. package/skills/review/SKILL.md +6 -2
  20. package/skills/revise/SKILL.md +5 -1
  21. package/skills/status/SKILL.md +5 -1
  22. package/skills/track/SKILL.md +6 -2
  23. package/skills/wisp/SKILL.md +3 -3
  24. package/templates/{v6 → v8}/init/workflow.md +24 -3
  25. package/templates/v8/project/refresh.md +37 -0
  26. package/templates/v8/quick/record.json +15 -0
  27. package/skills/archive/SKILL.md +0 -56
  28. package/skills/archive/agents/openai.yaml +0 -4
  29. package/templates/v6/project/archive-operation.json +0 -19
  30. package/templates/v6/project/refresh.md +0 -21
  31. /package/templates/{v6 → v8}/init/archive/.gitkeep +0 -0
  32. /package/templates/{v6 → v8}/init/gitignore.template +0 -0
  33. /package/templates/{v6 → v8}/init/guidelines.md +0 -0
  34. /package/templates/{v6 → v8}/init/operations/.gitkeep +0 -0
  35. /package/templates/{v6 → v8}/init/patterns/index.md +0 -0
  36. /package/templates/{v6 → v8}/init/product.md +0 -0
  37. /package/templates/{v6 → v8}/init/project.json +0 -0
  38. /package/templates/{v6 → v8}/init/refreshes/.gitkeep +0 -0
  39. /package/templates/{v6 → v8}/init/styleguides/general.md +0 -0
  40. /package/templates/{v6 → v8}/init/styleguides/language.md +0 -0
  41. /package/templates/{v6 → v8}/init/tech-stack.md +0 -0
  42. /package/templates/{v6 → v8}/init/tracks/.gitkeep +0 -0
  43. /package/templates/{v6 → v8}/init/tracks.md +0 -0
  44. /package/templates/{v6 → v8}/init/wisps/.gitkeep +0 -0
  45. /package/templates/{v6 → v8}/project/pattern.md +0 -0
  46. /package/templates/{v6 → v8}/project/refresh-operation.json +0 -0
  47. /package/templates/{v6 → v8}/styleguides/dart.md +0 -0
  48. /package/templates/{v6 → v8}/styleguides/flutter.md +0 -0
  49. /package/templates/{v6 → v8}/styleguides/go.md +0 -0
  50. /package/templates/{v6 → v8}/styleguides/gradle.md +0 -0
  51. /package/templates/{v6 → v8}/styleguides/html-css.md +0 -0
  52. /package/templates/{v6 → v8}/styleguides/index.md +0 -0
  53. /package/templates/{v6 → v8}/styleguides/java.md +0 -0
  54. /package/templates/{v6 → v8}/styleguides/javascript.md +0 -0
  55. /package/templates/{v6 → v8}/styleguides/kotlin.md +0 -0
  56. /package/templates/{v6 → v8}/styleguides/maven.md +0 -0
  57. /package/templates/{v6 → v8}/styleguides/python.md +0 -0
  58. /package/templates/{v6 → v8}/styleguides/react.md +0 -0
  59. /package/templates/{v6 → v8}/styleguides/swift.md +0 -0
  60. /package/templates/{v6 → v8}/styleguides/swiftui.md +0 -0
  61. /package/templates/{v6 → v8}/styleguides/typescript.md +0 -0
  62. /package/templates/{v6 → v8}/track/bug.md +0 -0
  63. /package/templates/{v6 → v8}/track/dependency-context.json +0 -0
  64. /package/templates/{v6 → v8}/track/execution.json +0 -0
  65. /package/templates/{v6 → v8}/track/learning.md +0 -0
  66. /package/templates/{v6 → v8}/track/plan.md +0 -0
  67. /package/templates/{v6 → v8}/track/revert-operation.json +0 -0
  68. /package/templates/{v6 → v8}/track/revise-operation.json +0 -0
  69. /package/templates/{v6 → v8}/track/revision.md +0 -0
  70. /package/templates/{v6 → v8}/track/spec.md +0 -0
  71. /package/templates/{v6 → v8}/track/state.json +0 -0
package/README.md CHANGED
@@ -1,9 +1,11 @@
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.1.0** adds Quick for bounded changes and brings completed-track
6
+ archival into Refresh. Ten workflows, 21 MCP tools, and immutable template v8
7
+ support Codex, Claude Code, and Zed Agent, with four approval modes and both
8
+ sequential and parallel scheduling. See [cadre-ai on npm](https://www.npmjs.com/package/cadre-ai).
7
9
 
8
10
  Cadre is a human-governed, Git-aware delivery harness for Codex, Claude Code,
9
11
  and Zed Agent. All three integrations are stable as of Cadre 3.9.1.
@@ -17,37 +19,70 @@ server provides deterministic state operations and immutable, versioned
17
19
  templates. A project keeps only approved, mutable delivery state under
18
20
  `.cadre/`; runtime code and template catalogs are not copied into the project.
19
21
 
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
- ## What changes in 4.0.0
25
-
26
- - **One recovery contract:** initialization, implementation completion, clean
27
- review and archive use immutable operation receipts. Commit each operation
28
- once, then reconcile its receipt; no follow-up commit is needed to record its SHA.
29
- - **Smaller public surface:** 22 MCP tools and only template v6 in the installed
30
- payload. Direct integrations must stop calling `archive_batch_record`,
31
- `setup_record_commit` and `setup_record_git_initialized`.
32
- - **Existing projects:** 3.9.0/3.9.1/3.9.2 projects with schema-2 state and v5
33
- templates continue without a project migration or version-only refresh.
34
- Historical journals, approval evidence and interrupted receipt recovery remain
35
- supported.
36
- - **Older formats:** `PROJECT_UPGRADE_REQUIRED` provides the bridge route:
37
- install Cadre 3.9.0, reconcile interrupted work and run its approved refresh to
38
- schema-2/v5, then install 4.0.0 and reload the client. Never change version labels
39
- by hand. See the [release notes](https://cadre-docs.pages.dev/release-notes/).
40
-
41
- Verification passed 480 harness tests and a dummy-project lifecycle across 14
42
- fresh Codex sessions: brownfield create, interrupted track drafting, active
43
- revision, review/remediation, manual-edit freshness checks, archive recovery and
44
- refresh. The dummy app passed 26 tests and 200,020 arithmetic comparisons. Native
45
- workflow coverage was Autonomous/sequential; it does not establish exhaustive
46
- coverage of every mode or client. See the [testing and release documentation](https://cadre-docs.pages.dev/testing-and-release/).
22
+ **Documentation:** [cadre.dhivon.ai](https://cadre.dhivon.ai/) ·
23
+ [Quickstart](https://cadre.dhivon.ai/quickstart/) ·
24
+ [Release notes](https://cadre.dhivon.ai/release-notes/)
25
+
26
+ ## What changes in 4.1.0
27
+
28
+ - **Quick changes:** deliver one bounded fix, refactor, documentation change,
29
+ test, or small feature with one final approval, one durable outcome record,
30
+ and one combined commit.
31
+ - **Unified Refresh:** assess repository changes, project context, existing
32
+ patterns, selected track learning, and up to 20 quick outcomes together.
33
+ Update guidance, reassess active-track seeds and dependencies, and archive
34
+ completed work under one approval, one receipt, and one commit.
35
+ - **Ten workflows, 21 tools:** remove the standalone archive skill and
36
+ `archive_batch_candidate`. New archival uses Refresh; approved historical
37
+ archive journals remain recoverable through `candidate_apply`.
38
+ - **Compatible upgrades:** schema-2 projects from 3.9.0, 3.9.1, 3.9.2, and 4.0.0
39
+ remain readable and usable. Adopt new workflow contracts through an approved
40
+ Refresh that preserves custom policy, completed history, and recovery authority.
41
+ - **Template v8 and client cleanup:** retain immutable v1–v7 source history;
42
+ safely remove obsolete Cadre-owned Zed archive links and exact tool permissions.
43
+
44
+ Quick and Refresh verification includes 660 dummy-project protocol cases across
45
+ Codex, Claude Code, and Zed identities, plus live Codex delivery and recovery.
46
+ Claude Code and Zed coverage is protocol/installer coverage, not native model
47
+ execution. See the [testing and release documentation](https://cadre.dhivon.ai/testing-and-release/).
48
+
49
+ ## Unified Refresh
50
+
51
+ Refresh now combines context maintenance, learning consolidation and completed-track archival under one approval, receipt and commit. Cadre 4.1.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.
52
+
53
+ ```text
54
+ Create → Track → Implement → Review → completed tracks ─┐
55
+ └──→ Quick → verified outcomes ─────────────────────┤
56
+ Context + patterns + repository changes ────────────────┤
57
+ ↓
58
+ Refresh
59
+ context + learning + active seeds + archival
60
+ one approval · one receipt · one commit
61
+ ```
62
+
63
+ Omitting track IDs selects all eligible completed tracks in dependency order.
64
+ Explicit IDs limit the batch; an explicit empty selection skips track archival.
65
+ Refresh assesses up to 20 quick outcomes with the selected tracks, with no track
66
+ batch limit. It also works without completed tracks or new guidance to add.
67
+
68
+ ## Quick changes
69
+
70
+ Use `quick` for one bounded fix, refactor, documentation change, test, or small
71
+ feature. It reads relevant Cadre context, implements and verifies the change,
72
+ then asks for one final approval of the diff and outcome record. Material scope
73
+ choices are discussed before editing. One local commit contains the change and
74
+ its durable record. A later approved `refresh` batch consolidates useful lessons
75
+ and moves unchanged records to `.cadre/archive/.quick/`. Routine track context
76
+ loads no quick history; focused search retrieves relevant outcomes when needed.
77
+
78
+ Invoke `$cadre:quick` in Codex, `/cadre:quick` in Claude Code, or `/cadre-quick`
79
+ in Zed. Cadre 4.1.0 includes Quick and unified Refresh with template v8. Existing v5/v6
80
+ projects retain their workflows; enabling quick requires an approved refresh
81
+ adopting its contract. Wisp remains stateless exploration.
47
82
 
48
83
  ## Upcoming roadmap
49
84
 
50
- Three optional capabilities are planned beyond 4.0.0:
85
+ Three optional capabilities are planned beyond 4.1.0:
51
86
 
52
87
  1. **Deeper GitHub / GitLab integration** for coordinating work across multiple
53
88
  people, including shared work status, ownership and review handoffs.
@@ -58,21 +93,21 @@ Three optional capabilities are planned beyond 4.0.0:
58
93
 
59
94
  Each capability will be independently **opt-in and disabled by default**. The
60
95
  core single-repository workflow will remain usable without enabling any of them.
61
- These are upcoming roadmap items, not features shipped in 4.0.0; no delivery dates
62
- are committed. See the [roadmap](https://cadre-docs.pages.dev/team-and-polyrepo/).
96
+ These are upcoming roadmap items, not features included in 4.1.0; no delivery dates
97
+ are committed. See the [roadmap](https://cadre.dhivon.ai/team-and-polyrepo/).
63
98
 
64
99
  ## Capabilities
65
100
 
66
101
  - Greenfield and brownfield project onboarding, with an explicit classification gate when the repository is ambiguous.
67
102
  - Human approval of scope and approval policy, with explicit author approval for clean track completion.
68
- - Resumable create, specification, planning, implementation, review, revision, refresh, revert, and archive flows.
103
+ - Resumable create, specification, planning, implementation, review, revision, refresh with archival, and revert flows.
69
104
  - Parallel-by-default implementation of dependency DAGs, with an explicit sequential mode.
70
105
  - Isolated phase and task workers in Cadre-managed Git worktrees, coordinated and integrated only by the main agent.
71
106
  - Feature and bug tracks with functional requirements, non-functional requirements, acceptance criteria, dependencies, phased tasks, and manual-verification gates.
72
107
  - Dependency enforcement before implementation and cascading-impact analysis after specification, workflow, stack, styleguide, or pattern changes.
73
108
  - Incremental learning in each track's `learning.md`; each phase reads its declared dependency learning and applicable constraints before work starts.
74
109
  - Review → remediation → implementation cycles until the human accepts a clean review.
75
- - Single-track or multi-track archival with consolidated pattern distillation and relevant reseeding of active tracks.
110
+ - Unified Refresh with context updates, track and quick learning consolidation, active-track reseeding, and completed-track archival.
76
111
  - Git-aware task, phase, setup, review, revision, refresh, revert, and archive provenance using Conventional Commits.
77
112
  - Read-before-edit enforcement: existing files and directly relevant context must be inspected before modification.
78
113
  - Stateless exploration through `wisp`, without mutating Cadre lifecycle state.
@@ -292,27 +327,27 @@ Zed Agent: /cadre-review passwordless-login
292
327
 
293
328
  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`.
294
329
 
295
- ### 5. Archive completed work
330
+ ### 5. Refresh and archive completed work
296
331
 
297
332
  ```text
298
- Codex: $cadre:archive passwordless-login account-lockout
299
- Claude Code: /cadre:archive all completed
300
- Zed Agent: /cadre-archive all completed
333
+ Codex: $cadre:refresh passwordless-login account-lockout
334
+ Claude Code: /cadre:refresh all completed
335
+ Zed Agent: /cadre-refresh all completed
301
336
  ```
302
337
 
303
- 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.
338
+ 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.
304
339
 
305
340
  ## Command reference
306
341
 
307
342
  | Command | Purpose |
308
343
  | --- | --- |
309
344
  | `create` | Initialize or resume Cadre, classify project context, initialize Git when needed, and establish approved project artifacts. |
345
+ | `quick` | Deliver a bounded change with one final approval, one combined commit, and a durable outcome record. |
310
346
  | `track` | Create or resume a feature/bug specification, phased plan, dependency set, and learning seed. |
311
347
  | `implement` | Execute or resume the approved phase/task DAG in parallel by default or explicitly sequentially, with worktrees, tests, learning, approvals, and commit provenance. |
312
348
  | `review` | Review a ready track, record approved findings, add remediation phases, or complete an approved clean cycle. |
313
349
  | `revise` | Route a requested change by lifecycle state, revise an approved active baseline, or propose a successor for completed history. |
314
- | `archive` | Archive one or more completed tracks, distill patterns, and reseed active tracks by relevance. |
315
- | `refresh` | Refresh project context from user input, repository changes, and completed-track outcomes. |
350
+ | `refresh` | Update context, consolidate track/quick learning, reseed active work, and archive completed tracks in one approval and commit. |
316
351
  | `revert` | Prepare and execute a human-approved additive Git revert for a task, phase, or track. |
317
352
  | `status` | Validate and summarize project, operation, track, dependency, review, and archive state without mutation. |
318
353
  | `wisp` | Explore or investigate without creating or changing Cadre lifecycle state. |
@@ -323,12 +358,12 @@ Archive accepts one or more completed tracks in one resumable batch. It distills
323
358
  drafting-spec → drafting-plan → planned → in_progress → ready_for_review
324
359
  │ │ ├─ revise → in_progress/planned
325
360
  └─ revise ──┴───────────────┼─ approved bugs → in_progress
326
- └─ approved clean review → completed → archived
361
+ └─ approved clean review → completed ─ refresh → archived
327
362
 
328
363
  completed/archived ── changed intent → successor track
329
364
  ```
330
365
 
331
- 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:
366
+ 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:
332
367
 
333
368
  - `drafting-spec` changes continue the track draft without creating a revision.
334
369
  - In `drafting-plan`, an approved-spec change is a revision while an unapproved-plan change remains drafting.
@@ -355,6 +390,7 @@ An initialized project has this shape:
355
390
  ├── patterns/
356
391
  ├── receipts/ # tracked immutable operation evidence
357
392
  ├── operations/ # retained historical journals, when present
393
+ ├── quick/ # immutable small-change outcome records
358
394
  ├── refreshes/
359
395
  ├── tracks/
360
396
  │ └── <track-id>/
@@ -366,6 +402,8 @@ An initialized project has this shape:
366
402
  │ ├── bugs/
367
403
  │ └── revisions/
368
404
  ├── archive/
405
+ │ ├── <track-id>/
406
+ │ └── .quick/ # consolidated immutable quick records
369
407
  ├── stage/ # ignored candidates and approved recovery journals
370
408
  ├── .worktrees/ # ignored, temporary execution worktrees
371
409
  └── wisps/ # ignored, disposable exploration output
@@ -385,7 +423,7 @@ Important sources of truth:
385
423
 
386
424
  ## MCP capabilities
387
425
 
388
- The `cadre` stdio server exposes active immutable resources at `cadre://templates/v6/...` and 22 tools:
426
+ The `cadre` stdio server exposes active immutable resources at `cadre://templates/v8/...` and 21 tools:
389
427
 
390
428
  | Tool | Mutation | Purpose |
391
429
  | --- | --- | --- |
@@ -401,7 +439,6 @@ The `cadre` stdio server exposes active immutable resources at `cadre://template
401
439
  | `candidate_apply` | Approval-aware | Prepare/apply approved candidates and resume/reconcile immutable operation receipts. |
402
440
  | `execution_graph_validate` | No | Parse and validate phase/task dependencies, cycles, and derived manual-verification barriers. |
403
441
  | `review_complete` | Adaptive | Derive the review range from the execution base or original Autonomous baseline, then prepare/apply clean completion. |
404
- | `archive_batch_candidate` | Adaptive | Read staged pattern/seed files, return the complete batch for approval, then apply its unchanged token. |
405
442
  | `execution_start` | Atomic | Create the authorized execution journal and enter `in_progress` in one call. |
406
443
  | `execution_checkpoint` | Atomic | Apply one strict `scope` + event-specific `action` with required evidence. |
407
444
  | `execution_status` | No | Return a compact ready/active/blocked scheduler view, with optional focused node detail. |
@@ -424,7 +461,7 @@ Multi-file state operations use atomic individual writes and converge from
424
461
  matching partial state; mismatched bytes, hashes, journals, or Git HEAD remain
425
462
  hard failures.
426
463
 
427
- 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.
464
+ 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.
428
465
 
429
466
  ### Worktree layout and worker model
430
467
 
@@ -442,7 +479,7 @@ Codex uses implementation subagents when parallel nodes are available. Claude Co
442
479
 
443
480
  ## Resumability and safety
444
481
 
445
- 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:
482
+ 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:
446
483
 
447
484
  - matching dirty work resumes at the first incomplete checkpoint;
448
485
  - a clean tree with the expected commit records the commit instead of repeating work;
@@ -453,7 +490,7 @@ Multi-step state changes—including revisions, refreshes, reverts, archive batc
453
490
 
454
491
  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.
455
492
 
456
- 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.
493
+ 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.
457
494
 
458
495
  Product work uses Conventional Commits. Cadre-only state commits use `cadre(<command>): <description>`. Reverts prefer additive `git revert` commits over destructive history rewriting.
459
496
 
@@ -478,7 +515,7 @@ pnpm --filter cadre-ai validate
478
515
 
479
516
  ### Memory format upgrade
480
517
 
481
- 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.
518
+ Cadre 4.1.0 packages template set v8 and supports existing 4.0.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.1.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.
482
519
 
483
520
  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.
484
521
 
@@ -493,3 +530,7 @@ Parallel scheduling remains the default and Sequential is available independentl
493
530
  Legacy Autonomous requires an explicit Track-or-Autonomous choice through approved
494
531
  refresh. Policy v2 persists loop authority, cumulative review baseline, and stable
495
532
  findings; a finding unresolved after two remediation attempts pauses for guidance.
533
+
534
+ ## License
535
+
536
+ 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/).
@@ -74,12 +74,11 @@ import { dirname, extname, join as join2, relative, resolve as resolve2, sep } f
74
74
  import { fileURLToPath } from "node:url";
75
75
 
76
76
  // src/domain/version.ts
77
- var CADRE_RUNTIME_VERSION = "4.0.0";
78
- var TEMPLATE_SET_VERSION = "v6";
77
+ var CADRE_RUNTIME_VERSION = "4.1.0";
78
+ var TEMPLATE_SET_VERSION = "v8";
79
79
 
80
80
  // src/domain/templates.ts
81
81
  var TEMPLATE_IDS = [
82
- "project/archive-operation",
83
82
  "project/gitignore",
84
83
  "project/guidelines",
85
84
  "project/pattern",
@@ -93,6 +92,7 @@ var TEMPLATE_IDS = [
93
92
  "project/tech-stack",
94
93
  "project/tracks",
95
94
  "project/workflow",
95
+ "quick/record",
96
96
  "styleguide/dart",
97
97
  "styleguide/flutter",
98
98
  "styleguide/go",
@@ -207,11 +207,11 @@ var CADRE_WORKFLOWS = [
207
207
  "implement",
208
208
  "review",
209
209
  "revise",
210
- "archive",
211
210
  "refresh",
212
211
  "revert",
213
212
  "status",
214
- "wisp"
213
+ "wisp",
214
+ "quick"
215
215
  ];
216
216
  var ZED_COMPATIBILITY = `## Zed compatibility
217
217
 
@@ -282,6 +282,8 @@ function preflightZedSkillLinks(marketplaceRoot) {
282
282
  function installZedSkillLinks(marketplaceRoot) {
283
283
  preflightZedSkillLinks(marketplaceRoot);
284
284
  mkdirSync(zedSkillsRoot(), { recursive: true });
285
+ const obsolete = expectedSkillLink(marketplaceRoot, "archive");
286
+ if (linkTarget(obsolete.destination) === obsolete.target) unlinkSync(obsolete.destination);
285
287
  const installed = [];
286
288
  for (const workflow of CADRE_WORKFLOWS) {
287
289
  const link = expectedSkillLink(marketplaceRoot, workflow);
@@ -295,7 +297,7 @@ function installZedSkillLinks(marketplaceRoot) {
295
297
  function removeZedSkillLinks(marketplaceRoot) {
296
298
  const removed = [];
297
299
  const retained = [];
298
- for (const workflow of CADRE_WORKFLOWS) {
300
+ for (const workflow of [...CADRE_WORKFLOWS, "archive"]) {
299
301
  const link = expectedSkillLink(marketplaceRoot, workflow);
300
302
  if (!pathExists(link.destination)) continue;
301
303
  if (linkTarget(link.destination) === link.target) {
@@ -317,6 +319,7 @@ var requiredEntries = [
317
319
  ".mcp.json",
318
320
  ".mcp.codex.json",
319
321
  "LICENSE",
322
+ "NOTICE",
320
323
  "README.md"
321
324
  ];
322
325
  var optionalEntries = ["hooks", "hooks.json", ".app.json", "assets", "commands", "agents"];
@@ -2492,7 +2495,6 @@ var CADRE_MCP_TOOLS = {
2492
2495
  candidateApply: "candidate_apply",
2493
2496
  executionGraphValidate: "execution_graph_validate",
2494
2497
  reviewComplete: "review_complete",
2495
- archiveBatchCandidate: "archive_batch_candidate",
2496
2498
  executionStart: "execution_start",
2497
2499
  executionCheckpoint: "execution_checkpoint",
2498
2500
  executionStatus: "execution_status",
@@ -2511,6 +2513,17 @@ var CODEX_APPROVAL = 'default_tools_approval_mode = "approve"';
2511
2513
  var CLAUDE_APPROVAL = "mcp__cadre__*";
2512
2514
  var CLAUDE_SERVER_APPROVAL = "cadre";
2513
2515
  var ZED_MCP_PERMISSION_KEYS = CADRE_MCP_TOOL_NAMES.map((name) => `mcp:cadre:${name}`);
2516
+ var OBSOLETE_ZED_ARCHIVE_PERMISSION = "mcp:cadre:archive_batch_candidate";
2517
+ function removeObsoleteZedApproval(text, tools) {
2518
+ const rule = tools[OBSOLETE_ZED_ARCHIVE_PERMISSION];
2519
+ if (!isRecord(rule) || rule.default !== "allow" || Object.keys(rule).length !== 1) return text;
2520
+ return applyEdits(text, modify(
2521
+ text,
2522
+ ["agent", "tool_permissions", "tools", OBSOLETE_ZED_ARCHIVE_PERMISSION],
2523
+ void 0,
2524
+ { formattingOptions: { insertSpaces: true, tabSize: 2, eol: "\n" } }
2525
+ ));
2526
+ }
2514
2527
  function isRecord(value) {
2515
2528
  return typeof value === "object" && value !== null && !Array.isArray(value);
2516
2529
  }
@@ -2735,7 +2748,9 @@ function configureZedCadre(settingsPath, nodePath, mcpPath, autoApproveMcp) {
2735
2748
  { formattingOptions }
2736
2749
  ));
2737
2750
  }
2738
- let permissionsChanged = false;
2751
+ const withoutObsolete = removeObsoleteZedApproval(proposed, tools);
2752
+ let permissionsChanged = withoutObsolete !== proposed;
2753
+ proposed = withoutObsolete;
2739
2754
  if (autoApproveMcp) {
2740
2755
  for (const key of ZED_MCP_PERMISSION_KEYS) {
2741
2756
  const current = isRecord(tools[key]) ? tools[key] : {};
@@ -2780,20 +2795,22 @@ function removeZedCadreServer(settingsPath, mcpPath) {
2780
2795
  const { existing, root } = parseJsoncSettings(settingsPath);
2781
2796
  const contextServers = assertRecordField(root, "context_servers", settingsPath);
2782
2797
  const currentServer = contextServers.cadre;
2783
- if (currentServer === void 0) return { changed: false, retainedConflict: false };
2784
- if (!zedServerTargetsMcp(currentServer, mcpPath)) {
2798
+ if (currentServer !== void 0 && !zedServerTargetsMcp(currentServer, mcpPath)) {
2785
2799
  return { changed: false, retainedConflict: true };
2786
2800
  }
2787
2801
  const formattingOptions = { insertSpaces: true, tabSize: 2, eol: "\n" };
2788
- const proposed = applyEdits(existing, modify(
2802
+ let proposed = applyEdits(existing, modify(
2789
2803
  existing,
2790
2804
  ["context_servers", "cadre"],
2791
2805
  void 0,
2792
2806
  { formattingOptions }
2793
2807
  ));
2794
- atomicWrite(settingsPath, proposed.endsWith("\n") ? proposed : `${proposed}
2808
+ const agent = assertRecordField(root, "agent", settingsPath);
2809
+ const permissions = assertRecordField(agent, "tool_permissions", settingsPath);
2810
+ proposed = removeObsoleteZedApproval(proposed, assertRecordField(permissions, "tools", settingsPath));
2811
+ if (proposed !== existing) atomicWrite(settingsPath, proposed.endsWith("\n") ? proposed : `${proposed}
2795
2812
  `);
2796
- return { changed: true, retainedConflict: false };
2813
+ return { changed: proposed !== existing, retainedConflict: false };
2797
2814
  }
2798
2815
 
2799
2816
  // scripts/install.ts