agentera 3.0.0-dev.2 → 3.0.0-dev.20

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 (612) hide show
  1. package/README.md +65 -6
  2. package/bundle/.agentera-npx-bundle.json +1 -1
  3. package/bundle/.codex-plugin/plugin.json +92 -0
  4. package/bundle/.cursor/agents/agentera.md +7 -0
  5. package/bundle/.cursor/hooks.json +32 -0
  6. package/bundle/.cursor-plugin/plugin.json +34 -0
  7. package/bundle/.github/hooks/postToolUse.json +9 -0
  8. package/bundle/.github/hooks/preToolUse.json +8 -0
  9. package/bundle/.github/hooks/sessionEnd.json +8 -0
  10. package/bundle/.github/hooks/sessionStart.json +8 -0
  11. package/bundle/.github/plugin/plugin.json +7 -0
  12. package/bundle/.opencode/agents/agentera.md +12 -0
  13. package/bundle/.opencode/commands/agentera.md +5 -0
  14. package/bundle/.opencode/package.json +31 -0
  15. package/bundle/.opencode/plugins/agentera.js +820 -0
  16. package/bundle/CHANGELOG.md +1108 -0
  17. package/bundle/DESIGN.md +233 -0
  18. package/bundle/LICENSE +201 -0
  19. package/bundle/README.md +141 -0
  20. package/bundle/UPGRADE.md +227 -0
  21. package/bundle/agents/openai.yaml +87 -0
  22. package/bundle/extract-corpus-parity.json +21 -0
  23. package/bundle/hooks/codex-hooks.json +31 -0
  24. package/bundle/hooks/codex-plugin-hooks.json +31 -0
  25. package/bundle/plugin.json +13 -0
  26. package/bundle/references/adapters/cursor.md +53 -42
  27. package/bundle/references/adapters/opencode.md +46 -47
  28. package/bundle/references/adapters/package-manifest-interface-model.yaml +32 -43
  29. package/bundle/references/adapters/package-registry.yaml +19 -53
  30. package/bundle/references/adapters/package-surface-characterization.md +61 -48
  31. package/bundle/references/adapters/runtime-adapter-characterization.md +44 -79
  32. package/bundle/references/adapters/runtime-adapter-registry.yaml +21 -182
  33. package/bundle/references/adapters/runtime-feature-parity.md +114 -174
  34. package/bundle/references/adapters/runtime-lifecycle-adapters.yaml +288 -0
  35. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +90 -0
  36. package/bundle/references/adapters/runtime-lifecycle-operation-contract.yaml +84 -0
  37. package/bundle/references/adapters/runtime-retired-resources.yaml +33 -0
  38. package/bundle/references/analysis/benchmark.md +6 -6
  39. package/bundle/references/analysis/startup-measurement-contract.yaml +37 -26
  40. package/bundle/references/artifacts/artifact-registry-interface-model.yaml +6 -5
  41. package/bundle/references/cli/agent-ready-state-contract.yaml +26 -23
  42. package/bundle/references/cli/app-lifecycle-vocabulary.yaml +4 -4
  43. package/bundle/references/cli/audience-namespace-cli-migration.yaml +40 -26
  44. package/bundle/references/cli/bundle-skill-vocabulary.yaml +4 -32
  45. package/bundle/references/cli/capability-instruction-contract.yaml +98 -57
  46. package/bundle/references/cli/capability-instruction-structure.md +144 -0
  47. package/bundle/references/cli/capability-tool-classification.yaml +12 -12
  48. package/bundle/references/cli/coexistence-probe.yaml +13 -0
  49. package/bundle/references/cli/parity-expected-actual-template.md +30 -0
  50. package/bundle/references/cli/routing-execution-vocabulary.yaml +12 -12
  51. package/bundle/references/cli/routing-model.md +94 -0
  52. package/bundle/references/cli/single-name-protocol.yaml +42 -0
  53. package/bundle/references/cli/trigger-schema-enrichment.md +136 -0
  54. package/bundle/references/cli/update-channels.yaml +43 -7
  55. package/bundle/references/cli/upgrade-repair-wording.md +45 -0
  56. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +98 -0
  57. package/bundle/references/cli/vocabulary-index.yaml +20 -15
  58. package/bundle/references/cli/vocabulary.md +342 -326
  59. package/bundle/references/meta/documentation-inventory.md +9 -3
  60. package/bundle/registry.json +14 -14
  61. package/bundle/skills/agentera/SKILL.md +136 -408
  62. package/bundle/skills/agentera/agents/audit.toml +6 -0
  63. package/bundle/skills/agentera/agents/build.toml +6 -0
  64. package/bundle/skills/agentera/agents/design.toml +6 -0
  65. package/bundle/skills/agentera/agents/discuss.toml +6 -0
  66. package/bundle/skills/agentera/agents/document.toml +6 -0
  67. package/bundle/skills/agentera/agents/optimize.toml +6 -0
  68. package/bundle/skills/agentera/agents/orchestrate.toml +6 -0
  69. package/bundle/skills/agentera/agents/plan.toml +6 -0
  70. package/bundle/skills/agentera/agents/profile.toml +6 -0
  71. package/bundle/skills/agentera/agents/research.toml +6 -0
  72. package/bundle/skills/agentera/agents/status.toml +6 -0
  73. package/bundle/skills/agentera/agents/vision.toml +6 -0
  74. package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/artifacts.yaml +10 -10
  75. package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/exit.yaml +2 -2
  76. package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/triggers.yaml +15 -6
  77. package/bundle/skills/agentera/capabilities/{inspektera → audit}/schemas/validation.yaml +13 -12
  78. package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/artifacts.yaml +12 -12
  79. package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/exit.yaml +3 -3
  80. package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/triggers.yaml +13 -3
  81. package/bundle/skills/agentera/capabilities/{realisera → build}/schemas/validation.yaml +11 -11
  82. package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/artifacts.yaml +6 -6
  83. package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/exit.yaml +5 -5
  84. package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/triggers.yaml +15 -3
  85. package/bundle/skills/agentera/capabilities/{visualisera → design}/schemas/validation.yaml +7 -7
  86. package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/artifacts.yaml +12 -11
  87. package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/exit.yaml +2 -2
  88. package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/triggers.yaml +11 -3
  89. package/bundle/skills/agentera/capabilities/{resonera → discuss}/schemas/validation.yaml +9 -8
  90. package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/artifacts.yaml +10 -10
  91. package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/triggers.yaml +14 -4
  92. package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/validation.yaml +8 -8
  93. package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/artifacts.yaml +9 -9
  94. package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/exit.yaml +2 -2
  95. package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/triggers.yaml +11 -3
  96. package/bundle/skills/agentera/capabilities/{optimera → optimize}/schemas/validation.yaml +9 -9
  97. package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/artifacts.yaml +12 -11
  98. package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/exit.yaml +7 -6
  99. package/bundle/skills/agentera/capabilities/{orkestrera → orchestrate}/schemas/triggers.yaml +16 -3
  100. package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +120 -0
  101. package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +63 -0
  102. package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/exit.yaml +2 -2
  103. package/bundle/skills/agentera/capabilities/{planera → plan}/schemas/triggers.yaml +15 -3
  104. package/bundle/skills/agentera/capabilities/plan/schemas/validation.yaml +89 -0
  105. package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/artifacts.yaml +2 -2
  106. package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/exit.yaml +3 -3
  107. package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/triggers.yaml +7 -3
  108. package/bundle/skills/agentera/capabilities/{profilera → profile}/schemas/validation.yaml +2 -2
  109. package/bundle/skills/agentera/capabilities/research/schemas/artifacts.yaml +24 -0
  110. package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/triggers.yaml +9 -3
  111. package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/validation.yaml +2 -2
  112. package/bundle/skills/agentera/capabilities/{hej → status}/schemas/artifacts.yaml +14 -11
  113. package/bundle/skills/agentera/capabilities/{hej → status}/schemas/triggers.yaml +12 -8
  114. package/bundle/skills/agentera/capabilities/{hej → status}/schemas/validation.yaml +5 -5
  115. package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/artifacts.yaml +8 -8
  116. package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/exit.yaml +7 -6
  117. package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/triggers.yaml +19 -5
  118. package/bundle/skills/agentera/capabilities/{visionera → vision}/schemas/validation.yaml +18 -20
  119. package/bundle/skills/agentera/capability_schema_contract.yaml +201 -38
  120. package/bundle/skills/agentera/protocol.yaml +29 -29
  121. package/bundle/skills/agentera/references/contract.md +338 -322
  122. package/bundle/skills/agentera/schemas/artifacts/changelog.yaml +4 -4
  123. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +10 -10
  124. package/bundle/skills/agentera/schemas/artifacts/design.yaml +4 -4
  125. package/bundle/skills/agentera/schemas/artifacts/docs.yaml +8 -7
  126. package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +5 -5
  127. package/bundle/skills/agentera/schemas/artifacts/health.yaml +5 -5
  128. package/bundle/skills/agentera/schemas/artifacts/objective.yaml +4 -4
  129. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +263 -11
  130. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +20 -41
  131. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +43 -24
  132. package/bundle/skills/agentera/schemas/artifacts/vision.yaml +3 -3
  133. package/dist/analytics/extractCorpus/cli.js +163 -0
  134. package/dist/analytics/extractCorpus/cli.js.map +1 -0
  135. package/dist/analytics/extractCorpus/copilotSessions.js +276 -0
  136. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -0
  137. package/dist/analytics/extractCorpus/core.js +393 -0
  138. package/dist/analytics/extractCorpus/core.js.map +1 -0
  139. package/dist/analytics/extractCorpus/corpus.js +168 -0
  140. package/dist/analytics/extractCorpus/corpus.js.map +1 -0
  141. package/dist/analytics/extractCorpus/coverageAudit.js +261 -0
  142. package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -0
  143. package/dist/analytics/extractCorpus/cursorSessions.js +426 -0
  144. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -0
  145. package/dist/analytics/extractCorpus/extractCorpusParity.js +105 -0
  146. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -0
  147. package/dist/analytics/extractCorpus/filesystemSources.js +119 -0
  148. package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -0
  149. package/dist/analytics/extractCorpus/index.js +12 -0
  150. package/dist/analytics/extractCorpus/index.js.map +1 -0
  151. package/dist/analytics/extractCorpus/jsonlSessions.js +205 -0
  152. package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -0
  153. package/dist/analytics/extractCorpus/sqliteCaps.js +44 -0
  154. package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -0
  155. package/dist/analytics/extractCorpus/sqliteSessions.js +368 -0
  156. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -0
  157. package/dist/analytics/extractCorpus.js +2 -1790
  158. package/dist/analytics/extractCorpus.js.map +1 -1
  159. package/dist/analytics/usageStats.js +93 -27
  160. package/dist/analytics/usageStats.js.map +1 -1
  161. package/dist/bin/agentera.js +3 -1
  162. package/dist/bin/agentera.js.map +1 -1
  163. package/dist/capabilities/audit/instructions.js +4 -0
  164. package/dist/capabilities/audit/instructions.js.map +1 -0
  165. package/dist/capabilities/build/instructions.js +5 -0
  166. package/dist/capabilities/build/instructions.js.map +1 -0
  167. package/dist/capabilities/design/instructions.js +5 -0
  168. package/dist/capabilities/design/instructions.js.map +1 -0
  169. package/dist/capabilities/discuss/instructions.js +6 -0
  170. package/dist/capabilities/discuss/instructions.js.map +1 -0
  171. package/dist/capabilities/document/instructions.js +4 -0
  172. package/dist/capabilities/document/instructions.js.map +1 -0
  173. package/dist/capabilities/index.js +38 -0
  174. package/dist/capabilities/index.js.map +1 -0
  175. package/dist/capabilities/optimize/instructions.js +5 -0
  176. package/dist/capabilities/optimize/instructions.js.map +1 -0
  177. package/dist/capabilities/orchestrate/instructions.js +10 -0
  178. package/dist/capabilities/orchestrate/instructions.js.map +1 -0
  179. package/dist/capabilities/plan/instructions.js +6 -0
  180. package/dist/capabilities/plan/instructions.js.map +1 -0
  181. package/dist/capabilities/profile/instructions.js +5 -0
  182. package/dist/capabilities/profile/instructions.js.map +1 -0
  183. package/dist/capabilities/research/instructions.js +6 -0
  184. package/dist/capabilities/research/instructions.js.map +1 -0
  185. package/dist/capabilities/status/instructions.js +5 -0
  186. package/dist/capabilities/status/instructions.js.map +1 -0
  187. package/dist/capabilities/vision/instructions.js +5 -0
  188. package/dist/capabilities/vision/instructions.js.map +1 -0
  189. package/dist/cli/appContext.js +16 -17
  190. package/dist/cli/appContext.js.map +1 -1
  191. package/dist/cli/capabilityContext/benchmark.js +564 -0
  192. package/dist/cli/capabilityContext/benchmark.js.map +1 -0
  193. package/dist/cli/capabilityContext/bespoke.js +36 -0
  194. package/dist/cli/capabilityContext/bespoke.js.map +1 -0
  195. package/dist/cli/capabilityContext/build.js +190 -0
  196. package/dist/cli/capabilityContext/build.js.map +1 -0
  197. package/dist/cli/capabilityContext/closeout.js +230 -0
  198. package/dist/cli/capabilityContext/closeout.js.map +1 -0
  199. package/dist/cli/capabilityContext/contract.js +190 -0
  200. package/dist/cli/capabilityContext/contract.js.map +1 -0
  201. package/dist/cli/capabilityContext/evidence.js +456 -0
  202. package/dist/cli/capabilityContext/evidence.js.map +1 -0
  203. package/dist/cli/capabilityContext/index.js +4 -0
  204. package/dist/cli/capabilityContext/index.js.map +1 -0
  205. package/dist/cli/capabilityContext/orchestration.js +117 -0
  206. package/dist/cli/capabilityContext/orchestration.js.map +1 -0
  207. package/dist/cli/capabilityContext/planState.js +279 -0
  208. package/dist/cli/capabilityContext/planState.js.map +1 -0
  209. package/dist/cli/capabilityContext/progress.js +138 -0
  210. package/dist/cli/capabilityContext/progress.js.map +1 -0
  211. package/dist/cli/capabilityContext/shared.js +94 -0
  212. package/dist/cli/capabilityContext/shared.js.map +1 -0
  213. package/dist/cli/capabilityContext/slim.js +108 -0
  214. package/dist/cli/capabilityContext/slim.js.map +1 -0
  215. package/dist/cli/capabilityContext/startup.js +217 -0
  216. package/dist/cli/capabilityContext/startup.js.map +1 -0
  217. package/dist/cli/capabilityContext/types.js +41 -0
  218. package/dist/cli/capabilityContext/types.js.map +1 -0
  219. package/dist/cli/capabilityContext.js +1 -2420
  220. package/dist/cli/capabilityContext.js.map +1 -1
  221. package/dist/cli/commands/appHome.js +23 -0
  222. package/dist/cli/commands/appHome.js.map +1 -0
  223. package/dist/cli/commands/capability.js +3 -10
  224. package/dist/cli/commands/capability.js.map +1 -1
  225. package/dist/cli/commands/compact.js +1 -1
  226. package/dist/cli/commands/compact.js.map +1 -1
  227. package/dist/cli/commands/doctor.js +116 -96
  228. package/dist/cli/commands/doctor.js.map +1 -1
  229. package/dist/cli/commands/lint.js +16 -41
  230. package/dist/cli/commands/lint.js.map +1 -1
  231. package/dist/cli/commands/prime/bundleStatus.js +185 -0
  232. package/dist/cli/commands/prime/bundleStatus.js.map +1 -0
  233. package/dist/cli/commands/prime/collectOrientationState.js +179 -0
  234. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -0
  235. package/dist/cli/commands/prime/orientationOutput.js +233 -0
  236. package/dist/cli/commands/prime/orientationOutput.js.map +1 -0
  237. package/dist/cli/commands/prime/types.js +2 -0
  238. package/dist/cli/commands/prime/types.js.map +1 -0
  239. package/dist/cli/commands/prime/v1Migration.js +39 -0
  240. package/dist/cli/commands/prime/v1Migration.js.map +1 -0
  241. package/dist/cli/commands/prime.js +11 -519
  242. package/dist/cli/commands/prime.js.map +1 -1
  243. package/dist/cli/commands/query.js +5 -2
  244. package/dist/cli/commands/query.js.map +1 -1
  245. package/dist/cli/commands/report.js +50 -14
  246. package/dist/cli/commands/report.js.map +1 -1
  247. package/dist/cli/commands/schema.js +113 -24
  248. package/dist/cli/commands/schema.js.map +1 -1
  249. package/dist/cli/commands/state/decisions.js +403 -0
  250. package/dist/cli/commands/state/decisions.js.map +1 -0
  251. package/dist/cli/commands/state/docs.js +97 -0
  252. package/dist/cli/commands/state/docs.js.map +1 -0
  253. package/dist/cli/commands/state/experiments.js +68 -0
  254. package/dist/cli/commands/state/experiments.js.map +1 -0
  255. package/dist/cli/commands/state/health.js +116 -0
  256. package/dist/cli/commands/state/health.js.map +1 -0
  257. package/dist/cli/commands/state/index.js +51 -0
  258. package/dist/cli/commands/state/index.js.map +1 -0
  259. package/dist/cli/commands/state/objective.js +69 -0
  260. package/dist/cli/commands/state/objective.js.map +1 -0
  261. package/dist/cli/commands/state/plan.js +274 -0
  262. package/dist/cli/commands/state/plan.js.map +1 -0
  263. package/dist/cli/commands/state/progress.js +47 -0
  264. package/dist/cli/commands/state/progress.js.map +1 -0
  265. package/dist/cli/commands/state/shared.js +15 -0
  266. package/dist/cli/commands/state/shared.js.map +1 -0
  267. package/dist/cli/commands/state/todo.js +121 -0
  268. package/dist/cli/commands/state/todo.js.map +1 -0
  269. package/dist/cli/commands/state/write.js +341 -0
  270. package/dist/cli/commands/state/write.js.map +1 -0
  271. package/dist/cli/commands/upgrade.js +79 -1
  272. package/dist/cli/commands/upgrade.js.map +1 -1
  273. package/dist/cli/commands/upgradeVerify.js +81 -0
  274. package/dist/cli/commands/upgradeVerify.js.map +1 -0
  275. package/dist/cli/commands/validate.js +56 -96
  276. package/dist/cli/commands/validate.js.map +1 -1
  277. package/dist/cli/commands/verify.js +13 -7
  278. package/dist/cli/commands/verify.js.map +1 -1
  279. package/dist/cli/contracts/bundleStatus.js +2 -0
  280. package/dist/cli/contracts/bundleStatus.js.map +1 -0
  281. package/dist/cli/contracts/orientationState.js +2 -0
  282. package/dist/cli/contracts/orientationState.js.map +1 -0
  283. package/dist/cli/dispatch/argvParser.js +33 -0
  284. package/dist/cli/dispatch/argvParser.js.map +1 -0
  285. package/dist/cli/dispatch/check.js +328 -0
  286. package/dist/cli/dispatch/check.js.map +1 -0
  287. package/dist/cli/dispatch/commands.js +27 -0
  288. package/dist/cli/dispatch/commands.js.map +1 -0
  289. package/dist/cli/dispatch/index.js +183 -0
  290. package/dist/cli/dispatch/index.js.map +1 -0
  291. package/dist/cli/dispatch/lifecycle.js +671 -0
  292. package/dist/cli/dispatch/lifecycle.js.map +1 -0
  293. package/dist/cli/dispatch/prime.js +104 -0
  294. package/dist/cli/dispatch/prime.js.map +1 -0
  295. package/dist/cli/dispatch/shared.js +64 -0
  296. package/dist/cli/dispatch/shared.js.map +1 -0
  297. package/dist/cli/dispatch/state.js +148 -0
  298. package/dist/cli/dispatch/state.js.map +1 -0
  299. package/dist/cli/dispatch.js +1 -957
  300. package/dist/cli/dispatch.js.map +1 -1
  301. package/dist/cli/errors.js +54 -0
  302. package/dist/cli/errors.js.map +1 -0
  303. package/dist/cli/help.js +262 -0
  304. package/dist/cli/help.js.map +1 -0
  305. package/dist/cli/orientation/attention.js +163 -0
  306. package/dist/cli/orientation/attention.js.map +1 -0
  307. package/dist/cli/orientation/corpusCoverage.js +71 -0
  308. package/dist/cli/orientation/corpusCoverage.js.map +1 -0
  309. package/dist/cli/orientation.js +194 -114
  310. package/dist/cli/orientation.js.map +1 -1
  311. package/dist/cli/planArtifacts.js +172 -0
  312. package/dist/cli/planArtifacts.js.map +1 -0
  313. package/dist/cli/planEvidence.js +158 -0
  314. package/dist/cli/planEvidence.js.map +1 -0
  315. package/dist/cli/planLifecycleState.js +34 -0
  316. package/dist/cli/planLifecycleState.js.map +1 -0
  317. package/dist/cli/prime-blob.js +68 -2
  318. package/dist/cli/prime-blob.js.map +1 -1
  319. package/dist/cli/startupCompletenessContract.js +56 -0
  320. package/dist/cli/startupCompletenessContract.js.map +1 -0
  321. package/dist/cli/stateQuery.js +17 -2
  322. package/dist/cli/stateQuery.js.map +1 -1
  323. package/dist/cli/todoMarkdown.js +33 -0
  324. package/dist/cli/todoMarkdown.js.map +1 -0
  325. package/dist/cli/todoSeverity.js +19 -0
  326. package/dist/cli/todoSeverity.js.map +1 -0
  327. package/dist/core/atomicWriter.js +21 -0
  328. package/dist/core/atomicWriter.js.map +1 -0
  329. package/dist/core/envPaths.js +21 -0
  330. package/dist/core/envPaths.js.map +1 -0
  331. package/dist/core/jsonValue.js +6 -0
  332. package/dist/core/jsonValue.js.map +1 -0
  333. package/dist/core/pyjson.js +67 -2
  334. package/dist/core/pyjson.js.map +1 -1
  335. package/dist/core/yaml.js +8 -0
  336. package/dist/core/yaml.js.map +1 -1
  337. package/dist/eval/evalSkills.js +30 -25
  338. package/dist/eval/evalSkills.js.map +1 -1
  339. package/dist/eval/semanticEval.js +43 -19
  340. package/dist/eval/semanticEval.js.map +1 -1
  341. package/dist/eval/semanticFixtures.js +16 -4
  342. package/dist/eval/semanticFixtures.js.map +1 -1
  343. package/dist/hooks/common.js +9 -26
  344. package/dist/hooks/common.js.map +1 -1
  345. package/dist/hooks/compaction/apply.js +269 -0
  346. package/dist/hooks/compaction/apply.js.map +1 -0
  347. package/dist/hooks/compaction/dryRun.js +183 -0
  348. package/dist/hooks/compaction/dryRun.js.map +1 -0
  349. package/dist/hooks/compaction/index.js +23 -0
  350. package/dist/hooks/compaction/index.js.map +1 -0
  351. package/dist/hooks/compaction/parse.js +258 -0
  352. package/dist/hooks/compaction/parse.js.map +1 -0
  353. package/dist/hooks/compaction/retention.js +202 -0
  354. package/dist/hooks/compaction/retention.js.map +1 -0
  355. package/dist/hooks/compaction/status.js +243 -0
  356. package/dist/hooks/compaction/status.js.map +1 -0
  357. package/dist/hooks/compaction/types.js +6 -0
  358. package/dist/hooks/compaction/types.js.map +1 -0
  359. package/dist/hooks/cursorPreToolUse.js +1 -1
  360. package/dist/hooks/cursorPreToolUse.js.map +1 -1
  361. package/dist/hooks/cursorSessionStart.js +10 -2
  362. package/dist/hooks/cursorSessionStart.js.map +1 -1
  363. package/dist/hooks/sessionStart.js +18 -11
  364. package/dist/hooks/sessionStart.js.map +1 -1
  365. package/dist/hooks/sessionStop.js +8 -14
  366. package/dist/hooks/sessionStop.js.map +1 -1
  367. package/dist/hooks/validateArtifact/agentFacing.js +10 -0
  368. package/dist/hooks/validateArtifact/agentFacing.js.map +1 -0
  369. package/dist/hooks/validateArtifact/index.js +151 -0
  370. package/dist/hooks/validateArtifact/index.js.map +1 -0
  371. package/dist/hooks/validateArtifact/markdown.js +146 -0
  372. package/dist/hooks/validateArtifact/markdown.js.map +1 -0
  373. package/dist/hooks/validateArtifact/runtime.js +86 -0
  374. package/dist/hooks/validateArtifact/runtime.js.map +1 -0
  375. package/dist/hooks/validateArtifact/schema.js +541 -0
  376. package/dist/hooks/validateArtifact/schema.js.map +1 -0
  377. package/dist/hooks/validateArtifact/traversal.js +106 -0
  378. package/dist/hooks/validateArtifact/traversal.js.map +1 -0
  379. package/dist/hooks/validateArtifact/violations.js +108 -0
  380. package/dist/hooks/validateArtifact/violations.js.map +1 -0
  381. package/dist/migrate/v2HandoffManifest.js +455 -0
  382. package/dist/migrate/v2HandoffManifest.js.map +1 -0
  383. package/dist/registries/artifactProtocolIds.js +77 -0
  384. package/dist/registries/artifactProtocolIds.js.map +1 -0
  385. package/dist/registries/artifactRegistry.js +62 -15
  386. package/dist/registries/artifactRegistry.js.map +1 -1
  387. package/dist/registries/capabilityContract.js +156 -12
  388. package/dist/registries/capabilityContract.js.map +1 -1
  389. package/dist/registries/evaluatorHandoffContract.js +171 -0
  390. package/dist/registries/evaluatorHandoffContract.js.map +1 -0
  391. package/dist/registries/packageRegistry.js +40 -6
  392. package/dist/registries/packageRegistry.js.map +1 -1
  393. package/dist/registries/runtimeAdapterRegistry.js +30 -21
  394. package/dist/registries/runtimeAdapterRegistry.js.map +1 -1
  395. package/dist/registries/triggerLoader.js +211 -0
  396. package/dist/registries/triggerLoader.js.map +1 -0
  397. package/dist/release/releaseMetadata.js +235 -0
  398. package/dist/release/releaseMetadata.js.map +1 -0
  399. package/dist/runtime/lifecycleAdapterContract.js +458 -0
  400. package/dist/runtime/lifecycleAdapterContract.js.map +1 -0
  401. package/dist/runtime/lifecycleAdapters.js +766 -0
  402. package/dist/runtime/lifecycleAdapters.js.map +1 -0
  403. package/dist/runtime/lifecycleAuthority.js +493 -0
  404. package/dist/runtime/lifecycleAuthority.js.map +1 -0
  405. package/dist/runtime/lifecycleOperationContract.js +113 -0
  406. package/dist/runtime/lifecycleOperationContract.js.map +1 -0
  407. package/dist/runtime/lifecycleOperations.js +635 -0
  408. package/dist/runtime/lifecycleOperations.js.map +1 -0
  409. package/dist/runtime/lifecycleOwnershipJournal.js +623 -0
  410. package/dist/runtime/lifecycleOwnershipJournal.js.map +1 -0
  411. package/dist/runtime/lifecyclePublication.js +395 -0
  412. package/dist/runtime/lifecyclePublication.js.map +1 -0
  413. package/dist/runtime/lifecycleSnapshot.js +439 -0
  414. package/dist/runtime/lifecycleSnapshot.js.map +1 -0
  415. package/dist/runtime/retiredRuntimeCleanup.js +238 -0
  416. package/dist/runtime/retiredRuntimeCleanup.js.map +1 -0
  417. package/dist/setup/codex/agents.js +96 -0
  418. package/dist/setup/codex/agents.js.map +1 -0
  419. package/dist/setup/codex/cli.js +161 -0
  420. package/dist/setup/codex/cli.js.map +1 -0
  421. package/dist/setup/codex/configToml.js +639 -0
  422. package/dist/setup/codex/configToml.js.map +1 -0
  423. package/dist/setup/codex/constants.js +29 -0
  424. package/dist/setup/codex/constants.js.map +1 -0
  425. package/dist/setup/codex/installRoot.js +64 -0
  426. package/dist/setup/codex/installRoot.js.map +1 -0
  427. package/dist/setup/codex/state.js +270 -0
  428. package/dist/setup/codex/state.js.map +1 -0
  429. package/dist/setup/codex.js +11 -1055
  430. package/dist/setup/codex.js.map +1 -1
  431. package/dist/setup/copilot.js +1 -1
  432. package/dist/setup/copilot.js.map +1 -1
  433. package/dist/setup/cursor.js +7 -5
  434. package/dist/setup/cursor.js.map +1 -1
  435. package/dist/setup/cursorSurfaces.js +67 -0
  436. package/dist/setup/cursorSurfaces.js.map +1 -0
  437. package/dist/setup/doctor/core.js +296 -0
  438. package/dist/setup/doctor/core.js.map +1 -0
  439. package/dist/setup/doctor/diagnostics.js +201 -0
  440. package/dist/setup/doctor/diagnostics.js.map +1 -0
  441. package/dist/setup/doctor/opencode.js +301 -0
  442. package/dist/setup/doctor/opencode.js.map +1 -0
  443. package/dist/setup/doctor/report.js +425 -0
  444. package/dist/setup/doctor/report.js.map +1 -0
  445. package/dist/setup/doctor.js +9 -1275
  446. package/dist/setup/doctor.js.map +1 -1
  447. package/dist/setup/opencode.js +13 -0
  448. package/dist/setup/opencode.js.map +1 -0
  449. package/dist/setup/opencodeConstants.js +2 -0
  450. package/dist/setup/opencodeConstants.js.map +1 -0
  451. package/dist/setup/smokeChecks.js +109 -0
  452. package/dist/setup/smokeChecks.js.map +1 -0
  453. package/dist/state/installRoot.js +64 -24
  454. package/dist/state/installRoot.js.map +1 -1
  455. package/dist/state/startupAnalysis/benchmark.js +371 -0
  456. package/dist/state/startupAnalysis/benchmark.js.map +1 -0
  457. package/dist/state/startupAnalysis/contract.js +126 -0
  458. package/dist/state/startupAnalysis/contract.js.map +1 -0
  459. package/dist/state/startupAnalysis/helpers.js +287 -0
  460. package/dist/state/startupAnalysis/helpers.js.map +1 -0
  461. package/dist/state/startupAnalysis/index.js +7 -0
  462. package/dist/state/startupAnalysis/index.js.map +1 -0
  463. package/dist/state/startupAnalysis/metrics.js +341 -0
  464. package/dist/state/startupAnalysis/metrics.js.map +1 -0
  465. package/dist/state/startupAnalysis/records.js +199 -0
  466. package/dist/state/startupAnalysis/records.js.map +1 -0
  467. package/dist/state/startupAnalysis/report.js +112 -0
  468. package/dist/state/startupAnalysis/report.js.map +1 -0
  469. package/dist/state/startupAnalysis/threshold.js +500 -0
  470. package/dist/state/startupAnalysis/threshold.js.map +1 -0
  471. package/dist/state/startupAnalysis.js +2 -1952
  472. package/dist/state/startupAnalysis.js.map +1 -1
  473. package/dist/state/write/assign.js +21 -0
  474. package/dist/state/write/assign.js.map +1 -0
  475. package/dist/state/write/errors.js +12 -0
  476. package/dist/state/write/errors.js.map +1 -0
  477. package/dist/state/write/explain.js +155 -0
  478. package/dist/state/write/explain.js.map +1 -0
  479. package/dist/state/write/fields.js +62 -0
  480. package/dist/state/write/fields.js.map +1 -0
  481. package/dist/state/write/index.js +11 -0
  482. package/dist/state/write/index.js.map +1 -0
  483. package/dist/state/write/input.js +22 -0
  484. package/dist/state/write/input.js.map +1 -0
  485. package/dist/state/write/lock.js +108 -0
  486. package/dist/state/write/lock.js.map +1 -0
  487. package/dist/state/write/operations.js +220 -0
  488. package/dist/state/write/operations.js.map +1 -0
  489. package/dist/state/write/serialize.js +2 -0
  490. package/dist/state/write/serialize.js.map +1 -0
  491. package/dist/state/write/transaction.js +787 -0
  492. package/dist/state/write/transaction.js.map +1 -0
  493. package/dist/state/write/validate.js +8 -0
  494. package/dist/state/write/validate.js.map +1 -0
  495. package/dist/upgrade/appContentRefresh.js +374 -0
  496. package/dist/upgrade/appContentRefresh.js.map +1 -0
  497. package/dist/upgrade/appModel.js +11 -6
  498. package/dist/upgrade/appModel.js.map +1 -1
  499. package/dist/upgrade/atomicWriter.js +2 -0
  500. package/dist/upgrade/atomicWriter.js.map +1 -0
  501. package/dist/upgrade/bundleEvidence.js +34 -0
  502. package/dist/upgrade/bundleEvidence.js.map +1 -0
  503. package/dist/upgrade/channels.js +27 -7
  504. package/dist/upgrade/channels.js.map +1 -1
  505. package/dist/upgrade/coexistenceProbe.js +105 -0
  506. package/dist/upgrade/coexistenceProbe.js.map +1 -0
  507. package/dist/upgrade/compatibility.js +52 -16
  508. package/dist/upgrade/compatibility.js.map +1 -1
  509. package/dist/upgrade/doctor.js +195 -193
  510. package/dist/upgrade/doctor.js.map +1 -1
  511. package/dist/upgrade/doctorClassifier.js +188 -0
  512. package/dist/upgrade/doctorClassifier.js.map +1 -0
  513. package/dist/upgrade/installedHooksRetirement.js +190 -0
  514. package/dist/upgrade/installedHooksRetirement.js.map +1 -0
  515. package/dist/upgrade/legacyAgentCleanup.js +183 -0
  516. package/dist/upgrade/legacyAgentCleanup.js.map +1 -0
  517. package/dist/upgrade/lifecycleUpgrade.js +427 -0
  518. package/dist/upgrade/lifecycleUpgrade.js.map +1 -0
  519. package/dist/upgrade/migrateArtifactsV1ToV2.js +568 -0
  520. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +1 -0
  521. package/dist/upgrade/migrateArtifactsV2ToV3.js +273 -144
  522. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  523. package/dist/upgrade/nextMajorDoctor.js +156 -0
  524. package/dist/upgrade/nextMajorDoctor.js.map +1 -0
  525. package/dist/upgrade/npxPlatformStatus.js +23 -0
  526. package/dist/upgrade/npxPlatformStatus.js.map +1 -0
  527. package/dist/upgrade/projectIntegration.js +259 -104
  528. package/dist/upgrade/projectIntegration.js.map +1 -1
  529. package/dist/upgrade/projectIntegrationDecision.js +141 -0
  530. package/dist/upgrade/projectIntegrationDecision.js.map +1 -0
  531. package/dist/upgrade/runtimeMigration.js +342 -89
  532. package/dist/upgrade/runtimeMigration.js.map +1 -1
  533. package/dist/upgrade/upgradeCommands.js +8 -0
  534. package/dist/upgrade/upgradeCommands.js.map +1 -1
  535. package/dist/upgrade/upgradeLock.js +54 -0
  536. package/dist/upgrade/upgradeLock.js.map +1 -0
  537. package/dist/upgrade/upgradeOrchestrator.js +170 -46
  538. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  539. package/dist/upgrade/upgradeSnapshot.js +93 -0
  540. package/dist/upgrade/upgradeSnapshot.js.map +1 -0
  541. package/dist/upgrade/v3CapabilitySurface.js +15 -0
  542. package/dist/upgrade/v3CapabilitySurface.js.map +1 -0
  543. package/dist/upgrade/versionResolution.js +12 -4
  544. package/dist/upgrade/versionResolution.js.map +1 -1
  545. package/dist/validate/appHomeContract.js +5 -5
  546. package/dist/validate/appHomeContract.js.map +1 -1
  547. package/dist/validate/capability.js +135 -14
  548. package/dist/validate/capability.js.map +1 -1
  549. package/dist/validate/crossCapability.js +1 -1
  550. package/dist/validate/crossCapability.js.map +1 -1
  551. package/dist/validate/lifecycleAdapters/legacyPythonParity.js +93 -0
  552. package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +1 -0
  553. package/dist/validate/lifecycleAdapters/nodeFormChecks.js +481 -0
  554. package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +1 -0
  555. package/dist/validate/lifecycleAdapters/shared.js +198 -0
  556. package/dist/validate/lifecycleAdapters/shared.js.map +1 -0
  557. package/dist/validate/lifecycleAdapters.js +91 -702
  558. package/dist/validate/lifecycleAdapters.js.map +1 -1
  559. package/dist/validate/selfAudit.js +63 -21
  560. package/dist/validate/selfAudit.js.map +1 -1
  561. package/dist/validate/vocabularyAuthority.js +303 -0
  562. package/dist/validate/vocabularyAuthority.js.map +1 -0
  563. package/package.json +30 -27
  564. package/bundle/references/v1-section-mapping.md +0 -47
  565. package/bundle/skills/agentera/.claude-plugin/plugin.json +0 -27
  566. package/bundle/skills/agentera/agents/dokumentera.toml +0 -6
  567. package/bundle/skills/agentera/agents/hej.toml +0 -6
  568. package/bundle/skills/agentera/agents/inspektera.toml +0 -6
  569. package/bundle/skills/agentera/agents/inspirera.toml +0 -6
  570. package/bundle/skills/agentera/agents/optimera.toml +0 -6
  571. package/bundle/skills/agentera/agents/orkestrera.toml +0 -6
  572. package/bundle/skills/agentera/agents/planera.toml +0 -6
  573. package/bundle/skills/agentera/agents/profilera.toml +0 -6
  574. package/bundle/skills/agentera/agents/realisera.toml +0 -6
  575. package/bundle/skills/agentera/agents/resonera.toml +0 -6
  576. package/bundle/skills/agentera/agents/visionera.toml +0 -6
  577. package/bundle/skills/agentera/agents/visualisera.toml +0 -6
  578. package/bundle/skills/agentera/capabilities/dokumentera/instructions.md +0 -428
  579. package/bundle/skills/agentera/capabilities/hej/instructions.md +0 -331
  580. package/bundle/skills/agentera/capabilities/inspektera/instructions.md +0 -514
  581. package/bundle/skills/agentera/capabilities/inspirera/instructions.md +0 -280
  582. package/bundle/skills/agentera/capabilities/inspirera/schemas/artifacts.yaml +0 -24
  583. package/bundle/skills/agentera/capabilities/optimera/instructions.md +0 -437
  584. package/bundle/skills/agentera/capabilities/orkestrera/instructions.md +0 -433
  585. package/bundle/skills/agentera/capabilities/orkestrera/schemas/validation.yaml +0 -107
  586. package/bundle/skills/agentera/capabilities/planera/instructions.md +0 -368
  587. package/bundle/skills/agentera/capabilities/planera/schemas/artifacts.yaml +0 -62
  588. package/bundle/skills/agentera/capabilities/planera/schemas/validation.yaml +0 -61
  589. package/bundle/skills/agentera/capabilities/profilera/instructions.md +0 -419
  590. package/bundle/skills/agentera/capabilities/realisera/instructions.md +0 -403
  591. package/bundle/skills/agentera/capabilities/resonera/instructions.md +0 -329
  592. package/bundle/skills/agentera/capabilities/visionera/instructions.md +0 -309
  593. package/bundle/skills/agentera/capabilities/visualisera/instructions.md +0 -400
  594. package/bundle/skills/hej/.claude-plugin/plugin.json +0 -6
  595. package/bundle/skills/hej/SKILL.md +0 -69
  596. package/bundle/skills/hej/agents/hej.toml +0 -11
  597. package/bundle/skills/hej/agents/openai.yaml +0 -8
  598. package/dist/cli/commands/backfill.js +0 -84
  599. package/dist/cli/commands/backfill.js.map +0 -1
  600. package/dist/cli/commands/state.js +0 -1012
  601. package/dist/cli/commands/state.js.map +0 -1
  602. package/dist/core/git.js +0 -43
  603. package/dist/core/git.js.map +0 -1
  604. package/dist/hooks/compaction.js +0 -935
  605. package/dist/hooks/compaction.js.map +0 -1
  606. package/dist/hooks/validateArtifact.js +0 -933
  607. package/dist/hooks/validateArtifact.js.map +0 -1
  608. package/dist/state/progressCommit.js +0 -289
  609. package/dist/state/progressCommit.js.map +0 -1
  610. /package/bundle/skills/agentera/capabilities/{dokumentera → document}/schemas/exit.yaml +0 -0
  611. /package/bundle/skills/agentera/capabilities/{inspirera → research}/schemas/exit.yaml +0 -0
  612. /package/bundle/skills/agentera/capabilities/{hej → status}/schemas/exit.yaml +0 -0
@@ -204,9 +204,10 @@ prime_hej_schema_migration_boundary:
204
204
  prime_absorbs_hej:
205
205
  status: target
206
206
  hej_cli: >-
207
- Top-level `hej` is removed from the public parser after the alias period.
208
- `agentera hej` prints one stderr deprecation naming `prime` and delegates
209
- during Phase 1–2.
207
+ Top-level `hej` is removed from the npm 3.x public parser and dispatch.
208
+ During Phase 1–2, `agentera hej` printed one stderr deprecation naming
209
+ `prime` and delegated; Phase 3 on the development channel rejects the
210
+ command with an unsupported-target envelope.
210
211
  hej_skill_route: >-
211
212
  Bare `hej` in the Agentera skill still routes to orientation, but the installed
212
213
  CLI gate calls `agentera prime` and renders from that composite result.
@@ -225,8 +226,9 @@ prime_hej_schema_migration_boundary:
225
226
  status: target
226
227
  canonical: agentera schema [--format json|yaml]
227
228
  alias: >-
228
- `agentera describe` prints one stderr deprecation naming `schema` and delegates
229
- during Phase 1–2.
229
+ Top-level `describe` is removed from the npm 3.x public parser and dispatch.
230
+ During Phase 1–2, `agentera describe` printed one stderr deprecation naming
231
+ `schema` and delegated.
230
232
  discovery_ownership: >-
231
233
  `schema` owns runtime CLI/schema introspection formerly on `describe`, including
232
234
  command tree, audience tags, artifact locations, and linked contract sections.
@@ -260,7 +262,9 @@ plan_routing_distinction:
260
262
  is not a CLI command and does not read `.agentera/plan.yaml` by itself.
261
263
  state_read:
262
264
  invocation: agentera state plan
263
- legacy_alias: agentera plan
265
+ legacy_alias: >-
266
+ Top-level `agentera plan` was removed on the npm 3.x CLI in Phase 3; use
267
+ `agentera state plan`.
264
268
  surface: CLI routine state read
265
269
  meaning: >-
266
270
  Read-only access to the active plan artifact summary, tasks, acceptance
@@ -275,8 +279,8 @@ plan_routing_distinction:
275
279
  for Planera remains `agentera prime --context planera --format json`.
276
280
  agent_guidance: >-
277
281
  Use `/agentera plan` when the user wants planning work routed to Planera; use
278
- `agentera state plan` (or legacy `agentera plan`) when the agent needs plan
279
- artifact state; use `agentera planera` for capability routing guidance; use
282
+ `agentera state plan` when the agent needs plan artifact state; use
283
+ `agentera planera` for capability routing guidance; use
280
284
  `agentera prime --context planera` for bounded Planera startup context.
281
285
  migration_phases:
282
286
  phase_1:
@@ -295,15 +299,18 @@ migration_phases:
295
299
  - Record measurement evidence for JSON surface moves.
296
300
  phase_3:
297
301
  name: remove_deprecated_top_level_parsers
302
+ status: shipped_on_development_channel
298
303
  actions:
299
304
  - >-
300
- Remove `hej`, public `describe`, and `gate` from top-level parser help.
305
+ Remove `hej`, public `describe`, and `gate` from top-level parser help
306
+ and dispatch on the npm 3.x CLI.
301
307
  - >-
302
- Remove other deprecated top-level parsers except documented capability and
303
- lifecycle names and the Phase 1–2 alias set until post-major cleanup.
308
+ Remove routine-state top-level parsers (`plan`, `progress`, `health`,
309
+ `todo`, `decisions`, `docs`, `objective`, `experiments`) from help and
310
+ dispatch on the npm 3.x CLI.
304
311
  - >-
305
- Deferred final removal of all routine-state top-level aliases after one
306
- minor alias release.
312
+ Keep a transitional stderr-alias set (`validate`, `compact`, `verify`,
313
+ `stats`, `lint`, `query`) until post-cutover cleanup.
307
314
  alias_policy:
308
315
  stderr_format: one-line deprecation naming the canonical command
309
316
  delegation: forward to canonical handler with unchanged JSON/text envelopes
@@ -334,22 +341,29 @@ command_tree_target:
334
341
  - report [user]
335
342
  - check [maintainer]
336
343
 
337
- deprecated_top_level_aliases:
338
- # Command aliases that emit stderr deprecation warnings
339
- - { legacy: hej, canonical: prime }
340
- - { legacy: describe, canonical: schema }
341
- - { legacy: plan, canonical: "state plan" }
342
- - { legacy: progress, canonical: "state progress" }
343
- - { legacy: health, canonical: "state health" }
344
- - { legacy: todo, canonical: "state todo" }
345
- - { legacy: decisions, canonical: "state decisions" }
346
- - { legacy: docs, canonical: "state docs" }
347
- - { legacy: objective, canonical: "state objective" }
348
- - { legacy: experiments, canonical: "state experiments" }
344
+ removed_top_level_commands:
345
+ # Phase 3 on npm 3.x: removed from help and dispatch (unsupported_target)
346
+ - hej
347
+ - describe
348
+ - gate
349
+ - plan
350
+ - progress
351
+ - health
352
+ - todo
353
+ - decisions
354
+ - docs
355
+ - objective
356
+ - experiments
357
+
358
+ transitional_stderr_aliases:
359
+ # Still delegate with one-line stderr deprecation on npm 3.x
349
360
  - { legacy: query, canonical: "state query" }
350
361
  - { legacy: compact, canonical: "check compact" }
351
- - { legacy: gate, canonical: "check compact" }
352
362
  - { legacy: verify, canonical: "check verify" }
353
363
  - { legacy: stats, canonical: report }
354
364
  - { legacy: lint, canonical: "check lint" }
355
365
  - { legacy: validate, canonical: "check validate" }
366
+
367
+ # Superseded by `removed_top_level_commands` and `transitional_stderr_aliases`
368
+ # for npm 3.x Phase 3 (empty list retained for contract migration readers).
369
+ deprecated_top_level_aliases: []
@@ -14,7 +14,7 @@ scope:
14
14
  - Package and distribution metadata that names the suite package shape.
15
15
  - Runtime hook packaging prose and metadata for plugin-shipped hooks.
16
16
  - Historical references to the removed `bundle-status` command.
17
- - Current and legacy references to `skills/agentera/SKILL.md` and v1 skill entry files.
17
+ - Current references to `skills/agentera/SKILL.md`.
18
18
  excludes:
19
19
  - Routing and execution vocabulary collapse work.
20
20
  - Capability instruction-file rename work.
@@ -32,8 +32,6 @@ canonical_concept_order:
32
32
  - removed_bundle_status_command
33
33
  - agentera_routing_entry
34
34
  - skill_entry_file
35
- - v1_skill_entry_file
36
- - legacy_hej_bridge
37
35
  canonical_concepts:
38
36
  agentera_app_files:
39
37
  definition: >-
@@ -67,8 +65,8 @@ canonical_concepts:
67
65
  - bundled suite
68
66
  plugin_shipped_hooks:
69
67
  definition: >-
70
- Hooks that are shipped by runtime plugin package surfaces such as Codex,
71
- OpenCode, Claude, or GitHub plugin metadata.
68
+ Hooks that are shipped by active runtime plugin package surfaces such as
69
+ Codex, OpenCode, Cursor, or GitHub plugin metadata.
72
70
  allowed_terms:
73
71
  - plugin-shipped hooks
74
72
  - plugin-bundled hooks
@@ -119,32 +117,6 @@ canonical_concepts:
119
117
  - SKILL.md
120
118
  - skill file
121
119
  - skill entry
122
- v1_skill_entry_file:
123
- definition: >-
124
- A historical standalone v1 skill entry file or path retained in migration
125
- notes, tests, stale-path checks, and compatibility fixtures.
126
- allowed_terms:
127
- - v1 skill entry file
128
- - v1 standalone skill entry file
129
- - "historical v1 `SKILL.md` file"
130
- - v1 skill path
131
- forbidden_ambiguous_shortcuts:
132
- - SKILL.md
133
- - v1 SKILL.md
134
- - old skill file
135
- legacy_hej_bridge:
136
- definition: >-
137
- The temporary v1 `/hej` bridge or exact bare `hej` compatibility path that
138
- guides users toward `/agentera` and the v2 upgrade path.
139
- allowed_terms:
140
- - legacy hej bridge
141
- - "legacy `/hej` bridge"
142
- - v1 hej bridge
143
- - "bare `hej` compatibility path"
144
- forbidden_ambiguous_shortcuts:
145
- - hej skill
146
- - legacy skill
147
- - old hej
148
120
  classification_order:
149
121
  - canonical_concept
150
122
  - compatibility_identifier
@@ -194,7 +166,7 @@ focused_scan:
194
166
  - (retired maintainer measurement tool)
195
167
  - skills/agentera/SKILL.md
196
168
  - skills/agentera/capabilities/hej/schemas/triggers.yaml
197
- - skills/agentera/capabilities/resonera/instructions.md
169
+ - packages/cli/src/capabilities/resonera/instructions.ts
198
170
  - tests/test_cross_capability.py
199
171
  - tests/test_resonera_capability.py
200
172
  - tests/test_runtime_adapters.py
@@ -3,9 +3,10 @@ status: active_authority
3
3
  decision: 57
4
4
  purpose: >-
5
5
  Define the Decision 57 capability instruction-file contract: the canonical
6
- `instructions.md` file name, implemented CLI/schema first-invocation read
7
- discoverability, compact-startup exception boundaries, and runtime behavior
8
- that remains intentionally unsupported.
6
+ `instructions.ts` module path, implemented CLI/schema first-invocation read
7
+ discoverability, the `prime_context` runtime-enforcement boundary, and
8
+ retirement of the historical `full`/`compact_startup`/`skip` values
9
+ superseded by Decision 65.
9
10
  sources:
10
11
  decision: .agentera/decisions.yaml#decision-57
11
12
  prose:
@@ -13,91 +14,87 @@ sources:
13
14
  - README.md#development
14
15
  scope:
15
16
  includes:
16
- - Documentation authority for the implemented capability instruction-file name.
17
+ - Documentation authority for the implemented capability instruction module path.
17
18
  - CLI/schema discoverability for first capability invocation startup-read metadata.
18
- - Compact-startup exception semantics and boundaries.
19
- - Current canonical references to existing `instructions.md` files.
19
+ - The single `prime_context` first-invocation shape enforced by the runtime.
20
+ - Current canonical references to existing `instructions.ts` modules.
20
21
  - Explicit separation from runtime behavior work.
21
22
  excludes:
22
23
  - Implementing first-invocation read behavior.
23
24
  - Marking Decision 57 satisfied or editing protected vision/objective/profile/installed-app state.
24
25
  current_state:
25
26
  canonical_instruction_file:
26
- path: skills/agentera/capabilities/<name>/instructions.md
27
+ path: packages/cli/src/capabilities/<name>/instructions.ts
27
28
  status: current_canonical_implemented
28
29
  definition: >-
29
- The human-readable instruction file for each capability.
30
+ The TypeScript module that exports the capability's behavioral
31
+ instructions as a default-exported string constant. The runtime loads
32
+ the compiled .js path and serves the instructions through the slim
33
+ `capability_context` capsule's `instructions` field.
30
34
  legacy_instruction_file:
35
+ path: skills/agentera/capabilities/<name>/instructions.md
36
+ status: historical_or_compatibility_evidence_only
37
+ definition: >-
38
+ The pre-D65 Markdown instruction filename. It may survive only in
39
+ archived history, compatibility fixtures, benchmark evidence, or
40
+ explicit migration documentation; real capability directories do not
41
+ use it as canonical.
42
+ legacy_prose_file:
31
43
  path: skills/agentera/capabilities/<name>/prose.md
32
44
  status: historical_or_compatibility_evidence_only
33
45
  definition: >-
34
- The former capability instruction filename. It may survive only in archived
35
- history, compatibility fixtures, benchmark evidence, or explicit migration
36
- documentation; real capability directories do not use it as canonical.
46
+ The pre-D57 capability instruction filename. It may survive only in
47
+ archived history, compatibility fixtures, benchmark evidence, or
48
+ explicit migration documentation; real capability directories do not
49
+ use it as canonical.
37
50
  validator_requirement:
38
- current_required_path: instructions.md
39
- future_required_path: instructions.md
51
+ current_required_path: packages/cli/src/capabilities/<name>/instructions.ts
52
+ future_required_path: packages/cli/src/capabilities/<name>/instructions.ts
40
53
  status: current_requirement_enforced
41
54
  cli_metadata:
42
55
  field: first_invocation_read
43
56
  status: emitted_in_prime_capability_context
44
57
  current_behavior: >-
45
58
  `agentera prime --context <name> --format json` emits
46
- `capability_context` metadata including `first_invocation_read` for
47
- supported capabilities. Historical `hej --capability-context` is removed in 3.0.
59
+ `capability_context` metadata including `first_invocation_read`
60
+ (value: `prime_context`, runtime_enforcement: true) and the full instructions
61
+ in the `instructions` field for supported capabilities. Historical
62
+ `hej --capability-context` is removed in 3.0.
48
63
  first_invocation_read:
49
- field_status: cli_schema_discoverability_implemented
64
+ field_status: runtime_enforced
50
65
  definition: >-
51
- Capability metadata declaring what instruction content an agent must read on
52
- the first invocation of that capability in a session.
66
+ Capability metadata declaring what instruction content an agent must
67
+ read on the first invocation of that capability in a session. Decision
68
+ 65 collapses the legacy `full`/`compact_startup` distinction into a
69
+ single `prime_context` value because the CLI now owns the instructions and
70
+ the runtime can mechanically shell out to the prime command.
53
71
  allowed_values:
54
- full:
55
- meaning: >-
56
- The first capability invocation must read `instructions.md` in full before
57
- executing capability-specific work.
58
- obligation: full_instruction_file_read_required
59
- compact_startup:
60
- meaning: >-
61
- A declared compact startup contract may satisfy initial orientation without
62
- reading the full instruction file first.
63
- obligation: compact_contract_must_name_covered_guidance_and_escalation_rules
64
- skip:
72
+ prime_context:
65
73
  meaning: >-
66
- No first-invocation instruction read is required for the declared scope.
67
- obligation: requires_explicit_contract_justification
68
- caution: >-
69
- Reserved for narrow future surfaces; not a default and not implemented by
70
- this authority.
71
- default_rule: full
74
+ The first capability invocation must shell out to
75
+ `agentera prime --context <name> --format json` and read the
76
+ returned `instructions` field (the full Markdown body) before executing
77
+ capability-specific work.
78
+ obligation: shell out to agentera prime --context <name> --format json
79
+ default_rule: prime_context
72
80
  full_read_obligation: >-
73
- On initial capability invocation, read `instructions.md` in full unless that
74
- capability declares a compact-startup exception with explicit coverage and
75
- escalation boundaries.
76
- compact_startup_exception:
77
- status: implemented_for_planera_compact_startup_discoverability
78
- allowed_when:
79
- - A machine-readable startup contract is available through supported state access.
80
- - The compact contract states which instruction topics it covers.
81
- - The compact contract states when the agent must escalate to a full instruction-file read.
82
- - The compact contract preserves unsupported-command and raw-artifact-read boundaries.
83
- not_allowed_when:
84
- - The agent is editing the capability's own instructions or schemas.
85
- - The compact contract is missing, incomplete, stale, or contradictory.
86
- - The requested work touches behavior not covered by the compact contract.
87
- - Safety rails, validation, exit semantics, or cross-capability boundaries are ambiguous.
81
+ On initial capability invocation, shell out to
82
+ `agentera prime --context <name> --format json` and read the
83
+ `capability_context.instructions` field in full.
88
84
  implementation_state:
89
- instructions_md_files: renamed
90
- validators_require_instructions_md: true
85
+ instructions_ts_modules: implemented
86
+ validators_require_instructions_ts: true
91
87
  first_invocation_read_cli_metadata: true
92
88
  first_invocation_read_schema_metadata: true
93
- runtime_first_invocation_behavior: false
94
- descriptors_rewritten_to_instructions_md: true
95
- package_metadata_rewritten_to_instructions_md: true
89
+ runtime_first_invocation_behavior: true
90
+ descriptors_rewritten_to_prime_command: true
91
+ package_metadata_rewritten_to_prime_command: true
96
92
  compatibility_preservation:
97
93
  preserve_legacy_references_only_when_classified:
98
- - skills/agentera/capabilities/*/instructions.md paths
94
+ - skills/agentera/capabilities/*/instructions.md paths (historical)
95
+ - packages/cli/src/capabilities/*/instructions.ts paths (current canonical)
99
96
  - skills/agentera/capability_schema_contract.yaml directory requirements
100
- - runtime descriptors and generated agent guidance that point to `instructions.md`
97
+ - runtime descriptors and generated agent guidance that point to `instructions.md` (retired)
101
98
  - archived v1/v2 migration records and progress evidence
102
99
  - compatibility fixtures and tests that intentionally preserve old behavior evidence
103
100
  - README, AGENTS, and vocabulary references that explicitly describe the current canonical state
@@ -116,6 +113,50 @@ surface_inventory:
116
113
  capability_schema_contract: current_canonical_validator_reference
117
114
  runtime_descriptors: current_canonical_instructions_md_pointers
118
115
  capability_instruction_files: current_canonical_instruction_files
116
+ evaluator_handoff:
117
+ status: implemented
118
+ purpose: >-
119
+ Define the inspektera evaluation report schema and citation requirements
120
+ for orkestrera Step 3 Surface 2 delegations and post-plan health checks.
121
+ report_schema_version: agentera.inspekteraEvaluationReport.v1
122
+ row_schema:
123
+ required_fields:
124
+ - criterion
125
+ - status
126
+ - evidence
127
+ status_values:
128
+ - PASS
129
+ - WARN
130
+ - FAIL
131
+ citation_required_for:
132
+ - WARN
133
+ - FAIL
134
+ citation_formats:
135
+ file_line:
136
+ pattern: "^[^:\\s]+:\\d+$"
137
+ description: Relative repo path with 1-based line number, e.g. TODO.md:15
138
+ not_applicable:
139
+ prefix: "not-applicable:"
140
+ min_reason_length: 8
141
+ description: >-
142
+ Use when no file anchor exists; prefix with not-applicable: and give a
143
+ concrete reason (at least 8 characters after the prefix).
144
+ warn_verify_command:
145
+ required_when: file_line_citation
146
+ allowed_prefixes:
147
+ - grep
148
+ - git show
149
+ description: >-
150
+ WARN rows with a file:line citation MUST include verify_command with the
151
+ exact grep or git show invocation that reproduces the evidence at the
152
+ cited line.
153
+ orchestration_context_fields:
154
+ output_requirements:
155
+ citation_required_for:
156
+ - WARN
157
+ - FAIL
158
+ warn_verify_command_required: true
159
+ schema_authority: references/cli/capability-instruction-contract.yaml#evaluator_handoff
119
160
  docs_delegation:
120
161
  document: references/cli/vocabulary.md
121
162
  required_anchor: Capability instruction contract
@@ -0,0 +1,144 @@
1
+ # Capability instruction structure
2
+
3
+ Origin: Decision 80 (2026-07-06) — Six-section spine for capability instructions.
4
+ Builds on D79 (status rewrite, direct-contract philosophy), D71 (RFC 2119 modal
5
+ vocabulary), D72 (bundle-to-app terminology), D57/D65 (instructions.ts as
6
+ canonical module served via `agentera prime --context`).
7
+
8
+ Agentera's 12 capability instruction files (`packages/cli/src/capabilities/<name>/instructions.ts`)
9
+ MUST follow a shared six-section spine. Five sections are shape-constrained; one
10
+ (Workflow phases) is mandatory-as-section but free-form in content. This document
11
+ owns the spine spec, the five workflow shapes taxonomy, and the per-capability
12
+ deviation table filled incrementally as each audit completes.
13
+
14
+ ---
15
+
16
+ ## The six-section spine
17
+
18
+ Every capability instructions.ts MUST contain these six sections in order:
19
+
20
+ ### 1. Purpose
21
+
22
+ One paragraph stating what the capability does, plus the capability glyph
23
+ (SG1-SG12). Shape-constrained: glyph plus one-paragraph purpose. No sub-sections.
24
+
25
+ ### 2. State artifacts
26
+
27
+ What the capability reads, writes, and consumes. Shape-constrained:
28
+ reads/writes/consumes declarations plus artifact path resolution. Per-capability
29
+ artifact-schema subsections allowed (e.g., vision's `vision.yaml shape`, document's
30
+ `docs.yaml shape`, design's `DESIGN.md format`).
31
+
32
+ ### 3. Workflow phases (mandatory section, free-form content)
33
+
34
+ The per-capability core. The section MUST exist and MUST be named "Workflow phases"
35
+ or a per-capability equivalent that names the workflow shape (e.g., "The orchestration
36
+ loop", "The cycle", "Briefing", "Running state"). Internal structure is per-capability:
37
+ linear steps, conversational loop, cycle-based, mode-split, or multi-surface. See
38
+ the five workflow shapes taxonomy below.
39
+
40
+ ### 4. Safety rails
41
+
42
+ `<critical>` block with MUST NOT / NEVER rules. Protocol-bound. Shape-constrained:
43
+ MUST start with `<critical>` tag, MUST use D71 RFC 2119 modal vocabulary for
44
+ protocol-force rules.
45
+
46
+ ### 5. Exit signals
47
+
48
+ EX1-EX4 conditions with the capability's canonical glyph marker. Protocol-bound.
49
+ Shape-constrained: MUST list all four exit conditions, MUST use the
50
+ `<glyph> <capability> · <status>` marker format.
51
+
52
+ ### 6. Cross-capability integration
53
+
54
+ Feeds-into, triggers, and informed-by declarations, plus getting-started use-case
55
+ examples (when to invoke this capability from other contexts). Shape-constrained:
56
+ MUST be present; depth is per-capability (status = one paragraph; orchestrate =
57
+ substantial surface descriptions). Invocation guidance ("Before a build session,
58
+ run `/agentera discuss`") folds into this section as the inverse of
59
+ feeds-into/triggers — same relationship, consumer perspective.
60
+
61
+ ---
62
+
63
+ ## Flex sections (per-capability optional)
64
+
65
+ Domain content sections MAY appear between spine sections when the capability has
66
+ capability-specific content that does not fit the spine (e.g., design: Colors and
67
+ Typography; profile: PROFILE.md template; research: deliverable template). These
68
+ are rare and documented in the deviation table below.
69
+
70
+ ---
71
+
72
+ ## Five workflow shapes taxonomy
73
+
74
+ Capabilities declare their workflow shape at the top of the Workflow phases section
75
+ so the deviation table can classify them:
76
+
77
+ | Shape | Capabilities | Structure |
78
+ |---|---|---|
79
+ | **Linear** | status, research, audit | Step N then Step N+1; one-shot progression |
80
+ | **Conversational loop** | discuss | Scratchpad plus per-turn question loop; no linear progression |
81
+ | **Cycle-based** | build, optimize | Iterative cycle with hypothesis/task/constraints; repeat until done |
82
+ | **Mode-split** | vision, document, profile, design, plan | Step 0 detect mode then mode-A / mode-B / mode-C |
83
+ | **Multi-surface** | orchestrate | Multiple surface templates with different structures per surface |
84
+
85
+ ---
86
+
87
+ ## Reference implementation
88
+
89
+ Status (D79) is the reference implementation. Its structure:
90
+
91
+ 1. **Purpose**: header plus glyph plus one-paragraph purpose plus direct-contract rule
92
+ 2. **State artifacts**: source_contract.capability_startup delegation rule (lean on
93
+ the contract; do not re-encode machine-readable rules in prose)
94
+ 3. **Workflow phases**: Dashboard rendering then Briefing then Routing suggestion
95
+ (linear shape, three phases)
96
+ 4. **Safety rails**: six MUST NOT rules in `<critical>` block
97
+ 5. **Exit signals**: EX1-EX4 with `⌂ status · <status>` marker
98
+ 6. **Cross-capability integration**: one paragraph (status has no
99
+ getting-started use-case examples to fold in)
100
+
101
+ Prose length: 10,389 chars. Modal vocabulary: 5 MUST, 5 MUST NOT. No v2-era residue.
102
+
103
+ ---
104
+
105
+ ## Per-capability deviation table
106
+
107
+ Filled incrementally as each audit completes. "Not audited" = not yet audited
108
+ against D80 plus this reference doc.
109
+
110
+ | Capability | Shape | Length | D71 modal | D72 terms | Direct contract | Deviations | Audit |
111
+ |---|---|---|---|---|---|---|---|
112
+ | ⌂ status | Linear | 10,389 | Yes | Yes | Yes | None | Complete (D79) |
113
+ | ⛥ vision | Mode-split | 16,667 | Yes | Yes | Yes | Has vision.yaml shape subsection; shared pre-write self-audit hoist (DRY between Create and Refine modes) | Complete (D81) |
114
+ | ❈ discuss | Loop | 12,045 | Yes | Yes | Yes | Has decisions.yaml shape subsection; Getting started folded into §6; loop shape named "The deliberation loop" (§3); fog-aware readiness check at Done; steering rules (breadth-first, ask-user-to-sketch); schema files use artifact-id labels not canonical filenames | Complete (D82) |
115
+ | ⬚ research | Linear | 12,484 | Yes | Yes | Yes | Has deliverable template; has transferable concepts checkpoint between source reading and target exploration; runtime-agnostic tool references | Complete (D83) |
116
+ | ≡ plan | Mode-split | 14,515 | Yes | Yes | Yes | Has skip/light/full modes; `unknowns:` and `rejected:` full-plan fields; `How build reads PLAN.md` removed (artifact read contract declared in §2 only); fog-check at handoff; replan trigger qualitative (surprises on one task alter downstream acceptance); Getting started folded into §6; YAML formats reordered intent-first | Complete (D84) |
117
+ | ⧉ build | Cycle | 15,081 | Yes | Yes | Yes | Has Handling blocked work; vision bootstrap folded into Workflow phases; brainstorm cut to minimal fallback; subagent spawning table cut to brief pointer; self-audit folded into Log (8 steps); plan unknowns consumption; cycle boundary stated once; `/loop` replaced with explicit user request | Complete (D85) |
118
+ | ⎘ optimize | Cycle | 20,622 | Yes | Yes | Yes | Has Handling blocked experiments; self-audit folded into Log (7 steps); subagent spawning table compressed (D85 propagation); benchmark context lean seam; experiments.yaml has context block; brainstorm stripped to 4 questions | Complete (D86) |
119
+ | ⛶ audit | Linear | 18,401 | Yes | Yes | Yes | Has finding taxonomy plus health.yaml shape; has 3 agentera-specific dimension mechanics (Version health, Artifact freshness, Prose health); Getting started folded into §6; self-audit folded into Report (7→6 steps); subagent spawning compressed to brief pointer; evidence_context startup delegation (bespoke); decision satisfaction authority rule in Safety rails | Complete (D87) |
120
+ | ▤ document | Mode-split | 14,886 | Yes | Yes | Yes | Has docs.yaml shape; closeout context lean pointer; Getting started folded into §6; self-audit folded into write steps; doc-prose enforcement compressed to lint+report; Step 0 mode detection folded into opening; decision satisfaction in Safety rails | Complete (D88) |
121
+ | ♾ profile | Mode-split | 19,567 | Yes | Yes | Yes | Has PROFILE.md template flex section; coverage+extraction merged (6→4 Full steps); prediction validation folded into Generate + EX2 for <3/5; Validate V3+V4 merged (4→3); Getting started folded into §6; startup contract delegation | Complete (D89) |
122
+ | ◰ design | Mode-split | 16,383 | Yes | Yes | Yes | Has DESIGN.md format subsection in State artifacts; self-audit folded into Write/Update steps; Step 0 folded into opening; Getting started folded into §6 | Complete (D90) |
123
+ | ⎈ orchestrate | Multi-surface | 18,497 | Yes | Yes | Yes | Has staleness check in Step 0 (3 steps, self-contained); has loop stop condition in Exit signals; WARN eliminated from evaluation (PASS/FAIL only); test-suppression directive removed from delegation prompt; Keeping the orchestrator lean folded into Safety rails; subagent table compressed to brief pointer; Getting started folded into §6; decision satisfaction in Safety rails | Complete (D91) |
124
+
125
+ ---
126
+
127
+ ## Cross-cutting rules (apply to all 12)
128
+
129
+ These rules are inherited from prior decisions and are not re-stated per capability:
130
+
131
+ - **D71**: RFC 2119 modal vocabulary (MUST, MUST NOT, SHOULD, SHOULD NOT, MAY).
132
+ Capitalized keywords carry protocol force; lowercase modal verbs are ordinary English.
133
+ - **D72**: `app.*` terminology (not `bundle.*`).
134
+ - **D79 direct-contract philosophy**: lean on `source_contract.capability_startup`;
135
+ the prose MUST NOT re-encode rules the contract mechanizes (forbidden-command lists,
136
+ fallback ladders, do-not-read-raw-yaml warnings). If `complete_for_capability_startup`
137
+ is true, the prose trusts the contract.
138
+ - **D57/D65**: instructions.ts is the canonical module, served via
139
+ `agentera prime --context <name> --format json`.
140
+ - **Artifact path resolution**: SKILL.md owns the host-bootstrap artifact-path
141
+ resolution; capability prose delegates (status proved this in D79).
142
+ - **Procedural recovery content**: lives in the owning capability, not the consuming
143
+ one (status renders `project_integration` fields; upgrade/doctor owns the repair
144
+ procedure).
@@ -7,47 +7,47 @@ classification:
7
7
  mutation_capable:
8
8
  description: Needs file write, edit, and/or shell execution to fulfill purpose
9
9
  capabilities:
10
- realisera:
10
+ build:
11
11
  permission: {write: allow, bash: allow}
12
12
  rationale: Autonomous dev execution — writes code, runs tests/builds, commits
13
- optimera:
13
+ optimize:
14
14
  permission: {write: allow, bash: allow}
15
15
  rationale: Metric-driven optimization — runs experiments, writes harnesses
16
- orkestrera:
16
+ orchestrate:
17
17
  permission: {write: allow, bash: allow}
18
18
  rationale: Multi-cycle orchestration — dispatches workers, updates plan/progress
19
- dokumentera:
19
+ document:
20
20
  permission: {write: allow, bash: deny}
21
21
  rationale: Documentation generation — creates/updates doc files
22
- planera:
22
+ plan:
23
23
  permission: {write: allow, bash: deny}
24
24
  rationale: Plan management — writes plan.yaml, archives completed plans
25
25
 
26
26
  contextual_write:
27
27
  description: Writes owned Agentera state artifacts
28
28
  capabilities:
29
- visionera:
29
+ vision:
30
30
  permission: {write: allow, bash: deny}
31
31
  rationale: Writes vision.yaml, archives old visions
32
- resonera:
32
+ discuss:
33
33
  permission: {write: allow, bash: deny}
34
34
  rationale: Writes decisions.yaml, may update TODO.md
35
- visualisera:
35
+ design:
36
36
  permission: {write: allow, bash: deny}
37
37
  rationale: Writes DESIGN.md, archives old designs
38
- profilera:
38
+ profile:
39
39
  permission: {write: allow, bash: allow}
40
40
  rationale: Runs extraction scripts, writes PROFILE.md
41
- inspektera:
41
+ audit:
42
42
  permission: {write: allow, bash: deny}
43
43
  rationale: Writes health.yaml audit reports
44
44
 
45
45
  read_only:
46
46
  description: Only reads files, searches, analyzes
47
47
  capabilities:
48
- hej:
48
+ status:
49
49
  permission: {write: deny, bash: deny}
50
50
  rationale: Strictly read-only orientation dashboard
51
- inspirera:
51
+ research:
52
52
  permission: {write: deny, bash: deny}
53
53
  rationale: Analysis-only creative exploration
@@ -0,0 +1,13 @@
1
+ # v2/v3 coexistence doctor warning contract (both CLI lines).
2
+ schema_version: agentera.coexistenceProbe.v1
3
+ section_header: Coexistence
4
+ warning:
5
+ headline: "v3 detected alongside v2; pick one line"
6
+ resolutions:
7
+ - complete v3 migration
8
+ - uninstall v3
9
+ - stay on v2 explicitly
10
+ naming_divergence:
11
+ description: "v3 uses English capability IDs (status, vision, discuss, research, plan, build, optimize, audit, document, profile, design, orchestrate); v2 stable uses Swedish -era IDs (hej, visionera, resonera, inspirera, planera, realisera, optimera, inspektera, dokumentera, profilera, visualisera, orkestrera)"
12
+ v3_canonical: [status, vision, discuss, research, plan, build, optimize, audit, document, profile, design, orchestrate]
13
+ v2_stable: [hej, visionera, resonera, inspirera, planera, realisera, optimera, inspektera, dokumentera, profilera, visualisera, orkestrera]
@@ -0,0 +1,30 @@
1
+ # Parity EXPECTED/ACTUAL bug-demonstration template
2
+
3
+ Apply this pattern to `npmParityMatrix` / Python-oracle parity rows when fixing a
4
+ regression: land a **demonstrate** commit first, then a **fix** commit that only
5
+ flips the assertion.
6
+
7
+ ## Workflow
8
+
9
+ 1. **Demonstrate commit** — test passes on broken behavior; correct expectation
10
+ preserved in a block comment (`EXPECTED`); wrong behavior asserted (`ACTUAL`).
11
+ 2. **Fix commit** — delete comment markers and `ACTUAL` line; `EXPECTED` becomes the
12
+ live assertion. No other edits in the fix commit.
13
+
14
+ ## Minimal vitest shape
15
+
16
+ See `packages/cli/test/cli/parityExpectedActualTemplate.test.ts` for a runnable
17
+ micro-example. For real parity rows, mirror the pattern in the oracle fixture row
18
+ and `npmParityMatrix.test.ts` drift assertions.
19
+
20
+ ## npmParityMatrix row
21
+
22
+ When adding a row to the parity matrix for a pre-existing bug:
23
+
24
+ - Register the row with `drift_direction: equal` as the target after fix.
25
+ - In the demonstrate pass, temporarily pin oracle shape to the **wrong** envelope
26
+ or assert `ACTUAL` substring in a dedicated regression test.
27
+ - Fix pass restores `equal` against the corrected CLI output.
28
+
29
+ Do not apply EXPECTED/ACTUAL by default to every row — only where bisect clarity
30
+ justifies the two-commit ritual.