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/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.
@@ -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 receipts:
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 receipt:
130
+ - Goal final review evidence record:
110
131
  - Verification pass count:
111
132
  - Blocker after two failed passes:
112
133