agentera 3.0.0-dev.41 → 3.0.0-dev.46

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 (728) hide show
  1. package/README.md +33 -4
  2. package/bundle/CHANGELOG.md +91 -1
  3. package/bundle/README.md +26 -19
  4. package/bundle/UPGRADE.md +50 -15
  5. package/bundle/references/adapters/package-publication.json +408 -14
  6. package/bundle/references/adapters/package-registry.yaml +414 -1
  7. package/bundle/references/adapters/package-surface-characterization.md +20 -0
  8. package/bundle/references/adapters/runtime-retired-resources.yaml +237 -1
  9. package/bundle/references/analysis/evidence-tier-authority.yaml +3 -3
  10. package/bundle/references/analysis/verification-policy.yaml +48 -0
  11. package/bundle/references/artifacts/artifact-registry-interface-model.yaml +1 -1
  12. package/bundle/references/artifacts/glossary-entry-contract.yaml +11 -11
  13. package/bundle/references/artifacts/state-storage-authority.yaml +170 -118
  14. package/bundle/references/cli/capability-instruction-contract.yaml +4 -4
  15. package/bundle/references/cli/hybrid-route-contract.yaml +27 -5
  16. package/bundle/references/cli/routing-model.md +20 -4
  17. package/bundle/references/cli/trigger-schema-enrichment.md +7 -0
  18. package/bundle/references/cli/vocabulary-index.yaml +1 -3
  19. package/bundle/references/cli/vocabulary.md +18 -60
  20. package/bundle/references/meta/retained-reference-authority.yaml +151 -0
  21. package/bundle/skills/agentera/SKILL.md +32 -16
  22. package/bundle/skills/agentera/capabilities/audit/schemas/artifacts.yaml +3 -3
  23. package/bundle/skills/agentera/capabilities/audit/schemas/validation.yaml +1 -1
  24. package/bundle/skills/agentera/capabilities/build/schemas/artifacts.yaml +5 -5
  25. package/bundle/skills/agentera/capabilities/build/schemas/validation.yaml +5 -5
  26. package/bundle/skills/agentera/capabilities/design/schemas/exit.yaml +2 -2
  27. package/bundle/skills/agentera/capabilities/discuss/schemas/artifacts.yaml +3 -3
  28. package/bundle/skills/agentera/capabilities/discuss/schemas/validation.yaml +2 -2
  29. package/bundle/skills/agentera/capabilities/document/schemas/artifacts.yaml +3 -3
  30. package/bundle/skills/agentera/capabilities/document/schemas/validation.yaml +1 -1
  31. package/bundle/skills/agentera/capabilities/optimize/schemas/artifacts.yaml +1 -1
  32. package/bundle/skills/agentera/capabilities/optimize/schemas/validation.yaml +1 -1
  33. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +5 -5
  34. package/bundle/skills/agentera/capabilities/orchestrate/schemas/validation.yaml +2 -2
  35. package/bundle/skills/agentera/capabilities/plan/schemas/artifacts.yaml +1 -1
  36. package/bundle/skills/agentera/capabilities/plan/schemas/validation.yaml +1 -1
  37. package/bundle/skills/agentera/capabilities/profile/schemas/validation.yaml +1 -1
  38. package/bundle/skills/agentera/capability_schema_contract.yaml +2 -2
  39. package/bundle/skills/agentera/schemas/artifacts/decisions.yaml +3 -3
  40. package/bundle/skills/agentera/schemas/artifacts/experiments.yaml +3 -3
  41. package/bundle/skills/agentera/schemas/artifacts/glossary.yaml +1 -1
  42. package/bundle/skills/agentera/schemas/artifacts/health.yaml +3 -3
  43. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +12 -10
  44. package/bundle/skills/agentera/schemas/artifacts/progress.yaml +3 -3
  45. package/bundle/skills/agentera/schemas/artifacts/todo.yaml +6 -4
  46. package/dist/analytics/extractCorpus/cli.js +0 -1
  47. package/dist/analytics/extractCorpus/copilotSessions.js +0 -1
  48. package/dist/analytics/extractCorpus/core.js +0 -1
  49. package/dist/analytics/extractCorpus/corpus.js +0 -1
  50. package/dist/analytics/extractCorpus/coverageAudit.js +0 -1
  51. package/dist/analytics/extractCorpus/cursorSessions.js +0 -1
  52. package/dist/analytics/extractCorpus/evidenceTiers.js +0 -1
  53. package/dist/analytics/extractCorpus/extractCorpusParity.js +0 -1
  54. package/dist/analytics/extractCorpus/filesystemSources.js +0 -1
  55. package/dist/analytics/extractCorpus/index.js +0 -1
  56. package/dist/analytics/extractCorpus/jsonlSessions.js +0 -1
  57. package/dist/analytics/extractCorpus/sqliteCaps.js +0 -1
  58. package/dist/analytics/extractCorpus/sqliteSessions.js +0 -1
  59. package/dist/analytics/extractCorpus/tierReader.js +0 -1
  60. package/dist/analytics/extractCorpus.js +0 -1
  61. package/dist/analytics/glossaryAdviceResolution.js +0 -1
  62. package/dist/analytics/glossaryInputAcquisition.js +0 -1
  63. package/dist/analytics/personalGlossaryAdmission.js +0 -1
  64. package/dist/analytics/personalGlossaryProfile.js +0 -1
  65. package/dist/analytics/profileSignals.js +0 -1
  66. package/dist/analytics/usageStats.js +0 -1
  67. package/dist/audit/terminologyDrift.js +0 -1
  68. package/dist/bin/agentera.js +0 -1
  69. package/dist/capabilities/audit/instructions.js +3 -4
  70. package/dist/capabilities/build/instructions.js +2 -3
  71. package/dist/capabilities/design/instructions.js +1 -2
  72. package/dist/capabilities/discuss/instructions.js +2 -3
  73. package/dist/capabilities/document/instructions.js +2 -3
  74. package/dist/capabilities/index.js +5 -4
  75. package/dist/capabilities/optimize/instructions.js +1 -2
  76. package/dist/capabilities/orchestrate/instructions.js +3 -4
  77. package/dist/capabilities/plan/instructions.js +1 -2
  78. package/dist/capabilities/profile/instructions.js +1 -2
  79. package/dist/capabilities/research/instructions.js +1 -2
  80. package/dist/capabilities/status/instructions.js +1 -2
  81. package/dist/capabilities/status/startupInstructions.js +0 -5
  82. package/dist/capabilities/vision/instructions.js +1 -2
  83. package/dist/cli/appContext.js +0 -1
  84. package/dist/cli/argvalidate.js +0 -1
  85. package/dist/cli/capabilityContext/benchmark.js +4 -4
  86. package/dist/cli/capabilityContext/bespoke.js +0 -1
  87. package/dist/cli/capabilityContext/build.js +8 -10
  88. package/dist/cli/capabilityContext/closeout.js +8 -10
  89. package/dist/cli/capabilityContext/contract.js +7 -42
  90. package/dist/cli/capabilityContext/evidence.js +12 -14
  91. package/dist/cli/capabilityContext/index.js +0 -1
  92. package/dist/cli/capabilityContext/orchestration.js +6 -8
  93. package/dist/cli/capabilityContext/planState.js +0 -1
  94. package/dist/cli/capabilityContext/progress.js +0 -1
  95. package/dist/cli/capabilityContext/projectVerification.js +0 -1
  96. package/dist/cli/capabilityContext/shared.js +2 -19
  97. package/dist/cli/capabilityContext/slim.js +0 -1
  98. package/dist/cli/capabilityContext/startup.js +24 -152
  99. package/dist/cli/capabilityContext/startupAggregation.js +68 -0
  100. package/dist/cli/capabilityContext/types.js +4 -4
  101. package/dist/cli/capabilityContext.js +0 -1
  102. package/dist/cli/commands/appHome.js +0 -1
  103. package/dist/cli/commands/capability.js +2 -2
  104. package/dist/cli/commands/compact.js +0 -1
  105. package/dist/cli/commands/doctor.js +104 -9
  106. package/dist/cli/commands/durability.js +0 -1
  107. package/dist/cli/commands/glossaryAdvice.js +0 -1
  108. package/dist/cli/commands/lint.js +0 -1
  109. package/dist/cli/commands/personalGlossary.js +0 -1
  110. package/dist/cli/commands/prime/briefOrientation.js +24 -85
  111. package/dist/cli/commands/prime/buildExecutionRequest.js +2 -2
  112. package/dist/cli/commands/prime/bundleStatus.js +0 -1
  113. package/dist/cli/commands/prime/collectEntityOrientation.js +47 -27
  114. package/dist/cli/commands/prime/collectOrientationState.js +36 -2
  115. package/dist/cli/commands/prime/orientationOutput.js +104 -84
  116. package/dist/cli/commands/prime/types.js +0 -1
  117. package/dist/cli/commands/prime/v1Migration.js +0 -1
  118. package/dist/cli/commands/prime.js +18 -36
  119. package/dist/cli/commands/profileGrounding.js +0 -1
  120. package/dist/cli/commands/query.js +2 -2
  121. package/dist/cli/commands/report.js +0 -1
  122. package/dist/cli/commands/route.js +3 -3
  123. package/dist/cli/commands/schema.js +62 -92
  124. package/dist/cli/commands/state/decisions.js +0 -1
  125. package/dist/cli/commands/state/docs.js +0 -1
  126. package/dist/cli/commands/state/experimentRecords.js +0 -1
  127. package/dist/cli/commands/state/experiments.js +0 -1
  128. package/dist/cli/commands/state/get.js +0 -1
  129. package/dist/cli/commands/state/health.js +0 -1
  130. package/dist/cli/commands/state/index.js +0 -1
  131. package/dist/cli/commands/state/list.js +0 -1
  132. package/dist/cli/commands/state/objective.js +0 -1
  133. package/dist/cli/commands/state/plan.js +0 -1
  134. package/dist/cli/commands/state/planTasks.js +0 -1
  135. package/dist/cli/commands/state/plans.js +0 -1
  136. package/dist/cli/commands/state/progress.js +0 -1
  137. package/dist/cli/commands/state/shared.js +0 -1
  138. package/dist/cli/commands/state/todo.js +0 -1
  139. package/dist/cli/commands/state/write.js +10 -1
  140. package/dist/cli/commands/upgrade.js +0 -1
  141. package/dist/cli/commands/upgradeVerify.js +0 -1
  142. package/dist/cli/commands/validate.js +106 -10
  143. package/dist/cli/commands/verify.js +0 -1
  144. package/dist/cli/contracts/bundleStatus.js +0 -1
  145. package/dist/cli/contracts/orientationState.js +0 -1
  146. package/dist/cli/dispatch/argvParser.js +0 -1
  147. package/dist/cli/dispatch/check.js +6 -24
  148. package/dist/cli/dispatch/commands.js +3 -3
  149. package/dist/cli/dispatch/index.js +9 -36
  150. package/dist/cli/dispatch/lifecycle.js +11 -57
  151. package/dist/cli/dispatch/prime.js +0 -1
  152. package/dist/cli/dispatch/projections.js +17 -0
  153. package/dist/cli/dispatch/shared.js +0 -1
  154. package/dist/cli/dispatch/state.js +0 -1
  155. package/dist/cli/dispatch.js +0 -1
  156. package/dist/cli/errors.js +0 -1
  157. package/dist/cli/help.js +51 -30
  158. package/dist/cli/migrationRequired.js +3 -5
  159. package/dist/cli/orientation/attention.js +4 -17
  160. package/dist/cli/orientation/corpusCoverage.js +0 -1
  161. package/dist/cli/orientation.js +5 -5
  162. package/dist/cli/planArtifacts.js +0 -1
  163. package/dist/cli/planEvidence.js +0 -1
  164. package/dist/cli/planLifecycleState.js +2 -2
  165. package/dist/cli/planTaskIndex.js +0 -1
  166. package/dist/cli/preCutoverCommand.js +32 -0
  167. package/dist/cli/prime-blob.js +6 -6
  168. package/dist/cli/profileAcquisition.js +0 -1
  169. package/dist/cli/startupCompletenessContract.js +0 -1
  170. package/dist/cli/stateQuery.js +17 -21
  171. package/dist/cli/structured.js +0 -1
  172. package/dist/cli/todoMarkdown.js +0 -1
  173. package/dist/cli/todoReadinessSelection.js +2 -2
  174. package/dist/cli/todoSeverity.js +0 -1
  175. package/dist/core/atomicWriter.js +0 -1
  176. package/dist/core/developmentChannel.js +1 -0
  177. package/dist/core/developmentInvocation.js +374 -0
  178. package/dist/core/difflib.js +0 -1
  179. package/dist/core/envPaths.js +0 -1
  180. package/dist/core/jsonValue.js +0 -1
  181. package/dist/core/paths.js +0 -1
  182. package/dist/core/pyjson.js +0 -1
  183. package/dist/core/shell.js +0 -1
  184. package/dist/core/skillIdentity.js +0 -1
  185. package/dist/core/sourceRoot.js +9 -12
  186. package/dist/core/text.js +0 -1
  187. package/dist/core/toml.js +0 -1
  188. package/dist/core/yaml.js +0 -1
  189. package/dist/eval/evalSkills.js +0 -1
  190. package/dist/eval/hybridRouteEvaluation.js +0 -1
  191. package/dist/eval/semanticEval.js +0 -1
  192. package/dist/eval/semanticFixtures.js +0 -1
  193. package/dist/hooks/common.js +1 -54
  194. package/dist/hooks/compaction/apply.js +0 -1
  195. package/dist/hooks/compaction/dryRun.js +0 -1
  196. package/dist/hooks/compaction/index.js +1 -2
  197. package/dist/hooks/compaction/parse.js +0 -1
  198. package/dist/hooks/compaction/retention.js +0 -1
  199. package/dist/hooks/compaction/status.js +0 -1
  200. package/dist/hooks/compaction/types.js +0 -1
  201. package/dist/hooks/validateArtifact/agentFacing.js +0 -1
  202. package/dist/hooks/validateArtifact/index.js +6 -65
  203. package/dist/hooks/validateArtifact/markdown.js +0 -1
  204. package/dist/hooks/validateArtifact/schema.js +0 -1
  205. package/dist/hooks/validateArtifact/traversal.js +0 -1
  206. package/dist/hooks/validateArtifact/violations.js +0 -1
  207. package/dist/migrate/v2HandoffManifest.js +0 -3
  208. package/dist/registries/activationContract.js +2 -0
  209. package/dist/registries/activationTuples.js +106 -0
  210. package/dist/registries/artifactProtocolIds.js +0 -1
  211. package/dist/registries/artifactRegistry.js +0 -1
  212. package/dist/registries/artifactSchemaProjection.js +0 -1
  213. package/dist/registries/capabilityContract.js +0 -1
  214. package/dist/registries/evaluatorHandoffContract.js +0 -1
  215. package/dist/registries/evidenceTierContract.js +0 -1
  216. package/dist/registries/glossaryAdviceContract.js +2 -2
  217. package/dist/registries/glossaryCaveatContract.js +0 -1
  218. package/dist/registries/glossaryConsumerContractValidation.js +5 -6
  219. package/dist/registries/glossaryEntryContract.js +8 -8
  220. package/dist/registries/glossaryTermIdentity.js +0 -1
  221. package/dist/registries/glossaryTermOccurrence.js +0 -1
  222. package/dist/registries/hybridRoute.js +73 -2
  223. package/dist/registries/hybridRouteReceipt.js +2 -2
  224. package/dist/registries/packagePublication.js +229 -0
  225. package/dist/registries/packageRegistry.js +118 -2
  226. package/dist/registries/todoReadinessContract.js +0 -1
  227. package/dist/registries/triggerLoader.js +0 -1
  228. package/dist/registries/verbosityBudgetContract.js +0 -1
  229. package/dist/release/releaseMetadata.js +69 -3
  230. package/dist/runtime/lifecycleAdapterContract.js +0 -1
  231. package/dist/runtime/lifecycleAdapters.js +0 -1
  232. package/dist/runtime/lifecycleAuthority.js +0 -1
  233. package/dist/runtime/lifecycleOperationContract.js +12 -3
  234. package/dist/runtime/lifecycleOperations.js +0 -1
  235. package/dist/runtime/lifecycleOwnershipJournal.js +0 -1
  236. package/dist/runtime/lifecyclePublication.js +0 -1
  237. package/dist/runtime/lifecycleSnapshot.js +0 -1
  238. package/dist/runtime/nativeResourceCleanup.js +191 -6
  239. package/dist/setup/opencode.js +0 -1
  240. package/dist/setup/opencodeConstants.js +0 -1
  241. package/dist/setup/sharedSkill.js +0 -1
  242. package/dist/setup/smokeChecks.js +1 -33
  243. package/dist/state/archiveDiscovery.js +0 -1
  244. package/dist/state/archivePublication.js +0 -1
  245. package/dist/state/archiveRecovery.js +0 -1
  246. package/dist/state/archiveReplay.js +0 -1
  247. package/dist/state/canonicalMigrationRecord.js +0 -1
  248. package/dist/state/changelog.js +0 -1
  249. package/dist/state/decisionEntities.js +0 -1
  250. package/dist/state/decisionLegacyValidation.js +0 -1
  251. package/dist/state/decisionMigrationProvenance.js +0 -1
  252. package/dist/state/decisionOverlay.js +0 -1
  253. package/dist/state/decisionRevision.js +0 -1
  254. package/dist/state/decisionRevisionMigration.js +0 -1
  255. package/dist/state/directRetrieval.js +0 -1
  256. package/dist/state/durability.js +0 -1
  257. package/dist/state/entityCutover.js +174 -9
  258. package/dist/state/entityCutoverGit.js +0 -1
  259. package/dist/state/entityGlossaryAuthority.js +0 -1
  260. package/dist/state/entityListProjection.js +0 -1
  261. package/dist/state/entityListRuntimeRegistry.js +46 -11
  262. package/dist/state/entityMigrationCausality.js +3 -5
  263. package/dist/state/entityMigrationIdentity.js +0 -1
  264. package/dist/state/entityMigrationPreview.js +35 -73
  265. package/dist/state/entityMigrationTodo.js +133 -0
  266. package/dist/state/entityPublicationContext.js +0 -1
  267. package/dist/state/entityRetrievalHelp.js +53 -23
  268. package/dist/state/entityStorage.js +0 -1
  269. package/dist/state/exactReplacementRecovery.js +0 -1
  270. package/dist/state/experimentArchive.js +0 -1
  271. package/dist/state/experimentIdentity.js +0 -1
  272. package/dist/state/healthEntities.js +0 -1
  273. package/dist/state/healthEntityValidation.js +0 -1
  274. package/dist/state/healthRepair.js +0 -1
  275. package/dist/state/installRoot.js +0 -1
  276. package/dist/state/legacyEntityCutoverEvidence.js +0 -1
  277. package/dist/state/legacyIdentity.js +0 -1
  278. package/dist/state/legacySummaryRecord.js +0 -1
  279. package/dist/state/listAccounting.js +0 -1
  280. package/dist/state/listClassification.js +0 -1
  281. package/dist/state/listCursor.js +0 -1
  282. package/dist/state/listRetrieval.js +0 -1
  283. package/dist/state/migrationSourceBinding.js +0 -1
  284. package/dist/state/objectiveExperimentEntities.js +0 -1
  285. package/dist/state/planEntities.js +0 -1
  286. package/dist/state/planIdentity.js +0 -1
  287. package/dist/state/planRetrieval.js +0 -1
  288. package/dist/state/planTaskRetrieval.js +0 -1
  289. package/dist/state/progressEntities.js +0 -1
  290. package/dist/state/progressGlossaryCaveat.js +0 -1
  291. package/dist/state/progressPublicationOrder.js +0 -1
  292. package/dist/state/projectRoot.js +0 -1
  293. package/dist/state/projectionPolicy.js +0 -1
  294. package/dist/state/retrievalAuthority.js +0 -1
  295. package/dist/state/safeProjectFile.js +0 -1
  296. package/dist/state/startupAnalysis/benchmark.js +0 -1
  297. package/dist/state/startupAnalysis/contract.js +44 -10
  298. package/dist/state/startupAnalysis/helpers.js +0 -1
  299. package/dist/state/startupAnalysis/index.js +0 -1
  300. package/dist/state/startupAnalysis/metrics.js +0 -1
  301. package/dist/state/startupAnalysis/records.js +0 -1
  302. package/dist/state/startupAnalysis/report.js +0 -1
  303. package/dist/state/startupAnalysis/threshold.js +0 -1
  304. package/dist/state/startupAnalysis.js +0 -1
  305. package/dist/state/startupProjection.js +2 -2
  306. package/dist/state/stateMode.js +0 -1
  307. package/dist/state/stateStorageAuthority.js +0 -1
  308. package/dist/state/summaryEntityRead.js +0 -1
  309. package/dist/state/summaryMigrationProvenance.js +0 -1
  310. package/dist/state/summarySourceRowAuthority.js +0 -1
  311. package/dist/state/todoDocsEntities.js +161 -83
  312. package/dist/state/todoDocsEntityValidation.js +0 -1
  313. package/dist/state/todoMarkdownProjection.js +51 -0
  314. package/dist/state/todoReconciliationActivation.js +73 -4
  315. package/dist/state/todoReconciliationInspection.js +173 -0
  316. package/dist/state/todoReconciliationRepair.js +170 -0
  317. package/dist/state/todoReconciliationTransaction.js +41 -13
  318. package/dist/state/write/assign.js +0 -1
  319. package/dist/state/write/candidateMutation.js +0 -1
  320. package/dist/state/write/errors.js +0 -1
  321. package/dist/state/write/experimentPublication.js +0 -1
  322. package/dist/state/write/explain.js +0 -1
  323. package/dist/state/write/fields.js +0 -1
  324. package/dist/state/write/glossaryPublication.js +0 -1
  325. package/dist/state/write/grammar.js +13 -4
  326. package/dist/state/write/helpers.js +0 -1
  327. package/dist/state/write/index.js +0 -1
  328. package/dist/state/write/input.js +0 -1
  329. package/dist/state/write/lock.js +0 -1
  330. package/dist/state/write/mutation.js +0 -1
  331. package/dist/state/write/operations.js +0 -1
  332. package/dist/state/write/planEvaluation.js +0 -1
  333. package/dist/state/write/planPublication.js +0 -1
  334. package/dist/state/write/runtimeOperations.js +83 -6
  335. package/dist/state/write/serialize.js +0 -1
  336. package/dist/state/write/transaction.js +0 -1
  337. package/dist/state/write/validate.js +0 -1
  338. package/dist/upgrade/appContentRefresh.js +0 -1
  339. package/dist/upgrade/appModel.js +0 -1
  340. package/dist/upgrade/atomicWriter.js +0 -1
  341. package/dist/upgrade/bundleEvidence.js +0 -1
  342. package/dist/upgrade/channels.js +0 -1
  343. package/dist/upgrade/compatibility.js +0 -1
  344. package/dist/upgrade/doctor.js +0 -1
  345. package/dist/upgrade/doctorClassifier.js +0 -1
  346. package/dist/upgrade/installedHooksRetirement.js +0 -1
  347. package/dist/upgrade/legacyAgentCleanup.js +0 -1
  348. package/dist/upgrade/lifecycleUpgrade.js +0 -1
  349. package/dist/upgrade/migrateArtifactsV2ToV3.js +7 -15
  350. package/dist/upgrade/migrationPublication.js +0 -1
  351. package/dist/upgrade/nextMajorDoctor.js +0 -1
  352. package/dist/upgrade/npxPlatformStatus.js +0 -1
  353. package/dist/upgrade/projectIntegration.js +4 -17
  354. package/dist/upgrade/projectIntegrationDecision.js +0 -1
  355. package/dist/upgrade/retiredResourceDiagnostics.js +117 -0
  356. package/dist/upgrade/runtimeMigration.js +61 -190
  357. package/dist/upgrade/upgradeCommands.js +5 -1
  358. package/dist/upgrade/upgradeLock.js +0 -1
  359. package/dist/upgrade/upgradeOrchestrator.js +52 -9
  360. package/dist/upgrade/v3CapabilitySurface.js +0 -1
  361. package/dist/upgrade/versionResolution.js +0 -1
  362. package/dist/validate/activationArtifactEvidence.js +844 -0
  363. package/dist/validate/activationConjunction.js +816 -0
  364. package/dist/validate/activationEvidenceManifest.js +515 -0
  365. package/dist/validate/activationPackageSemantics.js +29 -0
  366. package/dist/validate/appHomeContract.js +0 -2
  367. package/dist/validate/bootstrapAuthority.js +44 -0
  368. package/dist/validate/capability.js +0 -1
  369. package/dist/validate/crossCapability.js +0 -1
  370. package/dist/validate/retainedReferenceAuthority.js +879 -0
  371. package/dist/validate/selfAudit.js +0 -1
  372. package/dist/validate/v1LegacyCruft.js +0 -10
  373. package/dist/validate/vocabularyAuthority.js +6 -8
  374. package/package.json +12 -5
  375. package/bundle/references/adapters/package-manifest-interface-model.yaml +0 -127
  376. package/bundle/references/analysis/benchmark.md +0 -271
  377. package/bundle/references/analysis/startup-measurement-contract.yaml +0 -435
  378. package/bundle/references/cli/agent-ready-state-contract.yaml +0 -1015
  379. package/bundle/references/cli/audience-namespace-cli-migration.yaml +0 -395
  380. package/bundle/references/cli/bundle-skill-vocabulary.yaml +0 -241
  381. package/bundle/references/cli/capability-instruction-structure.md +0 -144
  382. package/bundle/references/cli/capability-tool-classification.yaml +0 -53
  383. package/bundle/references/cli/coexistence-probe.yaml +0 -13
  384. package/bundle/references/cli/parity-expected-actual-template.md +0 -30
  385. package/bundle/references/cli/prime-consumer-compatibility.yaml +0 -701
  386. package/bundle/references/cli/routing-execution-vocabulary.yaml +0 -259
  387. package/bundle/references/cli/single-name-protocol.yaml +0 -42
  388. package/bundle/references/cli/upgrade-repair-wording.md +0 -25
  389. package/bundle/references/cli/v3-handoff-manifest.schema.yaml +0 -97
  390. package/bundle/references/meta/documentation-inventory.md +0 -50
  391. package/bundle/skills/agentera/references/contract.md +0 -1097
  392. package/dist/analytics/extractCorpus/cli.js.map +0 -1
  393. package/dist/analytics/extractCorpus/copilotSessions.js.map +0 -1
  394. package/dist/analytics/extractCorpus/core.js.map +0 -1
  395. package/dist/analytics/extractCorpus/corpus.js.map +0 -1
  396. package/dist/analytics/extractCorpus/coverageAudit.js.map +0 -1
  397. package/dist/analytics/extractCorpus/cursorSessions.js.map +0 -1
  398. package/dist/analytics/extractCorpus/evidenceTiers.js.map +0 -1
  399. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +0 -1
  400. package/dist/analytics/extractCorpus/filesystemSources.js.map +0 -1
  401. package/dist/analytics/extractCorpus/index.js.map +0 -1
  402. package/dist/analytics/extractCorpus/jsonlSessions.js.map +0 -1
  403. package/dist/analytics/extractCorpus/sqliteCaps.js.map +0 -1
  404. package/dist/analytics/extractCorpus/sqliteSessions.js.map +0 -1
  405. package/dist/analytics/extractCorpus/tierReader.js.map +0 -1
  406. package/dist/analytics/extractCorpus.js.map +0 -1
  407. package/dist/analytics/glossaryAdviceResolution.js.map +0 -1
  408. package/dist/analytics/glossaryInputAcquisition.js.map +0 -1
  409. package/dist/analytics/personalGlossaryAdmission.js.map +0 -1
  410. package/dist/analytics/personalGlossaryProfile.js.map +0 -1
  411. package/dist/analytics/profileSignals.js.map +0 -1
  412. package/dist/analytics/usageStats.js.map +0 -1
  413. package/dist/audit/terminologyDrift.js.map +0 -1
  414. package/dist/bin/agentera.js.map +0 -1
  415. package/dist/capabilities/audit/instructions.js.map +0 -1
  416. package/dist/capabilities/build/instructions.js.map +0 -1
  417. package/dist/capabilities/design/instructions.js.map +0 -1
  418. package/dist/capabilities/discuss/instructions.js.map +0 -1
  419. package/dist/capabilities/document/instructions.js.map +0 -1
  420. package/dist/capabilities/index.js.map +0 -1
  421. package/dist/capabilities/optimize/instructions.js.map +0 -1
  422. package/dist/capabilities/orchestrate/instructions.js.map +0 -1
  423. package/dist/capabilities/plan/instructions.js.map +0 -1
  424. package/dist/capabilities/profile/instructions.js.map +0 -1
  425. package/dist/capabilities/research/instructions.js.map +0 -1
  426. package/dist/capabilities/status/instructions.js.map +0 -1
  427. package/dist/capabilities/status/startupInstructions.js.map +0 -1
  428. package/dist/capabilities/vision/instructions.js.map +0 -1
  429. package/dist/cli/appContext.js.map +0 -1
  430. package/dist/cli/argvalidate.js.map +0 -1
  431. package/dist/cli/capabilityContext/benchmark.js.map +0 -1
  432. package/dist/cli/capabilityContext/bespoke.js.map +0 -1
  433. package/dist/cli/capabilityContext/build.js.map +0 -1
  434. package/dist/cli/capabilityContext/closeout.js.map +0 -1
  435. package/dist/cli/capabilityContext/contract.js.map +0 -1
  436. package/dist/cli/capabilityContext/evidence.js.map +0 -1
  437. package/dist/cli/capabilityContext/index.js.map +0 -1
  438. package/dist/cli/capabilityContext/orchestration.js.map +0 -1
  439. package/dist/cli/capabilityContext/planState.js.map +0 -1
  440. package/dist/cli/capabilityContext/progress.js.map +0 -1
  441. package/dist/cli/capabilityContext/projectVerification.js.map +0 -1
  442. package/dist/cli/capabilityContext/shared.js.map +0 -1
  443. package/dist/cli/capabilityContext/slim.js.map +0 -1
  444. package/dist/cli/capabilityContext/startup.js.map +0 -1
  445. package/dist/cli/capabilityContext/types.js.map +0 -1
  446. package/dist/cli/capabilityContext.js.map +0 -1
  447. package/dist/cli/commands/appHome.js.map +0 -1
  448. package/dist/cli/commands/capability.js.map +0 -1
  449. package/dist/cli/commands/compact.js.map +0 -1
  450. package/dist/cli/commands/doctor.js.map +0 -1
  451. package/dist/cli/commands/durability.js.map +0 -1
  452. package/dist/cli/commands/entityMigrate.js +0 -132
  453. package/dist/cli/commands/entityMigrate.js.map +0 -1
  454. package/dist/cli/commands/glossaryAdvice.js.map +0 -1
  455. package/dist/cli/commands/lint.js.map +0 -1
  456. package/dist/cli/commands/personalGlossary.js.map +0 -1
  457. package/dist/cli/commands/prime/briefOrientation.js.map +0 -1
  458. package/dist/cli/commands/prime/buildExecutionRequest.js.map +0 -1
  459. package/dist/cli/commands/prime/bundleStatus.js.map +0 -1
  460. package/dist/cli/commands/prime/collectEntityOrientation.js.map +0 -1
  461. package/dist/cli/commands/prime/collectOrientationState.js.map +0 -1
  462. package/dist/cli/commands/prime/orientationOutput.js.map +0 -1
  463. package/dist/cli/commands/prime/types.js.map +0 -1
  464. package/dist/cli/commands/prime/v1Migration.js.map +0 -1
  465. package/dist/cli/commands/prime.js.map +0 -1
  466. package/dist/cli/commands/profileGrounding.js.map +0 -1
  467. package/dist/cli/commands/query.js.map +0 -1
  468. package/dist/cli/commands/report.js.map +0 -1
  469. package/dist/cli/commands/route.js.map +0 -1
  470. package/dist/cli/commands/schema.js.map +0 -1
  471. package/dist/cli/commands/state/decisions.js.map +0 -1
  472. package/dist/cli/commands/state/docs.js.map +0 -1
  473. package/dist/cli/commands/state/experimentRecords.js.map +0 -1
  474. package/dist/cli/commands/state/experiments.js.map +0 -1
  475. package/dist/cli/commands/state/get.js.map +0 -1
  476. package/dist/cli/commands/state/health.js.map +0 -1
  477. package/dist/cli/commands/state/index.js.map +0 -1
  478. package/dist/cli/commands/state/list.js.map +0 -1
  479. package/dist/cli/commands/state/objective.js.map +0 -1
  480. package/dist/cli/commands/state/plan.js.map +0 -1
  481. package/dist/cli/commands/state/planTasks.js.map +0 -1
  482. package/dist/cli/commands/state/plans.js.map +0 -1
  483. package/dist/cli/commands/state/progress.js.map +0 -1
  484. package/dist/cli/commands/state/shared.js.map +0 -1
  485. package/dist/cli/commands/state/todo.js.map +0 -1
  486. package/dist/cli/commands/state/write.js.map +0 -1
  487. package/dist/cli/commands/upgrade.js.map +0 -1
  488. package/dist/cli/commands/upgradeVerify.js.map +0 -1
  489. package/dist/cli/commands/validate.js.map +0 -1
  490. package/dist/cli/commands/verify.js.map +0 -1
  491. package/dist/cli/contracts/bundleStatus.js.map +0 -1
  492. package/dist/cli/contracts/orientationState.js.map +0 -1
  493. package/dist/cli/dispatch/argvParser.js.map +0 -1
  494. package/dist/cli/dispatch/check.js.map +0 -1
  495. package/dist/cli/dispatch/commands.js.map +0 -1
  496. package/dist/cli/dispatch/index.js.map +0 -1
  497. package/dist/cli/dispatch/lifecycle.js.map +0 -1
  498. package/dist/cli/dispatch/prime.js.map +0 -1
  499. package/dist/cli/dispatch/shared.js.map +0 -1
  500. package/dist/cli/dispatch/state.js.map +0 -1
  501. package/dist/cli/dispatch.js.map +0 -1
  502. package/dist/cli/errors.js.map +0 -1
  503. package/dist/cli/help.js.map +0 -1
  504. package/dist/cli/migrationRequired.js.map +0 -1
  505. package/dist/cli/orientation/attention.js.map +0 -1
  506. package/dist/cli/orientation/corpusCoverage.js.map +0 -1
  507. package/dist/cli/orientation.js.map +0 -1
  508. package/dist/cli/planArtifacts.js.map +0 -1
  509. package/dist/cli/planEvidence.js.map +0 -1
  510. package/dist/cli/planLifecycleState.js.map +0 -1
  511. package/dist/cli/planTaskIndex.js.map +0 -1
  512. package/dist/cli/prime-blob.js.map +0 -1
  513. package/dist/cli/profileAcquisition.js.map +0 -1
  514. package/dist/cli/startupCompletenessContract.js.map +0 -1
  515. package/dist/cli/stateQuery.js.map +0 -1
  516. package/dist/cli/structured.js.map +0 -1
  517. package/dist/cli/todoMarkdown.js.map +0 -1
  518. package/dist/cli/todoReadinessSelection.js.map +0 -1
  519. package/dist/cli/todoSeverity.js.map +0 -1
  520. package/dist/core/atomicWriter.js.map +0 -1
  521. package/dist/core/difflib.js.map +0 -1
  522. package/dist/core/envPaths.js.map +0 -1
  523. package/dist/core/jsonValue.js.map +0 -1
  524. package/dist/core/paths.js.map +0 -1
  525. package/dist/core/pyjson.js.map +0 -1
  526. package/dist/core/shell.js.map +0 -1
  527. package/dist/core/skillIdentity.js.map +0 -1
  528. package/dist/core/sourceRoot.js.map +0 -1
  529. package/dist/core/text.js.map +0 -1
  530. package/dist/core/toml.js.map +0 -1
  531. package/dist/core/yaml.js.map +0 -1
  532. package/dist/eval/evalSkills.js.map +0 -1
  533. package/dist/eval/hybridRouteEvaluation.js.map +0 -1
  534. package/dist/eval/semanticEval.js.map +0 -1
  535. package/dist/eval/semanticFixtures.js.map +0 -1
  536. package/dist/hooks/common.js.map +0 -1
  537. package/dist/hooks/compaction/apply.js.map +0 -1
  538. package/dist/hooks/compaction/dryRun.js.map +0 -1
  539. package/dist/hooks/compaction/index.js.map +0 -1
  540. package/dist/hooks/compaction/parse.js.map +0 -1
  541. package/dist/hooks/compaction/retention.js.map +0 -1
  542. package/dist/hooks/compaction/status.js.map +0 -1
  543. package/dist/hooks/compaction/types.js.map +0 -1
  544. package/dist/hooks/cursorPreToolUse.js +0 -19
  545. package/dist/hooks/cursorPreToolUse.js.map +0 -1
  546. package/dist/hooks/cursorSessionStart.js +0 -64
  547. package/dist/hooks/cursorSessionStart.js.map +0 -1
  548. package/dist/hooks/projectHookInput.js +0 -26
  549. package/dist/hooks/projectHookInput.js.map +0 -1
  550. package/dist/hooks/sessionStart.js +0 -94
  551. package/dist/hooks/sessionStart.js.map +0 -1
  552. package/dist/hooks/sessionStop.js +0 -198
  553. package/dist/hooks/sessionStop.js.map +0 -1
  554. package/dist/hooks/validateArtifact/agentFacing.js.map +0 -1
  555. package/dist/hooks/validateArtifact/index.js.map +0 -1
  556. package/dist/hooks/validateArtifact/markdown.js.map +0 -1
  557. package/dist/hooks/validateArtifact/runtime.js +0 -86
  558. package/dist/hooks/validateArtifact/runtime.js.map +0 -1
  559. package/dist/hooks/validateArtifact/schema.js.map +0 -1
  560. package/dist/hooks/validateArtifact/traversal.js.map +0 -1
  561. package/dist/hooks/validateArtifact/violations.js.map +0 -1
  562. package/dist/migrate/v2HandoffManifest.js.map +0 -1
  563. package/dist/registries/artifactProtocolIds.js.map +0 -1
  564. package/dist/registries/artifactRegistry.js.map +0 -1
  565. package/dist/registries/artifactSchemaProjection.js.map +0 -1
  566. package/dist/registries/capabilityContract.js.map +0 -1
  567. package/dist/registries/evaluatorHandoffContract.js.map +0 -1
  568. package/dist/registries/evidenceTierContract.js.map +0 -1
  569. package/dist/registries/glossaryAdviceContract.js.map +0 -1
  570. package/dist/registries/glossaryCaveatContract.js.map +0 -1
  571. package/dist/registries/glossaryConsumerContractValidation.js.map +0 -1
  572. package/dist/registries/glossaryEntryContract.js.map +0 -1
  573. package/dist/registries/glossaryTermIdentity.js.map +0 -1
  574. package/dist/registries/glossaryTermOccurrence.js.map +0 -1
  575. package/dist/registries/hybridRoute.js.map +0 -1
  576. package/dist/registries/hybridRouteReceipt.js.map +0 -1
  577. package/dist/registries/packageRegistry.js.map +0 -1
  578. package/dist/registries/todoReadinessContract.js.map +0 -1
  579. package/dist/registries/triggerLoader.js.map +0 -1
  580. package/dist/registries/verbosityBudgetContract.js.map +0 -1
  581. package/dist/release/releaseMetadata.js.map +0 -1
  582. package/dist/runtime/lifecycleAdapterContract.js.map +0 -1
  583. package/dist/runtime/lifecycleAdapters.js.map +0 -1
  584. package/dist/runtime/lifecycleAuthority.js.map +0 -1
  585. package/dist/runtime/lifecycleOperationContract.js.map +0 -1
  586. package/dist/runtime/lifecycleOperations.js.map +0 -1
  587. package/dist/runtime/lifecycleOwnershipJournal.js.map +0 -1
  588. package/dist/runtime/lifecyclePublication.js.map +0 -1
  589. package/dist/runtime/lifecycleSnapshot.js.map +0 -1
  590. package/dist/runtime/nativeResourceCleanup.js.map +0 -1
  591. package/dist/setup/codex/cli.js +0 -130
  592. package/dist/setup/codex/cli.js.map +0 -1
  593. package/dist/setup/codex/configToml.js +0 -558
  594. package/dist/setup/codex/configToml.js.map +0 -1
  595. package/dist/setup/codex/constants.js +0 -14
  596. package/dist/setup/codex/constants.js.map +0 -1
  597. package/dist/setup/codex/installRoot.js +0 -64
  598. package/dist/setup/codex/installRoot.js.map +0 -1
  599. package/dist/setup/codex/state.js +0 -252
  600. package/dist/setup/codex/state.js.map +0 -1
  601. package/dist/setup/codex.js +0 -10
  602. package/dist/setup/codex.js.map +0 -1
  603. package/dist/setup/opencode.js.map +0 -1
  604. package/dist/setup/opencodeConstants.js.map +0 -1
  605. package/dist/setup/sharedSkill.js.map +0 -1
  606. package/dist/setup/smokeChecks.js.map +0 -1
  607. package/dist/state/archiveDiscovery.js.map +0 -1
  608. package/dist/state/archivePublication.js.map +0 -1
  609. package/dist/state/archiveRecovery.js.map +0 -1
  610. package/dist/state/archiveReplay.js.map +0 -1
  611. package/dist/state/canonicalMigrationRecord.js.map +0 -1
  612. package/dist/state/changelog.js.map +0 -1
  613. package/dist/state/decisionEntities.js.map +0 -1
  614. package/dist/state/decisionLegacyValidation.js.map +0 -1
  615. package/dist/state/decisionMigrationProvenance.js.map +0 -1
  616. package/dist/state/decisionOverlay.js.map +0 -1
  617. package/dist/state/decisionRevision.js.map +0 -1
  618. package/dist/state/decisionRevisionMigration.js.map +0 -1
  619. package/dist/state/directRetrieval.js.map +0 -1
  620. package/dist/state/durability.js.map +0 -1
  621. package/dist/state/entityCutover.js.map +0 -1
  622. package/dist/state/entityCutoverGit.js.map +0 -1
  623. package/dist/state/entityGlossaryAuthority.js.map +0 -1
  624. package/dist/state/entityListProjection.js.map +0 -1
  625. package/dist/state/entityListRuntimeRegistry.js.map +0 -1
  626. package/dist/state/entityMigrationCausality.js.map +0 -1
  627. package/dist/state/entityMigrationIdentity.js.map +0 -1
  628. package/dist/state/entityMigrationPreview.js.map +0 -1
  629. package/dist/state/entityPublicationContext.js.map +0 -1
  630. package/dist/state/entityRetrievalHelp.js.map +0 -1
  631. package/dist/state/entityStorage.js.map +0 -1
  632. package/dist/state/exactReplacementRecovery.js.map +0 -1
  633. package/dist/state/experimentArchive.js.map +0 -1
  634. package/dist/state/experimentIdentity.js.map +0 -1
  635. package/dist/state/healthEntities.js.map +0 -1
  636. package/dist/state/healthEntityValidation.js.map +0 -1
  637. package/dist/state/healthRepair.js.map +0 -1
  638. package/dist/state/installRoot.js.map +0 -1
  639. package/dist/state/legacyEntityCutoverEvidence.js.map +0 -1
  640. package/dist/state/legacyIdentity.js.map +0 -1
  641. package/dist/state/legacySummaryRecord.js.map +0 -1
  642. package/dist/state/listAccounting.js.map +0 -1
  643. package/dist/state/listClassification.js.map +0 -1
  644. package/dist/state/listCursor.js.map +0 -1
  645. package/dist/state/listRetrieval.js.map +0 -1
  646. package/dist/state/migrationSourceBinding.js.map +0 -1
  647. package/dist/state/objectiveExperimentEntities.js.map +0 -1
  648. package/dist/state/planEntities.js.map +0 -1
  649. package/dist/state/planIdentity.js.map +0 -1
  650. package/dist/state/planRetrieval.js.map +0 -1
  651. package/dist/state/planTaskRetrieval.js.map +0 -1
  652. package/dist/state/progressEntities.js.map +0 -1
  653. package/dist/state/progressGlossaryCaveat.js.map +0 -1
  654. package/dist/state/progressPublicationOrder.js.map +0 -1
  655. package/dist/state/projectRoot.js.map +0 -1
  656. package/dist/state/projectionPolicy.js.map +0 -1
  657. package/dist/state/retrievalAuthority.js.map +0 -1
  658. package/dist/state/safeProjectFile.js.map +0 -1
  659. package/dist/state/startupAnalysis/benchmark.js.map +0 -1
  660. package/dist/state/startupAnalysis/contract.js.map +0 -1
  661. package/dist/state/startupAnalysis/helpers.js.map +0 -1
  662. package/dist/state/startupAnalysis/index.js.map +0 -1
  663. package/dist/state/startupAnalysis/metrics.js.map +0 -1
  664. package/dist/state/startupAnalysis/records.js.map +0 -1
  665. package/dist/state/startupAnalysis/report.js.map +0 -1
  666. package/dist/state/startupAnalysis/threshold.js.map +0 -1
  667. package/dist/state/startupAnalysis.js.map +0 -1
  668. package/dist/state/startupProjection.js.map +0 -1
  669. package/dist/state/stateMode.js.map +0 -1
  670. package/dist/state/stateStorageAuthority.js.map +0 -1
  671. package/dist/state/summaryEntityRead.js.map +0 -1
  672. package/dist/state/summaryMigrationProvenance.js.map +0 -1
  673. package/dist/state/summarySourceRowAuthority.js.map +0 -1
  674. package/dist/state/todoDocsEntities.js.map +0 -1
  675. package/dist/state/todoDocsEntityValidation.js.map +0 -1
  676. package/dist/state/todoReconciliationActivation.js.map +0 -1
  677. package/dist/state/todoReconciliationTransaction.js.map +0 -1
  678. package/dist/state/write/assign.js.map +0 -1
  679. package/dist/state/write/candidateMutation.js.map +0 -1
  680. package/dist/state/write/errors.js.map +0 -1
  681. package/dist/state/write/experimentPublication.js.map +0 -1
  682. package/dist/state/write/explain.js.map +0 -1
  683. package/dist/state/write/fields.js.map +0 -1
  684. package/dist/state/write/glossaryPublication.js.map +0 -1
  685. package/dist/state/write/grammar.js.map +0 -1
  686. package/dist/state/write/helpers.js.map +0 -1
  687. package/dist/state/write/index.js.map +0 -1
  688. package/dist/state/write/input.js.map +0 -1
  689. package/dist/state/write/lock.js.map +0 -1
  690. package/dist/state/write/mutation.js.map +0 -1
  691. package/dist/state/write/operations.js.map +0 -1
  692. package/dist/state/write/planEvaluation.js.map +0 -1
  693. package/dist/state/write/planPublication.js.map +0 -1
  694. package/dist/state/write/runtimeOperations.js.map +0 -1
  695. package/dist/state/write/serialize.js.map +0 -1
  696. package/dist/state/write/transaction.js.map +0 -1
  697. package/dist/state/write/validate.js.map +0 -1
  698. package/dist/upgrade/appContentRefresh.js.map +0 -1
  699. package/dist/upgrade/appModel.js.map +0 -1
  700. package/dist/upgrade/atomicWriter.js.map +0 -1
  701. package/dist/upgrade/bundleEvidence.js.map +0 -1
  702. package/dist/upgrade/channels.js.map +0 -1
  703. package/dist/upgrade/coexistenceProbe.js +0 -105
  704. package/dist/upgrade/coexistenceProbe.js.map +0 -1
  705. package/dist/upgrade/compatibility.js.map +0 -1
  706. package/dist/upgrade/doctor.js.map +0 -1
  707. package/dist/upgrade/doctorClassifier.js.map +0 -1
  708. package/dist/upgrade/installedHooksRetirement.js.map +0 -1
  709. package/dist/upgrade/legacyAgentCleanup.js.map +0 -1
  710. package/dist/upgrade/lifecycleUpgrade.js.map +0 -1
  711. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +0 -1
  712. package/dist/upgrade/migrationPublication.js.map +0 -1
  713. package/dist/upgrade/nextMajorDoctor.js.map +0 -1
  714. package/dist/upgrade/npxPlatformStatus.js.map +0 -1
  715. package/dist/upgrade/projectIntegration.js.map +0 -1
  716. package/dist/upgrade/projectIntegrationDecision.js.map +0 -1
  717. package/dist/upgrade/runtimeMigration.js.map +0 -1
  718. package/dist/upgrade/upgradeCommands.js.map +0 -1
  719. package/dist/upgrade/upgradeLock.js.map +0 -1
  720. package/dist/upgrade/upgradeOrchestrator.js.map +0 -1
  721. package/dist/upgrade/v3CapabilitySurface.js.map +0 -1
  722. package/dist/upgrade/versionResolution.js.map +0 -1
  723. package/dist/validate/appHomeContract.js.map +0 -1
  724. package/dist/validate/capability.js.map +0 -1
  725. package/dist/validate/crossCapability.js.map +0 -1
  726. package/dist/validate/selfAudit.js.map +0 -1
  727. package/dist/validate/v1LegacyCruft.js.map +0 -1
  728. package/dist/validate/vocabularyAuthority.js.map +0 -1
@@ -1,1015 +0,0 @@
1
- interface: AgentReadyStateCli
2
- status: design_contract
3
- decision: 45
4
- purpose: >-
5
- Define the Agentera state CLI command vocabulary and agent-ready interface
6
- boundaries before executable Decision 45 tasks implement doctor, structured
7
- output, field selection, describe, and input hardening behavior.
8
- sources:
9
- decisions:
10
- - .agentera/decisions.yaml#Decision-45
11
- - .agentera/decisions.yaml#Decision-43
12
- - .agentera/decisions.yaml#Decision-59
13
- playbook: /home/jgabor/docs/agent-ready-interface-playbook.md
14
- active_plan: .agentera/plan.yaml
15
- linked_addenda:
16
- audience_namespace_cli_migration:
17
- path: references/cli/audience-namespace-cli-migration.yaml
18
- status: target_design_contract
19
- purpose: >-
20
- Target CLI command tree, audience namespaces (`state`, `report`, `check`),
21
- prime/hej and schema/describe migration boundaries, Decision 45 routine-state
22
- alias policy, and `/agentera plan` versus `state plan` versus `planera` routing
23
- distinction. Parser implementation is deferred to plan tasks 2–4.
24
- principles:
25
- - Keep the CLI state-oriented; capability routing remains a slash-command surface.
26
- - Preserve stable routine state command names unless a task records an explicit migration.
27
- - Prefer runtime structured output and introspection over static prompt stuffing.
28
- - Validate agent-facing inputs at the CLI boundary before resolving paths or emitting partial output.
29
- routine_state_commands:
30
- status: stable
31
- commands:
32
- - hej
33
- - plan
34
- - progress
35
- - health
36
- - todo
37
- - decisions
38
- - docs
39
- - objective
40
- - experiments
41
- - query
42
- rationale: >-
43
- Decision 45 explicitly preserves routine state command names. These commands
44
- are the top-level state seam used by agents and docs; changing them would
45
- break Decision 44's stable labels and Decision 39's query-CLI direction.
46
- slash_route_aliases:
47
- status: excluded_from_cli_commands
48
- aliases:
49
- status: hej
50
- vision: visionera
51
- discuss: resonera
52
- research: inspirera
53
- plan: planera
54
- build: realisera
55
- optimize: optimera
56
- audit: inspektera
57
- document: dokumentera
58
- profile: profilera
59
- design: visualisera
60
- orchestrate: orkestrera
61
- rationale: >-
62
- Decision 43 aliases are exact `/agentera <alias>` routes, not CLI state
63
- commands. Teaching `status`, `build`, `audit`, or `document` as CLI commands
64
- would blur route vocabulary with state access; the shared word `plan` keeps
65
- separate meanings as `/agentera plan` routing and `agentera state plan list` state.
66
- doctor:
67
- status: implemented_hard_rename
68
- command: doctor
69
- removed_command: bundle-status
70
- compatibility_alias: forbidden
71
- owns:
72
- - Agentera CLI self-check status
73
- - installed app and install-root status
74
- - canonical shared-skill diagnosis
75
- - project integration and project-state migration diagnostics
76
- - bounded offline smoke checks when requested
77
- excludes:
78
- - project artifact health
79
- - codebase quality audit findings
80
- - inspektera architecture, test, dependency, or documentation audit output
81
- adjacent_surfaces:
82
- codebase_audit: /agentera audit routes to inspektera
83
- rationale: >-
84
- Decision 45 rejects `bundle-status` as too narrow and rejects an alias for
85
- release-clean vocabulary; `doctor` is the CLI, app, shared-skill, and project
86
- integration self-check vocabulary, while artifact health and codebase audits
87
- remain separate concerns.
88
- schema:
89
- status: implemented_runtime_introspection
90
- command: schema
91
- migration_alias:
92
- command: describe
93
- stderr: one-line deprecation naming schema
94
- owns:
95
- - command discovery
96
- - filters and output format discovery
97
- - structured output shapes
98
- - field selection metadata
99
- - Decision 43 slash-route alias descriptions
100
- - artifact schema discovery
101
- - doctor self-check categories
102
- does_not_own:
103
- - adding CLI commands for slash aliases
104
- - replacing routine state commands
105
- - claiming unavailable schema facts as implemented
106
- rationale: >-
107
- The playbook prioritizes runtime schema introspection so agents can discover
108
- the current interface on demand. `schema` owns public discovery; `describe`
109
- remains a stderr-deprecation alias during migration.
110
- describe:
111
- status: deprecated_alias_for_schema
112
- command: describe
113
- canonical_replacement: schema
114
- rationale: >-
115
- Deprecated alias retained for one minor release; agents and docs should use
116
- `agentera schema`.
117
- structured_output:
118
- status: implemented_for_routine_state_commands
119
- formats:
120
- - json
121
- - yaml
122
- applies_to:
123
- - hej
124
- - plan
125
- - progress
126
- - health
127
- - todo
128
- - decisions
129
- - docs
130
- - objective
131
- - experiments
132
- excludes:
133
- - adding new route-alias commands
134
- - replacing human text output
135
- - changing persisted artifact shapes
136
- - selecting undocumented raw artifact fields
137
- envelope:
138
- routine_state_commands:
139
- fields:
140
- - command
141
- - status
142
- - entries
143
- - counts
144
- - source
145
- - filters
146
- - summary
147
- - source_contract
148
- status_values:
149
- - ok
150
- - empty
151
- source_metadata:
152
- - artifact
153
- - path
154
- - exists
155
- - kind
156
- source_contract:
157
- plan:
158
- status: implemented_complete_plan_artifact_envelope
159
- fields:
160
- - complete_for_plan_artifact
161
- - complete_for_normal_startup_evaluation
162
- - raw_artifact_reads_required
163
- - raw_artifact_read_policy
164
- - included_state
165
- - complete_state
166
- - raw_artifact_access_boundary
167
- - missing_state
168
- - fallback
169
- - fallback_policy
170
- - summary_fields
171
- - entry_fields
172
- complete_semantics: >-
173
- When `complete_for_plan_artifact` is true, `agentera state plan list --format
174
- json` includes plan summary metadata, tasks, dependencies, acceptance
175
- criteria, evidence, overall acceptance, surprises, and previous-plan
176
- archive references needed for normal read-only startup/evaluation
177
- context; agents should skip defensive `.agentera/plan.yaml` reads.
178
- Raw mapped plan artifact access remains valid for writes, archival,
179
- validation, corruption diagnostics, or unavailable/incomplete CLI state
180
- after CLI fallbacks. Legacy `entries`-shaped plan artifacts must not
181
- report this complete state because they do not expose the current plan
182
- summary/task/evidence envelope.
183
- decisions:
184
- status: implemented_normal_deliberation_envelope
185
- fields:
186
- - complete_for_returned_decisions
187
- - complete_for_decision_context
188
- - complete_for_returned_full_detail
189
- - complete_for_normal_deliberation_context
190
- - normal_deliberation_context
191
- - decision_context_truth_table
192
- - missing_full_detail_boundary
193
- - missing_artifact_boundary
194
- - filtered_result_boundary
195
- - satisfaction_review_boundary
196
- - compacted_history_boundary
197
- - raw_artifact_access_boundary
198
- - raw_artifact_reads_required
199
- - raw_artifact_read_policy
200
- - fallback_policy
201
- complete_semantics: >-
202
- `complete_for_decision_context` and
203
- `complete_for_returned_full_detail` are full-detail signals and may be
204
- false for compacted history, missing full-detail fields, or satisfaction
205
- review pressure. Normal deliberation should key off
206
- `complete_for_normal_deliberation_context`; when it is true, agents use
207
- returned entries plus `missing_fields`, `compacted`, `caveats`, and
208
- satisfaction review state without raw `.agentera/decisions.yaml` reads
209
- or inference. Empty filtered results mean no returned decisions matched
210
- the filter, not missing decision state. Missing artifacts make normal
211
- deliberation context unavailable and enter CLI fallback/diagnostic
212
- boundaries before any raw artifact repair.
213
- raw_access_semantics: >-
214
- Raw decision artifact access is reserved for Resonera-owned decision
215
- writes/repairs, artifact corruption diagnostics, or CLI defect
216
- investigation. It is not required merely because returned decisions are
217
- compacted, incomplete, filtered, or require satisfaction review.
218
- empty_state: >-
219
- Missing or empty artifacts emit status=empty, entries=[], counts.entries=0,
220
- and source.exists=false when the source file is absent.
221
- hej:
222
- fields:
223
- - command
224
- - status
225
- - app_home
226
- - app
227
- - mode
228
- - profile
229
- - v1_migration
230
- - health
231
- - todo
232
- - plan
233
- - docs
234
- - progress
235
- - objective
236
- - state_presence
237
- - project_integration
238
- - attention
239
- - history
240
- - shared_skill
241
- - decision_attention
242
- - next_action
243
- - orchestration_context
244
- - closeout_context
245
- - evidence_context
246
- - benchmark_context
247
- - execution_context
248
- - source
249
- - source_contract
250
- source_contract:
251
- capability_startup:
252
- status: implemented_complete_startup_envelope
253
- fields:
254
- - complete_for_capability_startup
255
- - raw_artifact_reads_required
256
- - raw_artifact_read_policy
257
- - available_state
258
- - missing_state
259
- - confidence_caveats
260
- - cli_fallback
261
- complete_semantics: >-
262
- When complete_for_capability_startup is true, raw_artifact_reads_required
263
- must be false and agents should not perform defensive raw artifact reads
264
- for normal capability startup.
265
- incomplete_semantics: >-
266
- When startup state is incomplete, missing_state, confidence_caveats,
267
- and cli_fallback must be explicit. Agents should try the named CLI
268
- fallback commands before any last-resort raw artifact read.
269
- capability_context_semantics: >-
270
- Agentera 3.0 capability startup uses
271
- `agentera prime --context <capability> --format json` as the sole
272
- supported seam. The response emits only `command`, `status`, and
273
- top-level `capability_context` as a startup capsule; its `state` block
274
- owns declared read needs, included and missing state families, artifact
275
- inventory, and `fallback_commands`, while its `context` block owns
276
- capability-specific startup payloads and `first_invocation_read`.
277
- Historical v2 paths `agentera hej --format json --capability-context`,
278
- `--context-profile full`, and `--context-profile slim` are removed and
279
- must not be taught as supported behavior.
280
- planera_startup_context_semantics: >-
281
- `agentera prime --context planera --format json` may include a bounded
282
- `startup_contract` for normal Planera execution startup at
283
- `capability_context.context.planning_context.startup_contract`. The
284
- contract can summarize planning levels, step markers, CLI-first
285
- orientation, raw plan artifact boundaries, full-plan review/self-audit
286
- requirements, handoff expectations, and the Planera prose authority
287
- boundary without reading `packages/cli/src/capabilities/planera/instructions.ts`
288
- at runtime. It must not introduce `agentera planera`, new top-level
289
- commands, or hidden capability-name aliases; `agentera schema` owns
290
- runtime/schema introspection rather than a capability workflow payload.
291
- orchestration_context_semantics: >-
292
- `agentera prime --context orkestrera --format json` may include
293
- orchestration_context with dependency-ready tasks, blocked task reasons,
294
- selected next task, task acceptance/evidence summaries, caveats, fallback
295
- commands, and a source contract. It must not introduce `agentera
296
- orkestrera` or other capability-name CLI commands.
297
- closeout_context_semantics: >-
298
- `agentera prime --context dokumentera --format json` may include
299
- closeout_context with artifact mappings, version policy, TODO blockers,
300
- changelog boundary, progress evidence, benchmark evidence or an unavailable
301
- caveat, local metadata/tag versus publication boundary state, fallback
302
- commands, caveats, provenance pointers, non-empty evidence flags, and a
303
- raw-read-last-resort source contract. It must not introduce `agentera
304
- dokumentera`, new top-level commands, or new subcommands.
305
- evidence_context_semantics: >-
306
- `agentera prime --context inspektera --format json` may include
307
- evidence_context with an evaluation target, plan criteria, progress
308
- verification, docs state, health state, TODO state, protected-state and
309
- version boundary status values, decision-context caveats, attributed
310
- residual risks, fallback commands, caveats, provenance pointers, non-empty
311
- evidence flags, and a raw-read-last-resort source contract. It must not
312
- introduce `agentera inspektera`, new top-level commands, or new subcommands.
313
- benchmark_context_semantics: >-
314
- `agentera prime --context optimera --format json` may include
315
- benchmark_context with retained startup benchmark source status, latest
316
- report summary, aggregate history summary, runtime coverage caveats,
317
- state-access rates, token-impact estimates, comparison null reasons,
318
- recommendation action, manual-refresh guidance, privacy boundary,
319
- fallback commands, and a raw-read-last-resort source contract. It must
320
- not introduce `agentera optimera`, new top-level commands, or new subcommands.
321
- execution_context_semantics: >-
322
- `agentera prime --context realisera --format json` may include
323
- execution_context with selected work, task details, acceptance criteria,
324
- constraints, verification expectations, artifact update requirements,
325
- progress logging requirements, changelog boundary, scope boundary,
326
- fallback commands, caveats, read-only plan-completion sweep metadata,
327
- and a raw-read-last-resort source contract. Verification commands are
328
- selected only from bounded verification-labelled rows in the root
329
- AGENTS.md `When | Command` recipe table. Explicit root or `pnpm -C`
330
- package.json scripts validate those references; exact script aliases are
331
- resolved before duplicate-label conflict checks, and equivalent canonical
332
- commands are deduplicated with bounded line/field source pointers retained.
333
- Command, provenance, rejection, and diagnostic omissions are reported by
334
- explicit counts below generic startup projection limits. Malformed
335
- recipes, placeholders, shorthand, unsupported syntax, symlinked sources,
336
- targets, or existing ancestors, missing scripts, cycles, out-of-root paths,
337
- every missing Node entrypoint, and conflicting canonical label sets are
338
- rejected with bounded diagnostics rather than inferred or executed. Node
339
- arguments use tokens only and reject absolute or parent-traversing values,
340
- including values after `=`; discovery never executes a recipe. It must not introduce
341
- `agentera realisera`, `agentera build`, new top-level commands, or new subcommands.
342
- decision_attention_semantics: >-
343
- `agentera prime --format json` may include one bounded `decision_attention`
344
- payload when returned decisions require satisfaction review. The payload
345
- derives from the same `_decision_context_entry` and
346
- `_decision_satisfaction_context` semantics as bounded `agentera state
347
- decisions list --limit 20 --format json` plus exact `state decisions
348
- get --id ID`, never infers satisfaction, never mutates decision entities,
349
- keeps top-level attention bounded, and must not change `next_action`
350
- routing priority.
351
- evidence_context_target_contract: evidence_context_target_contract
352
- current_status: complete
353
- current_missing_state: []
354
- empty_state: >-
355
- Fresh projects emit mode=fresh with explicit plan/docs/progress absence
356
- reasons, zero issue counts, source.artifacts_present=false, state_presence
357
- absence metadata, and a caller-owned dashboard source_contract.
358
- rationale: >-
359
- The playbook calls for machine-readable output as a first-class path. Task 3
360
- should add parseable routine output while keeping current command names and
361
- useful human text output stable.
362
- startup_completeness:
363
- status: implemented_complete_startup_envelope
364
- owning_command: prime
365
- preserves_routine_state_commands: true
366
- slash_route_alias_cli_commands_added: false
367
- complete_output_requires:
368
- complete_for_capability_startup: true
369
- raw_artifact_reads_required: false
370
- incomplete_output_requires:
371
- - missing_state
372
- - confidence_caveats
373
- - cli_fallback
374
- fallback_policy: >-
375
- Incomplete startup state must point agents to existing routine state commands
376
- before any raw artifact read. Complete startup state must never require raw
377
- artifact reads for normal capability startup.
378
- current_cli_fallback:
379
- - agentera state plan list --format json
380
- state_families_added:
381
- - plan task details, dependencies, acceptance criteria, and evidence summaries
382
- - docs artifact mapping and source-contract completeness metadata
383
- - latest progress verification metadata needed for Orkestrera evaluation
384
- - Optimera benchmark_context metadata for retained startup benchmark summaries
385
- - Realisera execution_context metadata for plan-driven or explicit transient no-plan implementation startup
386
- empty_state_behavior: >-
387
- agentera prime reports absent plan, docs, and progress state explicitly through
388
- structured summaries and state_presence absence metadata instead of forcing
389
- artifact discovery. Top-level `agentera hej` remains a migration alias.
390
- repair_guidance_behavior: >-
391
- agentera prime carries stale app repair commands through bundle/app_home output and
392
- v1 migration preview/apply commands through v1_migration output.
393
- non_goals:
394
- - Do not add Decision 43 slash-route aliases to the CLI command surface.
395
- - Do not remove or rename routine state commands.
396
- - Do not add a separate benchmark command; Optimera benchmark comparison stays inside benchmark_context.
397
- build_transient_execution_request:
398
- status: implemented
399
- command: agentera prime --context build --input <file|-> --format json
400
- schema_version: agentera.buildExecutionRequest.v1
401
- transport:
402
- sources:
403
- - file
404
- - stdin
405
- request_text_in_argv: forbidden
406
- max_utf8_bytes: 32768
407
- malformed_utf8: fatal
408
- document: YAML or JSON mapping
409
- acquisition:
410
- file: >-
411
- Regular files only; symlinks and non-regular inputs fail closed. Open
412
- no-follow where supported, verify the opened descriptor identity against
413
- the observed file, precheck known size, and incrementally read at most
414
- max_utf8_bytes + 1 before rejecting overflow.
415
- stdin: >-
416
- Incrementally read fd 0 in bounded chunks through max_utf8_bytes + 1;
417
- reject overflow and never close fd 0. Injected test stdin is capped
418
- immediately after the supplied value returns.
419
- fields:
420
- exact_required:
421
- - schema_version
422
- - scope
423
- - acceptance
424
- additional_fields: forbidden
425
- scope:
426
- type: string
427
- non_empty: true
428
- max_unicode_code_points: 160
429
- control_characters: forbidden
430
- acceptance:
431
- type: list_of_strings
432
- min_items: 1
433
- max_items: 12
434
- duplicate_items: forbidden
435
- item_non_empty: true
436
- item_max_unicode_code_points: 160
437
- item_control_characters: forbidden
438
- validation_failure:
439
- envelope: agentera.invalidInputEnvelope.v2
440
- exit_code: 2
441
- sensitive_input_echo: forbidden
442
- availability:
443
- only_with_context: build
444
- active_or_completed_current_plan: conflict
445
- archived_history_without_current_executable_plan: allowed
446
- malformed_or_degraded_plan_state: fail_safe
447
- persistence:
448
- request_persisted: false
449
- orientation_state_extended: false
450
- state_mutation: none
451
- plan_creation_or_mutation: forbidden
452
- no_plan_execution_context:
453
- mode: no_plan
454
- valid_request:
455
- work_selection_reason: explicit_no_plan_scope
456
- acceptance_source: exact transient request
457
- source_path_inference: forbidden
458
- plan_fallback: forbidden
459
- plan_status_update_required: false
460
- complete_for_execution_context: true when all non-plan required execution state is available
461
- missing_request:
462
- complete_for_execution_context: false
463
- plan_fallback: forbidden
464
- advancing_recovery: agentera prime --context build --input - --format json
465
- caveat: Explicit scope and acceptance are required for no-plan execution.
466
- evidence_context_target_contract:
467
- status: task_1_design_contract
468
- planned_context_name: evidence_context
469
- planned_invocation: agentera prime --context inspektera --format json
470
- implementation_status: implemented_provenance_and_boundary_contract
471
- status_vocabulary:
472
- protected_and_version_boundaries:
473
- - verified_local
474
- - not_checked_by_design
475
- - requires_manual_check
476
- - unavailable
477
- inventory:
478
- cli_first_sources:
479
- - command: agentera prime --context orkestrera --format json
480
- included_state:
481
- - plan
482
- - progress
483
- - health
484
- - todo
485
- - docs
486
- missing_state:
487
- - decisions
488
- - vision
489
- - profile
490
- fallback_commands:
491
- - agentera state decisions list --limit 20 --format json
492
- caveats:
493
- - profile-derived state is stale and must not trigger profile refresh
494
- - orchestration_context is incomplete for missing decisions, vision, and profile state
495
- - command: agentera state plan list --format json
496
- included_state:
497
- - active plan header and summary
498
- - task dependencies
499
- - task statuses
500
- - task acceptance criteria
501
- - task evidence summaries
502
- - previous_plan_archived pointer
503
- missing_state: []
504
- raw_artifact_reads_required: false
505
- - command: agentera state docs list --format json
506
- included_state:
507
- - artifact mapping
508
- - version files
509
- - semver policy
510
- - indexed document freshness
511
- missing_state: []
512
- raw_artifact_reads_required: false
513
- - command: agentera state todo list --format json
514
- included_state:
515
- - open 2.3.10 evidence-context TODO
516
- - deferred 2.3.11 and 2.3.12 source-contract TODOs
517
- - known open issues
518
- missing_state: []
519
- raw_artifact_reads_required: false
520
- last_resort_raw_fallbacks:
521
- - reason: archived previous-plan status is not exposed by routine CLI state
522
- path: .agentera/archive/PLAN-2026-05-15-2-3-9-dokumentera-closeout-context-source-contract.yaml
523
- verified_field: header.status=complete
524
- - reason: Inspektera prose and schemas are validated directly; complete evidence_context covers normal evaluation startup without raw plan/progress/docs/health/TODO/decisions reads.
525
- paths:
526
- - packages/cli/src/capabilities/inspektera/instructions.ts
527
- - skills/agentera/capabilities/inspektera/schemas/artifacts.yaml
528
- - skills/agentera/capabilities/inspektera/schemas/validation.yaml
529
- raw_artifact_reads_required_for_startup: false
530
- stale_state_caveats:
531
- - profile-derived state is stale; record as caveat and do not refresh profile
532
- - installed app state, when stale or update-needed, is a caveat and not approval to run upgrade, repair, or refresh
533
- archive_boundary:
534
- previous_plan: .agentera/archive/PLAN-2026-05-15-2-3-9-dokumentera-closeout-context-source-contract.yaml
535
- verified_header_status: complete
536
- scope_decision: previous-plan archival is already handled by Planera activation and is not implementation scope for 2.3.10 Task 1
537
- target_selection:
538
- source: CLI state only during normal startup
539
- no_raw_plan_or_progress_reads_required: true
540
- selection_order:
541
- - order: 1
542
- selector: current in-progress plan task
543
- selection_reason: in_progress_task
544
- - order: 2
545
- selector: first dependency-ready pending plan task from orchestration_context.selected_next_task or plan entries
546
- selection_reason: first_dependency_ready_pending_task
547
- - order: 3
548
- selector: most recent completed plan task with non-empty evidence summary
549
- selection_reason: latest_completed_task_with_evidence
550
- - order: 4
551
- selector: repository-level evidence context with no task target
552
- selection_reason: no_plan_task_target
553
- no_target_behavior:
554
- status: no_target
555
- complete_for_evidence_context: false
556
- caveat: No plan task target was selected; evaluate repository-level evidence only and keep fallback commands visible.
557
- raw_artifact_reads_required: false
558
- required_target_fields:
559
- - target_type
560
- - target_number
561
- - target_name
562
- - target_status
563
- - selection_reason
564
- - source_provenance
565
- - caveats
566
- evidence_matrix:
567
- required_for_normal_task_evaluation:
568
- - family: evaluation_target
569
- source: plan/orchestration CLI state
570
- fallback: agentera state plan list --format json
571
- - family: plan_criteria
572
- source: agentera state plan list --format json entries.acceptance
573
- fallback: none when complete_for_plan_artifact is true
574
- - family: progress_verification
575
- source: agentera state progress list --limit 20 --format json latest verification
576
- fallback: agentera state progress get --id ID --format json
577
- - family: docs_state
578
- source: agentera state docs list --format json summary and entries
579
- fallback: agentera state docs list --format json
580
- - family: health_state
581
- source: agentera state health list --limit 20 --format json latest audit
582
- fallback: agentera state health get --id ID --format json
583
- - family: todo_state
584
- source: agentera state todo list --format json known issues and source-contract TODOs
585
- fallback: agentera state todo list --format json
586
- - family: source_contract
587
- source: evidence_context.source_contract
588
- fallback: listed existing CLI commands before raw reads
589
- optional_or_caveated_for_normal_task_evaluation:
590
- - family: decisions_context
591
- source: agentera state decisions list --limit 20 --format json
592
- caveat: compacted historical entries remain incomplete and must not be reconstructed from raw artifacts
593
- - family: vision_context
594
- source: hej startup only when included by capability context
595
- caveat: missing vision is a caveat, not a raw-read requirement for normal evaluation startup
596
- - family: profile_context
597
- source: hej profile summary
598
- caveat: stale or missing profile is a caveat, not approval to refresh or read profile directly during normal startup
599
- - family: protected_state_checks
600
- source: local CLI-visible evidence only
601
- caveat: use statuses verified_local, not_checked_by_design, requires_manual_check, or unavailable
602
- - family: version_checks
603
- source: local docs/version state only
604
- caveat: do not contact remotes, registries, installed apps, or profile generation
605
- - family: publication_or_remote_state
606
- source: none during normal evidence context
607
- caveat: not_recorded_in_cli_state unless a supported local command explicitly exposes it
608
- prohibited_actions:
609
- - agentera inspektera
610
- - adding new top-level CLI commands for this contract
611
- - adding new subcommands for this contract
612
- - refreshing installed app state
613
- - refreshing profile state
614
- - editing .agentera/vision.yaml
615
- - editing objective state
616
- field_selection:
617
- status: implemented_sparse_response_layer
618
- applies_after: structured_output
619
- syntax: --fields FIELD[,FIELD...]
620
- applies_to:
621
- - hej
622
- - plan
623
- - progress
624
- - health
625
- - todo
626
- - decisions
627
- - docs
628
- - objective
629
- - experiments
630
- fields_by_command:
631
- routine_state_commands:
632
- fields:
633
- - command
634
- - status
635
- - entries
636
- - counts
637
- - source
638
- - filters
639
- - summary
640
- - source_contract
641
- hej:
642
- fields:
643
- - command
644
- - status
645
- - app_home
646
- - app
647
- - mode
648
- - profile
649
- - v1_migration
650
- - health
651
- - todo
652
- - plan
653
- - docs
654
- - progress
655
- - objective
656
- - state_presence
657
- - project_integration
658
- - attention
659
- - history
660
- - shared_skill
661
- - decision_attention
662
- - next_action
663
- - orchestration_context
664
- - closeout_context
665
- - evidence_context
666
- - benchmark_context
667
- - execution_context
668
- - source
669
- - source_contract
670
- retained_context:
671
- - command
672
- - status
673
- owns:
674
- - sparse selection over documented structured output fields
675
- - clear unsupported-field errors with available fields
676
- - required identity or status context retained in sparse responses
677
- does_not_own:
678
- - selecting arbitrary raw YAML artifact paths
679
- - silently dropping unsupported fields
680
- - changing default human text behavior
681
- rationale: >-
682
- The playbook treats context as currency. Field selection belongs on the
683
- structured output contract from Task 3, not on raw artifact internals.
684
- input_hardening:
685
- status: implemented_boundary_validation
686
- applies_to:
687
- - artifact names
688
- - field names
689
- - output formats
690
- - path-like values
691
- - doctor roots
692
- - upgrade roots
693
- required_boundaries:
694
- - reject unsupported identifiers with clear errors
695
- - reject traversal and encoded traversal in path-like inputs
696
- - reject control characters in agent-facing strings
697
- - sandbox project artifact paths to project-owned or documented global roots
698
- - preserve explicit approval flows before writes
699
- does_not_own:
700
- - mutating install roots without approval
701
- - expanding artifact identity beyond the artifact registry and docs.yaml mapping rules
702
- - response sanitization for externally ingested untrusted content
703
- - typed protocol surfaces such as MCP or JSON-RPC
704
- rationale: >-
705
- The playbook warns that agents hallucinate structurally unsafe inputs. Task 6
706
- should validate these boundaries without broadening the CLI command surface.
707
- validate_namespace:
708
- status: implemented
709
- command: validate
710
- purpose: >-
711
- Define the supported `agentera validate` namespace so agents can use one
712
- discoverable validation surface without guessing unsupported capability-name
713
- CLI commands.
714
- supported_target_families:
715
- capability:
716
- command_shape: agentera validate capability <capability-or-path> [--format text|json]
717
- required_inputs:
718
- - capability-or-path: canonical capability name or capability directory path
719
- valid_capability_names:
720
- - hej
721
- - visionera
722
- - resonera
723
- - inspirera
724
- - planera
725
- - realisera
726
- - optimera
727
- - inspektera
728
- - dokumentera
729
- - profilera
730
- - visualisera
731
- - orkestrera
732
- output_formats:
733
- - text
734
- - json
735
- expected_examples:
736
- - agentera validate capability hej
737
- - agentera validate capability skills/agentera/capabilities/hej --format json
738
- validation_engine: agentera check validate capability
739
- compatibility_constraint: >-
740
- `agentera check validate capability skills/agentera/capabilities/<name>` and
741
- `agentera check validate capability --self-validate` remain supported direct
742
- validator commands with their existing observable behavior.
743
- artifact:
744
- command_shape: agentera validate artifact --artifact <ARTIFACT> [--file <PATH>] [--cwd <PROJECT>] [--format text|json]
745
- required_inputs:
746
- - artifact: canonical artifact label
747
- optional_inputs:
748
- - file: artifact file path; defaults through docs.yaml mapping when omitted
749
- - cwd: project directory for relative paths and docs.yaml mapping
750
- valid_artifacts:
751
- - CHANGELOG.md
752
- - DECISIONS.md
753
- - DESIGN.md
754
- - DOCS.md
755
- - HEALTH.md
756
- - PLAN.md
757
- - PROGRESS.md
758
- - TODO.md
759
- - VISION.md
760
- output_formats:
761
- - text
762
- - json
763
- expected_examples:
764
- - agentera validate artifact --artifact PLAN.md --file .agentera/plan.yaml --format json
765
- - agentera validate artifact --artifact PROGRESS.md --format text
766
- validation_engine: hooks/validate_artifact.py
767
- compatibility_constraint: >-
768
- `hooks/validate_artifact.py --artifact <ARTIFACT> --file <PATH> --format
769
- text|json` remains a supported direct validator command with existing
770
- docs.yaml mapping, JSON envelope, violation wording, and hook behavior.
771
- invalid_input_behavior:
772
- family_error: >-
773
- Unsupported validate target families must name the valid families
774
- `capability` and `artifact`, show the correct syntax, and include one
775
- concrete capability example plus one concrete artifact example.
776
- capability_error: >-
777
- Unsupported capability targets must list valid capability names, show
778
- `agentera validate capability <capability-or-path> [--format text|json]`,
779
- and include `agentera validate capability hej` as an example.
780
- artifact_error: >-
781
- Unsupported artifact labels must list canonical artifact labels, show
782
- `agentera validate artifact --artifact <ARTIFACT> [--file <PATH>] [--format text|json]`,
783
- and include `agentera validate artifact --artifact PLAN.md --file .agentera/plan.yaml --format json`
784
- as an example.
785
- format_error: >-
786
- Unsupported formats must list valid values `text` and `json` and must not
787
- fall back silently to a different format.
788
- output_contract:
789
- text: >-
790
- Human-readable output may mirror the existing validator text, including
791
- PASS/FAILED summaries and violation lines.
792
- json: >-
793
- JSON output must use a stable validation result envelope with command,
794
- status, target_family, target, file or path metadata when applicable, and
795
- violations or errors. Artifact JSON should preserve the existing
796
- `validate-artifact` semantics unless a compatibility-preserving wrapper
797
- field is explicitly added in the implementation task.
798
- status_values:
799
- - pass
800
- - fail
801
- non_goals:
802
- - Do not implement `agentera validate` behavior in Task 1.
803
- - Do not add capability-name CLI commands such as `agentera realisera`.
804
- - Do not replace or remove `agentera check validate capability`.
805
- - Do not replace or remove `hooks/validate_artifact.py`.
806
- - Do not rename artifact labels, capability names, or schema contract groups.
807
- - Do not implement D48 smoke, verify, corpus, or usage namespaces.
808
- - Do not redesign validation semantics or persisted artifact shapes.
809
- evidence_sources:
810
- - agentera --help exposes the validate namespace for capability and artifact validation.
811
- - agentera check validate capability --help defines capability_dir, --self-validate, --validate-protocol, and --check-primitives.
812
- - hooks/validate_artifact.py --help defines --artifact, --file, --cwd, and --format text|json.
813
- - hooks/validate_artifact.py invalid artifact JSON lists valid canonical artifact labels.
814
- verify_namespace:
815
- status: implemented_with_task_3_coverage
816
- command: verify
817
- rejected_umbrella_command: smoke
818
- purpose: >-
819
- Define the supported `agentera verify` namespace so agents can run or inspect
820
- eval gates through one discoverable verification surface without guessing direct
821
- script names or unsupported capability-name CLI commands.
822
- namespace_rationale: >-
823
- `agentera verify` is the public command for the evaluation gates (skills and
824
- semantic) on the npm self-contained CLI. The smoke-check family is retired on
825
- @next; run smoke maintainer harnesses on the stable Python line with
826
- `uvx --from git+https://github.com/jgabor/agentera@main agentera check verify smoke installed-skills`.
827
- command_shape: agentera verify <family> <target> [--format text|json] [target options]
828
- supported_gate_families:
829
- eval:
830
- command_shape: agentera verify eval <target> [--format text|json] [target options]
831
- valid_targets:
832
- skills:
833
- direct_entrypoint: in-process eval engine (packages/cli/src/eval/evalSkills.ts)
834
- expected_default_behavior: >-
835
- Skill eval verification runs the in-process eval-skills engine. Any
836
- runtime-backed eval work is host-dependent and must be
837
- explicitly opted in or bounded through existing dry-run, runtime, timeout,
838
- skill, and parallel controls.
839
- safety_requirements:
840
- - Default verify behavior must not start long-running runtime-backed evals without explicit opt-in or a documented bounded mode.
841
- - Runtime-backed runs must retain per-skill timeout and concurrency bounds.
842
- - Dry-run listing remains available for safe discovery.
843
- semantic:
844
- direct_entrypoint: in-process semantic engine (packages/cli/src/eval/semanticEval.ts)
845
- expected_default_behavior: >-
846
- Offline semantic fixture evaluation remains the direct compatibility
847
- surface. Verify must require explicit fixture paths or a documented bounded
848
- fixture selection; it must not scan broad corpora by default.
849
- safety_requirements:
850
- - Offline fixture evaluation only by default.
851
- - Missing or broad fixture input fails with bounded guidance instead of starting an unbounded search.
852
- output_formats:
853
- - text
854
- - json
855
- expected_examples:
856
- - agentera verify eval skills --format json
857
- - agentera verify eval skills --dry-run --format json
858
- - agentera verify eval semantic fixtures/semantic/hej-bare-message.md
859
- - agentera verify eval semantic fixtures/semantic/hej-bare-message.md --format json
860
- output_contract:
861
- text: >-
862
- Human-readable output must identify the verify family, target, status, direct
863
- engine used, and bounded diagnostics. It may mirror existing direct script PASS
864
- or FAIL wording when that preserves compatibility.
865
- json: >-
866
- JSON output must use a stable verification result envelope with command,
867
- status, family, target, format, engine command, exit_code, diagnostics, and
868
- safety/opt-in metadata when applicable. Raw runtime transcripts, credentials,
869
- private paths beyond explicit command inputs, and unbounded logs are excluded.
870
- status_values:
871
- - pass
872
- - fail
873
- - invalid
874
- - skipped
875
- invalid_input_behavior:
876
- family_error: >-
877
- Unknown verify families must exit nonzero, list valid family `eval`, show
878
- `agentera verify <family> <target> [--format text|json]`, and include a
879
- concrete eval example. Requests for the retired `smoke` family must exit
880
- nonzero with explicit npm-retired guidance pointing to eval verify or the
881
- stable Python maintainer path.
882
- target_error: >-
883
- Unknown targets must exit nonzero, list valid targets for the selected family,
884
- show the correct family syntax, and include one concrete example for that family.
885
- format_error: >-
886
- Unknown formats must exit nonzero, list valid values `text` and `json`, show
887
- syntax using `--format text|json`, and must not silently fall back to another format.
888
- unsafe_live_default_error: >-
889
- Requests that would run live, host-dependent, mutating, or long-running gates
890
- without required opt-in must exit nonzero with bounded diagnostics explaining
891
- the missing opt-in, the safe default, valid opt-in flags or environment contract,
892
- correct syntax, and a concrete explicitly bounded example.
893
- compatibility_constraints:
894
- - >-
895
- `agentera verify eval skills` remains callable directly with existing `--skill`,
896
- `--dry-run`, `--parallel`, `--timeout`, and `--runtime` behavior.
897
- - >-
898
- `agentera verify eval semantic` remains callable directly with fixture path arguments
899
- and existing offline semantic fixture behavior.
900
- - >-
901
- Retired `smoke` verify requests on the npm self-contained CLI must fail with
902
- bounded guidance instead of invoking Python smoke harnesses.
903
- non_goals:
904
- - Do not add unsupported capability-name CLI commands such as `agentera realisera` or `agentera orkestrera`.
905
- - Do not reintroduce the retired smoke gate-family.
906
- - Do not implement D48 `validate`, `corpus`, or `usage` work.
907
- - Do not run live network, installed-app mutation, profile refresh, publication, push, tag, or package-update flows as part of this contract definition.
908
- evidence_sources:
909
- - agentera --help exposes the `verify` namespace and eval examples only on npm @next.
910
- - the verify vitest tests (packages/cli/test/cli/verify.test.ts) cover eval success, smoke retirement, text output, JSON output, invalid input feedback, safety boundaries, and preserved direct-script compatibility.
911
- - agentera verify eval skills --help defines `--skill`, `--dry-run`, `--parallel`, `--timeout`, and `--runtime`.
912
- - agentera verify eval semantic --help defines fixture path inputs for offline semantic evaluation.
913
- usage_namespace:
914
- status: implemented
915
- command: usage
916
- rejected_namespace_command: corpus
917
- purpose: >-
918
- Define the supported `agentera usage` namespace so agents can run suite usage
919
- analytics through one discoverable CLI surface without guessing the direct
920
- analytics script or conflating reporting with corpus extraction.
921
- namespace_rationale: >-
922
- `agentera usage` is the selected public command because the existing product is
923
- usage analytics and USAGE.md reporting. `agentera corpus` is rejected for this
924
- plan because it implies corpus extraction or lifecycle management, which belongs
925
- to profilera/Section 22 tooling rather than usage reporting.
926
- command_shape: agentera usage [--format text|json] [--corpus PATH] [--project VALUE]
927
- direct_entrypoint: agentera usage
928
- supported_options:
929
- format:
930
- values:
931
- - text
932
- - json
933
- default: text
934
- text_behavior: >-
935
- Delegates to `agentera usage`, writes USAGE.md to the existing report
936
- destination, and prints the existing bounded stdout summary.
937
- json_behavior: >-
938
- Delegates to `agentera usage --json`, preserves the existing top-level
939
- analytics payload, and does not write USAGE.md.
940
- corpus:
941
- syntax: --corpus PATH
942
- behavior: >-
943
- Uses the supplied Section 22 corpus.json envelope. When omitted, default
944
- corpus lookup remains owned by `agentera usage` and follows
945
- `AGENTERA_PROFILE_DIR/intermediate/corpus.json` before platform data-home
946
- defaults.
947
- project:
948
- syntax: --project VALUE
949
- behavior: >-
950
- Scopes analytics using the direct script's project matching behavior.
951
- Unmatched values are valid and produce an empty scoped report rather than a
952
- nonzero invalid-input error.
953
- output_contract:
954
- text: >-
955
- Human-readable output preserves the direct script's summary lines, including
956
- scope, skill count, invocation totals, report path, run timestamp, and corpus
957
- extraction timestamp.
958
- json: >-
959
- JSON output preserves the direct script analytics payload with top-level
960
- `generated_at`, `extracted_at`, `project_filter`, `skills`, `per_project`, and
961
- `invocations` fields. It is intentionally not wrapped in a facade envelope.
962
- path_contract:
963
- report_precedence:
964
- - AGENTERA_USAGE_DIR/USAGE.md
965
- - AGENTERA_PROFILE_DIR/USAGE.md
966
- - platform data home agentera/USAGE.md
967
- corpus_precedence:
968
- - AGENTERA_PROFILE_DIR/intermediate/corpus.json
969
- - platform data home agentera/intermediate/corpus.json
970
- test_isolation: >-
971
- Facade tests that exercise default text writes must set temporary
972
- `AGENTERA_USAGE_DIR` and `AGENTERA_PROFILE_DIR` values and must not write the
973
- real user data home.
974
- invalid_input_behavior:
975
- format_error: >-
976
- Unknown formats must exit nonzero, list valid values `text` and `json`, show
977
- `agentera usage [--format text|json] [--corpus PATH] [--project VALUE]`, and
978
- include one concrete example.
979
- missing_corpus: >-
980
- Missing or unusable corpus data preserves `agentera usage` actionable
981
- guidance and must not auto-build corpus data, refresh profiles, scan home
982
- directories, or run live host extraction.
983
- project_filter: >-
984
- Unmatched `--project` values are valid empty reports. Diagnostics must not list
985
- private corpus-derived project IDs as valid values.
986
- compatibility_constraints:
987
- - >-
988
- `agentera usage` remains callable directly with existing `--json`,
989
- `--corpus`, and `--project` behavior.
990
- - >-
991
- JSON consumers continue to receive the existing direct analytics payload shape
992
- without a namespace wrapper envelope.
993
- - >-
994
- Default text behavior continues to write USAGE.md only through the existing
995
- usage report destination rules.
996
- non_goals:
997
- - Do not add `agentera corpus` in this plan.
998
- - Do not build or refresh corpus data.
999
- - Do not refresh PROFILE.md or run profilera.
1000
- - Do not run live host scans or mine home directories beyond direct script path lookup.
1001
- - Do not remove, rename, or redesign `agentera usage`.
1002
- - Do not add unsupported capability-name CLI commands.
1003
- - Do not implement additional D48 validate, verify, or corpus namespace work.
1004
- evidence_sources:
1005
- - agentera --help exposes the `usage` namespace and a JSON example.
1006
- - the usage/report vitest tests covers text output, JSON output, corpus/project flags, missing-corpus guidance, invalid format, help discovery, test path isolation, and direct-script compatibility.
1007
- - the usageStats vitest tests remains the direct analytics engine coverage.
1008
- non_goals_for_task_1:
1009
- - Do not rename bundle-status to doctor.
1010
- - Do not add doctor behavior.
1011
- - Do not add describe behavior.
1012
- - Do not add structured output behavior.
1013
- - Do not add field selection behavior.
1014
- - Do not harden executable inputs.
1015
- - Do not mark Task 1 complete in .agentera/plan.yaml.