@sema-agent/core 7.68.5 → 7.68.6
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/CHANGELOG.md +29 -0
- package/dist/core/allow-entry.d.ts +2 -2
- package/dist/core/allow-entry.js +6 -5
- package/dist/core/ask-headline.d.ts +2 -2
- package/dist/core/ask-origin.d.ts +31 -31
- package/dist/core/ask-origin.js +20 -13
- package/dist/core/shell-read-silence.d.ts +2 -1
- package/dist/core/tool-policy.d.ts +4 -1
- package/dist/core/tool-policy.js +2 -2
- package/dist/tools/fs/removal-targets.js +7 -7
- package/package.json +2 -2
- package/wire-changes/core-stores-sql@7.68.6.json +39 -0
- package/wire-changes/core@7.68.6.json +125 -0
- package/wire-changes/mods-kernel@7.68.6.json +39 -0
- package/wire-changes/primitives@7.68.6.json +39 -0
- package/wire-changes/wiki-gate@7.68.6.json +39 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
## 7.68.6 — 2026-11-17
|
|
2
|
+
|
|
3
|
+
### What the engine cannot read or verify is an ordinary question, in every mode: a shell text it cannot read and a recursive delete whose target it cannot verify no longer stop `bypassPermissions`; their own class no longer keeps them from the auto-mode classifier or an allow rule; `echo $(( $(date -u +%s) + 3000 ))` runs under `bypassPermissions` with no card on either read face (#4784; the owner's direct ruling — a widening; what it lets run without a question is listed below, open to veto @cli @server @test; narrowing: one, below, open to veto @server — an approver's edit on resume, KL-4784-f; hard-breaking: none)
|
|
4
|
+
|
|
5
|
+
- **Before.** Since 7.49.0 the removal guard's two "could not check" questions — `unverifiable_shell_text` (a shell handed text the engine cannot read: `eval` over a built text, `… | sh`, `bash <(…)`, an expanding here-document fed to a shell, a text the lexer could not read, an arithmetic expansion whose evaluator reads back what a command substitution prints) and `unverifiable_delete` (`rm -rf` whose target the command does not settle: `rm -rf "$X"`, `… | xargs rm -rf`, an operand under a launcher-moved directory) — read the dangerous-removal breaker's row: `bypassPermissions` did not release them, the auto-mode classifier was not asked, no allow rule or "don't ask again" cleared them, and each carried `requiresRealApproval` (a blanket `onAsk: "allow"` and a class table could not answer it; a terminal reads that bit as "only a person"). So `echo $(( $(date -u +%s) + 3000 ))` stopped a `bypassPermissions` run and an `auto` run alike.
|
|
6
|
+
- **Now.** The two classes read the ordinary question's row (one frozen object with `ordinary`): `bypassPermissions` releases them (disclosed on `tool_end.gate.disposition.released`, as any release); their class no longer withholds the auto-mode classifier or an allow rule; `dontAsk` refuses them unless an allow covers the call; a class table (`declareClassAnswers`) may list them. The removal guard mints `requiresRealApproval` for neither any more (the bit is minted where the guard's class explains it — `RRA_EXPLAINERS` — and these two left that set); the read station's check that did not finish keeps it (below).
|
|
7
|
+
- **Read face (what the widening reaches).** On the open read face (`readFace: "open"`) `auto` hands these questions to the classifier, and a stored rule, a pre-approval or a class table clears them under `default`. On the narrowed face (`roots`, the engine's default) most of these commands also carry the read station's `probe` for the same unreadable text — one card, two classes — and the `probe` row there gives no classifier and no rule: such a call is still put to a person under `auto` and is not cleared by a rule, a pre-approval or a class table under `default` (`echo /usr | xargs rm -rf`, which raises no `probe`, is). A blanket `onAsk: "allow"` answers them on either face, and `bypassPermissions` releases both on either face. The `probe` half is #4789 (7.69.1).
|
|
8
|
+
- **What this lets run without a question — open to veto (@cli @server @test).** The two classes are ordinary questions now, so what clears an ordinary question clears them: a person's stored `Bash` allow (a whole-tool allow measured; a prefix allow read from the rows, not measured), a pre-approval, a host's blanket `onAsk: "allow"`, a class table, the auto-mode classifier and `bypassPermissions` — except that on the narrowed read face the read station's `probe` riding on the same card still holds most of these commands for a person (above). A command the engine cannot read then runs without being asked about, and the engine does not know what it reads, writes or removes. Measured on this release, one real run per cell, in `default` mode unless the column says `auto`; each cell reads narrowed read face (the default) / open read face; "asked" = put to a person (who said no); every removal ran under an inert shell, never a real one:
|
|
9
|
+
|
|
10
|
+
| Command | blanket `onAsk: "allow"` | stored whole-tool `Bash` allow | pre-approval (`allowedTools: ["Bash"]`) | class table (the classes a rule may clear) | `auto` (the classifier says yes) |
|
|
11
|
+
|---|---|---|---|---|---|
|
|
12
|
+
| `printf 'cat .env\n' \| bash` (`.env` deny-listed) | runs, reads it / runs, reads it | asked / runs, reads it | asked / runs, reads it | asked / runs, reads it | asked / runs, reads it |
|
|
13
|
+
| `printf 'cp f.txt .bashrc\n' \| bash` (`.bashrc` write-protected) | runs, writes it / runs, writes it | asked / runs, writes it | asked / runs, writes it | asked / runs, writes it | asked / runs, writes it |
|
|
14
|
+
| `rm -rf "$(printf /usr)"` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
15
|
+
| `printf 'rm -rf /usr\n' \| bash` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
16
|
+
| `bash -c "$(echo rm -rf ~)"` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
17
|
+
| `echo /usr \| xargs rm -rf` | runs / runs | runs / runs | runs / runs | runs / runs | runs / runs |
|
|
18
|
+
|
|
19
|
+
- On 7.68.5 every cell of that table was put to a person, and under the blanket allow refused without a question. Under `bypassPermissions` (a separate measurement) the four removals and the `.env` read run on both read faces and the `.bashrc` write runs on the narrowed face (its open face not measured). Beside a deployment policy's own bare real-approval bit, `ls junk | xargs rm -rf` now goes to the classifier under `auto` on both read faces (7.68.5: a person; measured): the bit's own row (`policy_rra`) admits the classifier, and the delete's class no longer withholds it (read from the rows). The same removal or read written plainly (`rm -rf /usr`, `rm -rf ~`, `cat .env`) is still stopped in every mode (KL-4784-b, KL-4784-e). Who notices: a host that answers every question with a blanket `onAsk: "allow"` (unattended runs) — these commands were refused and now run, on either read face; a person who stored a whole-tool `Bash` allow, a run with a pre-approval or a class table, and an `auto` run — on the open read face they used to stop for one question and now run, on the narrowed face they still ask, except the `xargs` form, which now runs; and every `bypassPermissions` run.
|
|
20
|
+
- **Not widened: a read check that did not finish — as in 7.68.5.** The read station's own state — the environment did not answer a lookup of the command's reads (a symlink it would not resolve, a home-anchored deny row such as `~/.npmrc` on an environment that declares no home), a deny floor whose spellings passed the station's bound (sixty-five values that may not have run), or a judge that hung past the gate's bound or threw — is in practice "the read-deny table was not judged", and the built-in credential rows are always there; releasing it would let an environment fault or a long spelling step past the read-deny table. So in every mode and on both read faces it reads as in 7.68.5: the question carries `requiresRealApproval`; `bypassPermissions` does not release it; the auto-mode classifier is not asked; a stored rule, a pre-approval, a blanket `onAsk: "allow"`, a class table and the read-only command arm do not answer it; `dontAsk` refuses it; a person answers it. Its class set is `unverifiable_shell_text` beside `policy_rra` (the bit no class explains, now that the shell-text class left the explainers); the class fold reads that pair as the removal breaker's row (no classifier, a hook's ask beside it floored). Known limitation KL-4784-d: such a card's class word is usually `policy_rra` (its headline reads "This deployment's policy asks for your approval here.", and beside a stored allow rule the reason the rule does not clear it reads "the deployment's policy requires a real approval for this call"), while the actual reason is that the read-deny table was not judged; the card's own sentence is 7.68.5's.
|
|
21
|
+
- **Not changed — and what that covers.** `dangerous_delete` — a removal the engine READS as targeting the filesystem root, a top-level directory, a home, a workspace directory or an ancestor of one — keeps the breaker's row and `requiresRealApproval`: a person under every mode, whether written plainly, through a variable the command sets, after a `cd`, or inside an arithmetic body (`$(( $(rm -rf ~; echo 1) + 1 ))`). It does not cover the same removal delivered through text the engine cannot read (a substitution, a pipe into a shell, `xargs`): that is the widened question above (KL-4784-e). Every other class's row. The class words stay in the closed set (no word added or removed). The default mode still asks one plain question about an arithmetic expansion over a command substitution (`echo $(( $(date -u +%s) + 3000 ))`): its evaluator re-reads the substitution's output, and an array subscript there runs a command — as the reference asks it. A shell text the engine cannot read beside a deployment policy's own bare real-approval bit is put to a person under `auto`, not to the classifier, on both read faces — as in 7.68.5, not a change in this release (measured); the same bit beside a delete whose target the engine cannot verify goes to the classifier (above), so the two classes differ there.
|
|
22
|
+
- **Wire changes (each a widening unless said).** ① `MODE_ARBITRATION.unverifiable_shell_text` and `.unverifiable_delete`: `bypassImmune` true→false, `classifierEligible` false→true, `sandboxAdmission` false→true, `ruleMayClear` false→true, `hookAskFloor` true→false. ② `ASK_CLASSES` order: the two words move from after `dangerous_delete` to after `mode` (just before `unstated`, `ordinary`): the classes a rule may clear stay the tail, so the disclosed word of a set that also holds a class no rule clears is now that class (the headline's "a saved rule would stop this" stays true); a park row written by 7.68.5 whose class set holds one of the two beside another class shows no class word or headline after the upgrade (inferred from the code, not measured: display only; the gate re-judges on resume). An approver's edit on a parked row whose class set is one of the two alone (parked by 7.68.5 or by this release) is refused on resume when the deployment's re-check of the edited input raises a bare real-approval bit, the stored class no longer explaining that bit; 7.68.5 accepted it (measured at the function level, not end to end; KL-4784-f). ③ `RRA_EXPLAINERS` loses the two. ④ `ORIGIN_IMPLIES_REAL_APPROVAL.integrity_guard`: `"at_mint"` → `false` (a guard's question carries the bit exactly when its class explains it). ⑤ On the removal guard's asks of the two classes: `AskRequest.requiresRealApproval` and the parked row's `tool_approval.requiresRealApproval` are absent (were `true`); `mandated` false and `ruleOffersAbsence` no longer `mandated` unless another member says so; the gate kind of a park is the ordinary one. ⑥ The read station's check that did not finish keeps the bit (unchanged); its class set is `["policy_rra", "unverifiable_shell_text"]` (was `["unverifiable_shell_text"]`), so its disclosed `askClass` — on `AskRequest`, the parked row, `tool_end.gate.disposition` (`denied_by_mode` under `dontAsk`), the shadow-reason and headless-remedy sentences — is usually `policy_rra` (was `unverifiable_shell_text`); when a class that sorts before it rides on the same question, that class is the word (measured: `target_unresolved`, `org_rule`, `ask_rule`, `hook`, `operator_forced`, `shell_floor`, `dangerous_delete`), so a reader that routes on the class word should not assume this form shows one word; `foldArbitrationRow` over that pair returns the removal breaker's row (`dangerous_delete`'s). ⑦ `SHADOW_REASON.unverifiable_delete` / `.unverifiable_shell_text`: the "arrived already marked" sentence `ordinary` has. ⑧ Card sentences: "Unverifiable recursive delete (fail-closed unless cleared): …" → "This delete could not be checked first: …"; "Unverifiable shell text (fail-closed unless cleared): …" → "This command could not be checked first: …"; the rows say what could not be checked in plain words and no longer say how the question is cleared.
|
|
23
|
+
- **Who needs it / who it harms / the compensation.** Needed by anyone running `bypassPermissions` or `auto` long tasks: arithmetic over a substitution, `eval`, pipes into a shell and `xargs rm` stopped them. Harmed: a run whose shell text or delete target hides a dangerous removal, a deny-listed read or a write-protected write the engine cannot see now runs it under `bypassPermissions` or a blanket `onAsk: "allow"` on either read face, and — where no `probe` rides beside it (the open read face, or the `xargs` form) — beside a stored whole-tool `Bash` allow, a pre-approval or a class table, and on the classifier's yes under `auto` — the risk the person chose with the mode or the standing allow. Compensation: the protected-location removal and the deny-listed read the engine does read are still stopped in every mode, including inside an arithmetic body; a read check that did not finish is a person's in every mode.
|
|
24
|
+
- **Rules.** −1 row (the breaker row now `dangerous_delete`'s alone; the two hold `ordinary`'s object), −2 explainer members; the removal guard's real-approval bit reads the explainer set (`explainsRealApprovalBit`) instead of a literal; +1 reading in the class fold — the unfinished check's pair (`unverifiable_shell_text` beside `policy_rra`) withholds the classifier and floors a hook, standing in for a class of its own (a closed-set change, not a patch's: 7.70.0 retires the reading with the word).
|
|
25
|
+
- **Pins.** `test/backlog4784-unverifiable-relax.test.ts` — M1 the owner's command, M1/M3/M4 the owner's command, its arithmetic neighbours, the unreadable texts and the deletes × bypass / auto / default / acceptEdits / dontAsk / a pre-approval / a stored rule, on both read faces, M2 arithmetic with no substitution and the stored rule's control, M5 the protected locations under bypass / auto / a pre-approval, M6 a removal in an arithmetic body, M7 ssh / scp under bypass, P1 the parked row's bits (and nothing parked under bypass), R1 the rows; `test/backlog4784-fix1-unfinished-check.test.ts` — U1 the read check that did not finish (a symlink the environment does not resolve, no home declared, sixty-five values past the deny floor's bound under a person's `Read(…)` deny rule) × bypass / auto on both read faces, default, acceptEdits, dontAsk, a blanket `onAsk: "allow"`, a class table, a pre-approval, a stored rule: refused before the program runs, the classifier never asked, no protected byte in the tool text; U2 the pair's row and the hook floor; U3 the same beside the session-transcript guard and an organization rule (the silence's bit stays bare), and the removal guard's shell-text ask still ordinary; `test/backlog1694-failing-resolver-is-not-no-face.test.ts` E5–E5d (default, acceptEdits, auto, bypass: a person asked, the deny-listed bytes never read); earlier pins of the breaker row (#1534, #1505) re-pinned to the new row, and #1672 ③ and #1329b W4 to the widened delete (the ordinary row); the read-check cells of #1693, #1672, #955 (two files), #1092 and #1329b W7 read as in 7.68.5 but for the disclosed word (`policy_rra`, or `target_unresolved` where the written target was not resolved either); 34 earlier pin files change against 7.68.5 in all. The read-check pins #1653, #1686, #1293b, #3536, #4060, #4067, #4077, #3562, #1709 and #3203 pass unchanged (their files are 7.68.5's).
|
|
26
|
+
- **Consumers.** @cli @server: the read check that did not finish still carries `requiresRealApproval` ("only a person"); its class word is `policy_rra` now (KL-4784-d). @cli: the "safety-class ask (blanket-allow refused)" line and the "only a person" arm read `requiresRealApproval`, which the removal guard's two asks no longer carry; a card that keys "no rule clears this" off the class word reads `MODE_ARBITRATION`'s new row. @server: an exit table that writes these two classes as "only a person / only a terminal" should treat them like `ordinary`. @client-core: a projection pinning `ASK_CLASSES` order or the five bits of these two rows. @test: bypass / auto regressions for `echo $(( $(date -u +%s) + 3000 ))`, `eval "echo $(date +%s)"` (no card under bypass on either read face; the classifier asked under auto on the open read face, a person on the narrowed one while #4789 is open), `ls x | xargs rm -rf` (no `probe`: no card under bypass, the classifier asked under auto, on either read face), the four removals and the read of KL-4784-e / -b, and the three protected-location removals (still a person under bypass); a read check that did not finish (`cat` of a symlink to a deny-listed file the environment does not resolve, a recursive read on an environment that declares no home) is put to a person under bypass and auto, the protected bytes never read.
|
|
27
|
+
|
|
28
|
+
no-notes: #1694(pins only: `test/backlog1694-failing-resolver-is-not-no-face.test.ts` gains E5b–E5d for the read check that did not finish, listed under Pins above; no change of its own)
|
|
29
|
+
|
|
1
30
|
## 7.68.5 — 2026-11-16
|
|
2
31
|
|
|
3
32
|
### A finished run lets go of what it handed its session's process-level seats: a long-lived host with a mailbox store no longer keeps each session's last leg for the life of the process (#4672; fix; behavior change: one, below, open to veto; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none)
|
|
@@ -367,8 +367,6 @@ export declare const SHADOW_REASON: Readonly<{
|
|
|
367
367
|
readonly hook: "an extension's screening asks about this call (a PreToolUse hook or a tool.check station) — the deployment's own screening is answered by a person";
|
|
368
368
|
readonly ancestor: "the task that delegated this one owns this question";
|
|
369
369
|
readonly dangerous_delete: "this removal targets a protected location (the filesystem root, a top-level directory, a home directory, or a workspace directory or one of its ancestors) — it is cleared by confirming this call, never by an allow rule";
|
|
370
|
-
readonly unverifiable_delete: "this removal could not be verified safe — it is cleared by confirming this call, never by an allow rule";
|
|
371
|
-
readonly unverifiable_shell_text: "the text this shell will run cannot be read by the engine — it is cleared by confirming this call, never by an allow rule";
|
|
372
370
|
readonly transcript_write: "this write targets the session transcript — it is cleared by confirming this call, never by an allow rule";
|
|
373
371
|
readonly org_rule: "an organization policy rule requires approval for this call";
|
|
374
372
|
readonly rule_unreadable: "a rule that may govern this call cannot currently be read (this deployment's organization policy, a partition of the person's standing rules, or this call against a deny or ask rule), so whether one forbids it is unknown";
|
|
@@ -387,6 +385,8 @@ export declare const SHADOW_REASON: Readonly<{
|
|
|
387
385
|
readonly policy_rra: "the deployment's policy requires a real approval for this call";
|
|
388
386
|
readonly artifact_shared_read: "this read targets another task's shared artifact — it is cleared by confirming this call";
|
|
389
387
|
readonly mode: "the permission mode puts this question to a person";
|
|
388
|
+
readonly unverifiable_delete: "this call arrived already marked as requiring confirmation (an earlier layer of this run, or the task that delegated it, judged it so) — it is cleared by confirming this call, never by a standing allow rule";
|
|
389
|
+
readonly unverifiable_shell_text: "this call arrived already marked as requiring confirmation (an earlier layer of this run, or the task that delegated it, judged it so) — it is cleared by confirming this call, never by a standing allow rule";
|
|
390
390
|
readonly unstated: "this call arrived already marked as requiring confirmation (an earlier layer of this run, or the task that delegated it, judged it so) — it is cleared by confirming this call, never by a standing allow rule";
|
|
391
391
|
readonly ordinary: "this call arrived already marked as requiring confirmation (an earlier layer of this run, or the task that delegated it, judged it so) — it is cleared by confirming this call, never by a standing allow rule";
|
|
392
392
|
}>;
|
package/dist/core/allow-entry.js
CHANGED
|
@@ -450,13 +450,12 @@ export function readAllowRuleShadows(value) {
|
|
|
450
450
|
return undefined;
|
|
451
451
|
}
|
|
452
452
|
}
|
|
453
|
+
const ARRIVED_MARKED = "this call arrived already marked as requiring confirmation (an earlier layer of this run, or the task that delegated it, judged it so) — it is cleared by confirming this call, never by a standing allow rule";
|
|
453
454
|
export const SHADOW_REASON = Object.freeze({
|
|
454
455
|
content_question: "the call is the engine's own question to a person",
|
|
455
456
|
hook: "an extension's screening asks about this call (a PreToolUse hook or a tool.check station) — the deployment's own screening is answered by a person",
|
|
456
457
|
ancestor: "the task that delegated this one owns this question",
|
|
457
458
|
dangerous_delete: "this removal targets a protected location (the filesystem root, a top-level directory, a home directory, or a workspace directory or one of its ancestors) — it is cleared by confirming this call, never by an allow rule",
|
|
458
|
-
unverifiable_delete: "this removal could not be verified safe — it is cleared by confirming this call, never by an allow rule",
|
|
459
|
-
unverifiable_shell_text: "the text this shell will run cannot be read by the engine — it is cleared by confirming this call, never by an allow rule",
|
|
460
459
|
transcript_write: "this write targets the session transcript — it is cleared by confirming this call, never by an allow rule",
|
|
461
460
|
org_rule: "an organization policy rule requires approval for this call",
|
|
462
461
|
rule_unreadable: "a rule that may govern this call cannot currently be read (this deployment's organization policy, a partition of the person's standing rules, or this call against a deny or ask rule), so whether one forbids it is unknown",
|
|
@@ -465,7 +464,7 @@ export const SHADOW_REASON = Object.freeze({
|
|
|
465
464
|
classifier_no_ruling: "the auto-mode classifier could not judge this call, so a person decides",
|
|
466
465
|
requires_user_interaction: "this tool's server declares that a call must be put to a person",
|
|
467
466
|
cross_boundary: MANDATE_DISCLOSURE.cross_boundary_taint,
|
|
468
|
-
operator_forced:
|
|
467
|
+
operator_forced: ARRIVED_MARKED,
|
|
469
468
|
shell_floor: MANDATE_DISCLOSURE.operator_always,
|
|
470
469
|
target_unresolved: MANDATE_DISCLOSURE.target_unresolved,
|
|
471
470
|
write_protection_on_disk: MANDATE_DISCLOSURE.write_protection,
|
|
@@ -475,8 +474,10 @@ export const SHADOW_REASON = Object.freeze({
|
|
|
475
474
|
policy_rra: "the deployment's policy requires a real approval for this call",
|
|
476
475
|
artifact_shared_read: "this read targets another task's shared artifact — it is cleared by confirming this call",
|
|
477
476
|
mode: "the permission mode puts this question to a person",
|
|
478
|
-
|
|
479
|
-
|
|
477
|
+
unverifiable_delete: ARRIVED_MARKED,
|
|
478
|
+
unverifiable_shell_text: ARRIVED_MARKED,
|
|
479
|
+
unstated: ARRIVED_MARKED,
|
|
480
|
+
ordinary: ARRIVED_MARKED,
|
|
480
481
|
});
|
|
481
482
|
function memberPhrase(s) {
|
|
482
483
|
const listed = `${s.entries.join(", ")}${s.omitted !== undefined ? ` and ${s.omitted} more` : ""}`;
|
|
@@ -32,8 +32,6 @@ export declare const ASK_HEADLINE_WHY: Readonly<{
|
|
|
32
32
|
readonly write_protection: "core/engine.ask-headline.write_protection";
|
|
33
33
|
readonly ancestor: "core/engine.ask-headline.ancestor";
|
|
34
34
|
readonly dangerous_delete: "core/engine.ask-headline.dangerous_delete";
|
|
35
|
-
readonly unverifiable_delete: "core/engine.ask-headline.unverifiable_delete";
|
|
36
|
-
readonly unverifiable_shell_text: "core/engine.ask-headline.unverifiable_shell_text";
|
|
37
35
|
readonly transcript_write: "core/engine.ask-headline.transcript_write";
|
|
38
36
|
readonly rule_unreadable: "core/engine.ask-headline.rule_unreadable";
|
|
39
37
|
readonly ask_rule: "core/engine.ask-headline.ask_rule";
|
|
@@ -50,6 +48,8 @@ export declare const ASK_HEADLINE_WHY: Readonly<{
|
|
|
50
48
|
readonly tool_marks_a2a: "core/engine.ask-headline.tool_marks_a2a";
|
|
51
49
|
readonly policy_rra: "core/engine.ask-headline.policy_rra";
|
|
52
50
|
readonly artifact_shared_read: "core/engine.ask-headline.artifact_shared_read";
|
|
51
|
+
readonly unverifiable_delete: "core/engine.ask-headline.unverifiable_delete";
|
|
52
|
+
readonly unverifiable_shell_text: "core/engine.ask-headline.unverifiable_shell_text";
|
|
53
53
|
readonly unstated: "core/engine.ask-headline.unstated";
|
|
54
54
|
readonly ordinary: "core/engine.ask-headline.ordinary";
|
|
55
55
|
}>;
|
|
@@ -403,12 +403,11 @@ export declare function ownedClearanceFacts(d: Extract<PermissionResult, {
|
|
|
403
403
|
* (`denialLimitFallback`: a self-declared one opts the policy's own ask out of automatic
|
|
404
404
|
* resolution, the safe direction, not a defect), so the invariant is pinned at the engine's two
|
|
405
405
|
* mint sites (the gate's fallback re-mint and the inherited station's) rather than thrown at
|
|
406
|
-
* derivation, where a policy's own object could trip it;
|
|
407
|
-
* guard's own record, which no policy composes but a policy wrapping an exported guard can relay beside a
|
|
408
|
-
* bit it cleared, so the bit is pinned at the two guard mint sites (the removal guard's ask, the
|
|
409
|
-
* session-transcript guard's);
|
|
406
|
+
* derivation, where a policy's own object could trip it;
|
|
410
407
|
* - `false` — the origin says nothing about the bit: a `policy` ask may carry it (a safety policy's
|
|
411
|
-
* own mandate) or not, and both are legal
|
|
408
|
+
* own mandate) or not, and both are legal; an `integrity_guard` ask carries it exactly when its guard's class
|
|
409
|
+
* explains it ({@link RRA_EXPLAINERS}: a protected-location removal, the session-transcript write — pinned at
|
|
410
|
+
* those two mint sites) and not for the two the engine raises because it could not read or verify the command.
|
|
412
411
|
*/
|
|
413
412
|
export declare const ORIGIN_IMPLIES_REAL_APPROVAL: {
|
|
414
413
|
readonly content_question: false;
|
|
@@ -420,7 +419,7 @@ export declare const ORIGIN_IMPLIES_REAL_APPROVAL: {
|
|
|
420
419
|
readonly hook: false;
|
|
421
420
|
readonly ask_rule: false;
|
|
422
421
|
readonly denial_limit_fallback: "at_mint";
|
|
423
|
-
readonly integrity_guard:
|
|
422
|
+
readonly integrity_guard: false;
|
|
424
423
|
readonly shell_gate_tighten: false;
|
|
425
424
|
readonly safety_tighten: false;
|
|
426
425
|
readonly policy: false;
|
|
@@ -648,10 +647,11 @@ export type ToolMarkSource = "deployment" | "mcp_annotation" | "a2a_default";
|
|
|
648
647
|
* `dangerous_delete` is a removal whose target is a protected location (`dangerousRemovalOf`: the filesystem root, a
|
|
649
648
|
* top-level directory, a home directory, or a workspace directory — the task root, the working directory, an additional
|
|
650
649
|
* working directory — or an ancestor of one): the reference implementation's dangerous-removal breaker, which no mode,
|
|
651
|
-
* allow rule or classifier answers. `unverifiable_delete` is
|
|
652
|
-
* `unverifiable_shell_text` is a shell handed text the command does not spell (a program's output, a substitution,
|
|
653
|
-
* file's content, an argv a stream fills in): the engine cannot read what that shell will execute.
|
|
654
|
-
*
|
|
650
|
+
* allow rule or classifier answers. `unverifiable_delete` is a recursive forced removal whose target the command text cannot
|
|
651
|
+
* resolve; `unverifiable_shell_text` is a shell handed text the command does not spell (a program's output, a substitution,
|
|
652
|
+
* a file's content, an argv a stream fills in): the engine cannot read what that shell will execute. What the engine cannot
|
|
653
|
+
* read or verify is no reason to ask more strictly than an ordinary question, so those two read the ordinary row
|
|
654
|
+
* ({@link ORDINARY_ROW}); they stay words of their own for the reason a card and a release name.
|
|
655
655
|
* `rule_unreadable` is a rule that may govern the call and cannot be read for it: the organization's snapshot, a partition of
|
|
656
656
|
* the person's store, or this call against a deny / ask row (the lexer's word, a content row, the read station's rows).
|
|
657
657
|
* `write_protection` and `write_protection_on_disk` are the two readings of one table hit, judged per written target and never
|
|
@@ -660,7 +660,7 @@ export type ToolMarkSource = "deployment" | "mcp_annotation" | "a2a_default";
|
|
|
660
660
|
* an innocent spelling the disk carries onto a guarded path, which the auto-mode classifier does not answer). A command
|
|
661
661
|
* writing several targets may carry both.
|
|
662
662
|
*/
|
|
663
|
-
export declare const ASK_CLASSES: readonly ["content_question", "hook", "ancestor", "dangerous_delete", "
|
|
663
|
+
export declare const ASK_CLASSES: readonly ["content_question", "hook", "ancestor", "dangerous_delete", "transcript_write", "org_rule", "rule_unreadable", "ask_rule", "denial_limit_fallback", "classifier_no_ruling", "requires_user_interaction", "cross_boundary", "operator_forced", "shell_floor", "target_unresolved", "probe", "write_protection_on_disk", "write_protection", "tool_marks_mcp", "tool_marks_a2a", "policy_rra", "artifact_shared_read", "mode", "unverifiable_delete", "unverifiable_shell_text", "unstated", "ordinary"];
|
|
664
664
|
export type AskClass = (typeof ASK_CLASSES)[number];
|
|
665
665
|
/** Membership test for {@link AskClass} — the word crosses the wire on `tool_end.gate.disposition`. */
|
|
666
666
|
export declare function isAskClass(v: unknown): v is AskClass;
|
|
@@ -724,27 +724,13 @@ export declare const MODE_ARBITRATION: {
|
|
|
724
724
|
readonly ruleMayClear: false;
|
|
725
725
|
readonly hookAskFloor: false;
|
|
726
726
|
};
|
|
727
|
-
readonly dangerous_delete:
|
|
727
|
+
readonly dangerous_delete: {
|
|
728
728
|
readonly bypassImmune: true;
|
|
729
729
|
readonly classifierEligible: false;
|
|
730
730
|
readonly sandboxAdmission: false;
|
|
731
731
|
readonly ruleMayClear: false;
|
|
732
732
|
readonly hookAskFloor: true;
|
|
733
|
-
}
|
|
734
|
-
readonly unverifiable_delete: Readonly<{
|
|
735
|
-
readonly bypassImmune: true;
|
|
736
|
-
readonly classifierEligible: false;
|
|
737
|
-
readonly sandboxAdmission: false;
|
|
738
|
-
readonly ruleMayClear: false;
|
|
739
|
-
readonly hookAskFloor: true;
|
|
740
|
-
}>;
|
|
741
|
-
readonly unverifiable_shell_text: Readonly<{
|
|
742
|
-
readonly bypassImmune: true;
|
|
743
|
-
readonly classifierEligible: false;
|
|
744
|
-
readonly sandboxAdmission: false;
|
|
745
|
-
readonly ruleMayClear: false;
|
|
746
|
-
readonly hookAskFloor: true;
|
|
747
|
-
}>;
|
|
733
|
+
};
|
|
748
734
|
readonly transcript_write: {
|
|
749
735
|
readonly bypassImmune: false;
|
|
750
736
|
readonly classifierEligible: true;
|
|
@@ -878,6 +864,20 @@ export declare const MODE_ARBITRATION: {
|
|
|
878
864
|
readonly ruleMayClear: false;
|
|
879
865
|
readonly hookAskFloor: false;
|
|
880
866
|
};
|
|
867
|
+
readonly unverifiable_delete: Readonly<{
|
|
868
|
+
readonly bypassImmune: false;
|
|
869
|
+
readonly classifierEligible: true;
|
|
870
|
+
readonly sandboxAdmission: true;
|
|
871
|
+
readonly ruleMayClear: true;
|
|
872
|
+
readonly hookAskFloor: false;
|
|
873
|
+
}>;
|
|
874
|
+
readonly unverifiable_shell_text: Readonly<{
|
|
875
|
+
readonly bypassImmune: false;
|
|
876
|
+
readonly classifierEligible: true;
|
|
877
|
+
readonly sandboxAdmission: true;
|
|
878
|
+
readonly ruleMayClear: true;
|
|
879
|
+
readonly hookAskFloor: false;
|
|
880
|
+
}>;
|
|
881
881
|
readonly unstated: {
|
|
882
882
|
readonly bypassImmune: false;
|
|
883
883
|
readonly classifierEligible: true;
|
|
@@ -885,13 +885,13 @@ export declare const MODE_ARBITRATION: {
|
|
|
885
885
|
readonly ruleMayClear: true;
|
|
886
886
|
readonly hookAskFloor: false;
|
|
887
887
|
};
|
|
888
|
-
readonly ordinary: {
|
|
888
|
+
readonly ordinary: Readonly<{
|
|
889
889
|
readonly bypassImmune: false;
|
|
890
890
|
readonly classifierEligible: true;
|
|
891
891
|
readonly sandboxAdmission: true;
|
|
892
892
|
readonly ruleMayClear: true;
|
|
893
893
|
readonly hookAskFloor: false;
|
|
894
|
-
}
|
|
894
|
+
}>;
|
|
895
895
|
};
|
|
896
896
|
/** The fence over the arbitration table: `never` while every class has a row. */
|
|
897
897
|
export type ArbitrationTableCoversEveryClass = AssertAllKeysHandled<Exclude<AskClass, keyof typeof MODE_ARBITRATION>>;
|
|
@@ -976,7 +976,7 @@ export declare function screenAskClassMembers(askClass: unknown, classes: unknow
|
|
|
976
976
|
* The OWN half of the class derivation — what ONE ask says about itself through its own members, and the integrity guards
|
|
977
977
|
* its engine record carries for its call (`record`, read by the caller through {@link attestationOf}): the guards are engine
|
|
978
978
|
* findings, never a member, so a policy cannot move a real-approval question into a guard's class. The bare-bit rules are
|
|
979
|
-
* applied over THIS ask's own set: `requiresRealApproval` with no explaining class is `policy_rra
|
|
979
|
+
* applied over THIS ask's own set: `requiresRealApproval` with no explaining class, or beside the shell-text guard, is `policy_rra` ({@link bareBit}); a self-declared
|
|
980
980
|
* `mandated` with no other class is `operator_forced` (a deployment probe's own mandate, read conservatively). Returns the
|
|
981
981
|
* specific classes only — an empty set is "nothing but hesitation", which the caller reads as `ordinary`.
|
|
982
982
|
*/
|
|
@@ -994,7 +994,7 @@ export declare function decisionAskClassesOf(d: Extract<PermissionResult, {
|
|
|
994
994
|
* set is `ordinary`. The two faces the ask was raised under enter HERE and nowhere else, so every reader of the folded row
|
|
995
995
|
* reads it already folded: `readFace` — `roots` takes the classifier's lane from a set that holds a class the narrowed face
|
|
996
996
|
* withholds from it; `askFace` — `shell` reads a class {@link RELEASED_ON_SHELL_FACE} holds as not bypass-immune. Absent
|
|
997
|
-
* faces read the table's own rows. */
|
|
997
|
+
* faces read the table's own rows. A check that did not finish ({@link unfinishedCheck}) loses the classifier and floors a hook. */
|
|
998
998
|
export declare function foldArbitrationRow(classes: ReadonlySet<AskClass>, readFace?: ContainmentFace, askFace?: AskFace): ModeArbitrationRow;
|
|
999
999
|
/**
|
|
1000
1000
|
* The ONE class derivation: the decision half ({@link decisionAskClassesOf}) joined with the gate's own facts —
|
package/dist/core/ask-origin.js
CHANGED
|
@@ -195,7 +195,7 @@ export const ORIGIN_IMPLIES_REAL_APPROVAL = {
|
|
|
195
195
|
hook: false,
|
|
196
196
|
ask_rule: false,
|
|
197
197
|
denial_limit_fallback: "at_mint",
|
|
198
|
-
integrity_guard:
|
|
198
|
+
integrity_guard: false,
|
|
199
199
|
shell_gate_tighten: false,
|
|
200
200
|
safety_tighten: false,
|
|
201
201
|
policy: false,
|
|
@@ -274,8 +274,6 @@ export const ASK_CLASSES = Object.freeze([
|
|
|
274
274
|
"hook",
|
|
275
275
|
"ancestor",
|
|
276
276
|
"dangerous_delete",
|
|
277
|
-
"unverifiable_delete",
|
|
278
|
-
"unverifiable_shell_text",
|
|
279
277
|
"transcript_write",
|
|
280
278
|
"org_rule",
|
|
281
279
|
"rule_unreadable",
|
|
@@ -295,6 +293,8 @@ export const ASK_CLASSES = Object.freeze([
|
|
|
295
293
|
"policy_rra",
|
|
296
294
|
"artifact_shared_read",
|
|
297
295
|
"mode",
|
|
296
|
+
"unverifiable_delete",
|
|
297
|
+
"unverifiable_shell_text",
|
|
298
298
|
"unstated",
|
|
299
299
|
"ordinary",
|
|
300
300
|
]);
|
|
@@ -302,14 +302,12 @@ const ASK_CLASS_SET = new Set(ASK_CLASSES);
|
|
|
302
302
|
export function isAskClass(v) {
|
|
303
303
|
return ASK_CLASS_SET.has(v);
|
|
304
304
|
}
|
|
305
|
-
const
|
|
305
|
+
const ORDINARY_ROW = Object.freeze({ bypassImmune: false, classifierEligible: true, sandboxAdmission: true, ruleMayClear: true, hookAskFloor: false });
|
|
306
306
|
export const MODE_ARBITRATION = {
|
|
307
307
|
content_question: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: true },
|
|
308
308
|
hook: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
309
309
|
ancestor: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
310
|
-
dangerous_delete:
|
|
311
|
-
unverifiable_delete: REMOVAL_BREAKER_ROW,
|
|
312
|
-
unverifiable_shell_text: REMOVAL_BREAKER_ROW,
|
|
310
|
+
dangerous_delete: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: true },
|
|
313
311
|
transcript_write: { bypassImmune: false, classifierEligible: true, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: true },
|
|
314
312
|
org_rule: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
315
313
|
rule_unreadable: { bypassImmune: true, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
@@ -329,8 +327,10 @@ export const MODE_ARBITRATION = {
|
|
|
329
327
|
policy_rra: { bypassImmune: true, classifierEligible: true, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
330
328
|
artifact_shared_read: { bypassImmune: false, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: true },
|
|
331
329
|
mode: { bypassImmune: false, classifierEligible: false, sandboxAdmission: false, ruleMayClear: false, hookAskFloor: false },
|
|
330
|
+
unverifiable_delete: ORDINARY_ROW,
|
|
331
|
+
unverifiable_shell_text: ORDINARY_ROW,
|
|
332
332
|
unstated: { bypassImmune: false, classifierEligible: true, sandboxAdmission: false, ruleMayClear: true, hookAskFloor: false },
|
|
333
|
-
ordinary:
|
|
333
|
+
ordinary: ORDINARY_ROW,
|
|
334
334
|
};
|
|
335
335
|
export const ASK_FACES = Object.freeze(["shell", "other"]);
|
|
336
336
|
export function askFaceOf(toolName) {
|
|
@@ -344,7 +344,13 @@ function bypassImmuneOf(c) {
|
|
|
344
344
|
return [...c.classes].some((k) => bypassImmuneOn(k, c.askFace));
|
|
345
345
|
}
|
|
346
346
|
const CLASSIFIER_WITHHELD_ON_ROOTS = new Set(["probe"]);
|
|
347
|
-
|
|
347
|
+
function unfinishedCheck(classes) {
|
|
348
|
+
return classes.has("unverifiable_shell_text") && classes.has("policy_rra");
|
|
349
|
+
}
|
|
350
|
+
function bareBit(d, classes, record) {
|
|
351
|
+
return d.requiresRealApproval === true && (!explainsRealApprovalBit(classes) || record?.guards?.includes("unverifiable_shell_text") === true);
|
|
352
|
+
}
|
|
353
|
+
export const RRA_EXPLAINERS = new Set(["dangerous_delete", "transcript_write", "org_rule", "rule_unreadable", "denial_limit_fallback", "classifier_no_ruling", "ancestor", "artifact_shared_read", "requires_user_interaction", "cross_boundary"]);
|
|
348
354
|
export function explainsRealApprovalBit(classes) {
|
|
349
355
|
for (const c of classes)
|
|
350
356
|
if (RRA_EXPLAINERS.has(c))
|
|
@@ -399,7 +405,7 @@ export function ownAskClassesOf(d, record) {
|
|
|
399
405
|
out.add("hook");
|
|
400
406
|
if (d.decisionReason === "mode")
|
|
401
407
|
out.add("mode");
|
|
402
|
-
if (d
|
|
408
|
+
if (bareBit(d, out, record))
|
|
403
409
|
out.add("policy_rra");
|
|
404
410
|
if (out.size === 0 && d.mandated === true)
|
|
405
411
|
out.add("operator_forced");
|
|
@@ -415,8 +421,9 @@ export function decisionAskClassesOf(d, call) {
|
|
|
415
421
|
export function foldArbitrationRow(classes, readFace, askFace) {
|
|
416
422
|
if (classes.size === 0)
|
|
417
423
|
return MODE_ARBITRATION.ordinary;
|
|
418
|
-
const
|
|
419
|
-
|
|
424
|
+
const unfinished = unfinishedCheck(classes);
|
|
425
|
+
const withheld = unfinished || (readFace === "roots" && [...classes].some((c) => CLASSIFIER_WITHHELD_ON_ROOTS.has(c)));
|
|
426
|
+
let bypassImmune = false, classifierEligible = !withheld, sandboxAdmission = true, ruleMayClear = true, hookAskFloor = unfinished;
|
|
420
427
|
for (const c of classes) {
|
|
421
428
|
const row = MODE_ARBITRATION[c];
|
|
422
429
|
bypassImmune ||= bypassImmuneOn(c, askFace);
|
|
@@ -466,7 +473,7 @@ export function classifyAsk(d, facts) {
|
|
|
466
473
|
classes.add("unstated");
|
|
467
474
|
for (const c of facts.ancestorClasses ?? [])
|
|
468
475
|
classes.add(c);
|
|
469
|
-
if (d
|
|
476
|
+
if (bareBit(d, classes, record))
|
|
470
477
|
classes.add("policy_rra");
|
|
471
478
|
for (const c of record?.foldedClasses ?? [])
|
|
472
479
|
classes.add(c);
|
|
@@ -38,7 +38,8 @@ export declare function readStationAnswer(answer: ShellReadVerdict, call: Statio
|
|
|
38
38
|
/** The ask `d` with the silence a station's answer carries, each its own class on the question it keeps or mints: unread rows are a
|
|
39
39
|
* rule that could not be read (the rule lane's class); the finding `unanswered` is, unless rows are unread, the environment's silence —
|
|
40
40
|
* shell text the engine cannot read (a guard, attested on the ask's record for `call` beside the guards it already carries) — and the
|
|
41
|
-
* marks only pick whose. Either is a question only a person answers
|
|
41
|
+
* marks only pick whose. Either is a question only a person answers (the real-approval bit; beside the environment's guard alone no
|
|
42
|
+
* class explains it, and the class fold reads that pair as a check that did not finish); `probe` follows the finding. No silence ⇒ `d` itself. */
|
|
42
43
|
export declare function silencedBy<D extends Extract<PermissionResult, {
|
|
43
44
|
action: "ask";
|
|
44
45
|
}>>(d: D, verdict: ShellReadVerdict, call: {
|
|
@@ -1192,6 +1192,9 @@ export declare function createCoarseCommandNamePolicy(opts: {
|
|
|
1192
1192
|
* dialog (908517 / 909563) and re-attaches a matching user `ask` rule on the auto-mode surface (461507).
|
|
1193
1193
|
* Core has neither a persisted always-allow surface nor rule re-attachment — noted for whichever UI layer
|
|
1194
1194
|
* grows one.
|
|
1195
|
+
*
|
|
1196
|
+
* The bit now rides only the protected-location question; a target or shell text the guard could not read or verify is an ordinary
|
|
1197
|
+
* question — what the engine cannot read is no reason to ask more strictly (the class rows, `MODE_ARBITRATION`, say the rest).
|
|
1195
1198
|
*/
|
|
1196
1199
|
export declare function createUnverifiableDeletePolicy(opts?: {
|
|
1197
1200
|
/** Extra variable names treated as well-known-safe roots, ADDED to the default set `TMPDIR`/`HOME`
|
|
@@ -1899,7 +1902,7 @@ export declare function isPolicyApprover(v: unknown): boolean;
|
|
|
1899
1902
|
* and its call reaches the same answer.
|
|
1900
1903
|
*
|
|
1901
1904
|
* Only the classes a standing rule may clear can be declared — the column `ruleMayClear` of
|
|
1902
|
-
* {@link import("./ask-origin.js").MODE_ARBITRATION} (today `
|
|
1905
|
+
* {@link import("./ask-origin.js").MODE_ARBITRATION} (today `unverifiable_delete`, `unverifiable_shell_text`, `unstated` and `ordinary`): a table is a deployment's answer
|
|
1903
1906
|
* to the questions the allow layer itself may answer, by class instead of by tool. A question the engine mints demanding a
|
|
1904
1907
|
* person ({@link AskRequest.requiresRealApproval}) always carries a class outside that column, so no table covers it; a
|
|
1905
1908
|
* hand-built request carrying the bit beside a covered set is answered by the table and refused by the real-approval arm,
|
package/dist/core/tool-policy.js
CHANGED
|
@@ -3,7 +3,7 @@ import { homedir } from "node:os";
|
|
|
3
3
|
import { argsReadFrom, carryArgsReadFrom, withArgsReading } from "./effective-path-target.js";
|
|
4
4
|
import { editRewrittenSentence, readRejudge, rewriteChasedSentence } from "./rewrite-rejudge.js";
|
|
5
5
|
import { brandPolicyAskClass } from "./ask-class.js";
|
|
6
|
-
import { ASK_CLASSES, decisionAskClassesOf, headlessDenialMessage, joinAskReasons, MODE_ARBITRATION, unresolvedAskDenialMessage } from "./ask-origin.js";
|
|
6
|
+
import { ASK_CLASSES, decisionAskClassesOf, explainsRealApprovalBit, headlessDenialMessage, joinAskReasons, MODE_ARBITRATION, unresolvedAskDenialMessage } from "./ask-origin.js";
|
|
7
7
|
import { attest, attestationOf, engineSentenceOf, isEngineAttestation, mergeAttestation, mintAttestation, withAttestation } from "./engine-attestation.js";
|
|
8
8
|
import { ownReadRootCandidate, readRootGrantSeat } from "./read-root-grant-screen.js";
|
|
9
9
|
import { liveWordsOf } from "./approval-words.js";
|
|
@@ -799,7 +799,7 @@ export function createUnverifiableDeletePolicy(opts) {
|
|
|
799
799
|
}, "external_authority");
|
|
800
800
|
}
|
|
801
801
|
function removalAsk(req, verdict) {
|
|
802
|
-
return attest({ action: "ask", decisionReason: "safety", requiresRealApproval: true, message: verdict.text }, req, { guards: [verdict.guard], sentence: { text: verdict.text, guard: verdict.guard } });
|
|
802
|
+
return attest({ action: "ask", decisionReason: "safety", ...(explainsRealApprovalBit([verdict.guard]) ? { requiresRealApproval: true } : {}), message: verdict.text }, req, { guards: [verdict.guard], sentence: { text: verdict.text, guard: verdict.guard } });
|
|
803
803
|
}
|
|
804
804
|
function pathSegments(p) {
|
|
805
805
|
return p.split(/[\\/]/).filter(Boolean);
|
|
@@ -234,18 +234,18 @@ const REMOVAL_GUARD_SENTENCE = {
|
|
|
234
234
|
},
|
|
235
235
|
},
|
|
236
236
|
unverifiable_delete: {
|
|
237
|
-
card: (row) => `
|
|
237
|
+
card: (row) => `This delete could not be checked first: ${row}. Writing the exact path into the command (or setting the variable to a literal path in the same command, e.g. \`DIR=/exact/path; rm -rf "$DIR"\`) lets the engine check it.`,
|
|
238
238
|
rows: {
|
|
239
|
-
rewritten: (f) => `\`${f.program}\`
|
|
240
|
-
stream: (f) => `\`${f.program}\`
|
|
241
|
-
relocated: (f) => `\`${f.program}\`
|
|
239
|
+
rewritten: (f) => `\`${f.program}\` deletes ${inlineUntrusted(f.operand, 200)} recursively and by force, and the shell fills that path in from a value this command does not set (a name with no value here or one set in a form the engine cannot read, a substitution, a parameter operator)`,
|
|
240
|
+
stream: (f) => `\`${f.program}\` deletes recursively and by force the paths named by the input it is fed (${inlineUntrusted(f.operand, 200)})`,
|
|
241
|
+
relocated: (f) => `\`${f.program}\` deletes ${inlineUntrusted(f.operand, 200)} recursively and by force, relative to a directory a launcher option moved it into, which this command does not say`,
|
|
242
242
|
},
|
|
243
243
|
},
|
|
244
244
|
unverifiable_shell_text: {
|
|
245
|
-
card: (row) => `
|
|
245
|
+
card: (row) => `This command could not be checked first: ${row}.`,
|
|
246
246
|
rows: {
|
|
247
|
-
produced: (f) => `\`${f.program}\` runs shell text that is
|
|
248
|
-
unread: (f) => `\`${f.program}\` runs shell text
|
|
247
|
+
produced: (f) => `\`${f.program}\` runs shell text that is only put together when the command runs (${inlineUntrusted(f.text, 200)}), so the engine cannot read it beforehand — writing that text into the command itself (a \`-c\` string, a here-document or a here-string) lets the engine read it`,
|
|
248
|
+
unread: (f) => `\`${f.program}\` runs shell text the engine cannot read (${inlineUntrusted(f.text, 200)})`,
|
|
249
249
|
position: (f) => inlineUntrusted(programPositionRefusalSentence(f.refusal), 400),
|
|
250
250
|
},
|
|
251
251
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sema-agent/core",
|
|
3
|
-
"version": "7.68.
|
|
3
|
+
"version": "7.68.6",
|
|
4
4
|
"description": "Stateless, task-oriented AI agent core",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "BUSL-1.1",
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"dependencies": {
|
|
134
134
|
"@modelcontextprotocol/client": "2.4.0",
|
|
135
135
|
"@modelcontextprotocol/core": "2.4.0",
|
|
136
|
-
"@sema-agent/primitives": "7.68.
|
|
136
|
+
"@sema-agent/primitives": "7.68.6",
|
|
137
137
|
"typebox": "1.1.39",
|
|
138
138
|
"undici": "7.30.2"
|
|
139
139
|
},
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"package": "@sema-agent/core-stores-sql",
|
|
4
|
+
"version": "7.68.6",
|
|
5
|
+
"from": "9da2e9a5cc66d25f522c9f42319173ce44b74378",
|
|
6
|
+
"to": "v7.68.6",
|
|
7
|
+
"added": [],
|
|
8
|
+
"removed": [],
|
|
9
|
+
"changed": [],
|
|
10
|
+
"subpaths": [],
|
|
11
|
+
"subpathsUnread": [
|
|
12
|
+
"from",
|
|
13
|
+
"to"
|
|
14
|
+
],
|
|
15
|
+
"narrowed": [],
|
|
16
|
+
"faces": {
|
|
17
|
+
"open": [],
|
|
18
|
+
"source": null
|
|
19
|
+
},
|
|
20
|
+
"closedSetMembers": [],
|
|
21
|
+
"closedSetsUnreadable": [],
|
|
22
|
+
"typeKeys": [],
|
|
23
|
+
"typeKeysUnreadableArms": [],
|
|
24
|
+
"typeKeysFlattenedCount": 3,
|
|
25
|
+
"signatures": [],
|
|
26
|
+
"versionLiterals": [],
|
|
27
|
+
"declarationMoves": [],
|
|
28
|
+
"mintMoves": [],
|
|
29
|
+
"criteriaObserves": [],
|
|
30
|
+
"consumersHint": {
|
|
31
|
+
"cli": [],
|
|
32
|
+
"server": [],
|
|
33
|
+
"sdk": [],
|
|
34
|
+
"note": "scanned cli@1cd9bc796 server@31fbeedb4 sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
|
|
35
|
+
},
|
|
36
|
+
"breakingCount": 0,
|
|
37
|
+
"breakingItems": [],
|
|
38
|
+
"toResolvedAt": "79960bdeb2e96881c38c66415ad7ea21f15f481a"
|
|
39
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"version": "7.68.6",
|
|
4
|
+
"from": "9da2e9a5cc66d25f522c9f42319173ce44b74378",
|
|
5
|
+
"to": "v7.68.6",
|
|
6
|
+
"added": [],
|
|
7
|
+
"removed": [],
|
|
8
|
+
"changed": [],
|
|
9
|
+
"subpaths": [],
|
|
10
|
+
"narrowed": [
|
|
11
|
+
{
|
|
12
|
+
"id": "F1",
|
|
13
|
+
"source": "behaviorFlips.summary",
|
|
14
|
+
"text": "#4784 (widening, open to veto): the removal guard's two could-not-check questions — a shell text the engine cannot read (`unverifiable_shell_text`) and a recursive delete whose target it cannot verify (`unverifiable_delete`) — are ordinary questions: `bypassPermissions` releases them, the auto-mode classifier may answer them, a stored allow rule, a pre-approval or a blanket `onAsk: \"allow\"` clears them, and they carry no `requiresRealApproval`. On the narrowed read face (the default) the read station's `probe` riding on the same card still holds most of them for a person."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "F4",
|
|
18
|
+
"source": "behaviorFlips.summary",
|
|
19
|
+
"text": "#4784 (narrowing, a consequence of F1; open to veto): an approver's edit on a parked row whose class set is one of the two classes alone is refused on resume when the deployment's re-check of the edited input asks with a bare `requiresRealApproval`; 7.68.5 accepted it. The row stays pending and can be decided again."
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"faces": {
|
|
23
|
+
"open": [
|
|
24
|
+
"TRACE_EVENT_KINDS",
|
|
25
|
+
"TraceEvent"
|
|
26
|
+
],
|
|
27
|
+
"source": "src/core/contract-faces.ts"
|
|
28
|
+
},
|
|
29
|
+
"closedSetMembers": [],
|
|
30
|
+
"closedSetsUnreadable": [],
|
|
31
|
+
"typeKeys": [],
|
|
32
|
+
"typeKeysUnreadableArms": [],
|
|
33
|
+
"typeKeysFlattenedCount": 305,
|
|
34
|
+
"signatures": [],
|
|
35
|
+
"versionLiterals": [],
|
|
36
|
+
"declarationMoves": [],
|
|
37
|
+
"mintMoves": [],
|
|
38
|
+
"criteriaObserves": [
|
|
39
|
+
{
|
|
40
|
+
"kind": "taskEventField",
|
|
41
|
+
"name": "tool_end.gate",
|
|
42
|
+
"assertions": [
|
|
43
|
+
"G1.a",
|
|
44
|
+
"G3.a",
|
|
45
|
+
"G4.b"
|
|
46
|
+
]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "typeMember",
|
|
50
|
+
"name": "AskRequest.askClass",
|
|
51
|
+
"assertions": [
|
|
52
|
+
"G3.a",
|
|
53
|
+
"G4.a"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "typeMember",
|
|
58
|
+
"name": "AskRequest.classes",
|
|
59
|
+
"assertions": [
|
|
60
|
+
"G2.a",
|
|
61
|
+
"G5.a"
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"kind": "typeMember",
|
|
66
|
+
"name": "AskRequest.requiresRealApproval",
|
|
67
|
+
"assertions": [
|
|
68
|
+
"G2.a",
|
|
69
|
+
"G3.a",
|
|
70
|
+
"G4.a"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"kind": "typeMember",
|
|
75
|
+
"name": "RunnerDeps.readFace",
|
|
76
|
+
"assertions": [
|
|
77
|
+
"G1.a"
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"kind": "typeMember",
|
|
82
|
+
"name": "RunnerDeps.toolPolicy",
|
|
83
|
+
"assertions": [
|
|
84
|
+
"G6.a"
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"kind": "typeMember",
|
|
89
|
+
"name": "TaskSpec.basePolicyForResumeEdit",
|
|
90
|
+
"assertions": [
|
|
91
|
+
"G6.a"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"kind": "typeMember",
|
|
96
|
+
"name": "TaskSpec.onAsk",
|
|
97
|
+
"assertions": [
|
|
98
|
+
"G5.a"
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"kind": "typeMember",
|
|
103
|
+
"name": "TaskSpec.permissionMode",
|
|
104
|
+
"assertions": [
|
|
105
|
+
"G1.a"
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"kind": "typeMember",
|
|
110
|
+
"name": "TaskSpec.readDenyPatterns",
|
|
111
|
+
"assertions": [
|
|
112
|
+
"G4.b"
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"consumersHint": {
|
|
117
|
+
"cli": [],
|
|
118
|
+
"server": [],
|
|
119
|
+
"sdk": [],
|
|
120
|
+
"note": "scanned cli@1cd9bc796 server@31fbeedb4 sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
|
|
121
|
+
},
|
|
122
|
+
"breakingCount": 0,
|
|
123
|
+
"breakingItems": [],
|
|
124
|
+
"toResolvedAt": "79960bdeb2e96881c38c66415ad7ea21f15f481a"
|
|
125
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"package": "@sema-agent/mods-kernel",
|
|
4
|
+
"version": "7.68.6",
|
|
5
|
+
"from": "9da2e9a5cc66d25f522c9f42319173ce44b74378",
|
|
6
|
+
"to": "v7.68.6",
|
|
7
|
+
"added": [],
|
|
8
|
+
"removed": [],
|
|
9
|
+
"changed": [],
|
|
10
|
+
"subpaths": [],
|
|
11
|
+
"subpathsUnread": [
|
|
12
|
+
"from",
|
|
13
|
+
"to"
|
|
14
|
+
],
|
|
15
|
+
"narrowed": [],
|
|
16
|
+
"faces": {
|
|
17
|
+
"open": [],
|
|
18
|
+
"source": null
|
|
19
|
+
},
|
|
20
|
+
"closedSetMembers": [],
|
|
21
|
+
"closedSetsUnreadable": [],
|
|
22
|
+
"typeKeys": [],
|
|
23
|
+
"typeKeysUnreadableArms": [],
|
|
24
|
+
"typeKeysFlattenedCount": 1,
|
|
25
|
+
"signatures": [],
|
|
26
|
+
"versionLiterals": [],
|
|
27
|
+
"declarationMoves": [],
|
|
28
|
+
"mintMoves": [],
|
|
29
|
+
"criteriaObserves": [],
|
|
30
|
+
"consumersHint": {
|
|
31
|
+
"cli": [],
|
|
32
|
+
"server": [],
|
|
33
|
+
"sdk": [],
|
|
34
|
+
"note": "scanned cli@1cd9bc796 server@31fbeedb4 sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
|
|
35
|
+
},
|
|
36
|
+
"breakingCount": 0,
|
|
37
|
+
"breakingItems": [],
|
|
38
|
+
"toResolvedAt": "79960bdeb2e96881c38c66415ad7ea21f15f481a"
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"package": "@sema-agent/primitives",
|
|
4
|
+
"version": "7.68.6",
|
|
5
|
+
"from": "9da2e9a5cc66d25f522c9f42319173ce44b74378",
|
|
6
|
+
"to": "v7.68.6",
|
|
7
|
+
"added": [],
|
|
8
|
+
"removed": [],
|
|
9
|
+
"changed": [],
|
|
10
|
+
"subpaths": [],
|
|
11
|
+
"subpathsUnread": [
|
|
12
|
+
"from",
|
|
13
|
+
"to"
|
|
14
|
+
],
|
|
15
|
+
"narrowed": [],
|
|
16
|
+
"faces": {
|
|
17
|
+
"open": [],
|
|
18
|
+
"source": null
|
|
19
|
+
},
|
|
20
|
+
"closedSetMembers": [],
|
|
21
|
+
"closedSetsUnreadable": [],
|
|
22
|
+
"typeKeys": [],
|
|
23
|
+
"typeKeysUnreadableArms": [],
|
|
24
|
+
"typeKeysFlattenedCount": 7,
|
|
25
|
+
"signatures": [],
|
|
26
|
+
"versionLiterals": [],
|
|
27
|
+
"declarationMoves": [],
|
|
28
|
+
"mintMoves": [],
|
|
29
|
+
"criteriaObserves": [],
|
|
30
|
+
"consumersHint": {
|
|
31
|
+
"cli": [],
|
|
32
|
+
"server": [],
|
|
33
|
+
"sdk": [],
|
|
34
|
+
"note": "scanned cli@1cd9bc796 server@31fbeedb4 sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
|
|
35
|
+
},
|
|
36
|
+
"breakingCount": 0,
|
|
37
|
+
"breakingItems": [],
|
|
38
|
+
"toResolvedAt": "79960bdeb2e96881c38c66415ad7ea21f15f481a"
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"repo": "core",
|
|
3
|
+
"package": "@sema-agent/wiki-gate",
|
|
4
|
+
"version": "7.68.6",
|
|
5
|
+
"from": "9da2e9a5cc66d25f522c9f42319173ce44b74378",
|
|
6
|
+
"to": "v7.68.6",
|
|
7
|
+
"added": [],
|
|
8
|
+
"removed": [],
|
|
9
|
+
"changed": [],
|
|
10
|
+
"subpaths": [],
|
|
11
|
+
"subpathsUnread": [
|
|
12
|
+
"from",
|
|
13
|
+
"to"
|
|
14
|
+
],
|
|
15
|
+
"narrowed": [],
|
|
16
|
+
"faces": {
|
|
17
|
+
"open": [],
|
|
18
|
+
"source": null
|
|
19
|
+
},
|
|
20
|
+
"closedSetMembers": [],
|
|
21
|
+
"closedSetsUnreadable": [],
|
|
22
|
+
"typeKeys": [],
|
|
23
|
+
"typeKeysUnreadableArms": [],
|
|
24
|
+
"typeKeysFlattenedCount": 5,
|
|
25
|
+
"signatures": [],
|
|
26
|
+
"versionLiterals": [],
|
|
27
|
+
"declarationMoves": [],
|
|
28
|
+
"mintMoves": [],
|
|
29
|
+
"criteriaObserves": [],
|
|
30
|
+
"consumersHint": {
|
|
31
|
+
"cli": [],
|
|
32
|
+
"server": [],
|
|
33
|
+
"sdk": [],
|
|
34
|
+
"note": "scanned cli@1cd9bc796 server@31fbeedb4 sdk@3724afe — a name listed is MENTIONED there today, which is evidence of consumption, not proof of it"
|
|
35
|
+
},
|
|
36
|
+
"breakingCount": 0,
|
|
37
|
+
"breakingItems": [],
|
|
38
|
+
"toResolvedAt": "79960bdeb2e96881c38c66415ad7ea21f15f481a"
|
|
39
|
+
}
|