@intentius/chant 0.100.0 → 0.102.0

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 (608) hide show
  1. package/dist/agents/checks.d.ts.map +1 -1
  2. package/dist/attrref.d.ts.map +1 -1
  3. package/dist/audit/discover.d.ts.map +1 -1
  4. package/dist/audit/nginx.d.ts.map +1 -1
  5. package/dist/audit/prior-art.d.ts +48 -0
  6. package/dist/audit/prior-art.d.ts.map +1 -1
  7. package/dist/behaviour-kinds.d.ts.map +1 -1
  8. package/dist/build.d.ts +6 -0
  9. package/dist/build.d.ts.map +1 -1
  10. package/dist/builder.d.ts.map +1 -1
  11. package/dist/cli/build-options.d.ts +2 -0
  12. package/dist/cli/build-options.d.ts.map +1 -1
  13. package/dist/cli/commands/build.d.ts.map +1 -1
  14. package/dist/cli/commands/carve-emit.d.ts.map +1 -1
  15. package/dist/cli/commands/check-lexicon.d.ts +16 -0
  16. package/dist/cli/commands/check-lexicon.d.ts.map +1 -1
  17. package/dist/cli/commands/import.d.ts +8 -0
  18. package/dist/cli/commands/import.d.ts.map +1 -1
  19. package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
  20. package/dist/cli/commands/init.d.ts +19 -0
  21. package/dist/cli/commands/init.d.ts.map +1 -1
  22. package/dist/cli/commands/onboard.d.ts +9 -0
  23. package/dist/cli/commands/onboard.d.ts.map +1 -1
  24. package/dist/cli/commands/pinned-upgrade.d.ts +19 -5
  25. package/dist/cli/commands/pinned-upgrade.d.ts.map +1 -1
  26. package/dist/cli/handlers/dev.d.ts.map +1 -1
  27. package/dist/cli/handlers/fan-out.d.ts.map +1 -1
  28. package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
  29. package/dist/cli/handlers/misc.d.ts.map +1 -1
  30. package/dist/cli/handlers/operator.d.ts +9 -0
  31. package/dist/cli/handlers/operator.d.ts.map +1 -1
  32. package/dist/cli/handlers/run.d.ts.map +1 -1
  33. package/dist/cli/lsp/server.d.ts.map +1 -1
  34. package/dist/cli/main.d.ts.map +1 -1
  35. package/dist/cli/mcp/server.d.ts.map +1 -1
  36. package/dist/cli/mcp/tools/build.d.ts.map +1 -1
  37. package/dist/cli/mcp/tools/composites.d.ts.map +1 -1
  38. package/dist/cli/mcp/tools/explain.d.ts.map +1 -1
  39. package/dist/cli/mcp/tools/import.d.ts.map +1 -1
  40. package/dist/cli/mcp/tools/lint.d.ts.map +1 -1
  41. package/dist/cli/mcp/tools/scaffold.d.ts.map +1 -1
  42. package/dist/cli/mcp/tools/search.d.ts.map +1 -1
  43. package/dist/cli/mcp/workspace-tools.d.ts +9 -1
  44. package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
  45. package/dist/cli/registry.d.ts +33 -2
  46. package/dist/cli/registry.d.ts.map +1 -1
  47. package/dist/codegen/fetch.d.ts.map +1 -1
  48. package/dist/codegen/naming.d.ts.map +1 -1
  49. package/dist/codegen/pinned-upgrade.d.ts +67 -3
  50. package/dist/codegen/pinned-upgrade.d.ts.map +1 -1
  51. package/dist/codegen/registry.d.ts.map +1 -1
  52. package/dist/components/capability-plugin-loader.d.ts.map +1 -1
  53. package/dist/components/capability.d.ts.map +1 -1
  54. package/dist/components/driver.d.ts.map +1 -1
  55. package/dist/components/fan-out.d.ts.map +1 -1
  56. package/dist/components/starter-plugin.d.ts.map +1 -1
  57. package/dist/components/verbs/process-runner.d.ts.map +1 -1
  58. package/dist/components/verbs/r2-sync.d.ts.map +1 -1
  59. package/dist/components/verbs/run-agent.d.ts.map +1 -1
  60. package/dist/components/verbs/sbom-generator.d.ts.map +1 -1
  61. package/dist/components/verbs/sign.d.ts.map +1 -1
  62. package/dist/components/verbs/verify.d.ts.map +1 -1
  63. package/dist/components/verbs/vuln-gate.d.ts.map +1 -1
  64. package/dist/components/verbs/vuln-scan.d.ts.map +1 -1
  65. package/dist/components/verbs/wrangler.d.ts.map +1 -1
  66. package/dist/composite.d.ts.map +1 -1
  67. package/dist/config.d.ts +30 -7
  68. package/dist/config.d.ts.map +1 -1
  69. package/dist/declarable.d.ts +16 -0
  70. package/dist/declarable.d.ts.map +1 -1
  71. package/dist/discovery/cache.d.ts.map +1 -1
  72. package/dist/discovery/fold-import.d.ts +15 -5
  73. package/dist/discovery/fold-import.d.ts.map +1 -1
  74. package/dist/discovery/param-deps.d.ts +16 -0
  75. package/dist/discovery/param-deps.d.ts.map +1 -1
  76. package/dist/discovery/sandbox/policy-wire.d.ts.map +1 -1
  77. package/dist/discovery/specifier-resolve.d.ts +37 -0
  78. package/dist/discovery/specifier-resolve.d.ts.map +1 -0
  79. package/dist/errors.d.ts.map +1 -1
  80. package/dist/fold/fold.d.ts +3 -1
  81. package/dist/fold/fold.d.ts.map +1 -1
  82. package/dist/graph-detail.d.ts.map +1 -1
  83. package/dist/graph-ir.d.ts.map +1 -1
  84. package/dist/graph-layout.d.ts.map +1 -1
  85. package/dist/import/base-parser.d.ts.map +1 -1
  86. package/dist/import/embedded.d.ts +7 -0
  87. package/dist/import/embedded.d.ts.map +1 -1
  88. package/dist/import/parser-options.d.ts +14 -0
  89. package/dist/import/parser-options.d.ts.map +1 -0
  90. package/dist/import/parser.d.ts +17 -0
  91. package/dist/import/parser.d.ts.map +1 -1
  92. package/dist/kubectl-context.d.ts.map +1 -1
  93. package/dist/lexicon-output.d.ts.map +1 -1
  94. package/dist/lexicon-schema.d.ts +3 -3
  95. package/dist/lexicon.d.ts +78 -3
  96. package/dist/lexicon.d.ts.map +1 -1
  97. package/dist/lifecycle/assert-live.d.ts.map +1 -1
  98. package/dist/lifecycle/gate-ledger.d.ts +15 -0
  99. package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
  100. package/dist/lifecycle/git.d.ts.map +1 -1
  101. package/dist/lifecycle/member-ledger.d.ts.map +1 -1
  102. package/dist/lifecycle/observe.d.ts.map +1 -1
  103. package/dist/lifecycle/plan-digest.d.ts +26 -5
  104. package/dist/lifecycle/plan-digest.d.ts.map +1 -1
  105. package/dist/lifecycle/plan-ledger.d.ts.map +1 -1
  106. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  107. package/dist/lifecycle/scenario.d.ts.map +1 -1
  108. package/dist/lifecycle/status.d.ts.map +1 -1
  109. package/dist/lifecycle/work-lease.d.ts +61 -2
  110. package/dist/lifecycle/work-lease.d.ts.map +1 -1
  111. package/dist/lint/config.d.ts +4 -4
  112. package/dist/lint/engine.d.ts +6 -0
  113. package/dist/lint/engine.d.ts.map +1 -1
  114. package/dist/lsp/lexicon-providers.d.ts.map +1 -1
  115. package/dist/op/activities/activity-contracts.d.ts +12 -11
  116. package/dist/op/activities/activity-contracts.d.ts.map +1 -1
  117. package/dist/op/activities/apply.d.ts +79 -9
  118. package/dist/op/activities/apply.d.ts.map +1 -1
  119. package/dist/op/activities/decide.d.ts.map +1 -1
  120. package/dist/op/activities/index.d.ts +1 -1
  121. package/dist/op/activities/index.d.ts.map +1 -1
  122. package/dist/op/activities/lexicon-upgrade.d.ts +44 -12
  123. package/dist/op/activities/lexicon-upgrade.d.ts.map +1 -1
  124. package/dist/op/activities/propose-upgrade.d.ts +2 -0
  125. package/dist/op/activities/propose-upgrade.d.ts.map +1 -1
  126. package/dist/op/activity-contract.d.ts +1 -1
  127. package/dist/op/activity-failure.d.ts.map +1 -1
  128. package/dist/op/activity-profiles.d.ts.map +1 -1
  129. package/dist/op/builders.d.ts.map +1 -1
  130. package/dist/op/composites/apply-op.d.ts +12 -5
  131. package/dist/op/composites/apply-op.d.ts.map +1 -1
  132. package/dist/op/composites/lexicon-upgrade-op.d.ts +22 -6
  133. package/dist/op/composites/lexicon-upgrade-op.d.ts.map +1 -1
  134. package/dist/op/decide-backend.d.ts.map +1 -1
  135. package/dist/op/decide-read-inputs.d.ts.map +1 -1
  136. package/dist/op/emulator-lifecycle.d.ts +21 -2
  137. package/dist/op/emulator-lifecycle.d.ts.map +1 -1
  138. package/dist/op/gate-approval.d.ts +5 -1
  139. package/dist/op/gate-approval.d.ts.map +1 -1
  140. package/dist/op/gate-wait.d.ts.map +1 -1
  141. package/dist/op/gate.d.ts +19 -3
  142. package/dist/op/gate.d.ts.map +1 -1
  143. package/dist/op/index.d.ts +3 -1
  144. package/dist/op/index.d.ts.map +1 -1
  145. package/dist/op/local-executor.d.ts +6 -0
  146. package/dist/op/local-executor.d.ts.map +1 -1
  147. package/dist/op/operator.d.ts.map +1 -1
  148. package/dist/op/run-context.d.ts +39 -0
  149. package/dist/op/run-context.d.ts.map +1 -0
  150. package/dist/op/run-live.d.ts.map +1 -1
  151. package/dist/op/runtimes/local.d.ts.map +1 -1
  152. package/dist/op/source-archive.d.ts.map +1 -1
  153. package/dist/op/steward-beside.d.ts.map +1 -1
  154. package/dist/op/steward-points.d.ts.map +1 -1
  155. package/dist/op/steward.d.ts.map +1 -1
  156. package/dist/op/types.d.ts +8 -3
  157. package/dist/op/types.d.ts.map +1 -1
  158. package/dist/op/work-lease-run.d.ts +24 -4
  159. package/dist/op/work-lease-run.d.ts.map +1 -1
  160. package/dist/project-root.d.ts.map +1 -1
  161. package/dist/provenance.d.ts +21 -0
  162. package/dist/provenance.d.ts.map +1 -1
  163. package/dist/pseudo-parameter.d.ts.map +1 -1
  164. package/dist/reconcile.d.ts.map +1 -1
  165. package/dist/secret-materialization.d.ts.map +1 -1
  166. package/dist/serializer.d.ts +8 -0
  167. package/dist/serializer.d.ts.map +1 -1
  168. package/dist/telemetry-attribution.d.ts +77 -0
  169. package/dist/telemetry-attribution.d.ts.map +1 -0
  170. package/dist/terraform/emit-source.d.ts.map +1 -1
  171. package/dist/terraform/parse.d.ts.map +1 -1
  172. package/dist/testing.d.ts.map +1 -1
  173. package/dist/workspace/__fixtures__/contract-repo.d.ts.map +1 -1
  174. package/dist/workspace/__fixtures__/decide-workspace.d.ts +1 -1
  175. package/dist/workspace/__fixtures__/decide-workspace.d.ts.map +1 -1
  176. package/dist/workspace/agent-cli.d.ts +88 -0
  177. package/dist/workspace/agent-cli.d.ts.map +1 -0
  178. package/dist/workspace/box-factory.d.ts +73 -0
  179. package/dist/workspace/box-factory.d.ts.map +1 -0
  180. package/dist/workspace/changes-cli.d.ts.map +1 -1
  181. package/dist/workspace/changes.d.ts +8 -1
  182. package/dist/workspace/changes.d.ts.map +1 -1
  183. package/dist/workspace/chant-migrations/chud-lexicon-exit.d.ts.map +1 -1
  184. package/dist/workspace/checks/boxes.d.ts.map +1 -1
  185. package/dist/workspace/checks/links.d.ts +1 -0
  186. package/dist/workspace/checks/links.d.ts.map +1 -1
  187. package/dist/workspace/checks/live.d.ts +40 -0
  188. package/dist/workspace/checks/live.d.ts.map +1 -0
  189. package/dist/workspace/checks.d.ts +26 -2
  190. package/dist/workspace/checks.d.ts.map +1 -1
  191. package/dist/workspace/compose-graph.d.ts +73 -0
  192. package/dist/workspace/compose-graph.d.ts.map +1 -1
  193. package/dist/workspace/conformance/index.d.ts +67 -6
  194. package/dist/workspace/conformance/index.d.ts.map +1 -1
  195. package/dist/workspace/conformance/vitest.d.ts +12 -3
  196. package/dist/workspace/conformance/vitest.d.ts.map +1 -1
  197. package/dist/workspace/conformance/writer.d.ts +368 -0
  198. package/dist/workspace/conformance/writer.d.ts.map +1 -0
  199. package/dist/workspace/decide.d.ts +1 -1
  200. package/dist/workspace/decide.d.ts.map +1 -1
  201. package/dist/workspace/declaration.d.ts +119 -0
  202. package/dist/workspace/declaration.d.ts.map +1 -1
  203. package/dist/workspace/declaration.schema.json +368 -4
  204. package/dist/workspace/export-cli.d.ts +12 -0
  205. package/dist/workspace/export-cli.d.ts.map +1 -0
  206. package/dist/workspace/export.d.ts +145 -0
  207. package/dist/workspace/export.d.ts.map +1 -0
  208. package/dist/workspace/generated-files.d.ts.map +1 -1
  209. package/dist/workspace/graph-cache.d.ts.map +1 -1
  210. package/dist/workspace/graph-cli.d.ts +2 -0
  211. package/dist/workspace/graph-cli.d.ts.map +1 -1
  212. package/dist/workspace/identity.d.ts +111 -0
  213. package/dist/workspace/identity.d.ts.map +1 -0
  214. package/dist/workspace/import.d.ts +73 -0
  215. package/dist/workspace/import.d.ts.map +1 -0
  216. package/dist/workspace/intent-cli.d.ts +7 -4
  217. package/dist/workspace/intent-cli.d.ts.map +1 -1
  218. package/dist/workspace/intent-record.d.ts +8 -1
  219. package/dist/workspace/intent-record.d.ts.map +1 -1
  220. package/dist/workspace/intent.d.ts +149 -5
  221. package/dist/workspace/intent.d.ts.map +1 -1
  222. package/dist/workspace/kinds.d.ts +24 -6
  223. package/dist/workspace/kinds.d.ts.map +1 -1
  224. package/dist/workspace/lineage-adopt-cli.d.ts +15 -0
  225. package/dist/workspace/lineage-adopt-cli.d.ts.map +1 -0
  226. package/dist/workspace/lineage-adopt.d.ts +106 -0
  227. package/dist/workspace/lineage-adopt.d.ts.map +1 -0
  228. package/dist/workspace/lineage-check.d.ts +9 -2
  229. package/dist/workspace/lineage-check.d.ts.map +1 -1
  230. package/dist/workspace/lineage-cli.d.ts +6 -1
  231. package/dist/workspace/lineage-cli.d.ts.map +1 -1
  232. package/dist/workspace/lineage-hash-index.d.ts +110 -0
  233. package/dist/workspace/lineage-hash-index.d.ts.map +1 -0
  234. package/dist/workspace/lineage-init.d.ts +10 -0
  235. package/dist/workspace/lineage-init.d.ts.map +1 -1
  236. package/dist/workspace/lineage-lock.d.ts +149 -2
  237. package/dist/workspace/lineage-lock.d.ts.map +1 -1
  238. package/dist/workspace/lineage-migrations.d.ts +15 -3
  239. package/dist/workspace/lineage-migrations.d.ts.map +1 -1
  240. package/dist/workspace/lineage-provenance.d.ts +18 -0
  241. package/dist/workspace/lineage-provenance.d.ts.map +1 -0
  242. package/dist/workspace/lineage-upgrade-cli.d.ts +2 -0
  243. package/dist/workspace/lineage-upgrade-cli.d.ts.map +1 -1
  244. package/dist/workspace/lineage-upgrade.d.ts +30 -1
  245. package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
  246. package/dist/workspace/lineage-versions.d.ts +116 -0
  247. package/dist/workspace/lineage-versions.d.ts.map +1 -0
  248. package/dist/workspace/links.d.ts +31 -5
  249. package/dist/workspace/links.d.ts.map +1 -1
  250. package/dist/workspace/ls-generated.d.ts +37 -0
  251. package/dist/workspace/ls-generated.d.ts.map +1 -0
  252. package/dist/workspace/ls.d.ts +4 -0
  253. package/dist/workspace/ls.d.ts.map +1 -1
  254. package/dist/workspace/member-commands.d.ts.map +1 -1
  255. package/dist/workspace/nested-graph.d.ts +56 -0
  256. package/dist/workspace/nested-graph.d.ts.map +1 -0
  257. package/dist/workspace/nesting.d.ts +21 -0
  258. package/dist/workspace/nesting.d.ts.map +1 -0
  259. package/dist/workspace/pin-cli.d.ts +10 -0
  260. package/dist/workspace/pin-cli.d.ts.map +1 -0
  261. package/dist/workspace/pin-integrity.d.ts +51 -0
  262. package/dist/workspace/pin-integrity.d.ts.map +1 -0
  263. package/dist/workspace/points.d.ts.map +1 -1
  264. package/dist/workspace/principal-classes.d.ts +114 -0
  265. package/dist/workspace/principal-classes.d.ts.map +1 -0
  266. package/dist/workspace/reason-codes.d.ts +47 -3
  267. package/dist/workspace/reason-codes.d.ts.map +1 -1
  268. package/dist/workspace/record-assets.d.ts.map +1 -1
  269. package/dist/workspace/record-sessions.d.ts +7 -11
  270. package/dist/workspace/record-sessions.d.ts.map +1 -1
  271. package/dist/workspace/records-checkout.d.ts +54 -0
  272. package/dist/workspace/records-checkout.d.ts.map +1 -0
  273. package/dist/workspace/records-cli.d.ts +57 -2
  274. package/dist/workspace/records-cli.d.ts.map +1 -1
  275. package/dist/workspace/records-close.d.ts +5 -2
  276. package/dist/workspace/records-close.d.ts.map +1 -1
  277. package/dist/workspace/records-since.d.ts.map +1 -1
  278. package/dist/workspace/records-write.d.ts +23 -4
  279. package/dist/workspace/records-write.d.ts.map +1 -1
  280. package/dist/workspace/records.d.ts +58 -5
  281. package/dist/workspace/records.d.ts.map +1 -1
  282. package/dist/workspace/returns.d.ts +129 -0
  283. package/dist/workspace/returns.d.ts.map +1 -0
  284. package/dist/workspace/runs-cli.d.ts +164 -0
  285. package/dist/workspace/runs-cli.d.ts.map +1 -0
  286. package/dist/workspace/runs.d.ts +423 -0
  287. package/dist/workspace/runs.d.ts.map +1 -0
  288. package/dist/workspace/source-block.d.ts +1 -1
  289. package/dist/workspace/source-block.d.ts.map +1 -1
  290. package/dist/workspace/status-gates.d.ts +15 -3
  291. package/dist/workspace/status-gates.d.ts.map +1 -1
  292. package/dist/workspace/status.d.ts +10 -0
  293. package/dist/workspace/status.d.ts.map +1 -1
  294. package/dist/workspace/symbols.d.ts +52 -0
  295. package/dist/workspace/symbols.d.ts.map +1 -0
  296. package/dist/workspace/template-manifest.d.ts +11 -3
  297. package/dist/workspace/template-manifest.d.ts.map +1 -1
  298. package/dist/workspace/trailer-joins.d.ts +46 -0
  299. package/dist/workspace/trailer-joins.d.ts.map +1 -0
  300. package/dist/workspace/trailers.d.ts +89 -0
  301. package/dist/workspace/trailers.d.ts.map +1 -0
  302. package/dist/workspace/trust/attestor.d.ts +8 -0
  303. package/dist/workspace/trust/attestor.d.ts.map +1 -1
  304. package/dist/workspace/trust/dsse.d.ts +58 -0
  305. package/dist/workspace/trust/dsse.d.ts.map +1 -0
  306. package/dist/workspace/trust/evidence-cli.d.ts +66 -0
  307. package/dist/workspace/trust/evidence-cli.d.ts.map +1 -0
  308. package/dist/workspace/trust/evidence.d.ts +93 -0
  309. package/dist/workspace/trust/evidence.d.ts.map +1 -0
  310. package/dist/workspace/trust/policy.d.ts +54 -1
  311. package/dist/workspace/trust/policy.d.ts.map +1 -1
  312. package/dist/workspace/trust/provenance.d.ts +21 -1
  313. package/dist/workspace/trust/provenance.d.ts.map +1 -1
  314. package/dist/workspace/trust/rotation.d.ts +132 -0
  315. package/dist/workspace/trust/rotation.d.ts.map +1 -0
  316. package/dist/workspace/trust/seal.d.ts +33 -0
  317. package/dist/workspace/trust/seal.d.ts.map +1 -1
  318. package/dist/workspace/trust/signers-cli.d.ts +49 -0
  319. package/dist/workspace/trust/signers-cli.d.ts.map +1 -0
  320. package/dist/workspace/trust/ssh-commit.d.ts +12 -0
  321. package/dist/workspace/trust/ssh-commit.d.ts.map +1 -1
  322. package/dist/workspace/trust/test-repo.d.ts +13 -0
  323. package/dist/workspace/trust/test-repo.d.ts.map +1 -1
  324. package/dist/workspace/trust/verify.d.ts +15 -0
  325. package/dist/workspace/trust/verify.d.ts.map +1 -1
  326. package/dist/workspace/work-cli.d.ts +39 -3
  327. package/dist/workspace/work-cli.d.ts.map +1 -1
  328. package/dist/workspace/work-evidence.d.ts +1 -1
  329. package/dist/workspace/work-evidence.d.ts.map +1 -1
  330. package/dist/workspace/work.d.ts +26 -1
  331. package/dist/workspace/work.d.ts.map +1 -1
  332. package/dist/workspace/workspace-principals.schema.json +60 -0
  333. package/dist/workspace/write-scope.d.ts +259 -0
  334. package/dist/workspace/write-scope.d.ts.map +1 -0
  335. package/dist/yaml.d.ts +21 -39
  336. package/dist/yaml.d.ts.map +1 -1
  337. package/package.json +2 -2
  338. package/src/audit/prior-art.ts +15 -0
  339. package/src/build.ts +8 -0
  340. package/src/cli/build-options.ts +4 -1
  341. package/src/cli/commands/__fixtures__/init-lexicon-output/package.json +1 -1
  342. package/src/cli/commands/build.ts +2 -0
  343. package/src/cli/commands/carve-emit-state.test.ts +4 -0
  344. package/src/cli/commands/carve-emit.ts +5 -19
  345. package/src/cli/commands/check-lexicon.test.ts +62 -1
  346. package/src/cli/commands/check-lexicon.ts +36 -6
  347. package/src/cli/commands/import-live.test.ts +87 -1
  348. package/src/cli/commands/import-parser-options.test.ts +133 -0
  349. package/src/cli/commands/import.ts +69 -25
  350. package/src/cli/commands/init-lexicon/templates/project.ts +1 -1
  351. package/src/cli/commands/init.test.ts +8 -1
  352. package/src/cli/commands/init.ts +23 -8
  353. package/src/cli/commands/lint.test.ts +37 -0
  354. package/src/cli/commands/onboard.test.ts +53 -3
  355. package/src/cli/commands/onboard.ts +52 -4
  356. package/src/cli/commands/pinned-upgrade.ts +73 -33
  357. package/src/cli/handlers/__snapshots__/build-member.test.ts.snap +2 -2
  358. package/src/cli/handlers/components.ts +2 -2
  359. package/src/cli/handlers/dev.ts +8 -6
  360. package/src/cli/handlers/fan-out.test.ts +6 -6
  361. package/src/cli/handlers/fan-out.ts +2 -1
  362. package/src/cli/handlers/graph.test.ts +42 -0
  363. package/src/cli/handlers/graph.ts +22 -0
  364. package/src/cli/handlers/lifecycle.test.ts +67 -0
  365. package/src/cli/handlers/lifecycle.ts +6 -5
  366. package/src/cli/handlers/misc.ts +2 -0
  367. package/src/cli/handlers/operator.ts +88 -4
  368. package/src/cli/handlers/run.test.ts +111 -0
  369. package/src/cli/handlers/run.ts +85 -24
  370. package/src/cli/handlers/scenario.ts +2 -2
  371. package/src/cli/main.test.ts +33 -0
  372. package/src/cli/main.ts +168 -17
  373. package/src/cli/mcp/workspace-tools.test.ts +5 -2
  374. package/src/cli/mcp/workspace-tools.ts +62 -4
  375. package/src/cli/registry.ts +33 -2
  376. package/src/cli/serve-mcp-workspace.test.ts +1 -1
  377. package/src/codegen/pinned-upgrade-multi.test.ts +157 -0
  378. package/src/codegen/pinned-upgrade-tags.test.ts +112 -0
  379. package/src/codegen/pinned-upgrade.test.ts +104 -0
  380. package/src/codegen/pinned-upgrade.ts +250 -56
  381. package/src/codegen/release-wiring.test.ts +5 -1
  382. package/src/codegen/testdata/postgres-tags.json +242 -0
  383. package/src/components/fan-out-output.test.ts +1 -1
  384. package/src/components/fan-out.test.ts +1 -1
  385. package/src/components/promote.test.ts +1 -1
  386. package/src/config.test.ts +21 -0
  387. package/src/config.ts +27 -0
  388. package/src/content-digest.test.ts +2 -2
  389. package/src/declarable.test.ts +21 -0
  390. package/src/declarable.ts +19 -0
  391. package/src/discovery/fold-composite.test.ts +41 -5
  392. package/src/discovery/fold-import.test.ts +129 -0
  393. package/src/discovery/fold-import.ts +643 -131
  394. package/src/discovery/fold-package-composite.test.ts +264 -0
  395. package/src/discovery/fold-specifiers.test.ts +191 -0
  396. package/src/discovery/param-deps.test.ts +66 -1
  397. package/src/discovery/param-deps.ts +45 -0
  398. package/src/discovery/specifier-resolve.ts +344 -0
  399. package/src/fold/fold.test.ts +39 -1
  400. package/src/fold/fold.ts +83 -9
  401. package/src/fold-provenance.test.ts +140 -0
  402. package/src/graph-ir.test.ts +83 -0
  403. package/src/graph-ir.ts +29 -0
  404. package/src/import/embedded.test.ts +20 -0
  405. package/src/import/embedded.ts +13 -0
  406. package/src/import/parser-options.ts +46 -0
  407. package/src/import/parser.ts +20 -0
  408. package/src/lexicon.ts +79 -3
  409. package/src/lifecycle/gate-ledger.test.ts +14 -0
  410. package/src/lifecycle/gate-ledger.ts +18 -1
  411. package/src/lifecycle/observe.test.ts +18 -0
  412. package/src/lifecycle/observe.ts +6 -4
  413. package/src/lifecycle/plan-digest.test.ts +54 -3
  414. package/src/lifecycle/plan-digest.ts +38 -8
  415. package/src/lifecycle/snapshot.ts +2 -2
  416. package/src/lifecycle/work-lease.test.ts +1 -1
  417. package/src/lifecycle/work-lease.ts +93 -2
  418. package/src/lint/engine.test.ts +55 -0
  419. package/src/lint/engine.ts +30 -4
  420. package/src/lint/output-docs.test.ts +59 -56
  421. package/src/op/activities/activity-contracts.ts +1 -0
  422. package/src/op/activities/apply.test.ts +189 -5
  423. package/src/op/activities/apply.ts +230 -8
  424. package/src/op/activities/index.ts +3 -0
  425. package/src/op/activities/lexicon-upgrade.test.ts +160 -6
  426. package/src/op/activities/lexicon-upgrade.ts +154 -51
  427. package/src/op/activities/propose-upgrade.ts +8 -5
  428. package/src/op/composites/apply-op.ts +12 -5
  429. package/src/op/composites/composites.test.ts +30 -3
  430. package/src/op/composites/lexicon-upgrade-op.test.ts +7 -2
  431. package/src/op/composites/lexicon-upgrade-op.ts +29 -8
  432. package/src/op/emulator-lifecycle.test.ts +23 -0
  433. package/src/op/emulator-lifecycle.ts +52 -14
  434. package/src/op/gate-approval.test.ts +91 -0
  435. package/src/op/gate-approval.ts +5 -1
  436. package/src/op/gate.ts +34 -8
  437. package/src/op/index.ts +3 -1
  438. package/src/op/local-executor.test.ts +15 -0
  439. package/src/op/local-executor.ts +40 -12
  440. package/src/op/local-output.ts +1 -1
  441. package/src/op/operator.ts +4 -0
  442. package/src/op/run-context.test.ts +141 -0
  443. package/src/op/run-context.ts +51 -0
  444. package/src/op/runtimes/local.test.ts +14 -0
  445. package/src/op/runtimes/local.ts +2 -0
  446. package/src/op/steward-beside.ts +2 -0
  447. package/src/op/types.ts +8 -3
  448. package/src/op/work-lease-run.test.ts +47 -0
  449. package/src/op/work-lease-run.ts +73 -11
  450. package/src/provenance.ts +35 -0
  451. package/src/serializer.ts +9 -0
  452. package/src/telemetry-attribution.test.ts +91 -0
  453. package/src/telemetry-attribution.ts +145 -0
  454. package/src/workspace/__fixtures__/studio-template-84c8b21.json +1 -1
  455. package/src/workspace/agent-cli.ts +138 -0
  456. package/src/workspace/agent.schema.json +378 -0
  457. package/src/workspace/behold-kinds.test.ts +1 -1
  458. package/src/workspace/box-factory.test.ts +320 -0
  459. package/src/workspace/box-factory.ts +103 -0
  460. package/src/workspace/changes-cli.ts +5 -0
  461. package/src/workspace/changes.schema.json +171 -1
  462. package/src/workspace/changes.ts +61 -4
  463. package/src/workspace/check-live.test.ts +192 -0
  464. package/src/workspace/check.schema.json +64 -0
  465. package/src/workspace/checks/boxes.test.ts +2 -0
  466. package/src/workspace/checks/links.ts +23 -2
  467. package/src/workspace/checks/live.ts +113 -0
  468. package/src/workspace/checks.test.ts +2 -2
  469. package/src/workspace/checks.ts +49 -8
  470. package/src/workspace/compose-graph.test.ts +47 -0
  471. package/src/workspace/compose-graph.ts +127 -3
  472. package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +7 -1
  473. package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +5 -0
  474. package/src/workspace/conformance/__writer_fixture__/answers/answer.kind.mjs +27 -0
  475. package/src/workspace/conformance/__writer_fixture__/answers/answer.schema.json +95 -0
  476. package/src/workspace/conformance/__writer_fixture__/decisions/points.json +132 -0
  477. package/src/workspace/conformance/__writer_fixture__/sessions/session.kind.mjs +48 -0
  478. package/src/workspace/conformance/__writer_fixture__/sessions/session.schema.json +108 -0
  479. package/src/workspace/conformance/__writer_fixture__/work/W-001-the-writer-suite-works-this-item.md +25 -0
  480. package/src/workspace/conformance/__writer_fixture__/work/work.kind.mjs +60 -0
  481. package/src/workspace/conformance/__writer_fixture__/work/work.schema.json +578 -0
  482. package/src/workspace/conformance/conformance.e2e.test.ts +35 -3
  483. package/src/workspace/conformance/index.mjs +30 -3
  484. package/src/workspace/conformance/index.ts +103 -15
  485. package/src/workspace/conformance/vitest.ts +44 -2
  486. package/src/workspace/conformance/writer-conformance.e2e.test.ts +131 -0
  487. package/src/workspace/conformance/writer.test.ts +156 -0
  488. package/src/workspace/conformance/writer.ts +880 -0
  489. package/src/workspace/decide.ts +7 -1
  490. package/src/workspace/declaration.schema.json +368 -4
  491. package/src/workspace/declaration.ts +270 -1
  492. package/src/workspace/declared-kinds.test.ts +33 -0
  493. package/src/workspace/evidence.schema.json +279 -0
  494. package/src/workspace/export-cli.ts +180 -0
  495. package/src/workspace/export-import.test.ts +282 -0
  496. package/src/workspace/export.ts +486 -0
  497. package/src/workspace/graph-cli.ts +51 -2
  498. package/src/workspace/graph-contract.test.ts +89 -4
  499. package/src/workspace/graph.schema.json +453 -1
  500. package/src/workspace/identity.test.ts +196 -0
  501. package/src/workspace/identity.ts +186 -0
  502. package/src/workspace/import.ts +325 -0
  503. package/src/workspace/intent-cli.ts +64 -10
  504. package/src/workspace/intent-record.schema.json +208 -0
  505. package/src/workspace/intent-record.ts +35 -1
  506. package/src/workspace/intent-why.test.ts +274 -0
  507. package/src/workspace/intent.schema.json +718 -7
  508. package/src/workspace/intent.test.ts +11 -2
  509. package/src/workspace/intent.ts +495 -32
  510. package/src/workspace/kinds.test.ts +5 -5
  511. package/src/workspace/kinds.ts +62 -33
  512. package/src/workspace/lineage-adopt-cli.ts +103 -0
  513. package/src/workspace/lineage-adopt.test.ts +552 -0
  514. package/src/workspace/lineage-adopt.ts +452 -0
  515. package/src/workspace/lineage-check.ts +26 -5
  516. package/src/workspace/lineage-cli.ts +12 -2
  517. package/src/workspace/lineage-hash-index.ts +305 -0
  518. package/src/workspace/lineage-init.test.ts +9 -0
  519. package/src/workspace/lineage-init.ts +29 -9
  520. package/src/workspace/lineage-lock.ts +54 -0
  521. package/src/workspace/lineage-migrations.test.ts +27 -0
  522. package/src/workspace/lineage-migrations.ts +44 -14
  523. package/src/workspace/lineage-provenance.ts +40 -0
  524. package/src/workspace/lineage-upgrade-cli.ts +9 -5
  525. package/src/workspace/lineage-upgrade.test.ts +92 -1
  526. package/src/workspace/lineage-upgrade.ts +111 -16
  527. package/src/workspace/lineage-versions.ts +348 -0
  528. package/src/workspace/links.test.ts +121 -2
  529. package/src/workspace/links.ts +97 -6
  530. package/src/workspace/ls-contract.test.ts +84 -1
  531. package/src/workspace/ls-generated.ts +111 -0
  532. package/src/workspace/ls.schema.json +19 -0
  533. package/src/workspace/ls.ts +8 -1
  534. package/src/workspace/member-commands.ts +3 -1
  535. package/src/workspace/nested-graph.test.ts +176 -0
  536. package/src/workspace/nested-graph.ts +169 -0
  537. package/src/workspace/nesting.ts +37 -0
  538. package/src/workspace/pin-cli.test.ts +71 -0
  539. package/src/workspace/pin-cli.ts +57 -0
  540. package/src/workspace/pin-integrity.test.ts +121 -0
  541. package/src/workspace/pin-integrity.ts +104 -0
  542. package/src/workspace/points-write.schema.json +2 -0
  543. package/src/workspace/principal-classes.test.ts +175 -0
  544. package/src/workspace/principal-classes.ts +307 -0
  545. package/src/workspace/read-contract.test.ts +24 -0
  546. package/src/workspace/reason-codes.test.ts +20 -2
  547. package/src/workspace/reason-codes.ts +53 -3
  548. package/src/workspace/record-sessions.ts +12 -14
  549. package/src/workspace/records-amend.schema.json +6 -0
  550. package/src/workspace/records-checkout.ts +106 -0
  551. package/src/workspace/records-cli.ts +195 -22
  552. package/src/workspace/records-close.schema.json +7 -2
  553. package/src/workspace/records-close.ts +10 -2
  554. package/src/workspace/records-formats.test.ts +13 -5
  555. package/src/workspace/records-new.schema.json +6 -0
  556. package/src/workspace/records-review.schema.json +6 -0
  557. package/src/workspace/records-sessions.test.ts +23 -6
  558. package/src/workspace/records-uncommitted.test.ts +171 -0
  559. package/src/workspace/records-write.test.ts +65 -8
  560. package/src/workspace/records-write.ts +92 -6
  561. package/src/workspace/records.schema.json +127 -4
  562. package/src/workspace/records.ts +123 -5
  563. package/src/workspace/returns.ts +328 -0
  564. package/src/workspace/runs-cli.ts +381 -0
  565. package/src/workspace/runs-write.schema.json +583 -0
  566. package/src/workspace/runs.schema.json +810 -0
  567. package/src/workspace/runs.test.ts +242 -0
  568. package/src/workspace/runs.ts +709 -0
  569. package/src/workspace/signers.schema.json +206 -0
  570. package/src/workspace/status-contract.test.ts +5 -0
  571. package/src/workspace/status-gates.ts +24 -9
  572. package/src/workspace/status.schema.json +127 -2
  573. package/src/workspace/status.ts +21 -1
  574. package/src/workspace/symbols.ts +180 -0
  575. package/src/workspace/template-manifest.ts +22 -4
  576. package/src/workspace/trailer-joins.test.ts +171 -0
  577. package/src/workspace/trailer-joins.ts +82 -0
  578. package/src/workspace/trailers.ts +148 -0
  579. package/src/workspace/trust/attestor.ts +15 -0
  580. package/src/workspace/trust/dsse.ts +134 -0
  581. package/src/workspace/trust/evidence-cli.ts +195 -0
  582. package/src/workspace/trust/evidence.test.ts +241 -0
  583. package/src/workspace/trust/evidence.ts +207 -0
  584. package/src/workspace/trust/policy.ts +110 -3
  585. package/src/workspace/trust/provenance.ts +41 -4
  586. package/src/workspace/trust/record-seal.test.ts +1 -1
  587. package/src/workspace/trust/rotation.test.ts +258 -0
  588. package/src/workspace/trust/rotation.ts +336 -0
  589. package/src/workspace/trust/seal.ts +63 -1
  590. package/src/workspace/trust/signers-cli.ts +178 -0
  591. package/src/workspace/trust/ssh-commit.ts +53 -4
  592. package/src/workspace/trust/test-repo.ts +18 -0
  593. package/src/workspace/trust/trust.test.ts +8 -2
  594. package/src/workspace/trust/verify-cli.ts +1 -0
  595. package/src/workspace/trust/verify.ts +22 -0
  596. package/src/workspace/work-cli.e2e.test.ts +28 -1
  597. package/src/workspace/work-cli.ts +133 -8
  598. package/src/workspace/work-evidence.schema.json +6 -0
  599. package/src/workspace/work-history.schema.json +73 -1
  600. package/src/workspace/work-history.test.ts +48 -5
  601. package/src/workspace/work-kind-fields.test.ts +154 -0
  602. package/src/workspace/work-lease.schema.json +14 -1
  603. package/src/workspace/work.ts +82 -0
  604. package/src/workspace/workspace-principals.schema.json +60 -0
  605. package/src/workspace/write-scope.test.ts +466 -0
  606. package/src/workspace/write-scope.ts +573 -0
  607. package/src/yaml.test.ts +111 -1
  608. package/src/yaml.ts +141 -549
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Content hashes for plugins a declaration loads by path (#2547, ws-065).
3
+ *
4
+ * A pin of `{ "path": "plugins/kinds", "integrity": "sha256-..." }` says the
5
+ * plugin directory must hash to that value before chant reads anything from
6
+ * it. `chant workspace pin <path>` prints the value to put there.
7
+ *
8
+ * `integrity` is a Subresource Integrity string: `sha256-`, `sha384-` or
9
+ * `sha512-`, then the base64 of the digest. A directory has no single byte
10
+ * stream to hash, so its digest is taken over a manifest that names every
11
+ * file by its path and its own digest, and a file path is hashed directly:
12
+ *
13
+ * - The files are every regular file under the directory, at any depth, except
14
+ * anything inside a `node_modules` or `.git` directory.
15
+ * - Each file's digest is the chosen algorithm over its bytes, as they are on
16
+ * disk: no line-ending change, so a checkout that rewrites line endings
17
+ * hashes differently from one that does not.
18
+ * - The manifest is one line per file, `<hex digest> <path>\n`, in order of
19
+ * the path's UTF-16 code units, with `/` as the separator and the path
20
+ * relative to the directory. The pin is the algorithm over those bytes.
21
+ * - A symbolic link anywhere in the directory is refused: it can point
22
+ * outside the plugin, and what it points at is not what was pinned.
23
+ *
24
+ * The hash covers the working tree. Build output and untracked files inside
25
+ * the directory change it, so pin a directory that holds only committed files.
26
+ */
27
+ export type IntegrityAlgorithm = "sha256" | "sha384" | "sha512";
28
+ /** The algorithm and base64 digest of an `integrity` value, or undefined when it is not one. */
29
+ export declare function parseIntegrity(value: string): {
30
+ algorithm: IntegrityAlgorithm;
31
+ digest: string;
32
+ } | undefined;
33
+ /** Thrown when a path can't be hashed: it is missing, or holds a symbolic link. */
34
+ export declare class PinHashError extends Error {
35
+ }
36
+ /** The files a directory's hash covers, as paths relative to it, in hash order. */
37
+ export declare function pinnedFiles(dir: string): string[];
38
+ /** The `integrity` value for the plugin at `abs`: a directory by its manifest, a file by its bytes. */
39
+ export declare function integrityOf(abs: string, algorithm?: IntegrityAlgorithm): {
40
+ integrity: string;
41
+ files: number;
42
+ };
43
+ export type IntegrityCheck = {
44
+ ok: true;
45
+ } | {
46
+ ok: false;
47
+ message: string;
48
+ };
49
+ /** Compare the plugin at `abs` with the `integrity` a pin states. `label` names the plugin in the message. */
50
+ export declare function checkPinIntegrity(abs: string, integrity: string, label: string): IntegrityCheck;
51
+ //# sourceMappingURL=pin-integrity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pin-integrity.d.ts","sourceRoot":"","sources":["../../src/workspace/pin-integrity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAMH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAIhE,gGAAgG;AAChG,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG;IAAE,SAAS,EAAE,kBAAkB,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAG3G;AAKD,mFAAmF;AACnF,qBAAa,YAAa,SAAQ,KAAK;CAAG;AAc1C,mFAAmF;AACnF,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAIjD;AAED,uGAAuG;AACvG,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,GAAE,kBAA6B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CA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I,EAAE,MAAM,GAAG;IAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,YAAY,EAAE,CAAA;CAAE,CAkBrJ;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,kBAAkB,GAAG,IAAI,CAoBhH"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Principal classes (#2524 D5; #3080, ws-079).
3
+ *
4
+ * A principal class names a set of principals so the declaration can scope
5
+ * what they write. Four are core: `agent`, `runner` and `service`, each the
6
+ * holders of the role of that name in the trust policy at base, and `human`,
7
+ * everyone else. A plugin adds domain classes as data, the way it adds member
8
+ * kinds: a JSON file at its `./workspace-principals` subpath, read through
9
+ * the package's `package.json` and never imported. Each class it supplies
10
+ * names the role whose grant puts a principal in it.
11
+ *
12
+ * A principal's classes are read only from role grants at base, through
13
+ * {@link classesOf}. Core classes are tried first, then the domain classes
14
+ * in pin order and file order; the first that holds is the class write scope
15
+ * judges the principal as, and `human` is the rest. A gate or a record that
16
+ * asks whether a principal is in a class (#3163) asks {@link classesOf},
17
+ * which lists every class the principal's grants put it in.
18
+ *
19
+ * A path-pinned plugin's classes are read from the base revision when the
20
+ * caller has it (write scope does), so a change can't remap a class by
21
+ * editing its own copy of the plugin. A package pin is read from the
22
+ * installed package, which must be at the version the base pins.
23
+ */
24
+ import { type KindLoadProblem, type PinLike } from "./kinds.js";
25
+ import type { TrustPolicy } from "./trust/policy.js";
26
+ import { type WorkspaceTree } from "./tree.js";
27
+ export declare const PRINCIPALS_SCHEMA_ID: string;
28
+ /** The subpath a package publishes its principal classes at. */
29
+ export declare const PRINCIPALS_SUBPATH = "./workspace-principals";
30
+ /** The core classes, in the order a principal's roles are tried; `human` holds no role and is the rest. */
31
+ export declare const CORE_PRINCIPAL_CLASSES: readonly ["human", "agent", "runner", "service"];
32
+ export type CorePrincipalClass = (typeof CORE_PRINCIPAL_CLASSES)[number];
33
+ /** A class name: a core class, or a domain class a pinned package supplies. */
34
+ export type PrincipalClassName = string;
35
+ /** The grammar of a class name, as `workspace-principals.schema.json` and the declaration's writeScope keys say it. */
36
+ export declare const CLASS_NAME: RegExp;
37
+ export interface PrincipalClass {
38
+ name: string;
39
+ /** One line saying who is in the class. */
40
+ description: string;
41
+ /** The role whose grant at base puts a principal in the class, or null for `human`, the rest. */
42
+ role: string | null;
43
+ /** `core`, or the pin (package name or path) that supplies the class. */
44
+ source: string;
45
+ }
46
+ export declare const CORE_CLASSES: readonly PrincipalClass[];
47
+ export interface ClassRegistry {
48
+ get(name: string): PrincipalClass | undefined;
49
+ /** Every class name, core first, for "unknown class" messages. */
50
+ names(): string[];
51
+ /** Every class, core first, then the domain classes in pin order and file order. */
52
+ all(): readonly PrincipalClass[];
53
+ }
54
+ export declare function createClassRegistry(extra?: readonly PrincipalClass[]): ClassRegistry;
55
+ /** The four core classes and nothing else: what a workspace whose pins supply no class has. */
56
+ export declare function coreClassRegistry(): ClassRegistry;
57
+ /**
58
+ * The role grants a class is read from. Every read of roles for a class goes
59
+ * through here, so where the grants live (`.chant/trust.json` today,
60
+ * possibly the declaration, #2547) is decided in one place: the policy.
61
+ */
62
+ export declare function roleGrants(policy: TrustPolicy): Record<string, string[]>;
63
+ /**
64
+ * Every class `principal`'s role grants at base put it in, in registry order
65
+ * (core first). Empty for a principal in no class but `human`, and for null.
66
+ * Names compare as {@link normalisePrincipal} folds them.
67
+ */
68
+ export declare function classesOf(classes: ClassRegistry, policy: TrustPolicy, principal: string | null): string[];
69
+ /** The class write scope judges `principal` as: the first class its grants put it in, or `human`. */
70
+ export declare function principalClass(policy: TrustPolicy, principal: string | null, classes?: ClassRegistry): string;
71
+ export interface ClassData {
72
+ classes: PrincipalClass[];
73
+ /** Why some of the data can't be used, one line each. Empty when all of it can. */
74
+ problems: string[];
75
+ }
76
+ /**
77
+ * Check the text of a principals file against
78
+ * `workspace-principals.schema.json` and the rules the schema can't say: no
79
+ * core name or core role, and no name or role twice. `source` names the pin
80
+ * in the classes and in the messages.
81
+ */
82
+ export declare function parseClassData(text: string, source: string): ClassData;
83
+ /** A package's files, by a `/`-separated path inside it, or undefined when one is not there. */
84
+ export type PackageFiles = (path: string) => string | undefined;
85
+ /** A package directory on disk. */
86
+ export declare function diskFiles(dir: string): PackageFiles;
87
+ /** A package directory at `dir` in `tree`, such as the workspace at the base revision. */
88
+ export declare function treeFiles(tree: WorkspaceTree, dir: string): PackageFiles;
89
+ /** Read the classes a package publishes at `./workspace-principals`. Reads files only; imports nothing. A package that publishes none supplies none. */
90
+ export declare function readPackageClasses(files: PackageFiles, source: string): ClassData;
91
+ export interface LoadedClasses {
92
+ registry: ClassRegistry;
93
+ problems: KindLoadProblem[];
94
+ }
95
+ /**
96
+ * The classes a workspace knows: the core four plus every class its pins
97
+ * supply. A package pin is read from the installed package, looked up from
98
+ * `workspaceRoot`, and must be at the pinned version. A path pin is read
99
+ * through `tree` when given (the base revision, for write scope), else from
100
+ * `workspaceRoot` on disk, checked against its integrity digest. A class
101
+ * name, or a role, two pins both supply is a problem, and every class
102
+ * involved is left out, so a writeScope entry for it reads as unknown and
103
+ * fails closed. Never throws.
104
+ */
105
+ export declare function loadClassRegistry(pins: readonly PinLike[], workspaceRoot: string, opts?: {
106
+ tree?: WorkspaceTree;
107
+ }): LoadedClasses;
108
+ /**
109
+ * The writeScope keys no class in `classes` has, in file order. A writer
110
+ * judged `human` may be in such a class, since nothing says which role puts
111
+ * a principal in it, so write scope refuses that writer (fail closed).
112
+ */
113
+ export declare function unknownScopeClasses(writeScope: Record<string, unknown> | null, classes: ClassRegistry): string[];
114
+ //# sourceMappingURL=principal-classes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"principal-classes.d.ts","sourceRoot":"","sources":["../../src/workspace/principal-classes.ts"],"names":[],"mappings":"AAAA;;;;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,CAAA;CAAO,GAAG,aAAa,CA6CrI;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,EAAE,CAEhH"}
@@ -58,7 +58,8 @@ export declare const REASONS: {
58
58
  readonly "record-supersedes-conflict": "A second closed record supersedes a record another one already superseded.";
59
59
  readonly "record-remediates-unknown": "A remediates link names an id no record has.";
60
60
  readonly "record-remediates-not-closed": "A remediates link names a record that isn't closed; a record still open is amended instead.";
61
- readonly "session-seal-mismatch": "A closed session's seal is not the digest of its text: the session changed after it closed.";
61
+ readonly "record-seal-mismatch": "A closed record's seal is not the whole-file seal of its text now: the record changed after it closed.";
62
+ readonly "session-seal-mismatch": "A closed session's seal is not the whole-file seal of its text now: the session changed after it closed, or was sealed by the rule before #2546.";
62
63
  readonly "session-verdict-unknown-record": "A session's verdict names a record that none of the session kind's subject records has.";
63
64
  readonly "asset-drift": "A file the record pins by hash has changed: its bytes no longer hash to the pinned sha256.";
64
65
  readonly "asset-missing": "A file the record pins by hash does not exist in the tree read.";
@@ -76,6 +77,9 @@ export declare const REASONS: {
76
77
  readonly "work-done-gap-open": "A work record is done, and the finding it came from still fires on its region. graph --intent raises it, and records does by walking that region.";
77
78
  readonly "work-acceptance-unmet": "A work record is done, and one of its acceptance criteria has no passing evidence of the verification it expects. check fails on it (WSP117).";
78
79
  readonly "work-acceptance-self-verified": "A passing manual verdict on a work record's criterion names the record's implementer, so it does not count: a manual verdict comes from someone else.";
80
+ readonly "work-contract-unknown": "A work record names a contract that no record of its kind's contract kind has.";
81
+ readonly "work-contract-undecided": "A work record names a contract whose state is not approved, such as a draft.";
82
+ readonly "work-tier-unknown": "A work record names a builder tier that its kind's work.tier.tiers does not list.";
79
83
  readonly "answer-points-unreadable": "The points file the answer kind names can't be read, or is not valid.";
80
84
  readonly "answer-point-unknown": "The answer's point is not declared in the points file the answer kind names.";
81
85
  readonly "answer-point-changed": "The point's declaration changed since the question was asked, so the answer is to an older version of the question.";
@@ -87,7 +91,7 @@ export declare const REASONS: {
87
91
  readonly "seal-missing": "The verdict, or the record, carries no seal.";
88
92
  readonly "seal-signer-unlisted": "The reviewer, or the record's author, has no key in the signers file at base, so the seal can't count.";
89
93
  readonly "seal-signature-invalid": "The seal is malformed, names a signer other than the reviewer or author, or its signature does not verify over the verdict or record.";
90
- readonly "seal-unverifiable": "Nothing here can say whose seal it is: there is no signers file at base, or ssh-keygen is not installed.";
94
+ readonly "seal-unverifiable": "Nothing here can say whose seal it is: there is no signers file at base, ssh-keygen is not installed, or the record came back in a return sealed by a signer no admission lists yet.";
91
95
  readonly "record-unattested": "A signers file is active at base, and the record names an author whose seal does not verify: it has none, the author has no key in the file, or the signature fails.";
92
96
  readonly "kind-unreadable": "The record kind file is missing or could not be imported.";
93
97
  readonly "kind-invalid": "The record kind file exports no recordKind, or its shape is wrong.";
@@ -111,6 +115,12 @@ export declare const REASONS: {
111
115
  readonly "source-harvest-not-proposed": "A harvested record (source.via harvest) was written in a state other than the kind's first: a harvest proposes, and a person decides.";
112
116
  readonly "ratify-quorum-not-met": "The write puts a record in its kind's ratified state (reviews.ratified), and the record's quorum is not met: too few agreeing verdicts count.";
113
117
  readonly "record-sign-failed": "--sign was given and no author seal could be made: the record names no author, the key can't be read or used, git names no ssh signing key, or ssh-keygen is not installed.";
118
+ readonly "write-scope-member": "The write is to a file, or to a record kind, of a member outside the writer's scope: an agent session writes only its own member, and writeScope.<class>.members leaves the member out.";
119
+ readonly "write-scope-kind": "The write is to a record kind writeScope.<class>.records does not list, with a verb it does not list for the kind, or deletes a record.";
120
+ readonly "write-scope-protected": "The write is to a file writeScope.<class>.protected lists, or one under a directory it lists, outside any top-level keys the entry's except allows (#3146).";
121
+ readonly "write-scope-class-unknown": "The declaration's writeScope at base names a principal class no pinned package supplies, and the writer is judged human, so it may be in that class; the write is refused until the package is installed at the pinned version or the entry removed (#3080).";
122
+ readonly "agent-unknown": "CHANT_AGENT, or a commit's Chant-Agent trailer, names an agent session the declaration at base does not declare.";
123
+ readonly "principal-unidentified": "chant.workspace.json at base sets identity.attribution to identified, and the write names a person by a bare name: --by, an author field or a decision point's answerer must be a forge identity (github:<login>, gitlab:<login>, <forge>@<host>:<login>), a principal the signers file at base lists, or an agent, runner or service principal (#3163).";
114
124
  readonly "session-unknown": "--session names no session of a session kind whose subjects are the record's kind.";
115
125
  readonly "session-not-open": "--session names a session in a closed state, which takes no more verdicts.";
116
126
  readonly "points-undeclared": "No record kind with an answers block is declared, or given with --kind, so there is no points file to ask.";
@@ -126,10 +136,13 @@ export declare const REASONS: {
126
136
  readonly "since-session-open": "--since names a session that is still open, so the comparison runs to the working tree.";
127
137
  readonly "intent-region-invalid": "The region's path, or its line range, does not exist in the tree read.";
128
138
  readonly "intent-record-unknown": "graph --intent --record names an id that no record of a decision kind read has.";
139
+ readonly "intent-symbol-unsupported": "The region names a symbol, path#symbol, in a file no symbol resolver reads; a line range still works.";
140
+ readonly "intent-symbol-unknown": "The region names a symbol the file does not declare in the tree read.";
141
+ readonly "intent-symbol-ambiguous": "The region names a symbol that matches more than one declaration in the file; its qualified name picks one.";
129
142
  readonly "intent-history-shallow": "The repository is a shallow clone, so the region's history stops at the clone's boundary.";
130
143
  readonly "intent-plugin-failed": "A kind file's commitJoins, which joins commits to units, contracts and evidence, failed for a commit.";
131
144
  readonly "intent-commit-undecided": "A commit changed the region when no decision constrained it at path granularity.";
132
- readonly "intent-commit-bare": "A commit names no unit, no pull request and no decision covering the region at its time.";
145
+ readonly "intent-commit-bare": "A commit names no unit, carries no record through its Chant-Record or Chant-Lease trailer, and has no pull request and no decision covering the region at its time.";
133
146
  readonly "intent-pin-drifted": "A decision's pinned artifact no longer hashes to the pin.";
134
147
  readonly "intent-pin-missing": "A decision's pinned artifact does not exist in the tree read.";
135
148
  readonly "intent-pin-stale": "A current decision pins an artifact at the hash a record it supersedes pinned, and the artifact has not changed since: the decision moved on and the artifact did not.";
@@ -145,6 +158,10 @@ export declare const REASONS: {
145
158
  readonly "intent-decision-unimplemented": "A decided decision constrains the region, no work item that is not dropped implements it, and no commit falls in its window.";
146
159
  readonly "intent-work-blocked": "A work item constraining the region has commits in its window while a work item it needs is not done.";
147
160
  readonly "intent-work-open-decided-code": "Commits in the region are a decision's own work while the work item implementing that decision is still open.";
161
+ readonly "intent-why-no-decision": "No current decision governs the region at any granularity, and none is carried out by the commits or runs that made its current lines.";
162
+ readonly "intent-why-no-run": "None of the region's current lines was made by a commit an agent run is joined to.";
163
+ readonly "intent-why-uncommitted": "Some of the region's lines are not committed yet.";
164
+ readonly "intent-why-run-ambiguous": "Some lines come from a commit several agent runs made, and no run's recorded hunks say which wrote them.";
148
165
  readonly "change-uncovered": "A path the diff changes is covered by no current decided record and no open work item, by path or by its member.";
149
166
  readonly "change-out-of-scope": "A record in hand for the change, such as the work item it is for or a decision that item implements, lists a path the diff changes in its out_of_scope.";
150
167
  readonly "patch-path-invalid": "workspace patch --path names a path that is not relative and inside the workspace.";
@@ -164,6 +181,8 @@ export declare const REASONS: {
164
181
  readonly "box-fountain-callback-undeclared": "A box member builds a fountain Box, whose persistent sandbox fountain gives a callback token scoped to its owner, and the member's box block does not declare the fountain-callback capability brokered by fountain with scope owner.";
165
182
  readonly "box-intent-unknown": "A box block names an intent, and no record of a declared kind named decision has that id.";
166
183
  readonly "box-intent-unconstrained": "The decision record a box names as its intent constrains no member or path of this workspace: no member: entry for a declared member and no path: entry at, above or inside one's directory.";
184
+ readonly "box-none": "No member's box block declares services, so the workspace has no box for a host to plant.";
185
+ readonly "box-several": "More than one member's box block declares services, and a planted workspace runs one box.";
167
186
  readonly "work-kind-missing": "No work kind to find the item in: --kind names a kind with no work block, or the declaration names no work kind.";
168
187
  readonly "work-kind-ambiguous": "More than one declared work kind has a record with the id, so --kind must name one.";
169
188
  readonly "work-item-unknown": "No work record has the id, so there is nothing to lease.";
@@ -174,8 +193,33 @@ export declare const REASONS: {
174
193
  readonly "lease-token-mismatch": "The live lease on the work item carries another fencing token than the one given.";
175
194
  readonly "lease-race": "Another writer changed the lease between this command's read and its write.";
176
195
  readonly "lease-push-rejected": "The remote refused the lease push: another clone claimed the item first, or the remote could not be reached.";
196
+ readonly "run-exists": "runs start or runs record was given a run id the ledger already has.";
197
+ readonly "run-unknown": "runs end names a run the ledger has no start for.";
198
+ readonly "run-ended": "runs end names a run whose end is already recorded.";
199
+ readonly "runs-no-ledger": "The checkout has no chant/lifecycle branch, so there are no agent runs to read.";
200
+ readonly "runs-ledger-malformed": "Some lines of the agent run ledger aren't run events; the rest are read.";
177
201
  readonly "box-isolation-collision": "Two boxes on one host resolve to the same port, state path or cookie name, or two ports in one box share an offset.";
178
202
  readonly "box-isolation-literal": "A host's stateRoot or a box's state entry is a literal machine path instead of one derived from an environment reference and the box's name.";
203
+ readonly "signers-file-missing": "There is no signers file at the base revision, so there is no signer history to read.";
204
+ readonly "signers-removed": "The signers file was removed. Commits merged before the removal keep the set they were judged by; nothing after it verifies.";
205
+ readonly "rotation-unparseable": "The rotation file beside the signers file is not JSON.";
206
+ readonly "rotation-invalid": "The rotation file does not match its shape: schema 1, a version, the previous set's digest, a threshold and signatures.";
207
+ readonly "rotation-first-version": "The first signer set's rotation file names a version other than 1, or a previous digest.";
208
+ readonly "rotation-missing": "The signer set or its threshold changed and no rotation file signed by the set before it came with the change.";
209
+ readonly "rotation-version-skew": "The rotation names a version other than the one after the set it replaces, as a replayed or skipped rotation does.";
210
+ readonly "rotation-previous-mismatch": "The rotation names a previous digest other than the set it replaces, as a rollback to an older set does.";
211
+ readonly "rotation-threshold-unsatisfiable": "The new threshold is more than the number of distinct signers in the new set, so no later rotation could meet it.";
212
+ readonly "rotation-threshold-not-met": "Fewer distinct signers of the set before signed the rotation, in the chant-signers namespace, than that set's threshold.";
213
+ readonly "trust-policy-unreadable": "The trust policy at base can't be read, or its signer history is broken, so no runner key is trusted.";
214
+ readonly "envelope-unreadable": "The --envelope file can't be read, or is not JSON.";
215
+ readonly "envelope-invalid": "The file is not a DSSE envelope: payloadType, payload in canonical base64, and signatures with keyid and sig.";
216
+ readonly "envelope-untrusted": "No signature in the envelope verifies against a runner key the policy at base lists.";
217
+ readonly "evidence-payload-type": "The envelope's payload type is not application/vnd.in-toto+json.";
218
+ readonly "evidence-statement-invalid": "The payload is not an in-toto Statement v1 with chant's runner-evidence predicate, or has a field the predicate does not define.";
219
+ readonly "evidence-runner-mismatch": "The statement names a runner other than the one whose key signed it.";
220
+ readonly "runner-key-invalid": "The key given to evidence sign is not an Ed25519 private key in PEM.";
221
+ readonly "runner-key-is-signer": "The key given to evidence sign is a person's key in the signers file. Evidence is signed by a service or CI identity.";
222
+ readonly "runner-key-unlisted": "The policy at base lists no runner with the key given to evidence sign.";
179
223
  readonly "lock-invalid": "The lineage lock can't be read.";
180
224
  readonly "manual-step-open": "A scope in the lineage lock has an open manual step.";
181
225
  };
@@ -1 +1 @@
1
- {"version":3,"file":"reason-codes.d.ts","sourceRoot":"","sources":["../../src/workspace/reason-codes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,sHAAsH;AACtH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,uHAAuH;AACvH,eAAO,MAAM,mBAAmB,WAAW,CAAC;AAE5C,qFAAqF;AACrF,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiMV,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,OAAO,CAAC;AAE9C,mDAAmD;AACnD,eAAO,MAAM,YAAY,EAA2B,UAAU,EAAE,CAAC;AAEjE,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,I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 @@ export interface SessionCitation {
26
26
  verdict: string | null;
27
27
  }
28
28
  /**
29
- * The seal of a session record: {@link recordTextDigest} with the seal field
30
- * in place of the reviews list. That is the lowercase hex SHA-256 of the
31
- * file's text with LF line endings and without the front-matter line that
32
- * holds the seal, a quoted string on one line. Every other byte, the `---`
33
- * lines and the body included, is kept.
34
- *
35
- * `awk 'NR==1&&/^---$/{f=1;print;next} f&&/^---$/{f=0} f&&/^closed_digest:/{next} {print}' S-0001.md | shasum -a 256`
36
- * gives the same value for a file with LF line endings that ends in one.
37
- * For a session kind of format json (ws-053), the seal member is removed by
38
- * the JSON rule of {@link recordTextDigest} instead.
29
+ * The seal of a session record: {@link recordSeal} with the seal field, the
30
+ * whole-file JCS/SHA-256 every closed record of a sealed kind carries
31
+ * (#2546, ws-063). Until #2546 it was the SHA-256 of the file's text without
32
+ * the seal line; a session sealed by that rule holds a bare hex value and
33
+ * reads as `session-seal-mismatch` now. Null when the front matter can't be
34
+ * parsed.
39
35
  */
40
- export declare function sessionSeal(text: string, field: string, format?: RecordFormat): string;
36
+ export declare function sessionSeal(text: string, field: string, format?: RecordFormat): string | null;
41
37
  /**
42
38
  * Check each session in `entries` against its seal and the subject records,
43
39
  * and fill in `citedBy`. `texts` holds each entry's file text by path.
@@ -1 +1 @@
1
- {"version":3,"file":"record-sessions.d.ts","sourceRoot":"","sources":["../../src/workspace/record-sessions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAoB,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AAEnG,mFAAmF;AACnF,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,uEAAuE;IACvE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,s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C,EAAE,QAAQ,EAAE;IAAE,OAAO,EAAE,WAAW,EAAE,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,GAAG,IAAI,CAsDrK"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * The checkout a working-tree read is made in, and which records in it are
3
+ * uncommitted (#3160).
4
+ *
5
+ * Work in progress lives as uncommitted files in a work branch's working tree
6
+ * (#3158, #3145). A reader such as hud or studio shows "kept, not yet
7
+ * applied" from `records --json` alone: each record says whether it is
8
+ * committed, modified or new against `HEAD`, and the document names the
9
+ * branch, the commit `HEAD` names and the base that branch forked from. The
10
+ * reader never diffs git itself.
11
+ *
12
+ * Every git call here reads. None takes the index lock or refreshes the
13
+ * index (`--no-optional-locks`), so a read leaves the checkout as it was,
14
+ * `.git` included, which the reader conformance suite checks.
15
+ */
16
+ import { type BaseSource } from "./trust/provenance.js";
17
+ /** Where a record's file stands against `HEAD`. */
18
+ export type WorktreeState = "committed" | "modified" | "new";
19
+ /** The branch, head and base of a checkout (#3160). `records` and `status` both print it. */
20
+ export interface CheckoutHead {
21
+ /** The checked-out branch's short name, such as `chant/work/w-12`, or null when `HEAD` is detached. */
22
+ branch: string | null;
23
+ /** The commit `HEAD` names, or null before the first commit. Each record's `worktree` is judged against it. */
24
+ head: string | null;
25
+ /** The merge base of `head` and the target branch tip: the commit the branch forked from. Null without a head, a target, or common history. */
26
+ base: string | null;
27
+ /** Where the target branch was found: `flag` for `--base`, else `origin/HEAD`, `main` or `master`. Null when there is none. */
28
+ baseFrom: BaseSource | null;
29
+ }
30
+ /** {@link CheckoutHead} for one record kind, with the record files `HEAD` has and the working tree does not. */
31
+ export interface CheckoutView extends CheckoutHead {
32
+ /** Record files of the kind at `head` that the working tree no longer has, from the repository root, sorted. */
33
+ deleted: string[];
34
+ }
35
+ /**
36
+ * The branch, head and base of the checkout at `top`. `explicitBase` is
37
+ * `--base`, as the trust policy takes it; otherwise the target branch is the
38
+ * one the policy is read at (`origin/HEAD`, then `main`, then `master`).
39
+ */
40
+ export declare function readCheckoutHead(top: string, explicitBase?: string): CheckoutHead;
41
+ /**
42
+ * Each of `paths` (record files directly in `dir`, from the repository root)
43
+ * as committed, modified or new against `head`, and the files directly in
44
+ * `dir` at `head` whose names `match` and that `paths` leaves out: the
45
+ * records deleted in the working tree. With no head every path is new.
46
+ *
47
+ * Staged and unstaged changes count alike: anything `HEAD` does not hold is
48
+ * uncommitted. A rename is a new record and a deleted one.
49
+ */
50
+ export declare function worktreeStates(top: string, head: string | null, dir: string, paths: readonly string[], match: RegExp): {
51
+ states: Map<string, WorktreeState>;
52
+ deleted: string[];
53
+ };
54
+ //# sourceMappingURL=records-checkout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"records-checkout.d.ts","sourceRoot":"","sources":["../../src/workspace/records-checkout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAGH,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAElE,mDAAmD;AACnD,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG,UAAU,GAAG,KAAK,CAAC;AAE7D,6FAA6F;AAC7F,MAAM,WAAW,YAAY;IAC3B,uGAAuG;IACvG,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,+GAA+G;IAC/G,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+IAA+I;IAC/I,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,+HAA+H;IAC/H,QAAQ,EAAE,UAAU,GAAG,IAAI,CAAC;CAC7B;AAED,gHAAgH;AAChH,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,gHAAgH;IAChH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAmBD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAMjF;AAOD;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,KAAK,EAAE,MAAM,GACZ;IAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IAAC,OAAO,EAAE,MAAM,EAAE,CAAA;CAAE,CAe3D"}
@@ -15,17 +15,23 @@
15
15
  *
16
16
  * With `--since <rev>` it prints what changed between two revisions instead,
17
17
  * through `records-since.ts` (#2673).
18
+ *
19
+ * A working-tree read in git says, for each record, whether it is committed,
20
+ * modified or new against `HEAD`, and names the branch, head and base of the
21
+ * checkout; `--uncommitted` lists only the records `HEAD` doesn't hold
22
+ * (#3160, `records-checkout.ts`).
18
23
  */
19
24
  import type { CommandContext } from "../cli/registry.js";
20
25
  import { type DecidedIn } from "./record-decided.js";
21
26
  import { type RecordSource } from "./record-source.js";
22
27
  import { type RecordKindDeclaration } from "./declaration.js";
23
28
  import { type LoadedRecordKind, type Quorum, type QuorumOptions, type ReadErrorCode, type ReadRecordsResult, type RecordEntry, type RecordFormat, type VerdictAttestation } from "./records.js";
29
+ import { type CheckoutView, type WorktreeState } from "./records-checkout.js";
24
30
  import { type WorkspaceTree } from "./tree.js";
25
- import type { DecisionWork } from "./work.js";
31
+ import type { DecisionWork, WorkAnswer } from "./work.js";
26
32
  import { type ProvenanceLevel } from "./trust/attestor.js";
27
33
  import { type BaseSource, type RecordProvenance } from "./trust/provenance.js";
28
- import type { TrustPolicy } from "./trust/policy.js";
34
+ import { type TrustPolicy } from "./trust/policy.js";
29
35
  /** The version of the `records` output this chant writes. */
30
36
  export declare const RECORDS_CONTRACT_VERSION = 1;
31
37
  /** `$id` of the JSON Schema for the `--json` output, shipped beside this file. */
@@ -46,6 +52,8 @@ export interface RecordsQuery {
46
52
  * false; the intent graph passes false, since it raises the warning itself.
47
53
  */
48
54
  workGaps?: boolean;
55
+ /** List only the records that are modified or new against `HEAD` (#3160). Needs git and a working-tree read. */
56
+ uncommitted?: boolean;
49
57
  }
50
58
  /**
51
59
  * A record as the output carries it: the entry plus its provenance (#2547),
@@ -77,6 +85,20 @@ export type RecordView = RecordEntry & {
77
85
  * (`record-decided.ts`). The intent graph's windows open at this commit.
78
86
  */
79
87
  decidedIn?: DecidedIn | null;
88
+ /**
89
+ * For a read in the working tree of a git repository (#3160): whether the
90
+ * record's file is as `HEAD` holds it (`committed`), changed from it
91
+ * (`modified`), or not in it (`new`), staged or not. Absent under `--at`.
92
+ */
93
+ worktree?: WorktreeState;
94
+ /**
95
+ * For a work kind whose work block names an answer kind (#3147): the
96
+ * decision-point answers about the item, the answer records whose
97
+ * `constrains` names its id, joined by id and never copied onto the item.
98
+ * Read at the same revision; in the working tree, with the questions a
99
+ * steward keeps on the lifecycle ledger (#2786) laid over it.
100
+ */
101
+ answers?: WorkAnswer[];
80
102
  };
81
103
  /** The role in the trust policy whose holders' verdicts the quorum does not count (#2671). */
82
104
  export declare const AGENT_ROLE = "agent";
@@ -99,11 +121,16 @@ export type RecordsDocument = {
99
121
  schema: string;
100
122
  file: string;
101
123
  format: RecordFormat;
124
+ spec: boolean;
102
125
  };
103
126
  at: string | null;
104
127
  /** The directory pinned paths resolve in, from the repository root: the workspace holding the kind file, or the repository root (#2549). */
105
128
  workspaceRoot: string;
106
129
  current: boolean;
130
+ /** Whether only the records `HEAD` doesn't hold were listed (`--uncommitted`, #3160). */
131
+ uncommitted: boolean;
132
+ /** For a read in the working tree of a git repository (#3160): the branch, head and base it is on, and the records deleted from it. Absent under `--at`. */
133
+ checkout?: CheckoutView;
107
134
  trust: TrustView;
108
135
  records: RecordView[];
109
136
  summary: {
@@ -142,7 +169,35 @@ export interface RecordsSetDocument {
142
169
  kinds: (RecordsDocument & {
143
170
  declared: DeclaredKindView;
144
171
  })[];
172
+ /** With `--current`: the workspace's spec (#2524 D20, #2546), from the kinds marked `spec: true`. */
173
+ spec?: SpecView;
174
+ }
175
+ /**
176
+ * The spec (#2524 D20): the current records of every declared kind marked
177
+ * `spec: true`, each with the workspace files it pins. `records --current
178
+ * --json` prints it beside the kinds, so an agent resumes from the
179
+ * declaration and this one read.
180
+ */
181
+ export interface SpecView {
182
+ /** The spec kinds, as the declaration names them, in its order. */
183
+ kinds: DeclaredKindView[];
184
+ records: SpecRecord[];
185
+ }
186
+ /** One current record of a spec kind. */
187
+ export interface SpecRecord {
188
+ /** The kind's name, such as decision. */
189
+ kind: string;
190
+ id: string | null;
191
+ path: string;
192
+ state: string | null;
193
+ valid: boolean;
194
+ /** The digest a verdict names (#2672). */
195
+ digest: string;
196
+ /** Each workspace file the record pins: its path from the workspace root, the sha256 pinned, and how it compares with the tree read (#2549). */
197
+ assets: RecordEntry["assets"];
145
198
  }
199
+ /** The spec of a set of declared kinds already read with `--current`. */
200
+ export declare function specOf(kinds: RecordsSetDocument["kinds"]): SpecView;
146
201
  /**
147
202
  * The record kinds the declaration nearest above `cwd` names, in the tree
148
203
  * `at` reads, with each kind file on disk. Empty when there is no declaration.
@@ -1 +1 @@
1
- {"version":3,"file":"records-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/records-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGtD,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,EAAkE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAA4D,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAGrH,OAAO,EAQL,KAAK,gBAAgB,EACrB,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,YAAY,EAGjB,KAAK,kBAAkB,EACxB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAwB,KAAK,aAAa,EA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