@intentic/sandbox-contract 1.422.0 → 1.423.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 (190) hide show
  1. package/dist/chores/chores.d.ts.map +1 -1
  2. package/dist/chores/chores.js +1 -48
  3. package/dist/chores/chores.js.map +1 -1
  4. package/dist/chores/index.d.ts +1 -1
  5. package/dist/chores/index.d.ts.map +1 -1
  6. package/dist/chores/index.js +1 -1
  7. package/dist/chores/index.js.map +1 -1
  8. package/dist/chores/prompt.d.ts +0 -1
  9. package/dist/chores/prompt.d.ts.map +1 -1
  10. package/dist/chores/prompt.js +0 -2
  11. package/dist/chores/prompt.js.map +1 -1
  12. package/dist/contracts/capabilities.contract.d.ts +0 -28
  13. package/dist/contracts/capabilities.contract.d.ts.map +1 -1
  14. package/dist/contracts/issues.contract.d.ts +6 -0
  15. package/dist/contracts/issues.contract.d.ts.map +1 -1
  16. package/dist/contracts/offload.contract.d.ts +14 -14
  17. package/dist/contracts/panels.contract.d.ts +0 -7
  18. package/dist/contracts/panels.contract.d.ts.map +1 -1
  19. package/dist/contracts/runner.contract.d.ts +246 -246
  20. package/dist/contracts/secrets.contract.d.ts +2 -17
  21. package/dist/contracts/secrets.contract.d.ts.map +1 -1
  22. package/dist/contracts/secrets.contract.js +2 -2
  23. package/dist/contracts/secrets.contract.js.map +1 -1
  24. package/dist/contracts/settings.contract.d.ts +0 -135
  25. package/dist/contracts/settings.contract.d.ts.map +1 -1
  26. package/dist/contracts/system.contract.d.ts +18 -18
  27. package/dist/contracts/workspace.contract.d.ts +0 -60
  28. package/dist/contracts/workspace.contract.d.ts.map +1 -1
  29. package/dist/contracts/workspace.contract.js +1 -11
  30. package/dist/contracts/workspace.contract.js.map +1 -1
  31. package/dist/ids/project-id.d.ts +3 -0
  32. package/dist/ids/project-id.d.ts.map +1 -0
  33. package/dist/ids/project-id.js +25 -0
  34. package/dist/ids/project-id.js.map +1 -0
  35. package/dist/ids/tunnel-ids.d.ts +0 -1
  36. package/dist/ids/tunnel-ids.d.ts.map +1 -1
  37. package/dist/ids/tunnel-ids.js +0 -1
  38. package/dist/ids/tunnel-ids.js.map +1 -1
  39. package/dist/index.d.ts +0 -4
  40. package/dist/index.d.ts.map +1 -1
  41. package/dist/index.js +0 -4
  42. package/dist/index.js.map +1 -1
  43. package/dist/models/model-roles.d.ts +1 -1
  44. package/dist/models/model-roles.d.ts.map +1 -1
  45. package/dist/models/model-roles.js +1 -1
  46. package/dist/models/model-roles.js.map +1 -1
  47. package/dist/protocol/doors/sandbox-pass.d.ts +22 -0
  48. package/dist/protocol/doors/sandbox-pass.d.ts.map +1 -0
  49. package/dist/protocol/doors/sandbox-pass.js +72 -0
  50. package/dist/protocol/doors/sandbox-pass.js.map +1 -0
  51. package/dist/protocol/raw/raw-json-routes.d.ts +92 -9
  52. package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
  53. package/dist/protocol/raw/raw-json-routes.js +6 -2
  54. package/dist/protocol/raw/raw-json-routes.js.map +1 -1
  55. package/dist/protocol/raw/raw-routes.d.ts +16 -7
  56. package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
  57. package/dist/protocol/raw/raw-routes.js +4 -2
  58. package/dist/protocol/raw/raw-routes.js.map +1 -1
  59. package/dist/schemas/capabilities.d.ts +0 -14
  60. package/dist/schemas/capabilities.d.ts.map +1 -1
  61. package/dist/schemas/capabilities.js +0 -4
  62. package/dist/schemas/capabilities.js.map +1 -1
  63. package/dist/schemas/certificate-request.d.ts +0 -2
  64. package/dist/schemas/certificate-request.d.ts.map +1 -1
  65. package/dist/schemas/issues.d.ts +133 -0
  66. package/dist/schemas/issues.d.ts.map +1 -1
  67. package/dist/schemas/issues.js +34 -0
  68. package/dist/schemas/issues.js.map +1 -1
  69. package/dist/schemas/maintenance.d.ts.map +1 -1
  70. package/dist/schemas/maintenance.js +16 -10
  71. package/dist/schemas/maintenance.js.map +1 -1
  72. package/dist/schemas/metrics.d.ts.map +1 -1
  73. package/dist/schemas/metrics.js.map +1 -1
  74. package/dist/schemas/panels.d.ts +0 -14
  75. package/dist/schemas/panels.d.ts.map +1 -1
  76. package/dist/schemas/panels.js +0 -6
  77. package/dist/schemas/panels.js.map +1 -1
  78. package/dist/schemas/personas.d.ts.map +1 -1
  79. package/dist/schemas/personas.js +0 -6
  80. package/dist/schemas/personas.js.map +1 -1
  81. package/dist/schemas/providers/usage.d.ts +0 -12
  82. package/dist/schemas/providers/usage.d.ts.map +1 -1
  83. package/dist/schemas/providers/usage.js +0 -5
  84. package/dist/schemas/providers/usage.js.map +1 -1
  85. package/dist/schemas/secrets.d.ts +1 -22
  86. package/dist/schemas/secrets.d.ts.map +1 -1
  87. package/dist/schemas/secrets.js +3 -13
  88. package/dist/schemas/secrets.js.map +1 -1
  89. package/dist/schemas/settings-experiments.d.ts +0 -4
  90. package/dist/schemas/settings-experiments.d.ts.map +1 -1
  91. package/dist/schemas/settings-experiments.js +0 -12
  92. package/dist/schemas/settings-experiments.js.map +1 -1
  93. package/dist/schemas/settings-history.d.ts +1 -1
  94. package/dist/schemas/settings-history.d.ts.map +1 -1
  95. package/dist/schemas/settings-history.js +1 -0
  96. package/dist/schemas/settings-history.js.map +1 -1
  97. package/dist/schemas/settings-savings.d.ts +0 -144
  98. package/dist/schemas/settings-savings.d.ts.map +1 -1
  99. package/dist/schemas/settings-savings.js +1 -3
  100. package/dist/schemas/settings-savings.js.map +1 -1
  101. package/dist/schemas/settings.d.ts +0 -4
  102. package/dist/schemas/settings.d.ts.map +1 -1
  103. package/dist/schemas/settings.js +2 -3
  104. package/dist/schemas/settings.js.map +1 -1
  105. package/dist/schemas/short-codes.d.ts +0 -10
  106. package/dist/schemas/short-codes.d.ts.map +1 -1
  107. package/dist/schemas/short-codes.js +1 -9
  108. package/dist/schemas/short-codes.js.map +1 -1
  109. package/dist/schemas/workspace/workspace-search.d.ts +0 -12
  110. package/dist/schemas/workspace/workspace-search.d.ts.map +1 -1
  111. package/dist/schemas/workspace/workspace-search.js +5 -12
  112. package/dist/schemas/workspace/workspace-search.js.map +1 -1
  113. package/dist/state/definition.d.ts +0 -24
  114. package/dist/state/definition.d.ts.map +1 -1
  115. package/dist/state/update-probation.d.ts +1 -1
  116. package/dist/state/update-probation.d.ts.map +1 -1
  117. package/dist/state/update-probation.js +1 -1
  118. package/dist/state/update-probation.js.map +1 -1
  119. package/dist/state/workspace-state.d.ts +6 -1
  120. package/dist/state/workspace-state.d.ts.map +1 -1
  121. package/dist/state/workspace-state.js +7 -1
  122. package/dist/state/workspace-state.js.map +1 -1
  123. package/package.json +27 -5
  124. package/src/chores/chores.test.ts +1 -2
  125. package/src/chores/chores.ts +2 -62
  126. package/src/chores/index.ts +1 -1
  127. package/src/chores/prompt.ts +1 -6
  128. package/src/chores/verdict.test.ts +3 -44
  129. package/src/contracts/secrets.contract.ts +4 -5
  130. package/src/contracts/workspace.contract.ts +2 -14
  131. package/src/events/system-events.ts +2 -2
  132. package/src/ids/project-id.test.ts +26 -0
  133. package/src/ids/project-id.ts +34 -0
  134. package/src/ids/tunnel-ids.test.ts +2 -23
  135. package/src/ids/tunnel-ids.ts +0 -4
  136. package/src/index.ts +0 -6
  137. package/src/models/model-roles.ts +3 -1
  138. package/src/policy/persona-capability.ts +1 -1
  139. package/src/protocol/doors/sandbox-pass.test.ts +51 -0
  140. package/src/protocol/doors/sandbox-pass.ts +119 -0
  141. package/src/protocol/headers.ts +2 -2
  142. package/src/protocol/member-reach.test.ts +0 -1
  143. package/src/protocol/raw/raw-json-routes.ts +14 -2
  144. package/src/protocol/raw/raw-routes.ts +9 -5
  145. package/src/protocol/routes.test.ts +0 -4
  146. package/src/schemas/capabilities.ts +0 -6
  147. package/src/schemas/issues.ts +54 -0
  148. package/src/schemas/maintenance.ts +20 -12
  149. package/src/schemas/metrics.ts +2 -0
  150. package/src/schemas/panels.ts +0 -8
  151. package/src/schemas/personas.ts +2 -6
  152. package/src/schemas/providers/usage.ts +5 -14
  153. package/src/schemas/secrets.ts +8 -20
  154. package/src/schemas/settings-experiments.ts +0 -17
  155. package/src/schemas/settings-history.ts +3 -0
  156. package/src/schemas/settings-savings.ts +2 -9
  157. package/src/schemas/settings.test.ts +16 -9
  158. package/src/schemas/settings.ts +4 -4
  159. package/src/schemas/short-codes.ts +2 -14
  160. package/src/schemas/version-seam.test.ts +2 -2
  161. package/src/schemas/workspace/workspace-search.ts +12 -25
  162. package/src/state/update-probation.ts +4 -3
  163. package/src/state/workspace-state.test.ts +2 -2
  164. package/src/state/workspace-state.ts +10 -1
  165. package/src/text/path-refs.test.ts +1 -1
  166. package/dist/contracts/intentic.contract.d.ts +0 -30
  167. package/dist/contracts/intentic.contract.d.ts.map +0 -1
  168. package/dist/contracts/intentic.contract.js +0 -34
  169. package/dist/contracts/intentic.contract.js.map +0 -1
  170. package/dist/contracts/inventory.contract.d.ts +0 -138
  171. package/dist/contracts/inventory.contract.d.ts.map +0 -1
  172. package/dist/contracts/inventory.contract.js +0 -31
  173. package/dist/contracts/inventory.contract.js.map +0 -1
  174. package/dist/schemas/codebase-health.d.ts +0 -56
  175. package/dist/schemas/codebase-health.d.ts.map +0 -1
  176. package/dist/schemas/codebase-health.js +0 -43
  177. package/dist/schemas/codebase-health.js.map +0 -1
  178. package/dist/schemas/intentic.d.ts +0 -5
  179. package/dist/schemas/intentic.d.ts.map +0 -1
  180. package/dist/schemas/intentic.js +0 -3
  181. package/dist/schemas/intentic.js.map +0 -1
  182. package/dist/schemas/inventory.d.ts +0 -175
  183. package/dist/schemas/inventory.d.ts.map +0 -1
  184. package/dist/schemas/inventory.js +0 -62
  185. package/dist/schemas/inventory.js.map +0 -1
  186. package/src/contracts/intentic.contract.ts +0 -45
  187. package/src/contracts/inventory.contract.ts +0 -35
  188. package/src/schemas/codebase-health.ts +0 -60
  189. package/src/schemas/intentic.ts +0 -2
  190. package/src/schemas/inventory.ts +0 -83
@@ -1,6 +1,5 @@
1
1
  // maintenance: the standing evidence a chore is decided from
2
2
  import { z } from "zod";
3
- import { WorkspaceHotspotSchema, WorkspaceKeyModuleSchema } from "./codebase-health.js";
4
3
  // The daemon serves facts, never a verdict: which chore is due is computed by shared code
5
4
  // (`@intentic/sandbox-contract/chores`) so the tile and panel can't disagree. Split by cost: probes (subprocesses,
6
5
  // cached with a TTL) vs signals (cheap, recomputed per request).
@@ -246,24 +245,33 @@ export const ChoreShapeSchema = z.object({
246
245
  ),
247
246
  });
248
247
  export type ChoreShape = z.infer<typeof ChoreShapeSchema>;
248
+ // A file iq once ranked as churning and tangled; kept only as the shape of the retired `hotspots` field.
249
+ const RetiredHotspotSchema = z.object({
250
+ path: z.string(),
251
+ commits: z.number(),
252
+ adds: z.number(),
253
+ dels: z.number(),
254
+ complexity: z.number(),
255
+ score: z.number(),
256
+ latestMs: z.number(),
257
+ });
249
258
  export const ChoreSignalsSchema = z.object({
250
259
  packages: z.array(ChorePackageSchema).describe("Each package in the repository, as its own manifest declares it."),
251
260
  shape: ChoreShapeSchema.describe("What the repository is made of, which decides whether a given chore is even a sensible question to ask of it."),
252
- hotspots: z
253
- .array(WorkspaceHotspotSchema)
254
- .describe(
255
- "Files that change often and are complicated at once, capped tight: a chore only asks whether something has entered the top of the ranking.",
256
- ),
257
- keyModules: z.array(WorkspaceKeyModuleSchema).describe("The parts the rest of the code leans on most, capped the same way."),
261
+ // Retired with iq (2026-11-18), which ranked them: always empty, zeros and false now, nothing reads them, and they stay
262
+ // so a Maintenance extension built before then still parses the report. `totals.files` is still counted: older
263
+ // builds gate the cross-cutting-patterns survey on it.
264
+ hotspots: z.array(RetiredHotspotSchema).describe("Retired: always empty."),
265
+ keyModules: z.array(z.object({ path: z.string(), exports: z.number() })).describe("Retired: always empty."),
258
266
  totals: z
259
267
  .object({
260
- files: z.number().describe("Files counted."),
261
- symbols: z.number().describe("Named things they export."),
262
- complexity: z.number().describe("Branch points added up."),
263
- hotspots: z.number().describe("How many files qualify as hotspots at all."),
268
+ files: z.number().describe("Code files in the repository: source, not data, configuration or prose."),
269
+ symbols: z.number().describe("Retired: always zero."),
270
+ complexity: z.number().describe("Retired: always zero."),
271
+ hotspots: z.number().describe("Retired: always zero."),
264
272
  })
265
273
  .describe("The repository in numbers."),
266
- indexed: z.boolean().describe("Whether the index these rankings came from is finished. Nothing should act on a half-built one."),
274
+ indexed: z.boolean().describe("Retired: always false, so a build that still ranks hotspots never acts on these."),
267
275
  });
268
276
  export type ChoreSignals = z.infer<typeof ChoreSignalsSchema>;
269
277
  // `clean` is the important value: without it, a false-positive finding restarts the same turn forever.
@@ -6,6 +6,8 @@ import { z } from "zod";
6
6
  // The kinds of process a sandbox runs, as the daemon classifies them by command line.
7
7
  export const PROCESS_ROLES = [
8
8
  "languageServer",
9
+ // iq's resident engine, removed 2026-11-18: no daemon classifies a process as it now, but an editor reads an older
10
+ // daemon's metrics against this list, and an unknown role would fail the whole reading.
9
11
  "searchEngine",
10
12
  "agentRuntime",
11
13
  "browser",
@@ -93,20 +93,12 @@ export const PanelSummarySchema = z.object({
93
93
  .string()
94
94
  .optional()
95
95
  .describe("Where to open it from outside, present only while that address really serves it. Absent on a sandbox with no outside address."),
96
- role: z
97
- .enum(["intent", "desired-state", "app"])
98
- .optional()
99
- .describe("Which of the workspace's three fixed roles this repository fills. Absent for one that was simply cloned in."),
100
96
  // Detected from specific files:
101
- // deployConfig: deploy.config.ts.
102
- // desiredState: desired-state.json (present after the first resolve).
103
97
  // directoryUi: .intentic/ui/index.html.
104
98
  // monorepo: pnpm-workspace.yaml + turbo.json.
105
99
  // tests: a root `test` script or runner config (vitest.config.ts, bunfig.toml), or "vitest" in the workspace catalog.
106
100
  // userStories: docs/user-stories.
107
101
  // docs: docs/architecture.
108
- deployConfig: z.boolean().describe("It declares infrastructure."),
109
- desiredState: z.boolean().describe("That declaration has been resolved at least once."),
110
102
  directoryUi: z.boolean().describe("It carries a small interface of its own."),
111
103
  monorepo: z.boolean().describe("It holds several packages."),
112
104
  tests: z.boolean().describe("It has tests that can be run."),
@@ -91,6 +91,8 @@ export type PersonaContext = z.infer<typeof PersonaContextSchema>;
91
91
  // editor has to name the same rows the transcript does, and two lists would drift into two vocabularies for one thing.
92
92
  // Ids, not titles, are what a card stores: a title is display text and gets reworded, and a reworded title must not
93
93
  // silently switch a note back on. The daemon maps each id to the titles it covers (agent/prompt/turn-briefing.ts).
94
+ // `search` named the iq teaching note, removed with iq (2026-11-18); it stays readable because a saved card may still
95
+ // list it, and covers no row now.
94
96
  export const TurnBriefingNoteIdSchema = z.enum(["map", "context", "skills", "search", "delegation", "checks", "dependencies", "repoSync", "handoff"]);
95
97
  export type TurnBriefingNoteId = z.infer<typeof TurnBriefingNoteIdSchema>;
96
98
 
@@ -128,12 +130,6 @@ export const TURN_BRIEFING_NOTES: readonly TurnBriefingNote[] = [
128
130
  when: "First message, on a runtime that cannot read the skills folder for itself.",
129
131
  cost: "On those runtimes the agent never learns its skills exist, so it will not load one.",
130
132
  },
131
- {
132
- id: "search",
133
- label: "Using iq for workspace search",
134
- when: "First message, when the workspace search setting is on and the runtime has no plugin seam.",
135
- cost: "The agent falls back to grep-style searching, which it can already do.",
136
- },
137
133
  {
138
134
  id: "delegation",
139
135
  label: "Spawning subagents",
@@ -69,14 +69,10 @@ export const UsageTurnSchema = z.object({
69
69
  // with `costUsd: 0, costKnown: false` rather than silently claiming they were free.
70
70
  costKnown: z.boolean().optional().describe("False when the vendor did not report a cost and the recorded zero is a placeholder, not a price. Absent or true means the cost is real."),
71
71
  durationMs: z.number().describe("How long it took, in milliseconds."),
72
- // Arm of the search-teaching experiment; stable per conversation. Absent means unmeasured.
73
- iqSearchArm: z.boolean().optional(),
74
- // Hash of the plugin nudge and skill body for this arm; recorded on control turns too, for report pairing.
75
- iqSearchCohort: z.string().optional(),
76
- // Every tool call that searched, including CLI searches like `iq q`; absent means unmeasured, not zero.
72
+ // Every tool call that searched, including CLI searches like `rg`; absent means unmeasured, not zero. Rows written
73
+ // before 2026-11-18 can also carry the iq teaching's arm, cohort and uptake (iqSearchArm, iqSearchCohort,
74
+ // iqSearches) and its pre-turn retrieval (turnContext, turnContextMs), which nothing reads now that iq is gone.
77
75
  searchCalls: z.number().optional(),
78
- // Of searchCalls, the ones that ran iq: the search teaching's uptake. Absent on rows written before 2026-10-19.
79
- iqSearches: z.number().optional(),
80
76
  // Search calls before the first file touch; absent as searchCalls; a turn touching nothing counts them all.
81
77
  openingSearches: z.number().optional(),
82
78
  // Directory listings (ls, tree, LS tool) before the turn's first file touch, same window as openingSearches.
@@ -91,7 +87,8 @@ export const UsageTurnSchema = z.object({
91
87
  mapChars: z.number().optional(),
92
88
  // Which comparison `mapArm` belongs to: absent on the first map-or-none rows; "compact-vs-full" from 2026-10-06 to
93
89
  // 10-12, when the arm was the compact map and the holdout the full one; "map-vs-none" for 2026-10-12 to 10-13, the map
94
- // against none; "map-vs-none-2" since, the same with readings off the main agent's calls and spawned children out.
90
+ // against none; "map-vs-none-2" for 2026-10-13 to 11-18, the same with readings off the main agent's calls and spawned
91
+ // children out; "map-vs-none-3" since, the map pointing at `rg --files` once iq was gone.
95
92
  mapCohort: z.string().optional(),
96
93
  // Arm of the tool-search experiment, stable per conversation: true loads connected tools' schemas on demand, false
97
94
  // sends them all with every request. Absent where the turn was not a native Claude one on the Claude Code loop.
@@ -105,12 +102,6 @@ export const UsageTurnSchema = z.object({
105
102
  // A home conversation's turn that opened a fresh session rather than resuming its old one, and why (handoff.ts
106
103
  // FreshStartSchema). Absent on every other turn, a home's included. What `bench:home` reads the rollover's cost off.
107
104
  homeFresh: FreshStartWhySchema.optional(),
108
- // What became of pre-turn retrieval on this turn, and how long it took. Assignment and DELIVERY are different
109
- // facts: the first version of this mechanism was assigned to every eligible turn and reached four in five of them,
110
- // which is the difference between a null result and a mechanism that never ran. Absent means the flag was off, so
111
- // nothing was attempted; `ineligible` means the message carried nothing to look up.
112
- turnContext: z.enum(["delivered", "ineligible", "deadline", "indexing", "no-hits", "failed"]).optional(),
113
- turnContextMs: z.number().optional(),
114
105
  // Zero-based turn count in its conversation; 0 marks the opening turn. Absent means unmeasured.
115
106
  turnIndex: z.number().optional(),
116
107
  // outcome alone can't tell a turn that finished from one that stopped talking; these fields carry the difference
@@ -1,9 +1,9 @@
1
- // secrets: user-supplied env-var secrets the daemon writes to desired-state/.env
1
+ // secrets: user-supplied env-var secrets the daemon keeps in the sandbox's own secret store
2
2
  import { BrokerRuleSchema } from "@intentic/extension-manifest";
3
3
  import { z } from "zod";
4
4
  import { KEYRING_PROGRAMS_MAX, KeyringPackageSchema, KeyringProgramSchema, KeyringShareModeSchema, KeyringSourceSchema } from "./keyring.js";
5
5
  import { SECRET_HOST_MAX, SECRET_HOST_PATTERN_RE, SECRET_HOSTS_MAX } from "../policy/secret-hosts.js";
6
- // Straight to the sandbox daemon, never through the platform; `apply` reloads .env with no restart. `list` returns keys
6
+ // Straight to the sandbox daemon, never through the platform; a set value resolves with no restart. `list` returns keys
7
7
  // only; `reveal` is the one owner-only exception that returns a value.
8
8
  // An env var name, as a shell exports it. Exported so the browser validates against this rather than restating it:
9
9
  // stated twice, the two drifted, and a box with no limit fed a rejection the user could not have predicted.
@@ -52,7 +52,7 @@ export const SecretRegenerateSchema = SecretGenerateSchema.extend({
52
52
  export const SecretGeneratedSchema = z.object({
53
53
  key: z.string().describe("The name it is stored under."),
54
54
  length: z.number().int().describe("How many characters it is, which a reader's validation may care about."),
55
- stored: z.enum(["env", "sandbox"]).describe("Where it was kept: desired-state/.env once DevOps is active, the sandbox's own store before that."),
55
+ stored: z.literal("sandbox").describe("Where it was kept: the sandbox's own secret store."),
56
56
  });
57
57
 
58
58
  // A wall against the agent's own judgment, not a compromised container: a shell here can read the policy same as the
@@ -294,21 +294,17 @@ export const SandboxKeyringPairResultSchema = z.object({
294
294
  });
295
295
 
296
296
  export const SecretInventoryEntrySchema = z.object({
297
- // Env-var key for env|generated; `<provider>:<accountId>` for provider; capability instance id otherwise.
297
+ // Env-var key for env; `<provider>:<accountId>` for provider; capability instance id otherwise.
298
298
  key: z.string().describe("What identifies it. Unique across the whole inventory, so several accounts of one provider each get their own entry."),
299
299
  kind: z
300
- .enum(["env", "generated", "capability", "provider", "device"])
300
+ .enum(["env", "capability", "provider", "device"])
301
301
  .describe(
302
- "Where it came from: you set it, the sandbox generated it, a connection needs it, it is a model account's credential, or it lives in the keyring on one of your computers and this sandbox holds only a pointer to it.",
302
+ "Where it came from: you set it (or had the sandbox generate it), a connection needs it, it is a model account's credential, or it lives in the keyring on one of your computers and this sandbox holds only a pointer to it.",
303
303
  ),
304
- // e.g. "<ProviderName> · <accountLabel>" for provider entries; absent on env/generated.
304
+ // e.g. "<ProviderName> · <accountLabel>" for provider entries; absent on env.
305
305
  label: z.string().optional().describe("A friendlier name, for entries that have one."),
306
306
  status: z.enum(["missing", "set", "connected"]).describe("Whether it exists and, for a connection, whether it is working."),
307
- // Resources referencing it via `{$secret}` refs.
308
- requiredBy: z
309
- .array(z.object({ resourceId: z.string().describe("Which resource."), type: z.string().describe("What kind of resource it is.") }))
310
- .describe("What is waiting on it. Empty for a connection's or an account's own credential."),
311
- // e.g. "desired-state/.env".
307
+ // e.g. ".intentic/secrets/auth/sandbox-secrets.json".
312
308
  storedAt: z.string().describe("Where it actually lives, in words."),
313
309
  revealable: z.boolean().describe("Whether its value can be shown at all. Everything except a model account's credential can be."),
314
310
  // From the masking floor (agent-redaction.ts): names only, never values or lengths.
@@ -318,14 +314,6 @@ export const SecretInventoryEntrySchema = z.object({
318
314
  .describe(
319
315
  "Which of its values are too short for the sandbox to hide from the model everywhere, by the name the agent sees each under. They are hidden only right after a word, flag or address that names a secret, and read in full anywhere else. Absent when none are.",
320
316
  ),
321
- // Forgejo Actions only, and only after adopt, on env|generated entries.
322
- ci: z
323
- .object({
324
- synced: z.boolean().describe("Whether the pipeline has it."),
325
- pushedAt: z.string().optional().describe("When it was last sent there."),
326
- })
327
- .optional()
328
- .describe("Whether a copy has been given to the build pipeline."),
329
317
  // Records only the lane and a destination (command/script head, or page host) — never values.
330
318
  lastUse: z
331
319
  .object({
@@ -67,20 +67,3 @@ export const claudeExperimentSettings = {
67
67
  "How many measured context tokens a Claude Code session must exceed before a cold follow-up can clear older tool output. Smaller sessions save little from trimming.",
68
68
  ),
69
69
  };
70
-
71
- // On for new sandboxes from 2026-11-04; one from before keeps it off unless its owner switched it on (the daemon's
72
- // settings-store.ts pins the old default, settings/earlier-defaults-step.ts writes it down where never saved).
73
- export const iqSearchSettings = {
74
- iqSearch: z
75
- .boolean()
76
- .default(true)
77
- .describe("Teach the agent how to use this workspace's own search tool, rather than leaving it to grep around."),
78
- iqSearchHoldout: z
79
- .number()
80
- .min(0)
81
- .max(1)
82
- .default(0)
83
- .describe(
84
- "What share of conversations to run without that teaching, so the two can be compared. Whole conversations rather than individual turns, because once the teaching is in a session, withholding it from the next request does not make the model forget it.",
85
- ),
86
- };
@@ -177,4 +177,7 @@ export const SETTINGS_HISTORY = [
177
177
  // The field notes (2026-11-06): a ranked brief on this place's traps sent with every turn moved neither failed calls
178
178
  // nor calls before the edited file against a held-out half, across two revisions of it, while every call carried it.
179
179
  ...dropAll(["fieldNotes", "fieldNotesBudget", "fieldNotesHoldout"]),
180
+ // iq (2026-11-18): teaching agents the workspace search tool moved neither cost, calls nor searches against a held-out
181
+ // half over 1,480 conversations, and the tool itself was removed.
182
+ ...dropAll(["iqSearch", "iqSearchHoldout"]),
180
183
  ] as const;
@@ -31,8 +31,6 @@ export type InputSavings = z.infer<typeof InputSavingsSchema>;
31
31
  export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() });
32
32
  // One metric's reading of a turn-level experiment (the two arms, plus the arithmetic over them). `metric` says what
33
33
  // `mean`/`deltaPct` count:
34
- // searchCalls: searches a turn ran (the search teaching).
35
- // openingSearches: same, narrowed to before the turn first touched a file.
36
34
  // openedWithListing: whether a turn listed directories to orient itself, as a share of turns (the project map).
37
35
  // callsBeforeTarget: how far a turn walked before touching a file it went on to edit.
38
36
  // failedCalls: tool calls that ended in error (the price tool search, the stable prompt and cold trim could charge).
@@ -43,7 +41,7 @@ export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() }
43
41
  // Never cost: each mechanism moves one small part of a turn's work, inside the noise of the rest. The prompt's size is
44
42
  // the exception that proves it: it is the part every call pays again, so it is read directly rather than through cost.
45
43
  export const TurnMetricReadingSchema = z.object({
46
- metric: z.enum(["searchCalls", "openingSearches", "openedWithListing", "callsBeforeTarget", "failedCalls", "openingPrompt", "openingWrite"]),
44
+ metric: z.enum(["openedWithListing", "callsBeforeTarget", "failedCalls", "openingPrompt", "openingWrite"]),
47
45
  on: SavingsArmSchema,
48
46
  off: SavingsArmSchema,
49
47
  // Additional control turns to reach a fixed target resolution, not today's delta (which inherits noise and always
@@ -82,16 +80,11 @@ export const TurnExperimentSchema = z.object({
82
80
  previous: z
83
81
  .object({ from: z.number(), to: z.number(), cohort: z.string().optional(), metrics: z.array(TurnMetricReadingSchema) })
84
82
  .optional(),
85
- // Whether the treatment was taken up at all, which no reading above can tell: the share, 0 to 1, of each group's
86
- // searches that ran iq, pooled over the turns of this cohort that recorded it. `turns` is the treated group's count;
87
- // absent until it reaches `minTurns`. The search teaching only.
88
- uptake: z.object({ on: z.number(), off: z.number(), turns: z.number() }).optional(),
89
83
  });
90
84
  export type TurnExperiment = z.infer<typeof TurnExperimentSchema>;
91
85
  export const SavingsReportSchema = z.object({
92
86
  input: InputSavingsSchema,
93
- search: TurnExperimentSchema.optional(),
94
- // Same absence rule as `search`: not measured, never zero.
87
+ // Each absent when not measured, never zero. `search`, the iq teaching's reading, went with iq (2026-11-18).
95
88
  map: TurnExperimentSchema.optional(),
96
89
  toolSearch: TurnExperimentSchema.optional(),
97
90
  stablePrompt: TurnExperimentSchema.optional(),
@@ -100,11 +100,11 @@ describe(`an owner's rule at the turn.ending moment`, () => {
100
100
  // keep-warm's four top-level settings became one object on 2026-09-26; a stored file keeps what its owner picked.
101
101
  describe(`the folded keep-warm settings`, () => {
102
102
  test(`fold into one object, keeping each value and the key's place`, () => {
103
- const stored = { timezone: `Europe/Warsaw`, keepWarm: true, keepWarmHours: 6, keepWarmMinTokens: 50_000, keepWarmReserve: 20, iqSearch: true };
103
+ const stored = { timezone: `Europe/Warsaw`, keepWarm: true, keepWarmHours: 6, keepWarmMinTokens: 50_000, keepWarmReserve: 20, workspaceMap: true };
104
104
  const converted = convertDocument(SETTINGS_HISTORY, `object`, stored, true);
105
- expect(converted.value).toEqual({ timezone: `Europe/Warsaw`, keepWarm: { auto: true, hours: 6, minTokens: 50_000, reserve: 20 }, iqSearch: true });
105
+ expect(converted.value).toEqual({ timezone: `Europe/Warsaw`, keepWarm: { auto: true, hours: 6, minTokens: 50_000, reserve: 20 }, workspaceMap: true });
106
106
  expect(JSON.stringify(converted.value)).toBe(
107
- `{"timezone":"Europe/Warsaw","keepWarm":{"auto":true,"hours":6,"minTokens":50000,"reserve":20},"iqSearch":true}`,
107
+ `{"timezone":"Europe/Warsaw","keepWarm":{"auto":true,"hours":6,"minTokens":50000,"reserve":20},"workspaceMap":true}`,
108
108
  );
109
109
  expect(SandboxSettingsSchema.parse(converted.value).keepWarm).toEqual({ auto: true, subagents: true, hours: 6, minTokens: 50_000, reserve: 20 });
110
110
  });
@@ -123,16 +123,23 @@ describe(`the folded keep-warm settings`, () => {
123
123
 
124
124
  // Tool-result clearing lost its A/B and was removed (2026-10-12); a file that still switches it on reads, without it.
125
125
  test(`a stored tool-result clearing switch is dropped, and the rest of the file kept`, () => {
126
- const converted = convertDocument(SETTINGS_HISTORY, `object`, { iqSearch: true, toolResultClearing: true, toolResultClearingHoldout: 0.5 }, true);
127
- expect(converted.value).toEqual({ iqSearch: true });
128
- expect(SandboxSettingsSchema.parse(converted.value).iqSearch).toBe(true);
126
+ const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: true, toolResultClearing: true, toolResultClearingHoldout: 0.5 }, true);
127
+ expect(converted.value).toEqual({ workspaceMap: true });
128
+ expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(true);
129
129
  });
130
130
 
131
131
  // The field notes were removed (2026-11-06); a file that still switches them on reads, without them.
132
132
  test(`stored field-notes settings are dropped, and the rest of the file kept`, () => {
133
- const converted = convertDocument(SETTINGS_HISTORY, `object`, { iqSearch: true, fieldNotes: true, fieldNotesBudget: 4000, fieldNotesHoldout: 0.5 }, true);
134
- expect(converted.value).toEqual({ iqSearch: true });
135
- expect(SandboxSettingsSchema.parse(converted.value).iqSearch).toBe(true);
133
+ const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: true, fieldNotes: true, fieldNotesBudget: 4000, fieldNotesHoldout: 0.5 }, true);
134
+ expect(converted.value).toEqual({ workspaceMap: true });
135
+ expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(true);
136
+ });
137
+
138
+ // iq was removed (2026-11-18); a file that still switches its teaching on reads, without it.
139
+ test(`stored iq teaching settings are dropped, and the rest of the file kept`, () => {
140
+ const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: false, iqSearch: true, iqSearchHoldout: 0.5 }, true);
141
+ expect(converted.value).toEqual({ workspaceMap: false });
142
+ expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(false);
136
143
  });
137
144
 
138
145
  // What a job runs on, read the way every reader reads it, over a sandbox with nothing connected: the setups a stored
@@ -1,6 +1,6 @@
1
1
  // Per-sandbox agent settings (.intentic/config/settings.json) and the repository checks they adopt.
2
2
  import { z } from "zod";
3
- import { claudeExperimentSettings, iqSearchSettings } from "./settings-experiments.js";
3
+ import { claudeExperimentSettings } from "./settings-experiments.js";
4
4
  import { CommandJudgeModeSchema, ProjectInstallModeSchema } from "../policy/safety-policy.js";
5
5
  import { MODEL_ROLES, ModelRoleSchema } from "../models/model-roles.js";
6
6
  import { MODEL_SETUP_ID, ModelSetupSchema } from "../models/model-setups.js";
@@ -309,7 +309,7 @@ export const SandboxSettingsSchema = z.object({
309
309
  .boolean()
310
310
  .default(true)
311
311
  .describe(
312
- "Keep the text of every document in the workspace (pdf, Word, OpenDocument, spreadsheets, presentations, epub, and scans where OCR is installed) ready to search. In the background, one low-priority process at a time, each document is rendered to text when it appears or changes, so `rg` and iq find what documents say under their own paths, cited by page. Off, nothing renders until someone opens a document, and searches skip them.",
312
+ "Keep the text of every document in the workspace (pdf, Word, OpenDocument, spreadsheets, presentations, epub, and scans where OCR is installed) ready to search. In the background, one low-priority process at a time, each document is rendered to text when it appears or changes, so `rg` finds what documents say under their own paths, cited by page. Off, nothing renders until someone opens a document, and searches skip them.",
313
313
  ),
314
314
  // Whether the daemon tells its host it is unneeded (system/quiet-watch.ts): off, the work signal carries no
315
315
  // `quietSince` and says `keepAwake`, so the machine's keeper never puts it to sleep (ic's `sandbox sleep`). Only a
@@ -343,11 +343,11 @@ export const SandboxSettingsSchema = z.object({
343
343
  .describe(
344
344
  "Your own instructions, used only when the mode above says custom. Then it is the whole of them: both built-in bases go, and so does everything this product would otherwise add, including the guidance the chat's own cards are driven by. That is the price of total control.",
345
345
  ),
346
- ...iqSearchSettings,
347
346
  ...claudeExperimentSettings,
348
347
  // Rooted at the run's own starting folder (a persona's, an isolated conversation's worktree), not the workspace
349
348
  // root — it maps the project containing that folder. On for new sandboxes from 2026-11-04, kept off for older ones
350
- // as iqSearch is (settings-experiments.ts).
349
+ // (the daemon's settings-store.ts pins the old default, settings/earlier-defaults-step.ts writes it down where never
350
+ // saved).
351
351
  workspaceMap: z
352
352
  .boolean()
353
353
  .default(true)
@@ -1,8 +1,7 @@
1
1
  // short codes: the single-use 8-character code a copy-paste command carries instead of a token. The sandbox mints one
2
- // beside each device, sync or server-connect token it hands out; the install script redeems it at the sandbox's public
2
+ // beside each device or sync token it hands out; the install script redeems it at the sandbox's public
3
3
  // POST /system/redeem/<code>, which answers `KEY=value` lines (KIND, SANDBOX_URL, then the kind's own values).
4
4
  import { z } from "zod";
5
- import { INVENTORY_NAME_MAX, INVENTORY_NAME_RE } from "./inventory.js";
6
5
 
7
6
  // Crockford base32 (no I, L, O, U), 8 characters: 40 bits. Redemption accepts any case and one hyphen in the middle.
8
7
  export const SHORT_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
@@ -10,7 +9,7 @@ export const SHORT_CODE_LENGTH = 8;
10
9
  export const ShortCodeSchema = z.string().regex(/^[0-9A-HJKMNP-TV-Z]{8}$/);
11
10
 
12
11
  // What each kind of code redeems to, in its answer's KIND line.
13
- export const ShortCodeKindSchema = z.enum(["device", "sync", "server"]);
12
+ export const ShortCodeKindSchema = z.enum(["device", "sync"]);
14
13
  export type ShortCodeKind = z.infer<typeof ShortCodeKindSchema>;
15
14
 
16
15
  // A value that rides one `KEY=value` line: no line breaks or other control characters.
@@ -46,14 +45,3 @@ export const SyncPairRequestSchema = z.object({
46
45
  takeover: z.boolean().optional().describe("Take sync over from another machine already enrolled."),
47
46
  });
48
47
  export type SyncPairRequest = z.infer<typeof SyncPairRequestSchema>;
49
-
50
- // POST /system/enroll/code: mints a server-connect code backed by a single-use enroll token.
51
- export const EnrollCodeRequestSchema = z.object({
52
- hostName: z.string().min(1).max(INVENTORY_NAME_MAX).regex(INVENTORY_NAME_RE).optional().describe("What the server will be called."),
53
- });
54
- export type EnrollCodeRequest = z.infer<typeof EnrollCodeRequestSchema>;
55
- export const EnrollCodeAnswerSchema = z.object({
56
- code: ShortCodeSchema,
57
- expiresIn: z.number().describe("Seconds until the code and its enroll token expire."),
58
- });
59
- export type EnrollCodeAnswer = z.infer<typeof EnrollCodeAnswerSchema>;
@@ -12,7 +12,7 @@ test("a payload from a build that predates a toggle parses, with the new toggle
12
12
  stableSystemPrompt: false,
13
13
  skills: [],
14
14
  hashlineEdits: false,
15
- iqSearch: true,
15
+ workspaceMap: true,
16
16
  outputCleaners: "-cap",
17
17
  outputHoldout: 0.1,
18
18
  };
@@ -26,7 +26,7 @@ test("no field is required: a workspace that has never written settings parses",
26
26
  });
27
27
 
28
28
  test("a key of the wrong type is still a parse failure: tolerance is for absence, not for garbage", () => {
29
- expect(SandboxSettingsSchema.safeParse({ iqSearch: "yes" }).success).toBe(false);
29
+ expect(SandboxSettingsSchema.safeParse({ workspaceMap: "yes" }).success).toBe(false);
30
30
  expect(SandboxSettingsSchema.safeParse({ outputHoldout: 4 }).success).toBe(false);
31
31
  expect(SandboxSettingsSchema.safeParse({ systemPrompt: "x".repeat(20001) }).success).toBe(false);
32
32
  });
@@ -2,14 +2,13 @@ import { z } from "zod";
2
2
  // Shared by /workspace/search and the web client. Groups rank by relevance, best first; each hit carries match tags and
3
3
  // the char spans in `text`, for highlighting without a re-find.
4
4
  export const WorkspaceSearchQuerySchema = z.object({
5
- query: z.string().min(2).max(512).describe("What to look for. Plain words, a pattern, a symbol name, or a question."),
6
- // Search verbs only; anchor/git verbs are CLI-only. Natural language needs none, `q` classifies it.
5
+ query: z.string().min(2).max(512).describe("What to look for: plain words or a pattern, or for file names letters of the name or a glob."),
6
+ // `q` was the iq engine's blended search, removed with iq (2026-11-18). An editor from before then still sends it, so
7
+ // it is accepted and answered as the text search it now is.
7
8
  mode: z
8
- .enum(["q", "find", "files", "def", "refs", "sym", "ast"])
9
+ .enum(["find", "files", "q"])
9
10
  .optional()
10
- .describe(
11
- "Narrow the search to one kind: plain text, filenames, definitions, references, symbols, or code structure. Leave it out to blend them, which also answers a question asked in words.",
12
- ),
11
+ .describe("What to search: the text in files (find, the default) or file names (files). q is an older name for find."),
13
12
  includeIgnored: z.stringbool().optional().describe("Search inside installed packages and other ignored folders too."),
14
13
  // One subtree, root-relative, no trailing slash: the caller's own scope (a UI narrowed to one project) rather than a
15
14
  // pattern. Unlike `include` it is a prefix, so it composes with whatever globs the user typed.
@@ -38,6 +37,8 @@ export type WorkspaceSearchQuery = z.infer<typeof WorkspaceSearchQuerySchema>;
38
37
  // The query's verb enum.
39
38
  export type WorkspaceSearchMode = NonNullable<z.infer<typeof WorkspaceSearchQuerySchema>["mode"]>;
40
39
  export const WorkspaceSearchTagSchema = z.object({
40
+ // Only text and path are written now; the rest came from the iq engine, removed 2026-11-18, and stay so an editor can
41
+ // still read an answer from a daemon older than that.
41
42
  kind: z
42
43
  .enum(["def", "text", "sem", "bm25", "rerank", "path", "import", "call", "type", "write", "fuzzy", "heuristic"])
43
44
  .describe(
@@ -79,8 +80,8 @@ export const WorkspaceSearchGroupSchema = z.object({
79
80
  .describe("This file had more matches than are kept per file, so the count is a floor. Say fifty-plus rather than fifty."),
80
81
  });
81
82
  export type WorkspaceSearchGroup = z.infer<typeof WorkspaceSearchGroupSchema>;
82
- // building means the index is still filling (progress 0..1); stale means revalidation was skipped. ageMs is time since
83
- // the index last matched disk.
83
+ // Always fresh now that every search reads the disk as it is; building (progress 0..1) and stale came from the iq engine's
84
+ // index, removed 2026-11-18, and are read from daemons older than that.
84
85
  export const WorkspaceSearchFreshnessSchema = z.object({
85
86
  state: z.enum(["fresh", "building", "stale"]).describe("Whether the index matches what is on disk, is still filling, or has fallen behind."),
86
87
  ageMs: z.number().optional().describe("How long since it last matched the disk, in milliseconds."),
@@ -101,7 +102,7 @@ export const WorkspaceSearchResultSchema = z.object({
101
102
  files: z.number().describe("Files the query matched in total."),
102
103
  shown: z.number().describe("How many of those lines are on this page."),
103
104
  groups: z.array(WorkspaceSearchGroupSchema).describe("The results, grouped by file, best first."),
104
- freshness: WorkspaceSearchFreshnessSchema.describe("Whether the index behind the answer is up to date."),
105
+ freshness: WorkspaceSearchFreshnessSchema.describe("Whether the answer is up to date with the disk. Every search now reads the disk itself, so it is."),
105
106
  truncated: z.boolean().describe("This page is not all of it. Use the cursor."),
106
107
  // A floor: some file had more matches than kept per file. Distinct from truncated, which is about the page.
107
108
  partial: z
@@ -111,25 +112,11 @@ export const WorkspaceSearchResultSchema = z.object({
111
112
  "At least one file had more matches than are kept per file, so the total is a floor. Different from the page being truncated: a complete page can still count partially.",
112
113
  ),
113
114
  cursor: z.string().optional().describe("Pass this back as `after` to get the next page."),
114
- hint: z.string().optional().describe("A suggestion for getting a better answer out of this query."),
115
- // What the engine did unasked: a pattern rerun as literal, escapes rewritten, or a filter matching nothing.
115
+ // What the search did unasked: a pattern rerun as literal, or escapes rewritten.
116
116
  note: z
117
117
  .string()
118
118
  .optional()
119
- .describe(
120
- "What the engine did that you did not ask for: a pattern rerun as plain text because it was not valid, escapes rewritten, a language filter that matched nothing.",
121
- ),
122
- // Code-graph neighbors of the top hits: definition anchors and each one's strongest caller.
123
- related: z.array(z.string()).optional().describe("Places next door to the best results: where each is defined, and whatever calls it most."),
124
- // Ranked path:line anchors that placed but weren't shown, best first; the answer often sits at rank 5-13.
125
- candidates: z
126
- .array(z.string())
127
- .optional()
128
- .describe(
129
- "Ranked places that scored but did not make the page, best first. The answer often sits at rank five to thirteen, so this saves paging through to find out.",
130
- ),
131
- // Retrieval stages disabled for this run, for benchmarking; absent means the full pipeline ran.
132
- features: z.array(z.string()).optional().describe("Which stages of the search were switched off for this run. Absent means all of them ran."),
119
+ .describe("What the search did that you did not ask for: a pattern rerun as plain text because it was not valid, or escapes rewritten."),
133
120
  });
134
121
  export type WorkspaceSearchResult = z.infer<typeof WorkspaceSearchResultSchema>;
135
122
  // What /workspace/search/stream sends: the files a text search has found so far, as it finds them, then its answer.
@@ -27,9 +27,10 @@ export const UPDATE_PROBATION = {
27
27
  journalMs: 15 * 60_000,
28
28
  // Consecutive failed looks that end a probation in a rollback: never one bad answer.
29
29
  strikes: 3,
30
- // Rollback targets kept BEYOND `previous`, newest first: older builds `ic sandbox rollback --to` reaches without a
31
- // download (record.rs MAX_KEPT). The hosted row keeps only `previous`; see the platform's gate-row.ts.
32
- keptBuilds: 2,
30
+ // Rollback targets kept BEYOND `previous`: older builds `ic sandbox rollback --to` would reach without a download
31
+ // (record.rs MAX_KEPT). None since 2026-11-18, as each is a whole image pair; `previous` alone is kept, as on the
32
+ // hosted row (the platform's gate-row.ts).
33
+ keptBuilds: 0,
33
34
  // Restarts that are a crash loop on their own, of the container and of the daemon inside it.
34
35
  crashLoopRestarts: CRASH_LOOP_RESTARTS,
35
36
  } as const;
@@ -62,8 +62,8 @@ describe(`staleQueryKeys`, () => {
62
62
  });
63
63
 
64
64
  it(`ignores unrelated churn under .intentic/`, () => {
65
- // iq's index and a session transcript: frequent enough writes to storm every query under a prefix-only match.
66
- expect(staleQueryKeys([`.intentic/local/cache/iq/index.db`, `.intentic/records/sessions/claude/projects/p/session.jsonl`], [])).toEqual([]);
65
+ // A cache database and a session transcript: frequent enough writes to storm every query under a prefix-only match.
66
+ expect(staleQueryKeys([`.intentic/local/cache/code-counts.db`, `.intentic/records/sessions/claude/projects/p/session.jsonl`], [])).toEqual([]);
67
67
  });
68
68
 
69
69
  it(`ignores a store's own temp file while it is mid-swap`, () => {
@@ -220,6 +220,15 @@ const STATE_FILES = [
220
220
  why: "Declared by the intentic.issues extension's contributes.files, `issues` is its query key, not core's.",
221
221
  portability: "carry",
222
222
  },
223
+ // Reports this sandbox could not yet deliver to the sandbox on its account that claims their project (daemon's
224
+ // issues/account-outbox.ts), one file per problem, retried until they land or a week passes. `carry`: undelivered
225
+ // reports are the workspace's, and a moved sandbox should still send them.
226
+ {
227
+ path: ".intentic/records/outbox/",
228
+ invalidates: [],
229
+ why: "No view shows it yet; the `projects outbox` command reads it through the daemon.",
230
+ portability: "carry",
231
+ },
223
232
  // Maintenance ledger and probe evidence (daemon's chores-store), rendered by intentic.maintenance. `carry`:
224
233
  // point-in-time evidence about this workspace.
225
234
  {
@@ -389,7 +398,7 @@ const STATE_FILES = [
389
398
  {
390
399
  path: ".intentic/local/cache/",
391
400
  invalidates: [],
392
- why: "Rebuildable indexes and caches, the iq index and its vector sidecar, the speech models an image does not bake, fileq's derived/ markdown shadows of binary files; ignored by the watcher and recreated from carried workspace content.",
401
+ why: "Rebuildable indexes and caches, the speech models an image does not bake, fileq's derived/ markdown shadows of binary files; ignored by the watcher and recreated from carried workspace content.",
393
402
  portability: "derived",
394
403
  },
395
404
  // Extension runtime scratch, one directory per extension via `extensionStateDir` below (the only way an extension
@@ -47,7 +47,7 @@ test("isTestPath: test files, fixture dirs and runner configs: never product cod
47
47
  `_deploy/cli/src/cli.e2e.test.ts`,
48
48
  `src/e2e-harness.ts`,
49
49
  `pkg/__tests__/helper.ts`,
50
- `_search/iq-recall/src/__fixtures__/transcripts/a.jsonl`,
50
+ `_sandbox/agent-context/src/__fixtures__/transcripts/a.jsonl`,
51
51
  `vitest.config.ts`,
52
52
  `_editor/web/vitest.workspace.config.mts`,
53
53
  `playwright.config.ts`,
@@ -1,30 +0,0 @@
1
- export declare const intenticContract: {
2
- run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
3
- args: import("zod").ZodArray<import("zod").ZodString>;
4
- }, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
5
- [x: string]: unknown;
6
- kind: string;
7
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
8
- [x: string]: unknown;
9
- kind: string;
10
- }, unknown, void>> & {
11
- [x: symbol]: import("zod").ZodObject<{
12
- kind: import("zod").ZodString;
13
- }, import("zod/v4/core").$loose>;
14
- }, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
15
- apply: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
16
- ok: import("zod").ZodLiteral<true>;
17
- }, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
18
- applyEvents: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<AsyncIteratorObject<{
19
- [x: string]: unknown;
20
- kind: string;
21
- }, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
22
- [x: string]: unknown;
23
- kind: string;
24
- }, unknown, void>> & {
25
- [x: symbol]: import("zod").ZodObject<{
26
- kind: import("zod").ZodString;
27
- }, import("zod/v4/core").$loose>;
28
- }, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
29
- };
30
- //# sourceMappingURL=intentic.contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;IAYH,KAAK;;;IAaL,WAAW;;;;;;;;;;;CAUd,CAAC"}