@intentius/chant 0.93.0 → 0.95.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 (149) hide show
  1. package/dist/cli/handlers/operator.d.ts.map +1 -1
  2. package/dist/cli/handlers/run.d.ts.map +1 -1
  3. package/dist/cli/main.d.ts.map +1 -1
  4. package/dist/cli/mcp/workspace-plugins.d.ts +6 -6
  5. package/dist/cli/registry.d.ts +2 -0
  6. package/dist/cli/registry.d.ts.map +1 -1
  7. package/dist/op/builders.d.ts +14 -3
  8. package/dist/op/builders.d.ts.map +1 -1
  9. package/dist/op/index.d.ts +6 -3
  10. package/dist/op/index.d.ts.map +1 -1
  11. package/dist/op/operator.d.ts +90 -0
  12. package/dist/op/operator.d.ts.map +1 -1
  13. package/dist/op/steward-beside.d.ts +84 -0
  14. package/dist/op/steward-beside.d.ts.map +1 -0
  15. package/dist/op/steward.d.ts +87 -2
  16. package/dist/op/steward.d.ts.map +1 -1
  17. package/dist/workspace/box-intent.d.ts +85 -0
  18. package/dist/workspace/box-intent.d.ts.map +1 -0
  19. package/dist/workspace/box-services.d.ts +31 -0
  20. package/dist/workspace/box-services.d.ts.map +1 -0
  21. package/dist/workspace/chant-migrations.d.ts +5 -0
  22. package/dist/workspace/chant-migrations.d.ts.map +1 -1
  23. package/dist/workspace/checks/boxes.d.ts +14 -1
  24. package/dist/workspace/checks/boxes.d.ts.map +1 -1
  25. package/dist/workspace/checks.d.ts +4 -0
  26. package/dist/workspace/checks.d.ts.map +1 -1
  27. package/dist/workspace/compose-graph.d.ts +11 -0
  28. package/dist/workspace/compose-graph.d.ts.map +1 -1
  29. package/dist/workspace/composites.d.ts +5 -1
  30. package/dist/workspace/composites.d.ts.map +1 -1
  31. package/dist/workspace/decision-points.schema.json +3 -3
  32. package/dist/workspace/declaration.d.ts +43 -0
  33. package/dist/workspace/declaration.d.ts.map +1 -1
  34. package/dist/workspace/declaration.schema.json +62 -1
  35. package/dist/workspace/graph-cache.d.ts +168 -0
  36. package/dist/workspace/graph-cache.d.ts.map +1 -0
  37. package/dist/workspace/graph-cli.d.ts +11 -5
  38. package/dist/workspace/graph-cli.d.ts.map +1 -1
  39. package/dist/workspace/intent-joins.d.ts +5 -5
  40. package/dist/workspace/kind-readers.d.ts +39 -0
  41. package/dist/workspace/kind-readers.d.ts.map +1 -0
  42. package/dist/workspace/kinds.d.ts +29 -0
  43. package/dist/workspace/kinds.d.ts.map +1 -1
  44. package/dist/workspace/member-commands.d.ts +15 -1
  45. package/dist/workspace/member-commands.d.ts.map +1 -1
  46. package/dist/workspace/member-run.d.ts +2 -0
  47. package/dist/workspace/member-run.d.ts.map +1 -1
  48. package/dist/workspace/points-cli.d.ts +2 -0
  49. package/dist/workspace/points-cli.d.ts.map +1 -1
  50. package/dist/workspace/points.d.ts +3 -5
  51. package/dist/workspace/points.d.ts.map +1 -1
  52. package/dist/workspace/reason-codes.d.ts +5 -1
  53. package/dist/workspace/reason-codes.d.ts.map +1 -1
  54. package/dist/workspace/records-cli.d.ts +10 -1
  55. package/dist/workspace/records-cli.d.ts.map +1 -1
  56. package/dist/workspace/records-write.d.ts +4 -2
  57. package/dist/workspace/records-write.d.ts.map +1 -1
  58. package/dist/workspace/records.d.ts +8 -3
  59. package/dist/workspace/records.d.ts.map +1 -1
  60. package/dist/workspace/status-stewards.d.ts +31 -9
  61. package/dist/workspace/status-stewards.d.ts.map +1 -1
  62. package/dist/workspace/status.d.ts +20 -0
  63. package/dist/workspace/status.d.ts.map +1 -1
  64. package/dist/workspace/work-evidence.d.ts +1 -1
  65. package/dist/workspace/work-evidence.d.ts.map +1 -1
  66. package/dist/workspace/workspace-kinds.schema.json +26 -0
  67. package/package.json +1 -1
  68. package/src/cli/commands/carve-bridge.test.ts +7 -3
  69. package/src/cli/handlers/operator-steward-signal.e2e.test.ts +97 -0
  70. package/src/cli/handlers/operator.ts +53 -11
  71. package/src/cli/handlers/run.test.ts +71 -0
  72. package/src/cli/handlers/run.ts +65 -7
  73. package/src/cli/main.ts +21 -9
  74. package/src/cli/mcp/workspace-plugins.ts +6 -6
  75. package/src/cli/mcp/workspace-tools.ts +1 -1
  76. package/src/cli/registry.ts +2 -0
  77. package/src/cli/serve-mcp-workspace.test.ts +6 -6
  78. package/src/cli/static-config-read.test.ts +8 -2
  79. package/src/meta/source-is-text.test.ts +21 -3
  80. package/src/okf.test.ts +6 -1
  81. package/src/op/activities/decide.test.ts +8 -0
  82. package/src/op/builders.ts +14 -3
  83. package/src/op/index.ts +8 -2
  84. package/src/op/operator.ts +264 -16
  85. package/src/op/steward-beside.test.ts +267 -0
  86. package/src/op/steward-beside.ts +219 -0
  87. package/src/op/steward-points.test.ts +112 -1
  88. package/src/op/steward.ts +135 -3
  89. package/src/workspace/box-intent.test.ts +205 -0
  90. package/src/workspace/box-intent.ts +159 -0
  91. package/src/workspace/box-services.test.ts +129 -0
  92. package/src/workspace/box-services.ts +51 -0
  93. package/src/workspace/chant-migrations.ts +5 -0
  94. package/src/workspace/check.schema.json +7 -3
  95. package/src/workspace/checks/boxes.test.ts +3 -1
  96. package/src/workspace/checks/boxes.ts +66 -0
  97. package/src/workspace/checks.ts +12 -1
  98. package/src/workspace/compose-graph.test.ts +1 -0
  99. package/src/workspace/compose-graph.ts +11 -0
  100. package/src/workspace/composites.test.ts +1 -1
  101. package/src/workspace/composites.ts +12 -5
  102. package/src/workspace/conformance/__fixture__/decisions/decision.kind.mjs +4 -2
  103. package/src/workspace/decision-points.schema.json +3 -3
  104. package/src/workspace/declaration.schema.json +62 -1
  105. package/src/workspace/declaration.ts +112 -0
  106. package/src/workspace/declared-kinds.test.ts +26 -0
  107. package/src/workspace/graph-cache.test.ts +343 -0
  108. package/src/workspace/graph-cache.ts +409 -0
  109. package/src/workspace/graph-cli.ts +93 -26
  110. package/src/workspace/graph-contract.test.ts +129 -6
  111. package/src/workspace/graph.schema.json +21 -1
  112. package/src/workspace/intent-joins.test.ts +5 -5
  113. package/src/workspace/intent-joins.ts +5 -5
  114. package/src/workspace/kind-readers.e2e.test.ts +68 -0
  115. package/src/workspace/kind-readers.test.ts +134 -0
  116. package/src/workspace/kind-readers.ts +111 -0
  117. package/src/workspace/kinds.test.ts +49 -0
  118. package/src/workspace/kinds.ts +59 -2
  119. package/src/workspace/member-commands.test.ts +15 -0
  120. package/src/workspace/member-commands.ts +47 -7
  121. package/src/workspace/member-run.ts +10 -2
  122. package/src/workspace/points-cli.ts +3 -0
  123. package/src/workspace/points.schema.json +18 -0
  124. package/src/workspace/points.test.ts +15 -14
  125. package/src/workspace/points.ts +4 -16
  126. package/src/workspace/read-contract.test.ts +8 -0
  127. package/src/workspace/reason-codes.test.ts +7 -7
  128. package/src/workspace/reason-codes.ts +6 -1
  129. package/src/workspace/records-amend.schema.json +1 -0
  130. package/src/workspace/records-cli.ts +34 -13
  131. package/src/workspace/records-contract.test.ts +2 -1
  132. package/src/workspace/records-formats.test.ts +15 -15
  133. package/src/workspace/records-new.schema.json +1 -0
  134. package/src/workspace/records-quorum.test.ts +10 -3
  135. package/src/workspace/records-sessions-write.test.ts +2 -1
  136. package/src/workspace/records-since.test.ts +8 -7
  137. package/src/workspace/records-write.test.ts +101 -1
  138. package/src/workspace/records-write.ts +50 -6
  139. package/src/workspace/records.test.ts +1 -1
  140. package/src/workspace/records.ts +22 -5
  141. package/src/workspace/status-contract.test.ts +32 -1
  142. package/src/workspace/status-stewards.ts +88 -9
  143. package/src/workspace/status.schema.json +66 -4
  144. package/src/workspace/status.ts +32 -0
  145. package/src/workspace/trust/record-seal.test.ts +26 -2
  146. package/src/workspace/work-evidence.schema.json +1 -0
  147. package/src/workspace/{work-readiness-chud.test.ts → work-readiness.test.ts} +30 -32
  148. package/src/workspace/work.test.ts +17 -0
  149. package/src/workspace/workspace-kinds.schema.json +26 -0
@@ -0,0 +1,85 @@
1
+ /**
2
+ * A box's intent (#2850): the decision record its box block names.
3
+ *
4
+ * A new box starts as a question, and the first answer to it is what the box
5
+ * is for. That answer is a decision record, so the intent graph, hud and a
6
+ * box's runtime all read the same thing. The box block names the record's
7
+ * id in `intent`; the record is looked for among the records of every
8
+ * declared kind named `decision` (the entry's `name`, or the kind file's
9
+ * `recordKind.name`), read from the working tree through the same reader as
10
+ * `chant workspace records`.
11
+ *
12
+ * `chant workspace status --json` reports the record's state and answer
13
+ * under the member's `box.intent`, and `chant workspace check` fails when no
14
+ * decision record has the id (WSP126) and warns when the record constrains
15
+ * no member or path of this workspace at all (WSP127, #2857): the member it
16
+ * names need not be the box's own, since a decision naming another member
17
+ * can be what the box is for, such as the app it runs.
18
+ */
19
+ import { type DeclaredKind } from "./declared-kinds.js";
20
+ import type { Declaration } from "./declaration.js";
21
+ /** The declared kind name a box's intent is looked for in. */
22
+ export declare const INTENT_KIND_NAME = "decision";
23
+ /** A box's intent as `status --json` reports it: the record's id, state and answer. */
24
+ export interface BoxIntent {
25
+ id: string;
26
+ /** The record's state, such as proposed or decided, or null when no decision record has the id. */
27
+ state: string | null;
28
+ question: string | null;
29
+ /** The record's choice as written, such as `{ option, reason }`, or null while it is proposed. */
30
+ choice: unknown;
31
+ /** The chosen option's label, from `options[]`, or null while no option is chosen. */
32
+ answer: string | null;
33
+ decided_by: string | null;
34
+ decided_on: string | null;
35
+ }
36
+ /** The decision record a box's intent names, as the checks read it. */
37
+ export interface ResolvedBoxIntent {
38
+ member: string;
39
+ id: string;
40
+ /** The `intent` field's JSON Pointer in the declaration. */
41
+ pointer: string;
42
+ /** The record, or null when no decision record has the id. */
43
+ record: {
44
+ /** The kind file that holds it, from the workspace root. */
45
+ kind: string;
46
+ /** The record file, from the repository root. */
47
+ path: string;
48
+ /** The record's constrains entries, as written. */
49
+ constrains: string[];
50
+ intent: BoxIntent;
51
+ } | null;
52
+ /** Why no record was found when none was, such as no declared decision kind. Empty when one was found. */
53
+ why: string;
54
+ }
55
+ /** The intent of `id` with no record: every field but the id null. */
56
+ export declare function unresolvedIntent(id: string): BoxIntent;
57
+ /**
58
+ * Resolve the intent of every box that names one, reading the records of each
59
+ * declared decision kind once. `kinds` are the declared kinds already loaded,
60
+ * when the caller has them. Only the working tree is read.
61
+ */
62
+ export declare function resolveBoxIntents(declaration: Declaration, root: string, kinds?: readonly DeclaredKind[]): Promise<ResolvedBoxIntent[]>;
63
+ /**
64
+ * Whether a constrains entry covers something of the box: `member:<name>`, or
65
+ * a `path:` entry that is the member's directory, a directory above it or a
66
+ * path inside it.
67
+ */
68
+ export declare function constrainsBox(entry: string, member: {
69
+ name: string;
70
+ dir: string;
71
+ }): boolean;
72
+ /**
73
+ * Whether a constrains entry names a member or path of this workspace at
74
+ * all: `member:<name>` for any declared member, or a `path:` entry that is
75
+ * some member's directory, a directory above it or a path inside it. An
76
+ * intent's constrains can govern a member other than the one whose box
77
+ * names it (a box run by one member can be what a decision about another
78
+ * member's app is for), so this asks only whether the entry is real, not
79
+ * whether it reaches a particular member.
80
+ */
81
+ export declare function constrainsWorkspace(entry: string, members: readonly {
82
+ name: string;
83
+ dir: string;
84
+ }[]): boolean;
85
+ //# sourceMappingURL=box-intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-intent.d.ts","sourceRoot":"","sources":["../../src/workspace/box-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,KAAK,EAAE,WAAW,EAAU,MAAM,eAAe,CAAC;AAIzD,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,uFAAuF;AACvF,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,mGAAmG;IACnG,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kGAAkG;IAClG,MAAM,EAAE,OAAO,CAAC;IAChB,sFAAsF;IACtF,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED,uEAAuE;AACvE,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,MAAM,CAAC;IACX,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,MAAM,EAAE;QACN,4DAA4D;QAC5D,IAAI,EAAE,MAAM,CAAC;QACb,iDAAiD;QACjD,IAAI,EAAE,MAAM,CAAC;QACb,mDAAmD;QACnD,UAAU,EAAE,MAAM,EAAE,CAAC;QACrB,MAAM,EAAE,SAAS,CAAC;KACnB,GAAG,IAAI,CAAC;IACT,0GAA0G;IAC1G,GAAG,EAAE,MAAM,CAAC;CACb;AAYD,sEAAsE;AACtE,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAEtD;AAED;;;;GAIG;AACH,wBAAsB,iBAAiB,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,SAAS,YAAY,EAAE,GAAG,OAAO,CAAC,iBAAiB,EAAE,CAAC,CAiD7I;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,OAAO,CAQ3F;AAED;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,OAAO,CAE7G"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * The services a box declares, read for the process that runs in the box
3
+ * (#2880).
4
+ *
5
+ * A box member's block in the declaration lists the services the box runs
6
+ * under its supervisor (`BoxService` in `declaration.ts`). The fly lexicon's
7
+ * `spriteServicesObserve`, `spriteServiceRestart` and `spriteApplyServices`
8
+ * take `box: true` to read that list instead of one passed to them: the list
9
+ * of the member whose directory holds the working directory. They import
10
+ * this module when they run, so it stays small: it finds the workspace root,
11
+ * reads the declaration from the working tree and picks the member.
12
+ */
13
+ import { type BoxService } from "./declaration.js";
14
+ export type { BoxService } from "./declaration.js";
15
+ /** The box block's services, and whose they are. */
16
+ export interface DeclaredBoxServices {
17
+ /** The workspace root, absolute. */
18
+ root: string;
19
+ /** The member whose directory holds the working directory. */
20
+ member: string;
21
+ /** In file order. */
22
+ services: BoxService[];
23
+ }
24
+ /**
25
+ * The services of the box block of the member whose directory holds `cwd`.
26
+ * Throws a {@link WorkspaceReadError} when there is no workspace or its
27
+ * declaration can't be read, and an Error when no member holds `cwd` or the
28
+ * member has no box block. A block with no `services` gives an empty list.
29
+ */
30
+ export declare function readBoxServices(cwd?: string): DeclaredBoxServices;
31
+ //# sourceMappingURL=box-services.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"box-services.d.ts","sourceRoot":"","sources":["../../src/workspace/box-services.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAKH,OAAO,EAAgD,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAG9F,YAAY,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD,oDAAoD;AACpD,MAAM,WAAW,mBAAmB;IAClC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAC;IACf,qBAAqB;IACrB,QAAQ,EAAE,UAAU,EAAE,CAAC;CACxB;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAE,MAAsB,GAAG,mBAAmB,CAahF"}
@@ -26,6 +26,11 @@
26
26
  * still the template's, so to a later upgrade they are the project's own
27
27
  * edits, merged per file like any other (ws-005). A deleted file keeps its
28
28
  * entry too, so a template version that still has it leaves it deleted.
29
+ *
30
+ * chant itself carries no chud lexicon or chud-shaped code (#2830, once
31
+ * #2715's proof passed): `chud-lexicon-exit` and its follow-ons are the
32
+ * retirement tool, not a remaining dependency. They stay until no known repo
33
+ * still depends on chud, and are removed only in a major version.
29
34
  */
30
35
  import type { Lineage } from "./lineage-lock.js";
31
36
  /** One file a plan writes or deletes, relative to the scope. */
@@ -1 +1 @@
1
- {"version":3,"file":"chant-migrations.d.ts","sourceRoot":"","sources":["../../src/workspace/chant-migrations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAIH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAQ9C,gEAAgE;AAChE,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,GAAG,QAAQ,CAAC;IAC3B,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qGAAqG;IACrG,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,qEAAqE;AACrE,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oCAAoC;AACpC,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAqB;IACpC,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,OAAO,CAAC;IACjB,kEAAkE;IAClE,YAAY,EAAE,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cAAc,EAAqB,GAAG,kBAAkB,EAAE,CAS9I;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,qBAAqB,EAAE,UAAU,GAAE,SAAS,cAAc,EAAqB,GAAG,KAAK,CAAC;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAW9K;AAED,wEAAwE;AACxE,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAYjG;AAED,0DAA0D;AAC1D,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;IAC5C,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,OAAO,GAAG,oBAAoB,CAS3F"}
@@ -37,14 +37,27 @@
37
37
  * imports `Box` from `@intentius/chant-lexicon-fountain` and calls it, read as
38
38
  * syntax and never run. Upstream, managoat/fountain#2497 asks for a way to run
39
39
  * a persistent agent with no callback token.
40
+ *
41
+ * WSP126 (`box-intent-unknown`) and WSP127 (`box-intent-unconstrained`), #2850,
42
+ * read the decision record a box block names as its intent (`box-intent.ts`).
43
+ * WSP126 fails when no record of a declared kind named decision has the id.
44
+ * WSP127 warns when the record's constrains names no member or path of this
45
+ * workspace at all: no `member:` entry for a declared member and no `path:`
46
+ * entry at, above or inside one's directory. It need not reach the box's own
47
+ * member: the decision an intent names can constrain the member whose app the
48
+ * box runs, on a workspace where the box block sits on a different member,
49
+ * the box's steward (studio's template, #2857). Both read the working
50
+ * tree's records, so neither runs under `--at`.
40
51
  */
41
52
  import * as ts from "typescript";
42
53
  import type { WorkspaceCheck } from "../checks.js";
43
54
  /** The read contract's codes for the box findings, carried as `code` on each. */
44
- export declare const BOX_FINDING_CODES: readonly ["box-credential-declared", "box-capability-unbrokered", "box-isolation-collision", "box-isolation-literal", "box-fountain-callback-undeclared"];
55
+ export declare const BOX_FINDING_CODES: readonly ["box-credential-declared", "box-capability-unbrokered", "box-isolation-collision", "box-isolation-literal", "box-fountain-callback-undeclared", "box-intent-unknown", "box-intent-unconstrained"];
45
56
  export declare const WSP_BOX_CREDENTIAL = "WSP121";
46
57
  export declare const WSP_BOX_UNBROKERED = "WSP122";
47
58
  export declare const WSP_BOX_FOUNTAIN_CALLBACK = "WSP125";
59
+ export declare const WSP_BOX_INTENT_UNKNOWN = "WSP126";
60
+ export declare const WSP_BOX_INTENT_UNCONSTRAINED = "WSP127";
48
61
  /**
49
62
  * The capability a box block declares for fountain's callback token (#2780).
50
63
  * The fountain lexicon exports the same value as `BOX_FOUNTAIN_CALLBACK_CAPABILITY`.
@@ -1 +1 @@
1
- {"version":3,"file":"boxes.d.ts","sourceRoot":"","sources":["../../../src/workspace/checks/boxes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAA8C,MAAM,WAAW,CAAC;AAM5F,iFAAiF;AACjF,eAAO,MAAM,iBAAiB,2JAMY,CAAC;AAE3C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAC3C,eAAO,MAAM,yBAAyB,WAAW,CAAC;AAKlD;;;GAGG;AACH,eAAO,MAAM,4BAA4B;;;;CAA+E,CAAC;AAEzH,gEAAgE;AAChE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,M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AAM,WAAW,aAAa;IAC5B,eAAe;IACf,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd;AA4BD;;;GAGG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,UAAU,GAAG,aAAa,EAAE,CAkCrG;AAkBD;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,UAAO,GAAG,aAAa,EAAE,CAgBtF;AAQD,qFAAqF;AACrF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,aAAa,EAAE,CAMhF;AAmBD,eAAO,MAAM,UAAU,EAAE,SAAS,cAAc,EA2K/C,CAAC"}
@@ -33,6 +33,7 @@
33
33
  * | WSP121, WSP122 | boxes: no literal credential, every capability brokered (#2726) |
34
34
  * | WSP123, WSP124 | box isolation: no shared port, state path or cookie, no literal machine path (#2727) |
35
35
  * | WSP125 | boxes: a fountain Box declares the callback token fountain gives its sandbox (#2780) |
36
+ * | WSP126, WSP127 | box intent: the decision record a box names exists, and constrains a member or path of this workspace (#2850, #2857) |
36
37
  * | WSP131 to WSP133 | diagram artifacts: source and render exist, a recorded source hash still matches (#2764) |
37
38
  */
38
39
  import type { LintDiagnostic, LintRule, Severity } from "../lint/rule.js";
@@ -47,6 +48,7 @@ import { type MemberLedgerFacts } from "./checks/ledgers.js";
47
48
  import { type MemberPipelineFacts } from "./checks/pipelines.js";
48
49
  import { type RecordFacts } from "./checks/records.js";
49
50
  import { type DeclaredKind } from "./declared-kinds.js";
51
+ import { type ResolvedBoxIntent } from "./box-intent.js";
50
52
  /**
51
53
  * What the checks beyond the declaration read, gathered from the checkout
52
54
  * before any check runs. A field left out was not gathered, and the checks
@@ -63,6 +65,8 @@ export interface WorkspaceFacts {
63
65
  records?: RecordFacts;
64
66
  /** The record kinds the declaration names, each loaded, or only looked for under `--at` (#2680). */
65
67
  declaredKinds?: readonly DeclaredKind[];
68
+ /** The decision record each box's intent names, read from the working tree (#2850). */
69
+ boxIntents?: readonly ResolvedBoxIntent[];
66
70
  }
67
71
  /** What every declaration check reads. */
68
72
  export interface WorkspaceCheckContext {
@@ -1 +1 @@
1
- {"version":3,"file":"checks.d.ts","sourceRoot":"","sources":["../../src/workspace/checks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAIH,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAsD,KAAK,WAAW,EAAkC,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AACzJ,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAA4C,KAAK,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5G,OAAO,EAAuB,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAA0C,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACrG,OAAO,EAAoC,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC5F,OAAO,EAAwC,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAiB,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGnE,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAExE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,6EAA6E;IAC7E,OAAO,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;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IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,8FAA8F;IAC9F,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,OAAO,GAAE;IAAE,aAAa,CAAC,EAAE,OAAO,CAAA;CAAO,GAAG,OAAO,CAAC,cAAc,CAAC,CASrJ;AAUD;;;;;;;;GAQG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAiB,EAC5C,OAAO,GAAE,uBAA4B,GACpC,OAAO,CAAC,sBAAsB,CAAC,CA8DjC"}
@@ -55,6 +55,17 @@ export interface ComposedMember {
55
55
  chant: string | null;
56
56
  /** The IR version the member printed; `null` when it printed none and was upgraded as version 1. */
57
57
  irVersion: number | null;
58
+ /** Whether the member was read with `--live` (#2875): its graph is the account as it stands, not its source. */
59
+ live: boolean;
60
+ /** For a live read, when the member's read finished, as an ISO time. */
61
+ readAt?: string;
62
+ /**
63
+ * Whether the per-member cache answered this read (#2876). Set on composed
64
+ * members by `chant workspace graph`.
65
+ */
66
+ cached?: boolean;
67
+ /** The member's stamp (#2876): what the cache keys the read on, or null when none could be taken. */
68
+ stamp?: string | null;
58
69
  /** Whole-read facts the member's IR carried (`meta`, `pipeline`), kept apart from the composed sections. */
59
70
  meta?: Record<string, unknown>;
60
71
  pipeline?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"compose-graph.d.ts","sourceRoot":"","sources":["../../src/workspace/compose-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAc,KAAK,YAAY,EAAE,MAAM,SAAS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PUT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/composites/v1/composites.schema.json";
50
50
  /** The read-contract version the document follows. */
51
51
  export declare const COMPOSITES_CONTRACT_VERSION = 1;
52
- /** Why the composites couldn't be read at all: the graph's codes. */
52
+ /**
53
+ * Why the composites couldn't be read at all: the declaration's codes, as for
54
+ * the graph. The composites never read live, so the graph's own
55
+ * `live-at-revision` (#2875) can't reach them.
56
+ */
53
57
  export declare const COMPOSITES_ERROR_CODES: readonly ["declaration-missing", "declaration-ambiguous", "declaration-unparseable", "declaration-invalid", "placement-invalid", "reader-too-old", "root-chant-required", "not-a-git-repository", "revision-unknown"];
54
58
  /** Why the list is empty, or why no instance has a component. Closed: part of the read contract. */
55
59
  export declare const COMPOSITES_REASON_CODES: readonly ["composites-no-chant-member", "composites-none-declared", "composites-no-component"];
@@ -1 +1 @@
1
- {"version":3,"file":"composites.d.ts","sourceRoot":"","sources":["../../src/workspace/composites.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAkB,YAAY,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEpF,OAAO,EAAqC,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AAGjF,OAAO,EAAiB,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EAA+F,KAAK,oBAAoB,EAAE,KAAK,iBAAiB,EAAE,KAAK,uBAAuB,EAA2B,MAAM,gBAAgB,CAAC;AACvO,OAAO,EAA2D,KAAK,gBAAgB,EAAuB,KAAK,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAExK,2EAA2E;AAC3E,eAAO,MAAM,2BAA2B,sFAAsF,CAAC;A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AsB,sBAAsB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAe9F"}
@@ -2,7 +2,7 @@
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
3
  "$id": "https://intentius.io/chant/schemas/workspace/decision-points/v1/decision-points.schema.json",
4
4
  "title": "Decision points",
5
- "description": "A workspace's decision points (ws-058, #2738): the recurring questions it asks of its own graph, declared as data in a JSON file that an answer record kind names in `answers.points`. Each point is a typed question (`noul`, `choice` with 2 to 255 options, or `score` with 2 to 10 ordered levels, the question types of the POST /v1/systemone wire format, #2491), the inputs it reads, each named as a read-contract output, and an ordered chain of deciders: `table` rows, `model` deciders with a backend, a pinned model id and a threshold, and a `quorum` of people, always last. Taken from chud's decision-points.schema.json; `boolean` is read as `noul`. What JSON Schema cannot say is checked in code (`points.ts`): an input's output is one the read contract has, a table row tests declared inputs and answers a candidate, a field belongs to its decider's kind, a model id is pinned rather than an alias, and the chain ends in its one quorum. Unknown fields are refused, except fields whose names start with x-.",
5
+ "description": "A workspace's decision points (ws-058, #2738): the recurring questions it asks of its own graph, declared as data in a JSON file that an answer record kind names in `answers.points`. Each point is a typed question (`noul`, `choice` with 2 to 255 options, or `score` with 2 to 10 ordered levels, the question types of the POST /v1/systemone wire format, #2491), the inputs it reads, each named as a read-contract output, and an ordered chain of deciders: `table` rows, `model` deciders with a backend, a pinned model id and a threshold, and a `quorum` of people, always last. What JSON Schema cannot say is checked in code (`points.ts`): an input's output is one the read contract has, a table row tests declared inputs and answers a candidate, a field belongs to its decider's kind, a model id is pinned rather than an alias, and the chain ends in its one quorum. Unknown fields are refused, except fields whose names start with x-.",
6
6
  "type": "object",
7
7
  "required": ["points"],
8
8
  "properties": {
@@ -44,7 +44,7 @@
44
44
  "type": "object",
45
45
  "required": ["type", "instructions", "criteria"],
46
46
  "properties": {
47
- "type": { "enum": ["noul", "boolean", "choice", "score"], "description": "boolean is chud's name for noul, read as noul." },
47
+ "type": { "enum": ["noul", "choice", "score"] },
48
48
  "instructions": { "$ref": "#/$defs/text" },
49
49
  "criteria": {
50
50
  "description": "The candidates. noul: {true, false} descriptions. choice: option to description, 2 to 255 options. score: 2 to 10 ordered levels.",
@@ -54,7 +54,7 @@
54
54
  "additionalProperties": false,
55
55
  "allOf": [
56
56
  {
57
- "if": { "properties": { "type": { "enum": ["noul", "boolean"] } } },
57
+ "if": { "properties": { "type": { "const": "noul" } } },
58
58
  "then": {
59
59
  "properties": {
60
60
  "criteria": {
@@ -155,9 +155,41 @@ export interface BoxDeclaration {
155
155
  capabilities: BoxCapability[];
156
156
  /** The host and slot of the box's isolation, or null when the block declares none (#2727). The values are derived in `boxes.ts`. */
157
157
  isolation: BoxIsolationDeclaration | null;
158
+ /**
159
+ * The id of the decision record that says what the box is for, or null when
160
+ * the block names none (#2850). A box starts as a question: the record is
161
+ * proposed with no choice until the person who answers it decides it.
162
+ */
163
+ intent: string | null;
164
+ /**
165
+ * The services the box runs under its supervisor (sprite-env on a sprite),
166
+ * in file order, or empty when the block declares none (#2880). The fly
167
+ * lexicon's `spriteServicesObserve`, `spriteServiceRestart` and
168
+ * `spriteApplyServices` read them with `box: true`.
169
+ */
170
+ services: BoxService[];
158
171
  /** The block's JSON Pointer in the file, for messages. */
159
172
  pointer: string;
160
173
  }
174
+ /** A service a box runs under its supervisor (#2880). */
175
+ export interface BoxService {
176
+ /** Unique in the box. */
177
+ name: string;
178
+ /** The command the supervisor runs, as written: `${VAR}` references are left for the applying process to expand. */
179
+ cmd: string;
180
+ /** Names of services in the same block that start first. Empty when none. */
181
+ needs: string[];
182
+ /** The port the supervisor routes the sprite's URL to, or null. At most one service of a box sets it. */
183
+ httpPort: number | null;
184
+ /** How long the service must stay up after a create or start, such as `3s` (`sprite-env services create --duration`), or null for the supervisor's default. */
185
+ duration: string | null;
186
+ /** A URL that answers 200 while the service works, or null when the supervisor's state decides. */
187
+ health: string | null;
188
+ /** True: an apply creates it only when named, and an observer skips it while the supervisor has no such service. */
189
+ optional: boolean;
190
+ /** The entry's JSON Pointer in the file, for messages. */
191
+ pointer: string;
192
+ }
161
193
  /** What a box declares about its isolation (#2727): its identity on a host, and the names of what it needs kept apart. */
162
194
  export interface BoxIsolationDeclaration {
163
195
  host: string;
@@ -284,6 +316,17 @@ export declare function pinnedChant(obj: Record<string, unknown>): {
284
316
  * trailing commas.
285
317
  */
286
318
  export declare function parseDeclaration(text: string, file: string, reader?: string, options?: ReadOptions): Declaration;
319
+ /**
320
+ * The rules the schema can't say about a box's services (#2880), as a
321
+ * message and the pointer to show, or null when they hold: each name is
322
+ * given once, every `needs` names a service of the same block, the `needs`
323
+ * form no cycle, and at most one service sets `httpPort`. The fly lexicon
324
+ * checks a list it is handed inline with the same rules.
325
+ */
326
+ export declare function boxServicesProblem(member: string, services: readonly BoxService[]): {
327
+ message: string;
328
+ pointer: string;
329
+ } | null;
287
330
  /**
288
331
  * Every record kind the declaration names (#2680), in the order readers use
289
332
  * them: the workspace's own first, then each member's, members in file order
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../src/workspace/declaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAOH,OAAO,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAC;AAC3D,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAEtD,eAAO,MAAM,qBAAqB,QAAa,CAAC;AAChD,eAAO,MAAM,iBAAiB,4DAA6D,CAAC;AAC5F,eAAO,MAAM,0BAA0B,IAAI,CAAC;AAE5C,gFAAgF;AAChF,eAAO,MAAM,cAAc,qCAAsC,CAAC;AAClE,eAAO,MAAM,YAAY,QAA8B,CAAC;AAIxD;;;GAGG;AACH,eAAO,MAAM,qBAAqB,uNAmBQ,CAAC;AAC3C,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,q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;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,WAAW,EAAE,WAAW,GAAG,kBAAkB,EAAE,CAE/E;AAED,2FAA2F;AAC3F,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAG3D;AAID;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,SAAK,EAAE,OAAO,GAAE,WAAgB,GAAG,WAAW,CAarG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzF;AAID,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,EAAE,CA8B5F;AAID;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAWlH"}
@@ -402,8 +402,20 @@
402
402
  },
403
403
  "box": {
404
404
  "type": "object",
405
- "description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). A member that builds the fountain lexicon's Box declares the callback token fountain gives its persistent sandbox as the capability fountain-callback, brokered by fountain, with scope owner, or chant workspace check fails (WSP125, #2780). Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
405
+ "description": "The member is a box, or holds a box's declarations (#2726). A box holds no credential: each capability it needs outside itself is reached through a broker, a runtime such as a lobby or a door, which holds the credential and enforces the scope. chant workspace check fails when a file in the member's directory carries a literal secret (WSP121) and when a capability names no broker (WSP122). chant workspace status --json lists the capabilities, so a broker can read the scopes. Its host, slot, ports, state and cookies state the box's isolation (#2727): chant derives each value from the box's identity, its host, the member's name and its slot, and prints them in chant workspace status --json, so a runtime reads them instead of choosing its own. chant workspace check fails when two boxes on a host resolve to the same value (WSP123) and when a box hard-codes a machine path (WSP124). A member that builds the fountain lexicon's Box declares the callback token fountain gives its persistent sandbox as the capability fountain-callback, brokered by fountain, with scope owner, or chant workspace check fails (WSP125, #2780). Its intent names the decision record that says what the box is for (#2850): chant workspace status --json reports the record's state and answer, and chant workspace check fails when no decision record has the id (WSP126) and warns when the record constrains no member or path of this workspace (WSP127, #2857). Its services list what the box runs under its supervisor (#2880), which the fly lexicon observes, restarts and applies through sprite-env, and which chant workspace status --json prints. Added in schema 1 by chant 0.91.0, so a declaration that uses it sets minReader to 0.91.0 or newer.",
406
406
  "properties": {
407
+ "intent": {
408
+ "type": "string",
409
+ "minLength": 1,
410
+ "description": "The id of the decision record that says what the box is for (#2850), a record of a declared kind named decision. A new box starts as a question: the record is proposed with a null choice until the person who answers it decides it. The record constrains a member or path of this workspace, with member:<a member's name> or a path: entry at, above or inside a member's directory. It need not be this member: the intent can constrain the app the box runs when that app is another member (#2857). When it constrains this member, chant workspace graph --intent shows it for the box's files. Added by chant 0.94.0, so a declaration that uses it sets minReader to 0.94.0 or newer."
411
+ },
412
+ "services": {
413
+ "type": "array",
414
+ "description": "The services the box runs under its supervisor, sprite-env on a sprite (#2880). Each name is given once, every needs entry names a service of this list, the needs form no cycle, and at most one service sets httpPort; a declaration that breaks one of these can't be read (declaration-invalid). The fly lexicon's spriteServicesObserve and spriteServiceRestart read the list with box: true, and spriteApplyServices with box: true creates and replaces the services through sprite-env. None when omitted. Added by chant 0.95.0, so a declaration that uses it sets minReader to 0.95.0 or newer.",
415
+ "items": {
416
+ "$ref": "#/$defs/boxService"
417
+ }
418
+ },
407
419
  "capabilities": {
408
420
  "type": "array",
409
421
  "description": "Each capability the box reaches outside itself, named once. None when omitted.",
@@ -476,6 +488,55 @@
476
488
  },
477
489
  "additionalProperties": false
478
490
  },
491
+ "boxService": {
492
+ "type": "object",
493
+ "description": "A service a box runs under its supervisor (#2880).",
494
+ "required": [
495
+ "name",
496
+ "cmd"
497
+ ],
498
+ "properties": {
499
+ "name": {
500
+ "$ref": "#/$defs/kindName",
501
+ "description": "The service's name in the supervisor. Unique within the box."
502
+ },
503
+ "cmd": {
504
+ "type": "string",
505
+ "minLength": 1,
506
+ "description": "The command the supervisor runs (sprite-env services create --cmd). ${HOME} and other ${VAR} references are expanded from the environment of the process that applies the list, so the declaration holds no machine path."
507
+ },
508
+ "needs": {
509
+ "type": "array",
510
+ "uniqueItems": true,
511
+ "description": "Names of services of the same box that start before this one (sprite-env services create --needs).",
512
+ "items": {
513
+ "$ref": "#/$defs/kindName"
514
+ }
515
+ },
516
+ "httpPort": {
517
+ "$ref": "#/$defs/port",
518
+ "description": "The port the supervisor routes the sprite's URL to (sprite-env services create --http-port). At most one service of a box sets it."
519
+ },
520
+ "duration": {
521
+ "type": "string",
522
+ "pattern": "^[0-9]+(\\.[0-9]+)?(ms|s|m)$",
523
+ "description": "How long the service must stay up after it is created or started, such as 3s (sprite-env services create --duration)."
524
+ },
525
+ "health": {
526
+ "type": "string",
527
+ "pattern": "^https?://",
528
+ "description": "A URL that answers 200 while the service works. spriteServicesObserve probes it, and spriteServiceRestart waits for it after a restart. Without it, the supervisor's state decides."
529
+ },
530
+ "optional": {
531
+ "type": "boolean",
532
+ "description": "True for a service something else creates by name, such as a site a release Op makes: spriteApplyServices creates it only when its only names it, and spriteServicesObserve skips it while the supervisor has no such service."
533
+ }
534
+ },
535
+ "patternProperties": {
536
+ "^x-": true
537
+ },
538
+ "additionalProperties": false
539
+ },
479
540
  "capability": {
480
541
  "type": "object",
481
542
  "description": "A capability a box needs and does not hold the credential for, such as inference, fountain or a third-party API (#2726).",