agentera 3.0.0-dev.25 → 3.0.0-dev.27

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 (495) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +29 -23
  3. package/bundle/CHANGELOG.md +18 -25
  4. package/bundle/README.md +13 -34
  5. package/bundle/UPGRADE.md +71 -165
  6. package/bundle/references/adapters/package-manifest-interface-model.yaml +40 -241
  7. package/bundle/references/adapters/package-registry.yaml +0 -145
  8. package/bundle/references/adapters/package-surface-characterization.md +22 -42
  9. package/bundle/references/adapters/runtime-lifecycle-adapters.yaml +5 -219
  10. package/bundle/references/adapters/runtime-lifecycle-authority.yaml +2 -29
  11. package/bundle/references/adapters/runtime-lifecycle-operation-contract.yaml +1 -1
  12. package/bundle/references/analysis/analytics-boundary-proportional-2026-07-20.yaml +74 -0
  13. package/bundle/references/analysis/benchmark.md +11 -0
  14. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  15. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  16. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  17. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  18. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  19. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  20. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli-route.log.gz +0 -0
  21. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli.log.gz +0 -0
  22. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-documentation.log.gz +0 -0
  23. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/recompute.mjs +98 -0
  24. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-1.json.gz +0 -0
  25. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-2.json.gz +0 -0
  26. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-3.json.gz +0 -0
  27. package/bundle/references/analysis/migration-pagination-proportional-2026-07-20.yaml +64 -0
  28. package/bundle/references/analysis/verification-baseline-2026-07-20.yaml +313 -0
  29. package/bundle/references/analysis/verification-final-proof-2026-07-21.yaml +340 -0
  30. package/bundle/references/analysis/verification-policy.yaml +142 -0
  31. package/bundle/references/analysis/worker-policy-2026-07-21.yaml +207 -0
  32. package/bundle/references/artifacts/state-storage-authority.yaml +48 -448
  33. package/bundle/references/cli/agent-ready-state-contract.yaml +9 -9
  34. package/bundle/references/cli/app-lifecycle-vocabulary.yaml +3 -4
  35. package/bundle/references/cli/bundle-skill-vocabulary.yaml +9 -18
  36. package/bundle/references/cli/capability-tool-classification.yaml +2 -2
  37. package/bundle/references/cli/prime-consumer-compatibility.yaml +86 -112
  38. package/bundle/references/cli/routing-execution-vocabulary.yaml +4 -22
  39. package/bundle/references/cli/upgrade-repair-wording.md +8 -28
  40. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +2 -3
  41. package/bundle/references/cli/vocabulary.md +18 -23
  42. package/bundle/references/meta/documentation-inventory.md +3 -1
  43. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +3 -2
  44. package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +1 -1
  45. package/bundle/skills/agentera/schemas/artifacts/docs.yaml +3 -11
  46. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +23 -5
  47. package/dist/analytics/extractCorpus/cli.js.map +1 -1
  48. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -1
  49. package/dist/analytics/extractCorpus/core.js.map +1 -1
  50. package/dist/analytics/extractCorpus/corpus.js.map +1 -1
  51. package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -1
  52. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -1
  53. package/dist/analytics/extractCorpus/evidenceTiers.js.map +1 -1
  54. package/dist/analytics/extractCorpus/extractCorpusParity.js +1 -1
  55. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -1
  56. package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -1
  57. package/dist/analytics/extractCorpus/index.js.map +1 -1
  58. package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -1
  59. package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -1
  60. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -1
  61. package/dist/analytics/extractCorpus/tierReader.js.map +1 -1
  62. package/dist/analytics/extractCorpus.js.map +1 -1
  63. package/dist/analytics/profileSignals.js.map +1 -1
  64. package/dist/analytics/usageStats.js.map +1 -1
  65. package/dist/bin/agentera.js.map +1 -1
  66. package/dist/capabilities/audit/instructions.js.map +1 -1
  67. package/dist/capabilities/build/instructions.js.map +1 -1
  68. package/dist/capabilities/design/instructions.js.map +1 -1
  69. package/dist/capabilities/discuss/instructions.js.map +1 -1
  70. package/dist/capabilities/document/instructions.js.map +1 -1
  71. package/dist/capabilities/index.js.map +1 -1
  72. package/dist/capabilities/optimize/instructions.js.map +1 -1
  73. package/dist/capabilities/orchestrate/instructions.js +1 -1
  74. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  75. package/dist/capabilities/plan/instructions.js.map +1 -1
  76. package/dist/capabilities/profile/instructions.js.map +1 -1
  77. package/dist/capabilities/research/instructions.js.map +1 -1
  78. package/dist/capabilities/status/instructions.js.map +1 -1
  79. package/dist/capabilities/status/startupInstructions.js.map +1 -1
  80. package/dist/capabilities/vision/instructions.js.map +1 -1
  81. package/dist/cli/appContext.js.map +1 -1
  82. package/dist/cli/argvalidate.js.map +1 -1
  83. package/dist/cli/capabilityContext/benchmark.js.map +1 -1
  84. package/dist/cli/capabilityContext/bespoke.js +8 -2
  85. package/dist/cli/capabilityContext/bespoke.js.map +1 -1
  86. package/dist/cli/capabilityContext/build.js.map +1 -1
  87. package/dist/cli/capabilityContext/closeout.js +3 -3
  88. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  89. package/dist/cli/capabilityContext/contract.js.map +1 -1
  90. package/dist/cli/capabilityContext/evidence.js +52 -40
  91. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  92. package/dist/cli/capabilityContext/index.js.map +1 -1
  93. package/dist/cli/capabilityContext/orchestration.js +15 -5
  94. package/dist/cli/capabilityContext/orchestration.js.map +1 -1
  95. package/dist/cli/capabilityContext/planState.js +1 -1
  96. package/dist/cli/capabilityContext/planState.js.map +1 -1
  97. package/dist/cli/capabilityContext/progress.js.map +1 -1
  98. package/dist/cli/capabilityContext/shared.js.map +1 -1
  99. package/dist/cli/capabilityContext/slim.js +16 -3
  100. package/dist/cli/capabilityContext/slim.js.map +1 -1
  101. package/dist/cli/capabilityContext/startup.js +4 -1
  102. package/dist/cli/capabilityContext/startup.js.map +1 -1
  103. package/dist/cli/capabilityContext/types.js.map +1 -1
  104. package/dist/cli/capabilityContext.js.map +1 -1
  105. package/dist/cli/commands/appHome.js.map +1 -1
  106. package/dist/cli/commands/capability.js.map +1 -1
  107. package/dist/cli/commands/compact.js.map +1 -1
  108. package/dist/cli/commands/doctor.js +6 -64
  109. package/dist/cli/commands/doctor.js.map +1 -1
  110. package/dist/cli/commands/durability.js +12 -48
  111. package/dist/cli/commands/durability.js.map +1 -1
  112. package/dist/cli/commands/entityMigrate.js.map +1 -1
  113. package/dist/cli/commands/lint.js.map +1 -1
  114. package/dist/cli/commands/prime/briefOrientation.js +25 -24
  115. package/dist/cli/commands/prime/briefOrientation.js.map +1 -1
  116. package/dist/cli/commands/prime/bundleStatus.js +8 -2
  117. package/dist/cli/commands/prime/bundleStatus.js.map +1 -1
  118. package/dist/cli/commands/prime/collectEntityOrientation.js +76 -24
  119. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -1
  120. package/dist/cli/commands/prime/collectOrientationState.js +34 -53
  121. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  122. package/dist/cli/commands/prime/orientationOutput.js +9 -14
  123. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  124. package/dist/cli/commands/prime/types.js.map +1 -1
  125. package/dist/cli/commands/prime/v1Migration.js.map +1 -1
  126. package/dist/cli/commands/prime.js +43 -25
  127. package/dist/cli/commands/prime.js.map +1 -1
  128. package/dist/cli/commands/query.js +17 -49
  129. package/dist/cli/commands/query.js.map +1 -1
  130. package/dist/cli/commands/report.js.map +1 -1
  131. package/dist/cli/commands/schema.js +19 -78
  132. package/dist/cli/commands/schema.js.map +1 -1
  133. package/dist/cli/commands/state/decisions.js +11 -57
  134. package/dist/cli/commands/state/decisions.js.map +1 -1
  135. package/dist/cli/commands/state/docs.js +56 -120
  136. package/dist/cli/commands/state/docs.js.map +1 -1
  137. package/dist/cli/commands/state/experimentRecords.js +22 -121
  138. package/dist/cli/commands/state/experimentRecords.js.map +1 -1
  139. package/dist/cli/commands/state/experiments.js +9 -75
  140. package/dist/cli/commands/state/experiments.js.map +1 -1
  141. package/dist/cli/commands/state/get.js +62 -143
  142. package/dist/cli/commands/state/get.js.map +1 -1
  143. package/dist/cli/commands/state/health.js +9 -123
  144. package/dist/cli/commands/state/health.js.map +1 -1
  145. package/dist/cli/commands/state/index.js +2 -2
  146. package/dist/cli/commands/state/index.js.map +1 -1
  147. package/dist/cli/commands/state/list.js +20 -36
  148. package/dist/cli/commands/state/list.js.map +1 -1
  149. package/dist/cli/commands/state/objective.js +19 -86
  150. package/dist/cli/commands/state/objective.js.map +1 -1
  151. package/dist/cli/commands/state/plan.js +9 -388
  152. package/dist/cli/commands/state/plan.js.map +1 -1
  153. package/dist/cli/commands/state/planTasks.js +58 -93
  154. package/dist/cli/commands/state/planTasks.js.map +1 -1
  155. package/dist/cli/commands/state/plans.js +13 -40
  156. package/dist/cli/commands/state/plans.js.map +1 -1
  157. package/dist/cli/commands/state/progress.js +10 -55
  158. package/dist/cli/commands/state/progress.js.map +1 -1
  159. package/dist/cli/commands/state/shared.js.map +1 -1
  160. package/dist/cli/commands/state/todo.js +24 -133
  161. package/dist/cli/commands/state/todo.js.map +1 -1
  162. package/dist/cli/commands/state/write.js +13 -35
  163. package/dist/cli/commands/state/write.js.map +1 -1
  164. package/dist/cli/commands/upgrade.js +48 -18
  165. package/dist/cli/commands/upgrade.js.map +1 -1
  166. package/dist/cli/commands/upgradeVerify.js +21 -15
  167. package/dist/cli/commands/upgradeVerify.js.map +1 -1
  168. package/dist/cli/commands/validate.js +1 -9
  169. package/dist/cli/commands/validate.js.map +1 -1
  170. package/dist/cli/commands/verify.js.map +1 -1
  171. package/dist/cli/contracts/bundleStatus.js.map +1 -1
  172. package/dist/cli/contracts/orientationState.js.map +1 -1
  173. package/dist/cli/dispatch/argvParser.js.map +1 -1
  174. package/dist/cli/dispatch/check.js +5 -12
  175. package/dist/cli/dispatch/check.js.map +1 -1
  176. package/dist/cli/dispatch/commands.js.map +1 -1
  177. package/dist/cli/dispatch/index.js +30 -29
  178. package/dist/cli/dispatch/index.js.map +1 -1
  179. package/dist/cli/dispatch/lifecycle.js +23 -40
  180. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  181. package/dist/cli/dispatch/prime.js.map +1 -1
  182. package/dist/cli/dispatch/shared.js.map +1 -1
  183. package/dist/cli/dispatch/state.js.map +1 -1
  184. package/dist/cli/dispatch.js.map +1 -1
  185. package/dist/cli/errors.js.map +1 -1
  186. package/dist/cli/help.js +20 -100
  187. package/dist/cli/help.js.map +1 -1
  188. package/dist/cli/migrationRequired.js +22 -19
  189. package/dist/cli/migrationRequired.js.map +1 -1
  190. package/dist/cli/orientation/attention.js +1 -97
  191. package/dist/cli/orientation/attention.js.map +1 -1
  192. package/dist/cli/orientation/corpusCoverage.js.map +1 -1
  193. package/dist/cli/orientation.js +18 -4
  194. package/dist/cli/orientation.js.map +1 -1
  195. package/dist/cli/planArtifacts.js.map +1 -1
  196. package/dist/cli/planEvidence.js.map +1 -1
  197. package/dist/cli/planLifecycleState.js.map +1 -1
  198. package/dist/cli/planTaskIndex.js +12 -0
  199. package/dist/cli/planTaskIndex.js.map +1 -0
  200. package/dist/cli/prime-blob.js +1 -1
  201. package/dist/cli/prime-blob.js.map +1 -1
  202. package/dist/cli/startupCompletenessContract.js.map +1 -1
  203. package/dist/cli/stateQuery.js +1 -2
  204. package/dist/cli/stateQuery.js.map +1 -1
  205. package/dist/cli/structured.js.map +1 -1
  206. package/dist/cli/todoMarkdown.js.map +1 -1
  207. package/dist/cli/todoSeverity.js.map +1 -1
  208. package/dist/core/atomicWriter.js.map +1 -1
  209. package/dist/core/difflib.js.map +1 -1
  210. package/dist/core/envPaths.js.map +1 -1
  211. package/dist/core/jsonValue.js.map +1 -1
  212. package/dist/core/paths.js.map +1 -1
  213. package/dist/core/pyjson.js.map +1 -1
  214. package/dist/core/skillIdentity.js +24 -0
  215. package/dist/core/skillIdentity.js.map +1 -0
  216. package/dist/core/sourceRoot.js.map +1 -1
  217. package/dist/core/text.js.map +1 -1
  218. package/dist/core/toml.js.map +1 -1
  219. package/dist/core/yaml.js.map +1 -1
  220. package/dist/eval/evalSkills.js.map +1 -1
  221. package/dist/eval/semanticEval.js.map +1 -1
  222. package/dist/eval/semanticFixtures.js.map +1 -1
  223. package/dist/hooks/common.js +1 -1
  224. package/dist/hooks/common.js.map +1 -1
  225. package/dist/hooks/compaction/apply.js.map +1 -1
  226. package/dist/hooks/compaction/dryRun.js.map +1 -1
  227. package/dist/hooks/compaction/index.js.map +1 -1
  228. package/dist/hooks/compaction/parse.js.map +1 -1
  229. package/dist/hooks/compaction/retention.js.map +1 -1
  230. package/dist/hooks/compaction/status.js +2 -1
  231. package/dist/hooks/compaction/status.js.map +1 -1
  232. package/dist/hooks/compaction/types.js.map +1 -1
  233. package/dist/hooks/cursorPreToolUse.js.map +1 -1
  234. package/dist/hooks/cursorSessionStart.js +4 -25
  235. package/dist/hooks/cursorSessionStart.js.map +1 -1
  236. package/dist/hooks/projectHookInput.js +26 -0
  237. package/dist/hooks/projectHookInput.js.map +1 -0
  238. package/dist/hooks/sessionStart.js +23 -239
  239. package/dist/hooks/sessionStart.js.map +1 -1
  240. package/dist/hooks/sessionStop.js +4 -12
  241. package/dist/hooks/sessionStop.js.map +1 -1
  242. package/dist/hooks/validateArtifact/agentFacing.js.map +1 -1
  243. package/dist/hooks/validateArtifact/index.js.map +1 -1
  244. package/dist/hooks/validateArtifact/markdown.js.map +1 -1
  245. package/dist/hooks/validateArtifact/runtime.js.map +1 -1
  246. package/dist/hooks/validateArtifact/schema.js.map +1 -1
  247. package/dist/hooks/validateArtifact/traversal.js +1 -1
  248. package/dist/hooks/validateArtifact/traversal.js.map +1 -1
  249. package/dist/hooks/validateArtifact/violations.js.map +1 -1
  250. package/dist/migrate/v2HandoffManifest.js.map +1 -1
  251. package/dist/registries/artifactProtocolIds.js.map +1 -1
  252. package/dist/registries/artifactRegistry.js +2 -1
  253. package/dist/registries/artifactRegistry.js.map +1 -1
  254. package/dist/registries/capabilityContract.js.map +1 -1
  255. package/dist/registries/evaluatorHandoffContract.js.map +1 -1
  256. package/dist/registries/evidenceTierContract.js.map +1 -1
  257. package/dist/registries/packageRegistry.js +57 -231
  258. package/dist/registries/packageRegistry.js.map +1 -1
  259. package/dist/registries/triggerLoader.js.map +1 -1
  260. package/dist/registries/verbosityBudgetContract.js.map +1 -1
  261. package/dist/release/releaseMetadata.js +1 -13
  262. package/dist/release/releaseMetadata.js.map +1 -1
  263. package/dist/runtime/lifecycleAdapterContract.js +4 -4
  264. package/dist/runtime/lifecycleAdapterContract.js.map +1 -1
  265. package/dist/runtime/lifecycleAdapters.js +14 -2
  266. package/dist/runtime/lifecycleAdapters.js.map +1 -1
  267. package/dist/runtime/lifecycleAuthority.js +5 -43
  268. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  269. package/dist/runtime/lifecycleOperationContract.js +3 -2
  270. package/dist/runtime/lifecycleOperationContract.js.map +1 -1
  271. package/dist/runtime/lifecycleOperations.js.map +1 -1
  272. package/dist/runtime/lifecycleOwnershipJournal.js.map +1 -1
  273. package/dist/runtime/lifecyclePublication.js +21 -0
  274. package/dist/runtime/lifecyclePublication.js.map +1 -1
  275. package/dist/runtime/lifecycleSnapshot.js.map +1 -1
  276. package/dist/runtime/retiredRuntimeCleanup.js.map +1 -1
  277. package/dist/setup/codex/agents.js.map +1 -1
  278. package/dist/setup/codex/cli.js.map +1 -1
  279. package/dist/setup/codex/configToml.js.map +1 -1
  280. package/dist/setup/codex/constants.js.map +1 -1
  281. package/dist/setup/codex/installRoot.js.map +1 -1
  282. package/dist/setup/codex/state.js.map +1 -1
  283. package/dist/setup/codex.js.map +1 -1
  284. package/dist/setup/opencode.js +20 -12
  285. package/dist/setup/opencode.js.map +1 -1
  286. package/dist/setup/opencodeConstants.js.map +1 -1
  287. package/dist/setup/sharedSkill.js +46 -0
  288. package/dist/setup/sharedSkill.js.map +1 -0
  289. package/dist/setup/smokeChecks.js +16 -43
  290. package/dist/setup/smokeChecks.js.map +1 -1
  291. package/dist/state/archiveDiscovery.js.map +1 -1
  292. package/dist/state/archivePublication.js.map +1 -1
  293. package/dist/state/archiveRecovery.js.map +1 -1
  294. package/dist/state/archiveReplay.js.map +1 -1
  295. package/dist/state/decisionEntities.js +7 -4
  296. package/dist/state/decisionEntities.js.map +1 -1
  297. package/dist/state/decisionLegacyValidation.js.map +1 -1
  298. package/dist/state/decisionOverlay.js.map +1 -1
  299. package/dist/state/decisionRevision.js.map +1 -1
  300. package/dist/state/decisionRevisionPublication.js.map +1 -1
  301. package/dist/state/directRetrieval.js.map +1 -1
  302. package/dist/state/durability.js +4 -240
  303. package/dist/state/durability.js.map +1 -1
  304. package/dist/state/entityCutover.js +90 -186
  305. package/dist/state/entityCutover.js.map +1 -1
  306. package/dist/state/entityCutoverGit.js.map +1 -1
  307. package/dist/state/entityMigrationPreview.js +3 -3
  308. package/dist/state/entityMigrationPreview.js.map +1 -1
  309. package/dist/state/entityPublicationContext.js.map +1 -1
  310. package/dist/state/entityStorage.js +49 -10
  311. package/dist/state/entityStorage.js.map +1 -1
  312. package/dist/state/experimentArchive.js.map +1 -1
  313. package/dist/state/experimentIdentity.js.map +1 -1
  314. package/dist/state/experimentRetrieval.js.map +1 -1
  315. package/dist/state/healthEntities.js +7 -4
  316. package/dist/state/healthEntities.js.map +1 -1
  317. package/dist/state/healthEntityValidation.js.map +1 -1
  318. package/dist/state/healthRepair.js.map +1 -1
  319. package/dist/state/installRoot.js.map +1 -1
  320. package/dist/state/legacyEntityCutoverEvidence.js.map +1 -1
  321. package/dist/state/legacyIdentity.js.map +1 -1
  322. package/dist/state/listAccounting.js.map +1 -1
  323. package/dist/state/listClassification.js.map +1 -1
  324. package/dist/state/listRetrieval.js.map +1 -1
  325. package/dist/state/objectiveExperimentEntities.js +7 -5
  326. package/dist/state/objectiveExperimentEntities.js.map +1 -1
  327. package/dist/state/planEntities.js +60 -12
  328. package/dist/state/planEntities.js.map +1 -1
  329. package/dist/state/planIdentity.js.map +1 -1
  330. package/dist/state/planRetrieval.js.map +1 -1
  331. package/dist/state/planTaskRetrieval.js.map +1 -1
  332. package/dist/state/progressEntities.js +4 -2
  333. package/dist/state/progressEntities.js.map +1 -1
  334. package/dist/state/projectRoot.js.map +1 -1
  335. package/dist/state/projectionPolicy.js.map +1 -1
  336. package/dist/state/retrievalAuthority.js.map +1 -1
  337. package/dist/state/safeProjectFile.js.map +1 -1
  338. package/dist/state/startupAnalysis/benchmark.js.map +1 -1
  339. package/dist/state/startupAnalysis/contract.js.map +1 -1
  340. package/dist/state/startupAnalysis/helpers.js.map +1 -1
  341. package/dist/state/startupAnalysis/index.js.map +1 -1
  342. package/dist/state/startupAnalysis/metrics.js.map +1 -1
  343. package/dist/state/startupAnalysis/records.js.map +1 -1
  344. package/dist/state/startupAnalysis/report.js.map +1 -1
  345. package/dist/state/startupAnalysis/threshold.js.map +1 -1
  346. package/dist/state/startupAnalysis.js.map +1 -1
  347. package/dist/state/startupProjection.js +5 -3
  348. package/dist/state/startupProjection.js.map +1 -1
  349. package/dist/state/stateMode.js +7 -0
  350. package/dist/state/stateMode.js.map +1 -1
  351. package/dist/state/todoDocsEntities.js +6 -4
  352. package/dist/state/todoDocsEntities.js.map +1 -1
  353. package/dist/state/todoDocsEntityValidation.js.map +1 -1
  354. package/dist/state/write/assign.js.map +1 -1
  355. package/dist/state/write/candidateMutation.js.map +1 -1
  356. package/dist/state/write/errors.js.map +1 -1
  357. package/dist/state/write/experimentPublication.js.map +1 -1
  358. package/dist/state/write/explain.js +10 -12
  359. package/dist/state/write/explain.js.map +1 -1
  360. package/dist/state/write/fields.js.map +1 -1
  361. package/dist/state/write/helpers.js.map +1 -1
  362. package/dist/state/write/index.js.map +1 -1
  363. package/dist/state/write/input.js.map +1 -1
  364. package/dist/state/write/lock.js.map +1 -1
  365. package/dist/state/write/mutation.js.map +1 -1
  366. package/dist/state/write/operations.js +6 -0
  367. package/dist/state/write/operations.js.map +1 -1
  368. package/dist/state/write/planEvaluation.js +19 -5
  369. package/dist/state/write/planEvaluation.js.map +1 -1
  370. package/dist/state/write/planPublication.js +7 -0
  371. package/dist/state/write/planPublication.js.map +1 -1
  372. package/dist/state/write/serialize.js.map +1 -1
  373. package/dist/state/write/transaction.js +23 -532
  374. package/dist/state/write/transaction.js.map +1 -1
  375. package/dist/state/write/validate.js.map +1 -1
  376. package/dist/upgrade/appContentRefresh.js +54 -44
  377. package/dist/upgrade/appContentRefresh.js.map +1 -1
  378. package/dist/upgrade/appModel.js.map +1 -1
  379. package/dist/upgrade/atomicWriter.js.map +1 -1
  380. package/dist/upgrade/bundleEvidence.js.map +1 -1
  381. package/dist/upgrade/channels.js.map +1 -1
  382. package/dist/upgrade/coexistenceProbe.js.map +1 -1
  383. package/dist/upgrade/compatibility.js.map +1 -1
  384. package/dist/upgrade/doctor.js +5 -1
  385. package/dist/upgrade/doctor.js.map +1 -1
  386. package/dist/upgrade/doctorClassifier.js.map +1 -1
  387. package/dist/upgrade/installedHooksRetirement.js +46 -39
  388. package/dist/upgrade/installedHooksRetirement.js.map +1 -1
  389. package/dist/upgrade/legacyAgentCleanup.js +132 -32
  390. package/dist/upgrade/legacyAgentCleanup.js.map +1 -1
  391. package/dist/upgrade/lifecycleUpgrade.js +65 -378
  392. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  393. package/dist/upgrade/migrateArtifactsV2ToV3.js +151 -52
  394. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  395. package/dist/upgrade/migrationPublication.js +123 -0
  396. package/dist/upgrade/migrationPublication.js.map +1 -0
  397. package/dist/upgrade/nextMajorDoctor.js.map +1 -1
  398. package/dist/upgrade/npxPlatformStatus.js.map +1 -1
  399. package/dist/upgrade/projectIntegration.js +46 -113
  400. package/dist/upgrade/projectIntegration.js.map +1 -1
  401. package/dist/upgrade/projectIntegrationDecision.js +6 -96
  402. package/dist/upgrade/projectIntegrationDecision.js.map +1 -1
  403. package/dist/upgrade/runtimeMigration.js +222 -402
  404. package/dist/upgrade/runtimeMigration.js.map +1 -1
  405. package/dist/upgrade/upgradeCommands.js +5 -4
  406. package/dist/upgrade/upgradeCommands.js.map +1 -1
  407. package/dist/upgrade/upgradeLock.js +73 -41
  408. package/dist/upgrade/upgradeLock.js.map +1 -1
  409. package/dist/upgrade/upgradeOrchestrator.js +91 -158
  410. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  411. package/dist/upgrade/v3CapabilitySurface.js +2 -2
  412. package/dist/upgrade/v3CapabilitySurface.js.map +1 -1
  413. package/dist/upgrade/versionResolution.js.map +1 -1
  414. package/dist/validate/appHomeContract.js +0 -4
  415. package/dist/validate/appHomeContract.js.map +1 -1
  416. package/dist/validate/capability.js.map +1 -1
  417. package/dist/validate/crossCapability.js.map +1 -1
  418. package/dist/validate/selfAudit.js.map +1 -1
  419. package/dist/validate/vocabularyAuthority.js.map +1 -1
  420. package/package.json +23 -8
  421. package/bundle/.codex-plugin/plugin.json +0 -92
  422. package/bundle/.cursor/agents/agentera.md +0 -7
  423. package/bundle/.cursor/hooks.json +0 -32
  424. package/bundle/.cursor-plugin/plugin.json +0 -34
  425. package/bundle/.github/hooks/postToolUse.json +0 -9
  426. package/bundle/.github/hooks/preToolUse.json +0 -8
  427. package/bundle/.github/hooks/sessionEnd.json +0 -8
  428. package/bundle/.github/hooks/sessionStart.json +0 -8
  429. package/bundle/.github/plugin/plugin.json +0 -7
  430. package/bundle/.opencode/agents/agentera.md +0 -12
  431. package/bundle/.opencode/commands/agentera.md +0 -5
  432. package/bundle/.opencode/package.json +0 -31
  433. package/bundle/.opencode/plugins/agentera.js +0 -820
  434. package/bundle/agents/openai.yaml +0 -87
  435. package/bundle/hooks/codex-hooks.json +0 -31
  436. package/bundle/hooks/codex-plugin-hooks.json +0 -31
  437. package/bundle/plugin.json +0 -13
  438. package/bundle/references/adapters/cursor.md +0 -224
  439. package/bundle/references/adapters/opencode.md +0 -529
  440. package/bundle/references/adapters/runtime-adapter-characterization.md +0 -44
  441. package/bundle/references/adapters/runtime-adapter-interface-model.yaml +0 -200
  442. package/bundle/references/adapters/runtime-adapter-registry.yaml +0 -387
  443. package/bundle/references/adapters/runtime-feature-parity.md +0 -129
  444. package/dist/cli/commands/backfill.js +0 -231
  445. package/dist/cli/commands/backfill.js.map +0 -1
  446. package/dist/cli/commands/migrate.js +0 -681
  447. package/dist/cli/commands/migrate.js.map +0 -1
  448. package/dist/registries/runtimeAdapterRegistry.js +0 -324
  449. package/dist/registries/runtimeAdapterRegistry.js.map +0 -1
  450. package/dist/setup/copilot.js +0 -227
  451. package/dist/setup/copilot.js.map +0 -1
  452. package/dist/setup/cursor.js +0 -129
  453. package/dist/setup/cursor.js.map +0 -1
  454. package/dist/setup/cursorSurfaces.js +0 -67
  455. package/dist/setup/cursorSurfaces.js.map +0 -1
  456. package/dist/setup/doctor/core.js +0 -296
  457. package/dist/setup/doctor/core.js.map +0 -1
  458. package/dist/setup/doctor/diagnostics.js +0 -201
  459. package/dist/setup/doctor/diagnostics.js.map +0 -1
  460. package/dist/setup/doctor/opencode.js +0 -301
  461. package/dist/setup/doctor/opencode.js.map +0 -1
  462. package/dist/setup/doctor/report.js +0 -425
  463. package/dist/setup/doctor/report.js.map +0 -1
  464. package/dist/setup/doctor.js +0 -10
  465. package/dist/setup/doctor.js.map +0 -1
  466. package/dist/state/gitBackfill.js +0 -561
  467. package/dist/state/gitBackfill.js.map +0 -1
  468. package/dist/state/gitBackfillAuthority.js +0 -141
  469. package/dist/state/gitBackfillAuthority.js.map +0 -1
  470. package/dist/state/gitBackfillHistory.js +0 -278
  471. package/dist/state/gitBackfillHistory.js.map +0 -1
  472. package/dist/state/gitBackfillOutput.js +0 -209
  473. package/dist/state/gitBackfillOutput.js.map +0 -1
  474. package/dist/state/legacyMigration.js +0 -516
  475. package/dist/state/legacyMigration.js.map +0 -1
  476. package/dist/state/legacyMigrationParser.js +0 -489
  477. package/dist/state/legacyMigrationParser.js.map +0 -1
  478. package/dist/state/migrationAuthority.js +0 -413
  479. package/dist/state/migrationAuthority.js.map +0 -1
  480. package/dist/state/migrationEnrichment.js +0 -35
  481. package/dist/state/migrationEnrichment.js.map +0 -1
  482. package/dist/state/projectionRecovery.js +0 -458
  483. package/dist/state/projectionRecovery.js.map +0 -1
  484. package/dist/upgrade/migrateArtifactsV1ToV2.js +0 -568
  485. package/dist/upgrade/migrateArtifactsV1ToV2.js.map +0 -1
  486. package/dist/validate/lifecycleAdapters/legacyPythonParity.js +0 -93
  487. package/dist/validate/lifecycleAdapters/legacyPythonParity.js.map +0 -1
  488. package/dist/validate/lifecycleAdapters/lifecycleMain.js +0 -154
  489. package/dist/validate/lifecycleAdapters/lifecycleMain.js.map +0 -1
  490. package/dist/validate/lifecycleAdapters/nodeFormChecks.js +0 -481
  491. package/dist/validate/lifecycleAdapters/nodeFormChecks.js.map +0 -1
  492. package/dist/validate/lifecycleAdapters/shared.js +0 -198
  493. package/dist/validate/lifecycleAdapters/shared.js.map +0 -1
  494. package/dist/validate/lifecycleAdapters.js +0 -10
  495. package/dist/validate/lifecycleAdapters.js.map +0 -1
package/bundle/UPGRADE.md CHANGED
@@ -1,141 +1,74 @@
1
- # Upgrade and runtime lifecycle
1
+ # Upgrade and migration
2
2
 
3
- Agentera 3.0 uses one upgrade command for project/app migration and explicitly
4
- selected runtime lifecycle work. Preview and apply are separate operations.
3
+ Agentera 3.0 uses one upgrade command for app/project migration and explicit
4
+ retired Claude cleanup. Preview and apply are separate operations. Current
5
+ runtime installation and repair are not upgrade operations.
5
6
 
6
7
  Before the npm stable dist-tag promotion, use `agentera@next`. The stable 2.x
7
- channel remains `agentera@latest` until that promotion; this repository does
8
- not publish or retag as part of an upgrade run.
8
+ channel remains `agentera@latest` until that promotion; upgrade does not publish
9
+ or retag packages.
9
10
 
10
- ## Start with a preview
11
+ ## Active integration
11
12
 
12
- ```bash
13
- npx -y agentera@next upgrade --dry-run --channel development
14
- ```
13
+ Agentera has one active integration contract:
15
14
 
16
- On the v3 development channel, a dry-run without `--runtime` also observes all
17
- active runtimes so blocked app or channel phases do not hide lifecycle findings.
18
- The preview remains read-only. Runtime apply is explicit:
19
-
20
- ```bash
21
- npx -y agentera@next upgrade --runtime all --dry-run
22
- npx -y agentera@next upgrade --runtime cursor --dry-run
15
+ ```text
16
+ ~/.agents/skills/agentera + agentera CLI
23
17
  ```
24
18
 
25
- The active runtimes are OpenCode, Codex, Cursor, and GitHub Copilot. Selectors
26
- are `all`, `opencode`, `codex`, `cursor`, and `copilot`.
27
- `cursor-agent` is not a selector: Cursor Agent CLI and Cursor IDE are surfaces
28
- of the one `cursor` identity. CLI is required; IDE is conditional.
19
+ Normal `prime`, `doctor`, `schema`, help, and project-integration output reports
20
+ that shared skill and CLI/app/project state. Normal `upgrade` has no
21
+ current-runtime selector or native-resource operation set. It creates no current
22
+ plugin, hook, agent, command, descriptor, or marketplace file and does not run
23
+ runtime package managers, authentication, enablement, or trust operations.
29
24
 
30
- The preview is strictly read-only. It creates no files, directories, locks,
31
- caches, ownership journals, telemetry, or other state changes. Its output
32
- includes:
25
+ Passing `--runtime` fails before mutation. Remove `--runtime`, ensure the runtime
26
+ can read `~/.agents/skills/agentera`, and invoke the CLI directly. The supported
27
+ v2 migration and Claude cleanup routes below are separate from normal active
28
+ integration.
33
29
 
34
- - observed runtime and surface evidence;
35
- - skill, plugin, hook, agent, configuration, enablement, trust, and native-action state;
36
- - planned operations and dependencies;
37
- - current ownership evidence and blocked reasons;
38
- - exact manual or host-native actions;
39
- - required support-floor gaps.
30
+ ## Preview and apply
40
31
 
41
- `prime` exposes a bounded projection of the same snapshot. `doctor` exposes the
42
- detailed read-only diagnosis:
32
+ Preview normal app/project work:
43
33
 
44
34
  ```bash
45
- npx -y agentera@next prime --format json
46
- npx -y agentera@next doctor --format json
35
+ npx -y agentera@next upgrade --dry-run --channel development
47
36
  ```
48
37
 
49
- Status and project-integration recommendations use the same lifecycle identity,
50
- counts, blockers, and retry guidance as `prime` and `doctor`.
51
-
52
- ## Apply approved Agentera-owned work
53
-
54
- After reviewing an all-runtime preview, use its generated command or rerun the
55
- selection explicitly with `--runtime all --yes`:
38
+ The preview is strictly read-only: it creates no files, directories, locks,
39
+ caches, ownership records, telemetry, or other state. Apply only after reviewing
40
+ the generated command:
56
41
 
57
42
  ```bash
58
- npx -y agentera@next upgrade --runtime all --yes
43
+ npx -y agentera@next upgrade --yes --channel development
59
44
  ```
60
45
 
61
- An apply invoked without `--runtime` retains the existing app-only behavior.
62
- Named selectors such as `--runtime cursor` limit runtime-specific writes to that
63
- identity. Stable-channel v2 behavior remains app-only.
64
-
65
- Apply can write only resources declared by the lifecycle contract and proven
66
- Agentera-owned by the append-only ownership journal. Matching names or bytes do
67
- not establish ownership. User-owned, ambiguous, shadowed, or malformed targets
68
- remain blocked.
69
-
70
- For every blocked collision, the exact remediation is: “The destination is not
71
- ledger-owned; review the collision manually. Agentera will not adopt it by name
72
- or equality.” The destination remains unchanged until authoritative ownership is
73
- available.
74
-
75
- The operation outcomes are:
76
-
77
- - `applied` — the declared change was published;
78
- - `noop` — desired state was already exact;
79
- - `failed` — this operation failed; independent operations may continue;
80
- - `blocked_unowned` — ownership was not proven;
81
- - `skipped_dependency` — a prerequisite did not complete;
82
- - `action_required` — the user or host must perform the step.
46
+ `prime` and `doctor` expose the same app/project classification and shared-skill
47
+ state:
83
48
 
84
- Retries are designed to converge. Completed work becomes `noop`; failed or
85
- pending work is re-observed and retried. Corrupt, forked, disconnected, or
86
- non-contiguous ownership journals fail closed.
87
-
88
- Secure automatic filesystem publication currently requires Linux
89
- `/proc/self/fd`. On macOS, Windows, or a Linux environment without that secure
90
- primitive, preview and diagnosis still work but mutation is returned as
91
- `action_required`.
92
-
93
- ## Ownership and trust boundary
94
-
95
- The canonical skill is:
96
-
97
- ```text
98
- ~/.agents/skills/agentera
49
+ ```bash
50
+ npx -y agentera@next prime --format json
51
+ npx -y agentera@next doctor --format json
99
52
  ```
100
53
 
101
- Agentera can maintain declared Agentera-owned skill, plugin, hook, and agent
102
- resources. It does not run native runtime package managers or approve:
103
-
104
- - runtime installation or self-update;
105
- - authentication;
106
- - plugin or hook enablement;
107
- - trust prompts or organizational policy;
108
- - user-owned configuration collisions.
109
-
110
- Those steps are reported with exact remediation and remain user-owned.
111
-
112
- ## Cursor lifecycle
113
-
114
- Cursor is one runtime identity with two surfaces:
115
-
116
- | Surface | Support-floor role | Typical source |
117
- | --- | --- | --- |
118
- | Agent CLI | required | Cursor CLI binary and canonical shared skill |
119
- | IDE | conditional | `.cursor-plugin/plugin.json`, `.cursor/hooks.json`, `.cursor/agents/` |
120
-
121
- An absent IDE does not block a CLI-only installation. Once IDE evidence is
122
- present, its incomplete or denied mandatory evidence is reported beneath the
123
- same Cursor identity.
54
+ Retries re-observe the current app/project state. Completed migration work
55
+ converges to no change; interrupted v2 migration continues through the same full
56
+ apply command.
124
57
 
125
58
  ## Retired Claude cleanup
126
59
 
127
- Claude Code is not an active Agentera runtime and cannot be passed to
128
- `--runtime`. Its legacy cleanup is a separate explicit selection:
60
+ Claude cleanup is a distinct historical route, not a current-runtime selection:
129
61
 
130
62
  ```bash
131
63
  npx -y agentera@next upgrade --legacy-cleanup claude --dry-run
132
64
  npx -y agentera@next upgrade --legacy-cleanup claude --yes
133
65
  ```
134
66
 
135
- Cleanup is limited to the exact Agentera-owned legacy skill link recorded by
136
- the ownership ledger. It never removes Claude projects, transcripts, settings,
67
+ Cleanup is limited to the exact Agentera-owned legacy skill link recorded by the
68
+ ownership journal. It never removes Claude projects, transcripts, settings,
137
69
  credentials, caches, or other user data. Ambiguous or unowned resources remain
138
- blocked.
70
+ blocked. Preview is read-only; apply is idempotent and can be retried with the
71
+ same explicit selection.
139
72
 
140
73
  Historical transcript import is independent of cleanup. Default extraction and
141
74
  analytics do not read Claude history. Import requires explicit local consent:
@@ -145,9 +78,9 @@ npx -y agentera@next report refresh --import-source claude
145
78
  ```
146
79
 
147
80
  Imported records carry `historical_import` provenance, have no active runtime
148
- ID, and remain excluded from default active-runtime analytics.
81
+ ID, and remain excluded from default active-source analytics.
149
82
 
150
- ## Recommended upgrade v1 & v2 stable channel
83
+ ## Stable v2 line
151
84
 
152
85
  The stable `@latest` channel remains on the supported 2.x line. Preview before
153
86
  applying an in-line upgrade:
@@ -157,65 +90,35 @@ npx -y agentera@latest upgrade --dry-run
157
90
  npx -y agentera@latest upgrade --yes
158
91
  ```
159
92
 
160
- Use the v3 development migration below only when you explicitly intend to
161
- leave the stable line.
93
+ Use the v3 development migration below only when you explicitly intend to leave
94
+ the stable line.
162
95
 
163
- ## Upgrading v2 to v3 development channel (irreversible)
96
+ ## Upgrading v2 to v3 development channel
164
97
 
165
- Use the development channel explicitly while 3.0 is on `@next`:
98
+ Recognized marker-absent v2 aggregate state has one supported forward route:
166
99
 
167
100
  ```bash
168
101
  npx -y agentera@next upgrade --channel development --project "$PWD" --dry-run
169
102
  npx -y agentera@next upgrade --channel development --project "$PWD" --yes
170
103
  ```
171
104
 
172
- The dry-run is optional and read-only. Before applying, commit or restore the
173
- complete v2 migration source: every input must be a regular file tracked by Git
174
- and unchanged at `HEAD`. The apply command performs the full runtime and entity
175
- state upgrade, then validates state and representative `prime` startup.
176
-
177
- Forward migration to v3 is one-way. Returning to the Python 2.x line is not
178
- supported, and cross-major apply has no rollback, restore, non-Git, or partial
179
- workflow. If an apply is interrupted, rerun the same full apply command to
180
- continue forward.
181
-
182
- ## Legacy state and optional Git enrichment
183
-
184
- Project-state migration and historical Git enrichment are separate local
185
- operations. Migration does not read Git, contact a remote, or remove its source
186
- files. Its default inventory and `--dry-run` are read-only; apply requires the
187
- exact artifact and entry selectors with `--apply --force`:
188
-
189
- ```bash
190
- npx -y agentera@next state migrate --project "$PWD" --artifact progress --number N --dry-run --format json
191
- npx -y agentera@next state migrate --project "$PWD" --artifact progress --number N --apply --force --format json
192
- ```
193
-
194
- Git enrichment is optional. A preview is useful but not required before direct
195
- apply. Inventory and preview may use the current working directory when
196
- `--project` is omitted; direct apply must name `--project PATH` explicitly.
197
- Apply revalidates the selected project, current `HEAD`, allowed-ref
198
- reachability, candidate provenance and content, and the immutable archive target
199
- immediately before publication:
105
+ The optional preview is read-only. Before apply, commit or restore the complete
106
+ v2 migration source: every input must be a regular file tracked by Git and
107
+ unchanged at `HEAD`. Apply performs the full project rewiring and entity-state
108
+ cutover, then validates state and representative `prime` startup. Rewiring may
109
+ update recognized v2 project files; it does not install current native resources.
200
110
 
201
- ```bash
202
- npx -y agentera@next state backfill --project "$PWD" --artifact progress --number N --dry-run --format json
203
- npx -y agentera@next state backfill --project "$PWD" --artifact progress --number N --apply --force --format json
204
- ```
111
+ Forward migration is one-way. Returning to the Python 2.x line is unsupported,
112
+ and cross-major apply has no rollback, restore, non-Git, or partial workflow.
113
+ If apply is interrupted, rerun the same full apply command.
205
114
 
206
- The backfill contract is bounded to 100 result rows, 500 history units, and
207
- 16 MiB of Git output. It inspects only `HEAD`, local heads, and tags; remote and
208
- custom refs and operations are excluded. Returned provenance keeps the commit,
209
- path, blob ID, stable entry ID, content hash, and reachability so a result can
210
- be traced without adding commit fields to the archive record.
115
+ ## Unsupported legacy state
211
116
 
212
- `complete`, `degraded`, `blocked`, and `unavailable` are explicit outcomes.
213
- Changed, shallow, rewritten, ambiguous, corrupt, missing, bounded, unavailable,
214
- and immutable-conflict results are reported rather than guessed. Resolve the
215
- reported local condition and retry the same selectors; refused operations leave
216
- active projections and existing archives unchanged, and identical publication
217
- converges as a replay. The full command, limits, failure, recovery, and
218
- traceability contract is `references/artifacts/state-storage-authority.yaml`.
117
+ Pending v1 Markdown state and unknown marker-absent state are not automatic
118
+ mutation inputs. `state migrate`, `state backfill`, projection repair, v1
119
+ conversion, restore, and downgrade are unsupported. The read-only
120
+ `state migrate entities --dry-run` diagnostic may inventory cutover input but
121
+ cannot publish it.
219
122
 
220
123
  ## Verification and recovery
221
124
 
@@ -227,14 +130,11 @@ npx -y agentera@next prime --format json
227
130
  ```
228
131
 
229
132
  `upgrade --verify` without `--yes` is a read-only doctor and capability-context
230
- verification. With `--yes`, it runs those checks after the approved upgrade
231
- apply. Lifecycle selections with `--verify` require `--yes`.
232
- For lifecycle partial failure, rerun the same preview and apply selection. Do
233
- not delete or hand-edit the ownership journal to force adoption.
133
+ verification. With `--yes`, it runs those checks after approved migration.
134
+ Explicit Claude cleanup with `--verify` requires `--yes`.
234
135
 
235
136
  `--force` applies only where the owning migration contract explicitly permits
236
- replacement. It does not convert user-owned resources into Agentera-owned
237
- resources and does not approve native or trust actions.
137
+ replacement. It never adopts user-owned resources.
238
138
 
239
139
  ## Maintainer verification
240
140
 
@@ -244,8 +144,14 @@ Release preparation does not publish, tag, or push:
244
144
  pnpm -C packages/cli test
245
145
  pnpm -C packages/cli run typecheck
246
146
  pnpm -C packages/cli build
247
- node packages/cli/dist/bin/agentera.js check validate lifecycle-adapters
147
+ node packages/cli/dist/bin/agentera.js check validate capability-contract --format json
248
148
  node packages/cli/dist/bin/agentera.js check validate release-metadata
249
- pnpm -C packages/cli run bundle:data
250
- npm pack --dry-run --json --ignore-scripts
251
149
  ```
150
+
151
+ ## Mutation ownership
152
+
153
+ Upgrade apply holds the required project lock before migration begins. Explicit
154
+ Claude cleanup additionally uses its ownership journal and shared lock. Lock
155
+ creation is atomic, and release succeeds only for the matching ownership token.
156
+ A stale or malformed lock stops the operation; inspect the named lock file,
157
+ remove only that file after confirming no operation owns it, then rerun.
@@ -2,19 +2,16 @@ interface: PackageManifest
2
2
  status: implemented
3
3
  implemented_by: references/adapters/package-registry.yaml
4
4
  intent: >
5
- Define the package and release-surface access Interface before introducing an
6
- executable registry Module. This model records ownership boundaries and the
7
- validation contract for future PackageManifest records. The executable registry
8
- at references/adapters/package-registry.yaml and its TypeScript PackageRegistry loader
9
- now implement this interface; this model remains the authoritative design contract.
5
+ Define the self-contained Agentera package as the TypeScript CLI plus one
6
+ canonical shared skill and its required contracts. Host-native manifests,
7
+ runtime source trees, and native installation commands are not package
8
+ surfaces.
10
9
  record:
11
10
  required_groups:
12
11
  - identity
13
12
  - version_authority
14
13
  - version_surfaces
15
- - runtime_package_manifests
16
14
  - bundle_surfaces
17
- - package_commands
18
15
  - docs_targets
19
16
  - release_policy
20
17
  groups:
@@ -23,7 +20,7 @@ record:
23
20
  owns:
24
21
  - package id
25
22
  - suite name
26
- - skill path
23
+ - canonical shared-skill path
27
24
  - capability count expectation
28
25
  required_fields:
29
26
  id: string
@@ -44,56 +41,59 @@ record:
44
41
  version_surfaces:
45
42
  type: object
46
43
  owns:
47
- - version-bearing repository surfaces
44
+ - CLI and shared-skill version surfaces
48
45
  - version extraction selectors
49
- - non-version surface exclusions
50
46
  required_fields:
51
47
  surfaces: list[object]
52
- excluded_runtime_manifests: list[repo_relative_path]
53
- runtime_package_manifests:
54
- type: object
55
- owns:
56
- - runtime package manifest paths
57
- - runtime package shape expectations
58
- - shared package path expectations
59
- required_fields:
60
- manifests: list[object]
61
- shared_paths_policy: string
62
48
  bundle_surfaces:
63
49
  type: object
64
50
  owns:
65
- - bundled directories
66
- - bundled files
67
- - generated-only bundled files
51
+ - canonical bundled directories
52
+ - canonical bundled files
53
+ - generated bundled files
68
54
  - bundle skip rules
69
- - bundle mismatch standardization target
70
55
  required_fields:
71
- directories: list[repo_relative_path]
72
- files: list[repo_relative_path]
56
+ directories: list[object]
57
+ files: list[object]
73
58
  generated_files: list[generated_bundle_file]
74
59
  skip_parts: list[string]
75
60
  skip_suffixes: list[string]
76
- package_commands:
77
- type: object
78
- owns:
79
- - package-manager command specifications
80
- - package command action names
81
- - package command runtime scope
82
- - package write-gate preservation
83
- required_fields:
84
- commands: list[object]
85
- safety: object
61
+ entry_contracts:
62
+ directory_and_file:
63
+ applies_to:
64
+ - directories
65
+ - files
66
+ required_fields:
67
+ - id
68
+ - path
69
+ allowed_fields:
70
+ - id
71
+ - path
72
+ field_types:
73
+ id: string
74
+ path: repo_relative_path
75
+ uniqueness:
76
+ id: global_across_directories_and_files
77
+ path: global_across_directories_and_files
78
+ path_format: normalized_relative_posix
79
+ forbidden_path_forms:
80
+ - posix_absolute
81
+ - windows_absolute_or_drive_prefixed
82
+ - backslash
83
+ - dot_or_dot_dot_segment
84
+ - leading_dot_slash
85
+ - trailing_separator
86
+ - noncanonical_posix_normalization
87
+ value_authority: references/adapters/package-registry.yaml records[*].bundle_surfaces
86
88
  docs_targets:
87
89
  type: object
88
90
  owns:
89
91
  - docs version targets
90
92
  - docs index targets for package surfaces
91
- - non-version docs exclusions
92
93
  required_fields:
93
94
  version_files_source: string
94
95
  version_files: list[repo_relative_path]
95
96
  index_targets: list[repo_relative_path]
96
- excluded_version_files: list[repo_relative_path]
97
97
  release_policy:
98
98
  type: object
99
99
  owns:
@@ -113,8 +113,8 @@ ownership:
113
113
  access_interface: PackageManifest
114
114
  rule: >
115
115
  registry.json remains the persisted suite-version authority. PackageManifest
116
- becomes the typed access Interface for consumers after migration, unless an
117
- explicit future ADR changes persisted authority.
116
+ is the typed access interface unless an explicit future ADR changes that
117
+ authority.
118
118
  future_authority_change_requires: explicit ADR
119
119
  install_root_delegated:
120
120
  owner: packages/cli/src/state/installRoot.ts
@@ -125,204 +125,3 @@ ownership:
125
125
  - stale classification
126
126
  - unmanaged classification
127
127
  - app-home diagnostics
128
- runtime_adapter_delegated:
129
- owner: packages/cli/src/registries/runtimeAdapterRegistry.ts
130
- forbidden_in_package_manifest:
131
- - runtime discovery
132
- - lifecycle events
133
- - artifact validation hooks
134
- - config target paths
135
- - runtime diagnostics
136
- - documentation claims
137
- command_safety:
138
- argv_only: true
139
- approved_executables:
140
- - npx
141
- approved_actions:
142
- - remove-legacy-skills
143
- - install-agentera-skill
144
- approved_runtimes:
145
- - all
146
- - opencode
147
- - codex
148
- - cursor
149
- - copilot
150
- approved_runtime_agents:
151
- - opencode
152
- approved_package_tool:
153
- executable: npx
154
- command_namespace: skills
155
- actions:
156
- - remove
157
- - add
158
- cleanup_actions:
159
- - remove-legacy-skills
160
- runtime_install_actions:
161
- - install-agentera-skill
162
- gates:
163
- update_packages_required_to_plan: true
164
- yes_required_to_execute: true
165
- preserve_existing_write_gates: true
166
- sample_manifest:
167
- identity:
168
- id: agentera
169
- name: agentera
170
- skill_path: skills/agentera
171
- expected_capabilities: 12
172
- version_authority:
173
- persisted_authority: registry.json
174
- selector: skills[0].version
175
- access_interface: PackageManifest
176
- future_authority_change_requires: explicit ADR
177
- version_surfaces:
178
- surfaces:
179
- - id: registry
180
- path: registry.json
181
- selector: skills[0].version
182
- - id: cli-package
183
- path: packages/cli/package.json
184
- selector: version
185
- - id: cli-suite-marker
186
- path: packages/cli/package.json
187
- selector: agentera.suiteVersion
188
- - id: copilot-root
189
- path: plugin.json
190
- selector: version
191
- - id: copilot-repository
192
- path: .github/plugin/plugin.json
193
- selector: version
194
- - id: codex-plugin
195
- path: .codex-plugin/plugin.json
196
- selector: version
197
- - id: cursor-plugin
198
- path: .cursor-plugin/plugin.json
199
- selector: version
200
- - id: opencode-plugin-marker
201
- path: .opencode/plugins/agentera.js
202
- selector: AGENTERA_VERSION
203
- - id: skill-frontmatter
204
- path: skills/agentera/SKILL.md
205
- selector: frontmatter.version
206
- excluded_runtime_manifests:
207
- - .opencode/package.json
208
- runtime_package_manifests:
209
- manifests:
210
- - runtime: copilot
211
- path: plugin.json
212
- version_bearing: true
213
- package_shape: suite-bundle
214
- - runtime: copilot
215
- path: .github/plugin/plugin.json
216
- version_bearing: true
217
- package_shape: suite-bundle
218
- - runtime: codex
219
- path: .codex-plugin/plugin.json
220
- version_bearing: true
221
- package_shape: suite-bundle
222
- - runtime: cursor
223
- path: .cursor-plugin/plugin.json
224
- version_bearing: true
225
- package_shape: suite-bundle
226
- - runtime: opencode
227
- path: .opencode/package.json
228
- version_bearing: false
229
- package_shape: npm-loadable-plugin
230
- shared_paths_policy: validate minimum shared paths separately from full bundle includes
231
- bundle_surfaces:
232
- directories:
233
- - skills
234
- - references
235
- - agents
236
- - hooks
237
- - .github/hooks
238
- - .codex-plugin
239
- - .cursor-plugin
240
- - .cursor/agents
241
- - .opencode/commands
242
- - .opencode/agents
243
- - .opencode/plugins
244
- files:
245
- - README.md
246
- - UPGRADE.md
247
- - CHANGELOG.md
248
- - DESIGN.md
249
- - LICENSE
250
- - registry.json
251
- - plugin.json
252
- - .github/plugin/plugin.json
253
- - .opencode/package.json
254
- - .cursor/hooks.json
255
- skip_parts:
256
- - __pycache__
257
- - .pytest_cache
258
- - node_modules
259
- skip_suffixes:
260
- - .pyc
261
- - .pyo
262
- package_commands:
263
- commands:
264
- - runtime: all
265
- action: remove-legacy-skills
266
- phase: cleanup
267
- argv:
268
- - npx
269
- - skills
270
- - remove
271
- - hej
272
- - visionera
273
- - resonera
274
- - inspirera
275
- - planera
276
- - realisera
277
- - inspektera
278
- - optimera
279
- - orkestrera
280
- - visualisera
281
- - dokumentera
282
- - profilera
283
- - -g
284
- - -y
285
- skipped_without_update_packages_message: legacy skill removal skipped; pass --update-packages to run
286
- - runtime: opencode
287
- action: install-agentera-skill
288
- phase: runtime-install
289
- argv:
290
- - npx
291
- - skills
292
- - add
293
- - jgabor/agentera
294
- - -g
295
- - -a
296
- - opencode
297
- - --skill
298
- - agentera
299
- - -y
300
- skipped_without_update_packages_message: external package update skipped; pass --update-packages to run
301
- safety:
302
- argv_only: true
303
- update_packages_required_to_plan: true
304
- yes_required_to_execute: true
305
- preserve_existing_write_gates: true
306
- cleanup_phase: cleanup
307
- runtime_install_phase: runtime-install
308
- docs_targets:
309
- version_files_source: .agentera/docs.yaml conventions.version_files
310
- version_files:
311
- - packages/cli/package.json
312
- - plugin.json
313
- - .github/plugin/plugin.json
314
- - .codex-plugin/plugin.json
315
- - .cursor-plugin/plugin.json
316
- - .opencode/plugins/agentera.js
317
- - skills/agentera/SKILL.md
318
- - registry.json
319
- index_targets:
320
- - references/adapters/package-surface-characterization.md
321
- - references/adapters/package-manifest-interface-model.yaml
322
- - references/adapters/package-registry.yaml
323
- excluded_version_files:
324
- - .opencode/package.json
325
- release_policy:
326
- semver_policy_source: .agentera/docs.yaml conventions.semver_policy
327
- version_bump_required_for_interface_only_change: false
328
- release_publication_in_scope: false