clearotron 0.6.0-beta.0 → 0.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/bin/start.mjs +39 -15
  2. package/build-info.json +2 -2
  3. package/driver/CHANGELOG.md +9 -0
  4. package/driver/band-shape.mjs +21 -3
  5. package/driver/commonlaw-carry-floor.json +3 -3
  6. package/driver/contract-arm2-baseline.json +2 -3
  7. package/driver/contract-e3-backlog.mjs +28 -28
  8. package/driver/demo-posture.mjs +17 -0
  9. package/driver/engine/anthropic-agent.mjs +5 -5
  10. package/driver/engine/mcp/band-server.mjs +14 -7
  11. package/driver/goods-evidence.mjs +16 -8
  12. package/driver/named-band.mjs +60 -3
  13. package/driver/package.json +1 -1
  14. package/driver/pipeline.mjs +130 -13
  15. package/driver/portal-service.mjs +4 -1
  16. package/driver/predelivery-lint.mjs +9 -0
  17. package/driver/publish/templates/report.css +6 -6
  18. package/driver/record-goods.mjs +74 -18
  19. package/driver/skills/clearance-register/digest.md +6 -6
  20. package/driver/skills/placement-inquiry/SKILL.md +2 -2
  21. package/driver/stages.mjs +1 -5
  22. package/driver/steps/frame-comparison.mjs +6 -1
  23. package/driver/steps/skeptic-and-follow-up.mjs +8 -3
  24. package/driver/suite-census.json +53 -5
  25. package/driver/unexecuted-asserts.json +2 -2
  26. package/mcp-server/CHANGELOG.md +4 -0
  27. package/mcp-server/http-server.mjs +10 -11
  28. package/mcp-server/package.json +1 -1
  29. package/node_modules/buffers/package.json +1 -1
  30. package/package.json +1 -1
  31. package/portal-ui/dist/assets/{index-AtB9ZpDH.css → index-izLa9apq.css} +2 -2
  32. package/portal-ui/dist/index.html +4 -4
  33. package/portal-ui/package.json +1 -1
  34. package/providers/oauth-mcp-bridge/CHANGELOG.md +4 -0
  35. package/providers/oauth-mcp-bridge/package.json +1 -1
  36. package/scripts/e2e-first-time.mjs +1 -1
  37. package/scripts/render-check.mjs +1 -1
  38. package/scripts/unexecuted-asserts.mjs +2 -2
  39. package/shared/customer-store.mjs +3 -2
  40. package/vendor/buffers/package.json +1 -1
  41. /package/portal-ui/dist/assets/{index-D5rkCjDc.js → index-CYaO2ygd.js} +0 -0
package/bin/start.mjs CHANGED
@@ -352,6 +352,39 @@ export function clientDoorOwner({ probeCode = null, unitActive = null, unitPort
352
352
  return unitPort === port ? "ours" : "stranger";
353
353
  }
354
354
 
355
+ /**
356
+ * What `start` says about the grants file it wrote: the file first, then what was filed in it.
357
+ *
358
+ * THE FILE IS NAMED BEFORE "filed there". A file that already named this person, given an organisation for
359
+ * the first time, changed only the organisation; the line naming the file printed only when the file was
360
+ * created or a person was added, so "there" pointed at nothing (measured in testing, 2026-11-17).
361
+ */
362
+ export function grantsFileLines({ existed, changed, path, user, organisation, organisations = 0 }) {
363
+ const lines = [];
364
+ if (!existed) lines.push(` created ${path} — ${user}: Run, Manage, access to everything`);
365
+ else if (changed.includes("person"))
366
+ lines.push(` grants ${path} named nobody, so ${user} was added: Run, Manage, access to everything`);
367
+ else if (changed.includes("organisation")) lines.push(` grants ${path}`);
368
+ if (changed.includes("organisation")) lines.push(` organisation "${organisation}", filed there — rename it there too`);
369
+ else if (changed.includes("person") && !organisations)
370
+ lines.push(` no organisation named yet — \`${reachableCommand('start --organisation "<name>"')}\` files the first one`);
371
+ return lines;
372
+ }
373
+
374
+ /**
375
+ * `systemctl --user show <unit>`, its properties as an object. Its stderr is CAPTURED, never inherited:
376
+ * where the user bus cannot be reached, systemctl writes "Failed to connect to bus: No medium found", and
377
+ * an inherited stderr printed that line into start's own output with nothing around it. A read that fails
378
+ * still throws, so each caller keeps its own could-not-look answer.
379
+ */
380
+ export function systemctlShow(unit, props, run = execFileSync) {
381
+ const out = run("systemctl", ["--user", "show", unit, ...props.flatMap((p) => ["-p", p])],
382
+ { encoding: "utf8", stdio: ["ignore", "pipe", "pipe"] });
383
+ return Object.fromEntries(out.split("\n").filter(Boolean).map((l) => {
384
+ const i = l.indexOf("="); return [l.slice(0, i), l.slice(i + 1)];
385
+ }));
386
+ }
387
+
355
388
  /**
356
389
  * The two reads `clientDoorOwner` needs, against the live box.
357
390
  *
@@ -359,14 +392,10 @@ export function clientDoorOwner({ probeCode = null, unitActive = null, unitPort
359
392
  * daemon-reload below for why this file does not pass it yet. A read that throws answers `null`, which
360
393
  * `clientDoorOwner` turns into "unknown" and therefore into today's refusal.
361
394
  */
362
- function liveClientDoor(unitEnvFile = unitEnvPath(), run = execFileSync) {
395
+ export function liveClientDoor(unitEnvFile = unitEnvPath(), run = execFileSync) {
363
396
  let unitActive = null, unitPort = null;
364
397
  try {
365
- const out = run("systemctl", ["--user", "show", CLIENT_DOOR_UNIT, "-p", "ActiveState", "-p", "SubState"],
366
- { encoding: "utf8" });
367
- const f = Object.fromEntries(out.split("\n").filter(Boolean).map((l) => {
368
- const i = l.indexOf("="); return [l.slice(0, i), l.slice(i + 1)];
369
- }));
398
+ const f = systemctlShow(CLIENT_DOOR_UNIT, ["ActiveState", "SubState"], run);
370
399
  if (f.ActiveState !== undefined) unitActive = f.ActiveState === "active" && f.SubState === "running";
371
400
  } catch { /* null — a could-not-look, which refuses */ }
372
401
  try {
@@ -417,7 +446,7 @@ export function clientDoorDownLines({ host, port, exited }) {
417
446
  export const DEMO_ROUTINE_LINES = [
418
447
  /^auth ON — /,
419
448
  /^key path: none \(TRADEMARK_MCP_KEY_SOCKET is not set\)/,
420
- /^roster: \d+ customer\(s\) from /,
449
+ /^roster: \d+ customers? from /,
421
450
  /^This is `clearotron demo`: /,
422
451
  /^listening on http:\/\//,
423
452
  /^audit log: /,
@@ -1577,12 +1606,8 @@ if (isMain) {
1577
1606
  try { atomicWrite(paths.grants, `${JSON.stringify(seeded.grants, null, 2)}\n`); }
1578
1607
  catch (e) { fatal(`could not write the grants file at ${paths.grants} (${String(e?.message ?? e)}).`); }
1579
1608
  }
1580
- if (!existing) say(` created ${paths.grants} — ${user}: Run, Manage, access to everything`);
1581
- else if (seeded.changed.includes("person"))
1582
- say(` grants ${paths.grants} named nobody, so ${user} was added: Run, Manage, access to everything`);
1583
- if (seeded.changed.includes("organisation")) say(` organisation "${organisation}", filed there — rename it there too`);
1584
- else if (seeded.changed.includes("person") && !Object.keys(seeded.grants.tenants ?? {}).length)
1585
- say(` no organisation named yet — \`${reachableCommand('start --organisation "<name>"')}\` files the first one`);
1609
+ for (const line of grantsFileLines({ existed: Boolean(existing), changed: seeded.changed, path: paths.grants, user,
1610
+ organisation, organisations: Object.keys(seeded.grants.tenants ?? {}).length })) say(line);
1586
1611
  // REPORTED, NOT REPAIRED. A file that names other people is somebody's decision, and adding this
1587
1612
  // address to it would give access to everything to an address nobody enrolled.
1588
1613
  if (seeded.unadmitted)
@@ -2241,8 +2266,7 @@ if (isMain) {
2241
2266
  const type = unitTypeOf(u);
2242
2267
  let f = {};
2243
2268
  try {
2244
- const out = execFileSync("systemctl", ["--user", "show", u, "-p", "ActiveState", "-p", "SubState", "-p", "NRestarts", "-p", "UnitFileState"], { encoding: "utf8" });
2245
- f = Object.fromEntries(out.trim().split("\n").map((l) => l.split("=")));
2269
+ f = systemctlShow(u, ["ActiveState", "SubState", "NRestarts", "UnitFileState"]);
2246
2270
  } catch { /* unreadable state is reported below as not-running */ }
2247
2271
  const verdict = unitHealthVerdict({ type, activeState: f.ActiveState ?? null, subState: f.SubState ?? null,
2248
2272
  unitFileState: f.UnitFileState ?? null, nRestarts: f.NRestarts ?? 0 });
package/build-info.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
- "commit": "f4b414b8e0e945bf2bd67f196c6e58eba8b74a1f",
3
- "version": "0.6.0-beta.0"
2
+ "commit": "be52291d9839d701544d3a9479888be91913e302",
3
+ "version": "0.6.0-beta.1"
4
4
  }
@@ -1,5 +1,14 @@
1
1
  # clearotron-driver
2
2
 
3
+ ## 0.6.0-beta.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Fixed: A follow-up register search that fails temporarily is retried before the clearance continues. If it still fails, the report identifies the unsearched work and its recorded cause.
8
+ - Fixed: A recommended step that names one of your own product tiers, such as "Tier 1", no longer leads the covering email and the audit workbook to say that the action list names a party no finding identifies.
9
+ - For operators: Startup messages explain which bundled profile and framework files are in use and how to select a separate configuration store.
10
+ - Fixed: With no company store set, the assistant connection now says at start how many companies it reads from the folder that ships with the install, and which are refused, instead of warning that every real customer will be refused.
11
+
3
12
  ## 0.6.0-beta.0
4
13
 
5
14
  ### Minor Changes
@@ -713,6 +713,9 @@ function bindingOffices(territories, code) {
713
713
  // text. Then that text cut short for a line.
714
714
  const goodsReadText = (g) => (Array.isArray(g) ? g.map((x) => (typeof x === "string" ? x : x?.text)) : [typeof g === "string" ? g : g?.text])
715
715
  .filter((t) => typeof t === "string" && t.trim()).join("; ").replace(/\s+/g, " ").trim() || null;
716
+ // Goods read off a search answer the merge trimmed carry an entry for each class whose description it set aside
717
+ // (record-goods.mjs `rowGoods`); a held record's goods carry none.
718
+ const descriptionsOmitted = (g) => Array.isArray(g) && g.some((x) => x?.setAside === true);
716
719
  export const FLOOR_GOODS_SHOWN = 140;
717
720
  function cutGoods(text) {
718
721
  const t = String(text ?? "");
@@ -761,7 +764,7 @@ export function bandGroups(records, { classify, inScope, goods = null, dominantT
761
764
  // "On file" is a body `band_record` can open: goods read off the band row decide the group, never that.
762
765
  const onFile = goods?.held ? goods.held(r) : Boolean(g);
763
766
  const rec = { r, tier, hits, words, live, inScope: s, group, outside, floor, onFile, territories: ts, inMarket: ts.some((t) => market.has(t)),
764
- ...(floor ? { read: goodsReadText(g) } : {}) };
767
+ ...(floor ? { read: goodsReadText(g), ...(descriptionsOmitted(g) ? { readOmits: true } : {}) } : {}) };
765
768
  const keys = typeof keysOf === "function" ? keysOf(r) : null;
766
769
  const ownerKey = keys?.owner ?? (normKey(r?.owner_name) ? `owner:${normKey(r?.owner_name)}` : `record:${String(r?.record_id ?? "").trim().toLowerCase()}`);
767
770
  const key = keys?.line ?? `line:${ownerKey}|${normMark(r?.mark_text) || String(r?.record_id ?? "").trim().toLowerCase()}`;
@@ -805,7 +808,11 @@ export function bandGroups(records, { classify, inScope, goods = null, dominantT
805
808
  floors: l.recs.filter((x) => x.floor).length,
806
809
  // A FLOOR IN (b) SHOWS THE GOODS THE TEST READ, cut short: a (b) line matched none of the client's words, so
807
810
  // without them a page of floors could not be judged without opening each record.
808
- ...(group === "b" && known ? (() => { const read = l.recs.find((x) => x.floor && x.read)?.read; return read ? { floor_goods: cutGoods(read) } : {}; })() : {}),
811
+ // Where the wording quoted came from a search answer the merge trimmed, the line says the quotation is partial.
812
+ ...(group === "b" && known ? (() => {
813
+ const f = l.recs.find((x) => x.floor && x.read);
814
+ return f ? { floor_goods: cutGoods(f.read), ...(f.readOmits ? { floor_goods_omits: true } : {}) } : {};
815
+ })() : {}),
809
816
  ...(known ? {} : { goods_on_file: inGroup.some((x) => x.onFile) }),
810
817
  ...(offices.size && l.recs.every((x) => x.outside) ? { outside: true } : {}),
811
818
  };
@@ -917,6 +924,8 @@ export function buildBandShape(band, { crowdNarrowing = [], targets = [], inScop
917
924
  dominant_term: grouped.dominant_term, manifest_dominant: manifestDominant || null, goods_on_file: grouped.goods_on_file,
918
925
  markets: grouped.markets, territories: grouped.territories, territories_unread: grouped.territories_unread, outside: grouped.outside,
919
926
  goods_words_total: goodsWordCount || 0, goods_test: goodsTest ?? { source: goods ? "goods_words" : "none", words: [] },
927
+ // records whose set-aside wording the goods test read through the answer the merge saved for it
928
+ goods_saved_results: records.filter((r) => r?.goods_set_aside?.test).length,
920
929
  crowded_at: CROWDED_GROUP_RECORDS, first_page: ownerCap,
921
930
  a: groupOf("a"), b: groupOf("b"), c: groupOf("c"), d: groupOf("d"),
922
931
  rest: { records: grouped.by_group.rest.set_records, lines: rest.length, owners: ownersIn(rest), list: rest },
@@ -1159,6 +1168,11 @@ export function withoutPlacementOrders(text) {
1159
1168
  return t;
1160
1169
  }
1161
1170
 
1171
+ // What a goods-word answer the merge saved for set-aside wording is, said once beside the goods test it serves.
1172
+ // What a floor's quoted goods say where the quotation's source has class descriptions the merge set aside.
1173
+ export const FLOOR_QUOTE_OMITS = "Some class descriptions are omitted; this quotation is not the record's complete goods wording.";
1174
+ export const SAVED_GOODS_RESULT = "A saved goods-word result records the outcome of the shape's stated word test on the wording available when the band was merged. It supports grouping and order. It does not establish that the omitted goods are legally unrelated. `band_record` shows what wording is available to read now.";
1175
+
1162
1176
  function renderGroupsMd(md, groups, rows = []) {
1163
1177
  md.push("", "## The band in the lawyer's order — for the client's goods first", "");
1164
1178
  if (groups.dominant_term && groups.manifest_dominant && normKey(groups.dominant_term) !== normKey(groups.manifest_dominant))
@@ -1172,6 +1186,9 @@ function renderGroupsMd(md, groups, rows = []) {
1172
1186
  : tested.source === "goods_words"
1173
1187
  ? `No product words were given, so the goods test reads each record's goods for the words the register search was narrowed by${named}. They include words other filings use for the same goods, so "for the client's goods" below is wider than the client's own product.`
1174
1188
  : "No goods words were given, so no record was tested on its goods.", "");
1189
+ // Where the merge kept the test's answer for wording it set aside (named-band.mjs `rowAsHanded`), the summary says
1190
+ // what that answer is and is not, beside the test it serves.
1191
+ if (tested.source !== "none" && groups.goods_saved_results > 0) md.push(SAVED_GOODS_RESULT, "");
1175
1192
  if (groups.territories_unread?.length)
1176
1193
  md.push(`The order names ${groups.territories_unread.map((t) => `«${cell(t)}»`).join(", ")}, which the engine cannot read as a territory, so the list holds every register.`, "");
1177
1194
  else if (groups.territories?.length) md.push(`The list holds the order's territories: ${groups.territories.join(", ")}.`, "");
@@ -1188,13 +1205,14 @@ function renderGroupsMd(md, groups, rows = []) {
1188
1205
  if (tested.source === "none") return "—";
1189
1206
  if (l.goods_evidence === "cut") return "cut by the register, no goods word found";
1190
1207
  if (l.goods_evidence === "unknown") return l.goods_text === false ? "no goods text held; completeness not established" : "goods held; completeness not established";
1208
+ if (l.goods_evidence === "set-aside") return "Some class descriptions were set aside; the retained wording does not settle the goods-word test.";
1191
1209
  if (l.goods_evidence === "absent") return "the register's record lists no goods";
1192
1210
  if (l.goods_evidence === "unavailable") return "fetch failed, no goods on file";
1193
1211
  if (l.goods_evidence === "complete") return "on file, not readable";
1194
1212
  return l.goods_on_file ? "on file, not readable" : "no goods on file";
1195
1213
  };
1196
1214
  const words = (l) => (l.goods_words == null ? unread(l)
1197
- : `${fmtN(l.goods_words.length)} of ${fmtN(total)}${l.goods_words.length ? `: ${l.goods_words.join(", ")}` : ""}${l.floor_goods ? ` «${l.floor_goods}»` : ""}`);
1215
+ : `${fmtN(l.goods_words.length)} of ${fmtN(total)}${l.goods_words.length ? `: ${l.goods_words.join(", ")}` : ""}${l.floor_goods ? ` «${l.floor_goods}»${l.floor_goods_omits ? ` ${FLOOR_QUOTE_OMITS}` : ""}` : ""}`);
1198
1216
  const count = (grp) => `${fmtN(grp.records)} records in ${fmtN(grp.lines)} lines from ${fmtN(grp.owners)} owners`;
1199
1217
  const where = (l) => `${l.territories.join(",")}${l.outside ? " (outside the order)" : ""}`;
1200
1218
  const row = (l) => `| ${cell(l.mark)} | ${cell(l.owner_name)} | ${cell(l.classes.join(","))} | ${fmtN(l.live)} of ${fmtN(l.records)} | ${cell(where(l))} | ${cell(words(l))} | ${l.floors > 0 ? "yes" : "no"} | ${cell(l.record_id)} |`;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_README": [
3
- "#703 — THE RECONCILIATION RATCHET. The floor a run's common-law carry must not fall below.",
3
+ "THE RECONCILIATION RATCHET. The floor a run's common-law carry must not fall below.",
4
4
  "",
5
5
  "WHAT IT RECORDS: what the contract CURRENTLY ACHIEVES, not what anyone hopes it achieves. It is",
6
6
  "seeded from a real delivered run, never from a fixture, because a floor invented at a desk ratchets",
@@ -13,7 +13,7 @@
13
13
  "A TRIP ANNOTATES, NEVER SUPPRESSES: the deliverable ships first. Below-floor means the ROUND cannot",
14
14
  "claim the contract held; it never means a client gets nothing.",
15
15
  "",
16
- "MOVING IT UP IS THE POINT. When the seat-compliance work lands (the judgment half of #703 — why the",
16
+ "MOVING IT UP IS THE POINT. When the seat-compliance work lands (the judgment half of the ratchet — why the",
17
17
  "seat writes rows for 13% of cells when the dictation says one per cell), re-seed from the round that",
18
18
  "proves the improvement and record which run did it. A wave that ends with these numbers unmoved is a",
19
19
  "finding for the handover, not a footnote. Lowering the floor requires the same: a named run and a",
@@ -32,7 +32,7 @@
32
32
  "date": "2026-08-14",
33
33
  "round": "R1",
34
34
  "engine": "anthropic-agent",
35
- "note": "First delivered R1 since 2026-08-09. Measured by the cell join recorded on #703 — 292 candidate-bearing cells, 39 carrying a negative row; 2116 retrieved candidates, 1609 with reason_source absent. by_joined_on {url 235, cell 272, none 1609} sums to 2116, so the accounting is complete over the full retrieved set."
35
+ "note": "First delivered R1 since 2026-08-09. Measured by a cell join — 292 candidate-bearing cells, 39 carrying a negative row; 2116 retrieved candidates, 1609 with reason_source absent. by_joined_on {url 235, cell 272, none 1609} sums to 2116, so the accounting is complete over the full retrieved set."
36
36
  },
37
37
  "candidates": {
38
38
  "min_rate": 0.239603,
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_README": [
3
- "#850 E2 arm 2 — 'a declared element no validator token speaks about'. THE RATCHET BASELINE.",
3
+ "E2 arm 2 — 'a declared element no validator token speaks about'. THE RATCHET BASELINE.",
4
4
  "Per stage, carrying the ELEMENT NAMES: this file IS the audit object, not a bare count, so a plateau",
5
5
  "is legible per stage and a reader can see WHICH elements no validator polices.",
6
6
  "CI fails on any PER-STAGE INCREASE (driver/test/contract-audit.test.mjs) — a new unpoliced element in",
@@ -11,7 +11,7 @@
11
11
  "the baseline tracks named elements, and a rename is a new name. Regenerate rather than work around it.",
12
12
  "Measured 139 of 287 declared elements."
13
13
  ],
14
- "total": 105,
14
+ "total": 104,
15
15
  "byStage": {
16
16
  "matter-frame": [
17
17
  "### Intake asks line shape — rendered by the driver from intake_asks[]",
@@ -56,7 +56,6 @@
56
56
  ],
57
57
  "common-law": [
58
58
  "BATCHING — split the keys into ceil(N/batch) batches of <=batch variants and concatenate the matrices",
59
- "Grid program receipt — paste the SANDBOX PROGRAM block from the tool result verbatim into the audit trail",
60
59
  "INSTRUCTED CHECKS — execute each as part of the sweep, or state honestly why it could not run",
61
60
  "INSTRUCTED CHECKS — the ask text the requester wrote, quoted back in the findings file with its receipt",
62
61
  "Summary section — Perplexity calls executed, mandatory platforms covered N/N, findings surfaced, open flags",
@@ -256,7 +256,7 @@ export const E3_BACKLOG = [
256
256
  {
257
257
  stage: "register-unit",
258
258
  kind: "literal-json-skeleton",
259
- where: "driver/stages.mjs:2139 (the non-supplemental-lane branch)",
259
+ where: "driver/stages.mjs:2135 (the non-supplemental-lane branch)",
260
260
  surface: "stage-message",
261
261
  evidence: "BAND ARTIFACT (MANDATORY): ALSO write the COMPLETE NAMED BAND for this axis to <path> — a JSON ARRAY, one block per register_enumerate / count-probe call, in the named-band contract: {\"state\":\"enumerated\",\"query\":\"<what was searched>\",\"total_hits\":N,\"records\":[{record_id, mark_text, classes, status,",
262
262
  reparsedBy: "driver/named-band.mjs parseNamedBand / bandRecords / bandCrowds / mergeNamedBands (named in driver/skills/clearance-register/unit.md:60-62); validators.registerUnit",
@@ -265,7 +265,7 @@ export const E3_BACKLOG = [
265
265
  {
266
266
  stage: "register-unit",
267
267
  kind: "exactly-these-keys",
268
- where: "driver/stages.mjs:2104",
268
+ where: "driver/stages.mjs:2100",
269
269
  surface: "stage-message",
270
270
  evidence: "Every block you append MUST carry \"state\":\"enumerated\" (ONLY if you paged it to has_more:false) or \"state\":\"incomplete\" — EXACTLY those two strings; there is no \"verified\"/\"checked\"/\"complete\"/\"clean\" state, and any other value fails the stage.",
271
271
  reparsedBy: "driver/named-band.mjs parseNamedBand (off-enum state fails validators.registerUnit)",
@@ -283,7 +283,7 @@ export const E3_BACKLOG = [
283
283
  {
284
284
  stage: "register-unit",
285
285
  kind: "exactly-these-keys",
286
- where: "driver/stages.mjs:4114 (the frame-reopen / scoped-retry message builder). A second number stood here and had been stale for some time: it pointed at a contract-element description rather than a builder, at its old line and at every mechanical shift of it. Two candidate builders sit beside 4164 and picking one would be a guess, so the wrong pointer is removed rather than moved a third time — one accurate citation beats one accurate and one invented.",
286
+ where: "driver/stages.mjs:4110 (the frame-reopen / scoped-retry message builder). A second number stood here and had been stale for some time: it pointed at a contract-element description rather than a builder, at its old line and at every mechanical shift of it. Two candidate builders sit beside 4164 and picking one would be a guess, so the wrong pointer is removed rather than moved a third time — one accurate citation beats one accurate and one invented.",
287
287
  surface: "stage-message",
288
288
  evidence: "Every block you append MUST carry \"state\":\"enumerated\" (ONLY if paged to has_more:false) or \"state\":\"incomplete\" — EXACTLY those two strings … (re-dispatch builders, which REPLACE def.message)",
289
289
  reparsedBy: "driver/named-band.mjs parseNamedBand. Scope warning: these builders replace def.message on every escalation / envelope-close / frame-reopen dispatch, so an E3 lint that walks STAGES[*].message only never sees them",
@@ -292,7 +292,7 @@ export const E3_BACKLOG = [
292
292
  {
293
293
  stage: "placement-inquiry",
294
294
  kind: "literal-json-skeleton",
295
- where: "driver/stages.mjs:2296-2297",
295
+ where: "driver/stages.mjs:2292-2293",
296
296
  surface: "stage-message",
297
297
  evidence: "PLACEMENT FORM (MANDATORY): record every placement in <path> — {\"rows\":[…]} … · A REGISTER candidate: {\"select\":\"<one record URI it holds>\",\"tier\":\"…\",\"reason\":\"…\"} (+ optional \"borderline\":true) … · A COMMON-LAW candidate …: {\"kind\":\"seat\",\"mark\",\"owner\",\"jurisdiction\",\"records\":[],\"tier\",\"reason\"}",
298
298
  reparsedBy: "driver/placement-form.mjs (SELECT_ROW_FIELDS at placement-form.mjs:93, the seat-row contract SEAT_ROW_CONTRACT, formRowKey/rowIsSettled/renderEntry) via validators.placement. The same field list is ALSO carried in the driver-written form's own seat_row_contract, so the shape exists twice",
@@ -301,7 +301,7 @@ export const E3_BACKLOG = [
301
301
  {
302
302
  stage: "placement-inquiry",
303
303
  kind: "exactly-these-keys",
304
- where: "driver/stages.mjs:2300",
304
+ where: "driver/stages.mjs:2296",
305
305
  surface: "stage-message",
306
306
  evidence: "· tier EXACTLY one of headline-candidate / sheet-2 / watchlist-annex / out-of-scope-filtered.",
307
307
  reparsedBy: "driver/placement-form.mjs / driver/placement-model.mjs via validators.placement",
@@ -341,7 +341,7 @@ export const E3_BACKLOG = [
341
341
  // (coverage-form.mjs coverageFormBrief) and the tool schema, with every row receiver-validated at
342
342
  // call time. Same dictated vocabulary, same authored site, new route — this row's evidence follows
343
343
  // the dictation so the row keeps describing something that exists.
344
- where: "driver/stages.mjs:2511 (the digest message) + driver/coverage-form.mjs (coverageFormBrief — the dispatch block carrying the enum and the row shape)",
344
+ where: "driver/stages.mjs:2507 (the digest message) + driver/coverage-form.mjs (coverageFormBrief — the dispatch block carrying the enum and the row shape)",
345
345
  surface: "stage-message",
346
346
  evidence: "Record a \"status\" and a \"reason\" on EVERY row ONLY by calling the … tool — the driver validates each row as it arrives, holds the record itself, and renders both the ## Coverage ledger table and the coverage JSON from it",
347
347
  reparsedBy: "driver/coverage-call.mjs validateCoverageCall (receiver-validated at call time, the same predicates the gate judges with) + driver/coverage-form.mjs rowIsSettled via validators.registerFindings over the _driver/ accumulator",
@@ -424,7 +424,7 @@ export const E3_BACKLOG = [
424
424
  {
425
425
  stage: "frame-diff",
426
426
  kind: "exactly-these-keys",
427
- where: "driver/stages.mjs:2679",
427
+ where: "driver/stages.mjs:2675",
428
428
  surface: "stage-message",
429
429
  evidence: "For each blind-model variant / field / source the run did NOT scope or search, emit one directive {layer, item, observation, severity} … severity = dominant-element (the omission is ON the spine) | material (a real omission worth a targeted sweep) | minor (already covered, or presentation only).",
430
430
  reparsedBy: "driver/verify.mjs validators.frameDiff + driver/pipeline.mjs runSupplementalSweeps (the parser REFUSES a firing variant directive that dictates nothing dispatchable)",
@@ -448,7 +448,7 @@ export const E3_BACKLOG = [
448
448
  {
449
449
  stage: "synthesis",
450
450
  kind: "literal-json-skeleton",
451
- where: "driver/stages.mjs:3063",
451
+ where: "driver/stages.mjs:3059",
452
452
  surface: "stage-message",
453
453
  evidence: "MACHINE FINDINGS (MANDATORY): … a JSON OBJECT {\"schema_version\":<FINDINGS_SCHEMA_VERSION>,\"rated_under_framework\":\"…\",\"findings\":[...],\"coverage\":[...],\"context_notes\":[...],\"actions\":[...],\"ask_answers\":[...]} … Each finding object has EXACTLY these keys: {\"ordinal\",\"mark\",\"owner\",\"band\",\"net\",\"bor",
454
454
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson via validators.narrative",
@@ -462,7 +462,7 @@ export const E3_BACKLOG = [
462
462
  {
463
463
  stage: "synthesis",
464
464
  kind: "exactly-these-keys",
465
- where: "driver/stages.mjs:3096",
465
+ where: "driver/stages.mjs:3092",
466
466
  surface: "stage-message",
467
467
  evidence: "- off_field_ground (MANDATORY on every off-field finding, FORBIDDEN on every other disposition): EXACTLY one bare token of: ${OFF_FIELD_GROUNDS.join(\" / \")}",
468
468
  reparsedBy: "driver/findings-model.mjs validateOffFieldGround — the enum is imported from findings-model.mjs and interpolated back into the prompt, so code already holds the list it asks the model to type",
@@ -471,7 +471,7 @@ export const E3_BACKLOG = [
471
471
  {
472
472
  stage: "synthesis",
473
473
  kind: "literal-json-skeleton",
474
- where: "driver/stages.mjs:3097",
474
+ where: "driver/stages.mjs:3093",
475
475
  surface: "stage-message",
476
476
  evidence: "- manageable …: {\"category\":\"<EXACTLY one of large-competitor / commercial-partner / troll / well-known-enforcer>\",\"reason\":\"<one-two lines…>\"}",
477
477
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
@@ -480,7 +480,7 @@ export const E3_BACKLOG = [
480
480
  {
481
481
  stage: "synthesis",
482
482
  kind: "literal-json-skeleton",
483
- where: "driver/stages.mjs:3113",
483
+ where: "driver/stages.mjs:3109",
484
484
  surface: "stage-message",
485
485
  evidence: "- meters: {\"mark_similarity\":{...},\"goods_proximity\":{...},\"use\":{...},\"enforcer\":{...}} — all four present, each {\"token\",\"basis\",\"source\"}. … mark_similarity = high | medium | low. goods_proximity = high | medium | low. enforcer = high | medium | low | unknown. use = confirmed | not-confirmed | un",
486
486
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; driver/verify.mjs:1192 checkFindingsSibling gates meters.*.source; finding_basis_source_missing",
@@ -489,7 +489,7 @@ export const E3_BACKLOG = [
489
489
  {
490
490
  stage: "synthesis",
491
491
  kind: "literal-json-skeleton",
492
- where: "driver/stages.mjs:3114",
492
+ where: "driver/stages.mjs:3110",
493
493
  surface: "stage-message",
494
494
  evidence: "- quadrant: {\"x\",\"y\"} numbers in [0,1]. x = goods/services proximity (0 = distant, 1 = identical). y = mark similarity (0 = distinct, 1 = identical).",
495
495
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
@@ -498,7 +498,7 @@ export const E3_BACKLOG = [
498
498
  {
499
499
  stage: "synthesis",
500
500
  kind: "literal-json-skeleton",
501
- where: "driver/stages.mjs:3115",
501
+ where: "driver/stages.mjs:3111",
502
502
  surface: "stage-message",
503
503
  evidence: "- source: {\"source_type\",\"resolved_link\"}. source_type EXACTLY one of: register-vendor / register-euipo / common-law-marketplace / common-law-web / case-law",
504
504
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
@@ -507,7 +507,7 @@ export const E3_BACKLOG = [
507
507
  {
508
508
  stage: "synthesis",
509
509
  kind: "exactly-these-keys",
510
- where: "driver/stages.mjs:3116",
510
+ where: "driver/stages.mjs:3112",
511
511
  surface: "stage-message",
512
512
  evidence: "coverage[]: ONE object per coverage AREA, EXACTLY {\"area\",\"state\",\"note\"}. … state EXACTLY one of: confirmed-clean / coverage-limited / open / not-searched / note.",
513
513
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; the render owns the coverage panel from these typed states",
@@ -516,7 +516,7 @@ export const E3_BACKLOG = [
516
516
  {
517
517
  stage: "synthesis",
518
518
  kind: "literal-json-skeleton",
519
- where: "driver/stages.mjs:3125",
519
+ where: "driver/stages.mjs:3121",
520
520
  surface: "stage-message",
521
521
  evidence: "use_check = {\"source\",\"quality\",\"question\"}: … quality: OPTIONAL, EXACTLY one of owner-site / independent / register-mirror … own_rights = {\"source\"}",
522
522
  reparsedBy: "driver/verify.mjs checkFindingsSibling (finding_use_check_missing); driver/own-rights.mjs:19-22",
@@ -525,7 +525,7 @@ export const E3_BACKLOG = [
525
525
  {
526
526
  stage: "synthesis",
527
527
  kind: "literal-json-skeleton",
528
- where: "driver/stages.mjs:3182",
528
+ where: "driver/stages.mjs:3178",
529
529
  surface: "stage-message",
530
530
  evidence: "MARK ASSESSMENT … STRUCTURED FORM …: either field may instead be an OBJECT {\"read\":\"…\",\"spectrum\":\"…\",\"per_class\":[{\"class\":\"5\",\"note\":\"…\"}],\"per_market\":[{\"market\":\"CN\",\"note\":\"…\"}],\"counter_registrations\":[{\"mark\":\"…\",\"uri\":\"/mark/…\",\"note\":\"…\"}],\"acquired\":\"<optional>\",\"note\":\"<optional residual>",
531
531
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; the report collapses the rows behind toggles and the audit workbook renders them",
@@ -534,7 +534,7 @@ export const E3_BACKLOG = [
534
534
  {
535
535
  stage: "synthesis",
536
536
  kind: "literal-json-skeleton",
537
- where: "driver/stages.mjs:3188",
537
+ where: "driver/stages.mjs:3184",
538
538
  surface: "stage-message",
539
539
  evidence: "FOUR ANSWERS …: \"four_answers\": {\"third_party_rights\":{...},\"objection_likelihood\":{...},\"registrability\":{...},\"client_enforceability\":{...}} … Each answer … is {\"read\":\"…\",\"token\":\"…\",\"basis\":\"…\",\"ordinals\":[…]}. Tokens (closed enums …): third_party_rights = strong|moderate|weak; objection_likelih",
540
540
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
@@ -543,7 +543,7 @@ export const E3_BACKLOG = [
543
543
  {
544
544
  stage: "synthesis",
545
545
  kind: "literal-json-skeleton",
546
- where: "driver/stages.mjs:3194",
546
+ where: "driver/stages.mjs:3190",
547
547
  surface: "stage-message",
548
548
  evidence: "ACTIONS REGISTER …: emit \"actions\": [...] — ONE object per forward step …, each EXACTLY {\"id\",\"kind\",\"text\",\"ordinals\"} plus an OPTIONAL \"deadline\" and an OPTIONAL \"condition\". … kind: EXACTLY one of — consent / coexistence-agreement / territorial-delimitation / goods-amendment / mark-modification /",
549
549
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson; pipeline applyCoverageFloor legalActions arm derives the delivered disposition from the closed kind enum",
@@ -552,7 +552,7 @@ export const E3_BACKLOG = [
552
552
  {
553
553
  stage: "synthesis",
554
554
  kind: "exactly-these-keys",
555
- where: "driver/stages.mjs:3195",
555
+ where: "driver/stages.mjs:3191",
556
556
  surface: "stage-message",
557
557
  evidence: "COVERAGE JUDGMENT …: emit \"coverage_judgment\": {\"sufficient\":<bool>, \"reason\":\"<one line…>\"} — EXACTLY those two keys. Do NOT emit \"rows\": the driver writes that register itself … anything you type there is replaced wholesale.",
558
558
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson. The \"Do NOT emit rows\" clause is the purest E3 case in the tree — the prompt names a field, dictates its shape and states in the same breath that code overwrites it",
@@ -561,7 +561,7 @@ export const E3_BACKLOG = [
561
561
  {
562
562
  stage: "synthesis",
563
563
  kind: "literal-json-skeleton",
564
- where: "driver/stages.mjs:3041",
564
+ where: "driver/stages.mjs:3037",
565
565
  surface: "stage-message",
566
566
  // RE-QUOTED, NOT PARKED. The writer's conversion reworded this dictation — the
567
567
  // ask answers ride the findings RECORD now and the driver renders the labelled line into both the
@@ -585,7 +585,7 @@ export const E3_BACKLOG = [
585
585
  {
586
586
  stage: "synthesis",
587
587
  kind: "exactly-these-keys",
588
- where: "driver/stages.mjs:3174",
588
+ where: "driver/stages.mjs:3170",
589
589
  surface: "stage-message",
590
590
  evidence: "add it to the top-level \"context_notes\" array — each object EXACTLY {\"type\":\"famous-neighbour-ungrounded\",\"mark\",\"owner\",\"context\"}",
591
591
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson",
@@ -594,7 +594,7 @@ export const E3_BACKLOG = [
594
594
  {
595
595
  stage: "synthesis",
596
596
  kind: "literal-json-skeleton",
597
- where: "driver/stages.mjs:3065",
597
+ where: "driver/stages.mjs:3061",
598
598
  surface: "stage-message",
599
599
  evidence: "- owner: {\"name\",\"country\",\"registrations\":[...]}. … Each registration: {\"uri\", optionally \"classes\":[\"9\",\"41\"],\"status\",\"filed\",\"expiry\",\"jurisdiction\"}. The \"uri\" is the ONLY field that matters: the driver BINDS classes/status/filed/expiry/jurisdiction AND the owner name from the FETCHED record ke",
600
600
  reparsedBy: "driver/findings-model.mjs:848 parseFindingsJson + the record-binding join. Six of the seven keys are stated in the prompt and overwritten by code in the same sentence",
@@ -603,7 +603,7 @@ export const E3_BACKLOG = [
603
603
  {
604
604
  stage: "case-law",
605
605
  kind: "literal-json-skeleton",
606
- where: "driver/stages.mjs:3352",
606
+ where: "driver/stages.mjs:3348",
607
607
  surface: "stage-message",
608
608
  evidence: "ALSO write the RETRIEVAL RECORD to <path> — a JSON OBJECT with EXACTLY these keys: {\"schema_version\":2,\"queries\":[{\"query\":\"<the search you dispatched, verbatim>\",\"jurisdiction\":\"…\",\"results\":<how many hits it returned, or null when the query never reached a source — never 0 for a query you could not send>}, …],\"citations\":[{\"proceeding\":\"…\",\"forum\":\"…\",\"jurisdiction\":\"…\",\"decided\":\"…\"",
609
609
  reparsedBy: "driver/verify.mjs validators.caseLaw — the ledger arm, armed by the stage-contract marker `citations` (the case-law stage's `contract: { citations: 1 }` in stages.mjs)",
@@ -612,7 +612,7 @@ export const E3_BACKLOG = [
612
612
  {
613
613
  stage: "case-law",
614
614
  kind: "dictated-line-shape",
615
- where: "driver/stages.mjs:3360",
615
+ where: "driver/stages.mjs:3356",
616
616
  surface: "stage-message",
617
617
  evidence: "EVERY \"Grounded profile\" section MUST start its body with the line \"- ord: <N>\" naming which finding it grounds (use the ordinal from this list; a profile that grounds no listed finding omits the line)",
618
618
  reparsedBy: "driver/publish/parse.mjs:339, parseCaseLawProfiles() in parse.mjs (\"the optional '- ord: <N>' first body line … gives an EXACT join\"); driver/findings-model.mjs:274 /^-\\s*ord:\\s*(\\d+)\\s*$/m; driver/publish/index.mjs publishReport (joinCaseLawProfiles)",
@@ -646,7 +646,7 @@ export const E3_BACKLOG = [
646
646
  {
647
647
  stage: "narrative-refutation",
648
648
  kind: "dictated-line-shape",
649
- where: "driver/stages.mjs:4698",
649
+ where: "driver/stages.mjs:4694",
650
650
  surface: "stage-message",
651
651
  // RE-QUOTED BY CONVERSION 9. The LINE-TOKEN half is gone — no "anywhere on the line", no "[kind: …]
652
652
  // token", no "a line with no token is treated as fact", because a kind is a typed field now and an
@@ -681,7 +681,7 @@ export const E3_BACKLOG = [
681
681
  {
682
682
  stage: "narrative-refutation",
683
683
  kind: "dictated-line-shape",
684
- where: "driver/stages.mjs:1680 and driver/skills/narrative-refutation/SKILL.md:39-48",
684
+ where: "driver/stages.mjs:1676 and driver/skills/narrative-refutation/SKILL.md:39-48",
685
685
  // RE-QUOTED 2026-08-16. The dictated SENTENCE survives in narrative-refutation's SKILL.md — it is the
686
686
  // `evidence` below, verbatim. What changed is that the four kinds moved from an inline list after the
687
687
  // colon onto their own `- [kind: …]` bullet lines. Measured, not assumed: the old anchor matched 59 of
@@ -746,7 +746,7 @@ export const E3_BACKLOG = [
746
746
  {
747
747
  stage: "report-card",
748
748
  kind: "literal-json-skeleton",
749
- where: "driver/stages.mjs:3802",
749
+ where: "driver/stages.mjs:3798",
750
750
  surface: "stage-message",
751
751
  evidence: "The finding's OWN record — the ONLY source for this card …:\\n```json\\n<JSON.stringify(finding, null, 2)>\\n```",
752
752
  reparsedBy: "none — this is the INPUT side, and that is why it belongs in the survey: a full JSON object rendered into the prompt is exactly the mechanism #850 proves produced R-RECEIPT (the model pattern-matches a shown shape). E3's clause 1 as written (\"a code fence or inline example showing the exact object shape the model must emit\") does not reach an injected record, so the lint needs an explicit rule for shown-but-not-owed structure",
@@ -836,7 +836,7 @@ export const E3_EVIDENCE_UNRESOLVED = [
836
836
  // absorbed. It was the narrative "## Answers to your instructions" row deleted above: its dictation is
837
837
  // gone, so there is no un-anchorable quote left to be unresolved. The one that REMAINS is a live row
838
838
  // whose quote spans a template line. Measured before deleting, not predicted — two rows shared
839
- // `where: "driver/stages.mjs:2864"`, so which one occupied this slot could not be read off the strings.
839
+ // `where: "driver/stages.mjs:2860"`, so which one occupied this slot could not be read off the strings.
840
840
  "synthesis|driver/stages.mjs",
841
841
  ];
842
842
 
@@ -137,3 +137,20 @@ export function demoPostureLine(env = process.env, { roster, projects } = {}) {
137
137
  ? " Nothing here is configured against a real customer, and nothing needs to be." : "";
138
138
  return `${head}: it carries ${carries}, and ${reports} ready to open.${unreal}`;
139
139
  }
140
+
141
+ /**
142
+ * The door's count of the companies it read, and from where: the store set, or the folder that ships with this install.
143
+ * One company is "1 customer". PURE.
144
+ */
145
+ export function rosterCountLine(roster, { configured = null, bundledDir }) {
146
+ const n = roster.length;
147
+ const from = configured || `the folder that ships with this install, ${bundledDir} (CLEAROTRON_CUSTOMERS_DIR is unset)`;
148
+ return `roster: ${n} ${n === 1 ? "customer" : "customers"} from ${from} — [${roster.join(", ")}]`;
149
+ }
150
+
151
+ /** The boot line for a door reading the company folder that ships with this install. PURE. */
152
+ export function bundledRosterLine(count) {
153
+ return `CLEAROTRON_CUSTOMERS_DIR is unset, so start_run reads the ${count} ${count === 1 ? "company" : "companies"} in the folder that ships with this install `
154
+ + "(driver/profiles). A company absent from that folder is refused with \"names no known customer\". If its profile is in a "
155
+ + "separate config store, set CLEAROTRON_CUSTOMERS_DIR to that store's profiles directory.";
156
+ }
@@ -575,10 +575,10 @@ export const anthropicAgentEngine = {
575
575
  const maxBuffer = engineMaxBufferChars();
576
576
  let lastMove = Date.now();
577
577
  let lastProgress = Date.now(); // honest-progress clock: token movement / agent-loop steps / artifact writes ONLY
578
- let firstOutputAt = null; // #1692/#1813 — first byte of the PROTOCOL (stdout only); until then every clock below is timing STARTUP
578
+ let firstOutputAt = null; // first byte of the PROTOCOL (stdout only); until then every clock below is timing STARTUP
579
579
  let atKill = null; // what the watchdog had seen when it decided to kill — recording only, see killDecision
580
580
  let silentIdleMs = null; // the no-progress clock at the watchdog's last look before the child spoke — recording only
581
- const GRACE = spawnGraceMs(); // one source of the grace: common.mjs, where #1703 set it
581
+ const GRACE = spawnGraceMs(); // one source of the grace: common.mjs sets it
582
582
  let sawAnyEvent = false; // ANY parseable stream event (incl. system:init) — false on close = the CLI died before streaming (startup-class failure)
583
583
  let rateLimitEvent = null; // a 429 session-cap rejection rides a `rate_limit_event` (status:"rejected" + resetsAt)
584
584
  // Streamed-usage accumulator: what the turn PROVABLY moved, observed from the stream itself, so a
@@ -849,7 +849,7 @@ export const anthropicAgentEngine = {
849
849
  // classification and no recovery park, or the turn never settles with its watchdog already gone.
850
850
  // Same belt-and-braces as the thinking gauge's `?.some?.()` on the line above.
851
851
  for (const b of Array.isArray(ev.message?.content) ? ev.message.content : []) {
852
- if (b?.type === "tool_use") { toolCalls++; countTool(toolCallsByName, b?.name); } // #1111 — every tool, not only Read; the count and its split by name
852
+ if (b?.type === "tool_use") { toolCalls++; countTool(toolCallsByName, b?.name); } // every tool, not only Read; the count and its split by name
853
853
  if (b?.type === "tool_use" && b?.id != null) toolNameById.set(String(b.id), String(b?.name ?? "?"));
854
854
  if (b?.type === "tool_use" && COMMAND_TOOLS.includes(b?.name)) commandToolCalls++;
855
855
  if (b?.type === "tool_use" && FILE_WRITE_TOOLS.includes(b?.name) && b?.id != null) writeAsks.add(String(b.id));
@@ -1061,7 +1061,7 @@ export const anthropicAgentEngine = {
1061
1061
  const overflowKill = () => { if (overflow) return; overflow = true; killTree(); settle(1); };
1062
1062
  child.stdout.on("data", (d) => {
1063
1063
  if (settled || overflow) return;
1064
- if (firstOutputAt === null) firstOutputAt = Date.now(); // #1692 — the child has spoken; startup is over
1064
+ if (firstOutputAt === null) firstOutputAt = Date.now(); // the child has spoken; startup is over
1065
1065
  chunkSeq += 1; // see toolAskedChunk
1066
1066
  chunkBytes = d.length;
1067
1067
  chunkGapMs = prevChunkAt === null ? 0 : Date.now() - prevChunkAt;
@@ -1192,7 +1192,7 @@ export const anthropicAgentEngine = {
1192
1192
  // true = the 500-path cap dropped at least one further distinct file (so a `read:false` derived
1193
1193
  // from this list is unreliable and the consumer must downgrade it to "not observed").
1194
1194
  reads: [...reads], readsTruncated,
1195
- toolCalls, toolWaitMs: settledToolWaitMs, // #1111 — two integers, no content
1195
+ toolCalls, toolWaitMs: settledToolWaitMs, // two integers, no content
1196
1196
  // The same calls by tool name (values sum to toolCalls), and what the session went through: every
1197
1197
  // result, cut, refusal and restart (session-record.mjs). `stream` is the raw stream's file and size,
1198
1198
  // or why it was not kept. Recording only — `failed` above still reads the last result alone.