@unbrained/pm-cli 2026.10.11 → 2026.10.13

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 (740) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/CHANGELOG.md +45 -0
  3. package/dist/cli/after-command-context-usage.d.ts +8 -8
  4. package/dist/cli/bundle-integrity.d.ts +23 -23
  5. package/dist/cli/commander-usage.d.ts +31 -31
  6. package/dist/cli/commander-usage.js +3 -3
  7. package/dist/cli/error-guidance.d.ts +158 -161
  8. package/dist/cli/error-guidance.js +2 -2
  9. package/dist/cli/extension-command-help.d.ts +68 -68
  10. package/dist/cli/extension-command-options.d.ts +20 -20
  11. package/dist/cli/extension-recovery.d.ts +20 -20
  12. package/dist/cli/help-content.d.ts +16 -16
  13. package/dist/cli/help-content.js +2 -2
  14. package/dist/cli/help-json-payload.d.ts +40 -40
  15. package/dist/cli/help-json-payload.js +1 -1
  16. package/dist/cli/invocation-profile.d.ts +8 -8
  17. package/dist/cli/main.d.ts +166 -165
  18. package/dist/cli/main.js +4 -4
  19. package/dist/cli/migration-gates.d.ts +20 -20
  20. package/dist/cli/register-list-query.d.ts +4 -4
  21. package/dist/cli/register-mutation-options.d.ts +2 -2
  22. package/dist/cli/register-operations.d.ts +68 -63
  23. package/dist/cli/register-operations.js +1 -1
  24. package/dist/cli/register-setup.d.ts +1 -1
  25. package/dist/cli/register-structured-mutation.d.ts +3 -3
  26. package/dist/cli/register-structured-mutation.js +1 -1
  27. package/dist/cli/runtime/activation.d.ts +3 -3
  28. package/dist/cli/runtime/invocation-options.js +1 -1
  29. package/dist/cli/runtime/selection.d.ts +6 -6
  30. package/dist/cli/runtime-compatibility-boundary.d.ts +12 -12
  31. package/dist/cli-bundle/bundle-manifest.json +1 -1
  32. package/dist/cli-bundle/chunks/{chunk-K2UTE75T.js → chunk-AM2XOZKE.js} +2 -2
  33. package/dist/cli-bundle/chunks/{chunk-S445XEYT.js → chunk-APWPC4ZZ.js} +2 -2
  34. package/dist/cli-bundle/chunks/chunk-DJDRHJBP.js +234 -0
  35. package/dist/cli-bundle/chunks/{chunk-RUT3CCAG.js → chunk-DUK5DHI6.js} +2 -2
  36. package/dist/cli-bundle/chunks/chunk-HXHFKXLV.js +2 -0
  37. package/dist/cli-bundle/chunks/chunk-IFPJDJUM.js +20 -0
  38. package/dist/cli-bundle/chunks/{chunk-OBLO45UM.js → chunk-LBDWFWPK.js} +2 -2
  39. package/dist/cli-bundle/chunks/{chunk-ZWRLAOA4.js → chunk-N5EXRYCZ.js} +2 -2
  40. package/dist/cli-bundle/chunks/chunk-PSNS537F.js +30 -0
  41. package/dist/cli-bundle/chunks/{chunk-2JYTSTQP.js → chunk-RL45OYTL.js} +2 -2
  42. package/dist/cli-bundle/chunks/{chunk-ESRACL6K.js → chunk-UBTYYZIE.js} +49 -49
  43. package/dist/cli-bundle/chunks/chunk-WYZGZV2M.js +2 -0
  44. package/dist/cli-bundle/chunks/{chunk-SSY4OSJR.js → chunk-YH6H3UVE.js} +10 -10
  45. package/dist/cli-bundle/chunks/{register-list-query-T6BOR67M.js → register-list-query-BJ742QOR.js} +2 -2
  46. package/dist/cli-bundle/chunks/{register-mutation-6NXR7SAJ.js → register-mutation-GGGBRIH2.js} +3 -3
  47. package/dist/cli-bundle/chunks/register-operations-E6HXYHNM.js +2 -0
  48. package/dist/cli-bundle/chunks/{register-setup-MAYFPKBX.js → register-setup-4ZVTVEPY.js} +2 -2
  49. package/dist/cli-bundle/focused-chunks/{chunk-EIOQNLBQ.js → chunk-3LQEBXU5.js} +12 -12
  50. package/dist/cli-bundle/focused-chunks/{chunk-PLTTMQAW.js → chunk-6BTUISKV.js} +2 -2
  51. package/dist/cli-bundle/focused-chunks/chunk-73UNAJHD.js +2 -0
  52. package/dist/cli-bundle/focused-chunks/{chunk-WAOXID5J.js → chunk-DVK7VKZL.js} +2 -2
  53. package/dist/cli-bundle/focused-chunks/{chunk-SIEGIPNT.js → chunk-F5J3ATMV.js} +16 -16
  54. package/dist/cli-bundle/focused-chunks/chunk-IIKFTJVC.js +2 -0
  55. package/dist/cli-bundle/focused-chunks/chunk-IOTNG6CN.js +2 -0
  56. package/dist/cli-bundle/focused-chunks/{chunk-AU6VJGTY.js → chunk-KGFRQ34R.js} +2 -2
  57. package/dist/cli-bundle/focused-chunks/chunk-NNW5BS5L.js +3 -0
  58. package/dist/cli-bundle/focused-chunks/{chunk-KNJR2WUO.js → chunk-QMNAY25P.js} +62 -62
  59. package/dist/cli-bundle/focused-chunks/{chunk-W5AE7GKZ.js → chunk-R23T7GFZ.js} +2 -2
  60. package/dist/cli-bundle/focused-chunks/chunk-RAA7SVRA.js +8 -0
  61. package/dist/cli-bundle/focused-chunks/{chunk-52UJEHEV.js → chunk-RU6GCFN3.js} +2 -2
  62. package/dist/cli-bundle/focused-chunks/{chunk-JGFSSR3G.js → chunk-S6ITXQ5T.js} +5 -5
  63. package/dist/cli-bundle/focused-chunks/{chunk-DMSADMEU.js → chunk-SOB7X4FJ.js} +2 -2
  64. package/dist/cli-bundle/focused-chunks/chunk-UPJA45K7.js +26 -0
  65. package/dist/cli-bundle/main.js +22 -22
  66. package/dist/cli-bundle/sdk-authoring.js +1 -1
  67. package/dist/cli-bundle/sdk-contracts.js +2 -2
  68. package/dist/cli-bundle/sdk-core.js +31 -31
  69. package/dist/cli-bundle/sdk-governance.js +1 -1
  70. package/dist/cli-bundle/sdk-graph.js +1 -1
  71. package/dist/cli-bundle/sdk-merge.js +51 -51
  72. package/dist/cli-bundle/sdk-query.js +1 -1
  73. package/dist/cli-bundle/sdk-runtime.js +1 -1
  74. package/dist/cli-bundle/sdk-testing.js +1 -1
  75. package/dist/cli-bundle/sdk.js +8 -8
  76. package/dist/cli.d.ts +4 -4
  77. package/dist/core/checkpoint/checkpoint-gc.d.ts +32 -32
  78. package/dist/core/checkpoint/mutation-checkpoint.d.ts +34 -34
  79. package/dist/core/config/nested-settings.d.ts +26 -26
  80. package/dist/core/config/positional-value.d.ts +16 -16
  81. package/dist/core/diagnostics/remediation.d.ts +6 -6
  82. package/dist/core/diagnostics/remediation.js +1 -1
  83. package/dist/core/extensions/activation-summary-markdown.d.ts +6 -6
  84. package/dist/core/extensions/activation-summary.d.ts +54 -54
  85. package/dist/core/extensions/activation-transaction.d.ts +7 -7
  86. package/dist/core/extensions/capability-usage.d.ts +26 -26
  87. package/dist/core/extensions/command-hook-context.d.ts +26 -26
  88. package/dist/core/extensions/contribution-inventory.d.ts +21 -21
  89. package/dist/core/extensions/extension-candidate.d.ts +14 -14
  90. package/dist/core/extensions/extension-capability-aliases.d.ts +2 -2
  91. package/dist/core/extensions/extension-policy.d.ts +80 -80
  92. package/dist/core/extensions/extension-types.d.ts +1294 -1285
  93. package/dist/core/extensions/extension-types.js +1 -1
  94. package/dist/core/extensions/flag-definition-validation.d.ts +4 -4
  95. package/dist/core/extensions/item-fields.d.ts +3 -2
  96. package/dist/core/extensions/item-fields.js +1 -1
  97. package/dist/core/extensions/loader.d.ts +36 -36
  98. package/dist/core/extensions/loader.js +1 -1
  99. package/dist/core/extensions/manifest-schema.d.ts +16 -16
  100. package/dist/core/extensions/module-graph-snapshot.d.ts +8 -8
  101. package/dist/core/extensions/read-output-contract.d.ts +5 -0
  102. package/dist/core/extensions/read-output-contract.js +2 -0
  103. package/dist/core/extensions/registration-values.d.ts +1 -1
  104. package/dist/core/extensions/reserved-host-flags.d.ts +6 -6
  105. package/dist/core/extensions/version-compat.d.ts +10 -10
  106. package/dist/core/fs/fs-utils.d.ts +1 -1
  107. package/dist/core/fs/host-environment-errors.d.ts +14 -14
  108. package/dist/core/governance/content-fields.d.ts +31 -31
  109. package/dist/core/governance/issue-codes.d.ts +27 -27
  110. package/dist/core/governance/metadata-coverage.d.ts +91 -91
  111. package/dist/core/history/drift-scan.d.ts +26 -26
  112. package/dist/core/history/event-classification.d.ts +1 -1
  113. package/dist/core/history/event-classification.js +1 -1
  114. package/dist/core/history/event-index.d.ts +41 -41
  115. package/dist/core/history/history-compact-bulk.d.ts +22 -22
  116. package/dist/core/history/history-diff.d.ts +22 -22
  117. package/dist/core/history/history-rewrite.d.ts +66 -66
  118. package/dist/core/history/history-storage-stats.d.ts +31 -31
  119. package/dist/core/history/history-stream-policy.d.ts +12 -12
  120. package/dist/core/history/history.d.ts +22 -22
  121. package/dist/core/history/identity.d.ts +6 -6
  122. package/dist/core/history/operation-contract.d.ts +9 -9
  123. package/dist/core/history/projection.d.ts +15 -15
  124. package/dist/core/history/read.d.ts +4 -4
  125. package/dist/core/history/replay.d.ts +51 -49
  126. package/dist/core/history/replay.js +1 -1
  127. package/dist/core/history/workspace-history.d.ts +101 -101
  128. package/dist/core/io/bulk-ids-input.d.ts +4 -4
  129. package/dist/core/item/actionability.d.ts +40 -40
  130. package/dist/core/item/id.d.ts +3 -3
  131. package/dist/core/item/item-format-version.d.ts +8 -8
  132. package/dist/core/item/item-format.d.ts +37 -35
  133. package/dist/core/item/item-format.js +2 -2
  134. package/dist/core/item/item-type-definition.d.ts +2 -2
  135. package/dist/core/item/parent-reference-policy.d.ts +1 -1
  136. package/dist/core/item/parse.d.ts +12 -12
  137. package/dist/core/item/sprint-release-format.d.ts +2 -2
  138. package/dist/core/item/status-filter.d.ts +4 -4
  139. package/dist/core/item/toon-decode.d.ts +9 -9
  140. package/dist/core/item/type-registry.d.ts +40 -40
  141. package/dist/core/lock/lock-gc.d.ts +50 -50
  142. package/dist/core/lock/lock.d.ts +37 -37
  143. package/dist/core/output/mutation-projection.d.ts +6 -6
  144. package/dist/core/output/output-control.d.ts +4 -4
  145. package/dist/core/output/output.d.ts +40 -40
  146. package/dist/core/output/query-summary.d.ts +5 -5
  147. package/dist/core/packages/manifest.d.ts +50 -50
  148. package/dist/core/policy/workflow-policy-schema.d.ts +306 -306
  149. package/dist/core/policy/workflow-policy-store.d.ts +7 -7
  150. package/dist/core/policy/workflow-policy.d.ts +81 -81
  151. package/dist/core/profile/profile-describe.d.ts +40 -40
  152. package/dist/core/profile/profile-lint.d.ts +20 -20
  153. package/dist/core/profile/profile-plan.d.ts +84 -84
  154. package/dist/core/profile/profile-presets.d.ts +52 -52
  155. package/dist/core/reproducibility/context.d.ts +6 -6
  156. package/dist/core/schema/fields-file.d.ts +54 -54
  157. package/dist/core/schema/item-types-file.d.ts +36 -36
  158. package/dist/core/schema/runtime-field-values.d.ts +2 -2
  159. package/dist/core/schema/runtime-schema.d.ts +86 -86
  160. package/dist/core/schema/status-defs-file.d.ts +36 -36
  161. package/dist/core/schema/type-inference.d.ts +14 -14
  162. package/dist/core/schema/type-workflows.d.ts +22 -22
  163. package/dist/core/search/background-refresh.d.ts +9 -9
  164. package/dist/core/search/bm25.d.ts +19 -19
  165. package/dist/core/search/cache.d.ts +35 -35
  166. package/dist/core/search/corpus.d.ts +12 -12
  167. package/dist/core/search/embedding-batches.d.ts +48 -48
  168. package/dist/core/search/eval.d.ts +49 -49
  169. package/dist/core/search/http-client.d.ts +38 -38
  170. package/dist/core/search/providers.d.ts +41 -41
  171. package/dist/core/search/relevance.d.ts +20 -20
  172. package/dist/core/search/semantic-defaults.d.ts +8 -8
  173. package/dist/core/search/staleness.d.ts +4 -4
  174. package/dist/core/search/vector-stores.d.ts +78 -78
  175. package/dist/core/search/vectorization-metadata.d.ts +6 -6
  176. package/dist/core/sentry/helpers.d.ts +15 -15
  177. package/dist/core/sentry/instrument.d.ts +40 -40
  178. package/dist/core/session/session-state.d.ts +32 -32
  179. package/dist/core/shared/agent-session-context.d.ts +14 -14
  180. package/dist/core/shared/author.d.ts +128 -128
  181. package/dist/core/shared/command-types.d.ts +40 -40
  182. package/dist/core/shared/conflict-markers.d.ts +6 -6
  183. package/dist/core/shared/constants.d.ts +13 -13
  184. package/dist/core/shared/errors.d.ts +194 -183
  185. package/dist/core/shared/errors.js +1 -1
  186. package/dist/core/shared/secret-rules.d.ts +97 -97
  187. package/dist/core/shared/serial-queue.d.ts +8 -8
  188. package/dist/core/shared/split-comma-list.d.ts +6 -6
  189. package/dist/core/shared/time.d.ts +23 -23
  190. package/dist/core/store/item-format-migration.d.ts +10 -10
  191. package/dist/core/store/item-metadata-cache.d.ts +38 -38
  192. package/dist/core/store/item-metadata-query-index.d.ts +79 -79
  193. package/dist/core/store/item-metadata-read-work.d.ts +6 -6
  194. package/dist/core/store/item-store.d.ts +110 -110
  195. package/dist/core/store/paths.d.ts +2 -2
  196. package/dist/core/store/settings-read-cache.d.ts +12 -12
  197. package/dist/core/store/settings-validator.d.ts +165 -165
  198. package/dist/core/store/settings.d.ts +59 -59
  199. package/dist/core/telemetry/observability.d.ts +17 -17
  200. package/dist/core/telemetry/policy.d.ts +3 -3
  201. package/dist/core/telemetry/runtime.d.ts +242 -242
  202. package/dist/core/telemetry/runtime.js +2 -2
  203. package/dist/core/test/background-runs.d.ts +186 -185
  204. package/dist/core/test/background-runs.js +2 -2
  205. package/dist/core/test/item-test-run-tracking.d.ts +6 -6
  206. package/dist/core/test/run-selectors.d.ts +18 -18
  207. package/dist/core/validate/fix-planning.d.ts +50 -50
  208. package/dist/core/validate/missing-by-type.d.ts +4 -4
  209. package/dist/core/validate/missing-link-owners.d.ts +30 -30
  210. package/dist/core/validate/stale-file-classification.d.ts +8 -8
  211. package/dist/mcp/http-server.d.ts +28 -28
  212. package/dist/mcp/legacy-adapter.d.ts +33 -33
  213. package/dist/mcp/runtime-capabilities.d.ts +16 -16
  214. package/dist/mcp/server.d.ts +50 -50
  215. package/dist/mcp/tool-definitions.d.ts +36 -36
  216. package/dist/sdk/agent/closed-domain-contracts.d.ts +18 -18
  217. package/dist/sdk/agent/command-recovery.d.ts +4 -0
  218. package/dist/sdk/agent/command-recovery.js +1 -1
  219. package/dist/sdk/agent/command-suggestions.d.ts +2 -0
  220. package/dist/sdk/agent/command-suggestions.js +1 -1
  221. package/dist/sdk/agent/identity-config.d.ts +32 -32
  222. package/dist/sdk/agent/item-addressing.d.ts +8 -8
  223. package/dist/sdk/agent/refusal-closure-census.d.ts +34 -34
  224. package/dist/sdk/agent/refusal-closure.d.ts +42 -42
  225. package/dist/sdk/agent/refusal-corpus-contracts.d.ts +46 -46
  226. package/dist/sdk/agent/refusal-reachability.d.ts +112 -112
  227. package/dist/sdk/agent/subcommand-recovery.d.ts +25 -25
  228. package/dist/sdk/agent/task-transcript-contracts.d.ts +30 -30
  229. package/dist/sdk/agent/tracker-preflight-contracts.d.ts +38 -38
  230. package/dist/sdk/agent-capability-contracts.d.ts +37 -37
  231. package/dist/sdk/annotations.d.ts +106 -106
  232. package/dist/sdk/author-attribution.d.ts +76 -76
  233. package/dist/sdk/authoring.d.ts +1 -1
  234. package/dist/sdk/authoring.js +1 -1
  235. package/dist/sdk/cli-bootstrap.d.ts +70 -70
  236. package/dist/sdk/cli-contracts/agent-output-contracts.d.ts +63 -63
  237. package/dist/sdk/cli-contracts/command-aliases.d.ts +14 -14
  238. package/dist/sdk/cli-contracts/command-exit-contracts.d.ts +70 -70
  239. package/dist/sdk/cli-contracts/commander-types.d.ts +17 -17
  240. package/dist/sdk/cli-contracts/completeness.d.ts +26 -26
  241. package/dist/sdk/cli-contracts/enum-contracts.d.ts +5 -5
  242. package/dist/sdk/cli-contracts/flag-contracts.d.ts +32 -32
  243. package/dist/sdk/cli-contracts/flag-contracts.js +1 -1
  244. package/dist/sdk/cli-contracts/flag-lexicon-contracts.d.ts +42 -42
  245. package/dist/sdk/cli-contracts/flag-lexicon-contracts.js +1 -1
  246. package/dist/sdk/cli-contracts/grammar-contracts.d.ts +84 -84
  247. package/dist/sdk/cli-contracts/grammar-contracts.js +1 -1
  248. package/dist/sdk/cli-contracts/registration-helpers.d.ts +37 -40
  249. package/dist/sdk/cli-contracts/registration-helpers.js +1 -1
  250. package/dist/sdk/cli-contracts/runtime-contracts.d.ts +290 -294
  251. package/dist/sdk/cli-contracts/runtime-contracts.js +1 -1
  252. package/dist/sdk/cli-contracts/schemas/assurance-definition.d.ts +793 -793
  253. package/dist/sdk/cli-contracts/tool-option-contracts.d.ts +391 -391
  254. package/dist/sdk/cli-contracts/tool-parameter-tables.d.ts +6 -6
  255. package/dist/sdk/cli-contracts/tool-parameter-tables.js +1 -1
  256. package/dist/sdk/cli-contracts/tool-schema.d.ts +55 -55
  257. package/dist/sdk/cli-contracts/tool-schema.js +1 -1
  258. package/dist/sdk/cli-contracts/typed-action-inputs.d.ts +24 -24
  259. package/dist/sdk/comments.d.ts +44 -44
  260. package/dist/sdk/compile-cache.d.ts +4 -4
  261. package/dist/sdk/completion/shared.d.ts +22 -22
  262. package/dist/sdk/compose.d.ts +156 -156
  263. package/dist/sdk/config.d.ts +123 -123
  264. package/dist/sdk/context/semantic-session-attribution.d.ts +14 -14
  265. package/dist/sdk/context/usage-ledger.d.ts +20 -20
  266. package/dist/sdk/context-intent-contracts.d.ts +50 -50
  267. package/dist/sdk/context-intent-contracts.js +1 -1
  268. package/dist/sdk/context-intent-runtime.d.ts +8 -8
  269. package/dist/sdk/context-packing.d.ts +78 -78
  270. package/dist/sdk/context-relevance.d.ts +189 -180
  271. package/dist/sdk/context-relevance.js +1 -1
  272. package/dist/sdk/context-signal-store.d.ts +84 -84
  273. package/dist/sdk/context-usage.d.ts +92 -92
  274. package/dist/sdk/core.d.ts +1 -0
  275. package/dist/sdk/core.js +1 -1
  276. package/dist/sdk/corpus-shape.d.ts +101 -101
  277. package/dist/sdk/define.d.ts +2 -2
  278. package/dist/sdk/dependencies.d.ts +116 -116
  279. package/dist/sdk/dependency-flag-validation.d.ts +14 -12
  280. package/dist/sdk/dependency-flag-validation.js +1 -1
  281. package/dist/sdk/dependency-provenance.d.ts +30 -30
  282. package/dist/sdk/docs.d.ts +32 -32
  283. package/dist/sdk/duplicates.d.ts +21 -21
  284. package/dist/sdk/environment/agent-environment.d.ts +196 -196
  285. package/dist/sdk/environment/project-runtime-compatibility.d.ts +56 -56
  286. package/dist/sdk/environment/source-context.d.ts +6 -6
  287. package/dist/sdk/error-code-catalog.d.ts +40 -40
  288. package/dist/sdk/errors.d.ts +29 -29
  289. package/dist/sdk/eval.d.ts +45 -45
  290. package/dist/sdk/extension/author-manifest.d.ts +14 -14
  291. package/dist/sdk/extension/bundled-catalog.d.ts +7 -7
  292. package/dist/sdk/extension/describe.d.ts +36 -36
  293. package/dist/sdk/extension/doctor.d.ts +29 -29
  294. package/dist/sdk/extension/install-plan.d.ts +55 -55
  295. package/dist/sdk/extension/install-receipts.d.ts +2 -2
  296. package/dist/sdk/extension/install-runtime.d.ts +8 -8
  297. package/dist/sdk/extension/install-snapshot.d.ts +14 -14
  298. package/dist/sdk/extension/install-sources.d.ts +96 -96
  299. package/dist/sdk/extension/managed-state.d.ts +66 -66
  300. package/dist/sdk/extension/migrations.d.ts +82 -82
  301. package/dist/sdk/extension/output-ownership.d.ts +24 -24
  302. package/dist/sdk/extension/runtime-summary.d.ts +5 -5
  303. package/dist/sdk/extension/scaffold.d.ts +12 -12
  304. package/dist/sdk/extension/shared.d.ts +15 -15
  305. package/dist/sdk/extension/source-resolution.d.ts +30 -30
  306. package/dist/sdk/extension/static-inventory.d.ts +42 -42
  307. package/dist/sdk/extension/update-check.d.ts +10 -10
  308. package/dist/sdk/extension.d.ts +320 -320
  309. package/dist/sdk/files.d.ts +157 -157
  310. package/dist/sdk/flag-invocation-contracts.d.ts +44 -44
  311. package/dist/sdk/generated/generated-error-code-catalog-part-1.js +1 -1
  312. package/dist/sdk/generated/generated-error-code-catalog-part-2.js +1 -1
  313. package/dist/sdk/governance/artifact-ledgers.d.ts +35 -35
  314. package/dist/sdk/governance/artifact-ledgers.js +1 -1
  315. package/dist/sdk/governance/assurance-action.d.ts +68 -68
  316. package/dist/sdk/governance/assurance-action.js +1 -1
  317. package/dist/sdk/governance/assurance-mutation-error.d.ts +36 -36
  318. package/dist/sdk/governance/assurance-presets.d.ts +24 -24
  319. package/dist/sdk/governance/assurance-runtime.d.ts +14 -14
  320. package/dist/sdk/governance/assurance.d.ts +353 -353
  321. package/dist/sdk/governance/boundary-fixtures.d.ts +60 -60
  322. package/dist/sdk/governance/closure-timestamps.d.ts +9 -9
  323. package/dist/sdk/governance/coverage-assurance.d.ts +10 -10
  324. package/dist/sdk/governance/defect-recurrence-coverage.d.ts +75 -75
  325. package/dist/sdk/governance/defect-recurrence-graph.d.ts +18 -18
  326. package/dist/sdk/governance/defect-recurrence.d.ts +186 -181
  327. package/dist/sdk/governance/defect-recurrence.js +1 -1
  328. package/dist/sdk/governance/extension-host-version.d.ts +16 -16
  329. package/dist/sdk/governance/gc.d.ts +48 -48
  330. package/dist/sdk/governance/health-merge-evidence.d.ts +5 -5
  331. package/dist/sdk/governance/health.d.ts +188 -188
  332. package/dist/sdk/governance/hierarchy-validation.d.ts +13 -13
  333. package/dist/sdk/governance/linked-file-report.d.ts +26 -26
  334. package/dist/sdk/governance/merge-receipt-history.d.ts +36 -36
  335. package/dist/sdk/governance/provenance-health.d.ts +64 -64
  336. package/dist/sdk/governance/reindex.d.ts +89 -89
  337. package/dist/sdk/governance/reliability.d.ts +56 -56
  338. package/dist/sdk/governance/stale-work.d.ts +22 -22
  339. package/dist/sdk/governance/status-role-diagnostics.d.ts +12 -12
  340. package/dist/sdk/governance/storage-integrity.d.ts +54 -54
  341. package/dist/sdk/governance/tracked-runtime-cache.d.ts +10 -10
  342. package/dist/sdk/governance/upgrade.d.ts +104 -104
  343. package/dist/sdk/governance/validate-history-drift.d.ts +2 -2
  344. package/dist/sdk/governance/validate-item-reader.d.ts +6 -6
  345. package/dist/sdk/governance/validate.d.ts +191 -191
  346. package/dist/sdk/governance/workflow-completeness.d.ts +15 -15
  347. package/dist/sdk/governance/workflow-policy.d.ts +28 -28
  348. package/dist/sdk/governance/workspace-position.d.ts +46 -46
  349. package/dist/sdk/graph/adapter.d.ts +66 -66
  350. package/dist/sdk/graph/analytics.d.ts +54 -54
  351. package/dist/sdk/graph/assembly.d.ts +80 -80
  352. package/dist/sdk/graph/cache.d.ts +29 -29
  353. package/dist/sdk/graph/cardinality-integrity.d.ts +13 -0
  354. package/dist/sdk/graph/cardinality-integrity.js +2 -0
  355. package/dist/sdk/graph/centrality.d.ts +34 -34
  356. package/dist/sdk/graph/conformance.d.ts +33 -33
  357. package/dist/sdk/graph/deadline-scheduling.d.ts +58 -58
  358. package/dist/sdk/graph/durable-cache.d.ts +26 -26
  359. package/dist/sdk/graph/governance.d.ts +165 -165
  360. package/dist/sdk/graph/hierarchy-integrity.d.ts +52 -52
  361. package/dist/sdk/graph/index.d.ts +1 -0
  362. package/dist/sdk/graph/index.js +1 -1
  363. package/dist/sdk/graph/lifecycle-coverage.d.ts +17 -17
  364. package/dist/sdk/graph/mutation-advisory.d.ts +11 -11
  365. package/dist/sdk/graph/query-contracts.d.ts +10 -10
  366. package/dist/sdk/graph/remediation.d.ts +25 -25
  367. package/dist/sdk/graph/run.d.ts +392 -392
  368. package/dist/sdk/graph/scheduling.d.ts +38 -38
  369. package/dist/sdk/graph/traversal.d.ts +14 -14
  370. package/dist/sdk/guide-topics.d.ts +32 -32
  371. package/dist/sdk/guide.d.ts +62 -62
  372. package/dist/sdk/history/attestation-command.d.ts +12 -12
  373. package/dist/sdk/history/attestation-contract.d.ts +78 -78
  374. package/dist/sdk/history/attestation-scan.d.ts +6 -6
  375. package/dist/sdk/history/maintenance.d.ts +46 -46
  376. package/dist/sdk/history/salvage.d.ts +18 -18
  377. package/dist/sdk/history/subject.d.ts +9 -9
  378. package/dist/sdk/history-analytics.d.ts +84 -84
  379. package/dist/sdk/history-compact.d.ts +103 -103
  380. package/dist/sdk/history-mcp.d.ts +8 -8
  381. package/dist/sdk/history-provenance.d.ts +59 -59
  382. package/dist/sdk/history-read.d.ts +36 -36
  383. package/dist/sdk/history-redact.d.ts +78 -78
  384. package/dist/sdk/history-repair.d.ts +158 -158
  385. package/dist/sdk/history-repair.js +1 -1
  386. package/dist/sdk/improvement-ledger.d.ts +102 -102
  387. package/dist/sdk/index.d.ts +2 -0
  388. package/dist/sdk/index.js +1 -1
  389. package/dist/sdk/init-agent-guidance.d.ts +70 -70
  390. package/dist/sdk/init.d.ts +152 -152
  391. package/dist/sdk/item-children.d.ts +28 -28
  392. package/dist/sdk/item-schedule.d.ts +12 -12
  393. package/dist/sdk/item-transaction.d.ts +100 -100
  394. package/dist/sdk/learnings.d.ts +42 -42
  395. package/dist/sdk/lifecycle/append.d.ts +14 -14
  396. package/dist/sdk/lifecycle/claim.d.ts +60 -60
  397. package/dist/sdk/lifecycle/close-many.d.ts +94 -94
  398. package/dist/sdk/lifecycle/close.d.ts +27 -27
  399. package/dist/sdk/lifecycle/copy.d.ts +18 -18
  400. package/dist/sdk/lifecycle/core-field-recovery.d.ts +7 -0
  401. package/dist/sdk/lifecycle/core-field-recovery.js +2 -0
  402. package/dist/sdk/lifecycle/create.d.ts +82 -82
  403. package/dist/sdk/lifecycle/create.js +1 -1
  404. package/dist/sdk/lifecycle/delete.d.ts +28 -28
  405. package/dist/sdk/lifecycle/focus.d.ts +10 -10
  406. package/dist/sdk/lifecycle/hierarchy-mutation-lock.d.ts +10 -10
  407. package/dist/sdk/lifecycle/hierarchy-mutation-lock.js +1 -1
  408. package/dist/sdk/lifecycle/legacy-none-tokens.d.ts +54 -54
  409. package/dist/sdk/lifecycle/lifecycle-transitions.d.ts +4 -4
  410. package/dist/sdk/lifecycle/mcp-actions.d.ts +10 -10
  411. package/dist/sdk/lifecycle/mutation-command-options.d.ts +116 -116
  412. package/dist/sdk/lifecycle/mutation-facet-contracts.d.ts +6 -0
  413. package/dist/sdk/lifecycle/mutation-facet-contracts.js +2 -0
  414. package/dist/sdk/lifecycle/plan-mutation-receipt.d.ts +42 -42
  415. package/dist/sdk/lifecycle/plan.d.ts +217 -217
  416. package/dist/sdk/lifecycle/reopen.d.ts +29 -24
  417. package/dist/sdk/lifecycle/reopen.js +1 -1
  418. package/dist/sdk/lifecycle/repeatable-metadata-parsers.d.ts +3 -3
  419. package/dist/sdk/lifecycle/restore.d.ts +33 -33
  420. package/dist/sdk/lifecycle/shared-unset-fields.d.ts +19 -19
  421. package/dist/sdk/lifecycle/task-composition.d.ts +4 -4
  422. package/dist/sdk/lifecycle/update-many.d.ts +79 -79
  423. package/dist/sdk/lifecycle/update.d.ts +131 -132
  424. package/dist/sdk/lifecycle/update.js +2 -2
  425. package/dist/sdk/lifecycle-completion.d.ts +22 -22
  426. package/dist/sdk/lifecycle-policy.d.ts +52 -52
  427. package/dist/sdk/linked-artifacts.d.ts +69 -69
  428. package/dist/sdk/mcp/apps.d.ts +32 -32
  429. package/dist/sdk/mcp/authorization.d.ts +76 -76
  430. package/dist/sdk/mcp/discovery.d.ts +111 -111
  431. package/dist/sdk/mcp/interactions.d.ts +61 -61
  432. package/dist/sdk/mcp/protocol.d.ts +78 -78
  433. package/dist/sdk/mcp/skills.d.ts +88 -88
  434. package/dist/sdk/mcp/subscriptions.d.ts +39 -39
  435. package/dist/sdk/mcp/tasks.d.ts +75 -75
  436. package/dist/sdk/mcp/transport.d.ts +11 -11
  437. package/dist/sdk/merge/abandoned-receipts.d.ts +6 -6
  438. package/dist/sdk/merge/driver.d.ts +60 -60
  439. package/dist/sdk/merge/install.d.ts +64 -64
  440. package/dist/sdk/merge/receipt-file-boundary.d.ts +5 -5
  441. package/dist/sdk/merge/receipt-operation.d.ts +6 -6
  442. package/dist/sdk/merge/receipt-schema.d.ts +2 -2
  443. package/dist/sdk/merge/receipts.d.ts +156 -156
  444. package/dist/sdk/merge/reconcile.d.ts +36 -36
  445. package/dist/sdk/merge/reconcile.js +1 -1
  446. package/dist/sdk/merge/three-way.d.ts +77 -76
  447. package/dist/sdk/merge/three-way.js +1 -1
  448. package/dist/sdk/mutation-events.d.ts +84 -84
  449. package/dist/sdk/mutation-guard.d.ts +106 -106
  450. package/dist/sdk/notes.d.ts +52 -52
  451. package/dist/sdk/output/table-rows.d.ts +8 -8
  452. package/dist/sdk/output-contracts.d.ts +38 -38
  453. package/dist/sdk/output-projection.d.ts +142 -142
  454. package/dist/sdk/output-token-accounting.d.ts +27 -27
  455. package/dist/sdk/output.d.ts +28 -28
  456. package/dist/sdk/package-import-adapters.d.ts +54 -54
  457. package/dist/sdk/pagination.d.ts +29 -29
  458. package/dist/sdk/profile.d.ts +123 -123
  459. package/dist/sdk/provenance.d.ts +58 -58
  460. package/dist/sdk/public-surface.json +1 -1
  461. package/dist/sdk/query/activity.d.ts +118 -118
  462. package/dist/sdk/query/aggregate.d.ts +140 -140
  463. package/dist/sdk/query/calendar.d.ts +144 -144
  464. package/dist/sdk/query/complete-list.d.ts +53 -53
  465. package/dist/sdk/query/context.d.ts +395 -395
  466. package/dist/sdk/query/duplicate-candidates.d.ts +1 -1
  467. package/dist/sdk/query/get.d.ts +77 -77
  468. package/dist/sdk/query/history.d.ts +72 -72
  469. package/dist/sdk/query/item-filter-options.d.ts +79 -79
  470. package/dist/sdk/query/list-filter-shared.d.ts +1 -1
  471. package/dist/sdk/query/list.d.ts +188 -188
  472. package/dist/sdk/query/multi-value-filters.d.ts +4 -4
  473. package/dist/sdk/query/next-ready-budget.d.ts +14 -14
  474. package/dist/sdk/query/next.d.ts +137 -137
  475. package/dist/sdk/query/projection-contracts.d.ts +8 -8
  476. package/dist/sdk/query/search/corpus.d.ts +8 -8
  477. package/dist/sdk/query/search/filters.d.ts +5 -5
  478. package/dist/sdk/query/search/input.d.ts +4 -4
  479. package/dist/sdk/query/search/response.d.ts +8 -8
  480. package/dist/sdk/query/search/semantic.d.ts +106 -106
  481. package/dist/sdk/query/search/types.d.ts +85 -85
  482. package/dist/sdk/query/search-contracts.d.ts +65 -65
  483. package/dist/sdk/query/search-pagination.d.ts +19 -19
  484. package/dist/sdk/query/search-rendering.d.ts +25 -25
  485. package/dist/sdk/query/search.d.ts +46 -46
  486. package/dist/sdk/read-output/continuation.d.ts +8 -8
  487. package/dist/sdk/read-output/continuation.js +1 -1
  488. package/dist/sdk/read-output/extension.d.ts +7 -0
  489. package/dist/sdk/read-output/extension.js +2 -0
  490. package/dist/sdk/read-output/options.d.ts +6 -4
  491. package/dist/sdk/read-output/options.js +1 -1
  492. package/dist/sdk/read-output/provenance.d.ts +8 -8
  493. package/dist/sdk/read-output-budget.d.ts +10 -10
  494. package/dist/sdk/read-output-contracts.d.ts +192 -186
  495. package/dist/sdk/read-output-contracts.js +1 -1
  496. package/dist/sdk/read-output-rows.d.ts +6 -6
  497. package/dist/sdk/read-output-session.d.ts +50 -50
  498. package/dist/sdk/relationship-analytics.d.ts +78 -78
  499. package/dist/sdk/relationship-context.d.ts +81 -81
  500. package/dist/sdk/relationship-history.d.ts +109 -109
  501. package/dist/sdk/relationship-kinds/contract.d.ts +34 -34
  502. package/dist/sdk/relationship-migration.d.ts +26 -26
  503. package/dist/sdk/relationships.d.ts +78 -78
  504. package/dist/sdk/reproducibility/process.d.ts +3 -3
  505. package/dist/sdk/runtime/context.d.ts +11 -11
  506. package/dist/sdk/runtime-action-aliases.d.ts +2 -2
  507. package/dist/sdk/runtime-extended-actions.d.ts +8 -8
  508. package/dist/sdk/runtime-input.d.ts +3 -3
  509. package/dist/sdk/runtime-public-contracts.d.ts +78 -78
  510. package/dist/sdk/runtime.d.ts +305 -305
  511. package/dist/sdk/runtime.js +1 -1
  512. package/dist/sdk/scheduling-shortcuts.d.ts +32 -32
  513. package/dist/sdk/schema-migration.d.ts +86 -86
  514. package/dist/sdk/schema.d.ts +355 -355
  515. package/dist/sdk/similarity-scoring.d.ts +10 -10
  516. package/dist/sdk/similarity.d.ts +113 -113
  517. package/dist/sdk/stats.d.ts +108 -108
  518. package/dist/sdk/structured-mutations.d.ts +16 -16
  519. package/dist/sdk/structured-mutations.js +1 -1
  520. package/dist/sdk/telemetry.d.ts +53 -53
  521. package/dist/sdk/templates.d.ts +39 -39
  522. package/dist/sdk/test/batch.d.ts +85 -85
  523. package/dist/sdk/test/batch.js +1 -1
  524. package/dist/sdk/test/command-args.d.ts +4 -0
  525. package/dist/sdk/test/command-args.js +2 -0
  526. package/dist/sdk/test/entry.d.ts +3 -0
  527. package/dist/sdk/test/entry.js +1 -1
  528. package/dist/sdk/test/execution-receipts.d.ts +3 -3
  529. package/dist/sdk/test/execution.d.ts +279 -268
  530. package/dist/sdk/test/execution.js +2 -2
  531. package/dist/sdk/test/json-path.d.ts +2 -2
  532. package/dist/sdk/test/linked-command-detection.d.ts +10 -10
  533. package/dist/sdk/test/measurements.d.ts +11 -11
  534. package/dist/sdk/test/parsers.d.ts +1 -1
  535. package/dist/sdk/test/parsers.js +1 -1
  536. package/dist/sdk/test/prerequisites.d.ts +6 -0
  537. package/dist/sdk/test/prerequisites.js +2 -0
  538. package/dist/sdk/test/runs.d.ts +52 -52
  539. package/dist/sdk/test/trust.d.ts +12 -12
  540. package/dist/sdk/test/trust.js +1 -1
  541. package/dist/sdk/test/update.d.ts +55 -0
  542. package/dist/sdk/test/update.js +2 -0
  543. package/dist/sdk/testing.d.ts +319 -319
  544. package/dist/sdk/traceability/source-traceability.d.ts +65 -65
  545. package/dist/sdk/workspace-contracts.d.ts +37 -37
  546. package/dist/sdk/workspace-memory.d.ts +60 -60
  547. package/dist/sdk/workspace-recipe.d.ts +9 -9
  548. package/dist/sdk/workspace-snapshot.d.ts +97 -97
  549. package/dist/sdk/workspace-transaction-gc.d.ts +32 -32
  550. package/dist/sdk/workspace-transaction.d.ts +47 -47
  551. package/dist/sdk/workspace.d.ts +6 -6
  552. package/dist/types.d.ts +978 -974
  553. package/dist/types.js +1 -1
  554. package/docs/BUILD_AND_RELEASE_ACCEPTANCE.md +5 -2
  555. package/docs/DEFECT_RECURRENCE.md +12 -0
  556. package/docs/EXTENSIONS.md +2 -2
  557. package/docs/LINKED_TEST_EDITS.md +79 -0
  558. package/docs/MERGE_SAFETY.md +27 -1
  559. package/docs/RECURRENCE_RECOVERY_CONTRACTS.md +17 -4
  560. package/docs/RELATIONSHIP_GRAPH.md +26 -0
  561. package/docs/RELEASING.md +25 -8
  562. package/docs/SDK.md +204 -637
  563. package/docs/SDK_CONSUMER_RECEIPTS.md +67 -0
  564. package/docs/SDK_EVIDENCE_TRACEABILITY.md +4 -0
  565. package/docs/TESTING.md +13 -0
  566. package/docs/generated/FLAG_LEXICON_BUDGETS.md +2 -2
  567. package/docs/generated/REFUSAL_CLOSURE_CENSUS.md +11 -3
  568. package/docs/performance/runner-qualification.md +36 -0
  569. package/marketplace.json +1 -1
  570. package/node_modules/@opentelemetry/core/build/esm/version.d.ts +1 -1
  571. package/node_modules/@opentelemetry/core/build/esm/version.js +1 -1
  572. package/node_modules/@opentelemetry/core/build/esnext/version.d.ts +1 -1
  573. package/node_modules/@opentelemetry/core/build/esnext/version.js +1 -1
  574. package/node_modules/@opentelemetry/core/build/src/version.d.ts +1 -1
  575. package/node_modules/@opentelemetry/core/build/src/version.js +1 -1
  576. package/node_modules/@opentelemetry/core/package.json +2 -2
  577. package/node_modules/@opentelemetry/resources/build/esm/version.d.ts +1 -1
  578. package/node_modules/@opentelemetry/resources/build/esm/version.js +1 -1
  579. package/node_modules/@opentelemetry/resources/build/esnext/version.d.ts +1 -1
  580. package/node_modules/@opentelemetry/resources/build/esnext/version.js +1 -1
  581. package/node_modules/@opentelemetry/resources/build/src/version.d.ts +1 -1
  582. package/node_modules/@opentelemetry/resources/build/src/version.js +1 -1
  583. package/node_modules/@opentelemetry/resources/package.json +3 -3
  584. package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.d.ts +57 -0
  585. package/node_modules/@opentelemetry/sdk-trace/build/esm/StackContextManager.js +105 -0
  586. package/node_modules/@opentelemetry/sdk-trace/build/esm/index.d.ts +1 -0
  587. package/node_modules/@opentelemetry/sdk-trace/build/esm/index.js +1 -0
  588. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.d.ts +1 -1
  589. package/node_modules/@opentelemetry/sdk-trace/build/esm/version.js +1 -1
  590. package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.d.ts +57 -0
  591. package/node_modules/@opentelemetry/sdk-trace/build/esnext/StackContextManager.js +105 -0
  592. package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.d.ts +1 -0
  593. package/node_modules/@opentelemetry/sdk-trace/build/esnext/index.js +1 -0
  594. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.d.ts +1 -1
  595. package/node_modules/@opentelemetry/sdk-trace/build/esnext/version.js +1 -1
  596. package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.d.ts +57 -0
  597. package/node_modules/@opentelemetry/sdk-trace/build/src/StackContextManager.js +109 -0
  598. package/node_modules/@opentelemetry/sdk-trace/build/src/index.d.ts +1 -0
  599. package/node_modules/@opentelemetry/sdk-trace/build/src/index.js +3 -1
  600. package/node_modules/@opentelemetry/sdk-trace/build/src/version.d.ts +1 -1
  601. package/node_modules/@opentelemetry/sdk-trace/build/src/version.js +1 -1
  602. package/node_modules/@opentelemetry/sdk-trace/package.json +5 -5
  603. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.d.ts +1 -1
  604. package/node_modules/@opentelemetry/sdk-trace-base/build/esm/version.js +1 -1
  605. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.d.ts +1 -1
  606. package/node_modules/@opentelemetry/sdk-trace-base/build/esnext/version.js +1 -1
  607. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.d.ts +1 -1
  608. package/node_modules/@opentelemetry/sdk-trace-base/build/src/version.js +1 -1
  609. package/node_modules/@opentelemetry/sdk-trace-base/package.json +7 -7
  610. package/node_modules/@sentry/core/build/cjs/browser.js +3 -0
  611. package/node_modules/@sentry/core/build/cjs/fetch.js +10 -9
  612. package/node_modules/@sentry/core/build/cjs/index.js +3 -0
  613. package/node_modules/@sentry/core/build/cjs/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
  614. package/node_modules/@sentry/core/build/cjs/integrations/http/get-outgoing-span-data.js +3 -2
  615. package/node_modules/@sentry/core/build/cjs/integrations/http/server-subscription.js +7 -3
  616. package/node_modules/@sentry/core/build/cjs/integrations/requestdata.js +23 -9
  617. package/node_modules/@sentry/core/build/cjs/server.js +3 -0
  618. package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterCollectedUrl.js +24 -0
  619. package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterKeyValueData.js +17 -23
  620. package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterQueryParams.js +8 -15
  621. package/node_modules/@sentry/core/build/cjs/utils/data-collection/filterUrlQuery.js +20 -0
  622. package/node_modules/@sentry/core/build/cjs/utils/url.js +4 -3
  623. package/node_modules/@sentry/core/build/cjs/utils/version.js +1 -1
  624. package/node_modules/@sentry/core/build/esm/browser.js +1 -0
  625. package/node_modules/@sentry/core/build/esm/fetch.js +10 -9
  626. package/node_modules/@sentry/core/build/esm/index.js +1 -0
  627. package/node_modules/@sentry/core/build/esm/integrations/http/add-outgoing-request-breadcrumb.js +2 -1
  628. package/node_modules/@sentry/core/build/esm/integrations/http/get-outgoing-span-data.js +3 -2
  629. package/node_modules/@sentry/core/build/esm/integrations/http/server-subscription.js +7 -3
  630. package/node_modules/@sentry/core/build/esm/integrations/requestdata.js +23 -9
  631. package/node_modules/@sentry/core/build/esm/package.json +1 -1
  632. package/node_modules/@sentry/core/build/esm/server.js +1 -0
  633. package/node_modules/@sentry/core/build/esm/utils/data-collection/filterCollectedUrl.js +21 -0
  634. package/node_modules/@sentry/core/build/esm/utils/data-collection/filterKeyValueData.js +18 -25
  635. package/node_modules/@sentry/core/build/esm/utils/data-collection/filterQueryParams.js +9 -16
  636. package/node_modules/@sentry/core/build/esm/utils/data-collection/filterUrlQuery.js +18 -0
  637. package/node_modules/@sentry/core/build/esm/utils/url.js +4 -3
  638. package/node_modules/@sentry/core/build/esm/utils/version.js +1 -1
  639. package/node_modules/@sentry/core/build/types/shared-exports.d.ts +1 -0
  640. package/node_modules/@sentry/core/build/types/utils/data-collection/filterCollectedUrl.d.ts +21 -0
  641. package/node_modules/@sentry/core/build/types/utils/data-collection/filterKeyValueData.d.ts +1 -0
  642. package/node_modules/@sentry/core/build/types/utils/data-collection/filterQueryParams.d.ts +2 -3
  643. package/node_modules/@sentry/core/build/types/utils/data-collection/filterUrlQuery.d.ts +13 -0
  644. package/node_modules/@sentry/core/build/types/utils/url.d.ts +4 -1
  645. package/node_modules/@sentry/core/build/types-ts3.8/shared-exports.d.ts +1 -0
  646. package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterCollectedUrl.d.ts +21 -0
  647. package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterKeyValueData.d.ts +1 -0
  648. package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterQueryParams.d.ts +2 -3
  649. package/node_modules/@sentry/core/build/types-ts3.8/utils/data-collection/filterUrlQuery.d.ts +13 -0
  650. package/node_modules/@sentry/core/build/types-ts3.8/utils/url.d.ts +4 -1
  651. package/node_modules/@sentry/core/package.json +3 -2
  652. package/node_modules/@sentry/node/build/cjs/integrations/tracing/vercelai/instrumentation.js +3 -0
  653. package/node_modules/@sentry/node/build/esm/integrations/tracing/vercelai/instrumentation.js +3 -0
  654. package/node_modules/@sentry/node/build/esm/package.json +1 -1
  655. package/node_modules/@sentry/node/package.json +7 -6
  656. package/node_modules/@sentry/node-core/build/cjs/integrations/anr/index.js +1 -1
  657. package/node_modules/@sentry/node-core/build/cjs/integrations/http/httpServerSpansIntegration.js +6 -3
  658. package/node_modules/@sentry/node-core/build/cjs/integrations/local-variables/local-variables-async.js +1 -1
  659. package/node_modules/@sentry/node-core/build/cjs/integrations/node-fetch/undici-instrumentation.js +2 -2
  660. package/node_modules/@sentry/node-core/build/cjs/light/client.js +7 -0
  661. package/node_modules/@sentry/node-core/build/cjs/sdk/client.js +7 -0
  662. package/node_modules/@sentry/node-core/build/cjs/utils/outgoingFetchRequest.js +1 -1
  663. package/node_modules/@sentry/node-core/build/esm/integrations/anr/index.js +1 -1
  664. package/node_modules/@sentry/node-core/build/esm/integrations/anr/worker-script.js +2 -2
  665. package/node_modules/@sentry/node-core/build/esm/integrations/http/httpServerSpansIntegration.js +7 -4
  666. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/local-variables-async.js +1 -1
  667. package/node_modules/@sentry/node-core/build/esm/integrations/local-variables/worker-script.js +1 -1
  668. package/node_modules/@sentry/node-core/build/esm/integrations/node-fetch/undici-instrumentation.js +3 -3
  669. package/node_modules/@sentry/node-core/build/esm/light/client.js +8 -1
  670. package/node_modules/@sentry/node-core/build/esm/package.json +1 -1
  671. package/node_modules/@sentry/node-core/build/esm/sdk/client.js +8 -1
  672. package/node_modules/@sentry/node-core/build/esm/utils/outgoingFetchRequest.js +2 -2
  673. package/node_modules/@sentry/node-core/build/types/light/client.d.ts +1 -0
  674. package/node_modules/@sentry/node-core/build/types/sdk/client.d.ts +1 -0
  675. package/node_modules/@sentry/node-core/build/types-ts3.8/light/client.d.ts +1 -0
  676. package/node_modules/@sentry/node-core/build/types-ts3.8/sdk/client.d.ts +1 -0
  677. package/node_modules/@sentry/node-core/package.json +5 -4
  678. package/node_modules/@sentry/opentelemetry/build/cjs/{asyncContextStrategy-BJ5buq_A.js → asyncContextStrategy-BR-l9zjD.js} +8 -6
  679. package/node_modules/@sentry/opentelemetry/build/cjs/index.browser.js +1 -1
  680. package/node_modules/@sentry/opentelemetry/build/cjs/index.js +1 -1
  681. package/node_modules/@sentry/opentelemetry/build/esm/{asyncContextStrategy-Bx5F5tCX.js → asyncContextStrategy-BQfM_LMv.js} +9 -7
  682. package/node_modules/@sentry/opentelemetry/build/esm/index.browser.js +1 -1
  683. package/node_modules/@sentry/opentelemetry/build/esm/index.js +2 -2
  684. package/node_modules/@sentry/opentelemetry/build/esm/package.json +1 -1
  685. package/node_modules/@sentry/opentelemetry/package.json +4 -3
  686. package/node_modules/@sentry/server-utils/build/cjs/tracing-channel.js +1 -0
  687. package/node_modules/@sentry/server-utils/build/esm/package.json +1 -1
  688. package/node_modules/@sentry/server-utils/build/esm/tracing-channel.js +1 -0
  689. package/node_modules/@sentry/server-utils/build/types/tracing-channel.d.ts +3 -1
  690. package/node_modules/@sentry/server-utils/build/types-ts3.8/tracing-channel.d.ts +3 -1
  691. package/node_modules/@sentry/server-utils/package.json +4 -3
  692. package/node_modules/cjs-module-lexer/README.md +8 -3
  693. package/node_modules/cjs-module-lexer/dist/lexer.js +1 -1
  694. package/node_modules/cjs-module-lexer/dist/lexer.mjs +2 -2
  695. package/node_modules/cjs-module-lexer/lexer.js +48 -9
  696. package/node_modules/cjs-module-lexer/package.json +3 -2
  697. package/node_modules/es-module-lexer/dist/lexer.asm.js +2 -2
  698. package/node_modules/es-module-lexer/dist/lexer.cjs +1 -1
  699. package/node_modules/es-module-lexer/dist/lexer.js +2 -2
  700. package/node_modules/es-module-lexer/dist/lexer.minimal.asm.js +2 -2
  701. package/node_modules/es-module-lexer/dist/lexer.minimal.cjs +1 -1
  702. package/node_modules/es-module-lexer/dist/lexer.minimal.js +2 -2
  703. package/node_modules/es-module-lexer/package.json +1 -1
  704. package/node_modules/import-in-the-middle/CHANGELOG.md +7 -0
  705. package/node_modules/import-in-the-middle/lib/get-esm-exports.mjs +7 -0
  706. package/node_modules/import-in-the-middle/package.json +1 -1
  707. package/package.json +2 -2
  708. package/packages/pm-beads/extensions/beads/runtime.ts +2 -2
  709. package/packages/pm-beads/package.json +1 -1
  710. package/packages/pm-calendar/package.json +1 -1
  711. package/packages/pm-command-kit/package.json +1 -1
  712. package/packages/pm-digital-twin/package.json +1 -1
  713. package/packages/pm-governance-audit/package.json +1 -1
  714. package/packages/pm-guide-shell/package.json +1 -1
  715. package/packages/pm-kanban/package.json +1 -1
  716. package/packages/pm-lifecycle-hooks/package.json +1 -1
  717. package/packages/pm-linked-test-adapters/package.json +1 -1
  718. package/packages/pm-search-advanced/package.json +1 -1
  719. package/packages/pm-templates/package.json +1 -1
  720. package/packages/pm-todos/package.json +1 -1
  721. package/packages/pm-vcs/package.json +1 -1
  722. package/plugins/pm-claude/.claude-plugin/plugin.json +1 -1
  723. package/plugins/pm-claude/package.json +1 -1
  724. package/plugins/pm-codex/.codex-plugin/plugin.json +1 -1
  725. package/plugins/pm-codex/package.json +1 -1
  726. package/plugins/pm-codex/plugin.json +1 -1
  727. package/runtime-dependencies.json +1 -1
  728. package/scripts/finalize-build.mjs +37 -0
  729. package/dist/cli-bundle/chunks/chunk-BXSXT5Z6.js +0 -2
  730. package/dist/cli-bundle/chunks/chunk-KNW3RSLS.js +0 -30
  731. package/dist/cli-bundle/chunks/chunk-MEWBSWE3.js +0 -2
  732. package/dist/cli-bundle/chunks/chunk-RBPOO46D.js +0 -20
  733. package/dist/cli-bundle/chunks/chunk-YMLF6QT7.js +0 -234
  734. package/dist/cli-bundle/chunks/register-operations-PDOBQZUJ.js +0 -2
  735. package/dist/cli-bundle/focused-chunks/chunk-2CJWTLQG.js +0 -2
  736. package/dist/cli-bundle/focused-chunks/chunk-B3YW6H2I.js +0 -26
  737. package/dist/cli-bundle/focused-chunks/chunk-GVGFUD52.js +0 -8
  738. package/dist/cli-bundle/focused-chunks/chunk-MJQ253F3.js +0 -2
  739. package/dist/cli-bundle/focused-chunks/chunk-PBCYGO7X.js +0 -3
  740. package/dist/cli-bundle/focused-chunks/chunk-WOEZJUA2.js +0 -2
package/dist/types.d.ts CHANGED
@@ -31,10 +31,10 @@ export type RuntimeFieldCommand = (typeof RUNTIME_FIELD_COMMAND_VALUES)[number];
31
31
  export declare const RUNTIME_UNKNOWN_FIELD_POLICY_VALUES: readonly ["allow", "warn", "reject"];
32
32
  /** Restricts runtime unknown field policy values accepted by command, SDK, and storage contracts. */
33
33
  export type RuntimeUnknownFieldPolicy = (typeof RUNTIME_UNKNOWN_FIELD_POLICY_VALUES)[number];
34
- /** Supported values accepted by the dependency kind contract. */
34
+ /** Built-in dependency spellings; active extensions may register additional kinds and aliases. */
35
35
  export declare const DEPENDENCY_KIND_VALUES: readonly ["blocks", "parent", "child", "parent_child", "child_of", "related", "related_to", "discovered_from", "blocked_by", "incident_from", "epic", "implements", "recurs_from", "supersedes", "task", "verifies"];
36
- /** Restricts dependency kind values accepted by command, SDK, and storage contracts. */
37
- export type DependencyKind = (typeof DEPENDENCY_KIND_VALUES)[number];
36
+ /** Relationship identifier admitted by the active built-in and extension registry. */
37
+ export type DependencyKind = string;
38
38
  /** Supported values accepted by the scope contract. */
39
39
  export declare const SCOPE_VALUES: readonly ["project", "global"];
40
40
  /** Restricts link scope values accepted by command, SDK, and storage contracts. */
@@ -109,166 +109,170 @@ export type RecurrenceWeekday = (typeof RECURRENCE_WEEKDAY_VALUES)[number];
109
109
  export declare function weekdayOrderIndex(value: RecurrenceWeekday): number;
110
110
  /** Documents the dependency payload exchanged by command, SDK, and package integrations. */
111
111
  export interface Dependency {
112
- /** Stable identifier used to reference this record across commands and storage. */
113
- id: string;
114
- /** Value that configures or reports kind for this contract. */
115
- kind: DependencyKind;
116
- /** ISO 8601 timestamp recording when created occurred. */
117
- created_at: string;
118
- /** Value that configures or reports author for this contract. */
119
- author?: string;
120
- /** Value that configures or reports source kind for this contract. */
121
- source_kind?: string;
122
- /** Whether the recorded edge author was explicitly asserted or automatically detected. */
123
- author_source?: "asserted" | "detected" | "legacy";
112
+ /** Stable identifier used to reference this record across commands and storage. */
113
+ id: string;
114
+ /** Value that configures or reports kind for this contract. */
115
+ kind: DependencyKind;
116
+ /** ISO 8601 timestamp recording when created occurred. */
117
+ created_at: string;
118
+ /** Value that configures or reports author for this contract. */
119
+ author?: string;
120
+ /** Value that configures or reports source kind for this contract. */
121
+ source_kind?: string;
122
+ /** Whether the recorded edge author was explicitly asserted or automatically detected. */
123
+ author_source?: "asserted" | "detected" | "legacy";
124
124
  }
125
125
  /** Documents the comment payload exchanged by command, SDK, and package integrations. */
126
126
  export interface Comment {
127
- /** ISO 8601 timestamp recording when created occurred. */
128
- created_at: string;
129
- /** Value that configures or reports author for this contract. */
130
- author: string;
131
- /** Value that configures or reports text for this contract. */
132
- text: string;
127
+ /** ISO 8601 timestamp recording when created occurred. */
128
+ created_at: string;
129
+ /** Value that configures or reports author for this contract. */
130
+ author: string;
131
+ /** Value that configures or reports text for this contract. */
132
+ text: string;
133
133
  }
134
134
  /** Documents the log note payload exchanged by command, SDK, and package integrations. */
135
135
  export interface LogNote {
136
- /** ISO 8601 timestamp recording when created occurred. */
137
- created_at: string;
138
- /** Value that configures or reports author for this contract. */
139
- author: string;
140
- /** Value that configures or reports text for this contract. */
141
- text: string;
142
- /** Structured payload format marker; absent entries remain ordinary text notes. */
143
- format?: "json";
144
- /** Validated JSON payload for merge-safe machine-authored context events. */
145
- data?: StructuredJsonValue;
146
- /** Optional event discriminator projected from a top-level `type` property. */
147
- event_type?: string;
136
+ /** ISO 8601 timestamp recording when created occurred. */
137
+ created_at: string;
138
+ /** Value that configures or reports author for this contract. */
139
+ author: string;
140
+ /** Value that configures or reports text for this contract. */
141
+ text: string;
142
+ /** Structured payload format marker; absent entries remain ordinary text notes. */
143
+ format?: "json";
144
+ /** Validated JSON payload for merge-safe machine-authored context events. */
145
+ data?: StructuredJsonValue;
146
+ /** Optional event discriminator projected from a top-level `type` property. */
147
+ event_type?: string;
148
148
  }
149
149
  /** JSON value accepted by structured context-event annotations. */
150
150
  export type StructuredJsonValue = null | boolean | number | string | StructuredJsonValue[] | {
151
- [key: string]: StructuredJsonValue;
151
+ [key: string]: StructuredJsonValue;
152
152
  };
153
153
  /** Machine-readable, append-only context event stored in the union-merged notes collection. */
154
154
  export interface StructuredLogEvent extends LogNote {
155
- /** Discriminates structured events from free-text notes. */
156
- format: "json";
157
- /** Validated JSON payload. */
158
- data: StructuredJsonValue;
155
+ /** Discriminates structured events from free-text notes. */
156
+ format: "json";
157
+ /** Validated JSON payload. */
158
+ data: StructuredJsonValue;
159
159
  }
160
160
  /** Documents the linked file payload exchanged by command, SDK, and package integrations. */
161
161
  export interface LinkedFile {
162
- /** Filesystem path used for path resolution. */
163
- path: string;
164
- /** Value that configures or reports scope for this contract. */
165
- scope: LinkScope;
166
- /** Value that configures or reports note for this contract. */
167
- note?: string;
162
+ /** Filesystem path used for path resolution. */
163
+ path: string;
164
+ /** Value that configures or reports scope for this contract. */
165
+ scope: LinkScope;
166
+ /** Value that configures or reports note for this contract. */
167
+ note?: string;
168
168
  }
169
169
  /** Valid immutable provenance captured when a linked command enters tracker data. */
170
170
  export interface LinkedTestProvenance {
171
- /** Author identity recorded by the originating mutation. */
172
- author: string;
173
- /** ISO 8601 time at which the command entered tracker data. */
174
- created_at: string;
175
- /** Mutation path that introduced the command. */
176
- source_kind: "local_mutation" | "merge_union";
177
- /** Best-effort Git branch or hosted head ref of the originating mutation. */
178
- source_ref?: string;
171
+ /** Author identity recorded by the originating mutation. */
172
+ author: string;
173
+ /** ISO 8601 time at which the command entered tracker data. */
174
+ created_at: string;
175
+ /** Mutation path that introduced the command. */
176
+ source_kind: "local_mutation" | "merge_union";
177
+ /** Best-effort Git branch or hosted head ref of the originating mutation. */
178
+ source_ref?: string;
179
179
  }
180
180
  /** Documents the linked test payload exchanged by command, SDK, and package integrations. */
181
181
  export interface LinkedTest {
182
- /** Value that configures or reports command for this contract. */
183
- command?: string;
184
- /** Filesystem path used for path resolution. */
185
- path?: string;
186
- /** Value that configures or reports scope for this contract. */
187
- scope: LinkScope;
188
- /** Value that configures or reports timeout seconds for this contract. */
189
- timeout_seconds?: number;
190
- /** Strategy used to control pm context behavior. */
191
- pm_context_mode?: "schema" | "tracker" | "auto" | "none";
192
- /** Strategy used for source-workspace visibility and command working directory. */
193
- workspace_context_mode?: "source" | "isolated" | "snapshot";
194
- /** Immutable provenance captured when the linked command enters tracker data. */
195
- provenance?: LinkedTestProvenance;
196
- /** Explicit fail-closed marker retained when stored provenance is malformed. */
197
- provenance_invalid?: true;
198
- /** Value that configures or reports env set for this contract. */
199
- env_set?: Record<string, string>;
200
- /** Value that configures or reports env clear for this contract. */
201
- env_clear?: string[];
202
- /** Value that configures or reports shared host safe for this contract. */
203
- shared_host_safe?: boolean;
204
- /** Value that configures or reports assert stdout contains for this contract. */
205
- assert_stdout_contains?: string[];
206
- /** Value that configures or reports assert stdout regex for this contract. */
207
- assert_stdout_regex?: string[];
208
- /** Value that configures or reports assert stderr contains for this contract. */
209
- assert_stderr_contains?: string[];
210
- /** Value that configures or reports assert stderr regex for this contract. */
211
- assert_stderr_regex?: string[];
212
- /** Value that configures or reports assert stdout min lines for this contract. */
213
- assert_stdout_min_lines?: number;
214
- /** Value that configures or reports assert json field equals for this contract. */
215
- assert_json_field_equals?: Record<string, string>;
216
- /** Value that configures or reports assert json field gte for this contract. */
217
- assert_json_field_gte?: Record<string, number>;
218
- /** Value that configures or reports note for this contract. */
219
- note?: string;
182
+ /** Value that configures or reports command for this contract. */
183
+ command?: string;
184
+ /** Filesystem path used for path resolution. */
185
+ path?: string;
186
+ /** Value that configures or reports scope for this contract. */
187
+ scope: LinkScope;
188
+ /** Value that configures or reports timeout seconds for this contract. */
189
+ timeout_seconds?: number;
190
+ /** Strategy used to control pm context behavior. */
191
+ pm_context_mode?: "schema" | "tracker" | "auto" | "none";
192
+ /** Strategy used for source-workspace visibility and command working directory. */
193
+ workspace_context_mode?: "source" | "isolated" | "snapshot";
194
+ /** Immutable provenance captured when the linked command enters tracker data. */
195
+ provenance?: LinkedTestProvenance;
196
+ /** Explicit fail-closed marker retained when stored provenance is malformed. */
197
+ provenance_invalid?: true;
198
+ /** Author of the most recent explicit metadata edit; creation provenance is retained. */
199
+ updated_by?: string;
200
+ /** ISO timestamp of the most recent explicit metadata edit. */
201
+ updated_at?: string;
202
+ /** Value that configures or reports env set for this contract. */
203
+ env_set?: Record<string, string>;
204
+ /** Value that configures or reports env clear for this contract. */
205
+ env_clear?: string[];
206
+ /** Value that configures or reports shared host safe for this contract. */
207
+ shared_host_safe?: boolean;
208
+ /** Value that configures or reports assert stdout contains for this contract. */
209
+ assert_stdout_contains?: string[];
210
+ /** Value that configures or reports assert stdout regex for this contract. */
211
+ assert_stdout_regex?: string[];
212
+ /** Value that configures or reports assert stderr contains for this contract. */
213
+ assert_stderr_contains?: string[];
214
+ /** Value that configures or reports assert stderr regex for this contract. */
215
+ assert_stderr_regex?: string[];
216
+ /** Value that configures or reports assert stdout min lines for this contract. */
217
+ assert_stdout_min_lines?: number;
218
+ /** Value that configures or reports assert json field equals for this contract. */
219
+ assert_json_field_equals?: Record<string, string>;
220
+ /** Value that configures or reports assert json field gte for this contract. */
221
+ assert_json_field_gte?: Record<string, number>;
222
+ /** Value that configures or reports note for this contract. */
223
+ note?: string;
220
224
  }
221
225
  /** Documents the linked doc payload exchanged by command, SDK, and package integrations. */
222
226
  export interface LinkedDoc {
223
- /** Filesystem path used for path resolution. */
224
- path: string;
225
- /** Value that configures or reports scope for this contract. */
226
- scope: LinkScope;
227
- /** Value that configures or reports note for this contract. */
228
- note?: string;
227
+ /** Filesystem path used for path resolution. */
228
+ path: string;
229
+ /** Value that configures or reports scope for this contract. */
230
+ scope: LinkScope;
231
+ /** Value that configures or reports note for this contract. */
232
+ note?: string;
229
233
  }
230
234
  /** Documents the reminder payload exchanged by command, SDK, and package integrations. */
231
235
  export interface Reminder {
232
- /** Value that configures or reports at for this contract. */
233
- at: string;
234
- /** Value that configures or reports text for this contract. */
235
- text: string;
236
+ /** Value that configures or reports at for this contract. */
237
+ at: string;
238
+ /** Value that configures or reports text for this contract. */
239
+ text: string;
236
240
  }
237
241
  /** Documents the recurrence rule payload exchanged by command, SDK, and package integrations. */
238
242
  export interface RecurrenceRule {
239
- /** Value that configures or reports freq for this contract. */
240
- freq: RecurrenceFrequency;
241
- /** Value that configures or reports interval for this contract. */
242
- interval?: number;
243
- /** Value that configures or reports count for this contract. */
244
- count?: number;
245
- /** Value that configures or reports until for this contract. */
246
- until?: string;
247
- /** Value that configures or reports by weekday for this contract. */
248
- by_weekday?: RecurrenceWeekday[];
249
- /** Value that configures or reports by month day for this contract. */
250
- by_month_day?: number[];
251
- /** Value that configures or reports exdates for this contract. */
252
- exdates?: string[];
243
+ /** Value that configures or reports freq for this contract. */
244
+ freq: RecurrenceFrequency;
245
+ /** Value that configures or reports interval for this contract. */
246
+ interval?: number;
247
+ /** Value that configures or reports count for this contract. */
248
+ count?: number;
249
+ /** Value that configures or reports until for this contract. */
250
+ until?: string;
251
+ /** Value that configures or reports by weekday for this contract. */
252
+ by_weekday?: RecurrenceWeekday[];
253
+ /** Value that configures or reports by month day for this contract. */
254
+ by_month_day?: number[];
255
+ /** Value that configures or reports exdates for this contract. */
256
+ exdates?: string[];
253
257
  }
254
258
  /** Documents the calendar event payload exchanged by command, SDK, and package integrations. */
255
259
  export interface CalendarEvent {
256
- /** ISO 8601 timestamp recording when start occurred. */
257
- start_at: string;
258
- /** ISO 8601 timestamp recording when end occurred. */
259
- end_at?: string;
260
- /** Value that configures or reports title for this contract. */
261
- title?: string;
262
- /** Value that configures or reports description for this contract. */
263
- description?: string;
264
- /** Value that configures or reports location for this contract. */
265
- location?: string;
266
- /** Value that configures or reports all day for this contract. */
267
- all_day?: boolean;
268
- /** Value that configures or reports timezone for this contract. */
269
- timezone?: string;
270
- /** Value that configures or reports recurrence for this contract. */
271
- recurrence?: RecurrenceRule;
260
+ /** ISO 8601 timestamp recording when start occurred. */
261
+ start_at: string;
262
+ /** ISO 8601 timestamp recording when end occurred. */
263
+ end_at?: string;
264
+ /** Value that configures or reports title for this contract. */
265
+ title?: string;
266
+ /** Value that configures or reports description for this contract. */
267
+ description?: string;
268
+ /** Value that configures or reports location for this contract. */
269
+ location?: string;
270
+ /** Value that configures or reports all day for this contract. */
271
+ all_day?: boolean;
272
+ /** Value that configures or reports timezone for this contract. */
273
+ timezone?: string;
274
+ /** Value that configures or reports recurrence for this contract. */
275
+ recurrence?: RecurrenceRule;
272
276
  }
273
277
  /** Supported values accepted by the plan mode contract. */
274
278
  export declare const PLAN_MODE_VALUES: readonly ["draft", "research", "review", "approved", "executing", "paused", "completed", "superseded"];
@@ -288,592 +292,592 @@ export declare const PLAN_STEP_LINK_KIND_VALUES: readonly ["related", "blocks",
288
292
  export type PlanStepLinkKind = (typeof PLAN_STEP_LINK_KIND_VALUES)[number];
289
293
  /** Documents the plan step link payload exchanged by command, SDK, and package integrations. */
290
294
  export interface PlanStepLink {
291
- /** Stable identifier used to reference this record across commands and storage. */
292
- id: string;
293
- /** Value that configures or reports kind for this contract. */
294
- kind: PlanStepLinkKind;
295
- /** Value that configures or reports note for this contract. */
296
- note?: string;
297
- /** Value that configures or reports required before step for this contract. */
298
- required_before_step?: boolean;
295
+ /** Stable identifier used to reference this record across commands and storage. */
296
+ id: string;
297
+ /** Value that configures or reports kind for this contract. */
298
+ kind: PlanStepLinkKind;
299
+ /** Value that configures or reports note for this contract. */
300
+ note?: string;
301
+ /** Value that configures or reports required before step for this contract. */
302
+ required_before_step?: boolean;
299
303
  }
300
304
  /** Documents the plan step file payload exchanged by command, SDK, and package integrations. */
301
305
  export interface PlanStepFile {
302
- /** Filesystem path used for path resolution. */
303
- path: string;
304
- /** Value that configures or reports scope for this contract. */
305
- scope?: LinkScope;
306
- /** Value that configures or reports note for this contract. */
307
- note?: string;
306
+ /** Filesystem path used for path resolution. */
307
+ path: string;
308
+ /** Value that configures or reports scope for this contract. */
309
+ scope?: LinkScope;
310
+ /** Value that configures or reports note for this contract. */
311
+ note?: string;
308
312
  }
309
313
  /** Documents the plan step test payload exchanged by command, SDK, and package integrations. */
310
314
  export interface PlanStepTest {
311
- /** Value that configures or reports command for this contract. */
312
- command?: string;
313
- /** Filesystem path used for path resolution. */
314
- path?: string;
315
- /** Value that configures or reports note for this contract. */
316
- note?: string;
315
+ /** Value that configures or reports command for this contract. */
316
+ command?: string;
317
+ /** Filesystem path used for path resolution. */
318
+ path?: string;
319
+ /** Value that configures or reports note for this contract. */
320
+ note?: string;
317
321
  }
318
322
  /** Documents the plan step doc payload exchanged by command, SDK, and package integrations. */
319
323
  export interface PlanStepDoc {
320
- /** Filesystem path used for path resolution. */
321
- path: string;
322
- /** Value that configures or reports scope for this contract. */
323
- scope?: LinkScope;
324
- /** Value that configures or reports note for this contract. */
325
- note?: string;
324
+ /** Filesystem path used for path resolution. */
325
+ path: string;
326
+ /** Value that configures or reports scope for this contract. */
327
+ scope?: LinkScope;
328
+ /** Value that configures or reports note for this contract. */
329
+ note?: string;
326
330
  }
327
331
  /** Documents the plan step payload exchanged by command, SDK, and package integrations. */
328
332
  export interface PlanStep {
329
- /** Stable identifier used to reference this record across commands and storage. */
330
- id: string;
331
- /** Value that configures or reports order for this contract. */
332
- order: number;
333
- /** Value that configures or reports title for this contract. */
334
- title: string;
335
- /** Value that configures or reports body for this contract. */
336
- body?: string;
337
- /** Lifecycle state reported for status. */
338
- status: PlanStepStatus;
339
- /** Value that configures or reports owner for this contract. */
340
- owner?: string;
341
- /** Value that configures or reports evidence for this contract. */
342
- evidence?: string;
343
- /** Value that configures or reports blocked reason for this contract. */
344
- blocked_reason?: string;
345
- /** Value that configures or reports superseded by for this contract. */
346
- superseded_by?: string;
347
- /** Value that configures or reports linked items for this contract. */
348
- linked_items?: PlanStepLink[];
349
- /** Value that configures or reports files for this contract. */
350
- files?: PlanStepFile[];
351
- /** Value that configures or reports tests for this contract. */
352
- tests?: PlanStepTest[];
353
- /** Value that configures or reports docs for this contract. */
354
- docs?: PlanStepDoc[];
355
- /** ISO 8601 timestamp recording when created occurred. */
356
- created_at: string;
357
- /** ISO 8601 timestamp recording when updated occurred. */
358
- updated_at: string;
359
- /** ISO 8601 timestamp recording when completed occurred. */
360
- completed_at?: string;
333
+ /** Stable identifier used to reference this record across commands and storage. */
334
+ id: string;
335
+ /** Value that configures or reports order for this contract. */
336
+ order: number;
337
+ /** Value that configures or reports title for this contract. */
338
+ title: string;
339
+ /** Value that configures or reports body for this contract. */
340
+ body?: string;
341
+ /** Lifecycle state reported for status. */
342
+ status: PlanStepStatus;
343
+ /** Value that configures or reports owner for this contract. */
344
+ owner?: string;
345
+ /** Value that configures or reports evidence for this contract. */
346
+ evidence?: string;
347
+ /** Value that configures or reports blocked reason for this contract. */
348
+ blocked_reason?: string;
349
+ /** Value that configures or reports superseded by for this contract. */
350
+ superseded_by?: string;
351
+ /** Value that configures or reports linked items for this contract. */
352
+ linked_items?: PlanStepLink[];
353
+ /** Value that configures or reports files for this contract. */
354
+ files?: PlanStepFile[];
355
+ /** Value that configures or reports tests for this contract. */
356
+ tests?: PlanStepTest[];
357
+ /** Value that configures or reports docs for this contract. */
358
+ docs?: PlanStepDoc[];
359
+ /** ISO 8601 timestamp recording when created occurred. */
360
+ created_at: string;
361
+ /** ISO 8601 timestamp recording when updated occurred. */
362
+ updated_at: string;
363
+ /** ISO 8601 timestamp recording when completed occurred. */
364
+ completed_at?: string;
361
365
  }
362
366
  /** Documents the plan decision payload exchanged by command, SDK, and package integrations. */
363
367
  export interface PlanDecision {
364
- /** Value that configures or reports ts for this contract. */
365
- ts: string;
366
- /** Value that configures or reports author for this contract. */
367
- author: string;
368
- /** Value that configures or reports decision for this contract. */
369
- decision: string;
370
- /** Value that configures or reports rationale for this contract. */
371
- rationale?: string;
372
- /** Value that configures or reports evidence for this contract. */
373
- evidence?: string;
374
- /** Value that configures or reports step id for this contract. */
375
- step_id?: string;
368
+ /** Value that configures or reports ts for this contract. */
369
+ ts: string;
370
+ /** Value that configures or reports author for this contract. */
371
+ author: string;
372
+ /** Value that configures or reports decision for this contract. */
373
+ decision: string;
374
+ /** Value that configures or reports rationale for this contract. */
375
+ rationale?: string;
376
+ /** Value that configures or reports evidence for this contract. */
377
+ evidence?: string;
378
+ /** Value that configures or reports step id for this contract. */
379
+ step_id?: string;
376
380
  }
377
381
  /** Documents the plan discovery payload exchanged by command, SDK, and package integrations. */
378
382
  export interface PlanDiscovery {
379
- /** Value that configures or reports ts for this contract. */
380
- ts: string;
381
- /** Value that configures or reports author for this contract. */
382
- author: string;
383
- /** Value that configures or reports text for this contract. */
384
- text: string;
385
- /** Value that configures or reports step id for this contract. */
386
- step_id?: string;
383
+ /** Value that configures or reports ts for this contract. */
384
+ ts: string;
385
+ /** Value that configures or reports author for this contract. */
386
+ author: string;
387
+ /** Value that configures or reports text for this contract. */
388
+ text: string;
389
+ /** Value that configures or reports step id for this contract. */
390
+ step_id?: string;
387
391
  }
388
392
  /** Documents the plan validation check payload exchanged by command, SDK, and package integrations. */
389
393
  export interface PlanValidationCheck {
390
- /** Value that configures or reports text for this contract. */
391
- text: string;
392
- /** Value that configures or reports command for this contract. */
393
- command?: string;
394
- /** Value that configures or reports expected for this contract. */
395
- expected?: string;
394
+ /** Value that configures or reports text for this contract. */
395
+ text: string;
396
+ /** Value that configures or reports command for this contract. */
397
+ command?: string;
398
+ /** Value that configures or reports expected for this contract. */
399
+ expected?: string;
396
400
  }
397
401
  /** Documents the item type option definition payload exchanged by command, SDK, and package integrations. */
398
402
  export interface ItemTypeOptionDefinition {
399
- /** Value that configures or reports key for this contract. */
400
- key: string;
401
- /** Value that configures or reports values for this contract. */
402
- values: string[];
403
- /** Value that configures or reports required for this contract. */
404
- required?: boolean;
405
- /** Value that configures or reports aliases for this contract. */
406
- aliases?: string[];
407
- /** Value that configures or reports description for this contract. */
408
- description?: string;
403
+ /** Value that configures or reports key for this contract. */
404
+ key: string;
405
+ /** Value that configures or reports values for this contract. */
406
+ values: string[];
407
+ /** Value that configures or reports required for this contract. */
408
+ required?: boolean;
409
+ /** Value that configures or reports aliases for this contract. */
410
+ aliases?: string[];
411
+ /** Value that configures or reports description for this contract. */
412
+ description?: string;
409
413
  }
410
414
  /** Documents the item type command option policy payload exchanged by command, SDK, and package integrations. */
411
415
  export interface ItemTypeCommandOptionPolicy {
412
- /** Value that configures or reports command for this contract. */
413
- command: "create" | "update";
414
- /** Value that configures or reports option for this contract. */
415
- option: string;
416
- /** Value that configures or reports required for this contract. */
417
- required?: boolean;
418
- /** Value that configures or reports visible for this contract. */
419
- visible?: boolean;
420
- /** Whether enabled applies to this operation. */
421
- enabled?: boolean;
416
+ /** Value that configures or reports command for this contract. */
417
+ command: "create" | "update";
418
+ /** Value that configures or reports option for this contract. */
419
+ option: string;
420
+ /** Value that configures or reports required for this contract. */
421
+ required?: boolean;
422
+ /** Value that configures or reports visible for this contract. */
423
+ visible?: boolean;
424
+ /** Whether enabled applies to this operation. */
425
+ enabled?: boolean;
422
426
  }
423
427
  /** Documents the item type definition payload exchanged by command, SDK, and package integrations. */
424
428
  export interface ItemTypeDefinition {
425
- /** Value that configures or reports name for this contract. */
426
- name: string;
427
- /** Value that configures or reports description for this contract. */
428
- description?: string;
429
- /** Status assigned to newly created items of this type when `--status` is not provided. Falls back to the workflow's open status when unset or invalid. */
430
- default_status?: string;
431
- /** Agent work can be dispatched automatically; human work needs a decision, and gates track outcomes. Omission inherits the built-in role or defaults custom types to agent work. */
432
- execution_role?: "agent" | "human" | "gate";
433
- /** Value that configures or reports folder for this contract. */
434
- folder?: string;
435
- /** Value that configures or reports aliases for this contract. */
436
- aliases?: string[];
437
- /** Value that configures or reports required create fields for this contract. */
438
- required_create_fields?: string[];
439
- /** Value that configures or reports required create repeatables for this contract. */
440
- required_create_repeatables?: string[];
441
- /** Value that configures or reports options for this contract. */
442
- options?: ItemTypeOptionDefinition[];
443
- /** Value that configures or reports command option policies for this contract. */
444
- command_option_policies?: ItemTypeCommandOptionPolicy[];
429
+ /** Value that configures or reports name for this contract. */
430
+ name: string;
431
+ /** Value that configures or reports description for this contract. */
432
+ description?: string;
433
+ /** Status assigned to newly created items of this type when `--status` is not provided. Falls back to the workflow's open status when unset or invalid. */
434
+ default_status?: string;
435
+ /** Agent work can be dispatched automatically; human work needs a decision, and gates track outcomes. Omission inherits the built-in role or defaults custom types to agent work. */
436
+ execution_role?: "agent" | "human" | "gate";
437
+ /** Value that configures or reports folder for this contract. */
438
+ folder?: string;
439
+ /** Value that configures or reports aliases for this contract. */
440
+ aliases?: string[];
441
+ /** Value that configures or reports required create fields for this contract. */
442
+ required_create_fields?: string[];
443
+ /** Value that configures or reports required create repeatables for this contract. */
444
+ required_create_repeatables?: string[];
445
+ /** Value that configures or reports options for this contract. */
446
+ options?: ItemTypeOptionDefinition[];
447
+ /** Value that configures or reports command option policies for this contract. */
448
+ command_option_policies?: ItemTypeCommandOptionPolicy[];
445
449
  }
446
450
  /** Documents the runtime status definition payload exchanged by command, SDK, and package integrations. */
447
451
  export interface RuntimeStatusDefinition {
448
- /** Stable identifier used to reference this record across commands and storage. */
449
- id: string;
450
- /** Value that configures or reports aliases for this contract. */
451
- aliases?: string[];
452
- /** Value that configures or reports roles for this contract. */
453
- roles?: RuntimeStatusRole[];
454
- /** Value that configures or reports description for this contract. */
455
- description?: string;
456
- /** Value that configures or reports order for this contract. */
457
- order?: number;
452
+ /** Stable identifier used to reference this record across commands and storage. */
453
+ id: string;
454
+ /** Value that configures or reports aliases for this contract. */
455
+ aliases?: string[];
456
+ /** Value that configures or reports roles for this contract. */
457
+ roles?: RuntimeStatusRole[];
458
+ /** Value that configures or reports description for this contract. */
459
+ description?: string;
460
+ /** Value that configures or reports order for this contract. */
461
+ order?: number;
458
462
  }
459
463
  /** Declarative JSON-value constraints enforced before custom-field persistence. */
460
464
  export interface RuntimeFieldValueSchema {
461
- /** Optional JSON value type constraint. */
462
- type?: "string" | "number" | "boolean" | "array" | "object";
463
- /** Exact JSON value required by this schema branch. */
464
- const?: StructuredJsonValue;
465
- /** Complete allowed JSON value set. */
466
- enum?: StructuredJsonValue[];
467
- /** Minimum accepted string length. */
468
- min_length?: number;
469
- /** Minimum accepted array length. */
470
- min_items?: number;
471
- /** Optional semantic string format. */
472
- format?: "date-time";
473
- /** Object-property schemas keyed by the persisted property name. */
474
- properties?: Record<string, RuntimeFieldValueSchema>;
475
- /** Object properties that must be present. */
476
- required?: string[];
477
- /** Whether properties absent from `properties` are accepted. */
478
- additional_properties?: boolean;
479
- /** Schema applied to every array element. */
480
- items?: RuntimeFieldValueSchema;
481
- /** Alternative schemas of which exactly one must match. */
482
- one_of?: RuntimeFieldValueSchema[];
465
+ /** Optional JSON value type constraint. */
466
+ type?: "string" | "number" | "boolean" | "array" | "object";
467
+ /** Exact JSON value required by this schema branch. */
468
+ const?: StructuredJsonValue;
469
+ /** Complete allowed JSON value set. */
470
+ enum?: StructuredJsonValue[];
471
+ /** Minimum accepted string length. */
472
+ min_length?: number;
473
+ /** Minimum accepted array length. */
474
+ min_items?: number;
475
+ /** Optional semantic string format. */
476
+ format?: "date-time";
477
+ /** Object-property schemas keyed by the persisted property name. */
478
+ properties?: Record<string, RuntimeFieldValueSchema>;
479
+ /** Object properties that must be present. */
480
+ required?: string[];
481
+ /** Whether properties absent from `properties` are accepted. */
482
+ additional_properties?: boolean;
483
+ /** Schema applied to every array element. */
484
+ items?: RuntimeFieldValueSchema;
485
+ /** Alternative schemas of which exactly one must match. */
486
+ one_of?: RuntimeFieldValueSchema[];
483
487
  }
484
488
  /** Documents the runtime field definition payload exchanged by command, SDK, and package integrations. */
485
489
  export interface RuntimeFieldDefinition {
486
- /** Value that configures or reports key for this contract. */
487
- key: string;
488
- /** Value that configures or reports metadata key for this contract. */
489
- metadata_key?: string;
490
- /**
490
+ /** Value that configures or reports key for this contract. */
491
+ key: string;
492
+ /** Value that configures or reports metadata key for this contract. */
493
+ metadata_key?: string;
494
+ /**
491
495
  * @deprecated Use metadata_key.
492
496
  */
493
- front_matter_key?: string;
494
- /** Value that configures or reports cli flag for this contract. */
495
- cli_flag?: string;
496
- /** Value that configures or reports cli aliases for this contract. */
497
- cli_aliases?: string[];
498
- /** Value that configures or reports description for this contract. */
499
- description?: string;
500
- /** Schema type that determines the shape and validation rules for this value. */
501
- type?: RuntimeFieldType;
502
- /** Value that configures or reports commands for this contract. */
503
- commands?: RuntimeFieldCommand[];
504
- /** Value that configures or reports repeatable for this contract. */
505
- repeatable?: boolean;
506
- /** Value that configures or reports required for this contract. */
507
- required?: boolean;
508
- /** Value that configures or reports required on create for this contract. */
509
- required_on_create?: boolean;
510
- /** Value that configures or reports required types for this contract. */
511
- required_types?: string[];
512
- /** Value that configures or reports allow unset for this contract. */
513
- allow_unset?: boolean;
514
- /** Optional semantic JSON-value constraints enforced on create and update. */
515
- value_schema?: RuntimeFieldValueSchema;
497
+ front_matter_key?: string;
498
+ /** Value that configures or reports cli flag for this contract. */
499
+ cli_flag?: string;
500
+ /** Value that configures or reports cli aliases for this contract. */
501
+ cli_aliases?: string[];
502
+ /** Value that configures or reports description for this contract. */
503
+ description?: string;
504
+ /** Schema type that determines the shape and validation rules for this value. */
505
+ type?: RuntimeFieldType;
506
+ /** Value that configures or reports commands for this contract. */
507
+ commands?: RuntimeFieldCommand[];
508
+ /** Value that configures or reports repeatable for this contract. */
509
+ repeatable?: boolean;
510
+ /** Value that configures or reports required for this contract. */
511
+ required?: boolean;
512
+ /** Value that configures or reports required on create for this contract. */
513
+ required_on_create?: boolean;
514
+ /** Value that configures or reports required types for this contract. */
515
+ required_types?: string[];
516
+ /** Value that configures or reports allow unset for this contract. */
517
+ allow_unset?: boolean;
518
+ /** Optional semantic JSON-value constraints enforced on create and update. */
519
+ value_schema?: RuntimeFieldValueSchema;
516
520
  }
517
521
  /** Documents the runtime workflow definition payload exchanged by command, SDK, and package integrations. */
518
522
  export interface RuntimeWorkflowDefinition {
519
- /** Configured status id representing the draft lifecycle state. */
520
- draft_status?: string;
521
- /** Configured status id representing the open lifecycle state. */
522
- open_status?: string;
523
- /** Configured status id representing the in-progress lifecycle state. */
524
- in_progress_status?: string;
525
- /** Configured status id representing the blocked lifecycle state. */
526
- blocked_status?: string;
527
- /** Configured status id representing the closed lifecycle state. */
528
- close_status?: string;
529
- /** Configured status id representing the canceled lifecycle state. */
530
- canceled_status?: string;
523
+ /** Configured status id representing the draft lifecycle state. */
524
+ draft_status?: string;
525
+ /** Configured status id representing the open lifecycle state. */
526
+ open_status?: string;
527
+ /** Configured status id representing the in-progress lifecycle state. */
528
+ in_progress_status?: string;
529
+ /** Configured status id representing the blocked lifecycle state. */
530
+ blocked_status?: string;
531
+ /** Configured status id representing the closed lifecycle state. */
532
+ close_status?: string;
533
+ /** Configured status id representing the canceled lifecycle state. */
534
+ canceled_status?: string;
531
535
  }
532
536
  /** Documents the runtime schema file config payload exchanged by command, SDK, and package integrations. */
533
537
  export interface RuntimeSchemaFileConfig {
534
- /** Value that configures or reports types for this contract. */
535
- types?: string;
536
- /** Value that configures or reports statuses for this contract. */
537
- statuses?: string;
538
- /** Value that configures or reports fields for this contract. */
539
- fields?: string;
540
- /** Value that configures or reports workflows for this contract. */
541
- workflows?: string;
538
+ /** Value that configures or reports types for this contract. */
539
+ types?: string;
540
+ /** Value that configures or reports statuses for this contract. */
541
+ statuses?: string;
542
+ /** Value that configures or reports fields for this contract. */
543
+ fields?: string;
544
+ /** Value that configures or reports workflows for this contract. */
545
+ workflows?: string;
542
546
  }
543
547
  /** Per-type allowed-transition rule. A type with no matching entry is unrestricted; a type with an entry allows only the listed [from, to] status pairs (status tokens are resolved case-insensitively through the status registry alias map; a same-status no-op is always allowed). */
544
548
  export interface TypeWorkflowDefinition {
545
- /** Schema type that determines the shape and validation rules for this value. */
546
- type: string;
547
- /** Value that configures or reports allowed transitions for this contract. */
548
- allowed_transitions: [string, string][];
549
+ /** Schema type that determines the shape and validation rules for this value. */
550
+ type: string;
551
+ /** Value that configures or reports allowed transitions for this contract. */
552
+ allowed_transitions: [string, string][];
549
553
  }
550
554
  /** Documents the runtime schema settings payload exchanged by command, SDK, and package integrations. */
551
555
  export interface RuntimeSchemaSettings {
552
- /** Value that configures or reports version for this contract. */
553
- version: number;
554
- /** Value that configures or reports files for this contract. */
555
- files: RuntimeSchemaFileConfig;
556
- /** Value that configures or reports statuses for this contract. */
557
- statuses: RuntimeStatusDefinition[];
558
- /** Value that configures or reports fields for this contract. */
559
- fields: RuntimeFieldDefinition[];
560
- /** Value that configures or reports workflow for this contract. */
561
- workflow: RuntimeWorkflowDefinition;
562
- /** Value that configures or reports type workflows for this contract. */
563
- type_workflows?: TypeWorkflowDefinition[];
564
- /** Value that configures or reports unknown field policy for this contract. */
565
- unknown_field_policy: RuntimeUnknownFieldPolicy;
556
+ /** Value that configures or reports version for this contract. */
557
+ version: number;
558
+ /** Value that configures or reports files for this contract. */
559
+ files: RuntimeSchemaFileConfig;
560
+ /** Value that configures or reports statuses for this contract. */
561
+ statuses: RuntimeStatusDefinition[];
562
+ /** Value that configures or reports fields for this contract. */
563
+ fields: RuntimeFieldDefinition[];
564
+ /** Value that configures or reports workflow for this contract. */
565
+ workflow: RuntimeWorkflowDefinition;
566
+ /** Value that configures or reports type workflows for this contract. */
567
+ type_workflows?: TypeWorkflowDefinition[];
568
+ /** Value that configures or reports unknown field policy for this contract. */
569
+ unknown_field_policy: RuntimeUnknownFieldPolicy;
566
570
  }
567
571
  /** Documents the item test run summary payload exchanged by command, SDK, and package integrations. */
568
572
  export interface TestRunMeasurement {
569
- /** Stable metric name, such as coverage or p95_latency. */
570
- name: string;
571
- /** Numeric value recorded by the producing verification run. */
572
- value: number;
573
- /** Optional domain-specific unit, such as percent, ms, bytes, or count. */
574
- unit?: string;
575
- /** Optional pass/fail or budget threshold associated with the measurement. */
576
- threshold?: number;
577
- /** ISO 8601 timestamp binding the measurement to its producing run. */
578
- recorded_at: string;
573
+ /** Stable metric name, such as coverage or p95_latency. */
574
+ name: string;
575
+ /** Numeric value recorded by the producing verification run. */
576
+ value: number;
577
+ /** Optional domain-specific unit, such as percent, ms, bytes, or count. */
578
+ unit?: string;
579
+ /** Optional pass/fail or budget threshold associated with the measurement. */
580
+ threshold?: number;
581
+ /** ISO 8601 timestamp binding the measurement to its producing run. */
582
+ recorded_at: string;
579
583
  }
580
584
  /** Bounded command and tracker-context provenance for one linked-test execution. */
581
585
  export interface ItemTestRunExecution {
582
- /** Exact linked command selected for execution. */
583
- command: string;
584
- /** Context mode requested before linked-test overrides or auto-remediation. */
585
- requested_pm_context_mode?: "schema" | "tracker" | "auto" | "none";
586
- /** Effective context mode used by the linked command. */
587
- pm_context_mode?: "schema" | "tracker" | "auto" | "none";
588
- /** Effective source-workspace mode used by the linked command. */
589
- workspace_context_mode?: "source" | "isolated" | "snapshot";
590
- /** Trust classification applied before execution. */
591
- trust_reason?: "legacy" | "local_mutation" | "local_source_ref" | "acknowledged" | "invalid_provenance" | "foreign_source_ref";
586
+ /** Exact linked command selected for execution. */
587
+ command: string;
588
+ /** Context mode requested before linked-test overrides or auto-remediation. */
589
+ requested_pm_context_mode?: "schema" | "tracker" | "auto" | "none";
590
+ /** Effective context mode used by the linked command. */
591
+ pm_context_mode?: "schema" | "tracker" | "auto" | "none";
592
+ /** Effective source-workspace mode used by the linked command. */
593
+ workspace_context_mode?: "source" | "isolated" | "snapshot";
594
+ /** Trust classification applied before execution. */
595
+ trust_reason?: "legacy" | "local_mutation" | "local_source_ref" | "acknowledged" | "invalid_provenance" | "foreign_source_ref";
592
596
  }
593
597
  /** Documents the item test run summary payload exchanged by command, SDK, and package integrations. */
594
598
  export interface ItemTestRunSummary {
595
- /** Executes the id operation through the package runtime. */
596
- run_id: string;
597
- /** Value that configures or reports kind for this contract. */
598
- kind: "test" | "test-all";
599
- /** Lifecycle state reported for status. */
600
- status: "passed" | "failed" | "stopped" | "canceled";
601
- /** ISO 8601 timestamp recording when started occurred. */
602
- started_at: string;
603
- /** ISO 8601 timestamp recording when finished occurred. */
604
- finished_at: string;
605
- /** ISO 8601 timestamp recording when recorded occurred. */
606
- recorded_at: string;
607
- /** Value that configures or reports attempt for this contract. */
608
- attempt?: number;
609
- /** Value that configures or reports resumed from for this contract. */
610
- resumed_from?: string;
611
- /** Value that configures or reports passed for this contract. */
612
- passed: number;
613
- /** Value that configures or reports failed for this contract. */
614
- failed: number;
615
- /** Value that configures or reports skipped for this contract. */
616
- skipped: number;
617
- /** Value that configures or reports items for this contract. */
618
- items?: number;
619
- /** Value that configures or reports linked tests for this contract. */
620
- linked_tests?: number;
621
- /** Value that configures or reports fail on skipped triggered for this contract. */
622
- fail_on_skipped_triggered?: boolean;
623
- /** Bounded, deterministic quantitative evidence produced by this run. */
624
- measurements?: TestRunMeasurement[];
625
- /** Commands and effective tracker contexts bound to this recorded run. */
626
- executions?: ItemTestRunExecution[];
599
+ /** Executes the id operation through the package runtime. */
600
+ run_id: string;
601
+ /** Value that configures or reports kind for this contract. */
602
+ kind: "test" | "test-all";
603
+ /** Lifecycle state reported for status. */
604
+ status: "passed" | "failed" | "stopped" | "canceled";
605
+ /** ISO 8601 timestamp recording when started occurred. */
606
+ started_at: string;
607
+ /** ISO 8601 timestamp recording when finished occurred. */
608
+ finished_at: string;
609
+ /** ISO 8601 timestamp recording when recorded occurred. */
610
+ recorded_at: string;
611
+ /** Value that configures or reports attempt for this contract. */
612
+ attempt?: number;
613
+ /** Value that configures or reports resumed from for this contract. */
614
+ resumed_from?: string;
615
+ /** Value that configures or reports passed for this contract. */
616
+ passed: number;
617
+ /** Value that configures or reports failed for this contract. */
618
+ failed: number;
619
+ /** Value that configures or reports skipped for this contract. */
620
+ skipped: number;
621
+ /** Value that configures or reports items for this contract. */
622
+ items?: number;
623
+ /** Value that configures or reports linked tests for this contract. */
624
+ linked_tests?: number;
625
+ /** Value that configures or reports fail on skipped triggered for this contract. */
626
+ fail_on_skipped_triggered?: boolean;
627
+ /** Bounded, deterministic quantitative evidence produced by this run. */
628
+ measurements?: TestRunMeasurement[];
629
+ /** Commands and effective tracker contexts bound to this recorded run. */
630
+ executions?: ItemTestRunExecution[];
627
631
  }
628
632
  /** Documents the item metadata payload exchanged by command, SDK, and package integrations. */
629
633
  export interface ItemMetadata {
630
- /** Stable identifier used to reference this record across commands and storage. */
631
- id: string;
632
- /** Value that configures or reports title for this contract. */
633
- title: string;
634
- /** Value that configures or reports description for this contract. */
635
- description: string;
636
- /** Schema type that determines the shape and validation rules for this value. */
637
- type: ItemType;
638
- /** On-disk item-metadata format version. Absent means the implicit baseline (version 1) and is never serialized; populated only once an item advances past the baseline via a future storage migration. See core/item/item-format-version. */
639
- pm_format_version?: number;
640
- /** Schema type that determines the shape and validation rules for this value. */
641
- source_type?: string;
642
- /** Inputs that customize the type operation. */
643
- type_options?: Record<string, string>;
644
- /** Lifecycle state reported for status. */
645
- status: ItemStatus;
646
- /** Value that configures or reports priority for this contract. */
647
- priority: 0 | 1 | 2 | 3 | 4;
648
- /** Value that configures or reports tags for this contract. */
649
- tags: string[];
650
- /** ISO 8601 timestamp recording when created occurred. */
651
- created_at: string;
652
- /** ISO 8601 timestamp recording when updated occurred. */
653
- updated_at: string;
654
- /** Value that configures or reports deadline for this contract. */
655
- deadline?: string;
656
- /** Value that configures or reports reminders for this contract. */
657
- reminders?: Reminder[];
658
- /** Value that configures or reports events for this contract. */
659
- events?: CalendarEvent[];
660
- /** ISO 8601 timestamp recording when closed occurred. */
661
- closed_at?: string;
662
- /** ISO 8601 timestamp recording when the work actually completed. */
663
- completed_at?: string;
664
- /** Value that configures or reports assignee for this contract. */
665
- assignee?: string;
666
- /** Internal privacy-safe ownership principal for concurrent agent sessions. */
667
- claim_principal?: string;
668
- /** Value that configures or reports source owner for this contract. */
669
- source_owner?: string;
670
- /** Value that configures or reports author for this contract. */
671
- author?: string;
672
- /** Value that configures or reports estimated minutes for this contract. */
673
- estimated_minutes?: number;
674
- /** Value that configures or reports acceptance criteria for this contract. */
675
- acceptance_criteria?: string;
676
- /** Value that configures or reports design for this contract. */
677
- design?: string;
678
- /** Value that configures or reports external ref for this contract. */
679
- external_ref?: string;
680
- /** Value that configures or reports definition of ready for this contract. */
681
- definition_of_ready?: string;
682
- /** Value that configures or reports order for this contract. */
683
- order?: number;
684
- /** Value that configures or reports goal for this contract. */
685
- goal?: string;
686
- /** Value that configures or reports objective for this contract. */
687
- objective?: string;
688
- /** Value that configures or reports value for this contract. */
689
- value?: string;
690
- /** Value that configures or reports impact for this contract. */
691
- impact?: string;
692
- /** Value that configures or reports outcome for this contract. */
693
- outcome?: string;
694
- /** Value that configures or reports why now for this contract. */
695
- why_now?: string;
696
- /** Value that configures or reports parent for this contract. */
697
- parent?: string;
698
- /** Value that configures or reports reviewer for this contract. */
699
- reviewer?: string;
700
- /** Value that configures or reports risk for this contract. */
701
- risk?: RiskLevel;
702
- /** Value that configures or reports confidence for this contract. */
703
- confidence?: ConfidenceValue;
704
- /** Value that configures or reports sprint for this contract. */
705
- sprint?: string;
706
- /** Value that configures or reports release for this contract. */
707
- release?: string;
708
- /** Value that configures or reports blocked by for this contract. */
709
- blocked_by?: string;
710
- /** Value that configures or reports blocked reason for this contract. */
711
- blocked_reason?: string;
712
- /** Value that configures or reports unblock note for this contract. */
713
- unblock_note?: string;
714
- /** Value that configures or reports reporter for this contract. */
715
- reporter?: string;
716
- /** Value that configures or reports severity for this contract. */
717
- severity?: IssueSeverity;
718
- /** Value that configures or reports environment for this contract. */
719
- environment?: string;
720
- /** Value that configures or reports repro steps for this contract. */
721
- repro_steps?: string;
722
- /** Value that configures or reports resolution for this contract. */
723
- resolution?: string;
724
- /** Structured result returned by the expected operation. */
725
- expected_result?: string;
726
- /** Structured result returned by the actual operation. */
727
- actual_result?: string;
728
- /** Value that configures or reports affected version for this contract. */
729
- affected_version?: string;
730
- /** Value that configures or reports fixed version for this contract. */
731
- fixed_version?: string;
732
- /** Value that configures or reports component for this contract. */
733
- component?: string;
734
- /** Value that configures or reports regression for this contract. */
735
- regression?: boolean;
736
- /** Value that configures or reports customer impact for this contract. */
737
- customer_impact?: string;
738
- /** Value that configures or reports dependencies for this contract. */
739
- dependencies?: Dependency[];
740
- /** Value that configures or reports comments for this contract. */
741
- comments?: Comment[];
742
- /** Value that configures or reports notes for this contract. */
743
- notes?: LogNote[];
744
- /** Value that configures or reports learnings for this contract. */
745
- learnings?: LogNote[];
746
- /** Value that configures or reports files for this contract. */
747
- files?: LinkedFile[];
748
- /** Value that configures or reports tests for this contract. */
749
- tests?: LinkedTest[];
750
- /** Value that configures or reports test runs for this contract. */
751
- test_runs?: ItemTestRunSummary[];
752
- /** Value that configures or reports docs for this contract. */
753
- docs?: LinkedDoc[];
754
- /** Value that configures or reports close reason for this contract. */
755
- close_reason?: string;
756
- /** Value that configures or reports duplicate of for this contract. */
757
- duplicate_of?: string;
758
- /** Strategy used to control plan behavior. */
759
- plan_mode?: PlanMode;
760
- /** Value that configures or reports plan scope for this contract. */
761
- plan_scope?: string;
762
- /** Value that configures or reports plan harness for this contract. */
763
- plan_harness?: PlanHarness;
764
- /** Value that configures or reports plan steps for this contract. */
765
- plan_steps?: PlanStep[];
766
- /** Value that configures or reports plan decisions for this contract. */
767
- plan_decisions?: PlanDecision[];
768
- /** Value that configures or reports plan discoveries for this contract. */
769
- plan_discoveries?: PlanDiscovery[];
770
- /** Value that configures or reports plan validation for this contract. */
771
- plan_validation?: PlanValidationCheck[];
772
- /** Value that configures or reports plan resume context for this contract. */
773
- plan_resume_context?: string;
774
- [key: string]: unknown;
634
+ /** Stable identifier used to reference this record across commands and storage. */
635
+ id: string;
636
+ /** Value that configures or reports title for this contract. */
637
+ title: string;
638
+ /** Value that configures or reports description for this contract. */
639
+ description: string;
640
+ /** Schema type that determines the shape and validation rules for this value. */
641
+ type: ItemType;
642
+ /** On-disk item-metadata format version. Absent means the implicit baseline (version 1) and is never serialized; populated only once an item advances past the baseline via a future storage migration. See core/item/item-format-version. */
643
+ pm_format_version?: number;
644
+ /** Schema type that determines the shape and validation rules for this value. */
645
+ source_type?: string;
646
+ /** Inputs that customize the type operation. */
647
+ type_options?: Record<string, string>;
648
+ /** Lifecycle state reported for status. */
649
+ status: ItemStatus;
650
+ /** Value that configures or reports priority for this contract. */
651
+ priority: 0 | 1 | 2 | 3 | 4;
652
+ /** Value that configures or reports tags for this contract. */
653
+ tags: string[];
654
+ /** ISO 8601 timestamp recording when created occurred. */
655
+ created_at: string;
656
+ /** ISO 8601 timestamp recording when updated occurred. */
657
+ updated_at: string;
658
+ /** Value that configures or reports deadline for this contract. */
659
+ deadline?: string;
660
+ /** Value that configures or reports reminders for this contract. */
661
+ reminders?: Reminder[];
662
+ /** Value that configures or reports events for this contract. */
663
+ events?: CalendarEvent[];
664
+ /** ISO 8601 timestamp recording when closed occurred. */
665
+ closed_at?: string;
666
+ /** ISO 8601 timestamp recording when the work actually completed. */
667
+ completed_at?: string;
668
+ /** Value that configures or reports assignee for this contract. */
669
+ assignee?: string;
670
+ /** Internal privacy-safe ownership principal for concurrent agent sessions. */
671
+ claim_principal?: string;
672
+ /** Value that configures or reports source owner for this contract. */
673
+ source_owner?: string;
674
+ /** Value that configures or reports author for this contract. */
675
+ author?: string;
676
+ /** Value that configures or reports estimated minutes for this contract. */
677
+ estimated_minutes?: number;
678
+ /** Value that configures or reports acceptance criteria for this contract. */
679
+ acceptance_criteria?: string;
680
+ /** Value that configures or reports design for this contract. */
681
+ design?: string;
682
+ /** Value that configures or reports external ref for this contract. */
683
+ external_ref?: string;
684
+ /** Value that configures or reports definition of ready for this contract. */
685
+ definition_of_ready?: string;
686
+ /** Value that configures or reports order for this contract. */
687
+ order?: number;
688
+ /** Value that configures or reports goal for this contract. */
689
+ goal?: string;
690
+ /** Value that configures or reports objective for this contract. */
691
+ objective?: string;
692
+ /** Value that configures or reports value for this contract. */
693
+ value?: string;
694
+ /** Value that configures or reports impact for this contract. */
695
+ impact?: string;
696
+ /** Value that configures or reports outcome for this contract. */
697
+ outcome?: string;
698
+ /** Value that configures or reports why now for this contract. */
699
+ why_now?: string;
700
+ /** Value that configures or reports parent for this contract. */
701
+ parent?: string;
702
+ /** Value that configures or reports reviewer for this contract. */
703
+ reviewer?: string;
704
+ /** Value that configures or reports risk for this contract. */
705
+ risk?: RiskLevel;
706
+ /** Value that configures or reports confidence for this contract. */
707
+ confidence?: ConfidenceValue;
708
+ /** Value that configures or reports sprint for this contract. */
709
+ sprint?: string;
710
+ /** Value that configures or reports release for this contract. */
711
+ release?: string;
712
+ /** Value that configures or reports blocked by for this contract. */
713
+ blocked_by?: string;
714
+ /** Value that configures or reports blocked reason for this contract. */
715
+ blocked_reason?: string;
716
+ /** Value that configures or reports unblock note for this contract. */
717
+ unblock_note?: string;
718
+ /** Value that configures or reports reporter for this contract. */
719
+ reporter?: string;
720
+ /** Value that configures or reports severity for this contract. */
721
+ severity?: IssueSeverity;
722
+ /** Value that configures or reports environment for this contract. */
723
+ environment?: string;
724
+ /** Value that configures or reports repro steps for this contract. */
725
+ repro_steps?: string;
726
+ /** Value that configures or reports resolution for this contract. */
727
+ resolution?: string;
728
+ /** Structured result returned by the expected operation. */
729
+ expected_result?: string;
730
+ /** Structured result returned by the actual operation. */
731
+ actual_result?: string;
732
+ /** Value that configures or reports affected version for this contract. */
733
+ affected_version?: string;
734
+ /** Value that configures or reports fixed version for this contract. */
735
+ fixed_version?: string;
736
+ /** Value that configures or reports component for this contract. */
737
+ component?: string;
738
+ /** Value that configures or reports regression for this contract. */
739
+ regression?: boolean;
740
+ /** Value that configures or reports customer impact for this contract. */
741
+ customer_impact?: string;
742
+ /** Value that configures or reports dependencies for this contract. */
743
+ dependencies?: Dependency[];
744
+ /** Value that configures or reports comments for this contract. */
745
+ comments?: Comment[];
746
+ /** Value that configures or reports notes for this contract. */
747
+ notes?: LogNote[];
748
+ /** Value that configures or reports learnings for this contract. */
749
+ learnings?: LogNote[];
750
+ /** Value that configures or reports files for this contract. */
751
+ files?: LinkedFile[];
752
+ /** Value that configures or reports tests for this contract. */
753
+ tests?: LinkedTest[];
754
+ /** Value that configures or reports test runs for this contract. */
755
+ test_runs?: ItemTestRunSummary[];
756
+ /** Value that configures or reports docs for this contract. */
757
+ docs?: LinkedDoc[];
758
+ /** Value that configures or reports close reason for this contract. */
759
+ close_reason?: string;
760
+ /** Value that configures or reports duplicate of for this contract. */
761
+ duplicate_of?: string;
762
+ /** Strategy used to control plan behavior. */
763
+ plan_mode?: PlanMode;
764
+ /** Value that configures or reports plan scope for this contract. */
765
+ plan_scope?: string;
766
+ /** Value that configures or reports plan harness for this contract. */
767
+ plan_harness?: PlanHarness;
768
+ /** Value that configures or reports plan steps for this contract. */
769
+ plan_steps?: PlanStep[];
770
+ /** Value that configures or reports plan decisions for this contract. */
771
+ plan_decisions?: PlanDecision[];
772
+ /** Value that configures or reports plan discoveries for this contract. */
773
+ plan_discoveries?: PlanDiscovery[];
774
+ /** Value that configures or reports plan validation for this contract. */
775
+ plan_validation?: PlanValidationCheck[];
776
+ /** Value that configures or reports plan resume context for this contract. */
777
+ plan_resume_context?: string;
778
+ [key: string]: unknown;
775
779
  }
776
780
  /** Documents the item document payload exchanged by command, SDK, and package integrations. */
777
781
  export interface ItemDocument {
778
- /** Value that configures or reports metadata for this contract. */
779
- metadata: ItemMetadata;
780
- /** Value that configures or reports body for this contract. */
781
- body: string;
782
+ /** Value that configures or reports metadata for this contract. */
783
+ metadata: ItemMetadata;
784
+ /** Value that configures or reports body for this contract. */
785
+ body: string;
782
786
  }
783
787
  /** Documents the history patch op payload exchanged by command, SDK, and package integrations. */
784
788
  export interface HistoryPatchOp {
785
- /** Value that configures or reports op for this contract. */
786
- op: "add" | "remove" | "replace" | "move" | "copy" | "test";
787
- /** Filesystem path used for path resolution. */
788
- path: string;
789
- /** Value that configures or reports from for this contract. */
790
- from?: string;
791
- /** Value that configures or reports value for this contract. */
792
- value?: unknown;
789
+ /** Value that configures or reports op for this contract. */
790
+ op: "add" | "remove" | "replace" | "move" | "copy" | "test";
791
+ /** Filesystem path used for path resolution. */
792
+ path: string;
793
+ /** Value that configures or reports from for this contract. */
794
+ from?: string;
795
+ /** Value that configures or reports value for this contract. */
796
+ value?: unknown;
793
797
  }
794
798
  /** Immutable evidence retained whenever history maintenance replaces anchors or patch operations. */
795
799
  export interface HistoryReanchorEvidence {
796
- /** Algorithm of the retained item and record anchors; absent means SHA-256. */
797
- hash_algorithm?: string;
798
- /** Before-state anchor present on the record before re-anchoring. */
799
- before_hash: string;
800
- /** After-state anchor present on the record before re-anchoring. */
801
- after_hash: string;
802
- /** Item hash epoch present before re-anchoring. */
803
- item_hash_version?: number;
804
- /** Hash of the original patch, retained even when redaction forbids retaining its values. */
805
- patch_hash: string;
806
- /** Original patch operations when repair replaced or skipped recorded intent. */
807
- patch?: HistoryPatchOp[];
808
- /** Record-integrity epoch protecting the pre-re-anchor record. */
809
- record_hash_version?: number;
810
- /** Record hash protecting the pre-re-anchor attribution and operation metadata. */
811
- record_hash?: string;
812
- /** Exact prior sealed record when maintenance can retain its non-sensitive payload. */
813
- record?: HistoryEntry;
800
+ /** Algorithm of the retained item and record anchors; absent means SHA-256. */
801
+ hash_algorithm?: string;
802
+ /** Before-state anchor present on the record before re-anchoring. */
803
+ before_hash: string;
804
+ /** After-state anchor present on the record before re-anchoring. */
805
+ after_hash: string;
806
+ /** Item hash epoch present before re-anchoring. */
807
+ item_hash_version?: number;
808
+ /** Hash of the original patch, retained even when redaction forbids retaining its values. */
809
+ patch_hash: string;
810
+ /** Original patch operations when repair replaced or skipped recorded intent. */
811
+ patch?: HistoryPatchOp[];
812
+ /** Record-integrity epoch protecting the pre-re-anchor record. */
813
+ record_hash_version?: number;
814
+ /** Record hash protecting the pre-re-anchor attribution and operation metadata. */
815
+ record_hash?: string;
816
+ /** Exact prior sealed record when maintenance can retain its non-sensitive payload. */
817
+ record?: HistoryEntry;
814
818
  }
815
819
  /** Documents the history entry payload exchanged by command, SDK, and package integrations. */
816
820
  export interface HistoryEntry {
817
- /** Algorithm for before_hash, after_hash and record_hash; absent means legacy SHA-256. */
818
- hash_algorithm?: string;
819
- /** Value that configures or reports ts for this contract. */
820
- ts: string;
821
- /** Value that configures or reports author for this contract. */
822
- author: string;
823
- /** Provenance of the author selected for this event. Absent only on legacy entries. */
824
- author_source?: "asserted" | "configured" | "detected" | "unknown";
825
- /** Observed agent harness, independent from the effective author precedence. */
826
- agent_harness?: string;
827
- /** Observed agent model identifier, retained in local history. */
828
- agent_model?: string;
829
- /** Bounded signal class that supplied `agent_model`. */
830
- agent_model_source?: "override" | "environment" | "mcp_client" | "argv" | "host" | "session" | "probe" | "inferred";
831
- /** Privacy-safe fingerprint distinguishing concurrent harness invocations. */
832
- agent_instance?: string;
833
- /** Extensible local-only descriptive agent provenance; null means declared but unavailable. */
834
- agent_provenance?: Readonly<Record<string, {
835
- /** Bounded descriptive value observed for this dimension. */
836
- value: string;
837
- /** Bounded signal class that supplied the value. */
838
- source: "override" | "environment" | "mcp_client" | "argv" | "host" | "session" | "probe" | "inferred";
839
- /** Confidence attached to a semantic inference. */
840
- confidence?: "high" | "medium" | "low";
841
- /** Versioned semantic inference rule. */
842
- rule_version?: "v2";
843
- /** Bounded item and lineage references supporting the inference. */
844
- evidence?: readonly string[];
845
- } | null>>;
846
- /** Stable declared episode identity; absent on legacy or undeclared events. */
847
- agent_episode?: {
848
- /** Stable caller-declared episode join key. */
849
- id: string;
850
- /** Human-readable episode purpose retained in local history. */
851
- label?: string;
852
- /** Parent episode key for delegated or nested work. */
853
- parent_id?: string;
854
- };
855
- /** Value that configures or reports op for this contract. */
856
- op: string;
857
- /** Declared semantic effect used by recency consumers. Absent on legacy entries. */
858
- event_class?: "substantive" | "maintenance";
859
- /** Value that configures or reports patch for this contract. */
860
- patch: HistoryPatchOp[];
861
- /** Value that configures or reports before hash for this contract. */
862
- before_hash: string;
863
- /** Value that configures or reports after hash for this contract. */
864
- after_hash: string;
865
- /** Version of the item canonicalization used by before_hash and after_hash. Absent on legacy streams. */
866
- item_hash_version?: number;
867
- /** Version of the canonical immutable-record envelope. Absent on legacy entries whose coverage is item-state-only. */
868
- record_hash_version?: number;
869
- /** Digest covering immutable metadata, patch and anchors under hash_algorithm. */
870
- record_hash?: string;
871
- /** Append-only evidence for every prior anchor or patch representation replaced by maintenance. */
872
- reanchor_evidence?: HistoryReanchorEvidence[];
873
- /** Human-readable explanation suitable for logs and agent-facing output. */
874
- message?: string;
875
- /** Structured audit metadata that does not alter replayed item state. */
876
- context?: Record<string, unknown>;
821
+ /** Algorithm for before_hash, after_hash and record_hash; absent means legacy SHA-256. */
822
+ hash_algorithm?: string;
823
+ /** Value that configures or reports ts for this contract. */
824
+ ts: string;
825
+ /** Value that configures or reports author for this contract. */
826
+ author: string;
827
+ /** Provenance of the author selected for this event. Absent only on legacy entries. */
828
+ author_source?: "asserted" | "configured" | "detected" | "unknown";
829
+ /** Observed agent harness, independent from the effective author precedence. */
830
+ agent_harness?: string;
831
+ /** Observed agent model identifier, retained in local history. */
832
+ agent_model?: string;
833
+ /** Bounded signal class that supplied `agent_model`. */
834
+ agent_model_source?: "override" | "environment" | "mcp_client" | "argv" | "host" | "session" | "probe" | "inferred";
835
+ /** Privacy-safe fingerprint distinguishing concurrent harness invocations. */
836
+ agent_instance?: string;
837
+ /** Extensible local-only descriptive agent provenance; null means declared but unavailable. */
838
+ agent_provenance?: Readonly<Record<string, {
839
+ /** Bounded descriptive value observed for this dimension. */
840
+ value: string;
841
+ /** Bounded signal class that supplied the value. */
842
+ source: "override" | "environment" | "mcp_client" | "argv" | "host" | "session" | "probe" | "inferred";
843
+ /** Confidence attached to a semantic inference. */
844
+ confidence?: "high" | "medium" | "low";
845
+ /** Versioned semantic inference rule. */
846
+ rule_version?: "v2";
847
+ /** Bounded item and lineage references supporting the inference. */
848
+ evidence?: readonly string[];
849
+ } | null>>;
850
+ /** Stable declared episode identity; absent on legacy or undeclared events. */
851
+ agent_episode?: {
852
+ /** Stable caller-declared episode join key. */
853
+ id: string;
854
+ /** Human-readable episode purpose retained in local history. */
855
+ label?: string;
856
+ /** Parent episode key for delegated or nested work. */
857
+ parent_id?: string;
858
+ };
859
+ /** Value that configures or reports op for this contract. */
860
+ op: string;
861
+ /** Declared semantic effect used by recency consumers. Absent on legacy entries. */
862
+ event_class?: "substantive" | "maintenance";
863
+ /** Value that configures or reports patch for this contract. */
864
+ patch: HistoryPatchOp[];
865
+ /** Value that configures or reports before hash for this contract. */
866
+ before_hash: string;
867
+ /** Value that configures or reports after hash for this contract. */
868
+ after_hash: string;
869
+ /** Version of the item canonicalization used by before_hash and after_hash. Absent on legacy streams. */
870
+ item_hash_version?: number;
871
+ /** Version of the canonical immutable-record envelope. Absent on legacy entries whose coverage is item-state-only. */
872
+ record_hash_version?: number;
873
+ /** Digest covering immutable metadata, patch and anchors under hash_algorithm. */
874
+ record_hash?: string;
875
+ /** Append-only evidence for every prior anchor or patch representation replaced by maintenance. */
876
+ reanchor_evidence?: HistoryReanchorEvidence[];
877
+ /** Human-readable explanation suitable for logs and agent-facing output. */
878
+ message?: string;
879
+ /** Structured audit metadata that does not alter replayed item state. */
880
+ context?: Record<string, unknown>;
877
881
  }
878
882
  /** Supported values accepted by the context depth contract. */
879
883
  export declare const CONTEXT_DEPTH_VALUES: readonly ["brief", "standard", "deep", "full"];
@@ -885,66 +889,66 @@ export declare const CONTEXT_SECTION_VALUES: readonly ["hierarchy", "activity",
885
889
  export type ContextSectionName = (typeof CONTEXT_SECTION_VALUES)[number];
886
890
  /** Documents the context section settings payload exchanged by command, SDK, and package integrations. */
887
891
  export interface ContextSectionSettings {
888
- /** Value that configures or reports hierarchy for this contract. */
889
- hierarchy: boolean;
890
- /** Value that configures or reports activity for this contract. */
891
- activity: boolean;
892
- /** Value that configures or reports progress for this contract. */
893
- progress: boolean;
894
- /** Value that configures or reports recently created for this contract. */
895
- recently_created: boolean;
896
- /** Value that configures or reports unparented for this contract. */
897
- unparented: boolean;
898
- /** Value that configures or reports blockers for this contract. */
899
- blockers: boolean;
900
- /** Value that configures or reports files for this contract. */
901
- files: boolean;
902
- /** Value that configures or reports workload for this contract. */
903
- workload: boolean;
904
- /** Value that configures or reports staleness for this contract. */
905
- staleness: boolean;
906
- /** Value that configures or reports tests for this contract. */
907
- tests: boolean;
892
+ /** Value that configures or reports hierarchy for this contract. */
893
+ hierarchy: boolean;
894
+ /** Value that configures or reports activity for this contract. */
895
+ activity: boolean;
896
+ /** Value that configures or reports progress for this contract. */
897
+ progress: boolean;
898
+ /** Value that configures or reports recently created for this contract. */
899
+ recently_created: boolean;
900
+ /** Value that configures or reports unparented for this contract. */
901
+ unparented: boolean;
902
+ /** Value that configures or reports blockers for this contract. */
903
+ blockers: boolean;
904
+ /** Value that configures or reports files for this contract. */
905
+ files: boolean;
906
+ /** Value that configures or reports workload for this contract. */
907
+ workload: boolean;
908
+ /** Value that configures or reports staleness for this contract. */
909
+ staleness: boolean;
910
+ /** Value that configures or reports tests for this contract. */
911
+ tests: boolean;
908
912
  }
909
913
  /** Documents the context settings payload exchanged by command, SDK, and package integrations. */
910
914
  export interface ContextSettings {
911
- /** Fallback depth used when callers do not provide an override. */
912
- default_depth: ContextDepth;
913
- /** Value that configures or reports activity limit for this contract. */
914
- activity_limit: number;
915
- /** Value that configures or reports stale threshold days for this contract. */
916
- stale_threshold_days: number;
917
- /** Value that configures or reports sections for this contract. */
918
- sections: ContextSectionSettings;
915
+ /** Fallback depth used when callers do not provide an override. */
916
+ default_depth: ContextDepth;
917
+ /** Value that configures or reports activity limit for this contract. */
918
+ activity_limit: number;
919
+ /** Value that configures or reports stale threshold days for this contract. */
920
+ stale_threshold_days: number;
921
+ /** Value that configures or reports sections for this contract. */
922
+ sections: ContextSectionSettings;
919
923
  }
920
924
  /** Documents the governance settings payload exchanged by command, SDK, and package integrations. */
921
925
  export interface GovernanceSettings {
922
- /** Value that configures or reports preset for this contract. */
923
- preset: GovernancePreset;
924
- /** Value that configures or reports ownership enforcement for this contract. */
925
- ownership_enforcement: GovernanceOwnershipEnforcement;
926
- /** Creates mode default using the validated operation inputs. */
927
- create_mode_default: GovernanceCreateModeDefault;
928
- /** Value that configures or reports close validation default for this contract. */
929
- close_validation_default: GovernanceCloseValidationDefault;
930
- /** Value that configures or reports require close reason for this contract. */
931
- require_close_reason: boolean;
932
- /** Value that configures or reports parent reference for this contract. */
933
- parent_reference: ParentReferencePolicy;
934
- /** Value that configures or reports metadata profile for this contract. */
935
- metadata_profile: ValidateMetadataProfile;
936
- /** Value that configures or reports force required for stale lock for this contract. */
937
- force_required_for_stale_lock: boolean;
938
- /** Schema type that determines the shape and validation rules for this value. */
939
- create_default_type?: string;
940
- /** Per-type allowed-transition enforcement mode for `pm update --status`. Read raw from settings (not preset-derived) so existing projects are unaffected when unset; defaults to "off". */
941
- workflow_enforcement?: GovernanceWorkflowEnforcement;
942
- /** Create/copy near-duplicate enforcement mode. */
943
- duplicate_detection_mode: GovernanceDuplicateDetectionMode;
944
- /** Inclusive similarity floor on the zero-to-one scale. */
945
- duplicate_detection_threshold: number;
946
- /** Maximum advisory candidates attached to a mutation result. */
947
- duplicate_detection_limit: number;
926
+ /** Value that configures or reports preset for this contract. */
927
+ preset: GovernancePreset;
928
+ /** Value that configures or reports ownership enforcement for this contract. */
929
+ ownership_enforcement: GovernanceOwnershipEnforcement;
930
+ /** Creates mode default using the validated operation inputs. */
931
+ create_mode_default: GovernanceCreateModeDefault;
932
+ /** Value that configures or reports close validation default for this contract. */
933
+ close_validation_default: GovernanceCloseValidationDefault;
934
+ /** Value that configures or reports require close reason for this contract. */
935
+ require_close_reason: boolean;
936
+ /** Value that configures or reports parent reference for this contract. */
937
+ parent_reference: ParentReferencePolicy;
938
+ /** Value that configures or reports metadata profile for this contract. */
939
+ metadata_profile: ValidateMetadataProfile;
940
+ /** Value that configures or reports force required for stale lock for this contract. */
941
+ force_required_for_stale_lock: boolean;
942
+ /** Schema type that determines the shape and validation rules for this value. */
943
+ create_default_type?: string;
944
+ /** Per-type allowed-transition enforcement mode for `pm update --status`. Read raw from settings (not preset-derived) so existing projects are unaffected when unset; defaults to "off". */
945
+ workflow_enforcement?: GovernanceWorkflowEnforcement;
946
+ /** Create/copy near-duplicate enforcement mode. */
947
+ duplicate_detection_mode: GovernanceDuplicateDetectionMode;
948
+ /** Inclusive similarity floor on the zero-to-one scale. */
949
+ duplicate_detection_threshold: number;
950
+ /** Maximum advisory candidates attached to a mutation result. */
951
+ duplicate_detection_limit: number;
948
952
  }
949
953
  /** Restricts extension policy mode values accepted by command, SDK, and storage contracts. */
950
954
  export type ExtensionPolicyMode = "off" | "warn" | "enforce";
@@ -954,88 +958,88 @@ export type ExtensionTrustMode = "off" | "warn" | "enforce";
954
958
  export type ExtensionSandboxProfile = "none" | "restricted" | "strict";
955
959
  /** Documents the extension policy override settings payload exchanged by command, SDK, and package integrations. */
956
960
  export interface ExtensionPolicyOverrideSettings {
957
- /** Value that configures or reports name for this contract. */
958
- name: string;
959
- /** Whether disabled applies to this operation. */
960
- disabled?: boolean;
961
- /** Value that configures or reports require trusted for this contract. */
962
- require_trusted?: boolean;
963
- /** Value that configures or reports require provenance for this contract. */
964
- require_provenance?: boolean;
965
- /** Value that configures or reports sandbox profile for this contract. */
966
- sandbox_profile?: ExtensionSandboxProfile;
967
- /** Value that configures or reports allowed capabilities for this contract. */
968
- allowed_capabilities?: string[];
969
- /** Value that configures or reports blocked capabilities for this contract. */
970
- blocked_capabilities?: string[];
971
- /** Value that configures or reports allowed surfaces for this contract. */
972
- allowed_surfaces?: string[];
973
- /** Value that configures or reports blocked surfaces for this contract. */
974
- blocked_surfaces?: string[];
975
- /** Value that configures or reports allowed commands for this contract. */
976
- allowed_commands?: string[];
977
- /** Value that configures or reports blocked commands for this contract. */
978
- blocked_commands?: string[];
979
- /** Value that configures or reports allowed actions for this contract. */
980
- allowed_actions?: string[];
981
- /** Value that configures or reports blocked actions for this contract. */
982
- blocked_actions?: string[];
983
- /** Value that configures or reports allowed services for this contract. */
984
- allowed_services?: string[];
985
- /** Value that configures or reports blocked services for this contract. */
986
- blocked_services?: string[];
961
+ /** Value that configures or reports name for this contract. */
962
+ name: string;
963
+ /** Whether disabled applies to this operation. */
964
+ disabled?: boolean;
965
+ /** Value that configures or reports require trusted for this contract. */
966
+ require_trusted?: boolean;
967
+ /** Value that configures or reports require provenance for this contract. */
968
+ require_provenance?: boolean;
969
+ /** Value that configures or reports sandbox profile for this contract. */
970
+ sandbox_profile?: ExtensionSandboxProfile;
971
+ /** Value that configures or reports allowed capabilities for this contract. */
972
+ allowed_capabilities?: string[];
973
+ /** Value that configures or reports blocked capabilities for this contract. */
974
+ blocked_capabilities?: string[];
975
+ /** Value that configures or reports allowed surfaces for this contract. */
976
+ allowed_surfaces?: string[];
977
+ /** Value that configures or reports blocked surfaces for this contract. */
978
+ blocked_surfaces?: string[];
979
+ /** Value that configures or reports allowed commands for this contract. */
980
+ allowed_commands?: string[];
981
+ /** Value that configures or reports blocked commands for this contract. */
982
+ blocked_commands?: string[];
983
+ /** Value that configures or reports allowed actions for this contract. */
984
+ allowed_actions?: string[];
985
+ /** Value that configures or reports blocked actions for this contract. */
986
+ blocked_actions?: string[];
987
+ /** Value that configures or reports allowed services for this contract. */
988
+ allowed_services?: string[];
989
+ /** Value that configures or reports blocked services for this contract. */
990
+ blocked_services?: string[];
987
991
  }
988
992
  /** Documents the extension policy settings payload exchanged by command, SDK, and package integrations. */
989
993
  export interface ExtensionPolicySettings {
990
- /** Value that configures or reports mode for this contract. */
991
- mode: ExtensionPolicyMode;
992
- /** Strategy used to control trust behavior. */
993
- trust_mode: ExtensionTrustMode;
994
- /** Value that configures or reports require provenance for this contract. */
995
- require_provenance: boolean;
996
- /** Value that configures or reports trusted extensions for this contract. */
997
- trusted_extensions: string[];
998
- /** Fallback sandbox profile used when callers do not provide an override. */
999
- default_sandbox_profile: ExtensionSandboxProfile;
1000
- /** Value that configures or reports allowed extensions for this contract. */
1001
- allowed_extensions: string[];
1002
- /** Value that configures or reports blocked extensions for this contract. */
1003
- blocked_extensions: string[];
1004
- /** Value that configures or reports allowed capabilities for this contract. */
1005
- allowed_capabilities: string[];
1006
- /** Value that configures or reports blocked capabilities for this contract. */
1007
- blocked_capabilities: string[];
1008
- /** Value that configures or reports allowed surfaces for this contract. */
1009
- allowed_surfaces: string[];
1010
- /** Value that configures or reports blocked surfaces for this contract. */
1011
- blocked_surfaces: string[];
1012
- /** Value that configures or reports allowed commands for this contract. */
1013
- allowed_commands: string[];
1014
- /** Value that configures or reports blocked commands for this contract. */
1015
- blocked_commands: string[];
1016
- /** Value that configures or reports allowed actions for this contract. */
1017
- allowed_actions: string[];
1018
- /** Value that configures or reports blocked actions for this contract. */
1019
- blocked_actions: string[];
1020
- /** Value that configures or reports allowed services for this contract. */
1021
- allowed_services: string[];
1022
- /** Value that configures or reports blocked services for this contract. */
1023
- blocked_services: string[];
1024
- /** Value that configures or reports extension overrides for this contract. */
1025
- extension_overrides: ExtensionPolicyOverrideSettings[];
994
+ /** Value that configures or reports mode for this contract. */
995
+ mode: ExtensionPolicyMode;
996
+ /** Strategy used to control trust behavior. */
997
+ trust_mode: ExtensionTrustMode;
998
+ /** Value that configures or reports require provenance for this contract. */
999
+ require_provenance: boolean;
1000
+ /** Value that configures or reports trusted extensions for this contract. */
1001
+ trusted_extensions: string[];
1002
+ /** Fallback sandbox profile used when callers do not provide an override. */
1003
+ default_sandbox_profile: ExtensionSandboxProfile;
1004
+ /** Value that configures or reports allowed extensions for this contract. */
1005
+ allowed_extensions: string[];
1006
+ /** Value that configures or reports blocked extensions for this contract. */
1007
+ blocked_extensions: string[];
1008
+ /** Value that configures or reports allowed capabilities for this contract. */
1009
+ allowed_capabilities: string[];
1010
+ /** Value that configures or reports blocked capabilities for this contract. */
1011
+ blocked_capabilities: string[];
1012
+ /** Value that configures or reports allowed surfaces for this contract. */
1013
+ allowed_surfaces: string[];
1014
+ /** Value that configures or reports blocked surfaces for this contract. */
1015
+ blocked_surfaces: string[];
1016
+ /** Value that configures or reports allowed commands for this contract. */
1017
+ allowed_commands: string[];
1018
+ /** Value that configures or reports blocked commands for this contract. */
1019
+ blocked_commands: string[];
1020
+ /** Value that configures or reports allowed actions for this contract. */
1021
+ allowed_actions: string[];
1022
+ /** Value that configures or reports blocked actions for this contract. */
1023
+ blocked_actions: string[];
1024
+ /** Value that configures or reports allowed services for this contract. */
1025
+ allowed_services: string[];
1026
+ /** Value that configures or reports blocked services for this contract. */
1027
+ blocked_services: string[];
1028
+ /** Value that configures or reports extension overrides for this contract. */
1029
+ extension_overrides: ExtensionPolicyOverrideSettings[];
1026
1030
  }
1027
1031
  /** Documents the agent guidance settings payload exchanged by command, SDK, and package integrations. */
1028
1032
  export interface AgentGuidanceSettings {
1029
- /** Value that configures or reports prompt completed for this contract. */
1030
- prompt_completed: boolean;
1031
- /** Value that configures or reports declined for this contract. */
1032
- declined: boolean;
1033
- /** ISO 8601 timestamp recording when declined occurred. */
1034
- declined_at: string;
1035
- /** Value that configures or reports template version for this contract. */
1036
- template_version: number;
1037
- /** Value that configures or reports last checked files for this contract. */
1038
- last_checked_files: string[];
1033
+ /** Value that configures or reports prompt completed for this contract. */
1034
+ prompt_completed: boolean;
1035
+ /** Value that configures or reports declined for this contract. */
1036
+ declined: boolean;
1037
+ /** ISO 8601 timestamp recording when declined occurred. */
1038
+ declined_at: string;
1039
+ /** Value that configures or reports template version for this contract. */
1040
+ template_version: number;
1041
+ /** Value that configures or reports last checked files for this contract. */
1042
+ last_checked_files: string[];
1039
1043
  }
1040
1044
  /** Restricts search mutation refresh policy values accepted by command, SDK, and storage contracts. */
1041
1045
  export type SearchMutationRefreshPolicy = "cache_only" | "semantic_configured" | "semantic_auto";
@@ -1043,19 +1047,19 @@ export type SearchMutationRefreshPolicy = "cache_only" | "semantic_configured" |
1043
1047
  export type SearchDefaultMode = "auto" | "keyword" | "semantic" | "hybrid";
1044
1048
  /** Documents the search query expansion settings payload exchanged by command, SDK, and package integrations. */
1045
1049
  export interface SearchQueryExpansionSettings {
1046
- /** Whether enabled applies to this operation. */
1047
- enabled: boolean;
1048
- /** Value that configures or reports provider for this contract. */
1049
- provider: string;
1050
+ /** Whether enabled applies to this operation. */
1051
+ enabled: boolean;
1052
+ /** Value that configures or reports provider for this contract. */
1053
+ provider: string;
1050
1054
  }
1051
1055
  /** Documents the search rerank settings payload exchanged by command, SDK, and package integrations. */
1052
1056
  export interface SearchRerankSettings {
1053
- /** Whether enabled applies to this operation. */
1054
- enabled: boolean;
1055
- /** Value that configures or reports model for this contract. */
1056
- model: string;
1057
- /** Value that configures or reports top k for this contract. */
1058
- top_k: number;
1057
+ /** Whether enabled applies to this operation. */
1058
+ enabled: boolean;
1059
+ /** Value that configures or reports model for this contract. */
1060
+ model: string;
1061
+ /** Value that configures or reports top k for this contract. */
1062
+ top_k: number;
1059
1063
  }
1060
1064
  /**
1061
1065
  * Config-driven policy for automatic history-stream compaction triage.
@@ -1068,202 +1072,202 @@ export interface SearchRerankSettings {
1068
1072
  * additionally signals that scheduled/automatic sweeps are expected.
1069
1073
  */
1070
1074
  export interface HistoryCompactPolicy {
1071
- /** Whether enabled applies to this operation. */
1072
- enabled: boolean;
1073
- /** Value that configures or reports max entries for this contract. */
1074
- max_entries: number;
1075
- /** Value that configures or reports trigger for this contract. */
1076
- trigger: "health_warn" | "auto";
1075
+ /** Whether enabled applies to this operation. */
1076
+ enabled: boolean;
1077
+ /** Value that configures or reports max entries for this contract. */
1078
+ max_entries: number;
1079
+ /** Value that configures or reports trigger for this contract. */
1080
+ trigger: "health_warn" | "auto";
1077
1081
  }
1078
1082
  /** Documents the pm settings payload exchanged by command, SDK, and package integrations. */
1079
1083
  export interface PmSettings {
1080
- /** Value that configures or reports version for this contract. */
1081
- version: number;
1082
- /** Value that configures or reports id prefix for this contract. */
1083
- id_prefix: string;
1084
- /** Item id allocation policy: `token_length` is the number of random base36 characters appended to `id_prefix` when minting ids (4–12). Longer tokens shrink cross-branch collision odds for concurrent multi-agent workflows: 4 chars ≈ 1.68M ids (~1% birthday-collision at ~184 items), 6 chars ≈ 2.18B (~1% at ~6.6k items), 8 chars ≈ 2.8T (~1% at ~238k items). */
1085
- ids: {
1086
- token_length: number;
1087
- };
1088
- /** Value that configures or reports author default for this contract. */
1089
- author_default: string;
1090
- /** Declarative workspace additions to the built-in agent identity registry. */
1091
- agent_identity?: {
1092
- /** Whether bounded local harness-owned provenance probes may run. */
1093
- probes_enabled?: boolean;
1094
- /** Versioned read-time interpretation for legacy free-text authors. */
1095
- identity_vocabulary?: {
1096
- /** Reproducible vocabulary revision recorded in read projections. */
1097
- version: number;
1098
- /** Exact literal author spellings mapped to canonical harness namespaces. */
1099
- aliases: Record<string, string>;
1100
- };
1101
- /** Pure, bounded harness signal descriptors evaluated after built-ins. */
1102
- harness_signals: Array<{
1103
- /** Stable lowercase harness namespace. */
1104
- harness: string;
1105
- /** Environment keys whose non-blank presence identifies the harness. */
1106
- environment_keys?: string[];
1107
- /** Environment keys checked in order for a model identifier. */
1108
- model_environment_keys?: string[];
1109
- /** Environment keys checked in order for a session identifier. */
1110
- session_environment_keys?: string[];
1111
- /** Extensible provenance dimensions mapped to ordered environment keys. */
1112
- provenance_environment_keys?: Record<string, string[]>;
1113
- /** Provenance dimensions mapped to audited built-in local resolvers. */
1114
- provenance_resolvers?: Record<string, "ai_agent_version" | "claude_session_file">;
1115
- /** Dimensions intentionally unavailable from this harness environment. */
1116
- provenance_unavailable_dimensions?: string[];
1117
- /** Literal executable or argument markers. */
1118
- argv_markers?: string[];
1119
- /** Literal MCP client-name markers. */
1120
- client_names?: string[];
1121
- }>;
1122
- };
1123
- /** Shared pre-write provenance, secret, and stale-work policy. */
1124
- mutation_guard: {
1125
- /** Reject mutations whose resolved author is `unknown`. */
1126
- require_attributed_author: boolean;
1127
- /** Credential-shaped content policy applied before CLI/MCP mutation dispatch. */
1128
- secret_guard: "off" | "advise" | "block";
1129
- /** Age threshold for unclaimed in-progress work surfaced by health. */
1130
- stale_in_progress_hours: number;
1131
- };
1132
- /** Value that configures or reports item format for this contract. */
1133
- item_format: ItemFormat;
1134
- /** Value that configures or reports locks for this contract. */
1135
- locks: {
1136
- ttl_seconds: number;
1137
- /** Bounded wait budget (milliseconds) for acquiring a contended item lock before surfacing lock_conflict. 0 disables waiting (fail-fast). Overridable per invocation via PM_LOCK_WAIT_MS. */
1138
- wait_ms: number;
1139
- };
1140
- /** Retention policy for local crash-recovery receipts: bulk-mutation rollback checkpoints written by `update-many`/`close-many` AND terminal SDK workspace-transaction journals under `transactions/sdk/`. `pm gc --scope checkpoints` prunes checkpoint files older than `retention_days`; `pm gc --scope transactions` prunes committed/compensated journals older than the same window. Unparseable receipts and in-flight journals are always retained (safety-first, mirroring the stale-lock sweep). */
1141
- checkpoints: {
1142
- retention_days: number;
1143
- };
1144
- /** Value that configures or reports output for this contract. */
1145
- output: {
1146
- default_format: "toon" | "json";
1147
- };
1148
- /** Agent and human interaction preferences that do not change command semantics. */
1149
- ux?: {
1150
- /** Emit one stderr migration hint when a deprecated command alias is invoked. */
1151
- deprecation_hints?: boolean;
1152
- };
1153
- /** Value that configures or reports history for this contract. */
1154
- history: {
1155
- missing_stream: "auto_create" | "strict_error";
1156
- compact_policy: HistoryCompactPolicy;
1157
- };
1158
- /** Value that configures or reports validation for this contract. */
1159
- validation: {
1160
- sprint_release_format: SprintReleaseFormatPolicy;
1161
- parent_reference: ParentReferencePolicy;
1162
- metadata_profile: ValidateMetadataProfile;
1163
- metadata_required_fields: ValidateMetadataRequiredField[];
1164
- lifecycle_stale_blocker_reason_patterns: string[];
1165
- lifecycle_closure_like_blocked_reason_patterns: string[];
1166
- lifecycle_closure_like_resolution_patterns: string[];
1167
- lifecycle_closure_like_actual_result_patterns: string[];
1168
- /** Per-type default estimates (minutes) used by `pm validate --auto-fix --fix-scope estimates` to backfill missing `estimated_minutes` (GH-212). Keys are item type names (case-insensitive); values are positive minutes that override the built-in defaults. Empty by default. */
1169
- estimate_defaults_by_type: Record<string, number>;
1170
- };
1171
- /** Value that configures or reports governance for this contract. */
1172
- governance: GovernanceSettings;
1173
- /** Value that configures or reports workflow for this contract. */
1174
- workflow: {
1175
- definition_of_done: string[];
1176
- };
1177
- /** Value that configures or reports testing for this contract. */
1178
- testing: {
1179
- record_results_to_items: boolean;
1180
- /** Permit explicit one-shot execution of commands not yet trusted by this clone. */
1181
- allow_untrusted_linked_tests: boolean;
1182
- };
1183
- /** Value that configures or reports telemetry for this contract. */
1184
- telemetry: {
1185
- enabled: boolean;
1186
- first_run_prompt_completed: boolean;
1187
- capture_level: "minimal" | "redacted" | "max";
1188
- endpoint: string;
1189
- installation_id: string;
1190
- retention_days: number;
1191
- };
1192
- /** Value that configures or reports agent guidance for this contract. */
1193
- agent_guidance: AgentGuidanceSettings;
1194
- /** Value that configures or reports item types for this contract. */
1195
- item_types: {
1196
- definitions: ItemTypeDefinition[];
1197
- };
1198
- /** Value that configures or reports schema for this contract. */
1199
- schema: RuntimeSchemaSettings;
1200
- /** Value that configures or reports extensions for this contract. */
1201
- extensions: {
1202
- enabled: string[];
1203
- disabled: string[];
1204
- policy: ExtensionPolicySettings;
1205
- };
1206
- /** Value that configures or reports search for this contract. */
1207
- search: {
1208
- score_threshold: number;
1209
- hybrid_semantic_weight: number;
1210
- max_results: number;
1211
- embedding_model: string;
1212
- embedding_corpus_max_characters?: number;
1213
- embedding_batch_size: number;
1214
- embedding_timeout_ms: number;
1215
- scanner_max_batch_retries: number;
1216
- provider?: string;
1217
- /** Mode a search runs in when the caller passes none: `auto` (default) resolves to hybrid when semantic search is explicitly configured and runnable, keyword otherwise; a concrete mode pins it. Optional on the type so existing settings literals stay valid; readers always normalize it. */
1218
- default_mode?: SearchDefaultMode;
1219
- /** Optional allow-list of corpus field names embedded for semantic search (see DEFAULT_SEARCH_CORPUS_FIELDS in core/search/corpus.ts). When unset or empty, the full default field set is used (backward compatible). When set, only the named fields are embedded — letting teams opt structured signals (priority, assignee, risk, acceptance_criteria, etc.) in/out for token efficiency. Changing this re-flags items stale on the next refresh. */
1220
- corpus_fields?: string[];
1221
- mutation_refresh_policy: SearchMutationRefreshPolicy;
1222
- query_expansion: SearchQueryExpansionSettings;
1223
- rerank: SearchRerankSettings;
1224
- /** Offline BM25 lexical-ranking parameters (pm-75k9), applied when `search.provider` is `bm25` (or auto-selected as the offline fallback) for semantic/hybrid queries. `k1` controls term-frequency saturation, `b` controls document-length normalization. Unset → Lucene defaults (1.2/0.75). */
1225
- bm25?: {
1226
- k1?: number;
1227
- b?: number;
1228
- };
1229
- tuning?: {
1230
- title_exact_bonus?: number;
1231
- title_weight?: number;
1232
- description_weight?: number;
1233
- tags_weight?: number;
1234
- status_weight?: number;
1235
- body_weight?: number;
1236
- comments_weight?: number;
1237
- notes_weight?: number;
1238
- learnings_weight?: number;
1239
- dependencies_weight?: number;
1240
- linked_content_weight?: number;
1241
- };
1242
- };
1243
- /** Value that configures or reports providers for this contract. */
1244
- providers: {
1245
- openai: {
1246
- base_url: string;
1247
- api_key: string;
1248
- model: string;
1249
- };
1250
- ollama: {
1251
- base_url: string;
1252
- model: string;
1253
- };
1254
- };
1255
- /** Value that configures or reports context for this contract. */
1256
- context: ContextSettings;
1257
- /** Value that configures or reports vector store for this contract. */
1258
- vector_store: {
1259
- adapter?: string;
1260
- collection_name: string;
1261
- qdrant: {
1262
- url: string;
1263
- api_key: string;
1264
- };
1265
- lancedb: {
1266
- path: string;
1267
- };
1268
- };
1084
+ /** Value that configures or reports version for this contract. */
1085
+ version: number;
1086
+ /** Value that configures or reports id prefix for this contract. */
1087
+ id_prefix: string;
1088
+ /** Item id allocation policy: `token_length` is the number of random base36 characters appended to `id_prefix` when minting ids (4–12). Longer tokens shrink cross-branch collision odds for concurrent multi-agent workflows: 4 chars ≈ 1.68M ids (~1% birthday-collision at ~184 items), 6 chars ≈ 2.18B (~1% at ~6.6k items), 8 chars ≈ 2.8T (~1% at ~238k items). */
1089
+ ids: {
1090
+ token_length: number;
1091
+ };
1092
+ /** Value that configures or reports author default for this contract. */
1093
+ author_default: string;
1094
+ /** Declarative workspace additions to the built-in agent identity registry. */
1095
+ agent_identity?: {
1096
+ /** Whether bounded local harness-owned provenance probes may run. */
1097
+ probes_enabled?: boolean;
1098
+ /** Versioned read-time interpretation for legacy free-text authors. */
1099
+ identity_vocabulary?: {
1100
+ /** Reproducible vocabulary revision recorded in read projections. */
1101
+ version: number;
1102
+ /** Exact literal author spellings mapped to canonical harness namespaces. */
1103
+ aliases: Record<string, string>;
1104
+ };
1105
+ /** Pure, bounded harness signal descriptors evaluated after built-ins. */
1106
+ harness_signals: Array<{
1107
+ /** Stable lowercase harness namespace. */
1108
+ harness: string;
1109
+ /** Environment keys whose non-blank presence identifies the harness. */
1110
+ environment_keys?: string[];
1111
+ /** Environment keys checked in order for a model identifier. */
1112
+ model_environment_keys?: string[];
1113
+ /** Environment keys checked in order for a session identifier. */
1114
+ session_environment_keys?: string[];
1115
+ /** Extensible provenance dimensions mapped to ordered environment keys. */
1116
+ provenance_environment_keys?: Record<string, string[]>;
1117
+ /** Provenance dimensions mapped to audited built-in local resolvers. */
1118
+ provenance_resolvers?: Record<string, "ai_agent_version" | "claude_session_file">;
1119
+ /** Dimensions intentionally unavailable from this harness environment. */
1120
+ provenance_unavailable_dimensions?: string[];
1121
+ /** Literal executable or argument markers. */
1122
+ argv_markers?: string[];
1123
+ /** Literal MCP client-name markers. */
1124
+ client_names?: string[];
1125
+ }>;
1126
+ };
1127
+ /** Shared pre-write provenance, secret, and stale-work policy. */
1128
+ mutation_guard: {
1129
+ /** Reject mutations whose resolved author is `unknown`. */
1130
+ require_attributed_author: boolean;
1131
+ /** Credential-shaped content policy applied before CLI/MCP mutation dispatch. */
1132
+ secret_guard: "off" | "advise" | "block";
1133
+ /** Age threshold for unclaimed in-progress work surfaced by health. */
1134
+ stale_in_progress_hours: number;
1135
+ };
1136
+ /** Value that configures or reports item format for this contract. */
1137
+ item_format: ItemFormat;
1138
+ /** Value that configures or reports locks for this contract. */
1139
+ locks: {
1140
+ ttl_seconds: number;
1141
+ /** Bounded wait budget (milliseconds) for acquiring a contended item lock before surfacing lock_conflict. 0 disables waiting (fail-fast). Overridable per invocation via PM_LOCK_WAIT_MS. */
1142
+ wait_ms: number;
1143
+ };
1144
+ /** Retention policy for local crash-recovery receipts: bulk-mutation rollback checkpoints written by `update-many`/`close-many` AND terminal SDK workspace-transaction journals under `transactions/sdk/`. `pm gc --scope checkpoints` prunes checkpoint files older than `retention_days`; `pm gc --scope transactions` prunes committed/compensated journals older than the same window. Unparseable receipts and in-flight journals are always retained (safety-first, mirroring the stale-lock sweep). */
1145
+ checkpoints: {
1146
+ retention_days: number;
1147
+ };
1148
+ /** Value that configures or reports output for this contract. */
1149
+ output: {
1150
+ default_format: "toon" | "json";
1151
+ };
1152
+ /** Agent and human interaction preferences that do not change command semantics. */
1153
+ ux?: {
1154
+ /** Emit one stderr migration hint when a deprecated command alias is invoked. */
1155
+ deprecation_hints?: boolean;
1156
+ };
1157
+ /** Value that configures or reports history for this contract. */
1158
+ history: {
1159
+ missing_stream: "auto_create" | "strict_error";
1160
+ compact_policy: HistoryCompactPolicy;
1161
+ };
1162
+ /** Value that configures or reports validation for this contract. */
1163
+ validation: {
1164
+ sprint_release_format: SprintReleaseFormatPolicy;
1165
+ parent_reference: ParentReferencePolicy;
1166
+ metadata_profile: ValidateMetadataProfile;
1167
+ metadata_required_fields: ValidateMetadataRequiredField[];
1168
+ lifecycle_stale_blocker_reason_patterns: string[];
1169
+ lifecycle_closure_like_blocked_reason_patterns: string[];
1170
+ lifecycle_closure_like_resolution_patterns: string[];
1171
+ lifecycle_closure_like_actual_result_patterns: string[];
1172
+ /** Per-type default estimates (minutes) used by `pm validate --auto-fix --fix-scope estimates` to backfill missing `estimated_minutes` (GH-212). Keys are item type names (case-insensitive); values are positive minutes that override the built-in defaults. Empty by default. */
1173
+ estimate_defaults_by_type: Record<string, number>;
1174
+ };
1175
+ /** Value that configures or reports governance for this contract. */
1176
+ governance: GovernanceSettings;
1177
+ /** Value that configures or reports workflow for this contract. */
1178
+ workflow: {
1179
+ definition_of_done: string[];
1180
+ };
1181
+ /** Value that configures or reports testing for this contract. */
1182
+ testing: {
1183
+ record_results_to_items: boolean;
1184
+ /** Permit explicit one-shot execution of commands not yet trusted by this clone. */
1185
+ allow_untrusted_linked_tests: boolean;
1186
+ };
1187
+ /** Value that configures or reports telemetry for this contract. */
1188
+ telemetry: {
1189
+ enabled: boolean;
1190
+ first_run_prompt_completed: boolean;
1191
+ capture_level: "minimal" | "redacted" | "max";
1192
+ endpoint: string;
1193
+ installation_id: string;
1194
+ retention_days: number;
1195
+ };
1196
+ /** Value that configures or reports agent guidance for this contract. */
1197
+ agent_guidance: AgentGuidanceSettings;
1198
+ /** Value that configures or reports item types for this contract. */
1199
+ item_types: {
1200
+ definitions: ItemTypeDefinition[];
1201
+ };
1202
+ /** Value that configures or reports schema for this contract. */
1203
+ schema: RuntimeSchemaSettings;
1204
+ /** Value that configures or reports extensions for this contract. */
1205
+ extensions: {
1206
+ enabled: string[];
1207
+ disabled: string[];
1208
+ policy: ExtensionPolicySettings;
1209
+ };
1210
+ /** Value that configures or reports search for this contract. */
1211
+ search: {
1212
+ score_threshold: number;
1213
+ hybrid_semantic_weight: number;
1214
+ max_results: number;
1215
+ embedding_model: string;
1216
+ embedding_corpus_max_characters?: number;
1217
+ embedding_batch_size: number;
1218
+ embedding_timeout_ms: number;
1219
+ scanner_max_batch_retries: number;
1220
+ provider?: string;
1221
+ /** Mode a search runs in when the caller passes none: `auto` (default) resolves to hybrid when semantic search is explicitly configured and runnable, keyword otherwise; a concrete mode pins it. Optional on the type so existing settings literals stay valid; readers always normalize it. */
1222
+ default_mode?: SearchDefaultMode;
1223
+ /** Optional allow-list of corpus field names embedded for semantic search (see DEFAULT_SEARCH_CORPUS_FIELDS in core/search/corpus.ts). When unset or empty, the full default field set is used (backward compatible). When set, only the named fields are embedded — letting teams opt structured signals (priority, assignee, risk, acceptance_criteria, etc.) in/out for token efficiency. Changing this re-flags items stale on the next refresh. */
1224
+ corpus_fields?: string[];
1225
+ mutation_refresh_policy: SearchMutationRefreshPolicy;
1226
+ query_expansion: SearchQueryExpansionSettings;
1227
+ rerank: SearchRerankSettings;
1228
+ /** Offline BM25 lexical-ranking parameters (pm-75k9), applied when `search.provider` is `bm25` (or auto-selected as the offline fallback) for semantic/hybrid queries. `k1` controls term-frequency saturation, `b` controls document-length normalization. Unset → Lucene defaults (1.2/0.75). */
1229
+ bm25?: {
1230
+ k1?: number;
1231
+ b?: number;
1232
+ };
1233
+ tuning?: {
1234
+ title_exact_bonus?: number;
1235
+ title_weight?: number;
1236
+ description_weight?: number;
1237
+ tags_weight?: number;
1238
+ status_weight?: number;
1239
+ body_weight?: number;
1240
+ comments_weight?: number;
1241
+ notes_weight?: number;
1242
+ learnings_weight?: number;
1243
+ dependencies_weight?: number;
1244
+ linked_content_weight?: number;
1245
+ };
1246
+ };
1247
+ /** Value that configures or reports providers for this contract. */
1248
+ providers: {
1249
+ openai: {
1250
+ base_url: string;
1251
+ api_key: string;
1252
+ model: string;
1253
+ };
1254
+ ollama: {
1255
+ base_url: string;
1256
+ model: string;
1257
+ };
1258
+ };
1259
+ /** Value that configures or reports context for this contract. */
1260
+ context: ContextSettings;
1261
+ /** Value that configures or reports vector store for this contract. */
1262
+ vector_store: {
1263
+ adapter?: string;
1264
+ collection_name: string;
1265
+ qdrant: {
1266
+ url: string;
1267
+ api_key: string;
1268
+ };
1269
+ lancedb: {
1270
+ path: string;
1271
+ };
1272
+ };
1269
1273
  }