agentera 3.0.0-dev.22 → 3.0.0-dev.25

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 (274) hide show
  1. package/README.md +9 -5
  2. package/bundle/.cursor/agents/agentera.md +1 -1
  3. package/bundle/.opencode/agents/agentera.md +1 -1
  4. package/bundle/CHANGELOG.md +15 -5
  5. package/bundle/README.md +9 -8
  6. package/bundle/UPGRADE.md +10 -24
  7. package/bundle/agents/openai.yaml +1 -1
  8. package/bundle/references/adapters/package-manifest-interface-model.yaml +2 -0
  9. package/bundle/references/adapters/package-registry.yaml +9 -0
  10. package/bundle/references/artifacts/state-storage-authority.yaml +842 -15
  11. package/bundle/references/cli/agent-ready-state-contract.yaml +25 -17
  12. package/bundle/references/cli/prime-consumer-compatibility.yaml +676 -0
  13. package/bundle/references/cli/update-channels.yaml +4 -2
  14. package/bundle/references/cli/vocabulary-index.yaml +3 -3
  15. package/bundle/references/cli/vocabulary.md +14 -7
  16. package/bundle/skills/agentera/SKILL.md +35 -20
  17. package/bundle/skills/agentera/agents/audit.toml +1 -1
  18. package/bundle/skills/agentera/agents/build.toml +1 -1
  19. package/bundle/skills/agentera/agents/design.toml +1 -1
  20. package/bundle/skills/agentera/agents/discuss.toml +1 -1
  21. package/bundle/skills/agentera/agents/document.toml +1 -1
  22. package/bundle/skills/agentera/agents/optimize.toml +1 -1
  23. package/bundle/skills/agentera/agents/orchestrate.toml +1 -1
  24. package/bundle/skills/agentera/agents/plan.toml +1 -1
  25. package/bundle/skills/agentera/agents/profile.toml +1 -1
  26. package/bundle/skills/agentera/agents/research.toml +1 -1
  27. package/bundle/skills/agentera/agents/status.toml +1 -1
  28. package/bundle/skills/agentera/agents/vision.toml +1 -1
  29. package/bundle/skills/agentera/capabilities/audit/schemas/artifacts.yaml +12 -12
  30. package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +2 -2
  31. package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +12 -12
  32. package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +8 -8
  33. package/bundle/skills/agentera/capabilities/design/schemas/artifacts.yaml +6 -6
  34. package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +7 -7
  35. package/bundle/skills/agentera/capabilities/document/schemas/artifacts.yaml +12 -12
  36. package/bundle/skills/agentera/capabilities/optimize/schemas/artifacts.yaml +9 -9
  37. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +11 -11
  38. package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +9 -9
  39. package/bundle/skills/agentera/capabilities/profile/schemas/artifacts.yaml +2 -2
  40. package/bundle/skills/agentera/capabilities/research/schemas/artifacts.yaml +3 -3
  41. package/bundle/skills/agentera/capabilities/status/schemas/artifacts.yaml +11 -11
  42. package/bundle/skills/agentera/capabilities/vision/schemas/artifacts.yaml +8 -8
  43. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +15 -2
  44. package/bundle/skills/agentera/schemas/artifacts/docs.yaml +4 -1
  45. package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +21 -21
  46. package/bundle/skills/agentera/schemas/artifacts/health.yaml +15 -2
  47. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +36 -15
  48. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +15 -2
  49. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +4 -4
  50. package/dist/capabilities/audit/instructions.js +13 -1
  51. package/dist/capabilities/audit/instructions.js.map +1 -1
  52. package/dist/capabilities/build/instructions.js +14 -1
  53. package/dist/capabilities/build/instructions.js.map +1 -1
  54. package/dist/capabilities/discuss/instructions.js +11 -1
  55. package/dist/capabilities/discuss/instructions.js.map +1 -1
  56. package/dist/capabilities/document/instructions.js +9 -1
  57. package/dist/capabilities/document/instructions.js.map +1 -1
  58. package/dist/capabilities/index.js +9 -8
  59. package/dist/capabilities/index.js.map +1 -1
  60. package/dist/capabilities/optimize/instructions.js +10 -1
  61. package/dist/capabilities/optimize/instructions.js.map +1 -1
  62. package/dist/capabilities/orchestrate/instructions.js +13 -2
  63. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  64. package/dist/capabilities/plan/instructions.js +10 -1
  65. package/dist/capabilities/plan/instructions.js.map +1 -1
  66. package/dist/capabilities/status/startupInstructions.js +35 -0
  67. package/dist/capabilities/status/startupInstructions.js.map +1 -0
  68. package/dist/cli/capabilityContext/build.js +3 -3
  69. package/dist/cli/capabilityContext/build.js.map +1 -1
  70. package/dist/cli/capabilityContext/closeout.js +5 -5
  71. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  72. package/dist/cli/capabilityContext/contract.js +14 -19
  73. package/dist/cli/capabilityContext/contract.js.map +1 -1
  74. package/dist/cli/capabilityContext/evidence.js +7 -7
  75. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  76. package/dist/cli/capabilityContext/planState.js +12 -11
  77. package/dist/cli/capabilityContext/planState.js.map +1 -1
  78. package/dist/cli/capabilityContext/progress.js +1 -1
  79. package/dist/cli/capabilityContext/progress.js.map +1 -1
  80. package/dist/cli/capabilityContext/shared.js +8 -2
  81. package/dist/cli/capabilityContext/shared.js.map +1 -1
  82. package/dist/cli/capabilityContext/slim.js +2 -1
  83. package/dist/cli/capabilityContext/slim.js.map +1 -1
  84. package/dist/cli/capabilityContext/startup.js +22 -11
  85. package/dist/cli/capabilityContext/startup.js.map +1 -1
  86. package/dist/cli/capabilityContext/types.js +4 -4
  87. package/dist/cli/capabilityContext/types.js.map +1 -1
  88. package/dist/cli/commands/backfill.js +39 -2
  89. package/dist/cli/commands/backfill.js.map +1 -1
  90. package/dist/cli/commands/durability.js +34 -1
  91. package/dist/cli/commands/durability.js.map +1 -1
  92. package/dist/cli/commands/entityMigrate.js +128 -0
  93. package/dist/cli/commands/entityMigrate.js.map +1 -0
  94. package/dist/cli/commands/migrate.js +4 -0
  95. package/dist/cli/commands/migrate.js.map +1 -1
  96. package/dist/cli/commands/prime/briefOrientation.js +584 -0
  97. package/dist/cli/commands/prime/briefOrientation.js.map +1 -0
  98. package/dist/cli/commands/prime/collectEntityOrientation.js +148 -0
  99. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -0
  100. package/dist/cli/commands/prime/collectOrientationState.js +21 -27
  101. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  102. package/dist/cli/commands/prime/orientationOutput.js +118 -24
  103. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  104. package/dist/cli/commands/prime.js +32 -3
  105. package/dist/cli/commands/prime.js.map +1 -1
  106. package/dist/cli/commands/query.js +41 -15
  107. package/dist/cli/commands/query.js.map +1 -1
  108. package/dist/cli/commands/schema.js +10 -34
  109. package/dist/cli/commands/schema.js.map +1 -1
  110. package/dist/cli/commands/state/decisions.js +13 -0
  111. package/dist/cli/commands/state/decisions.js.map +1 -1
  112. package/dist/cli/commands/state/docs.js +38 -0
  113. package/dist/cli/commands/state/docs.js.map +1 -1
  114. package/dist/cli/commands/state/experimentRecords.js +82 -0
  115. package/dist/cli/commands/state/experimentRecords.js.map +1 -1
  116. package/dist/cli/commands/state/experiments.js +13 -0
  117. package/dist/cli/commands/state/experiments.js.map +1 -1
  118. package/dist/cli/commands/state/get.js +69 -2
  119. package/dist/cli/commands/state/get.js.map +1 -1
  120. package/dist/cli/commands/state/health.js +13 -0
  121. package/dist/cli/commands/state/health.js.map +1 -1
  122. package/dist/cli/commands/state/index.js +9 -0
  123. package/dist/cli/commands/state/index.js.map +1 -1
  124. package/dist/cli/commands/state/list.js +40 -7
  125. package/dist/cli/commands/state/list.js.map +1 -1
  126. package/dist/cli/commands/state/objective.js +24 -0
  127. package/dist/cli/commands/state/objective.js.map +1 -1
  128. package/dist/cli/commands/state/plan.js +17 -2
  129. package/dist/cli/commands/state/plan.js.map +1 -1
  130. package/dist/cli/commands/state/planTasks.js +38 -25
  131. package/dist/cli/commands/state/planTasks.js.map +1 -1
  132. package/dist/cli/commands/state/plans.js +32 -16
  133. package/dist/cli/commands/state/plans.js.map +1 -1
  134. package/dist/cli/commands/state/progress.js +12 -0
  135. package/dist/cli/commands/state/progress.js.map +1 -1
  136. package/dist/cli/commands/state/shared.js.map +1 -1
  137. package/dist/cli/commands/state/todo.js +30 -0
  138. package/dist/cli/commands/state/todo.js.map +1 -1
  139. package/dist/cli/commands/state/write.js +79 -4
  140. package/dist/cli/commands/state/write.js.map +1 -1
  141. package/dist/cli/commands/upgrade.js +65 -31
  142. package/dist/cli/commands/upgrade.js.map +1 -1
  143. package/dist/cli/commands/upgradeVerify.js +46 -14
  144. package/dist/cli/commands/upgradeVerify.js.map +1 -1
  145. package/dist/cli/commands/validate.js +65 -0
  146. package/dist/cli/commands/validate.js.map +1 -1
  147. package/dist/cli/dispatch/check.js +8 -1
  148. package/dist/cli/dispatch/check.js.map +1 -1
  149. package/dist/cli/dispatch/index.js +6 -0
  150. package/dist/cli/dispatch/index.js.map +1 -1
  151. package/dist/cli/dispatch/lifecycle.js +2 -5
  152. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  153. package/dist/cli/dispatch/prime.js +15 -0
  154. package/dist/cli/dispatch/prime.js.map +1 -1
  155. package/dist/cli/dispatch/state.js +7 -1
  156. package/dist/cli/dispatch/state.js.map +1 -1
  157. package/dist/cli/help.js +79 -21
  158. package/dist/cli/help.js.map +1 -1
  159. package/dist/cli/migrationRequired.js +84 -0
  160. package/dist/cli/migrationRequired.js.map +1 -0
  161. package/dist/cli/orientation/attention.js +2 -2
  162. package/dist/cli/orientation/attention.js.map +1 -1
  163. package/dist/cli/orientation.js +13 -10
  164. package/dist/cli/orientation.js.map +1 -1
  165. package/dist/cli/planArtifacts.js +192 -42
  166. package/dist/cli/planArtifacts.js.map +1 -1
  167. package/dist/cli/prime-blob.js +5 -5
  168. package/dist/cli/prime-blob.js.map +1 -1
  169. package/dist/cli/startupCompletenessContract.js +3 -3
  170. package/dist/cli/startupCompletenessContract.js.map +1 -1
  171. package/dist/cli/stateQuery.js +42 -5
  172. package/dist/cli/stateQuery.js.map +1 -1
  173. package/dist/hooks/compaction/status.js +25 -1
  174. package/dist/hooks/compaction/status.js.map +1 -1
  175. package/dist/hooks/cursorSessionStart.js +6 -0
  176. package/dist/hooks/cursorSessionStart.js.map +1 -1
  177. package/dist/hooks/sessionStart.js +62 -0
  178. package/dist/hooks/sessionStart.js.map +1 -1
  179. package/dist/registries/artifactRegistry.js +23 -14
  180. package/dist/registries/artifactRegistry.js.map +1 -1
  181. package/dist/registries/packageRegistry.js +1 -1
  182. package/dist/registries/packageRegistry.js.map +1 -1
  183. package/dist/state/archivePublication.js +3 -2
  184. package/dist/state/archivePublication.js.map +1 -1
  185. package/dist/state/decisionEntities.js +279 -0
  186. package/dist/state/decisionEntities.js.map +1 -0
  187. package/dist/state/decisionLegacyValidation.js +185 -0
  188. package/dist/state/decisionLegacyValidation.js.map +1 -0
  189. package/dist/state/decisionOverlay.js +26 -3
  190. package/dist/state/decisionOverlay.js.map +1 -1
  191. package/dist/state/decisionRevision.js +632 -0
  192. package/dist/state/decisionRevision.js.map +1 -0
  193. package/dist/state/decisionRevisionPublication.js +532 -0
  194. package/dist/state/decisionRevisionPublication.js.map +1 -0
  195. package/dist/state/directRetrieval.js +55 -4
  196. package/dist/state/directRetrieval.js.map +1 -1
  197. package/dist/state/durability.js +92 -1
  198. package/dist/state/durability.js.map +1 -1
  199. package/dist/state/entityCutover.js +390 -0
  200. package/dist/state/entityCutover.js.map +1 -0
  201. package/dist/state/entityCutoverGit.js +128 -0
  202. package/dist/state/entityCutoverGit.js.map +1 -0
  203. package/dist/state/entityMigrationPreview.js +803 -0
  204. package/dist/state/entityMigrationPreview.js.map +1 -0
  205. package/dist/state/entityPublicationContext.js +612 -0
  206. package/dist/state/entityPublicationContext.js.map +1 -0
  207. package/dist/state/entityStorage.js +807 -0
  208. package/dist/state/entityStorage.js.map +1 -0
  209. package/dist/state/experimentIdentity.js +23 -11
  210. package/dist/state/experimentIdentity.js.map +1 -1
  211. package/dist/state/gitBackfill.js.map +1 -1
  212. package/dist/state/healthEntities.js +227 -0
  213. package/dist/state/healthEntities.js.map +1 -0
  214. package/dist/state/healthEntityValidation.js +6 -0
  215. package/dist/state/healthEntityValidation.js.map +1 -0
  216. package/dist/state/legacyEntityCutoverEvidence.js +66 -0
  217. package/dist/state/legacyEntityCutoverEvidence.js.map +1 -0
  218. package/dist/state/listRetrieval.js +42 -11
  219. package/dist/state/listRetrieval.js.map +1 -1
  220. package/dist/state/objectiveExperimentEntities.js +321 -0
  221. package/dist/state/objectiveExperimentEntities.js.map +1 -0
  222. package/dist/state/planEntities.js +358 -0
  223. package/dist/state/planEntities.js.map +1 -0
  224. package/dist/state/progressEntities.js +382 -0
  225. package/dist/state/progressEntities.js.map +1 -0
  226. package/dist/state/projectRoot.js +63 -0
  227. package/dist/state/projectRoot.js.map +1 -0
  228. package/dist/state/projectionRecovery.js +458 -0
  229. package/dist/state/projectionRecovery.js.map +1 -0
  230. package/dist/state/retrievalAuthority.js +13 -6
  231. package/dist/state/retrievalAuthority.js.map +1 -1
  232. package/dist/state/safeProjectFile.js +153 -0
  233. package/dist/state/safeProjectFile.js.map +1 -0
  234. package/dist/state/startupProjection.js +68 -1
  235. package/dist/state/startupProjection.js.map +1 -1
  236. package/dist/state/stateMode.js +76 -0
  237. package/dist/state/stateMode.js.map +1 -0
  238. package/dist/state/todoDocsEntities.js +223 -0
  239. package/dist/state/todoDocsEntities.js.map +1 -0
  240. package/dist/state/todoDocsEntityValidation.js +26 -0
  241. package/dist/state/todoDocsEntityValidation.js.map +1 -0
  242. package/dist/state/write/candidateMutation.js +281 -0
  243. package/dist/state/write/candidateMutation.js.map +1 -0
  244. package/dist/state/write/explain.js +156 -33
  245. package/dist/state/write/explain.js.map +1 -1
  246. package/dist/state/write/helpers.js +22 -0
  247. package/dist/state/write/helpers.js.map +1 -1
  248. package/dist/state/write/lock.js +794 -87
  249. package/dist/state/write/lock.js.map +1 -1
  250. package/dist/state/write/mutation.js +47 -2
  251. package/dist/state/write/mutation.js.map +1 -1
  252. package/dist/state/write/operations.js +99 -6
  253. package/dist/state/write/operations.js.map +1 -1
  254. package/dist/state/write/planEvaluation.js +107 -0
  255. package/dist/state/write/planEvaluation.js.map +1 -0
  256. package/dist/state/write/planPublication.js +11 -55
  257. package/dist/state/write/planPublication.js.map +1 -1
  258. package/dist/state/write/transaction.js +111 -358
  259. package/dist/state/write/transaction.js.map +1 -1
  260. package/dist/upgrade/compatibility.js +4 -4
  261. package/dist/upgrade/compatibility.js.map +1 -1
  262. package/dist/upgrade/migrateArtifactsV2ToV3.js +13 -14
  263. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  264. package/dist/upgrade/upgradeOrchestrator.js +126 -23
  265. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  266. package/dist/validate/crossCapability.js +2 -2
  267. package/dist/validate/crossCapability.js.map +1 -1
  268. package/dist/validate/lifecycleAdapters/lifecycleMain.js +154 -0
  269. package/dist/validate/lifecycleAdapters/lifecycleMain.js.map +1 -0
  270. package/dist/validate/lifecycleAdapters.js +5 -156
  271. package/dist/validate/lifecycleAdapters.js.map +1 -1
  272. package/package.json +3 -3
  273. package/dist/upgrade/upgradeSnapshot.js +0 -93
  274. package/dist/upgrade/upgradeSnapshot.js.map +0 -1
@@ -45,7 +45,8 @@ channels:
45
45
  supported 2.x line until you explicitly opt in through npm.
46
46
  guide_url: >-
47
47
  https://github.com/jgabor/agentera/blob/main/UPGRADE.md#upgrading-v2-to-v3-development-channel-irreversible
48
- preview_command: npx -y agentera@next upgrade --dry-run --channel development
48
+ preview_command: npx -y agentera@next upgrade --channel development --project "$PWD" --dry-run
49
+ apply_command: npx -y agentera@next upgrade --channel development --project "$PWD" --yes
49
50
  irreversible_advisory: >-
50
51
  Forward migration to the successor line is one-way; return to the prior
51
52
  Python support line is permanently unsupported.
@@ -75,7 +76,8 @@ channels:
75
76
  The v3 successor line is npm-only; opt in to v2→v3 migration through npx @next.
76
77
  guide_url: >-
77
78
  https://github.com/jgabor/agentera/blob/main/UPGRADE.md#upgrading-v2-to-v3-development-channel-irreversible
78
- preview_command: npx -y agentera@next upgrade --dry-run --channel development
79
+ preview_command: npx -y agentera@next upgrade --channel development --project "$PWD" --dry-run
80
+ apply_command: npx -y agentera@next upgrade --channel development --project "$PWD" --yes
79
81
  irreversible_advisory: >-
80
82
  Forward migration to the v3 line is one-way; return to the prior
81
83
  Python support line is permanently unsupported.
@@ -41,9 +41,9 @@ normalization_rules:
41
41
  - rule: The CLI source and rendered dashboard are different.
42
42
  use: agentera prime source data, status dashboard rendered briefing
43
43
  avoid: Treating raw CLI labels as the user-facing dashboard.
44
- - rule: Routine state uses flat commands.
45
- use: agentera plan, agentera docs, agentera health
46
- avoid: agentera query plan for routine state.
44
+ - rule: Routine state uses the state namespace.
45
+ use: agentera state plan, agentera state docs, agentera state health
46
+ avoid: agentera plan, agentera docs, or agentera health as routine state commands.
47
47
  - rule: query is advanced access.
48
48
  use: agentera query --list-artifacts, agentera query <artifact>
49
49
  avoid: Calling it the normal state interface.
@@ -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. |
@@ -99,11 +99,11 @@ enforcement boundary promoted to `true` in D65.
99
99
 
100
100
  Use this prose as guidance only: the default is that the first capability
101
101
  invocation shells out to `agentera prime --context <name> --format json` and
102
- reads the returned `prose` field. Today, capability directories carry the
103
- `schemas/` files only, the prose module lives at
102
+ reads the returned `instructions` field. Today, capability directories carry
103
+ the `schemas/` files only, the instructions module lives at
104
104
  `packages/cli/src/capabilities/<name>/instructions.ts`, runtime descriptors
105
105
  invoke the prime command, and the `agentera prime --context <name> --format
106
- json` response emits `capability_context.prose` plus
106
+ json` response emits `capability_context.instructions` plus
107
107
  `first_invocation_read` metadata.
108
108
 
109
109
  Do not replace this with a parallel Markdown table of read modes or migration
@@ -112,6 +112,13 @@ human-facing boundary. The `prime_context` runtime enforcement is owned by the
112
112
  CLI process; agent runtimes shell out to the prime command instead of reading
113
113
  the prose module directly.
114
114
 
115
+ Status startup is the one-call exception to the general compact-data wording
116
+ above: `agentera prime --context status --format json` returns
117
+ `capability_context.instructions` and bounded
118
+ `capability_context.context.status_context` together. Consumers do not make a
119
+ second bare-prime call or read raw artifacts; omitted detail names its
120
+ authoritative recovery command.
121
+
115
122
  ## Invocation and routing grammar
116
123
 
117
124
  | Term | Definition |
@@ -208,11 +215,11 @@ ambiguous-term sweep remain separate follow-up work.
208
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`. |
209
216
  | Agent-facing artifact | A structured YAML artifact under `.agentera/`, such as `.agentera/progress.yaml`. |
210
217
  | Global artifact | A user-level artifact outside a project, such as `PROFILE.md` or `USAGE.md`. |
211
- | 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. |
212
219
  | Resolved artifact path | The actual path after consulting `.agentera/docs.yaml` mapping or the default layout. |
213
- | 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. |
214
221
  | ArtifactRegistry | The registry interface model for artifact IDs, display names, default paths, producers, consumers, type, scope, and special cases. |
215
- | `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`. |
216
223
  | `display_name` | Human-readable filename label such as `VISION.md` or `TODO.md`; registry-owned, not protocol identity. |
217
224
  | `default_path` | Registry-owned path used when no docs mapping overrides it. |
218
225
  | `local_role` | Capability relationship to an artifact: `produces`, `consumes`, or `produces_and_consumes`. |
@@ -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
@@ -65,10 +79,10 @@ The CLI routes. The host agent follows.
65
79
 
66
80
  | Request shape | Route |
67
81
  |---|---|
68
- | Bare `/agentera` | 1. Run `agentera prime --format json` for state data. 2. Run the `fetch_command` from `source_contract.capability_context` to get rendering instructions. 3. Follow `capability_context.instructions` for dashboard template, field rules, and exit marker. 4. Render the dashboard from the state data per the instructions. 5. Follow `next_action` to suggest the next capability. |
82
+ | Bare `/agentera` | 1. Run `agentera prime --context status --format json` once. 2. Read `capability_context.instructions` and `capability_context.context.status_context`. 3. Render the dashboard from that bounded state and follow `next_action` to suggest the next capability. |
69
83
  | `/agentera <capability-name>` | Run `agentera prime --context <capability> --format json`. Follow the capability's instructions and contract. |
70
84
  | `/agentera <capability-name> <topic>` | Same as above; pass `<topic>` as the user's instruction to the capability. |
71
- | Natural language | Run `agentera prime --format json`. Run the `fetch_command` from `source_contract.capability_context` for rendering instructions. Use `next_action.capability` to suggest the matching capability. If no high-confidence match, present a disambiguation prompt. |
85
+ | Natural language | Run `agentera prime --context status --format json` once. Read `capability_context.instructions` and `capability_context.context.status_context`; use `next_action.capability` to suggest the matching capability. If no high-confidence match, present a disambiguation prompt. |
72
86
 
73
87
  Capability names are the routing identity: `status`, `vision`, `discuss`,
74
88
  `research`, `plan`, `build`, `optimize`, `audit`, `document`, `profile`,
@@ -98,10 +112,11 @@ Capability handoffs use glyph plus canonical name (e.g. `⧉ build`, `≡ plan`)
98
112
 
99
113
  The prime dashboard rendering contract — template, field-by-field rules, output
100
114
  budget, attention-item ordering, exit marker — is owned by the status capability
101
- instructions. Bare `agentera prime --format json` returns a pointer at
102
- `source_contract.capability_context` with a `fetch_command` to retrieve them;
103
- run it, then follow `capability_context.instructions` for layout,
104
- inclusion/exclusion rules, and the mandatory `⌂ status · <status>` exit marker.
115
+ instructions. `agentera prime --context status --format json` returns the full
116
+ `capability_context.instructions` body and the bounded
117
+ `capability_context.context.status_context` state in one response. Render from
118
+ that capsule without a separate bare-prime call or raw artifact read; use the
119
+ named recovery command when the capsule marks detail as omitted.
105
120
  Ask for confirmation before invoking a state-changing downstream capability.
106
121
 
107
122
  The first response in a fresh interaction delivers the brief and a free-form
@@ -144,11 +159,11 @@ Proceed/Cancel handoff.
144
159
 
145
160
  ## Artifact writes
146
161
 
147
- The CLI state writer is the canonical mutation path for `progress`, `decisions`,
148
- `plan`, and `health`. Do not hand-edit those artifacts during normal capability
149
- execution. The writer assigns numbers, validates schema fields, honors docs-mapped
150
- paths, serializes concurrent writes, compacts where required, and supports
151
- 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.
152
167
 
153
168
  Discover the live contract before constructing a write:
154
169
 
@@ -167,9 +182,10 @@ Common mutations:
167
182
 
168
183
  - `agentera state progress append ... --format json`
169
184
  - `agentera state decisions append ... --format json`
170
- - `agentera state decisions update --number N ... --format json`
185
+ - `agentera state decisions update --id ID ... --format json`
171
186
  - `agentera state plan create --input plan.yaml --format json`
172
- - `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`
173
189
  - `agentera state plan archive --format json`
174
190
  - `agentera state health append --input audit.yaml --format json`
175
191
 
@@ -183,16 +199,15 @@ json` exposes the machine-readable writer operation matrix under
183
199
 
184
200
  ## Artifact path resolution
185
201
 
186
- The state writer resolves path mappings itself. Before directly reading or
187
- writing an artifact outside the writer contract, check if `.agentera/docs.yaml` exists.
188
- If it has an Artifact Mapping section, use the path specified for each canonical
189
- filename. If `.agentera/docs.yaml` doesn't exist or has no mapping for a given
190
- 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:
191
206
 
192
207
  - Human-facing artifacts at the project root: `TODO.md`, `CHANGELOG.md`, `DESIGN.md`
193
- - 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`
194
209
 
195
- 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
196
211
  CLI state declares complete coverage, do not perform defensive raw artifact
197
212
  reads. Use raw artifact reads only as a last-resort fallback after CLI
198
213
  fallback commands fail or declare incomplete state.
@@ -2,5 +2,5 @@
2
2
  name = "audit"
3
3
  description = "Codebase health audit."
4
4
  developer_instructions = """
5
- You are the Agentera audit capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context audit --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera audit capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context audit --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "build"
3
3
  description = "Autonomous development execution."
4
4
  developer_instructions = """
5
- You are the Agentera build capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context build --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera build capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context build --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "design"
3
3
  description = "Visual identity and design systems."
4
4
  developer_instructions = """
5
- You are the Agentera design capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context design --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera design capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context design --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "discuss"
3
3
  description = "Structured deliberation and decision support."
4
4
  developer_instructions = """
5
- You are the Agentera discuss capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context discuss --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera discuss capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context discuss --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "document"
3
3
  description = "Documentation updates and synchronization."
4
4
  developer_instructions = """
5
- You are the Agentera document capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context document --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera document capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context document --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "optimize"
3
3
  description = "Metric-driven optimization cycles."
4
4
  developer_instructions = """
5
- You are the Agentera optimize capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context optimize --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera optimize capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context optimize --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "orchestrate"
3
3
  description = "Multi-cycle orchestration over active plans."
4
4
  developer_instructions = """
5
- You are the Agentera orchestrate capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context orchestrate --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera orchestrate capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context orchestrate --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "plan"
3
3
  description = "Planning with acceptance criteria."
4
4
  developer_instructions = """
5
- You are the Agentera plan capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context plan --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera plan capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context plan --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "profile"
3
3
  description = "Decision profiling and preference memory."
4
4
  developer_instructions = """
5
- You are the Agentera profile capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context profile --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera profile capability subagent. You have full file write, file edit, and shell execution tools available — use them to implement code changes, run tests, and commit results. Run `agentera prime --context profile --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "research"
3
3
  description = "External pattern research and synthesis."
4
4
  developer_instructions = """
5
- You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera research capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context research --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "status"
3
3
  description = "Agentera orientation and routing dashboard."
4
4
  developer_instructions = """
5
- You are the Agentera status capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context status --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera status capability subagent. You are a read-only agent — do not write files or execute shell commands. Run `agentera prime --context status --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -2,5 +2,5 @@
2
2
  name = "vision"
3
3
  description = "Define and refine project direction."
4
4
  developer_instructions = """
5
- You are the Agentera vision capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context vision --format json` to fetch the authoritative instructions as a JSON capsule (the `prose` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
5
+ You are the Agentera vision capability subagent. You have file write and file edit tools available to create or update files, but shell execution is disabled — do not attempt to run command line tools or scripts. Run `agentera prime --context vision --format json` to fetch the authoritative instructions as a JSON capsule (the `capability_context.instructions` field carries the full Markdown body). Stay within the dispatched capability task, use the Agentera CLI state seam first, and preserve Agentera artifact safety rails.
6
6
  """
@@ -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