agentera 3.0.0-dev.13 → 3.0.0-dev.14

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.
Files changed (69) hide show
  1. package/bundle/references/artifacts/artifact-registry-interface-model.yaml +2 -2
  2. package/bundle/references/cli/capability-instruction-structure.md +10 -10
  3. package/bundle/references/cli/vocabulary.md +1 -1
  4. package/bundle/skills/agentera/agents/research.toml +1 -1
  5. package/bundle/skills/agentera/capabilities/audit/schemas/exit.yaml +2 -2
  6. package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +4 -3
  7. package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +1 -1
  8. package/bundle/skills/agentera/capabilities/build/schemas/exit.yaml +3 -3
  9. package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +8 -8
  10. package/bundle/skills/agentera/capabilities/design/schemas/exit.yaml +5 -5
  11. package/bundle/skills/agentera/capabilities/design/schemas/validation.yaml +2 -2
  12. package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +6 -5
  13. package/bundle/skills/agentera/capabilities/discuss/schemas/exit.yaml +2 -2
  14. package/bundle/skills/agentera/capabilities/discuss/schemas/validation.yaml +6 -5
  15. package/bundle/skills/agentera/capabilities/document/schemas/triggers.yaml +0 -1
  16. package/bundle/skills/agentera/capabilities/optimize/schemas/artifacts.yaml +1 -1
  17. package/bundle/skills/agentera/capabilities/optimize/schemas/exit.yaml +2 -2
  18. package/bundle/skills/agentera/capabilities/optimize/schemas/validation.yaml +2 -2
  19. package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +7 -6
  20. package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +34 -34
  21. package/bundle/skills/agentera/capabilities/plan/schemas/validation.yaml +29 -2
  22. package/bundle/skills/agentera/capabilities/profile/schemas/exit.yaml +1 -2
  23. package/bundle/skills/agentera/capabilities/research/schemas/artifacts.yaml +3 -3
  24. package/bundle/skills/agentera/capabilities/vision/schemas/exit.yaml +7 -6
  25. package/bundle/skills/agentera/capabilities/vision/schemas/triggers.yaml +3 -3
  26. package/bundle/skills/agentera/capabilities/vision/schemas/validation.yaml +7 -7
  27. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
  28. package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +1 -1
  29. package/bundle/skills/agentera/schemas/artifacts/health.yaml +1 -1
  30. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +1 -1
  31. package/dist/capabilities/audit/instructions.js +2 -4
  32. package/dist/capabilities/audit/instructions.js.map +1 -1
  33. package/dist/capabilities/build/instructions.js +3 -4
  34. package/dist/capabilities/build/instructions.js.map +1 -1
  35. package/dist/capabilities/design/instructions.js +3 -3
  36. package/dist/capabilities/design/instructions.js.map +1 -1
  37. package/dist/capabilities/discuss/instructions.js +4 -4
  38. package/dist/capabilities/discuss/instructions.js.map +1 -1
  39. package/dist/capabilities/document/instructions.js +2 -4
  40. package/dist/capabilities/document/instructions.js.map +1 -1
  41. package/dist/capabilities/optimize/instructions.js +3 -4
  42. package/dist/capabilities/optimize/instructions.js.map +1 -1
  43. package/dist/capabilities/orchestrate/instructions.js +3 -4
  44. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  45. package/dist/capabilities/plan/instructions.js +1 -1
  46. package/dist/capabilities/plan/instructions.js.map +1 -1
  47. package/dist/capabilities/profile/instructions.js +3 -4
  48. package/dist/capabilities/profile/instructions.js.map +1 -1
  49. package/dist/capabilities/research/instructions.js +4 -4
  50. package/dist/capabilities/research/instructions.js.map +1 -1
  51. package/dist/capabilities/status/instructions.js +1 -1
  52. package/dist/capabilities/status/instructions.js.map +1 -1
  53. package/dist/capabilities/vision/instructions.js +1 -5
  54. package/dist/capabilities/vision/instructions.js.map +1 -1
  55. package/dist/cli/commands/compact.js +1 -1
  56. package/dist/cli/commands/compact.js.map +1 -1
  57. package/dist/hooks/common.js +3 -3
  58. package/dist/hooks/common.js.map +1 -1
  59. package/dist/hooks/compaction/retention.js +6 -3
  60. package/dist/hooks/compaction/retention.js.map +1 -1
  61. package/dist/hooks/compaction/status.js +9 -7
  62. package/dist/hooks/compaction/status.js.map +1 -1
  63. package/dist/hooks/sessionStop.js +2 -2
  64. package/dist/hooks/sessionStop.js.map +1 -1
  65. package/dist/state/startupAnalysis/helpers.js +1 -1
  66. package/dist/state/startupAnalysis/helpers.js.map +1 -1
  67. package/dist/upgrade/compatibility.js +33 -0
  68. package/dist/upgrade/compatibility.js.map +1 -1
  69. package/package.json +1 -1
@@ -221,11 +221,11 @@ explicit_special_cases:
221
221
  placeholder: '{date}'
222
222
  meaning: archive date or archive-safe plan suffix
223
223
  docs_yaml_can_override_path: false
224
- - artifact_id: optimera_harness
224
+ - artifact_id: optimize_harness
225
225
  display_name: harness
226
226
  artifact_type: local_harness
227
227
  scope: local_harness
228
- default_path: .agentera/optimera/<name>/harness
228
+ default_path: .agentera/optimize/<name>/harness
229
229
  path_template:
230
230
  placeholder: <name>
231
231
  meaning: active objective directory name
@@ -111,16 +111,16 @@ against D80 plus this reference doc.
111
111
  |---|---|---|---|---|---|---|---|
112
112
  | ⌂ status | Linear | 10,389 | Yes | Yes | Yes | None | Complete (D79) |
113
113
  | ⛥ vision | Mode-split | 16,667 | Yes | Yes | Yes | Has vision.yaml shape subsection; shared pre-write self-audit hoist (DRY between Create and Refine modes) | Complete (D81) |
114
- | ❈ discuss | Loop | 13,816 | Not audited | Not audited | Not audited | Has deliverable template; has Getting started to fold | Not audited |
115
- | ⬚ research | Linear | 12,251 | Not audited | Not audited | Not audited | Has deliverable template; has Notes on depth | Not audited |
116
- | ≡ plan | Mode-split | 14,800 | Not audited | Not audited | Not audited | Has light/normal/full modes; has How build reads PLAN.md | Not audited |
117
- | ⧉ build | Cycle | 20,662 | Not audited | Not audited | Not audited | Has Handling blocked work; no Getting started | Not audited |
118
- | ⎘ optimize | Cycle | 25,990 | Not audited | Not audited | Not audited | Has Handling blocked experiments | Not audited |
119
- | ⛶ audit | Linear | 31,313 | Not audited | Not audited | Not audited | Has finding taxonomy plus health.yaml write; Steps 1-7 | Not audited |
120
- | ▤ document | Mode-split | 21,779 | Not audited | Not audited | Not audited | Has closeout context startup; has docs.yaml shape | Not audited |
121
- | ♾ profile | Mode-split | 24,219 | Not audited | Not audited | Not audited | Has PROFILE.md template; has Notes on depth vs speed | Not audited |
122
- | ◰ design | Mode-split | 20,596 | Not audited | Not audited | Not audited | Has Colors/Typography domain content; has DESIGN.md format | Not audited |
123
- | ⎈ orchestrate | Multi-surface | 28,544 | Not audited | Not audited | Not audited | Has three surface templates; has Keeping the orchestrator lean | Not audited |
114
+ | ❈ discuss | Loop | 12,045 | Yes | Yes | Yes | Has decisions.yaml shape subsection; Getting started folded into §6; loop shape named "The deliberation loop" (§3); fog-aware readiness check at Done; steering rules (breadth-first, ask-user-to-sketch); schema files use artifact-id labels not canonical filenames | Complete (D82) |
115
+ | ⬚ research | Linear | 12,484 | Yes | Yes | Yes | Has deliverable template; has transferable concepts checkpoint between source reading and target exploration; runtime-agnostic tool references | Complete (D83) |
116
+ | ≡ plan | Mode-split | 14,515 | Yes | Yes | Yes | Has skip/light/full modes; `unknowns:` and `rejected:` full-plan fields; `How build reads PLAN.md` removed (artifact read contract declared in §2 only); fog-check at handoff; replan trigger qualitative (surprises on one task alter downstream acceptance); Getting started folded into §6; YAML formats reordered intent-first | Complete (D84) |
117
+ | ⧉ build | Cycle | 15,081 | Yes | Yes | Yes | Has Handling blocked work; vision bootstrap folded into Workflow phases; brainstorm cut to minimal fallback; subagent spawning table cut to brief pointer; self-audit folded into Log (8 steps); plan unknowns consumption; cycle boundary stated once; `/loop` replaced with explicit user request | Complete (D85) |
118
+ | ⎘ optimize | Cycle | 20,622 | Yes | Yes | Yes | Has Handling blocked experiments; self-audit folded into Log (7 steps); subagent spawning table compressed (D85 propagation); benchmark context lean seam; experiments.yaml has context block; brainstorm stripped to 4 questions | Complete (D86) |
119
+ | ⛶ audit | Linear | 18,401 | Yes | Yes | Yes | Has finding taxonomy plus health.yaml shape; has 3 agentera-specific dimension mechanics (Version health, Artifact freshness, Prose health); Getting started folded into §6; self-audit folded into Report (7→6 steps); subagent spawning compressed to brief pointer; evidence_context startup delegation (bespoke); decision satisfaction authority rule in Safety rails | Complete (D87) |
120
+ | ▤ document | Mode-split | 14,886 | Yes | Yes | Yes | Has docs.yaml shape; closeout context lean pointer; Getting started folded into §6; self-audit folded into write steps; doc-prose enforcement compressed to lint+report; Step 0 mode detection folded into opening; decision satisfaction in Safety rails | Complete (D88) |
121
+ | ♾ profile | Mode-split | 19,567 | Yes | Yes | Yes | Has PROFILE.md template flex section; coverage+extraction merged (6→4 Full steps); prediction validation folded into Generate + EX2 for <3/5; Validate V3+V4 merged (4→3); Getting started folded into §6; startup contract delegation | Complete (D89) |
122
+ | ◰ design | Mode-split | 16,383 | Yes | Yes | Yes | Has DESIGN.md format subsection in State artifacts; self-audit folded into Write/Update steps; Step 0 folded into opening; Getting started folded into §6 | Complete (D90) |
123
+ | ⎈ orchestrate | Multi-surface | 18,497 | Yes | Yes | Yes | Has staleness check in Step 0 (3 steps, self-contained); has loop stop condition in Exit signals; WARN eliminated from evaluation (PASS/FAIL only); test-suppression directive removed from delegation prompt; Keeping the orchestrator lean folded into Safety rails; subagent table compressed to brief pointer; Getting started folded into §6; decision satisfaction in Safety rails | Complete (D91) |
124
124
 
125
125
  ---
126
126
 
@@ -221,7 +221,7 @@ ambiguous-term sweep remain separate follow-up work.
221
221
 
222
222
  Canonical artifact IDs include `vision`, `decisions`, `plan`, `progress`,
223
223
  `todo`, `health`, `docs`, `design`, `profile`, `objective`, `experiments`,
224
- `changelog`, `session`, `plan_archive`, `optimera_harness`, and
224
+ `changelog`, `session`, `plan_archive`, `optimize_harness`, and
225
225
  `semantic_fixture`.
226
226
 
227
227
  ## Status, severity, confidence, and exits
@@ -2,5 +2,5 @@
2
2
  name = "research"
3
3
  description = "External pattern research and synthesis."
4
4
  developer_instructions = """
5
- You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -4,8 +4,8 @@ EXIT_CONDITIONS:
4
4
  condition: complete
5
5
  description: >-
6
6
  All selected audit dimensions were assessed, findings were synthesized,
7
- grades were assigned, HEALTH.md was updated, and the user was presented
8
- with actionable results.
7
+ grades were assigned, the health artifact was updated, and the user was
8
+ presented with actionable results.
9
9
  exit_signal: complete
10
10
  2:
11
11
  id: E2
@@ -24,9 +24,10 @@ VALIDATION:
24
24
  id: V3
25
25
  rule: decisions_respected
26
26
  description: >-
27
- Findings that contradict deliberate decisions documented in DECISIONS.md
28
- MUST be discarded or downgraded to info (SF3). A deliberate decision is
29
- not a finding; it is an implementation of that decision.
27
+ Findings that contradict deliberate decisions documented in
28
+ .agentera/decisions.yaml MUST be discarded or downgraded to info
29
+ (SF3). A deliberate decision is not a finding; it is an
30
+ implementation of that decision.
30
31
  severity: critical
31
32
  checks:
32
33
  - "No finding contradicts a known deliberate decision"
@@ -6,7 +6,7 @@ ARTIFACTS:
6
6
  description: >-
7
7
  Build consumes this through CLI execution_context caveats or explicit
8
8
  fallback state when available, and never modifies it during cycles. Created
9
- during brainstorm (bootstrap or user-requested refinement).
9
+ during vision bootstrap.
10
10
  2:
11
11
  id: A2
12
12
  artifact_id: todo
@@ -5,7 +5,7 @@ EXIT_CONDITIONS:
5
5
  description: >-
6
6
  One full cycle completed. Work was selected, implemented, verified
7
7
  against the project's test/build suite, committed with a conventional
8
- message, and PROGRESS.md and TODO.md were updated.
8
+ message, and progress.yaml and TODO.md were updated.
9
9
  exit_signal: complete
10
10
  2:
11
11
  id: E2
@@ -14,14 +14,14 @@ EXIT_CONDITIONS:
14
14
  The cycle completed but with notable issues. Possible causes:
15
15
  verification passed but with warnings, the committed work is narrower
16
16
  than intended due to scope reduction, or discoveries logged in
17
- PROGRESS.md suggest the next cycle may face blockers.
17
+ progress.yaml suggest the next cycle may face blockers.
18
18
  exit_signal: flagged
19
19
  3:
20
20
  id: E3
21
21
  condition: stuck
22
22
  description: >-
23
23
  Cannot complete a cycle because VISION.md does not exist and the
24
- brainstorm cannot proceed without the user, every available work item
24
+ vision bootstrap cannot proceed without the user, every available work item
25
25
  is blocked, or the verification suite is broken and cannot be fixed
26
26
  within the cycle's scope.
27
27
  exit_signal: stuck
@@ -3,7 +3,7 @@ VALIDATION:
3
3
  id: V1
4
4
  rule: verified_field_mandatory
5
5
  description: >-
6
- Every PROGRESS.md cycle entry MUST have a verified field. The field
6
+ Every progress.yaml cycle entry MUST have a verified field. The field
7
7
  carries either observed output from the primary entrypoint, an allowlisted
8
8
  N/A tag, or a free-form rationale of at least 8 words.
9
9
  severity: critical
@@ -14,9 +14,9 @@ VALIDATION:
14
14
  id: V2
15
15
  rule: one_cycle_per_invocation
16
16
  description: >-
17
- Build executes exactly one cycle per invocation. After logging (Step 9),
17
+ Build executes exactly one cycle per invocation. After logging (Step 8),
18
18
  the capability MUST stop. Multiple cycles require separate invocations or
19
- /loop.
19
+ an explicit user request.
20
20
  severity: critical
21
21
  checks:
22
22
  - "Only one cycle entry appended to PROGRESS.md per invocation"
@@ -24,7 +24,7 @@ VALIDATION:
24
24
  id: V3
25
25
  rule: no_remote_push
26
26
  description: >-
27
- Build MUST NEVER push to any remote repository. All commits are local
27
+ Build MUST NOT push to any remote repository. All commits are local
28
28
  only. Remote operations require explicit user instruction outside this
29
29
  capability.
30
30
  severity: critical
@@ -35,7 +35,7 @@ VALIDATION:
35
35
  rule: vision_readonly_during_cycle
36
36
  description: >-
37
37
  The canonical vision artifact MUST NOT be modified during a cycle. It may only be written
38
- during a brainstorm session (bootstrap or user-requested refinement).
38
+ during a vision bootstrap.
39
39
  severity: critical
40
40
  checks:
41
41
  - "Vision artifact not modified outside brainstorm"
@@ -43,7 +43,7 @@ VALIDATION:
43
43
  id: V5
44
44
  rule: consecutive_failure_guard
45
45
  description: >-
46
- If the last 3 PROGRESS.md entries all record failed cycles, build
46
+ If the last 3 progress.yaml entries all record failed cycles, build
47
47
  MUST stop and surface the pattern to the user. Do not attempt a 4th
48
48
  consecutive cycle on the same failing problem.
49
49
  severity: critical
@@ -59,7 +59,7 @@ VALIDATION:
59
59
  other agent-facing artifacts as YAML in .agentera/).
60
60
  severity: warning
61
61
  checks:
62
- - "DOCS.md checked before artifact access"
62
+ - "docs.yaml checked before artifact access"
63
63
  7:
64
64
  id: V7
65
65
  rule: execution_context_first
@@ -93,7 +93,7 @@ VALIDATION:
93
93
  severity: critical
94
94
  checks:
95
95
  - "No protected state mutation during context generation"
96
- - "No unsupported `agentera build` or `agentera build` command introduced"
96
+ - "No unsupported `agentera build` command introduced"
97
97
  10:
98
98
  id: V10
99
99
  rule: satisfaction_authority_boundary
@@ -4,16 +4,16 @@ EXIT_CONDITIONS:
4
4
  condition: complete
5
5
  description: >-
6
6
  DESIGN.md was written (Create/Replace mode), updated (Refine mode),
7
- or audited with findings reported (Audit mode). Validation script
8
- ran without errors, and all changes had explicit user approval.
7
+ or audited with findings reported (Audit mode). agentera check lint
8
+ --artifact design passed, and all changes had explicit user approval.
9
9
  exit_signal: complete
10
10
  2:
11
11
  id: E2
12
12
  condition: flagged
13
13
  description: >-
14
14
  The design system was produced or audited but with issues worth
15
- surfacing. Possible causes: validation passed with advisory warnings,
16
- the design drifts from VISION.md Identity, or audit findings were
15
+ surfacing. Possible causes: lint passed with advisory warnings,
16
+ the design drifts from vision Identity, or audit findings were
17
17
  neither fixed nor filed.
18
18
  exit_signal: flagged
19
19
  3:
@@ -21,7 +21,7 @@ EXIT_CONDITIONS:
21
21
  condition: stuck
22
22
  description: >-
23
23
  Cannot write DESIGN.md because the user declined to approve the
24
- draft, the validation script reports unresolvable errors, or the
24
+ draft, agentera check lint reports unresolvable errors, or the
25
25
  project's UI stack is inaccessible.
26
26
  exit_signal: stuck
27
27
  4:
@@ -14,13 +14,13 @@ VALIDATION:
14
14
  id: V2
15
15
  rule: vision_identity_coherence
16
16
  description: >-
17
- Design tokens MUST NOT conflict with VISION.md Identity. If the
17
+ Design tokens MUST NOT conflict with vision Identity. If the
18
18
  verbal identity says "warm and approachable" and the user wants a
19
19
  cold brutalist palette, the tension MUST be surfaced explicitly
20
20
  for the user to resolve.
21
21
  severity: critical
22
22
  checks:
23
- - "Design tokens cohere with VISION.md Identity"
23
+ - "Design tokens cohere with vision Identity"
24
24
  - "Tensions surfaced when detected"
25
25
  3:
26
26
  id: V3
@@ -5,11 +5,12 @@ ARTIFACTS:
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Reasoning trail with confidence labels. Discuss reads existing decisions
8
- through `agentera decisions --format json` and its source_contract to avoid
9
- re-deliberation, and writes new decision entries with confidence (DL1
10
- firm, DL2 provisional, DL3 exploratory). Compact older entries by applying
11
- schema COMPACTION rules; incomplete compacted entries are caveated context,
12
- not a reason for historical reconstruction during normal deliberation.
8
+ through `agentera state decisions --format json` and its source_contract
9
+ to avoid re-deliberation, and writes new decision entries with confidence
10
+ (DL1 firm, DL2 provisional, DL3 exploratory). Compact older entries by
11
+ applying schema COMPACTION rules; incomplete compacted entries are
12
+ caveated context, not a reason for historical reconstruction during
13
+ normal deliberation.
13
14
  2:
14
15
  id: A2
15
16
  artifact_id: vision
@@ -4,7 +4,7 @@ EXIT_CONDITIONS:
4
4
  condition: complete
5
5
  description: >-
6
6
  Deliberation reached a conclusion the user chose to act on; any
7
- requested artifacts (DECISIONS.md, VISION.md, OBJECTIVE.md, TODO.md)
7
+ requested artifacts (decisions, vision, objective, todo)
8
8
  were written with user approval, and the decision confidence level
9
9
  was captured.
10
10
  exit_signal: complete
@@ -15,7 +15,7 @@ EXIT_CONDITIONS:
15
15
  Deliberation concluded but the decision remains unresolved or
16
16
  provisional: the user wrapped up without a clear choice, significant
17
17
  tensions could not be resolved, or the conclusion contradicts prior
18
- decisions in DECISIONS.md without explicit acknowledgment.
18
+ decisions without explicit acknowledgment.
19
19
  exit_signal: flagged
20
20
  3:
21
21
  id: E3
@@ -13,16 +13,17 @@ VALIDATION:
13
13
  id: V2
14
14
  rule: user_approval_for_artifact_writes
15
15
  description: >-
16
- Discuss MUST NOT modify VISION.md, OBJECTIVE.md, or TODO.md without
17
- explicit user confirmation. Present drafts and get approval.
16
+ Discuss MUST NOT modify vision, objective, or todo artifacts (the
17
+ protected_write_boundaries) without explicit user confirmation. Present
18
+ drafts and get approval.
18
19
  severity: critical
19
20
  checks:
20
- - "User confirmation obtained before writing to VISION.md, OBJECTIVE.md, or TODO.md"
21
+ - "User confirmation obtained before writing to vision, objective, or todo artifacts"
21
22
  3:
22
23
  id: V3
23
24
  rule: decision_confidence_required
24
25
  description: >-
25
- Every DECISIONS.md entry MUST have a Confidence field with one of the
26
+ Every decision entry MUST have a Confidence field with one of the
26
27
  protocol-defined labels: firm (DL1), provisional (DL2), or
27
28
  exploratory (DL3).
28
29
  severity: critical
@@ -33,7 +34,7 @@ VALIDATION:
33
34
  id: V4
34
35
  rule: preserved_decision_fields
35
36
  description: >-
36
- DECISIONS.md entries MUST preserve the canonical top-level fields:
37
+ Decision entries MUST preserve the canonical top-level fields:
37
38
  Question, Context, Alternatives, Choice, Reasoning, Confidence,
38
39
  Feeds into. Win conditions stay inside Alternatives bullets.
39
40
  severity: critical
@@ -22,7 +22,6 @@ TRIGGERS:
22
22
  - "write docs"
23
23
  - "document this"
24
24
  - "create README"
25
- - "write CLAUDE.md"
26
25
  - "write AGENTS.md"
27
26
  - "docs first"
28
27
  - "document before building"
@@ -10,7 +10,7 @@ ARTIFACTS:
10
10
  canonical closure.
11
11
  2:
12
12
  id: A2
13
- artifact_id: optimera_harness
13
+ artifact_id: optimize_harness
14
14
  local_role: produces
15
15
  description: >-
16
16
  Eval script that measures the metric and outputs structured JSON. Written
@@ -5,7 +5,7 @@ EXIT_CONDITIONS:
5
5
  description: >-
6
6
  One experiment completed the full cycle: hypothesis formulated,
7
7
  implementation dispatched, regression check passed, metric measured,
8
- decision made (kept or discarded), and EXPERIMENTS.md updated.
8
+ decision made (kept or discarded), and experiments.yaml updated.
9
9
  exit_signal: complete
10
10
  2:
11
11
  id: E2
@@ -20,7 +20,7 @@ EXIT_CONDITIONS:
20
20
  id: E3
21
21
  condition: stuck
22
22
  description: >-
23
- Cannot proceed because OBJECTIVE.md is missing and the brainstorm cannot
23
+ Cannot proceed because objective.yaml is missing and the brainstorm cannot
24
24
  be completed without user input, the eval harness is broken and cannot
25
25
  be repaired without user approval, or the regression check infrastructure
26
26
  is unavailable.
@@ -24,12 +24,12 @@ VALIDATION:
24
24
  id: V3
25
25
  rule: objective_readonly_during_cycle
26
26
  description: >-
27
- OBJECTIVE.md MUST NOT be modified during a cycle except for canonical
27
+ objective.yaml MUST NOT be modified during a cycle except for canonical
28
28
  closure when the target is met. Other edits only happen during
29
29
  brainstorm or refine.
30
30
  severity: critical
31
31
  checks:
32
- - "OBJECTIVE.md only modified for closure during cycle"
32
+ - "objective.yaml only modified for closure during cycle"
33
33
  4:
34
34
  id: V4
35
35
  rule: one_experiment_per_invocation
@@ -3,7 +3,7 @@ EXIT_CONDITIONS:
3
3
  id: E1
4
4
  condition: complete
5
5
  description: >-
6
- All PLAN.md tasks are complete, the health check passed, and the
6
+ All plan tasks are complete, the health check passed, and the
7
7
  orchestration session concluded with all planned work finished.
8
8
  exit_signal: complete
9
9
  2:
@@ -18,7 +18,7 @@ EXIT_CONDITIONS:
18
18
  id: E3
19
19
  condition: stuck
20
20
  description: >-
21
- Cannot proceed. PLAN.md has circular dependencies preventing any task
21
+ Cannot proceed. The plan has circular dependencies preventing any task
22
22
  from becoming eligible, no target capabilities are available to
23
23
  delegate, or file access prevents reading or updating artifacts.
24
24
  The exit marker explains what is blocking progress.
@@ -27,8 +27,9 @@ EXIT_CONDITIONS:
27
27
  id: E4
28
28
  condition: waiting
29
29
  description: >-
30
- No PLAN.md exists and the bootstrap chain cannot proceed because
31
- VISION.md is absent and the user has not confirmed how to create one,
32
- or a dispatched capability returned waiting status requiring user input.
33
- The waiting bullet identifies the specific decision needed.
30
+ No plan exists and the bootstrap chain cannot proceed because the
31
+ vision artifact is absent and the user has not confirmed how to
32
+ create one, or a dispatched capability returned waiting status
33
+ requiring user input. The waiting bullet identifies the specific
34
+ decision needed.
34
35
  exit_signal: waiting
@@ -1,36 +1,36 @@
1
1
  VALIDATION:
2
2
  1:
3
3
  id: V1
4
- rule: never_read_source
4
+ rule: must_not_read_source
5
5
  description: >-
6
- Orchestrate MUST NEVER read implementation source code. It dispatches
7
- capabilities; it does not implement. Artifact files (PLAN.md, HEALTH.md,
8
- DECISIONS.md, PROGRESS.md, etc.) are not source code and are expected
9
- to be read. This rule verifies the prose explicitly states the
10
- source-code read prohibition.
6
+ Orchestrate MUST NOT read implementation source code. It dispatches
7
+ capabilities; it does not implement. Artifact files (`.agentera/*.yaml`,
8
+ `TODO.md`) are state records, not source code; raw reads are last-resort
9
+ after CLI context and listed fallback commands. This rule verifies the
10
+ instructions explicitly state the source-code read prohibition.
11
11
  severity: critical
12
12
  checks:
13
- - "orchestrate prose (packages/cli/src/capabilities/orchestrate/instructions.ts) contains NEVER read implementation source code"
13
+ - "orchestrate instructions (packages/cli/src/capabilities/orchestrate/instructions.ts) contains MUST NOT read implementation source code"
14
14
  2:
15
15
  id: V2
16
16
  rule: evaluation_gate_required
17
17
  description: >-
18
18
  Every completed task MUST be verified by audit before being marked
19
19
  complete. The orchestrator MUST NOT skip evaluation. This rule verifies
20
- the prose contains the never-skip-evaluation safety rail.
20
+ the instructions contain the must-not-skip-evaluation safety rail.
21
21
  severity: critical
22
22
  checks:
23
- - "orchestrate prose contains NEVER skip evaluation"
23
+ - "orchestrate instructions contains MUST NOT skip evaluation"
24
24
  3:
25
25
  id: V3
26
26
  rule: retry_budget_enforced
27
27
  description: >-
28
28
  No task may be retried more than 2 times. After the second failure,
29
29
  the task must be marked blocked. This rule verifies the retry budget
30
- is stated in the prose and safety rails.
30
+ is stated in the instructions and safety rails.
31
31
  severity: critical
32
32
  checks:
33
- - "orchestrate prose contains retry budget of 2"
33
+ - "orchestrate instructions contains retry a task more than 2 times"
34
34
  4:
35
35
  id: V4
36
36
  rule: exit_marker_required
@@ -40,22 +40,22 @@ VALIDATION:
40
40
  where status is one of EX1-EX4.
41
41
  severity: critical
42
42
  checks:
43
- - "orchestrate prose contains exit marker with glyph ⎈ (SG12)"
44
- - "orchestrate prose references exit signals EX1-EX4"
43
+ - "orchestrate instructions contains exit marker with glyph ⎈ (SG12)"
44
+ - "orchestrate instructions references exit signals EX1-EX4"
45
45
  5:
46
46
  id: V5
47
47
  rule: orchestrator_read_only_artifacts
48
48
  description: >-
49
- The orchestrator reads artifacts and updates PLAN.md task statuses and
50
- TODO.md blocked entries. It does NOT write to PROGRESS.md, CHANGELOG.md,
49
+ The orchestrator reads artifacts and updates plan task statuses and
50
+ TODO.md blocked entries. It does NOT write to progress, changelog,
51
51
  or any other capability-owned artifact. This rule verifies the
52
52
  artifacts schema reflects this constraint.
53
53
  severity: warning
54
54
  checks:
55
- - "PROGRESS.md is consumes only (not produces)"
56
- - "HEALTH.md is consumes only (not produces)"
57
- - "DECISIONS.md is consumes only (not produces)"
58
- - "VISION.md is consumes only (not produces)"
55
+ - "progress is consumes only (not produces)"
56
+ - "health is consumes only (not produces)"
57
+ - "decisions is consumes only (not produces)"
58
+ - "vision is consumes only (not produces)"
59
59
  6:
60
60
  id: V6
61
61
  rule: orchestration_context_first
@@ -66,19 +66,19 @@ VALIDATION:
66
66
  or decisions artifact reads.
67
67
  severity: critical
68
68
  checks:
69
- - "orchestrate prose contains agentera prime --context orchestrate --format json"
70
- - "orchestrate prose contains Use the returned `orchestration_context` before raw plan, progress, health, TODO, or decisions artifacts"
71
- - "orchestrate prose contains If `source_contract.complete_for_orchestration_context` is true, do not read raw plan, progress, health, TODO, or decisions artifacts"
69
+ - "orchestrate instructions contains agentera prime --context orchestrate --format json"
70
+ - "orchestrate instructions contains complete_for_orchestration_context"
71
+ - "orchestrate instructions contains no raw plan, progress, health, TODO, or decisions reads"
72
72
  7:
73
73
  id: V7
74
74
  rule: cli_fallback_before_raw_read
75
75
  description: >-
76
76
  When orchestration context is incomplete, Orchestrate MUST run listed
77
- routine CLI fallback commands before any last-resort raw artifact read.
77
+ fallback commands before any raw artifact read.
78
78
  severity: critical
79
79
  checks:
80
- - "orchestrate prose contains run the listed routine CLI fallback commands"
81
- - "orchestrate prose contains Read a raw artifact only as a last-resort diagnostic"
80
+ - "orchestrate instructions contains run listed fallback commands"
81
+ - "orchestrate instructions contains last-resort diagnostics"
82
82
  8:
83
83
  id: V8
84
84
  rule: caveats_preserved_for_evaluation
@@ -88,9 +88,9 @@ VALIDATION:
88
88
  audit.
89
89
  severity: critical
90
90
  checks:
91
- - "orchestrate prose contains compacted decision caveats"
92
- - "orchestrate prose contains stale health/profile/app caveats"
93
- - "orchestrate prose contains retry-state provenance"
91
+ - "orchestrate instructions contains compacted decision caveats"
92
+ - "orchestrate instructions contains stale health/profile/app caveats"
93
+ - "orchestrate instructions contains retry-state provenance"
94
94
  9:
95
95
  id: V9
96
96
  rule: satisfaction_authority_boundary
@@ -107,14 +107,14 @@ VALIDATION:
107
107
  - "Missing or compacted satisfaction caveats are preserved"
108
108
  10:
109
109
  id: V10
110
- rule: inspektera_citation_required
110
+ rule: audit_citation_required
111
111
  description: >-
112
112
  Orchestrate Step 3 Surface 2 audit delegation MUST require a
113
- citation: <file>:<line> (or not-applicable: <reason>) for every WARN and
114
- FAIL finding, and require verify_command for WARN rows with file:line
113
+ citation: <file>:<line> (or not-applicable: <reason>) for every FAIL
114
+ finding, and require verify_command for FAIL rows with file:line
115
115
  citations. Authority: references/cli/capability-instruction-contract.yaml#evaluator_handoff.
116
116
  severity: critical
117
117
  checks:
118
- - "orchestrate prose contains citation: `<file>:<line>` OR `not-applicable: <reason>`"
119
- - "orchestrate prose contains verify_command"
120
- - "orchestrate prose contains evaluator_handoff.output_requirements"
118
+ - "orchestrate instructions contains citation: `<file>:<line>` OR `not-applicable: <reason>`"
119
+ - "orchestrate instructions contains verify_command"
120
+ - "orchestrate instructions contains evaluator_handoff.output_requirements"
@@ -54,8 +54,35 @@ VALIDATION:
54
54
  rule: skip_level_for_trivial_work
55
55
  description: >-
56
56
  Plan MUST detect skip level for trivial work (single-file change,
57
- bug fix, config tweak, < 50 lines) and route directly to /build
58
- without producing a PLAN.md.
57
+ localized defect fix, or config tweak that touches no shared
58
+ abstraction) and route directly to /build without producing a
59
+ PLAN.md. LOC count is not a skip signal because small changes to
60
+ shared exports can ripple across many consumers.
59
61
  severity: critical
60
62
  checks:
61
63
  - "Trivial work routed to /build without plan"
64
+ 7:
65
+ id: V7
66
+ rule: full_plan_unknowns_required
67
+ description: >-
68
+ Every full plan MUST surface at least one planning-time known-unknown
69
+ in the `unknowns:` field. Each entry MUST include question,
70
+ affects_task, and resolve_by. Skip level and light plans are exempt
71
+ because they do not decompose work into interdependent tasks.
72
+ severity: warning
73
+ checks:
74
+ - "Full plans have a non-empty `unknowns:` list"
75
+ - "Each unknown entry has question, affects_task, resolve_by fields"
76
+ 8:
77
+ id: V8
78
+ rule: adversarial_review_dismissals_persisted
79
+ description: >-
80
+ Full plans MUST persist dismissed adversarial-review findings in the
81
+ artifact's `rejected:` field, each with issue text and rationale, so
82
+ downstream consumers (build, orchestrate, audit) inherit the
83
+ adjudication rather than relitigating. V3 enforces the review ran;
84
+ V8 enforces the dismissal provenance persists.
85
+ severity: warning
86
+ checks:
87
+ - "Full plans with dismissed critic findings have `rejected:` entries"
88
+ - "Each rejection has issue and rationale fields"
@@ -22,8 +22,7 @@ EXIT_CONDITIONS:
22
22
  condition: stuck
23
23
  description: >-
24
24
  Cannot generate or validate a profile because extraction scripts
25
- failed entirely, Python is unavailable, or session data sources
26
- are unreadable.
25
+ failed entirely or session data sources are unreadable.
27
26
  exit_signal: stuck
28
27
  4:
29
28
  id: E4
@@ -19,6 +19,6 @@ ARTIFACTS:
19
19
  artifact_id: profile
20
20
  local_role: consumes
21
21
  description: >-
22
- Research reads this via the effective profile script to weight
23
- applicability judgments. If missing, research proceeds without persona
24
- grounding.
22
+ Research reads the profile via research_context.profile from the prime
23
+ context to weight applicability judgments. If missing, research proceeds
24
+ without persona grounding.
@@ -3,9 +3,9 @@ EXIT_CONDITIONS:
3
3
  id: E1
4
4
  condition: complete
5
5
  description: >-
6
- VISION.md was written (Create/Replace mode) or updated (Refine mode)
7
- with explicit user approval. The vision is ambitious, concrete, and
8
- structured to sustain autonomous development.
6
+ The vision artifact was written (Create/Replace mode) or updated
7
+ (Refine mode) with explicit user approval. The vision is ambitious,
8
+ concrete, and structured to sustain autonomous development.
9
9
  exit_signal: complete
10
10
  2:
11
11
  id: E2
@@ -14,14 +14,15 @@ EXIT_CONDITIONS:
14
14
  The vision was produced but with weaknesses worth surfacing: the user
15
15
  settled for a less ambitious or less specific vision than pushed for,
16
16
  key sections (personas, principles, direction) are thin due to limited
17
- conversation depth, or the vision has unresolved tensions with existing
18
- DECISIONS.md entries.
17
+ conversation depth, or the vision has unresolved tensions with
18
+ existing decision entries.
19
19
  exit_signal: flagged
20
20
  3:
21
21
  id: E3
22
22
  condition: stuck
23
23
  description: >-
24
- Cannot write VISION.md because the user declined to approve the draft
24
+ Cannot write the vision artifact because the user declined to approve
25
+ the draft
25
26
  and no actionable revision direction was given, or codebase exploration
26
27
  failed in a way that would make the vision unreliable.
27
28
  exit_signal: stuck