@sema-agent/core 7.69.0 → 7.69.1
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 +583 -0
- package/dist/agents/repair-loop.js +6 -14
- package/dist/agents/subagent.js +2 -1
- package/dist/agents/verify.d.ts +1 -1
- package/dist/agents/verify.js +7 -1
- package/dist/brain/reasoning-request.d.ts +7 -0
- package/dist/brain/reasoning-request.js +6 -0
- package/dist/core/agent-config-dir.d.ts +39 -3
- package/dist/core/agent-config-dir.js +67 -11
- package/dist/core/allow-entry.d.ts +5 -5
- package/dist/core/allow-entry.js +12 -6
- 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/attachment-source.d.ts +1 -1
- package/dist/core/attachment-source.js +1 -0
- package/dist/core/auto-compaction.d.ts +44 -62
- package/dist/core/auto-compaction.js +44 -103
- package/dist/core/cache-break-detector.d.ts +23 -11
- package/dist/core/cache-break-detector.js +11 -5
- package/dist/core/checkpoint-features.d.ts +1 -1
- package/dist/core/checkpoint-features.js +1 -1
- package/dist/core/checkpoint-requirements.d.ts +19 -1
- package/dist/core/checkpoint-requirements.js +6 -0
- package/dist/core/checkpoint-row-verdict.js +3 -0
- package/dist/core/checkpoint-store.d.ts +13 -2
- package/dist/core/child-clamp-seats.d.ts +30 -3
- package/dist/core/child-clamp-seats.js +24 -0
- package/dist/core/compaction-retired-members.d.ts +12 -0
- package/dist/core/compaction-retired-members.js +22 -0
- package/dist/core/config-refusal-codes.d.ts +1 -1
- package/dist/core/config-refusal-codes.js +2 -0
- package/dist/core/context-edit.d.ts +32 -17
- package/dist/core/context-edit.js +28 -0
- package/dist/core/cron.d.ts +68 -0
- package/dist/core/cron.js +259 -0
- package/dist/core/engine-attestation.d.ts +16 -0
- package/dist/core/engine-attestation.js +2 -0
- package/dist/core/engine-capabilities.d.ts +14 -1
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +18 -7
- package/dist/core/engine-version.js +1 -1
- package/dist/core/gate-outcome.d.ts +29 -2
- package/dist/core/gate-outcome.js +6 -0
- package/dist/core/git-read-only.d.ts +10 -0
- package/dist/core/git-read-only.js +1 -0
- package/dist/core/git-worktree-env.js +9 -8
- package/dist/core/governance-codes.d.ts +9 -2
- package/dist/core/governance-codes.js +9 -0
- package/dist/core/locked-config.js +7 -3
- package/dist/core/lsp.d.ts +3 -0
- package/dist/core/lsp.js +3 -2
- package/dist/core/memory-engine/engine.d.ts +48 -12
- package/dist/core/memory-engine/engine.js +108 -46
- package/dist/core/memory-engine/file-backend.d.ts +2 -1
- package/dist/core/memory-engine/index-copies.d.ts +47 -0
- package/dist/core/memory-engine/index-copies.js +88 -0
- package/dist/core/memory-engine/layout.d.ts +20 -3
- package/dist/core/memory-engine/layout.js +39 -3
- package/dist/core/memory-engine/origin-clearance.d.ts +9 -7
- package/dist/core/memory-engine/origin-clearance.js +2 -4
- package/dist/core/memory-engine/types.d.ts +16 -3
- package/dist/core/mode-policy.d.ts +7 -1
- package/dist/core/mode-policy.js +9 -0
- package/dist/core/mods/session-compact.js +3 -3
- package/dist/core/mods/stations.d.ts +2 -0
- package/dist/core/mods/stations.js +2 -1
- package/dist/core/path-guard-rows.d.ts +8 -3
- package/dist/core/path-guard-rows.js +18 -5
- package/dist/core/peer-seat.d.ts +3 -0
- package/dist/core/peer-seat.js +3 -0
- package/dist/core/permission-rule-model.js +3 -2
- package/dist/core/process-identity.d.ts +11 -3
- package/dist/core/process-identity.js +26 -16
- package/dist/core/runner/assemble-result.d.ts +5 -0
- package/dist/core/runner/assemble-result.js +1 -1
- package/dist/core/runner/cleared-results-record.d.ts +33 -0
- package/dist/core/runner/cleared-results-record.js +56 -0
- package/dist/core/runner/compact-session.js +14 -9
- package/dist/core/runner/compaction-knobs.d.ts +1 -1
- package/dist/core/runner/continuation-gate.js +2 -1
- package/dist/core/runner/continues-from.d.ts +1 -1
- package/dist/core/runner/continues-from.js +1 -1
- package/dist/core/runner/contracts.d.ts +83 -31
- package/dist/core/runner/conversation-segment.d.ts +19 -12
- package/dist/core/runner/conversation-segment.js +27 -7
- package/dist/core/runner/derived-route-fallback.d.ts +2 -12
- package/dist/core/runner/derived-route-fallback.js +0 -6
- package/dist/core/runner/gate-exit.d.ts +2 -1
- package/dist/core/runner/gate-exit.js +4 -2
- package/dist/core/runner/git-status-frame.d.ts +2 -2
- package/dist/core/runner/git-status-frame.js +2 -1
- package/dist/core/runner/initial-run-state.js +1 -1
- package/dist/core/runner/leg-caller-places.d.ts +39 -0
- package/dist/core/runner/leg-caller-places.js +23 -0
- package/dist/core/runner/leg-frame.d.ts +8 -2
- package/dist/core/runner/leg-receipt.d.ts +29 -2
- package/dist/core/runner/leg-receipt.js +37 -6
- package/dist/core/runner/media-removed-seat.d.ts +10 -6
- package/dist/core/runner/media-removed-seat.js +6 -3
- package/dist/core/runner/messages-omitted-seat.d.ts +2 -1
- package/dist/core/runner/messages-omitted-seat.js +15 -5
- package/dist/core/runner/person-path-rows.d.ts +25 -7
- package/dist/core/runner/person-path-rows.js +16 -2
- package/dist/core/runner/prefix-ledger.d.ts +120 -0
- package/dist/core/runner/prefix-ledger.js +176 -0
- package/dist/core/runner/prepare-advisor.d.ts +2 -0
- package/dist/core/runner/prepare-advisor.js +2 -1
- package/dist/core/runner/prepare-artifact.d.ts +3 -0
- package/dist/core/runner/prepare-artifact.js +2 -2
- package/dist/core/runner/prepare-caps-and-workflow.d.ts +2 -0
- package/dist/core/runner/prepare-caps-and-workflow.js +4 -3
- package/dist/core/runner/prepare-config-doors.d.ts +9 -8
- package/dist/core/runner/prepare-config-doors.js +15 -12
- package/dist/core/runner/prepare-context-lane.d.ts +25 -6
- package/dist/core/runner/prepare-context-lane.js +82 -27
- package/dist/core/runner/prepare-gate-stations.d.ts +1 -2
- package/dist/core/runner/prepare-gate-stations.js +2 -4
- package/dist/core/runner/prepare-hands-readface.d.ts +18 -5
- package/dist/core/runner/prepare-hands-readface.js +41 -22
- package/dist/core/runner/prepare-inherited-gate.d.ts +5 -0
- package/dist/core/runner/prepare-inherited-gate.js +2 -0
- package/dist/core/runner/prepare-memory.d.ts +10 -2
- package/dist/core/runner/prepare-memory.js +51 -5
- package/dist/core/runner/prepare-policy-chain.d.ts +3 -0
- package/dist/core/runner/prepare-policy-chain.js +13 -2
- package/dist/core/runner/prepare-prompt-assembly.d.ts +12 -4
- package/dist/core/runner/prepare-prompt-assembly.js +10 -4
- package/dist/core/runner/prepare-prompt-inputs.d.ts +3 -7
- package/dist/core/runner/prepare-prompt-inputs.js +6 -7
- package/dist/core/runner/prepare-safety-scan.js +7 -0
- package/dist/core/runner/prepare-suspend-saga.d.ts +4 -0
- package/dist/core/runner/prepare-suspend-saga.js +3 -2
- package/dist/core/runner/prepare-task.js +59 -53
- package/dist/core/runner/prepare-tool-disclosure-mount.d.ts +5 -11
- package/dist/core/runner/prepare-tool-disclosure-mount.js +7 -8
- package/dist/core/runner/prepare-turn-wiring.d.ts +16 -25
- package/dist/core/runner/prepare-turn-wiring.js +8 -18
- package/dist/core/runner/prepare-wiring-manifest.d.ts +1 -0
- package/dist/core/runner/prepare-wiring-manifest.js +3 -2
- package/dist/core/runner/prompt-suggestions.d.ts +3 -1
- package/dist/core/runner/prompt-suggestions.js +1 -1
- package/dist/core/runner/read-block-judge.d.ts +47 -0
- package/dist/core/runner/read-block-judge.js +33 -0
- package/dist/core/runner/role-resolution-table.d.ts +15 -10
- package/dist/core/runner/role-resolution-table.js +4 -5
- package/dist/core/runner/rule-store-unreadable-notice.d.ts +7 -4
- package/dist/core/runner/rule-store-unreadable-notice.js +4 -3
- package/dist/core/runner/run-compaction-machinery.d.ts +0 -10
- package/dist/core/runner/run-compaction-machinery.js +3 -39
- package/dist/core/runner/run-harness-handlers.js +4 -17
- package/dist/core/runner/run-identity-wiring.js +4 -1
- package/dist/core/runner/run-leg.js +11 -1
- package/dist/core/runner/run-recovery-lanes.d.ts +0 -4
- package/dist/core/runner/run-recovery-lanes.js +34 -18
- package/dist/core/runner/run-settle-and-teardown.d.ts +1 -3
- package/dist/core/runner/run-settle-and-teardown.js +14 -22
- package/dist/core/runner/run-telemetry-and-budget-seats.js +0 -1
- package/dist/core/runner/run-terminal-adoption.d.ts +11 -30
- package/dist/core/runner/run-terminal-adoption.js +5 -88
- package/dist/core/runner/run-tool-mount-facts.js +1 -5
- package/dist/core/runner/run-turn-boundary.js +56 -26
- package/dist/core/runner/runtask.js +7 -7
- package/dist/core/runner/session-hash-salt.d.ts +18 -0
- package/dist/core/runner/session-hash-salt.js +36 -0
- package/dist/core/runner/shell-env-withheld.d.ts +8 -5
- package/dist/core/runner/shell-env-withheld.js +3 -3
- package/dist/core/runner/side-call-account.d.ts +9 -1
- package/dist/core/runner/side-call-account.js +15 -4
- package/dist/core/runner/skill-mention.d.ts +12 -0
- package/dist/core/runner/skill-mention.js +50 -0
- package/dist/core/runner/stream-settle-backstop.js +1 -0
- package/dist/core/runner/synthetic-tools.js +2 -2
- package/dist/core/runner/tool-table-view.d.ts +5 -9
- package/dist/core/runner/tool-table-view.js +23 -21
- package/dist/core/runner/write-protection-station.d.ts +5 -2
- package/dist/core/runner/write-protection-station.js +1 -1
- package/dist/core/runner-deps.d.ts +25 -27
- package/dist/core/scheduler.d.ts +13 -3
- package/dist/core/scheduler.js +0 -12
- package/dist/core/secret-env.d.ts +47 -11
- package/dist/core/secret-env.js +65 -4
- package/dist/core/sensitive-path-policy.js +4 -0
- package/dist/core/session-checkout.js +10 -9
- package/dist/core/shell-read-silence.d.ts +2 -1
- package/dist/core/shell-run-candidates.d.ts +1 -1
- package/dist/core/shell-run-candidates.js +11 -3
- package/dist/core/task-event.d.ts +32 -10
- package/dist/core/task-intake.d.ts +5 -3
- package/dist/core/task-intake.js +6 -2
- package/dist/core/task-result.d.ts +39 -0
- package/dist/core/task-spec-members.d.ts +3 -0
- package/dist/core/task-spec-members.js +2 -2
- package/dist/core/task-spec.d.ts +37 -20
- package/dist/core/tool-policy.d.ts +30 -18
- package/dist/core/tool-policy.js +44 -32
- package/dist/core/tool-roster.d.ts +21 -7
- package/dist/core/tool-roster.js +34 -6
- package/dist/core/tool-spec-members.js +1 -1
- package/dist/core/tool-spec.d.ts +27 -0
- package/dist/core/tools.js +1 -0
- package/dist/core/trace.d.ts +42 -19
- package/dist/core/unc-spelling.d.ts +31 -0
- package/dist/core/unc-spelling.js +51 -0
- package/dist/core/wiring-manifest.d.ts +30 -3
- package/dist/core/wiring-manifest.js +10 -0
- package/dist/core/workflow-run-store-contract.js +22 -0
- package/dist/core/workflow-run-store.d.ts +17 -13
- package/dist/core/workflow-run-store.js +1 -1
- package/dist/core/write-protect.d.ts +4 -0
- package/dist/core/write-protect.js +17 -15
- package/dist/engine/compaction/compaction.d.ts +48 -98
- package/dist/engine/compaction/compaction.js +136 -216
- package/dist/engine/compaction/utils.d.ts +2 -11
- package/dist/engine/compaction/utils.js +4 -13
- package/dist/engine/execution-env/node-execution-env.js +17 -6
- package/dist/engine/harness/agent-harness.d.ts +19 -5
- package/dist/engine/harness/agent-harness.js +18 -7
- package/dist/engine/harness/types.d.ts +5 -7
- package/dist/engine/loop/agent-loop.d.ts +14 -1
- package/dist/engine/loop/agent-loop.js +31 -11
- package/dist/engine/loop/types.d.ts +8 -2
- package/dist/index.d.ts +9 -6
- package/dist/index.js +8 -6
- package/dist/internal/harness-types.d.ts +1 -1
- package/dist/internal/harness.d.ts +1 -1
- package/dist/internal/harness.js +1 -1
- package/dist/orchestration/run-spec.js +7 -2
- package/dist/orchestration/run-workflow-tool.js +5 -3
- package/dist/orchestration/workflow-park-adoption.d.ts +66 -8
- package/dist/orchestration/workflow-park-adoption.js +195 -45
- package/dist/orchestration/workflow-types.d.ts +20 -0
- package/dist/orchestration/workflow-types.js +1 -0
- package/dist/orchestration/workflow.d.ts +3 -2
- package/dist/orchestration/workflow.js +10 -4
- package/dist/prompt-assembly/catalog/core-behavior.js +6 -0
- package/dist/prompt-assembly/catalog/events.d.ts +8 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/core-behavior.js +6 -0
- package/dist/prompt-assembly/catalog/locales/zh-Hans/mechanism.js +1 -0
- package/dist/prompt-assembly/catalog/mechanism.d.ts +8 -0
- package/dist/prompt-assembly/catalog/mechanism.js +1 -0
- package/dist/prompt-assembly/catalog/schema.d.ts +1 -1
- package/dist/prompt-assembly/catalog/schema.js +1 -0
- package/dist/prompt-assembly/catalog/sections.js +8 -0
- package/dist/prompt-assembly/event-registry.js +1 -0
- package/dist/prompt-assembly/select.js +1 -0
- package/dist/prompt-assembly/turn-snapshot.d.ts +14 -27
- package/dist/prompt-assembly/turn-snapshot.js +6 -18
- package/dist/prompt-assembly/types.d.ts +3 -0
- package/dist/prompts/default.d.ts +9 -0
- package/dist/prompts/default.js +4 -0
- package/dist/shell/lex.d.ts +75 -11
- package/dist/shell/lex.js +340 -76
- package/dist/tools/fs/bash-program-position.js +2 -6
- package/dist/tools/fs/bash-readonly-classifier.d.ts +18 -3
- package/dist/tools/fs/bash-readonly-classifier.js +19 -9
- package/dist/tools/fs/containment-face.d.ts +12 -3
- package/dist/tools/fs/containment-face.js +16 -7
- package/dist/tools/fs/file-read-check.d.ts +26 -1
- package/dist/tools/fs/file-read-check.js +20 -2
- package/dist/tools/fs/fs-bash.js +4 -4
- package/dist/tools/fs/fs-read.d.ts +3 -0
- package/dist/tools/fs/fs-read.js +2 -2
- package/dist/tools/fs/fs-search-tools.d.ts +2 -2
- package/dist/tools/fs/fs-search-tools.js +4 -4
- package/dist/tools/fs/index.js +5 -3
- package/dist/tools/fs/pdf.js +12 -4
- package/dist/tools/fs/read-deny-home.d.ts +13 -2
- package/dist/tools/fs/read-deny-home.js +26 -22
- package/dist/tools/fs/read-deny.js +15 -6
- package/dist/tools/fs/removal-targets.d.ts +33 -17
- package/dist/tools/fs/removal-targets.js +160 -61
- package/dist/tools/fs/repo-map.d.ts +1 -1
- package/dist/tools/fs/repo-map.js +2 -2
- package/dist/tools/fs/safety.d.ts +28 -5
- package/dist/tools/fs/safety.js +72 -8
- package/dist/tools/fs/shell-read-bindings.d.ts +8 -2
- package/dist/tools/fs/shell-read-bindings.js +25 -6
- package/dist/tools/fs/shell-read-check.d.ts +3 -0
- package/dist/tools/fs/shell-read-check.js +22 -4
- package/dist/tools/fs/shell-read-establish.js +73 -43
- package/dist/tools/fs/shell-read-judge.d.ts +32 -14
- package/dist/tools/fs/shell-read-judge.js +13 -5
- package/dist/tools/fs/shell-read-object-path.d.ts +5 -1
- package/dist/tools/fs/shell-read-object-path.js +17 -4
- package/dist/tools/fs/shell-read-plan.d.ts +8 -2
- package/dist/tools/fs/shell-read-plan.js +36 -22
- package/dist/tools/fs/shell-read-sourced.js +12 -4
- package/dist/tools/fs/shell-read-start.d.ts +4 -2
- package/dist/tools/fs/shell-read-start.js +3 -3
- package/dist/tools/fs/shell-read-workdir.d.ts +14 -6
- package/dist/tools/fs/shell-read-workdir.js +35 -17
- package/dist/tools/scheduler-tools.d.ts +7 -17
- package/dist/tools/scheduler-tools.js +9 -85
- package/dist/tools/worktree.js +5 -4
- package/package.json +3 -2
- package/test/export-surface.snapshot.json +47 -1
- package/wire-changes/core-stores-sql@7.68.6.json +39 -0
- package/wire-changes/core-stores-sql@7.69.1.json +39 -0
- package/wire-changes/core@7.68.6.json +125 -0
- package/wire-changes/core@7.69.1.json +2561 -0
- package/wire-changes/mods-kernel@7.68.6.json +39 -0
- package/wire-changes/mods-kernel@7.69.1.json +39 -0
- package/wire-changes/primitives@7.68.6.json +39 -0
- package/wire-changes/primitives@7.69.1.json +39 -0
- package/wire-changes/wiki-gate@7.68.6.json +39 -0
- package/wire-changes/wiki-gate@7.69.1.json +39 -0
- package/dist/core/runner/prompt-hash-salt.d.ts +0 -1
- package/dist/core/runner/prompt-hash-salt.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,531 @@
|
|
|
1
|
+
## 7.69.1 — 2026-11-20
|
|
2
|
+
|
|
3
|
+
**7.69.1 in brief.** A summary only: every line names the sections that are its record, and nothing here is said that they do not say. "Open to veto" items are open to veto as their sections state.
|
|
4
|
+
|
|
5
|
+
**Fixed first** (shell commands that removed or read a protected place without a question; each section holds the measured before and after):
|
|
6
|
+
- A deny-listed file whose name is written partly with a numeric escape is read as that name and refused. On the published 7.69.0, `cat $'\x2e'git-credentials` and ten more such spellings (among them `cat ~/$'\x2e'npmrc` and `cat ~/$'\x2e\x73\x73\x68'/id_$'\162'sa`) read the protected file with no question under `bypassPermissions` on both read faces and under `auto` on the open read face; on this release each is refused in all 14 arms measured, as its plain twin is ("Numeric escapes in an ANSI-C quote", in #4784's section).
|
|
7
|
+
- A statement written past the place where the lexer stops is read and judged as if written alone: a protected removal there is asked with the real-approval bit and a deny-listed read is refused, where 7.68.6, 7.68.7 and this line before the change let the relaxed modes run them unasked (#4907; 7.69.0 asked with the bit for any text the lexer stops in).
|
|
8
|
+
- A command written in a nested parameter expansion, after an ANSI-C `\'` in one, or after a `}` in backquotes in one is read as if written alone; for two of these forms this fixes a regression against 7.69.0 (#5066).
|
|
9
|
+
- A removal that empties the home or the task root is the protected-location question however the command reaches the directory — a link, a link to a link, a drive alias, a mapped drive, a `cd` into a link — and a `$` bash takes as written is read as written (#5011, #5032); a pattern that names every entry of a directory (`rm -rf ~/?*`, `<home>/[!.]*`, `<task root>/?*`) is read as `*` (#5062).
|
|
10
|
+
- On a Windows tree a drive's administrative share under any host name (#4996) and Git Bash's `/c/…` (#4854) are judged as the drive path they name.
|
|
11
|
+
- The notice catalog holds the server's `memory.sync_layer_parked` (#4884); a cleared-results record whose writes keep failing is said again after a write lands (#5070, in #4866's section).
|
|
12
|
+
|
|
13
|
+
**The shell judgment, three release-review changes** (measured on v7.69.0 and on this release, six modes × both read faces):
|
|
14
|
+
- S1, "The statement the lexer stops in" (#4862's section): where a shell still runs the statement the lexer stopped in, the words read in full before the stop are judged as that command; stricter than before where the lexer stops at a `case` inside an unclosed `$(…)` or `<(…)` (`cat .env $(case x in` is refused, though bash runs nothing on that line).
|
|
15
|
+
- S2, "Numeric escapes in an ANSI-C quote" (#4784's section): `\xH` / `\xHH`, octal `\N` – `\NNN` and `\cX` are decoded where bash 3.2 and 5.x give the same non-NUL ASCII byte in both locales, so a word written with one reads as the word it spells.
|
|
16
|
+
- S3, "Quotes that hold nothing, a class of dots" (#5062's section): an every-entry pattern is read on the pattern bash forms after quote removal (`~/''?*`, `~/[!..]*`), and on the Windows family a `\` separates segments.
|
|
17
|
+
|
|
18
|
+
**Other behavior** (each in its section):
|
|
19
|
+
- The git the engine starts to read a repository opens with one read-only prefix: no hook, no fsmonitor program and no optional lock the repository's configuration names runs (#5116); the starts that change the repository and git's clean / smudge filters still run what it names (KL-5116-a).
|
|
20
|
+
- A cron expression's fields are separated as on 7.69.0, by any run of white space; CronCreate accepts the same expressions, and `isValidCronExpr` now refuses a seconds field and an out-of-range field (#4890, open to veto).
|
|
21
|
+
- A memory file the engine writes back into a freed seat without the vacated file's own mode is created owner-only (0600), where 7.69.0 created it at 0644 under umask 022 (#4875, "File mode", which names the in-place writer's paths it does not cover).
|
|
22
|
+
- What the engine cannot read or verify is an ordinary question in every mode (#4784, the owner's ruling); on the narrowed read face a read the station cannot see is that ordinary question too (#4789).
|
|
23
|
+
- Old tool results are no longer cleared ahead of a request by default (#4866, open to veto); the compaction summary runs on the main model and a pass judged before a request reuses the main request (#4865 / #4892, BREAKING timing).
|
|
24
|
+
- New seats: `TaskSpec.blockReadsOutsideRoots` (#4607) and `agentConfigDirs` / `agentHomeDirs` (#4787); a peer credential's variable is withheld from children (#4793); a process's private /proc files are refused and `/proc/self/cwd/…` is judged where the program stands (#4791, #4829); 7.69.0 regressions fixed (#4846, #4808, #4809).
|
|
25
|
+
- Root exports against 7.69.0: +23, −0 (#4816 / #4815 fourteen, #4607 four, #4832 four, #4890 one).
|
|
26
|
+
|
|
27
|
+
**Hard-breaking: type-level only** (each section's hard-breaking sentences say who is hurt and how to migrate): closed sets gain words — `EngineNoticeCode` 160 → 162 (#4884, #4865), `ConfigRefusalCode` / `RequirementWord` (#4607, #4787), `ENGINE_CAPABILITIES` (#4787), `TaskEvent` +`prefix_changed` and `brain.call.lane` +`suggestions` (#4869), `PrefixChangeCause` +`tool_result_clear` (#4866), `AttachmentSource` +`skill_mention` (#4864), `WorkflowRunUpdateCause` +`park_decision_settled` (#4832), `SettlementKind` +`approval_withdrawn` and `AskOutcome.settledBy` +`"withdrawn"` (#4942), `SecretEnvFindingKind` +`peer-held` (#4793); `TurnPromptSnapshot` loses `onChange` / `legStart` (#4869); `MaybeCompactOptions.forkContext` may return a `Promise` (#4865); `deploymentFaceClampNotice` takes its cause (#4607) (@server @cli @client-core @test).
|
|
28
|
+
|
|
29
|
+
**Looser than 7.69.0** (runs or reads where 7.69.0 asked or refused; each open to veto):
|
|
30
|
+
- What the engine cannot read is the ordinary question, which `auto`, `bypassPermissions`, a stored rule, a pre-approval or an answer table releases, where 7.69.0 asked a person with the real-approval bit (#4784; KL-4784-b / -e) — open to veto.
|
|
31
|
+
- In the statement the lexer stops in, an operand written after the stop (`rm -rf <<$EOF ~`), a command name after it (`x=$(case …) rm -rf ~`), a line bash refuses as a syntax error, and a file the stopped statement writes and a later one sources stay that ordinary question (S1; KL-7691-s1 ① – ④, KL-4907-a ⑥) — open to veto.
|
|
32
|
+
- Past the stop, a statement beyond the readings' budget (a long script with tens of stops), a task-root removal through `$OLDPWD` / `$PWD` / `${DIRSTACK[1]}`, a `cd` whose target is the construct, a child shell whose environment value is not literal (on the narrowed read face) and exported names before a child shell are the ordinary question or the read station's `probe`, where 7.69.0 asked with the bit (#4907; KL-4907-a ① ② ④, KL-4907-b ① ② ④) — open to veto.
|
|
33
|
+
- A protected write in #5066's two word forms is the read station's `probe` (`bypassPermissions` runs it), and the undelimitable and nested-arithmetic forms the ordinary question, where 7.69.0 asked with the bit (KL-5066-a ① – ③); a removal spelled with an escape the lexer still does not decode (a NUL, a byte past ASCII, `\u`, one the two bash versions disagree on) runs under `bypassPermissions` (KL-5011-b ①, KL-993g) — open to veto.
|
|
34
|
+
- On the narrowed read face, a read the station cannot see is no longer the mandated `probe`: `cat $'\u002fetc/hosts'`, a read through a bound `~user`, after `unset HOME` or inside `su <user> -c`, a binding-list word with a pattern piece (`for f in ~root/.ssh/id_rs[a]`, read once anyone answers), and a removal pattern whose POSIX `\` is part of a name (`rm -rf '/home/x\'?*`) (#4789, S3; KL-4789-a, KL-4789-c) — open to veto.
|
|
35
|
+
- A word written with a numeric escape both bash versions decode alike reads as its plain twin, so where the twin is allowed the escaped word is too: an array subscript, element or value, an arithmetic or builtin name, the integer-attribute values, an rm option word, a path on the open read face (S2; KL-994o, KL-994p ④); and where the task root is not the home, `cd $'\x2e' && cat .mcp.json`, `cd $'\x2e' && git show HEAD:.mcp.json` and `cd $'\x2e' && cat .npmrc` move from refused to reading the project's own file, which no deny row names — the ordinary question in `default` / `acceptEdits` / `plan`, run under `auto`, `bypassPermissions` and a stored whole-tool allow; where the task root is the home all three stay refused (S2) — open to veto.
|
|
36
|
+
- A host that compiles its own deny table and judges shell text itself, with a row spelled through `/proc/self/…`, no longer meets that row with a command that spells another path to it (#4829; KL-4829-a ④-②); a definition getter that throws only on its first read is accepted (KL-4793-d); a park a hand-mounted Workflow tool made on 7.69.0 with `oneShot` / `memoryPersistenceCapable` is refused `host_changed` on continue (KL-4846-a); a mount racing another process's erasure serves the erased entry for one leg (KL-4867-e); a PuTTY body not 64 wide leaves the tail of a following `password=` line (KL-4361-a) — open to veto.
|
|
37
|
+
- Against 7.68.7, not 7.69.0 (ruling C-R2800): KL-4996-f (15 + 42 device-spelling cells) and KL-5011-d (one cell) — open to veto.
|
|
38
|
+
|
|
39
|
+
**Stricter than 7.69.0**: S1's `case` inside an unclosed substitution (above); an approver's edit on resume that raises a bare real-approval bit is refused (KL-4784-f, open to veto @server); the engine's own git no longer runs a repository's fsmonitor or hooks (#5116); memory files restored at 0600 (#4875).
|
|
40
|
+
|
|
41
|
+
**Known limits.** Every Windows reading in this release is a double's (an in-memory win-family environment), with no real Windows machine: #4996, #4854, #5011's drive forms and the Windows-family cells of S1 and S3 (KL-4996-a – -f, KL-4854-a – -c, KL-7691-s3). Paths new in this release, with no 7.69.0 counterpart: KL-4866-a / -c / -d, KL-4875-b / -c, KL-4607-o. Older than this release and not changed by it (KL-5132-a): the isolation key the engine gives a call that carries no principal is the literal `default`, the same key as a principal named `default`, so on a deployment that does not require a principal on every request the two can list each other's workflow runs. Where every task carries a principal the engine writes no row under that key (measured on this release: one Runner over eight file stores, every key the principal's own). Until the key is changed in 7.70.0: do not name a principal `default` where anonymous calls are accepted, and pass `scope` when the host itself calls `runWorkflow` / `startWorkflow` / `createCcPeerDirectory` or mounts the Workflow tool.
|
|
42
|
+
|
|
43
|
+
### The notice catalog holds `memory.sync_layer_parked` — the code a server tells a session's person when a memory sync layer of the serving process stopped syncing on its cursor and stays stopped until the cursor is reset (#4884; behavior change: none, the catalog gains one word this package never mints; narrowing: none; widening: none; hard-breaking: none on the wire, type-level for an exhaustive reader of `EngineNoticeCode` — below; closed sets: `EngineNoticeCode` +1, `memory.sync_layer_parked` (audience `user`, attention `act`, minter `server`); exports: none at the root; wire: one notice code, `detail: { scope, cause, axis?, found?, wayOut, sessionId }`) (@server)
|
|
44
|
+
|
|
45
|
+
- **Now.** `ENGINE_NOTICE_CODES` holds `memory.sync_layer_parked` (`src/core/governance-codes.ts`; 160 codes in 7.69.0, 162 in this release — the other new one is #4865's `config.compaction_member_ignored`), with a row in each of the four lockstep tables — audience `user`, attention `act`, minter `server` — and as a posture row of `NON_GOVERNANCE_MEMORY_CODES`; it is documented on `EngineNotice.code` (`src/core/engine-notice.ts`) beside the five other server-minted rows. The server composes the sentence, writes `attention` on its own frame (a server's frame skips the throat), and tells it once per parking per serving process. This package mints nothing: no file under `src/` other than the two catalog modules spells the word, and the catalog gate reads a `server` row as catalogued-not-minted.
|
|
46
|
+
- **Closed sets.** `ENGINE_NOTICE_CODES` +1 (162 with #4865's word; 160 in 7.69.0); the server-minted set is now six; user × act 60 → 61, no other cell moves (`docs/CLOSED-SETS.md`, `docs/INTEGRATION-CORE.md`, and the wiki page `notices-and-error-codes`: its catalog table and the four generated counts, re-rendered to what a fresh generation gives; the page's `verified` stamp is not moved).
|
|
47
|
+
- **Hard-breaking (type-level, closed set +1).** *What changed:* `EngineNoticeCode` gains `memory.sync_layer_parked`. *Who is hurt:* a host table typed `Record<EngineNoticeCode, …>`, a `switch` that ends in a `never` default, a mirror of the catalog that rejects an unknown word, and a pin on the catalog's length. *How to move:* add the row. Additive on the wire: no frame changes shape.
|
|
48
|
+
- **Pins.** `test/backlog4884-sync-layer-parked-registered.test.ts` — the word is in the catalog exactly once and each of the audience, attention and minter tables answers for it (minter not `engine`); the four existing pins that list the catalog (`backlog1240-server-minted-notices`, `backlog3325-records-skipped-retired`, `backlog4696-notice-attention`, `governance-codes`) name it.
|
|
49
|
+
- **Consumers.** @server: the catalog now holds `memory.sync_layer_parked`; forward it with the `detail` above and write `attention: "act"` on your frame. A consumer that pins the catalog as a closed set adds one row.
|
|
50
|
+
|
|
51
|
+
### A task can refuse reads outside its directories without asking — `TaskSpec.blockReadsOutsideRoots`: the file read tools refuse such a read at the gate, ahead of the questions the gate puts (a person's card, a rule's, the classifier's, an ancestor's), the person's read rows set aside; the Artifact tool's local read is refused by the tool with the same remedy; the seat reaches every child and survives a resume — save the verification gate's verifier and fix legs after a durable resume whose resume-side spec does not send it again (KL-4607-o) (#4607; behavior change: none on the file-read lanes where the seat is absent, and four on the governed workflow-script lane, which now admits the seat (a script's `true` crosses, any other value is stripped under a new reason word, and the strip notice's and the clamp record refusal's sentences name it — the Script lane bullet below); hard-breaking: four entries, all type-level — `deploymentFaceClampNotice` takes its cause, two closed sets gain a word, six root types gain a key (one required), and `RunWorkflowToolDeps.parentClamps` returns a type that now requires the new key — below, open to veto @server @cli @client-core @test; narrowing: none; widening: none; closed sets: `ConfigRefusalCode` +`config.read_face_read_block_conflict`, `RequirementWord` +`read_block`, `FaceClampCause` (new: `read_only_mount`, `read_block` — the clamp announcement's `detail.cause` +`read_block`), `StationRefusalLayer` (new: `read_boundary`); exports: this change adds or removes no root name, and the four names its root signatures use are root exports since a later fix of this release — `FACE_CLAMP_CAUSES`, `FaceClampCause`, `StationRefusal`, `StationRefusalLayer` (additive); wire: a refused read on a seat leg's `tool_end` — denied at the gate as `read_boundary`, where the read-only mount's refusal is the tool's under an allowed gate; and on the governed script lane the strip notice's `message` and `detail.stripped[].reason`, and the clamp record refusal's sentence (the Script lane bullet below); divergence: four, open to veto — the seat holds for the leg that sends it (and its resume), the reference's for the session once on (KL-4607-m); two questions that still come before the refusal (KL-4607-i / -j), where the reference refuses with zero cards; and a refusal after a hook's plain allow is filed like every other (`deniedBy: "read_boundary"` on its `tool_end` and one `classic.PermissionDenied` observation, with or without an approver, pinned Z5 / SF-d), where the reference's headless run emits no refusal event on that one arm (all three: test's real-binary runs, 3 / 3)) (@server @cli @client-core @test)
|
|
52
|
+
|
|
53
|
+
- **Rule.** How a leg meets a file read outside its roots is ONE answer (`outsideReadDisposition`, `src/tools/fs/file-read-check.ts`): a question (today), the tool's own fence (the read-only mount, today) or the read station's refusal at the gate (the seat). The seat is resolved once per leg (`TaskSpec.blockReadsOutsideRoots` ∨ the park row's `readBlock`), on both the hands and the hands-less branch, and every reader takes that value: the read station's arm, the read roots (`readRootsOver`'s `personDirectories`: `set_aside` — one input on the one composition both readings share), the read face's row 1 (the read-only mount ∨ the seat), the in-flight grant (`grantReadRoot` not built, no card offers a directory), the children's clamp (`runClampSource`), the park row. On a seat leg the station refuses at the gate every refusal the tools' path check (`resolveKey`) would make of the target the call declares — outside the roots, a deny row, a target it cannot resolve — in the tool's words and card, the engine's own background output file excepted (KL-4607-l); the tools' later checks (a directory, a size) stay the tools'; a judgment that does not finish is a refusal.
|
|
54
|
+
- **Before (measured on the base tree `cd2edc21c`, real Runner, real env).** No seat existed: an out-of-root Read on a default leg was a card (`ask_resolution` when refused); a person's `Read(//dir/**)` allow row widened the roots on every leg, the read-only mount's included; a delegated child's out-of-root Read put a card to the ancestor's approver (arms: a distinct ancestor policy, an inherited installation's `classic.PreToolUse` and `tool.check`, the shared-instance adapter) and then one to the child's; an ancestor approver's edit that moved the read outside put a second ancestor card.
|
|
55
|
+
- **Now.** With the seat: `tool_end.gate.disposition = { kind: "denied", deniedBy: "read_boundary" }`, `errorCode: "path_not_in_root"`, the `path_not_in_root` card, zero `onAsk` calls, in every permission mode (`dontAsk` included: the layer is the read boundary's, not the mode's); the model reads `Error (<Tool>): "<target>" is outside the directories this task may read (<roots>). This task refuses reads outside its directories (blockReadsOutsideRoots); ask the user to add the directory to the task's directories.` The inherited lanes judge the call with the same station before any ancestor question (the installation settlement, the shared-instance adapter, the approved edit's re-check — one mint, `EngineAttestation.stationRefusal`), so no question about a read the leg refuses reaches the ancestor's approver through those lanes (an approver a policy calls inside its own `check` is KL-4607-i). A `PreToolUse` hook still sees the model's call first and its rewrite is what is judged. **What the seat promises, in one sentence:** with it on, a file read outside the task's directories by Read, Grep, Glob, RepoMap or LSP (the engine's own background output file excepted) is refused without an approval card about it — not to the person, a rule, the classifier or a parent agent's approver — except in two cases where the outside read still reaches an approver once before it is refused: (1) a host policy that calls its own approver inside its `check` (`createApprovalPolicy`, server's auto-approve budget seat among them; an ancestor's such policy too), and (2) the leg's own approver approving an in-root read with an edit that moves it outside, when no inherited layer asks about the edited read AND the layer that asked first also asks about the edited bytes (a policy's own `check` ask — measured —, and measured in a review run, not pinned, a hook's ask, the deployment's approver, the `plan` and `acceptEdits` modes, Grep's own card: the edit is put to the approver once more, two cards in all, the first about the in-root read); when the layer that asked first is an ask ROW on the in-root directory the edit is not asked again (one card, then refused — measured; the base tree's same cell is one card too); the Artifact tool refuses an outside local file itself (measured, KL-4607-i / -j / -k; against today: (1) is one card fewer than today — the in-check approver, then no card, then refused, where today the read is carded and served; (2) is the same card count as today on the two arms with a base-tree twin pinned, refused in the seat's sentence). Without the seat, nothing changed on the file-read lanes (Z1: the base tree's twenty-cell matrix, every byte, frozen); the governed workflow-script lane is the exception (the Script lane bullet).
|
|
56
|
+
- **Hard-breaking (four, all type-level).** (1) *What changed:* `deploymentFaceClampNotice(kind)` (package root) is `deploymentFaceClampNotice(kind, cause)` — `cause` (`"read_only_mount" | "read_block"`) required, no default. *Who:* a host calling it directly. *How to move:* pass the cause (`"read_only_mount"` for the read-only mount's clamp). Known consumers: none — server's consumption ledger (`docs/core-consumption/LEDGER.json`) records it `skip` (never imported); cli and client-core `origin/main` do not name it (`git grep -P`, read 2026-11-15). (2) *What changed:* two closed sets gain a word — `CONFIG_REFUSAL_CODES` / `ConfigRefusalCode` +`config.read_face_read_block_conflict` (a task-layer `readFace: "open"` beside the seat; with `handsReadOnly` on too, the read-only mount's `config.read_face_readonly_conflict` is thrown instead) and `REQUIREMENT_WORDS` / `RequirementWord` +`read_block`. *Who:* a host whose table is `satisfies Record<ConfigRefusalCode, …>` or `Record<RequirementWord, …>` (tsc-red until it places the word). *How to move:* add the word's row (the code: a configuration refusal before the run starts; the requirement word: a row this release reads). The code is not a resume screen word (`CheckpointConfigRefusalCode` unchanged, as for its read-only sibling): the conflict is thrown by the face resolution, which a resume's pre-claim screen does not run — a resume whose re-sent spec adds `readFace: "open"` beside the row's read block fails with the code after the claim, the approved action unstarted and the row reopened pending (measured). (3) *What changed:* six root types gain a key — `SerializedCheckpointState` (every member of `CheckpointState`, each REQUIRED) the required `readBlock`; `TaskSpec` (`blockReadsOutsideRoots`), `ToolExecuteContext` (`blockReadsOutsideRoots`), `CheckpointState` (`readBlock`), `EngineAttestation` (`stationRefusal`) and `ContainmentFaceInputs` (`readBlock`) an optional one each. *Who:* a host that builds a `SerializedCheckpointState` literal (a store adapter), or keeps an exhaustive key table (`Record<keyof T, …>`, `Exclude<keyof T, …>` guards) over any of the six; an ordinary literal of the five others still compiles. *How to move:* `readBlock: undefined` (or the row's value); a row for the new key. Known consumers: of (2), server's configuration refusal class guard (a pin; named by the design's consumer list, not re-read here — server's source reads the type through a runtime loud arm, no `Record<ConfigRefusalCode` table) and no `RequirementWord` reader; of (3), server's core key-set guard (`src/trace/core-keyset-guard.ts`, an `Exclude<keyof TaskSpec, …>` guard — the `TaskSpec` key) and nothing else — server's ledger records `SerializedCheckpointState` `skip` (it reads `CheckpointState`), and server / cli / client-core `origin/main` hold no `keyof` table over the other five, no `Record<RequirementWord`, no `SerializedCheckpointState` construction (`git grep -P`; positive control: `TaskSpec` named in 374 / 41 / 45 files, `ConfigRefusalCode` in server 5, `keyof` in server's guard 174 lines). Not root-exported, so no host change: the phase inputs and `readRootsOver` (this repository's own pins took one line each); the clamp source type is not a root name either, but a root export reaches it — (4). (4) *What changed:* the type `RunWorkflowToolDeps.parentClamps` returns. `RunWorkflowToolDeps` is a root export; its member `parentClamps` (`src/orchestration/run-workflow-tool.ts`) returns `ChildClampSource` (`src/core/child-clamp-seats.ts`), which requires EVERY clamp-carrier row of the clamp table as a present key, and `blockReadsOutsideRoots` is a new row. *Who:* a host that writes that getter's return as an object literal, or annotates it with the type (tsc-red: `Property 'blockReadsOutsideRoots' is missing`; pinned by a `@ts-expect-error` cell with a positive control, `test/backlog4607-script-lane.test.ts` S5). *How to move:* add `blockReadsOutsideRoots: undefined` (or `true` when the host's own run holds the seat) to the literal. At run time a getter that still lacks the key is not refused (the record check names stray names only) and reads as no clamp on that seat (S5). Known consumers: none — no source or test file of server, cli or client-core `origin/main` names `parentClamps` as code (`git grep -P`, read 2026-11-15 on the 2026-11-14 heads; cli's one hit is a wire-consumption manifest's text; positive control: `createRunWorkflowTool` / `RunWorkflowToolDeps` in 9 / 2 / 1 files, `TaskSpec` in 378 / 42 / 45).
|
|
57
|
+
- **Not breaking.** `ContainmentFaceInputs.onDeploymentClamp` (an input of the root-exported `resolveContainmentFace`) now takes the row's cause as its one argument: a hook written with no parameter still assigns to the type and is still called, and only `resolveContainmentFace` itself calls it.
|
|
58
|
+
- **Additive.** `TaskSpec.blockReadsOutsideRoots?: boolean`; `ToolExecuteContext.blockReadsOutsideRoots?: true` (the clamp carrier a delegation tool spreads); `CheckpointState.readBlock?: true` under the reader requirement `read_block` (a worker without the word refuses the row `version_newer`; a value other than `true` is `requirements_damaged`, no reason word of its own); `EngineAttestation.stationRefusal?` (the refusing station's layer and card, on a refusal an inherited station settled in the read station's name — read once each, the layer by the settlement ledger, the card by the gate's deny exit); `resolveContainmentFace` input `readBlock?` and its clamp hook's argument (the cause) — backward compatible; the clamp announcement `config.read_face_deployment_clamped` with `detail.cause: "read_block"` and its own sentence, ledgered once per sink AND cause (a sink that heard the read-only mount's clamp still hears a seat leg's) — on a leg with hands, when no task-layer face already decides (a task-layer `readFace: "roots"` announces nothing; a hands-less leg announces neither cause, as before).
|
|
59
|
+
- **Not changed.** The read-only mount without the seat, every shape (its file tools' out-of-root read: no read station, the tool's fence against its roots — a standing row's directory included — with the escape hint; its shell refuses at the gate — Z1 / Z3 / Z4); the shell: an out-of-root shell read is the mandated question it was (the read-only shell refuses), now judged against the leg's own roots and with no directory to add on the card, still released under `bypassPermissions` (S4, D-3, is another slice); the hook-first order; every code of a refusal (`path_not_in_root`, `read_path_denied`); `DeniedBy`. The file-read lanes with the seat absent are the base tree's bytes (Z1); the one lane where the seat's absence is not is the governed workflow script's, next.
|
|
60
|
+
- **Script lane (the one place the absent seat is not the base tree).** The seat is a row of the clamp table whose script law admits it, so the governed workflow-script seam (`WHITELIST_KEYS`, `buildGovernedChildSpec`) carries it, and four things on that lane differ from the base tree whether or not a script uses the seat: (a) every `workflow.governance_key_stripped` notice's `message` — about any stripped field — names `blockReadsOutsideRoots` in both lists it renders, the keys a script may set and the tightening values (`blockReadsOutsideRoots: true`); (b) a script's `blockReadsOutsideRoots: true` is no longer stripped (the base tree stripped and announced it, `not_whitelisted`): it reaches the child spec, and that child refuses outside reads at the gate as a seat leg does (a child can never read where its parent refuses: `tightenTaskSpec` refuses `true → false`); (c) a script's `false`, or any other value, is still stripped and announced, with `detail.stripped[].reason` `not_a_tightening_value` where the base tree said `not_whitelisted`; (d) the refusal of a clamp record that names a seat the table lacks (`config.invalid_argument`: `RunWorkflowToolDeps.parentClamps()`'s record, `createSubagentResume`'s `currentClamps`) lists one more name in its `the legal seats are …` sentence. A script can only tighten: nothing here widens a child. Pinned in `test/backlog4607-script-lane.test.ts` (S1–S4, seven cells, all red on the base tree and green here).
|
|
61
|
+
- **Known limits.** KL-4607-a (the read-only mount's ask-then-refuse), -b (the shell overflow file by Read), -c (a skill's own files outside the roots), -d (paths, not file identity), -e (LSP results), -f (the shell is no jail), -g (a stuck lookup can refuse an in-root read), -h (no result-level count), -i (an in-`check` approver asked first), -j (the leg's own approver re-asked about its outside edit, when the layer that asked first also asks about the edited bytes; an ask row on the in-root directory asking first does not), -k (the Artifact tool's local read is the tool's, not the gate's), -l (the background output exemption vouches for every file tool, only Read's fence honors it), -m (the seat is the leg's, not the session's: a later leg of the same session that does not send it reads as today — measured; a divergence: the reference keeps it for the session once on, removing the key or writing `false` does not lift it — test's real-binary runs, 3 / 3, open to veto), -n (a host's own derived delegation tool that does not spread the context's clamp seats onto the child specs it builds hands its children no seat — the carrier rule of every clamp seat; measured in a review run, not pinned), -o (the verification gate after a durable resume: `resumeWithVerification` whose resume-side spec does not send the seat again resumes the implementation leg with it — the row keeps it — but its verifier and fix legs do not get it, since the completed result has no seat that says the leg ran with it: with a standing `Read(//<dir>/**)` row both read outside with no question, and without one the fix leg asks the person instead of refusing; measured in a review run, not pinned; a first run through `runWithVerification` carries it to both, measured; the way out until it is fixed: send the seat again on the resume-side spec). A host's own new leg (a timer, a wake, a new session's first leg) inherits nothing from a row: send the seat.
|
|
62
|
+
- **Rules.** Answers to "is this out-of-root read asked, refused or fenced": 1 (one function; the station's mount and its arm read it). Read-root compositions: 1, one more input. Row 1 of the read face: one row, one more cause. Clamp ledger keys: (kind) → (kind, cause). Inherited question sites the read station judges ahead of: 3 (one mint). Record members: +1 (`stationRefusal`, two fields, one reader each, both in `src/core/runner/gate-exit.ts`). No `if (seat)` in any tool: the tools read their roots and, through the run's read face, one remedy (`READ_BLOCK_REMEDY`, minted once).
|
|
63
|
+
- **Pins.** `test/backlog4607-read-block.test.ts` — Z1 (twenty cells as the base tree read them), Z1′ (`false` = absent), P1 Read / Grep / Glob, P2 (a standing row does not lift it), P2′ (a path attachment and the Artifact tool's local read: the row set aside, the remedy, never `readFace`), P3 (declared directories, the background output file), P4 (the read-only mount too), P5 (six modes, the classifier never asked), P6 (an ask row), P6‴ / P13 (deny rows, outside and inside), P6″ / P14 (a stuck lookup; the station's unanswered sentence), P7 (the shell's card, no candidate), P8 / Z4 (the conflict code; two causes, two announcements, one sink), Z5 (hook first), P9, G18, the two measured limits (KL-4607-i: one in-`check` approval then the refusal; KL-4607-j: two cards then the refusal — and its condition: an ask row on the in-root directory asking first is one card, the base tree's twin one too); side readings SF-a (a later leg's `false` lifts it as the key's absence does; sent again it holds again), SF-b (the shell per permission mode), SF-c (the refused `tool_end`'s `isError`, code, layer and card, Read / Grep / Glob), SF-d (a hook's plain allow, then the refusal: one `classic.PermissionDenied` observation, no event type of its own, with or without an approver). `test/backlog4607-script-lane.test.ts` — S1 (a script's `true` crosses: the spec, a real leg refusing the outside read with zero cards beside a no-declaration control leg, the Workflow mount), S2 (`false` and garbage stripped, `not_a_tightening_value`), S3 (the strip notice's two lists), S4 (the clamp record refusal's list), S5 (the type `parentClamps` returns requires the key; a getter lacking it still runs). `test/backlog4607-inherited.test.ts` — P6′ and P6⁗ on four arms (a distinct ancestor policy, an installation's `classic.PreToolUse`, its `tool.check`, the shared-instance adapter; the Agent tool's own spawn too), the ancestor's edit outside (one card, no second), the child's own approved edit re-checked under an ancestor policy that asks (one child card, one ancestor card) — each with `read_boundary`, the card and the sentence. `test/backlog4607-resume.test.ts` — P11 (the row keeps it; a resumed leg hands it to a child and parks again with it; `read_block`; newer word; five damaged values), P9 / P10 (the clamp row).
|
|
64
|
+
- **Consumers.** @server: the seat is the task-layer declaration your folder chat needs; where it is minted is yours. Your pins that move only on a leg that sends it: the folder-chat scene's four (an out-of-root file refused — now at the gate, `read_boundary`; the standing-row cell — the sentence changes and the row no longer widens the roots; the bypass mode — still refused, now `read_boundary`; the default read face) and the read-only autonomy level's "out-of-root read refused" if you send the seat there; an in-root deny-row hit beside an ask row (your read-face e2e pins `read_path_denied`) becomes a gate refusal with no card. Your pick-up turns three things red: the core key-set guard (a new `TaskSpec` key), the configuration refusal class guard (the new word), the wire projection's `workspace_changed` table (only when S3's frame member lands, not this slice). A resumed leg keeps the seat from the row; a leg you start yourself does not inherit it. What you can promise the folder chat's user is the sentence under **Now** — zero cards for an out-of-root file read, with its two exceptions: your auto-approve budget seat (`createApprovalPolicy` in `src/approval.ts`) answers inside the policy, before the read is refused, so a budgeted name that covers `Read` spends one unit on a read that is then refused (read from your code, not measured); and an approval that carries `updatedInput` (your approvals route) moving a read outside is asked once more when no inherited layer asks about the edited read. @cli @client-core: render a `read_boundary` refusal as refused (it is not a read); a headless host counts refused reads itself (the run still ends `completed`). @test: the receipt's three weakest places.
|
|
65
|
+
- **Wire.** `tool_end` of a refused read on a seat leg (above); `config.read_face_deployment_clamped`'s `detail.cause` +`read_block`; the park row's `state.readBlock` and `requires` +`read_block`; on the governed script lane (the Script lane bullet): `workflow.governance_key_stripped`'s `message` (both lists name the seat, for a strip of any field) and `detail.stripped[].reason` (`not_a_tightening_value` for a script's `false` or other non-`true` value, where the base tree said `not_whitelisted`; a script's `true` is not stripped, so no notice), and the `config.invalid_argument` sentence of a clamp record naming a seat the table lacks (`the legal seats are …` lists the seat).
|
|
66
|
+
|
|
67
|
+
### A headless PuTTY private body is read line by line at any wrap — a body wrapped at a width other than 64 is withheld from its second line on again, on both exits (#5020; Security; behavior change: narrowing — more withheld; widening: one form, below; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
|
|
68
|
+
|
|
69
|
+
- **Rule.** After `Private-Lines: <n>`, every line that is body characters whole (`A–Z a–z 0–9 + / =`) and that a line break ends — a real one, CRLF, or its escape in a serialized string behind up to 63 backslashes — is body, whatever its width; the first line that is not is the last line, read as on 7.69.0 (8 body characters or more to the first non-body character; a shorter run only to its line end, a serialized string's closing quote or the text's end). The row's 64-character width is gone: one reading of a line, the same for `providerMessage` and `terminal.message`. The declared count is still no bound.
|
|
70
|
+
- **Before → now (measured on this host: a real Runner refused with each cell, both exits, and both egress tiers; seeded random bodies, the same text on every tree; the longest run of a body line left in view, ≤ 3 is coincidence; columns v7.68.3 / v7.69.0 / now).** Wrap 48, 70, 76 or 112 with 2 or 3 lines, every last-line kind and every break: the whole line width / the whole line width (from the second line on) / ≤ 2. Wrap 64, and any wrap with 1 line: up to the line width (7.68.3 read no escaped break and no last line with a word after it) / ≤ 3 / ≤ 3. Hand-wrapped 70 / 64 / 70 / 40: 70 / 70 / ≤ 2; first line short, 40 / 64 / 64: 64 / 64 / ≤ 2; 70 / 70 / 30 with CRLF in a JSON string: 70 / 70 / 2; 76 / 76 / 76 / 12 in a JSON string, once or twice: 76 / 76 / 2; a declared count of 2 over three lines (70 / 70 / 30), of 4 over the same three in a JSON string: 70 / 70 / 2. Of these 840 cell-and-exit readings none leaves more in view than either earlier version (574 leave less than v7.68.3, 422 less than v7.69.0). Two forms outside this table do leave more in view than v7.68.3; they are listed apart below ("Reads less than before").
|
|
71
|
+
- **Withdrawn (7.69.0's "Reads less than before", vetoed @test).** A body wrapped wider than 64 no longer has only its first line read; the same held for one narrower than 64, which 7.69.0's note did not say.
|
|
72
|
+
- **Withheld that was carried (KNOWN-LIMITS KL-4361-a).** A word alone on its line after a body, or after the field, is read as one more body line, as 7.68.3 read it: `Private-Lines: 2\n<64>\n<40>\nThanks\nRegards` → `«redacted:private-key»` (7.69.0 kept `\nThanks\nRegards`); `Private-Lines: 2\nok\nThanks` → `«redacted:private-key»` (7.69.0 kept `\nThanks`). A word with punctuation, or with more words on its line, is carried: `…\nThanks,\nRegards` and `Private-Lines: 14\nThe next lines …` read as written on all three.
|
|
73
|
+
- **Reads less than before — looser than v7.68.3; v7.69.0 already read it so after a 64-wide body (KNOWN-LIMITS KL-4361-a; the keyword row's own bound is #5034).** A line that opens with a credential label right after a headless body is read as the body's last line (8 body characters or more — letters, digits, `+ / =`), so the keyword row finds no label in the rewritten text; a quoted value after it that holds a scheme word and a real line break keeps its tail. Readings, now / v7.69.0 / v7.68.3: `Private-Lines: 1\nQQ==\npassword="Bearer\n<token> tail" more` → `«redacted:private-key»"«redacted» tail" more` / `«redacted:private-key»\npassword="«redacted»" more` / the same as v7.69.0; the same with a 64-wide body → `…"«redacted» tail" more` / the same as now / `…\npassword="«redacted»" more`; a field nested in that quote, `…password="Bearer\nQUJDREVG Private-Lines: 1\nRA==."` (the inner break escaped) → `«redacted:private-key»"«redacted» Private-Lines: 1\nRA==."` / the quote withheld whole / the quote withheld whole. The same reading takes 8 body characters or more opening the line right after the body (a body of any width) or right after the field — a word, a hash, `00000000`, `a1b2c3d4`: `Private-Lines: 1\nQQ==\nDocumentation follows.` → `«redacted:private-key» follows.` (both earlier versions carry the sentence). A credential under its label after a body — `password=…`, `password: …`, quoted in a JSON string — is withheld on all three.
|
|
74
|
+
- **Not read, on any of the three (KL-4361-a).** Body lines led by a space or a tab; a field line, or body lines, ended by a space before the break (the lines after the first stay in view).
|
|
75
|
+
- **Cost.** Some 8 million code units of lines after the field (2, 64 or 1000 wide): answered in 0.6 – 3.9 s on a loaded host (v7.68.3, which read every line too: 0.4 – 1.0 s), the text withheld whole (7.69.0 left every line after the first of the 2-wide text in view).
|
|
76
|
+
- **Pins.** `test/backlog5020-private-lines-any-wrap.test.ts` (M the matrix: wrap 48 / 64 / 70 / 76 / 112 × 1 – 3 lines × the last line full, 20 wide, or full with a word after it × LF / CRLF / serialized once / twice, both tiers; S the hand-wrapped forms a – f; R the forms no wrap rule reads; P prose; K a label on the line after a body, the two forms above; Q cost; L a real Runner, both exits). Re-pinned: `test/backlog4361-private-lines-declared-count.test.ts` C2 / R1 (a word alone on its line after a body is withheld), the 954 parity copy of the row. Mutations: the line back to 64 wide ⇒ M, S-a – S-d, S-f, P, Q, C2, R1 red; the width the first line's ⇒ S-a, S-b, P, Q, C2, R1 red; at most one line before the last ⇒ M, S-a – S-d, S-f, P, Q red; the lines dropped ⇒ M, S, F, 4329 B-029 red; #4361 / #4654's last-line mutations stay red on their pins.
|
|
77
|
+
- **Consumers.** @server: its own trace reader (`src/trace/redact.ts`) has its own `Private-Lines:` grammar and is not changed by this; `@sema-agent/primitives` carries the row. @test: the narrowing you vetoed is undone — a body wrapped at any width other than 64 is no longer in view from its second line on, on either exit (the table above). Separately, the two label forms under "Reads less than before" are looser than v7.68.3 and are not part of that fix. A probe pinned on 7.69.0's carried `Thanks` / `Regards` after a body now reads them withheld.
|
|
78
|
+
|
|
79
|
+
### A statement written past the place where the lexer stops is read and judged as if written alone — while the readings past the stops have budget left, and not where the stop stands in front of the command name of the same simple command (`x=$(case …) rm -rf ~`) (#4907; behaviour narrowing; no new names on the package surface; closed sets unchanged; hard-breaking: none) (@server @test)
|
|
80
|
+
|
|
81
|
+
- **Before (7.68.6, 7.68.7 and this line before this change; 7.69.0 asked a person, with the real-approval bit, for any text the lexer stops in).** The lexer stops at constructs bash 5 reads past — a `case` inside a command or process substitution (also nested, in an arithmetic expansion, in a coproc or a function body), a comment inside a substitution, a here-document delimiter spelled with a `$` — and the statements written after them were one ordinary question about unreadable text: `bypassPermissions`, `auto` (its classifier), a stored whole-tool `Bash` rule, a pre-approval, a class table and a host's blanket `onAsk: "allow"` let them run unasked, and a deny-listed file read there was read (KL-4862-e). Measured with a recording environment (nothing runs), 50 arms: a protected-location removal after such a construct ran unasked in 40 arms where the removal alone is never run; a deny-listed read, refused alone in 50 of 50, ran in 40.
|
|
82
|
+
- **Now.** From the stop on, the lexer reads again from every statement boundary (a line break, `;`, `&`, `|`), and the planner (read station, removal guard, pattern-kill guard), the rule lane and the written-then-sourced splice judge every statement those readings read as one that may run. The removal is asked of a person with the real-approval bit (refused where nobody may be asked), the read is refused, a person's deny rule refuses — in every arm, as when written alone, save a removal of the task root spelled through `$OLDPWD` / `$PWD` / `${DIRSTACK[1]}` past the stop (below, KL-4907-a ④), a statement past the readings' budget (below, KL-4907-a ②) and a command whose name stands after the stop in the same simple command (below, KL-4907-a ⑥). The segment the lexer stopped in stays what it was: unreadable text, an ordinary question. With or without a construct, a name a statement binds counts, for what another statement reads through it, only where the binding runs before that statement: written before it, in a loop around it (its `done`'s redirections included: they are expanded before the first beat), or anywhere for a function body (it runs when called); what a statement does — a `cd` it makes, a text it runs now (a substitution, an `eval` text) — reads the names bound before it or by its own words, redirections and command environment. A text a child shell or a launcher runs (`bash -c`) reads every name the text binds anywhere as unknown, as a function body does, save a name its own segment's command environment sets as a prefix of the shell itself, which holds the value written there (`CDPATH=/ bash -c …` reads `CDPATH` as `/`; through `env NAME=v bash -c …` or `NAME=v exec bash -c …` the text reads the name's declared value instead — `env CDPATH=/ bash -c 'cd usr && rm -rf ./*'` is read as a removal in the workspace's `usr`, as on this line before this change, where bash empties `/usr` (measured) — and a value written there that bash does not hand the child as written is read as written, KL-4907-b; `HOME=/ bash -c 'rm -rf ~/usr'` is a removal of `/usr`, asked with the real-approval bit and refused under `dontAsk`, where 7.69.0 asked without the bit and ran it on the bypass seat — measured): whether a binding after it, or one in a compound's trailing redirection, reaches the child (exported, `set -a`) the text does not settle — `set -a⏎{ bash -c 'cd usr && rm -rf ./*'; } <<<"${CDPATH:=/}"` empties `/usr` (measured), and is asked with the real-approval bit in every arm; to close it, eight kin without `set -a` (the same body in a group, an `if`, a `case`, or with the binding written after it), which bash runs inside the workspace, are asked as 7.69.0 and this line before the change asked them, not run as when written alone.
|
|
83
|
+
- **Who notices (only texts the lexer stops in; a text it reads through reads as before).** Under `bypassPermissions`, `auto`, a stored whole-tool `Bash` rule, a pre-approval, a class table or a host's blanket allow, these ran unasked on this line and now do not: a removal of a protected location written after such a construct (`x=$(case "$1" in a) echo a;; esac)⏎rm -rf ~`) is asked with the real-approval bit (refused under `dontAsk` or where nobody may be asked); a read of a deny-listed file there (`…⏎cat .env`) is refused; a write outside the workspace there is asked in the arms where the same write before the construct is. A command a person's deny rule names there (`Bash(rm:*)`, `…⏎rm -f x`) is refused in every arm (on this line it was asked in 40 of 50). Against 7.69.0, which asked for every such text: the removal reads the same, the deny-listed read and the person's deny rule refuse where 7.69.0 asked, and a statement 7.69.0 asked about only because of the construct before it (a network call) gets the reading it has written alone. A name bound after the statement that reads it no longer unsettles it, construct or not: `cd ./junk && rm -rf "$OLDPWD"⏎PWD=x` — on this line before this change (and on 7.68.6 / 7.68.7) the ordinary question of an unverifiable target, run unasked under `bypassPermissions`, `auto`, a stored whole-tool rule or a host's blanket allow — is the removal of the task root again, asked with the real-approval bit (refused under `dontAsk`) as on 7.69.0, and so is the same text with a construct between the two lines.
|
|
84
|
+
- **What it costs.** A reading that starts inside the construct may read a piece of it as a statement, and a statement written after a construct no shell gets past (an unclosed quote: `echo 'x⏎rm -rf ~` is a syntax error and runs nothing) is judged though nothing runs it: a removal or a read such a piece spells is asked or refused. After a stop — and with no construct at all, after a statement whose command is an expansion (`$X⏎`, `eval "$X"⏎`, the `$EOF` line of `cat <<$EOF` read as a statement) — every name may be bound for the statements that follow: a removal of the task root they spell through `$OLDPWD`, `$PWD` or `${DIRSTACK[1]}` (`cd x && rm -rf "$OLDPWD"`, `pushd junk && rm -rf "$OLDPWD"`, `cd junk && cd - && rm -rf "$PWD"`) is the ordinary question of an unverifiable target and runs under `bypassPermissions`, `auto` and a stored whole-tool rule, as on this line before this change; 7.69.0 asked a person with the real-approval bit (measured; KL-4907-a ④). The readings past the stops are charged 4 Mi characters (UTF-16 units) in all — a new one starts only while the charge is under it, and the last one started may run past it: a reading that ends where an earlier one opened a statement is charged what it read, one the lexer stops in again the whole rest of the text — so how many stops a script holds and how long it is count together, and the stop's own make-up counts too (each statement boundary inside the construct starts a reading). A text with one stop is read to its end (measured up to 4.8 MB: one stop, then up to 262 144 ordinary lines, a 262 144-long `&&` chain, a here-document body of 262 144 lines). With many stops the budget runs out before the end — measured with `arch=$(case "$(uname -m)" in x86_64) echo amd64;; aarch64) echo arm64;; esac)` as the stop, a removal on the last line is still read at 757 lines (one stop every 10 lines) and no longer at 769 (64 stops, 27 KB); with one stop every 20 lines from 1 117 lines (46 stops), every 50 from 1 801 (30), every 200 from 3 721 (15), the stop on every line from 237; one `<<$EOF` every 20 lines from 1 587 (61); with the lighter `echo $(case x in x) y;; esac)` as the stop, 2 331 lines with 233 stops and 20 165 lines with 100. The statements past that are read by no reading and stay inside the text the lexer did not read — the ordinary question, which `auto`'s classifier, `bypassPermissions`, a stored whole-tool rule, a pre-approval (`allowedTools`), a declared answer table and `dontAsk` with a stored rule or a pre-approval release, a read of a deny-listed file written there included (Against 7.69.0, below; KL-4907-a ②). A stop that stands in front of the command name of the same simple command — a prefix assignment whose value is the construct, `x=$(case x in x) echo a;; esac) rm -rf ~` (also with the `;;` replaced by a line break, nested in another substitution, or with `cat .env` as the command) — leaves the command unread: in bash it is one simple command, so no statement boundary stands between the construct and the command, and the reading from the `;;` or the line break reads `esac) rm -rf ~`, whose first word is `esac)`; the whole text is the ordinary question (KL-4907-a ⑥). Planning on the built package (measured, 200 / 800 / 2 000 lines): with stops 0.07 / 0.34–0.42 / 1.6–2.2 s, the same lines without the construct 0.05 / 0.27 / 1.2 s; before this change a text with a stop was planned only up to the stop.
|
|
85
|
+
- **Against 7.69.0, with #5066 (open to veto, ruling C-R2800).** 7.69.0 asked a person with the real-approval bit for any text the lexer could not read (and refused it under `dontAsk`), and asked the read station's `probe` for a removal target it could not settle. Over the merge leg's probe (207 forms × 14 arms, a recording environment; bash 5.2.15 running `echo` stand-ins as the reference), this line with #5066 answers 534 cells more loosely than 7.69.0 — none of them a cell where 7.69.0 read the target exactly: 78 cells (8 forms) where the statement is now read and answered as it is written alone (among them `TMPDIR=/x bash -c 'rm -rf "$TMPDIR/b"'`, 12, as `rm -rf /x/b`; and a protected write in #5066's two word forms, 48, KL-5066-a ①); 73 where a concrete value is read that bash does not use (KL-4907-b ③); 383 where a target it cannot settle is the ordinary question, which `auto`'s classifier, a stored whole-tool `Bash` rule (`dontAsk` with one too) and in most forms `bypassPermissions` release. Of the 383, 48 are looser than this line before the two changes as well: a child shell whose command environment's value is not written out, or a shell nested in it (`HOME=$X bash -c 'rm -rf ~/usr'`, `HOME=/ bash -c "bash -c 'rm -rf ~/usr'"`; eight forms × 6 arms, where bash removes `/usr` — KL-4907-b ①; the leg names no other cell looser than that line). On the narrowed read face (`roots`, the default; the leg's twelve arms other than `auto` and `bypassPermissions` on `open`) 7.69.0 — like this line before the two changes — asked the read station's `probe` in those eight forms, without the real-approval bit (refused under `dontAsk`, whatever rule or pre-approval it had), and `bypassPermissions` already ran them; the 6 arms are the ones where `auto`'s classifier, a stored whole-tool rule or `dontAsk` with one now release them, so all 48 cells are on that face. On the open read face 7.69.0 asked the ordinary question in those forms, which `auto`, `bypassPermissions`, a stored rule, a pre-approval, a declared answer table and `dontAsk` with a stored rule or a pre-approval already released, and this line runs, asks and refuses in the same arms (the question's class word moves from `ordinary` to `unverifiable_delete`, without the bit either way). Re-measured on both trees over six modes × a person, a stored whole-tool rule, a pre-approval (`allowedTools`), a declared answer table × both read faces: 120 cells looser on the narrowed face (8 forms × 15 arms — `auto` with any answerer; a stored rule, a pre-approval or an answer table in `default`, `acceptEdits` and `plan`; `dontAsk` with a stored rule or a pre-approval), none on the open face. Two more kinds of case are looser than 7.69.0 and not in the leg's 207 forms: a statement past the readings' budget (above) — the 769-line script's last line, `rm -rf ~` or `cat .env`, runs under `auto`, `bypassPermissions`, a stored whole-tool rule, a pre-approval or a declared answer table, and under `dontAsk` with a stored rule or a pre-approval (the command that reads the deny-listed file runs; the probe's environment records commands and reads nothing), and is the ordinary question without the bit in `default`, `acceptEdits` and `plan` with a person, where 7.69.0 asked with the real-approval bit (and `dontAsk` refused, whatever rule or pre-approval it had): 19 of 24 arms per read face, both faces alike, 76 cells for the two forms (measured on both trees, the same 48 arms; KL-4907-a ②) — and a stop in front of the command name of the same simple command, the same 19 arms per face: five forms × 38 = 190 cells (measured the same way; KL-4907-a ⑥). These read as this line did before the two changes: a name bound and exported before the shell runs (`export HOME=/⏎bash -c 'rm -rf ~/usr'`, 13 cells — KL-4907-b ②), `PWD=/ bash -c …` and `TMPDIR=$X bash -c …` (13 each — KL-4907-b ④), the expansions the lexer still cannot delimit (6 per form) and the arithmetic forms that hold a nested parameter expansion with a substitution or backquotes in it (`$(( ${X:-$(…)} + 1 ))`; 13 per form — KL-5066-a ②, ③).
|
|
86
|
+
- **Pins.** `test/backlog4907-past-the-stop.test.ts` — L (the lexer and its three readers: a long script read to its end, the budget, where a reading starts, a name bound after its reader), G (every construct × a protected removal / a deny-listed read / a person's deny rule, in every arm, at least as strict as written alone), P (nested, grouped and re-entered statements past the stop), N (ordinary writings the lexer stops in, cell for cell as before), E (past the budget: the construct alone's reading, in five arms), K (a name bound after its reader), S (a session's standing yes), T (a name bound in a compound's trailing redirection or after a function's call), W (#5066's writings).
|
|
87
|
+
- **Consumers.** Server: a probe that pinned one of the after-stop forms running under a permissive arm reads asked or refused now; re-pin to the reading of the statement alone. A host that remembers a person's yes (for the session, for the tool) answers a later card in that person's name only when the card carries no `mandated` and no `requiresRealApproval` and `foldArbitrationRow(new Set(card.classes)).ruleMayClear` holds for the WHOLE set — never because one of its classes was answered before: a statement past the stop and the unread text are one card, and its `classes` carry both (a protected write: `write_protection` beside `unverifiable_shell_text`), so a yes to the unread text is not a yes to the write (docs/INTEGRATION-CORE.md §4.6e). Test: each cell is a statement written alone against the same statement after each construct (nothing destructive needs to run: the statement alone is the expected reading).
|
|
88
|
+
- **Known limits.** KL-4907-a (② the readings' budget, ⑥ a stop in front of the command name; both looser than 7.69.0, open to veto); KL-4907-b (a child shell's command environment and an exported name: the forms above, open to veto, ruling C-R2800).
|
|
89
|
+
|
|
90
|
+
### A command written in a nested parameter expansion, after an ANSI-C `\'` in one, or after a `}` in backquotes in one is read and judged as if written alone (#5066; behaviour narrowing, and the fix of a regression against 7.69.0 for two forms; no new names on the package surface; closed sets unchanged; hard-breaking: none) (@server @test)
|
|
91
|
+
|
|
92
|
+
- **Before.** The lexer closed a `${…}` at its first unquoted `}`. In `echo ${X:-${Y:-$(rm -rf ~)}}` (also in double quotes, with backquotes or a `<(…)` inside) the outer expansion ended inside the inner one with no parse failure and its operand read no command: one word the engine could not read, the ordinary question. `echo ${X:-$'\''$(rm -rf ~)}` and ``echo ${X:-`echo }` $(rm -rf ~)}`` failed to parse: unreadable text, the ordinary question. Measured with a recording environment (nothing runs), three statements (a protected-location removal, a deny-listed read, a protected write) × 13 arms: the nested forms ran in 96 cells where the statement alone never runs, the two word forms in 48 — under a stored whole-tool `Bash` rule, a pre-approval, auto's classifier, `dontAsk` with a stored rule and `bypassPermissions`. 7.69.0: the nested forms were the read station's `probe` (a person), except under `bypassPermissions`, where they ran (32 cells); the two word forms asked a person with the real-approval bit, and on this line they ran (#4784 made that class ordinary).
|
|
93
|
+
- **Now.** A `${…}` closes where bash closes it. The lexer walks it as bash 5.2 and later read it (measured on 5.3): a backslash protects the next character; `'…'`, `$'…'` with its escapes, `"…"` / `$"…"` with the expansions in it and a backquoted span are read past; a nested `${…}` or `${ list; }`, `$(…)`, `$[…]` and a `(` right after `<` or `>` (not in a double-quoted span inside the braces) are each delimited as their own; `$$` opens nothing; bash 3.2 – 5.1 (the ported readings) must close it at the same `}`. Every command an operand runs is then read: `rm -rf ~` in the forms above is asked of a person with the real-approval bit (refused where nobody may be asked), `cat .env` is refused, a protected write is asked where it is when written alone — in every arm; 0 cells looser than the statement alone (144 before). Where the walk cannot read the whole expansion so — an inner construct the lexer cannot delimit (`${X:-$(case …)}`), releases that close it at different places (`${X:-$(echo })…}`: 3.2 at the inner `}`, a syntax error; 5.x past it), a nesting deeper than 64 — the reading is the one before: the first `}` no quote holds, one word the engine cannot read, its operand read up to what cannot be delimited (cell for cell as before, measured). Also read now: an operand's `$'…'` to its unescaped close; a function substitution in an operand (`${X:-${ cmd; }}`); a `<(…)` / `>(…)` in a pattern operand in double quotes (`"${X#<(cmd)}"`, `"${X//<(cmd)/}"`, `"${X^^<(cmd)}"`, and the replacement `"${X/a/<(cmd)}"`: bash 3.2 and 5.3 run it there; a default word in double quotes still reads it as text, as bash does).
|
|
94
|
+
- **Who notices.** Under a stored whole-tool `Bash` rule, a pre-approval, auto's classifier, `dontAsk` with a stored rule and `bypassPermissions`, the forms above ran a removal or a deny-listed read unasked and now ask with the bit or refuse; so do the same nestings in a here-string, an unquoted here-document's body, a locale string, an assignment, a compound value, an indirect expansion's operand and a subscript (measured). Against 7.69.0: the nested forms ask with the bit where 7.69.0 asked `probe`, and where it ran under `bypassPermissions`; the word forms read as on 7.69.0 for the removal and refuse the deny-listed read where 7.69.0 asked. `echo ${X:-$'\''x}` and ``echo ${X:-`echo }`}`` are read (one word the engine cannot read, `ordinary`) where they were unreadable text (`unverifiable_shell_text`): the same verdict in every arm.
|
|
95
|
+
- **Stricter than the shell.** A `<(…)` in a single-quoted run of a double-quoted pattern (`"${X#'<(cmd)'}"`) and an ANSI-C `$'…'` in an unquoted here-document's body (bash does not read `$'` there and fails the expansion) are read as running. A text the lexer read with a stray `}` before (`a='arr[$(rm -r x)0]'; echo ${x:-${arr[a]}}`: the second lexer's word text was `}`, now empty) reads the same standing.
|
|
96
|
+
- **Pins.** `test/backlog5066-nested-expansions.test.ts` (L the reading; F the family, read or the reading before; R the texts read before; B bash itself, with a `printf` stand-in); `test/backlog4907-past-the-stop.test.ts` W (10 writings × 3 statements and 15 family writings — four of them an expansion left open before a removal — × 14 arms, each at least as strict as the statement alone).
|
|
97
|
+
- **Consumers.** Server, test: a probe that pinned one of these forms running under a permissive arm reads asked or refused now; re-pin to the statement alone.
|
|
98
|
+
- **Against 7.69.0 (open to veto, ruling C-R2800; the #4907 section's "Against 7.69.0" counts both).** A protected write in the two word forms (`${X:-$'\''$(…)}`, ``${X:-`echo }` $(…)}``, each also followed by `; …`) is now read as the write written alone — the read station's `probe` on either read face, which `bypassPermissions` runs: `default`, `acceptEdits` and `plan` ask a person on both faces (a stored rule, a pre-approval or an answer table does not clear it), and `auto` asks a person on the narrowed face but on the `open` face hands it to its classifier, which runs or refuses it with no person asked (measured: four forms × 48 arms, and `auto` with a classifier that blocks) — where 7.69.0 asked a person with the real-approval bit about unreadable text: 48 cells (4 forms × 12 arms) looser than 7.69.0, none looser than the write alone. The expansions the lexer still cannot delimit (`${X:-$(rm -rf ~ })}`, `${X:-$(case … esac)}`, a nesting deeper than 64) stay the ordinary question, which `auto` and a stored rule release (6 cells per form looser than 7.69.0), and the arithmetic forms that hold a nested parameter expansion with a substitution or backquotes in it (`$(( ${X:-$(…)} + 1 ))`, `$(( ${X:-`…`} + 1 ))`) the unreadable-text question they were (13 per form) — each as before this change (KL-5066-a). Backquotes or a substitution written straight in the arithmetic are read: `echo $(( `rm -rf ~` + 1 ))` is the protected-location question with the real-approval bit in every arm, as on 7.69.0 (measured).
|
|
99
|
+
- **Known limits.** KL-4862-d ②, KL-5066-a.
|
|
100
|
+
|
|
101
|
+
### A host on an engine it did not start hands the engine its own configuration roots and its own home — `TaskSpec.agentConfigDirs` / `TaskSpec.agentHomeDirs` — and the engine guards the shell's settings there exactly as it guards its own (#4787; behaviour narrowing where declared; +2 optional `TaskSpec` keys, +2 optional `TaskResult` members, +2 capability words; hard-breaking: three entries, type-level — closed sets gain words, seven root types gain keys (two of them required, on `SerializedCheckpointState`), and the type `RunWorkflowToolDeps.parentClamps` returns requires the two new clamp rows — below, open to veto; closed sets: `READ_FACE_BUILTIN_DENY_TABLE` +4 rows, `RECOMMENDED_SENSITIVE_PATTERNS` +4, `CONFIG_REFUSAL_CODES` +1, `CheckpointConfigRefusalCode` +2, `REQUIREMENT_WORDS` +2, `ENGINE_CAPABILITIES` +2; wire: `checkpoint.config_refused` `detail.code` +2; the governed script lane: the strip notice's text, a refusal where a strip was, the clamp refusal's sentence) (@server @cli @client-core @test)
|
|
102
|
+
|
|
103
|
+
- **Rule.** The places a leg puts the configuration directory's rows and the home-anchored rows at are ONE mint per leg (`legCallerPlaces`, `src/core/runner/leg-caller-places.ts`): configuration roots = `RunnerDeps.agentConfigDir` ∪ `TaskSpec.agentConfigDirs` ∪ a resumed row's; caller homes = `TaskSpec.agentHomeDirs` ∪ a resumed row's. The read deny placement, the always-on write-protection table, the children's clamp source, the parked row and the manifest read that one mint; both keys are add-only rows of the clamp table (`CLAMP_SET`, the `readDenyPatterns` law) — a task adds a place and never removes the deployment's root or the engine's own homes.
|
|
104
|
+
- **Before (measured by the evaluation repo, two runs; shell 1.0.169 × engine 7.68.4 × server 7.154.1, invented keys).** A shell attached to a local engine it did not start: with its root relocated, `Read` / `Grep` (one file and the whole root) / literal `cat` of `<root>/settings.json` × bypass / default / auto returned the file (the invented key reached the model request); without a relocation but under another HOME, `Read` / `cat` of `<caller home>/.sema/settings.json` × bypass / default did the same. The self-started controls were refused.
|
|
105
|
+
- **Now.** `agentConfigDirs: [root]`: every row that opens with `~/.sema/` is placed below the root as below `RunnerDeps.agentConfigDir`, and the write-protection table's `.sema` rows judge every write below it — cell for cell the self-started form (pinned: Read, Grep one file, Grep the whole root, Glob, bare and quoted `cat`, Write, Edit, shell append × default / acceptEdits / auto / dontAsk / bypassPermissions). `agentHomeDirs: [home]`: the home-anchored read deny rows are also placed below the caller's home, cell for cell the engine started under that HOME (Read / Grep / Glob / `cat` × default / auto / bypassPermissions). The home list feeds that placement only — no configuration, skill, instruction or memory is looked for there.
|
|
106
|
+
- **New rows below a root (closed sets +4).** `~/.sema/settings.json.*` and `~/.sema/settings.local.json.*` (the two settings files' own copies: backups, atomic-write temporaries), `~/.sema/.sema.*` and `~/.sema/.config.json*` (the dotted global configuration file a shell keeps INSIDE a relocated root, its older name, and their `.backup` copies) join the `agent-config` tier of `READ_FACE_BUILTIN_DENY_TABLE`; their runs join `RECOMMENDED_SENSITIVE_PATTERNS`. In `auto` mode the request the engine sends the classifier now carries four more read-deny lines in its prompt — `Read(~/.sema/settings.json.*)`, `Read(~/.sema/settings.local.json.*)`, `Read(~/.sema/.sema.*)` and `Read(~/.sema/.config.json*)` — also on a run that declares no configuration root, and nothing else in the request changes (#2394 R1, `backlog2394-revision-leg-cells`: a probe that pins the classifier request's bytes reads those four lines more). At the home they refuse the same names below `~/.sema/`. Every other credential-bearing file a shell or a server keeps below its root (its own layout: `engine.token`, `engine-data/sealed-key`, `cloud/`, `connectors/`, …) gets no built-in row here — the host that writes it declares it.
|
|
107
|
+
- **Travels and freezes.** Both lists ride every engine-built child spec (`ToolExecuteContext.agentConfigDirs` / `agentHomeDirs`, Runner-filled) and a workflow member; a parked row records them (`CheckpointState.agentConfigDirs` / `agentHomeDirs`, reader words `agent_config_dirs` / `agent_home_dirs`: a worker without the word refuses the row, `version_newer`, instead of resuming it wider). A resume that hands neither keeps the recorded ones. What travels and is recorded is the part a task layer declared: the deployment's own root is every leg's own seat, so a deployment that hands no task place mints its children's specs and its parked rows byte for byte as before (no new reader word on its rows). The same part rides the result — `TaskResult.effectiveAgentConfigDirs` / `effectiveAgentHomeDirs` (+2 optional members, present iff non-empty, the `effectiveReadDenyPatterns` law) — and the verify gate's verifier and fix legs union it into their own spec, so a place only a parked row recorded still guards the legs that judge and repair the resumed work.
|
|
108
|
+
- **One identity.** Two declared directories are the same when they match after a trailing slash, a `.` segment and a doubled separator fold away — a `..` segment does not fold (`a/link/..` is another directory when `link` is a symlink); the clamp table's union, the mint's sources and the placement's "is this the engine's own home" all read it (`declaredDirIdentity`).
|
|
109
|
+
- **Bad values.** Not a list, an entry that is not a string (an `undefined` written there, or a hole the list's length runs over — `Array(1)`, `[dir, , dir]` — included: an entry has no "none declared" reading), empty, relative, or names no existing directory ⇒ the prepare is refused with the deployment seat's check: `config.agent_config_dir_invalid` / `config.agent_home_dir_invalid` (new code; both in `CONFIG_REFUSAL_CODES` and `CHECKPOINT_CONFIG_REFUSAL_CODES`), the entry named by its index.
|
|
110
|
+
- **Manifest.** Effective half, outside the fingerprint: `declaredPlaces: { agentConfigDirs?: [{ from }], agentHomeDirs?: [{ from }] }` — one entry per place, `from` ⊆ `deployment` / `task` / `checkpoint`; no paths. A host that handed a root and sees no `"task"` entry knows it did not arrive.
|
|
111
|
+
- **Direct judges.** `WriteProtectionCompileOptions` (the root-exported option of `compileWriteProtection`) gains `declaredAgentConfigDirs?: readonly string[]`: more roots, placed exactly as `agentConfigDir` is (which stays, unchanged). A Runner leg hands its one minted list there. Nothing to migrate.
|
|
112
|
+
- **Hard-breaking (three, type-level).** (1) *What changed:* the type `RunWorkflowToolDeps.parentClamps` returns. `RunWorkflowToolDeps` is a root export; its member `parentClamps` (`src/orchestration/run-workflow-tool.ts`) returns `ChildClampSource` (`src/core/child-clamp-seats.ts`), which requires EVERY clamp-carrier row of the clamp table as a present key, and `agentConfigDirs` and `agentHomeDirs` are two new rows (both carried by the child-spec clamp carrier: v7.69.0's table had nine such rows; this section adds these two and the #4607 section above adds a twelfth, `blockReadsOutsideRoots`). *Who:* a host that implements `parentClamps` itself — one that calls `createRunWorkflowTool` with its own getter and writes the getter's return as an object literal, or annotates it with the type (tsc-red: `Type '{ …nine rows… }' is missing the following properties from type 'ChildClampSource': agentConfigDirs, agentHomeDirs` — measured on the stage head before the #4607 section above was merged, with the literal of v7.69.0's nine rows; the same literal with the two keys added compiles). A host that does not set `parentClamps` is not affected: the Runner's own Workflow mount supplies the getter (`src/core/runner/prepare-caps-and-workflow.ts`). *How to move:* add `agentConfigDirs: undefined, agentHomeDirs: undefined` to the literal (or the lists the host's own run holds); a host that moves from 7.69.0 adds these two together with `blockReadsOutsideRoots`, the key of the #4607 section's hard-breaking (4) (three keys in all). At run time a getter that still lacks the two keys is not refused: `assertClampRecord` does not throw and `foldClampSources` reads an empty list for each row (measured). Known consumers: none — the read recorded in the #4607 section's hard-breaking (4) covers the same getter (no source or test file of server, cli or client-core `origin/main` names `parentClamps` as code, `git grep -P`, read 2026-11-15 on the 2026-11-14 heads; not re-read for this section). (2) *What changed:* closed sets gain words — `ConfigRefusalCode` +`config.agent_home_dir_invalid`; `CheckpointConfigRefusalCode` +`config.agent_config_dir_invalid`, +`config.agent_home_dir_invalid`; `RequirementWord` +`agent_config_dirs`, +`agent_home_dirs`; `EngineCapability` +`task.agent_config_dirs`, +`task.agent_home_dirs`. *Who:* a host with an exhaustive `Record<…>` table over any of them. *How to move:* add the rows. (3) *What changed:* `SerializedCheckpointState` requires `agentConfigDirs` and `agentHomeDirs`; `TaskSpec`, `CheckpointState`, `ToolExecuteContext` and `TaskResult` (`effectiveAgentConfigDirs` / `effectiveAgentHomeDirs`) gain two optional keys each, `WriteProtectionCompileOptions` (`declaredAgentConfigDirs`) and `WiringManifest` (`declaredPlaces`) one each. *Who:* a store adapter that builds a `SerializedCheckpointState` literal, or a host with an exhaustive key table over one of the seven. *How to move:* `agentConfigDirs: undefined, agentHomeDirs: undefined` (or the row's values); a row for each new key.
|
|
113
|
+
- **Script lane.** Both keys are add-only clamp rows with a script law (at most 4 absolute existing directories): every `workflow.governance_key_stripped` message lists them; a lawful list reaches the child spec (7.69.0 stripped it, `not_whitelisted`); a malformed list refuses the `agent()` call with a `WorkflowScriptError` (7.69.0 stripped and announced it); the clamp record refusal's "the legal seats are …" names two more.
|
|
114
|
+
- **Consumers.** server — carry both keys on the task wire and pass them to `TaskSpec` unchanged; gate on `task.agent_config_dirs` / `task.agent_home_dirs`. cli — on an engine it did not start, hand `agentConfigDirs: [<its resolved root>]` and `agentHomeDirs: [<the user's home>]` on EVERY task; until the engine carries the words, name the files in `TaskSpec.readDenyPatterns` (the transition; once the words arrive, the rows naming what these keys place — the `~/.sema/…` rows below the root, the home-anchored rows below the home — are retired; rows for the shell's own layout files are not placed by these keys and stay its own declaration). client-core — the same two keys when it attaches. test — the attached forms above against the self-started controls.
|
|
115
|
+
- **Three questions.** Who needs it: a person whose shell attaches to a local engine someone else started. Who is harmed: a write below the declared root now stops for the table's one look, as below `~/.sema` (bypass releases it as there); an older engine refuses the keys. Compensation: the capability words say whether the engine reads them; the manifest says what arrived.
|
|
116
|
+
- **Pins.** `test/backlog4787-caller-config-root.test.ts` (E1–E11: the three attached forms — relocated root under the same HOME, default root under another HOME, relocated root under another HOME — each cell against its self-started control; every home-anchored row placed below a caller's home; E11 records today's reading of a shell path built at run time, unchanged; E12 the verify gate's legs after a resume; E13 a `..` spelling; E14 a stored `Edit(//<root>/**)` allow with the root among the session's directories — the table's question stands, the rule clears nothing; E15 which files of a root's layout a built-in row covers; E16 the compile's two options); the clamp, requirement and tier enumerations (`backlog1052`, `backlog1320`, `backlog1473`, `backlog685`, `backlog804`, `p4`, `rev7340`) carry the new rows.
|
|
117
|
+
|
|
118
|
+
### A store of a deployment's own judges the four re-key members with the engine's own judges, and a host reads whether an MCP authorization record is a step the user owes from the one predicate the engine's faces read: both now root exports (#4816, #4815; additive; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: fourteen, `judgePrincipalRekey`, `eraseStepOf`, `planScopeRekey`, `scopeRekeyWritesOf`, `checkpointRekeySelects`, `owesAuthorization`, and the types `OneStepRekeyMode`, `RekeyStamp`, `RekeyRowStamp`, `RekeyArrivalRecord`, `RekeyMarkReading`, `PrincipalRekeyKeyState`, `PrincipalRekeyWrite`, `ScopeRekeyMove`; wire: none)
|
|
119
|
+
|
|
120
|
+
- **Before.** The four required re-key members (`SessionPolicyStore.rekeyPrincipal`, `BackgroundAgentStore.rekeyScope`, `CheckpointStore.rekeyIdentity`, `ToolResultStore.rekeyIdentity`) were judged in both bundled backends by functions only some of which the root exported: the policy seat's judge (`judgePrincipalRekey`) and its erase step (`eraseStepOf`), the scope seat's plan and writes (`planScopeRekey`, `scopeRekeyWritesOf`) and the checkpoint seat's selection (`checkpointRekeySelects`) were reachable only by a deep import, so a store of a deployment's own had to copy them — one judgment in two places. `owesAuthorization`, the reading of "this `McpAuthorization` record owes the user an authorization" that `mcp.authorization_required` and the `mcp_unavailable` frame read, was not exported, so a host's own prompt guessed from the reason word.
|
|
121
|
+
- **Now.** Each of those functions, and the types their signatures read, is a root export: the defining module's own value, unchanged (no signature, no behavior). `docs/INTEGRATION-CORE.md` §5 says, member by member, what a backend of its own reads, which judge it calls and how it writes what the judge answers; §17.1 says a host's "authorize again" prompt reads `owesAuthorization(record.authorization)` (today: every reason but `seat_unavailable`). Left out on purpose: the arithmetic inside the judges (`stampMax`, `arrivalStampOf`, the two-step answer composition) and the bundled key spelling (`readScopeRekeyPlan`, `scopeRekeyCopyOf`).
|
|
122
|
+
- **Not changed.** Every store, judge and notice behaves byte for byte as on 7.69.0; no export was removed or changed kind (`npm run handoff:diff v7.69.0`: fourteen additions, zero removals).
|
|
123
|
+
- **Pins.** `test/backlog4816-rekey-judges-root-export.test.ts` — A (`owesAuthorization` over the closed set), B (plan / arrive / leave / conflict of the policy judge, the erase step), C (the scope judge's plan and writes equal what the bundled store files, arrive and leave), D (the checkpoint selection), R (the root namespace holds each name); every cell imports from `@sema-agent/core` and checks the value is the defining module's own. `scripts/consumer-smoke-probe.mjs` checks the six runtime names on the packed package; `test/export-surface.snapshot.json` +14 rows.
|
|
124
|
+
- **Consumers.** @server: a SQL store's four re-key members can call these judges instead of copies (the steps in §5). @client-core: read `owesAuthorization` on the record you hold instead of switching on `reason`.
|
|
125
|
+
|
|
126
|
+
### The floor of `bypassPermissions` is written down and pinned class by class — which questions still reach a person, who stands behind each, and the known limits, stated as they are (#4788; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
|
|
127
|
+
|
|
128
|
+
- **Rule.** Whether a question stops a call under `bypassPermissions` is one cell per class — `MODE_ARBITRATION[c].bypassImmune` (read through the face for the one class the shell face releases) — and every reader derives from it: the fold, the mode point, `releasableAskClassesFor(face)`, `modeAnswersUnasked`, the headless remedy. A released class is answered at the mode point, ahead of the park and the resolver: no approver call, no question frame, no park row. Kept: what a person or an administrator wrote (a hook, an ask rule, an organization rule, the deployment's own question or tool mark, `shellGate: "always"`, a policy's real-approval bit, a tool that declares it needs a person, the delegating task's mark), the model's own question, a removal of a protected location recognised by its exact path, and a rule a person or an administrator wrote that the engine cannot judge for the call (`call_unreadable`, `org_unreadable`); plus the cross-tenant boundary. Everything the engine infers on its own is released.
|
|
129
|
+
- **Docs.** `docs/INTEGRATION-CORE.md` §4.7a — the whole table (each class: who stands behind it, its reading under the mode, why, its known limit), the refusals that hold under every mode, and the exact rule for the five catastrophic removals (`filesystem_root`, `home`, `workspace`, `top_level`, `mounted_drive`). Known limits named there as they stand: KL-r2-e (a read whose paths are known only when the command runs is released past the read-deny table — the built-in credential tier and a written `Read(…)` deny row alike — and the release record says so) and KL-4698-a (the person's own rows do not hold while their rule store cannot be read).
|
|
130
|
+
- **Pins.** `test/backlog4788-bypass-floor.test.ts` — T1 every class × both faces under the mode · T2 the published list is the released set, per face; the kept set is a closed list · T3 the other five modes (155 cells; unchanged save the two could-not-read removal-guard classes, which #4784 moves to the ordinary row) · T4 the two kept switches (`call_unreadable`, `cross_boundary`) are single cells every reader follows · a real Runner under the mode: the five removal kinds, a call unreadable against a deny rule, an ask rule, an unreadable organization snapshot, a hook's ask, a deployment-authored ask and a policy's real-approval bit each reach the approver once; the person's unreadable store, a write to the agent's settings file (by the file tool and by a shell append), a write through a link onto a protected path, an ordinary policy ask and the two could-not-read removal-guard classes (released by #4784 in this release; kept through 7.69.0) are released with the approver never called; the KL-r2-e reads released and read (measured) beside their spelled forms refused; a file tool's write whose target cannot be resolved refused; a deny rule refused; three read checks that do not finish (a link the environment does not resolve, no home declared, text past the station's bound) kept with the protected bytes never read; the auto-mode classifier never consulted.
|
|
131
|
+
- **Not changed by this entry.** Every mode's answer for every class (#4784, in the same release, moves the two could-not-read removal-guard classes, `unverifiable_shell_text` and `unverifiable_delete`, to the ordinary row: released under the mode). A write to the agent's own settings or permission files is released under the mode, as in 7.69.0: the model can rewrite them and the change takes effect on the next start — documented behavior, the same as the reference implementation (measured on its binary: a whole user-level settings file rewritten, one key changed, a project's local settings file written, the default mode set to `bypassPermissions` — every one written with no question and in force on the next start).
|
|
132
|
+
- **Downstream.** @cli: under the mode the engine sends only kept questions — render each and do not answer it automatically; recognise a catastrophic removal by `dangerous_delete` on `askClass` / `classes`. @server @client-core: no wire change; the table is the reference for a review route or a card. @test: criteria for the mode read the table.
|
|
133
|
+
|
|
134
|
+
### A start time no process could have had never reaches a lock, a claim or a session account, and a record that already carries two starts contradicting each other no longer condemns a live owner (two starts that agree with each other and merely disagree with this host's clock can still be read as an owner that is gone — Known below): the start-time probe takes a reading older than the epoch or than the boot — or no number at all, or two starts that name no boot a process could have run in — for no reading (asked again, then none), and a record that carries such starts reads as carrying none (#4792; behavior change: narrowing — one, below, open to veto @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @test)
|
|
135
|
+
|
|
136
|
+
- **Rule.** A start time is a start a process could have had: a finite number, not before the epoch (the wall clock's origin) and not before the boot the process runs in (the uptime clock's origin), to the second the start is rounded to. A record's two starts are ONE instant on two clocks, so their difference is the wall-clock moment of the boot the process ran in, and that boot has to be one a process could have run in: not before the epoch, and not a boot the boot clock says is over while the wall start lies inside this one (each beyond the existing 2 s window; no new setting). A pair that fails names no process and carries NEITHER start — nothing in it says which number is wrong. `startsOf` (`src/core/process-identity.ts`) says all of it once, for both ends of the one mechanism: the probe that WRITES a fingerprint (`probeStartTimesOnce`: a reading that does not keep both starts is no reading — it takes the path a too-slow reading takes, the same `START_TIME_PROBE_ATTEMPTS` asks, and answers `null` when it stays impossible) and the census that READS a record (`processCensus`: a record left with no start is `uncheckable` / `start_time_unknown`, the answer an absent fingerprint has always had — live, with it). The census samples the clocks once per judgment, so the proof "a start beyond this uptime names a boot that is over" and the pair check read the same uptime.
|
|
137
|
+
- **Before (measured).** *A wrapped reading* (the gate container: Linux 6.8, procps-ng 4.0.2, node 24; freshly spawned children, each asked about at once, two batches on 11-17): 57 of 800 first asks came back with the elapsed time `441077234-00:18:40` — a wrapped age of 3.8e13 seconds — which the derivation turned into `startedAtMs` and `startedSinceBootMs` of about -3.81e16, the numbers server read; the next ask was ordinary every time (57 of 57). Nothing bounded the number: it was written into the directory lock / run claim / session account, and every later reader judged a running owner gone. A re-measure (the gate container and macOS, the module asking first, base and head) did not reproduce it: 0 of 600 each; cause of the earlier reading unknown. *Two starts that contradict each other* (a real `sleep` as the live owner, on the gate container and on macOS): `{1, 1e100}`; a wall start a minute early with a boot clock of 1e100 or of `Number.MAX_SAFE_INTEGER`; a wall start a minute early (inside this boot) with a boot clock an hour past the uptime; two starts that put the boot 10 s before the epoch — every reader judged the owner gone: the census `gone`, `isProcessLive` false, the directory lock acquired over it, the run claim taken over, the writer leg recorded over. Each clock was checked on its own, and nothing checked the two against each other.
|
|
138
|
+
- **Now.** A probe reading that is impossible is asked again, and one whose every ask is impossible answers `null` — never the impossible number, never a latch, no notice (one transient reading is not a platform that cannot answer: the reason the too-slow path is silent too); nothing is remembered, so the next question asks again (proven on inputs the pins own: an impossible first answer, then the ordinary second one is the fingerprint; the wrap did not reappear in the field to watch it there). A record already carrying impossible or contradicting starts reads as carrying none: when its pid is held by a process it is `uncheckable` (`start_time_unknown`) to every reader — the directory lock refuses by name (`store.dir_in_use`, `ownerPid`, the `start_time_unknown` clause) and leaves the record untouched, the run claim binds, the writer leg stands `unprovable`; a pid that is free is gone as before (the census asks the process table first). A record whose OTHER clock is ordinary keeps judging by it, and one clock alone never condemns. A record whose boot clock runs past the uptime while its wall start lies inside this boot — matching the process holding the pid, or later than it — read `running` and now reads `start_time_unknown` (live either way). A host whose wall clock reads the boot more than 2 s before the epoch gives no start time at all (every reading names a boot before the epoch).
|
|
139
|
+
- **Not changed.** Every ordinary reading, to the second on both clocks (an hour old on a day-old boot; exactly as old as the boot; 0.4 s past the boot's age — rounds to the boot; 0.6 s past it — a second before the boot, refused); an honest record whose start since boot rounds up to half a second past the uptime is `running`; a record from an earlier boot — its wall start before this boot began — is gone to all four readers exactly as before (seven shapes pinned: at, ten minutes into, five days into its own boot; seen from a day-old and from a ten-minute-old boot; an hour past this uptime), so a reboot still clears what it cleared. The tolerance, the probe's latency bound, the attempt count, the one-sided direction rule, the proof that a start beyond this host's uptime names a boot that is over. What a `null` fingerprint means to every reader: unobtainable is UNFALSIFIABLE. The record spellings and every writer (each writes the probe's own fingerprint, so none writes a pair the probe would refuse — read in the code).
|
|
140
|
+
- **Narrowing (open to veto @server @test).** A lock, claim or account whose recorded starts are impossible or contradict each other, and whose pid is held by a process (the owner itself, or a recycled pid), used to be judged gone and reclaimed; it is now `uncheckable` and refused — the refusal an absent start has always been — until one of two things: the pid is free (then it is gone and reclaimed, the census asks the process table first), or a person removes the file the refusal names. The data root's directory lock has no reclaim-after-a-time exit. The only time bound belongs to the run claim's takeover gate: that gate's lock is built with `reclaimUnjudgedAfterMs` set to the claim lease (one hour), so a gate whose owner cannot be judged is reclaimed once it has stood that long (`reclaimUnjudgedAfterMs` is a constructor argument of the lock class, not a store option). Reason: such starts are not evidence of a dead owner; a wrong "gone" hands a working process's data root to a second writer, a wrong "live" costs one refusal an operator can act on. The set: records the old probe wrote on a host that read a wrapped age (server saw it on the gate container), and records whose starts contradict each other (no writer of this engine produces one).
|
|
141
|
+
- **Known.** (1) A host whose `ps` reports, for EVERY process, an age past the boot as a WRAPPED number (inferred: a virtualised `/proc/uptime`) reads every process as impossible: its fingerprints are `null`, silently — as a too-slow probe's are — and a lock left by a crashed owner is reclaimed once its pid is free, refused with `start_time_unknown` while another process holds the pid. Only where the age wraps: a `ps` that clamps such an age to `00:00` gives readings that are kept (the start reads as "now") — a separate shape, not measured here (filed to be measured first). (2) A wall-clock step forward of more than a process's distance from the boot makes a process that started inside that distance read older than the boot (macOS `ps` ages by the wall clock; inferred, read by the review round, not run): `null` until the process is no longer that old — fail-safe. (3) The boot bound is held to the second (up to half a second past the boot's age rounds to the boot and is kept). (4) A wrapped age that landed inside both bounds would read as a start; none observed. (5) Three readings toward a refusal, never toward a reclaim: an earlier boot's record whose process started after the moment the wall clock was stepped back to (reads as started inside this boot) is read as carrying no start; an earlier boot's record read while this boot's wall clock is slow and not yet set (measured with the clocks driven: a clock 5 minutes slow against a record whose wall start was 2 minutes before the boot began) reads the same way — carrying no start, refused while another process holds the pid — and once the clock is set it reads as an earlier boot's record again and its owner is gone; and while a host's wall clock stands more than about 2 s before its boot's age (set to the epoch after the boot), it has no start times (as in (1)) — and a record an earlier engine wrote in that state keeps naming a boot before the epoch, so it is read as carrying no start for good (its lock is reclaimed once the pid is free, refused while another process holds it). (6) A record whose two starts are both earlier than its owner's real ones, by different amounts, is still read as an owner that is gone — before this change and after it, to the census, `isProcessLive`, the directory lock, the run claim and the session account alike. Measured on the gate container with a real `sleep` as the owner: a wall start a minute early with a start since boot of 0; a minute early with 30 s early; 30 s early with a minute early; a minute early with 57 s early. The two starts agree with each other — the boot moment they imply is after the epoch, and the start since boot is not past this host's uptime — so neither condition of the pair check fails. The same reading holds inside the 2 s window of the pair check's second condition: a wall start up to 2 s after this boot began, with a start since boot past the uptime, is read as before — gone. No writer of this engine writes such a pair (the three places that write the two starts all write the process's own fingerprint, and the root export hands a host the probe's reading through the same `startsOf`; read in the code), so only a hand-edited or damaged record is one. A record the engine wrote honestly, read against a later process that took its pid after the wall clock was stepped by more than 2 s, has this shape too, and gone is the right answer there.
|
|
142
|
+
- **Rules.** Readings of "is this a start": the probe's two per-clock checks and the census's four → one (`startsOf`, which reads the pair as well); the census's own guard on the boot proof → gone (it reads what `startsOf` kept); a probe answering a reading it knew to be impossible: retired (re-ask, then `null`).
|
|
143
|
+
- **Three questions.** *Who needs it:* every host that opens a data root from many short-lived processes (server's gate container loop), and anyone whose record was damaged into two contradicting starts. *Who is harmed:* the owner of a lock whose record carries impossible or contradicting starts while its pid is held by an unrelated process (refused instead of reclaimed, until the pid is free or a person removes the file; the run claim's takeover gate also reclaims after its one-hour bound); a host in Known (1), (2) or (5) (no start time, so no auto-reclaim while the pid is held). *Compensation:* the refusal names the lock, the pid and `start_time_unknown`; nothing is lost.
|
|
144
|
+
- **Pins.** `test/backlog4792-contradicting-starts.test.ts` (new, 12 cells) — LIVE (a real `sleep` as the owner; the host's clocks, `ps` and process table): the five contradicting shapes × the census, `isProcessLive`, the directory lock, the run claim and the session account ⇒ `start_time_unknown`, live, refused by name, the lock untouched, the claim binding, the leg not recorded over; a matching wall start with the boot clock an hour past the uptime ⇒ `start_time_unknown`; both starts a minute before the owner's (the shape a recycled pid leaves) ⇒ gone to all four · DRIVEN (clocks and `ps` the arm owns, pid 1 holding the pid now): seven records an earlier boot wrote ⇒ gone to all four; the matching wall start with the boot clock past the uptime ⇒ `start_time_unknown`, live; a start since boot rounded up 300 ms past the uptime ⇒ `running`; a wall clock that reached the epoch a second after the boot ⇒ the reading is kept, `running`. `test/backlog4792-process-start-bounds.test.ts` (20 cells) — the probe: three impossible readings × this process and another pid ⇒ asked again, the ordinary reading is the fingerprint; a wall clock standing before the boot ⇒ no reading at all (three asks, `null`, silent); every ask impossible ⇒ `null` after three asks, silent, not remembered, read by the census as `start_time_unknown`; the ordinary rows above · the judgment: every start impossible ⇒ `start_time_unknown`, live; a start of zero is a start; no number is no measure · the public entry: a real `sleep` child and a lock with the wrapped start ⇒ `store.dir_in_use`, untouched; the published record carries the ordinary second reading, or none. Re-aimed: `test/fs-atomic-process-fingerprint.test.ts` — the rounding-and-direction arm owns a ten-day boot clock (its day-early drift read "live", and went red, whenever the test process started within a day of the host's boot: a negative start is no measure and one clock condemns nothing), its earlier-boot record carries a wall start before this boot (the old spelling put it inside this boot — a contradiction now, pinned as live), the one-clock arm moves the wall start an hour instead of to 1, the uptime-refused arm's earlier-boot record is a consistent one; `test/fs-atomic-bootlock-fingerprint.test.ts` — the earlier-boot arm's wall start lies before this boot, the half-stale arm moves the wall start an hour (both were 1: a boot before the epoch); the first round's two arms as before. Mutations (gate container, each in its own checkout, each caught by its own cells): condition (i) removed ⇒ 2 red · (ii) removed ⇒ 3 · (ii) without its wall half — an earlier boot's record read as a contradiction ⇒ 6 · the pair check's window taken to 0 ⇒ 6 (the honest edge cells and the real self-fingerprint); the first round's five as before; the module before this round under the same pins: 4 red.
|
|
145
|
+
- **Consumers.** @server: the pin you wrote around the wrapped reading can go — the probe refuses wrapped and contradicting readings itself, and the census reads a record carrying either as carrying no start (a live owner's lock is refused with `start_time_unknown`, never reclaimed; a free pid's lock is reclaimed; a damaged record whose two starts are both early by different amounts still reads as an owner that is gone, Known (6)). @test: a lock holding `{"startedAtMs":1,"startedSinceBootMs":1e100}` whose `pid` is a live `sleep` is refused, and a lock whose two starts are each a minute before that process's own is reclaimed. Nothing to render, nothing on the wire.
|
|
146
|
+
|
|
147
|
+
### A decided workflow park continues when the host run carries `oneShot` or `memoryPersistenceCapable` — the run's host-fold stamp and the continuation's comparison read the host's clamps as the clamp-carrier rows only, whatever context the call was handed, so the same host no longer reads as "settings changed" (#4846; regression in 7.69.0; behavior change: a host run submitted with `oneShot` (either word) or `memoryPersistenceCapable` (either word) whose workflow member parked and was decided is continued, where it answered `workflow.parked_decision_unused` / `host_changed` (`inputs: ["permissions"]`) and started nothing — on the engine's continuation and on the model's own approved `resumeFromRunId` alike; a host whose permission clamps or approval posture moved is still refused; stamps written by 7.69.0 by the auto-mounted tool read the same (a stamp a hand-mounted tool wrote with either row does not: Known below); narrowing: none; widening: one — a deciding host that carries `oneShot` or `memoryPersistenceCapable`, with either value, is no longer refused for it (a host that newly states either row, and one that writes `oneShot: false` over a park's `true`, alike): those two rows ride the parent spec seat, which the stamp has never compared (the other five spec-seat rows already were not); the consequence is the one 7.69.0 already allowed for a host that drops the row — a member the continuation starts is seated on the values the host states at the decision — open to veto @server; hard-breaking: none; closed sets: none; exports: none; wire: one new optional member, `workflow.parked_decision_unused` `detail.inputs?`, below) (@server @cli)
|
|
148
|
+
|
|
149
|
+
- **Cause.** A spec-seat row reaches a workflow child on the parent spec seat, not on the clamp carrier, yet the fold read the host's clamps off the call's context for every row of the table. The launching call of the auto-mounted Workflow tool gets a minimal context (no spec-seat row on it); the leg's continuation hands a rich one, which restates `oneShot` and `memoryPersistenceCapable` as the run's own facts — so the comparison carried members the stamp could not.
|
|
150
|
+
- **Rule.** The fold's clamp getter returns what its type says: the clamp-carrier rows, folded from the context's clamp seats and the mount's `parentClamps`. A rich context's clamp seats are the restricting projection of the same source `parentClamps` returns, so the answer is the same off either context — where the tool was handed the `parentClamps` dependency, as the auto-mounted Workflow tool is; a Workflow tool a host mounts by hand in a task's tool table has none and reads only the clamp seats' restricting values.
|
|
151
|
+
- **New optional member (named here because the wire manifest does not read a notice's `detail`).** `workflow.parked_decision_unused` carries `detail.inputs` on `host_changed` with `changed: "identity"` when the run's stamp names what moved: the classes the sentence names (`tools`, `baseline`, `allowed_models`, `agent_limits`, `permissions`, `model`, `endpoint`, `thinking`, `account`), in that order — so a host sorts the refusal by class without parsing the sentence. Every other reason, and a stamp that names nothing, carries no `inputs`; the reason set and the other members are unchanged (@server).
|
|
152
|
+
- **Known.** A park made on 7.69.0 by a Workflow tool the host mounted itself in the task's tool table, on a host run that carried `oneShot` or `memoryPersistenceCapable` (either value), is refused when the auto-mounted tool continues it on this version: `workflow.parked_decision_unused` / `host_changed`, `inputs: ["permissions"]`, nothing started. Putting the host's settings back does not help: the stamp 7.69.0 wrote for the hand-mounted tool carries one spec-seat row more than the comparison on this version ever computes (`permissions` is the only input in which the two engines' stamps differ). Measured with 7.69.0's source and this one side by side in one process, a scripted model: memory store 4 of 4, file store 2 of 2 refused; the same flow on 7.69.0 itself continues (5 of 5), and a park made and continued on this version continues (5 of 5). The way out is to start the workflow again. A stamp the auto-mounted tool wrote is byte for byte the same on both versions (4 of 4) and continues as before (parked on 7.69.0, continued here: file store 5 of 5, memory store 3 of 3). Not measured: two separate processes across a restart (in the measurement the two versions shared one process, one symbol table and one session store).
|
|
153
|
+
- **Pins.** `test/backlog4846-park-stamp-clamps.test.ts` — the engine's continuation and the model's own approved resume of a run whose host carries a spec-seat row, unchanged; a continuation that parks again, stamped by its own call; what really moved still refused (`host_changed`, the classes named), and the same decision continuing once the host is back; a spec-seat row changed between the park and the decision; O1 (the permission input of the stamp is the previous release's for every spec-seat row); a run that never parks, unchanged.
|
|
154
|
+
|
|
155
|
+
### A leg's result records that its byte floor was not kept — for every read-deny table the leg compiled, the one at prepare and each one the person's rules brought mid-run — and a drained leg's frame address names its run (#4842, #4843; server SRV-REQ-1118A §2; fix of a narrow regression against 7.68.x; behavior change: one optional result member, one optional address member, and a repair loop's budget stop after an attempt answers with that attempt (a correction); narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none added, none removed; wire: `TaskResult.readDenyFloor?`, `LegAt.runId?`, both additive) (@server @cli @client-core @test)
|
|
156
|
+
|
|
157
|
+
- **Before.** Each table a leg compiles is judged for the byte floor where it is compiled: the prepare's first table, and each later one a store read brings when the person's persisted rules change while the leg runs (a call's own read, a request's read, a read the store answered late). Only the prepare's judgment was recorded — on the wiring manifest's `readDenyFloor` (7.69.0); a later table's went to the person's notice alone, and that notice is told once per session since 7.69.0. Measured on 7.69.0 (a real Runner on the local environment, no built-in tier so the prepare's table is empty, a deny row arriving after each run's first model request, two runs of one session): the row was in force on both runs (the call it names was refused), the manifest cell absent on both, the notice 1 / 0, nothing on either result. A host that keeps no notices (the server's result cell reads the manifest) had no record for either run; on 7.68.x every run carried the notice.
|
|
158
|
+
- **Now.** One latch per leg takes every table's judgment, whatever moment compiled it; it only ever turns on. The manifest reads it when it is derived (unchanged: the leg's wiring as it started) and the result reads it when it is assembled: `TaskResult.readDenyFloor: { kept: false }`, present iff a table the leg compiled held rows on an environment that does not declare it keeps the floor, on a deployment that does not require the floor. It holds wherever the manifest's cell does, and also for a table that gained rows after the manifest went out; to ask whether a leg ran with a floor that was not kept, read it. A table is judged inside its compile, before anything can judge with it, so every table anything in the leg judged with is on the record; one still compiling when the result is assembled (a request's read landed new rows and the model answered without another call) is not — nothing judged with it (read in the code). On every terminal of a leg whose prepare completed, the stream layer's failure backstop included (a leg that threw after prepare). Measured on this tree, same sequence: the result cell on both runs, the manifest cell on neither, the notice 1 / 0 (unchanged).
|
|
159
|
+
- **Who sees the new member.** Every hands run on an environment that does not keep the floor whose table holds a row: `NodeExecutionEnv` without `readFloorConfinement: "os"` — or with it on a host where that confinement does not apply (Linux, Windows: the environment then declares it does not keep the floor; measured on Linux) — the host lane, and any environment declaring `capabilities.keepsReadFloor: false`. With the default built-in tiers the prepare's table always holds rows, so on those environments **every such run's result now carries `readDenyFloor: { kept: false }`** — the same fact its manifest has carried since 7.69.0. Absent: an environment that keeps the floor (`NodeExecutionEnv` with `readFloorConfinement: "os"` where it applies, a lane declaring `keepsReadFloor: true`), a leg whose tables held no row (`readDenyBuiltinTiers: []` and no deny row), a leg with no hands, a prepare that did not complete, and a deployment that requires the floor (it refuses instead). Size: 31 bytes of JSON on a result that carries it; the only byte cap on a stored engine record that could hold a result is the workflow journal's per-entry 5 MiB (`MAX_JOURNAL_RESULT_BYTES`; read in the code, not measured).
|
|
160
|
+
- **Compositions.** The verify gate's, a cascade's and a repair loop's result carries the fold of the legs it closes over — in the one closing every composition's return passes, which already folds their intake and landing (`closeComposition`): `readDenyFloor` is present iff any of them carries it (the implementation leg and every fix round; every rung; every attempt), and a later leg never takes an earlier leg's record back. Measured: the implementation leg unkept and the fix leg not, rung 0 unkept and rung 1 not, attempt 1 unkept and attempt 2 not ⇒ the result carries it, where the returned leg's own record alone would not; every leg kept ⇒ no cell on any leg or result. A host no longer looks a leg's manifest up by key for it. **Known limit (KL-4842-a):** two kinds of leg are not among them, so a table that went unkept there mid-run has no record that reaches the host — the verify gate's verifier legs (measured: the verifier unkept, the gate's result without the cell; the manifest a verifier offers through `RunInternals.onLegFrame` still says how it started), and a child a leg delegated work to (the child's own result carries the cell, the parent's result does not; as on 7.69.0). Left to #4845.
|
|
161
|
+
- **A repair loop stopped at the top of a round (a correction).** When the loop found its cost or time budget spent at the top of a round after an attempt of the call had already run (the read after that attempt found it unspent an instant earlier), `runRepairLoop` returned a synthetic result as if nothing had run: terminal `repair.budget_exhausted`, `intake: { committed: false }`, zero `stats`, no `readDenyFloor`. It now returns the give-up every other exit after an attempt returns, through the same closing: the last attempt's terminal, the attempts' intake, landing and floor record, their cumulative stats, `repairTerminal: "gave_up"`. A loop whose budget was already spent when it was entered (nothing ran) answers as before.
|
|
162
|
+
- **The drained leg's address (#4843).** `RunInternals.onLegFrame(frame, at)`: `at.runId` is set on every frame the engine offers — the leg's `TaskResult.runId`. Two legs of one session (a verify gate's implementation leg and its fix legs; one task's successive messages) share `taskId` and `sessionId` and differ here. A leg whose prepare did not complete offers no frame at all, so a result whose `runId` no frame carries is such a leg. Measured: two drained runs of one session under one host task id, the second refused at its prepare — no frame of the second, and the same `taskId` / `sessionId` on both results. Optional on the type only so an address a host builds itself still type-checks.
|
|
163
|
+
- **Not changed.** The person's notice `config.read_deny_floor_unkept` (once per session, its words, its audience); the manifest's `readDenyFloor` and `configFingerprint`; every verdict; a run whose tables held no row its environment did not keep has the same result members as before (eight such runs compared with 7.69.0).
|
|
164
|
+
- **Consumers.** @server: read `TaskResult.readDenyFloor` for the run's result cell (on a composition it is the fold of its implementation-side legs — every fix round, rung or attempt; the verifier legs and delegated children are not in it, KL-4842-a); the manifest cell stays the leg's wiring as it started. Join a drained leg's frames to its result by `at.runId`. The known-limit sentence "a table that arrives mid-run has no source" can go; the one for drained legs narrows to verifier legs and delegated children (KL-4842-a). @cli / @client-core: a renderer that lists result members sees one more on most local runs. @test: L1–L7 / C1–C6 / R1 below are the criteria.
|
|
165
|
+
- **Pins.** `test/backlog4842-late-read-deny-floor.test.ts` — L1 (the prepare's table: result and manifest cells on two runs, notice 1 / 0), L2 (a table compiled mid-run: the row in force, result cell on both runs, manifest cell on neither, notice 1 / 0), L3 (no cell: an environment that keeps the floor, no row, no hands, the floor required), L4 (eight runs with no unkept floor: no cell, member sets as on 7.69.0), L5 (`runCascade` from the package root: the composite carries the cell; each rung's frames carry its run id), L6 (a leg that threw after prepare: the failure backstop's result carries the cell), L7 (the prepare's table unkept, the row gone before the call's read: the cell stays), C1–C3 (the verify gate, a cascade, a repair loop: an earlier leg unkept, the returned leg not ⇒ the result carries the cell), C4 (every leg kept ⇒ no cell anywhere), C5 (a verifier leg unkept ⇒ its own cell, none on the gate's result: the known limit), C6 (the repair loop's time budget crossed at the top of round 2 ⇒ the give-up carries attempt 1's cell, intake and stats), R1 (a drained leg refused at prepare offers no frame; the two runs share task and session ids).
|
|
166
|
+
|
|
167
|
+
### Under the default scrub, a variable a protocol peer's credential reference names no longer reaches a spawned child — it is withheld by name from the moment the engine receives the MCP server or A2A peer declaration, whatever header carries it and whatever shape the seat's answer gives its value, connected or not (#4793; security; behavior narrowing: the `"scrub"` arm of `inheritedHostEnv` / `hostChildEnv`, so under the default policy the tool shell, background shells, git legs, language servers, oracle gates and helper probes — including a variable a stdio entry's `env` map passes through, open to veto; widening: none; closed sets: +1 member `SecretEnvFindingKind` `peer-held`; hard-breaking: type-level for an exhaustive reader of `SecretEnvFindingKind` (a `never` branch or a total `Record` over it is tsc-red until it places the word); exports: none; wire: none — the person's notice `inherit_env.names_withheld` gains a sentence, its `detail` unchanged) (@server @cli @client-core @test)
|
|
168
|
+
|
|
169
|
+
- **Rule.** A reference `credentials: { kind: "env", headers | env }` on an MCP server (`transport.credentials`) or an A2A peer (`credentials`) points at variables of the resolver's environment (`{ kind: "env", headers: { Authorization: "ACME_PEER" } }` names `ACME_PEER`): tokens the engine holds for that peer. The engine takes their names in at the one declaration receipt every entrance goes through (`snapshotDeclaredEntry`: a run's `spec.mcp` / `spec.a2a`, an agent definition's `mcp`, `materializeMcpTools`, `materializeA2aTools`, `probeMcpServers`), into a process-level slot of their own beside the table `declareWithheldEnv` writes, and the `"scrub"` arm subtracts them by name. Before a leg starts, every declaration its Runner holds has passed that receipt: the leg's receipt also passes each definition of the Runner's catalog (`RunnerDeps.agents`) through the definition receipt (`snapshotDefinitionLists`) and the Runner's workflow governance baseline (`RunnerDeps.workflowGovernanceBaseline`) through the baseline's receipt — at every leg, as they stand at that leg's receipt (a definition the host edits or adds between legs is taken in by the next one), whether or not the leg mounts the delegation or workflow tool that uses them, refusing nothing there (one the receipt refuses is refused where it is received to be used, as before — save an accessor that answers differently on a later read, KL-4793-d / -f) — and `runSpec` passes its task's `mcp` / `a2a` and `agents` through their receipts before its preflight oracle (neither refuses anything there; the run's own receipt and door are unchanged). They are kept for the life of the process; a re-declaration — from this copy, or from an earlier release's copy that replaces its own table whole — does not remove them. A name some layer of the host hands every child whatever the spawn passes (the set a declaration refuses: `NODE_V8_COVERAGE`, the MCP stdio transport's default set — `HOME LOGNAME PATH SHELL TERM USER` on POSIX; `APPDATA COMSPEC HOMEDRIVE HOMEPATH LOCALAPPDATA PATH PATHEXT PROCESSOR_ARCHITECTURE PROGRAMDATA PROGRAMFILES PROGRAMFILES(X86) PROGRAMW6432 SYSTEMDRIVE SYSTEMROOT TEMP USERNAME USERPROFILE WINDIR` on Windows — and Windows' required variables, which add `LOGONSERVER USERDOMAIN`) is not taken in, since no reading can withhold it.
|
|
170
|
+
- **Before (measured; real `NodeExecutionEnv` child printing its names, a real loopback MCP server, a real stdio MCP child, a real Runner + Bash).** Under the default scrub a referenced variable whose name carries no credential word reached the model's shell while the server was not connected (seat failed, or its answer still pending), and after the connection too whenever the value arm missed it: the header carrying it was not a credential header, the seat encoded the value it read, or a stdio server's variable had a plain name. It was withheld only after a connection, and only when a credential value the seat answered equalled the variable's value.
|
|
171
|
+
- **Now.** Not in the child's environment in any of those cases, nor for an entry declared and never dialed (the entrance's `dialable` seat answering `false`, the run's tool valve leaving none of its tools): the criterion is that a declaration references the variable, not that the peer was dialed. Each one present is a `SecretEnvFinding` of kind `peer-held` (confidence `high`), carried by the existing census: `config.secret_env_scrubbed` (operator, once per process: the names, as before) and `ExecutionEnv.withheldEnv` → `inherit_env.names_withheld` (user). The person's notice gives such a name its own sentence: held back because the credential reference of an MCP server or A2A peer names it — to the person of a leg whose receipt took that declaration in, the entry named as a refusal of it names it (`MCP server "acme"`, never a value); to anyone else, "another entry in this process", the entry not named; the ways out — name it among the variables the run inherits, or have the host hand it to the shell explicitly; letting the run inherit all of them hands it on as well, but once the engine has started connecting to that peer neither that nor a list is sure to. No new notice code; `detail` unchanged (`remedies: [{ kind: "inherit_env" }]`). A referenced variable the environment does not hold adds nothing and is not said. The table is the process's, not a session's: a shell of another session or another Runner in the same process is held back from the name too, and its notice says why without naming the other's entry (the variable's name is said: it is what that shell lacks).
|
|
172
|
+
- **Whose entry a notice names, and what counts as told (the same ticket, a correction).** The person's notice names an entry for a variable only when the leg's own receipt took in that variable and that entry as a pair. A first reading judged it by the entry's display name alone, so two legs each holding an entry of one name (two tenants' `github`) that named different variables made one leg's notice say its own `github` named the other's variable — a false sentence that also told it which variable another session's entry names; now it says another entry in this process names it, unnamed. The once-per-session record keyed the notice on state and names, not on its sentence, so a later leg's more exact sentence (its own entry named after an earlier leg was told "another entry") was swallowed; it keys on the sentence as minted now — a sentence that reads differently is told again, the same one is not (a delegated leg's own session stays part of the key). `detail`, codes and exports: unchanged.
|
|
173
|
+
- **Narrowing, open to veto (@cli @server @client-core @test).** Under the default scrub (the `-p` / SDK lanes), a variable a stdio entry's `env` map passes through — a toolchain path such as `JAVA_HOME` or `KUBECONFIG` included — is counted as one the engine holds for that server and leaves the model's shell and the language server's environment: the engine cannot tell a pass-through from a secret, so the direction is the narrower one. The server itself still receives it. To keep it in the shell, name it in `inheritEnv` or hand it to the shell (`shellEnv`, a per-exec `env`); the names the host hands every child anyway (the list above) are not affected. The person's notice is how a person learns of it.
|
|
174
|
+
- **Not changed.** `inheritEnv: "all"` and an allow list (the value arm still withholds a variable whose value the engine took in from the seat's answer, as before; a list naming the variable hands it on until then); a host's grant (`shellEnv`, a per-exec `env`) hands it on under every policy; the stdio server that references the variable still receives it through the seat's answered `env` (no inheritance reads that); a variable no declaration references; the value arm itself (it still serves `"all"`, lists, references of kind `vault` / `handle` / `assertion` whose variable the engine cannot see, and copies of a value under another name).
|
|
175
|
+
- **Known limit.** KL-4793-a: a name once taken in is withheld from every scrubbed child of the process, other sessions and Runners included (their notice does not name the other's entry; an entry the host's own code takes in while a leg's receipt runs — a definition accessor that mints a tool over another Runner's catalog — counts as that leg's); only `env` references name a variable the engine can see; `"all"` and lists are not read by name; a stdio entry's pass-through has no exemption list; before `runSpec`'s preflight what the Runner holds of its own is not yet received (its first leg receives it); a definition put into the catalog or edited in the middle of a leg is taken in at the next leg's receipt (a shell later in that leg still sees the variable). KL-4793-b: with two copies of the engine in one process, a copy of an earlier release (no slot for these names) still hands them to the children it spawns itself. KL-4793-c: a child (a background shell included) started before the receipt keeps the environment it inherited (as KL-1753-d). KL-4793-d: a catalog definition member that throws only on its first read is accepted at the delegation tool's mint (the leg's intake swallowed the first throw), where 7.69.0 refused it. KL-4793-e: something of another shape in the names' slot degrades quietly (a non-`Map` is replaced; a non-`Set` value makes the receipts throw an uncoded `TypeError`). KL-4793-f: `runSpec` reads its task spec twice; an accessor that throws only on the second read makes it throw uncoded. KL-4793-g: a catalog (`RunnerDeps.agents`) that is a Proxy reporting an infinite `length` (or a sparse array of length 2^32 − 1) makes every leg's receipt loop hang; 7.69.0 hangs on the same input where it copies the catalog. KL-4793-h: an entry whose `name` is an accessor is shown in the notice by its kind alone (`MCP server`), without a name; attribution is unaffected. KL-4793-i: the once-per-session record keys on the notice's wording, so the same names and entries in another order (a withheld variable deleted and set again moves to the end of the environment's order) are told once more — a repeat, never a swallowed sentence.
|
|
176
|
+
- **Rules.** Readers of a declaration's credential reference: unchanged (the receipt's one reading now also hands its variable names, with the entry's name, to the slot); subtraction loops: unchanged (the scrub arm reuses the one loop); receipts: unchanged in number — the leg's receipt reads the Runner's catalog and workflow governance baseline through their own receipts, and no new refusal point is added; finding kinds 6 → 7.
|
|
177
|
+
- **Pins.** `test/backlog4793-peer-held-env.test.ts` — P0 the planted names say nothing by their shape · P1 never connected (library entrance; a real Runner + Bash) · P2 before and after the connection (http; stdio) · P3 a non-credential header, an encoding seat · P4 the stdio server still receives its variable (digest) · P5 an allow list and a `shellEnv` grant hand it on · P6 an unreferenced variable stays · P7 an A2A reference · P8 `"all"`: before the connection seen, after it (value arm) not, a non-credential header seen — as before · P9 the census (`peer-held`; the person's notice and its ways out; an unset referenced variable adds nothing) · P10 one intake; a re-declaration keeps the names · P11 a referenced `PATH` is not taken in · P12 an earlier copy's table keeps its declaration · P13 one server, a credential header and another, before and after the connection · P14 an entry declared and never dialed · P15 a stdio child variable under its own name · P16 a language server started by a real `NodeLspManager` (a host grant hands the variable on). `test/backlog4793-peer-held-leg-cells.test.ts` — F1 what a Runner holds of its own taken in at a leg that mounts no tool over it (its catalog: the model's Bash, a later shell, the delegation tool's mint; its workflow governance baseline; neither, no change) · F2 at every leg (a counting accessor read once per leg over three legs and once by a second Runner's leg; a definition edited after a leg, and an empty one filled in, taken in by the next leg; a revoked Proxy as the catalog: the leg completes) · F3 no new refusal point (two refused catalog definitions beside a good one: the leg completes; the mint refuses as the receipt does) · F4 the person's notice (the entry when the leg holds it, the ways out, no value; two entries; an entry the leg does not hold: "another entry in this process", unnamed; a finding without an entry; the operator's notice unchanged) · F5 the slot (an earlier copy's whole-table declaration; a re-declaration) · F6 `runSpec`'s preflight · the review's cells A1 A2 A3 A6, C2 – C5, R1 R2, D2 D3 D5 D7, S1, X1, X11, K, Q (another Runner's notice does not name the declaring run's entry, its own does; one variable named by an entry of each: each names its own), G (twelve policy cells and four connections) and T · fix3 A – D (two legs' entries of one name naming different variables: each notice names only its own variable's entry; naming the same variable: each its own; one session whose second leg took in its own entry after the first was told "another entry": told again; an unchanged sentence: told once). Re-aimed: `test/secret-env-name-table.test.ts` (the `SecretEnvFindingKind` type pin).
|
|
178
|
+
- **Consumers.** @server: nothing to change at the composition point when its MCP / A2A declarations carry `kind: "env"` references; a variable its seat reads through another reference kind is its to declare (`declareWithheldEnv`); a catalog in `RunnerDeps.agents` and a `workflowGovernanceBaseline` are taken in at each leg's receipt. With two copies of the engine in one process, declare with the newest and before any receipt. A consumer that switches exhaustively over `SecretEnvFindingKind` adds the `peer-held` arm. @cli: an interactive lane that runs the shell under `"all"` is not covered by this change; under the default scrub a stdio entry's pass-through leaves the model's shell (the narrowing above). @client-core: the person's notice gains the sentence above; nothing to change. @test: a black-box cell that read a referenced variable in the shell under the default policy now reads it unset — a stdio entry's pass-through included.
|
|
179
|
+
|
|
180
|
+
### What the engine cannot read or verify is an ordinary question, in every mode, on the main line too: 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 (#4784, the 7.68.6 change carried to this line; the owner's direct ruling — a widening; what it lets run without a question is listed below, open to veto @cli @server @client-core @test; narrowing: one, below, open to veto @server — an approver's edit on resume, KL-4784-f; hard-breaking: none; closed sets: no word added or removed, two words move, CLOSED-SETS `AskClass`; exports: none)
|
|
181
|
+
|
|
182
|
+
- **Who feels it.** A long task under `bypassPermissions` or `auto`, or one with a stored `Bash` allow, a pre-approval or a class table, is no longer stopped by commands the engine cannot read (arithmetic over a substitution, `eval`, a pipe into a shell, `xargs rm`) — and whatever such a command reads, writes or removes runs unchecked; a person running in `default` with nothing stored still gets one plain question.
|
|
183
|
+
- **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 — since 7.69.0, #4702 — a program word the command's own text fills in) and `unverifiable_delete` (`rm -rf` whose target the command does not settle) — read the dangerous-removal breaker's row: `bypassPermissions` did not release them, the auto-mode classifier was not asked, no allow rule, pre-approval or class table cleared them, and each carried `requiresRealApproval`.
|
|
184
|
+
- **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`); auto's classifier answers them; a stored rule, a pre-approval or a class table (`declareClassAnswers`) clears them; `dontAsk` refuses them unless an allow covers the call; `default` and `acceptEdits` ask one plain question. The removal guard mints `requiresRealApproval` for neither (the bit is minted where the guard's class explains it, `RRA_EXPLAINERS`, which the two left). The card's frame says what could not be checked and no longer how it is cleared: "This command could not be checked first: …", "This delete could not be checked first: …"; the produced-text row keeps its suggestion to pass data values after `--` in a literal script (#4699).
|
|
185
|
+
- **The read face, and #4789 in the same release.** On the open read face (`readFace: "open"`) every answerer of an ordinary question clears the two classes. On the narrowed face (`roots`, the default) the read station's `probe` for the same unreadable text rides on most of these cards — one card, two classes, and the `probe` row gives no classifier and no rule — so on 7.68.6, and on this entry alone, such a call is still put to a person under `auto` and is not cleared by a stored rule, a pre-approval or a class table there. #4789, in the same release, takes that `probe` off a read the station cannot see (a value, program text, a text the lexer refuses); **with both entries the narrowed face reads as the open one for these commands**: table A's narrowed cells run, and table B below is the merged release. (7.68.6's notes said the narrowed face's `probe` "still holds most of these commands for a person"; that is not so on this line.)
|
|
186
|
+
- **What this lets run without a question — open to veto (@cli @server @client-core @test).** The two classes are ordinary questions, so what clears an ordinary question clears them: a person's stored `Bash` allow (a whole-tool allow measured), a pre-approval, a host's blanket `onAsk: "allow"`, a class table over the classes a rule may clear, auto's classifier and `bypassPermissions`. A command the engine cannot read then runs without being asked about, and the engine does not know what it reads, writes or removes. **Table A** — measured on the merge of this entry with #4789 (`test/backlog4784-main-tables.test.ts`, one real run per cell, `default` mode unless the column says `auto`; each cell reads narrowed face / open face; "runs" = allowed with nobody asked; "asked" = put to a person, who said no; every removal under an inert shell, never a real one):
|
|
187
|
+
|
|
188
|
+
| Command | blanket `onAsk: "allow"` | stored whole-tool `Bash` allow | pre-approval (`allowedTools: ["Bash"]`) | class table | `auto` (the classifier says yes) |
|
|
189
|
+
|---|---|---|---|---|---|
|
|
190
|
+
| `printf 'cat .env\n' \| bash` (`.env` deny-listed) | runs, reads it / runs, reads it | runs, reads it / runs, reads it | runs, reads it / runs, reads it | runs, reads it / runs, reads it | runs, reads it / runs, reads it |
|
|
191
|
+
| `printf 'cp f.txt .bashrc\n' \| bash` (`.bashrc` write-protected) | runs, writes it / runs, writes it | runs, writes it / runs, writes it | runs, writes it / runs, writes it | runs, writes it / runs, writes it | runs, writes it / runs, writes it |
|
|
192
|
+
| `rm -rf "$(printf /usr)"`, `printf 'rm -rf /usr\n' \| bash`, `bash -c "$(echo rm -rf ~)"`, `echo /usr \| xargs rm -rf` | runs / runs | runs / runs | runs / runs | runs / runs | runs / runs |
|
|
193
|
+
|
|
194
|
+
On this entry alone the narrowed-face cells of every row but the `xargs` one read "asked" in the four right-hand columns, cell for cell as 7.68.6's table (60 of 60 cells equal, measured); on 7.69.0 every cell was put to a person, and under the blanket allow refused without a question. **Table B** — the forms where the two entries meet, on the merged release, both faces alike (measured, 13 forms × 6 modes × 4 answerers × 2 faces): `rm -rf "$X"`, `A=/tmp/j rm -rf $A`, `rm -rf "$(printf /usr)"`, `printf 'rm -rf /usr\n' | bash`, `bash -c "$(echo rm -rf ~)"`, `N=F; F=/etc/hosts; cat "${!N}"`, `env -Sdd if=/etc/passwd`, a here-document left open after `cat /etc/hosts` or after `cat .env` (deny-listed), a here-document whose delimiter expands, `$(case …)`, five nested substitutions, `printf 'cat %s' .env | sh` — with nobody to answer, `default`, `acceptEdits` and `plan` ask a plain question and `dontAsk` refuses; a stored whole-tool `Bash` allow or a pre-approval runs them (under `dontAsk` too); a class table runs them where a mode asks; auto's classifier answers them; `bypassPermissions` runs them. The deny-listed file named in the two of them that read it on a real shell (`cat .env; cat <<EOF` left open, `printf 'cat %s' .env | sh`) is read out in every cell where the command runs (KL-4784-b): the engine does not see the read. The five removals the engine reads from the exact path (`rm -rf /`, `rm -rf ~`, the workspace, `rm -rf /usr`, `rm -rf /mnt/<drive>`) are a person's in every one of those cells, with `requiresRealApproval` (refused by `dontAsk`), on this entry alone and merged — written as those paths, or with an ANSI-C numeric escape both bash versions decode to the same byte (`rm -rf /home/$'\x78'`, read since "Numeric escapes in an ANSI-C quote", below); the same removal spelled with an escape the lexer still does not decode (a NUL, a byte above 0x7f, one the two bash versions disagree on — KL-993g) is text it cannot read, so it is one of the commands this entry lets run. Who notices: a host that answers every question with a blanket `onAsk: "allow"`; a person who stored a whole-tool `Bash` allow, a run with a pre-approval or a class table, an `auto` run and every `bypassPermissions` run — these commands now run on either read face once both entries ship.
|
|
195
|
+
|
|
196
|
+
**Table C** — the deny-listed read, 7.69.0 against this entry alone (measured: a real Runner, made-up secret files in a temporary directory, a real shell for the reads). Eight forms move from asked or refused on 7.69.0 to running here, 23 cells each: `default` / `acceptEdits` / `plan` on the open read face under a stored whole-tool `Bash` allow, a pre-approval or a class table (9); `auto` on the open face, the classifier saying yes, with or without an answerer (4); `bypassPermissions` on both faces with or without an answerer (8); `dontAsk` on the open face under a stored rule or a pre-approval (2). With nobody to answer, `default` / `acceptEdits` / `plan` still ask (7.69.0: with `requiresRealApproval`) and `dontAsk` refuses; on the narrowed face, on this entry alone, the station's `probe` keeps a stored rule, a pre-approval, a class table and auto's classifier from clearing them (#4789 takes that `probe` off: table B). Seven of the eight read the made-up secret out; `cat .env; echo "x` runs, but the shell refuses the unclosed quote and reads nothing.
|
|
197
|
+
|
|
198
|
+
| Forms | What they are | In this release |
|
|
199
|
+
|---|---|---|
|
|
200
|
+
| `printf 'cat %s' .env \| sh`, `printf 'cat .env\n' \| bash`, `echo Y2F0IC5lbnYK \| base64 -d \| sh`, `bash <<< "$(printf 'cat %s' .env)"` | the read is hidden in text built when the command runs | the widening above, accepted (KL-4784-b) |
|
|
201
|
+
| `cat .env; cat <<EOF` left open, `cat .env` then a line opening a single quote it never closes, `cat .env; echo "x`, `cat ~/.npmrc; cat <<EOF` left open | the read is written out plainly, then text the lexer refuses whole follows it | a defect, not the widening: taken back in this release by #4862 (see that section; KL-4784-b) |
|
|
202
|
+
- **Not widened: a read check that did not finish — as in 7.69.0.** The environment did not answer a lookup of the command's reads (a symlink it would not resolve, a home-anchored deny row on an environment that declares no home, a lookup the execution target refused with `permission_denied` / `timeout` / `unknown`), a deny floor's spellings passed the station's bound, or a judge hung or threw: in every mode and on both read faces the question carries `requiresRealApproval`; `bypassPermissions` does not release it; auto's 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. Its class set is `unverifiable_shell_text` beside `policy_rra`, which the class fold reads as the breaker's row (no classifier, a hook's word beside it floored); its disclosed word is `policy_rra`, or a class that sorts before it on the same question — under a written target the environment did not resolve, `target_unresolved` (KL-4784-d).
|
|
203
|
+
- **Not changed — and the one place it does not hold on this entry alone.** `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, or a mounted drive — keeps the breaker's row and `requiresRealApproval`: where the engine can read the command, a person in every mode, whether the removal is written plainly, through a variable the command sets, after a `cd`, or inside an arithmetic body. It does not cover the same removal delivered through text the engine cannot read (KL-4784-e). **On this entry alone it does not hold for a removal written out plainly when text the lexer refuses whole follows it in the same command; with #4862, in the same release, it holds there too — for a removal written BEFORE the point where the lexer stops, in a statement of its own; with #4907, in the same release, for one written after that point in a statement of its own (save KL-4907-a); a removal in the very segment the lexer stopped in stays the unread text's ordinary question** — measured on this entry alone: `rm -rf ~; cat <<EOF` with the here-document left open, `rm -rf /usr` then a line opening a single quote it never closes, `rm -rf ~; echo $(case x in x) y;; esac)`, `rm -rf /; cat <<EOF` left open, and the workspace removed then a line opening a double quote. The engine reads none of the command, so the removal guard's one finding is `unverifiable_shell_text` (no `dangerous_delete`; the station's `probe` rides beside it on the narrowed face) and the call runs with nobody asked under `bypassPermissions` (both read faces), auto on the open read face (its classifier said yes), a stored whole-tool `Bash` allow, a host's blanket `onAsk: "allow"`, a class table and a pre-approval (the last four measured on the open read face; on the narrowed face this entry alone still asks under auto — the station's `probe` rides — and the merge with #4789 was not measured for these forms); on 7.69.0 every one of those cells was put to a person with `requiresRealApproval`. A real shell would run the removal first (read from the shell's grammar; never run here). 7.68.6 shipped the same reading, cell for cell. This is a defect, not part of the widening above: another change in this release takes it back — see the #4862 section (KL-4784-e). Every other class's row.
|
|
204
|
+
- **Where the main line differs from 7.68.6.** The two words sit right after `mode`, before `sandbox_override` / `sandbox_network` / `unstated` / `ordinary` (7.68.6: before `unstated`): the classes a rule may clear stay the last ones, so a card's headline still reads its remedy off the class word, and a card under one of the two that also leaves the sandbox by its own `dangerouslyDisableSandbox` keeps the guard's words, opened by "Runs outside the sandbox." (as 7.69.0 shows it). A class table may list six classes (`unverifiable_delete`, `unverifiable_shell_text`, `sandbox_override`, `sandbox_network`, `unstated`, `ordinary`). The program word the command's own text fills in (#4702) is the shell-text class and is widened with it.
|
|
205
|
+
- **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; `releasableAskClassesFor("shell" | "other")` gains both. ② `ASK_CLASSES` order: the two words move from after `dangerous_delete` to after `mode`; a set that holds one of them beside a class no rule clears now discloses that class (inferred from the code: a row 7.69.0 parked with such a set shows no class word or headline after the upgrade; the gate re-judges on resume). ③ `RRA_EXPLAINERS` loses the two. ④ `ORIGIN_IMPLIES_REAL_APPROVAL.integrity_guard`: `"at_mint"` → `false`. ⑤ On the removal guard's asks of the two classes: `AskRequest.requiresRealApproval` and the parked row's `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. ⑥ A read check that did not finish: class set `["policy_rra", "unverifiable_shell_text"]` (was `["unverifiable_shell_text"]`), disclosed `policy_rra` unless a class that sorts before it rides on the same question — on `AskRequest`, the parked row, `tool_end.gate.disposition` (`denied_by_mode` under `dontAsk`), the shadow-reason and headless-remedy sentences; the headline reads "This deployment's policy asks for your approval here." (KL-4784-d). ⑦ `SHADOW_REASON.unverifiable_delete` / `.unverifiable_shell_text`: the "arrived already marked" sentence `ordinary` has. ⑧ The card sentences above. ⑨ (narrowing) An approver's edit on a parked row whose class set is one of the two alone is refused on resume when the deployment's re-check of the edited input raises a bare real-approval bit (KL-4784-f).
|
|
206
|
+
- **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 whatever answers an ordinary question — 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 — their target spelled in what it reads, not through a byte it does not decode — are still stopped in every mode (on this entry alone not when text the lexer refuses whole follows them in the same command — the defect named under "Not changed" and in table C, taken back by #4862 for a statement of their own before the stop, and by #4907 for one after it); a read check that did not finish is a person's in every mode.
|
|
207
|
+
- **Rules.** −1 row (the breaker row is `dangerous_delete`'s alone; the two hold `ordinary`'s object), −2 explainer members; the removal guard's bit reads the explainer set (`explainsRealApprovalBit`) instead of a literal; +1 reading in the class fold — the unfinished check's pair withholds the classifier and floors a hook, standing in for a class of its own (#4823 retires the reading with the word).
|
|
208
|
+
- **Pins.** `test/backlog4784-unverifiable-relax.test.ts` and `test/backlog4784-fix1-unfinished-check.test.ts` (the patch line's two, carried; R1 reads this line's class order); `test/backlog4784-main-tables.test.ts` — table A (the patch line's sixty cells) and table B (the read station's seam × six modes × four answerers × both faces, and the five protected locations: a person's in every cell), G1 / G2 (KL-4784-g: the person's unread rule store beside the shell-text guard still reads as the unfinished check, a person's as on 7.69.0, while beside the delete guard it is the two relaxed modes'); this line's own pins moved to the ordinary row: `test/backlog4698-ask-rows.test.ts` T1 (the two rows), `test/backlog4699-b1-shell-trust.test.ts` (the unreadable forms' one row), `test/backlog4702-removal-guard-positional-program-word.test.ts` W (bypass releases the shell-text shapes naming the class), `test/backlog4089-target-unavailable-refused.test.ts` L2 and `test/backlog2137-deny-before-ask-matrix.test.ts` (the check that did not finish under a written target the environment did not resolve discloses `target_unresolved`, which sorts before `policy_rra`); `test/backlog4788-bypass-floor.test.ts` T1 / T2 / T3 and Rr5, formerly Rk2 (the floor table: the two classes leave the kept list for the released one; under the other five modes they read the ordinary row; on a real Runner under bypass both commands are released with no question frame, the release naming the class); the patch line's re-pins of 34 earlier pin files carried.
|
|
209
|
+
- **Consumers.** @cli @server: the read check that did not finish still carries `requiresRealApproval` ("only a person"); its class word is `policy_rra` (KL-4784-d); the removal guard's two asks no longer carry the bit, so a "safety-class ask (blanket-allow refused)" line or an "only a person" arm keyed on the bit will not show for them; 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 these two rows (`engineFactTables`). @test: the regressions of table A and table B below, and a read check that did not finish (a symlink to a deny-listed file the environment does not resolve) put to a person under bypass and auto, the protected bytes never read.
|
|
210
|
+
- **Numeric escapes in an ANSI-C quote (release review; partly replaces ruling C-R80 ③, a departure from the reference; stricter for removals and deny-listed reads, looser on the read station where the decoded word is a name or a `.` — open to veto @server @cli @test).** Before: in `$'…'` only the thirteen single-letter escapes were decoded; `rm -rf /home/$'\x78'` (the home), `rm -rf <parent>/$'\x70'roj` (the task root), `rm -rf $'\x2f'*`, `/home/$'\170'`, `/$'\x75'sr` were an unverifiable target — with this entry an ordinary question that `auto` and `bypassPermissions` ran (v7.69.0: a question with the real-approval bit) — and `cat $'\x2e'env` ran under `bypassPermissions` (v7.69.0 too). Now `\xH` / `\xHH`, octal `\N` – `\NNN` (the byte the value leaves mod 256) and `\cX` decode where bash 3.2 and 5.x give the same non-NUL ASCII byte in both locales (measured for every such spelling: 626): each removal above is the protected-location question in every mode, the read is refused. Measured against v7.69.0 for deny-listed reads (the release's narrow leg: a real Runner over a POSIX double that records the commands it is handed and runs nothing; 14 arms = six modes × both read faces, plus a stored whole-tool `Bash` allow under `default` and under `dontAsk`; v7.69.0, this line before the release review's fixes, and this release): eleven spellings that write part of a deny-listed name with such an escape — `cat $'\x2e'git-credentials`, `cat $'\056'git-credentials`, `cat $'.git-credential\x73'`, `cat $'\x2e'git$'\x2d'credentials`, `git show HEAD:$'\x2e'git-credentials`, `cat ~/$'\x2e'mcp.json`, `cat ~/$'\x2e'npmrc`, `cat ~/$'\x2e\x73\x73\x68'/id_$'\162'sa`, and with the task root at the home `cat $'\x2e'mcp.json`, `cat $'\x2e'npmrc`, `git show HEAD:$'\x2e'mcp.json` — were each read with no question on v7.69.0 in 3 arms (`bypassPermissions` on both read faces, `auto` on the open face; the other arms asked or `dontAsk` refused), and on this release each is refused in all 14 arms, as its plain twin is (`cat ~/$'\x2e'ssh/id_rsa` was refused on every tree: the `id_rsa*` row meets the file name). Against 7.69.0, every word written with such an escape now reads as the same word written plainly, so where the plain word is allowed the escaped one is allowed too. The kinds of text this frees, each to its plain twin's answer: a name the arithmetic evaluator or a builtin reads — an array subscript, element or value (`A=([$'\170']=1)` under any declaration head or none, `A[$'\170']=1`, `declare -a A=($'\170' b)`, `C=($'\x1b' x)`), `(( $'\170' ))`, `let`, `[[ -v A[…] ]]`, `read -a`, `printf -v`, `test -n`, `declare -n`, `mapfile -t`, the name of `export` / `local` (KL-994o); a `cd` target that is `.` (`cd $'\x2e' && cat notes.txt`); an rm option word (`rm $'-\x72f' -m "$X"`: no removal finding, as `rm -rf -m "$X"`, where it was an unverifiable delete); a path on the open read face (`cat $'\x2fetc/hosts'`). On the read station each was a question (v7.69.0 the mandated one, this line the ordinary one). Three reads after such a `cd` were refused and no longer are, where the task root is not the home: `cd $'\x2e' && cat .mcp.json`, `cd $'\x2e' && git show HEAD:.mcp.json` and `cd $'\x2e' && cat .npmrc` — refused in all 14 arms on v7.69.0 and on this line before this entry (the `cd` was unreadable, so the base was lost) — now read the project's own file, the one their twins without the escape read, which no deny row names (those rows are anchored at the home): `default`, `acceptEdits` and `plan` ask the ordinary question on both read faces, `auto`, `bypassPermissions` and a stored whole-tool `Bash` allow run them, and `dontAsk` with no stored allow refuses them (their twins `cd . && …` run in all 14 arms on every tree; measured as above). Where the task root is the home, all three are refused in all 14 arms on every tree, as their twins are. And a deny row only the lost base met: `cd sub && cd $'\x2e' && cat .ssh/id_rsa` with a row at `<cwd>/.ssh/id_rsa` is no longer refused. A rule lane still reads such a word unreadable and none is auto-backgrounded; a declaration's scalar spelling `declare A[$'\170']=1` still asks (as `declare A[$'x']=1` does); `x='b[$(cat <a deny-listed file>)0]'; declare -a A=([$'\170']=1)` is now refused (it was a question). Still unreadable, the ordinary question as before: a NUL (`\x00`, `\0`, `\c@`: it truncates the quote), a byte past ASCII, every `\u` / `\U`, `\c?` / `\c\` / a trailing `\c` (the versions differ), a malformed escape. A stored rule reads such a word as before (`Bash(echo A)` does not match `echo $'\x41'`: the rule lane reads any `$'…'` piece as an expansion). Known: KL-993g. Pins: `test/review7691-s2-ansi-c-numeric-escapes.test.ts`; `test/backlog994-s0-lexer.test.ts` #14, the off-table rows and two order cells, `test/backlog993-ansi-c-quoting.test.ts` leg C, `test/backlog994-s2-one-lexer.test.ts` (the subscript and element cells) (re-pinned to the new reading).
|
|
211
|
+
|
|
212
|
+
### On the narrowed read face (`roots`, the engine default) a shell read whose path the station does not see is the ordinary question, as on the open face: auto mode's classifier answers it and a stored allow rule clears it (#4789; fix; behavior change; narrowing: one — a deny-listed file bound through a `for` / `select` list, `read <<<`, `printf -v` or `mapfile <<<` from a `~user` word is refused, below; widening: one, below, open to veto @server @cli @client-core @test; hard-breaking: none; closed sets: none; exports: none; wire: the question's class set and marks, below; the card's message is unchanged)
|
|
213
|
+
|
|
214
|
+
- **Before.** The shell read station put a mandated question (class `probe`) on every read it could not place when the read face was `roots`: a variable whose value the text does not hold (`cat $F`), a command substitution (`ls $(dirname x)`), an arithmetic over a substitution's output (`echo $(( $(date -u +%s) + 3000 ))`), a lost working directory, a re-entered shell. On that face the auto-mode classifier does not answer `probe` and no stored allow rule clears it, so such a read-only command reached a person under auto, and "don't ask again" did not stop the next card. On the open face the same reads were already the ordinary question.
|
|
215
|
+
- **Now.** A read the TEXT leaves unplaced is the ordinary question on both faces: `classes` is `["ordinary"]` when nothing else stands (no `probe`), `mandated` is absent, `ruleOffersAbsence` is no longer `mandated`, the card's remedy says a rule clears it; auto's classifier answers it; a stored whole-tool `Bash` allow clears it; a prefix rule does not (the substitution's own command is not the prefix's, on either face); bypass runs it as before. Measured on a real Runner, roots face (default / whole-tool rule / auto): `ls $(dirname sub/f.txt)`, `cat f.txt | diff - "$X"`, `cat /etc/$X` — asked mandated / asked / asked ⇒ asked / runs / runs after the classifier. The owner's command keeps the removal guard's unreadable-text question beside it (class `unverifiable_shell_text`), which this entry does not move: on this tree that class alone stands on both faces (`probe` is gone from its card).
|
|
216
|
+
- **The line, and what it leaves unchanged.** A read the station can ASK THE ENVIRONMENT about keeps the mandated `probe` on the roots face — no classifier, no rule, every cell as on 7.69.0: its path is a word of the command and where that word lands the environment answers. That is a place outside the roots the command names as a word (`cat /etc/hosts`, `cat /etc/hosts $(echo f.txt)`, and in a re-entered or printed text too: `sh -c 'cat /etc/hosts'`, `echo 'cat /etc/hosts' | sh`); a word the text placed whose landing the environment could not resolve (plainly, inside a re-entered shell text, or as the directory a pattern expands in); and a `~user` word (`cat ~root/.profile`, `head -n1 ~root/.profile`, `ls ~nobody`, `cd ~root && ls`: another account's home, which only the account database places — also where the text unsets `HOME` or hands the word to another account's shell, `su nobody -c 'cat ~root/.profile'`, since the account database does not read `HOME`). A read whose path the station does NOT SEE is the ordinary question: the path is only a value or program text (a variable, a substitution's printed text, an inline program, `~+` / `~-`, which are `PWD` / `OLDPWD`), or it sits in text the lexer does not read (the known limits below). A `~user` word reaches a read as a value when it is bound first — assigned to a variable, a `for` list, `HOME=~root` (`X=~root/.profile; cat "$X"`) — and so does the home word once the text hands its landing to the account database (`unset HOME; cat ~/f`, `su nobody -c 'cat ~/x'`): the station reads no value for such a binding (only the account database answers it), so these are the ordinary question too, where the same bindings holding a literal path keep the mandate (`F=/etc/hosts; cat $F`, `HOME=/etc; cat ~/hosts`: the station reads that value). The same home word handed over through `env -u HOME bash -c …`, `env -i sh -c …` or `sudo -u <user> sh -c …` keeps the roots face's mandate, as on 7.69.0 (KL-4789-c). A check that did not finish (a lookup that gave no answer) keeps its question, its real-approval bit and its class on both faces. A deny-listed path the station sees is refused on every arm. The open face and the read-only face read as before; `SHELL_READ_DECISION` is unchanged (`unestablishable.full_shell` is still `{ narrowed: "mandated", open: "ordinary" }`: the narrowed reading is now read only for a read the station can ask the environment about).
|
|
217
|
+
- **Widening (open to veto).** A deny-listed file reached through text the station cannot place (`cat $(echo <deny-listed file>)`, `cat $F`) is, on the roots face too, answered by whoever answers an ordinary question — a stored whole-tool `Bash` allow, auto's classifier, an unattended class table that declares `ordinary` — where it was a mandated question no automatic lane answered; the open face has read it so since 7.49.2 (KL-1672-g, now both faces). An unplaced read of a directory outside the roots (`cat /etc/$X`) is likewise the ordinary question (the reference implementation asks any path holding `$` as a plain permission question). A place outside the roots, or a deny-listed file, that the command spells only as a VALUE the station does not place — a command substitution's printed text, an interpreter's inline program, a `sed` script, a tilde inside `if=~/…`, `env -S`'s payload, a name frozen by `readonly` — is the same ordinary question: the station counts as "named outside" only a word it places outside the roots, and as the environment's only a word whose landing the environment answers.
|
|
218
|
+
- **What each answerer now does with a read hidden as a value (measured, roots face; `test/backlog4789-value-hidden-reads.test.ts`, a real Runner on a no-op shell, 7.69.0 → this entry).** "asked, mandated" = a person's question no automatic lane answers; "asked" = the ordinary question; "runs" = allowed with no person asked. The open face is unchanged on every row: its readings are the roots face's after-column, except that an unplaced read the roots face keeps mandated (a `~user` word, the `env -u HOME` / `env -i` / `sudo -u` spellings) is the ordinary question there, as on 7.69.0.
|
|
219
|
+
|
|
220
|
+
| Command | no answerer (`default`) | stored whole-tool `Bash` allow | pre-approval (`allowedTools: ["Bash"]`) | class table (`declareClassAnswers`, `ordinary`) | `auto` (the classifier says yes) | `bypassPermissions` |
|
|
221
|
+
|---|---|---|---|---|---|---|
|
|
222
|
+
| `cat $(echo /etc/hosts)`, `cat $(echo <deny-listed file>)` | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
223
|
+
| `python3 -c "print(open('/etc/hosts').read())"`, the same with the deny-listed file | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
224
|
+
| `N=F; F=/etc/hosts; cat "${!N}"`, `printf 'cat %s' <path> \| sh` (either path) | asked, mandated → asked (`unverifiable_shell_text`, no mandate) | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → asked (the class is not `ordinary`) | asked, mandated → **runs** | asked, mandated → **runs** |
|
|
225
|
+
| `echo 'cat /etc/hosts' \| sh`, `cat /etc/hosts`, `F=/etc/hosts; cat "$F"` | asked, mandated (unchanged) | unchanged | unchanged | unchanged | unchanged | `echo … \| sh` asked, mandated; the other two run (unchanged) |
|
|
226
|
+
| `cat <deny-listed file>`, `N=F; F=<deny-listed file>; cat "${!N}"`, `echo 'cat <deny-listed file>' \| sh` | refused (unchanged) | refused | refused | refused | refused | refused |
|
|
227
|
+
| `cat ~root/.profile`, `head -n1 ~root/.profile`, `ls ~nobody`, `cd ~root && ls` | asked, mandated (unchanged) | unchanged | unchanged | unchanged | unchanged (the classifier is not asked) | runs (unchanged) |
|
|
228
|
+
| `cat ~+/f.txt`, `cat ~-/x` | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
229
|
+
| `X=~root/.profile; cat "$X"`, `X=~root; cat $X/.profile`, `for f in ~root/.profile; do cat "$f"; done`, `HOME=~root; cat ~/.profile` | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
230
|
+
| `unset HOME; cat ~/<file>`, `su nobody -c 'cat ~/x'`, `su - nobody -c 'cat ~/.profile'` | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
231
|
+
| `env -u HOME bash -c 'cat ~/x'`, `env -i sh -c 'cat ~/x'`, `sudo -u nobody sh -c 'cat ~/x'`; `X=/etc; cat $X/hosts`, `for f in /etc/hosts; do cat "$f"; done`, `HOME=/etc; cat ~/hosts` | asked, mandated (unchanged) | unchanged | unchanged | unchanged | unchanged (the classifier is not asked) | runs (unchanged) |
|
|
232
|
+
| `for f in ~root/.ssh/id_rsa; do cat "$f"; done` and the same credential file through `select`, `read <<<`, `printf -v`, `mapfile <<<` | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | runs → **refused** |
|
|
233
|
+
| `for f in ~root/.ssh/id_rs[a]; do cat "$f"; done` (a credential file; known limit, KL-4789-c ⑥) | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
234
|
+
| `A=(/etc/hosts); cat "${A[0]}"`, `select f in /etc/hosts; …`, `mapfile -t A <<< /etc/hosts; …`, `X=/etc/hosts; read f <<< "$X"; …`, `case x in x) X=/etc/hosts;; esac; cat "$X"` (known limit, KL-4789-c ④) | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
235
|
+
| `A=(a b c d e f g h i); B=(a b c d e f g h i); for f in ~root/${A[0]}${B[0]}; do cat "$f"; done` (KL-4789-c ②) | asked, mandated → asked, a person's (`unverifiable_shell_text`) | the same | the same | the same | the same | runs → asked, a person's |
|
|
236
|
+
| `unset f; : "${f:=/root/.ssh/id_rsa}"; cat "$f"` | refused (unchanged) | refused | refused | refused | refused | refused |
|
|
237
|
+
| `echo "${u:-$(cat /etc/hosts)}"`, `echo ${u:-<(wc -c /etc/hosts >&2)}` (read since #4862: the operand's command is read) | asked, mandated (unchanged) | unchanged | unchanged | unchanged | unchanged | runs (unchanged) |
|
|
238
|
+
| the same with the deny-listed file | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | asked, mandated → **refused** | runs → **refused** |
|
|
239
|
+
| `cat $'\u002fetc/hosts'` (an escape the lexer does not decode) | asked, mandated → asked | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | asked, mandated → **runs** | runs → runs |
|
|
240
|
+
|
|
241
|
+
The third row loses the read station's `probe` and keeps the removal guard's unreadable-text class (`unverifiable_shell_text`), which reads the ordinary question's row since #4784 (in this release): a stored allow, a pre-approval, auto's classifier and `bypassPermissions` answer it, a class table over `ordinary` alone does not. The last three rows read as they do with #4862 and #5066 in this release (the operand's command is read; `test/backlog4789-what-the-station-sees.test.ts` W2, W3, W3b, W3c). The rows from `cat ~root/.profile` down are `test/backlog4789-what-the-station-sees.test.ts` (sixteen arms, both faces; W1, W1c, W5, W6, W2). **Who feels it:** on the default narrowed read face, a person who stored a whole-tool `Bash` allow, runs a pre-approval or a class table that answers `ordinary`, or works in auto mode — a read-only command that hides a place outside the roots or a deny-listed file as a value used to stop and ask them once; now it runs. The same holds for a command that is not read-only but whose writes the station cannot see either: an inline program that writes or removes a file (`python3 -c "open('/tmp/x','w').write('1')"`, `node -e "require('fs').rmSync('/tmp/x',{force:true})"`) runs for the same answerers (measured: a stored allow, a pre-approval and the class table run it, auto runs it after the classifier), where it was a mandated question on the roots face. Open to veto, cell by cell (@server @cli @client-core @test).
|
|
242
|
+
- **Known limits (stated, KL-4789-a – KL-4789-d).** Text the lexer does not read is text the station does not see. (a) An escape the lexer does not decode — `cat $'\u002fetc/hosts'`; a numeric escape both bash versions decode to the same byte, `cat $'\x2fetc/hosts'`, is decoded since "Numeric escapes in an ANSI-C quote" in this release — is the ordinary question on both faces: a deny-listed file or a place outside the roots written that way is read when an answerer lets the command run; with no answerer a person is asked. A parameter's default text (`echo "${u:-$(cat <file>)}"`, `echo ${u:-<(wc -c <file>)}`) is read since #4862 and #5066 in this release: its deny-listed read is refused, its place outside the roots is the mandated question on the roots face. (b) Text the lexer refuses whole — a here-document that never closes, one whose delimiter expands (`cat <<$X`), a `case` inside a substitution, substitutions nested past four levels — gives no `probe` either: the removal guard's unreadable-text class holds the part the lexer did not read, and since #4784 in this release that class reads the ordinary question's row; what stands before the stop is read (#4862) and so are the statements past it (#4907, with the exceptions of KL-4907-a), a deny-listed read there refused (`cat <deny-listed file>; cat <<EOF` with no end line is refused in every arm). (c) A `~user` word bound before the read (`X=~root/.profile; cat "$X"`, `X=~root; cat $X/.profile`, `for f in ~root/.profile; do cat "$f"; done`, `HOME=~root; cat ~/.profile`) and the home word after `unset HOME` or inside `su <user> -c` / `su - <user> -c` are the ordinary question on both faces (the rows above): on the default narrowed read face, a person with a stored whole-tool `Bash` allow, a pre-approval or a class table that answers `ordinary`, or in auto mode, no longer gets a mandated question before such a command reads a file outside the workspace (another account's home). A deny-listed file is not among them: bound through any of the thirteen roads measured it is refused on every arm (the next entry) — except as a list word with a pattern piece (`for f in ~root/.ssh/id_rs[a]; …`), whose shadow is dropped whole: that deny-listed file is read when an answerer lets the command run. KL-4789-c tabulates what the tracking reaches (the deny shadow and the containment finding, road by road) and what it does not: that pattern piece; a literal place outside the roots through an array element, `select`, `mapfile <<<`, a `case` arm's assignment or `read <<< "$X"` (a deny-only spelling: the ordinary question); a bound word whose shadow passes the station's bound (asked as an unfinished check — stricter); an assigning parameter expansion (`${f:=…}`), which hands no shadow though the default text itself met the deny judge in the form measured. The same home word handed over through `env -u HOME`, `env -i` or `sudo -u` keeps the mandate (the stricter side, left as is), so two spellings of one thing are asked two ways. (d) The card's message still ends `— explicit approval required` on the ordinary question (below).
|
|
243
|
+
- **A deny-listed file bound to a name is refused on every road (narrowing).** A word the command writes and binds to a name hands every later read of that name its spellings for the deny judge; a `~user` prefix there (which the station cannot place) had no spelling, so a deny-listed file bound from one through a `for` / `select` list, `read <<<`, `printf -v` or `mapfile <<<` reached the deny judge as nothing: on 7.69.0 the roots face held it as the mandated `probe` and the open face asked the ordinary question (an answerer let it be read); with this entry's widening it would have been the ordinary question on both faces. The prefix is now spelled as written, as an assignment's own value is: `for f in ~root/.ssh/id_rsa; do cat "$f"; done` is refused on every arm of both faces, as `X=~root/.ssh/id_rsa; cat "$X"` already was. Measured over 13 roads (an assignment, `for`, `select`, an array, `set --`, a function's argument, `read <<<`, `export`, `declare`, `local`, a `case` arm, `printf -v`, `mapfile <<<`) × the built-in credential row, the deployment's row and a person's absolute row × 16 arms × both faces: every road reads as the assignment, refused; the same roads onto no row read as before (`test/backlog4789-bound-word-deny-floor.test.ts`). Not reached: a list word with a pattern piece (KL-4789-c ⑥). Who feels it: nobody asked before reading a credential file this way; a host that counted on the open face's ordinary question for such a command sees a refusal (open to veto @server @cli @client-core @test).
|
|
244
|
+
- **The card's message is unchanged.** Every card the read station raises carries 7.69.0's message, ending `… — explicit approval required` — the roots face's new ordinary cards too (`tool "Bash" reads where the session's read boundary could not establish what is read — explicit approval required`) — and auto mode's classifier reads the sentence it read on 7.69.0. So the sentence says `explicit` on a question any answerer may clear, as the open face's ordinary cards already did on 7.69.0: the card's structured members (`classes`, `mandated`, `requiresRealApproval`) say which question it is, and are what to read (KL-4789-d). The card's account still says the read cannot be confirmed to stay inside the allowed directories.
|
|
245
|
+
- **Rules.** One fact narrowed, none added: the station's fold marks a command holding a word placed outside the roots or a read the environment left unresolved — in a re-entered or printed text too (`outsideOrUnresolved`) — instead of any unplaced read; the decision table's narrowed reading of `unestablishable` reads that fact. A pattern whose directory the environment could not resolve or list is marked unresolved like a plain word it could not resolve, and so is a read of a `~user` word (the account database places it; a written `~user` target stays the write face's unplaced one, as before); a `HOME` the text leaves unknown unsettles the home word (`~`, `~/…`) alone, no longer `~user` / `~+` / `~-`, which do not read it. A binding's deny shadow reads `~` as `$HOME` and spells a tilde prefix no name answers (`~user`, `~+`, `~-`) as written (the one reader every binding's shadow goes through).
|
|
246
|
+
- **Pins.** `test/backlog4789-probe-on-roots.test.ts` — one matrix over a real Runner (shell `/usr/bin/true`: nothing runs; a fake deny-listed file), commands × {default, stored prefix rule, stored whole-tool rule, auto, acceptEdits, bypass} × {roots, open}: T1 / T1a / T1b (no `probe`; classifier and rule answer), T2 (roots reads as open), T3 (the arithmetic forms: the classes left decide by their own rows), L1 (named out-of-root reads keep the mandate, in a re-entered or printed text too), D1 / D2 (deny refused; the substitution form reads the same on both faces), E1 (an unfinished check keeps its question), E2 (an unresolved landing keeps the mandate, inside a re-entered text and under a pattern too), B1 (bypass asks exactly where an immune class stands). `test/backlog4789-what-the-station-sees.test.ts` — the same lane over sixteen arms (six modes × nobody / a stored whole-tool allow / a pre-approval / a class table) × both faces: W1 (`~user` words read as on 7.69.0 in every cell), W1c (`~+` / `~-`, and `~/…` after `unset HOME`, the ordinary question), W2 (text the lexer does not read, as it reads now), W3 (the commands only the removal guard holds on this tree), W4 (the card's message is 7.69.0's on every question; the members tell them apart), W5 (a `~user` word reached through a binding: the ordinary question, one test per form; the literal-path bindings keep the mandate), W6 (the home word handed to the account database: the ordinary question, one test per form; the `env -u HOME` / `env -i` / `sudo -u` spellings keep the mandate), W7 (a credential file through those spellings is refused on every arm). `test/backlog4789-bound-word-deny-floor.test.ts` — the same lane: B1 (13 roads × three deny-row sources: every road reads as the assignment, refused), B2 (onto no row: as before), B3 (a person's row relative to the working directory does not reach another account's home), B4 (controls), B5 (`~` in a bound word reads `HOME` as `$HOME` does), B6 (the known limits ④ ⑥ as they read; ⑤'s measured refusal).
|
|
247
|
+
- **Consumers.** @cli @client-core: a card for such a read no longer carries `probe` / `mandated`, and offers "don't ask again"; its message is unchanged (`— explicit approval required`), so read the question from `mandated` / `requiresRealApproval`, not from the sentence. @server: an unattended class table that declares `ordinary` now answers it on the roots face (it could not before), the KL-4789-c spellings included. @test: a probe that pinned the roots-face mandate for a text-unplaced read reads the ordinary question now — and so does one that pinned it for a `~user` word bound first or a home word after `unset HOME` / inside `su`; re-pin them; one that pinned a deny-listed file bound from a `~user` word through `for` / `select` / `read <<<` / `printf -v` / `mapfile <<<` as asked (on either face) reads refused now. Expected readable, not a regression (known limits, KL-4789-c): a credential file through a list word with a pattern piece (`for f in ~root/.ssh/id_rs[a]; …`) when an answerer lets it run; a literal place outside the roots through an array element, `select`, `mapfile <<<`, a `case` arm's assignment or `read <<< "$X"` (the ordinary question). A `~user` word written as a word reads as on 7.69.0; no card sentence moved.
|
|
248
|
+
|
|
249
|
+
### On a Windows tree the shell read station reads Git Bash's drive spelling (`/c/…`) as the drive path it names — reads, writes, `cd` targets and the removal guard (#4854; behaviour narrowing on Windows hosts, one widening named below; no API change)
|
|
250
|
+
|
|
251
|
+
- **Who.** Hosts whose execution environment is a Windows tree (a drive or UNC root) running the win32 adapter's shell, Git for Windows / MSYS2 bash, which names drive X's root `/x`. A POSIX tree is unchanged: `/c/x` there is an ordinary path.
|
|
252
|
+
- **Before (measured on a win-family environment double over a real Runner; the evaluation repo measured the read row on a Windows host, engine 7.68.5).** The station read every `/`-rooted operand on a Windows tree as "cannot be placed", so `/c/Users/<u>/…` met no home-anchored or rooted deny row: `cat /c/Users/<u>/<deny-listed file>` — also `/C/…`, a pattern, `/c/../c/…`, double- or single-quoted — ran unasked under `bypassPermissions` and elsewhere asked "where this command reads could not be established". `rm -rf /c/proj` (the task root), `rm -rf /c` (the drive root) and `rm -rf /c/Users/<u>` (the home) ran under `bypassPermissions` with no removal question (the target was not placed, so the removal guard had nothing to judge); a redirection or copy onto a protected or deny-listed file, and `cd /c/… && <relative read>`, likewise. A person's rule `Read(//c/…)` and the built-in rows matched anywhere (`.ssh`, …) already refused.
|
|
253
|
+
- **Now.** On a Windows tree a `/`-rooted operand is folded as that shell folds it (`..` at `/x` climbs to the emulation's own root) and a single-letter first segment is that drive: `/c/rest` and `/C/rest` ⇒ `C:\rest`, `/c` ⇒ `C:\`. Read at the one operand resolver, so every shell station — reads, writes, redirections, `cd` targets, the removal guard — judges it as its `C:/…` twin, on every mode and every deny-row source (built-in, the deployment's home-anchored and rooted rows, a person's rule). The tracked working directory reads the shell's `/c/…` pwd through the same reading (its spelling is now `C:\…`, was `c:/…`).
|
|
254
|
+
- **The one widening.** An in-root read in the drive spelling (`cat /c/proj/a.txt` under root `C:\proj`) is the in-root read it names. Where someone can answer, it is no longer asked (default mode, `acceptEdits`, `plan`). Where nobody can answer, it is no longer refused: the default mode with no approver, `auto` and `dontAsk` now run it, a refusal turned into a run (`bypassPermissions` ran it before and runs it now). On a deployment whose shell is outside the MSYS line (KL-4854-b) that is a run of a read the shell opens elsewhere (the current drive's `\c\proj\a.txt`; the verdicts were measured on the environment double, what such a shell opens was not measured on a real shell). Only reads the station judges in-root move this way: reads outside the root, writes and removals lose no question and no refusal on any mode and approver combination (measured over 91 read / write / remove cells on each of eight combinations).
|
|
255
|
+
- **Unchanged.** The structured file tools: Node on Windows opens `/c/x` as the current drive's `\c\x`, and they keep reading it so. A `cd` to the drive spelling mints no directory rule and no stored directory rule covers it (refusal-only). Every other `/`-rooted spelling stays unplaced as before — the emulation's own tree (`/etc`, `/usr`, `/bin`, `/opt`, `/home`, `/tmp`, `/proc`, `/dev`), another layer's drive form (`/cygdrive/x/…`, `/mnt/x/…`), a fold out of the drive (`/c/../etc/…`), a multi-letter head (`/cc/…`), the rule grammar's `/C:/…`, Win32's backslash root (`\c\…`), a UNC (`//c/…` is host `c` to that shell too) — KL-4854-a; a shell outside the MSYS line is read by the MSYS convention — KL-4854-b.
|
|
256
|
+
- **Not in range.** A path built inside another interpreter's text (`powershell -Command "…"`, `python -c "…"`) — KL-4854-c.
|
|
257
|
+
- **Pins.** `test/backlog4854-win-drive-prefix.test.ts` (on a Windows-family environment double; no Windows host) — the drive spelling as the drive path (the one operand resolver); reads × six modes × four deny-row sources; the removal guard on the drive root, the task root and the home; writes (a redirection, a copy target, the write-protection table); the tracked working directory; the `cd` member mints no directory; what stays unplaced; a POSIX tree unchanged.
|
|
258
|
+
- **Consumers.** A probe that pinned the "could not be established" card for a drive-spelled operand on a Windows host now meets the `C:/…` spelling's verdict (`read_path_denied`, the removal question, the write-protection question): re-pin to it.
|
|
259
|
+
|
|
260
|
+
### On a Windows tree every judgment that tightens also reads a drive's administrative share, under any host name, at that drive; every spelling is still executed, placed and admitted as written (#4996; security; behaviour narrowing on Windows hosts; widening against 7.68.7: the 15 + 42 cells of KL-4996-f (the 42 are KL-4996-f ③), below, open to veto (ruling C-R2800) @server @test; hard-breaking: against the pre-pickup bundle only, below; closed sets: none; exports: none added, none removed; wire: none) (@server @cli @test)
|
|
261
|
+
|
|
262
|
+
Every reading below is a fixture reading — a real Runner or the judgment layer over in-memory win-family and POSIX doubles whose shells record commands and run nothing; there is no real-machine reading.
|
|
263
|
+
|
|
264
|
+
- **Rule.** A path runs and is admitted as written. Every judgment that tightens — the read-deny rows, write-protected rows, deny / ask permission rules, the sensitive-path list, the frozen-specification fence, the removal guard — reads `\\<any host>\X$\…` (also behind `\\?\UNC\` / `\\.\UNC\`) at `X:\…` as well, and a drive path's names as Win32 trims them (`C:\Users\<u>.` and `C:\Users\<u> ` are the home). That reading names where a spelling MAY be, so it only turns "no row" into a row: it never displaces what the spelling as written answered (a row it met, or the refusal of a target whose landing cannot be read), and it never proves that a command left a protected location. In the shell, a device spelling the namespace screen refuses (`\\.\C:\…`, `//./c:/…`, `\\.\UNC\<host>\c$\…`) is never a place the command stands: a `cd` / `pushd`, a launcher's or `git`'s `-C` to one loses track there as on 7.68.7, and its drive path joins what is judged where the command may stand; the word itself is still asked about as an operand the engine cannot place, and a removal of it names the word as written. A lookup made at that drive path that fails by throwing is no answer for the command (the word's own question stands), never an end to the whole judgment; a link chain GNU `sed --follow-symlinks` follows, and a backup name, are never resolved there. The removal guard compares the spellings as written first and reads the drive only where that comparison found nothing.
|
|
265
|
+
- **Before (7.68.7).** Under `bypassPermissions` these ran with no question: `cat '//localhost/c$/Users/<u>/<deny-listed file>'` (also `\\127.0.0.1\c$\…`, `\\<own host name>\c$\…`, `\\?\UNC\…`, `\\.\UNC\…`), `rm -rf '//localhost/c$/<task root>'`, `rm -rf '\\<host>\c$\Users\<u>'`, `cd //./c:/Users && rm -rf <u>`, `rm -rf 'C:/Users/<u>.'` (#5052); the default mode asked "reads outside the directories", a question that does not say the file is deny-listed.
|
|
266
|
+
- **Now.** Each is refused or asked as its `C:\…` twin is. Over the review legs' probes (1,685 comparable cells): 0 looser than 7.68.7, 266 fixed; over every probe cell (4,931): 0 looser, 530 stricter, the admit side equal to 7.68.7 cell for cell; over the last leg's probe (797 cells): 15 looser than 7.68.7, all of them KL-4996-f (6: a lost walk past 256 places with one more share spelling; 9: a device spelling whose drive-path lookup never answers), and nothing else in the read station or the walk (the probe's one removal-guard cell is #5062's, KL-5011-d); over the merge leg's probe (192 forms × 7 seats): 42 more, KL-4996-f ③ (7 forms × 6 seats: a login shell's text run as another user that `cd`s to a device spelling and reads a relative name); in all, 15 + 42 cells looser than 7.68.7 (share spelling 6 + lookup that never answers 9 + KL-4996-f ③ 42), and one more removal-guard cell in #5062 (KL-5011-d); the pinned matrix (4,135 cells — host, share letter case, prefix, slash, tail, arrival, tool, row, seat, and the judgments a Runner seat cannot reach): 0 looser than 7.68.7, 0 newly looser than the drive twin (the 66 cells 7.68.7 already answered looser than their twin — a `Read` allow rule written in the drive spelling, asked through a share: KL-4996-c — are a pinned list). Three forms an earlier build of this change answered looser than 7.68.7, and which this one answers as 7.68.7 or stricter (206 cells of the matrix): a write through a share or `\\?\C:\` spelling whose landing cannot be read was asked where 7.68.7 refused it; `cd '\\.\UNC\<host>\c$\<elsewhere>' && rm -rf <start directory>` ran unasked where 7.68.7 asked; and a proof that the shell left the start directory (`cd C:/other`) stood for another host's `\\<host>\c$\other`. Two more, from a review round on this build, are back to 7.68.7's answer (measured on the double, 7.68.7 / that build / this one): `cat //./C:/<x> <deny-listed file>` with an adapter whose lookup of `C:\<x>` throws (refused / asked / refused); `rm -rf C:/<dir>/build..` run from `C:\<dir>\build..\child` under `bypassPermissions` (asked / ran / asked). The question for `rm -rf C:/<top>.` names a top-level directory again, as on 7.68.7. A lost walk past 256 places no longer drops the next move from its floor because a device spelling's drive path joined it (18 cells of the last leg's probe: refused, as on 7.68.7).
|
|
267
|
+
- **Hard-breaking against the pre-pickup bundle (not against 7.69.0).** The optional members `typed` / `answered` (`CallTargetView`, `PathTargetReading`, `win32NamespaceScreen`'s result) do not ship; a share spelling's `lexical` / `canonical` views stay the share, as on 7.69.0. The widening "a read, write or `rm` in the root through `\\localhost\c$\<root>` answers as `C:\<root>`" is withdrawn: those are asked as on 7.68.7.
|
|
268
|
+
- **Consumers (server).** (1) A network or device spelling of a local drive runs and is asked about as on 7.68.7; the read-deny rows, write protection and the removal guard judge it again at the drive. (2) The bundle's "in the root = `C:/`" relaxation is withdrawn, and `typed` / `answered` are gone. (3) A self-made share, a volume GUID and object-manager spellings still match nothing; a row written in a share spelling does not match other spellings; every reading is a double's. A host hook that compares paths sees the spelling as written. (4) The reason code of the question about a read through a device spelling outside the roots moves (25 cells of the review probes, asked in default and acceptEdits): `read_unestablished` → `readonly_out_of_root` — the same question, asked as before, the code only.
|
|
269
|
+
- **Known limits.** KL-4996-a (spellings still read as written: self-made shares, volume names, `\\?\` with forward slashes, a literal `..` or a trailing separator, `..` on a device share root, `\\?\GLOBALROOT\??\C:`, Git Bash's `/cygdrive/c` and `/proc/cygdrive/c`, a share name with a trailing period `c$.`), KL-4996-b (another machine's same-named path is refused / asked too), KL-4996-c (a row written in a share spelling), KL-4996-d (a home handed to the compile entry in the forward-slash share spelling), KL-4996-e (a name that literally ends in a period or a space under Git Bash is asked about as the name without it), KL-4996-f (open to veto (ruling C-R2800): 15 + 42 cells looser than 7.68.7 — a device spelling's drive-path lookup that never answers turns a refusal into a question no mode skips, 9 cells; a lost walk past 256 places with one more share spelling, 6 cells; ③ 42 cells, measured: a login shell's text run as another user — `su - <u> -c` with a command substitution, `bash -c` or `eval` in it, `sudo -i -u <u> bash -c` written directly or with the same three — that `cd`s to a device spelling and reads a relative name (`sudo -i -u <u> bash -c 'cd //./C:/t; cat note.txt'`, a read-deny row in the declared working directory) is no longer refused: asked in default, acceptEdits, plan and auto, run under `bypassPermissions` (with or without a person to ask), still refused under `dontAsk` — as its drive-letter twin `cd C:/t` is on 7.68.7 and now; the file read is the stand-in's or the login home's, not the one in the declared directory). Judging is slower after a device spelling's `cd` followed by many relative `cd`s: 200 of them take about 24 s, where 7.68.7 takes about 4.5 s (measured on the Windows-family environment double, not a Windows host, on a shared container, noise about 1.5×; KL-4996-f ④).
|
|
270
|
+
- **Pins.** `test/backlog4996-share-drive-reading.test.ts` (the reader, no fold, the stand-in, the throats, the places the reading must not loosen — a hold, the write-protected table, the removal guard's proof and key, a stand-in's lookups and places —, the two doors, the callers' list — an upper bound on who reads the reader, not a proof that every tightening judgment goes through a throat); `test/backlog4996-share-drive-matrix-{shell,tools,via,judgments}.test.ts` (against `test/fixtures/backlog4996-matrix-v7687.json`, recorded on 7.68.7 with the same harness, against each cell's drive twin, and against the pinned list `test/fixtures/backlog4996-matrix-existing-looser.json`).
|
|
271
|
+
|
|
272
|
+
### A removal that empties the home or the task root is the protected-location question however the command reaches the directory, wherever the environment answers where the path leads — a link, a link to a link, a drive alias, a mapped drive, a `cd` into a link earlier in the line — and a `$` bash takes as written is read as written, so `rm -rf "//localhost/c$/<task root>"` is that question too, as its single-quoted twin is (#5011, #5032; security — the "removes data without asking" class; behaviour narrowing; widening: the as-the-twin cells below, open to veto @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @test)
|
|
273
|
+
|
|
274
|
+
Every reading below is a fixture reading — a real Runner over an in-memory POSIX double and the win-family double, whose shells record commands and run nothing; there is no real-machine reading.
|
|
275
|
+
|
|
276
|
+
- **Who.** Every host, both path families. A removal written by the location's own name is unchanged.
|
|
277
|
+
- **Before (the same on v7.68.7, v7.69.0 and the 7.69.1 line before this change).** Under `bypassPermissions`, with no question: `rm -rf <link to the home>/*`, `rm -rf <link in the task root to the home>/*` (absolute or relative link), a link to a link, `cd <link to the home> && rm -rf ./*` (and `*`), `rm -rf <link to the task root>/*`, `cd <link to the task root> && rm -rf *`, `rm -r <link>/*`, `<link>/*/*`; on a Windows tree `rm -rf Y:/Users/<u>/*` (Y: an alias of C:), `rm -rf Z:/Users/<u>/*` (Z: mapped to `\\localhost\c$`), a link to the home by drive or share path, `cd` into such a link, a link to the task root through the share. Every other mode asked only the ordinary "writes / reads outside the directories" question. The same removal by the location's own name was the protected-location question in every mode. **The `$` forms:** `rm -rf "//localhost/c$/<task root>"`, the same unquoted, `"//localhost/c$/Users/<u>"`, `"//127.0.0.1/c$/…"`, `"…/c\$/…"` — the `$` was read as an expansion, so the guard said "could not be checked", which `bypassPermissions` releases: they ran on v7.68.6 / v7.68.7 and on the 7.69.1 line before this change (since #4784 made that question ordinary); on v7.69.0 they were asked (the older could-not-be-checked text was not released by the mode).
|
|
278
|
+
- **Now.** The removal guard holds each protected location — the home, the task root, an additional working directory, the working directory — at its spelling and where the execution environment answers it is, and judges a directory a removal empties (a pattern naming every entry of it, `<dir>/*`) where the environment answers the directory the shell enumerates is — the same pattern there, so the removal reads as the same removal written by the directory's own name (a `..` or a pattern before the run is read where the shell walks it). Each cell above is the protected-location question in default, acceptEdits, plan, auto and bypassPermissions. A `$` that is not followed by a name character, a digit, a special parameter, `{`, `(` or `[` — or is escaped — is a literal for every reader of that fact (the read-only reading, the read-deny rows, the write judgment, the removal guard), which read such a word as its twin without the `$`; a `$` before a character past ASCII stays a possible expansion (measured: in a UTF-8 locale on macOS, bash 3.2.57 and 5.3.15 read `$é` as a parameter).
|
|
279
|
+
- **Same as the twin (open to veto: 10 + 18 cells of the five modes, where the old reading of `$` was stricter than the twin; each word now answers as its twin without the `$` does).** (1) **10 cells** — a program reached by a path with a `$` in a directory name (`<root>/a$/rx -rf ~`, `<root>/a$/r? -rf ~`) × five modes: on v7.68.7, v7.69.0 and this line before the change it was an unknown program read as `rm`, so the protected-location question in every mode; now it is that program, as `<root>/ad/rx` is, and gets the twin's ordinary question in default, acceptEdits, plan and auto — and under `bypassPermissions` those 2 cells run, where they were asked. (2) **18 cells** that were asked and now run, as the twin does: 16 in-root reads with a literal `$` or an escaped backquote in a name (`cat "<root>/a$.txt"`, `ls <root>/a$.txt`, `cat "<root>/a\$.txt"`, ``cat "<root>/a\`.txt"``) × default, acceptEdits, plan and auto, which were asked the read station's "reads where the session's read boundary could not establish what is read"; under acceptEdits, in-root removals with a literal `$` (`rm -rf "<root>/x$.bak"`; `rm -rf C:/proj/a$/../..` on a Windows tree, whose operand ends in `..`, which `rm` refuses itself), which were asked "could not be checked". On a Windows tree an in-root read or removal spelled through this machine's share with a literal `$` (`cat "//localhost/c$/proj/a.txt"`, `rm -rf "//localhost/c$/proj/build"`) answers as the same spelling single-quoted does: a share is admitted as written (#4996), so the read is asked in default, acceptEdits, plan and auto and the removal under acceptEdits, as on 7.68.7 (measured).
|
|
280
|
+
- **Unchanged.** Ordinary removals (in the task root, through a link to a directory in it, a link removed itself, outside the roots, another account's home, a dot pattern below a link) — never the protected-location question, run under `bypassPermissions` as before. A directory the environment gives no answer for is judged by its spelling, and the read station's question for a target it cannot place stands as it was, in every mode (KL-5011-c). No environment seated: spelling only.
|
|
281
|
+
- **The question names the location.** The protected-location question for a directory emptied through a link, an alias or a mapped drive names that directory where the environment answers it is, with the pattern — `(/home/<u>/*)`, `(C:\Users\<u>\*)`, in the answer's own separator — as the question for the same removal by name does; it no longer names one of the entries the shell enumerated (`(/home/<u>/notes.txt)`, `(C:\Users\<u>/notes.txt)`). One rule for every protected-location question: it names the location the guard judged, as the command wrote it or the environment answered it — never a location the engine assumed: a relative operand judged where the command stood when the working directory stopped being tracked is named as written (`cd "$D" && rm -rf ../proj`: `(../proj)`, as before), and a word the engine reads as a drive path only by its own reading (`\\.\UNC\<host>\c$\…`) is named as written, the host kept. A run that lists directories only keeps its trailing separator (`(/home/<u>/*/)`).
|
|
282
|
+
- **Known.** KL-5011-a (Git Bash's `..` across a share root: needs a real-machine reading), KL-5011-b (ANSI-C quoting and `printf`-built spellings are text built when the command runs — not followed; nor is a link the same line creates, `ln -s <home> <new> && rm -rf <new>/*`, which runs under `bypassPermissions` on v7.68.7, v7.69.0, before and after this change), KL-5011-c (the forms still read by spelling), KL-5011-d (the run of `*` is read quoting-blind and with `\` as a separator on both families, and compared case-insensitively — stricter than needed in rare cases, as before), KL-5011-e (an environment that takes more than 10 seconds to say where a directory is: the guard judges the spelling, so a removal through a link to the home runs under `bypassPermissions` there — the same on all four columns, not a regression — and each removal waits about 10 seconds more).
|
|
283
|
+
- **Consumers.** A probe that pinned a run under `bypassPermissions` for a link / alias / mapped-drive form, or "could not be checked" for a `$/` share form, now reads the protected-location question (`dangerous_delete`). One that pinned a question for an in-root read or a program path with a literal `$` now reads the twin's answer. Re-pin to the new reading.
|
|
284
|
+
- **Pins.** `test/backlog5011-guard-by-answered-location.test.ts` (each cell × five modes; ordinary removals; the unanswered directory; the start, additional and task-root directories at their answered location; the home held at its spelling and at its answer; the location the question names; the `$` fact per reader, each against its twin), `test/posix-mem-env.ts` (the POSIX double: `..` applied where the kernel applies it).
|
|
285
|
+
|
|
286
|
+
### A pattern that names every entry of a directory is read as `*` in the forms the engine reads as such (a run of `*` with one `?`, or one `[!.]` / `[^.]` a `*` follows, read on the pattern bash forms after quote removal — a quote that holds nothing adds nothing, a negated class of dots only is `[!.]`; other spellings the shell expands to the same list are not all read — KL-5011-d) — `rm -rf ~/?*`, `<home>/[!.]*`, `<home>/[^.]*`, `<home>/*?`, `<task root>/?*` are the protected-location question, as `rm -rf ~/*` is (#5062; security — the "removes data without asking" class; behaviour narrowing; widening against 7.68.7: one cell, KL-5011-d, below, open to veto (ruling C-R2800) @server @test; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @test)
|
|
287
|
+
|
|
288
|
+
Every reading below is a fixture reading — a real Runner over the in-memory POSIX double and the win-family double, whose shells record commands and run nothing; there is no real-machine reading.
|
|
289
|
+
|
|
290
|
+
- **Who.** Every host, both path families.
|
|
291
|
+
- **Before (the same on v7.68.7, v7.69.0 and this line before the change).** Under `bypassPermissions`, with no question: `rm -rf <home>/P`, `rm -rf ~/P`, `rm -rf <link to the home>/P`, `rm -rf <task root>/P`, `rm -rf P` in the task root and `rm -rf <link to the task root>/P`, for P each of `?*`, `*?`, `*?*`, `[!.]*`, `[^.]*`, `*[!.]*`; on a Windows tree `rm -rf C:/Users/<u>/?*`, `C:/Users/<u>/[!.]*`, `Y:/Users/<u>/?*` (Y: an alias of C:) and the task root's `?*`. The other modes (measured on v7.69.0 and on this line before the change, six modes × both read faces; v7.68.7 not re-measured): for the home — by name, by `~`, through a link, and the Windows home — the read station's `probe` ("writes outside the directories allowed for this session"), a person's question in `default`, `acceptEdits` and `plan` on both faces and under `auto` on the narrowed face, while `auto` ran it on the open face; for the task root the ordinary question ("was not shown to be reversible"; on the Windows tree's task root "reads outside the directories allowed for this session"), which `auto` ran; `dontAsk` refused every one. In the shell `x/*`, `x/?*` and `x/[!.]*` expand to one list — every entry of `x` whose name does not start with a dot — so each of these removes everything visible in the home or the task root, as `rm -rf ~/*` does, which was asked. At the filesystem root (`rm -rf /?*`) they were already the question (a top-level directory). Older than this change: a run of two segments whose first segment lists a protected directory — `rm -rf <dir>/*/*` where `<dir>` holds the home (or a link to it) and nothing protects `<dir>` itself — ran under `bypassPermissions` on v7.68.7, v7.69.0 and this line before the change (its `?*/*` spelling, on this line only, was asked, naming one entry).
|
|
292
|
+
- **Now.** A segment names every entry when it matches every name that does not start with a dot: a run of `*` alone, or with one `?` anywhere in it, or with one `[!.]` / `[^.]` that a `*` follows. A run of such segments at the end of an operand — exactly the run the command's own word ends in, written bare, so the shell expands it (a quoted prefix that ends in a separator is fine: `'<home>/'?*`) — is read as `*` is — by name, by `~`, relative, through a link, after a `cd` into a link — so each cell above is the protected-location question in default, acceptEdits, plan, auto and bypassPermissions (205 cells changed: 41 ran, 164 were a question without the bit). A run of several segments empties each directory on the way: `<dir>/?*/*` (or `<dir>/*/*`) is judged at `<dir>` with the whole run and at each directory its first segment lists with the last segment — each where the environment answers it is and at its spelling, as a protected location is held — so a home one level below `<dir>` is the protected-location question in every mode (where the environment lists that directory without saying where it is, the read station's own question stands before it in every mode, as for any location it cannot place) (10 more cells changed for the `*/*` spelling: 2 ran, 8 were the ordinary question). The question names the run as written at the answered location (`(/home/<u>/?*)`, `(/srv/people/<u>/*)`).
|
|
293
|
+
- **Unchanged.** A segment that leaves a name out is not every entry: `??*`, `?*?`, `*??*`, `*?*?` (a one-character name), `?` and `[!.]` (every longer name), `*[!.]` (a name that ends in a dot), `[a-c]*`, `*.tmp`, `.??*`, `build/?.log` — each answers as before in every mode. A `?` or a class the shell does not expand — quoted, escaped, or inside a quoted word: `'?'*`, `\?*` (the names that start with `?`), `'?*'`, `"[!.]*"`, `"$HOME/?*"` (one literal name), `[\!.]*` (the names that start with `!`), a bare run after a quoted segment (`<home>/'?*'/*`: the contents of the one directory named `?*`), a quoted array element, a segment the environment's answer brings — is not every entry either: read as before. A match the shell listed is the name it spells: a home literally named `?*` that the run matches is the home, as on 7.68.7 — but where the environment cannot list its directory, `rm -rf <dir>/?*` is not the protected-location question for it (KL-5011-d, one cell, open to veto: 7.68.7 asked). Measured against this line before the change: 0 of 120 cells differ (60 for the segments that leave a name out, 60 for the narrow patterns, at the home, through a link to it and in the task root), 0 of 20 more (two patterns written together, braces, a link the same line creates), and 0 of 95 for the quoted and escaped forms.
|
|
294
|
+
- **Known.** KL-5011-c ③ — several patterns that each leave names out and together empty a directory (`rm -rf <home>/? <home>/??*`) are each judged alone: not the protected-location question, and they run under `bypassPermissions`, as on every earlier version. KL-5011-c ④ — a wider member that reaches the word through a value or a `for` list (`P='?*'; rm -rf ~/$P`, `for p in ~/?*; do rm -rf "$p"; done`) is read as a run of `*`: not the protected-location question, as before. KL-5011-d — the run of `*` alone is read quoting-blind, as before; and a home literally named `?*` whose directory the environment cannot list is not the protected-location question for `rm -rf <dir>/?*` (one cell, open to veto (ruling C-R2800): 7.68.7 asked).
|
|
295
|
+
- **Consumers.** A probe that pinned a run under `bypassPermissions`, or the ordinary question, for one of the forms above now reads the protected-location question (`dangerous_delete`). Re-pin to the new reading.
|
|
296
|
+
- **Pins.** `test/backlog5011-guard-by-answered-location.test.ts` (the #5062 cells: each member of the set by name and through a link × five modes, `~`, relative, a link to the task root, a `cd` into a link, `..` after a link, a home the environment places but cannot list, a run two segments below a link, a home one level below a run's top by name and through a link (and one the environment lists but does not place), the location each names, a run of three segments, the mounted-drive kind with no recursive option, two Windows-tree cells; the segments that leave a name out, `*??*` and `*?*?` among them, and the quoted, escaped and value-borne forms, asked as before; the bare run after a quoted prefix and in a launcher's re-spelled text, asked; a home literally named `?*` the shell lists, the protected-location question).
|
|
297
|
+
- **Quotes that hold nothing, a class of dots (release review).** Before (v7.69.0 and this line alike): `rm -rf ~/''?*`, `~/""?*`, `~/?*""`, `~/[!..]*`, `~/[^..]*`, `~/[!\.]*`, `~/[!'.']*`, the task root's `[!..]*` and `<task root>/''?*`, a link to the home's `[!..]*`, and on a Windows tree `'C:\Users\<u>\'?*` / `C:\\Users\\<u>\\?*` ran under `bypassPermissions`; elsewhere the home's, the link's and the Windows home's were the read station's `probe` — a person's question in `default`, `acceptEdits` and `plan` on both read faces and under `auto` on the narrowed face, while `auto` ran them on the open face — and the task root's were the ordinary question, which `auto` ran; `dontAsk` refused every one (measured on v7.69.0 and on this line, six modes × both faces) — the set was read off a handful of written spellings. Now it is read on the pattern bash forms after quote removal: the lexer tells a pattern character from a quoted one, a quote that holds nothing adds nothing, a negated class whose members are dots only is `[!.]`, and on the Windows family (the family of the place judged) a `\` separates segments as `/` does; each such form is the protected-location question in every mode (stricter than 7.69.0), a run of several segments (`~/?*/?*`) too. The grammar of a segment is unchanged. Unchanged too: `~/''a*`, `~/[!.a]*`, `~/'?*'`, `~/\?\*`, `~/"[!.]"*`, `~/[\!.]*`, `~/["!".]*`, `~/??*`, and a `\` on POSIX, part of a name in an absolute or a relative spelling (`'/home/x\'?*`, `~/sub\\?*`, `a\\?*`, `'C:\'?*`: the ordinary question on both read faces, as on this line before this entry — `auto` and `bypassPermissions` run it; on v7.69.0 the narrowed read face put the read station's `probe` on each, a person's question under `auto` too, and #4789 in this release made it the ordinary question there, as the open face already was: measured on v7.69.0, on this line before #4789 and after it, six modes × both faces). `[^\.]*` behind a home-valued `$X` names the home where it named a workspace directory (the same question with the bit). Known: KL-7691-s3. Pins: `test/review7691-s3-every-entry-unquoted.test.ts`; `test/backlog7470-fix.test.ts` ④c F2.
|
|
298
|
+
|
|
299
|
+
### What the engine can read of a command is judged as itself; what it cannot read is the ordinary question beside it, never instead of it — a removal or deny-listed read written plainly before text the engine cannot parse stays stopped, and a command written in a parameter expansion's operand is read (#4862, the 7.68.7 patch's twin; hard-breaking: none; open to veto @server @cli @test for the one stricter-than-the-shell cell below)
|
|
300
|
+
|
|
301
|
+
- **What it closes.** With the entry below (#4784) a shell text the engine cannot read is an ordinary question. Where a command's text could not be parsed to its end, the engine read none of it, so a removal or read written plainly BEFORE the unparseable part would have become that question too — `rm -rf ~; cat <<EOF⏎x` (a here-document never closed), `rm -rf /usr⏎echo 'x` (the next line never closes its quote), `rm -rf ~; echo $(case x in x) y;; esac)`, `cat .env` / `cat ~/.npmrc` before such a tail — and run under `bypassPermissions`, auto's classifier and every ordinary-question answerer (as 7.68.6 shipped them; 7.69.0: a person with the real-approval bit, or refused). Bash runs a complete line before the one it cannot parse, and bash 3.2 / 5.2, dash, zsh and ksh all run an unterminated here-document with its body taken to the end of the text (measured). Older than both: a command written in a parameter expansion's operand — `echo "${X:-$(cat .env)}"`, `${X-…}`, `${X:=…}`, `${X:+…}`, `${X:?…}`, `${X#…}`, `${X%…}`, `${X/…/…}`, a backquote or (outside double quotes) a `<(…)` there — was never read: one word the engine could not read, an ordinary question (7.69.0 included).
|
|
302
|
+
- **Now.** The segments the lexer read in full before it stopped go through every judge — a protected-location removal is a person's (`dangerous_delete`, the bit) in every mode, a deny-listed read is refused, a write-protected target and the read roots are judged — and the text from where it stopped stays the one ordinary question beside them. An unterminated here-document is read as the shells read it, so a shell or `xargs` fed one (`bash <<EOF⏎rm -rf ~`) is judged on that body. The substitutions written in an operand are planned as any substitution is; the operand is read as the shell quotes it — outside double quotes a single-quoted part (`${X:-'$(cmd)'}`) runs nothing and is not read as running, inside them (`"${X:-'$(cmd)'}"`, `${X:-"'$(cmd)'"}`) it runs and is read; a substitution that cannot be delimited there keeps the ones read before it, and the expansion itself stays the ordinary question. A literal written to a file and then sourced splices what the lexer read of it. Each of the nine forms first measured reads, in every mode × answerer × read face, as the same sentence without its tail (pinned).
|
|
303
|
+
- **Net, for a reader coming from 7.69.0.** The entry below widens what the engine cannot read and the deletes whose target is hidden from it (a stream, a substitution's output, a script put together when the command runs) into an ordinary question — unchanged here, cell for cell. What is written plainly BEFORE the point where the lexer stops, in a statement the lexer read in full (a statement boundary between it and the stop), and what is written in an operand it reads, is judged as on 7.69.0 or stricter; a command in the very segment the lexer stopped in is judged by the words read in full before the stop where a shell still runs that statement — `rm -rf ~ $(case x in x) y;; esac)` is the removal it starts with, beside the ordinary question of the unread rest ("The statement the lexer stops in", below) — while one whose command name stands after the stop (`x=$(case …) rm -rf ~`), an operand written after the stop in that statement (`rm -rf <<$EOF ~`), and a statement whose line stops at a syntax error stay part of the unread text, the ordinary question (KL-4907-a ⑥, KL-7691-s1 ①, ②, ④). What is written AFTER that point, in a statement of its own, is read since #4907 in this release: where the lexer stops at a construct bash reads on (`$(case …)` in a substitution, a here-document delimiter holding `$`), a statement after it — `echo $(case x in x) y;; esac); rm -rf ~`, `cat .env` on the next line, `cat <<$EOF⏎x⏎$EOF⏎rm -rf ~` — is judged as written alone (the #4907 section; its exceptions are KL-4907-a; pinned `test/backlog4862-readable-part.test.ts` X: every form × arm at least as strict as the statement alone).
|
|
304
|
+
- **Stricter than the shell — open to veto.** Every statement read in full before the stop is judged as one that MAY run: a quote left open on the SAME line stops bash before any of that line runs, so `cat .env; echo "x` is refused although bash would refuse the whole line (KL-4862-a). A person's deny / ask rule now also reaches the command of a segment that owns an unterminated here-document and a command written in an operand (it answered "the call could not be read" there before).
|
|
305
|
+
- **Not changed.** Class words, class order, which classes carry `requiresRealApproval`, the ordinary question's row; the exports and the closed sets (one optional member is added to the exported type `ShellReadPlan`: `unreadTail`). A text with no readable part (`echo 'x`, `cat <<EOF⏎x`), a removal whose own segment never closes its quote (`rm -rf ~ 'x`: bash runs none of it), and the hidden forms read cell for cell as before this entry.
|
|
306
|
+
- **Who needs it / who it harms / the compensation.** Needed by every run under `bypassPermissions`, `auto` or an ordinary-question answerer: a typo'd quote or an unclosed here-document after `rm -rf ~` or `cat .env` would have let the statement run. Harmed: a model that writes a deny-listed read before a same-line syntax error gets a refusal instead of a shell error; the corrected text is refused as well. Compensation: none needed.
|
|
307
|
+
- **Pins.** `test/backlog4862-readable-part.test.ts` (the patch line's, the same file); `test/backlog4784-main-tables.test.ts` table B: the three seam forms the lexer stops in after a complete statement (S6, S9, S11) read as that statement beside the ordinary question of the rest — two controls each.
|
|
308
|
+
- **Consumers.** @server @cli: a cell that pinned the release of `rm -rf ~; cat <<EOF` / `cat .env⏎echo 'x` / `echo "${X:-$(cat .env)}"` reads the 7.69.0 answer (a person with the bit / refused); the hidden forms (`… | xargs rm -rf`, `printf … | bash`, `rm "$(printf …)"`, `bash -c "$(echo rm ~)"`) do not move. @test: the forms, expected readings and error codes are in this release's receipt.
|
|
309
|
+
- **Known limits.** KL-4862-a, KL-4862-b (a host shell that is zsh or ksh), KL-4862-c (the rule lane's length bound), KL-4862-d (where the lexer itself stops early inside a loop or an operand), KL-4862-e (a statement written after the point where the lexer stops was not read — taken back by #4907 in this release; what remains is KL-4907-a).
|
|
310
|
+
- **The statement the lexer stops in (release review).** Before: where the lexer stopped inside a statement at one of its own limits — `rm -rf ~ <<$EOF⏎x⏎$EOF`, `rm -rf ~ $(case x in x) y;; esac)`, `cat .env <<$EOF…`, `cat <a deny-listed file> $(case …)` — the whole statement was the ordinary question: `auto` and `bypassPermissions` ran it (v7.69.0: a question with the real-approval bit). Now: where a shell still runs that statement (a `case` in a substitution, a here-document in one, a delimiter spelled with `$`), the words read in full before the stop are its first words and are judged as that command — a protected-location removal is a person's (`dangerous_delete`, the bit) in every mode, a deny-listed read is refused — with the ordinary question of the unread rest beside it. Against 7.69.0, where the target is written before the stop: the removal cells keep the bit, the read cells move from a question to a refusal. An operand written after the stop in the same statement is not read — `rm -rf <<$EOF ~`, `cat <<$EOF .env`, `rm -rf $(case …) ~` stay the ordinary question, as before this entry (v7.69.0: a question with the bit; KL-7691-s1 ④). A statement before the stop that reads or writes outside the roots gets the question it gets alone (under `auto` the person, where the classifier answered before). The head is no statement the splice of a written `source` reads: a file written before the stopped statement and sourced after it is spliced exactly as before this entry (`printf 'rm -rf ~\n' > lib.sh; cat <<$EOF; . ./lib.sh⏎x⏎$EOF` is the person's removal question; the read form is refused); a file the head itself writes is not spliced (KL-7691-s1 ③). Unchanged: a stop at a syntax error the lexer reads on the line — a quote, a substitution or a parameter never closed (`rm -rf ~ 'x`, `rm -rf ~ $(echo x`, `rm -rf ~ ${x`, `rm -rf ~ $(cat <<EOF` with no end line: no shell runs that statement), the ordinary question as before — and a stop before the program word (`x=$(case …) rm -rf ~`, KL-7691-s1). Stricter than before: where the lexer stops at a `case` inside an unclosed `$(…)` or `<(…)`, ahead of the line's syntax error (`rm -rf ~ $(case x in x) y;;`, `rm -rf ~ $(echo $(case x in`, `rm -rf ~ "$(case x in`, `rm -rf ~ <(case x in`, `rm -rf ~ $(( $(case x in`, `cat .env $(case x in`), the words before the stop are read as for the closed form, though bash runs nothing on that line: the removal is the person's question with the bit, the read is refused, in every mode on both read faces (`dontAsk` refuses both; before this entry the ordinary question, which `auto` and `bypassPermissions` ran; v7.69.0 a question with the bit, so the read is now refused where it was asked). Not where that `case` sits in backquotes or the substitution sits in an unclosed `${…}` (``rm -rf ~ `case x in``, ``rm -rf ~ $(echo `case x in``, `rm -rf ~ ${X:-$(case x in`, ``cat .env `case x in``): the whole line stays the ordinary question, as before this entry — `default` asks without the bit, `auto` and `bypassPermissions` run it (v7.69.0 asked with the bit). Measured, six modes × both faces, on v7.69.0, this line and this entry (KL-7691-s1 ②). Pins: `test/review7691-s1-words-before-the-stop.test.ts`; `test/backlog4862-readable-part.test.ts` L2.
|
|
311
|
+
|
|
312
|
+
### A path a shell command spells through its program's own working directory (`/proc/self/cwd/…`) is judged where that program stands, not where the engine stands; one below the program's own descriptor or thread links (`/proc/self/fd/<n>/…`, `/dev/fd/<n>/…`, `/proc/self/task/<tid>/cwd/…`) is a read the station cannot place (#4829, #4791; behavior change: narrowing — `cat /proc/self/cwd/<path>` was resolved in the engine's process, so a read-deny row or a process-private file below the command's directory was read with no question in every mode on the open face; it is now judged at `<the command's directory>/<path>` and refused in every mode where a row or the set covers it; narrowing — a word below the reading program's own descriptor or thread links, and a recursive read rooted at such a link, was looked up in the engine's process (its own descriptors, its own threads) and read with no question in every mode on the open face, dontAsk and bypassPermissions included (the same on 7.69.0); it is now asked in the default modes, refused under dontAsk and released under bypassPermissions — on an open face with no read-deny row it is no question (KL-4791-e); widening — a read spelled through `/proc/self/cwd` that lands inside the roots is judged inside them: on a narrowed face it was judged at the engine's own directory, outside the roots, and asked (`cat /proc/self/cwd/a.txt`: asked before, read now — measured on a real Runner); a write target spelled so is placed the same way — the station's own verdict for `echo x > /proc/self/cwd/out.txt` inside the write roots is now vouched, where it was `outside_roots` (an ordinary question), measured on the station with the engine's directory elsewhere; on a real Runner that write is still asked in the modes measured, as the same write spelled `out.txt` is; a read-deny or write-deny row itself written as a `/proc/self/…` spelling is met only by a command that writes that same word — a relative word after `cd /proc/self/root/…` and a recursive read rooted at `/proc/self/cwd` met such a row by their spelling and are now judged only where they land, on a table a host compiles and judges itself (`compileReadDeny` with `judgeShellRead`); on the Runner's deployment seat a row is also placed where its head resolves, and a `/proc/self/root/…` row still meets the first (measured) (KL-4829-a); open to veto @server @cli @test; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @test)
|
|
313
|
+
|
|
314
|
+
- **Rule.** A spelling through the READING program's own links is the word that program reads (`ownProcessSpelling`, `src/tools/fs/safety.ts`): behind any number of its root links (`/proc/self/root`, `/proc/thread-self/root` — the root it shares with the shell), its working directory (`/proc/self/cwd`, `/proc/thread-self/cwd`) is the directory the word is read from. The shell read plan gives such a word the directories the text settles, as it gives a relative word (after a `cd` too), and the one placement both establishments share (`placeOperand`, `src/tools/fs/shell-read-establish.ts`) places it there; a root link is spelled from `/`; the word as written stays a view the read-deny rows meet. A word read from a directory the command moved to through its own working directory (`cd /proc/self/cwd/…`) is not placed — that directory is wherever it stood before — and neither is a pattern's match through it (the lookup answers it unverifiable). A numeric `/proc/<pid>/…` names one process for every reader — its root may be a chroot's — and is resolved as written. The file read tools read in the engine's own process, where `/proc/self` is the engine: their answer is unchanged.
|
|
315
|
+
- **Before (measured on the gate, real Runner, made-up keys).** `cat /proc/self/cwd/<link to a pid's environ>` and `cat /proc/self/cwd/data/sealed-key/<file>` under a host row naming `<root>/data/sealed-key` read with no question in all five modes on the open face; the lookup resolved `/proc/self/cwd` to the engine's working directory, where neither path exists. The literal row path was refused.
|
|
316
|
+
- **Now.** Both are refused in every mode (the row's sentence; the set's sentence); `/proc/self/root/<absolute path>`, `cd / && cat /proc/self/cwd/proc/<pid>/environ`, a `/proc/self/cwd/../..` that reaches `/` from the command's directory while the engine's directory is deeper, `cd /proc/self/root && cat <path>`, and a recursive read rooted through `/proc/self/cwd` are judged where they land the same way, on the isolated sandbox's lexical establishment too. A row naming `/proc` still meets `cat /proc/self/cwd/<x>`.
|
|
317
|
+
- **The program's other own links (#4791, second fix round).** Below a descriptor link (`/proc/self/fd/<n>`, `/proc/thread-self/fd/<n>`, `/dev/fd/<n>`) or a thread's links (`/proc/self/task/<tid>/cwd`, `…/root`, `…/fd/<n>`) is whatever the reading program holds there — a directory the command opened on the descriptor (`3< dir`), the directory of a thread the shell names — which neither the text nor a lookup made in the engine (whose descriptors and threads are its own) can settle. One predicate says it (`belowOwnProcessLink`, `src/tools/fs/safety.ts`): a word with a name below such a link, behind any root links, the `<n>` / `<tid>` place written as any word or pattern; for a recursive read's root, the link itself. Its readers: the shared placement (`placeOperand`: not placed), the lookup (unverifiable), a pattern's directory (not expanded below such a link), a walk's root a pattern expands to — the existing answer for a read the station cannot place. A word that names a process-private file by its text (`cat /proc/self/fd/3/environ 3< /proc/<pid>`, and `cat /dev/fd/3/environ 3< /proc/<pid>` — `/dev/fd/` now counts as the reader's `/proc/self/fd/` in the set's spelling, so this one does not depend on a lookup in the engine) is refused; the link itself with no name below it (`cat /dev/fd/3 3< f`, `cat /proc/self/fd/0 < f`) is the descriptor the text binds, judged where the binding lands, as before. A program the station reads as walking its operands — `grep -r`, `rg`, and `diff` (a directory operand's members are read without `-r` too) — takes such a link the text binds as a walk root at the link: `diff /dev/fd/3 expected.txt 3< actual.txt`, `rg x /dev/fd/0 < build.log` and `diff /dev/fd/0 expected.txt <<EOF` are now asked on the open face, where they were vouched (the bound descriptor may hold a directory); an unbound standard device (`cmd | diff /dev/fd/0 expected.txt`, `diff - expected.txt`) passes as before.
|
|
318
|
+
- **Before (measured on the gate, real Runner, made-up keys; the same on 7.69.0).** Under a host row naming a directory, `cat /proc/self/fd/3/<path to the row's file> 3< <dir>` (`3< .`, `3< ..`, `3< /`) and `cat < /proc/self/task/*/cwd/<path to the row's file>` read the file with no question in all six modes on the open face, and `grep -rah --include=environ X /proc/self/fd/3/ 3< /proc/<pid>` read the process's environment the same way: the engine looked up its own descriptor 3 (or its own threads' directories), found no such path and vouched. Asked on the narrowed face (outside the roots).
|
|
319
|
+
- **Now.** Each of those is asked in the default modes, refused under dontAsk and released under bypassPermissions, on both faces (pinned: the `fd-*`, `devfd-*`, `task-*` cells of the host-rooted lane and `fd-walk`, `devfd-walk`, `task-redir-link` on the process lanes); `cat /proc/self/fd/3 3< <row's file>` is refused (the redirection's source), and `cat /proc/self/fd/3 3< <file>`, `cat /dev/fd/3 3< <file>`, `cat /proc/self/fd/0 < <file>` read as before.
|
|
320
|
+
- **Narrowing (KL-4791-g).** On the open read face, `diff /dev/fd/3 b.txt 3< a.txt` and `rg x /dev/fd/3 3< a.txt` over in-root files are asked (ordinary) in default and refused under dontAsk; 7.69.0 let both through.
|
|
321
|
+
- **Known limit (KL-4829-a).** A word read after `cd /proc/self/cwd/…` or `env -C /proc/self/cwd/…`, and a pattern whose match passes through it (`/proc/[s]elf/cwd/…`), are reads the station cannot place: asked in the default modes, released under bypassPermissions, refused under dontAsk — on a deployment with read-deny rows or a narrowed face; with no row on the open face such a read is no question at all (the station guards nothing it could be confirmed against). A workspace link to `/proc/self/cwd` (or `/proc/self`, `/proc`) read through later, a numeric root link in front of the program's own working directory (`/proc/<pid>/root/proc/self/cwd/…`), a `..` inside the /proc prefix (`/proc/self/root/../proc/self/cwd/…`, `/proc/self/../self/cwd/…`, `/proc/thread-self/../../cwd/…`) and two layers of the working directory (`/proc/self/cwd/<up to />proc/self/cwd/…`) are resolved in the engine's process (measured on the gate, each form: a rooted row's file read through it with no question in all six modes on the open face, asked on the narrowed one; the same on 7.69.0; pinned as they read today, the `kl-*` cells). A pattern written in a thread link's own name (`/proc/self/task/<tid>/c[w]d/…`) whose thread only the shell has is judged as its literal spelling; so are a `..` in front of the descriptor or thread link (`/proc/../proc/self/fd/3/…`), the standard-stream names below which a bound directory lies (`cat /dev/stdin/<path> < <dir>`), a numeric pid's root in front of the link (`/proc/<pid>/root/dev/fd/3/…`), and a walk of a standard device whose descriptor the text does not bind (`grep -r x /dev/fd/3`: the device passes unasked, whatever the descriptor holds when the command runs) — read in the code by the review round, not measured. A deny row written as a `/proc/self/…` spelling (`/proc/self/cwd/key`) is met only by a command that writes that same word: a word read after `cd /proc/self/root/…`, a pattern's match, a recursive read's subtree and a followed `sed` backup are judged where they land, against rows written as real paths — write such a row as the real path. On the Runner's deployment seat a row's head is also placed where it resolves in the engine's process: a `/proc/self/root/…` row on the real path, a `/proc/self/cwd/…` row on the engine's own working directory — so under a `/proc/self/cwd/key` row, `cat /proc/self/cwd/*` reads with no question when the engine's directory is not the command's (measured in the default and bypass modes; the same on 7.69.0).
|
|
322
|
+
- **Rules.** The working directory: one predicate, three readers — the plan (which bases the word has), the shared placement (exact), the lookup (unverifiable where nothing placed it). The other own links: one predicate beside it in the same module, read by the shared placement, the lookup, a pattern's directory and an expanded walk root (each: not placed). No text rule per spelling.
|
|
323
|
+
- **Pins.** `test/backlog4791-two-stations-one-table.test.ts` — `cwd:*` / `root:cat` / `cwd-after-cd:cat` / `cwd:grep-r` on every row class × five modes, `cwd-link`, `cwd-cd-slash`, `cwd-glob` (asked, never vouched), `cwd-plain` (read) on three deployments, `deep-engine-cwd` (the engine's directory eight levels deeper), and unit cells for `ownProcessSpelling` and the lexical station (a move through the root link and through the working directory, a walk after one, a row naming `/proc`), and a `sed -i.bak --follow-symlinks` operand spelled through `/proc/self/cwd` / `/proc/thread-self/cwd` whose link target's backup a write-deny row covers (the filesystem establishment over a real directory; nothing run); the second fix round: the own-link cells above × five modes, unit cells for `belowOwnProcessLink` (below a link; the link itself, for a walk and not otherwise; numeric pids, the descriptor directory and look-alikes outside it) and the lexical station, the `kl-*` cells, and a write target spelled through `/proc/self/cwd` placed inside the write roots on the station.
|
|
324
|
+
|
|
325
|
+
### A shell read of a process's private /proc file is refused in every mode wherever the shell read station reads the path off the command, as the file read tools refuse the file — and so is a tree walk rooted where those files are; `/proc/stat` and `/proc/cmdline` read on both; a directory listing no longer fails whole when an entry disappears while it is read (#4791; behavior change: narrowing — a shell read of `/proc/<pid>|self|thread-self/…/{environ,cmdline,auxv,maps,mem,stat}` whose path the station reads off the text (as written, quoted, through a link, a `..`, a pattern it expands, a variable the text settles) was run unasked on the open read face and asked on the narrowed one, now refused on every face in every mode, bypass included; a recursive read that hands back contents (`grep -r`, `rg`, `tar c`) rooted at `/`, `/proc`, a process directory, its `task` or a `task/<tid>` is refused the same way; a command that only names such a file (`ls -l`, `stat`, `realpath`, `readlink -f`, `file`, `NAME=<path>`) is refused as it is for a read-deny row; a program that writes such a file through its operand (`tee`, `dd of=`, `cp <file> <such a file>`) is refused the same way, where 7.69.0 asked — a `>` redirection to it is not, it stays the write face's question; widening — `/proc/stat` and `/proc/cmdline` were refused by the file read tools on their last segment alone and now read on both stations; open to veto @server @cli @test; listing: `NodeExecutionEnv.listDir` and a held directory's `list()` leave out an entry removed between the directory read and its stat instead of failing `not_found`; hard-breaking: none; closed sets: none; exports: none added or removed — the root type `ReadFinding` gains an optional member `processPrivate?: { matchedView }` (additive); wire: none — the refusal is the shell station's existing `deny_hit`, `deniedBy: "read_boundary"`, with no read card) (@server @cli @test)
|
|
326
|
+
|
|
327
|
+
- **Rule.** One set and one match answer "is this a process's private state": `isProcSensitiveFile` (`src/tools/fs/safety.ts`) — below a process directory (`/proc/<digits>/`, `/proc/self/`, `/proc/thread-self/`, any depth under it: `task/<tid>/…` included; `/dev/fd/` — the reading process's own `/proc/self/fd/` — counts as below its directory too), a file named `environ`, `cmdline`, `auxv`, `maps`, `mem` or `stat`. The file read tools refuse such a key (their device gate, as before); the shell read station refuses a read whose target is one (`judgeRead`, `src/tools/fs/shell-read-judge.ts`), on every read face, with or without read-deny rows. A tree walk that hands back contents meets the set the way it meets a rooted read-deny row — by where the set's files are, never by enumerating the tree (`holdsProcSensitiveFile`, same module): a walk rooted at `/`, `/proc`, a process directory, its `task` or a `task/<tid>` reaches them; `/proc/net`, `/proc/sys`, a process's `fd` or `cwd` do not. A walk that hands back names (`find`, `du`, `ls -R`) reads no file's contents and is judged as for a row's directory: not by its root (`find … -exec cat {} +` is a read the station cannot place, KL-945e). One file, one verdict on both stations. Every permission mode, bypass included: the set is a written table that guards the credentials in a process's environment, not a concern the engine infers, so no mode releases it.
|
|
328
|
+
- **Before (measured, real Runner, real tools, made-up keys, open read face, five modes).** The file read tools refused `/proc/<pid>/environ`, `/proc/self/environ`, `/proc/<pid>/task/<pid>/environ`, `/proc/<pid>/cmdline`; the shell ran `cat`, `cat "…"`, `head -c`, `jq .` and `grep -h .` on the same files with no question in every mode, and `less` asked in default / acceptEdits / auto and was released in bypass — 68 cells where one file had two verdicts. On the narrowed (`roots`) face the same commands were an out-of-root question a person could approve. `grep -rah --include=environ <x> /proc/<pid>/` (and `…/task/`) read the environment in all five modes on the open face, where the Grep tool on the same directory withholds the file. Every read-deny row class (built-in, deployment seat, task seat; anchored at the home, at a root, or anywhere) already had one verdict on both stations in every mode, for every literal spelling measured (`cat`, quoted, `head`, `jq`, `grep`, `less`, through a symlink, relative, `..`).
|
|
329
|
+
- **Now.** Those commands are refused unasked, in every mode, on both faces: `reading "<path>" is refused: it is a process's private state under /proc (a process directory's environ, cmdline, auxv, maps, mem or stat — its environment, command line, auxiliary vector, memory map, memory and status figures), and the file read tools refuse the same file. This holds in every permission mode, and no approval or setting lifts it.` A walk reads `searching below "<root>" is refused: that tree holds processes' private state under /proc (…), and the file read tools refuse those files. …`. No `read_path_denied` card (no row matched; the file read tools' refusal of the same file carries none either); the gate record's echo names the path.
|
|
330
|
+
- **What the station does not read off a command (not changed; the same as for a read-deny row).** A path that exists only once the command runs is not refused, and each such form passes exactly as a built-in read-deny row passes (default, acceptEdits and auto ask; bypassPermissions releases; dontAsk refuses — measured for both, ten cells each): a path fed through `xargs` (`echo <path> | xargs cat`, `xargs cat <<< <path>`; KL-945e), opened by inline interpreter code (`python3 -c`, `node -e`, `awk`'s `getline <`; KL-1102-n), spelled with an ANSI-C escape (`cat $'…\x65…'`; KL-994b), handed to `bash -c` / `sh -c` as a positional parameter (KL-4077-a), printed into a shell's standard input (`printf 'cat %s' <path> | bash`; KL-4791-d), a relative link made and read in the same command (KL-1138a), a path a command substitution or `$PPID` builds (KL-4791-a). On a deployment that opens the read face and turns off every built-in read-deny row (`readDenyBuiltinTiers: []`) without adding one, a read the station cannot place is no question at all — these forms, `find … -exec cat {} +` and a word read after `cd /proc/self/cwd/…` included (KL-4791-e); the default deployment keeps the built-in rows and asks.
|
|
331
|
+
- **Narrowing (open to veto @server @cli @test).** Affected: a flow that has the model read a process's environment or argv through the shell (a debugging aid) — refused with the sentence above; a program that writes one of those files through its operand — `echo x | tee /proc/self/cmdline`, `printf x | dd of=/proc/<pid>/mem`, `cp a.txt /proc/<pid>/environ` — refused in every mode on both faces with the same reading sentence, where 7.69.0 asked (default modes ask, dontAsk refuses, bypassPermissions releases; measured on the gate, the `cp` form judged with nothing run), while a `>` redirection writing the same file (`echo x > /proc/self/environ`) is not in this — still asked, refused under dontAsk, released under bypassPermissions; a recursive read that hands back contents rooted at `/`, `/proc` or a process directory (`grep -r x /proc/<pid>/`, `rg x /proc`, `grep -r x /`); a command that only names such a file — `ls -l /proc/self/stat`, `stat`, `realpath`, `readlink -f`, `file`, `NAME=/proc/self/environ <cmd>` — which ran before and is refused as the same commands are for a read-deny row's file; `ls /proc/net/stat` (`/proc/net` is a link to `self/net`, so the name lands below a process directory; the file read tools already refused it). Nothing lifts any of these.
|
|
332
|
+
- **Widening (open to veto @server @cli @test).** `/proc/stat` (the CPU counters) and `/proc/cmdline` (the kernel's boot line) were refused by the file read tools on their last segment alone; neither is a process's state, and wiring the shell to the same set would otherwise have refused `cat /proc/stat`, a common way to read CPU use. They are no longer refused on either station. A process's own `stat` (`/proc/<pid>/stat`, `/proc/self/stat`) stays refused on both.
|
|
333
|
+
- **Directory listings (behavior change, `NodeExecutionEnv`).** `listDir` and a held directory's listing (`openBound(dir)` then `list()`) stat each entry after reading the directory; an entry removed in between (a process leaving `/proc`, a temporary file deleted) failed the whole listing as `not_found` — "the directory is not there". That entry is now left out and the rest is listed; any other failure of the stat still fails the listing (one reading for both listings, `listedEntryInfo`). Readers that answer differently when it happens: the shell read station's pattern expansion (a pattern under `/proc` matched nothing while a process exited, so `cat /proc/[s]el[f]/environ` was judged as its literal spelling and read — 3 of about 190 cells on a Linux gate run), the Read tool's directory listing (answered "not found"), Grep and Glob walks (counted the directory unreadable), the not-found path suggestion (gave none), `listOrphanSessionTrees` (answered no trees), the nested memory lane's directory probe (read the directory as empty), the PDF page images (a failed listing; the pages are now numbered by their names, and a page missing from the listing fails the extraction instead of shifting the next page into its place). Other `ExecutionEnv` implementations are untouched.
|
|
334
|
+
- **Not changed.** The read-deny table and every row. A variable the text itself settles (`P=<pid>; cat /proc/$P/environ`) is judged where it lands and refused, as before this entry. The read-only classifier's device arm, the hang devices (`/dev/zero`, the `/proc/…/fd/{0,1,2}` streams), the file read tools' own sentence.
|
|
335
|
+
- **Rules.** Readers of the process-private set 1 → 2 (one set; the file predicate and the walk's place predicate side by side in one module); its reach: a suffix anywhere under `/proc/` → a suffix below a process directory. Readings of an entry that vanished while a directory was listed: 2 (one per listing, both "the listing failed") → 1 (left out). No text rule added.
|
|
336
|
+
- **Pins.** `test/backlog4791-two-stations-one-table.test.ts` — every row class × {Read, Grep on the file, Grep / Glob on the parent, `cat`, `cat "…"`, `head`, `jq`, `grep`, `less`, symlink, relative, `..`} × five modes, plus the process-private cells and the tree walks on three deployments (open face, narrowed face, no read-deny row), the two system files, a process's `status` and the system directories as controls, and unit cells for the walk's places and `judgeRead`. `test/backlog4791-listing-vanished-entry.test.ts` — both listings with one entry made to vanish, a stat that fails otherwise, a PDF page missing from the listing, a pattern whose directory lost an entry (a row's file refused in every mode), the establishment of `/proc/*/environ` and `/proc/[0-9]*/cmdline` over a fake `/proc` with one process directory gone (the others reached and refused; nothing run) and, on Linux, `cat /proc/[s]el[f]/environ` while a `/proc` entry vanishes. Re-aimed (old → new): `backlog1685` ② `cat /proc/self/environ` probe / none → refused / refused, ③ outside_roots/mandated / none/vouch → deny_hit/refuse on both faces; `backlog714` (e) one mandated ask → refused unasked, the unit faces' probe seats mandated → refused, `detailed` outOfRootRead → readDenied; `backlog696` retired-reading row mandated → refused; the dual-run attribution `process_private_refused`.
|
|
337
|
+
- **Consumers.** @server: the deployment-seat route for the data root's key directories (`readDenyPatterns` naming the directory) is refused on both stations in every mode and every spelling measured — nothing to change for this entry. @cli: a refused shell read of such a file renders as a refusal (`deniedBy: "read_boundary"`, no card). @test: the 68 cells, the tree walks, the narrowed face, the no-row deployment, `/proc/stat`; a probe that pins `ls -l` / `stat` / `realpath` on such a file, or a walk of `/proc`, ran before and now reads the refusal — re-pin it to the new reading.
|
|
338
|
+
|
|
339
|
+
### The git the engine starts to read a repository runs no program that repository's configuration names — no hook, no fsmonitor program, no optional lock, as the reference's read-only git (#5116; behavior change against 7.69.0; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @test)
|
|
340
|
+
|
|
341
|
+
- **Now.** Every git the engine starts that only reads the repository opens with one prefix, `git -c core.hooksPath=/dev/null -c core.fsmonitor= --no-optional-locks` (`src/core/git-read-only.ts`): no hook runs, no file-system monitor program runs, and a status does not write the index back. Those starts are the run's opening environment probe (`rev-parse`, `symbolic-ref`, `status --porcelain`), the git status frame's snapshot (`symbolic-ref`, `show-ref`, `config user.name`, `status --short`, `log`), a managed tree's reading and the worktree doors' reads (`status`, `rev-list`, `for-each-ref`, `rev-parse`, `symbolic-ref`, `worktree list`), the session checkout's capability and place reads (`--version`, `rev-parse`), the delegation tool's repository check, and the LSP's ignore check (`check-ignore`). The reference (2.1.321) opens its git with the same two `-c` guards, and its status with `--no-optional-locks`.
|
|
342
|
+
- **Against 7.69.0.** On 7.69.0 the run's opening `git status --porcelain` and a managed tree's reading ran the repository's configured fsmonitor program and its `post-index-change` hook (the status wrote the index back), and the git status frame's snapshot and the LSP's ignore check ran the fsmonitor program — so a repository could make the engine run a program of its choosing just by being read (measured: a repository whose config names both, the four start points, markers written on 7.69.0 and none on this line; pin G). A deployment that counted on its fsmonitor (a faster status on a large tree) or on a hook taking effect inside the engine's own reads loses that: the engine's status scans the tree itself. The person's and the model's own `git` commands are unchanged.
|
|
343
|
+
- **Not changed.** Starts that change the repository (`worktree add`, `worktree remove`, `worktree prune`, `update-ref`) and git's clean / smudge filters still run what the repository's configuration names (KL-5116-a). On an ordinary repository every start point answers as before (pin N, measured on 7.69.0 and on this line).
|
|
344
|
+
- **Pins.** `test/backlog5116-read-only-git-guards.test.ts` — G (each of the four start points on a repository whose config names a marker-writing fsmonitor program and hooks directory: no marker, the index file as it was, the ordinary answer), N (the ordinary answers), P (the prefix). Stubs that read the engine's commands by their words read the prefix back as `git` (`plainGit`, `test/helpers.ts`).
|
|
345
|
+
- **Three questions.** Who needs it: a person who opens a repository someone else wrote. Who is hurt: a deployment that counted on its fsmonitor or a hook running inside the engine's status. Compensation: the person's and the model's own git still run them.
|
|
346
|
+
|
|
347
|
+
### A `/<name>` the person writes mid-sentence is a request for the Skill tool — the system prompt, the Skill card and a per-message reminder now say so, as the reference does; `prompt.assembled.tools` names the search tool the request sends (#4864, #4874; model-facing text: three additions; wire: `steering_injected.source` +1 word `skill_mention`, `prompt.assembled` +1 selector fact `skillToolMounted` and +1 section; narrowing: none; widening: none; hard-breaking: type-level for an exhaustive reader of `AttachmentSource` (a `never` branch or a total `Record` over it is tsc-red until it places the word); closed sets: `AttachmentSource` / `ATTACHMENT_SOURCES` +1 `skill_mention`; exports: none) (@server @cli @client-core @test)
|
|
348
|
+
|
|
349
|
+
- **Rule.** One switch, the Skill tool mounted on the leg; one list, the skills the leg announces (`Prepared.skillsListing.entries`, the list the skills listing frame renders); one producer of the reminder (`src/core/runner/skill-mention.ts`). No model is special-cased and no `TaskSpec` key is added.
|
|
350
|
+
- **Before.** A host routes only a slash command at the start of a message, so "can you use /loop to drive yourself" reached the model as plain text, and nothing told it `/loop` names a skill: the Skill card had dropped the reference's `/<name>` clause, and the reference's system-prompt sentence and per-message reminder were absent. A model in a long session read `/loop` as a terminal command and started another terminal process.
|
|
351
|
+
- **Now.** (1) The system prompt carries `core/simple.skill-invocation` — "When the user types `/<skill-name>`, invoke it via Skill. Only use skills listed in the skills listing — don't guess." — on the long and the lean shape alike, admitted where the Skill tool is mounted on a leg that is not a delegated child (new prompt fact `skillToolMounted`); the `minimal` form leaves it out with the rest of the core-behavior band. (2) The Skill card reads "Users may also ask for one by name (`/<name>`, or "slash command"); that's a request to invoke it." and "exact name from the listing, no leading slash"; it stays one constant (the tool block does not vary with the skill set). (3) A fresh leg whose opening words are the person's (the author table's operator column; not a wake, not a coordinator) and name a listed skill as `/<name>` carries, on its first request, one sentence per such skill — "The user's message contains /x, which is the name of a skill. If they are asking you to run it, call the Skill tool with skill: "x", passing any arguments they gave as args. If they only mention it, do not run it." — through the first-request frame lane (new attachment source and event kind `skill_mention`, `always`, at most 2 048 bytes, echoed as `steering_injected`).
|
|
352
|
+
- **What counts as a mention.** The reference's token — `/` + an ASCII letter + `[A-Za-z0-9.:_-]*`, trailing dots dropped — whose neighbours on both sides are the text's edge, whitespace, or (this engine's addition) a CJK character or full-width / CJK punctuation, so `用/loop循环` and `请执行/loop。` count while a path (`/usr/loop`), a code span and `/loop,` do not; matched exactly against the listing; each skill once. The extra neighbour set is not tied to the surrounding script, so the same characters count in English text: `say “/loop” please`, `‘/loop’`, `/loop—then`, `/loop…` and a no-break space name the skill — the consequence is one extra reminder, which ends on "If they only mention it, do not run it." (the reference's whitespace-only rule gives none there — read from its source, not run). English sentence punctuation straight after the name — `/loop.`, `/loop,`, `/loop;`, `/loop!` — gets no reminder (as the reference's rule reads); there the system-prompt sentence and the Skill card are all the model has. Not ported from the reference: skipping a leading slash token (at the engine a raw leading `/x` was routed by no host), the pre-screen against rules that deny the skill (the call is gated as before).
|
|
353
|
+
- **Cache.** The two prompt texts are a one-time change at upgrade (a leg with the Skill tool gains a sentence; every session records one prompt-epoch change); the reminder lives only in the newest user message.
|
|
354
|
+
- **#4874.** `prompt.assembled.tools` was projected before the search tool existed, so a deferring leg's manifest never named `ToolSearch`; the disclosure phase now appends its row (deferred tools keep their real tool's row; the census says which ship as placeholders).
|
|
355
|
+
- **Known limits.** KL-4864-a (a host scheduler replaying `/loop …` as a new task gets the sentence, worded as the user's message), KL-4864-b (a skill body a host expanded into the objective is read like the person's words), and KL-4864-c (a listed name the token cannot hold — directory-scoped like `apps/web:deploy`, digit-first, or with a space — is never mentioned: fewer reminders, never more).
|
|
356
|
+
- **Pins.** `test/backlog4864-skill-bridge.test.ts` — the mention reading (mid-sentence, line start, fence, code span, paths, unlisted names, prefixes, ASCII punctuation, CJK neighbours and the same characters in English text, names the token cannot hold), the frame's bound in both readings (a sentence over the ceiling is skipped, the rest ride), the author table's seven words one cell each, the prompt screen's rewrite (added / removed) and a hook's added context (never read), the sentence and the card per shape / form / valve, a real Runner (the owner's sentence, Chinese without spaces, scheduled, coordinator, a delegated child, the expanded-body limit), two legs on one session (system and tools byte-identical; the earlier message unchanged), and the manifest's search-tool row.
|
|
357
|
+
- **Consumers.** @server @client-core: `steering_injected.source` gains `skill_mention` (closed-set readers: add the word); `prompt.assembled` gains the fact `skillToolMounted` in `selectors.facts` and the section `core/simple.skill-invocation`; a deferring leg's `prompt.assembled.tools` now lists `ToolSearch`. @cli: nothing to change; a mid-sentence `/name` now reaches the Skill tool through the engine. @test: one local model, the same `/loop` written mid-sentence, at line start and in Chinese without spaces — does it call the Skill tool.
|
|
358
|
+
|
|
359
|
+
### When one session deletes or empties more memory files than one session may, the files are put back from their last saved copies and the person is told so in plain words — they no longer drop out of memory while the notice says nothing changed (#4875; behaviour change: yes; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none)
|
|
360
|
+
|
|
361
|
+
- **Rule.** A removal the harvest does not commit goes back from its committed copy, wherever the store still holds the entry in the scope the session was served it from. The deletion fuse (more than `max(DELETION_FUSE_FLOOR, ⌊MASS_DELETION_FUSE_RATIO × N⌋)` removals in one harvest) is now one such harvest, beside a session that commits nothing and the instruction hard gate; before, it alone left the removals on disk ("nothing deleted or restored"). The put-back lands only where the removal left nothing or blank bytes, judged and written through one descriptor: a path that holds content again, something other than a file at the path, or a directory on the path that became a link is left as found and named in `HarvestReport.warnings`.
|
|
362
|
+
- **Before (measured, 7.69.0 and the integration head; 6 entries, 4 removed, limit 3).** On the default File store the memory folder is the storage, so after a refused harvest the four entries were gone from `memory_index` (2 of 6 listed) and from every later session; the system-prompt index still listed 6 after a blanking route and 2 after `rm`. The store's own record and saved copies kept all six, but nothing read them back, and the next session no longer counted them, so they stayed hidden. The person was told the session's changes "did not take effect".
|
|
363
|
+
- **Now.** The same four routes (Write `""`, Edit to empty, Bash `rm`, Bash `: >`): the harvest is refused, all six files are back with their committed bytes, `HarvestReport.restored` lists the four, the next two sessions list six on `memory_index` and in the system-prompt index, and their harvests change nothing. The in-file `deleted: true` marker is the ordinary delete lane and is unchanged (four deletes commit, no notice).
|
|
364
|
+
- **What the person reads.** `memory.harvest_refused` for the fuse (code, audience and `detail: { kind, committed, … }` unchanged) now reads, for example: "Nothing was deleted: the 4 memory files deleted or emptied were put back from their last saved copies. More than 3 at once is taken as a mistake; to delete this many on purpose, delete at most 3 per session." When some could not go back: "…3 of the 4 memory files deleted or emptied were put back from their last saved copies; 1 could not be." When another session had already deleted some of them, it opens "This session deleted nothing:" and says how many. The same sentence is `HarvestReport.incident.detail` and leads the model's next-session line (`harvest refused (mass_deletion): Nothing was deleted: …`, followed by one `restored from the committed copy: "<path>"` line per file). The other incident kinds keep their sentence.
|
|
365
|
+
- **Stores already affected (not repaired by this version).** Entries removed in a session refused before this version are still missing from the folder; their saved copies are kept. To bring them back on the File store: for each entry row in `revs.json` under the store's control directory (`FileMemoryEngineBackend.controlPlaneRoot`) whose `<slug>.md` is missing or empty in the memory folder, copy `shadow/<id>.md` from that directory to it — or, as a host, write `readCommittedShadow(id)` to that path. The next session lists them again and its harvest changes nothing (measured). Known limit `KL-4875-a`.
|
|
366
|
+
- **Three questions.** Who needs it: a person whose model deleted or emptied many memory files at once — the memories no longer vanish while being reported as untouched. Who is harmed: a person who really wanted to clear many at once — the files come back (any that cannot are counted in the notice). Compensation: the notice names the way — delete at most the limit per session. The in-file `deleted: true` marker, described above, is the other way; the notice does not name it.
|
|
367
|
+
- **Consumers.** cli: the fuse's `memory.harvest_refused` message changed (above) and no longer carries "harvest", "materialized", "mass_deletion" or "judged an accident"; render it as given. server: the `onError` line for the fuse now reads `memory harvest refused (mass_deletion, report <id>): Nothing was deleted: …`; the remote data plane's fuse (`harvestFilesToPatches`) is unchanged — its sandbox is projected from the store each session. test: the five routes × three sessions are the black-box form.
|
|
368
|
+
- **Known (KL-4875-b).** Two sessions on one memory layer: a file the other session deleted, still committed when this session's harvest trips the fuse, is put back with this session's own; the other session's later harvest finds it and says nothing, and this notice counts it as its own. Nothing is lost; that deletion does not take effect.
|
|
369
|
+
- **Known (KL-4875-c).** A blanked file is put back only after it is read blank through the descriptor the write uses; another writer that rewrites the same file in place (a shell redirect, an editor writing into the open file) in the instant between that read and the truncation has its new bytes replaced by the old saved copy, and the report says the file was put back. The store's own writes replace a file by a rename (a new inode) and are never affected; the window is the gap between two system calls (measured: under 3 µs, a median of 0.1 µs).
|
|
370
|
+
- **File mode.** A removed file the put-back creates again is owner-only (0600, the mode the File backend writes it with); before this was fixed in this release, the put-back created it at 0644 (X7). A directory on its path that went with it is made again the way the store makes one: the memory root is owner-only (0700) and the directories below it follow the process default — the restoring process's, so under another umask than the original's it gets that umask's mode (X7 measures the store's own topic directory and the one the put-back makes, 0755 both under umask 022). The same fix reaches every other path that writes a memory file back into a freed seat without the vacated file's own mode — a polluted harvest's containment restore (the index, a contained or rejected file, a residue file), a hold's put-back of the committed content, a read-only layer's file restored where it was missing: they create it owner-only (0600) where 7.69.0 created it at 0644 under umask 022 (behavior change against 7.69.0, stricter; `test/backlog783-containment-no-replace.test.ts` "umask 022"). 0600 is the mode the File backend writes its projections with; a copy-out projection (a backend without a directory of its own) still has its files created by the materialize at 0644 less the umask, so there a file put back or restored is never wider than its siblings (0600 against their 0644 under umask 022 or 002, equal under 077; read from the code, not measured). Not covered: where the engine writes a memory file through its in-place writer — a restore that found the containment's own bytes still standing, the polluted index's rollback, the winning commit's bytes put back after a lost concurrent update — a path missing by then is created at 0644 less the umask.
|
|
371
|
+
- **Pins.** `test/backlog4875-fuse-restores.test.ts` (F1–F5 the five routes × three sessions; X1 at the limit the deletes commit; X2 no saved copy, or a blank one ⇒ said, not put back; X3 a refilled seat is left as found — refilled in the session, and by a writer between the scan and the put-back's read (a seat rewritten in place in the instant between that read and its truncation is the residue of KL-4875-c) — and a directory that took the seat is counted as not put back; X4 removed and re-created under the same name; X5 a topic directory swapped for a link inside the store is not written through; X6 entries another session deleted are not brought back; X7 a removed file goes back owner-only (0600) and a removed topic directory comes back as the store makes it, under umask 022; S1 the sentence); `test/backlog2424-forget-is-delete.test.ts` A7 / R2, `test/memory-engine.test.ts` and `test/memory-engine-pollution.test.ts` follow the new outcome.
|
|
372
|
+
|
|
373
|
+
### A parked decision the engine will never use is told once, then answered with nothing (#4832; behavior change, a narrowing, open to veto; +1 optional record member, +1 cause word, exports: four, `workflowParkDecisionOf`, `WORKFLOW_PARK_SETTLING_REASONS`, and the types `WorkflowParkDecisionState`, `WorkflowParkSettlingReason`; closed sets: `WorkflowRunUpdateCause` / `WORKFLOW_RUN_UPDATE_CAUSES` +1 `park_decision_settled`; hard-breaking: type-level for an exhaustive reader of `WorkflowRunUpdateCause` (a `never` branch or a total `Record` over it is tsc-red until it places the word)) (@server @cli @client-core @test)
|
|
374
|
+
|
|
375
|
+
- **Before.** A host decision for a card a finished workflow run parked on (`RunInternals.workflowParkedResume`), refused by the engine's continuation for a reason that settles it for good, was recorded nowhere, so a host that hands decisions over again from its own judge re-sent it on every run of the session and the person got the same `workflow.parked_decision_unused` notice every time (measured on v7.69.0: three hand-overs of one decision, three notices, for `denied`, a terminal `card_unresumable`, `launch_unreadable`).
|
|
376
|
+
- **Now.** The reasons that settle a decision — `WORKFLOW_PARK_SETTLING_REASONS` (new root export): `decision_spent`, `launch_unreadable`, `denied` only when a person said no to the continuation's question (below), and `card_unresumable` only with `terminal: true` — are told once as before and recorded on the finished record of the run holding the decision's park; handed over again, such a decision gets no notice, no line in the model's frame, and is never carried. A card-level reason records the decision for that card alone (`card_unresumable`, `decision_spent`); a run-level one every decision it was told for (`launch_unreadable`, `denied`). The same decision handed over twice (or more) in one hand-over is told once and recorded once. `decision_spent`'s first answer is unchanged; its repeats are now silent too (one rule for every settling reason).
|
|
377
|
+
- **Which `denied` settles — the one narrowing against 7.69.0 (open to veto).** Only a person who, asked whether to run the call that continues the run, answered no — at the run's approver or at the deployment policy's own approver, with words or without: the refusal's gate record says it in two words, the refusing layer is the ask's resolution (`code` `ask_resolution`) and its settlement is `human_refused` (the reading the batch halt on a person's bare no reads too). That decision is told once, recorded, and handed over again it is answered with nothing and not asked about again — removing what refused it does not revive it; a new decision continues the run. **Every other refusal is as on 7.69.0** — not recorded, judged and told at each hand-over, and once it is gone the same decision continues the run: a deny rule of any layer (the deployment's tool policy answering `deny`, a run's skill deny row, the person's session deny row: `policy`; an organization's deny rule: `org`; the person's stored deny row: `persisted_rule`); the deployment's tool policy that threw, answered outside its contract, or was still judging when the run was cancelled (`policy`); the cross-boundary posture at the allow exit (`policy`); `mode`; `ask_resolution` settled `policy_refused` (the approval channel's policy, a permission-request hook answering for it), `approval_window_expired`, `denial_limit_window_expired`, `park_sla_expired`, `task_aborted`, `approver_error` / `approver_contract` / `presentation_failed`, `blanket_allow_refused`; `hook`; `classifier`; the host floor; an inherited ancestor's policy on a delegated leg. Why: a machine's refusal judged again costs nobody's attention and lets the same decision continue once the cause is gone; a person's answer cannot be judged again without asking the person again. Who feels it: a person who said no to that question is not asked again; to go on, they decide the card again. Retired with it: the rule mark a first cut of this change wrote on the refusing decision (`ruleRefusal`, never released) — it read a deployment's own fail-closed deny, a wrapper that dropped a window's record, a skill row that lasts one run, or a policy seat's no as final, and so voided decisions a person had approved. **@server (approval bridge):** a bare `false` (or `{ allow: false }` with no `settledBy`) is a person's no and from this release settles the decision — keep it for that; answer `{ allow: false, settledBy: "timeout" }` when nobody answered in time and `{ allow: false, settledBy: "policy" }` for the bridge's own policy, return the word `"unavailable"` itself (not as a `settledBy` value, which is refused as outside the contract) when nobody can be reached, and throw on a failure — each of those leaves the decision deliverable (pins N-window, N-policy-seat-no, F-recoverable, N-approver-threw).
|
|
378
|
+
- **Handed over with others (open to veto).** A recorded decision still counts for whether the run can be continued from its card: handed over together with a decision for another card, a card no engine release resumes stops the continuation whole — nothing starts, as on 7.69.0 — and its verdict is told for the decisions not told before. Who feels it: a person who hands over, beside a decision for a dead card, one for a card that could continue — a first cut of this change silently ran that other step on the second hand-over and stopped again on the dead card; now each hand-over says the run cannot be continued from that card.
|
|
379
|
+
- **The record (additive; store contract; @server).** `WorkflowRun.parks[].settledDecisions?: Array<{ decisionId; reason; code? }>` (at most 16 per entry — past it a decision is not recorded, none recorded is dropped), written by the existing `WorkflowRunStore.update` — the record as the engine read it, compared on `rev`, read again with `get` after a lost write — stating a new cause word. The list rides with the park: a run that comes to hold it — a continuation that reaches the card and re-parks it, or one that ends suspended without reaching it and takes the park over — carries the holder's list onto its own entry (no extra read or write), so the holder's record alone answers what is told; before a continuation starts (and again under its claim), the walk up the holder's line that the one-waiting-line judgment already reads also leaves out a decision recorded on an earlier holder while the park was moving on — that decision alone: it is told nothing and not carried, and the decisions handed over with it are judged and continue the run as if it were not there (none left: nothing starts, nothing is said). Who feels it: a person whose fresh decision for another card is handed over beside such a decision — a first cut of this change answered the whole hand-over with nothing, every time, so the fresh decision never continued the run: `WORKFLOW_RUN_UPDATE_CAUSES` gains `park_decision_settled` (was: `park_pass` alone). **@server: a store that wraps another must treat every write that states a cause — any word, not `park_pass` alone — as "not this run's own state change"** (the contract: `src/core/workflow-run-store.ts` `WorkflowRunUpdateOptions.cause`, "absent on every write the owner makes of its own record … any word present reads 'it did not'"); what is persisted never depends on the word. No new store method. A store that drops the member loses only the record: every hand-over is judged and told again and the reading answers `open`, as before (pin `F-store-drops-member`). The run store contract kit gains one cell, **"a park entry's settledDecisions written on a FINISHED run (cause park_decision_settled) comes back from get as written, on that entry alone, and survives the next write of the record"**; the existing cells "update of a FINISHED run compares and sets on rev like any other: …", "an update stating a cause persists the same row as one stating none, …" (now looping over both words) and "get answers every stored member — a park entry's unknown member included — …" hold the rest.
|
|
380
|
+
- **One reading for "hand it over again?" (additive; @server).** `workflowParkDecisionOf(token, decisionId, records)` — `records` the park's chain, the records `workflowParkHolderOf` reads (not the holder's record alone: a decision another leg recorded on an earlier holder while the park was moving on is on that record only, and the holder's record by itself reads it `open`) — → `{ kind: "open" }` | `{ kind: "carried", runId }` (a continuation carried it and ended before its script reached the step, `not_reached`) | `{ kind: "driven", runId }` | `{ kind: "spent", runId, reason, code? }` (`reason` ∈ `WORKFLOW_PARK_SETTLING_REASONS`: a continuation's drive refused it, or the engine recorded it); type `WorkflowParkDecisionState`, `WorkflowParkSettlingReason`. Pure over the records. The engine's continuation reads the same function. A host's judge: card pending ∧ one holder ∧ the reading over the park's chain `open`.
|
|
381
|
+
- **Store reads (measured, in-memory run store; get / list per hand-over; v7.69.0 → this change).** A started continuation 7 / 5 → 7 / 5; a refusal that settles, told 3 / 2 → 3 / 2 (plus the one recording write — measured when a policy's deny settled; a person's no takes the same path, inferred); a refusal that does not settle, 3 / 2 → 3 / 2 and no write (the 7.69.0 path); a decision naming a run that no longer holds the card 2 / 2 → 2 / 2; a recorded decision handed over again 3 / 2 (told again) → 1 / 0 (silent); a recorded decision handed to the run its park moved to 12 / 7 (it was used to continue the run) → 1 / 0 (silent); the continuation that re-parks a card carrying recorded decisions 7 / 5 and 9 writes → 7 / 5 and 9 writes (riding with the park costs nothing); one continuation under a line of 257 runs 1289 / 519 → 1289 / 519. The reading `workflowParkDecisionOf` itself is pure (no store access).
|
|
382
|
+
- **Known limits.** A mark lives as long as the record it is on, and a decision whose mark is on no record left reads `open` and is used: when the latest holder's record is gone and an earlier holder's is not, that earlier run holds the park again without what was recorded after it; and a mark another leg wrote on an earlier holder while the park was moving on (the run that came to hold it had read that holder first) is on that earlier record alone — the store's own reap, oldest first, takes it with that record. A run store keeps run records at least as long as the cards they park on; that is needed and not enough. A mark another leg writes after this continuation's walk under its claim (as the run's admission re-takes the claim, or later) is not read: that leg can tell the person the decision was refused while this continuation uses it. A settling write that answers after the engine's wait, or that races another leg's write of the same entry, can leave a decision told twice; two legs that record overlapping sets tell each decision once. At most 16 marks per park entry, shared with what #4833 adds — and the list rides with the park, so that is 16 per card for its whole life: past it a settling verdict is told but not recorded, so it is told again at each hand-over and, once what refused it is gone, the same decision continues the run. An approver nobody declared a policy that answers a bare no for its own system's reason is read as a person, and that refusal settles the decision (KL-4832-a: answer such ends in the object form); one declared with `asPolicyApprover` gives the policy's refusal, which does not (#4936, below). A person's no at the deployment policy's own approver that the person's stored deny row or an organization's deny rule also meets is named by the rule's layer and not recorded: asked and told again at each hand-over, as on 7.69.0 (KL-4832-b, fails closed).
|
|
383
|
+
- **What still repeats after this release (#4833, 7.70.0).** A reason that leaves the decision deliverable is not recorded and is told at every hand-over: `host_changed` (kept deliverable — 7.69.0's contract: back to the settings the run ran under, the same decision continues, and a worker still on those settings can use it meanwhile), `ask_unanswerable`, `launch_unrecorded`, `waiting_elsewhere`, `continuing_elsewhere`, `launch_refused`, `record_unreadable`, `run_not_ended`, and a `card_unresumable` without `terminal` (another release reads the card). Telling the same reason in the same state only once is the next slice (#4833: the same member with a state key, retiring the in-process `instructOnce`).
|
|
384
|
+
- **Wording (the model's frame; open to veto).** The frame now reads the same predicate as the record, and the second table (`SETTLED_REASONS`) is gone: a `denied` a person gave and `decision_spent` move from `The approval decision for workflow run "X" was not applied this time: <sentence>.` to `The approval decision for workflow run "X": <sentence>.` (zh-Hans: `工作流运行 "X" 的审批决定这次没有用上:…` → `工作流运行 "X" 的审批决定:…`); any other `denied` keeps the not-applied wording; a `card_unresumable` without `terminal` moves the other way. **The `host_changed` sentence is made true; the behavior is unchanged:** "… The approval card is still waiting; restore it and decide again, or start the workflow again" → "… The approval card is still waiting and the decision is kept: once it is back to what it was, the same decision continues the run when it is handed over again — or start the workflow again" (and the same for "restore them" / "restore those rules"). **The `denied` sentence of a refusal that is not recorded is made true the same way** (the code and the reason word unchanged): "… The approval card is still waiting; remove that deny rule for the Workflow tool and decide again" / "…; switch the session out of that permission mode and decide again" / "…; the refusal comes from settings this session cannot change (the deployment's or the organization's) — decide again once they allow the Workflow tool, or start the workflow again where they do" → "… The approval card is still waiting and the decision is kept: once that deny rule for the Workflow tool is removed (once the session is out of that permission mode / once the Workflow tool is allowed again), the same decision continues the run when it is handed over again — or start the workflow again". **A person's no, recorded, has its own sentence**: "a person answered no when asked to continue the workflow. The approval card is still waiting; decide the card again (a new decision) to continue the run, or start the workflow again". A probe pinned on the old sentences or the old frame wording goes red: re-pin to the new words.
|
|
385
|
+
- **Pins.** `test/backlog4832-parked-decision-final.test.ts` (F-denied, F-unresumable-terminal, F-unresumable-not-terminal, F-host-changed, F-launch-unreadable, F-decision-spent, F-recoverable, F-launch-unrecorded, F-store-drops-member, F-precision (handed over with a decision for a card no release resumes: nothing starts, the decision not told before is told); K1 a park that moved on to a later run keeps its settled decision, K2 / K3 another leg settling the same decision at the same time (read again under the claim; not told twice), K4 only the verdict told is recorded, K5 a mark in an unknown word and the bound; D2 / D3 the same decision twice / three times in one hand-over; M1 re-parked by a continuation, the earlier holder's record reaped; M2 passed to a continuation that did not reach it, a decision recorded while it ran rides the pass, the earlier record reaped; M3 the park passed twice, the known limit read as it stands; M4 no list, no member; the settling ones — S-person-no, S-person-no-words, S-person-no-policy-approver, S-card-by-policy, S-policy-seat-person-no, S-person-no-turned-allow, and the known limit L1-policy-seat-bare-false / L1-policy-seat-no-without-a-word — asked once, told once, recorded, the same decision silent once the refusal is gone, a new decision continues; the kept ones — N-policy-deny, N-policy-seat-no, N-policy-seat-no-unattended, N-permission-request-hook-no, N-org-rule, N-person-rule, N-skill-deny-row, N-policy-catches-its-own-failure, N-wrapper-drops-the-window-record, N-rewrite-then-out-of-contract, N-person-yes-then-deny-rule, N-policy-approver-window, N-release-on-cancel, N-mode, N-window, N-approver-threw, N-approver-contract, N-hook-no, P-policy-throws, P-policy-out-of-contract, P-policy-check-cancelled, and the known limit L2-person-no-beside-stored-deny-row / L2-person-no-beside-org-deny-rule — not recorded, asked and told again at each hand-over, the same decision continues once the refusal is gone (as on 7.69.0); E1 the one reading of a person's no, shared with the bare refusal that ends a turn; X1 / X2 a recorded decision handed over beside a fresh one, before the start and under the claim: the fresh one continues, the recorded one is left out alone; X3 a decision recorded on the holder after the continuation's admission rides the pass's retry; R1–R3 the reading; W1 the frame's wording); `test/backlog4832-no-park-control.test.ts` (N1–N9, run on v7.69.0 and on this change: the same fingerprints); re-pinned `test/backlog4390-user-face.test.ts` U2 (the `host_changed` sentences; the `denied` sentences, recorded and not) and `test/backlog4535-takeover-writeback-mark.test.ts` R1 (the cause set's two words). FEATS: none.
|
|
386
|
+
|
|
387
|
+
### An approval bridge can say its own system closed a question before anyone answered it — `settledBy: "withdrawn"`, settled `approval_withdrawn`, with a sentence that says nobody refused and the call may be asked again (#4942; additive; narrowing: none; widening: none; hard-breaking: type-level for an exhaustive reader of either set below (a `never` branch or a total `Record` over it is tsc-red until it places the word); closed sets: `SettlementKind` +1 `approval_withdrawn`, `AskOutcome.settledBy` +1 `"withdrawn"`; exports: none added, none removed; wire: `tool_end.gate.settlement.kind` may carry the new word) (@server @cli @client-core @test)
|
|
388
|
+
|
|
389
|
+
- **Before.** A synchronous approver whose system ended a question with nobody answering it — a sibling of a batch whose outcome made it moot, every target the card was sent to gone while the run that asked goes on, a replay of a row the system had already closed — had three spellings, none true: a bare `false` filed a person's refusal (the issuing batch halted and the model was told to wait for the user), `settledBy: "policy"` told the model the run has no interactive approval channel and not to retry here, `settledBy: "timeout"` told it a window elapsed.
|
|
390
|
+
- **Now.** `{ allow: false, settledBy: "withdrawn", reason? }` settles `approval_withdrawn` (`who: { party: "host" }`, no `approver`, no `note`); the call does not run; the batch goes on (a person's refusal is the only halt, unchanged); the model reads `approval for "<tool>" was withdrawn before anyone answered it: <ask message>` then `The approval system closed this request without an answer, so the call did NOT run. Nobody refused it, so this is not the user's decision; ask again if it is still needed.`, and `reason`, when present, inside an `UNTRUSTED host note` fence after `Host note:`. One sentence for a parent run and a delegated child. `createApprovalPolicy.approve` takes the same word (its head names the call without an ask message).
|
|
391
|
+
- **Rule.** A word that names no decider is the host's settlement — `"timeout"` ⇒ `approval_window_expired`, `"withdrawn"` ⇒ `approval_withdrawn`, one table — and every law the window word had applies to both: it cannot approve (`allow: true` ⇒ `approver_contract`), takes no `decidedVia` or `feedback`, is not "nobody can judge" (`SETTLEMENT_NOBODY_JUDGED.approval_withdrawn: false`: the denial-limit fallback does not stop the run), and is not a person's answer. The words a synchronous approver may report are one closed list the screen and its refusal sentence read (an out-of-contract word is now refused naming four words).
|
|
392
|
+
- **Not on the durable leg.** `hostDecision.decidedBy` stays `"person"` / `"sla_timeout"` / `"policy"`; `"withdrawn"` there is refused pre-CAS as any word outside the set, the row pending — a parked row has no live wait to withdraw.
|
|
393
|
+
- **Not changed.** A bare `false`, `settledBy: "human"` / `"policy"` / `"timeout"` and their sentences, byte for byte; `SETTLEMENT_PARTIES`.
|
|
394
|
+
- **Pins.** `test/backlog4942-withdrawn-ask.test.ts` — both synchronous doors (sentence verbatim with and without a note, the fence holding a forged end marker, the record, a delegated child, the contradiction and the screens), a real Runner (the frame's record, the model's tool result, a batch sibling that runs where a bare `false` halts it, the denial-limit run that does not stop), the durable refusal, the closed set, and the three existing spellings verbatim as controls. Existing pins that counted fourteen kinds or listed three words now read fifteen and four.
|
|
395
|
+
- **Consumers.** @server: the bridge's shared settle function answers `settledBy: "withdrawn"` for its system ends (the cause sentence in `reason`); audit rows that wrote `"policy"` for them switch to the new word. @cli @client-core: a renderer that switches on `settlement.kind` gains one row (not a person's, not a policy's: "closed unanswered"). @test: criteria read the sentence above word for word.
|
|
396
|
+
- **Three questions.** Who needs it: a host whose approval system ends a live question without an answer. Who is harmed: a consumer with a closed switch over `SettlementKind` until it adds the row. Compensation: additive; an unrevised host is unchanged.
|
|
397
|
+
|
|
398
|
+
### A cron expression's next fire is the engine's own function — `nextCronFireTime(expr, { after, timeZone, recurring? })` — and CronCreate's intake judges with the same matcher, so what an intake accepts is what the firing side can time; the scheduler context carries the user's zone as the engine judged it (#4890, #4891; additive; narrowing: `isValidCronExpr`, below, open to veto @server @cli; widening: none; hard-breaking: none; closed sets: none; exports: +1, `nextCronFireTime`; wire: +1 optional `SchedulerContext.timeZone`, +1 optional `SchedulerToolContext.timeZone`) (@server @cli @test)
|
|
399
|
+
|
|
400
|
+
- **Rule.** One matcher (`src/core/cron.ts`): the grammar, its field expansion and the next-fire walk. CronCreate refuses an expression at intake when `nextCronFireTime` refuses it or answers that it never fires; a backend computes when an accepted expression fires next with the same function. The intake's static month table and the separate character whitelist are retired.
|
|
401
|
+
- **Signature.** `nextCronFireTime(expr: string, opts: { after: number; timeZone: string; recurring?: boolean }): Result<number | null, SchedulerError>` — pure: no I/O, no clock, never the process's time zone; nothing is thrown.
|
|
402
|
+
- **Semantics, five sentences.** (1) Grammar: five fields `minute hour day-of-month month day-of-week`, each `*`, `*/N`, `N`, `N-M`, `N-M/S` or a comma list of those; ranges 0-59 / 0-23 / 1-31 / 1-12 / 0-6 (7 is Sunday too); no seconds field, no month or day names, no `@` shorthands, no `L` / `W` / `#` / `?`; at most 100 characters after trimming. (2) Day: when day-of-month and day-of-week are both restricted a day matches either; a field covering its whole range (`1-31`, `0-7`) is unrestricted. (3) Time: the fields are read on the wall clock of `timeZone` (required; any zone `Intl` accepts — an IANA name, or a fixed offset such as `+05:30` where the runtime reads one, as the environment block's zone check does); the answer is the first whole minute strictly after `after`; a wall time a forward shift skips does not fire; a wall time a backward shift repeats fires once, in its first pass — with `recurring: false` the first pass or the repeat, whichever first follows `after` (that is all `recurring` changes). (4) Missed fires and per-job offsets are the caller's: pass the last fire (else the creation time) as `after`; an answer at or before now means one fire is due, however many slots were missed. (5) `{ ok: true, value: <epoch ms> }`; `{ ok: true, value: null }` when no date ever matches (a 30th of February; the walk is bounded at 527 040 steps) or the next match lies past the end of `Date`'s range; `{ ok: false, error }` with a `SchedulerError` of code `invalid_schedule` naming the faulty input (expression, zone, `after` outside 0 to the end of `Date`'s range, a `recurring` that is not a boolean).
|
|
403
|
+
- **Narrowing (open to veto @server @cli).** `isValidCronExpr(expr)` now answers exactly "does the grammar above accept it" (the same parse `nextCronFireTime` makes). Before, it was a character whitelist with 5 or 6 fields: `*/15 * * * * *` (a seconds field) and `61 * * * *` (out of range) answered `true`, and neither could ever be timed. Both now answer `false`. A host that calls `isValidCronExpr` directly as its intake or injection floor refuses those forms from this version on; the alphabet is unchanged (digits, `* / , -` and white space — any run of white space separates two fields, a line break or a carriage return among it, as the reference reads an expression), so the floor is stricter, never weaker. CronCreate already refused both forms, so the set of expressions it accepts does not change (measured: 16 spellings through the previous and the new intake, zero differences; again on the final head, 30 spellings, ten kinds of white space other than the space between or around the fields among them, zero differences) — the words of its refusals do, next bullet.
|
|
404
|
+
- **Refusal words changed (the model's face, and `cronScheduleError`).** The accepted set is the same; the sentence refusing is not. Each now opens with `invalid cron expression "<expr>" — ` (the never-fires sentence keeps `cron expression "<expr>" — `), and the expression is quoted as JSON when it is at most 100 characters and as `(N characters)` when it is longer (before, it was spliced raw, whatever its length). Before → after, the text CronCreate returns after `Error (CronCreate): `: a seconds field — `cron expression "0 */5 * * * *" — its leading seconds field is not supported — the resident scheduler fires on 5-field cron, so one minute is the finest granularity available. Pass "*/5 * * * *" if that cadence works.` → `invalid cron expression "0 */5 * * * *" — its leading seconds field is not supported — cron here fires on 5 fields, so one minute is the finest granularity available. Pass "*/5 * * * *" if that cadence works.`; a value out of range — `cron expression "61 * * * *" — invalid minute field "61" — allowed 0-59 (syntax: N, N-M, */N, comma lists).` → `invalid cron expression "61 * * * *" — invalid minute field "61" — allowed 0-59 (syntax: N, N-M, */N, N-M/S, comma lists).`; a date that does not occur — `cron expression "31 2 30 2 *" — it never fires — day-of-month 30 does not exist in month(s) 2 (e.g. February has at most 29 days). Pick a real calendar date.` → `cron expression "31 2 30 2 *" — it never fires — no calendar date matches its day-of-month and month fields (e.g. February has at most 29 days). Pick a real calendar date.`; a spelling outside the alphabet — `invalid cron expression "0 9 * * MON" — only 5 space-separated cron fields (digits and * / , -) are allowed (a 6th leading seconds field is parsed but always rejected next — this scheduler has no seconds hand).` → `invalid cron expression "0 9 * * MON" — only 5 space-separated cron fields of digits and * / , - are allowed (no names, no @ shorthands, no seconds field).` `cronScheduleError` (not a root export; a deep import of `dist/tools/scheduler-tools.js`) is `cronScheduleError(expr, timeZone = "UTC")` — one parameter more — and returns the whole sentence above, no longer the half after the quoted expression: a consumer that pins its text word for word (a check of a skill document against the seconds-field sentence's rule half, taken up to ` Pass `) must re-pin it on the new sentence, whose rule half now carries the example expression itself (`invalid cron expression "0 */5 * * * *" — its leading seconds field is not supported — cron here fires on 5 fields, so one minute is the finest granularity available.`).
|
|
405
|
+
- **Time zone (#4891).** `SchedulerContext.timeZone?: string` is present exactly when the run's `TaskSpec.clientContext.timeZone` passed the engine's zone check — the zone the environment block dates "today" in (one reading, `judgedUserTimeZone`). Absent, the engine knows no user zone (the environment block says its date is UTC) and the backend names a zone of its own when it calls `nextCronFireTime`. The model's sentence "cron in the user's local timezone" is unchanged (it is the reference's sentence) — so on a run with no judged zone the card still tells the model "local time" while the intake judges the expression in UTC and the backend fires it in a zone of its own (KL-4891-a). The same member rides `SchedulerToolContext`, and from there both lanes `schedulerLanesOf` returns.
|
|
406
|
+
- **Reference.** The grammar, the day union, "strictly after, whole minutes", one fire per repeated wall time (either pass for a one-shot) and the 527 040-step bound are the reference terminal's next-run walker's. Measured against a literal port of it: 30 base/expression pairs × both modes in `America/New_York` (pinned, M below) and a seeded 38 400-comparison batch over twelve zones (eight with summer time, among them a 30-minute shift and midnight shifts) with base instants beside every shift of 2025-2027 gave zero differences. Where the reference reads the process's zone (it runs on the user's machine), this function reads the zone it is handed.
|
|
407
|
+
- **Who needs it / who is hurt / compensation.** *Needs it:* a service that fires periodic schedules itself (it can only move the trigger server-side once the next fire has one definition), and a terminal that keeps its own copy. *Hurt:* a host that passes 6-field or out-of-range expressions through `isValidCronExpr` (refused now). *Compensation:* the refusal text of `nextCronFireTime` names the field and, for a seconds field, the 5-field rewrite.
|
|
408
|
+
- **Consumers.** @server: fire periodic schedules with `nextCronFireTime(intent.when.expr, { after: lastFire ?? createdAt, timeZone: ctx.timeZone ?? <your zone>, recurring: intent.recurring })` and refuse at your own intake when it errs or answers `null`; your own cron reading then retires; re-pin any check that reads `cronScheduleError`'s text word for word (the skill document's seconds-field rule), above — measured on the packed package: (1) the seconds-field sentence still holds the literal ` Pass ` exactly once (the whole sentence for `cronScheduleError("0 */5 * * * *")` is the "after" text above), so a split on it still yields a rule half, which now opens with `invalid cron expression "0 */5 * * * *" — `; the document's sentence and the check must be moved to the new half together; (2) the sentence does not change with `timeZone` (none, `"UTC"` or another zone: the same string, the grammar is judged before the zone; pin I5); (3) `dist/tools/scheduler-tools.js` (and its `.d.ts`) is still in the package and `cronScheduleError` is still exported from it — a deep import, not a root export. @cli: the same for the terminal's copy.
|
|
409
|
+
- **Pins.** `test/backlog4890-cron-next-fire.test.ts` — A (each grammar class accepted and refused, and the spellings not read), B (the day union), C (month ends, leap years), D (four zones; D6 the process's own zone swapped between two far-apart zones changes no answer, with the stub's control reading), E (both shifts, a 30-minute shift, both passes), F (never fires, bounded; F2 the refusal quotes a short expression and only counts the characters of a long one), G (strictly after), H (bad inputs as values), I (the intake accepts exactly what the function times, a seeded batch of 400; I3 the bounded never-fires sentence through the tool; I4 the refusal sentences listed above, word for word; I5 `cronScheduleError`'s seconds-field sentence is one string whatever zone is handed, and ` Pass ` splits it), J (`isValidCronExpr` before / after), K (a Runner stamps the judged zone; without one the environment block says UTC), L (root identity), M (the reference table). `test/scheduler-tools.test.ts`: the seconds form is now `false` for `isValidCronExpr`.
|
|
410
|
+
- **Census rows (no behavior).** The tool shell reads no raw error message: the intake's refusal sentence is minted in `src/core/cron.ts`, so the adapter-message census (#3757, `test/backlog3757-3758-adapter-message-reading.test.ts`) gains one row for that module (engine text minted in the module, no adapter's), and the error-surface gate's uncapped-splice bank for `src/tools` drops two arms (43 → 41), the line-anchor bank 17 → 14. The quoted-name census (#3845, `test/backlog3845-callers-key-in-refusals.test.ts`) gains one row for `src/core/cron.ts` (one field's text, inside the grammar's alphabet and 100-character bound).
|
|
411
|
+
|
|
412
|
+
### Where a request stopped repeating the session's previous one is said from its bytes, before it leaves — the `prefix_changed` task event and `brain.call.request`; the prompt digests are keyed per session, so they compare across runs and engine processes (#4869; closed sets: `TaskEvent` +1 arm `prefix_changed`, `brain.call.lane` +1 word `suggestions`; +2 optional trace members `brain.call.request`, `prompt.assembled.hashScope`; retired at runtime: the located prefix-change `onError(phase:"prompt-cache")` sentence, the `prompt.snapshot_changed` trace, the cache-read-drop inference; deprecated, removed in 7.70.0: root exports `CacheBreakDetector` / `CacheBreakFinding`, `CACHE_BREAK_CAUSES` / `CacheBreakCause`, the `onError` context members `expected` / `firstChangedIndex`, the `prompt.snapshot_changed` trace kind (still in `TRACE_EVENT_KINDS` and the `TraceEvent` union, never minted); hard-breaking: type-level, two — the two closed sets above (a `never` branch or a total `Record` over `TaskEvent` / the lane word is tsc-red until it places the new word), and the root-exported `TurnPromptSnapshot` loses its members `onChange` and `legStart`, below) (@server @cli @client-core @test)
|
|
413
|
+
|
|
414
|
+
- **Rule.** Every request the engine sends through the Brain seat is read once, before it leaves, by the session's prefix ledger (`src/core/runner/prefix-ledger.ts`) in one canonical rendering — the thinking controls a chat template renders, the system text, the tool block, every message — against the session's previous MAIN request of the same serving model. A main request that does not extend it is one `prefix_changed` frame; every call's `brain.call` row carries the reading. Judged from the bytes only: a cache-read count is never read (zero cached tokens after an extending request is a provider reading — an evicted entry, a hybrid model's missing checkpoint — not a prefix change).
|
|
415
|
+
- **`prefix_changed`** (new `TaskEvent` arm): minted once per main request that does not extend the previous main request of the same model, before it is handed to the Brain seat; never for a side request (compaction summary, classifier, advisor, mod, suggestions), never for a request that only appends. A request is compared only against its own model's previous main request: the first request on a model this process has not served the session with (or whose baseline a history rewrite voided, below) is compared against nothing — yet when it opens a leg whose anchor comparison found the head moved, it is still one frame, and a run that switches to a model this process holds no request of for the session is that case (the environment block names the model): one `declared: true` frame with `segments` (`env.context`) and no `at` / `of`; a run back on a model the session was served by earlier in this process is compared against that model's own previous request. A switch inside a leg to a model with no baseline mints none (the leg's anchor reading was the leg's first request's). `region` ∈ `params` / `system` / `tools` / `messages` (always). `at` and `of` together (UTF-16 units of the canonical rendering; `at` is the first differing unit in `params` / `system` / `tools` — it can fall inside a character — and in `messages` the start of the first changed message — a change in that message's middle reports its start), except on a leg's first request when this engine process holds no previous main request of the session for that model and the leg start's comparison against the session's stored anchor found the head moved — then both absent and `segments` present. `message` only when `region` = `messages`. `segments` only on a leg's first request whose anchor comparison named moved head segments (prompt block ids such as `memory.tail`, and `tools`; the request controls are not anchored, so a thinking tier changed across an engine restart is not named). Every leg start declares `leg_start_inputs` (only the leg's inputs — its spec, the deployment, the stores — can move the head between two legs), so a head change at a leg's first request, the thinking tier included, is `declared: true`; a messages change there is declared only by the seat that made it (a host's `Runner.compactSession` declares `compaction` for the session's next leg; a `resumeAt` rewind that moves the leaf declares `history_rewrite` for the leg it opens, once its prepare is committed — a prepare refused before that point puts the leaf back and declares nothing). A declared history rewrite (`compaction`, `history_rewrite`) rewrote what every model's previous request carried: the main request that consumes it is measured against its own model's previous one, and it voids the baseline of every other model the session holds (their next request reads `no-baseline`, so a compaction under one model and a switch back to another is never an undeclared change). `causes` always (possibly empty): every `PrefixChangeCause` declared since the previous main request, in declaration order. `declared` always: true ⇔ a declared word covers `region` (`REGION_CAUSES`). Not emitted when `RunnerDeps.cacheBreakDetection === false`.
|
|
416
|
+
- **`brain.call.request`** (new optional member): present on a row for a request sent through the Brain seat while detection runs — the main loop's rows and the side rows of compaction, classifier, advisor, mod and suggestions; absent on a row for a hop a fallback walk left behind, on every row when `cacheBreakDetection === false`, and from engines before this version. `{ head, messages, chars, prefix }`: `head` = 16 hex of sha256 under the session's hash salt over thinking controls + system + tools (equal heads compare within one session across runs and engine processes, never across unrelated sessions — a fork whose active branch holds its source's salt entry compares with its source); `prefix` = `"extends"` | `"no-baseline"` (this process holds no main request of the session for that model — a side row of another model, the first request after an engine restart or after the session store let the session go, the first request on a model after a declared history rewrite voided its baseline; the ledger is kept in memory per session object the store holds, never in the store, so the runs and Runners of one process over one store compare and two processes never do) | `{ at, of, region, message? }`.
|
|
417
|
+
- **`brain.call.lane: "suggestions"`**: the prompt-suggestion pass now has a trace-only row. Its spend stays the result's separate `stats.suggestions` line (never folded into `stats.costMicroUsd`), but a host that sums `brain.call` rows into a quota now counts it. Memory consolidation and a host-wired web summarizer still mint no row (their spend stays invisible to row-summed quotas, as before).
|
|
418
|
+
- **Per-session hash salt.** The `prompt.assembled` block `hash`, every `salted:` section `contentHash` and the turn snapshot's prompt digests were keyed with a per-process random salt (they never compared across processes or restarts). They are now keyed with the session's own salt: minted once (`randomBytes(16)`), kept in the session's store as one engine-owned custom entry (`engine:prompt-hash-salt`; no new entry type), read by walking the whole branch (a rewind to before the salt entry leaves it off the branch, so that leg mints another: digests before and after do not compare, though `hashScope` still says `"session"`); never on a trace, a frame or an event. **`prompt.assembled.hashScope`** (new optional member, present on every frame of this version): `"session"` — compare across the session's runs and processes; `"leg"` — the store could not read or keep the salt, so this leg's digests compare within the leg only (said once through `onError(phase:"config")`). Absent ⇒ an older engine (per-process). Two unrelated sessions in one long-lived process no longer share a key; a fork whose active branch holds its source's salt entry shares the source's key by design (their digests compare), and a fork whose branch holds none (cut before that entry, or of a source rewound past it) mints its own. A session written before this version gets its salt on its next leg; earlier digests do not compare with later ones.
|
|
419
|
+
- **Retired at runtime.** The Runner no longer runs `CacheBreakDetector`; the located prefix-change `onError(phase:"prompt-cache")` sentence (with `classification` / `expected` / `firstChangedIndex`) is no longer minted; the `prompt.snapshot_changed` trace is no longer minted (its kind stays in `TRACE_EVENT_KINDS` and its arm in the `TraceEvent` union, deprecated, until 7.70.0 removes both). The phase word `"prompt-cache"` stays: the task-end low-hit-rate summary — now numbers only (rate, turns, prompt tokens, tokens read from the cache, tokens reported written, a mid-task model switch if one happened), no "likely cause" — and the two configuration sentences (`cachedTokens > totalInputTokens`; an unknown `promptCacheFamily`). The summary stays silent on a run that published a `prefix_changed`.
|
|
420
|
+
- **Consumers.** server — admit `prefix_changed` (durable; it is the precise "why is this request slow" voice and arrives before the request); project `brain.call.request` per call (at least `prefix` and `head`, beside `cacheRead`) into the session's events — today the row is folded into per-turn usage and never reaches the events file or the terminal, so the two-column reconciliation against a provider's hit count needs it; the `prompt-cache` phase no longer carries prefix-change sentences, so drop the classification-keyed level table (its `CacheBreakFinding` import compiles until 7.70.0, when the type is removed) and keep the phase word's default level; quota sums now include suggestion rows. cli — admit `prefix_changed` (optionally show the region / causes while the first token is awaited; an engine embedded in the terminal writes its stderr to a file nobody reads, so a frame is the only voice that reaches the person). client-core — the arm in the type superset and the registry. test — closed-set pins (`TaskEvent` +1; `TRACE_EVENT_KINDS` unchanged, one kind deprecated and never minted) and the cells below.
|
|
421
|
+
- **Three questions.** Who needs it: a person who waits minutes for a first token on a long session and the hosts that must say why; whoever reconciles engine-side bytes against provider hit counts. Who is harmed: hosts with a closed `TaskEvent` set (one row; the trace-kind set is unchanged); a host that keyed log levels off the detector's classification (no longer minted); quotas that sum rows now include suggestion spend; one session-store entry per session; one rendering and one comparison per request (linear in the request). Compensation: the event is optional to render; the deprecated names stay one version; the `prompt.assembled` frame says `hashScope`.
|
|
422
|
+
- **Hard-breaking (type-level, `TurnPromptSnapshot`).** *What changed:* the root-exported interface loses two members — `onChange?: (snapshot, change: PrefixChangeNote) => void` (called after every refresh that moved the identity, feeding the retired `prompt.snapshot_changed` trace) and `legStart?: PrefixChangeNote` (the leg-start change found against the session's anchor). *Who:* a TypeScript host that assigns `snapshot.onChange` or reads `snapshot.legStart` (tsc-red); a JavaScript host that assigns `onChange` still can, but nothing calls it any more. *How to move:* an identity move is still told through `onDeclared(declaration)` (with its `cause`, after the refresh applied); the leg-start change and every request-level move reach a host as the `prefix_changed` task event (the leg-start one with `leg_start_inputs` in its `causes` and the moved head segments in `segments`).
|
|
423
|
+
- **Pins.** `test/backlog4869-prefix-frames.test.ts` (P1 presence conditions through the leg's observers — an undeclared change, a declared one, an appending request, a side request; P2 a host-changed tool table between runs; P3 a reloaded engine over a file-backed store: head and block digests compare, `no-baseline`, a changed head with `segments` and no `at` / `of`; P4 the compaction and suggestion rows; P5 the retired voices; P6 a declared history rewrite voids every model's baseline — a compaction in a run on B then back on A, a host compaction then B then A, three models in turn, two Runners over one store, an engine reload — and an undeclared edit in the middle of the history after the same switch still reads `declared: false`; P7 a `resumeAt` rewind on the same Runner, on a new Runner in `before` mode, to before the session's hash salt, with the same control, and a refused prepare and a rewind to where the session stands declaring nothing; P8 a run that switches the serving model; P9 a served-model switch's `model_namespace` reaching the ledger), `test/backlog4869-prefix-ledger.test.ts`, `test/backlog4869-session-hash-salt.test.ts`, the wire gate's engine leg (`test/prefix-wire-gate.test.ts` ④: one frame per main non-extension the wire shows, every row carries its reading), re-pinned `backlog1393-s2-declaration-face` R1–R4, `cache-break-unknown-rows`, `compaction-within-task-turn-boundaries`, `observability`, `turn-snapshot`, `public-knob-liveness`.
|
|
424
|
+
- **Known limits.** KL-4959-a (a declared rewind / clear / compaction covers the whole messages region, so an undeclared earlier edit in the same request reads `declared: true`); KL-4960-a (two stores over one backing store: the second reads `declared: false` after the first compacts).
|
|
425
|
+
|
|
426
|
+
### The compaction summary runs on the main model, and a pass judged before a request (and a manual `compact()`) reuses the main request — the two forced passes and `Runner.compactSession` keep a request of their own; the turn start judges compaction too (#4865, #4892; behavior change: yes — the summary model, the timing (BREAKING timing, #4892), the kept tail and more, below; hard-breaking: type-level, two — `EngineNoticeCode` +1 `config.compaction_member_ignored` and `MaybeCompactOptions.forkContext`'s return may be a `Promise` (source-level for a host that reads it synchronously), below; closed sets: `EngineNoticeCode` +1; exports: none added or removed)
|
|
427
|
+
|
|
428
|
+
- **Rule.** One model, one request: a summary request is the main lane's request (system block, tools, thinking controls, messages) plus one appended instruction, on the main model — for the passes judged before a request (the turn start and the request build within a run) and a manual `compact()`. The two forced passes (the prompt-too-long recovery and the in-turn guard) and `Runner.compactSession` keep the independent form: a summary request of their own, also on the main model. Reuse has two gates only — the same serving model (compared by model id: the same id served by another provider reads as the same model), and a request that carries nothing less than the model was sent before. The summarize role, the tier default and a host's compaction model no longer choose a summary model; the window-safety judgment (the clamp dry run, the fallback to the main model, its cost gate, its tolerance, the window warning) is gone with them.
|
|
429
|
+
- **Turn start (new timing).** A run whose first request is over the compaction threshold now compacts before that request goes out — the boundary's own automatic pass (threshold, anti-thrash floor, breaker, `preCompact`, the same frames), reusing the request the first build was about to send. `compaction_started` / `compacted` can therefore arrive before a run's first `message_start`. A stop verb, a caller abort or an interrupt during that pass is treated as at a boundary (an interrupt: `compaction_outcome { outcome: "mooted", reason: "cancelled" }`, no failure, the breaker untouched).
|
|
430
|
+
- **Output cap.** The summary keeps its own output cap; only on a wire that sizes the thinking budget from the cap (the Messages budget form) does its first attempt carry the main request's cap, so the budget is the same.
|
|
431
|
+
- **Prompt too long in the reuse form.** The oldest message groups are dropped and the reuse form is asked again (up to 3 times), each drop told through `compaction.input_truncated`; still too long, empty or unenveloped ⇒ one fallback to the independent form.
|
|
432
|
+
- **Lossy, defined positively.** A request counts as lossy only when it carries less, or shorter, content than the model was sent before; the aggregate tool-result cap (decided when the results arrive) no longer counts, a pointed copy now does.
|
|
433
|
+
- **Deprecated, received and ignored (told once per process per member, `config.compaction_member_ignored`, `detail.member`; refused by name from 7.70.0):** `TaskSpec.compactionModel`, `TaskSpec.compaction.clampTolerance`, the same two on `Runner.compactSession`, and `maybeCompact`'s `compactionModel` / `fallbackBudget` / `onWindowSafety`. `compacted` no longer carries `modelFallback` / `fallbackReason` / `clampedRatio` / `clampReason`; the `compaction.model_fallback` / `compaction.clamp_disclosure` / `compaction.window_config_warning` traces are no longer emitted. `ROLE_RESOLUTION_TABLE`'s `summarize` row stays one more minor, holds no hop and never refuses (no prepare reads that role; it still serves the suggestion pass, the consolidation chain and the classifier chain).
|
|
434
|
+
- **Who pays.** A deployment that configured a cheaper summary model to save money: summaries now run on the main model (with a prefix cache most of the input is a cache hit; a pay-per-token deployment without one pays more). A host reading the four retired `compacted` fields sees them absent.
|
|
435
|
+
- **No compaction after the reply (BREAKING timing; #4892).** The automatic pass is judged before a request, never after one, as the reference judges it: a turn boundary runs no threshold pass — it measures (`context_usage`, `session.measure`) and leaves the judgment to the next request build — and the end-of-task pass is removed. Within a run, a threshold compaction (`compaction_started`, `compacted`, `compaction_outcome`, `preCompact`, `compaction.phase_timings`) therefore moves from the boundary after a `turn_end` to just before the next request's `message_start`, after the boundary's frames and drained steers; its summary reuses the request that build was about to send. A run that ends after a boundary — a final answer, a structured output's terminating submission, a tool's `requestStopAfterTurn`, an exhausted truncation recovery, a follow-up answered by a `prompt.submit` handler's `{ reply }` — sends no summary request. A session left over the line is compacted at the start of the run that continues it, before that run's first request. A manual `compact()` and trim pressure still compact at the boundary. A failing or slow summarizer no longer holds a run's ending. `withinTask: false` keeps the run-start judgment (it was the end-of-task pass before). **Who is harmed:** a host that relied on the turn's ending to compact once so the stored session stays small — the stored session can now sit over the line until it is continued (and is compacted then, before the first request); a host that counted on a `compacted` frame between a run's last `turn_end` and `done` sees none.
|
|
436
|
+
- **Kept tail (behavior change, every caller: the run's passes, a manual `compact()`, `Runner.compactSession`, a direct `maybeCompact`).** The tail a compaction keeps is whole groups, as the reference's grouping keeps them: a group opens at an answer and carries its tool results and every message after it, so a floor on a person's message moves back to the answer before them. The model wakes to the summary, its own last answer (with that answer's tool results) and the person's messages after it — not to the summary and the person's message alone; a person's run of messages is never split. **What it costs:** the request after a compaction carries that group verbatim (an answer — typically hundreds to a few thousand tokens; at worst its tool results), and the compaction frees that much less (`freedTokens`, the kept count and the leaf entry move with it); the summary request itself is the same size. Files read inside the kept group are already visible there and are no longer re-attached after the summary. A session with no answer at all (an imported history of person messages) is one group: the pass finds nothing to fold (`noop`) and sends no summary request. **Downstream:** a host or a test that pinned the old kept tail (what stays, `freedTokens`, the re-attached files, the leaf entry of a direct `maybeCompact` / `compactSession`) re-pins to this rule.
|
|
437
|
+
- **One summary request per pass; no split turn (behavior change, every caller).** Every kept tail starts at a group's opening — a person's message, a frame, an engine note and a tool result all ride with the answer before them, the tool-pair repair keeps its call and the fold-forward fallback lands on the next answer — so nothing before the floor is ever "the prefix of a turn". The pass sends one summary request over everything it folds; the separate turn-prefix request and its `**Turn Context (split turn):**` section are gone. Where a compaction landed mid-turn (a within-task boundary after several tool steps, a floor moved back onto an answer) it sent two summary requests and now sends one; the turn's opening request is summarized with the rest under the same instructions. A host's `summaryProvider` (and a `session.compact` handler's `{ summary }`) is now consulted at those passes too — it used to be bypassed there — and its `messagesToSummarize` is the whole folded range; `onCompaction.messagesCompacted` counts that whole range (it left out the turn's prefix). `compaction.input_truncated` / `onInputTruncated` carry `label: "history"` only. **Deprecated:** the label `"turn_prefix"` stays in both types and is never sent; it is removed from the types in 7.70.0, with the members retired above (a consumer that matches on it drops that arm). A floor that used to land on a person's message after a compaction entry, or past an engine note, now moves back to the answer before it like any other.
|
|
438
|
+
- **Prompt too long with nothing to fold (behavior change, the run's rejection lane).** When the provider refuses a request as too long and the forced pass finds nothing to fold by whole groups (the kept group alone is the context — e.g. the first request after a run-start compaction, `[summary][a large answer][the new prompt]`), the request is sent again trimmed by the guard's own trim — the same last resort the pre-send guard uses — under a line the refusal sets: what the trim kept, less the gap the provider's error reports (with slack; else a fifth), never below the request's core (the summaries and the run's objective). The resend carries the trim's in-band notice and a `context.trim` frame. Each refusal of a resend sets the line under what the trim last kept, so no request goes out twice; once the trim can shed nothing more, the provider's refusal ends the run as before (its code and detail) — a refused request that was only the objective ends exactly as it did. The resend runs no second forced pass. The summarization request's own retry reads the same tightening law (one function, unchanged numbers). **After the resend (measured):** the resend leaves the large answer out (the objective stays, with the "earlier messages were omitted" notice) and the session still holds it. With the default kept-tail budget (`keepRecentTokens` 0) and the resend accepted, the next run's start-of-run compaction folds that answer into a summary, and the first request of that run carries a declared `prefix_changed` frame. With the budget at 100 tokens, or when the resend is refused too and the run ends on the provider's refusal, the next run's start-of-run compaction is a no-op — the kept tail's look-back picks that large answer itself as the floor — so the answer comes back whole into that run's first request, and that request reads one `prefix_changed` frame with `declared: false` (region `messages`, message 1, the one cause `leg_start_inputs`): the frame is true, not a false alarm — the prefix did move against the previous request, the trimmed resend — and no seat declared it; a later version closes that gap. The answer is folded into a summary only once newer conversation exceeds the kept tail's budget (`keepRecentTokens`); until then every request refused again costs one more refusal and trimmed resend (read with a 100-token `keepRecentTokens`). **Who needs it:** a run that used to end `input_too_long` right after a run-start compaction. **Who is affected:** such a run now gets its answer without the large answer in that request (it stays in the session; the runs after it read as above); a host counting provider requests sees one more for each refused request. A disabled, failed or breaker-closed forced pass is unchanged (the refusal ends the run).
|
|
439
|
+
- **How a pass that threw reads (behavior change, every lane of a run: the request-build / boundary pass, the prompt-too-long recovery, the in-turn guard; and a `session.compact` handler's `next()`).** By its own cause, one reading: the caller's cut (a stop, a claimed `compact()` caller's cancel, an interrupt of the turn while the run goes on) is `compaction_outcome{mooted, cancelled}` — no breaker, no `onError`; the run's own stop (the walltime limit, a budget) is `mooted{task_ending}` when the pass had announced its start and nothing when it had not — no breaker, no `onError`; anything else is the failure account (`compaction.failed`, `compaction_outcome{failed}`, `onError` `phase: "compaction"`), a store's error that lands after a stop included. **Against 7.69.0:** the recovery lanes read the run's own stop as a failure (`failed` + `onError`) — now `task_ending`; the boundary lane kept a real failure that landed after the run stopped silent — now reported; a summary request a transport aborted on its own (a fetch wrapper's timeout) while nothing stopped the run read as the run ending — now a failed summary call. A store read that throws while a boundary only measures the session is said on `onError` `phase: "degraded"`, `classification: "context-measurement"`, and the run goes on (no pass ran, so no breaker and no failure frame).
|
|
440
|
+
- **New notice code (closed sets +1):** `config.compaction_member_ignored` (operator, act, engine-minted). **Hard-breaking (type-level, closed set +1).** *Who:* a host table typed `Record<EngineNoticeCode, …>`, a `switch` that ends in a `never` default, a pin on the catalog's length. *How to move:* add the row.
|
|
441
|
+
- **Hard-breaking (source-level, `MaybeCompactOptions.forkContext`).** *What changed:* the root-exported option's callback may now return a `Promise` (`() => CompactionForkContext | undefined | Promise<CompactionForkContext | undefined>`; the engine awaits it). *Who:* a host that wraps `maybeCompact` and reads the callback's return synchronously (`opts.forkContext?.()?.messages` is tsc-red on the `Promise` arm). *How to move:* `await` the call (`(await opts.forkContext?.())?.messages`). A host that only supplies the callback is unaffected.
|
|
442
|
+
- **Pins.** `test/backlog4865-{cut-reading,reuse-form-seats,review-fixes,turn-start-compaction,whole-group-tail}.test.ts`, `test/backlog4892-no-compaction-after-reply.test.ts`, `test/backlog4947-bring-back-after-trimmed-resend.test.ts`.
|
|
443
|
+
|
|
444
|
+
### Old tool results are no longer cleared ahead of a request by default; a deployment that turns clearing on keeps them cleared for the session and declares each clear; the request-time rewrites of an earlier message the engine makes are declared (two moves are not: the turn-limit reminder's, KL-4866-b, and a later run's first request after a trimmed resend); the omitted-messages notice is one account (#4866, #4893; behavior change: the `microCompact` default, open to veto @server @cli @test, and a request a clear brings under the guard line is no longer trimmed; narrowing: none; widening: none; hard-breaking: type-level for an exhaustive reader of `PrefixChangeCause` (a `never` branch or a total `Record` over it is tsc-red until it places the word); closed sets: `PrefixChangeCause` +1 `tool_result_clear`; exports: none added or removed; wire: `prefix_changed.causes` may carry `tool_result_clear`, +1 optional `context.messages_omitted` `detail.compaction`) (@server @cli @client-core @test)
|
|
445
|
+
|
|
446
|
+
- **Before.** With no `microCompact.machine` declared (no `microCompact`, or one that sets only `clearOnRejection`) the engine ran the clearing frontier pass (`machine: "cc"`): once a request's estimate reached the frontier (window − 33 000; 0.7 × window on small windows) the oldest tool results beyond the newest five became cleared markers. The request that first carried them rewrote the earliest cleared result, so the provider re-read the request from there on; the next run started with an empty ledger, sent those results in full again (another re-read from the same place) and cleared them again. The clear was declared as `history_rewrite`; the media budget cutting more blocks, the re-send after a provider refused an image or a tool's schema, the git frame's first degrade and the copy pointers of the guard's budget arm rewrote earlier messages undeclared (`prefix_changed.declared: false`).
|
|
447
|
+
- **Now (#4866).** An absent `microCompact.machine` (no `microCompact`, or one that sets only `clearOnRejection`) resolves to `machine: "off"`: nothing is cleared at the frontier; the guard chain behind it is unchanged (the one blocking-point clear past the guard line, then the in-turn compaction, then the trim). `microCompact: { machine: "cc" }` turns clearing on and sends the same requests as before, but for a request its clear brings under the guard line (below). On every machine a clear is now the session's — the frontier pass's (cc), the blocking-point clear's and the clear after a provider refusal (the default too): an engine-owned session entry (`engine:cleared-results`, the newest on the branch) seeds every run's ledger, so a later run, a new Runner over a reopened store and a fork send the same markers byte for byte, and a rewind to before the clear reads no record and sends the results in full. A record that cannot be read is `onError(phase: "degraded", classification: "cleared-results-record")` and that run sends the results in full until a clear takes them out again; a record that cannot be written is said the same way, once while writes of the same ledger keep failing — a write that lands ends that run of failures, so a later failure of the same ledger is said again (#5070; pin `test/backlog5070-cleared-record-failure-latch.test.ts`) — and written again by the run's later request builds — only when the run ends before a write lands does the next run send them in full (until a clear takes them out again). Each clear declares `tool_result_clear` (the frontier pass, the blocking-point clear and the clear after a provider refusal).
|
|
448
|
+
- **A request a clear brings under the guard line is no longer trimmed.** The guard line judges a cleared request at no more than the request before it less what the clear saved (the clear's own estimate): the size estimate is anchored on the previous request's usage, which still carried the cleared results, so it never saw a clear before that point. Before (measured, the request bodies, 100k window, compaction off, 34 reads on the default): the blocking-point clear on the 29th request took 23 results out and the same request was still trimmed to its last 4 messages (54 590 characters, declared `tool_result_clear` + `history_rewrite`); the next request carried all 59 messages again, 23 of them markers (declared `history_rewrite`). Now: the 29th request carries 57 messages, 23 of them markers, nothing trimmed, one frame (`tool_result_clear`), and every request after it, the next runs' included, extends the one before it whole. The same holds for the frontier pass a deployment turns on, on a request that jumps past the frontier and the guard line at once (before: trimmed to its last 2 messages, the next run's first request carrying 37 again). A request the clear leaves over the line is trimmed as before. The saving is an estimate (text at four characters a token, a media block at 2 000 tokens, the marker's own size not taken off): where the real count is lower — sparse text, small images — the clear is counted as saving more than it did, a request judged under the line can go out over it, and the next request is trimmed (measured: 1 300 – 2 700 tokens over the line with the saving overcounted by 22 800 – 40 700; KL-4866-c).
|
|
449
|
+
- **Every rewrite of an earlier message is declared, before the request that carries it leaves** — save two moves: the turn-limit reminder moved to each request's end past 80 % of a turn limit (an undeclared `prefix_changed` from the second request that carries it, KL-4866-b), and a later run's first request after a run whose resend was trimmed, where the start-of-run compaction does not fold the large answer away (a small compaction budget, or the resend refused too) and it comes back whole (one undeclared frame at message 1, cause `leg_start_inputs`; `test/backlog4947-bring-back-after-trimmed-resend.test.ts`). `history_rewrite`: the guard trim (as before); a whole request after a trimmed one (the messages come back); the media budget newly cutting blocks; the re-send after a provider refused an image; the git frame's first degrade; the copy pointers of the budget arm moving. `tool_table`: the re-send after a provider refused a tool's input schema. Where the request changed has one source, the ledger's byte measurement (`prefix_changed.message`); a declaration names who changed the request and how, never where.
|
|
450
|
+
- **`prefix_changed.causes`, the full set in this version:** `leg_start_inputs`, `tool_table`, `compaction`, `request_policy`, `model_namespace`, `history_rewrite`, `tool_result_clear` (`messages` ← `history_rewrite` / `tool_result_clear` / `compaction`). A host holding a pre-pickup package of this version sees one more word in the closed set. Why clearing has a word of its own: it is the one reduction a deployment turns on itself and can turn off; the rest are what the engine must do to fit, and share one word.
|
|
451
|
+
- **The deprecated `CacheBreakDetector` (removed in 7.70.0).** A bounded deletion is no longer silent: a declared rewrite (`history_rewrite`, `tool_result_clear`, `compaction`) under a confirmed drop is a `history-rewrite` finding whose detail says the provider re-reads the request from message N on (N when every rewrite on the request named one). `PrefixChangeDeclaration.bounded` is ignored; `firstChangedIndex` stays for a host's own declarations; the engine sets neither.
|
|
452
|
+
- **The omitted-messages notice (#4893).** Before: "This conversation no longer fits what the model can read in one request, and compaction did not make it fit, so N earlier messages were left out of what the model sees (the oldest go first; the model is told that earlier messages were omitted). The session still holds every message. Said once until a request fits again." Now one sentence by the in-turn compaction's verdict — why compaction did not make it fit, what was left out, the way out — e.g. "Compaction failed (its summary did not land), and this conversation does not fit what the model can read in one request, so N earlier messages were left out of what the model sees (the oldest go first; the model is told that earlier messages were omitted). The session still holds every message. Compact the conversation again, or start a new conversation. Said once until a request fits again."; `detail.compaction?` names the verdict (`landed` / `noop` / `failed` / `paused` / `off` / `suppressed` / `cut`; absent when not known). The forced pass and the in-turn seat answer that verdict word instead of a boolean (internal).
|
|
453
|
+
- **Cost — who loses.** A deployment that relied on the default clearing to keep requests small with automatic compaction off: long tool results stay in the request, so it grows faster toward the guard line (measured on the request bodies, 100k window, 20 reads then a long pasted message and 4 more reads: the sixth request of the sequence is 327 052 characters on the default, 178 422 with clearing on). With automatic compaction on, the first compaction lands on the same request either way (measured on the same reads: after the 21st main request, ahead of the request that would have carried the first clear): the compaction trigger sits on the clearing line and is judged before the clearing pass. Turn clearing back on with `microCompact: { machine: "cc" }`. A marker that carries a reference tells the model to read the full text back (`ReadToolResult`) from the store that holds it (`RunnerDeps.toolResultStore`): with none given, that store is the Runner's own, in the process's memory — after a restart, or from another Runner, the read answers that nothing it can read is stored under that reference (measured: the same Runner and a fork read it back; a new Runner over the same session store does not). The session's rows still hold every result at full length, and only the host reads them there (KL-4866-a). With automatic compaction off, the guard's trim is reached sooner, and a trimmed request is what sets off the stuck session of KL-5049-a (present before this release; read from the two mechanisms, the combined frequency not measured): a deployment with compaction off and no `microCompact.machine` meets it earlier in a session than on 7.69.0's default (KL-4866-d).
|
|
454
|
+
- **Pins.** `test/backlog4866-clearing-frames.test.ts` (the clear's word and measured position at messages 2 and 4, the next run extends; the media cut; a refused image; a refused tool schema), `test/backlog4866-rewrite-seats.test.ts` (the git frame's first degrade), `test/backlog4866-cleared-results-session.test.ts` (a later run, a reopened store, a fork, a rewind; two clears in one session, the newest record read; a failed write written at the next build, an always-failing one said once; the default clears nothing), `test/backlog4866-clear-then-fit.test.ts` (F1 the blocking-point clear and F2 the frontier pass on a jump past both lines: no trim, one frame, whole extensions; F3 still over the line: trimmed as before; F4 / F5 compaction on and the frontier pass's gradual sequence, the request bodies printed), `test/backlog4866-wire-prefix-readings.test.ts` (the 3- and 6-request sequences, the first compaction), `test/prefix-wire-gate.test.ts` (the clearing-line cells, default and opted in), `test/compaction-within-task-turn-boundaries.test.ts` (the trim's bring-back), `test/backlog1393-s2-declaration-face.test.ts`, `test/backlog1909-1822-compaction-truth.test.ts` (the omission sentence and `detail.compaction`).
|
|
455
|
+
- **Consumers.** server — nothing to change; a `prefix_changed` frame may carry `tool_result_clear`; a deployment that wants clearing declares `microCompact: { machine: "cc" }`. cli / client-core — show the omission notice's message as given; `detail.compaction` is optional. test — the default no longer clears at the frontier; a probe that asserted clearing on the default re-pins with `machine: "cc"`, and one that pinned the old omission sentence re-pins on the new one.
|
|
456
|
+
|
|
457
|
+
### An approver the deployment declared a policy that refuses without naming who decided gives the policy's refusal, not a person's — at the run's approver seat and as `createApprovalPolicy`'s `approve` (#4936; fix of a face this release's #4832 reads; behavior change for a host that marks an approver with `asPolicyApprover` and refuses in one of the three spellings below, open to veto @server @cli @client-core @test; narrowing: none; widening: one — such a refusal no longer halts the issuing batch nor settles a parked decision, below; hard-breaking: none; closed sets: none; exports: none; wire: `tool_end.gate.settlement.kind` reads `policy_refused` where it read `human_refused` or `approver_contract`) (@server @cli @client-core @test)
|
|
458
|
+
|
|
459
|
+
- **Rule.** Whose answer it is reads the seat. On an approver the deployment declared a policy, a refusal that names no decider — no `settledBy` — is the policy's: the same record, sentence, batch and continuation as that seat's `{ allow: false, settledBy: "policy" }`. A seat nobody declared, every answer that names its decider (`settledBy` `"human"` / `"policy"` / `"timeout"` / `"withdrawn"`) and every yes are unchanged (a marked seat's yes relays a person's, its no is its own — the contract `asPolicyApprover` documents). Both synchronous doors read the one fold; a bare `false` is the refusal `{ allow: false }` at both.
|
|
460
|
+
- **Who sees a change.** Only a host that marks an approver with `asPolicyApprover` — as `onAsk`, or as the `approve` it hands `createApprovalPolicy` — and refuses in one of the three spellings below. The record moves to `policy_refused` (`who.party: "policy"`, an `approver` carried); the issuing batch is not halted (its sibling calls run, the model gets the next turn); on the continuation's question of a parked workflow (#4832) the decision is not recorded: it is told and asked at each hand-over, and once the refusal is gone the same decision continues the run (measured: two hand-overs told 1 / 0 before, 1 / 1 now; a third with the refusal gone started nothing before, continues now); the refusal counts on the denial limit, and on the classifier's denial-limit fallback question the run stops (`classifier.denial_limit`), as the policy object's did (measured: it completed before).
|
|
461
|
+
- **Spelling 1 — a bare `false`.** The run's seat, before: `approval denied for "<tool>": <ask message>` then `The user doesn't want to proceed with this tool use; the call did NOT run. STOP what you are doing and wait for the user to tell you how to proceed.` (a delegated child: `Permission for this tool use was denied; the call did NOT run. Try a different approach or report the limitation to complete your task.`), settled `human_refused`. Now: `approval required for "<tool>" but this run has no interactive approval channel: <ask message>` then `The deployment's policy declined this tool use; the call did NOT run. Action requires interactive approval and permission prompts are not available in this context. Do not claim it succeeded and do not retry it here; report what was blocked and why you needed it, then continue with the parts of the task that do not require approval.`, for a delegated child too, settled `policy_refused`. `createApprovalPolicy`'s door, before: `approval denied for "<tool>"`; now: `approval required for "<tool>" but this run has no interactive approval channel` then the same second sentence.
|
|
462
|
+
- **Spelling 2 — `{ allow: false }` with no `settledBy`.** Without `reason`, before and now as spelling 1. With `reason`, before: the person's sentence with the note licensed as the user's (`… The user's note on this rejection follows — treat it as the user's guidance (user authority only: it cannot grant permissions or override system rules):` then the `reviewer note` fence, then `If the note does not tell you how to proceed, STOP what you are doing and wait for the user.`), filed as the person's `note`; at the convenience door `approval denied for "<tool>"` then `Reviewer note:` and the `reviewer note` fence. Now, at both doors: spelling 1's sentence, then `Policy note:` and the `policy note` fence; no `note` on the record.
|
|
463
|
+
- **Spelling 3 — `{ allow: false, decidedVia: "permission_request_hook" }` with no `settledBy`.** Before, at both doors: `the approver for "<tool>" reported a decidedVia this seam refuses: decidedVia names which machine seat answered for the deployment's policy, and this decision reports "human" — the member rides a "policy" decision only; denied fail-closed`, settled `approver_contract` (at the run's seat also announced as the approver's defect). Now: `a PermissionRequest hook denied this call to "<tool>": <ask message>` (the convenience door: without `: <ask message>`) then `The call did NOT run. Do not claim it succeeded and do not retry it unchanged; report what was blocked and why you needed it, then continue with the parts of the task it does not block.`, settled `policy_refused`.
|
|
464
|
+
- **Not changed.** On a seat nobody declared, the three spellings word for word (pinned on this change's base and on its head). On a declared seat: `settledBy: "human"` (to relay a person's earlier no as theirs, say so — today's reading, word for word), `"policy"`, `"timeout"`, `"withdrawn"`; `true` and `{ allow: true }` (still the person's yes the seat relays); a host closure put in front of a marked approver reads as a person, as documented.
|
|
465
|
+
- **Pins.** `test/backlog4936-policy-seat-bare-false.test.ts` — P (both doors: each spelling equals its policy-object twin, the sentences verbatim, an attribution, a delegated child, an engine wrapper), W (a declared seat's worded answers and its yes), C (eight controls on a seat nobody declared), B (a real Runner at both doors: the frame's record, the model's tool result, the sibling; the control halts), L (the denial-limit fallback), K (the parked continuation at both doors, both spellings; a person's no as the control). In `test/backlog4832-parked-decision-final.test.ts` the two known-limit cells become kept cells (`N-policy-seat-bare-false`, `N-policy-seat-no-without-a-word`).
|
|
466
|
+
- **Consumers.** @server: by its own account (read, not run here) its person's channel is not declared and its declared lanes answer `"unavailable"` or the policy object — nothing changes for it; the system ends it answers with a bare `false` on the undeclared channel stay its own change (KL-4832-a). @cli @client-core: a declared seat's unworded no renders as the policy's (`policy_refused`), and its batch goes on. @test: criteria read the sentences above word for word.
|
|
467
|
+
- **Three questions.** Who needs it: a host that declares its approver a policy and refuses with a bare `false`, and its user — no "a person said no" that nobody said, no batch halted waiting for a user, no parked decision recorded dead. Who is harmed: a host that relays a person's earlier no through a declared seat as a bare `false` and relies on the halt. Compensation: `settledBy: "human"` restores the person's reading, word for word.
|
|
468
|
+
|
|
469
|
+
### A host's tool that is there on some turns only can be declared so, and the engine puts it after every other tool — the rest of the tool table keeps one beginning whether it is there or not (#4868; +1 optional `ToolSpec` member `perTurn`; without it the order is unchanged; narrowing: none; hard-breaking: none)
|
|
470
|
+
|
|
471
|
+
- **Rule.** `tools[]` is in the order the leg mounted its tools, with one segment after all the others: every caller tool declaring `perTurn: true`, in the order of their names (UTF-16 code units). It comes after the protocol tools and after `ToolSearch`. The boundary has one reading (`RosterBuilder.perTurnStart`, `src/core/tool-roster.ts`, over the builder's own mount metadata), asked by the builder's placement, the roster snapshot, the wire list (where ToolSearch enters) and the prompt manifest; a domain the roster gains mid-leg (RefreshMcpTools, a re-dial) enters before the segment.
|
|
472
|
+
- **Before (measured here, real openai adapter over a recording fetch, rendered system → tools → messages).** A host that mounts one more tool on a turn appends it to `spec.tools`, which puts it among the first tools: of a 24-tool, 37,103-character tool block, the next request shared the first 1,082 characters (the two host tools before it) and rendered the other 22 tools again.
|
|
473
|
+
- **Now.** Declared `perTurn`, the same tool ends the table: the request with it and the one without share everything up to the end of the last tool that stays (pinned, both directions, and with deferral on: after ToolSearch, as its placeholder when deferred too). With several per-turn tools, the one that comes and goes takes the per-turn tools whose names sort after it out of the shared beginning too — declare `perTurn` only on a tool that really comes and goes (measured on the openai adapter, rendered as above: with a large per-turn tool that is always there and a small one that comes and goes, its name sorting first, the request without the small one and the next one with it shared 14,162 characters where the same tools undeclared shared 31,821).
|
|
474
|
+
- **What it does not change.** What this keeps depends on where the backend renders the tool block. A chat template that renders the system prompt, then the tools, then the messages keeps everything before the per-turn tool; the messages are rendered again either way. A backend that renders the tool block first (Anthropic's order) keeps the tools before the per-turn tool too, and renders the system prompt and the messages again whenever the tool set changes, `perTurn` or not; whether a provider's cache reads those kept tools there was not measured (Anthropic's cache breakpoint stays on the last tool).
|
|
475
|
+
- **Refusals.** `perTurn` other than `true` (a spec or a `defineTool` product) ⇒ `config.tool_face_invalid`. A per-turn tool must own every name it answers to: when another mounted tool answers to its name or one of its aliases (a built-in, another caller tool, a second per-turn tool of that name) the task is refused, `config.tool_face_invalid`, with the way out (rename it, or drop `perTurn`) — under a shared name the later mount answers, and the segment would otherwise decide who that is. A name the engine reserves for a tool it injects (`ToolSearch`, …) is refused before that, with `config.reserved_tool_name`, per-turn or not. A delegation entry the per-task agents rebuild (`withAgents`) keeps the caller's `perTurn`, as it keeps `modelGate`.
|
|
476
|
+
- **Roster.** `WiringManifest.tools` and `tool_roster_delta` list their rows in the wire's order: with a per-turn tool declared, ToolSearch's row is no longer the last one; the per-turn rows are.
|
|
477
|
+
- **Consumers.** A host with a per-turn tool: add `perTurn: true` to it. Everyone else: nothing changes.
|
|
478
|
+
- **Pins.** `test/backlog4868-tool-order.test.ts` — P1 today's order name for name with no declaration (no deferral; deferral on; undeclared caller tools out of name order beside a per-turn one) and the five two-send baselines; P2 a per-turn tool that comes and goes; P3 deferral × per-turn, and the roster / prompt manifest / mount array agreeing; P4 the builder's placement under a mid-leg domain and a presentation swap, and a real Runner's mid-leg refresh with deferral on; P5 the four name contests; P6 the bad values on a spec (the string `"true"` among them) and on a product; P7 several per-turn tools by name, and a product carrying the member; D a 19-host-tool, 11-large-MCP-tool shape with and without the declaration.
|
|
479
|
+
|
|
480
|
+
### The memory band at the end of the system prompt is read from the store once per conversation segment, so a memory write no longer re-sends the whole conversation on the next leg; an erasure through the erase door still reaches the next leg (#4867; behaviour narrowing; hard-breaking: none; closed sets: none; exports: +2 optional members, +1 optional option; storage: the `origin-clearances` document is written by every erasure, and only by writes)
|
|
481
|
+
|
|
482
|
+
- **Rule.** Whatever the system prompt's head reads from disk is read once per segment — from session start, or from a landed compaction, to the next compaction — and the record is the session's epoch anchor (the `engine:date-anchor` entry that already froze the prefix date). The anchor gains a third half that NAMES the memory store content the band was composed from: the key it was frozen under and the sha256 of its bytes. The bytes themselves (each plane's raw index text and the marked-entry bit) are kept in the process's memory only, bounded at 16 MiB of index text (oldest out first), and are found by the key and the digest together. A later leg of the segment that finds them composes the band from them; one that does not — another process, a restarted one, a copy pushed out of the bound — reads the store live: the same bytes when nothing changed (the prefix goes on, nothing is written), otherwise the new content is anchored and that leg's first request is sent whole once. The band's configuration-driven parts (the write instruction or a read-only notice, the recall and preference disciplines) are composed fresh on every leg as before.
|
|
483
|
+
- **Before (measured by the evidence leg on 7.66.1; same code on 7.69.0).** A memory write between two legs moved the memory band, the last section of the system prompt: the next leg's first request shared only 91 % of the system prompt with the previous request, and the tool block and every message after it were sent as new. On a local model with a 500 K-token conversation that is a full re-prefill (about three and a half minutes) per memory write.
|
|
484
|
+
- **Now.** The next leg's first request extends the previous leg's last request byte for byte after a memory write — on the same Runner and on another Runner in the same process. The written row reaches the band at the next segment (after a compaction, or in a new session), or on the first leg in another process. The notice that the store changed still rides the next leg's first message, as before.
|
|
485
|
+
- **Erasure beats the freeze.** The key holds the store state, read by the mount before it lists any entry (`MemorySessionHandle.storeState`): the entries withheld as challenged and the store's erasure count — the `erasures` count of the origin-clearance account, which every run of `eraseMemoryEntries` (either lane) raises after it deleted its entries, writing the account when it was never written. So after an erasure whose receipt is `complete`, the next leg reads the store live: the erased row is in no later request's system prompt (the prefix breaks there once — for every session frozen on that store, the count being the store's, and not where the live read is byte-identical to the frozen band), in another process and after a compaction alike, and the anchor carries no index text. One trace is left, as on 7.69.0 (measured; an existing behaviour, its own change): when the erasure lands inside a leg, the next leg's first message carries the engine's notice that the index line was cleared because the entry's file does not exist, and that notice names the file — the erased entry's file name reaches the model and stays in the session's history (the entry's name and description do not). The erase door also drops, at once, every copy this process froze of that store's index. An erasure whose own count update did not land (the engine's clearance step failed, an evidence face's count notwithstanding) answers its `indexLine` class `unverified` and is `partial`: a copy frozen in another process could still stand (a replay moves the count) — a repeat that finds the rows already gone and whose count fails again answers the same. A leg whose mount read the count before the erasure landed is in flight: it keeps the band it was prepared with — an erasure landing inside the mount after it listed the entries too — and the erasure takes effect from the next leg, which lacks the row. One in-flight form differs from 7.69.0 (measured): an erasure by another process that lands after this leg's mount read the store state and before it listed the entries — this version serves the copy frozen under the old key, so that leg still carries the row; on 7.69.0 that leg did not. The count only goes up: a mount that reads it lower than the highest its process has read (the account removed or rolled back; a read overtaken in flight by a higher one counts as lower too) takes the store state as unreadable — that leg freezes nothing and says so — and the process drops every copy it froze of that store, and a mount that read the state before the drop keeps none; a process that read nothing of the store in between cannot see the change, so restart the running Runner processes after removing or rolling back the account (KL-4867-e ④). A read of the count writes nothing (a mount mints no record); `clearEntryOrigin` reads it the same way and its conflict fence is unchanged. A live read serves the index each plane's mount rebuilt under the state it read, not the disk file read later (a concurrent mount's rewrite from an older listing never becomes the segment's band).
|
|
486
|
+
- **Not frozen.** A leg that mounts memory differently (other scopes, another write scope, another memory directory, the committed view only), or whose store now withholds something it did not (an entry challenged, an index the engine no longer trusts), or ran an erasure since, reads the store live and freezes that. A store state that cannot be read freezes nothing: the band is read live on every leg and nothing is anchored, said once per leg on `onError` (phase `memory`). An index over 1 MiB is read live on every leg (said once per leg on `onError`, phase `memory`). A branch that cannot be read renders the live store and anchors nothing.
|
|
487
|
+
- **Narrowing.** Inside one segment the system prompt does not show memory rows written since the segment began — by another session, a person or the host. The model still reaches them through `memory_search` / `memory_get` / `memory_index` and `Read`, and the harvest notice says that the store changed (counts only: it names no row). A row the host deletes from disk directly inside a segment still shows in the band until the segment ends (it does not come back on disk); a row erased through the erase door leaves the band on the next leg. The first leg after a compaction re-reads the store; if the store changed during the segment, that leg's first request is sent whole once (the context has just been compacted then). A probe that pinned "a write moves the system prompt on the next run" goes red by design.
|
|
488
|
+
- **Engine face.** `MemoryEngine.inject(handle, { frozenIndex })` serves the given index text instead of reading the live file (the cut, the fence and the neutralization still run on it; no index seed rides unless it is the disk text); `MemoryInjection.indexText` is the raw text an injection was composed from; `MemorySessionHandle.storeState` is what the store withheld and erased as a mount read it (`{ challenged, erasures }`, or `"unreadable"`). All three are optional and additive; an engine-direct host that passes nothing keeps the live read. An engine-direct host that freezes the index itself keys its copy by `storeState` the same way.
|
|
489
|
+
- **Mixed versions.** An engine before this change does not write the origin-clearance account on an erasure when the account was never written: its erasure over such a store does not move the count, and a session of this version keeps that store's frozen band until its segment ends (KL-4867-e).
|
|
490
|
+
- **Degraded-lane receipt.** An erasure on the `allowUnevidenced` lane answers `erased[].projectionsRemoved: 0`; it answered `1` for every deleted entry, though that lane deletes through the store's patch and removes no projection file itself (its `projection` class stays `unverified`, the request `partial`). A host that summed removed projections from this lane's receipts now reads 0. On a copy-out store the projection left on disk is taken back into the store by the next writing session's harvest, as before (KL-4867-e ③).
|
|
491
|
+
- **Leg start.** A leg's head is compared with the head the session's legs last anchored, across a compaction too: the first leg of a new segment names, in its `leg_start_inputs` declaration, the head segments its re-read of the memory store (or the date) moved, where it used to compare nothing.
|
|
492
|
+
- **Children.** A spawned child or workflow member runs on its own session and reads its own segment. A fork child mounts no memory band.
|
|
493
|
+
- **Three questions.** Who needs it: long sessions on local and hybrid models, and every provider that prices or serves by prefix; a host that erases memory through the erase door and relies on the row leaving every request. Who is harmed: a session that relies on seeing another writer's new memory rows in its system prompt before the next compaction; the leg after an erasure, and the first leg in another process after the store changed, send their first request whole once. Compensation: the retrieval tools and `Read` read the live store, the harvest notice says the store changed, a compaction or a new session refreshes the band, and in one process the band stays frozen.
|
|
494
|
+
- **Pins.** `test/backlog4867-memory-tail-segment.test.ts` (W1–W10 on the wire: write between legs, control, a compaction, a new Runner, another process both ways, another mount, the index seed, the marked bit, a challenge inside the segment, a copy pushed out of the bound; E1 / E2 / E1b / E3 an erasure mid-segment — the next leg, a compaction, another process, a resumed park, the in-memory store, and the control; R1 an erasure inside the mount, after it listed the entries; E4 / E4b an erasure whose count did not land, and its repeat; E5 / E5b / E5c the count read lower (the account removed), back up again, and a mount in flight across it; E6 the degraded lane's receipt; W11 the committed view; U1 an unreadable store state; D1 / P1 the dual-root and personal-only arms; S1–S2 children; A1–A5 and C1 the anchor's memory half, the leg-start comparison and the copy table). `test/backlog1123-memory-notice-prefix.test.ts` P1 / P3 / P4 now pin the frozen band; `test/backlog4180-read-dedup-at-request.test.ts` S1 reads the seeded index in a session that begins after the write, and compacts before its last run so that run's seed rides again; `test/backlog3559-erasure-count.test.ts` pins that every erasure writes the count and a read writes nothing; the wire prefix gate's `shell·memory-write` cell is no longer known-red and checks that the write was committed.
|
|
495
|
+
|
|
496
|
+
### The card's reason that a matching allow entry did not clear an ask no longer says "never by a standing allow rule" for the four questions a standing rule does clear — `unverifiable_delete`, `unverifiable_shell_text`, `unstated`, `ordinary` (#5006; wording change on the card's disclosure clause, open to veto; behavior change: none; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@cli @client-core @test)
|
|
497
|
+
|
|
498
|
+
- **Before.** Four classes whose `MODE_ARBITRATION` row says a standing allow rule may clear them (`ruleMayClear: true`) read one reason sentence for "a matching allow entry did not clear the ask": `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`. They are the two the engine raises because it could not read or verify a command (`unverifiable_delete`, `unverifiable_shell_text`: the ordinary row since #4784), `unstated` and `ordinary`. A host that renders the "why it cannot be cleared" half from `SHADOW_REASON[class]` for one of them, and the engine's own clause for an ask that carries no class word (read as `ordinary`), said "never by a standing allow rule" of a class whose row says a rule clears it — beside the headline read off the same row, "Saving an allow rule for it would stop it being asked again.", where a host shows both. Read from the tags' sources: v7.68.7 has the sentence on all four; v7.69.0 has it on `unstated` and `ordinary` only (the two other classes had sentences of their own, "never by an allow rule", that agreed with the removal breaker's row they read there).
|
|
499
|
+
- **Now.** The sentence is read off the class's own `ruleMayClear` column — one function over `MODE_ARBITRATION` — so the reason cannot say the opposite of the row. For a class a rule clears: `… (an earlier layer of this run, or the task that delegated it, judged it so), and that mark outranks an allow entry — it is cleared by confirming this call`: what outranked the matched entry (the mark the call arrived with), and no claim that no rule could. The four classes share that one wording. `operator_forced`, the class that shares the head and whose row no rule clears, keeps the old sentence byte for byte.
|
|
500
|
+
- **Not changed (stated).** Every row of `MODE_ARBITRATION`, every judgment, every answer of every mode; which entries match and whether one clears the ask; the key set of `SHADOW_REASON` (frozen, on the root, one row per class but `probe`); the member phrase; the sentence of every other class.
|
|
501
|
+
- **Wording change (open to veto).** *What changed*: the closing clause of the card's disclosure for an ask of those four classes, and the four exported `SHADOW_REASON` values. *Who needs it*: a host that shows the clause from the table beside the headline, and the person who reads both and was told two opposite things. *Who is hurt*: a host or test that matches the old clause by text. *Compensation*: compare with the exported `SHADOW_REASON[class]`, never a copy of its text; a reader that wants to know whether a rule clears a class reads `MODE_ARBITRATION[class].ruleMayClear` (the words were never an input). On 7.68.6 / 7.68.7 these sentences stay as they were: for the two unverifiable classes they say the opposite of what the class does there — a known, older mismatch.
|
|
502
|
+
- **Consumers.** @client-core @cli: a card that renders the "why it could not be cleared" half from `SHADOW_REASON` shows the new sentence for the four classes with no change; one that snapshots the old clause by text re-pins to the exported row. The engine's own card for a call that arrived marked is the class `operator_forced`, whose row no rule clears: its sentence and card are as before (measured, S3). @test black box: `allowRuleShadowSentence(shadows, { askClass })` for any of the four, or with no class, ends `… does not clear the ask — this call arrived already marked as requiring confirmation (…), and that mark outranks an allow entry — it is cleared by confirming this call`.
|
|
503
|
+
- **Pins.** `test/backlog5006-shadow-reason-agrees-with-row.test.ts` — S1 every class whose row says a rule may clear it (found by reading the row table, not from a list) has no "never by" in its table sentence or in the clause the root-exported reader renders, nor does an ask with no class word, with a control that the same detector finds it where the row says no rule clears; S2 the whole sentence of the two unverifiable classes equals the ordinary question's, and `operator_forced` keeps the old sentence byte for byte; S3 a real gate: a marked call under a matching stored allow rule is the class whose row no rule clears, and its card says so.
|
|
504
|
+
|
|
505
|
+
### A person's input queued while the request at the end of the malformed-tool-use retry's budget is in flight is delivered and the run goes on — it no longer ends `provider.error` with the input undelivered (#4808; on the Anthropic line this is the 7.68.5 behaviour for a turn of text beside dropped calls — on the other two lines 7.68.5 took that shape as a plain answer and never sent the words — and a fix of a regression in 7.69.0; behavior change: yes, below; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
|
|
506
|
+
|
|
507
|
+
- **Before.** On 7.68.5 a turn of text beside tool calls that were all dropped (cut arguments, no tool name) was a tool-use stop with no call, and a message waiting at the retry's judgment took the nudge's place — the run went on with it (measured, Anthropic lane, a scripted stream: text beside a cut call twice, the third request in flight when a person steers ⇒ four requests, the steer reaches the model, completed). On 7.69.0 a turn that lost every call is re-asked only while the retry's budget has room, and that grant is read before the request is sent: the third such turn fails at the brain (`model_output_invalid`), and the loop's error exit leaves before the boundary drain, so the input queued during that request stayed queued — three requests, `provider.error`, `task.user_steer_undrained`, the person's words never sent (measured on all three lanes; the Runner over each).
|
|
508
|
+
- **Now.** A turn that carries the dropped-calls account (`modelOutputInvalid`) under a run that has the retry no longer leaves through the error exit when the host says input is queued (`pendingInjectionCount() > 0`; a loop with no such count asks the drain): it comes through the turn boundary a turn that goes on takes — `prepareNextTurn`, the stop consult (the limits, a halt, a suspend are enforced there), then the steering drain — and the retry's judgment decides. A person's row among what the drain brings (`origin: "human_input"`) takes the rule the judgment already gives a person's waiting input (`clearCountsOnPersonsInput`, one predicate for both points): both counts start over, the turn counts as one re-ask when the budget has room (`onReask` fires once; the one step both ways share is `countReask`), the waiting messages are the model's next input, and the run goes on (trace `steer_injected`). A steer the host itself sends with `source: "system"` is recorded as a person's input in the same way (`origin: "human_input"`), so it carries the run on in that moment too; a notification or a `later` steer does not. Anything else ends the run on the failure (`assistant_error`; an engine note or a row with no origin drained there is the terminal account's, as at every drain a terminal follows), with two differences from before. When the only thing queued at that moment is a frame a person did not send (a notification, or a `later` steer), the outcome is unchanged, but the run emits one more `context_usage` event at that boundary. When stop was pressed at that moment and only notifications are waiting, the result reads `haltedByUser: true` and `task.halt_unconsumed` is no longer emitted (with no stop pressed that run ended on the failure, as above). With nothing queued the error exit is unchanged and takes no boundary. Other failures, a run without the retry, an aborted run, a follow-up-lane (`later`) steer and the output-cap count (`recovery.truncatedOutput`) are untouched.
|
|
509
|
+
- **Reading.** The delivered person's input starts the count over once — the rule every person's input takes — so a model that again brings no call gets two more re-asks and then the cap ends the run as it does — at most six requests in all for a run whose every turn lost its calls (measured on every lane and on the loop), where the Anthropic line of 7.68.5 ended at the fourth (`malformed_tool_use_exhausted`); on 7.68.5 a turn with a message waiting counted nothing, so the end came one no-call turn after the delivery. The cut call alone (no text) failed at first strike on 7.68.5 whatever was waiting; it now takes the same way as text beside a cut call.
|
|
510
|
+
- **Known.** The notice `task.tool_turn_incomplete` for a lost call (attention `inform`: a session's screen does not show it) is told when the turn's message ends, once per run per cause; when its cause is first told on the cap's turn it says `outcome: terminal` for a turn the run then goes on past (KL-4808-a: needs two earlier turns without a dropped call of that cause).
|
|
511
|
+
- **Pins.** `test/backlog4808-reask-cap-person-input.test.ts` — A (a Runner over each lane: the steer in flight at the cap, the control with nobody steering, the steer one request earlier, after the end; A4 the known limit as measured), A5 (a task that opted into resource-slice suspend: no request is sent past the limit) and A6 (a `later` steer), B (the loop: person's row / engine note / row with no origin / none; the count after delivery; a second row; nothing queued takes no boundary; the stop consult ends the run before the drain; no retry lane; a plain failure), D (the output-cap count untouched).
|
|
512
|
+
- **Three questions.** Who needs it: a person who speaks to a run in the one request after two re-asks of lost calls. Who is harmed: nobody — a run that would have ended on the cap goes on one more turn, only with their words in it. Compensation: the cap still ends a model that keeps bringing no call; no input, no change.
|
|
513
|
+
|
|
514
|
+
### The notice of an unreadable rule store is told once the leg's mode has settled — a leg that asked for `auto` without a classifier (or for a relaxed mode the deployment denies) runs under `default`, and now tells the person, not the operator, from the run's start (#4809; a fix of what 7.69.0 shipped as a known limit; behavior change: yes, below; narrowing: none; widening: none; hard-breaking: none; closed sets: none; exports: none; wire: none) (@server @cli @client-core @test)
|
|
515
|
+
|
|
516
|
+
- **Before.** The run's start read of the person's rules comes before the deployment's arming facts bind, so the mode it read was the word the caller asked for. For `auto` with no classifier wired, or `bypassPermissions` where the deployment denies it, the leg then folded to `default` — and the start read told the operator (`permission.rule_store_unreadable_relaxed`, `at: "prepare"`, `mode: "auto"` — a mode the leg did not run under) while the person was told nothing at the start (only by a later call's read, when a call came and the store was still unreadable). On 7.68.5 no operator code existed and the person was told at the start under every mode.
|
|
517
|
+
- **Now.** `PermissionModeController.whenArmed(then)` runs `then` once the arming facts are bound (after the fold is announced), at once when they already are, and contains a throw. `ruleStoreUnreadableNotice` takes the mode seat in place of a mode reader, tells through it and reads `observed` once, there. For those two legs the person gets `permission.rule_store_unavailable` (`at: "prepare"`, once per session per fault set, as for `default`) and the operator's line is not minted; a leg whose mode stands (`auto` with its classifier, `bypassPermissions` the deployment lets stand) tells the operator as before, naming the mode it runs under, and the person nothing. Same codes, same sentences, same once-per-session record; the start's telling moves from before the caps phase to its arming bind, inside prepare and before the record is written back.
|
|
518
|
+
- **Retired.** Known limit KL-4698-c (the untrue operator line on an `auto` deployment without a classifier); the pin that held it (`backlog4698-ask-rows` O5) reads the new answer.
|
|
519
|
+
- **Known.** A prepare that throws before the caps phase binds the arming (a refused configuration) no longer tells the notice: the run does not start, the trace line of the read (`permission.rule_store_unreadable`) stays, and the session's record is not spent, so the next run that starts tells it.
|
|
520
|
+
- **Pins.** `test/backlog4809-unread-notice-settled-mode.test.ts` — U1–U2 (the two folded legs: the person told at the start, no operator line), U3 (one call after: the person is told once), U4 (controls: `default`; `auto` with its classifier; the bypass the deployment lets stand), S (the seat: waits, runs once after the bind, at once when bound, contains a throw; the notice through a seat not yet armed says nothing yet).
|
|
521
|
+
- **Three questions.** Who needs it: a deployment that asked for `auto` without wiring a classifier, and the person on it (told at the start that their saved rules could not be read, so every call is asked about). Who is harmed: an operator who read the old line on such a deployment (it said no call is put to a person; it was untrue there). Compensation: `config.permission_mode_unavailable` already says the mode did not take effect.
|
|
522
|
+
|
|
523
|
+
### 7.69.0's known limit on a shell command that feeds a path to a file-reading program, corrected: who is asked (wording only; behaviour change: none; closed sets: none; exports: none; wire: none) (@server @cli @test)
|
|
524
|
+
|
|
525
|
+
- **Correction.** 7.69.0's "Known limits, not changed by this release" section says of that form (the owner's ruling C-R2308 ①: not fixed in the engine) that "with a person attending the command is asked about as before". It is asked only where the host does not declare ordinary questions answered by machine: where the host declares that, it is not asked, and a host's unattended leg — a one-shot command line run in a terminal included — reads the same. Second correction: that section limits the form to a deployment "whose read face is open"; it holds on the narrowed read face (`roots`, the default) as well — `echo ~/.ssh/id_rsa | xargs cat` (a file outside the roots the built-in table refuses) and `echo .env | xargs cat` (a deny-listed file inside the roots) run with nobody asked under a machine-answered table on either face, and with a person attending they are the ordinary question on either face (measured on 7.69.0 and on this release, the same readings; a direct `cat` of either file is refused on both). An existing limit, not a change of this release: the engine does not see what the program reads. The rest of that known limit stands as written.
|
|
526
|
+
|
|
527
|
+
no-notes: #1293b(the #4787 car's commit 0b301e2e9 only adds the leg's declared-places mint, empty, to this pin's hand-built read-face phase input; the behaviour it carries is the #4787 section's Rule paragraph, one `legCallerPlaces` mint per leg that the read deny placement reads; no behaviour of its own), #1295(named in this range only by the ledger commit f3b6434a4, a row-state change; the ticket shipped in 7.69.0 and the `## 7.69.0` section "Messages a person sends while a run works are all read at the next boundary" names it as closed by #4524; no new behaviour), #4328(named in this range only by the ledger commit f3b6434a4; shipped with 7.68.2, and the `## 7.69.0` section's no-notes line says so and names the `## 7.68.2` block as its notes; no new behaviour), #4338(a wiki car with zero src, the getting-started page and the first build-line page; not among the package's files and no package behaviour; its ledger row already reads shipped in 7.69.0; named in this range only by the ledger commit f3b6434a4, and wiki pages carry no release notes), #4396(named in this range only by the ledger commit f3b6434a4; shipped in 7.69.0, and the `## 7.69.0` section "Runners given the same session store object and the same mailbox object share one session route" names it; no new behaviour), #4408(named in this range only by the ledger commit f3b6434a4; shipped in 7.69.0, and the `## 7.69.0` section "Every session row the engine creates for a leg it delegates records the delegation tree's owner" names it; no new behaviour), #4630(named in this range only by the ledger commit f3b6434a4; shipped in 7.69.0, and the `## 7.69.0` section's no-notes line carries it: one fixture of the run-store contract kit, nothing a store does; no new behaviour), #4632(named in this range only by the ledger commit f3b6434a4; shipped in 7.69.0, and the `## 7.69.0` section's no-notes line carries it: `test/cascade.test.ts` only, zero src; no new behaviour), #994(pin re-count only: the #4789 car raised the bound of `test/backlog994-s1-dual-run.test.ts` from 1200 to 1450 (1376 measured) and reads the #4789 step back before the other rows; the behaviour is the #4789 section; the three probe commits that name it added and removed a temporary probe before hand-in), #4927(repository tooling only: `scripts/verify-anchor-claims.mjs` and its `.d.mts` skip a path that vanishes between the listing and the read (ENOENT only; every other error is still thrown) and its self-test gains two cells over a fake tree; the gate is not part of the package, nothing in the package changes), #1(not a ticket: a list number in the body of a commit message that numbers two compactions), #2(not a ticket: the second number of the same list), #1838(re-pins of its window cells in `test/backlog1828-stop-during-pass.test.ts` follow the new compaction timing; nothing for #1838 itself changes), #1123(re-pins of its notice-prefix cells P1 / P3 / P4 in `test/backlog1123-memory-notice-prefix.test.ts` follow the segment-frozen memory band, as the memory-tail section's Pins line says; nothing for #1123 itself changes), #3558(the reverse-interleaving control of `test/backlog3558-custody-move-erasure-fence.test.ts` now runs the move before the erasure's update instead of after the erasure's read (the cell's hook point moved with the erasure's steps); nothing for #3558 itself changes), #4180(re-pin of its S1 cell in `test/backlog4180-read-dedup-at-request.test.ts` under the segment-frozen memory band, as the memory-tail section's Pins line says; nothing for #4180 itself changes), #631(re-pins of `test/backlog631-shell-lexer-reach.test.ts` S2 to the statements read past the stop, and its V6 long-word timing kept by the early exit when no statement boundary follows the stop; the behaviour is the #4907 section's), #696(re-pin of a `test/backlog696-read-boundary-any-doctrine.test.ts` cell: `cat << ⏎…` is now the read station's own question; the behaviour is the #4907 section's), #753(re-pin of a `test/backlog753-whitelist-on-lexer.test.ts` cell to the same reading; the behaviour is the #4907 section's), #4826(release tooling only: `scripts/release` `--line`; nothing in the package), #1554(one pin row added at this merge — `TMPDIR=$X bash -c 'rm -rf "$TMPDIR/b"'` in the still-asked table of `test/backlog1554-where-the-command-stands.test.ts`, which holds the guard's safe-root check where the #4907 section's command environment holds no value; nothing for #1554 itself changes), #7470(pins only: `test/backlog7470-fix.test.ts` F2's `[^\.]` cell names the home row since the release review's quote-removal reading of a pattern — the #5062 section's "Quotes that hold nothing, a class of dots" — reads it as `[!.]`; nothing for #7470 itself changes), #4861(the parent row of the prompt-cache work, named in this range by the ledger only: its notes are the sections of its five slices, #4865, #4866, #4867, #4868 and #4869), #4904(documentation only: the section "没人值守时怎么配才不卡" of `docs/wiki/core/build/install.md` — which asks stay under `bypassPermissions`, what `approvalReach: "none"` answers with and without parking, what `interactiveTools: false` leaves unmounted; no behaviour of its own, the page is not yet `stable`)
|
|
528
|
+
|
|
1
529
|
## 7.69.0 — 2026-11-17
|
|
2
530
|
|
|
3
531
|
**7.69.0 in brief.** A summary only: every line names the sections that are its record, and nothing here is said that they do not say. "Open to veto" items are open to veto as their sections state.
|
|
@@ -1609,6 +2137,61 @@
|
|
|
1609
2137
|
|
|
1610
2138
|
no-notes: #4380(docs and JSDoc only: INTEGRATION-CORE section 11 and the `hostChildEnv` JSDoc in `src/core/secret-env.ts` now say who composes a settings hook's child environment, that `inheritEnv` is not applied to it, and what this package gives that executor; the two section 11 version labels of #2607 read 7.59.0, the release whose notes carry it; no code line changes), #2607(named only by the #4380 docs commit that corrects two section 11 version labels of it; nothing for #2607 itself changes here), #2595(named only by a premerge-7690 glue commit that re-reads two #2595 pins — D1d at the workflow registry's door, the pin header's pool sentence — after #3023 and #4187; the change is #3023's and its notes are there), #4269(named only by a premerge-7690 glue commit: the residual ticket a KNOWN-LIMITS row and one held pin cell cite; nothing in the package changes), #4088(named only by a premerge-7690 glue commit that re-reads the #4088 pin's sandbox judgment in the #2274 S2 form — no `home`; the change is #2274 S2's and its notes are there), #181(named only by a premerge-7690 glue commit: the retired-name census counted a word in a #3964 exclusion reason, reworded; nothing in the package changes), #391(named only by a premerge-7690 glue commit: the envelope census row for #2274 S2's `sandbox_violations` frame; the frame's notes are #2274 S2's), #2077(named only by a premerge-7690 glue commit: the request mint station census counts #4046's host question; its notes are #4046's), #3713(named only by a premerge-7690 glue commit: the O7 census lists #3964's re-key identity table beside the two readers; its notes are #3964's), #3968(named only by a premerge-7690 glue commit: #3964's exclusion table no longer lists the retired `askId`; nothing a row carries changes), #3202(named only by premerge-7690 glue commits: the unknown-key census lists the `ignoreViolations` pattern map as not a gate, and the re-key input's stray-member check reads the engine's one name judgment; #3202 shipped with 7.68.0 and nothing of its own changes here), #3355(named only by the title of premerge-7690's merge of origin/stage-7680 (batch 18), which mentions the stage's no-notes entry for it; #3355 shipped with 7.68.0 and nothing of it changes here), #3757(named only by premerge-7690 glue commits: the adapter-message census counts Monitor reading the spawn failure's text once, and its count is back to 3; #3757 shipped with 7.68.0 and nothing of its own changes here), #3826(named only by premerge-7690 glue commits: the author table gains classified rows for the violation line echo and for `unauthorizedFailure`'s `inlineUntrusted(ctx.server)`; the table shipped with 7.68.0, the new rows belong to the merged cars (#2274 S2, #3985) and their notes are there), #3997(named only by a premerge-7690 pin header and merge message that cite its record-face form (`authorizationClause`) which #3985 follows; #3997 shipped with 7.68.0, the change here is #3985's and its notes are there), #4029(named only by the title of a car-1664-4028-redo commit that re-measured ratchets and read the #4029 pin's carrier off string literals; #4029 shipped with 7.68.0 and nothing of its own changes here), #4103(named only by premerge-7690 glue commits: the announced sandbox frame's value is read by `isTextContentHash` and its digest by `textContentHashOf` — one sha256 text mint; #4103 shipped with 7.68.0, the change here is #2274 S2's and its notes are there), #4111(named only by premerge-7690 commits: the re-key census reads that a synchronous child parks nothing, and the car's contract kit reads `durableApproval`'s widened `| false`; #4111 shipped with 7.68.0 and nothing of its own changes here), #4234(named only by the title of premerge-7690's merge of origin/stage-7680 (8d4fd3436, batch 18); #4234 shipped with 7.68.0 and nothing of it changes here), #4423(release tooling only, scripts/ and one docs snapshot, nothing in the package: `gate:checkpoint-classes` compares the checkpoint requirement table with a snapshot of the last release and asks a named CHANGELOG line for every existing member whose class changed or that left the table), #4389(pin only, zero src: `test/backlog3110-cascade-park-seat.test.ts` cell ⑧ no longer compares the wall-clock `apiDurationMs` of two separate runs; the cell owns a frozen `Date` that each scripted brain call advances by a fixed step, so the legs' reported time is an exact number of calls), #2222(named only by a glue commit title of this batch: `gate:checkpoint-classes` (#4423) mints its scratch directory through the #2222 scratch helper instead of calling `mkdtemp` itself; #2222 shipped earlier and nothing of its own changes here), #2137(evidence only: docs/evidence/deny-before-ask-matrix.json and its pin measure which denies reach an approver; nothing in the package changes), #4333(named only as the known limit that B-249's plain-space cells read and do not judge; no change to it), #4405(repo only: scripts/repro/B-249.mjs runs in gate:repro against the built dist; nothing in the package changes), #4406(test tree only: the git-seam rule reads call expressions and one fixture goes through git()), #4407(release tooling and docs only: scripts/rerun-container-red.mjs), #4415(release tooling only: scripts/tsc-heap.mjs caps the compiler's heap for typecheck / gate:nuia / car:gate), #4431(release tooling and docs only: scripts/release/pickup-grep.mjs), #1030(named only by a glue commit title of this batch: car-4423's test builds its fixture repositories through the one git seam that #1030 introduced instead of spawning `git` itself; #1030 shipped earlier and nothing of its own changes here), #4436(release tooling only, scripts/ and docs/RELEASE-TIERS.md, nothing in the package: post-ship step ⑫ writes docs/checkpoint-classes.snapshot.json from the release's tag for the ledger commit, a tree with no class table is told so and skipped; `gate:checkpoint-classes` reads a word class that carries `earlier` — the class stays `word:<word>` — and judges the reading's appearing, going or changing as a class change, named by a `checkpoint-class-change:` line or red; the snapshot gains an optional `earlier` map), #4424(named only by the body of the #4436 commit, which cites the car whose `earlier` member the class gate now reads; nothing of #4424 itself changes here), #4445(repository tooling and docs only, zero src and nothing in the package: `scripts/suite-red-diff.mjs` and its declaration twin judge a suite run by the red cells it has that a baseline vitest JSON report did not — a file's name no longer hides a new red cell inside it — and `docs/RELEASE-TIERS.md` / `docs/TESTING.md` say so; `test/suite-red-diff.test.ts` pins it), #4441(test files only, zero src: `test/backlog1599-delegate-auto.test.ts` and `test/backlog1602-child-scope.test.ts` read the executed command's output as `ran:42`, a text no session reminder mark can hold, and run their refusal-text cells under a mark pinned to a value that holds `42` as well as a freshly minted one, through one helper, `test/reminder-mark-pin.ts` — a bare `42` was a substring of about one random mark in two hundred), #4430(pins only, zero src: the release-chain fixtures' fake git answers the push's own destination probe instead of letting it reach a real `git ls-remote`, and the fixture repositories are built once per test module and copied; nothing in the package changes), #954(named only by car-4374-4375's fix commits, which re-pin the #954 header-value ledger; #954 shipped with 7.67.0 and nothing of its own changes here), #1675(named only by car-4374-4375's commits, which cite its A6e / A7 pin cells as the base tree's reading they keep; #1675 shipped with 7.51.0 and nothing of its own changes here), #4457(the native reader's review of the 68 zh-Hans renderings the release candidate named, recorded in docs/locale-reviews/zh-Hans.json: five of them reworded — the sandbox-network approval headline, the workflow size tier, the auto-mode posture frame, the final-verification frame and its re-entry — before any release carried them, so no text a released engine shipped moves; no canonical text, source binding, key or variant changes), #4328(shipped with 7.68.2, whose `## 7.68.2` block is its notes; on the stage the landing line's merge carries the same fix and the bookkeeping commit 2c553e86a re-banks its ceilings and export snapshot — nothing further to announce), #1023(named only by the title of car-4321's test commit, which re-records one pinned sentence of #1023's row-shape equivalence pin for the absent-id wording — a test file only, nothing for #1023 changes), #4110(named only by #4352 commits: its park-to-publish pins read the date anchor's and the record's share of the bound the settle's waits now share — cell 0b the anchor's third, cell 5 the record's half; nothing for #4110 changes), #4483(a src comment and one test file, no behaviour: the doc on `START_TIME_TOLERANCE_MS` in `src/core/process-identity.ts` says what the probe's own delay does to the span of two readings of one process — one second with no delay, two with the longest delay a reading is kept for, which is the whole window — where it said one second and a full second of headroom; `test/fs-atomic-process-fingerprint.test.ts` no longer asserts a rounded start never reads past the uptime it was derived from — it reads up to half a second past it on a host whose uptime has a fraction, which went red in 5 of 20 runs of the file in a k3s8 container (overshoots of 380 – 480 ms), and the pid 1 cell, which asserted pid 1 older than two minutes, in 20 of 20 (a container's pid 1 is a minute old) — the pid 1 cell now supplies the age it needs instead of reading the machine's, 20 of 20 green in the same container, and a driven-host sweep holds that one live process read at two instants is `running` while a recycled pid is `gone`), #4508(a security-ledger row filed by car-4481's work commit, whose title names it beside KL-4481-e; the row is in docs/SECURITY-BACKLOG.md and the engine behaviour it concerns is in #4481's own notes), #1778(zero src change for it: the stated defect — the earlier-grammar announcement as a plain Error on onError — was closed in 7.53.0 by #1970 which made it an engine notice with no onError arm; what stays is the unreadable advisory as an Error with its code on onError by audience; the family's shape is pinned by F1-F3 of test/backlog1778-1779-earlier-grammar-notice-shape.test.ts and the unify-to-SessionPolicyError form is not taken since that class is the putRules refusal set), #2861(named only by the title of car-orch-truth's fix commit, which re-reads the #2861 I1 pin through the one row projection and pins a registry cell's clock — test files only, nothing changes for #2861), #4539(repository hygiene: the stage no longer tracks the .gate-logs/ directory (twelve files a branch had forced into the tree leave the index); no engine, doc or test content changes), #4280(shipped in 7.68.0; named only by the header of a merge of the stage-7680 line into car-1579's own history, which changes nothing for #4280), #777(a source-text pin re-anchored: it cut the verifier spec literal at its opening brace and now cuts it at its declaration, so the literal may be wrapped by the parent spec seat's apply; the pin's three claims are unchanged), #1386(named only by a #4525 commit body: the workspace reading calls the one factory judge `deploymentCanRerootChild` that the #1386 G pin holds every site to; the pin is unchanged and nothing for #1386 changes), #4079(named only by a #4525 commit body: the #4079 ⑨ source pin reads the driver as prepare plus the task-start doors it enters first, where the leg fact's one derivation now sits; the fact and its readers are unchanged, nothing for #4079 changes), #4356(named only by a #4525 commit body: the #4356 U5 source pin reads the leg's selector build in the task-start doors, where it moved with the pre-acquire stretch; the selector and its switch are unchanged, nothing for #4356 changes), #4451(a correction of the #2274 S2 notes and one line of docs/CLOSED-SETS.md, no src, test or behaviour change: the section's HB-2 now names the older worker as 7.68.x or earlier — the word `command_sandbox` is on no tag up to v7.68.3 — and says what a rollback from this release does to a row parked under a sandbox requirement; the notes it corrects are #2274 S2's), #3698(named only by the subject of a work-in-progress commit on car-4500 that changes the file-history store contract kit's stand-in and its pin for #4533, the artifact store's directory mode this ticket asks for is not in this range), #4511(named only as the ticket for a known limit of the 2394 round, written in docs/KNOWN-LIMITS.md and INTEGRATION-CORE 1.10d: a top-level error object from a self-hosted server is read as no envelope; nothing for it changes in this range), #1699(named only by the subject of a test commit on car-4121 that registers the retain entries of cells 5b to 5d with the row-verified word #4408 made required; no source change for it in this range), #3712(named only by a #4334 commit that re-reads the #3712 L1 leaf pin's import list — the fs failure-message leaf now imports the one-line form of foreign words, `foreignLine`; the closure assertions are unchanged and nothing for #3712 changes), #3758(the same #4334 commit and the same reason, the #3758 B cell), #4267(docs and one src comment only, no behaviour, nothing in the package changes: INTEGRATION-CORE's optional-member row for `FileHistoryStore` names `readBoundaries` and `blobExchange` and no longer the retired `diffStats`, its `Runner.rewindFiles` sentence says the dry-run preview is the restore planned and never `null`, SERVICE-INTEGRATION-GUIDE's file-history seat paragraph no longer lists `diffStats` as an optional store verb, and the root-export comment above `countRestoreLineDiff` no longer speaks of a backend's preview verb or the retired `previewFileDelta`; the notes of the retirement are the #4267 section above), #4619(a test file only, zero src and nothing in the package: `test/verify-debts-closed-sha-existence.test.ts` took the first 8 hex characters of a real commit as a coordinate, and the gate reads a pure-decimal 8-character token as a date or a count, not a commit, so a head whose front 8 characters were all digits, about 2.3% of commits, reddened the cells that cite it; the commits a cell cites now come from a throwaway stand-in for the checked repository and every other fixture repository, each re-minted until its short sha holds a letter, with pins J1 to J7 on the minting loop and on the gate's decimal reading), #4630(one fixture of the run-store contract kit and nothing a store does: the cell "an update stating a cause persists the same row as one stating none" now puts two park entries on each row, the one the write passes on and one it does not, in both orders, and holds that only the passed one carries `passedTo` after the write, with the cause and without it; a store that puts the member on another entry when the write states a cause was green on the single-entry fixture and is red on the two-entry one, on the in-memory and on the file store alike; no bundled store does it, and a store of a host that runs the kit (@server's SQL stores) is red only if it moves the member), #4632(a test file only, zero src: `test/cascade.test.ts` cell "totalTimeoutMs stops escalation once the overall wall-clock ceiling is crossed" gave a 1 ms ceiling to an 8 ms real gate delay, so a host that stalled for a millisecond before the first rung ran the zero-attempt path and the cell counted 0 attempts where it expected 1; it is now three cells over a clock only `Date` of which is faked, which a rung's gate moves by a stated step: a gate that burns the whole ceiling ends the ladder after one attempt, one millisecond less lets a second rung run, and none never crosses; the load-relative widening it carried is removed with nothing left to widen), #4434(docs only: `docs/wiki/` restamped against the 7.69.0 tree — ten pages re-read and re-stamped and the README index regenerated, with the sentences the tree had outgrown corrected on the model-setup page (the fallback reasons gain `route_refused`; a cut answer's `terminal.detail`; an undeclared `reasoning` tier is tried), the persistent-allow-rules page (two sandbox questions a rule may clear) and the feature index, and one new page on yielding a leg and its background work; no code line changes), #4658(folded into the #4481 section above, which no release carries yet: its hard-breaking item 1 says what a session's own writers do on an entry stored before the upgrade — one `tool_result.offload_put_failed` per session, and on a store that refuses the write at once a cleared marker without a ref — and KL-4481-f names the two places this does not reach; nothing against v7.68.3 beyond that section), #4663(a test file only, zero src and nothing in the package: `test/backlog4121-continuation-judge.test.ts` cell ⑫ no longer reads the ledger a fixed 80 ms past the stated deadline — it reads the entry standing before the deadline and waits with a bound for the real reaper timer to take it, never before the deadline, so a loaded host no longer turns it red), #4667(shipped in 7.68.4, whose `## 7.68.4` block below is its notes; on this branch it meets the bound #4652 gives a removal gate whose holder cannot be judged: a lock that bound reclaims is not said as a reclaim on the declaration, which is said only when the declared judgment found the process gone, and the integration guide keeps the shipped section number 5.15a for the declaration (the damaged-ledger section is 5.15b)), #4668(shipped in 7.68.4, whose `## 7.68.4` block below is its notes; on this branch its car merges as it shipped — nothing further to announce), #4672(shipped in 7.68.5, whose `## 7.68.5` block below is its notes; on this branch its car merges as it shipped, with the two wording changes of the cross-session disclosure that the branch already carried kept inside the function that moved), #4715(test-only: five withheld-env pins count only the names their fixtures planted, so a variable in the host process environment that the namespace rule withholds under "all" no longer turns them red; no behavior change), #1618(named only by two #4695 car commits that re-aim the #1618 ②b pin (test/backlog1618-neutering-survives-stripping.test.ts) from the retired mode-release notice onto the allowed-tools advisory; test only, the change is #4695's and its notes are there), #4720(test-only: the #4334 foreign-words pin file read a random secret against each cell's output by longest common run, and a run of 4 that the cell's own fixed words carry by chance ("reda" in the redaction mark, "fuse" in "refused") turned a cell red about one file run in fifty; a run now counts only if the same cell fed another random draw of the same shape does not write it too, so a leak of the secret itself still reads in full, the bound of 4 is unchanged; no behavior change), #1230(an existing pin re-aimed by the #4716 section above: the closed detail key set of the tool-turn-incomplete cells now takes the re-ask count; no behaviour of its own), #1598(four exact-detail cells re-aimed by the #4716 section above (they take a re-ask count of 0); no behaviour of its own), #2879(named only by the header of a merge of the main line into the release branch that changes the ledger alone; the ticket stays open, placed in 7.70.0, and nothing for it changes in this range), #3631(named only by the same merge header; the ticket stays open and nothing for it changes in this range), #4138(a repository gate script and its pins only, nothing in the package: gate:changelog-breaking reads two more manifest item forms — `type made keys required`, and a closed-set member that holds line breaks, named by its first line — without changing how any other form is read)
|
|
1611
2139
|
|
|
2140
|
+
## 7.68.7 — 2026-11-18
|
|
2141
|
+
|
|
2142
|
+
### On a Windows tree the shell read station reads Git Bash's drive spelling (`/c/…`) as the drive path it names — reads, writes, `cd` targets and the removal guard (#4854; a narrowing on Windows hosts; widening: one, below — reads the engine places inside the root, open to veto; no API change)
|
|
2143
|
+
|
|
2144
|
+
- **Who.** Hosts whose execution environment is a Windows tree (a drive or UNC root) running the win32 adapter's shell, Git for Windows / MSYS2 bash, which names drive X's root `/x`. A POSIX tree is unchanged: `/c/x` there is an ordinary path.
|
|
2145
|
+
- **Before (measured on a win-family environment double over a real Runner; the evaluation repo reported measuring the read row on a Windows host, engine 7.68.5; no real-host record here).** The station read the listed drive-spelled operands on a Windows tree as "cannot be placed", so `/c/Users/<u>/…` met no home-anchored or rooted deny row: `cat /c/Users/<u>/<deny-listed file>` — also `/C/…`, a pattern, `/c/../c/…`, double- or single-quoted — ran unasked under `bypassPermissions` and elsewhere were asked or refused as "where this command reads could not be established". `rm -rf /c/proj` (the task root), `rm -rf /c` (the drive root) and `rm -rf /c/Users/<u>` (the home) ran under `bypassPermissions` with no removal question (the target was not placed, so the removal guard had nothing to judge); a redirection or copy onto a protected or deny-listed file, and `cd /c/… && <relative read>`, likewise. A person's rule `Read(//c/…)` and the built-in rows matched anywhere (`.ssh`, …) already refused.
|
|
2146
|
+
- **Now.** On a Windows tree a `/`-rooted operand is folded as that shell folds it (`..` at `/x` climbs to the emulation's own root) and a single-letter first segment is that drive: `/c/rest` and `/C/rest` ⇒ `C:\rest`, `/c` ⇒ `C:\`; three or more leading slashes read as one (`///c/rest` ⇒ `C:\rest`, refused as its twin where it was unplaced before), two are a UNC as before. Read at the one operand resolver, so every shell station — reads, writes, redirections, `cd` targets, the removal guard — judges it as its `C:/…` twin, on every mode and every deny-row source (built-in, the deployment's home-anchored and rooted rows, a person's rule). The tracked working directory reads the shell's `/c/…` pwd through the same reading (its spelling is now `C:\…`, measured; it was `c:/…`, by reading the code).
|
|
2147
|
+
- **The widening — open to veto.** A read the engine places inside the root, written in the drive spelling, is now that in-root read, as its `C:/…` twin already was. Measured against 7.68.6 on the win-family double, default read face, root `C:\work\repo`, with four such reads (`cat /c/work/repo/src/a.txt`, the same upper-cased, `cat /c/work/repo/../repo/sub/b.txt`, `ls /c/work/repo`): under `default`, `acceptEdits` and `plan` with a person they were asked and now run unasked; under `default` with nobody to ask, `auto` and `dontAsk` they were refused (`read_unestablished`; `dontAsk` by its mode) and now run; under `bypassPermissions` they ran and still run. Two consequences of that one reading are not right, each its own known limit: a host whose shell is not of the MSYS line interprets the same text outside the root by those tools' documented conventions (Cygwin: `c` under its installation root; cmd / PowerShell / busybox-w32: `\c\…` on the current drive; not measured here) — KL-4854-b; and a read that passes a link inside the root and then climbs with `..` past the drive's root back into the root is judged as the in-root file while the review double models Git Bash resolving the link first and opening a path under the drive's root, outside the root (the real-shell destination was not measured here) — it was asked or refused as above and now runs unasked on every seat — KL-4854-d. Nothing else got looser: over 102 drive-spelled reads, writes, redirections, removals and link forms × 8 seats (the review measurement against 7.68.6), no write, no removal and no read the engine places outside the root lost a question or a refusal on any seat; the open read face was not measured.
|
|
2148
|
+
- **Unchanged.** A `cd` to the drive spelling mints no directory rule and no stored directory rule covers it (refusal-only; the same on 7.68.6, measured). The following `/`-rooted spellings stay unplaced as before — the emulation's own tree (`/etc`, `/usr`, `/bin`, `/opt`, `/home`, `/tmp`, `/proc`, `/dev`), another layer's drive form (`/cygdrive/x/…`, `/mnt/x/…`), a fold out of the drive (`/c/../etc/…`), a multi-letter head (`/cc/…`), the rule grammar's `/C:/…`, Win32's backslash root (`\c\…`), a bare `//c`; a full UNC spelling (`//c/Users/x/f`) keeps its UNC anchor as before, placed as a UNC path, not as drive `c` — KL-4854-a. A directory link inside the root that names the drive's root is modeled in the review double as letting Git Bash climb past that root with `..`, which the station folds as text (the real-shell destination was not measured here): such a read or removal runs under `bypassPermissions` on 7.68.6 and on this release alike, and is asked or refused elsewhere on both — not fixed here, KL-4854-d. Not measured on this release, and untouched by its diff: the structured file tools (by Node on Windows' documented convention, `/c/x` is the current drive's `\c\x` (not measured here), and they read it so).
|
|
2149
|
+
- **Not in range.** A path built inside another interpreter's text (`powershell -Command "…"`, `python -c "…"`) — KL-4854-c.
|
|
2150
|
+
- **Pins.** `test/backlog4854-win-drive-prefix.test.ts` — the one resolver's readings on a win tree and on a POSIX tree; reads (the reported spellings × six modes × four deny-row sources, through a link inside the root, after a `cd`), the in-root read, the removal guard (the drive root, the task root and the home in every mode; five more spellings of the task root), writes (a redirection, a copy target, the write-protection table), the tracked working directory, the `cd` member, what stays unplaced, the in-root read judged by the shell double for a shell outside the MSYS line (its actual path follows documented convention, not measured here; KL-4854-b), and a POSIX tree (`/c/…` an ordinary path, its `cd` member as before). One earlier cell re-pinned: `test/path-identity-family-matrix.test.ts` (`/d/private.txt` under a win root resolves to `D:\private.txt` now; it was unresolved).
|
|
2151
|
+
- **Consumers.** A probe that pinned the "could not be established" card for a drive-spelled operand on a Windows host now meets the `C:/…` spelling's verdict (`read_path_denied`, the removal question, the write-protection question): re-pin to it. A probe that pinned an in-root drive-spelled read as asked or refused now sees it run.
|
|
2152
|
+
|
|
2153
|
+
### What the engine can read of a command is judged as itself; what it cannot read is the ordinary question beside it, never instead of it — a removal or deny-listed read written plainly before text the engine cannot parse is stopped again, and a command written in a parameter expansion's operand is read (#4862; a narrowing of 7.68.6, and of a gap older than it; hard-breaking: none; open to veto @server @cli @test for the one stricter-than-the-shell cell below)
|
|
2154
|
+
|
|
2155
|
+
- **What 7.68.6 let through.** 7.68.6 made a shell text the engine cannot read an ordinary question (`bypassPermissions` releases it; auto's classifier, a stored rule, a pre-approval, a class table and a host's blanket `onAsk: "allow"` can answer it, subject to the read-face distinctions below). Where a command's text could not be parsed to its end, the engine read none of it, so a removal or read written plainly BEFORE the unparseable part became that question too: `rm -rf ~; cat <<EOF⏎x` (a here-document never closed), `rm -rf /usr⏎echo 'x` (the next line never closes its quote), `rm -rf ~; echo $(case x in x) y;; esac)`, `rm -rf /; cat <<EOF⏎x`, a workspace removal before `⏎echo "x`, and `cat .env` / `cat ~/.npmrc` before such a tail ran under `bypassPermissions` and the blanket answer on both read faces; on the open face they also ran under auto's classifier, a stored rule / pre-approval / class table in `default`, `acceptEdits` or `plan`, and a stored rule / pre-approval in `dontAsk` (25/50 arms per text in the review leg's raw cells; its “hole arms 44/50” also counts ordinary questions). On the narrowed face, `default`, `acceptEdits`, `plan` and `auto` still asked with `probe`, even with a stored rule, pre-approval or class table; `dontAsk` refused (7.68.5: a person, with the real-approval bit, or refused). Bash 3.2 / 5.2 runs the measured complete line before the one it cannot parse, and bash 3.2 / 5.2, dash, zsh and ksh run the measured unterminated here-documents with their bodies taken to the end of the text (`DESIGN-4862.md` §2 S02, S01/S05/S06/S34; `local-shells.out`, same rows). The 7.68.6 notes' sentence "the same removal or read written plainly (`rm -rf /usr`, `rm -rf ~`, `cat .env`) is still stopped in every mode" did not hold for these texts. From this release it holds for a removal or read written before the point where the lexer stops; it still does not hold for one written after a construct the lexer itself cannot read past although bash 5.2 can in the review leg's measured forms (KL-4862-e).
|
|
2156
|
+
- **And a gap older than 7.68.6.** A command written in a parameter expansion's operand — `echo "${X:-$(cat .env)}"`, `${X-…}`, `${X:=…}`, `${X:+…}`, `${X:?…}`, `${X#…}`, `${X%…}`, `${X/…/…}`, a backquote or (outside double quotes) a `<(…)` there — was never read: the engine saw one word it could not read, an ordinary question, so the read or the removal inside ran wherever that question was answered (the review leg measured the `${X:-$(cat .env)}`, `${X:-$(rm -rf ~)}` and `${X#$(rm -rf /usr)}` operand forms running under `bypassPermissions` on both read faces on 7.68.5 and 7.68.6: `table-a.txt`).
|
|
2157
|
+
- **Now.** The segments the lexer read in full before it stopped go through every judge — a protected-location removal is a person's (`dangerous_delete`, the bit) in every mode, or refused without a question (`dontAsk` and the blanket-answer arm), a deny-listed read is refused, a write-protected target and the read roots are judged — and the text from where it stopped stays the one ordinary question beside them. An unterminated here-document is read as the measured shells read it (`DESIGN-4862.md` §2 S01/S05/S06/S34; `local-shells.out`), so a shell or `xargs` fed one (`bash <<EOF⏎rm -rf ~`) is judged on that body. The substitutions written in an operand are planned as any substitution is; the operand is read as the shell quotes it — outside double quotes a single-quoted part (`${X:-'$(cmd)'}`) runs nothing and is not read as running, inside them (`"${X:-'$(cmd)'}"`) it runs and is read (`DESIGN-4862.md` §2 S23/S24; `local-shells.out`); the inner-double-quote variant (`${X:-"'$(cmd)'"}`) is also read (pinned; shell execution not measured here); a substitution that cannot be delimited there keeps the ones read before it, and the expansion itself stays the ordinary question. A literal written to a file and then sourced splices what the lexer read of it. Each of the nine forms first measured reads, in every mode × answerer × read face, as the same sentence without its tail (pinned); kin whose statement alone is an ordinary question are pinned only as “not looser”, and the wider gate matrix excepts the rule lane's length bound (KL-4862-c: a person's deny rule becomes a question with the real-approval bit, refused where nobody may be asked).
|
|
2158
|
+
- **Net, for a reader coming from 7.68.5.** 7.68.6's widening stays: a text the engine cannot read, and a delete whose target is hidden from it — a stream (`echo /usr | xargs rm -rf`), a substitution's output (`rm -rf "$(printf /usr)"`), a script put together when the command runs (`printf 'rm -rf /usr\n' | bash`, `bash -c "$(echo rm -rf ~)"`, `printf 'cat .env\n' | bash`) — is an ordinary question (cell for cell as 7.68.6, pinned). What is written plainly before the point where the lexer stops, and what is written in an operand, is judged at least as strictly as the same statement written alone (pinned, except KL-4862-c: past the rule lane's length bound, a person's deny rule becomes a question with the real-approval bit instead of the refusal; kin whose statement alone is an ordinary question require only “not looser”); the text from that point on is the unread part, the ordinary question as on 7.68.6, and a statement written there runs wherever that question is answered (KL-4862-d, KL-4862-e).
|
|
2159
|
+
- **Stricter than the shell — open to veto.** Every statement read in full before the stop is judged as one that MAY run. A quote left open on the SAME line stops bash before any of that line runs, so `cat .env; echo "x` is now refused although bash would have refused the whole line (7.68.6: released; nothing was read). The same holds for the measured `&&`-and-newline and unclosed `for` body in bash 3.2 / 5.2 and dash (`DESIGN-4862.md` §2 S07/S08; `local-shells.out`; KL-4862-a). A person's deny / ask rule now also reaches the command of a segment that owns an unterminated here-document and a command written in an operand (it answered "the call could not be read" there before: a question with the bit, not the rule's own answer).
|
|
2160
|
+
- **Not changed.** Class words, class order, which classes carry `requiresRealApproval`, the ordinary question's row; the exports and the closed sets (one optional member is added to the exported type `ShellReadPlan`: `unreadTail`). A text with no readable part (`echo 'x`, `cat <<EOF⏎x`), a removal whose own segment never closes its quote (`rm -rf ~ 'x`: bash runs none of it), and the hidden forms above read cell for cell as on 7.68.6.
|
|
2161
|
+
- **Who needs it / who it harms / the compensation.** Needed by runs under `bypassPermissions` or the blanket answer on either face, and on the open face under auto's classifier, a stored rule / pre-approval / class table in `default`, `acceptEdits` or `plan`, or a stored rule / pre-approval in `dontAsk`: the measured typo'd quote or unclosed here-document after `rm -rf ~` or `cat .env` let the statement run; on the narrowed face the other answerers still met `probe` (a question, or refusal in `dontAsk`). Harmed: a model that writes a deny-listed read before a same-line syntax error now gets a refusal instead of a shell error; the corrected text is refused as well (pinned for the gate matrix's statements), so none of those measured statements that could run is lost there. Compensation: none needed for those measured statements.
|
|
2162
|
+
- **Pins.** `test/backlog4862-readable-part.test.ts` — the shell facts (bash), the lexer's and the planner's reading, a gate matrix (7 statements a readable command has refused or forcibly asked × 14 tails × 11 arms: never looser than the statement alone except KL-4862-c, the rule lane's length bound, where a person's deny rule is a question with the real-approval bit instead of the refusal), the nine forms and six of their kin × 50 arms (equal to the statement alone for the nine and kin whose statement alone is refused or a person's; only “not looser” for kin whose statement alone is an ordinary question), 20 operand spellings × 3 statements × 11 arms (the operand's own quoting among them), 18 forms that must not move × 11 arms (equal, cell for cell, to their reading measured before this change).
|
|
2163
|
+
- **Consumers.** @server @cli: a black-box cell that pinned 7.68.6's release of `rm -rf ~; cat <<EOF` / `cat .env⏎echo 'x` reads the 7.68.5 answer again (a person with the bit / refused); `echo "${X:-$(cat .env)}"` is newly refused, stricter than 7.68.5 as well as 7.68.6 (it ran under `bypassPermissions` on both); the hidden forms (`… | xargs rm -rf`, `printf … | bash`, `rm "$(printf …)"`, `bash -c "$(echo rm ~)"`) do not move. @test: the forms, expected readings and error codes are in this release's receipt.
|
|
2164
|
+
- **Known limits.** KL-4862-a (statements the shell does not reach, judged as runs), KL-4862-b (a host shell that is zsh or ksh), KL-4862-c (the rule lane's length bound), KL-4862-d (where the lexer itself stops early inside a loop or an operand), KL-4862-e (a statement written after a construct the lexer cannot read past but the shell can — not judged, as on 7.68.6: under `bypassPermissions` or a blanket allow it runs unasked on both faces; auto's classifier and a stored rule / pre-approval / class table clear it on the open face (the latter three in `default`, `acceptEdits` and `plan`; only a stored rule / pre-approval in `dontAsk`); on the narrowed face those other answerers still meet `probe`, and `default` with no answerer still asks).
|
|
2165
|
+
|
|
2166
|
+
## 7.68.6 — 2026-11-17
|
|
2167
|
+
|
|
2168
|
+
### 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)
|
|
2169
|
+
|
|
2170
|
+
- **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.
|
|
2171
|
+
- **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).
|
|
2172
|
+
- **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).
|
|
2173
|
+
- **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:
|
|
2174
|
+
|
|
2175
|
+
| 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) |
|
|
2176
|
+
|---|---|---|---|---|---|
|
|
2177
|
+
| `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 |
|
|
2178
|
+
| `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 |
|
|
2179
|
+
| `rm -rf "$(printf /usr)"` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
2180
|
+
| `printf 'rm -rf /usr\n' \| bash` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
2181
|
+
| `bash -c "$(echo rm -rf ~)"` | runs / runs | asked / runs | asked / runs | asked / runs | asked / runs |
|
|
2182
|
+
| `echo /usr \| xargs rm -rf` | runs / runs | runs / runs | runs / runs | runs / runs | runs / runs |
|
|
2183
|
+
|
|
2184
|
+
- 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.
|
|
2185
|
+
- **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.
|
|
2186
|
+
- **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.
|
|
2187
|
+
- **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.
|
|
2188
|
+
- **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.
|
|
2189
|
+
- **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).
|
|
2190
|
+
- **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).
|
|
2191
|
+
- **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.
|
|
2192
|
+
|
|
2193
|
+
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)
|
|
2194
|
+
|
|
1612
2195
|
## 7.68.5 — 2026-11-16
|
|
1613
2196
|
|
|
1614
2197
|
### 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)
|