agentera 3.0.0-dev.4 → 3.0.0-dev.6

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 (321) hide show
  1. package/README.md +4 -3
  2. package/bundle/.agentera-npx-bundle.json +1 -1
  3. package/bundle/references/adapters/opencode.md +1 -1
  4. package/bundle/references/adapters/package-registry.yaml +0 -1
  5. package/bundle/references/adapters/package-surface-characterization.md +1 -2
  6. package/bundle/references/analysis/startup-measurement-contract.yaml +11 -11
  7. package/bundle/references/cli/agent-ready-state-contract.yaml +5 -5
  8. package/bundle/references/cli/audience-namespace-cli-migration.yaml +40 -26
  9. package/bundle/references/cli/bundle-skill-vocabulary.yaml +2 -30
  10. package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
  11. package/bundle/references/cli/coexistence-probe.yaml +9 -0
  12. package/bundle/references/cli/routing-execution-vocabulary.yaml +6 -6
  13. package/bundle/references/cli/single-name-protocol.yaml +42 -0
  14. package/bundle/references/cli/update-channels.yaml +18 -2
  15. package/bundle/references/cli/upgrade-repair-wording.md +31 -0
  16. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +98 -0
  17. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  18. package/bundle/references/cli/vocabulary.md +34 -26
  19. package/bundle/references/meta/documentation-inventory.md +9 -3
  20. package/bundle/registry.json +1 -1
  21. package/bundle/skills/agentera/SKILL.md +50 -33
  22. package/bundle/skills/agentera/agents/dokumentera.toml +1 -1
  23. package/bundle/skills/agentera/agents/hej.toml +1 -1
  24. package/bundle/skills/agentera/agents/inspektera.toml +1 -1
  25. package/bundle/skills/agentera/agents/inspirera.toml +1 -1
  26. package/bundle/skills/agentera/agents/optimera.toml +1 -1
  27. package/bundle/skills/agentera/agents/orkestrera.toml +1 -1
  28. package/bundle/skills/agentera/agents/planera.toml +1 -1
  29. package/bundle/skills/agentera/agents/profilera.toml +1 -1
  30. package/bundle/skills/agentera/agents/realisera.toml +1 -1
  31. package/bundle/skills/agentera/agents/resonera.toml +1 -1
  32. package/bundle/skills/agentera/agents/visionera.toml +1 -1
  33. package/bundle/skills/agentera/agents/visualisera.toml +1 -1
  34. package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +26 -13
  35. package/bundle/skills/agentera/capability_schema_contract.yaml +33 -14
  36. package/bundle/skills/agentera/references/contract.md +2 -2
  37. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +1 -1
  38. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -36
  39. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +14 -0
  40. package/dist/analytics/extractCorpus/cli.js +101 -0
  41. package/dist/analytics/extractCorpus/cli.js.map +1 -0
  42. package/dist/analytics/extractCorpus/copilotSessions.js +231 -0
  43. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -0
  44. package/dist/analytics/extractCorpus/core.js +357 -0
  45. package/dist/analytics/extractCorpus/core.js.map +1 -0
  46. package/dist/analytics/extractCorpus/corpus.js +132 -0
  47. package/dist/analytics/extractCorpus/corpus.js.map +1 -0
  48. package/dist/analytics/extractCorpus/cursorSessions.js +420 -0
  49. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -0
  50. package/dist/analytics/extractCorpus/filesystemSources.js +122 -0
  51. package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -0
  52. package/dist/analytics/extractCorpus/index.js +9 -0
  53. package/dist/analytics/extractCorpus/index.js.map +1 -0
  54. package/dist/analytics/extractCorpus/jsonlSessions.js +185 -0
  55. package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -0
  56. package/dist/analytics/extractCorpus/sqliteSessions.js +275 -0
  57. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -0
  58. package/dist/analytics/extractCorpus.js +2 -1790
  59. package/dist/analytics/extractCorpus.js.map +1 -1
  60. package/dist/analytics/usageStats.js +1 -1
  61. package/dist/analytics/usageStats.js.map +1 -1
  62. package/dist/capabilities/dokumentera/instructions.js +6 -0
  63. package/dist/capabilities/dokumentera/instructions.js.map +1 -0
  64. package/dist/capabilities/hej/instructions.js +6 -0
  65. package/dist/capabilities/hej/instructions.js.map +1 -0
  66. package/dist/capabilities/index.js +38 -0
  67. package/dist/capabilities/index.js.map +1 -0
  68. package/dist/capabilities/inspektera/instructions.js +6 -0
  69. package/dist/capabilities/inspektera/instructions.js.map +1 -0
  70. package/dist/capabilities/inspirera/instructions.js +6 -0
  71. package/dist/capabilities/inspirera/instructions.js.map +1 -0
  72. package/dist/capabilities/optimera/instructions.js +6 -0
  73. package/dist/capabilities/optimera/instructions.js.map +1 -0
  74. package/dist/capabilities/orkestrera/instructions.js +6 -0
  75. package/dist/capabilities/orkestrera/instructions.js.map +1 -0
  76. package/dist/capabilities/planera/instructions.js +6 -0
  77. package/dist/capabilities/planera/instructions.js.map +1 -0
  78. package/dist/capabilities/profilera/instructions.js +6 -0
  79. package/dist/capabilities/profilera/instructions.js.map +1 -0
  80. package/dist/capabilities/realisera/instructions.js +6 -0
  81. package/dist/capabilities/realisera/instructions.js.map +1 -0
  82. package/dist/capabilities/resonera/instructions.js +6 -0
  83. package/dist/capabilities/resonera/instructions.js.map +1 -0
  84. package/dist/capabilities/visionera/instructions.js +6 -0
  85. package/dist/capabilities/visionera/instructions.js.map +1 -0
  86. package/dist/capabilities/visualisera/instructions.js +6 -0
  87. package/dist/capabilities/visualisera/instructions.js.map +1 -0
  88. package/dist/cli/capabilityContext/benchmark.js +557 -0
  89. package/dist/cli/capabilityContext/benchmark.js.map +1 -0
  90. package/dist/cli/capabilityContext/bespoke.js +25 -0
  91. package/dist/cli/capabilityContext/bespoke.js.map +1 -0
  92. package/dist/cli/capabilityContext/closeout.js +230 -0
  93. package/dist/cli/capabilityContext/closeout.js.map +1 -0
  94. package/dist/cli/capabilityContext/contract.js +186 -0
  95. package/dist/cli/capabilityContext/contract.js.map +1 -0
  96. package/dist/cli/capabilityContext/evidence.js +446 -0
  97. package/dist/cli/capabilityContext/evidence.js.map +1 -0
  98. package/dist/cli/capabilityContext/index.js +4 -0
  99. package/dist/cli/capabilityContext/index.js.map +1 -0
  100. package/dist/cli/capabilityContext/orchestration.js +107 -0
  101. package/dist/cli/capabilityContext/orchestration.js.map +1 -0
  102. package/dist/cli/capabilityContext/planState.js +271 -0
  103. package/dist/cli/capabilityContext/planState.js.map +1 -0
  104. package/dist/cli/capabilityContext/progress.js +96 -0
  105. package/dist/cli/capabilityContext/progress.js.map +1 -0
  106. package/dist/cli/capabilityContext/realisera.js +174 -0
  107. package/dist/cli/capabilityContext/realisera.js.map +1 -0
  108. package/dist/cli/capabilityContext/shared.js +94 -0
  109. package/dist/cli/capabilityContext/shared.js.map +1 -0
  110. package/dist/cli/capabilityContext/slim.js +106 -0
  111. package/dist/cli/capabilityContext/slim.js.map +1 -0
  112. package/dist/cli/capabilityContext/startup.js +208 -0
  113. package/dist/cli/capabilityContext/startup.js.map +1 -0
  114. package/dist/cli/capabilityContext/types.js +43 -0
  115. package/dist/cli/capabilityContext/types.js.map +1 -0
  116. package/dist/cli/capabilityContext.js +1 -2420
  117. package/dist/cli/capabilityContext.js.map +1 -1
  118. package/dist/cli/commands/capability.js +1 -8
  119. package/dist/cli/commands/capability.js.map +1 -1
  120. package/dist/cli/commands/compact.js +1 -1
  121. package/dist/cli/commands/compact.js.map +1 -1
  122. package/dist/cli/commands/doctor.js +35 -6
  123. package/dist/cli/commands/doctor.js.map +1 -1
  124. package/dist/cli/commands/lint.js +4 -36
  125. package/dist/cli/commands/lint.js.map +1 -1
  126. package/dist/cli/commands/query.js +1 -1
  127. package/dist/cli/commands/query.js.map +1 -1
  128. package/dist/cli/commands/report.js +11 -2
  129. package/dist/cli/commands/report.js.map +1 -1
  130. package/dist/cli/commands/schema.js +1 -2
  131. package/dist/cli/commands/schema.js.map +1 -1
  132. package/dist/cli/commands/state/decisions.js +397 -0
  133. package/dist/cli/commands/state/decisions.js.map +1 -0
  134. package/dist/cli/commands/state/docs.js +93 -0
  135. package/dist/cli/commands/state/docs.js.map +1 -0
  136. package/dist/cli/commands/state/experiments.js +67 -0
  137. package/dist/cli/commands/state/experiments.js.map +1 -0
  138. package/dist/cli/commands/state/health.js +114 -0
  139. package/dist/cli/commands/state/health.js.map +1 -0
  140. package/dist/cli/commands/state/index.js +51 -0
  141. package/dist/cli/commands/state/index.js.map +1 -0
  142. package/dist/cli/commands/state/objective.js +68 -0
  143. package/dist/cli/commands/state/objective.js.map +1 -0
  144. package/dist/cli/commands/state/plan.js +172 -0
  145. package/dist/cli/commands/state/plan.js.map +1 -0
  146. package/dist/cli/commands/state/progress.js +47 -0
  147. package/dist/cli/commands/state/progress.js.map +1 -0
  148. package/dist/cli/commands/state/shared.js +15 -0
  149. package/dist/cli/commands/state/shared.js.map +1 -0
  150. package/dist/cli/commands/state/todo.js +121 -0
  151. package/dist/cli/commands/state/todo.js.map +1 -0
  152. package/dist/cli/commands/state.js +29 -18
  153. package/dist/cli/commands/state.js.map +1 -1
  154. package/dist/cli/commands/validate.js +44 -20
  155. package/dist/cli/commands/validate.js.map +1 -1
  156. package/dist/cli/dispatch/check.js +328 -0
  157. package/dist/cli/dispatch/check.js.map +1 -0
  158. package/dist/cli/dispatch/index.js +177 -0
  159. package/dist/cli/dispatch/index.js.map +1 -0
  160. package/dist/cli/dispatch/lifecycle.js +492 -0
  161. package/dist/cli/dispatch/lifecycle.js.map +1 -0
  162. package/dist/cli/dispatch/prime.js +100 -0
  163. package/dist/cli/dispatch/prime.js.map +1 -0
  164. package/dist/cli/dispatch/shared.js +64 -0
  165. package/dist/cli/dispatch/shared.js.map +1 -0
  166. package/dist/cli/dispatch/state.js +149 -0
  167. package/dist/cli/dispatch/state.js.map +1 -0
  168. package/dist/cli/dispatch.js +1 -995
  169. package/dist/cli/dispatch.js.map +1 -1
  170. package/dist/cli/errors.js +53 -0
  171. package/dist/cli/errors.js.map +1 -0
  172. package/dist/cli/help.js +1 -3
  173. package/dist/cli/help.js.map +1 -1
  174. package/dist/cli/orientation.js +10 -7
  175. package/dist/cli/orientation.js.map +1 -1
  176. package/dist/cli/stateQuery.js +7 -0
  177. package/dist/cli/stateQuery.js.map +1 -1
  178. package/dist/cli/todoMarkdown.js +33 -0
  179. package/dist/cli/todoMarkdown.js.map +1 -0
  180. package/dist/hooks/common.js +8 -25
  181. package/dist/hooks/common.js.map +1 -1
  182. package/dist/hooks/compaction/apply.js +244 -0
  183. package/dist/hooks/compaction/apply.js.map +1 -0
  184. package/dist/hooks/compaction/dryRun.js +181 -0
  185. package/dist/hooks/compaction/dryRun.js.map +1 -0
  186. package/dist/hooks/compaction/index.js +23 -0
  187. package/dist/hooks/compaction/index.js.map +1 -0
  188. package/dist/hooks/compaction/parse.js +129 -0
  189. package/dist/hooks/compaction/parse.js.map +1 -0
  190. package/dist/hooks/compaction/retention.js +197 -0
  191. package/dist/hooks/compaction/retention.js.map +1 -0
  192. package/dist/hooks/compaction/status.js +243 -0
  193. package/dist/hooks/compaction/status.js.map +1 -0
  194. package/dist/hooks/compaction/types.js +6 -0
  195. package/dist/hooks/compaction/types.js.map +1 -0
  196. package/dist/hooks/compaction.js +20 -20
  197. package/dist/hooks/compaction.js.map +1 -1
  198. package/dist/hooks/cursorPreToolUse.js +1 -1
  199. package/dist/hooks/cursorPreToolUse.js.map +1 -1
  200. package/dist/hooks/sessionStart.js +4 -4
  201. package/dist/hooks/sessionStart.js.map +1 -1
  202. package/dist/hooks/sessionStop.js +3 -12
  203. package/dist/hooks/sessionStop.js.map +1 -1
  204. package/dist/hooks/validateArtifact/agentFacing.js +10 -0
  205. package/dist/hooks/validateArtifact/agentFacing.js.map +1 -0
  206. package/dist/hooks/validateArtifact/index.js +149 -0
  207. package/dist/hooks/validateArtifact/index.js.map +1 -0
  208. package/dist/hooks/validateArtifact/markdown.js +95 -0
  209. package/dist/hooks/validateArtifact/markdown.js.map +1 -0
  210. package/dist/hooks/validateArtifact/runtime.js +83 -0
  211. package/dist/hooks/validateArtifact/runtime.js.map +1 -0
  212. package/dist/hooks/validateArtifact/schema.js +455 -0
  213. package/dist/hooks/validateArtifact/schema.js.map +1 -0
  214. package/dist/hooks/validateArtifact/traversal.js +105 -0
  215. package/dist/hooks/validateArtifact/traversal.js.map +1 -0
  216. package/dist/hooks/validateArtifact/violations.js +105 -0
  217. package/dist/hooks/validateArtifact/violations.js.map +1 -0
  218. package/dist/hooks/validateArtifact.js +40 -49
  219. package/dist/hooks/validateArtifact.js.map +1 -1
  220. package/dist/migrate/v2HandoffManifest.js +333 -0
  221. package/dist/migrate/v2HandoffManifest.js.map +1 -0
  222. package/dist/registries/artifactProtocolIds.js +77 -0
  223. package/dist/registries/artifactProtocolIds.js.map +1 -0
  224. package/dist/registries/capabilityContract.js +12 -11
  225. package/dist/registries/capabilityContract.js.map +1 -1
  226. package/dist/registries/evaluatorHandoffContract.js +171 -0
  227. package/dist/registries/evaluatorHandoffContract.js.map +1 -0
  228. package/dist/release/releaseMetadata.js +235 -0
  229. package/dist/release/releaseMetadata.js.map +1 -0
  230. package/dist/setup/codex/agents.js +96 -0
  231. package/dist/setup/codex/agents.js.map +1 -0
  232. package/dist/setup/codex/cli.js +161 -0
  233. package/dist/setup/codex/cli.js.map +1 -0
  234. package/dist/setup/codex/configToml.js +644 -0
  235. package/dist/setup/codex/configToml.js.map +1 -0
  236. package/dist/setup/codex/constants.js +29 -0
  237. package/dist/setup/codex/constants.js.map +1 -0
  238. package/dist/setup/codex/installRoot.js +64 -0
  239. package/dist/setup/codex/installRoot.js.map +1 -0
  240. package/dist/setup/codex/state.js +270 -0
  241. package/dist/setup/codex/state.js.map +1 -0
  242. package/dist/setup/codex.js +11 -1055
  243. package/dist/setup/codex.js.map +1 -1
  244. package/dist/setup/doctor/core.js +300 -0
  245. package/dist/setup/doctor/core.js.map +1 -0
  246. package/dist/setup/doctor/diagnostics.js +247 -0
  247. package/dist/setup/doctor/diagnostics.js.map +1 -0
  248. package/dist/setup/doctor/opencode.js +281 -0
  249. package/dist/setup/doctor/opencode.js.map +1 -0
  250. package/dist/setup/doctor/report.js +474 -0
  251. package/dist/setup/doctor/report.js.map +1 -0
  252. package/dist/setup/doctor.js +9 -1296
  253. package/dist/setup/doctor.js.map +1 -1
  254. package/dist/setup/opencode.js +13 -0
  255. package/dist/setup/opencode.js.map +1 -0
  256. package/dist/setup/smokeChecks.js +1 -1
  257. package/dist/setup/smokeChecks.js.map +1 -1
  258. package/dist/state/progressCommit.js +1 -1
  259. package/dist/state/progressCommit.js.map +1 -1
  260. package/dist/state/startupAnalysis/benchmark.js +367 -0
  261. package/dist/state/startupAnalysis/benchmark.js.map +1 -0
  262. package/dist/state/startupAnalysis/contract.js +122 -0
  263. package/dist/state/startupAnalysis/contract.js.map +1 -0
  264. package/dist/state/startupAnalysis/helpers.js +332 -0
  265. package/dist/state/startupAnalysis/helpers.js.map +1 -0
  266. package/dist/state/startupAnalysis/index.js +7 -0
  267. package/dist/state/startupAnalysis/index.js.map +1 -0
  268. package/dist/state/startupAnalysis/metrics.js +334 -0
  269. package/dist/state/startupAnalysis/metrics.js.map +1 -0
  270. package/dist/state/startupAnalysis/records.js +195 -0
  271. package/dist/state/startupAnalysis/records.js.map +1 -0
  272. package/dist/state/startupAnalysis/report.js +123 -0
  273. package/dist/state/startupAnalysis/report.js.map +1 -0
  274. package/dist/state/startupAnalysis/threshold.js +500 -0
  275. package/dist/state/startupAnalysis/threshold.js.map +1 -0
  276. package/dist/state/startupAnalysis.js +2 -1952
  277. package/dist/state/startupAnalysis.js.map +1 -1
  278. package/dist/upgrade/coexistenceProbe.js +83 -0
  279. package/dist/upgrade/coexistenceProbe.js.map +1 -0
  280. package/dist/upgrade/doctor.js +41 -2
  281. package/dist/upgrade/doctor.js.map +1 -1
  282. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -1
  283. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -1
  284. package/dist/upgrade/migrateArtifactsV2ToV3.js +5 -83
  285. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  286. package/dist/upgrade/nextMajorDoctor.js +136 -0
  287. package/dist/upgrade/nextMajorDoctor.js.map +1 -0
  288. package/dist/upgrade/projectIntegration.js +3 -1
  289. package/dist/upgrade/projectIntegration.js.map +1 -1
  290. package/dist/upgrade/runtimeMigration.js +32 -5
  291. package/dist/upgrade/runtimeMigration.js.map +1 -1
  292. package/dist/upgrade/v3CapabilitySurface.js +15 -0
  293. package/dist/upgrade/v3CapabilitySurface.js.map +1 -0
  294. package/dist/upgrade/versionResolution.js +12 -4
  295. package/dist/upgrade/versionResolution.js.map +1 -1
  296. package/dist/validate/appHomeContract.js +4 -4
  297. package/dist/validate/appHomeContract.js.map +1 -1
  298. package/dist/validate/capability.js +11 -3
  299. package/dist/validate/capability.js.map +1 -1
  300. package/dist/validate/selfAudit.js +62 -20
  301. package/dist/validate/selfAudit.js.map +1 -1
  302. package/dist/validate/vocabularyAuthority.js +298 -0
  303. package/dist/validate/vocabularyAuthority.js.map +1 -0
  304. package/package.json +4 -4
  305. package/bundle/references/v1-section-mapping.md +0 -47
  306. package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
  307. package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
  308. package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
  309. package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
  310. package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
  311. package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
  312. package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
  313. package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
  314. package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
  315. package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
  316. package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
  317. package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
  318. package/bundle/skills/hej/.claude-plugin/plugin.json +0 -6
  319. package/bundle/skills/hej/SKILL.md +0 -69
  320. package/bundle/skills/hej/agents/hej.toml +0 -11
  321. package/bundle/skills/hej/agents/openai.yaml +0 -8
@@ -0,0 +1,31 @@
1
+ # Upgrade repair wording — v3 cursor agent skip
2
+
3
+ When `agentera upgrade --runtime cursor` (or a full runtime phase) runs against a
4
+ **project** directory, managed `.cursor/agents/*.md` descriptors are normally
5
+ copied from the active app-home bundle. On a **v3 capability-surface** project
6
+ that signal is suppressed so D65 `prime --context` bodies are not regressed to
7
+ the retired `instructions.md` read path.
8
+
9
+ ## v3 surface probe
10
+
11
+ Treat the project as v3 when **all twelve** instruction modules exist:
12
+
13
+ `packages/cli/src/capabilities/<name>/instructions.ts`
14
+
15
+ for every routed capability (`hej`, `visionera`, `resonera`, `inspirera`,
16
+ `planera`, `realisera`, `optimera`, `inspektera`, `dokumentera`, `profilera`,
17
+ `visualisera`, `orkestrera`).
18
+
19
+ If any module is missing, preserve v2 upgrade behavior (copy/refresh managed
20
+ agents from the bundle).
21
+
22
+ ## Orchestrator behavior
23
+
24
+ | Orchestrator | Branch | Behavior |
25
+ | --- | --- | --- |
26
+ | TypeScript (`packages/cli/src/upgrade/runtimeMigration.ts`) | `feat/v3` | On v3 probe match, emit `skipped` `copy-agent` items for in-tree `.cursor/agents/` instead of copying from the bundle. |
27
+ | Python (`scripts/agentera_upgrade.py`) | `main` (stable) | Same probe before the cursor agent copy loop; do not schedule `copy-agent` targets under the project when the probe matches. Backport per the both-branch pattern. |
28
+
29
+ ## User-visible skip message
30
+
31
+ `v3 capability instruction modules present; in-tree .cursor/agents/ uses prime --context and is not overwritten`
@@ -0,0 +1,98 @@
1
+ schema_version: agentera.v3_handoff_manifest.v1
2
+ status: active_authority
3
+ purpose: >-
4
+ Contract for the v2→v3 handoff manifest written by the stable Python CLI at the
5
+ app-home root and read by the v3 TypeScript migration preflight. The manifest
6
+ lets v3 migration classify preserved user state in O(1) time instead of
7
+ scanning the entire app home.
8
+ manifest_file: v3-handoff.json
9
+ manifest_path: >-
10
+ {app_home}/v3-handoff.json where app_home is the platform data-home install
11
+ root (for example ~/.local/share/agentera on Linux).
12
+ writers:
13
+ - v2 stable Python CLI on install, upgrade apply, and doctor (refresh when stale)
14
+ readers:
15
+ - v3 TypeScript migration preflight in packages/cli/src/migrate/v2HandoffManifest.ts
16
+ performance:
17
+ reader_preflight_budget_ms: 100
18
+ note: >-
19
+ When the manifest is present and valid, the v3 reader must complete parsing
20
+ and validation within 100ms. When absent or invalid, the reader may fall
21
+ back to a full app-home scan with no time budget.
22
+ required_top_level_fields:
23
+ schema_version:
24
+ type: string
25
+ const: agentera.v3_handoff_manifest.v1
26
+ written_at:
27
+ type: string
28
+ format: iso8601_utc
29
+ description: UTC timestamp when the manifest was last written.
30
+ installed_v2_version:
31
+ type: string
32
+ min_length: 1
33
+ description: Installed Agentera suite version from the active v2 bundle marker.
34
+ app_home_path:
35
+ type: string
36
+ min_length: 1
37
+ description: Absolute resolved app-home path the writer used.
38
+ user_data_inventory:
39
+ type: array
40
+ min_items: 6
41
+ description: >-
42
+ One entry per catalog id below. Entries for paths that do not exist on disk
43
+ set exists=false; writers still emit the full catalog so v3 preflight can
44
+ trust absence without rescanning.
45
+ runtime_adapters:
46
+ type: array
47
+ items:
48
+ type: string
49
+ description: >-
50
+ Runtime adapter ids (references/adapters/runtime-adapter-registry.yaml)
51
+ that the v2 install actively uses — runtimes whose setup doctor status is
52
+ pass at write time.
53
+ user_data_inventory_catalog:
54
+ - id: benchmarks
55
+ relative_path: benchmarks
56
+ kind: directory
57
+ - id: intermediate
58
+ relative_path: intermediate
59
+ kind: directory
60
+ - id: sessions
61
+ relative_path: sessions
62
+ kind: directory
63
+ - id: history
64
+ relative_path: history
65
+ kind: directory
66
+ - id: corpus
67
+ relative_path: corpus
68
+ kind: directory
69
+ - id: profile_files
70
+ kind: profile_files
71
+ members:
72
+ - relative_path: PROFILE.md
73
+ kind: file
74
+ - relative_path: USAGE.md
75
+ kind: file
76
+ user_data_inventory_entry_shapes:
77
+ directory:
78
+ required: [id, relative_path, kind, exists]
79
+ kind_const: directory
80
+ file:
81
+ required: [id, relative_path, kind, exists]
82
+ kind_const: file
83
+ profile_files:
84
+ required: [id, kind, members]
85
+ kind_const: profile_files
86
+ members:
87
+ required: [relative_path, kind, exists]
88
+ kind_const: file
89
+ freshness:
90
+ writer_obligations:
91
+ - Refresh the manifest on every v2 upgrade apply.
92
+ - Refresh the manifest on v2 doctor when stale or missing (after warning).
93
+ stale_when_any:
94
+ - Manifest file missing.
95
+ - schema_version mismatch.
96
+ - app_home_path differs from the resolved install root.
97
+ - installed_v2_version differs from the active bundle marker version.
98
+ - written_at is older than the bundle marker mtime.
@@ -18,7 +18,7 @@ authority_order:
18
18
  - references/cli/capability-instruction-contract.yaml
19
19
  - references/cli/routing-execution-vocabulary.yaml
20
20
  - skills/agentera/SKILL.md
21
- - skills/agentera/capabilities/*/instructions.md
21
+ - packages/cli/src/capabilities/*/instructions.ts
22
22
  - the agentera CLI
23
23
  - packages/cli/src/upgrade (doctor/upgrade)
24
24
  - README.md
@@ -62,8 +62,8 @@ normalization_rules:
62
62
  - rule: Worker safety commits are Git-only.
63
63
  use: pre-spawn Git commit
64
64
  avoid: Non-Git checkpoint or pre-dispatch commit gate in new docs.
65
- - rule: Capability instruction files have current metadata and a runtime boundary.
66
- use: instructions.md plus emitted first_invocation_read; runtime enforcement remains false
65
+ - rule: Capability instruction modules have current metadata and a runtime boundary.
66
+ use: instructions.ts plus emitted prime_context first_invocation_read; runtime enforcement is true via the CLI prime command
67
67
  avoid: Claiming agents are policed for actual reads, or adding unsupported agentera planera commands.
68
68
  plain_language:
69
69
  lead_with_plain_phrase:
@@ -20,10 +20,10 @@ included when they shape cross-suite usage.
20
20
  | `references/cli/app-lifecycle-vocabulary.yaml` | App lifecycle canonical statuses, deprecated aliases, operation verbs, status concepts, and consumer ownership boundaries. |
21
21
  | `references/cli/update-channels.yaml` | Stable and development update channels, dist-tag/git resolution, default channel, and override keys. |
22
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 `instructions.md` authority, and implemented `first_invocation_read` CLI/schema discoverability. |
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
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
25
  | `skills/agentera/SKILL.md` | Agentera routing entry point, routing model, CLI-first state access, installed-app status checks, and safety rails. |
26
- | `skills/agentera/capabilities/*/instructions.md` | Capability behavior, workflow grammar, step markers, and cross-capability boundaries. |
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
27
  | `the agentera CLI` and `packages/cli/src/upgrade (doctor/upgrade)` | CLI-visible command labels, upgrade output, and doctor diagnostics. |
28
28
  | `README.md`, `UPGRADE.md`, `DESIGN.md`, `.agentera/*.yaml` | User-facing phrasing, design vocabulary, and current project-state examples. |
29
29
 
@@ -51,11 +51,13 @@ examples. Diagnostics should state object, state, cause, and fix.
51
51
 
52
52
  | Term | Definition | Common sources |
53
53
  | --- | --- | --- |
54
- | Agentera | The open protocol for turning AI agents into engineering teams through shared project state, roles, decisions, and verification. | `README.md`, `.agentera/vision.yaml`, `skills/agentera/SKILL.md` |
55
- | Agentera v2 | The current architecture: one Agentera skill, one `/agentera` entry point, twelve capabilities, YAML project state, and CLI-first access. | `README.md`, `UPGRADE.md`, `.agentera/decisions.yaml` |
56
- | Agentera skill | The runtime-loaded Agentera skill at `skills/agentera/`. It contains the routing entry and twelve capabilities. | `skills/agentera/SKILL.md` |
57
- | Capability | A routed behavioral unit inside the Agentera skill, with `instructions.md` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. | `AGENTS.md`, `skills/agentera/capabilities/*` |
58
- | Shared protocol | The primitive vocabulary in `protocol.yaml`: confidence, severity, decision labels, exits, visual tokens, glyphs, and phases. | `skills/agentera/protocol.yaml` |
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` |
59
61
  | Capability schema contract | The executable contract for capability schema groups, stable IDs, priorities, deprecations, and primitive references. | `skills/agentera/capability_schema_contract.yaml` |
60
62
  | Project state | Structured files that preserve intent, decisions, plans, progress, health, docs, design, and session continuity. | `README.md`, `.agentera/docs.yaml` |
61
63
  | Project history | Durable history kept in files so future agents do not reconstruct history from chat residue. | `README.md`, `.agentera/progress.yaml` |
@@ -87,21 +89,26 @@ Capability names use Swedish-style `-era` verb forms. The name is the action:
87
89
 
88
90
  The machine-readable authority is
89
91
  `references/cli/capability-instruction-contract.yaml`; it owns Decision 57's
90
- instruction-file boundary, including the canonical `instructions.md` file,
91
- legacy `prose.md` compatibility boundaries, implemented `first_invocation_read` values,
92
- full-read obligations, compact-startup exceptions, and unsupported runtime
93
- enforcement states.
94
-
95
- Use this prose as guidance only: the default is that initial capability invocation
96
- reads `instructions.md` in full unless an explicit compact-startup exception is
97
- declared. Today, capability files and runtime descriptors use `instructions.md`,
98
- validators require `instructions.md`, and `agentera hej --format json
99
- --capability-context <name>` emits `source_contract.capability_context.first_invocation_read`.
92
+ instruction-file boundary, including the canonical `instructions.ts` module,
93
+ legacy `prose.md` and `instructions.md` compatibility boundaries, the
94
+ implemented `first_invocation_read: prime_context` value, the
95
+ `prime --context <name> --format json` ownership statement, and the runtime
96
+ enforcement boundary promoted to `true` in D65.
97
+
98
+ Use this prose as guidance only: the default is that the first capability
99
+ invocation shells out to `agentera prime --context <name> --format json` and
100
+ reads the returned `prose` field. Today, capability directories carry the
101
+ `schemas/` files only, the prose module lives at
102
+ `packages/cli/src/capabilities/<name>/instructions.ts`, runtime descriptors
103
+ invoke the prime command, and the `agentera prime --context <name> --format
104
+ json` response emits `capability_context.prose` plus
105
+ `first_invocation_read` metadata.
100
106
 
101
107
  Do not replace this with a parallel Markdown table of read modes or migration
102
108
  surfaces. Update the YAML authority first, then keep this section as the short
103
- human-facing boundary. Runtime first-invocation read behavior and broad
104
- required-read validation regression remain separate follow-up work.
109
+ human-facing boundary. The `prime_context` runtime enforcement is owned by the
110
+ CLI process; agent runtimes shell out to the prime command instead of reading
111
+ the prose module directly.
105
112
 
106
113
  ## Invocation and routing grammar
107
114
 
@@ -193,14 +200,15 @@ ambiguous-term sweep remain separate follow-up work.
193
200
  | --- | --- |
194
201
  | Artifact | A project or agent state file owned by one or more capabilities. |
195
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`. |
196
204
  | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
197
205
  | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
198
- | Canonical artifact name | Display identifier such as `VISION.md`, `PROGRESS.md`, or `DOCS.md`; not always a literal path. |
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. |
199
207
  | Resolved artifact path | The actual path after consulting `.agentera/docs.yaml` mapping or the default layout. |
200
- | Artifact mapping | `.agentera/docs.yaml` rows that map canonical names to project-local paths and producers. |
208
+ | Artifact mapping | `.agentera/docs.yaml` rows that map `artifact_id` values to project-local paths and producers. |
201
209
  | ArtifactRegistry | The registry interface model for artifact IDs, display names, default paths, producers, consumers, type, scope, and special cases. |
202
210
  | `artifact_id` | Machine identifier such as `progress`, `health`, `docs`, or `objective`. |
203
- | `display_name` | Human-readable canonical name, usually the v1-style Markdown name. |
211
+ | `display_name` | Human-readable filename label such as `VISION.md` or `TODO.md`; registry-owned, not protocol identity. |
204
212
  | `default_path` | Registry-owned path used when no docs mapping overrides it. |
205
213
  | `local_role` | Capability relationship to an artifact: `produces`, `consumes`, or `produces_and_consumes`. |
206
214
  | Docs override boundary | `docs.yaml` may override paths for known display names; it must not redefine canonical identity facts. |
@@ -434,7 +442,7 @@ references, generic plain language, and ambiguous current prose.
434
442
  Use this prose as guidance only: current conceptual docs should say the object
435
443
  they mean, such as Agentera app files, suite package, plugin-shipped hooks,
436
444
  removed `bundle-status` command, Agentera routing entry point, skill entry file,
437
- v1 skill entry file, or legacy hej bridge. Preserve shipped identifiers and
445
+ historical v1 skill entry paths (post-3.0 removed from the repo tree). Preserve shipped identifiers and
438
446
  literal paths such as `.agentera-bundle.json`, `bundle.status`,
439
447
  `activeBundleRoot`, `--only bundle`, and `skills/agentera/SKILL.md` unless an
440
448
  explicit compatibility migration is in scope.
@@ -484,8 +492,8 @@ Visualisera owns visual identity in `DESIGN.md`. Protocol owns token meanings in
484
492
 
485
493
  | Phrase | Use |
486
494
  | --- | --- |
487
- | “The open protocol for turning AI agents into engineering teams.” | Product identity. |
488
- | “One install, one entry point, one query interface to all project state.” | v2 app-home promise. |
495
+ | “Opinionated mobile-first coding agent.” | Product identity. |
496
+ | “One install, one entry point, one query interface to all project state.” | CLI state-access promise (internals/contributor docs). |
489
497
  | “Continuity lives in files, not memory.” | Realisera/project-state principle. |
490
498
  | “The conversation preserves reasoning; the artifact preserves the plan.” | Planera boundary. |
491
499
  | “Planera owns WHAT and WHY; realisera owns HOW.” | Planning/building boundary. |
@@ -543,7 +551,7 @@ High-signal source surfaces for this vocabulary:
543
551
  | `skills/agentera/SKILL.md` | Routing entry, routing layers, CLI-first access, installed-app status check, and v1 migration check. |
544
552
  | `skills/agentera/protocol.yaml` | Protocol primitives, glyphs, phases, visual tokens, exit signals. |
545
553
  | `skills/agentera/capability_schema_contract.yaml` | Schema groups, priorities, stable IDs, primitive-reference fields. |
546
- | `skills/agentera/capabilities/*/instructions.md` | Workflow grammar, capability roles, safety rails, exit marker forms. |
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`. |
547
555
  | `skills/agentera/capabilities/*/schemas/*.yaml` | Trigger patterns, artifact roles, validation rules, exit conditions. |
548
556
  | `skills/agentera/schemas/artifacts/*.yaml` | Artifact fields, status enums, validation vocabulary, and protected current-state fields. |
549
557
  | `references/artifacts/artifact-registry-interface-model.yaml` | Canonical artifact registry language. |
@@ -4,7 +4,14 @@ Maintainer inventory of repository documentation, workpapers, and legacy surface
4
4
  Authoritative Agentera docs live under `references/`, `skills/agentera/`, and root
5
5
  guides — not under `docs/`.
6
6
 
7
- **Last reviewed:** 2026-05-23
7
+ **Last reviewed:** 2026-06-05
8
+
9
+ ## Design docs under `docs/`
10
+
11
+ | Path | Topic |
12
+ | ---- | ----- |
13
+ | `docs/packaging/v3-packaging.md` | v3 CLI npm/Bun distribution contract |
14
+ | `docs/consolidation/monorepo-plan.md` | Product pivot, `@agentera/*` package layout, migration checklist (D67) |
8
15
 
9
16
  ## Authority stack
10
17
 
@@ -17,7 +24,7 @@ guides — not under `docs/`.
17
24
  | Benchmark contract | `references/analysis/startup-measurement-contract.yaml` |
18
25
  | Benchmark runbook | `references/analysis/benchmark.md` |
19
26
  | JSON surface budgets | `scripts/json_output_surface_manifest.yaml` |
20
- | Project drafts | `docs/` (gitignored except `docs/README.md`) |
27
+ | Project drafts | `docs/` (gitignored except `docs/README.md`, `docs/packaging/`, `docs/consolidation/`) |
21
28
 
22
29
  ## `docs/` policy
23
30
 
@@ -40,4 +47,3 @@ Live JSON enforcement uses `scripts/json_output_surface_manifest.yaml` only.
40
47
 
41
48
  - Replace live `SPEC.md` references in `UPGRADE.md`, hooks, adapter docs, `contract.md`
42
49
  - Refresh or drop assertions against pre-migration characterization snapshots
43
- - Agentera 3.0: remove `skills/hej/` bridge and `references/v1-section-mapping.md`
@@ -4,7 +4,7 @@
4
4
  "skills": [
5
5
  {
6
6
  "name": "agentera",
7
- "version": "2.7.6",
7
+ "version": "3.0.0",
8
8
  "description": "Compound agent orchestration suite — 12 capabilities in one bundled skill; exact bare hej uses the Agentera dashboard path",
9
9
  "path": "skills/agentera",
10
10
  "capabilities": [
@@ -1,14 +1,28 @@
1
1
  ---
2
2
  name: agentera
3
3
  description: >
4
- The open protocol for turning AI agents into engineering teams.
5
- One Agentera skill with twelve capabilities, each defined by human-readable
6
- prose and machine-readable schemas. The agent reads this file to route
7
- incoming requests to the right capability. Use this skill for /agentera,
8
- Agentera capability requests, and a complete user message exactly `hej`;
9
- bare `hej` runs the agentera prime orientation dashboard path instead of a generic greeting.
10
- version: "2.7.6"
4
+ Agentera agent engine for editor runtimes. One Agentera skill with twelve
5
+ capabilities; per-capability prose lives in
6
+ `packages/cli/src/capabilities/<name>/instructions.ts` and the runtime serves
7
+ it through `agentera prime --context <name> --format json`. Use this skill
8
+ for /agentera, Agentera capability requests, and a complete user message
9
+ exactly `hej`; bare `hej` runs the agentera prime orientation dashboard path
10
+ instead of a generic greeting.
11
+ version: "3.0.0"
11
12
  spec_sections: [1, 2, 3, 4, 5, 6, 11, 13, 18, 19, 20, 22, 23]
13
+ capabilities:
14
+ - hej
15
+ - visionera
16
+ - resonera
17
+ - inspirera
18
+ - planera
19
+ - realisera
20
+ - optimera
21
+ - inspektera
22
+ - dokumentera
23
+ - profilera
24
+ - visualisera
25
+ - orkestrera
12
26
  ---
13
27
 
14
28
  # agentera
@@ -182,9 +196,10 @@ above must have already confirmed the installed CLI is usable.
182
196
 
183
197
  Routine commands are: `prime`, `state plan`, `state progress`, `state health`,
184
198
  `state todo`, `state decisions`, `state docs`, `state objective`, and
185
- `state experiments`. Top-level aliases for legacy commands remain during migration with stderr deprecation; see [audience-namespace-cli-migration.yaml](references/cli/audience-namespace-cli-migration.yaml) for the full list. Discovery and custom
186
- inspection remain available through `agentera schema --format json`
187
- (with legacy `describe` alias),
199
+ `state experiments`. On the npm 3.x CLI, top-level `hej`, `describe`, `gate`, and
200
+ routine-state names are removed; a smaller transitional alias set still forwards
201
+ with stderr deprecation — see [audience-namespace-cli-migration.yaml](references/cli/audience-namespace-cli-migration.yaml). Discovery and custom
202
+ inspection remain available through `agentera schema --format json`,
188
203
  `state query --list-artifacts`, and `state query <artifact-name> --format json|yaml`.
189
204
  Structured discovery includes an artifact-location contract with mapped paths,
190
205
  normal read commands, and raw-access boundaries; use that contract before
@@ -239,7 +254,7 @@ Bare `/agentera` returning-project output must include these visible markers:
239
254
 
240
255
  Use the README-style layout from hej Step 1b: metrics first, narrative read
241
256
  inside `status`, then attention and next. The issues summary line uses
242
- `critical · degraded · annoying` only. Omit `attention` only when the source has no attention items. Always include the
257
+ `critical · degraded · normal · annoying` in the order prime emits them. Omit `attention` only when the source has no attention items. Always include the
243
258
  mandatory `⌂ hej · <status>` marker below the dashboard code fence, and ask for
244
259
  confirmation before invoking the suggested downstream capability. For
245
260
  `/agentera <capability-name>` or `/agentera <alias>`, do not assume the route
@@ -261,21 +276,25 @@ v2 paths `hej --capability-context` and `--context-profile` are removed in 3.0.
261
276
  For normal ≡ planera execution, use
262
277
  `capability_context.context.planning_context.startup_contract` from
263
278
  `agentera prime --context planera --format json`
264
- before reading `skills/agentera/capabilities/planera/instructions.md`. Read Planera prose only when
265
- editing Planera, resolving contradiction or ambiguity, validating detailed
266
- behavior not covered by the compact contract, or investigating benchmark/read-trigger
267
- evidence. This preserves Planera prose as detailed authority and does not add
268
- `agentera planera`; `/agentera plan` remains routing while `agentera state plan`
269
- remains plan state (top-level `agentera plan` is a migration alias).
279
+ before reading the Planera prose from
280
+ `packages/cli/src/capabilities/planera/instructions.ts` (served via
281
+ `capability_context.prose` from the same prime call). Read the full Planera
282
+ prose only when editing Planera, resolving contradiction or ambiguity,
283
+ validating detailed behavior not covered by the compact contract, or
284
+ investigating benchmark/read-trigger evidence. This preserves Planera prose
285
+ as detailed authority and does not add `agentera planera`; `/agentera plan`
286
+ remains routing while `agentera state plan` remains plan state (top-level
287
+ `agentera plan` is a migration alias).
270
288
  For normal DECISIONS.md context, use `agentera state decisions --format json` and its
271
289
  source_contract. When `complete_for_normal_deliberation_context=true`, preserve
272
290
  returned `missing_fields`, `compacted`, `caveats`, and `satisfaction.review_needed`
273
291
  instead of raw-reading `.agentera/decisions.yaml` to reconstruct missing history.
274
292
  Raw decision artifact access is reserved for Resonera-owned writes/repairs,
275
293
  artifact corruption diagnostics, or CLI defect investigation.
276
- Reading a capability's `instructions.md` file is not itself a capability invocation;
277
- invocation means routing to the capability, following its prose, and using the
278
- CLI state layer first for artifact-backed state.
294
+ Reading a capability's instructions module is not itself a capability invocation;
295
+ invocation means routing to the capability, fetching the prose via
296
+ `agentera prime --context <name> --format json`, following that prose, and using
297
+ the CLI state layer first for artifact-backed state.
279
298
 
280
299
  Capability handoffs use glyph plus canonical capability name, for example
281
300
  `⧉ realisera` or `≡ planera`. Reserve `/agentera <alias>` wording for explicit
@@ -343,15 +362,14 @@ when supplied by the CLI.
343
362
  Do not replace the CLI-owned preview with manual artifact inspection,
344
363
  hand-written migration steps, or raw YAML reads. Only the apply step requires confirmation.
345
364
 
346
- The upgrade command is idempotent. It installs or updates Agentera app files
347
- when invoked through `uvx`, migrates v1 artifacts, wires runtime config to that
348
- app home, and removes fixable outdated v1 runtime artifacts.
349
- The artifacts phase migrates supported v1 Markdown files to YAML with backups
350
- after preview and confirmation. Package refreshes that run `npx skills remove`
351
- for v1 skill entries and `npx skills add` for `/agentera` remain explicit opt-in
352
- via `--update-packages`. `npx skills update` by itself updates only the visible
353
- skill; if `/agentera` then finds missing or out-of-date app files, run the
354
- plain-language repair preview above so upgrade updates the app and cleans up
365
+ The upgrade command is idempotent. It installs or updates Agentera app files,
366
+ migrates legacy Markdown artifacts to YAML when detected, wires runtime config
367
+ to the app home, and removes fixable outdated runtime artifacts after preview
368
+ and confirmation. Package refreshes that run `npx skills remove` for legacy
369
+ standalone skill entries and `npx skills add` for `/agentera` remain explicit
370
+ opt-in via `--update-packages`. `npx skills update` by itself updates only the
371
+ visible skill; if `/agentera` then finds missing or out-of-date app files, run
372
+ the plain-language repair preview above so upgrade updates the app and cleans up
355
373
  the old default directory when it is recoverable.
356
374
 
357
375
  ### Layer 1: Bare `/agentera` or bare `hej` — delegate to prime
@@ -436,25 +454,24 @@ Before reading or writing any artifact, check if `.agentera/docs.yaml` exists. I
436
454
 
437
455
  ```
438
456
  skills/agentera/
439
- SKILL.md # This file
457
+ SKILL.md # This file (routing stub + capability table)
440
458
  protocol.yaml # Shared primitives
441
459
  capability_schema_contract.yaml # Self-referential schema contract
442
460
  capabilities/
443
461
  hej/
444
- instructions.md
445
462
  schemas/
446
463
  triggers.yaml
447
464
  artifacts.yaml
448
465
  validation.yaml
449
466
  exit.yaml
450
467
  resonera/
451
- instructions.md
452
468
  schemas/
453
469
  triggers.yaml
454
470
  artifacts.yaml
455
471
  validation.yaml
456
472
  exit.yaml
457
- ... (12 capabilities total)
473
+ ... (12 capabilities total, each with schemas/ only)
474
+ packages/cli/src/capabilities/<name>/instructions.ts # Per-capability prose (D65)
458
475
  ```
459
476
 
460
477
  Validate any capability against the contract through the canonical CLI:
@@ -2,5 +2,5 @@
2
2
  name = "dokumentera"
3
3
  description = "Documentation updates and synchronization."
4
4
  developer_instructions = """
5
- You are the Agentera dokumentera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/dokumentera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/dokumentera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera dokumentera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context dokumentera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "hej"
3
3
  description = "Agentera orientation and routing dashboard."
4
4
  developer_instructions = """
5
- You are the Agentera hej capability subagent. You are a read-only agent — do not write files or execute shell commands. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/hej/instructions.md when available. For local checkout development, use skills/agentera/capabilities/hej/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera hej capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context hej --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "inspektera"
3
3
  description = "Codebase health audit."
4
4
  developer_instructions = """
5
- You are the Agentera inspektera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/inspektera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/inspektera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera inspektera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context inspektera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "inspirera"
3
3
  description = "External pattern research and synthesis."
4
4
  developer_instructions = """
5
- You are the Agentera inspirera capability subagent. You are a read-only agent — do not write files or execute shell commands. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/inspirera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/inspirera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera inspirera capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context inspirera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "optimera"
3
3
  description = "Metric-driven optimization cycles."
4
4
  developer_instructions = """
5
- You are the Agentera optimera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/optimera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/optimera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera optimera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context optimera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "orkestrera"
3
3
  description = "Multi-cycle orchestration over active plans."
4
4
  developer_instructions = """
5
- You are the Agentera orkestrera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/orkestrera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/orkestrera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera orkestrera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context orkestrera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "planera"
3
3
  description = "Planning with acceptance criteria."
4
4
  developer_instructions = """
5
- You are the Agentera planera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/planera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/planera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera planera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context planera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "profilera"
3
3
  description = "Decision profiling and preference memory."
4
4
  developer_instructions = """
5
- You are the Agentera profilera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/profilera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/profilera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera profilera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context profilera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "realisera"
3
3
  description = "Autonomous development execution."
4
4
  developer_instructions = """
5
- You are the Agentera realisera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/realisera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/realisera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera realisera capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context realisera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "resonera"
3
3
  description = "Structured deliberation and decision support."
4
4
  developer_instructions = """
5
- You are the Agentera resonera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/resonera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/resonera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera resonera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context resonera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "visionera"
3
3
  description = "Define and refine project direction."
4
4
  developer_instructions = """
5
- You are the Agentera visionera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/visionera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/visionera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera visionera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context visionera --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.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "visualisera"
3
3
  description = "Visual identity and design systems."
4
4
  developer_instructions = """
5
- You are the Agentera visualisera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Read the authoritative instructions at ${AGENTERA_HOME}/app/skills/agentera/capabilities/visualisera/instructions.md when available. For local checkout development, use skills/agentera/capabilities/visualisera/instructions.md under the active Agentera source root. Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera visualisera capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context visualisera --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.
6
6
  """