agentfootprint 9.85.0 → 9.86.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 (150) hide show
  1. package/CHANGELOG.md +376 -24
  2. package/dist/core/Agent.js +15 -4
  3. package/dist/core/Agent.js.map +1 -1
  4. package/dist/core/agent/AgentBuilder.js.map +1 -1
  5. package/dist/core/agent/buildAgentChart.js +5 -0
  6. package/dist/core/agent/buildAgentChart.js.map +1 -1
  7. package/dist/core/agent/buildDynamicAgentChart.js +22 -4
  8. package/dist/core/agent/buildDynamicAgentChart.js.map +1 -1
  9. package/dist/core/agent/buildToolRegistry.js +12 -1
  10. package/dist/core/agent/buildToolRegistry.js.map +1 -1
  11. package/dist/core/agent/selfCallNotice.js +20 -7
  12. package/dist/core/agent/selfCallNotice.js.map +1 -1
  13. package/dist/core/agent/skillBrains.js +3 -2
  14. package/dist/core/agent/skillBrains.js.map +1 -1
  15. package/dist/core/agent/stages/stepNudge.js +13 -4
  16. package/dist/core/agent/stages/stepNudge.js.map +1 -1
  17. package/dist/core/agent/stages/toolCalls.js +389 -58
  18. package/dist/core/agent/stages/toolCalls.js.map +1 -1
  19. package/dist/core/agent/stages/wrapUp.js +43 -6
  20. package/dist/core/agent/stages/wrapUp.js.map +1 -1
  21. package/dist/core/agent/window/currentRequest.js +4 -2
  22. package/dist/core/agent/window/currentRequest.js.map +1 -1
  23. package/dist/core/slots/buildToolsSlot.js +20 -4
  24. package/dist/core/slots/buildToolsSlot.js.map +1 -1
  25. package/dist/doors/skill-graph.js +4 -1
  26. package/dist/doors/skill-graph.js.map +1 -1
  27. package/dist/esm/core/Agent.js +15 -4
  28. package/dist/esm/core/Agent.js.map +1 -1
  29. package/dist/esm/core/agent/AgentBuilder.d.ts +2 -1
  30. package/dist/esm/core/agent/AgentBuilder.js.map +1 -1
  31. package/dist/esm/core/agent/buildAgentChart.js +5 -0
  32. package/dist/esm/core/agent/buildAgentChart.js.map +1 -1
  33. package/dist/esm/core/agent/buildDynamicAgentChart.js +22 -4
  34. package/dist/esm/core/agent/buildDynamicAgentChart.js.map +1 -1
  35. package/dist/esm/core/agent/buildToolRegistry.d.ts +20 -0
  36. package/dist/esm/core/agent/buildToolRegistry.js +12 -1
  37. package/dist/esm/core/agent/buildToolRegistry.js.map +1 -1
  38. package/dist/esm/core/agent/selfCallNotice.d.ts +20 -7
  39. package/dist/esm/core/agent/selfCallNotice.js +20 -7
  40. package/dist/esm/core/agent/selfCallNotice.js.map +1 -1
  41. package/dist/esm/core/agent/skillBrains.d.ts +12 -4
  42. package/dist/esm/core/agent/skillBrains.js +3 -2
  43. package/dist/esm/core/agent/skillBrains.js.map +1 -1
  44. package/dist/esm/core/agent/stages/stepNudge.d.ts +13 -4
  45. package/dist/esm/core/agent/stages/stepNudge.js +13 -4
  46. package/dist/esm/core/agent/stages/stepNudge.js.map +1 -1
  47. package/dist/esm/core/agent/stages/toolCalls.d.ts +171 -0
  48. package/dist/esm/core/agent/stages/toolCalls.js +385 -57
  49. package/dist/esm/core/agent/stages/toolCalls.js.map +1 -1
  50. package/dist/esm/core/agent/stages/wrapUp.d.ts +33 -2
  51. package/dist/esm/core/agent/stages/wrapUp.js +41 -5
  52. package/dist/esm/core/agent/stages/wrapUp.js.map +1 -1
  53. package/dist/esm/core/agent/types.d.ts +21 -4
  54. package/dist/esm/core/agent/window/currentRequest.d.ts +4 -2
  55. package/dist/esm/core/agent/window/currentRequest.js +4 -2
  56. package/dist/esm/core/agent/window/currentRequest.js.map +1 -1
  57. package/dist/esm/core/slots/buildToolsSlot.d.ts +1 -1
  58. package/dist/esm/core/slots/buildToolsSlot.js +20 -4
  59. package/dist/esm/core/slots/buildToolsSlot.js.map +1 -1
  60. package/dist/esm/doors/skill-graph.d.ts +1 -1
  61. package/dist/esm/doors/skill-graph.js +4 -1
  62. package/dist/esm/doors/skill-graph.js.map +1 -1
  63. package/dist/esm/events/payloads.d.ts +26 -2
  64. package/dist/esm/index.js +6 -5
  65. package/dist/esm/index.js.map +1 -1
  66. package/dist/esm/lib/injection-engine/index.d.ts +1 -1
  67. package/dist/esm/lib/injection-engine/index.js +4 -1
  68. package/dist/esm/lib/injection-engine/index.js.map +1 -1
  69. package/dist/esm/lib/injection-engine/skillGraph.d.ts +56 -0
  70. package/dist/esm/lib/injection-engine/skillGraph.js +29 -3
  71. package/dist/esm/lib/injection-engine/skillGraph.js.map +1 -1
  72. package/dist/esm/lib/injection-engine/skillSteps.d.ts +20 -1
  73. package/dist/esm/lib/injection-engine/skillSteps.js +24 -3
  74. package/dist/esm/lib/injection-engine/skillSteps.js.map +1 -1
  75. package/dist/esm/lib/injection-engine/skillToolDescriptors.d.ts +18 -0
  76. package/dist/esm/lib/injection-engine/skillToolDescriptors.js +103 -10
  77. package/dist/esm/lib/injection-engine/skillToolDescriptors.js.map +1 -1
  78. package/dist/esm/lib/injection-engine/types.d.ts +12 -10
  79. package/dist/esm/lib/injection-engine/types.js +5 -4
  80. package/dist/esm/lib/injection-engine/types.js.map +1 -1
  81. package/dist/esm/lib/saidByPerson.d.ts +48 -15
  82. package/dist/esm/lib/saidByPerson.js +52 -17
  83. package/dist/esm/lib/saidByPerson.js.map +1 -1
  84. package/dist/esm/lib/spokenIds.d.ts +52 -0
  85. package/dist/esm/lib/spokenIds.js +11 -0
  86. package/dist/esm/lib/spokenIds.js.map +1 -0
  87. package/dist/esm/lib/trace-toolpack/traceToolpack.js +12 -5
  88. package/dist/esm/lib/trace-toolpack/traceToolpack.js.map +1 -1
  89. package/dist/index.js +6 -5
  90. package/dist/index.js.map +1 -1
  91. package/dist/lib/injection-engine/index.js +5 -2
  92. package/dist/lib/injection-engine/index.js.map +1 -1
  93. package/dist/lib/injection-engine/skillGraph.js +31 -4
  94. package/dist/lib/injection-engine/skillGraph.js.map +1 -1
  95. package/dist/lib/injection-engine/skillSteps.js +24 -3
  96. package/dist/lib/injection-engine/skillSteps.js.map +1 -1
  97. package/dist/lib/injection-engine/skillToolDescriptors.js +103 -10
  98. package/dist/lib/injection-engine/skillToolDescriptors.js.map +1 -1
  99. package/dist/lib/injection-engine/types.js +5 -4
  100. package/dist/lib/injection-engine/types.js.map +1 -1
  101. package/dist/lib/saidByPerson.js +53 -18
  102. package/dist/lib/saidByPerson.js.map +1 -1
  103. package/dist/lib/spokenIds.js +15 -0
  104. package/dist/lib/spokenIds.js.map +1 -0
  105. package/dist/lib/trace-toolpack/traceToolpack.js +12 -5
  106. package/dist/lib/trace-toolpack/traceToolpack.js.map +1 -1
  107. package/dist/types/core/Agent.d.ts.map +1 -1
  108. package/dist/types/core/agent/AgentBuilder.d.ts +2 -1
  109. package/dist/types/core/agent/AgentBuilder.d.ts.map +1 -1
  110. package/dist/types/core/agent/buildAgentChart.d.ts.map +1 -1
  111. package/dist/types/core/agent/buildDynamicAgentChart.d.ts.map +1 -1
  112. package/dist/types/core/agent/buildToolRegistry.d.ts +20 -0
  113. package/dist/types/core/agent/buildToolRegistry.d.ts.map +1 -1
  114. package/dist/types/core/agent/selfCallNotice.d.ts +20 -7
  115. package/dist/types/core/agent/selfCallNotice.d.ts.map +1 -1
  116. package/dist/types/core/agent/skillBrains.d.ts +12 -4
  117. package/dist/types/core/agent/skillBrains.d.ts.map +1 -1
  118. package/dist/types/core/agent/stages/stepNudge.d.ts +13 -4
  119. package/dist/types/core/agent/stages/stepNudge.d.ts.map +1 -1
  120. package/dist/types/core/agent/stages/toolCalls.d.ts +171 -0
  121. package/dist/types/core/agent/stages/toolCalls.d.ts.map +1 -1
  122. package/dist/types/core/agent/stages/wrapUp.d.ts +33 -2
  123. package/dist/types/core/agent/stages/wrapUp.d.ts.map +1 -1
  124. package/dist/types/core/agent/types.d.ts +21 -4
  125. package/dist/types/core/agent/types.d.ts.map +1 -1
  126. package/dist/types/core/agent/window/currentRequest.d.ts +4 -2
  127. package/dist/types/core/agent/window/currentRequest.d.ts.map +1 -1
  128. package/dist/types/core/slots/buildToolsSlot.d.ts +1 -1
  129. package/dist/types/core/slots/buildToolsSlot.d.ts.map +1 -1
  130. package/dist/types/doors/skill-graph.d.ts +1 -1
  131. package/dist/types/doors/skill-graph.d.ts.map +1 -1
  132. package/dist/types/events/payloads.d.ts +26 -2
  133. package/dist/types/events/payloads.d.ts.map +1 -1
  134. package/dist/types/index.d.ts.map +1 -1
  135. package/dist/types/lib/injection-engine/index.d.ts +1 -1
  136. package/dist/types/lib/injection-engine/index.d.ts.map +1 -1
  137. package/dist/types/lib/injection-engine/skillGraph.d.ts +56 -0
  138. package/dist/types/lib/injection-engine/skillGraph.d.ts.map +1 -1
  139. package/dist/types/lib/injection-engine/skillSteps.d.ts +20 -1
  140. package/dist/types/lib/injection-engine/skillSteps.d.ts.map +1 -1
  141. package/dist/types/lib/injection-engine/skillToolDescriptors.d.ts +18 -0
  142. package/dist/types/lib/injection-engine/skillToolDescriptors.d.ts.map +1 -1
  143. package/dist/types/lib/injection-engine/types.d.ts +12 -10
  144. package/dist/types/lib/injection-engine/types.d.ts.map +1 -1
  145. package/dist/types/lib/saidByPerson.d.ts +48 -15
  146. package/dist/types/lib/saidByPerson.d.ts.map +1 -1
  147. package/dist/types/lib/spokenIds.d.ts +53 -0
  148. package/dist/types/lib/spokenIds.d.ts.map +1 -0
  149. package/dist/types/lib/trace-toolpack/traceToolpack.d.ts.map +1 -1
  150. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"AgentBuilder.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/AgentBuilder.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAExB,MAAM,oBAAoB,CAAC;AAS5B,OAAO,KAAK,EAAE,sBAAsB,EAAwB,MAAM,qBAAqB,CAAC;AACxF,OAAO,EAGL,KAAK,qBAAqB,EAE3B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,WAAW,EAAiB,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAkB,WAAW,EA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Q,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IAE9C;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAEnC;;;;;;;OAOG;IACH,QAAQ,CAAC,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAExC;;;;;;;;;OASG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,OAAO,CAAC;IAEjC;;;;;OAKG;IACH,QAAQ,CAAC,SAAS,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAG3C;;;;0CAIsC;IACtC,QAAQ,CAAC,kBAAkB,CAAC,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC5D;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAimB/D"}
@@ -1 +1 @@
1
- {"version":3,"file":"buildDynamicAgentChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildDynamicAgentChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAezD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AA4D3D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CAwtBtE"}
1
+ {"version":3,"file":"buildDynamicAgentChart.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildDynamicAgentChart.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAc,MAAM,aAAa,CAAC;AAezD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AA4D3D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,cAAc,GAAG,SAAS,CA0uBtE"}
@@ -189,6 +189,26 @@ export interface ToolRegistryArtifacts {
189
189
  * shape; passed to `buildToolsSlot` + the seed stage as the
190
190
  * per-iteration default before the dynamic tools slot has run. */
191
191
  readonly toolSchemas: readonly LLMToolSchema[];
192
+ /**
193
+ * WHICH SKILLS DECLARE EACH TOOL NAME (9.86.0) — tool name → the ids of the
194
+ * skills whose `inject.tools` carry it, in declaration order.
195
+ *
196
+ * This walk already happened here; it was thrown away, and the one consumer
197
+ * that needed it — the unknown-tool roster, which must not name a tool
198
+ * belonging to a skill the caller's policy hides — had no way to ask. A
199
+ * consumer re-deriving it from `Agent.injections` would be a second walk of
200
+ * the same arrays, which is the shape this release exists to remove.
201
+ *
202
+ * Shared references are kept whole: a Tool the same reference of which two
203
+ * skills carry is listed under BOTH ids, so a reader can apply the
204
+ * sole-owner rule (hide the name only when every declaring skill is hidden)
205
+ * rather than guessing at ownership.
206
+ *
207
+ * EMPTY when no registered skill declares a tool. Static `.tool()`
208
+ * registrations, `read_skill`, `present` and `skip_step` are never in it:
209
+ * they are the framework's or the app's, not a skill's.
210
+ */
211
+ readonly toolDeclaringSkills: ReadonlyMap<string, readonly string[]>;
192
212
  }
193
213
  /** The build facts that gate auto-attached tools beyond skills (9.22.0). */
194
214
  export interface BuildToolRegistryOptions {
@@ -1 +1 @@
1
- {"version":3,"file":"buildToolRegistry.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/buildToolRegistry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8KG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,KA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C,iBAAiB,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACzD;;;0CAGsC;IACtC,QAAQ,CAAC,cAAc,EAAE,WAAW,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACnD;;uEAEmE;IACnE,QAAQ,CAAC,WAAW,EAAE,SAAS,aAAa,EAAE,CAAC;IAC/C;;;;;;;;;;;;;;;;;;OAkBG;IACH,QAAQ,CAAC,mBAAmB,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,CAAC;CACtE;AAED,4EAA4E;AAC5E,MAAM,WAAW,wBAAwB;IACvC;;;;;OAKG;IACH,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,SAAS,iBAAiB,EAAE,EACtC,UAAU,EAAE,SAAS,SAAS,EAAE,EAChC,OAAO,GAAE,wBAA6B,GACrC,qBAAqB,CAiKvB"}
@@ -20,7 +20,7 @@
20
20
  * into `history`, and then read by the model on call N+1 AND ON EVERY CALL
21
21
  * AFTER IT for the rest of the turn — including the out-of-budget WRAP-UP,
22
22
  * which `callLLM` serves with an EMPTY tool list under a user message saying
23
- * "Do not request tools".
23
+ * that no tools were offered on it.
24
24
  *
25
25
  * The consequence is the whole design: NO COMPOSE-TIME CHECK CAN MAKE A
26
26
  * FORWARD-LOOKING SENTENCE SAFE. A budget test, a posture test, a cursor test
@@ -44,7 +44,8 @@
44
44
  * open-skill offer ("These activate without moving you: gamma"), and the
45
45
  * budget clause that was added to gate them. Each was false somewhere:
46
46
  *
47
- * • the exhortation, on the wrap-up call, beside "Do not request tools";
47
+ * • the exhortation, on the wrap-up call, beside a frame reporting that no
48
+ * tools were offered on it;
48
49
  * • the move offer, on the wrap-up call (a hop is a tool call), under
49
50
  * `strictness: 'rails'` (every model hop refused) and under `'guard'` on a
50
51
  * decisively-routed turn (every hop not on an outstanding menu refused) —
@@ -82,11 +83,23 @@ export interface SelfSkillTools {
82
83
  * that cannot be established, which is not the same answer and must not be
83
84
  * reported as one.
84
85
  *
85
- * `undefined` means the notice says nothing about tools at all. It happens when
86
- * the tools slot composed no per-iteration list (`reactMode: 'classic'` caches
87
- * the slot, and `callLLM` falls back to its build-time schemas), or when the
88
- * cursor's skill is not in the active set. Silence is the only honest output
89
- * there: the alternative is a sentence naming tools the model may not have.
86
+ * `undefined` means the notice says nothing about tools at all, and there are
87
+ * exactly two ways to get it (9.86.0 — the previous note named a third that
88
+ * cannot happen). It happens when the cursor's skill is not in the ACTIVE set
89
+ * for that call, and when the wire key is absent from scope altogether.
90
+ *
91
+ * `reactMode: 'classic'` is NOT one of them, which is worth stating because the
92
+ * old note said it was: seed writes `scope.dynamicToolSchemas` from the
93
+ * build-time schemas at turn start (`stages/seed.ts`), so under classic the key
94
+ * is present and holds the list `callLLM` really sends — the notice would name
95
+ * the build-time list, correctly. (No self-call can arise there anyway:
96
+ * `.skillGraph()` is refused at build under classic, and only a graph gives the
97
+ * gate a cursor to compare against.) The grouped chart used to be a real third
98
+ * way — the Tools slot writes the key inside `sf-llm-call` and this gate reads
99
+ * it outside — until that boundary began bubbling it out.
100
+ *
101
+ * Silence is the only honest output in the two remaining cases: the
102
+ * alternative is a sentence naming tools the model may not have.
90
103
  *
91
104
  * The out-of-budget wrap-up is NOT one of these cases and must not be modelled
92
105
  * as one. Its empty tool list belongs to a LATER call; the wire read here is
@@ -1 +1 @@
1
- {"version":3,"file":"selfCallNotice.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/selfCallNotice.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC3E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,qFAAqF;AACrF,MAAM,WAAW,c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E,SAAS,eAAe,EAAE,GAAG,SAAS,EACxD,IAAI,EAAE,SAAS,aAAa,EAAE,GAAG,SAAS,GACzC,cAAc,GAAG,SAAS,CAO5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE;IACnC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,iFAAiF;IACjF,QAAQ,CAAC,KAAK,EAAE,cAAc,GAAG,SAAS,CAAC;IAC3C,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;CACxB,GAAG,MAAM,CAoCT"}
@@ -29,8 +29,9 @@
29
29
  * that disagrees with itself must not pick a silent winner.
30
30
  *
31
31
  * ESCALATE-ON-EVIDENCE. `escalation: { provider, model?, afterRefusals: N }`
32
- * — when the gate refuses N routing picks in ONE turn (`skill.rejected`,
33
- * reachability or posture — real recorded refusals, never vibes), the rest
32
+ * — when the gate refuses N routing picks in ONE turn (`skill.rejected` —
33
+ * reachability, posture, OR a self-call: all three refusal arms count, and
34
+ * they are real recorded refusals, never vibes), the rest
34
35
  * of the turn runs on the escalation brain, `skill.escalated` goes on the
35
36
  * record once, and the next turn's seed de-escalates. The loop the model is
36
37
  * flubbing gets the bigger brain until the turn resolves.
@@ -51,8 +52,15 @@ export interface ProviderChoice {
51
52
  }
52
53
  /** Escalate-on-evidence policy (see the module header). */
53
54
  export interface EscalationPolicy extends ProviderChoice {
54
- /** Gate refusals (`skill.rejected` — reachability OR posture) in ONE turn
55
- * that flip the rest of the turn onto this brain. Integer ≥ 1. */
55
+ /** Gate refusals (`skill.rejected`) in ONE turn that flip the rest of the
56
+ * turn onto this brain. Integer ≥ 1.
57
+ *
58
+ * ALL THREE refusal arms count — an unreachable pick, a pick a `strictness`
59
+ * posture declined, and a SELF-CALL (`read_skill` naming the cursor's own
60
+ * skill). The self-call arm composes a notice rather than a refusal, and it
61
+ * still counts here on purpose: what this budget measures is a model asking
62
+ * the graph where it stands instead of working, which is the same stuck loop
63
+ * whichever arm answered it. */
56
64
  readonly afterRefusals: number;
57
65
  }
58
66
  /** A brain as the fold stores it: `defineSkill({ model })` alone is legal
@@ -1 +1 @@
1
- {"version":3,"file":"skillBrains.d.ts","sourceRoot":"","sources":["../../../../src/core/agent/skillBrains.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAErE;;;uBAGuB;AACvB,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC;IAC/B,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,2DAA2D;AAC3D,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD;uEACmE;IACnE,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED;;4DAE4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;wEACwE;AACxE,MAAM,WAAW,iBAAiB;IAChC;6DACyD;IACzD,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;IACtD,QAAQ,CAAC,UAAU,CAAC,EAAE,gBAAgB,CAAC;IACvC,0EAA0E;IAC1E,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC;CACnC;AAED;;;yCAGyC;AACzC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC;IAChC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,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AC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IACvC,2EAA2E;IAC3E,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;CACpC;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,mBAAmB,GAAG,iBAAiB,GAAG,SAAS,CAiHxF;AAOD;;;qEAGqE;AACrE,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,kBAAkB,EAAE,aAAa,CAAC;CAC5C;AAED,uDAAuD;AACvD,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,QAAQ,CAkC/D;AAED;;6EAE6E;AAC7E,wBAAgB,oBAAoB,CAAC,IAAI,EAAE;IACzC,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IACnC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;IACpC,QAAQ,CAAC,iBAAiB,EAAE,MAAM,CAAC;IACnC,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC,GAAG;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAKxD"}
@@ -11,10 +11,19 @@
11
11
  *
12
12
  * What it appends is the conversation as it really went: the premature
13
13
  * answer as the assistant turn, then a `role: 'user'` teaching message
14
- * naming every unrun step and its note — "finish them, or say why you are
15
- * stopping". At most once per turn (`stepNudgeSpent`); the model stopping
16
- * AGAIN is honored (`steps_unfinished { action: 'accepted' }`, judged by
17
- * the decider) — a procedure is a declared order, never a forced march.
14
+ * naming every unrun step and its note. At most once per turn
15
+ * (`stepNudgeSpent`); the model stopping AGAIN is honored
16
+ * (`steps_unfinished { action: 'accepted' }`, judged by the decider) — a
17
+ * procedure is a declared order, never a forced march.
18
+ *
19
+ * That teaching message is written by `nudgeTeachingMessage` (skillSteps.ts
20
+ * owns every sentence about a procedure) and, since 9.86.0, opens with
21
+ * `STEP_NUDGE_FRAME_PREFIX` from the authorship registry. It has to: this
22
+ * stage puts it in `scope.history` under `role: 'user'`, where it looks like
23
+ * a person's turn to `isSaidByPerson` — and its body lists the skill id and
24
+ * the unrun steps' TOOL NAMES, which is precisely what a routing rule
25
+ * scanning history matches on. The opening is what tells the window's
26
+ * refusal engine and a rule author that nobody said it.
18
27
  *
19
28
  * Pure function apart from its plan closure — no Agent class state.
20
29
  */
@@ -1 +1 @@
1
- {"version":3,"file":"stepNudge.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/stepNudge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,GACvB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,CAuDzC"}
1
+ {"version":3,"file":"stepNudge.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/stepNudge.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,EAKL,KAAK,WAAW,EACjB,MAAM,6CAA6C,CAAC;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,WAAW,EAAE,WAAW,GACvB,CAAC,KAAK,EAAE,UAAU,CAAC,UAAU,CAAC,KAAK,IAAI,CAuDzC"}
@@ -44,6 +44,8 @@
44
44
  */
45
45
  import type { PausableHandler, TypedScope } from 'footprintjs';
46
46
  import type { PermissionChecker } from '../../../adapters/types.js';
47
+ import { type SkillTargetClass } from '../../../lib/injection-engine/skillGraph.js';
48
+ import { type SpokenIds } from '../../../lib/spokenIds.js';
47
49
  import type { ToolProvider } from '../../../tool-providers/types.js';
48
50
  import type { CredentialProvider } from '../../../identity/types.js';
49
51
  import type { ArtifactStore } from '../../../artifacts/types.js';
@@ -114,6 +116,21 @@ export interface ToolCallsHandlerDeps {
114
116
  readonly integrityLedger?: {
115
117
  current: import('../../../integrity/disposition/ledger.js').DispositionLedger | undefined;
116
118
  };
119
+ /**
120
+ * WHICH SKILLS DECLARE EACH TOOL NAME (9.86.0) — tool name → the ids of the
121
+ * skills whose `inject.tools` carry it, from `buildToolRegistry`, the one
122
+ * place that already walks every skill's tool array.
123
+ *
124
+ * Read by `dispatchRoster` and by nothing else: a role that may not see a
125
+ * skill may not be told the names of the tools that skill brought. A name is
126
+ * unnameable only when EVERY declaring skill is hidden, so a tool two skills
127
+ * share survives one of them being hidden.
128
+ *
129
+ * Absent for an agent with no skill-carried tools — the map is built only
130
+ * when at least one skill declares one — and then the roster is the raw
131
+ * dispatch set, exactly as it was.
132
+ */
133
+ readonly toolDeclaringSkills?: ReadonlyMap<string, readonly string[]>;
117
134
  /** Optional external `.toolProvider()` for per-iteration dynamic
118
135
  * tools (skill-scoped, multi-tenant, etc.). Consulted only when
119
136
  * the static registry doesn't have the tool. */
@@ -395,5 +412,159 @@ export interface ToolCallsHandlerDeps {
395
412
  */
396
413
  readonly clearConsentOutstanding?: (service: string) => void;
397
414
  }
415
+ /**
416
+ * Is this `read_skill` target the cursor's own skill AND is that cursor
417
+ * MOUNTED — the one owner of "this call would change nothing" (9.86.0).
418
+ *
419
+ * ── WHY POSITION ALONE IS NOT THE ANSWER ────────────────────────────────
420
+ *
421
+ * `classifySkillTarget` answers a question about POSITION: is the target where
422
+ * the cursor stands? For most of the loop that settles it — the cursor's body
423
+ * is in that call's system prompt and its tools are on that call's wire, so
424
+ * asking to read it activates nothing, moves nothing and reveals nothing the
425
+ * request did not already carry.
426
+ *
427
+ * A PARKED map breaks that. Parking suppresses a map's contribution and leaves
428
+ * the cursor exactly where it was, so at a parked cursor the very same id is a
429
+ * RE-ENGAGEMENT: the gate admits it, the map engages, and the member's body and
430
+ * tools ride again on the next pass. That call moves something, which makes it
431
+ * a capability, which makes it the policy's question to answer.
432
+ *
433
+ * The dispatch gate has known this since 9.59.0 — it tests re-engagement BEFORE
434
+ * its self-call arm, which is this same fact written as two ordered arms. The
435
+ * `skill_read` permission gate, 480 lines upstream, has no arms to order: it
436
+ * asks one question and either spends the policy check or skips it, and it was
437
+ * asking `classifySkillTarget` alone. So a role whose checker hid a skill could
438
+ * have the model un-park and re-activate it. This function is the question that
439
+ * gate now asks, over the parked set `parkedNow` hands both of them.
440
+ *
441
+ * @example
442
+ * ```ts
443
+ * atMountedCursor({ cursor: 'audit', target: 'audit' }); // true — a stay
444
+ * atMountedCursor({ cursor: 'audit', target: 'audit', parked: new Set(['audit']) }); // false — a re-engagement
445
+ * atMountedCursor({ cursor: 'audit', target: 'billing' }); // false — a move
446
+ * ```
447
+ */
448
+ export declare function atMountedCursor(args: {
449
+ /** Where the cursor stands. `undefined` = cold start (nothing is a stay). */
450
+ readonly cursor?: string | undefined;
451
+ /** The id the model asked for. */
452
+ readonly target: string;
453
+ /** Members of every map the kernel holds PARKED — `parkedMemberIds`. */
454
+ readonly parked?: ReadonlySet<string> | undefined;
455
+ }): boolean;
456
+ /**
457
+ * What a call to a name nothing can dispatch gets back (9.86.0).
458
+ *
459
+ * `Unknown tool: X` was the whole sentence, on both dispatch doors, while
460
+ * `mcpServe` — the same library, one directory away — had been answering
461
+ * "Unknown tool 'rm_rf'. Served tools: echo, delete_account." for releases. The
462
+ * model that mistyped a name, or named one from a restored transcript, was told
463
+ * only that it was wrong, never what would have worked, and the cheapest repair
464
+ * (read the roster) was the one it could not make.
465
+ *
466
+ * The roster is the DISPATCH set — `registryByName` plus the provider cache —
467
+ * because that is the true statement about resolution: these are the names that
468
+ * answered to something. It is deliberately NOT the offer: the wire is narrowed
469
+ * by steps, parks and postures, and a held-out tool still dispatches by name, so
470
+ * an offer-shaped list would be a different (and here, false) claim.
471
+ *
472
+ * ── AND IT SAYS "RESOLVED", NOT "COULD BE DISPATCHED" ───────────────────
473
+ *
474
+ * The first draft said "Tools that could be dispatched on that call". Two gates
475
+ * sit between resolution and a tool running — the `tool_call` permission check
476
+ * and the middleware chain — so a name in this map can resolve and still be
477
+ * refused, and the sentence promised the model a dispatch the very next gate
478
+ * would decline. Neither gate is asked here: a `PermissionChecker` is a port
479
+ * (a hub call per name, with its own events and its own audit rows), and
480
+ * spending a whole permission sweep to phrase an error is a cost the sentence
481
+ * does not need. It reports what this map DID — resolve a name — and claims
482
+ * nothing about what would have happened next.
483
+ *
484
+ * The roster is role-filtered before it gets here (`dispatchRoster`), so a tool
485
+ * belonging to a skill the caller's policy hides is never named; and when the
486
+ * filter empties a stocked roster the clause is DROPPED, because "no tool name
487
+ * resolved" would be a denial of what the dispatch map is holding.
488
+ *
489
+ * Anchored past tense, like every other persistent result: "on that call" binds
490
+ * the roster to the finished call the result answers, so a later iteration that
491
+ * adds or drops a provider tool cannot make this sentence wrong. No exhortation
492
+ * — the model does not need to be told to try again.
493
+ *
494
+ * Exported for the producer registry, and used by BOTH dispatch doors so they
495
+ * cannot drift.
496
+ */
497
+ export declare function unknownToolResult(toolName: string, dispatchable: SpokenIds): string;
498
+ /**
499
+ * THE ONE COMPOSER of every `read_skill` refusal (9.86.0) — reachability,
500
+ * posture and tree, from one set of inputs.
501
+ *
502
+ * ── WHY ONE ─────────────────────────────────────────────────────────────
503
+ *
504
+ * There were two, and they disagreed. `skillRefusal` named "Reachable skills:
505
+ * beta" from the graph's raw hop set; `postureRefusal`, forty lines below it in
506
+ * the same gate, answered a model that took that offer up with "read_skill here
507
+ * reaches only the open skills: gamma". Same call, same turn, opposite claims —
508
+ * and the second one cost a refusal from the escalation budget to discover.
509
+ * Neither had heard of the role filter, so both could name a skill the caller's
510
+ * policy hides. One composer, handed the FILTERED sets and the posture that
511
+ * will judge the next pick, cannot contradict itself that way.
512
+ *
513
+ * ── THE TENSE DISCIPLINE (the law `selfCallNotice` is written against) ──
514
+ *
515
+ * A tool result is composed on iteration N and re-read by the model on every
516
+ * later call of the turn, including the tool-less wrap-up. So every clause here
517
+ * is a PAST fact about ONE named call — the call the model made `read_skill`
518
+ * on — anchored by the phrase "that call", never by deixis ("this turn", "the
519
+ * call you just made") and never by a forecast ("you can call", "pick one of
520
+ * these"). What the model may do NEXT is owned by the `read_skill` DESCRIPTION,
521
+ * which is recomposed for every single request and may therefore speak in the
522
+ * present. Two owners, one tense each, and they can no longer disagree.
523
+ *
524
+ * ── AND WHY IT NEVER NAMES A HOP THE POSTURE WOULD DECLINE ──────────────
525
+ *
526
+ * Under `'rails'` the model does not route at all; under `'guard'` it routes
527
+ * only from an outstanding menu. Naming hops there is an offer the very next
528
+ * arm of this gate refuses. So those arms name no hop: they say who DID route,
529
+ * and (when there are any) which open skills were admitted anyway — open skills
530
+ * never reach the posture arm, so that clause cannot be contradicted.
531
+ *
532
+ * ── AND WHY AN EMPTY LIST IS NEVER A DENIAL ─────────────────────────────
533
+ *
534
+ * Every set arrives as {@link SpokenIds}, which carries whether the UNFILTERED
535
+ * set held anything. That is the difference between "nothing was reachable" and
536
+ * "nothing reachable may be named", and this composer used to say the first
537
+ * when the second was true — over a graph that was routing the cursor the whole
538
+ * time. Where the filter empties a set, the clause is omitted. A model told the
539
+ * map is a dead end stops asking for the door it may not be shown.
540
+ *
541
+ * Exported so a producer registry can list it beside the other model-facing
542
+ * composers rather than re-deriving what it says.
543
+ */
544
+ export declare function composeReadSkillRefusal(args: {
545
+ /** The id the model asked for, verbatim. */
546
+ readonly requestedId: string;
547
+ /** Which class the target fell in — from `classifySkillTarget`, the one owner. */
548
+ readonly targetClass: SkillTargetClass;
549
+ /** Where the cursor stood when that call was made. */
550
+ readonly cursorId?: string;
551
+ /** Declared hops from that cursor, through the role filter — and carrying
552
+ * whether the graph held any, so a filtered-to-empty set omits its clause
553
+ * instead of denying the hops the graph is holding. */
554
+ readonly hops: SpokenIds;
555
+ /** Open skills, through the same filter. */
556
+ readonly openIds: SpokenIds;
557
+ /** The mounted graph is a decision `tree()` — no cursor to move. */
558
+ readonly isTree?: boolean;
559
+ /** The posture that declined a reachable hop, when one did (SG-C). */
560
+ readonly posture?: 'guard' | 'rails';
561
+ /** The menu that was outstanding when that call was made, through the same
562
+ * filter. Present only under `'guard'` with a menu the pick missed — and
563
+ * `held: true` with nothing named says a menu WAS outstanding and none of it
564
+ * may be named, which is a third sentence, not the no-menu one. */
565
+ readonly menuOffered?: SpokenIds;
566
+ /** How the turn's start was resolved, for the `'guard'`-without-a-menu arm. */
567
+ readonly routedDecisively?: boolean;
568
+ }): string;
398
569
  export declare function buildToolCallsHandler(deps: ToolCallsHandlerDeps): PausableHandler<TypedScope<AgentState>>;
399
570
  //# sourceMappingURL=toolCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toolCalls.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/toolCalls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AAIH,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,KAAK,EAGV,iBAAiB,EAClB,MAAM,4BAA4B,CAAC;AAapC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,KAAK,EAAc,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAQjF,OAAO,KAAK,EAA+B,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAG9F,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,iCAA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EAAE;IAC5C,4CAA4C;IAC5C,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,kFAAkF;IAClF,QAAQ,CAAC,WAAW,EAAE,gBAAgB,CAAC;IACvC,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;4DAEwD;IACxD,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IACzB,4CAA4C;IAC5C,QAAQ,CAAC,OAAO,EAAE,SAAS,CAAC;IAC5B,oEAAoE;IACpE,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAC1B,sEAAsE;IACtE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACrC;;;wEAGoE;IACpE,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,CAAC;IACjC,+EAA+E;IAC/E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,CAAC;CACrC,GAAG,MAAM,CAyFT;AAkED,wBAAgB,qBAAqB,CACnC,IAAI,EAAE,oBAAoB,GACzB,eAAe,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAy0HzC"}
@@ -35,8 +35,9 @@
35
35
  *
36
36
  * ## What it appends
37
37
  *
38
- * One `role: 'user'` message, authored by the framework, and NOT the fragment
39
- * that preceded it. The model's tool-asking turn was never appended to history
38
+ * One `role: 'user'` message, authored by the framework — carrying the
39
+ * registered opening that says so ({@link WRAP_UP_FRAME_PREFIX}) — and NOT the
40
+ * fragment that preceded it. The model's tool-asking turn was never appended to history
40
41
  * (nothing ran, so nothing round-tripped), and putting the half-sentence back
41
42
  * as an assistant turn would invite the model to continue it — which is the
42
43
  * opposite of the ask. The fragment is not lost: it is committed as
@@ -46,6 +47,7 @@
46
47
  */
47
48
  import type { TypedScope } from 'footprintjs';
48
49
  import type { AgentState } from '../types.js';
50
+ export { WRAP_UP_FRAME_PREFIX } from '../../../lib/saidByPerson.js';
49
51
  /**
50
52
  * The instruction the wrap-up call carries, verbatim.
51
53
  *
@@ -54,6 +56,35 @@ import type { AgentState } from '../types.js';
54
56
  * starts lying. It is written to be answerable from what the turn already
55
57
  * has: no new lookups, an honest split between done and not-done, and room
56
58
  * for the thing the person most needs to hear.
59
+ *
60
+ * ## Why it opens with a bracketed frame (9.86.0)
61
+ *
62
+ * This message is appended to `scope.history`. Everything appended there is
63
+ * re-read on every later call of the turn, and it wears `role: 'user'` —
64
+ * so until it carried a registered opening, `isSaidByPerson` credited it to a
65
+ * PERSON. Two readers were wrong at once: the window's refusal engine could
66
+ * pin its "current request" on the framework's own instruction and let the
67
+ * real request be dropped underneath it, and a routing rule written the
68
+ * documented way — `saidByPerson(ctx).some((m) => m.content.includes(…))` —
69
+ * matched on the library's bookkeeping. {@link WRAP_UP_FRAME_PREFIX} is what
70
+ * both readers match; it is imported, never retyped.
71
+ *
72
+ * ## Why the words changed with it
73
+ *
74
+ * The old sentence — "Your action budget for this turn is exhausted. Do not
75
+ * request tools. Give your best final answer…" — was composed once and read
76
+ * many times, which makes it a PREDICTION. "Do not request tools" is an
77
+ * instruction about a wire that is decided at request assembly, and a turn
78
+ * that goes on to a schema retry or an evidence recheck re-reads it beside a
79
+ * later call it never described. So every clause now states a fact about the
80
+ * call the frame was written for, in the past tense, and the ask is expressed
81
+ * as what THAT call was for. The withholding itself is unchanged: `callLLM`
82
+ * serves the wrap-up with an empty tool list because `wrapUpAsked` is set,
83
+ * never because a sentence asked the model to abstain.
84
+ *
85
+ * Checked, not asserted: `test/lib/injection-engine/userTurnProducers.test.ts`
86
+ * runs this string through `unprovable(text, { channel: 'injected-turn',
87
+ * lifetime: 'persistent-history' })`.
57
88
  */
58
89
  export declare const WRAP_UP_INSTRUCTION: string;
59
90
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"wrapUp.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/wrapUp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAE9C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,QAG6B,CAAC;AAE9D;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAW,WAAW,UAAU,CAAC,KAAG,IAmC3D,CAAC"}
1
+ {"version":3,"file":"wrapUp.d.ts","sourceRoot":"","sources":["../../../../../src/core/agent/stages/wrapUp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI9C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAK9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,mBAAmB,QAItB,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,WAAW,UAAW,WAAW,UAAU,CAAC,KAAG,IAmC3D,CAAC"}
@@ -706,9 +706,18 @@ export interface AgentOptions {
706
706
  * With this on, the run spends ONE more LLM call with **the tools withheld**
707
707
  * and this instruction appended, then hands back what comes back:
708
708
  *
709
- * > *Your action budget for this turn is exhausted. Do not request tools.
710
- * > Give your best final answer from what you have: what you completed, what
711
- * > remains undone, and anything the person should know.*
709
+ * > *[budget exhausted — the action budget was exhausted before this call,
710
+ * > so no tools were offered on it. This call was for the final answer, from
711
+ * > what the messages above already hold: what was completed, what remained
712
+ * > undone, and anything the person should know.]*
713
+ *
714
+ * Reworded in 9.86.0. The message lives in `history` and is re-read on every
715
+ * later call of the turn, so it opens with the registered marker that says
716
+ * the library wrote it (`WRAP_UP_FRAME_PREFIX` — otherwise a routing rule
717
+ * and the window's own refusal engine read it as the person's request), and
718
+ * every clause is a past fact about the call it was written for rather than
719
+ * a standing instruction. The withholding is unchanged: it happens at
720
+ * request assembly, not because a sentence asked for it.
712
721
  *
713
722
  * That call is exempt from `maxIterations` by design — it cannot loop,
714
723
  * because with no tools on the wire there is nothing for the model to ask
@@ -1280,6 +1289,13 @@ export interface AgentState {
1280
1289
  /** Tool schemas resolved by the tools slot subflow each iteration
1281
1290
  * (registry + injection-supplied). Used by callLLM. */
1282
1291
  dynamicToolSchemas: readonly LLMToolSchema[];
1292
+ /** Which skill ids the caller's role may NOT see this iteration (9.86.0),
1293
+ * resolved ONCE by the tools slot and published here so every model-facing
1294
+ * composer applies the same filter. Read by the `read_skill` gate before it
1295
+ * names any id — in a refusal or in the `skill.rejected` payload. Absent
1296
+ * for every agent whose `PermissionChecker` does not govern `'skill_read'`
1297
+ * (and for all of them the gate's sets are unfiltered, exactly as before). */
1298
+ hiddenSkillIds?: readonly string[];
1283
1299
  /** Provider-agnostic cache markers emitted by CacheDecision subflow.
1284
1300
  * Cleared each iteration by the SkipCaching branch when the
1285
1301
  * CacheGate decides to skip (kill switch / hit-rate / churn). */
@@ -1352,7 +1368,8 @@ export interface AgentState {
1352
1368
  * (9.18.0). Written by the StepNudge branch; reset at seed. Absent on
1353
1369
  * agents with no stepped skill. */
1354
1370
  stepNudgeSpent?: boolean;
1355
- /** Gate refusals (`skill.rejected` — reachability OR posture) this turn
1371
+ /** Gate refusals (`skill.rejected` — reachability, posture or a self-call,
1372
+ * all three arms) this turn
1356
1373
  * (9.19.0). Counted by the tool-calls stage, reset at seed, present ONLY
1357
1374
  * when an escalation brain is declared — the refusal budget that trips
1358
1375
  * the flip. */