fwdloop 0.27.0 → 0.29.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 (105) hide show
  1. package/README.md +1 -1
  2. package/bin/fwdloop +54 -13
  3. package/package.json +3 -3
  4. package/src/ask.js +1 -1
  5. package/src/audit-fold.js +9 -1
  6. package/src/authoring.js +22 -5
  7. package/src/canrun.js +19 -16
  8. package/src/checked.js +5 -2
  9. package/src/checkpick.js +257 -0
  10. package/src/checkwords.js +24 -0
  11. package/src/closers.js +8 -1
  12. package/src/config.js +18 -0
  13. package/src/declaration.js +85 -5
  14. package/src/drafter.js +143 -47
  15. package/src/flow.js +2 -1
  16. package/src/launcher.js +4 -2
  17. package/src/learn.js +1 -1
  18. package/src/learnstore.js +8 -7
  19. package/src/mcp-checks.js +50 -0
  20. package/src/mcp-pick.js +33 -0
  21. package/src/mcp-sources.js +84 -0
  22. package/src/mcp-use.js +54 -0
  23. package/src/memo.js +120 -0
  24. package/src/model-step.js +89 -17
  25. package/src/natural.js +23 -0
  26. package/src/pageask.js +9 -6
  27. package/src/pagedropwords.js +9 -0
  28. package/src/panel/author.js +50 -28
  29. package/src/panel/authorcard.js +86 -2
  30. package/src/panel/authorflows.js +18 -14
  31. package/src/panel/authortrigger.js +241 -84
  32. package/src/panel/data.js +99 -11
  33. package/src/panel/index.html +683 -210
  34. package/src/panel/jobgrid.js +127 -0
  35. package/src/panel/result.js +28 -7
  36. package/src/panel/scheduler.js +8 -2
  37. package/src/panel/server.js +17 -7
  38. package/src/panel/settings.js +119 -4
  39. package/src/panel/tickets.js +12 -7
  40. package/src/pickrecord.js +146 -0
  41. package/src/plain-checks.js +1 -0
  42. package/src/primitives.js +34 -5
  43. package/src/provider.js +4 -1
  44. package/src/runfile.js +4 -2
  45. package/src/runner.js +170 -45
  46. package/src/send.js +71 -4
  47. package/src/setup.js +13 -1
  48. package/src/summary-words.js +15 -3
  49. package/src/ticket-draft.js +40 -42
  50. package/src/ticket-labels.js +10 -0
  51. package/src/ticket-mcp.js +33 -10
  52. package/src/ticket-next.js +33 -0
  53. package/src/ticket-shape.js +9 -0
  54. package/src/trigger-clock.js +4 -4
  55. package/src/trigger-files.js +3 -3
  56. package/src/trigger-tickets.js +41 -12
  57. package/types/ask.d.ts +2 -1
  58. package/types/audit-fold.d.ts +13 -2
  59. package/types/authoring.d.ts +10 -2
  60. package/types/canrun.d.ts +5 -12
  61. package/types/checked.d.ts +7 -2
  62. package/types/checkpick.d.ts +149 -0
  63. package/types/checkwords.d.ts +14 -0
  64. package/types/closers.d.ts +2 -1
  65. package/types/config.d.ts +6 -0
  66. package/types/declaration.d.ts +17 -0
  67. package/types/drafter.d.ts +446 -50
  68. package/types/learn.d.ts +1 -0
  69. package/types/learnstore.d.ts +2 -3
  70. package/types/mcp-checks.d.ts +8 -0
  71. package/types/mcp-pick.d.ts +23 -0
  72. package/types/mcp-sources.d.ts +51 -0
  73. package/types/mcp-use.d.ts +12 -0
  74. package/types/memo.d.ts +15 -0
  75. package/types/model-step.d.ts +5 -0
  76. package/types/natural.d.ts +2 -0
  77. package/types/pageask.d.ts +9 -2
  78. package/types/pagedropwords.d.ts +1 -0
  79. package/types/panel/author.d.ts +37 -1
  80. package/types/panel/authorcard.d.ts +52 -0
  81. package/types/panel/authorflows.d.ts +9 -1
  82. package/types/panel/authortrigger.d.ts +73 -7
  83. package/types/panel/data.d.ts +56 -2
  84. package/types/panel/jobgrid.d.ts +109 -0
  85. package/types/panel/result.d.ts +9 -3
  86. package/types/panel/server.d.ts +5 -1
  87. package/types/panel/settings.d.ts +3 -2
  88. package/types/panel/tickets.d.ts +26 -4
  89. package/types/pickrecord.d.ts +88 -0
  90. package/types/primitives.d.ts +15 -2
  91. package/types/runfile.d.ts +7 -2
  92. package/types/runner.d.ts +128 -77
  93. package/types/send.d.ts +10 -2
  94. package/types/setup.d.ts +1 -56
  95. package/types/summary-words.d.ts +22 -3
  96. package/types/ticket-draft.d.ts +40 -32
  97. package/types/ticket-labels.d.ts +6 -0
  98. package/types/ticket-mcp.d.ts +18 -1
  99. package/types/ticket-next.d.ts +23 -0
  100. package/types/ticket-shape.d.ts +5 -0
  101. package/types/trigger-clock.d.ts +4 -3
  102. package/types/trigger-files.d.ts +1 -1
  103. package/types/trigger-tickets.d.ts +18 -4
  104. package/src/attemptdiff.js +0 -118
  105. package/types/attemptdiff.d.ts +0 -38
@@ -23,7 +23,7 @@ export function specHash({ proseText, declarationText, inputFactsText, readoutTe
23
23
  * answer file counts as no answer. No questions file = `{ questions: [], open: [] }`.
24
24
  * @param {string} planDir
25
25
  * A question the page look raised (M10 piece 3) also carries `source: 'look'`, `ask` ('reading' | 'cant-check'), `ruleNo`, `ruleText` and `proposal`; an answer file carries `at`.
26
- * @returns {{ questions: {k:number, line:number, question:string, answer:string|null, at?:string, rule?:string|null, source?:string, ask?:string, ruleNo?:number, ruleText?:string, proposal?:string|null}[], open: {k:number, line:number, question:string, answer:null}[] }}
26
+ * @returns {{ questions: {k:number, line:number, question:string, answer:string|null, at?:string, rule?:string|null, source?:string, ask?:string, ruleNo?:number, ruleText?:string, proposal?:string|null, check?:Record<string, any>, pairRule?:number}[], open: {k:number, line:number, question:string, answer:null}[] }}
27
27
  */
28
28
  export function readQuestions(planDir: string): {
29
29
  questions: {
@@ -38,6 +38,8 @@ export function readQuestions(planDir: string): {
38
38
  ruleNo?: number;
39
39
  ruleText?: string;
40
40
  proposal?: string | null;
41
+ check?: Record<string, any>;
42
+ pairRule?: number;
41
43
  }[];
42
44
  open: {
43
45
  k: number;
@@ -95,7 +97,7 @@ export function draftKeyRefusal(slot: string, env: Record<string, string | undef
95
97
  * Test seam: `provider`/`rates`/`modelId` are injected; without them a live provider is built.
96
98
  * `onResult({ ok })` (M4d am32): called once, after the spend is booked and just before the result files are written (the CLI gives its monthly hold back there).
97
99
  */
98
- export function draftToDir({ proseFile, dir, root, name, slot, model, draftThinking, keyNames, env, provider, rates, modelId, noQuestions, onResult, fetchPage, leftRules, proseRead, }: {
100
+ export function draftToDir({ proseFile, dir, root, name, slot, model, draftThinking, keyNames, env, provider, rates, modelId, noQuestions, onResult, fetchPage, leftRules, checkPicks, carriedPicks, proseRead, flowType, mcpServer, mcpPick, mcpServers, }: {
99
101
  proseFile: any;
100
102
  dir: any;
101
103
  root: any;
@@ -112,7 +114,13 @@ export function draftToDir({ proseFile, dir, root, name, slot, model, draftThink
112
114
  onResult: any;
113
115
  fetchPage: any;
114
116
  leftRules: any;
117
+ checkPicks: any;
118
+ carriedPicks: any;
115
119
  proseRead: any;
120
+ flowType?: "mcp" | "plain" | "tickets" | undefined;
121
+ mcpServer?: string | undefined;
122
+ mcpPick?: any;
123
+ mcpServers?: string[] | undefined;
116
124
  }): Promise<{
117
125
  ok: boolean;
118
126
  wrote: boolean;
package/types/canrun.d.ts CHANGED
@@ -20,19 +20,12 @@ export function unwiredRed(found: {
20
20
  verb: string;
21
21
  }): string;
22
22
  /**
23
- * M12 piece 1a (F105): the first tool the job lists (`declaration.mcp.tools`) that no step grants (`steps[].mcpTools`), or null. A job lists only the tools its
24
- * steps use (PRD, hamr 2026-10-29); the ticket schedule's own tool lives in `schedule.json`, not here. A declaration without `mcp` has nothing to check.
25
- * @param {Record<string, any>} declaration `readFlow`'s declaration @returns {{tool: string, server: string}|null}
23
+ * M13 piece 4 (F105 rewritten): the first plan problem with the job's MCP tools, as the preflight sentence, or null. Two rules, both $0 and by name:
24
+ * a step may grant only a tool the job lists (`mcp.tools`); a generic MCP job (flowType `mcp`) needs at least one step granting at least one of them. A Tickets job's
25
+ * own tools (`issue_read`, `list_issues`) belong to the job (the frozen read and the look), so no step has to grant them. A job with no `mcp` block has nothing to check.
26
+ * @param {Record<string, any>} declaration `readFlow`'s declaration @returns {string|null}
26
27
  */
27
- export function findUnusedMcpTool(declaration: Record<string, any>): {
28
- tool: string;
29
- server: string;
30
- } | null;
31
- /** The preflight refusal sentence for a job tool no step grants. @param {{tool: string, server: string}} found */
32
- export function unusedMcpToolRed(found: {
33
- tool: string;
34
- server: string;
35
- }): string;
28
+ export function findMcpPlanRed(declaration: Record<string, any>): string | null;
36
29
  /**
37
30
  * M4e amendment 23: the ONE function that turns "this step's check cannot be built" into a plain sentence. It reads the shape, never
38
31
  * bareguard's wording, so no `spec.` path or `checks[` index can reach a human. The steps are numbered by the job line they came from
@@ -2,17 +2,22 @@
2
2
  * One entry per step, in plan order: the plain sentences for what its typed close checks.
3
3
  * M10b piece 4: with `lines` (the signed job lines) a step that reads a sheet also carries `sheet`, its line's block (src/sheetblock.js `sheetLineBlocks`: guardrails,
4
4
  * Checked with `covers`, Not checked), and its sentences are only the lead sentence; the surfaces draw the block. Without `lines` the older one-row-per-check sentences.
5
- * @param {{ steps?: any[] }} declaration @param {{ hasAsk?: boolean, askLines?: number[], lines?: any[], csvRoles?: string[] }} [opts] hasAsk = the job has a signed ask line (so "you check it at the ask" is true);
5
+ * @param {{ steps?: any[] }} declaration @param {{ hasAsk?: boolean, askLines?: number[], lines?: any[], csvRoles?: string[], keptChecks?: {line: number, check: any}[], keptWords?: string }} [opts] hasAsk = the job has a signed ask line (so "you check it at the ask" is true);
6
6
  * askLines = the job lines of the signed asks, which also lets a step after the LAST ask read "you check it after you accept" (am41 item 2, am42: the ONE place for these words)
7
7
  * @returns {{ step: number, line: number|null, goal: string, class: string, sentences: string[], sheet?: ReturnType<typeof sheetLineBlocks>[number] }[]}
8
8
  */
9
9
  export function checkedLines(declaration: {
10
10
  steps?: any[];
11
- }, { hasAsk, askLines, lines, csvRoles }?: {
11
+ }, { hasAsk, askLines, lines, csvRoles, keptChecks, keptWords }?: {
12
12
  hasAsk?: boolean;
13
13
  askLines?: number[];
14
14
  lines?: any[];
15
15
  csvRoles?: string[];
16
+ keptChecks?: {
17
+ line: number;
18
+ check: any;
19
+ }[];
20
+ keptWords?: string;
16
21
  }): {
17
22
  step: number;
18
23
  line: number | null;
@@ -0,0 +1,149 @@
1
+ /**
2
+ * Every guardrail rule on a step line (not a signed ask or send line) that this call settles, in line order. `rule` is the rule's number on its line (the one
3
+ * number `leftRules`, `ruleNo` and the answers use); a repeated text on a line is one rule here, asked once.
4
+ * @param {{n: number, guardrail?: string}[]} lines `parseSignedText`'s lines @param {{asks?: {line: number}[], sends?: {line: number}[], sources?: any[]}} arbiter
5
+ * @returns {{line: number, rule: number, text: string}[]}
6
+ */
7
+ export function scopedRules(lines: {
8
+ n: number;
9
+ guardrail?: string;
10
+ }[], arbiter: {
11
+ asks?: {
12
+ line: number;
13
+ }[];
14
+ sends?: {
15
+ line: number;
16
+ }[];
17
+ sources?: any[];
18
+ }): {
19
+ line: number;
20
+ rule: number;
21
+ text: string;
22
+ }[];
23
+ /**
24
+ * Keep a suggestion only if its rule is on bareguard's list, it carries only that rule's own fields, every number in it is a number the guardrail names and
25
+ * every word in it is a word of the guardrail. Anything else is dropped, with the reason. `none` is a drop with the reason `none`.
26
+ * @param {string} guardrail @param {any} sug the model's entry for this guardrail
27
+ * @returns {{kept: true, check: Record<string, any>}|{kept: false, why: string}}
28
+ */
29
+ export function keepOrDrop(guardrail: string, sug: any): {
30
+ kept: true;
31
+ check: Record<string, any>;
32
+ } | {
33
+ kept: false;
34
+ why: string;
35
+ };
36
+ /**
37
+ * The user message: the job's lines, and under a line only the guardrails this call settles, numbered by their rule number on the line.
38
+ * @param {{n: number, text: string}[]} lines @param {{line: number, rule: number, text: string}[]} scoped @returns {string}
39
+ */
40
+ export function suggestUserText(lines: {
41
+ n: number;
42
+ text: string;
43
+ }[], scoped: {
44
+ line: number;
45
+ rule: number;
46
+ text: string;
47
+ }[]): string;
48
+ /**
49
+ * What the call's answer comes to, one row per scoped guardrail: the check kept (or null) and why it was dropped. A guardrail the answer never mentions is
50
+ * dropped as `no entry`; an entry for a guardrail that was not sent is ignored.
51
+ * @param {{line: number, rule: number, text: string}[]} scoped @param {any} args the tool call's arguments
52
+ * @returns {{line: number, rule: number, text: string, check: Record<string, any>|null, why: string|null}[]}
53
+ */
54
+ export function rowsFromAnswer(scoped: {
55
+ line: number;
56
+ rule: number;
57
+ text: string;
58
+ }[], args: any): {
59
+ line: number;
60
+ rule: number;
61
+ text: string;
62
+ check: Record<string, any> | null;
63
+ why: string | null;
64
+ }[];
65
+ /**
66
+ * The asks for the rows: `Line n, guardrail "<…>": I propose <check in plain words>.` for a kept check, `Line n, guardrail "<…>": I can't check this. Your own words, or
67
+ * Not checked?` when nothing was kept. A proposal is not counted toward am1's cap; a can't-check ask is (am16 (5)).
68
+ * @param {ReturnType<typeof rowsFromAnswer>} rows
69
+ * @returns {{pairRule?: number, line: number, rule: number, source: 'look', ask: 'check'|'no-check', ruleText: string, question: string, reading?: string, check?: Record<string, any>, counted: boolean}[]}
70
+ */
71
+ export function checkAsks(rows: ReturnType<typeof rowsFromAnswer>): {
72
+ pairRule?: number;
73
+ line: number;
74
+ rule: number;
75
+ source: "look";
76
+ ask: "check" | "no-check";
77
+ ruleText: string;
78
+ question: string;
79
+ reading?: string;
80
+ check?: Record<string, any>;
81
+ counted: boolean;
82
+ }[];
83
+ /**
84
+ * @typedef {{line: number, rule: number, check: Record<string, any>|null, added?: string, own?: boolean}} Pick
85
+ * `check` = the check the person agreed to (null for their own words); `added` = the `~` rule the answer wrote on the line; `own` = their own words
86
+ */
87
+ /**
88
+ * Settle every scoped rule against the person's answers: a rule with a picked check is checked; the `~` line an agree wrote is covered by that pick; every other
89
+ * rule is Not checked, with the reason (`person-left` = they chose it, `own-words` = they gave their own words, `no-pick` = nothing was picked).
90
+ * @param {ReturnType<typeof scopedRules>} rules @param {Pick[]} picks @param {{line: number, rule: number}[]} left
91
+ * @returns {{checks: Map<number, Record<string, any>[]>, notes: {line: number, rule: number, text: string, reason: 'person-left'|'own-words'|'no-pick'}[]}}
92
+ */
93
+ export function settleRules(rules: ReturnType<typeof scopedRules>, picks: Pick[], left: {
94
+ line: number;
95
+ rule: number;
96
+ }[]): {
97
+ checks: Map<number, Record<string, any>[]>;
98
+ notes: {
99
+ line: number;
100
+ rule: number;
101
+ text: string;
102
+ reason: "person-left" | "own-words" | "no-pick";
103
+ }[];
104
+ };
105
+ /**
106
+ * Overwrite the drafter's check on every step of a line this call settles (a green step, which another signed part settles, is left alone): a line with picked checks
107
+ * is softgreen and carries exactly those checks; a line with none is hitl. Whatever `close.shape` the drafter wrote is gone. Pure: returns a new declaration.
108
+ * @param {any} declaration @param {ReturnType<typeof scopedRules>} rules @param {ReturnType<typeof settleRules>} settled
109
+ * @param {(note: {line: number, reason: 'person-left'|'own-words'|'no-pick'}) => string} sentence the one table's words for a reason
110
+ */
111
+ export function applyPicks(declaration: any, rules: ReturnType<typeof scopedRules>, settled: ReturnType<typeof settleRules>, sentence: (note: {
112
+ line: number;
113
+ reason: "person-left" | "own-words" | "no-pick";
114
+ }) => string): any;
115
+ /** the one tool the suggestion call is forced to use */
116
+ export const SUGGEST_TOOL: "suggest_checks";
117
+ export function hasRoutingInput(sources: any[] | undefined): boolean;
118
+ export function codeScope(sources: any[] | undefined, g: string): "in" | "out";
119
+ export const SUGGEST_SYSTEM: string;
120
+ /** the forced tool's parameter schema: one `anyOf` variant per offered rule, plus `none` */
121
+ export const SUGGEST_SCHEMA: Readonly<{
122
+ type: "object";
123
+ properties: {
124
+ checks: {
125
+ type: string;
126
+ description: string;
127
+ items: {
128
+ anyOf: any[];
129
+ };
130
+ };
131
+ };
132
+ required: string[];
133
+ additionalProperties: false;
134
+ }>;
135
+ /** the can't-check ask, as the signed words say it */
136
+ export const CANT_CHECK_WORDS: "I can't check this. Your own words, or Not checked?";
137
+ /**
138
+ * `check` = the check the person agreed to (null for their own words); `added` = the `~` rule the answer wrote on the line; `own` = their own words
139
+ */
140
+ export type Pick = {
141
+ line: number;
142
+ rule: number;
143
+ check: Record<string, any> | null;
144
+ added?: string;
145
+ own?: boolean;
146
+ };
147
+ import { plainWords } from './checkwords.js';
148
+ import { OFFERED } from './checkwords.js';
149
+ export { plainWords, OFFERED };
@@ -0,0 +1,14 @@
1
+ /**
2
+ * The check in plain words, one fixed phrase per rule: the ask, the `~` line an agree writes, the plan card and the Audit all read this one function.
3
+ * @param {{rule: string, value?: number, size?: number, wordsPerSection?: number, names?: string[], phrases?: string[]}} c @returns {string}
4
+ */
5
+ export function plainWords(c: {
6
+ rule: string;
7
+ value?: number;
8
+ size?: number;
9
+ wordsPerSection?: number;
10
+ names?: string[];
11
+ phrases?: string[];
12
+ }): string;
13
+ /** the rules of bareguard's list a person may pick here (text rules only: the ones a plain answer can be judged by) */
14
+ export const OFFERED: readonly string[];
@@ -52,12 +52,13 @@ export function buildSoftgreenRubric(shape: Record<string, any>): ReturnType<typ
52
52
  * A gap it has no sentence for is still a red, worded generically, never dropped.
53
53
  *
54
54
  * @param {any[]} gaps
55
- * @param {{ linesPerInvoice?: number, mustCarry?: string[] }} shape
55
+ * @param {{ linesPerInvoice?: number, mustCarry?: string[], picked?: any[] }} shape
56
56
  * @returns {{ red: string, reds: string[] }}
57
57
  */
58
58
  export function renderSoftgreenGaps(gaps: any[], shape: {
59
59
  linesPerInvoice?: number;
60
60
  mustCarry?: string[];
61
+ picked?: any[];
61
62
  }): {
62
63
  red: string;
63
64
  reds: string[];
package/types/config.d.ts CHANGED
@@ -31,6 +31,12 @@ export function configDoorHome(): {
31
31
  };
32
32
  /** One provider field's value problem in plain words, or null when fine. Shared by validateDoc and the route. */
33
33
  export function providerFieldProblem(field: any, v: any): string | null;
34
+ /**
35
+ * M13 piece 3: why a typed MCP config path cannot be kept in `mcpPaths`, or null: one rule for the Settings route and for the config reader.
36
+ * Absolute or `~/…`, one line of at most 500 characters.
37
+ * @param {unknown} p
38
+ */
39
+ export function mcpPathProblem(p: unknown): "must be a path to an MCP config file" | "must be one line of at most 500 characters" | "must start with / or ~/" | null;
34
40
  /**
35
41
  * THE one rule for a slot's model lines (M4d amendment 3 items 7-8), used by config validation and the Settings
36
42
  * route. A price is a PAIR (`inPerM` and `outPerM`, each a finite number >= 0 — 0 / 0 typed is a chosen price,
@@ -1,3 +1,9 @@
1
+ /**
2
+ * M13 piece 4: the ONE reader of a job's flow type. The field when present; a job signed before it existed (M12 shape: an `mcp` block, no `flowType`) is a Tickets
3
+ * job, since M12 only had ticket jobs; no `mcp` block is plain.
4
+ * @param {Record<string, any>} declaration @returns {'plain'|'mcp'|'tickets'}
5
+ */
6
+ export function flowTypeOf(declaration: Record<string, any>): "plain" | "mcp" | "tickets";
1
7
  /**
2
8
  * A small, pure walker over `declaration.steps` for callers that only want
3
9
  * the shape-key verdict (e.g. poc/m1/slot-batch.mjs's `shape` column) —
@@ -23,6 +29,15 @@ export function checkShapes(declaration: any): {
23
29
  * there is none. Code does not decide which one is the limit: the AI picks `maxWords` and the validator checks the pick is one of these
24
30
  * (M4e amendments 28 + 29). A "<n> words each" / "<n> words per section" is the per-section size (amendment 15), never listed here. */
25
31
  export function guardrailWordNumbers(guardrail: any): number[];
32
+ /** M10 amendment 14 item 2: every standalone number in a guardrail's own text (digits not joined to letters: "P1" and "250ish" are not one; "1,000" and "2.5" are one number each). */
33
+ export function guardrailStandaloneNumbers(guardrail: any): number[];
34
+ /** M10 amendment 14 item 1: the send line (a signed send) is where the accepted result is written out and no AI runs, so a guardrail under it is refused at $0, naming the line.
35
+ * Pure; the card (src/panel/authorcard.js checkCard) and the drafter's pre-flight both call it. @param {any[]} lines `parseSignedText`'s lines @param {{sends?: {line: number}[]}} arbiter */
36
+ export function checkSendLineGuardrail(lines: any[], arbiter: {
37
+ sends?: {
38
+ line: number;
39
+ }[];
40
+ }): string[];
26
41
  /** M4e amendment 15 item 1: the "<n> words each" / "<n> words per section" size in a guardrail ("about 250 words each", "250ish each" -> 250), or null. */
27
42
  export function guardrailWordsPerSection(guardrail: any): number | null;
28
43
  /** M4e amendment 7 item 1: the first "<N> sections" in a guardrail (N digits, or the words one..ten), or null. */
@@ -88,6 +103,8 @@ export function validateDeclaration(declaration: unknown, context?: {
88
103
  * kept in sync with the checks below so a mutation suite can assert it
89
104
  * tested every one of them (same trick as ARBITER_FIELDS/SIGNATURE_FIELDS). */
90
105
  export const DECLARATION_FIELDS: readonly string[];
106
+ /** M13 piece 4 (signed item 4): the job's flow type, set by code from the job card, signed with the job. */
107
+ export const FLOW_TYPES: readonly string[];
91
108
  /** The typed `close.shape` vocabulary, signed by hamr 2026-09-23 (v1):
92
109
  * exactly these four top-level keys. Anything else inside `shape` reds by
93
110
  * name. */