agentera 3.0.0-dev.3 → 3.0.0-dev.5
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/README.md +39 -6
- package/bundle/.agentera-npx-bundle.json +1 -1
- package/bundle/references/cli/agent-ready-state-contract.yaml +20 -17
- package/bundle/references/cli/bundle-skill-vocabulary.yaml +1 -1
- package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
- package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
- package/bundle/references/cli/update-channels.yaml +27 -7
- package/bundle/references/cli/vocabulary-index.yaml +3 -3
- package/bundle/references/cli/vocabulary.md +28 -19
- package/bundle/registry.json +1 -1
- package/bundle/skills/agentera/SKILL.md +38 -21
- package/bundle/skills/agentera/agents/dokumentera.toml +1 -1
- package/bundle/skills/agentera/agents/hej.toml +1 -1
- package/bundle/skills/agentera/agents/inspektera.toml +1 -1
- package/bundle/skills/agentera/agents/inspirera.toml +1 -1
- package/bundle/skills/agentera/agents/optimera.toml +1 -1
- package/bundle/skills/agentera/agents/orkestrera.toml +1 -1
- package/bundle/skills/agentera/agents/planera.toml +1 -1
- package/bundle/skills/agentera/agents/profilera.toml +1 -1
- package/bundle/skills/agentera/agents/realisera.toml +1 -1
- package/bundle/skills/agentera/agents/resonera.toml +1 -1
- package/bundle/skills/agentera/agents/visionera.toml +1 -1
- package/bundle/skills/agentera/agents/visualisera.toml +1 -1
- package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +26 -13
- package/bundle/skills/agentera/capability_schema_contract.yaml +33 -14
- package/bundle/skills/agentera/references/contract.md +2 -2
- package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
- package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -36
- package/bundle/skills/agentera/schemas/artifacts/todo.yaml +14 -0
- package/bundle/skills/hej/SKILL.md +1 -1
- package/dist/analytics/usageStats.js +23 -1
- package/dist/analytics/usageStats.js.map +1 -1
- package/dist/capabilities/dokumentera/instructions.js +6 -0
- package/dist/capabilities/dokumentera/instructions.js.map +1 -0
- package/dist/capabilities/hej/instructions.js +6 -0
- package/dist/capabilities/hej/instructions.js.map +1 -0
- package/dist/capabilities/index.js +38 -0
- package/dist/capabilities/index.js.map +1 -0
- package/dist/capabilities/inspektera/instructions.js +6 -0
- package/dist/capabilities/inspektera/instructions.js.map +1 -0
- package/dist/capabilities/inspirera/instructions.js +6 -0
- package/dist/capabilities/inspirera/instructions.js.map +1 -0
- package/dist/capabilities/optimera/instructions.js +6 -0
- package/dist/capabilities/optimera/instructions.js.map +1 -0
- package/dist/capabilities/orkestrera/instructions.js +6 -0
- package/dist/capabilities/orkestrera/instructions.js.map +1 -0
- package/dist/capabilities/planera/instructions.js +6 -0
- package/dist/capabilities/planera/instructions.js.map +1 -0
- package/dist/capabilities/profilera/instructions.js +6 -0
- package/dist/capabilities/profilera/instructions.js.map +1 -0
- package/dist/capabilities/realisera/instructions.js +6 -0
- package/dist/capabilities/realisera/instructions.js.map +1 -0
- package/dist/capabilities/resonera/instructions.js +6 -0
- package/dist/capabilities/resonera/instructions.js.map +1 -0
- package/dist/capabilities/visionera/instructions.js +6 -0
- package/dist/capabilities/visionera/instructions.js.map +1 -0
- package/dist/capabilities/visualisera/instructions.js +6 -0
- package/dist/capabilities/visualisera/instructions.js.map +1 -0
- package/dist/cli/capabilityContext.js +92 -26
- package/dist/cli/capabilityContext.js.map +1 -1
- package/dist/cli/commands/capability.js +1 -8
- package/dist/cli/commands/capability.js.map +1 -1
- package/dist/cli/commands/doctor.js +42 -3
- package/dist/cli/commands/doctor.js.map +1 -1
- package/dist/cli/commands/report.js +5 -1
- package/dist/cli/commands/report.js.map +1 -1
- package/dist/cli/commands/state.js +22 -11
- package/dist/cli/commands/state.js.map +1 -1
- package/dist/cli/commands/validate.js +12 -2
- package/dist/cli/commands/validate.js.map +1 -1
- package/dist/cli/commands/verify.js +6 -0
- package/dist/cli/commands/verify.js.map +1 -1
- package/dist/cli/dispatch.js +508 -172
- package/dist/cli/dispatch.js.map +1 -1
- package/dist/cli/errors.js +53 -0
- package/dist/cli/errors.js.map +1 -0
- package/dist/cli/help.js +201 -0
- package/dist/cli/help.js.map +1 -0
- package/dist/cli/orientation.js +9 -6
- package/dist/cli/orientation.js.map +1 -1
- package/dist/cli/stateQuery.js +7 -0
- package/dist/cli/stateQuery.js.map +1 -1
- package/dist/cli/todoMarkdown.js +33 -0
- package/dist/cli/todoMarkdown.js.map +1 -0
- package/dist/hooks/common.js +0 -2
- package/dist/hooks/common.js.map +1 -1
- package/dist/hooks/validateArtifact.js +10 -8
- package/dist/hooks/validateArtifact.js.map +1 -1
- package/dist/registries/capabilityContract.js +12 -11
- package/dist/registries/capabilityContract.js.map +1 -1
- package/dist/registries/evaluatorHandoffContract.js +171 -0
- package/dist/registries/evaluatorHandoffContract.js.map +1 -0
- package/dist/setup/codex.js +146 -5
- package/dist/setup/codex.js.map +1 -1
- package/dist/setup/doctor.js +22 -1
- package/dist/setup/doctor.js.map +1 -1
- package/dist/setup/smokeChecks.js +111 -0
- package/dist/setup/smokeChecks.js.map +1 -0
- package/dist/upgrade/channels.js +9 -3
- package/dist/upgrade/channels.js.map +1 -1
- package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -1
- package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -1
- package/dist/upgrade/nextMajorDoctor.js +121 -0
- package/dist/upgrade/nextMajorDoctor.js.map +1 -0
- package/dist/upgrade/runtimeMigration.js +19 -3
- package/dist/upgrade/runtimeMigration.js.map +1 -1
- package/dist/upgrade/versionResolution.js +4 -4
- package/dist/upgrade/versionResolution.js.map +1 -1
- package/dist/validate/appHomeContract.js +1 -1
- package/dist/validate/appHomeContract.js.map +1 -1
- package/dist/validate/capability.js +11 -3
- package/dist/validate/capability.js.map +1 -1
- package/package.json +3 -3
- package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
- package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
- package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
- package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
- package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
- package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
- package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
- package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
- package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
- package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
- package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
- package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
- package/dist/cli/commands/backfill.js +0 -84
- package/dist/cli/commands/backfill.js.map +0 -1
- package/dist/core/git.js +0 -43
- package/dist/core/git.js.map +0 -1
- package/dist/state/progressCommit.js +0 -289
- package/dist/state/progressCommit.js.map +0 -1
|
@@ -1,368 +0,0 @@
|
|
|
1
|
-
# PLANERA
|
|
2
|
-
|
|
3
|
-
**Planning Logic: Adaptive Notation, Executable Requirements Architecture. Enumerate, Refine, Assign**
|
|
4
|
-
|
|
5
|
-
Scale-adaptive planning bridging deliberation and execution. PLAN.md with behavioral acceptance criteria for realisera. Planera owns WHAT and WHY; realisera owns HOW.
|
|
6
|
-
|
|
7
|
-
Voice: the sharp colleague, here to plan the work. Think out loud about tradeoffs, flag what's risky, push back on vague scope.
|
|
8
|
-
|
|
9
|
-
Three levels: **skip** (trivial), **light** (single-cycle), **full** (multi-cycle with adversarial review).
|
|
10
|
-
|
|
11
|
-
Skill introduction: `─── ≡ planera · planning ───`
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## Visual identity
|
|
16
|
-
|
|
17
|
-
Glyph: **≡** (protocol ref: SG5). Used in the mandatory exit marker.
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## State artifacts
|
|
22
|
-
|
|
23
|
-
One file and one archive directory in `.agentera/`.
|
|
24
|
-
|
|
25
|
-
| Artifact | Purpose | Bootstrap |
|
|
26
|
-
|----------|---------|-----------|
|
|
27
|
-
| `PLAN.md` | Canonical plan artifact, stored as `.agentera/plan.yaml` unless mapped otherwise. Spec, tasks, acceptance criteria. | Created during planning session. |
|
|
28
|
-
| `.agentera/archive/` | Completed or discarded plans. | Created on first archival. |
|
|
29
|
-
|
|
30
|
-
**Presence signal**: `.agentera/plan.yaml` means active planned work. Absence means no plan, so realisera reasons from VISION.md.
|
|
31
|
-
|
|
32
|
-
For read-only current-plan startup or evaluation context, use `agentera plan
|
|
33
|
-
--format json` first. When its `source_contract.complete_for_plan_artifact` is
|
|
34
|
-
true, its `summary`, `entries`, and `source_contract` are complete for plan
|
|
35
|
-
metadata, task dependencies, acceptance criteria, task evidence, overall
|
|
36
|
-
acceptance, surprises, and previous-plan archive references; do not reread the
|
|
37
|
-
persisted plan artifact defensively. Raw mapped plan artifact access is still
|
|
38
|
-
required for writing a new plan, archiving a completed plan, artifact validation,
|
|
39
|
-
corruption diagnostics, or when CLI output is unavailable or incomplete after
|
|
40
|
-
CLI fallbacks.
|
|
41
|
-
|
|
42
|
-
When a user directly invokes ≡ planera to create a new plan and the existing
|
|
43
|
-
PLAN.md is already complete, archiving that completed plan before writing its
|
|
44
|
-
replacement is implicit in the direct Planera invocation and does not require a
|
|
45
|
-
separate pre-write confirmation. Human-initiated replacement plans still require
|
|
46
|
-
plan approval before the write. Replacing, discarding, or archiving an active or
|
|
47
|
-
incomplete plan is not implicit; ask for explicit confirmation before the write.
|
|
48
|
-
|
|
49
|
-
Use `agentera describe --format json` and its `artifact_schemas` entry for `plan` to locate the active installed schema; use `artifact_locations` or `agentera query --list-artifacts --format json` to locate the mapped plan path and raw-access boundary before any diagnostic raw read. Do not search Agentera directories manually. Existing plan artifacts provide repository-local examples of the shape.
|
|
50
|
-
|
|
51
|
-
For normal Planera startup, `agentera prime --context planera --format json`
|
|
52
|
-
exposes `capability_context.context.planning_context.startup_contract` as the
|
|
53
|
-
compact read model for planning levels, step markers, CLI-first orientation, plan
|
|
54
|
-
artifact boundaries, full-plan review/self-audit requirements, and handoff
|
|
55
|
-
expectations. Use that context before rereading this prose. Read this file when editing Planera,
|
|
56
|
-
resolving contradiction or ambiguity, validating detailed behavior not covered
|
|
57
|
-
by compact context, or investigating benchmark/read-trigger evidence.
|
|
58
|
-
|
|
59
|
-
### Artifact path resolution
|
|
60
|
-
|
|
61
|
-
Before reading or writing any artifact, prefer the CLI artifact-location contract from `agentera describe --format json` or `agentera query --list-artifacts --format json`. It resolves `.agentera/docs.yaml` mappings, default paths, existence, and read boundaries without a separate raw docs read. Raw `.agentera/docs.yaml` access is reserved for docs artifact writes, validation, corruption diagnostics, or unavailable/incomplete CLI discovery.
|
|
62
|
-
|
|
63
|
-
### Contract values
|
|
64
|
-
|
|
65
|
-
Contract values are inlined where referenced. Visual tokens from protocol: status tokens VT1-VT4 (■/▣/□/▨), list item VT15 (▸), inline separator VT16 (·), section divider VT14, flow/target VT17 (→). Skill glyphs SG1-SG12 for cross-capability references. Exit signals EX1-EX4 for the exit marker. Decision labels DL1-DL3 for DECISIONS.md reading. Severity issue levels SI1-SI4 for TODO entries. Phases PH1-PH5 for phase context.
|
|
66
|
-
|
|
67
|
-
`references/contract.md` (at the v2 skill location `skills/agentera/references/contract.md`) remains available as a full-spec reference.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Step 0: Detect level
|
|
72
|
-
|
|
73
|
-
Assess work complexity. Read the description (user, DECISIONS.md, or TODO.md). Scan codebase if needed.
|
|
74
|
-
|
|
75
|
-
| Signal | Level |
|
|
76
|
-
|--------|-------|
|
|
77
|
-
| Single-file change, bug fix, config tweak, < 50 lines | **Skip** |
|
|
78
|
-
| One module affected, clear scope, fits one realisera cycle | **Light** |
|
|
79
|
-
| Multiple modules, multi-file changes, 3+ logical steps, new feature spanning architecture | **Full** |
|
|
80
|
-
|
|
81
|
-
**Skip**: This doesn't need a plan. Suggest ⧉ realisera and wait for
|
|
82
|
-
confirmation unless the user already asked to implement now. Stop here.
|
|
83
|
-
|
|
84
|
-
**Light or Full**: Proceed to planning.
|
|
85
|
-
|
|
86
|
-
If uncertain between light and full, default to light.
|
|
87
|
-
|
|
88
|
-
---
|
|
89
|
-
|
|
90
|
-
Step markers: display `── step N/6: verb` before each step (Step 0 excluded). Steps: orient, specify, review, audit, write, handoff.
|
|
91
|
-
|
|
92
|
-
## Step 1: Orient
|
|
93
|
-
|
|
94
|
-
Use CLI-provided startup state and listed CLI fallbacks before raw artifact reads.
|
|
95
|
-
For current PLAN.md context, prefer `agentera plan --format json`; if its source
|
|
96
|
-
contract is complete, skip raw `.agentera/plan.yaml` reads during this read-only
|
|
97
|
-
orientation step.
|
|
98
|
-
|
|
99
|
-
Orient on VISION.md, DECISIONS.md, TODO.md, HEALTH.md, PROGRESS.md, and profile
|
|
100
|
-
state through the supported CLI state seam where available. If a required state
|
|
101
|
-
family is missing or incomplete, run the CLI-provided fallback before any
|
|
102
|
-
last-resort raw artifact read.
|
|
103
|
-
|
|
104
|
-
1. **VISION.md**: the north star (if exists)
|
|
105
|
-
2. **DECISIONS.md**: use `agentera decisions --format json`; read `firm` (DL1) entries only (hard constraints for planning), and preserve returned `missing_fields`, `compacted`, `caveats`, and `satisfaction.review_needed` pressure instead of raw-reading missing historical context.
|
|
106
|
-
3. **HEALTH.md**: latest codebase health grades (if exists)
|
|
107
|
-
4. **TODO.md**: related known issues (if exists)
|
|
108
|
-
5. **PROGRESS.md**: what was built recently (if exists)
|
|
109
|
-
6. **Decision profile**: read `$PROFILERA_PROFILE_DIR/PROFILE.md` directly when it exists. If missing, proceed without persona grounding.
|
|
110
|
-
|
|
111
|
-
7. **Project discovery** (if unfamiliar):
|
|
112
|
-
- Map directory structure
|
|
113
|
-
- Read dependency manifests, README.md, CLAUDE.md, AGENTS.md
|
|
114
|
-
- Identify build/test/lint commands
|
|
115
|
-
|
|
116
|
-
Before decomposing: summarize the constraints from VISION.md and DECISIONS.md. If the decisions source contract reports `complete_for_normal_deliberation_context=true`, do not read raw `.agentera/decisions.yaml` for normal planning context.
|
|
117
|
-
|
|
118
|
-
---
|
|
119
|
-
|
|
120
|
-
## Step 2: Specify
|
|
121
|
-
|
|
122
|
-
Define WHAT and WHY. Intent layer, not implementation details.
|
|
123
|
-
|
|
124
|
-
Effort-bias check: when comparing plan shapes, do not treat effort spent constructing an option as evidence for it.
|
|
125
|
-
|
|
126
|
-
### Light plans
|
|
127
|
-
|
|
128
|
-
Brief conversation (2-3 questions):
|
|
129
|
-
|
|
130
|
-
- **What**: one-paragraph description of the change
|
|
131
|
-
- **Why**: what value it delivers or what problem it solves
|
|
132
|
-
- **Constraints**: what must NOT break, what's out of scope
|
|
133
|
-
- **Acceptance criteria**: 3-5 behavioral criteria in Given/When/Then format
|
|
134
|
-
|
|
135
|
-
Write PLAN.md. Present for approval (human-initiated) or proceed (autonomous).
|
|
136
|
-
|
|
137
|
-
### Full plans
|
|
138
|
-
|
|
139
|
-
Deeper conversation:
|
|
140
|
-
|
|
141
|
-
- **What**: detailed description
|
|
142
|
-
- **Why**: motivation, user impact, relationship to VISION.md
|
|
143
|
-
- **Constraints**: architectural boundaries, off-limits modules
|
|
144
|
-
- **Scope**: what's in, out, deferred
|
|
145
|
-
- **Design**: high-level approach. NOT implementation details.
|
|
146
|
-
- **Task decomposition**: 3-8 ordered tasks, each one realisera cycle. Per task: description, dependencies, 3-5 behavioral Given/When/Then acceptance criteria
|
|
147
|
-
- **Test proportionality**: for tasks with tests, add a proportionality target. Default: one pass + one fail per testable unit.
|
|
148
|
-
- **Plan-level current-state check**: every full plan ends with a final state sync task depending on all prior tasks.
|
|
149
|
-
- **Version bump check**: add a bump task when DOCS.md versioning exists and the plan includes `feat`/`fix` work.
|
|
150
|
-
- **Overall acceptance criteria**: behavioral criteria for the complete feature
|
|
151
|
-
|
|
152
|
-
Present for approval or proceed to adversarial review.
|
|
153
|
-
|
|
154
|
-
---
|
|
155
|
-
|
|
156
|
-
## Step 3: Review (full plans only)
|
|
157
|
-
|
|
158
|
-
Spawn an adversarial critic. The critic MUST find issues.
|
|
159
|
-
|
|
160
|
-
```
|
|
161
|
-
You are reviewing a development plan for [project]. Your job is to find problems.
|
|
162
|
-
|
|
163
|
-
## The plan
|
|
164
|
-
[Full PLAN.md content]
|
|
165
|
-
|
|
166
|
-
## Your mandate
|
|
167
|
-
You MUST identify at least one issue. "Looks good" is not acceptable.
|
|
168
|
-
|
|
169
|
-
Look for:
|
|
170
|
-
- Tasks too large for a single implementation cycle
|
|
171
|
-
- Missing dependencies between tasks
|
|
172
|
-
- Acceptance criteria too vague to verify
|
|
173
|
-
- Acceptance criteria that leak implementation details
|
|
174
|
-
- Scope gaps or scope creep
|
|
175
|
-
- Ordering issues
|
|
176
|
-
- Conflicting constraints
|
|
177
|
-
- Unacknowledged risks
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
Address legitimate issues; dismiss false positives with rationale. Present reviewed plan.
|
|
181
|
-
|
|
182
|
-
---
|
|
183
|
-
|
|
184
|
-
## Step 4: Pre-write self-audit
|
|
185
|
-
|
|
186
|
-
Pre-write self-audit: run `agentera lint --artifact <ARTIFACT> --text "<DRAFT>"` (or `--file <PATH>`; schema names such as `decisions` auto-resolve the artifact file when no input is given) on the draft entry to check verbosity overruns, abstraction creep, and filler accumulation.
|
|
187
|
-
Max 3 revision attempts. Flag with [post-audit-flagged] if still failing.
|
|
188
|
-
|
|
189
|
-
## Step 5: Write PLAN.md
|
|
190
|
-
|
|
191
|
-
Write tasks with acceptance criteria. The conversation preserves reasoning; the artifact preserves the plan.
|
|
192
|
-
|
|
193
|
-
Write the plan to `.agentera/plan.yaml`.
|
|
194
|
-
|
|
195
|
-
Artifact writing follows contract Section 24 conventions.
|
|
196
|
-
|
|
197
|
-
### Light plan format
|
|
198
|
-
|
|
199
|
-
```yaml
|
|
200
|
-
header:
|
|
201
|
-
level: light
|
|
202
|
-
created: YYYY-MM-DD
|
|
203
|
-
status: active
|
|
204
|
-
title: Short Title
|
|
205
|
-
what: One paragraph.
|
|
206
|
-
why: Motivation and value.
|
|
207
|
-
constraints: What must not break; what is out of scope.
|
|
208
|
-
overall_acceptance:
|
|
209
|
-
- GIVEN context WHEN action THEN expected outcome
|
|
210
|
-
tasks: []
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Full plan format
|
|
214
|
-
|
|
215
|
-
```yaml
|
|
216
|
-
header:
|
|
217
|
-
level: full
|
|
218
|
-
created: YYYY-MM-DD
|
|
219
|
-
status: active
|
|
220
|
-
reviewed: YYYY-MM-DD
|
|
221
|
-
critic_issues: "N found, N addressed, N dismissed"
|
|
222
|
-
title: Short Title
|
|
223
|
-
what: Detailed description.
|
|
224
|
-
why: Motivation, user impact, relationship to vision.
|
|
225
|
-
constraints: Architectural boundaries and off-limits modules.
|
|
226
|
-
scope:
|
|
227
|
-
included: []
|
|
228
|
-
excluded: []
|
|
229
|
-
deferred: []
|
|
230
|
-
design: High-level approach, not implementation details.
|
|
231
|
-
tasks:
|
|
232
|
-
- number: 1
|
|
233
|
-
name: Title
|
|
234
|
-
depends_on: []
|
|
235
|
-
status: pending
|
|
236
|
-
acceptance:
|
|
237
|
-
- GIVEN context WHEN action THEN expected outcome
|
|
238
|
-
overall_acceptance:
|
|
239
|
-
- GIVEN context WHEN action THEN expected outcome
|
|
240
|
-
surprises: []
|
|
241
|
-
```
|
|
242
|
-
|
|
243
|
-
---
|
|
244
|
-
|
|
245
|
-
## Step 6: Handoff
|
|
246
|
-
|
|
247
|
-
- **Single task**: suggest ⧉ realisera to execute and wait for confirmation.
|
|
248
|
-
- **Full plan**: suggest ⎈ orkestrera to execute the entire plan and wait for confirmation.
|
|
249
|
-
|
|
250
|
-
---
|
|
251
|
-
|
|
252
|
-
## How realisera reads PLAN.md
|
|
253
|
-
|
|
254
|
-
When PLAN.md has pending tasks, realisera's Step 2 changes:
|
|
255
|
-
|
|
256
|
-
1. Read PLAN.md
|
|
257
|
-
2. Find tasks with `Status: □` (VT3) pending whose dependencies are all `Status: ■` (VT1) complete
|
|
258
|
-
3. Pick the first eligible task
|
|
259
|
-
4. Use the task's acceptance criteria as exit conditions
|
|
260
|
-
5. After committing, update task status to `■ complete`
|
|
261
|
-
6. If unexpected, add to `## Surprises`
|
|
262
|
-
7. If a task doesn't make sense, mark it `skipped`
|
|
263
|
-
|
|
264
|
-
When all tasks complete:
|
|
265
|
-
|
|
266
|
-
1. Archive PLAN.md to `.agentera/archive/plan-{date}.yaml`
|
|
267
|
-
2. Delete `.agentera/plan.yaml`
|
|
268
|
-
3. Realisera resumes vision-driven work selection
|
|
269
|
-
|
|
270
|
-
---
|
|
271
|
-
|
|
272
|
-
## Safety rails
|
|
273
|
-
|
|
274
|
-
<critical>
|
|
275
|
-
|
|
276
|
-
- NEVER include implementation details in PLAN.md. Planera owns WHAT and WHY. Realisera owns HOW.
|
|
277
|
-
- NEVER write acceptance criteria that reference implementation. Use behavioral, domain-language criteria only.
|
|
278
|
-
- NEVER produce more than 8 tasks in a full plan. If work requires more, split into sequential plans.
|
|
279
|
-
- NEVER modify PLAN.md during a realisera cycle except to update task status and add surprises.
|
|
280
|
-
- NEVER skip adversarial review for full plans.
|
|
281
|
-
- NEVER auto-approve plans when human-initiated. Present for approval.
|
|
282
|
-
- NEVER plan trivial work. If skip level, say so and stop.
|
|
283
|
-
|
|
284
|
-
</critical>
|
|
285
|
-
|
|
286
|
-
---
|
|
287
|
-
|
|
288
|
-
## Exit signals
|
|
289
|
-
|
|
290
|
-
Report one of these statuses at workflow completion (protocol refs: EX1-EX4).
|
|
291
|
-
|
|
292
|
-
Format: `─── ≡ planera · <status> ───` followed by a summary sentence.
|
|
293
|
-
For flagged, stuck, and waiting: add `▸` (VT15) bullet details.
|
|
294
|
-
|
|
295
|
-
- **complete** (EX1): PLAN.md written and approved, adversarial review ran for full plans, handoff suggested.
|
|
296
|
-
- **flagged** (EX2): Plan produced with caveats: critic issues dismissed, scope larger than ideal, or acceptance criteria not fully behavioral.
|
|
297
|
-
- **stuck** (EX3): Cannot plan: description too ambiguous, context files contradict, or user declined approval with no revision path.
|
|
298
|
-
- **waiting** (EX4): Feature not specified enough for acceptance criteria, or key architectural constraints unknown.
|
|
299
|
-
|
|
300
|
-
---
|
|
301
|
-
|
|
302
|
-
## Cross-capability integration
|
|
303
|
-
|
|
304
|
-
Planera is the bridge between deliberation and execution.
|
|
305
|
-
|
|
306
|
-
### Fed by ❈ resonera
|
|
307
|
-
|
|
308
|
-
When resonera's deliberation concludes with a decision to build, the next step is ≡ planera. DECISIONS.md provides the "why" context.
|
|
309
|
-
|
|
310
|
-
### Feeds ⧉ realisera
|
|
311
|
-
|
|
312
|
-
PLAN.md tasks become realisera's work queue. Task acceptance criteria become cycle exit conditions. Realisera updates status and logs surprises.
|
|
313
|
-
|
|
314
|
-
### Feeds ⎘ optimera
|
|
315
|
-
|
|
316
|
-
When a plan includes optimization-shaped tasks, those tasks can be delegated to optimera.
|
|
317
|
-
|
|
318
|
-
### Informed by ⛶ inspektera
|
|
319
|
-
|
|
320
|
-
HEALTH.md findings can trigger remediation plans. Inspektera reveals structural issues; planera produces a plan to address them.
|
|
321
|
-
|
|
322
|
-
### Informed by ♾ profilera
|
|
323
|
-
|
|
324
|
-
Decision profile calibrates planning depth and pattern preferences.
|
|
325
|
-
|
|
326
|
-
### Informed by ⬚ inspirera
|
|
327
|
-
|
|
328
|
-
When inspirera recommends patterns or libraries, planera incorporates them into the plan's design section.
|
|
329
|
-
|
|
330
|
-
### Reads ⛥ visionera output
|
|
331
|
-
|
|
332
|
-
VISION.md provides the north star that planera reads during Orient.
|
|
333
|
-
|
|
334
|
-
### Fed by ▤ dokumentera (docs-first workflow)
|
|
335
|
-
|
|
336
|
-
In the docs-first workflow, dokumentera writes intent docs first, then planera decomposes them into tasks.
|
|
337
|
-
|
|
338
|
-
### Reads ▤ dokumentera versioning conventions
|
|
339
|
-
|
|
340
|
-
Planera reads the `versioning` block from DOCS.md. When the plan includes `feat`/`fix` work, planera appends a version bump task.
|
|
341
|
-
|
|
342
|
-
---
|
|
343
|
-
|
|
344
|
-
## Getting started
|
|
345
|
-
|
|
346
|
-
### Planning a new feature
|
|
347
|
-
|
|
348
|
-
1. ❈ resonera: deliberate on what to build and why
|
|
349
|
-
2. ≡ planera: plan how to build it
|
|
350
|
-
3. ⧉ realisera or ⎈ orkestrera: execute
|
|
351
|
-
|
|
352
|
-
### Planning a remediation
|
|
353
|
-
|
|
354
|
-
1. ⛶ inspektera: audit codebase health
|
|
355
|
-
2. ≡ planera: plan fixes
|
|
356
|
-
3. ⧉ realisera: execute
|
|
357
|
-
|
|
358
|
-
### Mid-feature replanning
|
|
359
|
-
|
|
360
|
-
If realisera logs multiple surprises in PLAN.md:
|
|
361
|
-
|
|
362
|
-
1. Read the surprises section
|
|
363
|
-
2. ≡ planera: reassess tasks
|
|
364
|
-
3. Resume ⧉ realisera
|
|
365
|
-
|
|
366
|
-
### Skipping the plan
|
|
367
|
-
|
|
368
|
-
For trivial work, planera detects skip level and routes to ⧉ realisera directly.
|