cadre-ai 3.7.1 → 3.8.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 +13 -1
- package/README.md +41 -6
- package/agents/cadre-phase-worker.md +1 -1
- package/agents/cadre-task-worker.md +1 -1
- package/dist/cadre-cli.mjs +3 -3
- package/dist/cadre-mcp.mjs +1182 -875
- package/package.json +1 -1
- package/skills/archive/SKILL.md +1 -1
- package/skills/implement/SKILL.md +22 -10
- package/skills/implement/agents/openai.yaml +1 -1
- package/skills/implement/references/conflict-handling.md +1 -1
- package/skills/implement/references/resume-recovery.md +2 -0
- package/skills/refresh/SKILL.md +12 -1
- package/skills/revert/SKILL.md +1 -1
- package/skills/review/SKILL.md +74 -10
- package/skills/revise/SKILL.md +1 -1
- package/skills/track/SKILL.md +1 -1
- package/templates/v4/init/archive/.gitkeep +1 -0
- package/templates/v4/init/gitignore.template +8 -0
- package/templates/v4/init/guidelines.md +25 -0
- package/templates/v4/init/operations/.gitkeep +1 -0
- package/templates/v4/init/patterns/index.md +8 -0
- package/templates/v4/init/product.md +30 -0
- package/templates/v4/init/project.json +27 -0
- package/templates/v4/init/refreshes/.gitkeep +1 -0
- package/templates/v4/init/styleguides/general.md +14 -0
- package/templates/v4/init/styleguides/language.md +21 -0
- package/templates/v4/init/tech-stack.md +21 -0
- package/templates/v4/init/tracks/.gitkeep +1 -0
- package/templates/v4/init/tracks.md +6 -0
- package/templates/v4/init/wisps/.gitkeep +1 -0
- package/templates/v4/init/workflow.md +91 -0
- package/templates/v4/project/archive-operation.json +19 -0
- package/templates/v4/project/pattern.md +20 -0
- package/templates/v4/project/refresh-operation.json +18 -0
- package/templates/v4/project/refresh.md +21 -0
- package/templates/v4/styleguides/dart.md +27 -0
- package/templates/v4/styleguides/flutter.md +27 -0
- package/templates/v4/styleguides/go.md +29 -0
- package/templates/v4/styleguides/gradle.md +28 -0
- package/templates/v4/styleguides/html-css.md +39 -0
- package/templates/v4/styleguides/index.md +27 -0
- package/templates/v4/styleguides/java.md +27 -0
- package/templates/v4/styleguides/javascript.md +27 -0
- package/templates/v4/styleguides/kotlin.md +26 -0
- package/templates/v4/styleguides/maven.md +28 -0
- package/templates/v4/styleguides/python.md +27 -0
- package/templates/v4/styleguides/react.md +28 -0
- package/templates/v4/styleguides/swift.md +27 -0
- package/templates/v4/styleguides/swiftui.md +27 -0
- package/templates/v4/styleguides/typescript.md +26 -0
- package/templates/v4/track/bug.md +14 -0
- package/templates/v4/track/execution.json +20 -0
- package/templates/v4/track/learning.md +45 -0
- package/templates/v4/track/plan.md +39 -0
- package/templates/v4/track/revert-operation.json +17 -0
- package/templates/v4/track/revise-operation.json +18 -0
- package/templates/v4/track/revision.md +36 -0
- package/templates/v4/track/spec.md +38 -0
- package/templates/v4/track/state.json +31 -0
|
@@ -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,20 @@
|
|
|
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
|
+
"approvalPolicyVersion": 2,
|
|
10
|
+
"approvalMode": "{{governed|phase|track|autonomous}}",
|
|
11
|
+
"maxWorkers": 3,
|
|
12
|
+
"planRevision": 1,
|
|
13
|
+
"planCommit": "{{PLAN_COMMIT}}",
|
|
14
|
+
"graphDigest": "{{GRAPH_DIGEST}}",
|
|
15
|
+
"baseCommit": "{{BASE_COMMIT}}",
|
|
16
|
+
"startedAt": "{{APPROVED_AT}}",
|
|
17
|
+
"completedAt": null,
|
|
18
|
+
"headCommit": null,
|
|
19
|
+
"nodes": {}
|
|
20
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
<!-- cadre:memory:start -->
|
|
9
|
+
{"schemaVersion":1,"specRevision":1,"planRevision":1,"patterns":[]}
|
|
10
|
+
<!-- cadre:memory:end -->
|
|
11
|
+
|
|
12
|
+
Record every applicable pattern as {"path":"patterns/<slug>.md","sha256":"<SHA-256 of exact approved bytes>"} in the patterns array. Keep the human-readable relevance and constraints below synchronized. An empty array means no existing pattern applies, never missing research.
|
|
13
|
+
|
|
14
|
+
- Spec revision: 1
|
|
15
|
+
- Plan revision: 1
|
|
16
|
+
|
|
17
|
+
| Pattern | Relevance to this track | Constraints to carry forward |
|
|
18
|
+
| --- | --- | --- |
|
|
19
|
+
| `{{PATTERN_PATH}}` | {{RELEVANCE}} | {{CONSTRAINTS}} |
|
|
20
|
+
|
|
21
|
+
If no existing pattern is relevant, state that explicitly rather than inventing guidance.
|
|
22
|
+
<!-- cadre:pattern-seed:end -->
|
|
23
|
+
|
|
24
|
+
## Phase 1: {{PHASE_NAME}}
|
|
25
|
+
|
|
26
|
+
### Inputs read
|
|
27
|
+
|
|
28
|
+
{{FILES_PATTERNS_DEPENDENCY_PHASE_LEARNING}}
|
|
29
|
+
|
|
30
|
+
### Task observations
|
|
31
|
+
|
|
32
|
+
{{OBSERVATIONS_WITH_TASK_AND_COMMIT}}
|
|
33
|
+
|
|
34
|
+
### Decisions and corrections
|
|
35
|
+
|
|
36
|
+
{{DECISIONS_AND_CORRECTIONS}}
|
|
37
|
+
|
|
38
|
+
### Reusable pattern candidates
|
|
39
|
+
|
|
40
|
+
{{CANDIDATES_OR_NONE}}
|
|
41
|
+
|
|
42
|
+
### Phase completion
|
|
43
|
+
|
|
44
|
+
- Commit: {{PHASE_COMPLETION_COMMIT}}
|
|
45
|
+
- 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,17 @@
|
|
|
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
|
+
"approvalDigest": "{{APPROVAL_DIGEST}}",
|
|
8
|
+
"approvedArtifactHashes": [
|
|
9
|
+
{ "path": "{{APPROVED_ARTIFACT}}", "sha256": "{{ARTIFACT_SHA256}}" }
|
|
10
|
+
],
|
|
11
|
+
"artifactProgress": [],
|
|
12
|
+
"approvedAt": "{{APPROVED_AT}}",
|
|
13
|
+
"targetKind": "{{task|phase|track}}",
|
|
14
|
+
"targetId": "{{TARGET_ID}}",
|
|
15
|
+
"commits": ["{{COMMIT_SHA}}"],
|
|
16
|
+
"revertCommits": []
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"action": "revise",
|
|
3
|
+
"checkpoint": "approved",
|
|
4
|
+
"baseCommit": "{{BASE_COMMIT}}",
|
|
5
|
+
"expectedCommit": "cadre(revise): update {{TRACK_ID}}",
|
|
6
|
+
"approvedArtifacts": ["{{REVISION_PATH}}"],
|
|
7
|
+
"approvalDigest": "{{APPROVAL_DIGEST}}",
|
|
8
|
+
"approvedArtifactHashes": [
|
|
9
|
+
{ "path": "{{APPROVED_ARTIFACT}}", "sha256": "{{ARTIFACT_SHA256}}" }
|
|
10
|
+
],
|
|
11
|
+
"artifactProgress": [],
|
|
12
|
+
"approvedAt": "{{APPROVED_AT}}",
|
|
13
|
+
"sourceStatus": "{{SOURCE_STATUS}}",
|
|
14
|
+
"targetStatus": "{{TARGET_STATUS}}",
|
|
15
|
+
"revisionPath": "{{REVISION_PATH}}",
|
|
16
|
+
"previousRevision": 1,
|
|
17
|
+
"newRevision": 2
|
|
18
|
+
}
|
|
@@ -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,31 @@
|
|
|
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
|
+
"approvalDigest": "{{APPROVAL_DIGEST}}",
|
|
21
|
+
"approvedArtifactHashes": [
|
|
22
|
+
{ "path": "spec.md", "sha256": "{{SPEC_SHA256}}" },
|
|
23
|
+
{ "path": "plan.md", "sha256": "{{PLAN_SHA256}}" },
|
|
24
|
+
{ "path": "learning.md", "sha256": "{{LEARNING_SHA256}}" }
|
|
25
|
+
],
|
|
26
|
+
"approvedAt": "{{APPROVED_AT}}"
|
|
27
|
+
},
|
|
28
|
+
"lastExecution": null,
|
|
29
|
+
"reviewCycles": [],
|
|
30
|
+
"history": []
|
|
31
|
+
}
|