cairn-ai 0.2.1 → 0.2.3
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/.agents/workflows/cairn-plan.md +11 -11
- package/.agents/workflows/cairn-work.md +10 -8
- package/.claude/commands/cairn-plan.md +1 -1
- package/.claude/commands/cairn-work.md +1 -1
- package/.codex-plugin/plugin.json +12 -18
- package/README.de.md +13 -11
- package/README.es.md +13 -11
- package/README.fr.md +13 -11
- package/README.ja.md +13 -11
- package/README.ko.md +15 -13
- package/README.md +15 -13
- package/README.pt.md +13 -11
- package/README.zh.md +13 -11
- package/commands/cairn-doctor.md +5 -3
- package/commands/cairn-install.md +5 -4
- package/commands/cairn-plan.md +13 -16
- package/commands/cairn-review.md +1 -1
- package/commands/cairn-uninstall.md +4 -2
- package/commands/cairn-upgrade.md +6 -6
- package/commands/cairn-work.md +12 -11
- package/docs/model-guidance/README.md +6 -2
- package/docs/model-guidance/codex.md +5 -0
- package/hooks/hooks.json +1 -1
- package/package.json +2 -2
- package/scripts/cairn-goal.mjs +522 -101
- package/scripts/cairn-lifecycle.mjs +926 -313
- package/scripts/cairn-safe-fs.mjs +246 -0
- package/scripts/cairn-state.mjs +80 -30
- package/scripts/cairn-state.sh +2 -0
- package/scripts/cairn-toolcheck.mjs +116 -34
- package/scripts/cairn.mjs +9 -8
- package/scripts/release-integrity-0.2.2.json +68 -0
- package/skills/cairn-plan/SKILL.md +23 -17
- package/skills/cairn-review/SKILL.md +1 -1
- package/skills/cairn-work/SKILL.md +39 -16
- package/templates/PLAN.md +1 -0
- package/templates/work-plan.md +23 -2
package/templates/PLAN.md
CHANGED
|
@@ -4,6 +4,7 @@ Short index of work plans. Link detailed plans under `docs/plan/`.
|
|
|
4
4
|
|
|
5
5
|
## Planning Rules
|
|
6
6
|
|
|
7
|
+
- For implementation or continued execution, write an initial plan with `triage-plan` active, synchronize it to native UI plan/goal tools and the repository goal before exploration, then update it after triage.
|
|
7
8
|
- Detect repository stack and required LSP/check tools before implementation.
|
|
8
9
|
- Install or bootstrap missing required tools before declaring them unavailable.
|
|
9
10
|
- Heavy Path completion requires explicit automated test evidence.
|
package/templates/work-plan.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# Plan: <topic>
|
|
2
2
|
|
|
3
|
+
## Plan Phase
|
|
4
|
+
|
|
5
|
+
- Initial: decision-complete for `triage-plan`; not implementation-ready.
|
|
6
|
+
- Finalized: decision-complete for implementation after planned triage.
|
|
7
|
+
- Codex UI synchronization: `update_plan` status and `create_goal` status, or an explicit unavailable reason.
|
|
8
|
+
|
|
3
9
|
## Goal
|
|
4
10
|
|
|
5
11
|
Describe the observable result.
|
|
@@ -74,6 +80,12 @@ Describe the observable result.
|
|
|
74
80
|
|
|
75
81
|
## Execution Guardrails
|
|
76
82
|
|
|
83
|
+
- Test contract first: requirements, invariants, boundaries, failure modes, expected initial failure, and authoritative tool result.
|
|
84
|
+
- Token budget: high reasoning for plan/triage/test design; bounded minimum implementation; concise tool-derived verification summaries.
|
|
85
|
+
- Verification ladder: focused tests, one final full check, then package dry-run if no files changed. Inspect lifecycle scripts first; run normal `npm pack --dry-run` by default. Content-producing or unknown scripts must never use `--ignore-scripts`; only absent or proven content-neutral scripts may use it while evidence remains fresh.
|
|
86
|
+
- Evidence freshness: relevant changes after verification make affected evidence stale.
|
|
87
|
+
- Verification execution: `goal verify` defaults to 600,000 ms (10 minutes), is capped at 3,600,000 ms (1 hour), and records only when the starting goal/task identity and pre/post watched fingerprint match.
|
|
88
|
+
- Evidence boundary: choose the semantic boundary whose watch set and command prove the claimed behavior.
|
|
77
89
|
- Dry-run or check mode before external-state mutation:
|
|
78
90
|
- No dry-run available, if applicable:
|
|
79
91
|
- Verification loop budget: two passes per task by default.
|
|
@@ -81,6 +93,15 @@ Describe the observable result.
|
|
|
81
93
|
|
|
82
94
|
## Module Tasks
|
|
83
95
|
|
|
96
|
+
### Task 0: planned triage and plan finalization
|
|
97
|
+
|
|
98
|
+
- Task ID: `triage-plan`
|
|
99
|
+
- Initial status: `active`
|
|
100
|
+
- Contract: execute the investigation scope and Heavy Path criteria declared by the initial plan, then update this file and the Codex UI plan to the decision-complete implementation revision.
|
|
101
|
+
- Required evidence records:
|
|
102
|
+
- `planArtifact`: command, exit code 0, timestamp, goal ID, task ID, and plan ID.
|
|
103
|
+
- `triageDecision`: command, exit code 0, timestamp, goal ID, task ID, and plan ID.
|
|
104
|
+
|
|
84
105
|
### Task 1: <module>
|
|
85
106
|
|
|
86
107
|
- Task ID: `task-1`
|
|
@@ -93,7 +114,7 @@ Describe the observable result.
|
|
|
93
114
|
- Dry-run or check command:
|
|
94
115
|
- Module acceptance verification:
|
|
95
116
|
- Surface integration verification:
|
|
96
|
-
- Required
|
|
117
|
+
- Required evidence records:
|
|
97
118
|
- `moduleAcceptance`: command, exit code 0, timestamp, goal ID, task ID, and plan ID.
|
|
98
119
|
- `surfaceIntegration`: command or QA artifact, exit code 0, timestamp, goal ID, task ID, and plan ID.
|
|
99
120
|
- Assigned agent ID, if delegated:
|
|
@@ -106,7 +127,7 @@ Describe the observable result.
|
|
|
106
127
|
- Tests:
|
|
107
128
|
- Module acceptance:
|
|
108
129
|
- Surface integration:
|
|
109
|
-
- Goal final review
|
|
130
|
+
- Goal final review evidence record:
|
|
110
131
|
- Verification pass count:
|
|
111
132
|
- Blocker after two failed passes:
|
|
112
133
|
|