agentera 3.0.0-dev.23 → 3.0.0-dev.26

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 (376) hide show
  1. package/README.md +18 -22
  2. package/bundle/CHANGELOG.md +25 -27
  3. package/bundle/README.md +22 -42
  4. package/bundle/UPGRADE.md +71 -179
  5. package/bundle/references/adapters/package-manifest-interface-model.yaml +41 -240
  6. package/bundle/references/adapters/package-registry.yaml +9 -145
  7. package/bundle/references/adapters/package-surface-characterization.md +13 -38
  8. package/bundle/references/adapters/runtime-lifecycle-adapters.yaml +5 -219
  9. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -29
  10. package/bundle/references/adapters/runtime-lifecycle-operation-contract.yaml +1 -1
  11. package/bundle/references/artifacts/state-storage-authority.yaml +729 -412
  12. package/bundle/references/cli/agent-ready-state-contract.yaml +12 -12
  13. package/bundle/references/cli/app-lifecycle-vocabulary.yaml +3 -4
  14. package/bundle/references/cli/bundle-skill-vocabulary.yaml +9 -18
  15. package/bundle/references/cli/capability-tool-classification.yaml +2 -2
  16. package/bundle/references/cli/prime-consumer-compatibility.yaml +28 -98
  17. package/bundle/references/cli/routing-execution-vocabulary.yaml +4 -22
  18. package/bundle/references/cli/update-channels.yaml +4 -2
  19. package/bundle/references/cli/upgrade-repair-wording.md +8 -28
  20. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +2 -3
  21. package/bundle/references/cli/vocabulary.md +22 -27
  22. package/bundle/references/meta/documentation-inventory.md +1 -1
  23. package/bundle/skills/agentera/SKILL.md +28 -14
  24. package/bundle/skills/agentera/capabilities/audit/schemas/artifacts.yaml +12 -12
  25. package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +2 -2
  26. package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +12 -12
  27. package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +8 -8
  28. package/bundle/skills/agentera/capabilities/design/schemas/artifacts.yaml +6 -6
  29. package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +7 -7
  30. package/bundle/skills/agentera/capabilities/document/schemas/artifacts.yaml +12 -12
  31. package/bundle/skills/agentera/capabilities/optimize/schemas/artifacts.yaml +9 -9
  32. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +11 -11
  33. package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +9 -9
  34. package/bundle/skills/agentera/capabilities/profile/schemas/artifacts.yaml +2 -2
  35. package/bundle/skills/agentera/capabilities/research/schemas/artifacts.yaml +3 -3
  36. package/bundle/skills/agentera/capabilities/status/schemas/artifacts.yaml +11 -11
  37. package/bundle/skills/agentera/capabilities/vision/schemas/artifacts.yaml +8 -8
  38. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +15 -2
  39. package/bundle/skills/agentera/schemas/artifacts/docs.yaml +7 -12
  40. package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +21 -21
  41. package/bundle/skills/agentera/schemas/artifacts/health.yaml +15 -2
  42. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +36 -15
  43. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -2
  44. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +4 -4
  45. package/dist/capabilities/audit/instructions.js +13 -1
  46. package/dist/capabilities/audit/instructions.js.map +1 -1
  47. package/dist/capabilities/build/instructions.js +14 -1
  48. package/dist/capabilities/build/instructions.js.map +1 -1
  49. package/dist/capabilities/discuss/instructions.js +11 -1
  50. package/dist/capabilities/discuss/instructions.js.map +1 -1
  51. package/dist/capabilities/document/instructions.js +9 -1
  52. package/dist/capabilities/document/instructions.js.map +1 -1
  53. package/dist/capabilities/index.js +7 -7
  54. package/dist/capabilities/index.js.map +1 -1
  55. package/dist/capabilities/optimize/instructions.js +10 -1
  56. package/dist/capabilities/optimize/instructions.js.map +1 -1
  57. package/dist/capabilities/orchestrate/instructions.js +13 -2
  58. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  59. package/dist/capabilities/plan/instructions.js +10 -1
  60. package/dist/capabilities/plan/instructions.js.map +1 -1
  61. package/dist/cli/capabilityContext/bespoke.js +8 -2
  62. package/dist/cli/capabilityContext/bespoke.js.map +1 -1
  63. package/dist/cli/capabilityContext/closeout.js +3 -3
  64. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  65. package/dist/cli/capabilityContext/contract.js +10 -15
  66. package/dist/cli/capabilityContext/contract.js.map +1 -1
  67. package/dist/cli/capabilityContext/evidence.js +55 -43
  68. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  69. package/dist/cli/capabilityContext/planState.js +5 -5
  70. package/dist/cli/capabilityContext/planState.js.map +1 -1
  71. package/dist/cli/capabilityContext/progress.js +1 -1
  72. package/dist/cli/capabilityContext/progress.js.map +1 -1
  73. package/dist/cli/capabilityContext/shared.js +8 -2
  74. package/dist/cli/capabilityContext/shared.js.map +1 -1
  75. package/dist/cli/capabilityContext/slim.js +2 -1
  76. package/dist/cli/capabilityContext/slim.js.map +1 -1
  77. package/dist/cli/capabilityContext/startup.js +19 -8
  78. package/dist/cli/capabilityContext/startup.js.map +1 -1
  79. package/dist/cli/capabilityContext/types.js +4 -4
  80. package/dist/cli/capabilityContext/types.js.map +1 -1
  81. package/dist/cli/commands/doctor.js +6 -64
  82. package/dist/cli/commands/doctor.js.map +1 -1
  83. package/dist/cli/commands/durability.js +27 -30
  84. package/dist/cli/commands/durability.js.map +1 -1
  85. package/dist/cli/commands/entityMigrate.js +128 -0
  86. package/dist/cli/commands/entityMigrate.js.map +1 -0
  87. package/dist/cli/commands/prime/briefOrientation.js +7 -22
  88. package/dist/cli/commands/prime/briefOrientation.js.map +1 -1
  89. package/dist/cli/commands/prime/bundleStatus.js +8 -2
  90. package/dist/cli/commands/prime/bundleStatus.js.map +1 -1
  91. package/dist/cli/commands/prime/collectEntityOrientation.js +161 -0
  92. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -0
  93. package/dist/cli/commands/prime/collectOrientationState.js +32 -59
  94. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  95. package/dist/cli/commands/prime/orientationOutput.js +4 -12
  96. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  97. package/dist/cli/commands/prime.js +2 -5
  98. package/dist/cli/commands/prime.js.map +1 -1
  99. package/dist/cli/commands/query.js +43 -49
  100. package/dist/cli/commands/query.js.map +1 -1
  101. package/dist/cli/commands/schema.js +26 -83
  102. package/dist/cli/commands/schema.js.map +1 -1
  103. package/dist/cli/commands/state/decisions.js +14 -47
  104. package/dist/cli/commands/state/decisions.js.map +1 -1
  105. package/dist/cli/commands/state/docs.js +58 -84
  106. package/dist/cli/commands/state/docs.js.map +1 -1
  107. package/dist/cli/commands/state/experimentRecords.js +27 -44
  108. package/dist/cli/commands/state/experimentRecords.js.map +1 -1
  109. package/dist/cli/commands/state/experiments.js +11 -64
  110. package/dist/cli/commands/state/experiments.js.map +1 -1
  111. package/dist/cli/commands/state/get.js +74 -88
  112. package/dist/cli/commands/state/get.js.map +1 -1
  113. package/dist/cli/commands/state/health.js +11 -112
  114. package/dist/cli/commands/state/health.js.map +1 -1
  115. package/dist/cli/commands/state/index.js +11 -2
  116. package/dist/cli/commands/state/index.js.map +1 -1
  117. package/dist/cli/commands/state/list.js +30 -13
  118. package/dist/cli/commands/state/list.js.map +1 -1
  119. package/dist/cli/commands/state/objective.js +21 -64
  120. package/dist/cli/commands/state/objective.js.map +1 -1
  121. package/dist/cli/commands/state/plan.js +11 -376
  122. package/dist/cli/commands/state/plan.js.map +1 -1
  123. package/dist/cli/commands/state/planTasks.js +58 -80
  124. package/dist/cli/commands/state/planTasks.js.map +1 -1
  125. package/dist/cli/commands/state/plans.js +27 -38
  126. package/dist/cli/commands/state/plans.js.map +1 -1
  127. package/dist/cli/commands/state/progress.js +11 -44
  128. package/dist/cli/commands/state/progress.js.map +1 -1
  129. package/dist/cli/commands/state/shared.js.map +1 -1
  130. package/dist/cli/commands/state/todo.js +27 -106
  131. package/dist/cli/commands/state/todo.js.map +1 -1
  132. package/dist/cli/commands/state/write.js +57 -4
  133. package/dist/cli/commands/state/write.js.map +1 -1
  134. package/dist/cli/commands/upgrade.js +99 -35
  135. package/dist/cli/commands/upgrade.js.map +1 -1
  136. package/dist/cli/commands/upgradeVerify.js +52 -14
  137. package/dist/cli/commands/upgradeVerify.js.map +1 -1
  138. package/dist/cli/commands/validate.js +66 -9
  139. package/dist/cli/commands/validate.js.map +1 -1
  140. package/dist/cli/dispatch/check.js +13 -13
  141. package/dist/cli/dispatch/check.js.map +1 -1
  142. package/dist/cli/dispatch/index.js +35 -28
  143. package/dist/cli/dispatch/index.js.map +1 -1
  144. package/dist/cli/dispatch/lifecycle.js +23 -43
  145. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  146. package/dist/cli/dispatch/prime.js +15 -0
  147. package/dist/cli/dispatch/prime.js.map +1 -1
  148. package/dist/cli/dispatch/state.js +7 -1
  149. package/dist/cli/dispatch/state.js.map +1 -1
  150. package/dist/cli/help.js +90 -112
  151. package/dist/cli/help.js.map +1 -1
  152. package/dist/cli/migrationRequired.js +87 -0
  153. package/dist/cli/migrationRequired.js.map +1 -0
  154. package/dist/cli/orientation/attention.js +3 -99
  155. package/dist/cli/orientation/attention.js.map +1 -1
  156. package/dist/cli/orientation.js +10 -7
  157. package/dist/cli/orientation.js.map +1 -1
  158. package/dist/cli/planArtifacts.js +192 -42
  159. package/dist/cli/planArtifacts.js.map +1 -1
  160. package/dist/cli/prime-blob.js +5 -5
  161. package/dist/cli/prime-blob.js.map +1 -1
  162. package/dist/cli/stateQuery.js +6 -7
  163. package/dist/cli/stateQuery.js.map +1 -1
  164. package/dist/core/skillIdentity.js +24 -0
  165. package/dist/core/skillIdentity.js.map +1 -0
  166. package/dist/hooks/common.js +1 -1
  167. package/dist/hooks/common.js.map +1 -1
  168. package/dist/hooks/compaction/status.js +27 -2
  169. package/dist/hooks/compaction/status.js.map +1 -1
  170. package/dist/hooks/cursorSessionStart.js +4 -19
  171. package/dist/hooks/cursorSessionStart.js.map +1 -1
  172. package/dist/hooks/projectHookInput.js +26 -0
  173. package/dist/hooks/projectHookInput.js.map +1 -0
  174. package/dist/hooks/sessionStart.js +58 -212
  175. package/dist/hooks/sessionStart.js.map +1 -1
  176. package/dist/hooks/sessionStop.js +4 -12
  177. package/dist/hooks/sessionStop.js.map +1 -1
  178. package/dist/hooks/validateArtifact/traversal.js +1 -1
  179. package/dist/hooks/validateArtifact/traversal.js.map +1 -1
  180. package/dist/registries/artifactRegistry.js +24 -14
  181. package/dist/registries/artifactRegistry.js.map +1 -1
  182. package/dist/registries/packageRegistry.js +58 -232
  183. package/dist/registries/packageRegistry.js.map +1 -1
  184. package/dist/release/releaseMetadata.js +1 -13
  185. package/dist/release/releaseMetadata.js.map +1 -1
  186. package/dist/runtime/lifecycleAdapterContract.js +4 -4
  187. package/dist/runtime/lifecycleAdapterContract.js.map +1 -1
  188. package/dist/runtime/lifecycleAdapters.js +14 -2
  189. package/dist/runtime/lifecycleAdapters.js.map +1 -1
  190. package/dist/runtime/lifecycleAuthority.js +5 -43
  191. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  192. package/dist/runtime/lifecycleOperationContract.js +3 -2
  193. package/dist/runtime/lifecycleOperationContract.js.map +1 -1
  194. package/dist/runtime/lifecyclePublication.js +21 -0
  195. package/dist/runtime/lifecyclePublication.js.map +1 -1
  196. package/dist/setup/opencode.js +20 -12
  197. package/dist/setup/opencode.js.map +1 -1
  198. package/dist/setup/sharedSkill.js +46 -0
  199. package/dist/setup/sharedSkill.js.map +1 -0
  200. package/dist/setup/smokeChecks.js +16 -43
  201. package/dist/setup/smokeChecks.js.map +1 -1
  202. package/dist/state/archivePublication.js +3 -2
  203. package/dist/state/archivePublication.js.map +1 -1
  204. package/dist/state/decisionEntities.js +282 -0
  205. package/dist/state/decisionEntities.js.map +1 -0
  206. package/dist/state/decisionOverlay.js +2 -2
  207. package/dist/state/decisionOverlay.js.map +1 -1
  208. package/dist/state/decisionRevision.js +44 -34
  209. package/dist/state/decisionRevision.js.map +1 -1
  210. package/dist/state/directRetrieval.js.map +1 -1
  211. package/dist/state/durability.js +81 -226
  212. package/dist/state/durability.js.map +1 -1
  213. package/dist/state/entityCutover.js +294 -0
  214. package/dist/state/entityCutover.js.map +1 -0
  215. package/dist/state/entityCutoverGit.js +128 -0
  216. package/dist/state/entityCutoverGit.js.map +1 -0
  217. package/dist/state/entityMigrationPreview.js +803 -0
  218. package/dist/state/entityMigrationPreview.js.map +1 -0
  219. package/dist/state/entityPublicationContext.js +612 -0
  220. package/dist/state/entityPublicationContext.js.map +1 -0
  221. package/dist/state/entityStorage.js +826 -0
  222. package/dist/state/entityStorage.js.map +1 -0
  223. package/dist/state/experimentIdentity.js +23 -11
  224. package/dist/state/experimentIdentity.js.map +1 -1
  225. package/dist/state/healthEntities.js +230 -0
  226. package/dist/state/healthEntities.js.map +1 -0
  227. package/dist/state/healthEntityValidation.js +6 -0
  228. package/dist/state/healthEntityValidation.js.map +1 -0
  229. package/dist/state/legacyEntityCutoverEvidence.js +66 -0
  230. package/dist/state/legacyEntityCutoverEvidence.js.map +1 -0
  231. package/dist/state/listRetrieval.js.map +1 -1
  232. package/dist/state/objectiveExperimentEntities.js +323 -0
  233. package/dist/state/objectiveExperimentEntities.js.map +1 -0
  234. package/dist/state/planEntities.js +362 -0
  235. package/dist/state/planEntities.js.map +1 -0
  236. package/dist/state/progressEntities.js +384 -0
  237. package/dist/state/progressEntities.js.map +1 -0
  238. package/dist/state/projectRoot.js +63 -0
  239. package/dist/state/projectRoot.js.map +1 -0
  240. package/dist/state/retrievalAuthority.js +13 -6
  241. package/dist/state/retrievalAuthority.js.map +1 -1
  242. package/dist/state/safeProjectFile.js +153 -0
  243. package/dist/state/safeProjectFile.js.map +1 -0
  244. package/dist/state/startupProjection.js +3 -2
  245. package/dist/state/startupProjection.js.map +1 -1
  246. package/dist/state/stateMode.js +83 -0
  247. package/dist/state/stateMode.js.map +1 -0
  248. package/dist/state/todoDocsEntities.js +225 -0
  249. package/dist/state/todoDocsEntities.js.map +1 -0
  250. package/dist/state/todoDocsEntityValidation.js +26 -0
  251. package/dist/state/todoDocsEntityValidation.js.map +1 -0
  252. package/dist/state/write/candidateMutation.js +5 -55
  253. package/dist/state/write/candidateMutation.js.map +1 -1
  254. package/dist/state/write/explain.js +119 -28
  255. package/dist/state/write/explain.js.map +1 -1
  256. package/dist/state/write/lock.js +794 -87
  257. package/dist/state/write/lock.js.map +1 -1
  258. package/dist/state/write/mutation.js +5 -2
  259. package/dist/state/write/mutation.js.map +1 -1
  260. package/dist/state/write/operations.js +52 -7
  261. package/dist/state/write/operations.js.map +1 -1
  262. package/dist/state/write/planEvaluation.js +107 -0
  263. package/dist/state/write/planEvaluation.js.map +1 -0
  264. package/dist/state/write/planPublication.js +11 -55
  265. package/dist/state/write/planPublication.js.map +1 -1
  266. package/dist/state/write/transaction.js +32 -455
  267. package/dist/state/write/transaction.js.map +1 -1
  268. package/dist/upgrade/appContentRefresh.js +43 -28
  269. package/dist/upgrade/appContentRefresh.js.map +1 -1
  270. package/dist/upgrade/compatibility.js +4 -4
  271. package/dist/upgrade/compatibility.js.map +1 -1
  272. package/dist/upgrade/doctor.js +5 -1
  273. package/dist/upgrade/doctor.js.map +1 -1
  274. package/dist/upgrade/installedHooksRetirement.js +46 -39
  275. package/dist/upgrade/installedHooksRetirement.js.map +1 -1
  276. package/dist/upgrade/legacyAgentCleanup.js +132 -32
  277. package/dist/upgrade/legacyAgentCleanup.js.map +1 -1
  278. package/dist/upgrade/lifecycleUpgrade.js +65 -378
  279. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  280. package/dist/upgrade/migrateArtifactsV2ToV3.js +164 -66
  281. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  282. package/dist/upgrade/migrationPublication.js +123 -0
  283. package/dist/upgrade/migrationPublication.js.map +1 -0
  284. package/dist/upgrade/projectIntegration.js +46 -113
  285. package/dist/upgrade/projectIntegration.js.map +1 -1
  286. package/dist/upgrade/projectIntegrationDecision.js +6 -96
  287. package/dist/upgrade/projectIntegrationDecision.js.map +1 -1
  288. package/dist/upgrade/runtimeMigration.js +222 -402
  289. package/dist/upgrade/runtimeMigration.js.map +1 -1
  290. package/dist/upgrade/upgradeCommands.js +5 -4
  291. package/dist/upgrade/upgradeCommands.js.map +1 -1
  292. package/dist/upgrade/upgradeLock.js +73 -41
  293. package/dist/upgrade/upgradeLock.js.map +1 -1
  294. package/dist/upgrade/upgradeOrchestrator.js +181 -145
  295. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  296. package/dist/upgrade/v3CapabilitySurface.js +2 -2
  297. package/dist/validate/appHomeContract.js +0 -4
  298. package/dist/validate/appHomeContract.js.map +1 -1
  299. package/dist/validate/crossCapability.js +2 -2
  300. package/dist/validate/crossCapability.js.map +1 -1
  301. package/package.json +8 -6
  302. package/bundle/.codex-plugin/plugin.json +0 -92
  303. package/bundle/.cursor/agents/agentera.md +0 -7
  304. package/bundle/.cursor/hooks.json +0 -32
  305. package/bundle/.cursor-plugin/plugin.json +0 -34
  306. package/bundle/.github/hooks/postToolUse.json +0 -9
  307. package/bundle/.github/hooks/preToolUse.json +0 -8
  308. package/bundle/.github/hooks/sessionEnd.json +0 -8
  309. package/bundle/.github/hooks/sessionStart.json +0 -8
  310. package/bundle/.github/plugin/plugin.json +0 -7
  311. package/bundle/.opencode/agents/agentera.md +0 -12
  312. package/bundle/.opencode/commands/agentera.md +0 -5
  313. package/bundle/.opencode/package.json +0 -31
  314. package/bundle/.opencode/plugins/agentera.js +0 -820
  315. package/bundle/agents/openai.yaml +0 -87
  316. package/bundle/hooks/codex-hooks.json +0 -31
  317. package/bundle/hooks/codex-plugin-hooks.json +0 -31
  318. package/bundle/plugin.json +0 -13
  319. package/bundle/references/adapters/cursor.md +0 -224
  320. package/bundle/references/adapters/opencode.md +0 -529
  321. package/bundle/references/adapters/runtime-adapter-characterization.md +0 -44
  322. package/bundle/references/adapters/runtime-adapter-interface-model.yaml +0 -200
  323. package/bundle/references/adapters/runtime-adapter-registry.yaml +0 -387
  324. package/bundle/references/adapters/runtime-feature-parity.md +0 -129
  325. package/dist/cli/commands/backfill.js +0 -194
  326. package/dist/cli/commands/backfill.js.map +0 -1
  327. package/dist/cli/commands/migrate.js +0 -677
  328. package/dist/cli/commands/migrate.js.map +0 -1
  329. package/dist/registries/runtimeAdapterRegistry.js +0 -324
  330. package/dist/registries/runtimeAdapterRegistry.js.map +0 -1
  331. package/dist/setup/copilot.js +0 -227
  332. package/dist/setup/copilot.js.map +0 -1
  333. package/dist/setup/cursor.js +0 -129
  334. package/dist/setup/cursor.js.map +0 -1
  335. package/dist/setup/cursorSurfaces.js +0 -67
  336. package/dist/setup/cursorSurfaces.js.map +0 -1
  337. package/dist/setup/doctor/core.js +0 -296
  338. package/dist/setup/doctor/core.js.map +0 -1
  339. package/dist/setup/doctor/diagnostics.js +0 -201
  340. package/dist/setup/doctor/diagnostics.js.map +0 -1
  341. package/dist/setup/doctor/opencode.js +0 -301
  342. package/dist/setup/doctor/opencode.js.map +0 -1
  343. package/dist/setup/doctor/report.js +0 -425
  344. package/dist/setup/doctor/report.js.map +0 -1
  345. package/dist/setup/doctor.js +0 -10
  346. package/dist/setup/doctor.js.map +0 -1
  347. package/dist/state/gitBackfill.js +0 -561
  348. package/dist/state/gitBackfill.js.map +0 -1
  349. package/dist/state/gitBackfillAuthority.js +0 -141
  350. package/dist/state/gitBackfillAuthority.js.map +0 -1
  351. package/dist/state/gitBackfillHistory.js +0 -278
  352. package/dist/state/gitBackfillHistory.js.map +0 -1
  353. package/dist/state/gitBackfillOutput.js +0 -209
  354. package/dist/state/gitBackfillOutput.js.map +0 -1
  355. package/dist/state/legacyMigration.js +0 -516
  356. package/dist/state/legacyMigration.js.map +0 -1
  357. package/dist/state/legacyMigrationParser.js +0 -489
  358. package/dist/state/legacyMigrationParser.js.map +0 -1
  359. package/dist/state/migrationAuthority.js +0 -413
  360. package/dist/state/migrationAuthority.js.map +0 -1
  361. package/dist/state/migrationEnrichment.js +0 -35
  362. package/dist/state/migrationEnrichment.js.map +0 -1
  363. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -568
  364. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +0 -1
  365. package/dist/upgrade/upgradeSnapshot.js +0 -93
  366. package/dist/upgrade/upgradeSnapshot.js.map +0 -1
  367. package/dist/validate/lifecycleAdapters/legacyPythonParity.js +0 -93
  368. package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +0 -1
  369. package/dist/validate/lifecycleAdapters/lifecycleMain.js +0 -154
  370. package/dist/validate/lifecycleAdapters/lifecycleMain.js.map +0 -1
  371. package/dist/validate/lifecycleAdapters/nodeFormChecks.js +0 -481
  372. package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +0 -1
  373. package/dist/validate/lifecycleAdapters/shared.js +0 -198
  374. package/dist/validate/lifecycleAdapters/shared.js.map +0 -1
  375. package/dist/validate/lifecycleAdapters.js +0 -10
  376. package/dist/validate/lifecycleAdapters.js.map +0 -1
@@ -16,7 +16,7 @@ included when they shape cross-suite usage.
16
16
  | `skills/agentera/protocol.yaml` | Confidence, severity, decision labels, exit signals, visual tokens, glyphs, and phases. |
17
17
  | `skills/agentera/capability_schema_contract.yaml` | Capability schema structure, required groups, priorities, and primitive-reference fields. |
18
18
  | `skills/agentera/schemas/artifacts/*.yaml` | Artifact field grammar, status values, path contracts, and validation rules. |
19
- | `references/artifacts/artifact-registry-interface-model.yaml` | Artifact identity facts: `artifact_id`, display name, default path, producers, consumers, type, scope. |
19
+ | `references/artifacts/artifact-registry-interface-model.yaml` | Internal artifact registry facts. Public state envelopes use `artifact` for the family and `id` for the stable public identifier. |
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. |
@@ -51,11 +51,11 @@ examples. Diagnostics should state object, state, cause, and fix.
51
51
 
52
52
  | Term | Definition | Common sources |
53
53
  | -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
54
- | Agentera | The agent. One persistent identity that thinks through every step and keeps working when you walk away — the colleague, not the team. The CLI is the brain and spine: it owns routing, memory, capability prose, and the worker-spec contract. Active host coding agents (OpenCode, Codex, Cursor, Copilot) are harnesses that provide the model and tool runtime; Agentera provides the identity, memory, discipline, and routing. Identity is per-project: same personality, same capabilities, different memory, no bleed. Headline: one agent, one CLI, many capabilities. | `README.md`, `.agentera/vision.yaml`, `.agentera/decisions.yaml` (D74), `skills/agentera/SKILL.md` |
55
- | Host runtime (harness) | An active host coding agent OpenCode, Codex, Cursor, or Copilot — that provides the model, the tool runtime, and the spawn capacity. Agentera is the agent; the host is the harness. The host learns one contract: the JSON the CLI returns from `agentera prime`. Editor runtime installs are transport (the `skills/` directory, `plugin.json`), not an extension surface. | `.agentera/vision.yaml`, `.agentera/decisions.yaml` (D74), `skills/agentera/SKILL.md` |
56
- | Product surface | Where the same fixed Agentera workflow ships: `@agentera/cli` (the agent runtime and narrow waist — owns routing, memory, capability prose, and the worker-spec contract), `@agentera/mobile` (primary app, a client of the CLI), `@agentera/web` (site and docs), and active host runtimes (OpenCode, Codex, Cursor, Copilot). Host runtimes are harnesses clients of the CLI, not extension hosts or peers. | `README.md`, `AGENTS.md`, `packages/*/README.md`, `.agentera/decisions.yaml` (D74) |
54
+ | Agentera | The agent. One persistent identity that thinks through every step and keeps working when you walk away — the colleague, not the team. The CLI is the brain and spine: it owns routing, memory, capability prose, and the worker-spec contract. Coding hosts consume the same shared skill and CLI contract; Agentera does not ship host-native package surfaces. Identity is per-project: same personality, same capabilities, different memory, no bleed. Headline: one agent, one CLI, many capabilities. | `README.md`, `.agentera/vision.yaml`, `.agentera/decisions.yaml` (D74), `skills/agentera/SKILL.md` |
55
+ | Host runtime (harness) | A coding agent host that provides the model, tools, and worker execution. Agentera is the agent; the host is the harness. Hosts consume the shared skill at `~/.agents/skills/agentera` and the JSON returned by `agentera prime`; Agentera does not install or repair host-native plugins, hooks, agents, or packages. | `.agentera/vision.yaml`, `.agentera/decisions.yaml` (D74), `skills/agentera/SKILL.md` |
56
+ | Product surface | Where the fixed Agentera workflow ships: `@agentera/cli` (the agent runtime and narrow waist), `@agentera/mobile` (a client of the CLI), and `@agentera/web` (site and docs). Coding hosts consume the shared skill and CLI rather than receiving native Agentera package surfaces. | `README.md`, `AGENTS.md`, `packages/*/README.md`, `.agentera/decisions.yaml` (D74) |
57
57
  | @agentera/mobile | The flagship mobile/web app package at `packages/mobile`. SvelteKit, Cursor SDK, Cloudflare Worker. | `packages/mobile/README.md`, `packages/mobile/DESIGN.md` |
58
- | Agentera skill | Internal transport, not a product word. The bundle at `skills/agentera/` packages Agentera's routing entry and capability prose for host editor runtimes — the `skills/` directory and `plugin.json` manifests host editors require. It is the same fixed workflow, not user extensibility. Per Decision 74, "skill" is retired from product vocabulary and survives only as internal transport; the product word is capabilities. | `skills/agentera/SKILL.md`, `README.md` Internals, `.agentera/decisions.yaml` (D74) |
58
+ | Agentera skill | Shared transport, not a product extension point. The source at `skills/agentera/` is installed once at `~/.agents/skills/agentera` and packages Agentera's routing entry and capability prose without host-native manifests. It is the same fixed workflow, not user extensibility. Per Decision 74, the product word is capabilities. | `skills/agentera/SKILL.md`, `README.md` Internals, `.agentera/decisions.yaml` (D74) |
59
59
  | Capability | A routed behavioral unit of the single Agentera agent, driven through the CLI. Eleven top-level capabilities (status, vision, discuss, research, plan, build, optimize, audit, document, design, orchestrate) plus profile, which surfaces through existing capabilities but appears as a peer row in user-facing docs. Each capability has a prose module at `packages/cli/src/capabilities/<name>/instructions.ts` plus `triggers.yaml`, `artifacts.yaml`, `validation.yaml`, and `exit.yaml`. English names are canonical per Decision 70; the Swedish `-era` names are legacy v2 stable only (see Legacy Swedish capability names). | `AGENTS.md`, `skills/agentera/capabilities/*`, `packages/cli/src/capabilities/*`, `.agentera/decisions.yaml` (D70, D74) |
60
60
  | Capability canonical name (v3) | The English name binding for v3+ capability invocation, per Decision 70, under the single-agent identity crystallized in Decision 74. Promoted from the Decision 43 alias set. Mobile UX, web docs, host runtimes, and the CLI all use the same English name; the v2 stable distribution uses the legacy Swedish `-era` IDs (see `Legacy Swedish capability names`). | `.agentera/decisions.yaml` (D43, D70, D74), `references/cli/vocabulary-index.yaml` (protected_surfaces) |
61
61
  | Legacy Swedish capability names (v2 stable) | The historical Swedish `-era` IDs (e.g. `hej`, `resonera`) used by the v2 stable distribution (`npx -y agentera@latest`) and preserved as historical references in archived plans, decisions, and changelogs. Out of scope for v3 surface per Decisions 70 and 74; the single-agent identity uses English capability names exclusively. Coexistence probe surfaces per-distribution naming divergence. | `.agentera/decisions.yaml` (D70, D74), `references/cli/vocabulary-index.yaml` (protected_surfaces) |
@@ -142,14 +142,14 @@ authoritative recovery command.
142
142
  | Suggest, don't force | Status recommends the next capability but waits for user confirmation. |
143
143
  | Capability handoff label | A recommendation from one capability to another. Use glyph plus canonical name, such as `⧉ build` or `≡ plan`, not standalone slash-capability names. SG priority codes are internal protocol references and are not user-facing handoff labels. |
144
144
  | Explicit route documentation | User-facing examples that teach the actual entry route. Use `/agentera <alias>` such as `/agentera build`; do not present aliases as CLI commands. |
145
- | Runtime question tool | Host-native bounded-choice prompt. Concrete tool availability belongs to the active host runtime, not this vocabulary. |
146
- | Question-tool gating | Use a native question tool only for at least two meaningful non-terminal next actions or consequential Proceed/Cancel; `Done` and custom/free-form answers do not count as alternatives. Initial Agentera/status briefs stay free-form unless bounded choices were requested or the suggested next step is a state-changing Proceed/Cancel handoff. A single non-mutating suggested handoff may use a free-form prompt, but a single state-changing handoff uses native Proceed/Cancel confirmation. State-changing means the proposed next step may write artifacts, edit code, run optimization or orchestration cycles, apply migrations, refresh app/runtime state, or otherwise mutate project/runtime state. Apply the behavior rule first, with examples such as ⧉ build, ≡ plan when creating or updating plans, ▤ document when writing docs, ⎘ optimize when running or applying optimization cycles, and ⎈ orchestrate when dispatching cycles. This dispatcher rule governs status and capability handoff prompts; invoked capability prose can impose stricter question-tool requirements. |
145
+ | Bounded-choice prompt | A question surface supplied by the coding host. Agentera may use one when available but does not install, configure, or advertise a host-specific prompt integration. |
146
+ | Question gating | Use bounded choices only for at least two meaningful non-terminal next actions or consequential Proceed/Cancel; `Done` and custom/free-form answers do not count as alternatives. Initial Agentera/status briefs stay free-form unless bounded choices were requested or the suggested next step is a state-changing Proceed/Cancel handoff. A single non-mutating suggested handoff may use a free-form prompt, but a single state-changing handoff uses Proceed/Cancel confirmation. State-changing means the proposed next step may write artifacts, edit code, run optimization or orchestration cycles, apply migrations, or otherwise mutate project state. Apply the behavior rule first; invoked capability prose can impose stricter requirements. |
147
147
  | Handoff confirmation | Clear free-form acceptance of the named single suggestion confirms invocation. Selecting a downstream capability option in a bounded prompt also confirms invocation; selecting `Done` stops without routing. Ambiguous replies get one clarifying question. |
148
148
  | Route | Direct user invocation by canonical capability name, primary alias, or slash route. A route is already consent to invoke the capability and does not need an extra handoff confirmation. |
149
149
  | Suggest | Recommend a downstream capability and wait for confirmation. |
150
150
  | Delegate | Orchestrate assigns approved plan work to a worker capability during an explicitly orchestrated flow. |
151
- | Spawn | Build or Optimize launches an isolated runtime worker through the host subagent mechanism. |
152
- | Subagent mechanism | Runtime support for worker execution through OpenCode, Codex CLI, Cursor IDE, Copilot CLI, or another active host-native worker surface. |
151
+ | Spawn | Build or Optimize asks the coding host to launch an isolated worker when the host provides that facility. |
152
+ | Worker mechanism | A host-provided worker facility. Agentera ships no host-specific worker descriptor, adapter, plugin, hook, or package. |
153
153
  | Legacy bridge | Temporary v1 entry points, especially `/hej`, that guide users to `/agentera` and the v2 upgrade path. |
154
154
 
155
155
  CLI-visible `agentera prime` labels are source labels. Preserve them in CLI tests
@@ -215,11 +215,11 @@ ambiguous-term sweep remain separate follow-up work.
215
215
  | Severity band policy | TODO.md severity bands (⇶ Critical, ⇉ Degraded, → Normal, ⇢ Annoying) may be header-only when they have no open work; open items use `- [ ] [type:train]` only. Authority: `skills/agentera/schemas/artifacts/todo.yaml` CONVENTION TC5; executable rule in `packages/cli/src/hooks/validateArtifact/markdown.ts` `validateMdItems`. |
216
216
  | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
217
217
  | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
218
- | 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. |
218
+ | Canonical artifact name | Public `artifact` value such as `plan`, `progress`, or `docs`; human-facing Markdown filenames such as `TODO.md` are display labels, not protocol identity. |
219
219
  | Resolved artifact path | The actual path after consulting `.agentera/docs.yaml` mapping or the default layout. |
220
- | Artifact mapping | `.agentera/docs.yaml` rows that map `artifact_id` values to project-local paths and producers. |
220
+ | Artifact mapping | `.agentera/docs.yaml` rows that map `artifact` values to project-local paths and producers. |
221
221
  | ArtifactRegistry | The registry interface model for artifact IDs, display names, default paths, producers, consumers, type, scope, and special cases. |
222
- | `artifact_id` | Machine identifier such as `progress`, `health`, `docs`, or `objective`. |
222
+ | `artifact` | Public artifact-family value such as `progress`, `health`, `docs`, or `objective`. Entity envelopes pair it with `id`, the stable public identifier whose grammar is owned by `references/artifacts/state-storage-authority.yaml`. |
223
223
  | `display_name` | Human-readable filename label such as `VISION.md` or `TODO.md`; registry-owned, not protocol identity. |
224
224
  | `default_path` | Registry-owned path used when no docs mapping overrides it. |
225
225
  | `local_role` | Capability relationship to an artifact: `produces`, `consumes`, or `produces_and_consumes`. |
@@ -368,18 +368,14 @@ not add precision:
368
368
  | Missing normal directory | Previewable. Agentera can show a no-write repair preview. |
369
369
  | Missing chosen directory | Needs a user decision when provided through `AGENTERA_HOME` or explicit `--install-root`. |
370
370
  | Package refresh | Package-manager or marketplace update. It does not prove Agentera's app files are current. |
371
- | App repair | Normal repair flow that previews or applies Agentera app files plus managed runtime config, plugins, hooks, commands, and safe cleanup together. It must not edit shell startup files, and package-manager commands remain opt-in through `--update-packages`. |
372
- | `--only bundle` | Compatibility selector for narrow app-file work. Do not present it as the normal repair recommendation when managed runtime surfaces may also need repair. |
371
+ | App repair | Normal flow that previews or applies Agentera app/project work. It does not install, update, authenticate, enable, trust, or repair host-native resources. |
373
372
  | Preview | No-write mode. Required before upgrade or app repair writes; the underlying command flag is `--dry-run`. |
374
373
  | `--yes` | Explicit apply flag after preview and approval. |
375
- | Final check | Setup validation after upgrade apply. Uses the same app-home probe as `agentera doctor` (`build_doctor_status`), not `setup_doctor.build_report`. |
376
- | Package-update opt-in | External package manager changes require `--update-packages`. |
377
- | Runtime adapter | Runtime-specific Agentera adapter support for skill loading, hooks, artifact validation, lifecycle metadata, and diagnostics. |
374
+ | Final check | Validation after upgrade apply using the same app/project evidence reported by `agentera doctor`. |
378
375
  | Host support | What a runtime can theoretically do. Distinguish it from shipped Agentera behavior. |
379
- | Hook lifecycle | Runtime callbacks such as `SessionStart`, `Stop`, `PreToolUse`, and `PostToolUse`. |
380
- | Setup doctor | Diagnostic command surface for install/runtime health. |
376
+ | Retired native integration vocabulary | Runtime selectors, adapter repair, plugin-shipped hooks, setup-doctor runtime health, and package-update flags describe released history or migration evidence only. They are not current Agentera features. |
381
377
 
382
- Canonical active runtime names are OpenCode, Codex, Cursor, and GitHub Copilot. Cursor Agent CLI and Cursor IDE are surfaces of the single Cursor identity; `cursor-agent` is an inactive Cursor alias and source-product name. Claude Code is a retired migration and consent-gated historical-import source, not an active runtime.
378
+ Claude Code is a retired migration and consent-gated historical-import source, not an active runtime. Current coding hosts consume the shared skill and CLI without entering an Agentera runtime inventory.
383
379
 
384
380
  ### App lifecycle status vocabulary
385
381
 
@@ -452,12 +448,11 @@ identifiers, package metadata, historical records, fixtures, path-like
452
448
  references, generic plain language, and ambiguous current prose.
453
449
 
454
450
  Use this prose as guidance only: current conceptual docs should say the object
455
- they mean, such as Agentera app files, suite package, plugin-shipped hooks,
456
- removed `bundle-status` command, Agentera routing entry point, skill entry file,
457
- historical v1 skill entry paths (post-3.0 removed from the repo tree). Preserve shipped identifiers and
458
- literal paths such as `.agentera-bundle.json`, `bundle.status`,
459
- `activeBundleRoot`, `--only bundle`, and `skills/agentera/SKILL.md` unless an
460
- explicit compatibility migration is in scope.
451
+ they mean, such as Agentera app files, suite package, Agentera routing entry
452
+ point, or skill entry file. Plugin-shipped hooks and `--only bundle` are retired
453
+ v2 vocabulary and may appear only in released history, fixtures, or explicit
454
+ migration evidence. Literal current paths such as `skills/agentera/SKILL.md`
455
+ remain valid.
461
456
 
462
457
  Do not replace this with a parallel Markdown table of allowed and forbidden
463
458
  terms. Update the YAML authority first, then keep this section as the short
@@ -530,7 +525,7 @@ schema concept, runtime capability, install state, or user action.
530
525
  | Ambiguous term | Why bare usage is risky | Required wording |
531
526
  | --------------- | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
532
527
  | Skill | Confuses v1 standalone skills, the host editor skill bundle, and internal workflows. | Per Decision 74, `skill` is internal transport, not product vocabulary. Use `capability` for Agentera workflows; reserve `skill` for the `skills/` directory and host editor manifests; `v1 skill` for history. |
533
- | Contract | Could mean schema structure, artifact shape, protocol primitive, adapter behavior, or product promise. | Use `schema contract`, `artifact schema`, `protocol primitives`, `runtime adapter contract`, or `product promise`. |
528
+ | Contract | Could mean schema structure, artifact shape, protocol primitive, package behavior, or product promise. | Use `schema contract`, `artifact schema`, `protocol primitives`, `package contract`, or `product promise`. |
534
529
  | Status | Different surfaces use different state machines and output labels. | Use `exit status`, `task status`, `installed-app status`, `install status`, `docs status`, or `health status`. |
535
530
  | Freshness | Sounds like a branded synonym for several normal states: current, stale, synced, or out of date. | Use object-specific state wording such as `artifact is current`, `Agentera app files need repair`, `docs are current`, or `plan-level current-state check`. |
536
531
  | Checkpoint | In software, can mean commit, savepoint, restore point, model checkpoint, or milestone. | Use `final state sync`, `plan-level current-state check`, `checkpoint commit`, or `pre-dispatch checkpoint commit`. |
@@ -10,7 +10,7 @@ guides — not under `docs/`.
10
10
 
11
11
  | Path | Topic |
12
12
  | ---- | ----- |
13
- | `docs/packaging/v3-packaging.md` | v3 CLI npm/Bun distribution contract |
13
+ | `docs/packaging/v3-packaging.md` | v3 CLI npm distribution and verification-lane contract |
14
14
  | `docs/consolidation/monorepo-plan.md` | Product pivot, `@agentera/*` package layout, migration checklist (D67) |
15
15
 
16
16
  ## Authority stack
@@ -57,6 +57,20 @@ For static routing guidance (agentera vs native tools):
57
57
  npx -y agentera prime --guidance
58
58
  ```
59
59
 
60
+ ### Upgrade from v2 to v3 development
61
+
62
+ The preview is optional. Apply is one full command:
63
+
64
+ ```bash
65
+ npx -y agentera@next upgrade --channel development --project "$PWD" --dry-run
66
+ npx -y agentera@next upgrade --channel development --project "$PWD" --yes
67
+ ```
68
+
69
+ Apply requires the complete v2 migration source to be tracked by Git and
70
+ unchanged at `HEAD`. The boundary is one-way: there is no rollback, restore,
71
+ non-Git, or partial cross-major workflow. Rerun the same apply command after an
72
+ interruption; recovery continues forward internally.
73
+
60
74
  ---
61
75
 
62
76
  ## Routing
@@ -145,11 +159,11 @@ Proceed/Cancel handoff.
145
159
 
146
160
  ## Artifact writes
147
161
 
148
- The CLI state writer is the canonical mutation path for `progress`, `decisions`,
149
- `plan`, and `health`. Do not hand-edit those artifacts during normal capability
150
- execution. The writer assigns numbers, validates schema fields, honors docs-mapped
151
- paths, serializes concurrent writes, compacts where required, and supports
152
- filesystem-safe previews.
162
+ The CLI state writer is the canonical mutation path for entity-backed state.
163
+ Every public record has `id` and `artifact`, lives in one writer-owned entity
164
+ file, and is retrieved through bounded `list` or exact `get --id` commands. Do
165
+ not edit `.agentera/entities/` directly. The writer assigns bare IDs, validates
166
+ records, publishes atomically, and supports filesystem-safe previews.
153
167
 
154
168
  Discover the live contract before constructing a write:
155
169
 
@@ -168,9 +182,10 @@ Common mutations:
168
182
 
169
183
  - `agentera state progress append ... --format json`
170
184
  - `agentera state decisions append ... --format json`
171
- - `agentera state decisions update --number N ... --format json`
185
+ - `agentera state decisions update --id ID ... --format json`
172
186
  - `agentera state plan create --input plan.yaml --format json`
173
- - `agentera state plan append|update|set-status|set-plan-status ... --format json`
187
+ - `agentera state plan update|set-status --id ID ... --format json`
188
+ - `agentera state plan set-plan-status --id ID ... --format json`
174
189
  - `agentera state plan archive --format json`
175
190
  - `agentera state health append --input audit.yaml --format json`
176
191
 
@@ -184,16 +199,15 @@ json` exposes the machine-readable writer operation matrix under
184
199
 
185
200
  ## Artifact path resolution
186
201
 
187
- The state writer resolves path mappings itself. Before directly reading or
188
- writing an artifact outside the writer contract, check if `.agentera/docs.yaml` exists.
189
- If it has an Artifact Mapping section, use the path specified for each canonical
190
- filename. If `.agentera/docs.yaml` doesn't exist or has no mapping for a given
191
- artifact, use the default layout:
202
+ The state writer resolves entity storage itself. Before directly reading or
203
+ writing an intentional singleton outside the writer contract, check whether
204
+ `.agentera/docs.yaml` maps it to another path. If no mapping exists, use the
205
+ default singleton layout:
192
206
 
193
207
  - Human-facing artifacts at the project root: `TODO.md`, `CHANGELOG.md`, `DESIGN.md`
194
- - Agent-facing artifacts in `.agentera/` as YAML: `progress.yaml`, `decisions.yaml`, `health.yaml`, `plan.yaml`, `docs.yaml`, `vision.yaml`, `objective.yaml`, `experiments.yaml`
208
+ - Agent-facing singletons: `.agentera/docs.yaml` and `.agentera/vision.yaml`
195
209
 
196
- Do not silently bypass the CLI and read raw `.agentera/*.yaml` files first. If
210
+ Do not silently bypass the CLI and read raw entity files first. If
197
211
  CLI state declares complete coverage, do not perform defensive raw artifact
198
212
  reads. Use raw artifact reads only as a last-resort fallback after CLI
199
213
  fallback commands fail or declare incomplete state.
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: health
4
+ artifact: health
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Codebase health assessment with findings, dimension grades, and trajectory.
@@ -9,11 +9,11 @@ ARTIFACTS:
9
9
  severity and confidence scores, trend comparisons, and de facto
10
10
  architecture patterns. During evaluation startup, Audit consumes health
11
11
  state through CLI `evidence_context`, then bounded `agentera state health
12
- list --limit 20 --format json` and exact `state health get --number N`.
12
+ list --limit 20 --format json` and exact `state health get --id ID`.
13
13
  Raw health reads are diagnostic-only for corruption or CLI-defect investigation.
14
14
  2:
15
15
  id: A2
16
- artifact_id: vision
16
+ artifact: vision
17
17
  local_role: consumes
18
18
  description: >-
19
19
  Audit treats vision state as protected during evidence-context startup;
@@ -21,17 +21,17 @@ ARTIFACTS:
21
21
  instead of forcing a raw vision read.
22
22
  3:
23
23
  id: A3
24
- artifact_id: decisions
24
+ artifact: decisions
25
25
  local_role: consumes
26
26
  description: >-
27
27
  Audit consumes decision caveats through CLI `evidence_context`, then
28
28
  bounded `agentera state decisions list --limit 20 --format json` discovery
29
- and exact `state decisions get --number N` retrieval. Raw decision reads
29
+ and exact `state decisions get --id ID` retrieval. Raw decision reads
30
30
  are diagnostic-only for corruption or CLI-defect investigation. Compacted
31
31
  decision caveats must be preserved rather than reconstructed.
32
32
  4:
33
33
  id: A4
34
- artifact_id: todo
34
+ artifact: todo
35
35
  local_role: produces_and_consumes
36
36
  description: >-
37
37
  Audit reads this to avoid re-reporting known issues and writes to it
@@ -41,17 +41,17 @@ ARTIFACTS:
41
41
  for corruption or CLI-defect investigation.
42
42
  5:
43
43
  id: A5
44
- artifact_id: progress
44
+ artifact: progress
45
45
  local_role: consumes
46
46
  description: >-
47
47
  Audit consumes latest progress verification and progress caveats through
48
48
  CLI `evidence_context`, then bounded `agentera state progress list --limit
49
- 20 --format json` discovery and exact `state progress get --number N`
49
+ 20 --format json` discovery and exact `state progress get --id ID`
50
50
  retrieval. Raw progress reads are diagnostic-only for corruption or
51
51
  CLI-defect investigation.
52
52
  6:
53
53
  id: A6
54
- artifact_id: plan
54
+ artifact: plan
55
55
  local_role: consumes
56
56
  description: >-
57
57
  Audit consumes evaluation target and plan criteria through CLI
@@ -59,7 +59,7 @@ ARTIFACTS:
59
59
  still provides the artifact-current-state baseline when that state is needed.
60
60
  7:
61
61
  id: A7
62
- artifact_id: design
62
+ artifact: design
63
63
  local_role: consumes
64
64
  description: >-
65
65
  Audit treats design state as optional during evidence-context startup;
@@ -67,7 +67,7 @@ ARTIFACTS:
67
67
  diagnostic-only raw design read.
68
68
  8:
69
69
  id: A8
70
- artifact_id: docs
70
+ artifact: docs
71
71
  local_role: consumes
72
72
  description: >-
73
73
  Audit reads this first to resolve project-local artifact mappings
@@ -76,7 +76,7 @@ ARTIFACTS:
76
76
  CLI `evidence_context` before any diagnostic-only raw docs read.
77
77
  9:
78
78
  id: A9
79
- artifact_id: profile
79
+ artifact: profile
80
80
  local_role: consumes
81
81
  description: >-
82
82
  Audit consumes profile status and stale-profile caveats through CLI
@@ -24,8 +24,8 @@ VALIDATION:
24
24
  id: V3
25
25
  rule: decisions_respected
26
26
  description: >-
27
- Findings that contradict deliberate decisions documented in
28
- .agentera/decisions.yaml MUST be discarded or downgraded to info
27
+ Findings that contradict deliberate decisions returned by the bounded
28
+ decisions entity view MUST be discarded or downgraded to info
29
29
  (SF3). A deliberate decision is not a finding; it is an
30
30
  implementation of that decision.
31
31
  severity: critical
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: vision
4
+ artifact: vision
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Build consumes this through CLI execution_context caveats or explicit
@@ -9,7 +9,7 @@ ARTIFACTS:
9
9
  during vision bootstrap.
10
10
  2:
11
11
  id: A2
12
- artifact_id: todo
12
+ artifact: todo
13
13
  local_role: produces_and_consumes
14
14
  description: >-
15
15
  Build consumes TODO state from execution_context and included status state
@@ -17,7 +17,7 @@ ARTIFACTS:
17
17
  entries. Severity classified per protocol SI1-SI4.
18
18
  3:
19
19
  id: A3
20
- artifact_id: changelog
20
+ artifact: changelog
21
21
  local_role: produces_and_consumes
22
22
  description: >-
23
23
  Build consumes changelog boundary from execution_context or the listed
@@ -25,27 +25,27 @@ ARTIFACTS:
25
25
  [Unreleased] based on commit type and promotes on version bumps.
26
26
  4:
27
27
  id: A4
28
- artifact_id: progress
28
+ artifact: progress
29
29
  local_role: produces_and_consumes
30
30
  description: >-
31
31
  Operational cycle log. Build consumes latest progress evidence from
32
32
  execution_context first, then bounded `agentera state progress list --limit
33
- 20 --format json` discovery or exact `state progress get --number N`
33
+ 20 --format json` discovery or exact `state progress get --id ID`
34
34
  retrieval, and appends one entry per cycle with mandatory Verified field.
35
35
  Compacted by applying schema COMPACTION rules.
36
36
  5:
37
37
  id: A5
38
- artifact_id: health
38
+ artifact: health
39
39
  local_role: consumes
40
40
  description: >-
41
41
  Build consumes health state from execution_context and included status
42
42
  state before bounded `agentera state health list --limit 20 --format json`
43
- discovery or exact `state health get --number N` retrieval, focusing on
43
+ discovery or exact `state health get --id ID` retrieval, focusing on
44
44
  critical and degraded findings for work selection. Raw reads are
45
45
  diagnostic-only for corruption or CLI-defect investigation.
46
46
  6:
47
47
  id: A6
48
- artifact_id: decisions
48
+ artifact: decisions
49
49
  local_role: consumes
50
50
  description: >-
51
51
  Build consumes decision caveats and bounded list/get fallback commands from
@@ -54,7 +54,7 @@ ARTIFACTS:
54
54
  diagnostic-only for corruption or CLI-defect investigation.
55
55
  7:
56
56
  id: A7
57
- artifact_id: plan
57
+ artifact: plan
58
58
  local_role: produces_and_consumes
59
59
  description: >-
60
60
  Build consumes selected task, acceptance criteria, dependencies,
@@ -62,7 +62,7 @@ ARTIFACTS:
62
62
  direct plan reads, then updates task status and surprises during execution.
63
63
  8:
64
64
  id: A8
65
- artifact_id: profile
65
+ artifact: profile
66
66
  local_role: consumes
67
67
  description: >-
68
68
  Build consumes status profile summary first. Missing or stale profile state
@@ -70,14 +70,14 @@ ARTIFACTS:
70
70
  during normal startup.
71
71
  9:
72
72
  id: A9
73
- artifact_id: docs
73
+ artifact: docs
74
74
  local_role: consumes
75
75
  description: >-
76
76
  Build consumes artifact mappings and docs caveats from execution_context
77
77
  and included status docs state before direct docs reads.
78
78
  10:
79
79
  id: A10
80
- artifact_id: design
80
+ artifact: design
81
81
  local_role: consumes
82
82
  description: >-
83
83
  Build treats design state missing from execution_context as a caveat or
@@ -3,7 +3,7 @@ VALIDATION:
3
3
  id: V1
4
4
  rule: verified_field_mandatory
5
5
  description: >-
6
- Every progress.yaml cycle entry MUST have a verified field. The field
6
+ Every progress entity record MUST have a verified field. The field
7
7
  carries either observed output from the primary entrypoint, an allowlisted
8
8
  N/A tag, or a free-form rationale of at least 8 words.
9
9
  severity: critical
@@ -19,7 +19,7 @@ VALIDATION:
19
19
  an explicit user request.
20
20
  severity: critical
21
21
  checks:
22
- - "Only one cycle entry appended to PROGRESS.md per invocation"
22
+ - "Only one progress entity is appended per invocation"
23
23
  3:
24
24
  id: V3
25
25
  rule: no_remote_push
@@ -43,7 +43,7 @@ VALIDATION:
43
43
  id: V5
44
44
  rule: consecutive_failure_guard
45
45
  description: >-
46
- If the last 3 progress.yaml entries all record failed cycles, build
46
+ If the last 3 bounded progress records all report failed cycles, build
47
47
  MUST stop and surface the pattern to the user. Do not attempt a 4th
48
48
  consecutive cycle on the same failing problem.
49
49
  severity: critical
@@ -53,13 +53,13 @@ VALIDATION:
53
53
  id: V6
54
54
  rule: artifact_path_resolution
55
55
  description: >-
56
- Before reading or writing any artifact, check .agentera/docs.yaml for path
57
- overrides. If absent, use the default layout (TODO.md, CHANGELOG.md,
58
- and DESIGN.md at root; canonical VISION.md at .agentera/vision.yaml;
59
- other agent-facing artifacts as YAML in .agentera/).
56
+ Entity state MUST use exact/list CLI reads and typed writers discovered by
57
+ `agentera state <artifact> explain`. Check .agentera/docs.yaml only for
58
+ intentional singleton path overrides.
60
59
  severity: warning
61
60
  checks:
62
- - "docs.yaml checked before artifact access"
61
+ - "Entity files are not read or edited directly"
62
+ - "docs.yaml checked before singleton artifact access"
63
63
  7:
64
64
  id: V7
65
65
  rule: execution_context_first
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: design
4
+ artifact: design
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Visual identity system with design tokens, typography, colors,
@@ -9,35 +9,35 @@ ARTIFACTS:
9
9
  reads agent-readable YAML token blocks with HTML comment markers.
10
10
  2:
11
11
  id: A2
12
- artifact_id: vision
12
+ artifact: vision
13
13
  local_role: consumes
14
14
  description: >-
15
15
  Design reads the Identity section to propose visual tokens
16
16
  coherent with the declared verbal personality.
17
17
  3:
18
18
  id: A3
19
- artifact_id: progress
19
+ artifact: progress
20
20
  local_role: consumes
21
21
  description: >-
22
22
  Design reads this during refine mode to identify UI work and
23
23
  inline design decisions since the design system was written.
24
24
  4:
25
25
  id: A4
26
- artifact_id: todo
26
+ artifact: todo
27
27
  local_role: produces_and_consumes
28
28
  description: >-
29
29
  Design reads this to check for design-related issues and files
30
30
  code drift findings here during audit mode.
31
31
  5:
32
32
  id: A5
33
- artifact_id: docs
33
+ artifact: docs
34
34
  local_role: consumes
35
35
  description: >-
36
36
  Design reads this first to resolve project-local artifact mappings
37
37
  before accessing other artifacts.
38
38
  6:
39
39
  id: A6
40
- artifact_id: profile
40
+ artifact: profile
41
41
  local_role: consumes
42
42
  description: >-
43
43
  Design reads aesthetic preferences from the profile as defaults
@@ -1,12 +1,12 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: decisions
4
+ artifact: decisions
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Reasoning trail with confidence labels. Discuss reads existing decisions
8
8
  through bounded `agentera state decisions list --limit 20 --format json`
9
- discovery plus exact `agentera state decisions get --number N --format json`
9
+ discovery plus exact `agentera state decisions get --id ID --format json`
10
10
  retrieval and its source_contract to avoid re-deliberation, and writes new decision entries with confidence
11
11
  (DL1 firm, DL2 provisional, DL3 exploratory). Compact older entries by
12
12
  applying schema COMPACTION rules; incomplete compacted entries are
@@ -14,7 +14,7 @@ ARTIFACTS:
14
14
  normal deliberation.
15
15
  2:
16
16
  id: A2
17
- artifact_id: vision
17
+ artifact: vision
18
18
  local_role: produces_and_consumes
19
19
  description: >-
20
20
  Discuss may update project direction only with explicit user
@@ -22,28 +22,28 @@ ARTIFACTS:
22
22
  context during deliberation.
23
23
  3:
24
24
  id: A3
25
- artifact_id: todo
25
+ artifact: todo
26
26
  local_role: produces_and_consumes
27
27
  description: >-
28
28
  Discuss may add tech debt items surfaced during deliberation only with
29
29
  explicit user confirmation. Severity per protocol SI1-SI4.
30
30
  4:
31
31
  id: A4
32
- artifact_id: objective
32
+ artifact: objective
33
33
  local_role: produces_and_consumes
34
34
  description: >-
35
35
  Discuss may write optimization decisions only with explicit user
36
36
  confirmation when a decision feeds into what to optimize.
37
37
  5:
38
38
  id: A5
39
- artifact_id: profile
39
+ artifact: profile
40
40
  local_role: consumes
41
41
  description: >-
42
42
  Discuss reads this at session start to acknowledge high-confidence
43
43
  entries and avoid re-deliberating settled ground.
44
44
  6:
45
45
  id: A6
46
- artifact_id: docs
46
+ artifact: docs
47
47
  local_role: consumes
48
48
  description: >-
49
49
  Discuss reads this first to resolve project-local artifact mappings.