@gaunt-sloth/core 2.0.0-alpha.24 → 2.0.0-alpha.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 (109) hide show
  1. package/README.md +1 -1
  2. package/dist/config/colour.d.ts +38 -0
  3. package/dist/config/colour.js +36 -0
  4. package/dist/config/colour.js.map +1 -0
  5. package/dist/config/defaults.d.ts +1 -0
  6. package/dist/config/defaults.js +1 -0
  7. package/dist/config/defaults.js.map +1 -1
  8. package/dist/config/loader.d.ts +13 -6
  9. package/dist/config/loader.js +171 -28
  10. package/dist/config/loader.js.map +1 -1
  11. package/dist/config/mouse.d.ts +50 -0
  12. package/dist/config/mouse.js +44 -0
  13. package/dist/config/mouse.js.map +1 -0
  14. package/dist/config/schema.d.ts +2372 -114
  15. package/dist/config/schema.js +845 -16
  16. package/dist/config/schema.js.map +1 -1
  17. package/dist/config/shell-policy.d.ts +466 -116
  18. package/dist/config/shell-policy.js +273 -62
  19. package/dist/config/shell-policy.js.map +1 -1
  20. package/dist/config/tool-descriptions.d.ts +165 -0
  21. package/dist/config/tool-descriptions.js +229 -0
  22. package/dist/config/tool-descriptions.js.map +1 -0
  23. package/dist/config/types.d.ts +36 -1
  24. package/dist/config/types.js.map +1 -1
  25. package/dist/config.d.ts +3 -0
  26. package/dist/config.js +3 -0
  27. package/dist/config.js.map +1 -1
  28. package/dist/core/GthAbstractAgent.d.ts +59 -1
  29. package/dist/core/GthAbstractAgent.js +72 -0
  30. package/dist/core/GthAbstractAgent.js.map +1 -1
  31. package/dist/core/GthAgentRunner.d.ts +341 -58
  32. package/dist/core/GthAgentRunner.js +817 -149
  33. package/dist/core/GthAgentRunner.js.map +1 -1
  34. package/dist/core/GthLangChainAgent.d.ts +16 -0
  35. package/dist/core/GthLangChainAgent.js +72 -2
  36. package/dist/core/GthLangChainAgent.js.map +1 -1
  37. package/dist/core/approvals/annotations.d.ts +122 -0
  38. package/dist/core/approvals/annotations.js +137 -0
  39. package/dist/core/approvals/annotations.js.map +1 -0
  40. package/dist/core/approvals/grants.d.ts +216 -0
  41. package/dist/core/approvals/grants.js +469 -0
  42. package/dist/core/approvals/grants.js.map +1 -0
  43. package/dist/core/approvals/matcher.d.ts +202 -0
  44. package/dist/core/approvals/matcher.js +267 -0
  45. package/dist/core/approvals/matcher.js.map +1 -0
  46. package/dist/core/approvals/mcpSubjects.d.ts +40 -0
  47. package/dist/core/approvals/mcpSubjects.js +99 -0
  48. package/dist/core/approvals/mcpSubjects.js.map +1 -0
  49. package/dist/core/approvals/toolAnnotationSources.d.ts +105 -0
  50. package/dist/core/approvals/toolAnnotationSources.js +277 -0
  51. package/dist/core/approvals/toolAnnotationSources.js.map +1 -0
  52. package/dist/core/approvals/toolHost.d.ts +46 -0
  53. package/dist/core/approvals/toolHost.js +108 -0
  54. package/dist/core/approvals/toolHost.js.map +1 -0
  55. package/dist/core/launchBanner.d.ts +120 -0
  56. package/dist/core/launchBanner.js +399 -0
  57. package/dist/core/launchBanner.js.map +1 -0
  58. package/dist/core/plainToolIndication.js +13 -7
  59. package/dist/core/plainToolIndication.js.map +1 -1
  60. package/dist/core/shell/approvalStop.d.ts +75 -0
  61. package/dist/core/shell/approvalStop.js +108 -0
  62. package/dist/core/shell/approvalStop.js.map +1 -0
  63. package/dist/core/shell/arity.d.ts +6 -0
  64. package/dist/core/shell/arity.js +20 -6
  65. package/dist/core/shell/arity.js.map +1 -1
  66. package/dist/core/shell/denylist.d.ts +11 -0
  67. package/dist/core/shell/denylist.js +37 -0
  68. package/dist/core/shell/denylist.js.map +1 -0
  69. package/dist/core/shell/normalize.d.ts +41 -1
  70. package/dist/core/shell/normalize.js +58 -4
  71. package/dist/core/shell/normalize.js.map +1 -1
  72. package/dist/core/shell/openWorld.d.ts +138 -0
  73. package/dist/core/shell/openWorld.js +523 -0
  74. package/dist/core/shell/openWorld.js.map +1 -0
  75. package/dist/core/shell/rater.d.ts +560 -0
  76. package/dist/core/shell/rater.js +895 -0
  77. package/dist/core/shell/rater.js.map +1 -0
  78. package/dist/core/shell/raterModel.d.ts +41 -0
  79. package/dist/core/shell/raterModel.js +51 -0
  80. package/dist/core/shell/raterModel.js.map +1 -0
  81. package/dist/core/shell/rejection.d.ts +66 -0
  82. package/dist/core/shell/rejection.js +38 -0
  83. package/dist/core/shell/rejection.js.map +1 -0
  84. package/dist/core/types.d.ts +71 -9
  85. package/dist/core/types.js.map +1 -1
  86. package/dist/runtime/askStructured.d.ts +8 -7
  87. package/dist/runtime/askStructured.js +8 -7
  88. package/dist/runtime/askStructured.js.map +1 -1
  89. package/dist/runtime/conversation.js +89 -76
  90. package/dist/runtime/conversation.js.map +1 -1
  91. package/dist/runtime/singleShot.js +71 -60
  92. package/dist/runtime/singleShot.js.map +1 -1
  93. package/dist/utils/ProgressIndicator.d.ts +21 -0
  94. package/dist/utils/ProgressIndicator.js +30 -3
  95. package/dist/utils/ProgressIndicator.js.map +1 -1
  96. package/dist/utils/consoleUtils.d.ts +30 -0
  97. package/dist/utils/consoleUtils.js +27 -2
  98. package/dist/utils/consoleUtils.js.map +1 -1
  99. package/dist/utils/systemUtils.d.ts +17 -0
  100. package/dist/utils/systemUtils.js +17 -0
  101. package/dist/utils/systemUtils.js.map +1 -1
  102. package/package.json +5 -2
  103. package/schema/gsloth-config.schema.json +1216 -417
  104. package/dist/core/shell/allowlist.d.ts +0 -75
  105. package/dist/core/shell/allowlist.js +0 -187
  106. package/dist/core/shell/allowlist.js.map +0 -1
  107. package/dist/core/shell/judge.d.ts +0 -161
  108. package/dist/core/shell/judge.js +0 -261
  109. package/dist/core/shell/judge.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"GthAbstractAgent.js","sourceRoot":"","sources":["../../src/core/GthAbstractAgent.ts"],"names":[],"mappings":"AACA,OAAO,EASL,WAAW,GAEZ,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EACjB,yBAAyB,EACzB,gBAAgB,GAEjB,MAAM,uBAAuB,C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C,GAAI,aAA6B,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpE,CAAC;iBAAM,CAAC;gBACN,yBAAyB;gBACzB,IAAI,UAAU,GAAG,aAAwC,CAAC;gBAC1D,8DAA8D;gBAC9D,IAAK,UAAkB,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,EAAE,CAAC;oBAClD,gDAAgD;oBAChD,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC;oBACzF,MAAM,QAAQ,GAAG,KAAK,EAAE,MAAe,EAAE,OAAwB,EAAE,EAAE;wBACnE,MAAM,KAAK,GAAG,MAAM,SAAS,CAAC,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,CAAC,CAAC;wBACzD,OAAO,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;oBACnE,CAAC,CAAC;oBACF,8DAA8D;oBAC9D,UAAU,CAAC,MAAM,GAAG,QAAe,CAAC;oBACpC,8DAA8D;oBAC9D,UAAU,CAAC,IAAI,GAAG,QAAe,CAAC;gBACpC,CAAC;gBACD,cAAc,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAClC,CAAC;QACH,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF"}
@@ -1,6 +1,7 @@
1
- import { GthConfig } from '#src/config.js';
1
+ import { type AllowlistCounts, type ApprovalRung, GthConfig, type McpAnnotationTrustChange, type McpAnnotationTrustView, type ResolvedApprovals, type ToolAnnotationHint } from '#src/config.js';
2
2
  import { BaseCheckpointSaver } from '@langchain/langgraph';
3
3
  import { AgentResolvers, AgentStreamEvent, GthAgentFactory, GthAgentInterface, GthCommand, GthRunStats, Message, StatusUpdateCallback, ToolApprovalCallback } from '#src/core/types.js';
4
+ import { type ApprovalGrant } from '#src/core/approvals/grants.js';
4
5
  /**
5
6
  * Agent simplifies interaction with LLM and reduces it to calling a few methods
6
7
  * {@link GthAgentRunner#init} and {@link GthAgentRunner#processMessages}.
@@ -29,30 +30,49 @@ export declare class GthAgentRunner {
29
30
  */
30
31
  private lastRunStats;
31
32
  /**
32
- * EXT-12 — runtime, session-scoped auto-approve flag driven by the `/auto-approve` (a.k.a.
33
- * `/yolo`) slash command. Because the shell tool stays gated (in `interruptOn`) in the
34
- * interactive `code` mode, this flag is consulted at the TOP of {@link decideToolApproval}:
35
- * when ON, a gated `run_shell_command` is auto-approved WITHOUT prompting for the rest of this
36
- * runner's life. Never persisted, but INITIALIZED at {@link init} from the static
37
- * `run_shell_command.yolo` config knob — so a config that pre-enables auto-approval still keeps the
38
- * tool gated and therefore toggleable (`/auto-approve off` restores the per-command prompt).
33
+ * CFG-27the runtime, session-scoped approvals posture, seeded at {@link init} from
34
+ * {@link resolveApprovals} and thereafter switchable for the session by `/approvals <rung>`.
35
+ * The shell tool stays gated (in `interruptOn`) at EVERY rung, so this is consulted at the top
36
+ * of {@link decideToolApproval} and a config that pre-selects `bypass` remains switchable back
37
+ * mid-session. Never persisted.
38
+ *
39
39
  * It does NOT disable the hardline floor — catastrophic commands are still refused at exec time
40
- * in `GthDevToolkit.executeCommand`.
40
+ * in `GthDevToolkit.executeCommand` under every rung.
41
+ */
42
+ private sessionApprovals;
43
+ /**
44
+ * CFG-26 — the model the AI rater rates with, when `approvals.rater.profile` names an identity
45
+ * profile. Resolved ONCE at {@link init} (never mid-turn) and handed to `rateShellCommand`;
46
+ * `undefined` means no profile is configured and the rater uses the session model.
47
+ */
48
+ private raterModel;
49
+ /**
50
+ * EXT-66 — how many rating calls this session gave up on. Counted so the notice can say "3 times
51
+ * this session" rather than repeating an identical line, and so a silent drift toward
52
+ * escalate-everything has a number attached to it.
53
+ */
54
+ private raterTimeouts;
55
+ /**
56
+ * EXT-71 §3.1/§6 — what the escalation menu granted at run time, for the life of THIS runner
57
+ * instance: {@link ApprovalEntry} objects, never prefixes, and never anything from config (the
58
+ * declared lists are read-only input consulted straight from the posture). Instance-scoped so
59
+ * concurrent sessions (ACP / AG-UI multi-session) cannot stomp each other's approvals.
41
60
  */
42
- private sessionYolo;
61
+ private readonly sessionGrants;
43
62
  /**
44
- * EXT-9 Tier-2 session allow-list approved command prefixes that auto-approve for the
45
- * life of THIS runner instance. Instance-scoped (not module-global) so concurrent
46
- * sessions (ACP / AG-UI multi-session) cannot stomp each other's approvals.
63
+ * CFG-27 §3 what the escalation menu's *always reject* choice adds at run time, in the same
64
+ * grammar ([[TUI-C26]] wires that writer; the store speaks it already). The entries DECLARED in
65
+ * `approvals.deny` are not here — they are read-only config input, matched from the posture — and
66
+ * both are handed to the same matcher, so a runtime refusal and a declared one are one list.
47
67
  */
48
- private readonly sessionAllowlist;
68
+ private denyGrants;
49
69
  /**
50
- * EXT-9 Tier-2 persisted (`always`) allow-list, loaded lazily on first use from
51
- * `.gsloth/.gsloth-settings/shell-allowlist.json`. Null until the shell tool is gated
52
- * and the allow-list is enabled; null also when persistence is disabled by config.
70
+ * The persisted (`always`) grant store, loaded lazily on first use from
71
+ * `.gsloth/.gsloth-settings/shell-allowlist.json`. Null until a gated call actually needs it, and
72
+ * null when the file cannot be loaded at all (in which case `always` grants degrade to session).
53
73
  */
54
- private persistedAllowlist;
55
- private persistedAllowlistLoaded;
74
+ private persistedGrants;
75
+ private persistedGrantsLoaded;
56
76
  /**
57
77
  * @param agentFactory Produces the {@link GthAgentInterface} the runner drives.
58
78
  * Defaults to the lean {@link GthLangChainAgent} (core). `@gaunt-sloth/agent`
@@ -67,21 +87,94 @@ export declare class GthAgentRunner {
67
87
  */
68
88
  setToolApprovalCallback(callback: ToolApprovalCallback | null): void;
69
89
  /**
70
- * EXT-12flip the runtime, session-scoped auto-approve flag (the `/auto-approve` /
71
- * `/yolo` slash command with no argument). When ON, gated `run_shell_command` calls
72
- * auto-approve without prompting for the rest of this session; the hardline floor still applies
73
- * at exec time. Returns the NEW state so the caller can render a notice. Session-scoped only —
74
- * nothing is written to config.
90
+ * CFG-27switch the session-scoped rung (`/approvals <rung>`). Idempotent; returns the NEW
91
+ * rung so the caller can render a notice. Session-scoped only nothing is written to config,
92
+ * and the declared allow/deny lists are unaffected (they are config input, not session state).
93
+ */
94
+ setSessionApprovalRung(rung: ApprovalRung): ApprovalRung;
95
+ /** CFG-27 — the session's current approvals posture (rung + rater profile + declared lists). */
96
+ getSessionApprovals(): ResolvedApprovals;
97
+ /**
98
+ * CFG-26 — the allow-list sizes for the `/approvals` display: how many command prefixes the
99
+ * human has trusted this session, and how many are persisted in the project file.
100
+ *
101
+ * READ-ONLY BY CONSTRUCTION: it reports the persisted count only when the store has ALREADY
102
+ * been loaded (or persistence is on and it can be read), and never through a path that would
103
+ * CREATE the store as a side effect of showing a display — a status command must not mutate
104
+ * session state. `always: undefined` therefore means "not loaded / persistence off", which the
105
+ * caller renders as `—` rather than a misleading `0`.
106
+ */
107
+ getAllowlistCounts(): AllowlistCounts;
108
+ /**
109
+ * CFG-27 — the session's deny entries for display: the declared `approvals.deny` entries
110
+ * (rendered one line each) followed by whatever the escalation menu's *always reject* added at
111
+ * run time. Both refuse a call, so both are shown.
112
+ */
113
+ getDenylist(): string[];
114
+ /**
115
+ * §3/§4.7.4 — **the grants themselves**, for an approvals view that shows *what* was granted,
116
+ * *when*, and *under which effective annotations*. The counterpart of {@link getAllowlistCounts},
117
+ * which answers only how many.
118
+ *
119
+ * The declared config lists are deliberately NOT here. They are something a human wrote and
120
+ * reviewed, they carry no `grantedAt` and no scope, and `getAllowlistCounts` already counts them
121
+ * alongside these; mixing them in would present a config line as something the session granted.
122
+ *
123
+ * **Read-only in both senses.** It never loads the persisted store — same rule as
124
+ * {@link getAllowlistCounts}: a display must not create the store in order to show it, so a
125
+ * session that has not yet needed the file lists its session grants alone. And every grant is
126
+ * **deep-copied on the way out**, because the stores hand back their live records: the copy on the
127
+ * way in is what makes a snapshot private to its grant, and handing the same object to a renderer
128
+ * would put what the gate matches against one property assignment away from any consumer.
129
+ */
130
+ getGrants(): ApprovalGrant[];
131
+ /**
132
+ * §4.7.1 — **which of each server's annotation hints this session believes**, for display.
133
+ *
134
+ * Every key either side names is listed: a configured `mcpServers` key with no policy of its own
135
+ * (which resolves through `defaults`), and a policy key naming a server the config does not have
136
+ * (which is what a typo looks like). Resolution is {@link trustedAnnotationHints}, the same
137
+ * function the gate derives effective annotations through, so the display cannot claim a
138
+ * relationship the gate does not act on.
139
+ */
140
+ getMcpAnnotationTrust(): McpAnnotationTrustView;
141
+ /**
142
+ * §4.7.1 — **believe, or stop believing, specific hints from one server**, for the life of this
143
+ * session. The runtime half of `approvals.mcp.servers.<key>.trustAnnotations` (§9), so a user can
144
+ * do from the TUI what they can do in config.
145
+ *
146
+ * **Per hint, never per server.** `hints` names the hints this call moves and leaves every other
147
+ * hint of that server's exactly as it was, because believing a server's `readOnlyHint` while
148
+ * disbelieving its `openWorldHint` is a coherent position and the common one. A "trust this
149
+ * server" flag is the design §4.7.1 rejects.
150
+ *
151
+ * **The previous set is what was IN FORCE, resolved through `defaults`.** A server not named
152
+ * under `servers` inherits `defaults`, and naming it makes it state its relationship in full (§9)
153
+ * — so seeding from the empty set would mean that believing one more hint silently withdrew every
154
+ * hint `defaults` had granted, which is a weakening the user did not ask for and would invalidate
155
+ * their grants.
156
+ *
157
+ * **Session-scoped only.** Nothing is written to config: the declared block is read-only input
158
+ * (§9.1), exactly as the rung is.
159
+ *
160
+ * A trusted external annotation still never grants more than the same annotation grants one of
161
+ * our own built-ins — that holds in `core/approvals/annotations.ts` by construction, and this
162
+ * changes only which hints are read.
75
163
  */
76
- toggleSessionYolo(): boolean;
164
+ setMcpAnnotationTrust(server: string, hints: readonly ToolAnnotationHint[], believe: boolean): McpAnnotationTrustChange;
77
165
  /**
78
- * EXT-12set the session-scoped auto-approve flag explicitly (the `/auto-approve on|off`
79
- * slash command). Idempotent; returns the NEW state so the caller can render a notice.
80
- * Session-scoped onlynothing is written to config.
166
+ * §4.7.4which of this server's saved approvals the trust now in force weakens, for the notice
167
+ * that reports a trust change. **It predicts; it never removes.** The removal stays where Task
168
+ * 4 put it at the call being decided — because that is the only moment the tool's declaration
169
+ * can be read for certain; here a server that is merely offline declares nothing and would read
170
+ * as having weakened everything.
171
+ *
172
+ * It compares through the same two functions the gate does: the effective-annotation source built
173
+ * from the posture as it stands *after* the change, and `annotationWeakenings`. A second
174
+ * comparison written for the display is how a warning comes to describe a rule the gate does not
175
+ * have.
81
176
  */
82
- setSessionYolo(on: boolean): boolean;
83
- /** EXT-12 — current state of the runtime session-scoped auto-approve flag (see {@link toggleSessionYolo}). */
84
- isSessionYolo(): boolean;
177
+ private grantsWeakenedByCurrentTrust;
85
178
  /**
86
179
  * Init is split into a separate method. This may create a number of connections,
87
180
  * and we'd better have an instance by that moment, for the case things will go wrong,
@@ -107,44 +200,231 @@ export declare class GthAgentRunner {
107
200
  * streamed across all resume turns (empty when nothing was resumed).
108
201
  *
109
202
  * No-ops (returns '') when the agent does not support interrupts (`getPendingToolInterrupts`/
110
- * `streamResume` absent), so the lean agent and non-HITL configs are unaffected.
203
+ * `streamResume` absent) that is the only exemption. As of EXT-52 BOTH backends gate
204
+ * `run_shell_command` and expose the interrupt surface, so the lean (default) agent is now
205
+ * exactly the agent this loop serves; only an agent implementation without those methods
206
+ * (e.g. a test double) skips it.
111
207
  */
112
208
  private resolveToolInterrupts;
113
209
  /**
114
- * Decide a single pending tool call (EXT-9 Tier-2). For the opt-in `run_shell_command`,
115
- * consult the scoped allow-list FIRST: if the command's classified prefix is already
116
- * approved (session or persisted `always`) and survives the safe-bin anti-widening
117
- * re-validation, auto-approve SILENTLY (no human prompt). Otherwise fall through to the
118
- * human callback; when the human grants `session`/`always` scope, record the command's
119
- * classified prefix into the matching store so future flag-variants stop re-prompting.
210
+ * EXT-71 §3.1/§3.2, EXT-70 §4.7.5 — the subject a pending tool call presents to the rule matcher.
211
+ *
212
+ * A gated `run_shell_command` is a **shell** subject and nothing else: it is matched by `shell`
213
+ * entries, against the command. It is deliberately NOT also offered as a `tool` subject named
214
+ * `run_shell_command`, which would create a second allow path to every shell command carrying a
215
+ * different §3.2 `rate` default and a match that never saw the command it was approving.
216
+ *
217
+ * **Everything else splits by provenance**, which is the distinction §4.7.1 rests on: `tool` is
218
+ * the TRUSTED provenance, read verbatim, so an MCP tool arriving as one would be asking the
219
+ * trusted path for a third party's annotations — a gate any server can opt itself out of. Every
220
+ * MCP-namespaced name therefore becomes an `mcpTool` subject carrying the user's own `mcpServers`
221
+ * key, and one whose server cannot be resolved stays an `mcpTool` subject under an unnameable
222
+ * server rather than falling back to `tool` (see `approvalSubjectForToolName`).
223
+ *
224
+ * **The host (§4.7.4)** is attached here, so the one subject the whole decision runs on carries
225
+ * it: the rule matcher treats a `host` on an entry as an additional exact-match condition, and a
226
+ * grant the menu writes records it. A call naming no single host has none, which fails toward a
227
+ * prompt at both sites.
228
+ *
229
+ * Widening which tools the gate actually suspends on is still [[EXT-30]]; this decides what a
230
+ * suspended call *is* whenever one arrives.
231
+ *
232
+ * @param hosts Every distinct host the call's arguments name ({@link toolCallHosts}).
233
+ */
234
+ private approvalSubjectFor;
235
+ /**
236
+ * §4.7.5 — the user's own `mcpServers` keys, the only identity a server has here. Own enumerable
237
+ * keys via `Object.keys`, so nothing inherited can pose as a configured server.
238
+ */
239
+ private configuredMcpServerKeys;
240
+ /**
241
+ * EXT-70 §4.7.1 — the source a `hint` entry reads a call's EFFECTIVE annotations through, built
242
+ * from the session's `approvals.mcp` block and the two declared-annotation lookups.
243
+ *
244
+ * Built per decision rather than cached at {@link init}, for two reasons that both bite: the
245
+ * agent registers its tools *inside* `agent.init()`, so an init-time snapshot would be empty; and
246
+ * a re-init re-resolves the tool list, which for MCP may hand back different declarations.
247
+ *
248
+ * The two lookups are deliberately different in kind. `builtIn` reads OUR OWN authored table and
249
+ * never the bound tool list — the bound list contains every server's tools, and a `builtIn`
250
+ * lookup over it would read a third party's declaration through the trusted-verbatim path.
251
+ * `mcp` reads what the servers declared, keyed by the registered tool name so the server key is
252
+ * never split apart and re-joined differently.
253
+ */
254
+ private effectiveToolAnnotationSource;
255
+ /**
256
+ * Decide a single pending tool call. Spec order — **deny → bypass → escalate → allow → rater →
257
+ * human prompt**, with the hardline floor at exec time regardless. The two adjacencies that carry
258
+ * the design are that deny comes BEFORE `bypass` and escalate comes AFTER it:
259
+ *
260
+ * 1. **deny** (§3) — a declared entry or a runtime *always reject* grant is refused with no
261
+ * prompt and no rating call. It is consulted FIRST, and it is the one
262
+ * check that **still applies under `bypass`**: choosing `bypass` says *"stop asking me"*, not
263
+ * *"forget what I told you never to do"*. A deny entry MAY match a compound command, because a
264
+ * prohibition that catches something unresolvable errs in the direction that costs nothing.
265
+ * 2. **`bypass`** — the gate is off for this session; approve at scope `once`.
266
+ * 3. **escalate** (§3.2) — a declared entry always asks the human, whatever the rung would have
267
+ * done, **including outranking the automatic grants of `read-only` and `write`** and any allow
268
+ * entry that also matched. It goes straight to the human with **no rating call**, and it never
269
+ * enters the `full-auto` negotiation. It is **inert at `bypass`**, which is why it sits below
270
+ * the rung check: the rung chosen for this session wins, and a stop that must survive `bypass`
271
+ * is a deny entry and only that.
272
+ * 4. **allow** (§3, §3.2) — a declared entry or a grant the human made at an earlier prompt this
273
+ * session (or persisted), matched against the whole normalized command and only when that
274
+ * command statically resolves. An allow match settles the human's part: no prompt. Whether the rater
275
+ * still reviews the call is the entry's own `rate` (§3.2) — honored at the rater rungs and
276
+ * inert at the deterministic ones, so no entry can smuggle a model call into `read-only` or
277
+ * `write` — and a rated allow match is a TRIPWIRE, not a re-adjudication
278
+ * ({@link mapAllowMatchedVerdictToAction}).
279
+ * 5. **auto-rater** (`auto-safe` / `full-auto` only) — `safe` approves, `destructive` and
280
+ * `catastrophic` escalate, and `attack` HALTS the run ({@link AttackHaltError}). The other
281
+ * three rungs consult no model at all. At those same two rungs a **tool** call is instead
282
+ * floored deterministically by §4.7.3's open-world rule ({@link openWorldToolFloorReason} into
283
+ * {@link applyDestructiveFloor} — the one floor the shell path also reaches): a call whose
284
+ * effective `openWorldHint` is true is `destructive`, whatever its `readOnlyHint` says.
285
+ * 6. **human prompt** — the approval callback; when the human grants `session`/`always` scope,
286
+ * **that command** is recorded as an `exact` entry (§3.1/§6 — the menu never widens), so the
287
+ * same command stops re-prompting and a longer variant of it still asks.
120
288
  *
121
- * When no human callback is wired (non-TTY exec run) and nothing is allow-listed, reject —
122
- * never auto-approve. Non-shell tools (or any tool when the allow-list is disabled) skip the
123
- * allow-list and go straight to the human callback / default-reject, preserving prior behaviour.
289
+ * §6.2 — where no human can answer (CI, a one-shot run, a server), an escalation is **not** a
290
+ * rejection handed back to the model: it is an immediate non-zero exit
291
+ * ({@link NonInteractiveEscalationError}) carrying the command, the rating and its reason. No
292
+ * prompt, no waiting, and never a timeout into approval. Declaring commands in `approvals.allow`
293
+ * is the supported way to make a pipeline pass.
124
294
  *
125
295
  * Hardline catastrophic commands remain refused at exec time regardless of any approval here
126
296
  * (defense in depth in `GthDevToolkit.executeCommand`), so an allow-listed `rm -rf /` still
127
297
  * cannot run.
128
298
  */
129
299
  private decideToolApproval;
130
- /** Whether the EXT-10 LLM-as-judge safety gate is enabled for the active command's config. */
131
- private isShellJudgeOn;
132
- /** Whether the EXT-9 Tier-2 allow-list is enabled for the active command's devTools config. */
133
- private isShellAllowlistOn;
134
300
  /**
135
- * Lazily load (once per instance) the persisted `always` allow-list, unless persistence is
136
- * disabled by config. Returns null when persistence is off so `always` grants behave as
137
- * `session` (in-memory only).
301
+ * One rating call, with EXT-66's timeout reporting attached. Extracted so the §3.2 tripwire (a
302
+ * rated allow match) and the ordinary rater path cannot drift apart in WHAT they hand the rater —
303
+ * only in what they do with the answer.
304
+ */
305
+ private rateCommand;
306
+ /**
307
+ * EXT-58 (§4.3/§4.4) — the built-in tools already granted at the session's CURRENT rung, as
308
+ * names plus one-line locally-authored descriptions, for the rater prompt.
309
+ *
310
+ * Two filters make this safe to place outside the rater's fenced untrusted block:
311
+ * - the names come from what the agent actually registered
312
+ * ({@link GthAgentInterface.getRegisteredToolNames}), so the rater can only ever offer a tool
313
+ * this session has;
314
+ * - the descriptions come from core's own `BUILT_IN_TOOL_SUMMARIES` table, so no MCP, custom or
315
+ * A2A tool's own (attacker-influenceable) description can reach the prompt.
316
+ *
317
+ * Empty when the agent does not expose its tools — the rater then gets no list and, per the
318
+ * prompt, offers nothing.
319
+ */
320
+ private getGrantedBuiltInTools;
321
+ /**
322
+ * §3/§3.3 — the three rule lists this session decides by: the DECLARED entries from config
323
+ * (read-only input) concatenated with the runtime grants the escalation menu made. One set of
324
+ * lists, handed to the one comparison engine; the concatenation cannot change any outcome
325
+ * because `resolveApprovalRules` consults every deny entry before any escalate entry and every
326
+ * escalate entry before any allow entry.
327
+ *
328
+ * The persisted store is loaded here rather than at {@link init} — lazily, once per instance, and
329
+ * NEVER at `bypass`, where the allow list is moot and a session that has switched the gate off
330
+ * should not be reading or rewriting the project's grant file.
331
+ */
332
+ private approvalRuleLists;
333
+ /**
334
+ * Lazily load (once per instance) the persisted `always` grant store.
335
+ *
336
+ * CFG-27 removed the `persistAllowlist` switch: §3 makes persistence a per-decision choice in
337
+ * the escalation menu (`approve` forgets, `always approve` persists), and a global "never
338
+ * persist" setting would only duplicate a keystroke. Returns null when the store cannot be
339
+ * loaded at all, in which case `always` grants degrade to `session` (in-memory only).
340
+ *
341
+ * The v1→v2 migration notice is routed to `statusUpdate` from here, which is the only place that
342
+ * knows how to reach the user.
343
+ */
344
+ private getPersistedGrants;
345
+ /**
346
+ * §3.1/§4.7.4/§6 — **the grant a sticky choice would write for this call**, or `undefined` when
347
+ * none is on offer. The one place that question is answered, so the menu's *this is what will be
348
+ * stored* line (§6) and the store can never disagree.
349
+ *
350
+ * - **A shell call** records the command itself as an `exact` entry (§3.1) — never a prefix,
351
+ * never a pattern. One that does not statically resolve (composition, substitution,
352
+ * redirection) is not on offer: no allow entry of any matcher matches such a command, so the
353
+ * entry would be inert, and an inert entry sitting in a list §3 requires to be inspectable
354
+ * tells the user something is in force when nothing is.
355
+ * - **A tool call** records identity — the tool, its server, and the host where the call carries
356
+ * one (§4.7.4, {@link toolGrantEntry}) — never arguments, which would produce a grant that
357
+ * never matches twice. A call naming no host records the tool alone, which is §6's own example
358
+ * (*always approve `mcp__jira__create_issue`*, where no host is involved); what keeps that from
359
+ * being unbounded is §3.2's default that a tool entry is still `rate: true`, so the rater goes
360
+ * on seeing every call's full arguments.
361
+ *
362
+ * Four cases have **no grant on offer at all**, each fail-closed:
363
+ *
364
+ * 1. **`bypass`** — the gate is off for this session and nothing is remembered from it.
365
+ * 2. **`run_shell_command` arriving as a tool subject.** That is what a shell call with no
366
+ * readable `command` argument presents as, and it names no host, so without this it would take
367
+ * the tool-only arm and write a `{"type":"tool","pattern":"run_shell_command"}` grant that
368
+ * auto-approves every future call whose command cannot even be read. This exclusion is what
369
+ * stops that, not a side effect of anything else, and it must survive [[EXT-30]] widening the
370
+ * gate.
371
+ * 3. **A call naming more than one distinct host.** The grammar has no entry for it. `host` is a
372
+ * single optional string on every tool arm of `approvalEntrySchema`, and every arm is a
373
+ * `z.strictObject`, so recording the *set* is not a policy this code may choose — a `hosts`
374
+ * array is an unrecognized-key error, and writing one would be a §3.1 grammar change. Of the
375
+ * two entries that would parse, the host-bound one displays a bound the grant does not have,
376
+ * which §6 forbids (the menu shows exactly what will be stored). And a grammar that did record
377
+ * the set, matching only when all of it recurred, would fail §4.7.4's opening test anyway: a
378
+ * tool whose host set varies per call would get a grant that never matches a second time — not
379
+ * a narrower grant, the useless one §4.7.4 rejects by name.
380
+ *
381
+ * **What this arm does not claim.** It is not a narrowing. A hostless entry imposes no host
382
+ * condition at all (`resolveApprovalRules`), so the tool-only grant that any host-less call to
383
+ * the same tool produces already auto-approves a multi-host one. Refusing here withholds a
384
+ * grant; it does not close a hole, and the reason to keep it is the grammar above rather than
385
+ * any breadth it prevents. Asserted, so this cannot drift back into a claim the system does not
386
+ * support.
387
+ * 4. **An MCP call whose server could not be resolved** ({@link toolGrantEntry} returns `null`) —
388
+ * a call nobody can attribute is not one anything can remember.
138
389
  */
139
- private getPersistedAllowlist;
140
- /** Check the command against the session + persisted stores (with anti-widening re-validation). */
141
- private isApprovedByAllowlist;
390
+ private stickyGrantFor;
142
391
  /**
143
- * Record a human-granted approval at the given scope. `once` persists nothing. `session`
144
- * adds the classified prefix to the in-memory store. `always` additionally persists it (or
145
- * falls back to session-only when persistence is disabled).
392
+ * §3.1/§6 — record a human-granted approval at the given scope. `once` remembers nothing.
393
+ * `session` adds the entry to the in-memory store; `always` additionally persists it (falling
394
+ * back to session-only when the file cannot be written).
395
+ *
396
+ * What is recorded was decided by {@link stickyGrantFor} and shown to the human before they
397
+ * answered; this only stamps it with when and at what scope.
146
398
  */
147
399
  private recordApproval;
400
+ /**
401
+ * §4.7.4 — **drop a tool grant the tool has since weakened out from under, with a notice naming
402
+ * the tool, the server and the hint that moved.**
403
+ *
404
+ * The human approved a tool *as annotated*; a tool that re-annotates itself into a more dangerous
405
+ * shape is a different proposition wearing the same name, so the grant is invalidated and the next
406
+ * call prompts again. Only a **trusted** server can produce a weakening — an untrusted server's
407
+ * effective set is the constant fail-closed default (§4.7.1) and cannot move — which is exactly
408
+ * where it matters, since the trusted server is the one whose rug-pull would otherwise ride an
409
+ * existing grant.
410
+ *
411
+ * **Scoped to the call being decided, never a sweep of the store.** A sweep would read every held
412
+ * grant against a source that can only answer for the tools registered right now, so a server that
413
+ * happened to be offline would read as having weakened everything it ever declared — and the
414
+ * grants would be deleted for it.
415
+ *
416
+ * **The scope is every grant that could auto-approve THIS call, which is at most two.** A grant
417
+ * with no `host` imposes no host condition, so it matches a call that carries one; looking up only
418
+ * the entry this call would grant (`host` included) would miss the tool-only grant that is about
419
+ * to auto-approve it, and the weakening would ride straight through — the exact failure §4.7.4
420
+ * exists to stop. The host-bound entry of a DIFFERENT host is deliberately not a candidate: it
421
+ * does not match this call either, so this call's annotations say nothing about it.
422
+ *
423
+ * **Only allow-side grants.** A weakening makes a tool more dangerous, so dropping an *always
424
+ * reject* over one would be the unsafe direction: the reason to withdraw an approval is the reason
425
+ * to keep a refusal.
426
+ */
427
+ private invalidateWeakenedGrants;
148
428
  /**
149
429
  * Event-stream counterpart to {@link processMessages}: drives the agent's typed
150
430
  * {@link AgentStreamEvent} path using the runner's own thread-bound `runConfig`, so a
@@ -160,7 +440,7 @@ export declare class GthAgentRunner {
160
440
  * leaves the graph suspended on a `humanInTheLoopMiddleware` interrupt rather than
161
441
  * completing. This is the event-stream counterpart to the readline path's
162
442
  * {@link resolveToolInterrupts}: it drains any pending interrupts through
163
- * {@link decideToolApproval} (allow-list → judge → bridged human prompt), resumes via
443
+ * {@link decideToolApproval} (bypass → allow-list → rater → bridged human prompt), resumes via
164
444
  * `streamWithEventsResume({ decisions })`, and loops until the graph completes with no
165
445
  * pending interrupts — so the executed command's output renders into the TUI. Without
166
446
  * this the TUI silently finalized an empty turn (approval gate was dead code on the
@@ -172,15 +452,18 @@ export declare class GthAgentRunner {
172
452
  * resolve any tool-approval interrupts it suspended on, yielding the resumed run's typed
173
453
  * {@link AgentStreamEvent}s so the renderer (the Ink TUI) shows the executed command's
174
454
  * output. Each pending tool call is consulted via {@link decideToolApproval} — the SAME
175
- * three-layer gate the readline path uses (allow-list auto-approve → EXT-10 judge
455
+ * gate the readline path uses (bypass → allow-list approve → CFG-26 AI rater
176
456
  * bridged human callback, defaulting to REJECT when no handler is wired) — and the
177
457
  * collected decisions are sent back via `streamWithEventsResume` as a LangChain HITL
178
458
  * resume (`{ decisions }`). Because a resumed run can suspend again on the next gated
179
459
  * tool call, this loops until the graph completes with no pending interrupts.
180
460
  *
181
461
  * No-ops (yields nothing) when the agent does not support interrupts
182
- * (`getPendingToolInterrupts`/`streamWithEventsResume` absent), so the lean agent and
183
- * non-HITL configs are unaffected. Aborts (`signal`) propagate through the resumed stream.
462
+ * (`getPendingToolInterrupts`/`streamWithEventsResume` absent) that is the only exemption.
463
+ * As of EXT-52 BOTH backends gate `run_shell_command` and expose the interrupt surface, so the
464
+ * lean (default) agent is now exactly the agent this loop serves; only an agent implementation
465
+ * without those methods (e.g. a test double) skips it. Aborts (`signal`) propagate through the
466
+ * resumed stream.
184
467
  */
185
468
  private resolveToolInterruptsWithEvents;
186
469
  getAgent(): GthAgentInterface | null;