cadre-ai 2.2.0 → 3.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 +10 -0
- package/.codex-plugin/plugin.json +19 -0
- package/.mcp.codex.json +9 -0
- package/.mcp.json +8 -0
- package/LICENSE +21 -202
- package/README.md +353 -134
- package/agents/cadre-phase-worker.md +17 -0
- package/agents/cadre-task-worker.md +16 -0
- package/dist/cadre-cli.mjs +2756 -0
- package/dist/cadre-mcp.mjs +33680 -0
- package/marketplace/claude.json +16 -0
- package/marketplace/codex.json +20 -0
- package/package.json +36 -32
- package/skills/archive/SKILL.md +28 -0
- package/skills/archive/agents/openai.yaml +4 -0
- package/skills/create/SKILL.md +33 -0
- package/skills/create/agents/openai.yaml +4 -0
- package/skills/implement/SKILL.md +91 -0
- package/skills/implement/agents/openai.yaml +4 -0
- package/skills/refresh/SKILL.md +18 -0
- package/skills/refresh/agents/openai.yaml +4 -0
- package/skills/revert/SKILL.md +20 -0
- package/skills/revert/agents/openai.yaml +4 -0
- package/skills/review/SKILL.md +32 -0
- package/skills/review/agents/openai.yaml +4 -0
- package/skills/revise/SKILL.md +32 -0
- package/skills/revise/agents/openai.yaml +4 -0
- package/skills/status/SKILL.md +21 -0
- package/skills/status/agents/openai.yaml +4 -0
- package/skills/track/SKILL.md +33 -0
- package/skills/track/agents/openai.yaml +4 -0
- package/skills/wisp/SKILL.md +16 -0
- package/skills/wisp/agents/openai.yaml +4 -0
- package/templates/v1/init/archive/.gitkeep +1 -0
- package/templates/v1/init/guidelines.md +25 -0
- package/templates/v1/init/operations/.gitkeep +1 -0
- package/templates/v1/init/patterns/index.md +6 -0
- package/templates/v1/init/product.md +30 -0
- package/templates/v1/init/project.json +26 -0
- package/templates/v1/init/refreshes/.gitkeep +1 -0
- package/templates/v1/init/styleguides/general.md +14 -0
- package/templates/v1/init/styleguides/language.md +21 -0
- package/templates/v1/init/tech-stack.md +21 -0
- package/templates/v1/init/tracks/.gitkeep +1 -0
- package/templates/v1/init/tracks.md +6 -0
- package/templates/v1/init/workflow.md +163 -0
- package/templates/v1/project/archive-operation.json +15 -0
- package/templates/v1/project/pattern.md +20 -0
- package/templates/v1/project/refresh-operation.json +14 -0
- package/templates/v1/project/refresh.md +21 -0
- package/templates/v1/styleguides/dart.md +27 -0
- package/templates/v1/styleguides/flutter.md +27 -0
- package/templates/v1/styleguides/go.md +29 -0
- package/templates/v1/styleguides/gradle.md +28 -0
- package/templates/v1/styleguides/html-css.md +39 -0
- package/templates/v1/styleguides/index.md +27 -0
- package/templates/v1/styleguides/java.md +27 -0
- package/templates/v1/styleguides/javascript.md +27 -0
- package/templates/v1/styleguides/kotlin.md +26 -0
- package/templates/v1/styleguides/maven.md +28 -0
- package/templates/v1/styleguides/python.md +27 -0
- package/templates/v1/styleguides/react.md +28 -0
- package/templates/v1/styleguides/swift.md +27 -0
- package/templates/v1/styleguides/swiftui.md +27 -0
- package/templates/v1/styleguides/typescript.md +26 -0
- package/templates/v1/track/bug.md +14 -0
- package/templates/v1/track/execution.json +18 -0
- package/templates/v1/track/learning.md +39 -0
- package/templates/v1/track/plan.md +39 -0
- package/templates/v1/track/revert-operation.json +13 -0
- package/templates/v1/track/revise-operation.json +14 -0
- package/templates/v1/track/revision.md +36 -0
- package/templates/v1/track/spec.md +38 -0
- package/templates/v1/track/state.json +25 -0
- package/scripts/cadre-cli.js +0 -1076
- package/scripts/cadre-core.js +0 -15240
- package/scripts/cadre-lsp-review.js +0 -1194
- package/scripts/cadre-lsp-setup.js +0 -599
- package/scripts/mcp/cadre-server.js +0 -19013
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# JavaScript Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` first. Preserve the repository's approved formatter, semicolon, quote, and module settings.
|
|
4
|
+
|
|
5
|
+
## Idiomatic defaults
|
|
6
|
+
|
|
7
|
+
- Use ECMAScript modules for new code when the runtime/toolchain supports them; keep imports at the top and dependencies explicit.
|
|
8
|
+
- Declare with `const` by default and `let` only when reassignment is required. Do not use `var` in modern targets.
|
|
9
|
+
- Use strict equality (`===`/`!==`) except for an intentional, documented nullish check.
|
|
10
|
+
- Keep functions focused, minimize shared mutable state, and prefer data transformations with clear ownership.
|
|
11
|
+
- Use `async`/`await` or deliberate Promise composition; always handle rejection and preserve useful error context.
|
|
12
|
+
- Use braces for control flow and avoid implicit behavior that reduces readability.
|
|
13
|
+
- Validate untrusted values at external boundaries before use.
|
|
14
|
+
- Do not use `eval`, dynamic `Function`, or unsafe DOM injection.
|
|
15
|
+
- Prefer standard platform APIs and explicit feature/runtime compatibility over non-standard behavior.
|
|
16
|
+
- Write comments/JSDoc for contracts and intent, not restatements of syntax.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run the repository formatter, ESLint (or approved linter), tests, and target-specific build/type checks.
|
|
21
|
+
- Test asynchronous failure paths, cleanup/cancellation behavior, serialization boundaries, and supported runtimes.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [MDN JavaScript Guide](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide)
|
|
26
|
+
- [MDN JavaScript modules](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)
|
|
27
|
+
- [Google JavaScript Style Guide](https://google.github.io/styleguide/jsguide.html)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# Kotlin Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` first. Use the official Kotlin coding conventions and the repository's configured formatter/linter.
|
|
4
|
+
|
|
5
|
+
## Idiomatic defaults
|
|
6
|
+
|
|
7
|
+
- Use four spaces, no tabs, Kotlin brace style, and omit semicolons.
|
|
8
|
+
- Use lowercase package names, `UpperCamelCase` for classes/objects, and `lowerCamelCase` for functions/properties/locals.
|
|
9
|
+
- Name files for their primary declaration or cohesive purpose; avoid catch-all `Util` files.
|
|
10
|
+
- Prefer `val` and immutable collection interfaces. Use mutation only when it makes ownership and behavior clearer.
|
|
11
|
+
- Use nullable types deliberately, safe calls, Elvis operators, and early validation; avoid `!!` except for proven invariants with explanation.
|
|
12
|
+
- Prefer expression-oriented constructs and exhaustive `when` expressions when they improve clarity.
|
|
13
|
+
- Use data classes for data semantics, sealed hierarchies for closed variants, and extension functions near their domain/consumer.
|
|
14
|
+
- Keep visibility as narrow as practical. Specify public API return/property types and document public library APIs with KDoc.
|
|
15
|
+
- Use structured concurrency; make coroutine scope, dispatcher choice, cancellation, and exception ownership explicit.
|
|
16
|
+
- Avoid translating Java patterns mechanically when Kotlin provides a clearer language construct.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run the approved formatter/linter, compiler with project warnings policy, and all relevant tests.
|
|
21
|
+
- Test coroutine cancellation/error paths and Java interoperability boundaries when applicable.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [Kotlin coding conventions](https://kotlinlang.org/docs/coding-conventions.html)
|
|
26
|
+
- [Kotlin code-quality tools](https://kotlinlang.org/docs/jvm-code-analysis.html)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# Maven Build Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` and the applicable JVM language guide first.
|
|
4
|
+
|
|
5
|
+
## Build defaults
|
|
6
|
+
|
|
7
|
+
- Follow Maven's standard directory layout; override it only for an evidenced project constraint.
|
|
8
|
+
- Use the Maven Wrapper when the project adopts it and run builds through `./mvnw`.
|
|
9
|
+
- Keep `pom.xml` declarative and readable. Prefer lifecycle/plugin configuration over shell-driven build steps.
|
|
10
|
+
- Pin plugin versions and define shared versions once in properties, `dependencyManagement`, or an imported BOM.
|
|
11
|
+
- Declare direct dependencies explicitly with the narrowest correct scope. Do not rely accidentally on transitive dependencies.
|
|
12
|
+
- Keep parent POM and multi-module relationships shallow and purposeful; modules follow the same standard layout.
|
|
13
|
+
- Put reusable build policy in parent/plugin management rather than duplicating it across modules.
|
|
14
|
+
- Avoid system-scoped dependencies, version ranges, hidden local-repository assumptions, and secrets in POMs/settings committed to Git.
|
|
15
|
+
- Configure reproducible outputs when publishing artifacts, including `project.build.outputTimestamp` and compatible plugin versions.
|
|
16
|
+
- Use profiles only for real environment/build variants; keep the default build deterministic.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run `./mvnw verify` (or the approved Maven command) from a clean checkout.
|
|
21
|
+
- Inspect dependency convergence/tree and plugin validation for dependency/build changes.
|
|
22
|
+
- Ensure generated output stays under `target/` and is not committed unless explicitly required.
|
|
23
|
+
|
|
24
|
+
## Sources
|
|
25
|
+
|
|
26
|
+
- [Maven standard directory layout](https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html)
|
|
27
|
+
- [Maven dependency mechanism](https://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html)
|
|
28
|
+
- [Maven reproducible builds](https://maven.apache.org/guides/mini/guide-reproducible-builds.html)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Python Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` first. Follow repository formatter/linter/type-checker configuration; otherwise use PEP 8 as the baseline.
|
|
4
|
+
|
|
5
|
+
## Pythonic defaults
|
|
6
|
+
|
|
7
|
+
- Use four spaces, UTF-8, and automatic formatting. Keep imports at the top in standard-library, third-party, and local groups.
|
|
8
|
+
- Use `snake_case` for functions/variables/modules, `CapWords` for classes, and `UPPER_SNAKE_CASE` for constants.
|
|
9
|
+
- Prefer clear, direct Python constructs: comprehensions only when readable, context managers for resources, and iteration over manual indexing.
|
|
10
|
+
- Compare singleton sentinels such as `None` with `is`/`is not`.
|
|
11
|
+
- Use type annotations on public boundaries and non-obvious values; keep runtime validation at untrusted boundaries.
|
|
12
|
+
- Raise specific exceptions, preserve causes with `raise ... from ...`, and never use bare `except` for routine handling.
|
|
13
|
+
- Use immutable values/defaults where practical; never use a mutable object as a function default.
|
|
14
|
+
- Keep modules cohesive and public interfaces explicit. Use dataclasses/value objects where they clarify data semantics.
|
|
15
|
+
- Write docstrings for public modules, classes, functions, and methods; keep comments synchronized with behavior.
|
|
16
|
+
- Avoid hidden import-time side effects and global mutable state.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run the approved formatter, linter, type checker, and test suite.
|
|
21
|
+
- Test exceptions, boundary values, resource cleanup, async cancellation, and supported Python versions as applicable.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [PEP 8 – Style Guide for Python Code](https://peps.python.org/pep-0008/)
|
|
26
|
+
- [PEP 257 – Docstring Conventions](https://peps.python.org/pep-0257/)
|
|
27
|
+
- [Python documentation](https://docs.python.org/3/)
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# React Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` plus `javascript.md` or `typescript.md` first.
|
|
4
|
+
|
|
5
|
+
## React defaults
|
|
6
|
+
|
|
7
|
+
- Write components and Hooks as pure functions: the same inputs produce the same render output.
|
|
8
|
+
- Treat props, state, context, and Hook arguments/return values as immutable snapshots.
|
|
9
|
+
- Call Hooks only at the top level of React components or custom Hooks; never conditionally or in ordinary functions.
|
|
10
|
+
- Use Effects only to synchronize with external systems. Derive render data during render instead of mirroring it into state.
|
|
11
|
+
- Keep state as local as practical and maintain one source of truth; lift it only to the closest common owner.
|
|
12
|
+
- Prefer composition and focused components over inheritance or large configurable components.
|
|
13
|
+
- Give list items stable domain keys, not array indexes when order/identity can change.
|
|
14
|
+
- Keep event-driven work in event handlers and render-driven synchronization in Effects; include complete dependencies.
|
|
15
|
+
- Make loading, empty, error, and success states explicit.
|
|
16
|
+
- Use semantic HTML, accessible names, keyboard behavior, and focus management.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Enable the official React Hooks lint rules and the repository's formatter/linter.
|
|
21
|
+
- Test behavior through user-visible interactions; cover state transitions, errors, accessibility, and cleanup.
|
|
22
|
+
- Profile before adding memoization; treat `useMemo`/`useCallback` as optimizations, not correctness tools.
|
|
23
|
+
|
|
24
|
+
## Sources
|
|
25
|
+
|
|
26
|
+
- [Rules of React](https://react.dev/reference/rules)
|
|
27
|
+
- [Keeping Components Pure](https://react.dev/learn/keeping-components-pure)
|
|
28
|
+
- [React documentation](https://react.dev/learn)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Swift Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` first. Preserve the repository's approved formatter and compiler-warning policy.
|
|
4
|
+
|
|
5
|
+
## Idiomatic defaults
|
|
6
|
+
|
|
7
|
+
- Optimize names and APIs for clarity at the call site; clarity is more important than brevity.
|
|
8
|
+
- Use `UpperCamelCase` for types/protocols and `lowerCamelCase` for other declarations.
|
|
9
|
+
- Prefer `let` and value types for data with value semantics; use reference types when identity/lifecycle is intentional.
|
|
10
|
+
- Model domain states with enums and associated values; make switches exhaustive.
|
|
11
|
+
- Use optionals to represent absence, unwrap with `if let`/`guard let`, and avoid force unwraps except proven invariants.
|
|
12
|
+
- Prefer typed throws/results and actionable error context; do not discard errors with `try?` unless absence is the intended contract.
|
|
13
|
+
- Keep access control as narrow as possible and document public APIs with Swift Markdown/DocC comments.
|
|
14
|
+
- Use protocol abstractions for real substitutability/test seams, not automatically for every concrete type.
|
|
15
|
+
- Use structured concurrency (`async`/`await`, task groups, actors) and make actor isolation, cancellation, and `Sendable` boundaries explicit.
|
|
16
|
+
- Avoid shared mutable global state and detached tasks without clear ownership.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run the approved formatter/linter, build with warnings policy, and Swift Testing/XCTest suites.
|
|
21
|
+
- Test error paths, optionals, concurrency cancellation/isolation, public APIs, and supported Apple/Linux targets as applicable.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [Swift API Design Guidelines](https://www.swift.org/documentation/api-design-guidelines/)
|
|
26
|
+
- [The Swift Programming Language](https://docs.swift.org/swift-book/documentation/the-swift-programming-language/)
|
|
27
|
+
- [Swift documentation](https://www.swift.org/documentation/)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# SwiftUI Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` and `swift.md` first.
|
|
4
|
+
|
|
5
|
+
## SwiftUI defaults
|
|
6
|
+
|
|
7
|
+
- Keep `body` declarative, deterministic, and free of side effects.
|
|
8
|
+
- Compose small views around cohesive UI responsibilities; extract subviews when it clarifies data flow or identity.
|
|
9
|
+
- Maintain one source of truth for each value. Use local `@State` for view-owned transient state and `@Binding` for borrowed mutable state.
|
|
10
|
+
- Use Observation/observable models for reference model state and inject shared dependencies through explicit initializers or the environment as approved.
|
|
11
|
+
- Do not copy derived/model data into local state. Derive presentation values from source state.
|
|
12
|
+
- Trigger asynchronous lifecycle work with `.task` and respect cancellation; trigger user work from actions.
|
|
13
|
+
- Keep domain/business logic outside views and model transitions explicitly.
|
|
14
|
+
- Use stable identity in `ForEach` and navigation; do not use indexes when domain identity can change.
|
|
15
|
+
- Prefer semantic controls and modifiers over gesture-only replicas; support accessibility labels, Dynamic Type, focus, and platform conventions.
|
|
16
|
+
- Keep previews/examples deterministic and provide representative states when the project uses previews.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Test model/view-model behavior independently and cover critical UI flows with the approved UI-testing strategy.
|
|
21
|
+
- Verify state restoration, navigation, task cancellation, accessibility, localization, Dynamic Type, and relevant device/platform layouts.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [SwiftUI documentation](https://developer.apple.com/documentation/swiftui)
|
|
26
|
+
- [SwiftUI model data](https://developer.apple.com/documentation/swiftui/model-data)
|
|
27
|
+
- [SwiftUI apps overview](https://developer.apple.com/documentation/technologyoverviews/swiftui)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# TypeScript Styleguide
|
|
2
|
+
|
|
3
|
+
Apply `general.md` and `javascript.md` first. Preserve approved compiler/linter settings; enable strictness for greenfield code.
|
|
4
|
+
|
|
5
|
+
## Idiomatic defaults
|
|
6
|
+
|
|
7
|
+
- Enable `strict` and the strongest practical project checks; do not weaken global settings to bypass a local issue.
|
|
8
|
+
- Use primitive types (`string`, `number`, `boolean`) rather than boxed types.
|
|
9
|
+
- Prefer `unknown` over `any`; narrow values through validation, type guards, or schema parsing.
|
|
10
|
+
- Model alternatives with discriminated unions and make switches exhaustive with `never` checks where useful.
|
|
11
|
+
- Prefer inference for obvious local values and explicit types for public boundaries, serialized data, and complex returns.
|
|
12
|
+
- Keep type assertions rare and local; never use assertion chains to silence an unresolved mismatch.
|
|
13
|
+
- Avoid non-null assertions unless an invariant is proven and documented.
|
|
14
|
+
- Use generics only when the type parameter expresses a real relationship.
|
|
15
|
+
- Keep runtime validation distinct from compile-time typing at network, storage, environment, and user-input boundaries.
|
|
16
|
+
- Use `satisfies` when validating a value's shape while retaining useful inference.
|
|
17
|
+
|
|
18
|
+
## Verification
|
|
19
|
+
|
|
20
|
+
- Run the formatter, ESLint/type-aware lint rules, `tsc --noEmit`, tests, and the production build.
|
|
21
|
+
- Add compile-time tests for public generic/type utilities when their behavior is non-trivial.
|
|
22
|
+
|
|
23
|
+
## Sources
|
|
24
|
+
|
|
25
|
+
- [TypeScript Handbook](https://www.typescriptlang.org/docs/handbook/intro.html)
|
|
26
|
+
- [TypeScript Do's and Don'ts](https://www.typescriptlang.org/docs/handbook/declaration-files/do-s-and-don-ts.html)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# Review Bugs: {{TRACK_ID}} @ {{REVIEW_TS}}
|
|
2
|
+
|
|
3
|
+
- Review cycle: {{CYCLE}}
|
|
4
|
+
- Status: approved
|
|
5
|
+
- Reviewed commit range: `{{COMMIT_RANGE}}`
|
|
6
|
+
|
|
7
|
+
## BUG-001: {{TITLE}}
|
|
8
|
+
|
|
9
|
+
- Severity: {{SEVERITY}}
|
|
10
|
+
- Evidence: {{FILE_LINE_OR_TEST}}
|
|
11
|
+
- Impact: {{IMPACT}}
|
|
12
|
+
- Reproduction: {{REPRODUCTION}}
|
|
13
|
+
- Approved remediation acceptance criteria: {{CRITERIA}}
|
|
14
|
+
- Human approval: {{APPROVAL_RECORD}}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
"maxWorkers": 3,
|
|
10
|
+
"planRevision": 1,
|
|
11
|
+
"planCommit": "{{PLAN_COMMIT}}",
|
|
12
|
+
"graphDigest": "{{GRAPH_DIGEST}}",
|
|
13
|
+
"baseCommit": "{{BASE_COMMIT}}",
|
|
14
|
+
"startedAt": "{{APPROVED_AT}}",
|
|
15
|
+
"completedAt": null,
|
|
16
|
+
"headCommit": null,
|
|
17
|
+
"nodes": {}
|
|
18
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
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}}
|
|
@@ -0,0 +1,39 @@
|
|
|
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. -->
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Revision {{REVISION_TS}}: {{TRACK_ID}}
|
|
2
|
+
|
|
3
|
+
- Source status: {{SOURCE_STATUS}}
|
|
4
|
+
- Target status: {{TARGET_STATUS}}
|
|
5
|
+
- Base commit: {{BASE_COMMIT}}
|
|
6
|
+
- Previous track revision: {{OLD_TRACK_REVISION}}
|
|
7
|
+
- New track revision: {{NEW_TRACK_REVISION}}
|
|
8
|
+
- Previous spec revision: {{OLD_SPEC_REVISION}}
|
|
9
|
+
- New spec revision: {{NEW_SPEC_REVISION}}
|
|
10
|
+
- Previous plan revision: {{OLD_PLAN_REVISION}}
|
|
11
|
+
- New plan revision: {{NEW_PLAN_REVISION}}
|
|
12
|
+
- Revision commit: pending
|
|
13
|
+
|
|
14
|
+
## Requested change
|
|
15
|
+
|
|
16
|
+
{{REQUEST}}
|
|
17
|
+
|
|
18
|
+
## Proposed artifact changes
|
|
19
|
+
|
|
20
|
+
{{DIFF_SUMMARY}}
|
|
21
|
+
|
|
22
|
+
## Affected work and provenance
|
|
23
|
+
|
|
24
|
+
{{AFFECTED_PHASES_TASKS_AND_COMMIT_DISPOSITION}}
|
|
25
|
+
|
|
26
|
+
## Review and verification impact
|
|
27
|
+
|
|
28
|
+
{{REVIEW_READINESS_AND_MANUAL_VERIFICATION_IMPACT}}
|
|
29
|
+
|
|
30
|
+
## Cascading dependency impact
|
|
31
|
+
|
|
32
|
+
{{TRANSITIVE_IMPACT}}
|
|
33
|
+
|
|
34
|
+
## Approval
|
|
35
|
+
|
|
36
|
+
{{APPROVAL_RECORD}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Specification: {{TRACK_TITLE}}
|
|
2
|
+
|
|
3
|
+
- Track: `{{TRACK_ID}}`
|
|
4
|
+
- Type: `{{feature|bug}}`
|
|
5
|
+
- Revision: 1
|
|
6
|
+
- Status: proposed
|
|
7
|
+
|
|
8
|
+
## Goal and scope
|
|
9
|
+
|
|
10
|
+
{{GOAL_SCOPE}}
|
|
11
|
+
|
|
12
|
+
## Functional Requirements
|
|
13
|
+
|
|
14
|
+
- FR-001: {{REQUIREMENT}}
|
|
15
|
+
|
|
16
|
+
## Non-Functional Requirements
|
|
17
|
+
|
|
18
|
+
- NFR-001: {{REQUIREMENT_AND_MEASURE}}
|
|
19
|
+
|
|
20
|
+
## Acceptance Criteria
|
|
21
|
+
|
|
22
|
+
- AC-001: {{OBSERVABLE_ACCEPTANCE_CRITERION}}
|
|
23
|
+
|
|
24
|
+
## Dependencies
|
|
25
|
+
|
|
26
|
+
{{TRACK_DEPENDENCIES_OR_NONE}}
|
|
27
|
+
|
|
28
|
+
## Additional Information
|
|
29
|
+
|
|
30
|
+
{{CONSTRAINTS_RISKS_ASSUMPTIONS_REFERENCES}}
|
|
31
|
+
|
|
32
|
+
## Dependent-track impact
|
|
33
|
+
|
|
34
|
+
{{KNOWN_OR_POTENTIAL_IMPACT}}
|
|
35
|
+
|
|
36
|
+
## Approval
|
|
37
|
+
|
|
38
|
+
{{APPROVAL_RECORD}}
|
|
@@ -0,0 +1,25 @@
|
|
|
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"],
|
|
20
|
+
"approvedAt": "{{APPROVED_AT}}"
|
|
21
|
+
},
|
|
22
|
+
"lastExecution": null,
|
|
23
|
+
"reviewCycles": [],
|
|
24
|
+
"history": []
|
|
25
|
+
}
|