cadre-ai 3.9.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +213 -0
- package/README.md +68 -21
- package/dist/cadre-cli.mjs +4 -6
- package/dist/cadre-mcp.mjs +5397 -3973
- package/package.json +2 -2
- package/skills/archive/SKILL.md +12 -10
- package/skills/create/SKILL.md +9 -9
- package/skills/implement/SKILL.md +10 -8
- package/skills/implement/references/governed-mode.md +1 -1
- package/skills/implement/references/resume-recovery.md +2 -0
- package/skills/refresh/SKILL.md +25 -18
- package/skills/revert/SKILL.md +33 -13
- package/skills/review/SKILL.md +27 -34
- package/skills/revise/SKILL.md +21 -11
- package/skills/status/SKILL.md +2 -0
- package/skills/track/SKILL.md +11 -7
- package/templates/{v5 → v6}/init/workflow.md +1 -1
- package/templates/v1/init/gitignore.template +0 -5
- package/templates/v1/init/patterns/index.md +0 -6
- package/templates/v1/init/project.json +0 -26
- package/templates/v1/init/workflow.md +0 -181
- package/templates/v1/project/archive-operation.json +0 -15
- package/templates/v1/project/refresh-operation.json +0 -14
- package/templates/v1/track/execution.json +0 -19
- package/templates/v1/track/learning.md +0 -39
- package/templates/v1/track/plan.md +0 -39
- package/templates/v1/track/revert-operation.json +0 -13
- package/templates/v1/track/revise-operation.json +0 -14
- package/templates/v1/track/state.json +0 -25
- package/templates/v2/init/archive/.gitkeep +0 -1
- package/templates/v2/init/gitignore.template +0 -8
- package/templates/v2/init/guidelines.md +0 -25
- package/templates/v2/init/operations/.gitkeep +0 -1
- package/templates/v2/init/patterns/index.md +0 -6
- package/templates/v2/init/product.md +0 -30
- package/templates/v2/init/project.json +0 -27
- package/templates/v2/init/refreshes/.gitkeep +0 -1
- package/templates/v2/init/styleguides/general.md +0 -14
- package/templates/v2/init/styleguides/language.md +0 -21
- package/templates/v2/init/tech-stack.md +0 -21
- package/templates/v2/init/tracks/.gitkeep +0 -1
- package/templates/v2/init/tracks.md +0 -6
- package/templates/v2/init/wisps/.gitkeep +0 -1
- package/templates/v2/init/workflow.md +0 -72
- package/templates/v2/project/pattern.md +0 -20
- package/templates/v2/project/refresh.md +0 -21
- package/templates/v2/styleguides/dart.md +0 -27
- package/templates/v2/styleguides/flutter.md +0 -27
- package/templates/v2/styleguides/go.md +0 -29
- package/templates/v2/styleguides/gradle.md +0 -28
- package/templates/v2/styleguides/html-css.md +0 -39
- package/templates/v2/styleguides/index.md +0 -27
- package/templates/v2/styleguides/java.md +0 -27
- package/templates/v2/styleguides/javascript.md +0 -27
- package/templates/v2/styleguides/kotlin.md +0 -26
- package/templates/v2/styleguides/maven.md +0 -28
- package/templates/v2/styleguides/python.md +0 -27
- package/templates/v2/styleguides/react.md +0 -28
- package/templates/v2/styleguides/swift.md +0 -27
- package/templates/v2/styleguides/swiftui.md +0 -27
- package/templates/v2/styleguides/typescript.md +0 -26
- package/templates/v2/track/bug.md +0 -14
- package/templates/v2/track/execution.json +0 -19
- package/templates/v2/track/learning.md +0 -39
- package/templates/v2/track/plan.md +0 -39
- package/templates/v2/track/revision.md +0 -36
- package/templates/v2/track/spec.md +0 -38
- package/templates/v2/track/state.json +0 -31
- package/templates/v3/init/archive/.gitkeep +0 -1
- package/templates/v3/init/gitignore.template +0 -8
- package/templates/v3/init/guidelines.md +0 -25
- package/templates/v3/init/operations/.gitkeep +0 -1
- package/templates/v3/init/product.md +0 -30
- package/templates/v3/init/project.json +0 -27
- package/templates/v3/init/refreshes/.gitkeep +0 -1
- package/templates/v3/init/styleguides/general.md +0 -14
- package/templates/v3/init/styleguides/language.md +0 -21
- package/templates/v3/init/tech-stack.md +0 -21
- package/templates/v3/init/tracks/.gitkeep +0 -1
- package/templates/v3/init/tracks.md +0 -6
- package/templates/v3/init/wisps/.gitkeep +0 -1
- package/templates/v3/init/workflow.md +0 -82
- package/templates/v3/project/archive-operation.json +0 -19
- package/templates/v3/project/pattern.md +0 -20
- package/templates/v3/project/refresh-operation.json +0 -18
- package/templates/v3/project/refresh.md +0 -21
- package/templates/v3/styleguides/dart.md +0 -27
- package/templates/v3/styleguides/flutter.md +0 -27
- package/templates/v3/styleguides/go.md +0 -29
- package/templates/v3/styleguides/gradle.md +0 -28
- package/templates/v3/styleguides/html-css.md +0 -39
- package/templates/v3/styleguides/index.md +0 -27
- package/templates/v3/styleguides/java.md +0 -27
- package/templates/v3/styleguides/javascript.md +0 -27
- package/templates/v3/styleguides/kotlin.md +0 -26
- package/templates/v3/styleguides/maven.md +0 -28
- package/templates/v3/styleguides/python.md +0 -27
- package/templates/v3/styleguides/react.md +0 -28
- package/templates/v3/styleguides/swift.md +0 -27
- package/templates/v3/styleguides/swiftui.md +0 -27
- package/templates/v3/styleguides/typescript.md +0 -26
- package/templates/v3/track/bug.md +0 -14
- package/templates/v3/track/execution.json +0 -19
- package/templates/v3/track/plan.md +0 -39
- package/templates/v3/track/revert-operation.json +0 -17
- package/templates/v3/track/revise-operation.json +0 -18
- package/templates/v3/track/revision.md +0 -36
- package/templates/v3/track/spec.md +0 -38
- package/templates/v3/track/state.json +0 -31
- package/templates/v4/init/archive/.gitkeep +0 -1
- package/templates/v4/init/gitignore.template +0 -8
- package/templates/v4/init/guidelines.md +0 -25
- package/templates/v4/init/operations/.gitkeep +0 -1
- package/templates/v4/init/patterns/index.md +0 -8
- package/templates/v4/init/product.md +0 -30
- package/templates/v4/init/project.json +0 -27
- package/templates/v4/init/refreshes/.gitkeep +0 -1
- package/templates/v4/init/styleguides/general.md +0 -14
- package/templates/v4/init/styleguides/language.md +0 -21
- package/templates/v4/init/tech-stack.md +0 -21
- package/templates/v4/init/tracks/.gitkeep +0 -1
- package/templates/v4/init/tracks.md +0 -6
- package/templates/v4/init/wisps/.gitkeep +0 -1
- package/templates/v4/init/workflow.md +0 -91
- package/templates/v4/project/archive-operation.json +0 -19
- package/templates/v4/project/pattern.md +0 -20
- package/templates/v4/project/refresh-operation.json +0 -18
- package/templates/v4/project/refresh.md +0 -21
- package/templates/v4/styleguides/dart.md +0 -27
- package/templates/v4/styleguides/flutter.md +0 -27
- package/templates/v4/styleguides/go.md +0 -29
- package/templates/v4/styleguides/gradle.md +0 -28
- package/templates/v4/styleguides/html-css.md +0 -39
- package/templates/v4/styleguides/index.md +0 -27
- package/templates/v4/styleguides/java.md +0 -27
- package/templates/v4/styleguides/javascript.md +0 -27
- package/templates/v4/styleguides/kotlin.md +0 -26
- package/templates/v4/styleguides/maven.md +0 -28
- package/templates/v4/styleguides/python.md +0 -27
- package/templates/v4/styleguides/react.md +0 -28
- package/templates/v4/styleguides/swift.md +0 -27
- package/templates/v4/styleguides/swiftui.md +0 -27
- package/templates/v4/styleguides/typescript.md +0 -26
- package/templates/v4/track/bug.md +0 -14
- package/templates/v4/track/execution.json +0 -20
- package/templates/v4/track/learning.md +0 -45
- package/templates/v4/track/plan.md +0 -39
- package/templates/v4/track/revert-operation.json +0 -17
- package/templates/v4/track/revise-operation.json +0 -18
- package/templates/v4/track/revision.md +0 -36
- package/templates/v4/track/spec.md +0 -38
- package/templates/v4/track/state.json +0 -31
- package/templates/v5/init/archive/.gitkeep +0 -1
- package/templates/v5/init/guidelines.md +0 -25
- package/templates/v5/init/operations/.gitkeep +0 -1
- package/templates/v5/init/patterns/index.md +0 -8
- package/templates/v5/init/product.md +0 -30
- package/templates/v5/init/refreshes/.gitkeep +0 -1
- package/templates/v5/init/styleguides/general.md +0 -14
- package/templates/v5/init/styleguides/language.md +0 -21
- package/templates/v5/init/tech-stack.md +0 -21
- package/templates/v5/init/tracks/.gitkeep +0 -1
- package/templates/v5/init/tracks.md +0 -6
- package/templates/v5/init/wisps/.gitkeep +0 -1
- package/templates/v5/project/archive-operation.json +0 -19
- package/templates/v5/project/pattern.md +0 -20
- package/templates/v5/project/refresh-operation.json +0 -18
- package/templates/v5/project/refresh.md +0 -21
- package/templates/v5/styleguides/dart.md +0 -27
- package/templates/v5/styleguides/flutter.md +0 -27
- package/templates/v5/styleguides/go.md +0 -29
- package/templates/v5/styleguides/gradle.md +0 -28
- package/templates/v5/styleguides/html-css.md +0 -39
- package/templates/v5/styleguides/index.md +0 -27
- package/templates/v5/styleguides/java.md +0 -27
- package/templates/v5/styleguides/javascript.md +0 -27
- package/templates/v5/styleguides/kotlin.md +0 -26
- package/templates/v5/styleguides/maven.md +0 -28
- package/templates/v5/styleguides/python.md +0 -27
- package/templates/v5/styleguides/react.md +0 -28
- package/templates/v5/styleguides/swift.md +0 -27
- package/templates/v5/styleguides/swiftui.md +0 -27
- package/templates/v5/styleguides/typescript.md +0 -26
- package/templates/v5/track/bug.md +0 -14
- package/templates/v5/track/learning.md +0 -45
- package/templates/v5/track/revert-operation.json +0 -17
- package/templates/v5/track/revise-operation.json +0 -18
- package/templates/v5/track/revision.md +0 -36
- package/templates/v5/track/spec.md +0 -38
- /package/templates/{v1 → v6}/init/archive/.gitkeep +0 -0
- /package/templates/{v5 → v6}/init/gitignore.template +0 -0
- /package/templates/{v1 → v6}/init/guidelines.md +0 -0
- /package/templates/{v1 → v6}/init/operations/.gitkeep +0 -0
- /package/templates/{v3 → v6}/init/patterns/index.md +0 -0
- /package/templates/{v1 → v6}/init/product.md +0 -0
- /package/templates/{v5 → v6}/init/project.json +0 -0
- /package/templates/{v1 → v6}/init/refreshes/.gitkeep +0 -0
- /package/templates/{v1 → v6}/init/styleguides/general.md +0 -0
- /package/templates/{v1 → v6}/init/styleguides/language.md +0 -0
- /package/templates/{v1 → v6}/init/tech-stack.md +0 -0
- /package/templates/{v1 → v6}/init/tracks/.gitkeep +0 -0
- /package/templates/{v1 → v6}/init/tracks.md +0 -0
- /package/templates/{v1 → v6}/init/wisps/.gitkeep +0 -0
- /package/templates/{v2 → v6}/project/archive-operation.json +0 -0
- /package/templates/{v1 → v6}/project/pattern.md +0 -0
- /package/templates/{v2 → v6}/project/refresh-operation.json +0 -0
- /package/templates/{v1 → v6}/project/refresh.md +0 -0
- /package/templates/{v1 → v6}/styleguides/dart.md +0 -0
- /package/templates/{v1 → v6}/styleguides/flutter.md +0 -0
- /package/templates/{v1 → v6}/styleguides/go.md +0 -0
- /package/templates/{v1 → v6}/styleguides/gradle.md +0 -0
- /package/templates/{v1 → v6}/styleguides/html-css.md +0 -0
- /package/templates/{v1 → v6}/styleguides/index.md +0 -0
- /package/templates/{v1 → v6}/styleguides/java.md +0 -0
- /package/templates/{v1 → v6}/styleguides/javascript.md +0 -0
- /package/templates/{v1 → v6}/styleguides/kotlin.md +0 -0
- /package/templates/{v1 → v6}/styleguides/maven.md +0 -0
- /package/templates/{v1 → v6}/styleguides/python.md +0 -0
- /package/templates/{v1 → v6}/styleguides/react.md +0 -0
- /package/templates/{v1 → v6}/styleguides/swift.md +0 -0
- /package/templates/{v1 → v6}/styleguides/swiftui.md +0 -0
- /package/templates/{v1 → v6}/styleguides/typescript.md +0 -0
- /package/templates/{v1 → v6}/track/bug.md +0 -0
- /package/templates/{v5 → v6}/track/dependency-context.json +0 -0
- /package/templates/{v5 → v6}/track/execution.json +0 -0
- /package/templates/{v3 → v6}/track/learning.md +0 -0
- /package/templates/{v5 → v6}/track/plan.md +0 -0
- /package/templates/{v2 → v6}/track/revert-operation.json +0 -0
- /package/templates/{v2 → v6}/track/revise-operation.json +0 -0
- /package/templates/{v1 → v6}/track/revision.md +0 -0
- /package/templates/{v1 → v6}/track/spec.md +0 -0
- /package/templates/{v5 → v6}/track/state.json +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
# Cadre Workflow
|
|
2
|
-
|
|
3
|
-
This file governs every Cadre command except that `wisp` does not mutate Cadre state. If a command-specific instruction conflicts with this file, stop and present the conflict to the human.
|
|
4
|
-
|
|
5
|
-
Cadre's plugin-scoped MCP server is the authoritative runtime and immutable template provider. Project-local `.cadre/` contains only approved mutable context, lifecycle artifacts, and history; it must not contain copied Cadre runtime code or template catalogs. Stateful commands fail closed when required Cadre MCP tools are unavailable.
|
|
6
|
-
|
|
7
|
-
## Non-negotiable operating rules
|
|
8
|
-
|
|
9
|
-
### Read before edit
|
|
10
|
-
|
|
11
|
-
Before editing an existing file, read the current file and its directly relevant context, including applicable repository instructions, callers, tests, types, and configuration. Before creating a file, inspect the target directory and nearby conventions. Never change a file by guessing its current contents. Record material evidence read in the task or review summary.
|
|
12
|
-
|
|
13
|
-
### Human governance
|
|
14
|
-
|
|
15
|
-
Treat semantic content, scope, and consequences as proposals until the human reviews and explicitly approves them. One approval creates an authorization envelope over the complete exact proposal and all unchanged deterministic consequences named in it, including operation journals, generated indexes, validation, commits, lifecycle transitions, and provenance recording. Those mechanics do not become separate human decisions. Persist the authorization and checkpoint before pausing a multi-stage flow so another session can resume it.
|
|
16
|
-
|
|
17
|
-
Present exact content or focused diffs, consequences, unknowns, and verification evidence once at the decision boundary. Combine related decisions whenever their complete artifacts and consequences are available together. In particular, do not split create configuration from initialization, a clear track specification from its validated plan, finding disposition from prepared remediation, project refresh from its exact cascading track changes, revert intent from deterministic reconciliation, reject-all risk acceptance from clean-review completion, or a uniquely determined archive selection from its full batch proposal. A response must unambiguously approve every included semantic consequence. Require a corrected proposal and new approval only when content, scope, selection, digest-bound semantics, verification exceptions, or newly discovered consequences materially change.
|
|
18
|
-
|
|
19
|
-
An `implement` invocation authorizes execution using its persisted `approvalMode`: `governed`, `phase`, or `autonomous`. This is scoped authorization for work already bounded by the approved specification and plan, not permission to guess through material ambiguity, expand scope, waive required checks, perform destructive or remote actions, or conceal conflicts and exceptions. `phase` is the default unless the human explicitly requests another approval mode; a resumed execution inherits its recorded mode. Starting a `phase` or `autonomous` execution from that invocation does not require a separate approval prompt.
|
|
20
|
-
|
|
21
|
-
### Human interaction forms
|
|
22
|
-
|
|
23
|
-
For a required clarification or human decision, first show only the concise context, focused diff, consequences, and evidence needed to decide. Inspect the active host policy before calling the read-only `workflow_elicit` MCP tool. If the task context reports approval policy `never`, including Codex Full Access, skip the form and ask the same short question once in chat. Otherwise prefer `workflow_elicit` so Codex and Claude can render the same client-native form. Use `clarification` with at most three flat questions. Use `approval` only after the exact proposal or verification evidence is ready, and bind it to the current preview digest or an immutable checkpoint containing the relevant track, execution/node, and commit. An `approved` result is explicit human approval of that binding; `changes_requested`, `declined`, and `cancelled` are not approval.
|
|
24
|
-
|
|
25
|
-
If the client does not advertise form elicitation or rejects the request with `fallback_required`, ask the same short question once in chat and do not retry the form. If `workflow_elicit` was mistakenly called while the task explicitly reports policy `never` and immediately returns `declined`, treat that response as policy rejection and use the same chat fallback; do not report it as a human decline. Never use form elicitation for passwords, API keys, access tokens, payment credentials, or other secrets. Do not print a complete unchanged workflow or other large default artifact merely to create context for a form; identify it by path/version/hash and summarize it unless the human asks for the full content.
|
|
26
|
-
|
|
27
|
-
### Clarification gate
|
|
28
|
-
|
|
29
|
-
Inspect available files, history, state, and approved artifacts before asking. If a material choice remains ambiguous and different answers would change scope, requirements, acceptance criteria, dependencies, compatibility, architecture, plans, or cascading state, ask the human a concise targeted question and pause that branch of work. Do not guess, choose a convenient default, or treat silence as approval. Continue without asking only when evidence resolves the choice or the assumption is immaterial and is explicitly disclosed.
|
|
30
|
-
|
|
31
|
-
`create` must explicitly classify the repository as `greenfield` or `brownfield`. Greenfield means no substantive existing product implementation/history; brownfield means existing implementation, behavior, users, data, interfaces, or delivery history must be understood and preserved or intentionally changed. If evidence is mixed or insufficient, ask which classification to use before drafting Cadre artifacts. Persist the approved classification in `project.json` and `product.md`.
|
|
32
|
-
|
|
33
|
-
`track`, `revise`, and `refresh` must apply this gate before drafting and again whenever later analysis reveals a new material ambiguity.
|
|
34
|
-
|
|
35
|
-
### Create-time configuration envelope
|
|
36
|
-
|
|
37
|
-
During `create`, identify the default workflow by template ID, version, hash, and a concise summary. Include it with product context, Git disposition, styleguides, generated state, and initialization consequences in one final approval envelope. Do not create separate workflow, styleguide-selection, manifest, Git-initialization, validation, or commit approvals. Ask before the final proposal only when a material workflow or convention choice is unresolved; a clarification answer is input to the final proposal, not an additional approval stage.
|
|
38
|
-
|
|
39
|
-
Always propose `styleguides/general.md`. Match the proposed tech stack against the bundled default catalog, then propose the applicable language, framework, and build-tool guides as one set. Let the human request an amended default or a user-provided replacement without asking them to accept every guide separately. Framework/tool guides supplement their language guide: HTML/CSS underpins browser UI; TypeScript supplements JavaScript; React for the web supplements HTML/CSS plus JavaScript or TypeScript; Flutter supplements Dart; SwiftUI supplements Swift; Maven or Gradle supplements Java/Kotlin. In brownfield projects, existing enforced conventions take precedence unless the final envelope explicitly replaces them.
|
|
40
|
-
|
|
41
|
-
### Interruption-safe operations
|
|
42
|
-
|
|
43
|
-
At command entry, call `project_status` once and use its embedded structured validation. Reserve a separate `state_validate` call for final mutation gates or focused diagnostics; do not perform redundant full-project validation scans. Derived-state warnings such as a stale generated `tracks.md` are resumable drift, not canonical corruption. Report and repair them through the MCP render gate within the owning authorization envelope before a final commit.
|
|
44
|
-
|
|
45
|
-
Within one command flow, inventory required context once and reuse content whose Git path/hash is unchanged. Continue truncated reads from the first unread line instead of restarting them. Do not run line-count or repeated path-discovery passes before known reads. Consecutive reviews reread the current lifecycle artifacts and changed implementation range while reusing unchanged project guidance. Archive reads selected evidence and provenance in one bounded pass. Fetch known immutable template IDs directly with `template_get_many`; do not call the catalog merely to rediscover them.
|
|
46
|
-
|
|
47
|
-
For every multi-step state mutation—and specifically `create`, both spec/plan stages of `track`, `implement`, finding-bearing `review`, `revise`, `refresh`, `revert`, and archive batches—write an operation journal immediately after approval and before artifact writes or Git mutations. Use `project.json.setup.operation` for create, track `state.json.operation` plus `executions/execution-<ts>.json` for implementation, track `state.json.operation` for other track-local flows including revert, and a versioned operation file under `.cadre/operations/` for refresh and archive batches. Record the action, durable checkpoint, base commit, expected commit message, approved artifact paths, and per-artifact progress.
|
|
48
|
-
|
|
49
|
-
On every command entry, reconcile an existing journal before starting new work:
|
|
50
|
-
|
|
51
|
-
1. If the journal exists and matching files are dirty, resume the first incomplete artifact/checkpoint, validate, and create the expected commit.
|
|
52
|
-
2. If the journal exists, the worktree is clean, and HEAD matches its expected message and base relationship, the artifact commit already succeeded; record HEAD instead of repeating work.
|
|
53
|
-
3. If the artifact SHA is recorded and only the approved state bookkeeping is dirty, finish its `cadre(...): record ...` commit.
|
|
54
|
-
4. If files, journal, approval record, Git status, or HEAD disagree, stop and present the mismatch. Never reset, discard, reconstruct from guesses, or restart the flow.
|
|
55
|
-
|
|
56
|
-
Advance the checkpoint after each durable artifact write. Once an artifact commit is identified, append it to history and advance the lifecycle checkpoint. Preserve or transition the same operation journal while later stages remain inside one authorization envelope, as with combined track specification and planning; clear it only after every authorized stage and provenance record is complete. This protocol makes interruption before a commit, between commits, after a commit, or before follow-up bookkeeping resumable.
|
|
57
|
-
|
|
58
|
-
During `create`, detect an existing worktree with `git rev-parse --show-toplevel` and never initialize a nested repository. If no worktree exists, record the approved project root and `initialize` disposition through the MCP initialization preview/apply gate before running `git init` there. Verify the resulting root and record that checkpoint before the setup commit. Resume a pending initialization from the journal; stop if the observed repository conflicts with the recorded disposition or root.
|
|
59
|
-
|
|
60
|
-
For deterministic MCP mutations, call the read-only preview immediately before apply and pass only its opaque proposal token. Do not inspect the global tool catalog or probe previews to rediscover declared contracts. Show the exact proposal whenever the owning workflow and persisted approval mode require a human decision. In `phase` or `autonomous` implementation, execution start plus deterministic worktree, clean integration, cleanup, journal, index, and bookkeeping mutations already covered by the invocation do not create new approval prompts. A stale token is refreshed before presentation rather than forcing duplicate approval. The MCP never grants approval or replaces required repository inspection. Its Git surface is limited to constrained Cadre worktree creation, integration, and safe cleanup; it accepts no arbitrary command, path, force deletion, or automatic conflict resolution.
|
|
61
|
-
|
|
62
|
-
Resuming a recorded authorization envelope never requires another human approval when the operation journal has the same approval/content digest and the newly previewed artifacts are identical to the approved proposal, with only checkpoint progress changed. Any content, selection, semantic consequence, or approval-digest mismatch requires a corrected proposal and new approval.
|
|
63
|
-
|
|
64
|
-
When a command skill explicitly instructs direct writes for approved Cadre artifacts and no corresponding MCP mutation tool is declared, those direct writes are intentional. Do not search the global tool list for an undeclared operation. Journal the change first, use the available MCP validation and derived-render gates, and stop if the resulting state does not match the approved proposal.
|
|
65
|
-
|
|
66
|
-
### Sources of truth
|
|
67
|
-
|
|
68
|
-
- `plan.md` is the execution source of truth for phase/task identities, dependencies, verification barriers, completion, and commit provenance. Display order is only a deterministic scheduling tie-breaker.
|
|
69
|
-
- `spec.md` is the scope and acceptance source of truth.
|
|
70
|
-
- Each track's `state.json` is the canonical source for its identity, title, type, status, track dependencies, revision, checkpoints, operation pointer, completed execution, and history; it must agree with the approved spec and plan. Active execution nodes are derived from the execution journal, never duplicated as singular active phase/task fields.
|
|
71
|
-
- Track location is derived: non-archived state lives at `tracks/<track-id>` and archived state at `archive/<track-id>`. Never persist a track path field.
|
|
72
|
-
- `project.json` contains project/setup/refresh history only; it does not duplicate track records.
|
|
73
|
-
- `tracks.md` is a generated lifecycle summary discovered from track-local state. It intentionally omits dependencies and paths; never hand-edit it.
|
|
74
|
-
- Templates are immutable plugin resources addressed by logical IDs such as `track/spec`; they are rendered into approved artifacts but are never copied into `.cadre/`.
|
|
75
|
-
- Git is the implementation history. Do not claim completion without recorded commits.
|
|
76
|
-
- `.cadre/.gitignore` keeps `.worktrees/` and `wisps/` out of Git. Worktree and Wisp contents are runtime-only and never Cadre history.
|
|
77
|
-
|
|
78
|
-
## Lifecycle
|
|
79
|
-
|
|
80
|
-
```text
|
|
81
|
-
drafting-spec -> drafting-plan -> planned -> in_progress -> ready_for_review
|
|
82
|
-
| | | |
|
|
83
|
-
+-- revise ---+-------------+ +-- revise --> in_progress/planned
|
|
84
|
-
| | +-- approved bugs --> in_progress
|
|
85
|
-
+-------------+ +-- clean review --> completed --> archived
|
|
86
|
-
|
|
87
|
-
completed/archived -- changed intent --> successor track
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
Legal track statuses are `drafting-spec`, `drafting-plan`, `planned`, `in_progress`, `ready_for_review`, `completed`, and `archived`. The `revise` command may be invoked in any status, but it routes according to the approved-baseline rules below; it does not make completed or archived history mutable. Only review can mark `completed`; only archive can mark `archived`.
|
|
91
|
-
|
|
92
|
-
## Track construction
|
|
93
|
-
|
|
94
|
-
- Track type is exactly `feature` or `bug`.
|
|
95
|
-
- A spec contains functional requirements, non-functional requirements, acceptance criteria, additional information, dependencies, and impact.
|
|
96
|
-
- A plan is an acyclic graph. Every regular phase explicitly declares phase dependencies; every regular task explicitly declares same-phase task dependencies. Missing declarations, unknown references, self-dependencies, cross-phase task dependencies, and cycles are invalid.
|
|
97
|
-
- Every delivery/remediation phase ends with a task named `User Manual Verification`; its dependencies are derived as every sibling delivery task and must not be repeated in the plan.
|
|
98
|
-
- The final phase is named `Track-level User Manual Verification`, contains only `User Manual Verification`, and implicitly depends on every preceding phase. Those dependencies are derived and must not be repeated.
|
|
99
|
-
- A track may start implementation only when every declared dependency is completed or archived after completion.
|
|
100
|
-
- After spec and plan approval, populate the marked Pattern Seed section at the top of `learning.md` only from relevant, existing patterns and cite the source pattern paths. Do not create a separate seed file.
|
|
101
|
-
|
|
102
|
-
## Implementation scheduling and discipline
|
|
103
|
-
|
|
104
|
-
`implement` defaults to parallel mode unless the human explicitly requests sequential execution. Persist the requested and effective mode in the execution journal. Parallel mode is permission to schedule ready work concurrently, not a requirement to create workers: when fewer than two safe executable nodes are ready, execute in the main agent without worker overhead. Bound workers by the minimum of ready nodes, host capacity, and the approved workflow maximum of 3.
|
|
105
|
-
|
|
106
|
-
Persist one independent implementation approval mode:
|
|
107
|
-
|
|
108
|
-
- `governed`: require human approval for every regular task diff and commit, conflict resolution, manual-verification barrier, and material integration transition.
|
|
109
|
-
- `phase` (default): execute regular work autonomously but pause at each phase's final `User Manual Verification` task.
|
|
110
|
-
- `autonomous`: execute regular work and phase-level verification autonomously; pause only at `Track-level User Manual Verification`.
|
|
111
|
-
|
|
112
|
-
All modes stop for a material ambiguity, scope or compatibility decision, failed required check needing an exception, unsafe or mismatched state, destructive action, remote publication, or other authority not granted by the approved spec, plan, and execution. Such a stop is a clarification or blocker, not a routine approval gate. Track-level manual verification always requires the human.
|
|
113
|
-
|
|
114
|
-
The main agent is the only scheduler and operational owner of every phase integration worktree. Workers never spawn workers, mutate `.cadre/**`, merge, resolve integration conflicts, delete worktrees, or record human approval. Treat the track as a hierarchical DAG: phase dependencies determine active phases, task dependencies determine ready tasks inside each running phase, and main allocates the global worker bound across all ready work. Different phases may run different modes concurrently. Inside one phase, use direct main execution for one ready task, a temporary phase-worker lease for a tightly coupled sequential chain when delegation is justified, or task-worker fan-out for two or more independent ready tasks.
|
|
115
|
-
|
|
116
|
-
A phase has one mutating execution mode at a time but may switch modes at a clean, journaled checkpoint. Before fan-out, the phase worker finishes and records the current task, verifies the phase worktree is clean, reports its HEAD, releases its lease through a `running`-to-`running` phase update with `workerId: null`, and remains inactive. Main creates each task worktree from that recorded phase HEAD and integrates branches one at a time. Only after every active task worker is completed and its integration/cleanup recorded may main assign a phase worker again. A phase/task worker edits product files only in its assigned absolute worktree, runs focused verification, and returns a structured diff/evidence/learning summary. In `governed` it waits for human task approval before committing; in `phase` or `autonomous` main reviews scope and evidence, then authorizes the commit under the persisted mode.
|
|
117
|
-
|
|
118
|
-
Before creating workers, main performs a host-permission preflight from the approved plan, repository scripts, lockfiles, and likely checks. Host security permission and Cadre lifecycle approval are separate: a shell, network, listener, or filesystem prompt does not approve an artifact, commit, merge, verification result, or journal transition. Reuse already-approved commands and prefixes; centralize shared installs, registry access, image pulls, code generation, and other shared preparation; use locked/offline worker commands where supported; and request a new permission only for one exact necessary operation with a narrow reusable prefix. Do not chain unrelated privilege levels, repeat equivalent commands, or use scaffolding modes that create nested repositories requiring destructive cleanup. Run independent read-only inspections and checks in parallel when the host supports it; keep only commands with a real data, mutation, or Git dependency sequential. A worker that encounters an unexpected permission stops and reports the exact command to main.
|
|
119
|
-
|
|
120
|
-
Cadre worktrees use sibling namespaces because one worktree cannot safely contain another:
|
|
121
|
-
|
|
122
|
-
```text
|
|
123
|
-
.cadre/.worktrees/<track>/<execution>/phases/P1
|
|
124
|
-
.cadre/.worktrees/<track>/<execution>/tasks/P1--t1-1
|
|
125
|
-
```
|
|
126
|
-
|
|
127
|
-
Git ancestry is derived from the current canonical or registered phase-worktree HEAD. Task branches merge without squashing into the registered phase worktree when one exists, otherwise into canonical main for explicitly main-coordinated work. Phase branches merge without squashing into canonical main. Cadre tool names are direct contracts: semantic execution events use `execution_checkpoint_preview`/`execution_checkpoint_apply`, and every apply receives only the opaque proposal token returned by preview. Worktree tools derive phase and base from the node ID and current Git state.
|
|
128
|
-
|
|
129
|
-
1. Load this workflow and the full current track. Validate the DAG and reconcile the execution journal, Git worktrees, branch tips, dirty files, and recent commits before scheduling.
|
|
130
|
-
2. Root phases read the marked Pattern Seed. Every other phase reads learning from all declared dependency phases; parallel sibling phases do not assume each other's learning.
|
|
131
|
-
3. Derive ready work from the journal and allocate workers by critical path, downstream work unblocked, then plan order. Send semantic checkpoint events only after their commit, verification, integration, or approval evidence exists; the server expands each event into its complete legal transition sequence.
|
|
132
|
-
4. Follow read-before-edit and keep every worker limited to its assigned node and worktree.
|
|
133
|
-
5. Write/update tests and documentation required by the spec and Definition of Done.
|
|
134
|
-
6. Run focused checks per task, combined phase checks after task integration, and the relevant broader suite after conflict resolution, phase integration, and before track verification. Record command, working directory, result, and verified product HEAD/tree; reuse a passing result while product files, test inputs, and policy are unchanged. `.cadre/**`-only bookkeeping does not invalidate product verification.
|
|
135
|
-
7. Main reads every worker diff and evidence. In `governed`, present each regular task for human approval before its Conventional Commit. In `phase` or `autonomous`, main may authorize an in-scope, fully verified task commit without another prompt and records the persisted mode as its approval evidence. A phase worker checkpoints one regular task at a time and waits for main to record the distinct SHA before starting the next task. Manual-verification nodes may reuse phase-head or merge evidence instead of creating empty commits.
|
|
136
|
-
8. Resolve task conflicts in the phase integration worktree and phase conflicts in the canonical worktree. Read both sides and rerun combined verification. In `governed`, present the resolution for approval. In `phase` or `autonomous`, resolve an unambiguous in-scope conflict autonomously and retain it for the next verification evidence; stop for clarification if it requires a material product or scope decision. Never let the leaf worker silently resolve integration conflicts.
|
|
137
|
-
9. Phase-level manual verification becomes ready only after every sibling task is integrated. Run its technical evidence in the phase worktree through the phase worker when present, otherwise through main. `governed` and `phase` require one human approval at this final phase task; `autonomous` records the verified evidence without a prompt. Afterward checkpoint, phase integration, provenance, learning, and cleanup are deterministic consequences and do not create extra approvals outside `governed`. Keep the phase node `integrated` through safe worktree cleanup, then mark it `completed` and start dependents. Cleanup may recover an already-`completed` node without reopening that terminal state. A phase remains `running` until all sibling tasks and this barrier are `completed`; integration and cleanup must not run early.
|
|
138
|
-
10. Track-level manual verification becomes ready only after every phase is integrated, is executed entirely by the main agent in the canonical worktree, and requires explicit human approval in every mode.
|
|
139
|
-
11. Remove a worktree with `git worktree remove` and delete its branch without force only after clean, recorded integration. Never delete dirty, conflicted, unintegrated, or mismatched work.
|
|
140
|
-
12. Append dependency-aware phase learning. Do not overwrite earlier learning.
|
|
141
|
-
|
|
142
|
-
Product task commits remain distinct provenance boundaries. Cadre-only learning and journal bookkeeping is committed at meaningful checkpoints, not per internal status. Execution finish derives HEAD/time and atomically applies plan evidence, the completed journal, `ready_for_review` state, and `tracks.md`, so do not run marker or index repair workflows.
|
|
143
|
-
|
|
144
|
-
## Definition of Done
|
|
145
|
-
|
|
146
|
-
A task is done when its approved outcome exists, relevant tests cover success/failure/edge cases, checks pass or documented exceptions are approved, formatting and repository conventions are satisfied, docs are updated, no unrelated changes are included, its diff and evidence were reviewed at the barrier required by the persisted approval mode, and commit provenance is recorded.
|
|
147
|
-
|
|
148
|
-
A phase is done when all tasks are integrated, phase learning is recorded, combined verification passes, and its final User Manual Verification is approved by the human in `governed` or `phase`, or authorized by verified evidence in `autonomous`. A track is ready for review only after all execution nodes are complete, all worker branches are integrated, all worktrees are removed, the journal is finalized, and track-level manual verification is approved in main. It is completed only after an approved clean review bound to the current execution ID, plan revision, graph digest, and reviewed HEAD.
|
|
149
|
-
|
|
150
|
-
## Review and remediation
|
|
151
|
-
|
|
152
|
-
Review acceptance criteria, non-functional requirements, diffs, callers, tests, security, compatibility, error paths, and learning claims. Present findings before recording them. Approved findings go in `bugs/bug-<review-ts>.md`; insert dependency-aware remediation phases before the single final track-level verification phase, ending each with manual verification. Reset the final barrier to pending while preserving its prior evidence in the review cycle and completed execution journal. A replacement execution carries already-completed plan nodes forward from their commit provenance and schedules only pending work. Set the track back to `in_progress`. A clean cycle records the current execution ID, plan revision, graph digest, and reviewed HEAD. Repeat implement/review until a clean review is approved.
|
|
153
|
-
|
|
154
|
-
## Revisions, refreshes, and cascading impact
|
|
155
|
-
|
|
156
|
-
`revise` is callable at any point, with these state-specific semantics:
|
|
157
|
-
|
|
158
|
-
- In `drafting-spec`, continue the interrupted or active `track` specification flow. There is no approved baseline yet, so do not create a revision entry.
|
|
159
|
-
- In `drafting-plan`, a change to the approved specification is a revision; a change only to the unapproved plan continues the `track` planning flow.
|
|
160
|
-
- In `planned`, revise the approved baseline and remain `planned`.
|
|
161
|
-
- In `in_progress`, first reconcile any operation and active or dirty task work. Preserve completed tasks and commits, supersede rather than erase affected work, and remain `in_progress` when all dependencies are satisfied. Return to `planned` when a newly approved dependency is incomplete.
|
|
162
|
-
- In `ready_for_review`, use `review` for defects against the approved specification. Use `revise` for a changed desired outcome, scope, requirement, or acceptance criterion; invalidate review readiness, append the necessary delivery and manual-verification work, and return to `in_progress`, or `planned` when an approved dependency is incomplete.
|
|
163
|
-
- In `completed` or `archived`, keep the track immutable and propose a successor feature or bug track that references it. Do not reopen it or rewrite its clean-review history.
|
|
164
|
-
|
|
165
|
-
A semantic revision requires an approved specification baseline and no unresolved non-revision operation. Reconcile a matching revision journal before doing new work. If active implementation or dirty work overlaps the revision, include its exact complete, preserve-as-superseded, or additive-revert disposition in the combined revision envelope whenever it can be safely assessed in advance. Ask for a preliminary disposition only when that choice is required to reach a state that can be fully analyzed.
|
|
166
|
-
|
|
167
|
-
Every approved semantic revision gets `revisions/revision-<ts>.md` and a track-local `operation.action` of `revise` before artifact mutation. Increment the track revision once per approved revision; increment the specification revision only when the specification changes and the plan revision only when the plan changes. A revision must record its source and target status, base commit, affected phases/tasks, treatment of completed and partial work, review-readiness impact, and transitive dependency impact. Preserve completed-work provenance and append replacement work rather than erasing history.
|
|
168
|
-
|
|
169
|
-
Every project refresh gets `refreshes/refresh-<ts>.md`. Assess transitive dependent tracks whenever a spec, acceptance criterion, dependency, workflow, pattern, tech-stack, or styleguide change may affect them. Present project context and every exact cascading track change in one refresh authorization envelope before mutation. Preserve superseded content and completed-work provenance rather than erasing history.
|
|
170
|
-
|
|
171
|
-
## Archival and learning
|
|
172
|
-
|
|
173
|
-
Archive one or more selected completed tracks in one approved batch. Require `completed` status and clean centralized state validation; do not recompute the DAG, manual-verification barriers, or review evidence inside archive. Validate the whole selection before mutation, distill the selected learning as one corpus into patterns with source track/task/commit provenance, reconcile it with existing patterns, then propose relevant reseeding for all active tracks. Journal the ordered selection and per-track/artifact progress, move each full track directory to `archive/`, validate once, and commit the batch together. Never discard history or start another archive batch while one is incomplete.
|
|
174
|
-
|
|
175
|
-
## Git safety and commits
|
|
176
|
-
|
|
177
|
-
- Use Conventional Commits for product work.
|
|
178
|
-
- Cadre-only state commits use `cadre(<command>): <description>`.
|
|
179
|
-
- Do not mix unrelated work into a task commit.
|
|
180
|
-
- Prefer additive `git revert` commits. Do not rewrite shared history or use destructive reset/checkout as the default revert mechanism.
|
|
181
|
-
- Do not overwrite dirty user changes. Stop and explain overlap.
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"action": "archive",
|
|
4
|
-
"batchId": "archive-{{ARCHIVE_TS}}",
|
|
5
|
-
"status": "in_progress",
|
|
6
|
-
"checkpoint": "approved",
|
|
7
|
-
"baseCommit": "{{BASE_COMMIT}}",
|
|
8
|
-
"expectedCommit": "{{EXPECTED_COMMIT}}",
|
|
9
|
-
"selectedTracks": ["{{TRACK_ID}}"],
|
|
10
|
-
"completedTracks": [],
|
|
11
|
-
"approvedArtifacts": ["{{APPROVED_ARTIFACT}}"],
|
|
12
|
-
"artifactProgress": [],
|
|
13
|
-
"approvedAt": "{{APPROVED_AT}}",
|
|
14
|
-
"archiveCommit": null
|
|
15
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"action": "refresh",
|
|
4
|
-
"operationId": "refresh-{{REFRESH_TS}}",
|
|
5
|
-
"status": "in_progress",
|
|
6
|
-
"checkpoint": "approved",
|
|
7
|
-
"baseCommit": "{{BASE_COMMIT}}",
|
|
8
|
-
"expectedCommit": "cadre(refresh): update project context",
|
|
9
|
-
"refreshPath": "refreshes/refresh-{{REFRESH_TS}}.md",
|
|
10
|
-
"approvedArtifacts": ["refreshes/refresh-{{REFRESH_TS}}.md"],
|
|
11
|
-
"artifactProgress": [],
|
|
12
|
-
"approvedAt": "{{APPROVED_AT}}",
|
|
13
|
-
"refreshCommit": null
|
|
14
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"executionId": "{{EXECUTION_ID}}",
|
|
4
|
-
"trackId": "{{TRACK_ID}}",
|
|
5
|
-
"status": "in_progress",
|
|
6
|
-
"checkpoint": "approved",
|
|
7
|
-
"requestedMode": "{{parallel|sequential}}",
|
|
8
|
-
"effectiveMode": "{{parallel|sequential}}",
|
|
9
|
-
"approvalMode": "{{governed|phase|autonomous}}",
|
|
10
|
-
"maxWorkers": 3,
|
|
11
|
-
"planRevision": 1,
|
|
12
|
-
"planCommit": "{{PLAN_COMMIT}}",
|
|
13
|
-
"graphDigest": "{{GRAPH_DIGEST}}",
|
|
14
|
-
"baseCommit": "{{BASE_COMMIT}}",
|
|
15
|
-
"startedAt": "{{APPROVED_AT}}",
|
|
16
|
-
"completedAt": null,
|
|
17
|
-
"headCommit": null,
|
|
18
|
-
"nodes": {}
|
|
19
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Incremental Learning: {{TRACK_TITLE}}
|
|
2
|
-
|
|
3
|
-
Never overwrite an earlier phase. Each phase begins by reading the learning of every declared dependency phase. A root phase reads the marked Pattern Seed section below. Parallel sibling phases do not assume or consume each other's learning.
|
|
4
|
-
|
|
5
|
-
<!-- cadre:pattern-seed:start -->
|
|
6
|
-
## Pattern Seed
|
|
7
|
-
|
|
8
|
-
- Spec revision: 1
|
|
9
|
-
- Plan revision: 1
|
|
10
|
-
|
|
11
|
-
| Pattern | Relevance to this track | Constraints to carry forward |
|
|
12
|
-
| --- | --- | --- |
|
|
13
|
-
| `{{PATTERN_PATH}}` | {{RELEVANCE}} | {{CONSTRAINTS}} |
|
|
14
|
-
|
|
15
|
-
If no existing pattern is relevant, state that explicitly rather than inventing guidance.
|
|
16
|
-
<!-- cadre:pattern-seed:end -->
|
|
17
|
-
|
|
18
|
-
## Phase 1: {{PHASE_NAME}}
|
|
19
|
-
|
|
20
|
-
### Inputs read
|
|
21
|
-
|
|
22
|
-
{{FILES_PATTERNS_DEPENDENCY_PHASE_LEARNING}}
|
|
23
|
-
|
|
24
|
-
### Task observations
|
|
25
|
-
|
|
26
|
-
{{OBSERVATIONS_WITH_TASK_AND_COMMIT}}
|
|
27
|
-
|
|
28
|
-
### Decisions and corrections
|
|
29
|
-
|
|
30
|
-
{{DECISIONS_AND_CORRECTIONS}}
|
|
31
|
-
|
|
32
|
-
### Reusable pattern candidates
|
|
33
|
-
|
|
34
|
-
{{CANDIDATES_OR_NONE}}
|
|
35
|
-
|
|
36
|
-
### Phase completion
|
|
37
|
-
|
|
38
|
-
- Commit: {{PHASE_COMPLETION_COMMIT}}
|
|
39
|
-
- Human verification: {{APPROVAL_RECORD}}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
# Plan: {{TRACK_TITLE}}
|
|
2
|
-
|
|
3
|
-
- Track: `{{TRACK_ID}}`
|
|
4
|
-
- Spec revision: 1
|
|
5
|
-
- Plan revision: 1
|
|
6
|
-
- Status: proposed
|
|
7
|
-
|
|
8
|
-
## Phase 1: {{DELIVERY_PHASE_NAME}}
|
|
9
|
-
|
|
10
|
-
- Phase dependencies: none
|
|
11
|
-
|
|
12
|
-
### Outcome
|
|
13
|
-
|
|
14
|
-
{{PHASE_OUTCOME}}
|
|
15
|
-
|
|
16
|
-
- [ ] T1.1 {{IMPLEMENTATION_OR_VERIFICATION_TASK}}
|
|
17
|
-
- Task dependencies: none
|
|
18
|
-
- [ ] T1.2 User Manual Verification
|
|
19
|
-
|
|
20
|
-
- Phase completion commit: pending
|
|
21
|
-
|
|
22
|
-
## Phase 2: Track-level User Manual Verification
|
|
23
|
-
|
|
24
|
-
### Outcome
|
|
25
|
-
|
|
26
|
-
The human verifies the complete track against the approved specification and acceptance criteria.
|
|
27
|
-
|
|
28
|
-
- [ ] T2.1 User Manual Verification
|
|
29
|
-
|
|
30
|
-
- Phase completion commit: pending
|
|
31
|
-
|
|
32
|
-
## Approval
|
|
33
|
-
|
|
34
|
-
{{APPROVAL_RECORD}}
|
|
35
|
-
|
|
36
|
-
<!-- Regular phases declare dependencies explicitly. Regular tasks declare same-phase dependencies explicitly. -->
|
|
37
|
-
<!-- Phase User Manual Verification implicitly depends on every sibling task. -->
|
|
38
|
-
<!-- Track-level User Manual Verification implicitly depends on every preceding phase. -->
|
|
39
|
-
<!-- For a completed task, append a commit marker containing the full hexadecimal SHA. -->
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"action": "revert",
|
|
3
|
-
"checkpoint": "approved",
|
|
4
|
-
"baseCommit": "{{BASE_COMMIT}}",
|
|
5
|
-
"expectedCommit": "cadre(revert): reconcile {{TRACK_ID}}",
|
|
6
|
-
"approvedArtifacts": ["plan.md", "learning.md", "state.json"],
|
|
7
|
-
"artifactProgress": [],
|
|
8
|
-
"approvedAt": "{{APPROVED_AT}}",
|
|
9
|
-
"targetKind": "{{task|phase|track}}",
|
|
10
|
-
"targetId": "{{TARGET_ID}}",
|
|
11
|
-
"commits": ["{{COMMIT_SHA}}"],
|
|
12
|
-
"revertCommits": []
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"action": "revise",
|
|
3
|
-
"checkpoint": "approved",
|
|
4
|
-
"baseCommit": "{{BASE_COMMIT}}",
|
|
5
|
-
"expectedCommit": "cadre(revise): update {{TRACK_ID}}",
|
|
6
|
-
"approvedArtifacts": ["{{REVISION_PATH}}"],
|
|
7
|
-
"artifactProgress": [],
|
|
8
|
-
"approvedAt": "{{APPROVED_AT}}",
|
|
9
|
-
"sourceStatus": "{{SOURCE_STATUS}}",
|
|
10
|
-
"targetStatus": "{{TARGET_STATUS}}",
|
|
11
|
-
"revisionPath": "{{REVISION_PATH}}",
|
|
12
|
-
"previousRevision": 1,
|
|
13
|
-
"newRevision": 2
|
|
14
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"trackId": "{{TRACK_ID}}",
|
|
4
|
-
"title": "{{TRACK_TITLE}}",
|
|
5
|
-
"type": "{{feature|bug}}",
|
|
6
|
-
"status": "drafting-plan",
|
|
7
|
-
"checkpoint": "spec-approved",
|
|
8
|
-
"revision": 1,
|
|
9
|
-
"dependencies": [],
|
|
10
|
-
"commits": {
|
|
11
|
-
"spec": null,
|
|
12
|
-
"plan": null
|
|
13
|
-
},
|
|
14
|
-
"artifactProgress": [],
|
|
15
|
-
"operation": {
|
|
16
|
-
"action": "specify",
|
|
17
|
-
"baseCommit": "{{BASE_COMMIT_OR_NULL}}",
|
|
18
|
-
"expectedCommit": "cadre(track): specify {{TRACK_ID}}",
|
|
19
|
-
"approvedArtifacts": ["spec.md", "plan.md", "learning.md"],
|
|
20
|
-
"approvedAt": "{{APPROVED_AT}}"
|
|
21
|
-
},
|
|
22
|
-
"lastExecution": null,
|
|
23
|
-
"reviewCycles": [],
|
|
24
|
-
"history": []
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# Engineering Guidelines
|
|
2
|
-
|
|
3
|
-
## Architecture
|
|
4
|
-
|
|
5
|
-
{{ARCHITECTURE_GUIDANCE}}
|
|
6
|
-
|
|
7
|
-
## Testing strategy
|
|
8
|
-
|
|
9
|
-
{{TEST_STRATEGY}}
|
|
10
|
-
|
|
11
|
-
## Security and privacy
|
|
12
|
-
|
|
13
|
-
{{SECURITY_PRIVACY}}
|
|
14
|
-
|
|
15
|
-
## Reliability and observability
|
|
16
|
-
|
|
17
|
-
{{RELIABILITY_OBSERVABILITY}}
|
|
18
|
-
|
|
19
|
-
## Documentation and compatibility
|
|
20
|
-
|
|
21
|
-
{{DOCUMENTATION_COMPATIBILITY}}
|
|
22
|
-
|
|
23
|
-
## Repository-specific commands
|
|
24
|
-
|
|
25
|
-
{{REPOSITORY_COMMANDS}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# Product
|
|
2
|
-
|
|
3
|
-
## Project context
|
|
4
|
-
|
|
5
|
-
- Classification: `{{greenfield|brownfield}}`
|
|
6
|
-
- Evidence: {{CLASSIFICATION_EVIDENCE}}
|
|
7
|
-
|
|
8
|
-
## Name and summary
|
|
9
|
-
|
|
10
|
-
{{PROJECT_NAME_AND_SUMMARY}}
|
|
11
|
-
|
|
12
|
-
## Users and problems
|
|
13
|
-
|
|
14
|
-
{{USERS_AND_PROBLEMS}}
|
|
15
|
-
|
|
16
|
-
## Outcomes and success measures
|
|
17
|
-
|
|
18
|
-
{{OUTCOMES_AND_MEASURES}}
|
|
19
|
-
|
|
20
|
-
## Scope boundaries
|
|
21
|
-
|
|
22
|
-
{{SCOPE_BOUNDARIES}}
|
|
23
|
-
|
|
24
|
-
## Domain language
|
|
25
|
-
|
|
26
|
-
{{DOMAIN_LANGUAGE}}
|
|
27
|
-
|
|
28
|
-
## Open questions
|
|
29
|
-
|
|
30
|
-
{{OPEN_QUESTIONS}}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": 1,
|
|
3
|
-
"runtimeVersion": "{{RUNTIME_VERSION}}",
|
|
4
|
-
"templateSetVersion": "{{TEMPLATE_SET_VERSION}}",
|
|
5
|
-
"project": {
|
|
6
|
-
"name": "{{PROJECT_NAME}}",
|
|
7
|
-
"context": "{{greenfield|brownfield}}"
|
|
8
|
-
},
|
|
9
|
-
"setup": {
|
|
10
|
-
"status": "in_progress",
|
|
11
|
-
"checkpoint": "approved",
|
|
12
|
-
"commit": null,
|
|
13
|
-
"artifactProgress": [],
|
|
14
|
-
"operation": {
|
|
15
|
-
"action": "create",
|
|
16
|
-
"baseCommit": "{{BASE_COMMIT_OR_NULL}}",
|
|
17
|
-
"expectedCommit": "cadre(create): initialize project harness",
|
|
18
|
-
"repositoryRoot": "{{PROJECT_ROOT}}",
|
|
19
|
-
"gitDisposition": "{{existing|initialize}}",
|
|
20
|
-
"approvedArtifacts": [],
|
|
21
|
-
"approvedArtifactHashes": [],
|
|
22
|
-
"approvedAt": "{{APPROVED_AT}}"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"lastRefresh": null,
|
|
26
|
-
"history": []
|
|
27
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# General Coding Styleguide
|
|
2
|
-
|
|
3
|
-
- Read every existing file and directly relevant context before editing it.
|
|
4
|
-
- Prefer the smallest cohesive change that satisfies the approved plan task.
|
|
5
|
-
- Preserve established repository conventions unless an approved revision changes them.
|
|
6
|
-
- Make invalid states difficult to represent; validate at boundaries.
|
|
7
|
-
- Handle errors deliberately and keep failure messages actionable.
|
|
8
|
-
- Test externally visible behavior, failure paths, and meaningful edge cases.
|
|
9
|
-
- Keep comments focused on intent and tradeoffs rather than restating code.
|
|
10
|
-
- Avoid unrelated cleanup in delivery commits.
|
|
11
|
-
|
|
12
|
-
## Project-specific additions
|
|
13
|
-
|
|
14
|
-
{{GENERAL_STYLE_ADDITIONS}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# {{LANGUAGE_OR_FRAMEWORK}} Styleguide
|
|
2
|
-
|
|
3
|
-
## Versions and conventions
|
|
4
|
-
|
|
5
|
-
{{VERSIONS_AND_CONVENTIONS}}
|
|
6
|
-
|
|
7
|
-
## Structure and naming
|
|
8
|
-
|
|
9
|
-
{{STRUCTURE_AND_NAMING}}
|
|
10
|
-
|
|
11
|
-
## Error handling and safety
|
|
12
|
-
|
|
13
|
-
{{ERROR_HANDLING_AND_SAFETY}}
|
|
14
|
-
|
|
15
|
-
## Testing and tooling
|
|
16
|
-
|
|
17
|
-
{{TESTING_AND_TOOLING}}
|
|
18
|
-
|
|
19
|
-
## Avoid
|
|
20
|
-
|
|
21
|
-
{{PROJECT_SPECIFIC_ANTI_PATTERNS}}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# Technology Stack
|
|
2
|
-
|
|
3
|
-
## Runtime and languages
|
|
4
|
-
|
|
5
|
-
{{RUNTIMES_AND_LANGUAGES}}
|
|
6
|
-
|
|
7
|
-
## Frameworks and libraries
|
|
8
|
-
|
|
9
|
-
{{FRAMEWORKS_AND_LIBRARIES}}
|
|
10
|
-
|
|
11
|
-
## Data and infrastructure
|
|
12
|
-
|
|
13
|
-
{{DATA_AND_INFRASTRUCTURE}}
|
|
14
|
-
|
|
15
|
-
## Tooling
|
|
16
|
-
|
|
17
|
-
{{BUILD_TEST_FORMAT_TOOLS}}
|
|
18
|
-
|
|
19
|
-
## Version constraints
|
|
20
|
-
|
|
21
|
-
{{VERSION_CONSTRAINTS}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|