clinkx 1.0.0 → 1.1.1

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 (333) hide show
  1. package/CHANGELOG.md +95 -0
  2. package/README.md +184 -112
  3. package/clinkx-workflows/dist/chairman-knobs.d.ts +24 -0
  4. package/clinkx-workflows/dist/chairman-knobs.js +27 -0
  5. package/clinkx-workflows/dist/chairman-knobs.js.map +1 -0
  6. package/clinkx-workflows/dist/clink-client.d.ts +10 -0
  7. package/clinkx-workflows/dist/clink-client.js +39 -1
  8. package/clinkx-workflows/dist/clink-client.js.map +1 -1
  9. package/clinkx-workflows/dist/config.d.ts +29 -1
  10. package/clinkx-workflows/dist/config.js +35 -2
  11. package/clinkx-workflows/dist/config.js.map +1 -1
  12. package/clinkx-workflows/dist/context-preflight.d.ts +5 -0
  13. package/clinkx-workflows/dist/context-preflight.js.map +1 -1
  14. package/clinkx-workflows/dist/council-execution-policy.d.ts +68 -0
  15. package/clinkx-workflows/dist/council-execution-policy.js +110 -0
  16. package/clinkx-workflows/dist/council-execution-policy.js.map +1 -0
  17. package/clinkx-workflows/dist/council-expander.d.ts +9 -8
  18. package/clinkx-workflows/dist/council-expander.js +18 -9
  19. package/clinkx-workflows/dist/council-expander.js.map +1 -1
  20. package/clinkx-workflows/dist/dashboard/activity-contract.d.ts +5557 -4
  21. package/clinkx-workflows/dist/dashboard/activity-contract.js +55 -3
  22. package/clinkx-workflows/dist/dashboard/activity-contract.js.map +1 -1
  23. package/clinkx-workflows/dist/dashboard/activity-reader.d.ts +9 -5
  24. package/clinkx-workflows/dist/dashboard/activity-reader.js +15 -2
  25. package/clinkx-workflows/dist/dashboard/activity-reader.js.map +1 -1
  26. package/clinkx-workflows/dist/dashboard/api-routes.d.ts +4 -0
  27. package/clinkx-workflows/dist/dashboard/api-routes.js +133 -25
  28. package/clinkx-workflows/dist/dashboard/api-routes.js.map +1 -1
  29. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.d.ts +3865 -0
  30. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js +69 -0
  31. package/clinkx-workflows/dist/dashboard/context-builder-invocation-contract.js.map +1 -0
  32. package/clinkx-workflows/dist/dashboard/context-run-reader.d.ts +36 -2
  33. package/clinkx-workflows/dist/dashboard/context-run-reader.js +142 -19
  34. package/clinkx-workflows/dist/dashboard/context-run-reader.js.map +1 -1
  35. package/clinkx-workflows/dist/dashboard/contracts.d.ts +20027 -480
  36. package/clinkx-workflows/dist/dashboard/contracts.js +133 -6
  37. package/clinkx-workflows/dist/dashboard/contracts.js.map +1 -1
  38. package/clinkx-workflows/dist/dashboard/index.d.ts +4 -0
  39. package/clinkx-workflows/dist/dashboard/index.js +4 -0
  40. package/clinkx-workflows/dist/dashboard/index.js.map +1 -1
  41. package/clinkx-workflows/dist/dashboard/invocation-contract.d.ts +786 -0
  42. package/clinkx-workflows/dist/dashboard/invocation-contract.js +201 -0
  43. package/clinkx-workflows/dist/dashboard/invocation-contract.js.map +1 -0
  44. package/clinkx-workflows/dist/dashboard/lazy-content.d.ts +14 -1
  45. package/clinkx-workflows/dist/dashboard/lazy-content.js +53 -2
  46. package/clinkx-workflows/dist/dashboard/lazy-content.js.map +1 -1
  47. package/clinkx-workflows/dist/dashboard/native-transcript/contract.d.ts +90 -0
  48. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js +31 -0
  49. package/clinkx-workflows/dist/dashboard/native-transcript/contract.js.map +1 -0
  50. package/clinkx-workflows/dist/dashboard/native-transcript/projection.d.ts +12 -0
  51. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js +286 -0
  52. package/clinkx-workflows/dist/dashboard/native-transcript/projection.js.map +1 -0
  53. package/clinkx-workflows/dist/dashboard/progress-report-contract.d.ts +147 -4
  54. package/clinkx-workflows/dist/dashboard/progress-report-contract.js +11 -11
  55. package/clinkx-workflows/dist/dashboard/progress-report-contract.js.map +1 -1
  56. package/clinkx-workflows/dist/dashboard/progress-report-reader.js +4 -56
  57. package/clinkx-workflows/dist/dashboard/progress-report-reader.js.map +1 -1
  58. package/clinkx-workflows/dist/dashboard/progress-report-status-store.d.ts +2 -1
  59. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js +6 -5
  60. package/clinkx-workflows/dist/dashboard/progress-report-status-store.js.map +1 -1
  61. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.d.ts +194 -0
  62. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js +89 -0
  63. package/clinkx-workflows/dist/dashboard/prompt-builder-library-contract.js.map +1 -0
  64. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.d.ts +26 -0
  65. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js +102 -0
  66. package/clinkx-workflows/dist/dashboard/prompt-builder-library-store.js.map +1 -0
  67. package/clinkx-workflows/dist/dashboard/request-admission.js +4 -0
  68. package/clinkx-workflows/dist/dashboard/request-admission.js.map +1 -1
  69. package/clinkx-workflows/dist/dashboard/scanner.d.ts +3 -0
  70. package/clinkx-workflows/dist/dashboard/scanner.js +52 -8
  71. package/clinkx-workflows/dist/dashboard/scanner.js.map +1 -1
  72. package/clinkx-workflows/dist/dashboard/server-factory.d.ts +14 -1
  73. package/clinkx-workflows/dist/dashboard/server-factory.js +73 -21
  74. package/clinkx-workflows/dist/dashboard/server-factory.js.map +1 -1
  75. package/clinkx-workflows/dist/dashboard/session-log-contract.d.ts +223 -56
  76. package/clinkx-workflows/dist/dashboard/session-log-contract.js +26 -0
  77. package/clinkx-workflows/dist/dashboard/session-log-contract.js.map +1 -1
  78. package/clinkx-workflows/dist/dashboard/session-log-journal.js +10 -3
  79. package/clinkx-workflows/dist/dashboard/session-log-journal.js.map +1 -1
  80. package/clinkx-workflows/dist/dashboard/session-log-redaction.d.ts +9 -1
  81. package/clinkx-workflows/dist/dashboard/session-log-redaction.js +793 -59
  82. package/clinkx-workflows/dist/dashboard/session-log-redaction.js.map +1 -1
  83. package/clinkx-workflows/dist/dashboard-ui/assets/index-JPHQVtn9.js +106 -0
  84. package/clinkx-workflows/dist/dashboard-ui/assets/style-DOMHk-j6.css +1 -0
  85. package/clinkx-workflows/dist/dashboard-ui/index.html +2 -2
  86. package/clinkx-workflows/dist/delegate-finalizer-policy.d.ts +26 -0
  87. package/clinkx-workflows/dist/delegate-finalizer-policy.js +72 -0
  88. package/clinkx-workflows/dist/delegate-finalizer-policy.js.map +1 -0
  89. package/clinkx-workflows/dist/delegate-signature.d.ts +14 -0
  90. package/clinkx-workflows/dist/delegate-signature.js +14 -0
  91. package/clinkx-workflows/dist/delegate-signature.js.map +1 -0
  92. package/clinkx-workflows/dist/delegate-validate.d.ts +32 -2
  93. package/clinkx-workflows/dist/delegate-validate.js +51 -0
  94. package/clinkx-workflows/dist/delegate-validate.js.map +1 -1
  95. package/clinkx-workflows/dist/engine.d.ts +113 -3
  96. package/clinkx-workflows/dist/engine.js +476 -80
  97. package/clinkx-workflows/dist/engine.js.map +1 -1
  98. package/clinkx-workflows/dist/errors.d.ts +22 -2
  99. package/clinkx-workflows/dist/errors.js +30 -2
  100. package/clinkx-workflows/dist/errors.js.map +1 -1
  101. package/clinkx-workflows/dist/fidelity.d.ts +47 -1
  102. package/clinkx-workflows/dist/fidelity.js +54 -1
  103. package/clinkx-workflows/dist/fidelity.js.map +1 -1
  104. package/clinkx-workflows/dist/fingerprint.d.ts +24 -6
  105. package/clinkx-workflows/dist/fingerprint.js +32 -9
  106. package/clinkx-workflows/dist/fingerprint.js.map +1 -1
  107. package/clinkx-workflows/dist/index.js +53 -1
  108. package/clinkx-workflows/dist/index.js.map +1 -1
  109. package/clinkx-workflows/dist/logger.d.ts +1 -1
  110. package/clinkx-workflows/dist/logger.js +17 -3
  111. package/clinkx-workflows/dist/logger.js.map +1 -1
  112. package/clinkx-workflows/dist/monotonic-clock.d.ts +19 -0
  113. package/clinkx-workflows/dist/monotonic-clock.js +22 -0
  114. package/clinkx-workflows/dist/monotonic-clock.js.map +1 -0
  115. package/clinkx-workflows/dist/plan-review/contract.d.ts +52 -52
  116. package/clinkx-workflows/dist/plan-review/publication.d.ts +4 -4
  117. package/clinkx-workflows/dist/plan-review/run-state.d.ts +16 -16
  118. package/clinkx-workflows/dist/roster-contract.d.ts +889 -0
  119. package/clinkx-workflows/dist/roster-contract.js +180 -0
  120. package/clinkx-workflows/dist/roster-contract.js.map +1 -0
  121. package/clinkx-workflows/dist/rosters.d.ts +14 -0
  122. package/clinkx-workflows/dist/rosters.js +169 -0
  123. package/clinkx-workflows/dist/rosters.js.map +1 -0
  124. package/clinkx-workflows/dist/run-health.d.ts +7 -0
  125. package/clinkx-workflows/dist/run-health.js +25 -0
  126. package/clinkx-workflows/dist/run-health.js.map +1 -0
  127. package/clinkx-workflows/dist/schema.d.ts +64 -0
  128. package/clinkx-workflows/dist/schema.js +24 -0
  129. package/clinkx-workflows/dist/schema.js.map +1 -1
  130. package/clinkx-workflows/dist/server.js +2 -0
  131. package/clinkx-workflows/dist/server.js.map +1 -1
  132. package/clinkx-workflows/dist/shutdown.d.ts +15 -2
  133. package/clinkx-workflows/dist/shutdown.js +60 -16
  134. package/clinkx-workflows/dist/shutdown.js.map +1 -1
  135. package/clinkx-workflows/dist/state-schema.d.ts +23 -0
  136. package/clinkx-workflows/dist/state.d.ts +5 -0
  137. package/clinkx-workflows/dist/state.js +128 -21
  138. package/clinkx-workflows/dist/state.js.map +1 -1
  139. package/clinkx-workflows/dist/stdio-watchdog.d.ts +52 -0
  140. package/clinkx-workflows/dist/stdio-watchdog.js +212 -0
  141. package/clinkx-workflows/dist/stdio-watchdog.js.map +1 -0
  142. package/clinkx-workflows/dist/types.d.ts +6 -0
  143. package/clinkx-workflows/dist/validators/council.d.ts +50 -50
  144. package/clinkx-workflows/dist/validators/plan-review.d.ts +3 -3
  145. package/clinkx-workflows/dist/workflow-tools.d.ts +70 -0
  146. package/clinkx-workflows/dist/workflow-tools.js +760 -168
  147. package/clinkx-workflows/dist/workflow-tools.js.map +1 -1
  148. package/clinkx-workflows/templates/council/answer-chairman.txt +3 -0
  149. package/clinkx-workflows/templates/council/answer-cross-reviewer.txt +3 -0
  150. package/clinkx-workflows/templates/council/answer-specialist.txt +3 -0
  151. package/clinkx-workflows/templates/council/chairman.txt +3 -0
  152. package/clinkx-workflows/templates/council/code-review-chairman.txt +3 -0
  153. package/clinkx-workflows/templates/council/code-review-cross-reviewer.txt +3 -0
  154. package/clinkx-workflows/templates/council/code-review-reviewer.txt +3 -0
  155. package/clinkx-workflows/templates/council/debug-chairman.txt +3 -0
  156. package/clinkx-workflows/templates/council/debug-cross-reviewer.txt +3 -0
  157. package/clinkx-workflows/templates/council/debug-debugger.txt +3 -0
  158. package/clinkx-workflows/templates/council/discover-analyst.txt +3 -0
  159. package/clinkx-workflows/templates/council/discover-chairman.txt +3 -0
  160. package/clinkx-workflows/templates/council/discover-cross-reviewer.txt +3 -0
  161. package/clinkx-workflows/templates/council/member.txt +3 -0
  162. package/clinkx-workflows/templates/council/plan-review-chairman.txt +3 -0
  163. package/clinkx-workflows/templates/council/plan-review-cross-reviewer.txt +3 -0
  164. package/clinkx-workflows/templates/council/plan-review-reviewer.txt +3 -0
  165. package/clinkx-workflows/templates/council/reviewer.txt +3 -0
  166. package/clinkx-workflows/workflows/council-answer.yaml +3 -0
  167. package/clinkx-workflows/workflows/council-code-review.yaml +3 -0
  168. package/clinkx-workflows/workflows/council-debug.yaml +3 -0
  169. package/clinkx-workflows/workflows/council-default.yaml +7 -0
  170. package/clinkx-workflows/workflows/council-discover.yaml +3 -0
  171. package/clinkx-workflows/workflows/council-plan-review.yaml +3 -0
  172. package/conf/adapters/agy.json +9 -2
  173. package/conf/adapters/claude.json +7 -0
  174. package/conf/adapters/codex.json +7 -0
  175. package/conf/adapters/glm.json +19 -3
  176. package/conf/adapters/grok.json +9 -2
  177. package/conf/adapters/hapi/agy.json +9 -2
  178. package/conf/adapters/hapi/claude.json +7 -0
  179. package/conf/adapters/hapi/codex.json +7 -0
  180. package/conf/adapters/hapi/glm.json +20 -4
  181. package/conf/rosters/default-council.json +21 -0
  182. package/dist/activity-journal.d.ts +17 -3
  183. package/dist/activity-journal.js +404 -79
  184. package/dist/activity-journal.js.map +1 -1
  185. package/dist/codex/agent-tools.js +36 -0
  186. package/dist/codex/agent-tools.js.map +1 -1
  187. package/dist/codex/app-server-client.d.ts +3 -0
  188. package/dist/codex/app-server-client.js +11 -0
  189. package/dist/codex/app-server-client.js.map +1 -1
  190. package/dist/codex/app-server-registry.d.ts +18 -0
  191. package/dist/codex/app-server-registry.js +88 -2
  192. package/dist/codex/app-server-registry.js.map +1 -1
  193. package/dist/codex/client-types.d.ts +7 -1
  194. package/dist/codex/protocol.d.ts +4 -4
  195. package/dist/config.d.ts +220 -23
  196. package/dist/config.js +104 -1
  197. package/dist/config.js.map +1 -1
  198. package/dist/context-builder/bundle.d.ts +13 -0
  199. package/dist/context-builder/bundle.js +46 -0
  200. package/dist/context-builder/bundle.js.map +1 -1
  201. package/dist/context-builder/delegate-finalizer-effective.d.ts +33 -0
  202. package/dist/context-builder/delegate-finalizer-effective.js +82 -0
  203. package/dist/context-builder/delegate-finalizer-effective.js.map +1 -0
  204. package/dist/context-builder/delegate-packet.d.ts +18 -0
  205. package/dist/context-builder/delegate-packet.js +73 -9
  206. package/dist/context-builder/delegate-packet.js.map +1 -1
  207. package/dist/context-builder/delegate-reconstruction.d.ts +29 -0
  208. package/dist/context-builder/delegate-reconstruction.js +110 -41
  209. package/dist/context-builder/delegate-reconstruction.js.map +1 -1
  210. package/dist/context-builder/delegate-validation.d.ts +31 -0
  211. package/dist/context-builder/delegate-validation.js +87 -10
  212. package/dist/context-builder/delegate-validation.js.map +1 -1
  213. package/dist/context-builder/delegate.d.ts +9 -0
  214. package/dist/context-builder/delegate.js +210 -59
  215. package/dist/context-builder/delegate.js.map +1 -1
  216. package/dist/context-builder/diagnostics.d.ts +1 -1
  217. package/dist/context-builder/diagnostics.js.map +1 -1
  218. package/dist/context-builder/discovery-progress.d.ts +25 -0
  219. package/dist/context-builder/discovery-progress.js +64 -0
  220. package/dist/context-builder/discovery-progress.js.map +1 -0
  221. package/dist/context-builder/discovery-watchdog.d.ts +15 -0
  222. package/dist/context-builder/discovery-watchdog.js +39 -0
  223. package/dist/context-builder/discovery-watchdog.js.map +1 -0
  224. package/dist/context-builder/discovery.d.ts +7 -0
  225. package/dist/context-builder/discovery.js +119 -7
  226. package/dist/context-builder/discovery.js.map +1 -1
  227. package/dist/context-builder/external-gaps.d.ts +73 -0
  228. package/dist/context-builder/external-gaps.js +248 -0
  229. package/dist/context-builder/external-gaps.js.map +1 -0
  230. package/dist/context-builder/globs.d.ts +1 -0
  231. package/dist/context-builder/globs.js +15 -0
  232. package/dist/context-builder/globs.js.map +1 -1
  233. package/dist/context-builder/handler.d.ts +42 -1
  234. package/dist/context-builder/handler.js +690 -62
  235. package/dist/context-builder/handler.js.map +1 -1
  236. package/dist/context-builder/invocation-sidecar.d.ts +41 -0
  237. package/dist/context-builder/invocation-sidecar.js +189 -0
  238. package/dist/context-builder/invocation-sidecar.js.map +1 -0
  239. package/dist/context-builder/lifecycle-contract.d.ts +51 -51
  240. package/dist/context-builder/mutation-lock.d.ts +32 -0
  241. package/dist/context-builder/mutation-lock.js +321 -0
  242. package/dist/context-builder/mutation-lock.js.map +1 -0
  243. package/dist/context-builder/review-coverage.d.ts +32 -0
  244. package/dist/context-builder/review-coverage.js +130 -23
  245. package/dist/context-builder/review-coverage.js.map +1 -1
  246. package/dist/context-builder/schema.d.ts +76 -1
  247. package/dist/context-builder/schema.js +21 -1
  248. package/dist/context-builder/schema.js.map +1 -1
  249. package/dist/context-builder/secrets.d.ts +31 -0
  250. package/dist/context-builder/secrets.js +871 -84
  251. package/dist/context-builder/secrets.js.map +1 -1
  252. package/dist/context-builder/status.d.ts +1 -1
  253. package/dist/context-builder/status.js +1 -0
  254. package/dist/context-builder/status.js.map +1 -1
  255. package/dist/context-builder/storage.d.ts +29 -5
  256. package/dist/context-builder/storage.js +311 -236
  257. package/dist/context-builder/storage.js.map +1 -1
  258. package/dist/context-builder/versions.d.ts +19 -4
  259. package/dist/context-builder/versions.js +19 -4
  260. package/dist/context-builder/versions.js.map +1 -1
  261. package/dist/context-builder/workflow-runner.d.ts +6 -0
  262. package/dist/context-builder/workflow-runner.js +363 -173
  263. package/dist/context-builder/workflow-runner.js.map +1 -1
  264. package/dist/dashboard-adapter-catalog.js +7 -0
  265. package/dist/dashboard-adapter-catalog.js.map +1 -1
  266. package/dist/dashboard-cli.d.ts +2 -0
  267. package/dist/dashboard-cli.js +40 -2
  268. package/dist/dashboard-cli.js.map +1 -1
  269. package/dist/dashboard-companion/client.d.ts +1 -0
  270. package/dist/dashboard-companion/client.js +22 -3
  271. package/dist/dashboard-companion/client.js.map +1 -1
  272. package/dist/dashboard-companion/protocol.js +4 -1
  273. package/dist/dashboard-companion/protocol.js.map +1 -1
  274. package/dist/dashboard-gateway/index.d.ts +1 -0
  275. package/dist/dashboard-gateway/index.js +33 -2
  276. package/dist/dashboard-gateway/index.js.map +1 -1
  277. package/dist/handler.js +5 -1
  278. package/dist/handler.js.map +1 -1
  279. package/dist/index.d.ts +18 -1
  280. package/dist/index.js +145 -7
  281. package/dist/index.js.map +1 -1
  282. package/dist/logger.d.ts +1 -1
  283. package/dist/logger.js +18 -3
  284. package/dist/logger.js.map +1 -1
  285. package/dist/parsers/agy-stream-json.d.ts +14 -0
  286. package/dist/parsers/agy-stream-json.js +172 -0
  287. package/dist/parsers/agy-stream-json.js.map +1 -0
  288. package/dist/parsers/extract.js +5 -1
  289. package/dist/parsers/extract.js.map +1 -1
  290. package/dist/parsers/observed-invocation.d.ts +20 -0
  291. package/dist/parsers/observed-invocation.js +42 -0
  292. package/dist/parsers/observed-invocation.js.map +1 -0
  293. package/dist/pipeline.d.ts +13 -0
  294. package/dist/pipeline.js +60 -10
  295. package/dist/pipeline.js.map +1 -1
  296. package/dist/progress-report/lock.d.ts +74 -0
  297. package/dist/progress-report/lock.js +343 -0
  298. package/dist/progress-report/lock.js.map +1 -0
  299. package/dist/progress-report/schema.d.ts +808 -0
  300. package/dist/progress-report/schema.js +119 -0
  301. package/dist/progress-report/schema.js.map +1 -0
  302. package/dist/progress-report/store.d.ts +66 -0
  303. package/dist/progress-report/store.js +766 -0
  304. package/dist/progress-report/store.js.map +1 -0
  305. package/dist/progress-report/tools.d.ts +20 -0
  306. package/dist/progress-report/tools.js +141 -0
  307. package/dist/progress-report/tools.js.map +1 -0
  308. package/dist/prompt-mode.d.ts +1 -1
  309. package/dist/prompt-mode.js +7 -2
  310. package/dist/prompt-mode.js.map +1 -1
  311. package/dist/runner.d.ts +7 -0
  312. package/dist/runner.js +10 -3
  313. package/dist/runner.js.map +1 -1
  314. package/dist/safety.d.ts +50 -0
  315. package/dist/safety.js +182 -1
  316. package/dist/safety.js.map +1 -1
  317. package/dist/schema.d.ts +8 -0
  318. package/dist/schema.js +20 -0
  319. package/dist/schema.js.map +1 -1
  320. package/dist/server.d.ts +6 -1
  321. package/dist/server.js +94 -8
  322. package/dist/server.js.map +1 -1
  323. package/dist/session-log-stream.d.ts +1 -1
  324. package/dist/session-log-stream.js +280 -33
  325. package/dist/session-log-stream.js.map +1 -1
  326. package/dist/stdio-activity.d.ts +28 -0
  327. package/dist/stdio-activity.js +72 -0
  328. package/dist/stdio-activity.js.map +1 -0
  329. package/docs/configuration.md +426 -0
  330. package/docs/security.md +293 -0
  331. package/package.json +5 -5
  332. package/clinkx-workflows/dist/dashboard-ui/assets/index-DOkMXTfB.js +0 -25
  333. package/clinkx-workflows/dist/dashboard-ui/assets/style-ChJsn0KD.css +0 -1
@@ -0,0 +1,3865 @@
1
+ import { z } from "zod";
2
+ export declare const CONTEXT_BUILDER_INVOCATION_AUDIT_FILENAME: "invocation-audit.json";
3
+ export declare const WORKFLOW_CONTEXT_PREFLIGHT_SNAPSHOT_DIRECTORY: ".context-preflight";
4
+ export declare const MAX_CONTEXT_BUILDER_INVOCATION_AUDIT_BYTES: number;
5
+ export declare const CONTEXT_BUILDER_INVOCATION_AUDIT_V1_SCHEMA_VERSION: "context-builder-invocation-audit-v1";
6
+ export declare const CONTEXT_BUILDER_INVOCATION_AUDIT_V2_SCHEMA_VERSION: "context-builder-invocation-audit-v2";
7
+ /** Exact decoder for already-persisted sidecars. */
8
+ export declare const ContextBuilderInvocationAuditV1Schema: z.ZodObject<{
9
+ schema_version: z.ZodLiteral<"context-builder-invocation-audit-v1">;
10
+ curator: z.ZodOptional<z.ZodObject<{
11
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
12
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
13
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
14
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
15
+ }, "strict", z.ZodTypeAny, {
16
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
17
+ requested?: string | undefined;
18
+ applied?: string | undefined;
19
+ }, {
20
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
21
+ requested?: string | undefined;
22
+ applied?: string | undefined;
23
+ }>, {
24
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
25
+ requested?: string | undefined;
26
+ applied?: string | undefined;
27
+ }, {
28
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
29
+ requested?: string | undefined;
30
+ applied?: string | undefined;
31
+ }>>;
32
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
33
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
34
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
35
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
36
+ }, "strict", z.ZodTypeAny, {
37
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
38
+ requested?: string | undefined;
39
+ applied?: string | undefined;
40
+ }, {
41
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
42
+ requested?: string | undefined;
43
+ applied?: string | undefined;
44
+ }>, {
45
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
46
+ requested?: string | undefined;
47
+ applied?: string | undefined;
48
+ }, {
49
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
50
+ requested?: string | undefined;
51
+ applied?: string | undefined;
52
+ }>>;
53
+ }, "strict", z.ZodTypeAny, {
54
+ model?: {
55
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
56
+ requested?: string | undefined;
57
+ applied?: string | undefined;
58
+ } | undefined;
59
+ effort?: {
60
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
61
+ requested?: string | undefined;
62
+ applied?: string | undefined;
63
+ } | undefined;
64
+ }, {
65
+ model?: {
66
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
67
+ requested?: string | undefined;
68
+ applied?: string | undefined;
69
+ } | undefined;
70
+ effort?: {
71
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
72
+ requested?: string | undefined;
73
+ applied?: string | undefined;
74
+ } | undefined;
75
+ }>>;
76
+ finalizer: z.ZodOptional<z.ZodObject<{
77
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
78
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
79
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
80
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
81
+ }, "strict", z.ZodTypeAny, {
82
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
83
+ requested?: string | undefined;
84
+ applied?: string | undefined;
85
+ }, {
86
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
87
+ requested?: string | undefined;
88
+ applied?: string | undefined;
89
+ }>, {
90
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
91
+ requested?: string | undefined;
92
+ applied?: string | undefined;
93
+ }, {
94
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
95
+ requested?: string | undefined;
96
+ applied?: string | undefined;
97
+ }>>;
98
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
99
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
100
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
101
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
102
+ }, "strict", z.ZodTypeAny, {
103
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
104
+ requested?: string | undefined;
105
+ applied?: string | undefined;
106
+ }, {
107
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
108
+ requested?: string | undefined;
109
+ applied?: string | undefined;
110
+ }>, {
111
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
112
+ requested?: string | undefined;
113
+ applied?: string | undefined;
114
+ }, {
115
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
116
+ requested?: string | undefined;
117
+ applied?: string | undefined;
118
+ }>>;
119
+ }, "strict", z.ZodTypeAny, {
120
+ model?: {
121
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
122
+ requested?: string | undefined;
123
+ applied?: string | undefined;
124
+ } | undefined;
125
+ effort?: {
126
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
127
+ requested?: string | undefined;
128
+ applied?: string | undefined;
129
+ } | undefined;
130
+ }, {
131
+ model?: {
132
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
133
+ requested?: string | undefined;
134
+ applied?: string | undefined;
135
+ } | undefined;
136
+ effort?: {
137
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
138
+ requested?: string | undefined;
139
+ applied?: string | undefined;
140
+ } | undefined;
141
+ }>>;
142
+ }, "strict", z.ZodTypeAny, {
143
+ schema_version: "context-builder-invocation-audit-v1";
144
+ curator?: {
145
+ model?: {
146
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
147
+ requested?: string | undefined;
148
+ applied?: string | undefined;
149
+ } | undefined;
150
+ effort?: {
151
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
152
+ requested?: string | undefined;
153
+ applied?: string | undefined;
154
+ } | undefined;
155
+ } | undefined;
156
+ finalizer?: {
157
+ model?: {
158
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
159
+ requested?: string | undefined;
160
+ applied?: string | undefined;
161
+ } | undefined;
162
+ effort?: {
163
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
164
+ requested?: string | undefined;
165
+ applied?: string | undefined;
166
+ } | undefined;
167
+ } | undefined;
168
+ }, {
169
+ schema_version: "context-builder-invocation-audit-v1";
170
+ curator?: {
171
+ model?: {
172
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
173
+ requested?: string | undefined;
174
+ applied?: string | undefined;
175
+ } | undefined;
176
+ effort?: {
177
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
178
+ requested?: string | undefined;
179
+ applied?: string | undefined;
180
+ } | undefined;
181
+ } | undefined;
182
+ finalizer?: {
183
+ model?: {
184
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
185
+ requested?: string | undefined;
186
+ applied?: string | undefined;
187
+ } | undefined;
188
+ effort?: {
189
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
190
+ requested?: string | undefined;
191
+ applied?: string | undefined;
192
+ } | undefined;
193
+ } | undefined;
194
+ }>;
195
+ /**
196
+ * Canonical new sidecar. Seat-level read unions permit a writer to promote an
197
+ * existing V1 document without rewriting or inventing its already-recorded
198
+ * audit. The sidecar remains separate from manifests and receipts.
199
+ */
200
+ export declare const ContextBuilderInvocationAuditV2Schema: z.ZodObject<{
201
+ schema_version: z.ZodLiteral<"context-builder-invocation-audit-v2">;
202
+ curator: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
203
+ schemaVersion: z.ZodLiteral<"clinkx-invocation-audit-v2">;
204
+ model: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
205
+ provenance: z.ZodLiteral<"caller_override">;
206
+ requested: z.ZodType<{
207
+ state: "recorded";
208
+ value: string;
209
+ } | {
210
+ state: "accepted_unrepresentable";
211
+ }, z.ZodTypeDef, {
212
+ state: "recorded";
213
+ value: string;
214
+ } | {
215
+ state: "accepted_unrepresentable";
216
+ }>;
217
+ applied: z.ZodType<{
218
+ state: "recorded";
219
+ value: string;
220
+ } | {
221
+ state: "accepted_unrepresentable";
222
+ }, z.ZodTypeDef, {
223
+ state: "recorded";
224
+ value: string;
225
+ } | {
226
+ state: "accepted_unrepresentable";
227
+ }>;
228
+ }, "strict", z.ZodTypeAny, {
229
+ requested: {
230
+ state: "recorded";
231
+ value: string;
232
+ } | {
233
+ state: "accepted_unrepresentable";
234
+ };
235
+ applied: {
236
+ state: "recorded";
237
+ value: string;
238
+ } | {
239
+ state: "accepted_unrepresentable";
240
+ };
241
+ provenance: "caller_override";
242
+ }, {
243
+ requested: {
244
+ state: "recorded";
245
+ value: string;
246
+ } | {
247
+ state: "accepted_unrepresentable";
248
+ };
249
+ applied: {
250
+ state: "recorded";
251
+ value: string;
252
+ } | {
253
+ state: "accepted_unrepresentable";
254
+ };
255
+ provenance: "caller_override";
256
+ }>, z.ZodObject<{
257
+ provenance: z.ZodLiteral<"adapter_pin">;
258
+ applied: z.ZodType<{
259
+ state: "recorded";
260
+ value: string;
261
+ } | {
262
+ state: "accepted_unrepresentable";
263
+ }, z.ZodTypeDef, {
264
+ state: "recorded";
265
+ value: string;
266
+ } | {
267
+ state: "accepted_unrepresentable";
268
+ }>;
269
+ }, "strict", z.ZodTypeAny, {
270
+ applied: {
271
+ state: "recorded";
272
+ value: string;
273
+ } | {
274
+ state: "accepted_unrepresentable";
275
+ };
276
+ provenance: "adapter_pin";
277
+ }, {
278
+ applied: {
279
+ state: "recorded";
280
+ value: string;
281
+ } | {
282
+ state: "accepted_unrepresentable";
283
+ };
284
+ provenance: "adapter_pin";
285
+ }>, z.ZodObject<{
286
+ provenance: z.ZodLiteral<"adapter_default">;
287
+ applied: z.ZodType<{
288
+ state: "recorded";
289
+ value: string;
290
+ } | {
291
+ state: "accepted_unrepresentable";
292
+ }, z.ZodTypeDef, {
293
+ state: "recorded";
294
+ value: string;
295
+ } | {
296
+ state: "accepted_unrepresentable";
297
+ }>;
298
+ }, "strict", z.ZodTypeAny, {
299
+ applied: {
300
+ state: "recorded";
301
+ value: string;
302
+ } | {
303
+ state: "accepted_unrepresentable";
304
+ };
305
+ provenance: "adapter_default";
306
+ }, {
307
+ applied: {
308
+ state: "recorded";
309
+ value: string;
310
+ } | {
311
+ state: "accepted_unrepresentable";
312
+ };
313
+ provenance: "adapter_default";
314
+ }>, z.ZodObject<{
315
+ provenance: z.ZodLiteral<"cli_default_unknown">;
316
+ }, "strict", z.ZodTypeAny, {
317
+ provenance: "cli_default_unknown";
318
+ }, {
319
+ provenance: "cli_default_unknown";
320
+ }>]>, {
321
+ requested: {
322
+ state: "recorded";
323
+ value: string;
324
+ } | {
325
+ state: "accepted_unrepresentable";
326
+ };
327
+ applied: {
328
+ state: "recorded";
329
+ value: string;
330
+ } | {
331
+ state: "accepted_unrepresentable";
332
+ };
333
+ provenance: "caller_override";
334
+ } | {
335
+ applied: {
336
+ state: "recorded";
337
+ value: string;
338
+ } | {
339
+ state: "accepted_unrepresentable";
340
+ };
341
+ provenance: "adapter_pin";
342
+ } | {
343
+ applied: {
344
+ state: "recorded";
345
+ value: string;
346
+ } | {
347
+ state: "accepted_unrepresentable";
348
+ };
349
+ provenance: "adapter_default";
350
+ } | {
351
+ provenance: "cli_default_unknown";
352
+ }, {
353
+ requested: {
354
+ state: "recorded";
355
+ value: string;
356
+ } | {
357
+ state: "accepted_unrepresentable";
358
+ };
359
+ applied: {
360
+ state: "recorded";
361
+ value: string;
362
+ } | {
363
+ state: "accepted_unrepresentable";
364
+ };
365
+ provenance: "caller_override";
366
+ } | {
367
+ applied: {
368
+ state: "recorded";
369
+ value: string;
370
+ } | {
371
+ state: "accepted_unrepresentable";
372
+ };
373
+ provenance: "adapter_pin";
374
+ } | {
375
+ applied: {
376
+ state: "recorded";
377
+ value: string;
378
+ } | {
379
+ state: "accepted_unrepresentable";
380
+ };
381
+ provenance: "adapter_default";
382
+ } | {
383
+ provenance: "cli_default_unknown";
384
+ }>>;
385
+ effort: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
386
+ provenance: z.ZodLiteral<"caller_override">;
387
+ requested: z.ZodType<{
388
+ state: "recorded";
389
+ value: string;
390
+ } | {
391
+ state: "accepted_unrepresentable";
392
+ }, z.ZodTypeDef, {
393
+ state: "recorded";
394
+ value: string;
395
+ } | {
396
+ state: "accepted_unrepresentable";
397
+ }>;
398
+ applied: z.ZodType<{
399
+ state: "recorded";
400
+ value: string;
401
+ } | {
402
+ state: "accepted_unrepresentable";
403
+ }, z.ZodTypeDef, {
404
+ state: "recorded";
405
+ value: string;
406
+ } | {
407
+ state: "accepted_unrepresentable";
408
+ }>;
409
+ }, "strict", z.ZodTypeAny, {
410
+ requested: {
411
+ state: "recorded";
412
+ value: string;
413
+ } | {
414
+ state: "accepted_unrepresentable";
415
+ };
416
+ applied: {
417
+ state: "recorded";
418
+ value: string;
419
+ } | {
420
+ state: "accepted_unrepresentable";
421
+ };
422
+ provenance: "caller_override";
423
+ }, {
424
+ requested: {
425
+ state: "recorded";
426
+ value: string;
427
+ } | {
428
+ state: "accepted_unrepresentable";
429
+ };
430
+ applied: {
431
+ state: "recorded";
432
+ value: string;
433
+ } | {
434
+ state: "accepted_unrepresentable";
435
+ };
436
+ provenance: "caller_override";
437
+ }>, z.ZodObject<{
438
+ provenance: z.ZodLiteral<"adapter_pin">;
439
+ applied: z.ZodType<{
440
+ state: "recorded";
441
+ value: string;
442
+ } | {
443
+ state: "accepted_unrepresentable";
444
+ }, z.ZodTypeDef, {
445
+ state: "recorded";
446
+ value: string;
447
+ } | {
448
+ state: "accepted_unrepresentable";
449
+ }>;
450
+ }, "strict", z.ZodTypeAny, {
451
+ applied: {
452
+ state: "recorded";
453
+ value: string;
454
+ } | {
455
+ state: "accepted_unrepresentable";
456
+ };
457
+ provenance: "adapter_pin";
458
+ }, {
459
+ applied: {
460
+ state: "recorded";
461
+ value: string;
462
+ } | {
463
+ state: "accepted_unrepresentable";
464
+ };
465
+ provenance: "adapter_pin";
466
+ }>, z.ZodObject<{
467
+ provenance: z.ZodLiteral<"adapter_default">;
468
+ applied: z.ZodType<{
469
+ state: "recorded";
470
+ value: string;
471
+ } | {
472
+ state: "accepted_unrepresentable";
473
+ }, z.ZodTypeDef, {
474
+ state: "recorded";
475
+ value: string;
476
+ } | {
477
+ state: "accepted_unrepresentable";
478
+ }>;
479
+ }, "strict", z.ZodTypeAny, {
480
+ applied: {
481
+ state: "recorded";
482
+ value: string;
483
+ } | {
484
+ state: "accepted_unrepresentable";
485
+ };
486
+ provenance: "adapter_default";
487
+ }, {
488
+ applied: {
489
+ state: "recorded";
490
+ value: string;
491
+ } | {
492
+ state: "accepted_unrepresentable";
493
+ };
494
+ provenance: "adapter_default";
495
+ }>, z.ZodObject<{
496
+ provenance: z.ZodLiteral<"cli_default_unknown">;
497
+ }, "strict", z.ZodTypeAny, {
498
+ provenance: "cli_default_unknown";
499
+ }, {
500
+ provenance: "cli_default_unknown";
501
+ }>]>, {
502
+ requested: {
503
+ state: "recorded";
504
+ value: string;
505
+ } | {
506
+ state: "accepted_unrepresentable";
507
+ };
508
+ applied: {
509
+ state: "recorded";
510
+ value: string;
511
+ } | {
512
+ state: "accepted_unrepresentable";
513
+ };
514
+ provenance: "caller_override";
515
+ } | {
516
+ applied: {
517
+ state: "recorded";
518
+ value: string;
519
+ } | {
520
+ state: "accepted_unrepresentable";
521
+ };
522
+ provenance: "adapter_pin";
523
+ } | {
524
+ applied: {
525
+ state: "recorded";
526
+ value: string;
527
+ } | {
528
+ state: "accepted_unrepresentable";
529
+ };
530
+ provenance: "adapter_default";
531
+ } | {
532
+ provenance: "cli_default_unknown";
533
+ }, {
534
+ requested: {
535
+ state: "recorded";
536
+ value: string;
537
+ } | {
538
+ state: "accepted_unrepresentable";
539
+ };
540
+ applied: {
541
+ state: "recorded";
542
+ value: string;
543
+ } | {
544
+ state: "accepted_unrepresentable";
545
+ };
546
+ provenance: "caller_override";
547
+ } | {
548
+ applied: {
549
+ state: "recorded";
550
+ value: string;
551
+ } | {
552
+ state: "accepted_unrepresentable";
553
+ };
554
+ provenance: "adapter_pin";
555
+ } | {
556
+ applied: {
557
+ state: "recorded";
558
+ value: string;
559
+ } | {
560
+ state: "accepted_unrepresentable";
561
+ };
562
+ provenance: "adapter_default";
563
+ } | {
564
+ provenance: "cli_default_unknown";
565
+ }>>;
566
+ }, "strict", z.ZodTypeAny, {
567
+ schemaVersion: "clinkx-invocation-audit-v2";
568
+ model?: {
569
+ requested: {
570
+ state: "recorded";
571
+ value: string;
572
+ } | {
573
+ state: "accepted_unrepresentable";
574
+ };
575
+ applied: {
576
+ state: "recorded";
577
+ value: string;
578
+ } | {
579
+ state: "accepted_unrepresentable";
580
+ };
581
+ provenance: "caller_override";
582
+ } | {
583
+ applied: {
584
+ state: "recorded";
585
+ value: string;
586
+ } | {
587
+ state: "accepted_unrepresentable";
588
+ };
589
+ provenance: "adapter_pin";
590
+ } | {
591
+ applied: {
592
+ state: "recorded";
593
+ value: string;
594
+ } | {
595
+ state: "accepted_unrepresentable";
596
+ };
597
+ provenance: "adapter_default";
598
+ } | {
599
+ provenance: "cli_default_unknown";
600
+ } | undefined;
601
+ effort?: {
602
+ requested: {
603
+ state: "recorded";
604
+ value: string;
605
+ } | {
606
+ state: "accepted_unrepresentable";
607
+ };
608
+ applied: {
609
+ state: "recorded";
610
+ value: string;
611
+ } | {
612
+ state: "accepted_unrepresentable";
613
+ };
614
+ provenance: "caller_override";
615
+ } | {
616
+ applied: {
617
+ state: "recorded";
618
+ value: string;
619
+ } | {
620
+ state: "accepted_unrepresentable";
621
+ };
622
+ provenance: "adapter_pin";
623
+ } | {
624
+ applied: {
625
+ state: "recorded";
626
+ value: string;
627
+ } | {
628
+ state: "accepted_unrepresentable";
629
+ };
630
+ provenance: "adapter_default";
631
+ } | {
632
+ provenance: "cli_default_unknown";
633
+ } | undefined;
634
+ }, {
635
+ schemaVersion: "clinkx-invocation-audit-v2";
636
+ model?: {
637
+ requested: {
638
+ state: "recorded";
639
+ value: string;
640
+ } | {
641
+ state: "accepted_unrepresentable";
642
+ };
643
+ applied: {
644
+ state: "recorded";
645
+ value: string;
646
+ } | {
647
+ state: "accepted_unrepresentable";
648
+ };
649
+ provenance: "caller_override";
650
+ } | {
651
+ applied: {
652
+ state: "recorded";
653
+ value: string;
654
+ } | {
655
+ state: "accepted_unrepresentable";
656
+ };
657
+ provenance: "adapter_pin";
658
+ } | {
659
+ applied: {
660
+ state: "recorded";
661
+ value: string;
662
+ } | {
663
+ state: "accepted_unrepresentable";
664
+ };
665
+ provenance: "adapter_default";
666
+ } | {
667
+ provenance: "cli_default_unknown";
668
+ } | undefined;
669
+ effort?: {
670
+ requested: {
671
+ state: "recorded";
672
+ value: string;
673
+ } | {
674
+ state: "accepted_unrepresentable";
675
+ };
676
+ applied: {
677
+ state: "recorded";
678
+ value: string;
679
+ } | {
680
+ state: "accepted_unrepresentable";
681
+ };
682
+ provenance: "caller_override";
683
+ } | {
684
+ applied: {
685
+ state: "recorded";
686
+ value: string;
687
+ } | {
688
+ state: "accepted_unrepresentable";
689
+ };
690
+ provenance: "adapter_pin";
691
+ } | {
692
+ applied: {
693
+ state: "recorded";
694
+ value: string;
695
+ } | {
696
+ state: "accepted_unrepresentable";
697
+ };
698
+ provenance: "adapter_default";
699
+ } | {
700
+ provenance: "cli_default_unknown";
701
+ } | undefined;
702
+ }>, {
703
+ schemaVersion: "clinkx-invocation-audit-v2";
704
+ model?: {
705
+ requested: {
706
+ state: "recorded";
707
+ value: string;
708
+ } | {
709
+ state: "accepted_unrepresentable";
710
+ };
711
+ applied: {
712
+ state: "recorded";
713
+ value: string;
714
+ } | {
715
+ state: "accepted_unrepresentable";
716
+ };
717
+ provenance: "caller_override";
718
+ } | {
719
+ applied: {
720
+ state: "recorded";
721
+ value: string;
722
+ } | {
723
+ state: "accepted_unrepresentable";
724
+ };
725
+ provenance: "adapter_pin";
726
+ } | {
727
+ applied: {
728
+ state: "recorded";
729
+ value: string;
730
+ } | {
731
+ state: "accepted_unrepresentable";
732
+ };
733
+ provenance: "adapter_default";
734
+ } | {
735
+ provenance: "cli_default_unknown";
736
+ } | undefined;
737
+ effort?: {
738
+ requested: {
739
+ state: "recorded";
740
+ value: string;
741
+ } | {
742
+ state: "accepted_unrepresentable";
743
+ };
744
+ applied: {
745
+ state: "recorded";
746
+ value: string;
747
+ } | {
748
+ state: "accepted_unrepresentable";
749
+ };
750
+ provenance: "caller_override";
751
+ } | {
752
+ applied: {
753
+ state: "recorded";
754
+ value: string;
755
+ } | {
756
+ state: "accepted_unrepresentable";
757
+ };
758
+ provenance: "adapter_pin";
759
+ } | {
760
+ applied: {
761
+ state: "recorded";
762
+ value: string;
763
+ } | {
764
+ state: "accepted_unrepresentable";
765
+ };
766
+ provenance: "adapter_default";
767
+ } | {
768
+ provenance: "cli_default_unknown";
769
+ } | undefined;
770
+ }, {
771
+ schemaVersion: "clinkx-invocation-audit-v2";
772
+ model?: {
773
+ requested: {
774
+ state: "recorded";
775
+ value: string;
776
+ } | {
777
+ state: "accepted_unrepresentable";
778
+ };
779
+ applied: {
780
+ state: "recorded";
781
+ value: string;
782
+ } | {
783
+ state: "accepted_unrepresentable";
784
+ };
785
+ provenance: "caller_override";
786
+ } | {
787
+ applied: {
788
+ state: "recorded";
789
+ value: string;
790
+ } | {
791
+ state: "accepted_unrepresentable";
792
+ };
793
+ provenance: "adapter_pin";
794
+ } | {
795
+ applied: {
796
+ state: "recorded";
797
+ value: string;
798
+ } | {
799
+ state: "accepted_unrepresentable";
800
+ };
801
+ provenance: "adapter_default";
802
+ } | {
803
+ provenance: "cli_default_unknown";
804
+ } | undefined;
805
+ effort?: {
806
+ requested: {
807
+ state: "recorded";
808
+ value: string;
809
+ } | {
810
+ state: "accepted_unrepresentable";
811
+ };
812
+ applied: {
813
+ state: "recorded";
814
+ value: string;
815
+ } | {
816
+ state: "accepted_unrepresentable";
817
+ };
818
+ provenance: "caller_override";
819
+ } | {
820
+ applied: {
821
+ state: "recorded";
822
+ value: string;
823
+ } | {
824
+ state: "accepted_unrepresentable";
825
+ };
826
+ provenance: "adapter_pin";
827
+ } | {
828
+ applied: {
829
+ state: "recorded";
830
+ value: string;
831
+ } | {
832
+ state: "accepted_unrepresentable";
833
+ };
834
+ provenance: "adapter_default";
835
+ } | {
836
+ provenance: "cli_default_unknown";
837
+ } | undefined;
838
+ }>, z.ZodObject<{
839
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
840
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
841
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
842
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
843
+ }, "strict", z.ZodTypeAny, {
844
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
845
+ requested?: string | undefined;
846
+ applied?: string | undefined;
847
+ }, {
848
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
849
+ requested?: string | undefined;
850
+ applied?: string | undefined;
851
+ }>, {
852
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
853
+ requested?: string | undefined;
854
+ applied?: string | undefined;
855
+ }, {
856
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
857
+ requested?: string | undefined;
858
+ applied?: string | undefined;
859
+ }>>;
860
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
861
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
862
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
863
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
864
+ }, "strict", z.ZodTypeAny, {
865
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
866
+ requested?: string | undefined;
867
+ applied?: string | undefined;
868
+ }, {
869
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
870
+ requested?: string | undefined;
871
+ applied?: string | undefined;
872
+ }>, {
873
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
874
+ requested?: string | undefined;
875
+ applied?: string | undefined;
876
+ }, {
877
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
878
+ requested?: string | undefined;
879
+ applied?: string | undefined;
880
+ }>>;
881
+ }, "strict", z.ZodTypeAny, {
882
+ model?: {
883
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
884
+ requested?: string | undefined;
885
+ applied?: string | undefined;
886
+ } | undefined;
887
+ effort?: {
888
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
889
+ requested?: string | undefined;
890
+ applied?: string | undefined;
891
+ } | undefined;
892
+ }, {
893
+ model?: {
894
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
895
+ requested?: string | undefined;
896
+ applied?: string | undefined;
897
+ } | undefined;
898
+ effort?: {
899
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
900
+ requested?: string | undefined;
901
+ applied?: string | undefined;
902
+ } | undefined;
903
+ }>]>>;
904
+ finalizer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
905
+ schemaVersion: z.ZodLiteral<"clinkx-invocation-audit-v2">;
906
+ model: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
907
+ provenance: z.ZodLiteral<"caller_override">;
908
+ requested: z.ZodType<{
909
+ state: "recorded";
910
+ value: string;
911
+ } | {
912
+ state: "accepted_unrepresentable";
913
+ }, z.ZodTypeDef, {
914
+ state: "recorded";
915
+ value: string;
916
+ } | {
917
+ state: "accepted_unrepresentable";
918
+ }>;
919
+ applied: z.ZodType<{
920
+ state: "recorded";
921
+ value: string;
922
+ } | {
923
+ state: "accepted_unrepresentable";
924
+ }, z.ZodTypeDef, {
925
+ state: "recorded";
926
+ value: string;
927
+ } | {
928
+ state: "accepted_unrepresentable";
929
+ }>;
930
+ }, "strict", z.ZodTypeAny, {
931
+ requested: {
932
+ state: "recorded";
933
+ value: string;
934
+ } | {
935
+ state: "accepted_unrepresentable";
936
+ };
937
+ applied: {
938
+ state: "recorded";
939
+ value: string;
940
+ } | {
941
+ state: "accepted_unrepresentable";
942
+ };
943
+ provenance: "caller_override";
944
+ }, {
945
+ requested: {
946
+ state: "recorded";
947
+ value: string;
948
+ } | {
949
+ state: "accepted_unrepresentable";
950
+ };
951
+ applied: {
952
+ state: "recorded";
953
+ value: string;
954
+ } | {
955
+ state: "accepted_unrepresentable";
956
+ };
957
+ provenance: "caller_override";
958
+ }>, z.ZodObject<{
959
+ provenance: z.ZodLiteral<"adapter_pin">;
960
+ applied: z.ZodType<{
961
+ state: "recorded";
962
+ value: string;
963
+ } | {
964
+ state: "accepted_unrepresentable";
965
+ }, z.ZodTypeDef, {
966
+ state: "recorded";
967
+ value: string;
968
+ } | {
969
+ state: "accepted_unrepresentable";
970
+ }>;
971
+ }, "strict", z.ZodTypeAny, {
972
+ applied: {
973
+ state: "recorded";
974
+ value: string;
975
+ } | {
976
+ state: "accepted_unrepresentable";
977
+ };
978
+ provenance: "adapter_pin";
979
+ }, {
980
+ applied: {
981
+ state: "recorded";
982
+ value: string;
983
+ } | {
984
+ state: "accepted_unrepresentable";
985
+ };
986
+ provenance: "adapter_pin";
987
+ }>, z.ZodObject<{
988
+ provenance: z.ZodLiteral<"adapter_default">;
989
+ applied: z.ZodType<{
990
+ state: "recorded";
991
+ value: string;
992
+ } | {
993
+ state: "accepted_unrepresentable";
994
+ }, z.ZodTypeDef, {
995
+ state: "recorded";
996
+ value: string;
997
+ } | {
998
+ state: "accepted_unrepresentable";
999
+ }>;
1000
+ }, "strict", z.ZodTypeAny, {
1001
+ applied: {
1002
+ state: "recorded";
1003
+ value: string;
1004
+ } | {
1005
+ state: "accepted_unrepresentable";
1006
+ };
1007
+ provenance: "adapter_default";
1008
+ }, {
1009
+ applied: {
1010
+ state: "recorded";
1011
+ value: string;
1012
+ } | {
1013
+ state: "accepted_unrepresentable";
1014
+ };
1015
+ provenance: "adapter_default";
1016
+ }>, z.ZodObject<{
1017
+ provenance: z.ZodLiteral<"cli_default_unknown">;
1018
+ }, "strict", z.ZodTypeAny, {
1019
+ provenance: "cli_default_unknown";
1020
+ }, {
1021
+ provenance: "cli_default_unknown";
1022
+ }>]>, {
1023
+ requested: {
1024
+ state: "recorded";
1025
+ value: string;
1026
+ } | {
1027
+ state: "accepted_unrepresentable";
1028
+ };
1029
+ applied: {
1030
+ state: "recorded";
1031
+ value: string;
1032
+ } | {
1033
+ state: "accepted_unrepresentable";
1034
+ };
1035
+ provenance: "caller_override";
1036
+ } | {
1037
+ applied: {
1038
+ state: "recorded";
1039
+ value: string;
1040
+ } | {
1041
+ state: "accepted_unrepresentable";
1042
+ };
1043
+ provenance: "adapter_pin";
1044
+ } | {
1045
+ applied: {
1046
+ state: "recorded";
1047
+ value: string;
1048
+ } | {
1049
+ state: "accepted_unrepresentable";
1050
+ };
1051
+ provenance: "adapter_default";
1052
+ } | {
1053
+ provenance: "cli_default_unknown";
1054
+ }, {
1055
+ requested: {
1056
+ state: "recorded";
1057
+ value: string;
1058
+ } | {
1059
+ state: "accepted_unrepresentable";
1060
+ };
1061
+ applied: {
1062
+ state: "recorded";
1063
+ value: string;
1064
+ } | {
1065
+ state: "accepted_unrepresentable";
1066
+ };
1067
+ provenance: "caller_override";
1068
+ } | {
1069
+ applied: {
1070
+ state: "recorded";
1071
+ value: string;
1072
+ } | {
1073
+ state: "accepted_unrepresentable";
1074
+ };
1075
+ provenance: "adapter_pin";
1076
+ } | {
1077
+ applied: {
1078
+ state: "recorded";
1079
+ value: string;
1080
+ } | {
1081
+ state: "accepted_unrepresentable";
1082
+ };
1083
+ provenance: "adapter_default";
1084
+ } | {
1085
+ provenance: "cli_default_unknown";
1086
+ }>>;
1087
+ effort: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
1088
+ provenance: z.ZodLiteral<"caller_override">;
1089
+ requested: z.ZodType<{
1090
+ state: "recorded";
1091
+ value: string;
1092
+ } | {
1093
+ state: "accepted_unrepresentable";
1094
+ }, z.ZodTypeDef, {
1095
+ state: "recorded";
1096
+ value: string;
1097
+ } | {
1098
+ state: "accepted_unrepresentable";
1099
+ }>;
1100
+ applied: z.ZodType<{
1101
+ state: "recorded";
1102
+ value: string;
1103
+ } | {
1104
+ state: "accepted_unrepresentable";
1105
+ }, z.ZodTypeDef, {
1106
+ state: "recorded";
1107
+ value: string;
1108
+ } | {
1109
+ state: "accepted_unrepresentable";
1110
+ }>;
1111
+ }, "strict", z.ZodTypeAny, {
1112
+ requested: {
1113
+ state: "recorded";
1114
+ value: string;
1115
+ } | {
1116
+ state: "accepted_unrepresentable";
1117
+ };
1118
+ applied: {
1119
+ state: "recorded";
1120
+ value: string;
1121
+ } | {
1122
+ state: "accepted_unrepresentable";
1123
+ };
1124
+ provenance: "caller_override";
1125
+ }, {
1126
+ requested: {
1127
+ state: "recorded";
1128
+ value: string;
1129
+ } | {
1130
+ state: "accepted_unrepresentable";
1131
+ };
1132
+ applied: {
1133
+ state: "recorded";
1134
+ value: string;
1135
+ } | {
1136
+ state: "accepted_unrepresentable";
1137
+ };
1138
+ provenance: "caller_override";
1139
+ }>, z.ZodObject<{
1140
+ provenance: z.ZodLiteral<"adapter_pin">;
1141
+ applied: z.ZodType<{
1142
+ state: "recorded";
1143
+ value: string;
1144
+ } | {
1145
+ state: "accepted_unrepresentable";
1146
+ }, z.ZodTypeDef, {
1147
+ state: "recorded";
1148
+ value: string;
1149
+ } | {
1150
+ state: "accepted_unrepresentable";
1151
+ }>;
1152
+ }, "strict", z.ZodTypeAny, {
1153
+ applied: {
1154
+ state: "recorded";
1155
+ value: string;
1156
+ } | {
1157
+ state: "accepted_unrepresentable";
1158
+ };
1159
+ provenance: "adapter_pin";
1160
+ }, {
1161
+ applied: {
1162
+ state: "recorded";
1163
+ value: string;
1164
+ } | {
1165
+ state: "accepted_unrepresentable";
1166
+ };
1167
+ provenance: "adapter_pin";
1168
+ }>, z.ZodObject<{
1169
+ provenance: z.ZodLiteral<"adapter_default">;
1170
+ applied: z.ZodType<{
1171
+ state: "recorded";
1172
+ value: string;
1173
+ } | {
1174
+ state: "accepted_unrepresentable";
1175
+ }, z.ZodTypeDef, {
1176
+ state: "recorded";
1177
+ value: string;
1178
+ } | {
1179
+ state: "accepted_unrepresentable";
1180
+ }>;
1181
+ }, "strict", z.ZodTypeAny, {
1182
+ applied: {
1183
+ state: "recorded";
1184
+ value: string;
1185
+ } | {
1186
+ state: "accepted_unrepresentable";
1187
+ };
1188
+ provenance: "adapter_default";
1189
+ }, {
1190
+ applied: {
1191
+ state: "recorded";
1192
+ value: string;
1193
+ } | {
1194
+ state: "accepted_unrepresentable";
1195
+ };
1196
+ provenance: "adapter_default";
1197
+ }>, z.ZodObject<{
1198
+ provenance: z.ZodLiteral<"cli_default_unknown">;
1199
+ }, "strict", z.ZodTypeAny, {
1200
+ provenance: "cli_default_unknown";
1201
+ }, {
1202
+ provenance: "cli_default_unknown";
1203
+ }>]>, {
1204
+ requested: {
1205
+ state: "recorded";
1206
+ value: string;
1207
+ } | {
1208
+ state: "accepted_unrepresentable";
1209
+ };
1210
+ applied: {
1211
+ state: "recorded";
1212
+ value: string;
1213
+ } | {
1214
+ state: "accepted_unrepresentable";
1215
+ };
1216
+ provenance: "caller_override";
1217
+ } | {
1218
+ applied: {
1219
+ state: "recorded";
1220
+ value: string;
1221
+ } | {
1222
+ state: "accepted_unrepresentable";
1223
+ };
1224
+ provenance: "adapter_pin";
1225
+ } | {
1226
+ applied: {
1227
+ state: "recorded";
1228
+ value: string;
1229
+ } | {
1230
+ state: "accepted_unrepresentable";
1231
+ };
1232
+ provenance: "adapter_default";
1233
+ } | {
1234
+ provenance: "cli_default_unknown";
1235
+ }, {
1236
+ requested: {
1237
+ state: "recorded";
1238
+ value: string;
1239
+ } | {
1240
+ state: "accepted_unrepresentable";
1241
+ };
1242
+ applied: {
1243
+ state: "recorded";
1244
+ value: string;
1245
+ } | {
1246
+ state: "accepted_unrepresentable";
1247
+ };
1248
+ provenance: "caller_override";
1249
+ } | {
1250
+ applied: {
1251
+ state: "recorded";
1252
+ value: string;
1253
+ } | {
1254
+ state: "accepted_unrepresentable";
1255
+ };
1256
+ provenance: "adapter_pin";
1257
+ } | {
1258
+ applied: {
1259
+ state: "recorded";
1260
+ value: string;
1261
+ } | {
1262
+ state: "accepted_unrepresentable";
1263
+ };
1264
+ provenance: "adapter_default";
1265
+ } | {
1266
+ provenance: "cli_default_unknown";
1267
+ }>>;
1268
+ }, "strict", z.ZodTypeAny, {
1269
+ schemaVersion: "clinkx-invocation-audit-v2";
1270
+ model?: {
1271
+ requested: {
1272
+ state: "recorded";
1273
+ value: string;
1274
+ } | {
1275
+ state: "accepted_unrepresentable";
1276
+ };
1277
+ applied: {
1278
+ state: "recorded";
1279
+ value: string;
1280
+ } | {
1281
+ state: "accepted_unrepresentable";
1282
+ };
1283
+ provenance: "caller_override";
1284
+ } | {
1285
+ applied: {
1286
+ state: "recorded";
1287
+ value: string;
1288
+ } | {
1289
+ state: "accepted_unrepresentable";
1290
+ };
1291
+ provenance: "adapter_pin";
1292
+ } | {
1293
+ applied: {
1294
+ state: "recorded";
1295
+ value: string;
1296
+ } | {
1297
+ state: "accepted_unrepresentable";
1298
+ };
1299
+ provenance: "adapter_default";
1300
+ } | {
1301
+ provenance: "cli_default_unknown";
1302
+ } | undefined;
1303
+ effort?: {
1304
+ requested: {
1305
+ state: "recorded";
1306
+ value: string;
1307
+ } | {
1308
+ state: "accepted_unrepresentable";
1309
+ };
1310
+ applied: {
1311
+ state: "recorded";
1312
+ value: string;
1313
+ } | {
1314
+ state: "accepted_unrepresentable";
1315
+ };
1316
+ provenance: "caller_override";
1317
+ } | {
1318
+ applied: {
1319
+ state: "recorded";
1320
+ value: string;
1321
+ } | {
1322
+ state: "accepted_unrepresentable";
1323
+ };
1324
+ provenance: "adapter_pin";
1325
+ } | {
1326
+ applied: {
1327
+ state: "recorded";
1328
+ value: string;
1329
+ } | {
1330
+ state: "accepted_unrepresentable";
1331
+ };
1332
+ provenance: "adapter_default";
1333
+ } | {
1334
+ provenance: "cli_default_unknown";
1335
+ } | undefined;
1336
+ }, {
1337
+ schemaVersion: "clinkx-invocation-audit-v2";
1338
+ model?: {
1339
+ requested: {
1340
+ state: "recorded";
1341
+ value: string;
1342
+ } | {
1343
+ state: "accepted_unrepresentable";
1344
+ };
1345
+ applied: {
1346
+ state: "recorded";
1347
+ value: string;
1348
+ } | {
1349
+ state: "accepted_unrepresentable";
1350
+ };
1351
+ provenance: "caller_override";
1352
+ } | {
1353
+ applied: {
1354
+ state: "recorded";
1355
+ value: string;
1356
+ } | {
1357
+ state: "accepted_unrepresentable";
1358
+ };
1359
+ provenance: "adapter_pin";
1360
+ } | {
1361
+ applied: {
1362
+ state: "recorded";
1363
+ value: string;
1364
+ } | {
1365
+ state: "accepted_unrepresentable";
1366
+ };
1367
+ provenance: "adapter_default";
1368
+ } | {
1369
+ provenance: "cli_default_unknown";
1370
+ } | undefined;
1371
+ effort?: {
1372
+ requested: {
1373
+ state: "recorded";
1374
+ value: string;
1375
+ } | {
1376
+ state: "accepted_unrepresentable";
1377
+ };
1378
+ applied: {
1379
+ state: "recorded";
1380
+ value: string;
1381
+ } | {
1382
+ state: "accepted_unrepresentable";
1383
+ };
1384
+ provenance: "caller_override";
1385
+ } | {
1386
+ applied: {
1387
+ state: "recorded";
1388
+ value: string;
1389
+ } | {
1390
+ state: "accepted_unrepresentable";
1391
+ };
1392
+ provenance: "adapter_pin";
1393
+ } | {
1394
+ applied: {
1395
+ state: "recorded";
1396
+ value: string;
1397
+ } | {
1398
+ state: "accepted_unrepresentable";
1399
+ };
1400
+ provenance: "adapter_default";
1401
+ } | {
1402
+ provenance: "cli_default_unknown";
1403
+ } | undefined;
1404
+ }>, {
1405
+ schemaVersion: "clinkx-invocation-audit-v2";
1406
+ model?: {
1407
+ requested: {
1408
+ state: "recorded";
1409
+ value: string;
1410
+ } | {
1411
+ state: "accepted_unrepresentable";
1412
+ };
1413
+ applied: {
1414
+ state: "recorded";
1415
+ value: string;
1416
+ } | {
1417
+ state: "accepted_unrepresentable";
1418
+ };
1419
+ provenance: "caller_override";
1420
+ } | {
1421
+ applied: {
1422
+ state: "recorded";
1423
+ value: string;
1424
+ } | {
1425
+ state: "accepted_unrepresentable";
1426
+ };
1427
+ provenance: "adapter_pin";
1428
+ } | {
1429
+ applied: {
1430
+ state: "recorded";
1431
+ value: string;
1432
+ } | {
1433
+ state: "accepted_unrepresentable";
1434
+ };
1435
+ provenance: "adapter_default";
1436
+ } | {
1437
+ provenance: "cli_default_unknown";
1438
+ } | undefined;
1439
+ effort?: {
1440
+ requested: {
1441
+ state: "recorded";
1442
+ value: string;
1443
+ } | {
1444
+ state: "accepted_unrepresentable";
1445
+ };
1446
+ applied: {
1447
+ state: "recorded";
1448
+ value: string;
1449
+ } | {
1450
+ state: "accepted_unrepresentable";
1451
+ };
1452
+ provenance: "caller_override";
1453
+ } | {
1454
+ applied: {
1455
+ state: "recorded";
1456
+ value: string;
1457
+ } | {
1458
+ state: "accepted_unrepresentable";
1459
+ };
1460
+ provenance: "adapter_pin";
1461
+ } | {
1462
+ applied: {
1463
+ state: "recorded";
1464
+ value: string;
1465
+ } | {
1466
+ state: "accepted_unrepresentable";
1467
+ };
1468
+ provenance: "adapter_default";
1469
+ } | {
1470
+ provenance: "cli_default_unknown";
1471
+ } | undefined;
1472
+ }, {
1473
+ schemaVersion: "clinkx-invocation-audit-v2";
1474
+ model?: {
1475
+ requested: {
1476
+ state: "recorded";
1477
+ value: string;
1478
+ } | {
1479
+ state: "accepted_unrepresentable";
1480
+ };
1481
+ applied: {
1482
+ state: "recorded";
1483
+ value: string;
1484
+ } | {
1485
+ state: "accepted_unrepresentable";
1486
+ };
1487
+ provenance: "caller_override";
1488
+ } | {
1489
+ applied: {
1490
+ state: "recorded";
1491
+ value: string;
1492
+ } | {
1493
+ state: "accepted_unrepresentable";
1494
+ };
1495
+ provenance: "adapter_pin";
1496
+ } | {
1497
+ applied: {
1498
+ state: "recorded";
1499
+ value: string;
1500
+ } | {
1501
+ state: "accepted_unrepresentable";
1502
+ };
1503
+ provenance: "adapter_default";
1504
+ } | {
1505
+ provenance: "cli_default_unknown";
1506
+ } | undefined;
1507
+ effort?: {
1508
+ requested: {
1509
+ state: "recorded";
1510
+ value: string;
1511
+ } | {
1512
+ state: "accepted_unrepresentable";
1513
+ };
1514
+ applied: {
1515
+ state: "recorded";
1516
+ value: string;
1517
+ } | {
1518
+ state: "accepted_unrepresentable";
1519
+ };
1520
+ provenance: "caller_override";
1521
+ } | {
1522
+ applied: {
1523
+ state: "recorded";
1524
+ value: string;
1525
+ } | {
1526
+ state: "accepted_unrepresentable";
1527
+ };
1528
+ provenance: "adapter_pin";
1529
+ } | {
1530
+ applied: {
1531
+ state: "recorded";
1532
+ value: string;
1533
+ } | {
1534
+ state: "accepted_unrepresentable";
1535
+ };
1536
+ provenance: "adapter_default";
1537
+ } | {
1538
+ provenance: "cli_default_unknown";
1539
+ } | undefined;
1540
+ }>, z.ZodObject<{
1541
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1542
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
1543
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
1544
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
1545
+ }, "strict", z.ZodTypeAny, {
1546
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1547
+ requested?: string | undefined;
1548
+ applied?: string | undefined;
1549
+ }, {
1550
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1551
+ requested?: string | undefined;
1552
+ applied?: string | undefined;
1553
+ }>, {
1554
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1555
+ requested?: string | undefined;
1556
+ applied?: string | undefined;
1557
+ }, {
1558
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1559
+ requested?: string | undefined;
1560
+ applied?: string | undefined;
1561
+ }>>;
1562
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
1563
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
1564
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
1565
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
1566
+ }, "strict", z.ZodTypeAny, {
1567
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1568
+ requested?: string | undefined;
1569
+ applied?: string | undefined;
1570
+ }, {
1571
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1572
+ requested?: string | undefined;
1573
+ applied?: string | undefined;
1574
+ }>, {
1575
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1576
+ requested?: string | undefined;
1577
+ applied?: string | undefined;
1578
+ }, {
1579
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1580
+ requested?: string | undefined;
1581
+ applied?: string | undefined;
1582
+ }>>;
1583
+ }, "strict", z.ZodTypeAny, {
1584
+ model?: {
1585
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1586
+ requested?: string | undefined;
1587
+ applied?: string | undefined;
1588
+ } | undefined;
1589
+ effort?: {
1590
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1591
+ requested?: string | undefined;
1592
+ applied?: string | undefined;
1593
+ } | undefined;
1594
+ }, {
1595
+ model?: {
1596
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1597
+ requested?: string | undefined;
1598
+ applied?: string | undefined;
1599
+ } | undefined;
1600
+ effort?: {
1601
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1602
+ requested?: string | undefined;
1603
+ applied?: string | undefined;
1604
+ } | undefined;
1605
+ }>]>>;
1606
+ }, "strict", z.ZodTypeAny, {
1607
+ schema_version: "context-builder-invocation-audit-v2";
1608
+ curator?: {
1609
+ model?: {
1610
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1611
+ requested?: string | undefined;
1612
+ applied?: string | undefined;
1613
+ } | undefined;
1614
+ effort?: {
1615
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1616
+ requested?: string | undefined;
1617
+ applied?: string | undefined;
1618
+ } | undefined;
1619
+ } | {
1620
+ schemaVersion: "clinkx-invocation-audit-v2";
1621
+ model?: {
1622
+ requested: {
1623
+ state: "recorded";
1624
+ value: string;
1625
+ } | {
1626
+ state: "accepted_unrepresentable";
1627
+ };
1628
+ applied: {
1629
+ state: "recorded";
1630
+ value: string;
1631
+ } | {
1632
+ state: "accepted_unrepresentable";
1633
+ };
1634
+ provenance: "caller_override";
1635
+ } | {
1636
+ applied: {
1637
+ state: "recorded";
1638
+ value: string;
1639
+ } | {
1640
+ state: "accepted_unrepresentable";
1641
+ };
1642
+ provenance: "adapter_pin";
1643
+ } | {
1644
+ applied: {
1645
+ state: "recorded";
1646
+ value: string;
1647
+ } | {
1648
+ state: "accepted_unrepresentable";
1649
+ };
1650
+ provenance: "adapter_default";
1651
+ } | {
1652
+ provenance: "cli_default_unknown";
1653
+ } | undefined;
1654
+ effort?: {
1655
+ requested: {
1656
+ state: "recorded";
1657
+ value: string;
1658
+ } | {
1659
+ state: "accepted_unrepresentable";
1660
+ };
1661
+ applied: {
1662
+ state: "recorded";
1663
+ value: string;
1664
+ } | {
1665
+ state: "accepted_unrepresentable";
1666
+ };
1667
+ provenance: "caller_override";
1668
+ } | {
1669
+ applied: {
1670
+ state: "recorded";
1671
+ value: string;
1672
+ } | {
1673
+ state: "accepted_unrepresentable";
1674
+ };
1675
+ provenance: "adapter_pin";
1676
+ } | {
1677
+ applied: {
1678
+ state: "recorded";
1679
+ value: string;
1680
+ } | {
1681
+ state: "accepted_unrepresentable";
1682
+ };
1683
+ provenance: "adapter_default";
1684
+ } | {
1685
+ provenance: "cli_default_unknown";
1686
+ } | undefined;
1687
+ } | undefined;
1688
+ finalizer?: {
1689
+ model?: {
1690
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1691
+ requested?: string | undefined;
1692
+ applied?: string | undefined;
1693
+ } | undefined;
1694
+ effort?: {
1695
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1696
+ requested?: string | undefined;
1697
+ applied?: string | undefined;
1698
+ } | undefined;
1699
+ } | {
1700
+ schemaVersion: "clinkx-invocation-audit-v2";
1701
+ model?: {
1702
+ requested: {
1703
+ state: "recorded";
1704
+ value: string;
1705
+ } | {
1706
+ state: "accepted_unrepresentable";
1707
+ };
1708
+ applied: {
1709
+ state: "recorded";
1710
+ value: string;
1711
+ } | {
1712
+ state: "accepted_unrepresentable";
1713
+ };
1714
+ provenance: "caller_override";
1715
+ } | {
1716
+ applied: {
1717
+ state: "recorded";
1718
+ value: string;
1719
+ } | {
1720
+ state: "accepted_unrepresentable";
1721
+ };
1722
+ provenance: "adapter_pin";
1723
+ } | {
1724
+ applied: {
1725
+ state: "recorded";
1726
+ value: string;
1727
+ } | {
1728
+ state: "accepted_unrepresentable";
1729
+ };
1730
+ provenance: "adapter_default";
1731
+ } | {
1732
+ provenance: "cli_default_unknown";
1733
+ } | undefined;
1734
+ effort?: {
1735
+ requested: {
1736
+ state: "recorded";
1737
+ value: string;
1738
+ } | {
1739
+ state: "accepted_unrepresentable";
1740
+ };
1741
+ applied: {
1742
+ state: "recorded";
1743
+ value: string;
1744
+ } | {
1745
+ state: "accepted_unrepresentable";
1746
+ };
1747
+ provenance: "caller_override";
1748
+ } | {
1749
+ applied: {
1750
+ state: "recorded";
1751
+ value: string;
1752
+ } | {
1753
+ state: "accepted_unrepresentable";
1754
+ };
1755
+ provenance: "adapter_pin";
1756
+ } | {
1757
+ applied: {
1758
+ state: "recorded";
1759
+ value: string;
1760
+ } | {
1761
+ state: "accepted_unrepresentable";
1762
+ };
1763
+ provenance: "adapter_default";
1764
+ } | {
1765
+ provenance: "cli_default_unknown";
1766
+ } | undefined;
1767
+ } | undefined;
1768
+ }, {
1769
+ schema_version: "context-builder-invocation-audit-v2";
1770
+ curator?: {
1771
+ model?: {
1772
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1773
+ requested?: string | undefined;
1774
+ applied?: string | undefined;
1775
+ } | undefined;
1776
+ effort?: {
1777
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1778
+ requested?: string | undefined;
1779
+ applied?: string | undefined;
1780
+ } | undefined;
1781
+ } | {
1782
+ schemaVersion: "clinkx-invocation-audit-v2";
1783
+ model?: {
1784
+ requested: {
1785
+ state: "recorded";
1786
+ value: string;
1787
+ } | {
1788
+ state: "accepted_unrepresentable";
1789
+ };
1790
+ applied: {
1791
+ state: "recorded";
1792
+ value: string;
1793
+ } | {
1794
+ state: "accepted_unrepresentable";
1795
+ };
1796
+ provenance: "caller_override";
1797
+ } | {
1798
+ applied: {
1799
+ state: "recorded";
1800
+ value: string;
1801
+ } | {
1802
+ state: "accepted_unrepresentable";
1803
+ };
1804
+ provenance: "adapter_pin";
1805
+ } | {
1806
+ applied: {
1807
+ state: "recorded";
1808
+ value: string;
1809
+ } | {
1810
+ state: "accepted_unrepresentable";
1811
+ };
1812
+ provenance: "adapter_default";
1813
+ } | {
1814
+ provenance: "cli_default_unknown";
1815
+ } | undefined;
1816
+ effort?: {
1817
+ requested: {
1818
+ state: "recorded";
1819
+ value: string;
1820
+ } | {
1821
+ state: "accepted_unrepresentable";
1822
+ };
1823
+ applied: {
1824
+ state: "recorded";
1825
+ value: string;
1826
+ } | {
1827
+ state: "accepted_unrepresentable";
1828
+ };
1829
+ provenance: "caller_override";
1830
+ } | {
1831
+ applied: {
1832
+ state: "recorded";
1833
+ value: string;
1834
+ } | {
1835
+ state: "accepted_unrepresentable";
1836
+ };
1837
+ provenance: "adapter_pin";
1838
+ } | {
1839
+ applied: {
1840
+ state: "recorded";
1841
+ value: string;
1842
+ } | {
1843
+ state: "accepted_unrepresentable";
1844
+ };
1845
+ provenance: "adapter_default";
1846
+ } | {
1847
+ provenance: "cli_default_unknown";
1848
+ } | undefined;
1849
+ } | undefined;
1850
+ finalizer?: {
1851
+ model?: {
1852
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1853
+ requested?: string | undefined;
1854
+ applied?: string | undefined;
1855
+ } | undefined;
1856
+ effort?: {
1857
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
1858
+ requested?: string | undefined;
1859
+ applied?: string | undefined;
1860
+ } | undefined;
1861
+ } | {
1862
+ schemaVersion: "clinkx-invocation-audit-v2";
1863
+ model?: {
1864
+ requested: {
1865
+ state: "recorded";
1866
+ value: string;
1867
+ } | {
1868
+ state: "accepted_unrepresentable";
1869
+ };
1870
+ applied: {
1871
+ state: "recorded";
1872
+ value: string;
1873
+ } | {
1874
+ state: "accepted_unrepresentable";
1875
+ };
1876
+ provenance: "caller_override";
1877
+ } | {
1878
+ applied: {
1879
+ state: "recorded";
1880
+ value: string;
1881
+ } | {
1882
+ state: "accepted_unrepresentable";
1883
+ };
1884
+ provenance: "adapter_pin";
1885
+ } | {
1886
+ applied: {
1887
+ state: "recorded";
1888
+ value: string;
1889
+ } | {
1890
+ state: "accepted_unrepresentable";
1891
+ };
1892
+ provenance: "adapter_default";
1893
+ } | {
1894
+ provenance: "cli_default_unknown";
1895
+ } | undefined;
1896
+ effort?: {
1897
+ requested: {
1898
+ state: "recorded";
1899
+ value: string;
1900
+ } | {
1901
+ state: "accepted_unrepresentable";
1902
+ };
1903
+ applied: {
1904
+ state: "recorded";
1905
+ value: string;
1906
+ } | {
1907
+ state: "accepted_unrepresentable";
1908
+ };
1909
+ provenance: "caller_override";
1910
+ } | {
1911
+ applied: {
1912
+ state: "recorded";
1913
+ value: string;
1914
+ } | {
1915
+ state: "accepted_unrepresentable";
1916
+ };
1917
+ provenance: "adapter_pin";
1918
+ } | {
1919
+ applied: {
1920
+ state: "recorded";
1921
+ value: string;
1922
+ } | {
1923
+ state: "accepted_unrepresentable";
1924
+ };
1925
+ provenance: "adapter_default";
1926
+ } | {
1927
+ provenance: "cli_default_unknown";
1928
+ } | undefined;
1929
+ } | undefined;
1930
+ }>;
1931
+ export declare const ContextBuilderInvocationAuditReadSchema: z.ZodUnion<[z.ZodObject<{
1932
+ schema_version: z.ZodLiteral<"context-builder-invocation-audit-v2">;
1933
+ curator: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
1934
+ schemaVersion: z.ZodLiteral<"clinkx-invocation-audit-v2">;
1935
+ model: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
1936
+ provenance: z.ZodLiteral<"caller_override">;
1937
+ requested: z.ZodType<{
1938
+ state: "recorded";
1939
+ value: string;
1940
+ } | {
1941
+ state: "accepted_unrepresentable";
1942
+ }, z.ZodTypeDef, {
1943
+ state: "recorded";
1944
+ value: string;
1945
+ } | {
1946
+ state: "accepted_unrepresentable";
1947
+ }>;
1948
+ applied: z.ZodType<{
1949
+ state: "recorded";
1950
+ value: string;
1951
+ } | {
1952
+ state: "accepted_unrepresentable";
1953
+ }, z.ZodTypeDef, {
1954
+ state: "recorded";
1955
+ value: string;
1956
+ } | {
1957
+ state: "accepted_unrepresentable";
1958
+ }>;
1959
+ }, "strict", z.ZodTypeAny, {
1960
+ requested: {
1961
+ state: "recorded";
1962
+ value: string;
1963
+ } | {
1964
+ state: "accepted_unrepresentable";
1965
+ };
1966
+ applied: {
1967
+ state: "recorded";
1968
+ value: string;
1969
+ } | {
1970
+ state: "accepted_unrepresentable";
1971
+ };
1972
+ provenance: "caller_override";
1973
+ }, {
1974
+ requested: {
1975
+ state: "recorded";
1976
+ value: string;
1977
+ } | {
1978
+ state: "accepted_unrepresentable";
1979
+ };
1980
+ applied: {
1981
+ state: "recorded";
1982
+ value: string;
1983
+ } | {
1984
+ state: "accepted_unrepresentable";
1985
+ };
1986
+ provenance: "caller_override";
1987
+ }>, z.ZodObject<{
1988
+ provenance: z.ZodLiteral<"adapter_pin">;
1989
+ applied: z.ZodType<{
1990
+ state: "recorded";
1991
+ value: string;
1992
+ } | {
1993
+ state: "accepted_unrepresentable";
1994
+ }, z.ZodTypeDef, {
1995
+ state: "recorded";
1996
+ value: string;
1997
+ } | {
1998
+ state: "accepted_unrepresentable";
1999
+ }>;
2000
+ }, "strict", z.ZodTypeAny, {
2001
+ applied: {
2002
+ state: "recorded";
2003
+ value: string;
2004
+ } | {
2005
+ state: "accepted_unrepresentable";
2006
+ };
2007
+ provenance: "adapter_pin";
2008
+ }, {
2009
+ applied: {
2010
+ state: "recorded";
2011
+ value: string;
2012
+ } | {
2013
+ state: "accepted_unrepresentable";
2014
+ };
2015
+ provenance: "adapter_pin";
2016
+ }>, z.ZodObject<{
2017
+ provenance: z.ZodLiteral<"adapter_default">;
2018
+ applied: z.ZodType<{
2019
+ state: "recorded";
2020
+ value: string;
2021
+ } | {
2022
+ state: "accepted_unrepresentable";
2023
+ }, z.ZodTypeDef, {
2024
+ state: "recorded";
2025
+ value: string;
2026
+ } | {
2027
+ state: "accepted_unrepresentable";
2028
+ }>;
2029
+ }, "strict", z.ZodTypeAny, {
2030
+ applied: {
2031
+ state: "recorded";
2032
+ value: string;
2033
+ } | {
2034
+ state: "accepted_unrepresentable";
2035
+ };
2036
+ provenance: "adapter_default";
2037
+ }, {
2038
+ applied: {
2039
+ state: "recorded";
2040
+ value: string;
2041
+ } | {
2042
+ state: "accepted_unrepresentable";
2043
+ };
2044
+ provenance: "adapter_default";
2045
+ }>, z.ZodObject<{
2046
+ provenance: z.ZodLiteral<"cli_default_unknown">;
2047
+ }, "strict", z.ZodTypeAny, {
2048
+ provenance: "cli_default_unknown";
2049
+ }, {
2050
+ provenance: "cli_default_unknown";
2051
+ }>]>, {
2052
+ requested: {
2053
+ state: "recorded";
2054
+ value: string;
2055
+ } | {
2056
+ state: "accepted_unrepresentable";
2057
+ };
2058
+ applied: {
2059
+ state: "recorded";
2060
+ value: string;
2061
+ } | {
2062
+ state: "accepted_unrepresentable";
2063
+ };
2064
+ provenance: "caller_override";
2065
+ } | {
2066
+ applied: {
2067
+ state: "recorded";
2068
+ value: string;
2069
+ } | {
2070
+ state: "accepted_unrepresentable";
2071
+ };
2072
+ provenance: "adapter_pin";
2073
+ } | {
2074
+ applied: {
2075
+ state: "recorded";
2076
+ value: string;
2077
+ } | {
2078
+ state: "accepted_unrepresentable";
2079
+ };
2080
+ provenance: "adapter_default";
2081
+ } | {
2082
+ provenance: "cli_default_unknown";
2083
+ }, {
2084
+ requested: {
2085
+ state: "recorded";
2086
+ value: string;
2087
+ } | {
2088
+ state: "accepted_unrepresentable";
2089
+ };
2090
+ applied: {
2091
+ state: "recorded";
2092
+ value: string;
2093
+ } | {
2094
+ state: "accepted_unrepresentable";
2095
+ };
2096
+ provenance: "caller_override";
2097
+ } | {
2098
+ applied: {
2099
+ state: "recorded";
2100
+ value: string;
2101
+ } | {
2102
+ state: "accepted_unrepresentable";
2103
+ };
2104
+ provenance: "adapter_pin";
2105
+ } | {
2106
+ applied: {
2107
+ state: "recorded";
2108
+ value: string;
2109
+ } | {
2110
+ state: "accepted_unrepresentable";
2111
+ };
2112
+ provenance: "adapter_default";
2113
+ } | {
2114
+ provenance: "cli_default_unknown";
2115
+ }>>;
2116
+ effort: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
2117
+ provenance: z.ZodLiteral<"caller_override">;
2118
+ requested: z.ZodType<{
2119
+ state: "recorded";
2120
+ value: string;
2121
+ } | {
2122
+ state: "accepted_unrepresentable";
2123
+ }, z.ZodTypeDef, {
2124
+ state: "recorded";
2125
+ value: string;
2126
+ } | {
2127
+ state: "accepted_unrepresentable";
2128
+ }>;
2129
+ applied: z.ZodType<{
2130
+ state: "recorded";
2131
+ value: string;
2132
+ } | {
2133
+ state: "accepted_unrepresentable";
2134
+ }, z.ZodTypeDef, {
2135
+ state: "recorded";
2136
+ value: string;
2137
+ } | {
2138
+ state: "accepted_unrepresentable";
2139
+ }>;
2140
+ }, "strict", z.ZodTypeAny, {
2141
+ requested: {
2142
+ state: "recorded";
2143
+ value: string;
2144
+ } | {
2145
+ state: "accepted_unrepresentable";
2146
+ };
2147
+ applied: {
2148
+ state: "recorded";
2149
+ value: string;
2150
+ } | {
2151
+ state: "accepted_unrepresentable";
2152
+ };
2153
+ provenance: "caller_override";
2154
+ }, {
2155
+ requested: {
2156
+ state: "recorded";
2157
+ value: string;
2158
+ } | {
2159
+ state: "accepted_unrepresentable";
2160
+ };
2161
+ applied: {
2162
+ state: "recorded";
2163
+ value: string;
2164
+ } | {
2165
+ state: "accepted_unrepresentable";
2166
+ };
2167
+ provenance: "caller_override";
2168
+ }>, z.ZodObject<{
2169
+ provenance: z.ZodLiteral<"adapter_pin">;
2170
+ applied: z.ZodType<{
2171
+ state: "recorded";
2172
+ value: string;
2173
+ } | {
2174
+ state: "accepted_unrepresentable";
2175
+ }, z.ZodTypeDef, {
2176
+ state: "recorded";
2177
+ value: string;
2178
+ } | {
2179
+ state: "accepted_unrepresentable";
2180
+ }>;
2181
+ }, "strict", z.ZodTypeAny, {
2182
+ applied: {
2183
+ state: "recorded";
2184
+ value: string;
2185
+ } | {
2186
+ state: "accepted_unrepresentable";
2187
+ };
2188
+ provenance: "adapter_pin";
2189
+ }, {
2190
+ applied: {
2191
+ state: "recorded";
2192
+ value: string;
2193
+ } | {
2194
+ state: "accepted_unrepresentable";
2195
+ };
2196
+ provenance: "adapter_pin";
2197
+ }>, z.ZodObject<{
2198
+ provenance: z.ZodLiteral<"adapter_default">;
2199
+ applied: z.ZodType<{
2200
+ state: "recorded";
2201
+ value: string;
2202
+ } | {
2203
+ state: "accepted_unrepresentable";
2204
+ }, z.ZodTypeDef, {
2205
+ state: "recorded";
2206
+ value: string;
2207
+ } | {
2208
+ state: "accepted_unrepresentable";
2209
+ }>;
2210
+ }, "strict", z.ZodTypeAny, {
2211
+ applied: {
2212
+ state: "recorded";
2213
+ value: string;
2214
+ } | {
2215
+ state: "accepted_unrepresentable";
2216
+ };
2217
+ provenance: "adapter_default";
2218
+ }, {
2219
+ applied: {
2220
+ state: "recorded";
2221
+ value: string;
2222
+ } | {
2223
+ state: "accepted_unrepresentable";
2224
+ };
2225
+ provenance: "adapter_default";
2226
+ }>, z.ZodObject<{
2227
+ provenance: z.ZodLiteral<"cli_default_unknown">;
2228
+ }, "strict", z.ZodTypeAny, {
2229
+ provenance: "cli_default_unknown";
2230
+ }, {
2231
+ provenance: "cli_default_unknown";
2232
+ }>]>, {
2233
+ requested: {
2234
+ state: "recorded";
2235
+ value: string;
2236
+ } | {
2237
+ state: "accepted_unrepresentable";
2238
+ };
2239
+ applied: {
2240
+ state: "recorded";
2241
+ value: string;
2242
+ } | {
2243
+ state: "accepted_unrepresentable";
2244
+ };
2245
+ provenance: "caller_override";
2246
+ } | {
2247
+ applied: {
2248
+ state: "recorded";
2249
+ value: string;
2250
+ } | {
2251
+ state: "accepted_unrepresentable";
2252
+ };
2253
+ provenance: "adapter_pin";
2254
+ } | {
2255
+ applied: {
2256
+ state: "recorded";
2257
+ value: string;
2258
+ } | {
2259
+ state: "accepted_unrepresentable";
2260
+ };
2261
+ provenance: "adapter_default";
2262
+ } | {
2263
+ provenance: "cli_default_unknown";
2264
+ }, {
2265
+ requested: {
2266
+ state: "recorded";
2267
+ value: string;
2268
+ } | {
2269
+ state: "accepted_unrepresentable";
2270
+ };
2271
+ applied: {
2272
+ state: "recorded";
2273
+ value: string;
2274
+ } | {
2275
+ state: "accepted_unrepresentable";
2276
+ };
2277
+ provenance: "caller_override";
2278
+ } | {
2279
+ applied: {
2280
+ state: "recorded";
2281
+ value: string;
2282
+ } | {
2283
+ state: "accepted_unrepresentable";
2284
+ };
2285
+ provenance: "adapter_pin";
2286
+ } | {
2287
+ applied: {
2288
+ state: "recorded";
2289
+ value: string;
2290
+ } | {
2291
+ state: "accepted_unrepresentable";
2292
+ };
2293
+ provenance: "adapter_default";
2294
+ } | {
2295
+ provenance: "cli_default_unknown";
2296
+ }>>;
2297
+ }, "strict", z.ZodTypeAny, {
2298
+ schemaVersion: "clinkx-invocation-audit-v2";
2299
+ model?: {
2300
+ requested: {
2301
+ state: "recorded";
2302
+ value: string;
2303
+ } | {
2304
+ state: "accepted_unrepresentable";
2305
+ };
2306
+ applied: {
2307
+ state: "recorded";
2308
+ value: string;
2309
+ } | {
2310
+ state: "accepted_unrepresentable";
2311
+ };
2312
+ provenance: "caller_override";
2313
+ } | {
2314
+ applied: {
2315
+ state: "recorded";
2316
+ value: string;
2317
+ } | {
2318
+ state: "accepted_unrepresentable";
2319
+ };
2320
+ provenance: "adapter_pin";
2321
+ } | {
2322
+ applied: {
2323
+ state: "recorded";
2324
+ value: string;
2325
+ } | {
2326
+ state: "accepted_unrepresentable";
2327
+ };
2328
+ provenance: "adapter_default";
2329
+ } | {
2330
+ provenance: "cli_default_unknown";
2331
+ } | undefined;
2332
+ effort?: {
2333
+ requested: {
2334
+ state: "recorded";
2335
+ value: string;
2336
+ } | {
2337
+ state: "accepted_unrepresentable";
2338
+ };
2339
+ applied: {
2340
+ state: "recorded";
2341
+ value: string;
2342
+ } | {
2343
+ state: "accepted_unrepresentable";
2344
+ };
2345
+ provenance: "caller_override";
2346
+ } | {
2347
+ applied: {
2348
+ state: "recorded";
2349
+ value: string;
2350
+ } | {
2351
+ state: "accepted_unrepresentable";
2352
+ };
2353
+ provenance: "adapter_pin";
2354
+ } | {
2355
+ applied: {
2356
+ state: "recorded";
2357
+ value: string;
2358
+ } | {
2359
+ state: "accepted_unrepresentable";
2360
+ };
2361
+ provenance: "adapter_default";
2362
+ } | {
2363
+ provenance: "cli_default_unknown";
2364
+ } | undefined;
2365
+ }, {
2366
+ schemaVersion: "clinkx-invocation-audit-v2";
2367
+ model?: {
2368
+ requested: {
2369
+ state: "recorded";
2370
+ value: string;
2371
+ } | {
2372
+ state: "accepted_unrepresentable";
2373
+ };
2374
+ applied: {
2375
+ state: "recorded";
2376
+ value: string;
2377
+ } | {
2378
+ state: "accepted_unrepresentable";
2379
+ };
2380
+ provenance: "caller_override";
2381
+ } | {
2382
+ applied: {
2383
+ state: "recorded";
2384
+ value: string;
2385
+ } | {
2386
+ state: "accepted_unrepresentable";
2387
+ };
2388
+ provenance: "adapter_pin";
2389
+ } | {
2390
+ applied: {
2391
+ state: "recorded";
2392
+ value: string;
2393
+ } | {
2394
+ state: "accepted_unrepresentable";
2395
+ };
2396
+ provenance: "adapter_default";
2397
+ } | {
2398
+ provenance: "cli_default_unknown";
2399
+ } | undefined;
2400
+ effort?: {
2401
+ requested: {
2402
+ state: "recorded";
2403
+ value: string;
2404
+ } | {
2405
+ state: "accepted_unrepresentable";
2406
+ };
2407
+ applied: {
2408
+ state: "recorded";
2409
+ value: string;
2410
+ } | {
2411
+ state: "accepted_unrepresentable";
2412
+ };
2413
+ provenance: "caller_override";
2414
+ } | {
2415
+ applied: {
2416
+ state: "recorded";
2417
+ value: string;
2418
+ } | {
2419
+ state: "accepted_unrepresentable";
2420
+ };
2421
+ provenance: "adapter_pin";
2422
+ } | {
2423
+ applied: {
2424
+ state: "recorded";
2425
+ value: string;
2426
+ } | {
2427
+ state: "accepted_unrepresentable";
2428
+ };
2429
+ provenance: "adapter_default";
2430
+ } | {
2431
+ provenance: "cli_default_unknown";
2432
+ } | undefined;
2433
+ }>, {
2434
+ schemaVersion: "clinkx-invocation-audit-v2";
2435
+ model?: {
2436
+ requested: {
2437
+ state: "recorded";
2438
+ value: string;
2439
+ } | {
2440
+ state: "accepted_unrepresentable";
2441
+ };
2442
+ applied: {
2443
+ state: "recorded";
2444
+ value: string;
2445
+ } | {
2446
+ state: "accepted_unrepresentable";
2447
+ };
2448
+ provenance: "caller_override";
2449
+ } | {
2450
+ applied: {
2451
+ state: "recorded";
2452
+ value: string;
2453
+ } | {
2454
+ state: "accepted_unrepresentable";
2455
+ };
2456
+ provenance: "adapter_pin";
2457
+ } | {
2458
+ applied: {
2459
+ state: "recorded";
2460
+ value: string;
2461
+ } | {
2462
+ state: "accepted_unrepresentable";
2463
+ };
2464
+ provenance: "adapter_default";
2465
+ } | {
2466
+ provenance: "cli_default_unknown";
2467
+ } | undefined;
2468
+ effort?: {
2469
+ requested: {
2470
+ state: "recorded";
2471
+ value: string;
2472
+ } | {
2473
+ state: "accepted_unrepresentable";
2474
+ };
2475
+ applied: {
2476
+ state: "recorded";
2477
+ value: string;
2478
+ } | {
2479
+ state: "accepted_unrepresentable";
2480
+ };
2481
+ provenance: "caller_override";
2482
+ } | {
2483
+ applied: {
2484
+ state: "recorded";
2485
+ value: string;
2486
+ } | {
2487
+ state: "accepted_unrepresentable";
2488
+ };
2489
+ provenance: "adapter_pin";
2490
+ } | {
2491
+ applied: {
2492
+ state: "recorded";
2493
+ value: string;
2494
+ } | {
2495
+ state: "accepted_unrepresentable";
2496
+ };
2497
+ provenance: "adapter_default";
2498
+ } | {
2499
+ provenance: "cli_default_unknown";
2500
+ } | undefined;
2501
+ }, {
2502
+ schemaVersion: "clinkx-invocation-audit-v2";
2503
+ model?: {
2504
+ requested: {
2505
+ state: "recorded";
2506
+ value: string;
2507
+ } | {
2508
+ state: "accepted_unrepresentable";
2509
+ };
2510
+ applied: {
2511
+ state: "recorded";
2512
+ value: string;
2513
+ } | {
2514
+ state: "accepted_unrepresentable";
2515
+ };
2516
+ provenance: "caller_override";
2517
+ } | {
2518
+ applied: {
2519
+ state: "recorded";
2520
+ value: string;
2521
+ } | {
2522
+ state: "accepted_unrepresentable";
2523
+ };
2524
+ provenance: "adapter_pin";
2525
+ } | {
2526
+ applied: {
2527
+ state: "recorded";
2528
+ value: string;
2529
+ } | {
2530
+ state: "accepted_unrepresentable";
2531
+ };
2532
+ provenance: "adapter_default";
2533
+ } | {
2534
+ provenance: "cli_default_unknown";
2535
+ } | undefined;
2536
+ effort?: {
2537
+ requested: {
2538
+ state: "recorded";
2539
+ value: string;
2540
+ } | {
2541
+ state: "accepted_unrepresentable";
2542
+ };
2543
+ applied: {
2544
+ state: "recorded";
2545
+ value: string;
2546
+ } | {
2547
+ state: "accepted_unrepresentable";
2548
+ };
2549
+ provenance: "caller_override";
2550
+ } | {
2551
+ applied: {
2552
+ state: "recorded";
2553
+ value: string;
2554
+ } | {
2555
+ state: "accepted_unrepresentable";
2556
+ };
2557
+ provenance: "adapter_pin";
2558
+ } | {
2559
+ applied: {
2560
+ state: "recorded";
2561
+ value: string;
2562
+ } | {
2563
+ state: "accepted_unrepresentable";
2564
+ };
2565
+ provenance: "adapter_default";
2566
+ } | {
2567
+ provenance: "cli_default_unknown";
2568
+ } | undefined;
2569
+ }>, z.ZodObject<{
2570
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2571
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
2572
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
2573
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
2574
+ }, "strict", z.ZodTypeAny, {
2575
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2576
+ requested?: string | undefined;
2577
+ applied?: string | undefined;
2578
+ }, {
2579
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2580
+ requested?: string | undefined;
2581
+ applied?: string | undefined;
2582
+ }>, {
2583
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2584
+ requested?: string | undefined;
2585
+ applied?: string | undefined;
2586
+ }, {
2587
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2588
+ requested?: string | undefined;
2589
+ applied?: string | undefined;
2590
+ }>>;
2591
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
2592
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
2593
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
2594
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
2595
+ }, "strict", z.ZodTypeAny, {
2596
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2597
+ requested?: string | undefined;
2598
+ applied?: string | undefined;
2599
+ }, {
2600
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2601
+ requested?: string | undefined;
2602
+ applied?: string | undefined;
2603
+ }>, {
2604
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2605
+ requested?: string | undefined;
2606
+ applied?: string | undefined;
2607
+ }, {
2608
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2609
+ requested?: string | undefined;
2610
+ applied?: string | undefined;
2611
+ }>>;
2612
+ }, "strict", z.ZodTypeAny, {
2613
+ model?: {
2614
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2615
+ requested?: string | undefined;
2616
+ applied?: string | undefined;
2617
+ } | undefined;
2618
+ effort?: {
2619
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2620
+ requested?: string | undefined;
2621
+ applied?: string | undefined;
2622
+ } | undefined;
2623
+ }, {
2624
+ model?: {
2625
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2626
+ requested?: string | undefined;
2627
+ applied?: string | undefined;
2628
+ } | undefined;
2629
+ effort?: {
2630
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
2631
+ requested?: string | undefined;
2632
+ applied?: string | undefined;
2633
+ } | undefined;
2634
+ }>]>>;
2635
+ finalizer: z.ZodOptional<z.ZodUnion<[z.ZodEffects<z.ZodObject<{
2636
+ schemaVersion: z.ZodLiteral<"clinkx-invocation-audit-v2">;
2637
+ model: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
2638
+ provenance: z.ZodLiteral<"caller_override">;
2639
+ requested: z.ZodType<{
2640
+ state: "recorded";
2641
+ value: string;
2642
+ } | {
2643
+ state: "accepted_unrepresentable";
2644
+ }, z.ZodTypeDef, {
2645
+ state: "recorded";
2646
+ value: string;
2647
+ } | {
2648
+ state: "accepted_unrepresentable";
2649
+ }>;
2650
+ applied: z.ZodType<{
2651
+ state: "recorded";
2652
+ value: string;
2653
+ } | {
2654
+ state: "accepted_unrepresentable";
2655
+ }, z.ZodTypeDef, {
2656
+ state: "recorded";
2657
+ value: string;
2658
+ } | {
2659
+ state: "accepted_unrepresentable";
2660
+ }>;
2661
+ }, "strict", z.ZodTypeAny, {
2662
+ requested: {
2663
+ state: "recorded";
2664
+ value: string;
2665
+ } | {
2666
+ state: "accepted_unrepresentable";
2667
+ };
2668
+ applied: {
2669
+ state: "recorded";
2670
+ value: string;
2671
+ } | {
2672
+ state: "accepted_unrepresentable";
2673
+ };
2674
+ provenance: "caller_override";
2675
+ }, {
2676
+ requested: {
2677
+ state: "recorded";
2678
+ value: string;
2679
+ } | {
2680
+ state: "accepted_unrepresentable";
2681
+ };
2682
+ applied: {
2683
+ state: "recorded";
2684
+ value: string;
2685
+ } | {
2686
+ state: "accepted_unrepresentable";
2687
+ };
2688
+ provenance: "caller_override";
2689
+ }>, z.ZodObject<{
2690
+ provenance: z.ZodLiteral<"adapter_pin">;
2691
+ applied: z.ZodType<{
2692
+ state: "recorded";
2693
+ value: string;
2694
+ } | {
2695
+ state: "accepted_unrepresentable";
2696
+ }, z.ZodTypeDef, {
2697
+ state: "recorded";
2698
+ value: string;
2699
+ } | {
2700
+ state: "accepted_unrepresentable";
2701
+ }>;
2702
+ }, "strict", z.ZodTypeAny, {
2703
+ applied: {
2704
+ state: "recorded";
2705
+ value: string;
2706
+ } | {
2707
+ state: "accepted_unrepresentable";
2708
+ };
2709
+ provenance: "adapter_pin";
2710
+ }, {
2711
+ applied: {
2712
+ state: "recorded";
2713
+ value: string;
2714
+ } | {
2715
+ state: "accepted_unrepresentable";
2716
+ };
2717
+ provenance: "adapter_pin";
2718
+ }>, z.ZodObject<{
2719
+ provenance: z.ZodLiteral<"adapter_default">;
2720
+ applied: z.ZodType<{
2721
+ state: "recorded";
2722
+ value: string;
2723
+ } | {
2724
+ state: "accepted_unrepresentable";
2725
+ }, z.ZodTypeDef, {
2726
+ state: "recorded";
2727
+ value: string;
2728
+ } | {
2729
+ state: "accepted_unrepresentable";
2730
+ }>;
2731
+ }, "strict", z.ZodTypeAny, {
2732
+ applied: {
2733
+ state: "recorded";
2734
+ value: string;
2735
+ } | {
2736
+ state: "accepted_unrepresentable";
2737
+ };
2738
+ provenance: "adapter_default";
2739
+ }, {
2740
+ applied: {
2741
+ state: "recorded";
2742
+ value: string;
2743
+ } | {
2744
+ state: "accepted_unrepresentable";
2745
+ };
2746
+ provenance: "adapter_default";
2747
+ }>, z.ZodObject<{
2748
+ provenance: z.ZodLiteral<"cli_default_unknown">;
2749
+ }, "strict", z.ZodTypeAny, {
2750
+ provenance: "cli_default_unknown";
2751
+ }, {
2752
+ provenance: "cli_default_unknown";
2753
+ }>]>, {
2754
+ requested: {
2755
+ state: "recorded";
2756
+ value: string;
2757
+ } | {
2758
+ state: "accepted_unrepresentable";
2759
+ };
2760
+ applied: {
2761
+ state: "recorded";
2762
+ value: string;
2763
+ } | {
2764
+ state: "accepted_unrepresentable";
2765
+ };
2766
+ provenance: "caller_override";
2767
+ } | {
2768
+ applied: {
2769
+ state: "recorded";
2770
+ value: string;
2771
+ } | {
2772
+ state: "accepted_unrepresentable";
2773
+ };
2774
+ provenance: "adapter_pin";
2775
+ } | {
2776
+ applied: {
2777
+ state: "recorded";
2778
+ value: string;
2779
+ } | {
2780
+ state: "accepted_unrepresentable";
2781
+ };
2782
+ provenance: "adapter_default";
2783
+ } | {
2784
+ provenance: "cli_default_unknown";
2785
+ }, {
2786
+ requested: {
2787
+ state: "recorded";
2788
+ value: string;
2789
+ } | {
2790
+ state: "accepted_unrepresentable";
2791
+ };
2792
+ applied: {
2793
+ state: "recorded";
2794
+ value: string;
2795
+ } | {
2796
+ state: "accepted_unrepresentable";
2797
+ };
2798
+ provenance: "caller_override";
2799
+ } | {
2800
+ applied: {
2801
+ state: "recorded";
2802
+ value: string;
2803
+ } | {
2804
+ state: "accepted_unrepresentable";
2805
+ };
2806
+ provenance: "adapter_pin";
2807
+ } | {
2808
+ applied: {
2809
+ state: "recorded";
2810
+ value: string;
2811
+ } | {
2812
+ state: "accepted_unrepresentable";
2813
+ };
2814
+ provenance: "adapter_default";
2815
+ } | {
2816
+ provenance: "cli_default_unknown";
2817
+ }>>;
2818
+ effort: z.ZodOptional<z.ZodEffects<z.ZodDiscriminatedUnion<"provenance", [z.ZodObject<{
2819
+ provenance: z.ZodLiteral<"caller_override">;
2820
+ requested: z.ZodType<{
2821
+ state: "recorded";
2822
+ value: string;
2823
+ } | {
2824
+ state: "accepted_unrepresentable";
2825
+ }, z.ZodTypeDef, {
2826
+ state: "recorded";
2827
+ value: string;
2828
+ } | {
2829
+ state: "accepted_unrepresentable";
2830
+ }>;
2831
+ applied: z.ZodType<{
2832
+ state: "recorded";
2833
+ value: string;
2834
+ } | {
2835
+ state: "accepted_unrepresentable";
2836
+ }, z.ZodTypeDef, {
2837
+ state: "recorded";
2838
+ value: string;
2839
+ } | {
2840
+ state: "accepted_unrepresentable";
2841
+ }>;
2842
+ }, "strict", z.ZodTypeAny, {
2843
+ requested: {
2844
+ state: "recorded";
2845
+ value: string;
2846
+ } | {
2847
+ state: "accepted_unrepresentable";
2848
+ };
2849
+ applied: {
2850
+ state: "recorded";
2851
+ value: string;
2852
+ } | {
2853
+ state: "accepted_unrepresentable";
2854
+ };
2855
+ provenance: "caller_override";
2856
+ }, {
2857
+ requested: {
2858
+ state: "recorded";
2859
+ value: string;
2860
+ } | {
2861
+ state: "accepted_unrepresentable";
2862
+ };
2863
+ applied: {
2864
+ state: "recorded";
2865
+ value: string;
2866
+ } | {
2867
+ state: "accepted_unrepresentable";
2868
+ };
2869
+ provenance: "caller_override";
2870
+ }>, z.ZodObject<{
2871
+ provenance: z.ZodLiteral<"adapter_pin">;
2872
+ applied: z.ZodType<{
2873
+ state: "recorded";
2874
+ value: string;
2875
+ } | {
2876
+ state: "accepted_unrepresentable";
2877
+ }, z.ZodTypeDef, {
2878
+ state: "recorded";
2879
+ value: string;
2880
+ } | {
2881
+ state: "accepted_unrepresentable";
2882
+ }>;
2883
+ }, "strict", z.ZodTypeAny, {
2884
+ applied: {
2885
+ state: "recorded";
2886
+ value: string;
2887
+ } | {
2888
+ state: "accepted_unrepresentable";
2889
+ };
2890
+ provenance: "adapter_pin";
2891
+ }, {
2892
+ applied: {
2893
+ state: "recorded";
2894
+ value: string;
2895
+ } | {
2896
+ state: "accepted_unrepresentable";
2897
+ };
2898
+ provenance: "adapter_pin";
2899
+ }>, z.ZodObject<{
2900
+ provenance: z.ZodLiteral<"adapter_default">;
2901
+ applied: z.ZodType<{
2902
+ state: "recorded";
2903
+ value: string;
2904
+ } | {
2905
+ state: "accepted_unrepresentable";
2906
+ }, z.ZodTypeDef, {
2907
+ state: "recorded";
2908
+ value: string;
2909
+ } | {
2910
+ state: "accepted_unrepresentable";
2911
+ }>;
2912
+ }, "strict", z.ZodTypeAny, {
2913
+ applied: {
2914
+ state: "recorded";
2915
+ value: string;
2916
+ } | {
2917
+ state: "accepted_unrepresentable";
2918
+ };
2919
+ provenance: "adapter_default";
2920
+ }, {
2921
+ applied: {
2922
+ state: "recorded";
2923
+ value: string;
2924
+ } | {
2925
+ state: "accepted_unrepresentable";
2926
+ };
2927
+ provenance: "adapter_default";
2928
+ }>, z.ZodObject<{
2929
+ provenance: z.ZodLiteral<"cli_default_unknown">;
2930
+ }, "strict", z.ZodTypeAny, {
2931
+ provenance: "cli_default_unknown";
2932
+ }, {
2933
+ provenance: "cli_default_unknown";
2934
+ }>]>, {
2935
+ requested: {
2936
+ state: "recorded";
2937
+ value: string;
2938
+ } | {
2939
+ state: "accepted_unrepresentable";
2940
+ };
2941
+ applied: {
2942
+ state: "recorded";
2943
+ value: string;
2944
+ } | {
2945
+ state: "accepted_unrepresentable";
2946
+ };
2947
+ provenance: "caller_override";
2948
+ } | {
2949
+ applied: {
2950
+ state: "recorded";
2951
+ value: string;
2952
+ } | {
2953
+ state: "accepted_unrepresentable";
2954
+ };
2955
+ provenance: "adapter_pin";
2956
+ } | {
2957
+ applied: {
2958
+ state: "recorded";
2959
+ value: string;
2960
+ } | {
2961
+ state: "accepted_unrepresentable";
2962
+ };
2963
+ provenance: "adapter_default";
2964
+ } | {
2965
+ provenance: "cli_default_unknown";
2966
+ }, {
2967
+ requested: {
2968
+ state: "recorded";
2969
+ value: string;
2970
+ } | {
2971
+ state: "accepted_unrepresentable";
2972
+ };
2973
+ applied: {
2974
+ state: "recorded";
2975
+ value: string;
2976
+ } | {
2977
+ state: "accepted_unrepresentable";
2978
+ };
2979
+ provenance: "caller_override";
2980
+ } | {
2981
+ applied: {
2982
+ state: "recorded";
2983
+ value: string;
2984
+ } | {
2985
+ state: "accepted_unrepresentable";
2986
+ };
2987
+ provenance: "adapter_pin";
2988
+ } | {
2989
+ applied: {
2990
+ state: "recorded";
2991
+ value: string;
2992
+ } | {
2993
+ state: "accepted_unrepresentable";
2994
+ };
2995
+ provenance: "adapter_default";
2996
+ } | {
2997
+ provenance: "cli_default_unknown";
2998
+ }>>;
2999
+ }, "strict", z.ZodTypeAny, {
3000
+ schemaVersion: "clinkx-invocation-audit-v2";
3001
+ model?: {
3002
+ requested: {
3003
+ state: "recorded";
3004
+ value: string;
3005
+ } | {
3006
+ state: "accepted_unrepresentable";
3007
+ };
3008
+ applied: {
3009
+ state: "recorded";
3010
+ value: string;
3011
+ } | {
3012
+ state: "accepted_unrepresentable";
3013
+ };
3014
+ provenance: "caller_override";
3015
+ } | {
3016
+ applied: {
3017
+ state: "recorded";
3018
+ value: string;
3019
+ } | {
3020
+ state: "accepted_unrepresentable";
3021
+ };
3022
+ provenance: "adapter_pin";
3023
+ } | {
3024
+ applied: {
3025
+ state: "recorded";
3026
+ value: string;
3027
+ } | {
3028
+ state: "accepted_unrepresentable";
3029
+ };
3030
+ provenance: "adapter_default";
3031
+ } | {
3032
+ provenance: "cli_default_unknown";
3033
+ } | undefined;
3034
+ effort?: {
3035
+ requested: {
3036
+ state: "recorded";
3037
+ value: string;
3038
+ } | {
3039
+ state: "accepted_unrepresentable";
3040
+ };
3041
+ applied: {
3042
+ state: "recorded";
3043
+ value: string;
3044
+ } | {
3045
+ state: "accepted_unrepresentable";
3046
+ };
3047
+ provenance: "caller_override";
3048
+ } | {
3049
+ applied: {
3050
+ state: "recorded";
3051
+ value: string;
3052
+ } | {
3053
+ state: "accepted_unrepresentable";
3054
+ };
3055
+ provenance: "adapter_pin";
3056
+ } | {
3057
+ applied: {
3058
+ state: "recorded";
3059
+ value: string;
3060
+ } | {
3061
+ state: "accepted_unrepresentable";
3062
+ };
3063
+ provenance: "adapter_default";
3064
+ } | {
3065
+ provenance: "cli_default_unknown";
3066
+ } | undefined;
3067
+ }, {
3068
+ schemaVersion: "clinkx-invocation-audit-v2";
3069
+ model?: {
3070
+ requested: {
3071
+ state: "recorded";
3072
+ value: string;
3073
+ } | {
3074
+ state: "accepted_unrepresentable";
3075
+ };
3076
+ applied: {
3077
+ state: "recorded";
3078
+ value: string;
3079
+ } | {
3080
+ state: "accepted_unrepresentable";
3081
+ };
3082
+ provenance: "caller_override";
3083
+ } | {
3084
+ applied: {
3085
+ state: "recorded";
3086
+ value: string;
3087
+ } | {
3088
+ state: "accepted_unrepresentable";
3089
+ };
3090
+ provenance: "adapter_pin";
3091
+ } | {
3092
+ applied: {
3093
+ state: "recorded";
3094
+ value: string;
3095
+ } | {
3096
+ state: "accepted_unrepresentable";
3097
+ };
3098
+ provenance: "adapter_default";
3099
+ } | {
3100
+ provenance: "cli_default_unknown";
3101
+ } | undefined;
3102
+ effort?: {
3103
+ requested: {
3104
+ state: "recorded";
3105
+ value: string;
3106
+ } | {
3107
+ state: "accepted_unrepresentable";
3108
+ };
3109
+ applied: {
3110
+ state: "recorded";
3111
+ value: string;
3112
+ } | {
3113
+ state: "accepted_unrepresentable";
3114
+ };
3115
+ provenance: "caller_override";
3116
+ } | {
3117
+ applied: {
3118
+ state: "recorded";
3119
+ value: string;
3120
+ } | {
3121
+ state: "accepted_unrepresentable";
3122
+ };
3123
+ provenance: "adapter_pin";
3124
+ } | {
3125
+ applied: {
3126
+ state: "recorded";
3127
+ value: string;
3128
+ } | {
3129
+ state: "accepted_unrepresentable";
3130
+ };
3131
+ provenance: "adapter_default";
3132
+ } | {
3133
+ provenance: "cli_default_unknown";
3134
+ } | undefined;
3135
+ }>, {
3136
+ schemaVersion: "clinkx-invocation-audit-v2";
3137
+ model?: {
3138
+ requested: {
3139
+ state: "recorded";
3140
+ value: string;
3141
+ } | {
3142
+ state: "accepted_unrepresentable";
3143
+ };
3144
+ applied: {
3145
+ state: "recorded";
3146
+ value: string;
3147
+ } | {
3148
+ state: "accepted_unrepresentable";
3149
+ };
3150
+ provenance: "caller_override";
3151
+ } | {
3152
+ applied: {
3153
+ state: "recorded";
3154
+ value: string;
3155
+ } | {
3156
+ state: "accepted_unrepresentable";
3157
+ };
3158
+ provenance: "adapter_pin";
3159
+ } | {
3160
+ applied: {
3161
+ state: "recorded";
3162
+ value: string;
3163
+ } | {
3164
+ state: "accepted_unrepresentable";
3165
+ };
3166
+ provenance: "adapter_default";
3167
+ } | {
3168
+ provenance: "cli_default_unknown";
3169
+ } | undefined;
3170
+ effort?: {
3171
+ requested: {
3172
+ state: "recorded";
3173
+ value: string;
3174
+ } | {
3175
+ state: "accepted_unrepresentable";
3176
+ };
3177
+ applied: {
3178
+ state: "recorded";
3179
+ value: string;
3180
+ } | {
3181
+ state: "accepted_unrepresentable";
3182
+ };
3183
+ provenance: "caller_override";
3184
+ } | {
3185
+ applied: {
3186
+ state: "recorded";
3187
+ value: string;
3188
+ } | {
3189
+ state: "accepted_unrepresentable";
3190
+ };
3191
+ provenance: "adapter_pin";
3192
+ } | {
3193
+ applied: {
3194
+ state: "recorded";
3195
+ value: string;
3196
+ } | {
3197
+ state: "accepted_unrepresentable";
3198
+ };
3199
+ provenance: "adapter_default";
3200
+ } | {
3201
+ provenance: "cli_default_unknown";
3202
+ } | undefined;
3203
+ }, {
3204
+ schemaVersion: "clinkx-invocation-audit-v2";
3205
+ model?: {
3206
+ requested: {
3207
+ state: "recorded";
3208
+ value: string;
3209
+ } | {
3210
+ state: "accepted_unrepresentable";
3211
+ };
3212
+ applied: {
3213
+ state: "recorded";
3214
+ value: string;
3215
+ } | {
3216
+ state: "accepted_unrepresentable";
3217
+ };
3218
+ provenance: "caller_override";
3219
+ } | {
3220
+ applied: {
3221
+ state: "recorded";
3222
+ value: string;
3223
+ } | {
3224
+ state: "accepted_unrepresentable";
3225
+ };
3226
+ provenance: "adapter_pin";
3227
+ } | {
3228
+ applied: {
3229
+ state: "recorded";
3230
+ value: string;
3231
+ } | {
3232
+ state: "accepted_unrepresentable";
3233
+ };
3234
+ provenance: "adapter_default";
3235
+ } | {
3236
+ provenance: "cli_default_unknown";
3237
+ } | undefined;
3238
+ effort?: {
3239
+ requested: {
3240
+ state: "recorded";
3241
+ value: string;
3242
+ } | {
3243
+ state: "accepted_unrepresentable";
3244
+ };
3245
+ applied: {
3246
+ state: "recorded";
3247
+ value: string;
3248
+ } | {
3249
+ state: "accepted_unrepresentable";
3250
+ };
3251
+ provenance: "caller_override";
3252
+ } | {
3253
+ applied: {
3254
+ state: "recorded";
3255
+ value: string;
3256
+ } | {
3257
+ state: "accepted_unrepresentable";
3258
+ };
3259
+ provenance: "adapter_pin";
3260
+ } | {
3261
+ applied: {
3262
+ state: "recorded";
3263
+ value: string;
3264
+ } | {
3265
+ state: "accepted_unrepresentable";
3266
+ };
3267
+ provenance: "adapter_default";
3268
+ } | {
3269
+ provenance: "cli_default_unknown";
3270
+ } | undefined;
3271
+ }>, z.ZodObject<{
3272
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3273
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3274
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3275
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3276
+ }, "strict", z.ZodTypeAny, {
3277
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3278
+ requested?: string | undefined;
3279
+ applied?: string | undefined;
3280
+ }, {
3281
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3282
+ requested?: string | undefined;
3283
+ applied?: string | undefined;
3284
+ }>, {
3285
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3286
+ requested?: string | undefined;
3287
+ applied?: string | undefined;
3288
+ }, {
3289
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3290
+ requested?: string | undefined;
3291
+ applied?: string | undefined;
3292
+ }>>;
3293
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3294
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3295
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3296
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3297
+ }, "strict", z.ZodTypeAny, {
3298
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3299
+ requested?: string | undefined;
3300
+ applied?: string | undefined;
3301
+ }, {
3302
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3303
+ requested?: string | undefined;
3304
+ applied?: string | undefined;
3305
+ }>, {
3306
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3307
+ requested?: string | undefined;
3308
+ applied?: string | undefined;
3309
+ }, {
3310
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3311
+ requested?: string | undefined;
3312
+ applied?: string | undefined;
3313
+ }>>;
3314
+ }, "strict", z.ZodTypeAny, {
3315
+ model?: {
3316
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3317
+ requested?: string | undefined;
3318
+ applied?: string | undefined;
3319
+ } | undefined;
3320
+ effort?: {
3321
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3322
+ requested?: string | undefined;
3323
+ applied?: string | undefined;
3324
+ } | undefined;
3325
+ }, {
3326
+ model?: {
3327
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3328
+ requested?: string | undefined;
3329
+ applied?: string | undefined;
3330
+ } | undefined;
3331
+ effort?: {
3332
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3333
+ requested?: string | undefined;
3334
+ applied?: string | undefined;
3335
+ } | undefined;
3336
+ }>]>>;
3337
+ }, "strict", z.ZodTypeAny, {
3338
+ schema_version: "context-builder-invocation-audit-v2";
3339
+ curator?: {
3340
+ model?: {
3341
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3342
+ requested?: string | undefined;
3343
+ applied?: string | undefined;
3344
+ } | undefined;
3345
+ effort?: {
3346
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3347
+ requested?: string | undefined;
3348
+ applied?: string | undefined;
3349
+ } | undefined;
3350
+ } | {
3351
+ schemaVersion: "clinkx-invocation-audit-v2";
3352
+ model?: {
3353
+ requested: {
3354
+ state: "recorded";
3355
+ value: string;
3356
+ } | {
3357
+ state: "accepted_unrepresentable";
3358
+ };
3359
+ applied: {
3360
+ state: "recorded";
3361
+ value: string;
3362
+ } | {
3363
+ state: "accepted_unrepresentable";
3364
+ };
3365
+ provenance: "caller_override";
3366
+ } | {
3367
+ applied: {
3368
+ state: "recorded";
3369
+ value: string;
3370
+ } | {
3371
+ state: "accepted_unrepresentable";
3372
+ };
3373
+ provenance: "adapter_pin";
3374
+ } | {
3375
+ applied: {
3376
+ state: "recorded";
3377
+ value: string;
3378
+ } | {
3379
+ state: "accepted_unrepresentable";
3380
+ };
3381
+ provenance: "adapter_default";
3382
+ } | {
3383
+ provenance: "cli_default_unknown";
3384
+ } | undefined;
3385
+ effort?: {
3386
+ requested: {
3387
+ state: "recorded";
3388
+ value: string;
3389
+ } | {
3390
+ state: "accepted_unrepresentable";
3391
+ };
3392
+ applied: {
3393
+ state: "recorded";
3394
+ value: string;
3395
+ } | {
3396
+ state: "accepted_unrepresentable";
3397
+ };
3398
+ provenance: "caller_override";
3399
+ } | {
3400
+ applied: {
3401
+ state: "recorded";
3402
+ value: string;
3403
+ } | {
3404
+ state: "accepted_unrepresentable";
3405
+ };
3406
+ provenance: "adapter_pin";
3407
+ } | {
3408
+ applied: {
3409
+ state: "recorded";
3410
+ value: string;
3411
+ } | {
3412
+ state: "accepted_unrepresentable";
3413
+ };
3414
+ provenance: "adapter_default";
3415
+ } | {
3416
+ provenance: "cli_default_unknown";
3417
+ } | undefined;
3418
+ } | undefined;
3419
+ finalizer?: {
3420
+ model?: {
3421
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3422
+ requested?: string | undefined;
3423
+ applied?: string | undefined;
3424
+ } | undefined;
3425
+ effort?: {
3426
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3427
+ requested?: string | undefined;
3428
+ applied?: string | undefined;
3429
+ } | undefined;
3430
+ } | {
3431
+ schemaVersion: "clinkx-invocation-audit-v2";
3432
+ model?: {
3433
+ requested: {
3434
+ state: "recorded";
3435
+ value: string;
3436
+ } | {
3437
+ state: "accepted_unrepresentable";
3438
+ };
3439
+ applied: {
3440
+ state: "recorded";
3441
+ value: string;
3442
+ } | {
3443
+ state: "accepted_unrepresentable";
3444
+ };
3445
+ provenance: "caller_override";
3446
+ } | {
3447
+ applied: {
3448
+ state: "recorded";
3449
+ value: string;
3450
+ } | {
3451
+ state: "accepted_unrepresentable";
3452
+ };
3453
+ provenance: "adapter_pin";
3454
+ } | {
3455
+ applied: {
3456
+ state: "recorded";
3457
+ value: string;
3458
+ } | {
3459
+ state: "accepted_unrepresentable";
3460
+ };
3461
+ provenance: "adapter_default";
3462
+ } | {
3463
+ provenance: "cli_default_unknown";
3464
+ } | undefined;
3465
+ effort?: {
3466
+ requested: {
3467
+ state: "recorded";
3468
+ value: string;
3469
+ } | {
3470
+ state: "accepted_unrepresentable";
3471
+ };
3472
+ applied: {
3473
+ state: "recorded";
3474
+ value: string;
3475
+ } | {
3476
+ state: "accepted_unrepresentable";
3477
+ };
3478
+ provenance: "caller_override";
3479
+ } | {
3480
+ applied: {
3481
+ state: "recorded";
3482
+ value: string;
3483
+ } | {
3484
+ state: "accepted_unrepresentable";
3485
+ };
3486
+ provenance: "adapter_pin";
3487
+ } | {
3488
+ applied: {
3489
+ state: "recorded";
3490
+ value: string;
3491
+ } | {
3492
+ state: "accepted_unrepresentable";
3493
+ };
3494
+ provenance: "adapter_default";
3495
+ } | {
3496
+ provenance: "cli_default_unknown";
3497
+ } | undefined;
3498
+ } | undefined;
3499
+ }, {
3500
+ schema_version: "context-builder-invocation-audit-v2";
3501
+ curator?: {
3502
+ model?: {
3503
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3504
+ requested?: string | undefined;
3505
+ applied?: string | undefined;
3506
+ } | undefined;
3507
+ effort?: {
3508
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3509
+ requested?: string | undefined;
3510
+ applied?: string | undefined;
3511
+ } | undefined;
3512
+ } | {
3513
+ schemaVersion: "clinkx-invocation-audit-v2";
3514
+ model?: {
3515
+ requested: {
3516
+ state: "recorded";
3517
+ value: string;
3518
+ } | {
3519
+ state: "accepted_unrepresentable";
3520
+ };
3521
+ applied: {
3522
+ state: "recorded";
3523
+ value: string;
3524
+ } | {
3525
+ state: "accepted_unrepresentable";
3526
+ };
3527
+ provenance: "caller_override";
3528
+ } | {
3529
+ applied: {
3530
+ state: "recorded";
3531
+ value: string;
3532
+ } | {
3533
+ state: "accepted_unrepresentable";
3534
+ };
3535
+ provenance: "adapter_pin";
3536
+ } | {
3537
+ applied: {
3538
+ state: "recorded";
3539
+ value: string;
3540
+ } | {
3541
+ state: "accepted_unrepresentable";
3542
+ };
3543
+ provenance: "adapter_default";
3544
+ } | {
3545
+ provenance: "cli_default_unknown";
3546
+ } | undefined;
3547
+ effort?: {
3548
+ requested: {
3549
+ state: "recorded";
3550
+ value: string;
3551
+ } | {
3552
+ state: "accepted_unrepresentable";
3553
+ };
3554
+ applied: {
3555
+ state: "recorded";
3556
+ value: string;
3557
+ } | {
3558
+ state: "accepted_unrepresentable";
3559
+ };
3560
+ provenance: "caller_override";
3561
+ } | {
3562
+ applied: {
3563
+ state: "recorded";
3564
+ value: string;
3565
+ } | {
3566
+ state: "accepted_unrepresentable";
3567
+ };
3568
+ provenance: "adapter_pin";
3569
+ } | {
3570
+ applied: {
3571
+ state: "recorded";
3572
+ value: string;
3573
+ } | {
3574
+ state: "accepted_unrepresentable";
3575
+ };
3576
+ provenance: "adapter_default";
3577
+ } | {
3578
+ provenance: "cli_default_unknown";
3579
+ } | undefined;
3580
+ } | undefined;
3581
+ finalizer?: {
3582
+ model?: {
3583
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3584
+ requested?: string | undefined;
3585
+ applied?: string | undefined;
3586
+ } | undefined;
3587
+ effort?: {
3588
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3589
+ requested?: string | undefined;
3590
+ applied?: string | undefined;
3591
+ } | undefined;
3592
+ } | {
3593
+ schemaVersion: "clinkx-invocation-audit-v2";
3594
+ model?: {
3595
+ requested: {
3596
+ state: "recorded";
3597
+ value: string;
3598
+ } | {
3599
+ state: "accepted_unrepresentable";
3600
+ };
3601
+ applied: {
3602
+ state: "recorded";
3603
+ value: string;
3604
+ } | {
3605
+ state: "accepted_unrepresentable";
3606
+ };
3607
+ provenance: "caller_override";
3608
+ } | {
3609
+ applied: {
3610
+ state: "recorded";
3611
+ value: string;
3612
+ } | {
3613
+ state: "accepted_unrepresentable";
3614
+ };
3615
+ provenance: "adapter_pin";
3616
+ } | {
3617
+ applied: {
3618
+ state: "recorded";
3619
+ value: string;
3620
+ } | {
3621
+ state: "accepted_unrepresentable";
3622
+ };
3623
+ provenance: "adapter_default";
3624
+ } | {
3625
+ provenance: "cli_default_unknown";
3626
+ } | undefined;
3627
+ effort?: {
3628
+ requested: {
3629
+ state: "recorded";
3630
+ value: string;
3631
+ } | {
3632
+ state: "accepted_unrepresentable";
3633
+ };
3634
+ applied: {
3635
+ state: "recorded";
3636
+ value: string;
3637
+ } | {
3638
+ state: "accepted_unrepresentable";
3639
+ };
3640
+ provenance: "caller_override";
3641
+ } | {
3642
+ applied: {
3643
+ state: "recorded";
3644
+ value: string;
3645
+ } | {
3646
+ state: "accepted_unrepresentable";
3647
+ };
3648
+ provenance: "adapter_pin";
3649
+ } | {
3650
+ applied: {
3651
+ state: "recorded";
3652
+ value: string;
3653
+ } | {
3654
+ state: "accepted_unrepresentable";
3655
+ };
3656
+ provenance: "adapter_default";
3657
+ } | {
3658
+ provenance: "cli_default_unknown";
3659
+ } | undefined;
3660
+ } | undefined;
3661
+ }>, z.ZodObject<{
3662
+ schema_version: z.ZodLiteral<"context-builder-invocation-audit-v1">;
3663
+ curator: z.ZodOptional<z.ZodObject<{
3664
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3665
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3666
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3667
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3668
+ }, "strict", z.ZodTypeAny, {
3669
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3670
+ requested?: string | undefined;
3671
+ applied?: string | undefined;
3672
+ }, {
3673
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3674
+ requested?: string | undefined;
3675
+ applied?: string | undefined;
3676
+ }>, {
3677
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3678
+ requested?: string | undefined;
3679
+ applied?: string | undefined;
3680
+ }, {
3681
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3682
+ requested?: string | undefined;
3683
+ applied?: string | undefined;
3684
+ }>>;
3685
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3686
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3687
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3688
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3689
+ }, "strict", z.ZodTypeAny, {
3690
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3691
+ requested?: string | undefined;
3692
+ applied?: string | undefined;
3693
+ }, {
3694
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3695
+ requested?: string | undefined;
3696
+ applied?: string | undefined;
3697
+ }>, {
3698
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3699
+ requested?: string | undefined;
3700
+ applied?: string | undefined;
3701
+ }, {
3702
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3703
+ requested?: string | undefined;
3704
+ applied?: string | undefined;
3705
+ }>>;
3706
+ }, "strict", z.ZodTypeAny, {
3707
+ model?: {
3708
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3709
+ requested?: string | undefined;
3710
+ applied?: string | undefined;
3711
+ } | undefined;
3712
+ effort?: {
3713
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3714
+ requested?: string | undefined;
3715
+ applied?: string | undefined;
3716
+ } | undefined;
3717
+ }, {
3718
+ model?: {
3719
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3720
+ requested?: string | undefined;
3721
+ applied?: string | undefined;
3722
+ } | undefined;
3723
+ effort?: {
3724
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3725
+ requested?: string | undefined;
3726
+ applied?: string | undefined;
3727
+ } | undefined;
3728
+ }>>;
3729
+ finalizer: z.ZodOptional<z.ZodObject<{
3730
+ model: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3731
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3732
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3733
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3734
+ }, "strict", z.ZodTypeAny, {
3735
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3736
+ requested?: string | undefined;
3737
+ applied?: string | undefined;
3738
+ }, {
3739
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3740
+ requested?: string | undefined;
3741
+ applied?: string | undefined;
3742
+ }>, {
3743
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3744
+ requested?: string | undefined;
3745
+ applied?: string | undefined;
3746
+ }, {
3747
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3748
+ requested?: string | undefined;
3749
+ applied?: string | undefined;
3750
+ }>>;
3751
+ effort: z.ZodOptional<z.ZodEffects<z.ZodObject<{
3752
+ requested: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3753
+ applied: z.ZodOptional<z.ZodType<string, z.ZodTypeDef, string>>;
3754
+ provenance: z.ZodEnum<["caller_override", "adapter_pin", "cli_default_unknown"]>;
3755
+ }, "strict", z.ZodTypeAny, {
3756
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3757
+ requested?: string | undefined;
3758
+ applied?: string | undefined;
3759
+ }, {
3760
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3761
+ requested?: string | undefined;
3762
+ applied?: string | undefined;
3763
+ }>, {
3764
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3765
+ requested?: string | undefined;
3766
+ applied?: string | undefined;
3767
+ }, {
3768
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3769
+ requested?: string | undefined;
3770
+ applied?: string | undefined;
3771
+ }>>;
3772
+ }, "strict", z.ZodTypeAny, {
3773
+ model?: {
3774
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3775
+ requested?: string | undefined;
3776
+ applied?: string | undefined;
3777
+ } | undefined;
3778
+ effort?: {
3779
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3780
+ requested?: string | undefined;
3781
+ applied?: string | undefined;
3782
+ } | undefined;
3783
+ }, {
3784
+ model?: {
3785
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3786
+ requested?: string | undefined;
3787
+ applied?: string | undefined;
3788
+ } | undefined;
3789
+ effort?: {
3790
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3791
+ requested?: string | undefined;
3792
+ applied?: string | undefined;
3793
+ } | undefined;
3794
+ }>>;
3795
+ }, "strict", z.ZodTypeAny, {
3796
+ schema_version: "context-builder-invocation-audit-v1";
3797
+ curator?: {
3798
+ model?: {
3799
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3800
+ requested?: string | undefined;
3801
+ applied?: string | undefined;
3802
+ } | undefined;
3803
+ effort?: {
3804
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3805
+ requested?: string | undefined;
3806
+ applied?: string | undefined;
3807
+ } | undefined;
3808
+ } | undefined;
3809
+ finalizer?: {
3810
+ model?: {
3811
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3812
+ requested?: string | undefined;
3813
+ applied?: string | undefined;
3814
+ } | undefined;
3815
+ effort?: {
3816
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3817
+ requested?: string | undefined;
3818
+ applied?: string | undefined;
3819
+ } | undefined;
3820
+ } | undefined;
3821
+ }, {
3822
+ schema_version: "context-builder-invocation-audit-v1";
3823
+ curator?: {
3824
+ model?: {
3825
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3826
+ requested?: string | undefined;
3827
+ applied?: string | undefined;
3828
+ } | undefined;
3829
+ effort?: {
3830
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3831
+ requested?: string | undefined;
3832
+ applied?: string | undefined;
3833
+ } | undefined;
3834
+ } | undefined;
3835
+ finalizer?: {
3836
+ model?: {
3837
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3838
+ requested?: string | undefined;
3839
+ applied?: string | undefined;
3840
+ } | undefined;
3841
+ effort?: {
3842
+ provenance: "caller_override" | "adapter_pin" | "cli_default_unknown";
3843
+ requested?: string | undefined;
3844
+ applied?: string | undefined;
3845
+ } | undefined;
3846
+ } | undefined;
3847
+ }>]>;
3848
+ export type ContextBuilderInvocationAuditV1 = z.infer<typeof ContextBuilderInvocationAuditV1Schema>;
3849
+ export type ContextBuilderInvocationAuditV2 = z.infer<typeof ContextBuilderInvocationAuditV2Schema>;
3850
+ export type ContextBuilderInvocationAuditRead = z.infer<typeof ContextBuilderInvocationAuditReadSchema>;
3851
+ /**
3852
+ * Decode persisted audit bytes without repairing malformed UTF-8. Keeping the
3853
+ * BOM as data preserves the prior JSON rejection behavior, while the explicit
3854
+ * roundtrip makes byte-preserving promotion and snapshot publication provable.
3855
+ */
3856
+ export declare function decodeContextBuilderInvocationAuditBytes(bytes: Uint8Array): Readonly<{
3857
+ document: ContextBuilderInvocationAuditRead;
3858
+ serialized: string;
3859
+ }>;
3860
+ export declare function workflowContextBuilderInvocationAuditRelativePath(contextRunId: string): string;
3861
+ /**
3862
+ * Encode canonical V2 bytes and enforce the same cap used by contained-file
3863
+ * readers. Callers decide whether an over-cap write is best-effort or fatal.
3864
+ */
3865
+ export declare function serializeContextBuilderInvocationAuditV2(document: ContextBuilderInvocationAuditV2): string;