@telora/daemon 0.21.12 → 0.21.26

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 (143) hide show
  1. package/build-info.json +9 -3
  2. package/dist/audit-hooks.d.ts +62 -3
  3. package/dist/audit-hooks.d.ts.map +1 -1
  4. package/dist/audit-hooks.js +123 -3
  5. package/dist/audit-hooks.js.map +1 -1
  6. package/dist/completion/event.d.ts +1 -0
  7. package/dist/completion/event.d.ts.map +1 -1
  8. package/dist/completion/event.js.map +1 -1
  9. package/dist/completion/review-exit-phase.d.ts +12 -0
  10. package/dist/completion/review-exit-phase.d.ts.map +1 -1
  11. package/dist/completion/review-exit-phase.js +45 -10
  12. package/dist/completion/review-exit-phase.js.map +1 -1
  13. package/dist/completion/team-completion.d.ts.map +1 -1
  14. package/dist/completion/team-completion.js +6 -0
  15. package/dist/completion/team-completion.js.map +1 -1
  16. package/dist/delivery-advance-block.d.ts +9 -1
  17. package/dist/delivery-advance-block.d.ts.map +1 -1
  18. package/dist/delivery-advance-block.js +37 -1
  19. package/dist/delivery-advance-block.js.map +1 -1
  20. package/dist/delivery-lifecycle.d.ts.map +1 -1
  21. package/dist/delivery-lifecycle.js +9 -0
  22. package/dist/delivery-lifecycle.js.map +1 -1
  23. package/dist/delivery-reconciler.d.ts +16 -0
  24. package/dist/delivery-reconciler.d.ts.map +1 -1
  25. package/dist/delivery-reconciler.js +12 -0
  26. package/dist/delivery-reconciler.js.map +1 -1
  27. package/dist/external-hold.d.ts +42 -0
  28. package/dist/external-hold.d.ts.map +1 -1
  29. package/dist/external-hold.js +85 -11
  30. package/dist/external-hold.js.map +1 -1
  31. package/dist/focus-executor.d.ts.map +1 -1
  32. package/dist/focus-executor.js +5 -0
  33. package/dist/focus-executor.js.map +1 -1
  34. package/dist/focus-lifecycle.d.ts.map +1 -1
  35. package/dist/focus-lifecycle.js +9 -11
  36. package/dist/focus-lifecycle.js.map +1 -1
  37. package/dist/focus-provisioning.d.ts.map +1 -1
  38. package/dist/focus-provisioning.js +9 -11
  39. package/dist/focus-provisioning.js.map +1 -1
  40. package/dist/git/merge.d.ts +24 -0
  41. package/dist/git/merge.d.ts.map +1 -1
  42. package/dist/git/merge.js +45 -5
  43. package/dist/git/merge.js.map +1 -1
  44. package/dist/git/types.d.ts +9 -0
  45. package/dist/git/types.d.ts.map +1 -1
  46. package/dist/git/types.js.map +1 -1
  47. package/dist/heartbeat.d.ts +36 -0
  48. package/dist/heartbeat.d.ts.map +1 -1
  49. package/dist/heartbeat.js +55 -4
  50. package/dist/heartbeat.js.map +1 -1
  51. package/dist/listener-auto-advance.d.ts.map +1 -1
  52. package/dist/listener-auto-advance.js +12 -2
  53. package/dist/listener-auto-advance.js.map +1 -1
  54. package/dist/nexus/escalation-bridge.d.ts +8 -0
  55. package/dist/nexus/escalation-bridge.d.ts.map +1 -1
  56. package/dist/nexus/escalation-bridge.js +8 -0
  57. package/dist/nexus/escalation-bridge.js.map +1 -1
  58. package/dist/nexus/return.d.ts +28 -2
  59. package/dist/nexus/return.d.ts.map +1 -1
  60. package/dist/nexus/return.js +53 -2
  61. package/dist/nexus/return.js.map +1 -1
  62. package/dist/output-monitor.js +9 -0
  63. package/dist/output-monitor.js.map +1 -1
  64. package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
  65. package/dist/prompt-sections/execution-sections.js +7 -0
  66. package/dist/prompt-sections/execution-sections.js.map +1 -1
  67. package/dist/prompt-sections/persona-sections.d.ts +10 -0
  68. package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
  69. package/dist/prompt-sections/persona-sections.js +4 -2
  70. package/dist/prompt-sections/persona-sections.js.map +1 -1
  71. package/dist/prompt-sections/scoping-sections.d.ts.map +1 -1
  72. package/dist/prompt-sections/scoping-sections.js +8 -0
  73. package/dist/prompt-sections/scoping-sections.js.map +1 -1
  74. package/dist/queries/agent-resolvable-promotion.d.ts +17 -5
  75. package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
  76. package/dist/queries/agent-resolvable-promotion.js +24 -10
  77. package/dist/queries/agent-resolvable-promotion.js.map +1 -1
  78. package/dist/queries/daemon-connection.d.ts +21 -1
  79. package/dist/queries/daemon-connection.d.ts.map +1 -1
  80. package/dist/queries/daemon-connection.js +4 -1
  81. package/dist/queries/daemon-connection.js.map +1 -1
  82. package/dist/queries/deliveries.d.ts +44 -12
  83. package/dist/queries/deliveries.d.ts.map +1 -1
  84. package/dist/queries/deliveries.js +32 -15
  85. package/dist/queries/deliveries.js.map +1 -1
  86. package/dist/queries/delivery-gate-state.d.ts +23 -0
  87. package/dist/queries/delivery-gate-state.d.ts.map +1 -1
  88. package/dist/queries/issues.d.ts.map +1 -1
  89. package/dist/queries/issues.js +6 -0
  90. package/dist/queries/issues.js.map +1 -1
  91. package/dist/queries/requests.d.ts +30 -0
  92. package/dist/queries/requests.d.ts.map +1 -0
  93. package/dist/queries/requests.js +32 -0
  94. package/dist/queries/requests.js.map +1 -0
  95. package/dist/resolvers/shared/git-diff.d.ts +32 -3
  96. package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
  97. package/dist/resolvers/shared/git-diff.js +120 -16
  98. package/dist/resolvers/shared/git-diff.js.map +1 -1
  99. package/dist/retention-observation.d.ts +126 -0
  100. package/dist/retention-observation.d.ts.map +1 -0
  101. package/dist/retention-observation.js +143 -0
  102. package/dist/retention-observation.js.map +1 -0
  103. package/dist/spawn/prompt-assembly.d.ts +9 -0
  104. package/dist/spawn/prompt-assembly.d.ts.map +1 -1
  105. package/dist/spawn/prompt-assembly.js +2 -1
  106. package/dist/spawn/prompt-assembly.js.map +1 -1
  107. package/dist/spawn/worktree-session.d.ts.map +1 -1
  108. package/dist/spawn/worktree-session.js +13 -14
  109. package/dist/spawn/worktree-session.js.map +1 -1
  110. package/dist/templates/claude-md.d.ts +1 -1
  111. package/dist/templates/claude-md.d.ts.map +1 -1
  112. package/dist/templates/claude-md.js +25 -0
  113. package/dist/templates/claude-md.js.map +1 -1
  114. package/dist/types/focus.d.ts +14 -0
  115. package/dist/types/focus.d.ts.map +1 -1
  116. package/dist/verification-deps.d.ts +14 -0
  117. package/dist/verification-deps.d.ts.map +1 -1
  118. package/dist/verification-deterministic.d.ts.map +1 -1
  119. package/dist/verification-deterministic.js +31 -4
  120. package/dist/verification-deterministic.js.map +1 -1
  121. package/dist/verification-engine.d.ts.map +1 -1
  122. package/dist/verification-engine.js +78 -21
  123. package/dist/verification-engine.js.map +1 -1
  124. package/dist/verification-evidence.d.ts.map +1 -1
  125. package/dist/verification-evidence.js +2 -2
  126. package/dist/verification-evidence.js.map +1 -1
  127. package/dist/worktree/index.d.ts +1 -0
  128. package/dist/worktree/index.d.ts.map +1 -1
  129. package/dist/worktree/index.js +1 -0
  130. package/dist/worktree/index.js.map +1 -1
  131. package/dist/worktree/safety.d.ts +14 -6
  132. package/dist/worktree/safety.d.ts.map +1 -1
  133. package/dist/worktree/safety.js +17 -13
  134. package/dist/worktree/safety.js.map +1 -1
  135. package/dist/worktree/scratch-guard.d.ts +57 -0
  136. package/dist/worktree/scratch-guard.d.ts.map +1 -1
  137. package/dist/worktree/scratch-guard.js +168 -21
  138. package/dist/worktree/scratch-guard.js.map +1 -1
  139. package/dist/worktree/verify-interlock.d.ts +52 -0
  140. package/dist/worktree/verify-interlock.d.ts.map +1 -0
  141. package/dist/worktree/verify-interlock.js +94 -0
  142. package/dist/worktree/verify-interlock.js.map +1 -0
  143. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"prompt-assembly.js","sourceRoot":"","sources":["../../src/spawn/prompt-assembly.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAYH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EACL,wBAAwB,EACxB,8BAA8B,EAC9B,iCAAiC,EACjC,6BAA6B,EAC7B,uBAAuB,GAExB,MAAM,wBAAwB,CAAC;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gFAAgF;IAChF,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,YAAY,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,cAAc,CAAC;CAC3B,GAAG;IACF,SAAS,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC;IACjD,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;IAClD,OAAO,EAAE,YAAY,CAAC;CACvB,CAqBA"}
@@ -12,7 +12,7 @@
12
12
  */
13
13
  import { createSession, } from '../supabase.js';
14
14
  import { createWorktree, runGitSync, repoHasCommits } from '../git.js';
15
- import { installReadOnlyAuditGuards } from '../audit-hooks.js';
15
+ import { installExecutionWorktreeGuards } from '../audit-hooks.js';
16
16
  import { getFocusWorktree, setFocusWorktree } from '../focus-worktree-state.js';
17
17
  import { reconcileAgentResolvableForFocus } from '../queries/agent-resolvable-promotion.js';
18
18
  import { resolveLineageSpec } from '../session-lineage.js';
@@ -87,14 +87,14 @@ export async function resolveSpawnWorktree(args) {
87
87
  log.warn(`Rebase failed for "${focusName}", continuing with existing state`);
88
88
  }
89
89
  log.info(` Worktree (reused): ${worktreePath}`);
90
- // Re-assert read-only audit guards on the reused worktree. ensureFocusWorktrees
91
- // installs them at provisioning time, but a read-only focus may reuse a
92
- // persistent worktree across daemon restarts -- re-applying here (idempotent)
93
- // guarantees the deny overlay + pre-commit hook are present before spawn.
94
- if (readOnly) {
95
- installReadOnlyAuditGuards(worktreePath);
96
- log.info(` Re-asserted read-only audit guards (reused worktree)`);
97
- }
90
+ // Re-assert execution-worktree git guards on the reused worktree.
91
+ // ensureFocusWorktrees installs them at provisioning time, but core.hooksPath
92
+ // and the hook files are per-worktree config that does NOT survive as tree
93
+ // content, and a worktree may be reused across daemon restarts -- re-applying
94
+ // here (idempotent) guarantees the delivery-trailer commit-msg hook (and, when
95
+ // read-only, the deny overlay + pre-commit block) are present before spawn.
96
+ installExecutionWorktreeGuards(worktreePath, readOnly);
97
+ log.info(` Re-asserted execution worktree guards (reused worktree)`);
98
98
  return worktreePath;
99
99
  }
100
100
  // Guard: can't create worktrees in a repo with no commits
@@ -118,11 +118,10 @@ export async function resolveSpawnWorktree(args) {
118
118
  repoPath: config.repoPath,
119
119
  });
120
120
  log.info(` Worktree (created inline): ${worktreePath}`);
121
- // Install read-only audit guards (pre-commit hook + write-deny overlay)
122
- if (readOnly) {
123
- installReadOnlyAuditGuards(worktreePath);
124
- log.info(` Installed read-only audit guards (read-only mode)`);
125
- }
121
+ // Install execution-worktree git guards: the delivery-trailer commit-msg hook
122
+ // always, plus read-only audit guards when the focus is read-only.
123
+ installExecutionWorktreeGuards(worktreePath, readOnly);
124
+ log.info(` Installed execution worktree guards`);
126
125
  return worktreePath;
127
126
  }
128
127
  catch (err) {
@@ -1 +1 @@
1
- {"version":3,"file":"worktree-session.js","sourceRoot":"","sources":["../../src/spawn/worktree-session.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAQH,OAAO,EACL,aAAa,GAEd,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGhF,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;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C,EAAE,QAAQ,EAAE,sBAAsB,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,CAAC;IACtG,SAAS,CAAC,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC;IACtC,SAAS,CAAC,WAAW,GAAG,SAAS,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;IAE7E,MAAM,UAAU,GAAe,SAAS,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC;IACpF,MAAM,cAAc,GAAG,cAAc,CAAC;QACpC,aAAa,EAAE,cAAc;QAC7B,IAAI,EAAE,UAAU;QAChB,aAAa,EAAE,oBAAoB;QACnC,cAAc,EAAE,MAAM,CAAC,mBAAmB;QAC1C,UAAU,EAAE,gBAAgB;KAC7B,CAAC,CAAC;IACH,MAAM,OAAO,GAAG,UAAU,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;IACpD,GAAG,CAAC,IAAI,CACN,gCAAgC,SAAS,UAAU,UAAU,IAAI;QACjE,GAAG,cAAc,CAAC,QAAQ,aAAa,cAAc,CAAC,MAAM,GAAG,CAChE,CAAC;IACF,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,cAAc,EAAE,OAAO,EAAE,CAAC;AAC5D,CAAC"}
@@ -29,7 +29,7 @@ export declare const TELORA_CLAUDE_MD_END = "<!-- END TELORA SEED -->";
29
29
  * For Codex: the MCP server is registered in `~/.codex/config.toml` (global).
30
30
  */
31
31
  export declare const SEED_MCP_REGISTRATION_SENTENCE = "The Telora MCP server is registered in `.mcp.json`.";
32
- export declare const SEED_BODY = "# Telora workstation context\n\nThis repo is connected to Telora -- a differential control plane for\nsoftware delivery. Intent and reality are paired signals; the meaningful\nwork happens at the difference.\n\n## Before you write any code (read this first)\n\nDEFAULT: on a Telora-connected workstation, a new capability starts as\n**declared intent** before any code. When the user says \"I want to build\nX\", your first move is NOT to scaffold X -- it is to declare it: create\n(or select) a Focus -> delivery -> issue and move an issue to **In\nProgress**. Code is written only after intent is anchored above it.\n\nThis polarity is deliberate and easy to get backwards. Building directly\nin the working tree -- scaffolding, installing dependencies, starting a\ndev server, writing application files -- is the **exception**, taken ONLY\nwhen the user explicitly asks for it. Recognized bypass phrases:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\". Absent an explicit signal like these, treat any build\nrequest as a request to declare intent in Telora first.\n\nAsking good clarifying questions about stack, scope, or dependencies is\nNOT a substitute for this step -- that is execution-layer scoping, and it\ncomes *after* the capability is declared, not instead of it. Scoping is\nagent work; declaring that a capability matters is the part that must\nland in Telora first.\n\n**Surface the fork; do not silently pick it.** The common failure is\nresolving an ambiguous request toward the path of least resistance --\ne.g. reading \"a web app I run locally on my LAN\" (a deployment target) as\n\"build locally\" (skip Telora). When intent is not already explicit, your\nFIRST response to a build request names the choice rather than assuming\nit: \"I'll scope this in Telora unless you want it built locally -- which?\"\nOne question, once, at the start. Let the user pick; never pick for them\nby starting to type code.\n\n**First action rule.** On a build / new-capability request, your first\ntool call is a Telora planning call (telora_product_focus / _delivery /\n_issue) OR the fork question above -- never Write, Edit, or a code-running\nBash command. If the first move cannot be code, building-before-intent\ncannot happen.\n\nWhy: an artifact with no declared intent above it is reality moving with\nnothing to measure it against -- pure noise to the differential loop. The\nwhole system is built to compute intent-minus-reality; code that skips\nthe intent half defeats the instrument.\n\n## Execution polarity (which path executes this?)\n\nOnce intent is declared, a second polarity governs HOW it executes -- and it\nhas the same default-and-exception shape as the intent polarity above. A\ndeclared focus is handed to the **daemon team + review loop** by default.\nTeam execution IS THE DEFAULT; building it inline yourself in this interactive\nsession is the **explicit, named bypass**, taken ONLY when the user says so.\n\nThree execution forks recur. On each, the left side is the default and the\nright side is the effortful, must-be-named bypass:\n\n- **Daemon team + review vs. inline coding.** Default: hand the focus to the\n daemon team, which executes and runs it through the review gate. Bypass:\n build it inline in this session -- only on an explicit signal.\n- **Tree-anchored delivery vs. unanchored delivery.** Default: anchor each\n delivery to a reality-tree injection. Bypass: an unanchored delivery\n (`allowUnanchored`) -- a deliberate, reason-bearing act, not a silent flag.\n- **Review-gated Done vs. self-marked Done.** Default: work is confirmed Done\n by the review gate. Bypass: marking your own work Done without review.\n\nThe recognized signal that switches execution to inline is an explicit\n\"build it now\" (and the same throwaway phrases that bypass the intent step:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\"). Absent such a signal, hand off to the team -- do not fill the\nchoice with the lowest-resistance path (typing code yourself).\n\n**Surface the fork; do not silently pick it.** When the execution path is not\nalready explicit, your response NAMES the choice rather than assuming it:\n\"I'll hand this to the daemon team + review unless you want it built inline\nnow -- which?\" One question, once. Let the user pick; never default to inline\nby starting to type code.\n\n**Routing is not activation.** \"Hand off to the daemon team\" answers WHICH\npath executes -- it is NOT a signal to arm the focus now. Arming (setting the\nfocus's `assignedAgentRoleId`, which spends real budget spawning a team) is a\nseparate, human-owned go-signal. Scoping ends at a named **scoped, un-armed**\nstate: you decompose the focus into deliveries and issues and then STOP. Do\nNOT arm a focus at the tail of scoping -- a human arms it (or has durably\ndelegated that go-signal). Choosing team-over-inline routing the moment\nscoping ends is NOT the same as deciding it is time to spend; keep the two\ndecisions separate. Activation is a third decision, owned by the human\nalongside intent and completion (see Human-vs-agent boundaries below).\n\n## Planning hierarchy\n\n- **Focus** = the context that defines an area of work -- not \"one\n capability.\" All phases of building within that area belong in one\n focus; if a \"focus\" is really just one phase, fold it back in.\n- **Delivery** = a shippable phase or major component of a capability.\n- **Context Group** = optional grouping of related issues that share\n meaningful context (relevant files, architectural notes). A CG earns its\n existence by carrying context, not by being a folder.\n- **Task** = one discrete implementable unit. Bounded files, focused\n session. Multiple \"and\" clauses across different concerns means split.\n\nScope by purpose, not count. The right number of deliveries is however\nmany phases the work naturally has.\n\n## PRD: \"build a working app in one run\"\n\nA **PRD** sits one altitude above Focus (Product -> PRD -> Focus): a\nbounded, verifiable, retire-able milestone carrying a **Prerequisite Tree**\nof `goal` / `obstacle` / `overcome` nodes. Each `overcome` materializes\nas a focus; the daemon progressively arms the **frontier** of foci as\nupstream obstacles clear. This is the entry point a user means by \"build a\nfully working app in one go.\"\n\nIt is NOT big-bang generation: you author the tree once, commit a path,\nand the differential loop walks the frontier to completion -- the execution\nunderneath is still the normal focus -> delivery -> issue + review loop.\n\nThe PRD tools are **lazy-loaded** -- they do not exist until you load the\ndomain. If you don't see `telora_prd` / `telora_prd_tree`, run:\n\n```\ntelora_discover { action: \"load\", domain: \"prd\" }\n```\n\nThen: `telora_prd` create (referencing a Vision) -> `telora_prd_tree`\nauthor nodes (an obstacle's `clearancePredicate` is OPTIONAL and advisory --\nthe frontier advances as upstream obstacles clear via focus-completion, i.e.\neach overcome's focus finishing its deliveries' verify gates, not via a\nper-obstacle predicate) + edges -> commit a pathway -> `materialize_overcome`\neach into a focus. Authoring STOPS there, at **scoped, un-armed** -- arming\nthe daemon PRD loop is a human go-signal (the activation decision above),\nnot the tail of authoring, unless that go-signal is durably delegated. All\nauthoring is harness+MCP; there is no Telora authoring UI.\n\n## Issue workflow\n\n`To Do` -> `In Progress` -> `In Review` / `Blocked` -> `Done`.\n\nIssue types: **Context Group**, **Task**, **Bug**.\n\nMovement rules:\n\n- An issue MUST be set to `In Progress` before any work begins on it.\n- Never skip `In Progress`. Never move directly from `To Do` to `Done`.\n- Set status with `telora_product_issue` action=update.\n\nDelivery and focus stages advance automatically based on issue\nactivity. Agents never set delivery executionStatus directly.\n\n## MCP tool surface (what's available in this session)\n\nThe Telora MCP server is registered in `.mcp.json`. Core tool families:\n\n- `telora_product` -- list/get/create/update products\n- `telora_product_focus` -- focuses under a product\n- `telora_product_delivery` -- deliveries under a focus\n- `telora_product_issue` -- issues (Context Groups, Tasks, Bugs) under a delivery\n- `telora_agent` -- agent roles, escalation requests\n- `telora_loop_*` -- loop documents, questions, answers\n- `telora_discover` -- on-demand registration of deferred tool domains\n\nResolve the live tool list at runtime via `telora_discover` rather than\nhard-coding a list that drifts.\n\n## Human-vs-agent boundaries\n\n- Humans own **intent**, **activation**, and **completion**.\n - Intent: what capability matters, what changes when. Pre-handoff.\n - Activation (arming): the go/no-go spend decision -- setting the focus's\n `assignedAgentRoleId` to hand it to the daemon team. Scoping ends\n **scoped, un-armed**; arming is a human go-signal unless durably\n delegated. Sits between intent and completion.\n - Completion: closing the loop on whether a focus is done. Post-handoff.\n- Agents own **scoping** and **execution**.\n - Scoping: decomposing a focus into deliveries, deliveries into\n issues, restructuring mid-flight as the agent learns more. Scoping\n ENDS at **scoped, un-armed** -- it never arms the focus.\n - Execution: writing code, running tests, committing, reporting.\n\nDo not ask humans for operational details they expect the agent to figure\nout. Do not silently complete a focus on the human's behalf. Escalate\nwhen stuck via `telora_agent` action=escalate.\n\nWhen communicating with a human, refer to focuses, deliveries, and issues\nby their **title**, never their UUID. UUIDs are for tool calls only and must\nnot be surfaced in chat. MCP tool results carry both, so this is a\ncommunication choice, not a data-availability problem: keep the id in the\ntool call, name the work by its title in the conversation.\n\n## Differential signaling\n\nTelora is asymmetric: it moves reality toward intent, never the reverse.\nAgents do not lower the bar to make signals look better -- they escalate.\nEvery artifact (commit, work summary, gate result) is signal toward the\ndeclared intent; raw activity without intent reduction is noise.\n\nA short corrective comment from the user is high-signal -- treat brief\npushback as the most important input in the session.\n\n## Workflows and policies\n\n- **Workflow**: stage directives shape agent behavior at discrete\n transitions. What context the agent sees (assembly recipes), what tools\n it can use, how it thinks (prompt + model). Live in Telora's\n `workflow_stages.agent_directive` JSONB.\n- **Policy** (organizational, deferred): cross-cutting constraints that\n feed into stage directives.\n\nWhen you cross a stage transition, the daemon may inject context or spawn\na fresh sub-agent per the directive. Don't override that flow without a\nclear reason.\n";
32
+ export declare const SEED_BODY = "# Telora workstation context\n\nThis repo is connected to Telora -- a differential control plane for\nsoftware delivery. Intent and reality are paired signals; the meaningful\nwork happens at the difference.\n\n## Before you write any code (read this first)\n\nDEFAULT: on a Telora-connected workstation, a new capability starts as\n**declared intent** before any code. When the user says \"I want to build\nX\", your first move is NOT to scaffold X -- it is to declare it: create\n(or select) a Focus -> delivery -> issue and move an issue to **In\nProgress**. Code is written only after intent is anchored above it.\n\nThis polarity is deliberate and easy to get backwards. Building directly\nin the working tree -- scaffolding, installing dependencies, starting a\ndev server, writing application files -- is the **exception**, taken ONLY\nwhen the user explicitly asks for it. Recognized bypass phrases:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\". Absent an explicit signal like these, treat any build\nrequest as a request to declare intent in Telora first.\n\nAsking good clarifying questions about stack, scope, or dependencies is\nNOT a substitute for this step -- that is execution-layer scoping, and it\ncomes *after* the capability is declared, not instead of it. Scoping is\nagent work; declaring that a capability matters is the part that must\nland in Telora first.\n\n**Surface the fork; do not silently pick it.** The common failure is\nresolving an ambiguous request toward the path of least resistance --\ne.g. reading \"a web app I run locally on my LAN\" (a deployment target) as\n\"build locally\" (skip Telora). When intent is not already explicit, your\nFIRST response to a build request names the choice rather than assuming\nit: \"I'll scope this in Telora unless you want it built locally -- which?\"\nOne question, once, at the start. Let the user pick; never pick for them\nby starting to type code.\n\n**First action rule.** On a build / new-capability request, your first\ntool call is a Telora planning call (telora_product_focus / _delivery /\n_issue) OR the fork question above -- never Write, Edit, or a code-running\nBash command. If the first move cannot be code, building-before-intent\ncannot happen.\n\nWhy: an artifact with no declared intent above it is reality moving with\nnothing to measure it against -- pure noise to the differential loop. The\nwhole system is built to compute intent-minus-reality; code that skips\nthe intent half defeats the instrument.\n\n## Execution polarity (which path executes this?)\n\nOnce intent is declared, a second polarity governs HOW it executes -- and it\nhas the same default-and-exception shape as the intent polarity above. A\ndeclared focus is handed to the **daemon team + review loop** by default.\nTeam execution IS THE DEFAULT; building it inline yourself in this interactive\nsession is the **explicit, named bypass**, taken ONLY when the user says so.\n\nThree execution forks recur. On each, the left side is the default and the\nright side is the effortful, must-be-named bypass:\n\n- **Daemon team + review vs. inline coding.** Default: hand the focus to the\n daemon team, which executes and runs it through the review gate. Bypass:\n build it inline in this session -- only on an explicit signal.\n- **Tree-anchored delivery vs. unanchored delivery.** Default: anchor each\n delivery to a reality-tree injection. Bypass: an unanchored delivery\n (`allowUnanchored`) -- a deliberate, reason-bearing act, not a silent flag.\n- **Review-gated Done vs. self-marked Done.** Default: work is confirmed Done\n by the review gate. Bypass: marking your own work Done without review.\n\nThe recognized signal that switches execution to inline is an explicit\n\"build it now\" (and the same throwaway phrases that bypass the intent step:\n\"build locally\", \"just write it\", \"skip Telora\", \"don't track this\",\n\"throwaway\"). Absent such a signal, hand off to the team -- do not fill the\nchoice with the lowest-resistance path (typing code yourself).\n\n**Surface the fork; do not silently pick it.** When the execution path is not\nalready explicit, your response NAMES the choice rather than assuming it:\n\"I'll hand this to the daemon team + review unless you want it built inline\nnow -- which?\" One question, once. Let the user pick; never default to inline\nby starting to type code.\n\n**Routing is not activation.** \"Hand off to the daemon team\" answers WHICH\npath executes -- it is NOT a signal to arm the focus now. Arming (setting the\nfocus's `assignedAgentRoleId`, which spends real budget spawning a team) is a\nseparate, human-owned go-signal. Scoping ends at a named **scoped, un-armed**\nstate: you decompose the focus into deliveries and issues and then STOP. Do\nNOT arm a focus at the tail of scoping -- a human arms it (or has durably\ndelegated that go-signal). Choosing team-over-inline routing the moment\nscoping ends is NOT the same as deciding it is time to spend; keep the two\ndecisions separate. Activation is a third decision, owned by the human\nalongside intent and completion (see Human-vs-agent boundaries below).\n\n## Planning hierarchy\n\n- **Focus** = the context that defines an area of work -- not \"one\n capability.\" All phases of building within that area belong in one\n focus; if a \"focus\" is really just one phase, fold it back in.\n- **Delivery** = a shippable phase or major component of a capability.\n- **Context Group** = optional grouping of related issues that share\n meaningful context (relevant files, architectural notes). A CG earns its\n existence by carrying context, not by being a folder.\n- **Task** = one discrete implementable unit. Bounded files, focused\n session. Multiple \"and\" clauses across different concerns means split.\n\nScope by purpose, not count. The right number of deliveries is however\nmany phases the work naturally has.\n\n## PRD: \"build a working app in one run\"\n\nA **PRD** sits one altitude above Focus (Product -> PRD -> Focus): a\nbounded, verifiable, retire-able milestone carrying a **Prerequisite Tree**\nof `goal` / `obstacle` / `overcome` nodes. Each `overcome` materializes\nas a focus; the daemon progressively arms the **frontier** of foci as\nupstream obstacles clear. This is the entry point a user means by \"build a\nfully working app in one go.\"\n\nIt is NOT big-bang generation: you author the tree once, commit a path,\nand the differential loop walks the frontier to completion -- the execution\nunderneath is still the normal focus -> delivery -> issue + review loop.\n\nThe PRD tools are **lazy-loaded** -- they do not exist until you load the\ndomain. If you don't see `telora_prd` / `telora_prd_tree`, run:\n\n```\ntelora_discover { action: \"load\", domain: \"prd\" }\n```\n\nThen: `telora_prd` create (referencing a Vision) -> `telora_prd_tree`\nauthor nodes (an obstacle's `clearancePredicate` is OPTIONAL and advisory --\nthe frontier advances as upstream obstacles clear via focus-completion, i.e.\neach overcome's focus finishing its deliveries' verify gates, not via a\nper-obstacle predicate) + edges -> commit a pathway -> `materialize_overcome`\neach into a focus. Authoring STOPS there, at **scoped, un-armed** -- arming\nthe daemon PRD loop is a human go-signal (the activation decision above),\nnot the tail of authoring, unless that go-signal is durably delegated. All\nauthoring is harness+MCP; there is no Telora authoring UI.\n\n## Issue workflow\n\n`To Do` -> `In Progress` -> `In Review` / `Blocked` -> `Done`.\n\nIssue types: **Context Group**, **Task**, **Bug**.\n\nMovement rules:\n\n- An issue MUST be set to `In Progress` before any work begins on it.\n- Never skip `In Progress`. Never move directly from `To Do` to `Done`.\n- Set status with `telora_product_issue` action=update.\n\nDelivery and focus stages advance automatically based on issue\nactivity. Agents never set delivery executionStatus directly.\n\n## Commit attribution (MANDATORY: one trailer per commit)\n\nEvery delivery on a focus shares ONE branch, so their commits interleave.\nThe only way the verify gate can judge a delivery against ITS OWN work is a\nper-commit marker. On EVERY commit you make for a delivery, add a git trailer\nnaming the delivery the work belongs to:\n\n```\nTelora-Delivery: <deliveryId>\n```\n\nStamp it with git's own trailer machinery so an appended `Co-Authored-By`\ncannot void it:\n\n```\ngit commit --trailer \"Telora-Delivery: <deliveryId>\" -m \"<subject>\"\n```\n\nDo NOT pass it as its own `-m` paragraph (`-m \"Telora-Delivery: ...\"`): git\nparses only the last paragraph as trailers, so an appended `Co-Authored-By`\nsilently voids it. A `commit-msg` git hook in this worktree ENFORCES this --\na commit whose message lacks a well-formed `Telora-Delivery: <uuid>` trailer\nis REFUSED, with the exact line to add printed. Fix it and re-commit; do not\nescalate.\n\n## MCP tool surface (what's available in this session)\n\nThe Telora MCP server is registered in `.mcp.json`. Core tool families:\n\n- `telora_product` -- list/get/create/update products\n- `telora_product_focus` -- focuses under a product\n- `telora_product_delivery` -- deliveries under a focus\n- `telora_product_issue` -- issues (Context Groups, Tasks, Bugs) under a delivery\n- `telora_agent` -- agent roles, escalation requests\n- `telora_loop_*` -- loop documents, questions, answers\n- `telora_discover` -- on-demand registration of deferred tool domains\n\nResolve the live tool list at runtime via `telora_discover` rather than\nhard-coding a list that drifts.\n\n## Human-vs-agent boundaries\n\n- Humans own **intent**, **activation**, and **completion**.\n - Intent: what capability matters, what changes when. Pre-handoff.\n - Activation (arming): the go/no-go spend decision -- setting the focus's\n `assignedAgentRoleId` to hand it to the daemon team. Scoping ends\n **scoped, un-armed**; arming is a human go-signal unless durably\n delegated. Sits between intent and completion.\n - Completion: closing the loop on whether a focus is done. Post-handoff.\n- Agents own **scoping** and **execution**.\n - Scoping: decomposing a focus into deliveries, deliveries into\n issues, restructuring mid-flight as the agent learns more. Scoping\n ENDS at **scoped, un-armed** -- it never arms the focus.\n - Execution: writing code, running tests, committing, reporting.\n\nDo not ask humans for operational details they expect the agent to figure\nout. Do not silently complete a focus on the human's behalf. Escalate\nwhen stuck via `telora_agent` action=escalate.\n\nWhen communicating with a human, refer to focuses, deliveries, and issues\nby their **title**, never their UUID. UUIDs are for tool calls only and must\nnot be surfaced in chat. MCP tool results carry both, so this is a\ncommunication choice, not a data-availability problem: keep the id in the\ntool call, name the work by its title in the conversation.\n\n## Differential signaling\n\nTelora is asymmetric: it moves reality toward intent, never the reverse.\nAgents do not lower the bar to make signals look better -- they escalate.\nEvery artifact (commit, work summary, gate result) is signal toward the\ndeclared intent; raw activity without intent reduction is noise.\n\nA short corrective comment from the user is high-signal -- treat brief\npushback as the most important input in the session.\n\n## Workflows and policies\n\n- **Workflow**: stage directives shape agent behavior at discrete\n transitions. What context the agent sees (assembly recipes), what tools\n it can use, how it thinks (prompt + model). Live in Telora's\n `workflow_stages.agent_directive` JSONB.\n- **Policy** (organizational, deferred): cross-cutting constraints that\n feed into stage directives.\n\nWhen you cross a stage transition, the daemon may inject context or spawn\na fresh sub-agent per the directive. Don't override that flow without a\nclear reason.\n";
33
33
  /**
34
34
  * Render a fresh-repo CLAUDE.md.
35
35
  *
@@ -1 +1 @@
1
- {"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,wDACY,CAAC;AAExD,eAAO,MAAM,SAAS,8zVAqNrB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CASjE"}
1
+ {"version":3,"file":"claude-md.d.ts","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,sBAAsB,+BAA+B,CAAC;AACnE,eAAO,MAAM,oBAAoB,6BAA6B,CAAC;AAE/D;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,8BAA8B,wDACY,CAAC;AAExD,eAAO,MAAM,SAAS,+vXA8OrB,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CASjE"}
@@ -180,6 +180,31 @@ Movement rules:
180
180
  Delivery and focus stages advance automatically based on issue
181
181
  activity. Agents never set delivery executionStatus directly.
182
182
 
183
+ ## Commit attribution (MANDATORY: one trailer per commit)
184
+
185
+ Every delivery on a focus shares ONE branch, so their commits interleave.
186
+ The only way the verify gate can judge a delivery against ITS OWN work is a
187
+ per-commit marker. On EVERY commit you make for a delivery, add a git trailer
188
+ naming the delivery the work belongs to:
189
+
190
+ \`\`\`
191
+ Telora-Delivery: <deliveryId>
192
+ \`\`\`
193
+
194
+ Stamp it with git's own trailer machinery so an appended \`Co-Authored-By\`
195
+ cannot void it:
196
+
197
+ \`\`\`
198
+ git commit --trailer "Telora-Delivery: <deliveryId>" -m "<subject>"
199
+ \`\`\`
200
+
201
+ Do NOT pass it as its own \`-m\` paragraph (\`-m "Telora-Delivery: ..."\`): git
202
+ parses only the last paragraph as trailers, so an appended \`Co-Authored-By\`
203
+ silently voids it. A \`commit-msg\` git hook in this worktree ENFORCES this --
204
+ a commit whose message lacks a well-formed \`Telora-Delivery: <uuid>\` trailer
205
+ is REFUSED, with the exact line to add printed. Fix it and re-commit; do not
206
+ escalate.
207
+
183
208
  ## MCP tool surface (what's available in this session)
184
209
 
185
210
  The Telora MCP server is registered in \`.mcp.json\`. Core tool families:
@@ -1 +1 @@
1
- {"version":3,"file":"claude-md.js","sourceRoot":"","sources":["../../src/templates/claude-md.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,CAAC,MAAM,sBAAsB,GAAG,4BAA4B,CAAC;AACnE,MAAM,CAAC,MAAM,oBAAoB,GAAG,0BAA0B,CAAC;AAE/D;;;;;;GAMG;AACH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,8BAA8B,GACzC,qDAAqD,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,kCAAkC,WAAW,SAAS;QACxD,CAAC,CAAC,EAAE,CAAC;IACP,MAAM,KAAK,GACT,GAAG,sBAAsB,IAAI;QAC7B,GAAG,WAAW,GAAG,SAAS,EAAE;QAC5B,GAAG,oBAAoB,IAAI,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -189,6 +189,20 @@ export interface FocusTeamState {
189
189
  * sessionType 'coding'.
190
190
  */
191
191
  lineage: string;
192
+ /**
193
+ * Count of tool-activity events (AgentToolActivityEvent) observed for THIS
194
+ * spawn's process, incremented by the output monitor on every `tool_activity`
195
+ * event. It is the INSPECTION-EVIDENCE signal for the review-exit gate: a
196
+ * review session that made at least one tool call (read the diff, filed an
197
+ * issue, called focus_review_complete -- all tool invocations) has count > 0;
198
+ * a no-op resume that only emitted idle assistant prose and exited has count
199
+ * 0. The gate treats a clean review exit with count 0 as a BLIND gate (no
200
+ * evidence of inspection), not a passing review. Per-spawn: each spawn builds
201
+ * a fresh FocusTeamState, so this counts only the current pass. Optional (may
202
+ * be undefined before the first event, or on a daemon restart mid-pass that
203
+ * lost the in-memory carry); consumers treat undefined as 0.
204
+ */
205
+ toolActivityCount?: number;
192
206
  /** Completion detector instance for multi-cycle idle/wake support. */
193
207
  completionDetector: CompletionDetector | null;
194
208
  /** Claude Code internal session ID (from system.init event) for --resume support. */
@@ -1 +1 @@
1
- {"version":3,"file":"focus.d.ts","sourceRoot":"","sources":["../../src/types/focus.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAEhF;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE;QACF,OAAO,EAAE,OAAO,CAAC;QACjB,aAAa,EAAE,cAAc,GAAG,QAAQ,GAA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EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3B;;;;;OAKG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,oEAAoE;IACpE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B"}
@@ -170,6 +170,20 @@ export interface VerificationDeps {
170
170
  batch: number;
171
171
  deliveries: number;
172
172
  } | null>;
173
+ /**
174
+ * Detect an INSTRUMENT-READ fault: the durable record could not be READ at all
175
+ * (the focus_merge_list API was unreachable), as distinct from an honest empty
176
+ * record. Returns the seam that could not be determined + the underlying reason
177
+ * when the read was UNDETERMINED, or null when the record was read successfully
178
+ * (whether it held evidence or was confirmed empty). The engine uses this, on
179
+ * the fully-blind evidence-unavailable path, to report the blindness as a
180
+ * READ fault naming the seam rather than "there is nothing here". Optional;
181
+ * defaultDeps provides it.
182
+ */
183
+ resolveEvidenceInstrumentFault?: (v: PendingVerification) => Promise<{
184
+ seam: string;
185
+ reason: string;
186
+ } | null>;
173
187
  /** Baseline-diff attribution; null => no baseline resolvable (gate all). Optional. */
174
188
  attributeFailures?: (v: PendingVerification, result: StrategyResult) => Promise<FailureClassification | null>;
175
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"verification-deps.d.ts","sourceRoot":"","sources":["../src/verification-deps.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;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,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACtC,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,uBAAuB,GACnC,OAAO,CAAC,cAAc,CAAC,CAuGzB"}
1
+ {"version":3,"file":"verification-deterministic.d.ts","sourceRoot":"","sources":["../src/verification-deterministic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAOrE,0EAA0E;AAC1E,eAAO,MAAM,+BAA+B,QAAgB,CAAC;AAE7D,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yFAAyF;IACzF,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iFAAiF;IACjF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,sFAAsF;IACtF,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,kFAAkF;IAClF,WAAW,EAAE,MAAM,CAAC;IACpB,wEAAwE;IACxE,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,EACtC,GAAG,EAAE,MAAM,EACX,UAAU,CAAC,EAAE,uBAAuB,GACnC,OAAO,CAAC,cAAc,CAAC,CAiIzB"}
@@ -14,6 +14,7 @@ import { spawn } from 'node:child_process';
14
14
  import { createWriteStream, mkdirSync } from 'node:fs';
15
15
  import { resolve as resolvePath } from 'node:path';
16
16
  import { resolveGlobalStateDir } from './daemon-process.js';
17
+ import { acquireVerifyHold } from './worktree/verify-interlock.js';
17
18
  import { createLogger } from './log.js';
18
19
  const log = createLogger({ module: 'verification' });
19
20
  /** Default deterministic timeout when the config sets none: 5 minutes. */
@@ -57,11 +58,31 @@ export async function runDeterministicStrategy(config, cwd, logContext) {
57
58
  logStream = undefined;
58
59
  }
59
60
  }
61
+ // Verify interlock: hold the worktree for the lifetime of the verify process so
62
+ // no daemon-authored commit path (safety / WIP / lockfile, all via guardedCommit)
63
+ // can snapshot a transient mid-verify tree state. Acquired BEFORE the spawn and
64
+ // released the instant the process exits (any exit) in `finish`, which every exit
65
+ // path funnels through. See worktree/verify-interlock.ts.
66
+ const releaseVerifyHold = acquireVerifyHold(cwd);
60
67
  return new Promise((resolve) => {
61
- const child = spawn('sh', ['-c', command], {
62
- cwd,
63
- stdio: ['ignore', 'pipe', 'pipe'],
64
- });
68
+ let child;
69
+ try {
70
+ child = spawn('sh', ['-c', command], {
71
+ cwd,
72
+ stdio: ['ignore', 'pipe', 'pipe'],
73
+ });
74
+ }
75
+ catch (err) {
76
+ // Synchronous spawn failure: release the hold and fail the run rather than
77
+ // leaking a hold that would wedge the worktree forever.
78
+ releaseVerifyHold();
79
+ resolve({
80
+ outcome: 'failed',
81
+ rationale: `deterministic spawn threw: ${err.message}`,
82
+ ...(logPath ? { logPath } : {}),
83
+ });
84
+ return;
85
+ }
65
86
  let stdout = '';
66
87
  let stderr = '';
67
88
  const tail = (buf, max = 4000) => buf.length <= max ? buf : buf.slice(buf.length - max);
@@ -78,6 +99,12 @@ export async function runDeterministicStrategy(config, cwd, logContext) {
78
99
  stderr = tail(stderr);
79
100
  });
80
101
  const finish = (result) => {
102
+ // Release the verify interlock the instant the process has exited (clean,
103
+ // killed, or abnormal -- every exit path calls finish). Idempotent, so an
104
+ // 'error' followed by a 'close' cannot double-release. Released here, before
105
+ // the log stream flushes, because the mutation window ended at process exit;
106
+ // the flush is pure I/O and never touches the worktree.
107
+ releaseVerifyHold();
81
108
  const finalResult = { ...result, ...(logPath ? { logPath } : {}) };
82
109
  if (logStream) {
83
110
  // Resolve only AFTER the stream has flushed + closed, so the full log
@@ -1 +1 @@
1
- {"version":3,"file":"verification-deterministic.js","sourceRoot":"","sources":["../src/verification-deterministic.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,WAAW,CAAC;AACnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;AAGrD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;AAuC7D;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,wBAAwB,CAC5C,MAAsC,EACtC,GAAW,EACX,UAAoC;IAEpC,MAAM,OAAO,GAAG,MAAM,EAAE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ACtB,IAAI,EAAE,gBAAgB,GACrB,OAAO,CAAC,cAAc,CAAC,CAsZzB;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,YAAY,EACpB,IAAI,CAAC,EAAE,OAAO,CAAC,gBAAgB,CAAC,GAC/B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAwFlG"}
@@ -151,15 +151,22 @@ const defaultDeps = (config) => {
151
151
  // gate blind on merged, CI-green work (2026-08-15, delivery 4ab18c49).
152
152
  // Searching every batch by the per-commit Telora-Delivery trailer recovers
153
153
  // the delivery's commits regardless of which batch its row points at.
154
+ // Branch on the three-state history lookup: only a `found` history is worth
155
+ // partitioning. An `empty` (no history) or `undetermined` (API unreachable)
156
+ // result falls through to the single-row / legacy path -- and an undetermined
157
+ // read is reported as an instrument fault SEPARATELY (resolveEvidenceInstrumentFault),
158
+ // never silently collapsed into "no evidence" here.
154
159
  const batches = await getAllRecordedCommitShasForFocus(v.focusId);
155
- const own = selectDeliveryCommitsAcrossBatches(cwd, batches, v.deliveryId);
156
- if (own !== null)
157
- return own;
160
+ if (batches.state === 'found') {
161
+ const own = selectDeliveryCommitsAcrossBatches(cwd, batches.value, v.deliveryId);
162
+ if (own !== null)
163
+ return own;
164
+ }
158
165
  // Total-legacy focus (no Telora-Delivery trailer anywhere -> the history is
159
- // un-partitionable): preserve the single-row behavior and judge against the
160
- // batch stamped on the row.
166
+ // un-partitionable), no history, or an undetermined read: preserve the
167
+ // single-row behavior and judge against the batch stamped on the row.
161
168
  const batch = await getRecordedCommitShasForMerge(v.focusId, sha);
162
- return filterCommitsByDelivery(cwd, batch, v.deliveryId);
169
+ return filterCommitsByDelivery(cwd, evidenceValueOr(batch, []), v.deliveryId);
163
170
  },
164
171
  resolveRecordedPreMergeRef: async (v) => {
165
172
  // Same gating as resolveRecordedCommitShas: a pre-merge boundary exists only
@@ -179,13 +186,14 @@ const defaultDeps = (config) => {
179
186
  // batch is exactly the fast-forward incident the boundary exists to cure
180
187
  // (the per-delivery set came back empty) -- keep offering it there; a
181
188
  // total-legacy (untrailered) batch also keeps it (no regression).
182
- const batch = await getRecordedCommitShasForMerge(v.focusId, sha);
183
- if (batch.length > 0 && batchHasAnyTrailer(cwd, batch)) {
184
- const own = filterCommitsByDelivery(cwd, batch, v.deliveryId);
189
+ const batchShas = evidenceValueOr(await getRecordedCommitShasForMerge(v.focusId, sha), []);
190
+ if (batchShas.length > 0 && batchHasAnyTrailer(cwd, batchShas)) {
191
+ const own = filterCommitsByDelivery(cwd, batchShas, v.deliveryId);
185
192
  if (own.length === 0)
186
193
  return null;
187
194
  }
188
- return getRecordedPreMergeRefForMerge(v.focusId, sha);
195
+ const ref = await getRecordedPreMergeRefForMerge(v.focusId, sha);
196
+ return ref.state === 'found' ? ref.value : null;
189
197
  },
190
198
  resolveAttributionFailure: async (v) => {
191
199
  // TOTAL ATTRIBUTION FAILURE: a recorded batch with ZERO parseable trailers
@@ -198,9 +206,14 @@ const defaultDeps = (config) => {
198
206
  const sha = recordedMergeShaForVerifyImpl(v);
199
207
  if (!sha || !v.focusId)
200
208
  return null;
201
- const batch = await getRecordedCommitShasForMerge(v.focusId, sha);
202
- if (batch.length === 0)
209
+ const batchLookup = await getRecordedCommitShasForMerge(v.focusId, sha);
210
+ // Only a `found` batch (query ran AND the row carries commits) can be a
211
+ // total-attribution failure. An `empty` batch has nothing to misattribute;
212
+ // an `undetermined` batch is a blind instrument, not a partition failure --
213
+ // reported distinctly via resolveEvidenceInstrumentFault, not here.
214
+ if (batchLookup.state !== 'found')
203
215
  return null;
216
+ const batch = batchLookup.value;
204
217
  const cwd = resolveVerificationCwd(v);
205
218
  if (batchHasAnyTrailer(cwd, batch))
206
219
  return null; // partitionable -> not a total failure
@@ -209,6 +222,23 @@ const defaultDeps = (config) => {
209
222
  return null; // genuine legacy single-delivery batch
210
223
  return { batch: batch.length, deliveries: deliveries.length };
211
224
  },
225
+ resolveEvidenceInstrumentFault: async (v) => {
226
+ // Probe whether the durable record could be READ at all. An `undetermined`
227
+ // lookup (the focus_merge_list API unreachable) is the instrument fault the
228
+ // gate must report DISTINCTLY from an honest empty record: it names the seam
229
+ // so a blind gate is diagnosable, rather than collapsing "could not
230
+ // determine" into "there is nothing here". Gated identically to the
231
+ // commit-set lookup -- an unmerged delivery has no record to read and is not
232
+ // a fault.
233
+ const sha = recordedMergeShaForVerifyImpl(v);
234
+ if (!sha || !v.focusId)
235
+ return null;
236
+ const history = await getAllRecordedCommitShasForFocus(v.focusId);
237
+ if (history.state === 'undetermined') {
238
+ return { seam: 'focus_merges (whole-history commit set)', reason: history.reason };
239
+ }
240
+ return null;
241
+ },
212
242
  attributeFailures: buildDefaultAttributeFailures(config),
213
243
  };
214
244
  };
@@ -226,7 +256,7 @@ const STRATEGIES = {
226
256
  */
227
257
  export { MERGED_BACK_GIT_STATES, recordedMergeShaForVerify, } from './verification-evidence.js';
228
258
  import { buildVerifyEvidence, describeMissingJudgeEvidence, assessRecordedCoverage, resolveDiffCwd, recordedMergeShaForVerify as recordedMergeShaForVerifyImpl, } from './verification-evidence.js';
229
- import { getRecordedCommitShasForMerge, getAllRecordedCommitShasForFocus, getRecordedPreMergeRefForMerge } from './queries/deliveries.js';
259
+ import { getRecordedCommitShasForMerge, getAllRecordedCommitShasForFocus, getRecordedPreMergeRefForMerge, evidenceValueOr } from './queries/deliveries.js';
230
260
  /**
231
261
  * Run verification for a single delivery.
232
262
  *
@@ -420,13 +450,35 @@ export async function runVerificationForDelivery(v, deps) {
420
450
  // source dry diagnosis would not describe its fault.
421
451
  const isFullyBlind = !attributionFailure && !isIncomplete;
422
452
  let sourceDiagnostics;
453
+ // INSTRUMENT-READ fault: did the durable record fail to READ (API
454
+ // unreachable), as opposed to reading fine and confirming nothing? Probed
455
+ // only on the fully-blind path, where it names WHICH seam went blind so a
456
+ // "could not determine" is never reported as "there is nothing here".
457
+ let instrumentUndetermined = null;
423
458
  if (isFullyBlind) {
424
459
  try {
425
- sourceDiagnostics = diagnoseEmptyDiffSource(resolveDiffCwd(v, deps), deps.integrationBranch, recordedMergeShaForVerifyImpl(v), recordedCommitShas, recordedPreMergeRef).map((p) => ({ source: p.source, reason: p.reason }));
460
+ sourceDiagnostics = diagnoseEmptyDiffSource(resolveDiffCwd(v, deps), deps.integrationBranch, recordedMergeShaForVerifyImpl(v), recordedCommitShas, recordedPreMergeRef, v.deliveryId).map((p) => ({ source: p.source, reason: p.reason }));
426
461
  }
427
462
  catch (err) {
428
463
  log.debug(`[verification] source diagnosis failed for delivery ${v.deliveryId}:`, err.message);
429
464
  }
465
+ if (deps.resolveEvidenceInstrumentFault) {
466
+ try {
467
+ instrumentUndetermined = await deps.resolveEvidenceInstrumentFault(v);
468
+ }
469
+ catch (err) {
470
+ log.debug(`[verification] instrument-fault probe failed for delivery ${v.deliveryId}:`, err.message);
471
+ }
472
+ }
473
+ // Prepend the read-fault as its own diagnostic source so the blind-source
474
+ // line names the seam that could not be determined, distinctly from the
475
+ // topology sources that were read and found empty.
476
+ if (instrumentUndetermined) {
477
+ sourceDiagnostics = [
478
+ { source: instrumentUndetermined.seam, reason: `undetermined (could not read record: ${instrumentUndetermined.reason})` },
479
+ ...(sourceDiagnostics ?? []),
480
+ ];
481
+ }
430
482
  }
431
483
  evidenceUnavailableHold = {
432
484
  missing: describeMissingJudgeEvidence(evidence),
@@ -436,6 +488,7 @@ export async function runVerificationForDelivery(v, deps) {
436
488
  ? { attribution: { batch: attributionFailure.batch, parsed: 0, deliveries: attributionFailure.deliveries } }
437
489
  : {}),
438
490
  ...(sourceDiagnostics && sourceDiagnostics.length > 0 ? { sourceDiagnostics } : {}),
491
+ ...(instrumentUndetermined ? { instrumentUndetermined } : {}),
439
492
  };
440
493
  result.outcome = 'failed';
441
494
  result.rationale = attributionFailure
@@ -449,13 +502,17 @@ export async function runVerificationForDelivery(v, deps) {
449
502
  `${coverage.recorded} of the delivery's recorded commits -- the gate cannot vouch for a ` +
450
503
  `verdict rendered against part of the work; re-entering bounded re-work ` +
451
504
  `(injection ${v.injectionNodeId} not flipped)`
452
- : commitsAhead > 0
453
- ? `verify blind (instrument fault): delivery branch is ${commitsAhead} commit(s) ahead of ` +
454
- `${deps.integrationBranch} but the resolved diff is empty -- broken diff measurement, ` +
455
- `not a shortfall; re-entering bounded re-work (injection ${v.injectionNodeId} not flipped)`
456
- : `verify blind (instrument fault): no diff/changed-files/inspection evidence to judge the ` +
457
- `work -- the gate is blind, not the work short; re-entering bounded re-work ` +
458
- `(injection ${v.injectionNodeId} not flipped)`;
505
+ : instrumentUndetermined
506
+ ? `verify blind (instrument READ fault): could not read the durable record ` +
507
+ `(${instrumentUndetermined.seam}: ${instrumentUndetermined.reason}) -- "could not determine", ` +
508
+ `NOT "no evidence"; re-entering bounded re-work (injection ${v.injectionNodeId} not flipped)`
509
+ : commitsAhead > 0
510
+ ? `verify blind (instrument fault): delivery branch is ${commitsAhead} commit(s) ahead of ` +
511
+ `${deps.integrationBranch} but the resolved diff is empty -- broken diff measurement, ` +
512
+ `not a shortfall; re-entering bounded re-work (injection ${v.injectionNodeId} not flipped)`
513
+ : `verify blind (instrument fault): no diff/changed-files/inspection evidence to judge the ` +
514
+ `work -- the gate is blind, not the work short; re-entering bounded re-work ` +
515
+ `(injection ${v.injectionNodeId} not flipped)`;
459
516
  log.warn(`[verification] ${result.rationale} (delivery ${v.deliveryId})`);
460
517
  // Diagnostic record: name each consulted source and why it was empty, at
461
518
  // the SAME warn level as the rationale (no level bump), so a repeat