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
@@ -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.
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: docs
4
+ artifact: docs
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Documentation contract with conventions, artifact mapping, and
@@ -12,44 +12,44 @@ ARTIFACTS:
12
12
  raw reads are diagnostic-only for corruption or CLI-defect investigation.
13
13
  2:
14
14
  id: A2
15
- artifact_id: vision
15
+ artifact: vision
16
16
  local_role: consumes
17
17
  description: >-
18
18
  Document reads this to understand who the documentation is for
19
19
  and what tone to use.
20
20
  3:
21
21
  id: A3
22
- artifact_id: progress
22
+ artifact: progress
23
23
  local_role: consumes
24
24
  description: >-
25
25
  Document reads this during explore-and-generate mode to understand
26
26
  recent project context. During closeout, latest progress evidence and
27
27
  verification pointers are consumed through CLI `closeout_context`, then
28
28
  bounded `agentera state progress list --limit 20 --format json` discovery
29
- or exact `state progress get --number N` retrieval. Raw reads are
29
+ or exact `state progress get --id ID` retrieval. Raw reads are
30
30
  diagnostic-only for corruption or CLI-defect investigation.
31
31
  4:
32
32
  id: A4
33
- artifact_id: decisions
33
+ artifact: decisions
34
34
  local_role: consumes
35
35
  description: >-
36
36
  Document reads this during explore-and-generate mode for project
37
37
  context and decision awareness through bounded `agentera state decisions
38
38
  list --limit 20 --format json` discovery or exact `state decisions get
39
- --number N` retrieval. Raw reads are diagnostic-only for corruption or
39
+ --id ID` retrieval. Raw reads are diagnostic-only for corruption or
40
40
  CLI-defect investigation.
41
41
  5:
42
42
  id: A5
43
- artifact_id: health
43
+ artifact: health
44
44
  local_role: consumes
45
45
  description: >-
46
46
  Document reads this to discover documentation gaps surfaced during health
47
47
  audits through bounded `agentera state health list --limit 20 --format
48
- json` discovery or exact `state health get --number N` retrieval. Raw reads
48
+ json` discovery or exact `state health get --id ID` retrieval. Raw reads
49
49
  are diagnostic-only for corruption or CLI-defect investigation.
50
50
  6:
51
51
  id: A6
52
- artifact_id: todo
52
+ artifact: todo
53
53
  local_role: produces_and_consumes
54
54
  description: >-
55
55
  Document writes to this when code diverges from docs (per DTC,
@@ -58,21 +58,21 @@ ARTIFACTS:
58
58
  any diagnostic-only raw TODO read.
59
59
  7:
60
60
  id: A7
61
- artifact_id: design
61
+ artifact: design
62
62
  local_role: consumes
63
63
  description: >-
64
64
  Document reads this to respect the declared aesthetic and voice
65
65
  when generating user-facing documentation.
66
66
  8:
67
67
  id: A8
68
- artifact_id: profile
68
+ artifact: profile
69
69
  local_role: consumes
70
70
  description: >-
71
71
  Document reads this to calibrate documentation style preferences:
72
72
  detail level, tone, format.
73
73
  9:
74
74
  id: A9
75
- artifact_id: changelog
75
+ artifact: changelog
76
76
  local_role: consumes
77
77
  description: >-
78
78
  Document reads this during closeout synchronization through CLI
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: objective
4
+ artifact: objective
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Optimization target definition: metric, current value, target, constraints,
@@ -10,7 +10,7 @@ ARTIFACTS:
10
10
  canonical closure.
11
11
  2:
12
12
  id: A2
13
- artifact_id: optimize_harness
13
+ artifact: optimize_harness
14
14
  local_role: produces
15
15
  description: >-
16
16
  Eval script that measures the metric and outputs structured JSON. Written
@@ -18,7 +18,7 @@ ARTIFACTS:
18
18
  Never modified during optimization cycles.
19
19
  3:
20
20
  id: A3
21
- artifact_id: experiments
21
+ artifact: experiments
22
22
  local_role: produces_and_consumes
23
23
  description: >-
24
24
  Log of every experiment: hypothesis, method, change, metric before/after,
@@ -26,42 +26,42 @@ ARTIFACTS:
26
26
  suggestion. Optimize appends to this each cycle.
27
27
  4:
28
28
  id: A4
29
- artifact_id: progress
29
+ artifact: progress
30
30
  local_role: consumes
31
31
  description: >-
32
32
  Optimize inspects the last 3 entries to detect 3 consecutive failures
33
33
  before reporting exit status.
34
34
  5:
35
35
  id: A5
36
- artifact_id: todo
36
+ artifact: todo
37
37
  local_role: produces
38
38
  description: >-
39
39
  Optimize writes to this when logging a failure pattern after 3
40
40
  consecutive failures.
41
41
  6:
42
42
  id: A6
43
- artifact_id: decisions
43
+ artifact: decisions
44
44
  local_role: consumes
45
45
  description: >-
46
46
  Optimize reads this during Orient for context on prior deliberations
47
47
  about the optimization objective.
48
48
  7:
49
49
  id: A7
50
- artifact_id: profile
50
+ artifact: profile
51
51
  local_role: consumes
52
52
  description: >-
53
53
  Optimize reads this to modulate experiment aggressiveness and constraint
54
54
  tolerance based on user preferences.
55
55
  8:
56
56
  id: A8
57
- artifact_id: docs
57
+ artifact: docs
58
58
  local_role: consumes
59
59
  description: >-
60
60
  Optimize reads this first to resolve project-local artifact mappings
61
61
  before accessing other artifacts.
62
62
  9:
63
63
  id: A9
64
- artifact_id: benchmark_context
64
+ artifact: benchmark_context
65
65
  local_role: consumes
66
66
  description: >-
67
67
  CLI-provided startup benchmark summary from `agentera prime --context
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: plan
4
+ artifact: plan
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Orchestrate consumes plan task queue state through
@@ -11,51 +11,51 @@ ARTIFACTS:
11
11
  retry-safe typed `record-evaluation` mutation before retry or blocking.
12
12
  2:
13
13
  id: A2
14
- artifact_id: progress
14
+ artifact: progress
15
15
  local_role: consumes
16
16
  description: >-
17
17
  Orchestrate consumes progress verification state from the returned
18
18
  orchestration context first, then bounded `agentera state progress list
19
19
  --limit 20 --format json` fallback output. Exact detail uses `state
20
- progress get --number N`; raw reads are diagnostic-only for corruption or
20
+ progress get --id ID`; raw reads are diagnostic-only for corruption or
21
21
  CLI-defect investigation.
22
22
  3:
23
23
  id: A3
24
- artifact_id: health
24
+ artifact: health
25
25
  local_role: consumes
26
26
  description: >-
27
27
  Orchestrate consumes returned health state first after plan completion to
28
28
  decide whether to start a new plan cycle; bounded `agentera state health
29
- list --limit 20 --format json` and exact `state health get --number N`
29
+ list --limit 20 --format json` and exact `state health get --id ID`
30
30
  are the fallback contracts. Raw reads are diagnostic-only for corruption
31
31
  or CLI-defect investigation.
32
32
  4:
33
33
  id: A4
34
- artifact_id: todo
34
+ artifact: todo
35
35
  local_role: produces
36
36
  description: >-
37
37
  Orchestrate consumes TODO caveats from CLI startup context and writes
38
38
  blocked task logging only when a task exhausts its retry budget.
39
39
  5:
40
40
  id: A5
41
- artifact_id: decisions
41
+ artifact: decisions
42
42
  local_role: consumes
43
43
  description: >-
44
44
  Orchestrate consumes included decision context or bounded
45
45
  `agentera state decisions list --limit 20 --format json` discovery and
46
- exact `state decisions get --number N` retrieval, preserving firm
46
+ exact `state decisions get --id ID` retrieval, preserving firm
47
47
  constraints, exploratory uncertainties, and compacted-entry caveats.
48
48
  Raw reads are diagnostic-only for corruption or CLI-defect investigation.
49
49
  6:
50
50
  id: A6
51
- artifact_id: vision
51
+ artifact: vision
52
52
  local_role: consumes
53
53
  description: >-
54
54
  Orchestrate consumes returned vision state or missing-state caveats during
55
55
  bootstrap when chaining research for vision-gap analysis.
56
56
  7:
57
57
  id: A7
58
- artifact_id: profile
58
+ artifact: profile
59
59
  local_role: consumes
60
60
  description: >-
61
61
  Orchestrate consumes returned profile status and caveats first for persona
@@ -63,7 +63,7 @@ ARTIFACTS:
63
63
  state and preserves the caveat.
64
64
  8:
65
65
  id: A8
66
- artifact_id: docs
66
+ artifact: docs
67
67
  local_role: consumes
68
68
  description: >-
69
69
  Orchestrate uses docs mapping from CLI startup context first to resolve
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: plan
4
+ artifact: plan
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Current plan with tasks, dependencies, and behavioral acceptance criteria.
@@ -10,7 +10,7 @@ ARTIFACTS:
10
10
  session and may read existing plan context before replacing or refining it.
11
11
  2:
12
12
  id: A2
13
- artifact_id: plan_archive
13
+ artifact: plan_archive
14
14
  local_role: produces
15
15
  description: >-
16
16
  Immutable, non-executable history created when a plan is complete or
@@ -18,45 +18,45 @@ ARTIFACTS:
18
18
  plan's open status rather than claiming completion.
19
19
  3:
20
20
  id: A3
21
- artifact_id: vision
21
+ artifact: vision
22
22
  local_role: consumes
23
23
  description: >-
24
24
  Plan reads this during Orient to understand project direction and
25
25
  align the plan with the vision.
26
26
  4:
27
27
  id: A4
28
- artifact_id: decisions
28
+ artifact: decisions
29
29
  local_role: consumes
30
30
  description: >-
31
31
  Plan reads firm (DL1) entries only as hard constraints for planning.
32
32
  5:
33
33
  id: A5
34
- artifact_id: todo
34
+ artifact: todo
35
35
  local_role: consumes
36
36
  description: >-
37
37
  Plan reads this to identify related known
38
38
  issues that the plan should address.
39
39
  6:
40
40
  id: A6
41
- artifact_id: health
41
+ artifact: health
42
42
  local_role: consumes
43
43
  description: >-
44
44
  Plan reads this to factor structural issues into the plan.
45
45
  7:
46
46
  id: A7
47
- artifact_id: progress
47
+ artifact: progress
48
48
  local_role: consumes
49
49
  description: >-
50
50
  Plan reads this to understand what was built recently.
51
51
  8:
52
52
  id: A8
53
- artifact_id: profile
53
+ artifact: profile
54
54
  local_role: consumes
55
55
  description: >-
56
56
  Plan reads this to calibrate planning depth and pattern preferences.
57
57
  9:
58
58
  id: A9
59
- artifact_id: docs
59
+ artifact: docs
60
60
  local_role: consumes
61
61
  description: >-
62
62
  Plan reads this first to resolve project-local artifact mappings and
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: profile
4
+ artifact: profile
5
5
  local_role: produces_and_consumes
6
6
  description: >-
7
7
  Decision profile with per-entry confidence scoring, permanence
@@ -9,7 +9,7 @@ ARTIFACTS:
9
9
  and Validate modes, then reads it for validation and update context.
10
10
  2:
11
11
  id: A2
12
- artifact_id: decisions
12
+ artifact: decisions
13
13
  local_role: consumes
14
14
  description: >-
15
15
  Profile treats this as a high-signal source for extraction scripts.
@@ -1,7 +1,7 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: todo
4
+ artifact: todo
5
5
  local_role: produces
6
6
  description: >-
7
7
  Open problems by severity. Research writes actionable findings here
@@ -9,14 +9,14 @@ ARTIFACTS:
9
9
  SF1-SF3. Build picks up changes automatically in its next cycle.
10
10
  2:
11
11
  id: A2
12
- artifact_id: vision
12
+ artifact: vision
13
13
  local_role: produces
14
14
  description: >-
15
15
  Research may refine project direction with user confirmation when the
16
16
  analysis shifts thinking about the project's direction.
17
17
  3:
18
18
  id: A3
19
- artifact_id: profile
19
+ artifact: profile
20
20
  local_role: consumes
21
21
  description: >-
22
22
  Research reads the profile via research_context.profile from the prime
@@ -1,63 +1,63 @@
1
1
  ARTIFACTS:
2
2
  1:
3
3
  id: A1
4
- artifact_id: vision
4
+ artifact: vision
5
5
  local_role: consumes
6
6
  description: >-
7
7
  Status reads this for the briefing's project context.
8
8
  2:
9
9
  id: A2
10
- artifact_id: decisions
10
+ artifact: decisions
11
11
  local_role: consumes
12
12
  description: >-
13
13
  Status reads this to identify unresolved decisions requiring follow-up.
14
14
  3:
15
15
  id: A3
16
- artifact_id: plan
16
+ artifact: plan
17
17
  local_role: consumes
18
18
  description: >-
19
19
  Status reads this to identify the next executable task and plan progress.
20
20
  4:
21
21
  id: A4
22
- artifact_id: progress
22
+ artifact: progress
23
23
  local_role: consumes
24
24
  description: >-
25
25
  Status reads this for the briefing's "what shipped" context.
26
26
  5:
27
27
  id: A5
28
- artifact_id: todo
28
+ artifact: todo
29
29
  local_role: consumes
30
30
  description: >-
31
31
  Status reads this to identify high-severity open items for routing.
32
32
  6:
33
33
  id: A6
34
- artifact_id: health
34
+ artifact: health
35
35
  local_role: consumes
36
36
  description: >-
37
37
  Status reads this for the health status line and attention items.
38
38
  7:
39
39
  id: A7
40
- artifact_id: objective
40
+ artifact: objective
41
41
  local_role: consumes
42
42
  description: >-
43
43
  Status reads this to check for active optimization objectives.
44
44
  8:
45
45
  id: A8
46
- artifact_id: experiments
46
+ artifact: experiments
47
47
  local_role: consumes
48
48
  description: >-
49
49
  Status reads this alongside the active optimization target to determine
50
50
  optimization status.
51
51
  9:
52
52
  id: A9
53
- artifact_id: docs
53
+ artifact: docs
54
54
  local_role: consumes
55
55
  description: >-
56
56
  Status reads this first to resolve project-local artifact mappings before
57
57
  reading other artifacts.
58
58
  10:
59
59
  id: A10
60
- artifact_id: design
60
+ artifact: design
61
61
  local_role: consumes
62
62
  description: >-
63
63
  Status reads this for project design status metadata (exists, stale, missing).
@@ -66,7 +66,7 @@ ARTIFACTS:
66
66
  artifact.
67
67
  11:
68
68
  id: A11
69
- artifact_id: profile
69
+ artifact: profile
70
70
  local_role: consumes
71
71
  description: >-
72
72
  Status reads this to report profile status (loaded/not found) in the briefing.
@@ -1,56 +1,56 @@
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
  Vision writes and refines project direction, principles, personas,
8
8
  aspirations, and identity.
9
9
  2:
10
10
  id: A2
11
- artifact_id: decisions
11
+ artifact: decisions
12
12
  local_role: consumes
13
13
  description: >-
14
14
  Vision reads this to detect shifted thinking during refine mode
15
15
  and to surface unresolved tensions with the vision.
16
16
  3:
17
17
  id: A3
18
- artifact_id: progress
18
+ artifact: progress
19
19
  local_role: consumes
20
20
  description: >-
21
21
  Vision reads this during refine mode to understand what has been
22
22
  built since the vision was last updated.
23
23
  4:
24
24
  id: A4
25
- artifact_id: health
25
+ artifact: health
26
26
  local_role: consumes
27
27
  description: >-
28
28
  Vision reads this to understand structural realities that
29
29
  constrain or inform the vision.
30
30
  5:
31
31
  id: A5
32
- artifact_id: todo
32
+ artifact: todo
33
33
  local_role: consumes
34
34
  description: >-
35
35
  Vision reads this during refine mode to detect recurring problems
36
36
  that suggest the vision needs adjustment.
37
37
  6:
38
38
  id: A6
39
- artifact_id: design
39
+ artifact: design
40
40
  local_role: consumes
41
41
  description: >-
42
42
  Vision reads this during codebase exploration to ensure the
43
43
  Identity section in project direction coheres with the visual system.
44
44
  7:
45
45
  id: A7
46
- artifact_id: docs
46
+ artifact: docs
47
47
  local_role: consumes
48
48
  description: >-
49
49
  Vision reads this first to resolve project-local artifact mappings
50
50
  before accessing other artifacts.
51
51
  8:
52
52
  id: A8
53
- artifact_id: profile
53
+ artifact: profile
54
54
  local_role: consumes
55
55
  description: >-
56
56
  Vision reads this to calibrate the vision conversation: high-confidence
@@ -4,8 +4,9 @@
4
4
  # one entry. Decisions are referenced by build, optimize, and profile
5
5
  # for context on why choices were made.
6
6
  #
7
- # Structural pattern: UPPER_CASE groups with numbered entries and stable IDs,
8
- # following capability_schema_contract.yaml and protocol.yaml conventions.
7
+ # The active authority uses writer-owned decision, revision, and satisfaction
8
+ # entity files. The numbered projection model below is retained only as an exact
9
+ # legacy migration input schema; it is not an ordinary post-cutover contract.
9
10
  #
10
11
  # ── Field-by-field mapping: v1 DECISIONS.md → v2 decisions.yaml ──
11
12
  #
@@ -38,10 +39,22 @@ meta:
38
39
  and orchestrate for context on why choices were made.
39
40
  artifact_type: agent_facing
40
41
  path: ".agentera/decisions.yaml"
42
+ authority: legacy_migration_input_only
41
43
  producer: discuss
42
44
  consumers: [document, status, audit, optimize, orchestrate, plan, profile, build, discuss, vision]
43
45
  format: yaml
44
46
 
47
+ ENTITY_AUTHORITY:
48
+ identity_fields: [id, artifact]
49
+ artifact: decisions
50
+ boundaries: [decision, decision_revision, decision_satisfaction]
51
+ retrieval:
52
+ list: agentera state decisions list --format json
53
+ get: agentera state decisions get --id ID --format json
54
+ mutation: agentera state decisions explain --format json
55
+ direct_file_edits: forbidden
56
+ legacy_schema_below: migration_input_only
57
+
45
58
  GROUP_PREFIXES:
46
59
  BUDGET: DB
47
60
  COMPACTION: DX
@@ -2,7 +2,10 @@
2
2
  #
3
3
  # Documentation contract maintained by document. Tracks project doc
4
4
  # conventions, artifact path overrides, document index with status, coverage
5
- # metrics, and timestamped audit findings.
5
+ # metrics, and timestamped audit findings. After durable entity cutover only
6
+ # index entries become independent entities; mappings, conventions, coverage,
7
+ # audit/editorial configuration, and other singleton sections retain
8
+ # intentional whole-document authority in docs.yaml.
6
9
  #
7
10
  # Structural pattern: UPPER_CASE groups with numbered entries and stable IDs,
8
11
  # following capability_schema_contract.yaml and protocol.yaml conventions.