agentera 3.0.0-dev.26 → 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 (331) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +13 -3
  3. package/bundle/CHANGELOG.md +4 -1
  4. package/bundle/references/adapters/package-surface-characterization.md +8 -3
  5. package/bundle/references/analysis/analytics-boundary-proportional-2026-07-20.yaml +74 -0
  6. package/bundle/references/analysis/benchmark.md +11 -0
  7. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  8. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  9. package/bundle/references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  10. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-1.json.gz +0 -0
  11. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-2.json.gz +0 -0
  12. package/bundle/references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-3.json.gz +0 -0
  13. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli-route.log.gz +0 -0
  14. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-cli.log.gz +0 -0
  15. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/precommit-documentation.log.gz +0 -0
  16. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/recompute.mjs +98 -0
  17. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-1.json.gz +0 -0
  18. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-2.json.gz +0 -0
  19. package/bundle/references/analysis/evidence/verification-baseline-2026-07-20/source-3.json.gz +0 -0
  20. package/bundle/references/analysis/migration-pagination-proportional-2026-07-20.yaml +64 -0
  21. package/bundle/references/analysis/verification-baseline-2026-07-20.yaml +313 -0
  22. package/bundle/references/analysis/verification-final-proof-2026-07-21.yaml +340 -0
  23. package/bundle/references/analysis/verification-policy.yaml +142 -0
  24. package/bundle/references/analysis/worker-policy-2026-07-21.yaml +207 -0
  25. package/bundle/references/artifacts/state-storage-authority.yaml +5 -1
  26. package/bundle/references/cli/prime-consumer-compatibility.yaml +65 -21
  27. package/bundle/references/meta/documentation-inventory.md +2 -0
  28. package/bundle/skills/agentera/capabilities/orchestrate/schemas/artifacts.yaml +3 -2
  29. package/bundle/skills/agentera/capabilities/orchestrate/schemas/exit.yaml +1 -1
  30. package/bundle/skills/agentera/schemas/artifacts/plan.yaml +22 -4
  31. package/dist/analytics/extractCorpus/cli.js.map +1 -1
  32. package/dist/analytics/extractCorpus/copilotSessions.js.map +1 -1
  33. package/dist/analytics/extractCorpus/core.js.map +1 -1
  34. package/dist/analytics/extractCorpus/corpus.js.map +1 -1
  35. package/dist/analytics/extractCorpus/coverageAudit.js.map +1 -1
  36. package/dist/analytics/extractCorpus/cursorSessions.js.map +1 -1
  37. package/dist/analytics/extractCorpus/evidenceTiers.js.map +1 -1
  38. package/dist/analytics/extractCorpus/extractCorpusParity.js +1 -1
  39. package/dist/analytics/extractCorpus/extractCorpusParity.js.map +1 -1
  40. package/dist/analytics/extractCorpus/filesystemSources.js.map +1 -1
  41. package/dist/analytics/extractCorpus/index.js.map +1 -1
  42. package/dist/analytics/extractCorpus/jsonlSessions.js.map +1 -1
  43. package/dist/analytics/extractCorpus/sqliteCaps.js.map +1 -1
  44. package/dist/analytics/extractCorpus/sqliteSessions.js.map +1 -1
  45. package/dist/analytics/extractCorpus/tierReader.js.map +1 -1
  46. package/dist/analytics/extractCorpus.js.map +1 -1
  47. package/dist/analytics/profileSignals.js.map +1 -1
  48. package/dist/analytics/usageStats.js.map +1 -1
  49. package/dist/bin/agentera.js.map +1 -1
  50. package/dist/capabilities/audit/instructions.js.map +1 -1
  51. package/dist/capabilities/build/instructions.js.map +1 -1
  52. package/dist/capabilities/design/instructions.js.map +1 -1
  53. package/dist/capabilities/discuss/instructions.js.map +1 -1
  54. package/dist/capabilities/document/instructions.js.map +1 -1
  55. package/dist/capabilities/index.js.map +1 -1
  56. package/dist/capabilities/optimize/instructions.js.map +1 -1
  57. package/dist/capabilities/orchestrate/instructions.js +1 -1
  58. package/dist/capabilities/orchestrate/instructions.js.map +1 -1
  59. package/dist/capabilities/plan/instructions.js.map +1 -1
  60. package/dist/capabilities/profile/instructions.js.map +1 -1
  61. package/dist/capabilities/research/instructions.js.map +1 -1
  62. package/dist/capabilities/status/instructions.js.map +1 -1
  63. package/dist/capabilities/status/startupInstructions.js.map +1 -1
  64. package/dist/capabilities/vision/instructions.js.map +1 -1
  65. package/dist/cli/appContext.js.map +1 -1
  66. package/dist/cli/argvalidate.js.map +1 -1
  67. package/dist/cli/capabilityContext/benchmark.js.map +1 -1
  68. package/dist/cli/capabilityContext/bespoke.js.map +1 -1
  69. package/dist/cli/capabilityContext/build.js.map +1 -1
  70. package/dist/cli/capabilityContext/closeout.js.map +1 -1
  71. package/dist/cli/capabilityContext/contract.js.map +1 -1
  72. package/dist/cli/capabilityContext/evidence.js.map +1 -1
  73. package/dist/cli/capabilityContext/index.js.map +1 -1
  74. package/dist/cli/capabilityContext/orchestration.js +15 -5
  75. package/dist/cli/capabilityContext/orchestration.js.map +1 -1
  76. package/dist/cli/capabilityContext/planState.js +1 -1
  77. package/dist/cli/capabilityContext/planState.js.map +1 -1
  78. package/dist/cli/capabilityContext/progress.js.map +1 -1
  79. package/dist/cli/capabilityContext/shared.js.map +1 -1
  80. package/dist/cli/capabilityContext/slim.js +16 -3
  81. package/dist/cli/capabilityContext/slim.js.map +1 -1
  82. package/dist/cli/capabilityContext/startup.js +3 -0
  83. package/dist/cli/capabilityContext/startup.js.map +1 -1
  84. package/dist/cli/capabilityContext/types.js.map +1 -1
  85. package/dist/cli/capabilityContext.js.map +1 -1
  86. package/dist/cli/commands/appHome.js.map +1 -1
  87. package/dist/cli/commands/capability.js.map +1 -1
  88. package/dist/cli/commands/compact.js.map +1 -1
  89. package/dist/cli/commands/doctor.js.map +1 -1
  90. package/dist/cli/commands/durability.js.map +1 -1
  91. package/dist/cli/commands/entityMigrate.js.map +1 -1
  92. package/dist/cli/commands/lint.js.map +1 -1
  93. package/dist/cli/commands/prime/briefOrientation.js +23 -5
  94. package/dist/cli/commands/prime/briefOrientation.js.map +1 -1
  95. package/dist/cli/commands/prime/bundleStatus.js.map +1 -1
  96. package/dist/cli/commands/prime/collectEntityOrientation.js +53 -14
  97. package/dist/cli/commands/prime/collectEntityOrientation.js.map +1 -1
  98. package/dist/cli/commands/prime/collectOrientationState.js +4 -2
  99. package/dist/cli/commands/prime/collectOrientationState.js.map +1 -1
  100. package/dist/cli/commands/prime/orientationOutput.js +6 -3
  101. package/dist/cli/commands/prime/orientationOutput.js.map +1 -1
  102. package/dist/cli/commands/prime/types.js.map +1 -1
  103. package/dist/cli/commands/prime/v1Migration.js.map +1 -1
  104. package/dist/cli/commands/prime.js +43 -20
  105. package/dist/cli/commands/prime.js.map +1 -1
  106. package/dist/cli/commands/query.js.map +1 -1
  107. package/dist/cli/commands/report.js.map +1 -1
  108. package/dist/cli/commands/schema.js.map +1 -1
  109. package/dist/cli/commands/state/decisions.js.map +1 -1
  110. package/dist/cli/commands/state/docs.js.map +1 -1
  111. package/dist/cli/commands/state/experimentRecords.js.map +1 -1
  112. package/dist/cli/commands/state/experiments.js.map +1 -1
  113. package/dist/cli/commands/state/get.js.map +1 -1
  114. package/dist/cli/commands/state/health.js.map +1 -1
  115. package/dist/cli/commands/state/index.js.map +1 -1
  116. package/dist/cli/commands/state/list.js.map +1 -1
  117. package/dist/cli/commands/state/objective.js.map +1 -1
  118. package/dist/cli/commands/state/plan.js.map +1 -1
  119. package/dist/cli/commands/state/planTasks.js.map +1 -1
  120. package/dist/cli/commands/state/plans.js.map +1 -1
  121. package/dist/cli/commands/state/progress.js.map +1 -1
  122. package/dist/cli/commands/state/shared.js.map +1 -1
  123. package/dist/cli/commands/state/todo.js.map +1 -1
  124. package/dist/cli/commands/state/write.js +2 -2
  125. package/dist/cli/commands/state/write.js.map +1 -1
  126. package/dist/cli/commands/upgrade.js.map +1 -1
  127. package/dist/cli/commands/upgradeVerify.js.map +1 -1
  128. package/dist/cli/commands/validate.js.map +1 -1
  129. package/dist/cli/commands/verify.js.map +1 -1
  130. package/dist/cli/contracts/bundleStatus.js.map +1 -1
  131. package/dist/cli/contracts/orientationState.js.map +1 -1
  132. package/dist/cli/dispatch/argvParser.js.map +1 -1
  133. package/dist/cli/dispatch/check.js.map +1 -1
  134. package/dist/cli/dispatch/commands.js.map +1 -1
  135. package/dist/cli/dispatch/index.js.map +1 -1
  136. package/dist/cli/dispatch/lifecycle.js.map +1 -1
  137. package/dist/cli/dispatch/prime.js.map +1 -1
  138. package/dist/cli/dispatch/shared.js.map +1 -1
  139. package/dist/cli/dispatch/state.js.map +1 -1
  140. package/dist/cli/dispatch.js.map +1 -1
  141. package/dist/cli/errors.js.map +1 -1
  142. package/dist/cli/help.js.map +1 -1
  143. package/dist/cli/migrationRequired.js.map +1 -1
  144. package/dist/cli/orientation/attention.js.map +1 -1
  145. package/dist/cli/orientation/corpusCoverage.js.map +1 -1
  146. package/dist/cli/orientation.js +18 -4
  147. package/dist/cli/orientation.js.map +1 -1
  148. package/dist/cli/planArtifacts.js.map +1 -1
  149. package/dist/cli/planEvidence.js.map +1 -1
  150. package/dist/cli/planLifecycleState.js.map +1 -1
  151. package/dist/cli/planTaskIndex.js +12 -0
  152. package/dist/cli/planTaskIndex.js.map +1 -0
  153. package/dist/cli/prime-blob.js +1 -1
  154. package/dist/cli/prime-blob.js.map +1 -1
  155. package/dist/cli/startupCompletenessContract.js.map +1 -1
  156. package/dist/cli/stateQuery.js.map +1 -1
  157. package/dist/cli/structured.js.map +1 -1
  158. package/dist/cli/todoMarkdown.js.map +1 -1
  159. package/dist/cli/todoSeverity.js.map +1 -1
  160. package/dist/core/atomicWriter.js.map +1 -1
  161. package/dist/core/difflib.js.map +1 -1
  162. package/dist/core/envPaths.js.map +1 -1
  163. package/dist/core/jsonValue.js.map +1 -1
  164. package/dist/core/paths.js.map +1 -1
  165. package/dist/core/pyjson.js.map +1 -1
  166. package/dist/core/skillIdentity.js.map +1 -1
  167. package/dist/core/sourceRoot.js.map +1 -1
  168. package/dist/core/text.js.map +1 -1
  169. package/dist/core/toml.js.map +1 -1
  170. package/dist/core/yaml.js.map +1 -1
  171. package/dist/eval/evalSkills.js.map +1 -1
  172. package/dist/eval/semanticEval.js.map +1 -1
  173. package/dist/eval/semanticFixtures.js.map +1 -1
  174. package/dist/hooks/common.js.map +1 -1
  175. package/dist/hooks/compaction/apply.js.map +1 -1
  176. package/dist/hooks/compaction/dryRun.js.map +1 -1
  177. package/dist/hooks/compaction/index.js.map +1 -1
  178. package/dist/hooks/compaction/parse.js.map +1 -1
  179. package/dist/hooks/compaction/retention.js.map +1 -1
  180. package/dist/hooks/compaction/status.js.map +1 -1
  181. package/dist/hooks/compaction/types.js.map +1 -1
  182. package/dist/hooks/cursorPreToolUse.js.map +1 -1
  183. package/dist/hooks/cursorSessionStart.js.map +1 -1
  184. package/dist/hooks/projectHookInput.js.map +1 -1
  185. package/dist/hooks/sessionStart.js.map +1 -1
  186. package/dist/hooks/sessionStop.js.map +1 -1
  187. package/dist/hooks/validateArtifact/agentFacing.js.map +1 -1
  188. package/dist/hooks/validateArtifact/index.js.map +1 -1
  189. package/dist/hooks/validateArtifact/markdown.js.map +1 -1
  190. package/dist/hooks/validateArtifact/runtime.js.map +1 -1
  191. package/dist/hooks/validateArtifact/schema.js.map +1 -1
  192. package/dist/hooks/validateArtifact/traversal.js.map +1 -1
  193. package/dist/hooks/validateArtifact/violations.js.map +1 -1
  194. package/dist/migrate/v2HandoffManifest.js.map +1 -1
  195. package/dist/registries/artifactProtocolIds.js.map +1 -1
  196. package/dist/registries/artifactRegistry.js.map +1 -1
  197. package/dist/registries/capabilityContract.js.map +1 -1
  198. package/dist/registries/evaluatorHandoffContract.js.map +1 -1
  199. package/dist/registries/evidenceTierContract.js.map +1 -1
  200. package/dist/registries/packageRegistry.js.map +1 -1
  201. package/dist/registries/triggerLoader.js.map +1 -1
  202. package/dist/registries/verbosityBudgetContract.js.map +1 -1
  203. package/dist/release/releaseMetadata.js.map +1 -1
  204. package/dist/runtime/lifecycleAdapterContract.js.map +1 -1
  205. package/dist/runtime/lifecycleAdapters.js.map +1 -1
  206. package/dist/runtime/lifecycleAuthority.js.map +1 -1
  207. package/dist/runtime/lifecycleOperationContract.js.map +1 -1
  208. package/dist/runtime/lifecycleOperations.js.map +1 -1
  209. package/dist/runtime/lifecycleOwnershipJournal.js.map +1 -1
  210. package/dist/runtime/lifecyclePublication.js.map +1 -1
  211. package/dist/runtime/lifecycleSnapshot.js.map +1 -1
  212. package/dist/runtime/retiredRuntimeCleanup.js.map +1 -1
  213. package/dist/setup/codex/agents.js.map +1 -1
  214. package/dist/setup/codex/cli.js.map +1 -1
  215. package/dist/setup/codex/configToml.js.map +1 -1
  216. package/dist/setup/codex/constants.js.map +1 -1
  217. package/dist/setup/codex/installRoot.js.map +1 -1
  218. package/dist/setup/codex/state.js.map +1 -1
  219. package/dist/setup/codex.js.map +1 -1
  220. package/dist/setup/opencode.js.map +1 -1
  221. package/dist/setup/opencodeConstants.js.map +1 -1
  222. package/dist/setup/sharedSkill.js.map +1 -1
  223. package/dist/setup/smokeChecks.js.map +1 -1
  224. package/dist/state/archiveDiscovery.js.map +1 -1
  225. package/dist/state/archivePublication.js.map +1 -1
  226. package/dist/state/archiveRecovery.js.map +1 -1
  227. package/dist/state/archiveReplay.js.map +1 -1
  228. package/dist/state/decisionEntities.js.map +1 -1
  229. package/dist/state/decisionLegacyValidation.js.map +1 -1
  230. package/dist/state/decisionOverlay.js.map +1 -1
  231. package/dist/state/decisionRevision.js.map +1 -1
  232. package/dist/state/decisionRevisionPublication.js.map +1 -1
  233. package/dist/state/directRetrieval.js.map +1 -1
  234. package/dist/state/durability.js.map +1 -1
  235. package/dist/state/entityCutover.js.map +1 -1
  236. package/dist/state/entityCutoverGit.js.map +1 -1
  237. package/dist/state/entityMigrationPreview.js +3 -3
  238. package/dist/state/entityMigrationPreview.js.map +1 -1
  239. package/dist/state/entityPublicationContext.js.map +1 -1
  240. package/dist/state/entityStorage.js +22 -2
  241. package/dist/state/entityStorage.js.map +1 -1
  242. package/dist/state/experimentArchive.js.map +1 -1
  243. package/dist/state/experimentIdentity.js.map +1 -1
  244. package/dist/state/experimentRetrieval.js.map +1 -1
  245. package/dist/state/healthEntities.js.map +1 -1
  246. package/dist/state/healthEntityValidation.js.map +1 -1
  247. package/dist/state/healthRepair.js.map +1 -1
  248. package/dist/state/installRoot.js.map +1 -1
  249. package/dist/state/legacyEntityCutoverEvidence.js.map +1 -1
  250. package/dist/state/legacyIdentity.js.map +1 -1
  251. package/dist/state/listAccounting.js.map +1 -1
  252. package/dist/state/listClassification.js.map +1 -1
  253. package/dist/state/listRetrieval.js.map +1 -1
  254. package/dist/state/objectiveExperimentEntities.js.map +1 -1
  255. package/dist/state/planEntities.js +46 -2
  256. package/dist/state/planEntities.js.map +1 -1
  257. package/dist/state/planIdentity.js.map +1 -1
  258. package/dist/state/planRetrieval.js.map +1 -1
  259. package/dist/state/planTaskRetrieval.js.map +1 -1
  260. package/dist/state/progressEntities.js.map +1 -1
  261. package/dist/state/projectRoot.js.map +1 -1
  262. package/dist/state/projectionPolicy.js.map +1 -1
  263. package/dist/state/retrievalAuthority.js.map +1 -1
  264. package/dist/state/safeProjectFile.js.map +1 -1
  265. package/dist/state/startupAnalysis/benchmark.js.map +1 -1
  266. package/dist/state/startupAnalysis/contract.js.map +1 -1
  267. package/dist/state/startupAnalysis/helpers.js.map +1 -1
  268. package/dist/state/startupAnalysis/index.js.map +1 -1
  269. package/dist/state/startupAnalysis/metrics.js.map +1 -1
  270. package/dist/state/startupAnalysis/records.js.map +1 -1
  271. package/dist/state/startupAnalysis/report.js.map +1 -1
  272. package/dist/state/startupAnalysis/threshold.js.map +1 -1
  273. package/dist/state/startupAnalysis.js.map +1 -1
  274. package/dist/state/startupProjection.js +2 -1
  275. package/dist/state/startupProjection.js.map +1 -1
  276. package/dist/state/stateMode.js.map +1 -1
  277. package/dist/state/todoDocsEntities.js.map +1 -1
  278. package/dist/state/todoDocsEntityValidation.js.map +1 -1
  279. package/dist/state/write/assign.js.map +1 -1
  280. package/dist/state/write/candidateMutation.js.map +1 -1
  281. package/dist/state/write/errors.js.map +1 -1
  282. package/dist/state/write/experimentPublication.js.map +1 -1
  283. package/dist/state/write/explain.js +9 -3
  284. package/dist/state/write/explain.js.map +1 -1
  285. package/dist/state/write/fields.js.map +1 -1
  286. package/dist/state/write/helpers.js.map +1 -1
  287. package/dist/state/write/index.js.map +1 -1
  288. package/dist/state/write/input.js.map +1 -1
  289. package/dist/state/write/lock.js.map +1 -1
  290. package/dist/state/write/mutation.js.map +1 -1
  291. package/dist/state/write/operations.js +6 -0
  292. package/dist/state/write/operations.js.map +1 -1
  293. package/dist/state/write/planEvaluation.js +19 -5
  294. package/dist/state/write/planEvaluation.js.map +1 -1
  295. package/dist/state/write/planPublication.js +7 -0
  296. package/dist/state/write/planPublication.js.map +1 -1
  297. package/dist/state/write/serialize.js.map +1 -1
  298. package/dist/state/write/transaction.js +2 -1
  299. package/dist/state/write/transaction.js.map +1 -1
  300. package/dist/state/write/validate.js.map +1 -1
  301. package/dist/upgrade/appContentRefresh.js +15 -20
  302. package/dist/upgrade/appContentRefresh.js.map +1 -1
  303. package/dist/upgrade/appModel.js.map +1 -1
  304. package/dist/upgrade/atomicWriter.js.map +1 -1
  305. package/dist/upgrade/bundleEvidence.js.map +1 -1
  306. package/dist/upgrade/channels.js.map +1 -1
  307. package/dist/upgrade/coexistenceProbe.js.map +1 -1
  308. package/dist/upgrade/compatibility.js.map +1 -1
  309. package/dist/upgrade/doctor.js.map +1 -1
  310. package/dist/upgrade/doctorClassifier.js.map +1 -1
  311. package/dist/upgrade/installedHooksRetirement.js.map +1 -1
  312. package/dist/upgrade/legacyAgentCleanup.js.map +1 -1
  313. package/dist/upgrade/lifecycleUpgrade.js.map +1 -1
  314. package/dist/upgrade/migrateArtifactsV2ToV3.js.map +1 -1
  315. package/dist/upgrade/migrationPublication.js.map +1 -1
  316. package/dist/upgrade/nextMajorDoctor.js.map +1 -1
  317. package/dist/upgrade/npxPlatformStatus.js.map +1 -1
  318. package/dist/upgrade/projectIntegration.js.map +1 -1
  319. package/dist/upgrade/projectIntegrationDecision.js.map +1 -1
  320. package/dist/upgrade/runtimeMigration.js.map +1 -1
  321. package/dist/upgrade/upgradeCommands.js.map +1 -1
  322. package/dist/upgrade/upgradeLock.js.map +1 -1
  323. package/dist/upgrade/upgradeOrchestrator.js.map +1 -1
  324. package/dist/upgrade/v3CapabilitySurface.js.map +1 -1
  325. package/dist/upgrade/versionResolution.js.map +1 -1
  326. package/dist/validate/appHomeContract.js.map +1 -1
  327. package/dist/validate/capability.js.map +1 -1
  328. package/dist/validate/crossCapability.js.map +1 -1
  329. package/dist/validate/selfAudit.js.map +1 -1
  330. package/dist/validate/vocabularyAuthority.js.map +1 -1
  331. package/package.json +19 -6
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md CHANGED
@@ -74,14 +74,24 @@ details.
74
74
 
75
75
  Requires Node.js 22+ and pnpm 10.30.3.
76
76
 
77
+ ### Generated-output ownership and recovery
78
+
79
+ The canonical producer, reader, packing, retention, and recovery contract is
80
+ [v3 npm packaging and verification](../../docs/packaging/v3-packaging.md).
81
+ Generated generations are disposable; source files and the package registry
82
+ remain authoritative. Use its recovery matrix rather than deleting uncertain
83
+ state.
84
+
77
85
  ```bash
78
86
  pnpm -C packages/cli test
79
87
  pnpm -C packages/cli run verify:package
80
88
  pnpm -C packages/cli run typecheck
81
89
  pnpm -C packages/cli build
90
+ pnpm -C packages/cli run verify:generated-overlap
91
+ pnpm -C packages/cli run generated:cleanup -- --dry-run --json
82
92
  pnpm -C packages/cli run lint
83
93
  ```
84
94
 
85
- Use `npm pack --dry-run --json --ignore-scripts` after `build` and
86
- `bundle:data` to inspect the exact publication surface. Do not publish from a
87
- normal development or capability cycle.
95
+ Use `pnpm -C packages/cli run pack:dry-run` to inspect the exact isolated
96
+ publication surface. Do not publish from a normal development or capability
97
+ cycle.
@@ -38,7 +38,7 @@
38
38
  - Retained runtime lifecycle contracts only as migration evidence and for explicit `agentera upgrade --legacy-cleanup claude --dry-run|--yes`, which can remove only the ownership-proven legacy Agentera skill link and excludes user data.
39
39
  - Added typed artifact writes under `agentera state`: progress/decision/audit appends, decision satisfaction updates, plan create/task/status/archive lifecycle operations, schema-derived `explain`, server-assigned identifiers, exact retry replay, dry-run diffs, project locking, strict mapped-path safety, staged 10/40/50 compaction, final-byte validation, and atomic publication.
40
40
  - Added `install_track` to `prime --format json` (`app_home.install_track`) and `doctor --format json`. Values are `v2`, `v3`, `source`, and `unknown`.
41
- - Added the TypeScript CLI on the npm development channel (`npx -y agentera@next`), bundling app data at pack time via `prepack` (`tsc` + `scripts/copy-bundle.mjs`) and the `.agentera-npx-bundle.json` sentinel checked by `packages/cli/test/packaging/prepack.test.ts`.
41
+ - Added the TypeScript CLI on the npm development channel (`npx -y agentera@next`) as a self-contained package whose governed isolated construction stages compiled commands, registry-owned app data, and the `.agentera-npx-bundle.json` sentinel before packing with lifecycle scripts disabled.
42
42
  - Added `packages/cli/src/migrate/v2HandoffManifest.ts` to read `v3-handoff.json` during v2→v3 cleanup preflight per `references/cli/v3-handoff-manifest.schema.yaml`.
43
43
  - Added v3 `agentera doctor` coexistence detection in `packages/cli/src/upgrade/coexistenceProbe.ts` with regression coverage in `packages/cli/test/cli/coexistenceProbe.test.ts`.
44
44
  - Added maintainer gates under `agentera check` (`validate`, `verify`, `lint`, `compact`) with JSON parity oracles for validate families, verify eval targets, invalid-input envelopes, and `source_contract` emissions on `prime`, `prime --context`, `state plan`, and `state query --list-artifacts`.
@@ -74,6 +74,9 @@
74
74
 
75
75
  ### Fixed
76
76
 
77
+ - Fixed overlapping source, build, and package verification to use isolated construction and one atomically selected `dist` + `bundle` generation; clean source no longer requires checkout output, package proof still runs from an extracted tarball, and `pnpm -C packages/cli run pack:dry-run` replaces direct checkout `npm pack`.
78
+ - Fixed `agentera prime --context status` to report severity totals across every open TODO while keeping attention and routing detail bounded with explicit omission recovery.
79
+ - Fixed `agentera prime --context status` to exclude resolved entity TODOs before bounded pagination, so severity counts, attention, and next-action routing reflect only open work.
77
80
  - Fixed overlapping `upgrade --yes` runs to hold separate exclusive project and shared-runtime locks, reject stale or malformed lock state with bounded manual recovery, and release only a matching ownership token.
78
81
  - Fixed migration-required recovery commands to shell-quote project paths so shell substitutions remain literal and the intended project receives the v2-to-v3 cutover.
79
82
  - Fixed marker-absent v2 projects to select the entity cutover from project state under npm or source v3 execution, so the recovery command emitted by `prime` can complete the forward migration instead of reporting an unrelated no-op.
@@ -25,15 +25,20 @@ implementing this check are excluded, avoiding a circular source reference.
25
25
 
26
26
  ## npm bundle
27
27
 
28
+ Contributor construction, checkout-generation, and recovery behavior is owned
29
+ by [`docs/packaging/v3-packaging.md`](../../docs/packaging/v3-packaging.md).
30
+
28
31
  The self-contained npm package ships `dist/` plus `bundle/`. Bundle data
29
32
  includes the canonical `skills/` tree, required `references/`, `registry.json`,
30
33
  and package guidance. Compiled commands ship in `dist/`. The shared-skill tree
31
34
  includes its capability schemas, artifact schemas, and canonical
32
35
  `skills/agentera/agents/*.toml` descriptors.
33
36
 
34
- Packaging tests inspect `npm pack --dry-run --json --ignore-scripts` and fail if
35
- the CLI or required bundle data disappears, or if a current host-native
36
- descriptor/runtime path enters the package.
37
+ The package lane's isolated package fixture invokes `npm pack --json
38
+ --ignore-scripts` after governed construction and fails if the CLI or required
39
+ bundle data disappears, or if a current host-native descriptor/runtime path
40
+ enters the package. Contributors use `pnpm -C packages/cli run pack:dry-run`;
41
+ direct checkout packing remains rejected by the canonical packaging authority.
37
42
 
38
43
  ## Native package boundary
39
44
 
@@ -0,0 +1,74 @@
1
+ schemaVersion: agentera.verificationMeasurement.v1
2
+ status: pass
3
+ captured: 2026-07-20
4
+
5
+ comparison:
6
+ metric: assertion_duration_ms
7
+ direction: lower
8
+ before:
9
+ authority: references/analysis/verification-baseline-2026-07-20.yaml
10
+ production_shard_byte_cap: 67108864
11
+ assertions:
12
+ - test: reports oversized with the artifact path when a shard exceeds the cap
13
+ samples_ms: [13089, 10497, 10245]
14
+ median_ms: 10497
15
+ disposition: consolidated_into_retention_assertion
16
+ - test: retains an oversized record in its own shard and reports oversized state
17
+ samples_ms: [9350, 8554, 8589]
18
+ median_ms: 8589
19
+ cumulative_median_ms: 19086
20
+ after:
21
+ proportional_shard_byte_cap: 8192
22
+ test: retains an oversized record in its own shard and reports oversized state
23
+ samples_ms: [25.284901, 25.359614, 24.883412]
24
+ median_ms: 25.284901
25
+ raw_report_compression: gzip_lossless_mtime_zero
26
+ raw_reports:
27
+ - references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-1.json.gz
28
+ - references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-2.json.gz
29
+ - references/analysis/evidence/analytics-boundary-proportional-2026-07-20/source-focused-3.json.gz
30
+ retained_assertion_reduction_ms: 8563.715099
31
+ retained_assertion_reduction_percent: 99.705613
32
+ cumulative_dense_assertion_reduction_ms: 19060.715099
33
+ cumulative_dense_assertion_reduction_percent: 99.867521
34
+
35
+ protocol:
36
+ inherited_from: references/analysis/verification-baseline-2026-07-20.yaml#protocol.source
37
+ environment:
38
+ VITEST_MAX_WORKERS: "4"
39
+ warmup_runs: 1
40
+ retained_runs: 3
41
+ command: >-
42
+ pnpm -C packages/cli exec vp test run --config vite.config.ts
43
+ test/analytics/tierReader.test.ts -t "retains an oversized record"
44
+ --reporter=json
45
+ note: >-
46
+ Before samples are Task 1's exact full-source assertion durations. After
47
+ samples isolate the retained assertion; the duplicate artifact-path case
48
+ was consolidated into it rather than assigned a synthetic zero duration.
49
+
50
+ coverage:
51
+ proportional_shard_boundary:
52
+ owner: source
53
+ path: packages/cli/test/analytics/tierReader.test.ts
54
+ byte_cap: 8192
55
+ pass: reports current when tiers are published and complete
56
+ fail: retains an oversized record in its own shard and reports oversized state
57
+ guarantees: [retention, recovery, state, artifact_path]
58
+ production_constants:
59
+ owner: source
60
+ path: packages/cli/test/analytics/oversizedRegression.test.ts
61
+ shard_byte_cap: 67108864
62
+ signal_byte_cap: 67108864
63
+ reader_byte_cap: 67108864
64
+ production_wiring:
65
+ owner: performance
66
+ path: packages/cli/test/performance/analyticsEvidenceTierCap.test.ts
67
+ shard_byte_cap: 67108864
68
+ owner_command: pnpm -C packages/cli test:performance
69
+ policies: [scheduled, release]
70
+
71
+ caveats:
72
+ - The decisions query remained degraded; omitted decision detail was not reconstructed.
73
+ - Build startup omitted decisions, vision, and profile state; no refresh or inferred approval was performed.
74
+ - Decision satisfaction remained unavailable for llavvlpcmb and djmjbmruyk.
@@ -23,6 +23,17 @@ contract validators, and runtime smoke checks.
23
23
  | --- | --- | --- | --- |
24
24
  | Startup state benchmark | `mage bench:startupState` | Measures how often Agentera CLI state reads are followed by raw artifact access during startup/state gathering. | Manual only; forbidden in normal CI. |
25
25
 
26
+ Verification optimization uses a separate retained baseline rather than this
27
+ runtime-history benchmark. The 2026-07-20 source and pre-commit samples,
28
+ production-scale ownership map, and unresolved worker/lane criteria live in
29
+ [`verification-baseline-2026-07-20.yaml`](./verification-baseline-2026-07-20.yaml).
30
+ That baseline remains measurement authority. Current test ownership, independent
31
+ owner commands, mixed-file separation markers, conservative routing, and named
32
+ execution-policy compositions live in
33
+ [`verification-policy.yaml`](./verification-policy.yaml).
34
+ Losslessly compressed raw reports live beside a dependency-free recomputation
35
+ command under `references/analysis/evidence/verification-baseline-2026-07-20/`.
36
+
26
37
  The startup benchmark is an optimization signal for Decision 51 and Decision 52.
27
38
  It does not implement a startup state envelope or change runtime behavior.
28
39
 
@@ -0,0 +1,98 @@
1
+ #!/usr/bin/env node
2
+ import fs from "node:fs";
3
+ import path from "node:path";
4
+ import zlib from "node:zlib";
5
+
6
+ const root = import.meta.dirname;
7
+ const median = (values) => [...values].sort((a, b) => a - b)[Math.floor(values.length / 2)];
8
+ const round = (value) => Math.round(value * 1000) / 1000;
9
+ const sources = [];
10
+ const assertionsByIdentity = new Map();
11
+
12
+ for (let sample = 1; sample <= 3; sample += 1) {
13
+ const report = JSON.parse(
14
+ zlib.gunzipSync(fs.readFileSync(path.join(root, `source-${sample}.json.gz`))),
15
+ );
16
+ const assertions = report.testResults.flatMap((file) =>
17
+ file.assertionResults.map((assertion) => ({
18
+ file: file.name.split("/packages/cli/").at(-1),
19
+ name: assertion.fullName,
20
+ duration_ms: assertion.duration ?? 0,
21
+ })),
22
+ );
23
+ const jsonElapsedMs =
24
+ Math.max(...report.testResults.map((file) => file.endTime)) - report.startTime;
25
+ sources.push({
26
+ sample,
27
+ files: report.testResults.length,
28
+ tests: report.numTotalTests,
29
+ cumulative_assertion_ms: round(
30
+ assertions.reduce((total, assertion) => total + assertion.duration_ms, 0),
31
+ ),
32
+ json_elapsed_ms: round(jsonElapsedMs),
33
+ });
34
+ for (const assertion of assertions) {
35
+ const identity = `${assertion.file}\n${assertion.name}`;
36
+ const entry = assertionsByIdentity.get(identity) ?? {
37
+ file: assertion.file,
38
+ test: assertion.name,
39
+ samples_ms: [],
40
+ };
41
+ entry.samples_ms.push(assertion.duration_ms);
42
+ assertionsByIdentity.set(identity, entry);
43
+ }
44
+ }
45
+
46
+ const slowest = [...assertionsByIdentity.values()]
47
+ .map((entry) => ({
48
+ ...entry,
49
+ samples_ms: entry.samples_ms.map(round),
50
+ median_ms: round(median(entry.samples_ms)),
51
+ }))
52
+ .sort((a, b) => b.median_ms - a.median_ms)
53
+ .slice(0, 10);
54
+
55
+ function hook(name) {
56
+ const text = zlib.gunzipSync(fs.readFileSync(path.join(root, name))).toString("utf8");
57
+ const wrapper = JSON.parse(text.trim().split("\n").at(-1));
58
+ const lefthook = Number(/done in ([0-9.]+) seconds/.exec(text)?.[1]) * 1000;
59
+ const policies = [...text.matchAll(/✔️ ([^\n]+?) \(([0-9.]+) seconds\)/g)].map((match) => ({
60
+ name: match[1],
61
+ duration_ms: Number(match[2]) * 1000,
62
+ }));
63
+ return {
64
+ wall_ms: wrapper.wall_ms,
65
+ lefthook_ms: lefthook,
66
+ exit_status: wrapper.exit_status,
67
+ policies,
68
+ };
69
+ }
70
+
71
+ const route = zlib
72
+ .gunzipSync(fs.readFileSync(path.join(root, "precommit-cli-route.log.gz")))
73
+ .toString("utf8")
74
+ .trim()
75
+ .split("\n");
76
+
77
+ console.log(
78
+ JSON.stringify(
79
+ {
80
+ source_samples: sources,
81
+ source_medians: {
82
+ cumulative_assertion_ms: round(
83
+ median(sources.map((sample) => sample.cumulative_assertion_ms)),
84
+ ),
85
+ json_elapsed_ms: round(median(sources.map((sample) => sample.json_elapsed_ms))),
86
+ files: median(sources.map((sample) => sample.files)),
87
+ tests: median(sources.map((sample) => sample.tests)),
88
+ },
89
+ slowest_tests_by_median: slowest,
90
+ pre_commit: {
91
+ representative_cli: { ...hook("precommit-cli.log.gz"), route },
92
+ representative_documentation: hook("precommit-documentation.log.gz"),
93
+ },
94
+ },
95
+ null,
96
+ 2,
97
+ ),
98
+ );
@@ -0,0 +1,64 @@
1
+ schemaVersion: agentera.verificationMeasurement.v1
2
+ status: pass
3
+ captured: 2026-07-20
4
+
5
+ comparison:
6
+ test: uses snapshot-bound whole-entry pagination to recover every entry without gaps or duplicates
7
+ metric: assertion_duration_ms
8
+ direction: lower
9
+ before:
10
+ authority: references/analysis/verification-baseline-2026-07-20.yaml
11
+ fixture_entries: 400
12
+ samples_ms: [18325, 16575, 16680]
13
+ median_ms: 16680
14
+ after:
15
+ fixture_entries: 40
16
+ samples_ms: [179.449348, 164.137058, 178.642103]
17
+ median_ms: 178.642103
18
+ raw_report_compression: gzip_lossless_mtime_zero
19
+ raw_reports:
20
+ - references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-1.json.gz
21
+ - references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-2.json.gz
22
+ - references/analysis/evidence/migration-pagination-proportional-2026-07-20/source-focused-3.json.gz
23
+ reduction_ms: 16501.357897
24
+ reduction_percent: 98.929004
25
+ speedup: 93.371046
26
+
27
+ protocol:
28
+ inherited_from: references/analysis/verification-baseline-2026-07-20.yaml#protocol.source
29
+ environment:
30
+ VITEST_MAX_WORKERS: "4"
31
+ warmup_runs: 1
32
+ retained_runs: 3
33
+ command: >-
34
+ pnpm -C packages/cli exec vp test run --config vite.config.ts
35
+ test/state/entityMigrationPreview.test.ts
36
+ -t "uses snapshot-bound whole-entry pagination" --reporter=json
37
+ note: >-
38
+ The before samples are the exact assertion durations retained by Task 1's
39
+ full-source protocol. The after samples isolate the same assertion so the
40
+ proportional fixture cost is directly reproducible without rerunning
41
+ unrelated source tests.
42
+
43
+ coverage:
44
+ proportional_source:
45
+ owner: source
46
+ path: packages/cli/test/state/entityMigrationPreview.test.ts
47
+ fixture_entries: 40
48
+ guarantees: [multi_page, whole_entry, byte_bound, no_gaps, no_duplicates, continuation_command]
49
+ cursor_mutations:
50
+ owner: source
51
+ mutations: [source, authority, filter, order, project]
52
+ guarantees: [continuation_rejected, restart_without_cursor, zero_write]
53
+ production_cap:
54
+ owner: performance
55
+ path: packages/cli/test/performance/entityMigrationPreviewCap.test.ts
56
+ fixture_entries: 400
57
+ response_cap_bytes: 32768
58
+ owner_command: pnpm -C packages/cli test:performance
59
+ policies: [scheduled, release]
60
+
61
+ caveats:
62
+ - The decisions query remained degraded; missing decision detail was not reconstructed.
63
+ - Build startup omitted decisions, vision, and profile state; no refresh or inferred approval was performed.
64
+ - Decision satisfaction remained unavailable for llavvlpcmb and djmjbmruyk.