agentera 3.0.0-dev.6 → 3.0.0-next.1

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 (195) hide show
  1. package/bundle/extract-corpus-parity.json +23 -0
  2. package/bundle/references/adapters/cursor.md +9 -8
  3. package/bundle/references/analysis/startup-measurement-contract.yaml +4 -4
  4. package/bundle/references/cli/parity-expected-actual-template.md +30 -0
  5. package/bundle/references/cli/update-channels.yaml +15 -0
  6. package/bundle/references/cli/vocabulary-index.yaml +6 -4
  7. package/bundle/references/cli/vocabulary.md +305 -301
  8. package/bundle/skills/agentera/SKILL.md +35 -27
  9. package/bundle/skills/agentera/capabilities/hej/schemas/artifacts.yaml +4 -1
  10. package/bundle/skills/agentera/capabilities/profilera/schemas/exit.yaml +2 -1
  11. package/bundle/skills/agentera/capability_schema_contract.yaml +28 -0
  12. package/bundle/skills/agentera/references/contract.md +324 -315
  13. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +38 -33
  14. package/dist/analytics/extractCorpus/cli.js +49 -1
  15. package/dist/analytics/extractCorpus/cli.js.map +1 -1
  16. package/dist/analytics/extractCorpus/copilotSessions.js +47 -5
  17. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -1
  18. package/dist/analytics/extractCorpus/core.js +11 -5
  19. package/dist/analytics/extractCorpus/core.js.map +1 -1
  20. package/dist/analytics/extractCorpus/corpus.js +26 -13
  21. package/dist/analytics/extractCorpus/corpus.js.map +1 -1
  22. package/dist/analytics/extractCorpus/coverageAudit.js +261 -0
  23. package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -0
  24. package/dist/analytics/extractCorpus/cursorSessions.js +6 -3
  25. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -1
  26. package/dist/analytics/extractCorpus/extractCorpusParity.js +105 -0
  27. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -0
  28. package/dist/analytics/extractCorpus/index.js +3 -0
  29. package/dist/analytics/extractCorpus/index.js.map +1 -1
  30. package/dist/analytics/extractCorpus/sqliteCaps.js +44 -0
  31. package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -0
  32. package/dist/analytics/extractCorpus/sqliteSessions.js +98 -5
  33. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -1
  34. package/dist/capabilities/inspirera/instructions.js +1 -1
  35. package/dist/capabilities/inspirera/instructions.js.map +1 -1
  36. package/dist/capabilities/planera/instructions.js +1 -1
  37. package/dist/capabilities/planera/instructions.js.map +1 -1
  38. package/dist/capabilities/profilera/instructions.js +1 -1
  39. package/dist/capabilities/profilera/instructions.js.map +1 -1
  40. package/dist/capabilities/realisera/instructions.js +1 -1
  41. package/dist/capabilities/realisera/instructions.js.map +1 -1
  42. package/dist/capabilities/resonera/instructions.js +1 -1
  43. package/dist/capabilities/resonera/instructions.js.map +1 -1
  44. package/dist/capabilities/visionera/instructions.js +1 -1
  45. package/dist/capabilities/visionera/instructions.js.map +1 -1
  46. package/dist/capabilities/visualisera/instructions.js +3 -4
  47. package/dist/capabilities/visualisera/instructions.js.map +1 -1
  48. package/dist/cli/appContext.js +2 -14
  49. package/dist/cli/appContext.js.map +1 -1
  50. package/dist/cli/capabilityContext/benchmark.js +2 -2
  51. package/dist/cli/capabilityContext/benchmark.js.map +1 -1
  52. package/dist/cli/capabilityContext/closeout.js +5 -5
  53. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  54. package/dist/cli/capabilityContext/evidence.js +6 -6
  55. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  56. package/dist/cli/capabilityContext/orchestration.js +5 -5
  57. package/dist/cli/capabilityContext/orchestration.js.map +1 -1
  58. package/dist/cli/capabilityContext/realisera.js +8 -8
  59. package/dist/cli/capabilityContext/realisera.js.map +1 -1
  60. package/dist/cli/capabilityContext/startup.js +8 -8
  61. package/dist/cli/capabilityContext/startup.js.map +1 -1
  62. package/dist/cli/capabilityContext/types.js +9 -9
  63. package/dist/cli/capabilityContext/types.js.map +1 -1
  64. package/dist/cli/commands/appHome.js +23 -0
  65. package/dist/cli/commands/appHome.js.map +1 -0
  66. package/dist/cli/commands/doctor.js +10 -105
  67. package/dist/cli/commands/doctor.js.map +1 -1
  68. package/dist/cli/commands/prime/bundleStatus.js +126 -0
  69. package/dist/cli/commands/prime/bundleStatus.js.map +1 -0
  70. package/dist/cli/commands/prime/collectOrientationState.js +143 -0
  71. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -0
  72. package/dist/cli/commands/prime/orientationOutput.js +172 -0
  73. package/dist/cli/commands/prime/orientationOutput.js.map +1 -0
  74. package/dist/cli/commands/prime/types.js +2 -0
  75. package/dist/cli/commands/prime/types.js.map +1 -0
  76. package/dist/cli/commands/prime/v1Migration.js +39 -0
  77. package/dist/cli/commands/prime/v1Migration.js.map +1 -0
  78. package/dist/cli/commands/prime.js +10 -549
  79. package/dist/cli/commands/prime.js.map +1 -1
  80. package/dist/cli/commands/report.js +8 -2
  81. package/dist/cli/commands/report.js.map +1 -1
  82. package/dist/cli/commands/state/docs.js +2 -2
  83. package/dist/cli/commands/state/docs.js.map +1 -1
  84. package/dist/cli/commands/state/todo.js +1 -1
  85. package/dist/cli/commands/state/todo.js.map +1 -1
  86. package/dist/cli/commands/validate.js +9 -9
  87. package/dist/cli/commands/validate.js.map +1 -1
  88. package/dist/cli/contracts/bundleStatus.js +2 -0
  89. package/dist/cli/contracts/bundleStatus.js.map +1 -0
  90. package/dist/cli/contracts/orientationState.js +2 -0
  91. package/dist/cli/contracts/orientationState.js.map +1 -0
  92. package/dist/cli/dispatch/argvParser.js +33 -0
  93. package/dist/cli/dispatch/argvParser.js.map +1 -0
  94. package/dist/cli/dispatch/check.js +18 -18
  95. package/dist/cli/dispatch/check.js.map +1 -1
  96. package/dist/cli/dispatch/commands.js +27 -0
  97. package/dist/cli/dispatch/commands.js.map +1 -0
  98. package/dist/cli/dispatch/index.js +3 -1
  99. package/dist/cli/dispatch/index.js.map +1 -1
  100. package/dist/cli/dispatch/lifecycle.js +100 -55
  101. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  102. package/dist/cli/dispatch/prime.js +31 -27
  103. package/dist/cli/dispatch/prime.js.map +1 -1
  104. package/dist/cli/dispatch/state.js +11 -16
  105. package/dist/cli/dispatch/state.js.map +1 -1
  106. package/dist/cli/help.js +30 -0
  107. package/dist/cli/help.js.map +1 -1
  108. package/dist/cli/orientation/attention.js +57 -0
  109. package/dist/cli/orientation/attention.js.map +1 -0
  110. package/dist/cli/orientation/corpusCoverage.js +71 -0
  111. package/dist/cli/orientation/corpusCoverage.js.map +1 -0
  112. package/dist/cli/orientation.js +40 -27
  113. package/dist/cli/orientation.js.map +1 -1
  114. package/dist/cli/startupCompletenessContract.js +49 -0
  115. package/dist/cli/startupCompletenessContract.js.map +1 -0
  116. package/dist/cli/todoSeverity.js +19 -0
  117. package/dist/cli/todoSeverity.js.map +1 -0
  118. package/dist/core/jsonValue.js +6 -0
  119. package/dist/core/jsonValue.js.map +1 -0
  120. package/dist/core/pyjson.js +67 -2
  121. package/dist/core/pyjson.js.map +1 -1
  122. package/dist/hooks/compaction/apply.js +25 -6
  123. package/dist/hooks/compaction/apply.js.map +1 -1
  124. package/dist/hooks/compaction/dryRun.js +3 -3
  125. package/dist/hooks/compaction/dryRun.js.map +1 -1
  126. package/dist/hooks/compaction/index.js +2 -2
  127. package/dist/hooks/compaction/index.js.map +1 -1
  128. package/dist/hooks/compaction/parse.js +132 -3
  129. package/dist/hooks/compaction/parse.js.map +1 -1
  130. package/dist/hooks/compaction/status.js +3 -5
  131. package/dist/hooks/compaction/status.js.map +1 -1
  132. package/dist/hooks/cursorSessionStart.js +10 -2
  133. package/dist/hooks/cursorSessionStart.js.map +1 -1
  134. package/dist/hooks/validateArtifact/markdown.js +57 -6
  135. package/dist/hooks/validateArtifact/markdown.js.map +1 -1
  136. package/dist/setup/cursor.js +1 -1
  137. package/dist/setup/cursor.js.map +1 -1
  138. package/dist/setup/doctor/report.js +2 -58
  139. package/dist/setup/doctor/report.js.map +1 -1
  140. package/dist/state/installRoot.js +49 -18
  141. package/dist/state/installRoot.js.map +1 -1
  142. package/dist/state/startupAnalysis/helpers.js +7 -52
  143. package/dist/state/startupAnalysis/helpers.js.map +1 -1
  144. package/dist/state/startupAnalysis/report.js +9 -31
  145. package/dist/state/startupAnalysis/report.js.map +1 -1
  146. package/dist/state/startupAnalysis/threshold.js +1 -1
  147. package/dist/state/startupAnalysis/threshold.js.map +1 -1
  148. package/dist/upgrade/appModel.js +1 -4
  149. package/dist/upgrade/appModel.js.map +1 -1
  150. package/dist/upgrade/bundleEvidence.js +34 -0
  151. package/dist/upgrade/bundleEvidence.js.map +1 -0
  152. package/dist/upgrade/channels.js +8 -1
  153. package/dist/upgrade/channels.js.map +1 -1
  154. package/dist/upgrade/cliProbe.js +22 -0
  155. package/dist/upgrade/cliProbe.js.map +1 -0
  156. package/dist/upgrade/coexistenceProbe.js +1 -4
  157. package/dist/upgrade/coexistenceProbe.js.map +1 -1
  158. package/dist/upgrade/compatibility.js +1 -4
  159. package/dist/upgrade/compatibility.js.map +1 -1
  160. package/dist/upgrade/doctor.js +168 -173
  161. package/dist/upgrade/doctor.js.map +1 -1
  162. package/dist/upgrade/doctorClassifier.js +208 -0
  163. package/dist/upgrade/doctorClassifier.js.map +1 -0
  164. package/dist/upgrade/migrateArtifactsV2ToV3.js +1 -1
  165. package/dist/upgrade/nextMajorDoctor.js +7 -3
  166. package/dist/upgrade/nextMajorDoctor.js.map +1 -1
  167. package/dist/upgrade/npxPlatformStatus.js +24 -0
  168. package/dist/upgrade/npxPlatformStatus.js.map +1 -0
  169. package/dist/upgrade/projectIntegration.js +54 -71
  170. package/dist/upgrade/projectIntegration.js.map +1 -1
  171. package/dist/upgrade/projectIntegrationDecision.js +93 -0
  172. package/dist/upgrade/projectIntegrationDecision.js.map +1 -0
  173. package/dist/upgrade/versionResolution.js +1 -1
  174. package/dist/upgrade/versionResolution.js.map +1 -1
  175. package/dist/validate/lifecycleAdapters/legacyPythonParity.js +93 -0
  176. package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +1 -0
  177. package/dist/validate/lifecycleAdapters/nodeFormChecks.js +488 -0
  178. package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +1 -0
  179. package/dist/validate/lifecycleAdapters/shared.js +198 -0
  180. package/dist/validate/lifecycleAdapters/shared.js.map +1 -0
  181. package/dist/validate/lifecycleAdapters.js +12 -722
  182. package/dist/validate/lifecycleAdapters.js.map +1 -1
  183. package/package.json +1 -1
  184. package/dist/cli/commands/backfill.js +0 -84
  185. package/dist/cli/commands/backfill.js.map +0 -1
  186. package/dist/cli/commands/state.js +0 -1023
  187. package/dist/cli/commands/state.js.map +0 -1
  188. package/dist/core/git.js +0 -43
  189. package/dist/core/git.js.map +0 -1
  190. package/dist/hooks/compaction.js +0 -935
  191. package/dist/hooks/compaction.js.map +0 -1
  192. package/dist/hooks/validateArtifact.js +0 -924
  193. package/dist/hooks/validateArtifact.js.map +0 -1
  194. package/dist/state/progressCommit.js +0 -289
  195. package/dist/state/progressCommit.js.map +0 -1
@@ -10,22 +10,22 @@ included when they shape cross-suite usage.
10
10
 
11
11
  ## Authority order
12
12
 
13
- | Authority | Owns |
14
- | --- | --- |
15
- | `references/cli/vocabulary-index.yaml` | Authority order, normalization rules, plain-language layer rules, and Decision 44 replacement boundaries. |
16
- | `skills/agentera/protocol.yaml` | Confidence, severity, decision labels, exit signals, visual tokens, glyphs, and phases. |
17
- | `skills/agentera/capability_schema_contract.yaml` | Capability schema structure, required groups, priorities, and primitive-reference fields. |
18
- | `skills/agentera/schemas/artifacts/*.yaml` | Artifact field grammar, status values, path contracts, and validation rules. |
19
- | `references/artifacts/artifact-registry-interface-model.yaml` | Artifact identity facts: `artifact_id`, display name, default path, producers, consumers, type, scope. |
20
- | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical statuses, deprecated aliases, operation verbs, status concepts, and consumer ownership boundaries. |
21
- | `references/cli/update-channels.yaml` | Stable and development update channels, dist-tag/git resolution, default channel, and override keys. |
22
- | `references/cli/bundle-skill-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for `bundle` and `SKILL.md` usage. |
23
- | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file contract, current `packages/cli/src/capabilities/<name>/instructions.ts` authority, and implemented `first_invocation_read` CLI/schema discoverability (D65 collapsed the legacy `full`/`compact_startup` distinction into a single `prime_context` value with runtime enforcement). |
24
- | `references/cli/routing-execution-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for routing, suggestions, delegation, worker spawning, runtime subagent mechanisms, and pre-spawn Git commits. |
25
- | `skills/agentera/SKILL.md` | Agentera routing entry point, routing model, CLI-first state access, installed-app status checks, and safety rails. |
26
- | `packages/cli/src/capabilities/*/instructions.ts` | Capability behavior, workflow grammar, step markers, and cross-capability boundaries. Loaded as a default-exported string constant and served via `agentera prime --context <name> --format json`. |
27
- | `the agentera CLI` and `packages/cli/src/upgrade (doctor/upgrade)` | CLI-visible command labels, upgrade output, and doctor diagnostics. |
28
- | `README.md`, `UPGRADE.md`, `DESIGN.md`, `.agentera/*.yaml` | User-facing phrasing, design vocabulary, and current project-state examples. |
13
+ | Authority | Owns |
14
+ | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15
+ | `references/cli/vocabulary-index.yaml` | Authority order, normalization rules, plain-language layer rules, and Decision 44 replacement boundaries. |
16
+ | `skills/agentera/protocol.yaml` | Confidence, severity, decision labels, exit signals, visual tokens, glyphs, and phases. |
17
+ | `skills/agentera/capability_schema_contract.yaml` | Capability schema structure, required groups, priorities, and primitive-reference fields. |
18
+ | `skills/agentera/schemas/artifacts/*.yaml` | Artifact field grammar, status values, path contracts, and validation rules. |
19
+ | `references/artifacts/artifact-registry-interface-model.yaml` | Artifact identity facts: `artifact_id`, display name, default path, producers, consumers, type, scope. |
20
+ | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical statuses, deprecated aliases, operation verbs, status concepts, and consumer ownership boundaries. |
21
+ | `references/cli/update-channels.yaml` | Stable and development update channels, dist-tag/git resolution, default channel, and override keys. |
22
+ | `references/cli/bundle-skill-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for `bundle` and `SKILL.md` usage. |
23
+ | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file contract, current `packages/cli/src/capabilities/<name>/instructions.ts` authority, and implemented `first_invocation_read` CLI/schema discoverability (D65 collapsed the legacy `full`/`compact_startup` distinction into a single `prime_context` value with runtime enforcement). |
24
+ | `references/cli/routing-execution-vocabulary.yaml` | Canonical concepts, compatibility boundaries, and classification rules for routing, suggestions, delegation, worker spawning, runtime subagent mechanisms, and pre-spawn Git commits. |
25
+ | `skills/agentera/SKILL.md` | Agentera routing entry point, routing model, CLI-first state access, installed-app status checks, and safety rails. |
26
+ | `packages/cli/src/capabilities/*/instructions.ts` | Capability behavior, workflow grammar, step markers, and cross-capability boundaries. Loaded as a default-exported string constant and served via `agentera prime --context <name> --format json`. |
27
+ | `the agentera CLI` and `packages/cli/src/upgrade (doctor/upgrade)` | CLI-visible command labels, upgrade output, and doctor diagnostics. |
28
+ | `README.md`, `UPGRADE.md`, `DESIGN.md`, `.agentera/*.yaml` | User-facing phrasing, design vocabulary, and current project-state examples. |
29
29
 
30
30
  ## Normalization rules
31
31
 
@@ -49,38 +49,39 @@ examples. Diagnostics should state object, state, cause, and fix.
49
49
 
50
50
  ## Product grammar
51
51
 
52
- | Term | Definition | Common sources |
53
- | --- | --- | --- |
54
- | Agentera | An opinionated mobile-first coding agent. One product brand across the monorepo (`@agentera/mobile`, `@agentera/web`, `@agentera/cli`). Structured `.agentera/` project state makes sessions compound. | `README.md`, `.agentera/vision.yaml` |
55
- | Product surface | A shipped user-facing package in the monorepo: `@agentera/mobile` (primary app), `@agentera/web` (site and docs), `@agentera/cli` (agent runtime and state CLI). | `README.md`, `AGENTS.md`, `packages/*/README.md` |
56
- | @agentera/mobile | The flagship mobile/web app package at `packages/mobile`. SvelteKit, Cursor SDK, Cloudflare Worker. | `packages/mobile/README.md`, `packages/mobile/DESIGN.md` |
57
- | Agentera skill | Internal runtime-loaded skill at `skills/agentera/`. Contains the routing entry and twelve capabilities. Contributor and editor-integration surface, not the primary product headline. | `skills/agentera/SKILL.md` |
58
- | Capability | A routed behavioral unit inside the Agentera skill, with the prose module `packages/cli/src/capabilities/<name>/instructions.ts` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. | `AGENTS.md`, `skills/agentera/capabilities/*`, `packages/cli/src/capabilities/*` |
59
- | Capability alias | User-facing English name in the mobile app (e.g. `brief`, `discuss`) mapped to internal `-era` IDs (e.g. `hej`, `resonera`). Documented in `packages/mobile/README.md`; schemas retain internal IDs. | `packages/mobile/README.md`, `.agentera/decisions.yaml` |
60
- | Shared protocol | Internal primitive vocabulary in `protocol.yaml`: confidence, severity, decision labels, exits, visual tokens, glyphs, and phases. | `skills/agentera/protocol.yaml` |
61
- | Capability schema contract | The executable contract for capability schema groups, stable IDs, priorities, deprecations, and primitive references. | `skills/agentera/capability_schema_contract.yaml` |
62
- | Project state | Structured files that preserve intent, decisions, plans, progress, health, docs, design, and session continuity. | `README.md`, `.agentera/docs.yaml` |
63
- | Project history | Durable history kept in files so future agents do not reconstruct history from chat residue. | `README.md`, `.agentera/progress.yaml` |
64
- | Saved project context | Project artifacts plus global profile data that let future sessions reuse context and preferences. | `README.md`, `profilera` prose |
65
- | Sharp colleague | Agentera's voice: direct, opinionated, evidence-backed, warm enough to collaborate, and willing to push back. | `.agentera/vision.yaml`, `DESIGN.md`, capability prose |
66
- | Docs-first workflow | Document intended behavior before tests and code; docs define intent, tests enforce it, code implements it. | `dokumentera`, `planera`, `realisera` prose |
52
+ | Term | Definition | Common sources |
53
+ | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
54
+ | Agentera | An opinionated mobile-first coding agent. One product brand across delivery surfaces `@agentera/mobile`, `@agentera/web`, `@agentera/cli`, and editor skill/plugin runtimes. Structured `.agentera/` project state makes sessions compound. | `README.md`, `.agentera/vision.yaml` |
55
+ | Product surface | Where the same fixed Agentera workflow ships: `@agentera/mobile` (primary app), `@agentera/web` (site and docs), `@agentera/cli` (agent runtime and state CLI), and editor skill/plugin runtimes (Cursor, Claude, OpenCode, Codex, Copilot). Not extension hosts — delivery shells. | `README.md`, `AGENTS.md`, `packages/*/README.md`, `.agentera/decisions.yaml` |
56
+ | @agentera/mobile | The flagship mobile/web app package at `packages/mobile`. SvelteKit, Cursor SDK, Cloudflare Worker. | `packages/mobile/README.md`, `packages/mobile/DESIGN.md` |
57
+ | Agentera skill | Runtime-loaded skill at `skills/agentera/` — a delivery surface for the same twelve-capability workflow inside supported editors. Contains the routing entry and twelve capabilities; not user extensibility. | `skills/agentera/SKILL.md`, `README.md` Internals |
58
+ | Capability | A routed behavioral unit inside the Agentera skill, with the prose module `packages/cli/src/capabilities/<name>/instructions.ts` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. | `AGENTS.md`, `skills/agentera/capabilities/*`, `packages/cli/src/capabilities/*` |
59
+ | Capability canonical name (v3) | The English name binding for v3+ capability invocation, per Decision 70. Promoted from the Decision 43 alias set. Mobile UX, web docs, editor skills, and the CLI all use the same English name; the v2 stable distribution uses the legacy Swedish `-era` IDs (see `Legacy Swedish capability names`). | `.agentera/decisions.yaml` (D43, D70), `references/cli/vocabulary-index.yaml` (protected_surfaces) |
60
+ | Legacy Swedish capability names (v2 stable) | The historical Swedish `-era` IDs (e.g. `hej`, `resonera`) used by the v2 stable distribution (`npx -y agentera@latest`) and preserved as historical references in archived plans, decisions, and changelogs. Out of scope for v3 surface per Decision 70. Coexistence probe surfaces per-distribution naming divergence. | `.agentera/decisions.yaml` (D70), `references/cli/vocabulary-index.yaml` (protected_surfaces) |
61
+ | Shared protocol | Internal primitive vocabulary in `protocol.yaml`: confidence, severity, decision labels, exits, visual tokens, glyphs, and phases. | `skills/agentera/protocol.yaml` |
62
+ | Capability schema contract | The executable contract for capability schema groups, stable IDs, priorities, deprecations, and primitive references. | `skills/agentera/capability_schema_contract.yaml` |
63
+ | Project state | Structured files that preserve intent, decisions, plans, progress, health, docs, design, and session continuity. | `README.md`, `.agentera/docs.yaml` |
64
+ | Project history | Durable history kept in files so future agents do not reconstruct history from chat residue. | `README.md`, `.agentera/progress.yaml` |
65
+ | Saved project context | Project artifacts plus global profile data that let future sessions reuse context and preferences. | `README.md`, `profilera` prose |
66
+ | Sharp colleague | Agentera's voice: direct, opinionated, evidence-backed, warm enough to collaborate, and willing to push back. | `.agentera/vision.yaml`, `DESIGN.md`, capability prose |
67
+ | Docs-first workflow | Document intended behavior before tests and code; docs define intent, tests enforce it, code implements it. | `dokumentera`, `planera`, `realisera` prose |
67
68
 
68
69
  ## Capability grammar
69
70
 
70
- | Glyph | Capability | Role |
71
- | --- | --- | --- |
72
- | `⌂` | hej | Orientation, routing, dashboard briefing, and next best action. |
73
- | `⛥` | visionera | Project direction, north star, principles, identity, and strategic tensions. |
74
- | `❈` | resonera | Structured deliberation, tradeoff pressure, and decision thinking. |
75
- | `⬚` | inspirera | External pattern analysis and useful cross-pollination. |
76
- | `≡` | planera | Planning with behavioral acceptance criteria; owns WHAT and WHY. |
77
- | `⧉` | realisera | Verified autonomous development cycle; owns HOW. |
78
- | `⎘` | optimera | Metric-driven optimization through one experiment per invocation. |
79
- | `⛶` | inspektera | Codebase health audit, architecture review, and artifact current-state review. |
80
- | `▤` | dokumentera | Documentation layer; owns docs-first workflow guidance. |
81
- | `♾` | profilera | Reusable decision profile and preference extraction. |
82
- | `◰` | visualisera | Visual identity, design tokens, and design-system language. |
83
- | `⎈` | orkestrera | Multi-cycle orchestration; dispatches work and evaluates completion. |
71
+ | Glyph | Capability | Role |
72
+ | ----- | ----------- | ------------------------------------------------------------------------------ |
73
+ | `⌂` | hej | Orientation, routing, dashboard briefing, and next best action. |
74
+ | `⛥` | visionera | Project direction, north star, principles, identity, and strategic tensions. |
75
+ | `❈` | resonera | Structured deliberation, tradeoff pressure, and decision thinking. |
76
+ | `⬚` | inspirera | External pattern analysis and useful cross-pollination. |
77
+ | `≡` | planera | Planning with behavioral acceptance criteria; owns WHAT and WHY. |
78
+ | `⧉` | realisera | Verified autonomous development cycle; owns HOW. |
79
+ | `⎘` | optimera | Metric-driven optimization through one experiment per invocation. |
80
+ | `⛶` | inspektera | Codebase health audit, architecture review, and artifact current-state review. |
81
+ | `▤` | dokumentera | Documentation layer; owns docs-first workflow guidance. |
82
+ | `♾` | profilera | Reusable decision profile and preference extraction. |
83
+ | `◰` | visualisera | Visual identity, design tokens, and design-system language. |
84
+ | `⎈` | orkestrera | Multi-cycle orchestration; dispatches work and evaluates completion. |
84
85
 
85
86
  Capability names use Swedish-style `-era` verb forms. The name is the action:
86
87
  `planera` plans, `realisera` realizes, `optimera` optimizes.
@@ -112,36 +113,36 @@ the prose module directly.
112
113
 
113
114
  ## Invocation and routing grammar
114
115
 
115
- | Term | Definition |
116
- | --- | --- |
117
- | CLI-first state access | Read project state through `agentera` top-level commands before raw artifact reads. |
118
- | Top-level state commands | The canonical namespace command is `state` followed by a subcommand (`plan`, `progress`, `health`, `todo`, `decisions`, `docs`, `objective`, `experiments`, `query`). Legacy top-level aliases remain during migration; see [audience-namespace-cli-migration.yaml](references/cli/audience-namespace-cli-migration.yaml). |
119
- | Artifact-backed briefing | Any briefing or routing decision backed by Agentera project artifacts. It must use CLI-first state access. |
120
- | Bare `/agentera` | Invocation without a specific request. It delegates to `hej` and renders the Hej dashboard from one composite source command. |
121
- | Hej dashboard | User-facing project briefing with logo, status metrics, a narrative read inside `status`, attention, next action, and `⌂ hej · <status>`. Issues summary uses `critical · degraded · annoying` only. |
122
- | `agentera hej` | Compact CLI source data for the caller-rendered dashboard. It is not the dashboard itself. |
123
- | Direct route | A canonical capability name with optional following topic text, `/agentera <capability-name>` with optional topic text, or `/agentera <primary-alias>` routes directly to that capability and bypasses natural-language matching. |
124
- | Canonical capability route | A Swedish capability name such as `resonera`, `planera`, or `orkestrera`, optionally followed by topic text, plus the slash form `/agentera <capability-name>` with optional topic text. Canonical names remain protocol identity. |
125
- | Primary route alias | The one plain `/agentera <alias>` direct route for a capability, owned by `ROUTE_ALIASES.primary_aliases`. Each canonical capability has exactly one primary alias. |
126
- | Secondary request wording | Natural-language phrases in capability trigger schemas, such as `deliberate`, `brainstorm`, `rubber duck`, `brief`, and `what's next`. They route through trigger matching and are not primary aliases. |
127
- | Natural-language trigger | A phrase in `schemas/triggers.yaml` that maps a request to a capability. |
128
- | Trigger priority | `high`, `medium`, or `low`; owned by the schema contract. |
129
- | High-confidence match | A natural-language request with enough trigger evidence to route without asking. |
130
- | Borderline match | A request with competing plausible routes. Agentera asks for disambiguation. |
131
- | Fallback to hej | No sufficient match routes to hej for orientation. |
132
- | Concrete next action | A route suggestion tied to an object such as `PLAN Task N`, `TODO`, `OBJECTIVE`, or `VISION refresh`. |
133
- | Suggest, don't force | Hej recommends the next capability but waits for user confirmation. |
134
- | Capability handoff label | A recommendation from one capability to another. Use glyph plus canonical name, such as `⧉ realisera` or `≡ planera`, not standalone slash-capability names. SG priority codes are internal protocol references and are not user-facing handoff labels. |
135
- | Explicit route documentation | User-facing examples that teach the actual entry route. Use `/agentera <alias>` such as `/agentera build`; do not present aliases as CLI commands. |
136
- | Runtime question tool | Host-native bounded-choice prompt. Current examples: Claude Code `AskUserQuestion`, Copilot `ask_user`, Codex `request_user_input`, and OpenCode `question`. These are guidance examples, not schema authority. |
137
- | Question-tool gating | Use a native question tool only for at least two meaningful non-terminal next actions or consequential Proceed/Cancel; `Done` and custom/free-form answers do not count as alternatives. Initial Agentera/hej briefs stay free-form unless bounded choices were requested or the suggested next step is a state-changing Proceed/Cancel handoff. A single non-mutating suggested handoff may use a free-form prompt, but a single state-changing handoff uses native Proceed/Cancel confirmation. State-changing means the proposed next step may write artifacts, edit code, run optimization or orchestration cycles, apply migrations, refresh app/runtime state, or otherwise mutate project/runtime state. Apply the behavior rule first, with examples such as ⧉ realisera, ≡ planera when creating or updating plans, ▤ dokumentera when writing docs, ⎘ optimera when running or applying optimization cycles, and ⎈ orkestrera when dispatching cycles. This dispatcher rule governs hej and capability handoff prompts; invoked capability prose can impose stricter question-tool requirements. |
138
- | Handoff confirmation | Clear free-form acceptance of the named single suggestion confirms invocation. Selecting a downstream capability option in a bounded prompt also confirms invocation; selecting `Done` stops without routing. Ambiguous replies get one clarifying question. |
139
- | Route | Direct user invocation by canonical capability name, primary alias, or slash route. A route is already consent to invoke the capability and does not need an extra handoff confirmation. |
140
- | Suggest | Recommend a downstream capability and wait for confirmation. |
141
- | Delegate | Orkestrera assigns approved plan work to a worker capability during an explicitly orchestrated flow. |
142
- | Spawn | Realisera or Optimera launches an isolated runtime worker through the host subagent mechanism. |
143
- | Subagent mechanism | Runtime support for worker execution through Claude Code, OpenCode, Codex CLI, Copilot CLI, Cursor IDE, or another host-native worker surface. |
144
- | Legacy bridge | Temporary v1 entry points, especially `/hej`, that guide users to `/agentera` and the v2 upgrade path. |
116
+ | Term | Definition |
117
+ | ---------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
118
+ | CLI-first state access | Read project state through `agentera` top-level commands before raw artifact reads. |
119
+ | Top-level state commands | The canonical namespace command is `state` followed by a subcommand (`plan`, `progress`, `health`, `todo`, `decisions`, `docs`, `objective`, `experiments`, `query`). Legacy top-level aliases remain during migration; see [audience-namespace-cli-migration.yaml](references/cli/audience-namespace-cli-migration.yaml). |
120
+ | Artifact-backed briefing | Any briefing or routing decision backed by Agentera project artifacts. It must use CLI-first state access. |
121
+ | Bare `/agentera` | Invocation without a specific request. It delegates to `hej` and renders the Hej dashboard from one composite source command. |
122
+ | Hej dashboard | User-facing project briefing with logo, status metrics, a narrative read inside `status`, attention, next action, and `⌂ hej · <status>`. Issues summary uses `critical · degraded · annoying` only. |
123
+ | `agentera hej` | Compact CLI source data for the caller-rendered dashboard. It is not the dashboard itself. |
124
+ | Direct route | A canonical capability name with optional following topic text, `/agentera <capability-name>` with optional topic text, or `/agentera <primary-alias>` routes directly to that capability and bypasses natural-language matching. |
125
+ | Canonical capability route | A Swedish capability name such as `resonera`, `planera`, or `orkestrera`, optionally followed by topic text, plus the slash form `/agentera <capability-name>` with optional topic text. Canonical names remain protocol identity. |
126
+ | Primary route alias | The one plain `/agentera <alias>` direct route for a capability, owned by `ROUTE_ALIASES.primary_aliases`. Each canonical capability has exactly one primary alias. |
127
+ | Secondary request wording | Natural-language phrases in capability trigger schemas, such as `deliberate`, `brainstorm`, `rubber duck`, `brief`, and `what's next`. They route through trigger matching and are not primary aliases. |
128
+ | Natural-language trigger | A phrase in `schemas/triggers.yaml` that maps a request to a capability. |
129
+ | Trigger priority | `high`, `medium`, or `low`; owned by the schema contract. |
130
+ | High-confidence match | A natural-language request with enough trigger evidence to route without asking. |
131
+ | Borderline match | A request with competing plausible routes. Agentera asks for disambiguation. |
132
+ | Fallback to hej | No sufficient match routes to hej for orientation. |
133
+ | Concrete next action | A route suggestion tied to an object such as `PLAN Task N`, `TODO`, `OBJECTIVE`, or `VISION refresh`. |
134
+ | Suggest, don't force | Hej recommends the next capability but waits for user confirmation. |
135
+ | Capability handoff label | A recommendation from one capability to another. Use glyph plus canonical name, such as `⧉ realisera` or `≡ planera`, not standalone slash-capability names. SG priority codes are internal protocol references and are not user-facing handoff labels. |
136
+ | Explicit route documentation | User-facing examples that teach the actual entry route. Use `/agentera <alias>` such as `/agentera build`; do not present aliases as CLI commands. |
137
+ | Runtime question tool | Host-native bounded-choice prompt. Current examples: Claude Code `AskUserQuestion`, Copilot `ask_user`, Codex `request_user_input`, and OpenCode `question`. These are guidance examples, not schema authority. |
138
+ | Question-tool gating | Use a native question tool only for at least two meaningful non-terminal next actions or consequential Proceed/Cancel; `Done` and custom/free-form answers do not count as alternatives. Initial Agentera/hej briefs stay free-form unless bounded choices were requested or the suggested next step is a state-changing Proceed/Cancel handoff. A single non-mutating suggested handoff may use a free-form prompt, but a single state-changing handoff uses native Proceed/Cancel confirmation. State-changing means the proposed next step may write artifacts, edit code, run optimization or orchestration cycles, apply migrations, refresh app/runtime state, or otherwise mutate project/runtime state. Apply the behavior rule first, with examples such as ⧉ realisera, ≡ planera when creating or updating plans, ▤ dokumentera when writing docs, ⎘ optimera when running or applying optimization cycles, and ⎈ orkestrera when dispatching cycles. This dispatcher rule governs hej and capability handoff prompts; invoked capability prose can impose stricter question-tool requirements. |
139
+ | Handoff confirmation | Clear free-form acceptance of the named single suggestion confirms invocation. Selecting a downstream capability option in a bounded prompt also confirms invocation; selecting `Done` stops without routing. Ambiguous replies get one clarifying question. |
140
+ | Route | Direct user invocation by canonical capability name, primary alias, or slash route. A route is already consent to invoke the capability and does not need an extra handoff confirmation. |
141
+ | Suggest | Recommend a downstream capability and wait for confirmation. |
142
+ | Delegate | Orkestrera assigns approved plan work to a worker capability during an explicitly orchestrated flow. |
143
+ | Spawn | Realisera or Optimera launches an isolated runtime worker through the host subagent mechanism. |
144
+ | Subagent mechanism | Runtime support for worker execution through Claude Code, OpenCode, Codex CLI, Copilot CLI, Cursor IDE, or another host-native worker surface. |
145
+ | Legacy bridge | Temporary v1 entry points, especially `/hej`, that guide users to `/agentera` and the v2 upgrade path. |
145
146
 
146
147
  CLI-visible `agentera hej` labels are source labels. Preserve them in CLI tests
147
148
  and parsing code, but transform them before presenting a user dashboard:
@@ -150,24 +151,27 @@ and parsing code, but transform them before presenting a user dashboard:
150
151
 
151
152
  Primary route aliases are slash-route vocabulary, not CLI command vocabulary:
152
153
 
153
- | Canonical capability | Primary route alias |
154
- | --- | --- |
155
- | `hej` | `/agentera status` |
156
- | `visionera` | `/agentera vision` |
157
- | `resonera` | `/agentera discuss` |
158
- | `inspirera` | `/agentera research` |
159
- | `planera` | `/agentera plan` |
160
- | `realisera` | `/agentera build` |
161
- | `optimera` | `/agentera optimize` |
162
- | `inspektera` | `/agentera audit` |
163
- | `dokumentera` | `/agentera document` |
164
- | `profilera` | `/agentera profile` |
165
- | `visualisera` | `/agentera design` |
166
- | `orkestrera` | `/agentera orchestrate` |
167
-
168
- Do not teach primary aliases as CLI state commands. The CLI state surface
169
- remains `hej`, `plan`, `progress`, `health`, `todo`, `decisions`, `docs`,
170
- `objective`, `experiments`, and advanced `query`.
154
+ | Canonical capability (v3) | Legacy Swedish ID (v2 stable) | Slash route |
155
+ | ------------------------- | ----------------------------- | ------------------------ |
156
+ | `status` | `hej` | `/agentera status` |
157
+ | `vision` | `visionera` | `/agentera vision` |
158
+ | `discuss` | `resonera` | `/agentera discuss` |
159
+ | `research` | `inspirera` | `/agentera research` |
160
+ | `plan` | `planera` | `/agentera plan` |
161
+ | `build` | `realisera` | `/agentera build` |
162
+ | `optimize` | `optimera` | `/agentera optimize` |
163
+ | `audit` | `inspektera` | `/agentera audit` |
164
+ | `document` | `dokumentera` | `/agentera document` |
165
+ | `profile` | `profilera` | `/agentera profile` |
166
+ | `design` | `visualisera` | `/agentera design` |
167
+ | `orchestrate` | `orkestrera` | `/agentera orchestrate` |
168
+
169
+ Do not teach primary aliases as CLI state commands. v3 orientation is
170
+ `agentera prime` (capability ID `status` via `prime --context status`); routine
171
+ state reads use `agentera state plan`, `state progress`, `state health`,
172
+ `state todo`, `state decisions`, `state docs`, `state objective`,
173
+ `state experiments`, and advanced `state query`. The v2 stable distribution
174
+ retains `hej` and the rest of the Swedish capability surface per Decision 70.
171
175
 
172
176
  When capability prose recommends another capability, use the handoff label
173
177
  grammar (`<glyph> <capability>`). Keep slash forms only when documenting the
@@ -196,23 +200,23 @@ ambiguous-term sweep remain separate follow-up work.
196
200
 
197
201
  ## Artifact grammar
198
202
 
199
- | Term | Definition |
200
- | --- | --- |
201
- | Artifact | A project or agent state file owned by one or more capabilities. |
202
- | Human-facing artifact | A root-level Markdown artifact intended for people, such as `TODO.md`, `CHANGELOG.md`, or `DESIGN.md`. |
203
- | Severity band policy | TODO.md severity bands are header-only allowed for Degraded (⇉), Normal (→), and Annoying (⇢); Critical (⇶) is enforced and must contain at least one `- [type]` item. Authority: `skills/agentera/schemas/artifacts/todo.yaml` CONVENTION TC6; executable rule in `packages/cli/src/hooks/validateArtifact.ts` `validateMdItems`. |
204
- | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
205
- | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
206
- | Canonical artifact name | Protocol `artifact_id` such as `plan`, `progress`, or `docs`; human-facing Markdown filenames such as `TODO.md` are `display_name` values, not protocol identity. |
207
- | Resolved artifact path | The actual path after consulting `.agentera/docs.yaml` mapping or the default layout. |
208
- | Artifact mapping | `.agentera/docs.yaml` rows that map `artifact_id` values to project-local paths and producers. |
209
- | ArtifactRegistry | The registry interface model for artifact IDs, display names, default paths, producers, consumers, type, scope, and special cases. |
210
- | `artifact_id` | Machine identifier such as `progress`, `health`, `docs`, or `objective`. |
211
- | `display_name` | Human-readable filename label such as `VISION.md` or `TODO.md`; registry-owned, not protocol identity. |
212
- | `default_path` | Registry-owned path used when no docs mapping overrides it. |
213
- | `local_role` | Capability relationship to an artifact: `produces`, `consumes`, or `produces_and_consumes`. |
214
- | Docs override boundary | `docs.yaml` may override paths for known display names; it must not redefine canonical identity facts. |
215
- | Objective state | Optimera state under `.agentera/optimera/<objective-name>/`, including `objective.yaml`, `experiments.yaml`, and harness files. |
203
+ | Term | Definition |
204
+ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
205
+ | Artifact | A project or agent state file owned by one or more capabilities. |
206
+ | Human-facing artifact | A root-level Markdown artifact intended for people, such as `TODO.md`, `CHANGELOG.md`, or `DESIGN.md`. |
207
+ | Severity band policy | TODO.md severity bands (⇶ Critical, Degraded, Normal, Annoying) may be header-only when they have no open work; open items use `- [ ] [type:train]` only. Authority: `skills/agentera/schemas/artifacts/todo.yaml` CONVENTION TC5; executable rule in `packages/cli/src/hooks/validateArtifact/markdown.ts` `validateMdItems`. |
208
+ | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
209
+ | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
210
+ | Canonical artifact name | Protocol `artifact_id` such as `plan`, `progress`, or `docs`; human-facing Markdown filenames such as `TODO.md` are `display_name` values, not protocol identity. |
211
+ | Resolved artifact path | The actual path after consulting `.agentera/docs.yaml` mapping or the default layout. |
212
+ | Artifact mapping | `.agentera/docs.yaml` rows that map `artifact_id` values to project-local paths and producers. |
213
+ | ArtifactRegistry | The registry interface model for artifact IDs, display names, default paths, producers, consumers, type, scope, and special cases. |
214
+ | `artifact_id` | Machine identifier such as `progress`, `health`, `docs`, or `objective`. |
215
+ | `display_name` | Human-readable filename label such as `VISION.md` or `TODO.md`; registry-owned, not protocol identity. |
216
+ | `default_path` | Registry-owned path used when no docs mapping overrides it. |
217
+ | `local_role` | Capability relationship to an artifact: `produces`, `consumes`, or `produces_and_consumes`. |
218
+ | Docs override boundary | `docs.yaml` may override paths for known display names; it must not redefine canonical identity facts. |
219
+ | Objective state | Optimera state under `.agentera/optimera/<objective-name>/`, including `objective.yaml`, `experiments.yaml`, and harness files. |
216
220
 
217
221
  Canonical artifact IDs include `vision`, `decisions`, `plan`, `progress`,
218
222
  `todo`, `health`, `docs`, `design`, `profile`, `objective`, `experiments`,
@@ -223,12 +227,12 @@ Canonical artifact IDs include `vision`, `decisions`, `plan`, `progress`,
223
227
 
224
228
  ### Exit signals
225
229
 
226
- | Signal | Meaning | Use |
227
- | --- | --- | --- |
228
- | `complete` | The workflow finished successfully. | Normal completion. |
229
- | `flagged` | Work completed with caveats the user should know. | List each concern. |
230
- | `stuck` | The capability cannot proceed. | State blocker and attempted work. |
231
- | `waiting` | Required information is missing. | State exactly what is needed. |
230
+ | Signal | Meaning | Use |
231
+ | ---------- | ------------------------------------------------- | --------------------------------- |
232
+ | `complete` | The workflow finished successfully. | Normal completion. |
233
+ | `flagged` | Work completed with caveats the user should know. | List each concern. |
234
+ | `stuck` | The capability cannot proceed. | State blocker and attempted work. |
235
+ | `waiting` | Required information is missing. | State exactly what is needed. |
232
236
 
233
237
  Exit marker grammar is `<glyph> <capability> · <status>`, for example
234
238
  `▤ dokumentera · complete`. For `flagged`, `stuck`, and `waiting`, add `▸`
@@ -236,41 +240,41 @@ details.
236
240
 
237
241
  ### Finding severity
238
242
 
239
- | Value | Meaning |
240
- | --- | --- |
243
+ | Value | Meaning |
244
+ | ---------- | -------------------------------------------------------- |
241
245
  | `critical` | Broken functionality, security issue, or data-loss risk. |
242
- | `warning` | Works but poorly, confusingly, or in a fragile way. |
243
- | `info` | Minor, cosmetic, or low-impact improvement. |
246
+ | `warning` | Works but poorly, confusingly, or in a fragile way. |
247
+ | `info` | Minor, cosmetic, or low-impact improvement. |
244
248
 
245
249
  ### Issue severity
246
250
 
247
- | Value | Glyph | Meaning |
248
- | --- | --- | --- |
249
- | `critical` | `⇶` | Blocks progress or breaks functionality. |
250
- | `degraded` | `⇉` | Works, but poorly, slowly, or fragily. |
251
- | `normal` | `→` | Standard work. |
252
- | `annoying` | `⇢` | Cosmetic or minor friction. |
251
+ | Value | Glyph | Meaning |
252
+ | ---------- | ----- | ---------------------------------------- |
253
+ | `critical` | `⇶` | Blocks progress or breaks functionality. |
254
+ | `degraded` | `⇉` | Works, but poorly, slowly, or fragily. |
255
+ | `normal` | `→` | Standard work. |
256
+ | `annoying` | `⇢` | Cosmetic or minor friction. |
253
257
 
254
258
  ### Confidence language
255
259
 
256
- | Value | Meaning |
257
- | --- | --- |
258
- | `firm` | User is committed. Treat as a hard constraint. |
260
+ | Value | Meaning |
261
+ | ------------- | ----------------------------------------------- |
262
+ | `firm` | User is committed. Treat as a hard constraint. |
259
263
  | `provisional` | Best current answer. Treat as a strong default. |
260
- | `exploratory` | Direction to try. Treat as a suggestion. |
264
+ | `exploratory` | Direction to try. Treat as a suggestion. |
261
265
 
262
266
  Numeric confidence is `0-100`: `90-100` verified, `70-89` strong,
263
267
  `50-69` moderate, `30-49` weak, and `0-29` speculative.
264
268
 
265
269
  ### Phase language
266
270
 
267
- | Phase | Primary capabilities | Meaning |
268
- | --- | --- | --- |
269
- | `envision` | visionera | Define north star and direction. |
270
- | `deliberate` | resonera | Think through tradeoffs and decisions. |
271
- | `plan` | planera | Break intent into scoped work. |
272
- | `build` | realisera, optimera, dokumentera, visualisera | Produce code, docs, designs, or measured improvements. |
273
- | `audit` | inspektera | Evaluate health, risks, and state alignment. |
271
+ | Phase | Primary capabilities | Meaning |
272
+ | ------------ | --------------------------------------------- | ------------------------------------------------------ |
273
+ | `envision` | visionera | Define north star and direction. |
274
+ | `deliberate` | resonera | Think through tradeoffs and decisions. |
275
+ | `plan` | planera | Break intent into scoped work. |
276
+ | `build` | realisera, optimera, dokumentera, visualisera | Produce code, docs, designs, or measured improvements. |
277
+ | `audit` | inspektera | Evaluate health, risks, and state alignment. |
274
278
 
275
279
  Use `phase` for protocol-level lifecycle state. Use `step` for capability-local
276
280
  progress markers such as `── step 2/6: verify`.
@@ -286,86 +290,86 @@ tests, labels, or active state.
286
290
 
287
291
  ## Workflow grammar
288
292
 
289
- | Form | Meaning | Example |
290
- | --- | --- | --- |
291
- | `Each invocation = one ...` | Capability scope limit. | `Each invocation = one experiment.` |
292
- | `─── <glyph> <capability> · <context> ───` | Capability introduction marker. | `─── ⎘ optimera · measure ───` |
293
- | `── step N/M: verb` | Capability-local progress marker. | `── step 4/8: implement` |
294
- | `## Safety rails` plus `<critical>` | Non-negotiable constraints. | `NEVER push to remote repos without explicit instruction.` |
295
- | `Detect mode/context/level` | Step 0 classification before the main workflow. | Dokumentera detects create, update, audit, or first-run survey. |
296
- | Decision gate | Explicit condition-based branch before proceeding. | Optimera keep/discard decision. |
297
- | Exit-early stop condition | Stop condition when work is already complete or unnecessary. | Docs current, no stale work found. |
298
- | Behavioral verification gate | Realisera check that behavior was verified against real project state. | Tests, builds, or manual verification. |
299
- | Pre-write self-audit | Prose check for verbosity mismatch, abstraction creep, and filler accumulation. | `agentera lint --artifact <ARTIFACT>` exposes the checks through the CLI. |
300
- | Plan-completion sweep | Realisera cleanup when plan tasks finish. | Progress rollup, changelog, TODO, health cross-reference, archive. |
301
- | Worker spawn | Isolated implementation or measurement by a worker through the host subagent mechanism. | Realisera and optimera can use it. |
302
- | Stale-base awareness | Prevent workers from branching from old `origin/main` or stale HEAD. | Use pre-spawn Git commits before spawning workers. |
303
- | Orchestration loop | Orkestrera loop: select, delegate, evaluate, resolve, log. | Orkestrera delegates; it does not implement. |
304
- | Evidence audit | Check that recorded verification actually proves acceptance criteria. | Orkestrera and inspektera use this language. |
305
- | Loop stop condition | Stop repeated failed cycles, tasks, or experiments. | Prevents endless retries. |
293
+ | Form | Meaning | Example |
294
+ | ------------------------------------------ | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
295
+ | `Each invocation = one ...` | Capability scope limit. | `Each invocation = one experiment.` |
296
+ | `─── <glyph> <capability> · <context> ───` | Capability introduction marker. | `─── ⎘ optimera · measure ───` |
297
+ | `── step N/M: verb` | Capability-local progress marker. | `── step 4/8: implement` |
298
+ | `## Safety rails` plus `<critical>` | Non-negotiable constraints. | `NEVER push to remote repos without explicit instruction.` |
299
+ | `Detect mode/context/level` | Step 0 classification before the main workflow. | Dokumentera detects create, update, audit, or first-run survey. |
300
+ | Decision gate | Explicit condition-based branch before proceeding. | Optimera keep/discard decision. |
301
+ | Exit-early stop condition | Stop condition when work is already complete or unnecessary. | Docs current, no stale work found. |
302
+ | Behavioral verification gate | Realisera check that behavior was verified against real project state. | Tests, builds, or manual verification. |
303
+ | Pre-write self-audit | Prose check for verbosity mismatch, abstraction creep, and filler accumulation. | `agentera lint --artifact <ARTIFACT>` exposes the checks through the CLI. |
304
+ | Plan-completion sweep | Realisera cleanup when plan tasks finish. | Progress rollup, changelog, TODO, health cross-reference, archive. |
305
+ | Worker spawn | Isolated implementation or measurement by a worker through the host subagent mechanism. | Realisera and optimera can use it. |
306
+ | Stale-base awareness | Prevent workers from branching from old `origin/main` or stale HEAD. | Use pre-spawn Git commits before spawning workers. |
307
+ | Orchestration loop | Orkestrera loop: select, delegate, evaluate, resolve, log. | Orkestrera delegates; it does not implement. |
308
+ | Evidence audit | Check that recorded verification actually proves acceptance criteria. | Orkestrera and inspektera use this language. |
309
+ | Loop stop condition | Stop repeated failed cycles, tasks, or experiments. | Prevents endless retries. |
306
310
 
307
311
  For user-facing operations, prefer plain aliases when the branded phrase does
308
312
  not add precision:
309
313
 
310
- | Internal or branded phrase | User-facing phrase |
311
- | --- | --- |
312
- | Reality Verification Gate | behavioral verification gate |
313
- | Conductor protocol | orchestration loop |
314
- | Evidence audit | verification review |
315
- | Memory layer | saved project context |
314
+ | Internal or branded phrase | User-facing phrase |
315
+ | -------------------------- | ---------------------------- |
316
+ | Reality Verification Gate | behavioral verification gate |
317
+ | Conductor protocol | orchestration loop |
318
+ | Evidence audit | verification review |
319
+ | Memory layer | saved project context |
316
320
 
317
321
  ### Artifact-writing checks
318
322
 
319
- | Term | Definition |
320
- | --- | --- |
321
- | Verbosity mismatch | Artifact prose exceeds the intended budget or grows without adding signal. |
322
- | Abstraction creep | Prose lacks a concrete anchor such as a path, line number, metric, identifier, commit, or quote. |
323
- | Filler accumulation | Prose accumulates hedges, redundant transitions, self-reference, summary preambles, or generic justification. |
324
- | Concrete anchor | A file path, line number, commit hash, metric value, identifier, or direct quote. |
325
- | Lead-with-conclusion | Start with the actionable conclusion, then provide evidence. |
326
- | Compaction | Keep recent full entries, preserve older one-line archives, and drop beyond retention limits. |
323
+ | Term | Definition |
324
+ | -------------------- | ------------------------------------------------------------------------------------------------------------- |
325
+ | Verbosity mismatch | Artifact prose exceeds the intended budget or grows without adding signal. |
326
+ | Abstraction creep | Prose lacks a concrete anchor such as a path, line number, metric, identifier, commit, or quote. |
327
+ | Filler accumulation | Prose accumulates hedges, redundant transitions, self-reference, summary preambles, or generic justification. |
328
+ | Concrete anchor | A file path, line number, commit hash, metric value, identifier, or direct quote. |
329
+ | Lead-with-conclusion | Start with the actionable conclusion, then provide evidence. |
330
+ | Compaction | Keep recent full entries, preserve older one-line archives, and drop beyond retention limits. |
327
331
 
328
332
  ## Capability-specific recurring vocabulary
329
333
 
330
- | Capability | Common terms |
331
- | --- | --- |
332
- | hej | Orientation, dashboard, returning project, fresh project, attention, next action, concrete object, route suggestion. |
333
- | visionera | North star, persona, principles, direction, identity, tensions, create/refine/replace/audit modes. |
334
- | resonera | Socratic questioning, one question at a time, honest friction, steelman, tradeoffs, decision pressure. |
335
- | inspirera | Source analysis, pattern extraction, cross-pollination, worth stealing, external practice, adaptation. |
336
- | planera | WHAT and WHY, behavioral acceptance criteria, scope, included/excluded/deferred, task dependencies, plan-level current-state check. |
337
- | realisera | Cycle, orient/select/research/plan/spawn/verify/commit/audit/log, HOW, progress log, worker spawn. |
338
- | optimera | Objective, experiment, baseline, harness, locked measurement, hypothesis, metric, regression, keep/discard gate. |
339
- | inspektera | Audit, health grade, dimensions, findings, evidence, impact, suggested action, artifact current-state review, deliberate decisions. |
340
- | dokumentera | Intent-first docs, explore-and-generate, update-and-verify, first-run survey, evergreen docs, docs become the spec. |
341
- | profilera | Decision profile, signal extraction, confidence, preference, validation, reusable user model. |
342
- | visualisera | Visual identity, design tokens, semantic weight, terminal-native, glyphs, logo scarcity. |
343
- | orkestrera | Plan execution, delegate, task-notification result, presence check, evaluate, resolve, loop stop condition. |
334
+ | Capability | Common terms |
335
+ | ----------- | ----------------------------------------------------------------------------------------------------------------------------------- |
336
+ | hej | Orientation, dashboard, returning project, fresh project, attention, next action, concrete object, route suggestion. |
337
+ | visionera | North star, persona, principles, direction, identity, tensions, create/refine/replace/audit modes. |
338
+ | resonera | Socratic questioning, one question at a time, honest friction, steelman, tradeoffs, decision pressure. |
339
+ | inspirera | Source analysis, pattern extraction, cross-pollination, worth stealing, external practice, adaptation. |
340
+ | planera | WHAT and WHY, behavioral acceptance criteria, scope, included/excluded/deferred, task dependencies, plan-level current-state check. |
341
+ | realisera | Cycle, orient/select/research/plan/spawn/verify/commit/audit/log, HOW, progress log, worker spawn. |
342
+ | optimera | Objective, experiment, baseline, harness, locked measurement, hypothesis, metric, regression, keep/discard gate. |
343
+ | inspektera | Audit, health grade, dimensions, findings, evidence, impact, suggested action, artifact current-state review, deliberate decisions. |
344
+ | dokumentera | Intent-first docs, explore-and-generate, update-and-verify, first-run survey, evergreen docs, docs become the spec. |
345
+ | profilera | Decision profile, signal extraction, confidence, preference, validation, reusable user model. |
346
+ | visualisera | Visual identity, design tokens, semantic weight, terminal-native, glyphs, logo scarcity. |
347
+ | orkestrera | Plan execution, delegate, task-notification result, presence check, evaluate, resolve, loop stop condition. |
344
348
 
345
349
  ## Runtime, install, and release grammar
346
350
 
347
- | Term | Definition |
348
- | --- | --- |
349
- | Agentera directory | Plain-language name for the local directory named by `AGENTERA_HOME`; user data stays at this directory root. |
350
- | App files directory | Plain-language name for `$AGENTERA_HOME/app`, where Agentera's scripts and skill files live. Internal JSON may call this `managedAppRoot`; do not use that phrase in prompts. |
351
- | User data directory | The `AGENTERA_HOME` root that keeps `PROFILE.md`, `USAGE.md`, `history/`, `benchmarks/`, `intermediate/`, `sessions/`, and other preserved user-state paths. |
352
- | `AGENTERA_HOME` | Environment variable pointing at the Agentera directory. Explain this only when the user needs the exact setting. |
353
- | Normal Agentera directory | Platform data directory for Agentera when `AGENTERA_HOME` is unset. |
354
- | `--install-root` | Compatibility flag name for existing CLI options; surrounding text should say Agentera directory. |
355
- | Directory with unknown files | A directory Agentera must not overwrite silently. Say this instead of unmanaged root. |
356
- | Missing normal directory | Previewable. Agentera can show a no-write repair preview. |
357
- | Missing chosen directory | Needs a user decision when provided through `AGENTERA_HOME` or explicit `--install-root`. |
358
- | Package refresh | Package-manager or marketplace update. It does not prove Agentera's app files are current. |
359
- | App repair | Normal repair flow that previews or applies Agentera app files plus managed runtime config, plugins, hooks, commands, and safe cleanup together. It must not edit shell startup files, and package-manager commands remain opt-in through `--update-packages`. |
360
- | `--only bundle` | Compatibility selector for narrow app-file work. Do not present it as the normal repair recommendation when managed runtime surfaces may also need repair. |
361
- | Preview | No-write mode. Required before upgrade or app repair writes; the underlying command flag is `--dry-run`. |
362
- | `--yes` | Explicit apply flag after preview and approval. |
363
- | Final check | Setup validation after upgrade apply. Uses the same app-home probe as `agentera doctor` (`build_doctor_status`), not `setup_doctor.build_report`. |
364
- | Package-update opt-in | External package manager changes require `--update-packages`. |
365
- | Runtime adapter | Runtime-specific Agentera adapter support for skill loading, hooks, artifact validation, lifecycle metadata, and diagnostics. |
366
- | Host support | What a runtime can theoretically do. Distinguish it from shipped Agentera behavior. |
367
- | Hook lifecycle | Runtime callbacks such as `SessionStart`, `Stop`, `PreToolUse`, and `PostToolUse`. |
368
- | Setup doctor | Diagnostic command surface for install/runtime health. |
351
+ | Term | Definition |
352
+ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
353
+ | Agentera directory | Plain-language name for the local directory named by `AGENTERA_HOME`; user data stays at this directory root. |
354
+ | App files directory | Plain-language name for `$AGENTERA_HOME/app`, where Agentera's scripts and skill files live. Internal JSON may call this `managedAppRoot`; do not use that phrase in prompts. |
355
+ | User data directory | The `AGENTERA_HOME` root that keeps `PROFILE.md`, `USAGE.md`, `history/`, `benchmarks/`, `intermediate/`, `sessions/`, and other preserved user-state paths. |
356
+ | `AGENTERA_HOME` | Environment variable pointing at the Agentera directory. Explain this only when the user needs the exact setting. |
357
+ | Normal Agentera directory | Platform data directory for Agentera when `AGENTERA_HOME` is unset. |
358
+ | `--install-root` | Compatibility flag name for existing CLI options; surrounding text should say Agentera directory. |
359
+ | Directory with unknown files | A directory Agentera must not overwrite silently. Say this instead of unmanaged root. |
360
+ | Missing normal directory | Previewable. Agentera can show a no-write repair preview. |
361
+ | Missing chosen directory | Needs a user decision when provided through `AGENTERA_HOME` or explicit `--install-root`. |
362
+ | Package refresh | Package-manager or marketplace update. It does not prove Agentera's app files are current. |
363
+ | App repair | Normal repair flow that previews or applies Agentera app files plus managed runtime config, plugins, hooks, commands, and safe cleanup together. It must not edit shell startup files, and package-manager commands remain opt-in through `--update-packages`. |
364
+ | `--only bundle` | Compatibility selector for narrow app-file work. Do not present it as the normal repair recommendation when managed runtime surfaces may also need repair. |
365
+ | Preview | No-write mode. Required before upgrade or app repair writes; the underlying command flag is `--dry-run`. |
366
+ | `--yes` | Explicit apply flag after preview and approval. |
367
+ | Final check | Setup validation after upgrade apply. Uses the same app-home probe as `agentera doctor` (`build_doctor_status`), not `setup_doctor.build_report`. |
368
+ | Package-update opt-in | External package manager changes require `--update-packages`. |
369
+ | Runtime adapter | Runtime-specific Agentera adapter support for skill loading, hooks, artifact validation, lifecycle metadata, and diagnostics. |
370
+ | Host support | What a runtime can theoretically do. Distinguish it from shipped Agentera behavior. |
371
+ | Hook lifecycle | Runtime callbacks such as `SessionStart`, `Stop`, `PreToolUse`, and `PostToolUse`. |
372
+ | Setup doctor | Diagnostic command surface for install/runtime health. |
369
373
 
370
374
  Canonical runtime names are Claude Code, OpenCode, Copilot CLI, Codex CLI, Cursor IDE, and Cursor Agent CLI.
371
375
 
@@ -453,61 +457,61 @@ human-facing boundary.
453
457
 
454
458
  ## Evaluation and evidence grammar
455
459
 
456
- | Term | Definition |
457
- | --- | --- |
458
- | Validation passed | Evidence that required checks completed successfully. Name the checks. |
459
- | Focused tests | Targeted tests for the changed surface. |
460
- | Full pytest | Repository-wide pytest run. Use exact counts when recorded. |
461
- | Capability validator | `uv run agentera check validate capability skills/agentera/capabilities/<name>`. |
462
- | Cross-capability validation | Checks that capability schemas agree with registry, protocol, routing, and exit contracts. |
463
- | Smoke eval | Runtime/setup check for crashes, non-zero exits, or obvious host failures. |
464
- | Live-host smoke | Explicit opt-in model-host check against real runtime access. |
465
- | Semantic eval | Offline fixture evaluation that checks whether captured output means the right thing. |
466
- | Semantic fixture | Markdown fixture with prompt, seeded project state, captured output, tool trace, and expected facts. |
467
- | Startup-overhead analysis | Local-only Decision 51 measurement surface for raw Agentera artifact access after CLI state calls during capability startup/state gathering. It replaced an uncommitted route/intro startup-window draft that found zero qualifying windows, and must report the retained `CLI state -> raw artifact access` metric before recommending a startup envelope or guidance fix. |
468
- | Startup report | Human-readable and structured report pair that includes boundary source, runtime coverage, startup metrics, threshold rationale, recommendation, and privacy caveats without raw transcript text or raw local paths. |
469
- | Seeded project state | Fixture-provided artifacts used as the source of truth for expected behavior. |
470
- | Oracle | Artifact-derived expectation, such as the exact plan task hej should route to. |
471
- | Regression | Required safety check for behavior that must not degrade. |
472
- | Harness | Optimera measurement substrate. Once approved, it is immutable ground truth. |
473
- | Objective | Measurable optimization charter under `.agentera/optimera/<name>/`. |
474
- | Experiment | One falsifiable optimization attempt with hypothesis, method, metric, regression, status, and conclusion. |
475
- | Keep/discard gate | Keep only if the metric improves and regression gates pass; discard otherwise. |
460
+ | Term | Definition |
461
+ | --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
462
+ | Validation passed | Evidence that required checks completed successfully. Name the checks. |
463
+ | Focused tests | Targeted tests for the changed surface. |
464
+ | Full pytest | Repository-wide pytest run. Use exact counts when recorded. |
465
+ | Capability validator | `uv run agentera check validate capability skills/agentera/capabilities/<name>`. |
466
+ | Cross-capability validation | Checks that capability schemas agree with registry, protocol, routing, and exit contracts. |
467
+ | Smoke eval | Runtime/setup check for crashes, non-zero exits, or obvious host failures. |
468
+ | Live-host smoke | Explicit opt-in model-host check against real runtime access. |
469
+ | Semantic eval | Offline fixture evaluation that checks whether captured output means the right thing. |
470
+ | Semantic fixture | Markdown fixture with prompt, seeded project state, captured output, tool trace, and expected facts. |
471
+ | Startup-overhead analysis | Local-only Decision 51 measurement surface for raw Agentera artifact access after CLI state calls during capability startup/state gathering. It replaced an uncommitted route/intro startup-window draft that found zero qualifying windows, and must report the retained `CLI state -> raw artifact access` metric before recommending a startup envelope or guidance fix. |
472
+ | Startup report | Human-readable and structured report pair that includes boundary source, runtime coverage, startup metrics, threshold rationale, recommendation, and privacy caveats without raw transcript text or raw local paths. |
473
+ | Seeded project state | Fixture-provided artifacts used as the source of truth for expected behavior. |
474
+ | Oracle | Artifact-derived expectation, such as the exact plan task hej should route to. |
475
+ | Regression | Required safety check for behavior that must not degrade. |
476
+ | Harness | Optimera measurement substrate. Once approved, it is immutable ground truth. |
477
+ | Objective | Measurable optimization charter under `.agentera/optimera/<name>/`. |
478
+ | Experiment | One falsifiable optimization attempt with hypothesis, method, metric, regression, status, and conclusion. |
479
+ | Keep/discard gate | Keep only if the metric improves and regression gates pass; discard otherwise. |
476
480
 
477
481
  ## Visual grammar
478
482
 
479
- | Token family | Values |
480
- | --- | --- |
481
- | Status tokens | `■` complete, `▣` in progress, `□` open, `▨` blocked. |
482
- | Severity tokens | `⇶` critical, `⇉` degraded, `→` normal, `⇢` annoying. |
483
- | Confidence tokens | `━` firm, `─` provisional, `┄` exploratory. |
484
- | Trend tokens | `⮉` improving, `⮋` degrading. |
485
- | Structural tokens | `───` section divider, `▸` list item, `·` separator, `→` flow, `█▓░` progress bar. |
486
- | Logo | Box-drawing Agentera logo. Use for the Hej dashboard, major completions, and significant artifacts. |
483
+ | Token family | Values |
484
+ | ----------------- | --------------------------------------------------------------------------------------------------- |
485
+ | Status tokens | `■` complete, `▣` in progress, `□` open, `▨` blocked. |
486
+ | Severity tokens | `⇶` critical, `⇉` degraded, `→` normal, `⇢` annoying. |
487
+ | Confidence tokens | `━` firm, `─` provisional, `┄` exploratory. |
488
+ | Trend tokens | `⮉` improving, `⮋` degrading. |
489
+ | Structural tokens | `───` section divider, `▸` list item, `·` separator, `→` flow, `█▓░` progress bar. |
490
+ | Logo | Box-drawing Agentera logo. Use for the Hej dashboard, major completions, and significant artifacts. |
487
491
 
488
492
  Visualisera owns visual identity in `DESIGN.md`. Protocol owns token meanings in
489
493
  `skills/agentera/protocol.yaml`.
490
494
 
491
495
  ## Canonical phrases
492
496
 
493
- | Phrase | Use |
494
- | --- | --- |
495
- | “Opinionated mobile-first coding agent.” | Product identity. |
497
+ | Phrase | Use |
498
+ | ------------------------------------------------------------------------- | ------------------------------------------------------ |
499
+ | “Opinionated mobile-first coding agent.” | Product identity. |
496
500
  | “One install, one entry point, one query interface to all project state.” | CLI state-access promise (internals/contributor docs). |
497
- | “Continuity lives in files, not memory.” | Realisera/project-state principle. |
498
- | “The conversation preserves reasoning; the artifact preserves the plan.” | Planera boundary. |
499
- | “Planera owns WHAT and WHY; realisera owns HOW.” | Planning/building boundary. |
500
- | “The colleague says what they think, then shows the evidence.” | Inspektera voice. |
501
- | “Findings contradicting deliberate decisions are not findings.” | Audit boundary. |
502
- | “Select the concrete next action before selecting the skill.” | Hej routing discipline. |
503
- | “A skill name without a concrete object is not a valid suggestion.” | Hej next-action rule. |
504
- | “Suggest, don’t force.” | Hej confirmation rule. |
505
- | “Document intended behavior before building.” | Dokumentera intent-first mode. |
506
- | “Write as intended steady state.” | Evergreen documentation rule. |
507
- | “Keep it DRY: reference, don’t repeat.” | Documentation maintenance rule. |
508
- | “The harness is the immutable ground truth.” | Optimera measurement rule. |
509
- | “Improve + pass regression = keep; everything else is discarded.” | Optimera experiment rule. |
510
- | “The orchestrator delegates; it does not implement.” | Orkestrera role boundary. |
501
+ | “Continuity lives in files, not memory.” | Realisera/project-state principle. |
502
+ | “The conversation preserves reasoning; the artifact preserves the plan.” | Planera boundary. |
503
+ | “Planera owns WHAT and WHY; realisera owns HOW.” | Planning/building boundary. |
504
+ | “The colleague says what they think, then shows the evidence.” | Inspektera voice. |
505
+ | “Findings contradicting deliberate decisions are not findings.” | Audit boundary. |
506
+ | “Select the concrete next action before selecting the skill.” | Hej routing discipline. |
507
+ | “A skill name without a concrete object is not a valid suggestion.” | Hej next-action rule. |
508
+ | “Suggest, don’t force.” | Hej confirmation rule. |
509
+ | “Document intended behavior before building.” | Dokumentera intent-first mode. |
510
+ | “Write as intended steady state.” | Evergreen documentation rule. |
511
+ | “Keep it DRY: reference, don’t repeat.” | Documentation maintenance rule. |
512
+ | “The harness is the immutable ground truth.” | Optimera measurement rule. |
513
+ | “Improve + pass regression = keep; everything else is discarded.” | Optimera experiment rule. |
514
+ | “The orchestrator delegates; it does not implement.” | Orkestrera role boundary. |
511
515
 
512
516
  ## Ambiguous terms to qualify
513
517
 
@@ -515,63 +519,63 @@ Do not use these terms bare. A busy developer should be able to search the
515
519
  phrase, identify the affected object, and know whether the term describes a
516
520
  schema concept, runtime capability, install state, or user action.
517
521
 
518
- | Ambiguous term | Why bare usage is risky | Required wording |
519
- | --- | --- | --- |
520
- | Skill | Confuses v1 standalone skills, the v2 Agentera skill, and internal workflows. | Use `Agentera skill` for the installed runtime surface, `v1 skill` for history, and `capability` for v2 workflows. |
521
- | Contract | Could mean schema structure, artifact shape, protocol primitive, adapter behavior, or product promise. | Use `schema contract`, `artifact schema`, `protocol primitives`, `runtime adapter contract`, or `product promise`. |
522
- | Status | Different surfaces use different state machines and output labels. | Use `exit status`, `task status`, `installed-app status`, `install status`, `docs status`, or `health status`. |
523
- | Freshness | Sounds like a branded synonym for several normal states: current, stale, synced, or out of date. | Use object-specific state wording such as `artifact is current`, `Agentera app files need repair`, `docs are current`, or `plan-level current-state check`. |
524
- | Checkpoint | In software, can mean commit, savepoint, restore point, model checkpoint, or milestone. | Use `final state sync`, `plan-level current-state check`, `checkpoint commit`, or `pre-dispatch checkpoint commit`. |
525
- | Stale | The cause and fix differ by object. | Use `stale artifact`, `Agentera app files need repair`, `stale marker`, or `stale worktree base`. Avoid `stale` in recovery prompts when `out of date` or `needs repair` is clearer. |
526
- | Phase | Conflicts with numbered workflow steps. | Use `phase` only for protocol lifecycle: `envision`, `deliberate`, `plan`, `build`, `audit`. Use `step` for capability-local actions. |
527
- | Objective state | Clear only inside optimera. | First mention `optimization objective state`; then `objective state` is fine in optimera context. Do not modify outside optimera or explicit user instruction. |
528
- | Support | Could mean theoretical host capability, shipped Agentera wiring, or verified behavior. | Use `host capability`, `Agentera adapter support`, or `tested support`. |
529
- | Runtime support | Too broad to be actionable in compatibility docs. | Replace with `host capability`, `Agentera adapter support`, or `tested support`, whichever is true. |
530
- | AskUserQuestion | Internal primitive leaking into human prose. | In user docs, say `ask the user`. In adapter docs, say `runtime question tool`. |
531
- | MCP | Optional substrate, not a core Agentera requirement. | Say `optional MCP integration` only where the feature literally depends on MCP. |
522
+ | Ambiguous term | Why bare usage is risky | Required wording |
523
+ | --------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
524
+ | Skill | Confuses v1 standalone skills, the v2 Agentera skill, and internal workflows. | Use `Agentera skill` for the installed runtime surface, `v1 skill` for history, and `capability` for v2 workflows. |
525
+ | Contract | Could mean schema structure, artifact shape, protocol primitive, adapter behavior, or product promise. | Use `schema contract`, `artifact schema`, `protocol primitives`, `runtime adapter contract`, or `product promise`. |
526
+ | Status | Different surfaces use different state machines and output labels. | Use `exit status`, `task status`, `installed-app status`, `install status`, `docs status`, or `health status`. |
527
+ | Freshness | Sounds like a branded synonym for several normal states: current, stale, synced, or out of date. | Use object-specific state wording such as `artifact is current`, `Agentera app files need repair`, `docs are current`, or `plan-level current-state check`. |
528
+ | Checkpoint | In software, can mean commit, savepoint, restore point, model checkpoint, or milestone. | Use `final state sync`, `plan-level current-state check`, `checkpoint commit`, or `pre-dispatch checkpoint commit`. |
529
+ | Stale | The cause and fix differ by object. | Use `stale artifact`, `Agentera app files need repair`, `stale marker`, or `stale worktree base`. Avoid `stale` in recovery prompts when `out of date` or `needs repair` is clearer. |
530
+ | Phase | Conflicts with numbered workflow steps. | Use `phase` only for protocol lifecycle: `envision`, `deliberate`, `plan`, `build`, `audit`. Use `step` for capability-local actions. |
531
+ | Objective state | Clear only inside optimera. | First mention `optimization objective state`; then `objective state` is fine in optimera context. Do not modify outside optimera or explicit user instruction. |
532
+ | Support | Could mean theoretical host capability, shipped Agentera wiring, or verified behavior. | Use `host capability`, `Agentera adapter support`, or `tested support`. |
533
+ | Runtime support | Too broad to be actionable in compatibility docs. | Replace with `host capability`, `Agentera adapter support`, or `tested support`, whichever is true. |
534
+ | AskUserQuestion | Internal primitive leaking into human prose. | In user docs, say `ask the user`. In adapter docs, say `runtime question tool`. |
535
+ | MCP | Optional substrate, not a core Agentera requirement. | Say `optional MCP integration` only where the feature literally depends on MCP. |
532
536
 
533
537
  High-risk diagnostic rewrites:
534
538
 
535
- | Avoid in diagnostics | Use instead |
536
- | --- | --- |
537
- | `bundle freshness gap detected` | `Agentera app files need repair` |
538
- | `bundle freshness guard failed` | `install status check failed` |
539
- | `bundle refresh required` | `repair Agentera app files` |
540
- | `app refresh required` | `Agentera app files need repair` or `Agentera app files are outdated` |
541
- | `upgrade guard triggered` | `v1 migration check found legacy files` |
542
- | `stale marker` | `missing or outdated version marker` |
543
- | `artifact freshness failed` | `artifact is stale` or `artifact needs sync` |
539
+ | Avoid in diagnostics | Use instead |
540
+ | ------------------------------- | --------------------------------------------------------------------- |
541
+ | `bundle freshness gap detected` | `Agentera app files need repair` |
542
+ | `bundle freshness guard failed` | `install status check failed` |
543
+ | `bundle refresh required` | `repair Agentera app files` |
544
+ | `app refresh required` | `Agentera app files need repair` or `Agentera app files are outdated` |
545
+ | `upgrade guard triggered` | `v1 migration check found legacy files` |
546
+ | `stale marker` | `missing or outdated version marker` |
547
+ | `artifact freshness failed` | `artifact is stale` or `artifact needs sync` |
544
548
 
545
549
  ## Source index
546
550
 
547
551
  High-signal source surfaces for this vocabulary:
548
552
 
549
- | Source | Vocabulary surface |
550
- | --- | --- |
551
- | `skills/agentera/SKILL.md` | Routing entry, routing layers, CLI-first access, installed-app status check, and v1 migration check. |
552
- | `skills/agentera/protocol.yaml` | Protocol primitives, glyphs, phases, visual tokens, exit signals. |
553
- | `skills/agentera/capability_schema_contract.yaml` | Schema groups, priorities, stable IDs, primitive-reference fields. |
554
- | `packages/cli/src/capabilities/*/instructions.ts` | Workflow grammar, capability roles, safety rails, exit marker forms. Loaded as a default-exported string constant; runtime serves it via `agentera prime --context <name> --format json`. |
555
- | `skills/agentera/capabilities/*/schemas/*.yaml` | Trigger patterns, artifact roles, validation rules, exit conditions. |
556
- | `skills/agentera/schemas/artifacts/*.yaml` | Artifact fields, status enums, validation vocabulary, and protected current-state fields. |
557
- | `references/artifacts/artifact-registry-interface-model.yaml` | Canonical artifact registry language. |
558
- | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical status and operation vocabulary authority. |
559
- | `references/cli/update-channels.yaml` | Update channel resolution and override-key authority. |
560
- | `references/cli/bundle-skill-vocabulary.yaml` | Bundle and `SKILL.md` concept classification authority. |
561
- | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file and first-invocation read contract authority. |
562
- | `references/cli/routing-execution-vocabulary.yaml` | Routing and execution vocabulary authority. |
563
- | `the agentera CLI` | Flat State CLI labels and `agentera hej` source contract. |
564
- | `packages/cli/src/upgrade (doctor/upgrade)` | Upgrade and doctor output grammar. |
565
- | `packages/cli/src/state/installRoot.ts` | Install-root classification semantics. |
566
- | `hooks/validate_artifact.py` | Runtime artifact-write validation and hook exit codes. |
567
- | `README.md` | Product, invocation, artifact, and user-facing capability language. |
568
- | `UPGRADE.md` | Upgrade flow, package refresh, app-home repair, and runtime migration terms. |
569
- | `DESIGN.md` | Visual identity, glyph, severity, confidence, and structural token language. |
570
- | `.agentera/docs.yaml` | Current documentation registry, mapping, coverage, and audit vocabulary. |
571
- | `.agentera/decisions.yaml` | Decision grammar, v2 architecture rationale, routing decisions. |
572
- | `.agentera/progress.yaml` | Cycle, evidence, context, and final state-sync examples. |
573
- | `.agentera/health.yaml` | Audit dimensions, grades, trajectories, findings, and artifact current-state review. |
574
- | `.agentera/archive/*.md` | Historical plan-level current-state checks and staleness rationale. |
575
- | `.agentera/optimera/*` | Objective, experiment, harness, metric, and keep/discard examples. |
576
- | `fixtures/semantic/*.md` | Semantic eval fixture, oracle, and Hej dashboard constraints. |
577
- | `tests/` | Regression evidence for CLI labels, installed-app status, routing, exits, and schema contracts. |
553
+ | Source | Vocabulary surface |
554
+ | ------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
555
+ | `skills/agentera/SKILL.md` | Routing entry, routing layers, CLI-first access, installed-app status check, and v1 migration check. |
556
+ | `skills/agentera/protocol.yaml` | Protocol primitives, glyphs, phases, visual tokens, exit signals. |
557
+ | `skills/agentera/capability_schema_contract.yaml` | Schema groups, priorities, stable IDs, primitive-reference fields. |
558
+ | `packages/cli/src/capabilities/*/instructions.ts` | Workflow grammar, capability roles, safety rails, exit marker forms. Loaded as a default-exported string constant; runtime serves it via `agentera prime --context <name> --format json`. |
559
+ | `skills/agentera/capabilities/*/schemas/*.yaml` | Trigger patterns, artifact roles, validation rules, exit conditions. |
560
+ | `skills/agentera/schemas/artifacts/*.yaml` | Artifact fields, status enums, validation vocabulary, and protected current-state fields. |
561
+ | `references/artifacts/artifact-registry-interface-model.yaml` | Canonical artifact registry language. |
562
+ | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical status and operation vocabulary authority. |
563
+ | `references/cli/update-channels.yaml` | Update channel resolution and override-key authority. |
564
+ | `references/cli/bundle-skill-vocabulary.yaml` | Bundle and `SKILL.md` concept classification authority. |
565
+ | `references/cli/capability-instruction-contract.yaml` | Decision 57 capability instruction-file and first-invocation read contract authority. |
566
+ | `references/cli/routing-execution-vocabulary.yaml` | Routing and execution vocabulary authority. |
567
+ | `the agentera CLI` | Flat State CLI labels and `agentera hej` source contract. |
568
+ | `packages/cli/src/upgrade (doctor/upgrade)` | Upgrade and doctor output grammar. |
569
+ | `packages/cli/src/state/installRoot.ts` | Install-root classification semantics. |
570
+ | `hooks/validate_artifact.py` | Runtime artifact-write validation and hook exit codes. |
571
+ | `README.md` | Product, invocation, artifact, and user-facing capability language. |
572
+ | `UPGRADE.md` | Upgrade flow, package refresh, app-home repair, and runtime migration terms. |
573
+ | `DESIGN.md` | Visual identity, glyph, severity, confidence, and structural token language. |
574
+ | `.agentera/docs.yaml` | Current documentation registry, mapping, coverage, and audit vocabulary. |
575
+ | `.agentera/decisions.yaml` | Decision grammar, v2 architecture rationale, routing decisions. |
576
+ | `.agentera/progress.yaml` | Cycle, evidence, context, and final state-sync examples. |
577
+ | `.agentera/health.yaml` | Audit dimensions, grades, trajectories, findings, and artifact current-state review. |
578
+ | `.agentera/archive/*.md` | Historical plan-level current-state checks and staleness rationale. |
579
+ | `.agentera/optimera/*` | Objective, experiment, harness, metric, and keep/discard examples. |
580
+ | `fixtures/semantic/*.md` | Semantic eval fixture, oracle, and Hej dashboard constraints. |
581
+ | `tests/` | Regression evidence for CLI labels, installed-app status, routing, exits, and schema contracts. |