@sema-agent/core 7.72.0 → 7.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +565 -0
- package/dist/agents/inherited-tool-pool.d.ts +26 -1
- package/dist/agents/inherited-tool-pool.js +46 -2
- package/dist/agents/list-agents-tool.js +1 -1
- package/dist/agents/parked-resume-drive.d.ts +10 -0
- package/dist/agents/parked-resume-drive.js +9 -0
- package/dist/agents/retain-ledger.d.ts +3 -0
- package/dist/agents/retain-ledger.js +3 -3
- package/dist/agents/send-message-tool.js +5 -4
- package/dist/agents/send-user-message-tool.d.ts +12 -0
- package/dist/agents/send-user-message-tool.js +67 -0
- package/dist/agents/subagent-steps.d.ts +9 -0
- package/dist/agents/subagent-steps.js +38 -0
- package/dist/agents/subagent.d.ts +2 -0
- package/dist/agents/subagent.js +43 -12
- package/dist/agents/verify.js +23 -8
- package/dist/agents/yield-adoption.js +3 -1
- package/dist/brain/anthropic.d.ts +42 -1
- package/dist/brain/anthropic.js +68 -13
- package/dist/brain/failover.d.ts +5 -0
- package/dist/brain/failover.js +51 -22
- package/dist/brain/model-lane.d.ts +12 -3
- package/dist/brain/model-lane.js +5 -5
- package/dist/brain/open-responses.js +7 -8
- package/dist/brain/openai.js +31 -24
- package/dist/brain/route-adjudicator.d.ts +33 -4
- package/dist/brain/route-adjudicator.js +49 -12
- package/dist/brain/stream-engine.js +166 -156
- package/dist/brain/stream-shared.d.ts +4 -3
- package/dist/brain/stream-shared.js +2 -2
- package/dist/core/actions-digest.d.ts +43 -0
- package/dist/core/actions-digest.js +22 -0
- package/dist/core/allow-entry.js +4 -4
- package/dist/core/ask-class.d.ts +2 -2
- package/dist/core/ask-headline.d.ts +1 -1
- package/dist/core/ask-origin.d.ts +44 -4
- package/dist/core/ask-origin.js +29 -10
- package/dist/core/auto-mode.d.ts +7 -9
- package/dist/core/auto-mode.js +114 -8
- package/dist/core/background-agent-store.d.ts +1 -0
- package/dist/core/background-agent-store.js +49 -8
- package/dist/core/checkpoint-features.d.ts +3 -2
- package/dist/core/checkpoint-features.js +1 -1
- package/dist/core/checkpoint-rekey.d.ts +1 -1
- package/dist/core/checkpoint-rekey.js +6 -1
- package/dist/core/checkpoint-requirements.d.ts +23 -3
- package/dist/core/checkpoint-requirements.js +5 -1
- package/dist/core/checkpoint-row-verdict.d.ts +1 -1
- package/dist/core/checkpoint-row-verdict.js +9 -3
- package/dist/core/checkpoint-store.d.ts +26 -2
- package/dist/core/checkpoint-store.js +9 -2
- package/dist/core/child-clamp-seats.d.ts +15 -0
- package/dist/core/child-clamp-seats.js +15 -0
- package/dist/core/config-refusal-codes.d.ts +1 -1
- package/dist/core/config-refusal-codes.js +1 -0
- package/dist/core/cron.js +9 -1
- package/dist/core/delegation-frames.d.ts +1 -0
- package/dist/core/delegation-frames.js +1 -1
- package/dist/core/deployment-shape.d.ts +7 -0
- package/dist/core/deployment-shape.js +19 -0
- package/dist/core/engine-capabilities.d.ts +13 -1
- package/dist/core/engine-capabilities.js +1 -1
- package/dist/core/engine-notice.d.ts +41 -28
- package/dist/core/engine-version.js +1 -1
- package/dist/core/entries-not-applied.d.ts +19 -7
- package/dist/core/entries-not-applied.js +33 -1
- package/dist/core/gate-fold.js +5 -4
- package/dist/core/gate-lanes.js +8 -12
- package/dist/core/gate-outcome.d.ts +8 -2
- package/dist/core/gate-outcome.js +10 -3
- package/dist/core/governance-codes.d.ts +14 -2
- package/dist/core/governance-codes.js +22 -6
- package/dist/core/hook-condition.d.ts +37 -0
- package/dist/core/hook-condition.js +567 -0
- package/dist/core/hooks.d.ts +5 -0
- package/dist/core/hooks.js +1 -0
- package/dist/core/host-instance.d.ts +23 -0
- package/dist/core/host-instance.js +69 -0
- package/dist/core/instruction-preview.d.ts +63 -0
- package/dist/core/instruction-preview.js +406 -0
- package/dist/core/leg-budget.d.ts +26 -0
- package/dist/core/leg-budget.js +9 -0
- package/dist/core/leg-identity.d.ts +51 -1
- package/dist/core/leg-identity.js +45 -2
- package/dist/core/manager-launch-check.d.ts +48 -0
- package/dist/core/manager-launch-check.js +64 -0
- package/dist/core/mcp-call-meta.d.ts +2 -2
- package/dist/core/mcp-injection-drop.d.ts +20 -10
- package/dist/core/mcp-injection-drop.js +9 -3
- package/dist/core/mcp-server-spec.d.ts +2 -1
- package/dist/core/member-outcome.d.ts +3 -2
- package/dist/core/member-outcome.js +1 -1
- package/dist/core/memory-engine/deletion-record.d.ts +46 -0
- package/dist/core/memory-engine/deletion-record.js +96 -0
- package/dist/core/memory-engine/engine.js +24 -16
- package/dist/core/memory-engine/file-backend.js +7 -5
- package/dist/core/memory-engine/projection-ledger.d.ts +1 -1
- package/dist/core/memory-engine/projection-ledger.js +1 -1
- package/dist/core/memory-engine/scope-contract.d.ts +18 -13
- package/dist/core/memory-engine/scope-contract.js +18 -18
- package/dist/core/memory-engine/sync-client.js +26 -6
- package/dist/core/memory-engine/sync.d.ts +20 -2
- package/dist/core/memory-engine/sync.js +18 -17
- package/dist/core/mode-policy.d.ts +25 -6
- package/dist/core/mode-policy.js +33 -8
- package/dist/core/model-seat.d.ts +8 -5
- package/dist/core/model-shell.d.ts +129 -0
- package/dist/core/model-shell.js +249 -0
- package/dist/core/mods/kernel/digest.d.ts +4 -0
- package/dist/core/mods/kernel/digest.js +5 -0
- package/dist/core/mods/kernel/dispatch.d.ts +3 -0
- package/dist/core/mods/kernel/dispatch.js +15 -6
- package/dist/core/mods/kernel/events.d.ts +21 -5
- package/dist/core/mods/kernel/events.js +19 -10
- package/dist/core/mods/kernel/hash-mirror.d.ts +1 -0
- package/dist/core/mods/kernel/hash-mirror.js +55 -0
- package/dist/core/mods/kernel/index.d.ts +1 -0
- package/dist/core/mods/kernel/index.js +1 -0
- package/dist/core/mods/kernel/package-reader.d.ts +48 -0
- package/dist/core/mods/kernel/package-reader.js +149 -0
- package/dist/core/mods/kernel/site-rules.d.ts +4 -0
- package/dist/core/mods/kernel/site-rules.js +13 -0
- package/dist/core/mods/package.d.ts +7 -3
- package/dist/core/mods/package.js +47 -80
- package/dist/core/own-property-receipt.js +11 -4
- package/dist/core/parent-spec-seat.d.ts +13 -11
- package/dist/core/parent-spec-seat.js +13 -9
- package/dist/core/peer-seat.js +3 -3
- package/dist/core/peer-task-store.d.ts +365 -0
- package/dist/core/peer-task-store.js +682 -0
- package/dist/core/permission-rule-consent.js +6 -11
- package/dist/core/permission-rule-model.d.ts +27 -0
- package/dist/core/permission-rule-model.js +33 -5
- package/dist/core/permission-rule-org.js +13 -3
- package/dist/core/permission-rule-provider.d.ts +35 -33
- package/dist/core/permission-rule-provider.js +38 -295
- package/dist/core/permission-rule-store.d.ts +181 -8
- package/dist/core/permission-rule-store.js +420 -17
- package/dist/core/permission-rule-sync.js +15 -1
- package/dist/core/permission-rules.js +4 -1
- package/dist/core/project-seat.d.ts +55 -0
- package/dist/core/project-seat.js +96 -0
- package/dist/core/protocol-http-auth.d.ts +3 -2
- package/dist/core/protocol-http-auth.js +26 -18
- package/dist/core/remote-env.d.ts +4 -4
- package/dist/core/retain-seat.d.ts +42 -0
- package/dist/core/retain-seat.js +76 -0
- package/dist/core/retired-keys.js +1 -0
- package/dist/core/rewind-refusal-codes.d.ts +8 -0
- package/dist/core/rewind-refusal-codes.js +12 -0
- package/dist/core/roles.d.ts +2 -2
- package/dist/core/roles.js +15 -1
- package/dist/core/rule-offer-read.d.ts +1 -1
- package/dist/core/rule-offer-read.js +32 -4
- package/dist/core/rule-store-fault.d.ts +9 -7
- package/dist/core/rule-store-fault.js +8 -3
- package/dist/core/run-ledger-seat.d.ts +66 -0
- package/dist/core/run-ledger-seat.js +70 -0
- package/dist/core/run-ledger.d.ts +332 -0
- package/dist/core/run-ledger.js +550 -0
- package/dist/core/runner/checkpoint-scope.d.ts +14 -3
- package/dist/core/runner/checkpoint-scope.js +16 -6
- package/dist/core/runner/compact-session.js +1 -1
- package/dist/core/runner/construction-doors.js +8 -0
- package/dist/core/runner/contracts.d.ts +21 -5
- package/dist/core/runner/cross-boundary-lane.d.ts +8 -1
- package/dist/core/runner/cross-boundary-lane.js +4 -0
- package/dist/core/runner/delegation-owner.d.ts +30 -0
- package/dist/core/runner/delegation-owner.js +20 -4
- package/dist/core/runner/finish-reason-seat.js +4 -2
- package/dist/core/runner/gate-exit.d.ts +7 -0
- package/dist/core/runner/gate-exit.js +2 -1
- package/dist/core/runner/leg-frame.js +3 -0
- package/dist/core/runner/model-lane-seat.d.ts +3 -0
- package/dist/core/runner/model-lane-seat.js +4 -0
- package/dist/core/runner/nested-memory-lane.d.ts +22 -5
- package/dist/core/runner/nested-memory-lane.js +91 -30
- package/dist/core/runner/person-path-rows.d.ts +27 -16
- package/dist/core/runner/person-path-rows.js +93 -15
- package/dist/core/runner/prepare-caps-and-workflow.js +98 -88
- package/dist/core/runner/prepare-config-doors.d.ts +1 -0
- package/dist/core/runner/prepare-config-doors.js +13 -7
- package/dist/core/runner/prepare-context-lane.js +1 -0
- package/dist/core/runner/prepare-delegation-surface.d.ts +3 -0
- package/dist/core/runner/prepare-delegation-surface.js +6 -0
- package/dist/core/runner/prepare-execution-env.d.ts +3 -3
- package/dist/core/runner/prepare-gate-stations.d.ts +6 -0
- package/dist/core/runner/prepare-gate-stations.js +3 -1
- package/dist/core/runner/prepare-hands-readface.d.ts +5 -2
- package/dist/core/runner/prepare-hands-readface.js +15 -3
- package/dist/core/runner/prepare-inherited-gate.d.ts +6 -3
- package/dist/core/runner/prepare-inherited-gate.js +13 -5
- package/dist/core/runner/prepare-offload-wrappers.js +1 -1
- package/dist/core/runner/prepare-run-refs.d.ts +1 -1
- package/dist/core/runner/prepare-run-refs.js +3 -2
- package/dist/core/runner/prepare-suspend-saga.d.ts +6 -2
- package/dist/core/runner/prepare-suspend-saga.js +4 -2
- package/dist/core/runner/prepare-task.js +42 -30
- package/dist/core/runner/prepare-turn-wiring.d.ts +4 -3
- package/dist/core/runner/prepare-turn-wiring.js +2 -1
- package/dist/core/runner/prepare-wiring-manifest.d.ts +3 -1
- package/dist/core/runner/prepare-wiring-manifest.js +8 -6
- package/dist/core/runner/resume-apply.js +11 -5
- package/dist/core/runner/resume-policy-outcome.js +5 -2
- package/dist/core/runner/resume-review-outcome.d.ts +3 -0
- package/dist/core/runner/resume-review-outcome.js +24 -1
- package/dist/core/runner/role-seat-defaulted.d.ts +3 -3
- package/dist/core/runner/role-seat-defaulted.js +1 -1
- package/dist/core/runner/rule-store-unreadable-notice.d.ts +1 -1
- package/dist/core/runner/rule-store-unreadable-notice.js +3 -3
- package/dist/core/runner/run-harness-handlers.js +4 -1
- package/dist/core/runner/run-identity-wiring.js +3 -2
- package/dist/core/runner/run-leg.js +5 -2
- package/dist/core/runner/run-notification-lane.js +20 -1
- package/dist/core/runner/run-settle-and-teardown.js +21 -12
- package/dist/core/runner/run-stop-and-final-verify.js +6 -0
- package/dist/core/runner/run-telemetry-and-budget-seats.js +1 -1
- package/dist/core/runner/runtask.d.ts +6 -2
- package/dist/core/runner/runtask.js +21 -9
- package/dist/core/runner/shell-env-withheld.d.ts +6 -4
- package/dist/core/runner/shell-env-withheld.js +25 -3
- package/dist/core/runner/stop-tail-notice.d.ts +10 -2
- package/dist/core/runner/stop-tail-notice.js +9 -2
- package/dist/core/runner/stream-settle-backstop.d.ts +1 -0
- package/dist/core/runner/stream-settle-backstop.js +1 -0
- package/dist/core/runner/sub-agent-deny-lists.js +9 -5
- package/dist/core/runner/task-start-doors.js +6 -3
- package/dist/core/runner/terminal-account.d.ts +6 -1
- package/dist/core/runner/terminal-account.js +16 -1
- package/dist/core/runner/tool-end-body.d.ts +1 -1
- package/dist/core/runner/tool-not-executed.d.ts +27 -8
- package/dist/core/runner/tool-not-executed.js +22 -11
- package/dist/core/runner/unreadable-person-rows.d.ts +2 -1
- package/dist/core/runner/write-protection-station.d.ts +1 -1
- package/dist/core/runner/write-protection-station.js +1 -1
- package/dist/core/runner-deps.d.ts +17 -10
- package/dist/core/secret-env.d.ts +61 -37
- package/dist/core/secret-env.js +49 -49
- package/dist/core/session-checkout.d.ts +3 -0
- package/dist/core/session-checkout.js +1 -0
- package/dist/core/session-store.d.ts +12 -6
- package/dist/core/session-store.js +26 -6
- package/dist/core/session.d.ts +31 -8
- package/dist/core/shell-read-silence.d.ts +40 -2
- package/dist/core/shell-read-silence.js +23 -4
- package/dist/core/store-contracts/checkpoint-store-contract.js +10 -0
- package/dist/core/store-contracts/peer-task-store-contract.d.ts +21 -0
- package/dist/core/store-contracts/peer-task-store-contract.js +516 -0
- package/dist/core/store-contracts/session-store-contract.d.ts +15 -2
- package/dist/core/store-contracts/session-store-contract.js +87 -3
- package/dist/core/store-contracts/workflow-journal-store-contract.d.ts +19 -1
- package/dist/core/store-contracts/workflow-journal-store-contract.js +89 -1
- package/dist/core/task-event.d.ts +14 -7
- package/dist/core/task-notification.d.ts +96 -10
- package/dist/core/task-notification.js +135 -6
- package/dist/core/task-registry-agent.d.ts +1 -0
- package/dist/core/task-registry-agent.js +1 -1
- package/dist/core/task-registry-shared.d.ts +12 -1
- package/dist/core/task-registry-shared.js +3 -1
- package/dist/core/task-registry-workflow.d.ts +1 -1
- package/dist/core/task-registry-workflow.js +9 -1
- package/dist/core/task-registry.d.ts +40 -2
- package/dist/core/task-registry.js +80 -15
- package/dist/core/task-result.d.ts +18 -3
- package/dist/core/task-spec-members.d.ts +3 -1
- package/dist/core/task-spec-members.js +19 -3
- package/dist/core/task-spec.d.ts +48 -22
- package/dist/core/tool-catalog-entries.js +2 -0
- package/dist/core/tool-gate-phase.d.ts +6 -3
- package/dist/core/tool-gate-phase.js +1 -0
- package/dist/core/tool-mount-facts.d.ts +8 -4
- package/dist/core/tool-mount-facts.js +7 -2
- package/dist/core/tool-mount-plan.d.ts +3 -1
- package/dist/core/tool-mount-plan.js +10 -3
- package/dist/core/tool-mount-static.d.ts +1 -1
- package/dist/core/tool-mount-static.js +4 -2
- package/dist/core/tool-result-store.d.ts +56 -3
- package/dist/core/tool-result-store.js +219 -25
- package/dist/core/tool-spec.d.ts +9 -2
- package/dist/core/trace.d.ts +3 -3
- package/dist/core/user-attachment.d.ts +5 -1
- package/dist/core/user-attachment.js +14 -7
- package/dist/core/wiring-manifest.d.ts +26 -20
- package/dist/core/wiring-manifest.js +7 -3
- package/dist/core/workflow-journal-store.d.ts +53 -10
- package/dist/core/workflow-journal-store.js +27 -4
- package/dist/core/workflow-run-store-contract.js +16 -0
- package/dist/core/workflow-run-store.d.ts +9 -7
- package/dist/core/workflow-run-store.js +4 -1
- package/dist/engine/execution-env/node-execution-env.d.ts +75 -1
- package/dist/engine/execution-env/node-execution-env.js +227 -13
- package/dist/engine/harness/types.d.ts +49 -1
- package/dist/engine/harness/types.js +10 -0
- package/dist/engine/llm/types.d.ts +13 -7
- package/dist/engine/llm/validation.d.ts +8 -1
- package/dist/engine/llm/validation.js +31 -2
- package/dist/engine/lsp/node-lsp-manager.js +2 -1
- package/dist/engine/session/import-validate.js +6 -1
- package/dist/engine/session/session.d.ts +15 -2
- package/dist/engine/session/session.js +34 -4
- package/dist/host-env.d.ts +10 -0
- package/dist/host-env.js +1 -0
- package/dist/index.d.ts +28 -9
- package/dist/index.js +22 -6
- package/dist/internal/harness-types.d.ts +1 -1
- package/dist/orchestration/goal.js +1 -1
- package/dist/orchestration/run-workflow-tool.js +40 -32
- package/dist/orchestration/workflow-park-adoption.d.ts +51 -12
- package/dist/orchestration/workflow-park-adoption.js +47 -12
- package/dist/orchestration/workflow-primitives.js +10 -1
- package/dist/orchestration/workflow-script-runner.d.ts +2 -2
- package/dist/orchestration/workflow-stop.d.ts +128 -0
- package/dist/orchestration/workflow-stop.js +156 -0
- package/dist/orchestration/workflow.d.ts +31 -7
- package/dist/orchestration/workflow.js +119 -57
- package/dist/prompts/manager-recipe.d.ts +18 -0
- package/dist/prompts/manager-recipe.js +24 -0
- package/dist/shell/lex.d.ts +2 -2
- package/dist/shell/lex.js +1 -1
- package/dist/stores/file/permission-rule-store.d.ts +3 -1
- package/dist/stores/file/permission-rule-store.js +0 -1
- package/dist/stores/file/workflow-journal-store.d.ts +16 -3
- package/dist/stores/file/workflow-journal-store.js +93 -5
- package/dist/stores/file/workflow-run-store.d.ts +1 -1
- package/dist/tools/fs/bash-model-shell.d.ts +23 -0
- package/dist/tools/fs/bash-model-shell.js +25 -0
- package/dist/tools/fs/bash-readonly-classifier.d.ts +6 -0
- package/dist/tools/fs/bash-readonly-classifier.js +3 -0
- package/dist/tools/fs/file-write-check.js +9 -3
- package/dist/tools/fs/fs-bash.js +13 -11
- package/dist/tools/fs/index.d.ts +8 -7
- package/dist/tools/fs/index.js +4 -4
- package/dist/tools/fs/read-deny-home.d.ts +1 -1
- package/dist/tools/fs/read-deny-home.js +5 -5
- package/dist/tools/fs/read-deny.d.ts +33 -8
- package/dist/tools/fs/read-deny.js +114 -25
- package/dist/tools/fs/safety.d.ts +4 -1
- package/dist/tools/fs/safety.js +4 -2
- package/dist/tools/fs/shell-read-argv.js +1 -0
- package/dist/tools/fs/shell-read-check.d.ts +9 -2
- package/dist/tools/fs/shell-read-check.js +134 -22
- package/dist/tools/fs/shell-read-establish.d.ts +9 -0
- package/dist/tools/fs/shell-read-establish.js +21 -11
- package/dist/tools/fs/shell-read-judge.d.ts +13 -1
- package/dist/tools/fs/shell-read-judge.js +26 -7
- package/dist/tools/fs/shell-read-plan.d.ts +7 -3
- package/dist/tools/fs/shell-read-plan.js +8 -5
- package/dist/tools/fs/shell-read-word.d.ts +8 -0
- package/dist/tools/fs/shell-read-word.js +13 -4
- package/dist/tools/fs/shell-read-write-targets.js +17 -9
- package/dist/tools/monitor.js +12 -8
- package/dist/tools/scheduler-tools.d.ts +1 -0
- package/dist/tools/scheduler-tools.js +5 -2
- package/package.json +3 -2
- package/test/export-surface.snapshot.json +192 -3
- package/wire-changes/answers/core-stores-sql@7.73.0.json +28 -0
- package/wire-changes/answers/core-stores-sql@7.74.0.json +7 -0
- package/wire-changes/answers/core@7.73.0.json +216 -0
- package/wire-changes/answers/core@7.74.0.json +68 -0
- package/wire-changes/answers/mods-kernel@7.73.0.json +7 -0
- package/wire-changes/answers/mods-kernel@7.74.0.json +21 -0
- package/wire-changes/answers/primitives@7.73.0.json +12 -0
- package/wire-changes/answers/primitives@7.74.0.json +7 -0
- package/wire-changes/answers/wiki-gate@7.73.0.json +7 -0
- package/wire-changes/answers/wiki-gate@7.74.0.json +8 -0
- package/wire-changes/core-stores-sql@7.73.0.json +326 -0
- package/wire-changes/core-stores-sql@7.74.0.json +143 -0
- package/wire-changes/core@7.73.0.json +6480 -0
- package/wire-changes/core@7.74.0.json +2210 -0
- package/wire-changes/mods-kernel@7.73.0.json +147 -0
- package/wire-changes/mods-kernel@7.74.0.json +421 -0
- package/wire-changes/primitives@7.73.0.json +227 -0
- package/wire-changes/primitives@7.74.0.json +174 -0
- package/wire-changes/wiki-gate@7.73.0.json +145 -0
- package/wire-changes/wiki-gate@7.74.0.json +145 -0
|
@@ -112,13 +112,13 @@ export interface EngineNotice {
|
|
|
112
112
|
* A run whose deployment turned the listing off (`attachments.skillsListing: false`) emits nothing,
|
|
113
113
|
* since nothing is rendered. There is NO dedup key: each notice is one delivered frame`s cost, and
|
|
114
114
|
* a frame is delivered (and committed) once.
|
|
115
|
-
* - `"tool_result.offload_put_failed"` (#167) — a clear-with-offload
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
* occurrenceId
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
115
|
+
* - `"tool_result.offload_put_failed"` (#167) — a clear-with-offload put failed: THIS attempt stored nothing and nothing is
|
|
116
|
+
* re-inserted under the ref (an earlier attempt of the same idempotent re-put may have stored the row: a failed write, not an
|
|
117
|
+
* empty ref); `detail: { ref, sessionId, cause, occurrenceId }`, per occurrence (`ref` names the row, not the attempt), dedup
|
|
118
|
+
* key (code, occurrenceId). The session's own entry with no identity recorded is told ONCE PER SESSION instead (its own sentence).
|
|
119
|
+
* - `"tool_result.offload_put_unsettled"` — an engine-awaited tool-result store write did not settle at `OFFLOAD_PUT_WAIT_BOUND_MS` (10 000 ms), so the waiting site finished as unconfirmed: a cleared batch's request still goes out (never waited on again; each write runs on: lands ⇒ reads back, fails ⇒ `tool_result.offload_put_failed`),
|
|
120
|
+
* or a tool call's result is returned as is (and any unsettled `details` member carries no ref);
|
|
121
|
+
* told once per request batch, or once per tool call covering its body and `details` writes pending at the bound, `detail: { refs, sessionId, boundMs, occurrenceId }`; a cancel tells nothing.
|
|
122
122
|
* - `"tool_result.media_refused"` — an executed call's result carried media blocks (an image or a document, from
|
|
123
123
|
* an MCP server, a host tool, an engine tool or a `tool_result` hook's replacement) whose bytes the tool-result
|
|
124
124
|
* seat's admission refused: not a base64 payload, a media type outside the closed set, over the cap, bytes
|
|
@@ -589,8 +589,8 @@ export interface EngineNotice {
|
|
|
589
589
|
* output — a later ending, an error, a frame that only closes or opens a message (attention `inform`); the next code is the other.
|
|
590
590
|
* - `"route.stream_content_dropped"` (7.70.0) — among the frames refused after the end, at least one carried the model's
|
|
591
591
|
* output (text, reasoning, a refusal, a tool call, or a block that opens one: `streamEndIgnored.contentDropped`), which the
|
|
592
|
-
* turn does not have. ONCE PER LEG PER word. Audience `user`, attention `act`; `detail: { word, frames, sessionId, runId }` —
|
|
593
|
-
* `word` the first such frame's kind, `frames` how many frames came after the end in all.
|
|
592
|
+
* turn does not have. ONCE PER LEG PER word. Audience `user`, attention `act`; `detail: { word, ending?, frames, sessionId, runId }` —
|
|
593
|
+
* `word` the first such frame's kind, `ending` present iff the first late frame was itself an ending frame (`content_filter`, `length`, …), `frames` how many frames came after the end in all.
|
|
594
594
|
* - `"route.extra_body_reserved_dropped"` (#1520) — a request's `Model.extraBody` carried keys the wire adapter
|
|
595
595
|
* sets itself (`temperature`, `max_tokens`, `stop`, the thinking-enable keys, `messages`, `tools`, …), so the
|
|
596
596
|
* adapter stripped them and the request went out with the engine's value (or without the key); core wins, and
|
|
@@ -803,6 +803,11 @@ export interface EngineNotice {
|
|
|
803
803
|
* names the way out (build a new execution environment). The environment's own seat hears it once; a run on that
|
|
804
804
|
* environment also hands it to the Runner's seat (`RunnerDeps.onNotice`) — the same words, once per run, as a tool call
|
|
805
805
|
* ends — with `sessionId` and `runId` added to the detail: `{ index, name, sessionId, runId }`.
|
|
806
|
+
* - `"config.model_shell_unmounted"` — a leg with hands on an I/O environment and no start for model-written shell text ready
|
|
807
|
+
* (`ExecutionEnv.modelShell` undeclared or unavailable): Bash, Monitor and background commands are not offered; once per leg;
|
|
808
|
+
* audience `operator`; `detail: { reason: "undeclared" | "unavailable", cause? }` (built by `modelShellUnmountedNotice`).
|
|
809
|
+
* - `"config.shell_state_env_dropped"` — variables of `SHELL_STATE_ENV` a start did not pass (configuration's, and the host process's
|
|
810
|
+
* own by each row's rule), as the call that started it ends, each once per run; audience `operator`; `detail: { keys }`, names only.
|
|
806
811
|
* - `"config.command_sandbox_unavailable"` — the task requires a command sandbox (`TaskSpec.sandbox.enabled`) with
|
|
807
812
|
* `failIfUnavailable: false`, and its execution environment keeps none (`capabilities.commandSandbox` is not true): the
|
|
808
813
|
* run proceeds and its commands run unsandboxed. Under `failIfUnavailable` (its default) the prepare fails with the same
|
|
@@ -871,13 +876,13 @@ export interface EngineNotice {
|
|
|
871
876
|
* {@link ENGINE_NOTICE_CODES}, and a consumer table must not keep a row for them.
|
|
872
877
|
* - `"permission.rule_store_unavailable"` — the person's persisted permission rules could not be read (a read
|
|
873
878
|
* failure, a corrupt or unreadable store, a read that did not answer in time), so that read's rows were SKIPPED:
|
|
874
|
-
* none of their allow, ask or deny rows took part in the decisions it served.
|
|
875
|
-
*
|
|
876
|
-
*
|
|
879
|
+
* none of their allow, ask or deny rows took part in the decisions it served. Told under every mode (at `"call"`, class
|
|
880
|
+
* `rule_unreadable`: asking modes ask, a headless run refuses; under a mode that answers the class unasked — auto's classifier, the bypass
|
|
881
|
+
* release — the sentence states that cost, and the operator's notice below, `gate.disposition` `released` / `asked` and the trace also record it); at `"prepare"` the
|
|
877
882
|
* run's path tables lack the rows for the whole run. `detail.at` names the read that found it first: `"prepare"` (the path rows the run's file and
|
|
878
883
|
* shell checks take at run start — the next run reads them again) or `"call"` (one call's own rule check — every
|
|
879
|
-
* later call reads again, so the rows apply as soon as a read succeeds). Told once per SESSION per fault set
|
|
880
|
-
* through the session's announced record (`AnnounceOnceLedger.oncePerSession`): the first read that finds it tells it, a later run of
|
|
884
|
+
* later call reads again, so the rows apply as soon as a read succeeds). Told once per SESSION per fault set — a fault first found at a
|
|
885
|
+
* call, once per run — through the session's announced record (`AnnounceOnceLedger.oncePerSession`): the first read that finds it tells it, a later run of
|
|
881
886
|
* the same session over the same fault set says nothing, a different fault set is told again, a run with no session record to read tells
|
|
882
887
|
* it once per run, and a delegated agent's child (a session of its own) tells it once itself; the trace keeps every read's line (`permission.rule_store_unreadable`).
|
|
883
888
|
* `detail: { at, sessionId, runId, faults }` — `faults` one `{ sources, reason }` per partition the read could not read (a read
|
|
@@ -887,7 +892,7 @@ export interface EngineNotice {
|
|
|
887
892
|
* others), `owner_mismatch` (the folder is another account's), `damaged` (the stored rules, or what holds them, are damaged or not in
|
|
888
893
|
* a form this engine reads: for a file store a link, not an ordinary file, bytes that are no rule file, or a marker that is none), `later_grammar` (a newer engine wrote them), `no_answer` (the read did not answer in time) or `unclassified` (a
|
|
889
894
|
* store that states none of these). The sentence names the partition, the cause and the repair; no path rides the notice (the store's own disclosure line carries where). Audience `user`.
|
|
890
|
-
* - `"permission.rule_store_unreadable_relaxed"` — the same fact where the leg's mode answers the class with nobody asked (`auto`, `bypassPermissions`),
|
|
895
|
+
* - `"permission.rule_store_unreadable_relaxed"` — the same fact where the leg's mode answers the class with nobody asked (`auto`, `bypassPermissions`), beside the person's notice above; once per SESSION per (fault set, mode) — a fault first found at a call, once per run — `detail: { at, mode, sessionId, runId, faults }` (as above; no rule text, no path). Also minted, under those modes only, for deny or ask rows whose rule itself could not be read (`EffectivePermissionRules.unreadableRows` other than `as_read`): the calls they may reach take the same class (`faults`: `damaged` over the sources their scopes name). Audience `operator`.
|
|
891
896
|
* - `"permission.revival_root_policy_unrestated"` (7.71.0) — a resume on the runner that holds a parked agent's chain live (it registered it when the agent last parked there: its spawn, or an earlier revival there), handed no root task policy (`RunInternals.rootPolicy` / `parkedResume.rootPolicy`) for a chain that carries the root task's own layer: the chain it runs under keeps that layer as registered (on another runner the same resume is refused for it). Said on the resuming runner's `onNotice` the moment the resume's claim is won, before the leg starts — an attempt refused before the claim, or one that loses it, says nothing; a start that fails after the claim and reopens the row says it again on the next won claim (no per-token suppression). `detail: { sessionId }` (the revived leg's). Audience `operator`, attention `act`.
|
|
892
897
|
* - `"config.entries_not_applied"` (7.70.0) — an entry the person wrote did not apply. One frame per kind (`detail.kind`, closed
|
|
893
898
|
* `ENTRIES_NOT_APPLIED_KINDS`), each told as its own mint decides and in its own sentence; `detail: { kind, entries, count, identity,
|
|
@@ -896,23 +901,23 @@ export interface EngineNotice {
|
|
|
896
901
|
* could not be read —, a server's name, a model word) and the kind's own members; `count` all of them; `identity` an opaque digest of
|
|
897
902
|
* the whole set (equal for the same set). Audience `user`, attention `act`. The kinds:
|
|
898
903
|
* · `stored_rule_row` — the person's store served rows that take no part in this run's checks (a foreign writer's or a hand
|
|
899
|
-
* edit's, in practice):
|
|
900
|
-
*
|
|
901
|
-
*
|
|
902
|
-
*
|
|
903
|
-
*
|
|
904
|
-
*
|
|
905
|
-
*
|
|
906
|
-
*
|
|
907
|
-
*
|
|
908
|
-
*
|
|
904
|
+
* edit's, in practice): project-scoped rows whose scope root is not a complete absolute path — a deny or ask row among them
|
|
905
|
+
* protects nothing — and allow rows whose text is not the canonical spelling of their stored fields, or a member of which
|
|
906
|
+
* could not be read as the type it holds (they allow nothing), until rewritten or removed; and rows of either personal
|
|
907
|
+
* partition a member of which could not be read (`EffectivePermissionRules.unreadableRows`: a deny/ask whose tool, match and
|
|
908
|
+
* path read, or whose text says them, applies as written; one neither of whose spellings reads — or an entry whose behavior
|
|
909
|
+
* word could not be read — stands at its strictest reading so no allow clears a call it may reach). Once per run, by whichever
|
|
910
|
+
* read met them first; one sentence per cause present. Each entry: `reason` (`scope_root_not_absolute` / `invalid_rule_text`
|
|
911
|
+
* / `metadata_mismatch`), `scopeRoot?` (scope rows only, neutralized and bounded), `member?` (the first member that could not
|
|
912
|
+
* be read), `behavior?` (a deny or ask row whose behavior word read), `element?` (host-supplied views only: `{ partition,
|
|
913
|
+
* index, read }`). Left-out rows first. Routing `sessionId`, `runId`.
|
|
909
914
|
* · `rule_text_unreadable` — a leg's own tool policy left out rules a person's settings layer (`user` / `project`) wrote whose
|
|
910
915
|
* text the compiler cannot read (`ToolPolicy.skippedRules`); a deny or ask rule among them is NOT in force, each in its own
|
|
911
916
|
* clause. At prepare on every leg, for rules no ancestor of its delegation chain holds; once per session per set. Each entry:
|
|
912
917
|
* `reason` (the issue code), `behavior`, `layer`. Routing: the leg notice's (`sessionId`, `sourceSessionId?`, `agentId?`), `runId`.
|
|
913
|
-
* · `mcp_injection_dropped` — an
|
|
914
|
-
*
|
|
915
|
-
*
|
|
918
|
+
* · `mcp_injection_dropped` — an MCP server declaration was NOT mounted (request-lane drop at host intake, or agent-definition
|
|
919
|
+
* entry shadowed at spawn; minted through `mcpInjectionDroppedNotice`). One entry: `entry` (server name), `reason`
|
|
920
|
+
* (`MCP_INJECTION_DROP_REASONS`), `field?`, `agent?`. Routing `sessionId` (required at the mint; root session for agent drops).
|
|
916
921
|
* · `model_word_unknown` — a role seat (other than `default` and `classifier`) names a model word the catalog does not hold, or a
|
|
917
922
|
* tier the deployment's tiers leave absent, so the seat is read as an unset one and the run goes on. Once per SESSION per
|
|
918
923
|
* (seat, word, cause), root legs only. One entry: `entry` the word (bounded), `seat`, `role`, `reason` (`unknown_model_ref` /
|
|
@@ -1169,6 +1174,14 @@ export interface EngineNotice {
|
|
|
1169
1174
|
* the sentence names each task with what the run's end does to it. A stop that lands on the run's tail after this cut no wait:
|
|
1170
1175
|
* its `task.interrupt_unconsumed` carries `waitedFor: []`. Audience `"user"`, attention `act` (the result carries nothing from them).
|
|
1171
1176
|
*
|
|
1177
|
+
* - `"task.manager_launch_narrowed"` — a run that declares a member ledger (`TaskSpec.runLedger`) took its launch check
|
|
1178
|
+
* (`managerLaunchCheck`) at prepare and starts narrowed: something it needs for part of its job is missing (read hands, the
|
|
1179
|
+
* worker-record tool, isolated checks, an approval route for its workers' writes, the task list). Once per prepared leg:
|
|
1180
|
+
* `detail: { sessionId, runId, taskId?, launch }`, `launch` the check (`{ verdict, items: [{ item, state, means? }] }`); the
|
|
1181
|
+
* sentence names each missing item and what it means. An item that could not be read is `unknown` and narrows nothing. A check
|
|
1182
|
+
* whose missing item refuses (no background delegation lane, no report tool) refuses the run instead (`config.invalid_argument`,
|
|
1183
|
+
* `detail.reason: "run_ledger_unready"`). Audience `"user"`, attention `act`.
|
|
1184
|
+
*
|
|
1172
1185
|
* - `"approval.read_root_granted"` / `"approval.read_root_grant_rejected"` — an approver's `readRootGrant`
|
|
1173
1186
|
* (`AskOutcome`, with its `readRootGrantLasts`). GRANTED: it equalled the card's `readRootCandidate.dir` beside
|
|
1174
1187
|
* `allow: true`; the READ directories now include it (never the write roots), for `detail.lasts`: `"session"` — a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const ENGINE_VERSION = "7.
|
|
1
|
+
export const ENGINE_VERSION = "7.74.0";
|
|
@@ -13,10 +13,22 @@ export type EntryNotApplied = {
|
|
|
13
13
|
} & {
|
|
14
14
|
readonly [key: string]: EntryMember;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
/** Detail shape minted by {@link entriesNotAppliedDetail}. `entries` lists at most {@link ENTRIES_NOT_APPLIED_SHOWN} entries
|
|
17
|
+
* ordered severest-first ({@link orderEntriesBySeverity}); `count` counts all entries; `identity` digests the full set. */
|
|
18
|
+
export interface EntriesNotAppliedDetail {
|
|
19
|
+
readonly kind: EntriesNotAppliedKind;
|
|
20
|
+
readonly entries: EntryNotApplied[];
|
|
21
|
+
readonly count: number;
|
|
22
|
+
readonly identity: string;
|
|
23
|
+
/** Per-reason totals across the full entry set. Present iff the list was cut (`count > ENTRIES_NOT_APPLIED_SHOWN`) and at least one entry carries a string `reason`. */
|
|
24
|
+
readonly reasonCounts?: Readonly<Record<string, number>>;
|
|
25
|
+
}
|
|
26
|
+
/** Stable severest-first ordering shared by {@link entriesNotAppliedDetail} and message renderers so the sentence and
|
|
27
|
+
* `detail.entries` surface the same high-severity entries when a list is cut. */
|
|
28
|
+
export declare function orderEntriesBySeverity<T extends {
|
|
29
|
+
readonly entry?: unknown;
|
|
30
|
+
readonly reason?: unknown;
|
|
31
|
+
readonly behavior?: unknown;
|
|
32
|
+
}>(all: readonly T[]): T[];
|
|
33
|
+
/** The `kind`, `entries`, `count`, `identity` (and cut-only `reasonCounts`) members of one frame over every entry of the kind. */
|
|
34
|
+
export declare function entriesNotAppliedDetail(kind: EntriesNotAppliedKind, all: readonly EntryNotApplied[]): EntriesNotAppliedDetail;
|
|
@@ -17,11 +17,43 @@ function canonical(v) {
|
|
|
17
17
|
return `{${Object.keys(v).sort().map((k) => `${JSON.stringify(k)}:${canonical(v[k])}`).join(",")}}`;
|
|
18
18
|
return JSON.stringify(v) ?? "null";
|
|
19
19
|
}
|
|
20
|
+
function entrySeverityRank(e) {
|
|
21
|
+
if (e.reason === "wildcard_all" && e.entry === "*")
|
|
22
|
+
return 0;
|
|
23
|
+
if (e.reason === "wildcard_all" || e.reason === "namespace_wildcard" || e.reason === "wildcard_tool")
|
|
24
|
+
return 1;
|
|
25
|
+
if (e.behavior === "deny")
|
|
26
|
+
return 2;
|
|
27
|
+
if (e.behavior === "ask")
|
|
28
|
+
return 3;
|
|
29
|
+
return 4;
|
|
30
|
+
}
|
|
31
|
+
export function orderEntriesBySeverity(all) {
|
|
32
|
+
return all
|
|
33
|
+
.map((item, index) => ({ item, index, rank: entrySeverityRank(item) }))
|
|
34
|
+
.sort((a, b) => a.rank - b.rank || a.index - b.index)
|
|
35
|
+
.map((x) => x.item);
|
|
36
|
+
}
|
|
20
37
|
export function entriesNotAppliedDetail(kind, all) {
|
|
38
|
+
const ordered = orderEntriesBySeverity(all);
|
|
39
|
+
let reasonCounts;
|
|
40
|
+
if (all.length > ENTRIES_NOT_APPLIED_SHOWN) {
|
|
41
|
+
const counts = {};
|
|
42
|
+
let hasReason = false;
|
|
43
|
+
for (const e of all) {
|
|
44
|
+
if (typeof e.reason === "string") {
|
|
45
|
+
counts[e.reason] = (counts[e.reason] ?? 0) + 1;
|
|
46
|
+
hasReason = true;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
if (hasReason)
|
|
50
|
+
reasonCounts = counts;
|
|
51
|
+
}
|
|
21
52
|
return {
|
|
22
53
|
kind,
|
|
23
|
-
entries:
|
|
54
|
+
entries: ordered.slice(0, ENTRIES_NOT_APPLIED_SHOWN).map((e) => ({ ...e })),
|
|
24
55
|
count: all.length,
|
|
25
56
|
identity: announceDigest(`config.entries_not_applied:${kind}`, all.map(canonical).sort().join("\n")),
|
|
57
|
+
...(reasonCounts !== undefined ? { reasonCounts } : {}),
|
|
26
58
|
};
|
|
27
59
|
}
|
package/dist/core/gate-fold.js
CHANGED
|
@@ -89,6 +89,7 @@ export async function runGateFold(pass) {
|
|
|
89
89
|
traceHookCrash(input, new Error(`shell read station ${kind === "timeout" ? "timed out" : "threw"} for tool "${toolName}" (toolCallId ${toolCallId}) — where this call reads could not be established: ${thrownText(err)}`), notifier);
|
|
90
90
|
}
|
|
91
91
|
verdict = station.unanswered(pass.req, kind === "timeout" ? "the read station timed out" : "the read station could not answer");
|
|
92
|
+
pass.shellReadFallback = true;
|
|
92
93
|
}
|
|
93
94
|
applyShellReadVerdict(pass, verdict, toolName, input.shellGated === true);
|
|
94
95
|
}
|
|
@@ -265,7 +266,7 @@ function applyStationDisposition(pass, reading, toolName, shellGated) {
|
|
|
265
266
|
pass.shellReadDetails = verdict.details;
|
|
266
267
|
if (pass.decision.action !== "allow") {
|
|
267
268
|
if (pass.decision.action === "ask")
|
|
268
|
-
pass.decision = silencedBy(withProbeMandate(pass.decision, account), verdict, pass.req);
|
|
269
|
+
pass.decision = silencedBy(withProbeMandate(pass.decision, account), verdict, pass.req, pass);
|
|
269
270
|
return;
|
|
270
271
|
}
|
|
271
272
|
const candidate = normalizeReadRootCandidate(verdict.readRootCandidate);
|
|
@@ -276,7 +277,7 @@ function applyStationDisposition(pass, reading, toolName, shellGated) {
|
|
|
276
277
|
probeMandated: true,
|
|
277
278
|
...(account !== undefined ? { probeReason: account } : {}),
|
|
278
279
|
...(candidate !== undefined ? { probeReadRootCandidate: candidate } : {}),
|
|
279
|
-
}, verdict, pass.req);
|
|
280
|
+
}, verdict, pass.req, pass);
|
|
280
281
|
if (candidate !== undefined)
|
|
281
282
|
pass.shellReadOffer = true;
|
|
282
283
|
pass.tightenedBy = shellGated ? "shell_gate" : "safety";
|
|
@@ -288,7 +289,7 @@ function applyStationDisposition(pass, reading, toolName, shellGated) {
|
|
|
288
289
|
pass.shellReadDetails = verdict.details;
|
|
289
290
|
const cause = verdict.cause !== undefined ? normalizeProbeCause(verdict.cause) : undefined;
|
|
290
291
|
if (pass.decision.action === "ask")
|
|
291
|
-
pass.decision = silencedBy(cause !== undefined && pass.decision.probeCause === undefined ? { ...pass.decision, probeCause: cause } : pass.decision, verdict, pass.req);
|
|
292
|
+
pass.decision = silencedBy(cause !== undefined && pass.decision.probeCause === undefined ? { ...pass.decision, probeCause: cause } : pass.decision, verdict, pass.req, pass);
|
|
292
293
|
if (pass.decision.action === "allow") {
|
|
293
294
|
const candidate = normalizeReadRootCandidate(verdict.readRootCandidate);
|
|
294
295
|
pass.decision = silencedBy({
|
|
@@ -298,7 +299,7 @@ function applyStationDisposition(pass, reading, toolName, shellGated) {
|
|
|
298
299
|
...(account !== undefined ? { probeReason: account } : {}),
|
|
299
300
|
...(cause !== undefined ? { probeCause: cause } : {}),
|
|
300
301
|
...(candidate !== undefined ? { probeReadRootCandidate: candidate } : {}),
|
|
301
|
-
}, verdict, pass.req);
|
|
302
|
+
}, verdict, pass.req, pass);
|
|
302
303
|
if (candidate !== undefined)
|
|
303
304
|
pass.shellReadOffer = true;
|
|
304
305
|
pass.tightenedBy = shellGated ? "shell_gate" : "safety";
|
package/dist/core/gate-lanes.js
CHANGED
|
@@ -12,10 +12,9 @@ import { routesContent } from "./tool-catalog-entries.js";
|
|
|
12
12
|
import { applyPersistedTightening, disclosedRuleSet } from "./persisted-rule-arms.js";
|
|
13
13
|
import { skillAllowDecision, skillRowRefusal } from "./skill-grant.js";
|
|
14
14
|
import { allowRuleShadowOf, askFallbackMessage, cardDisclosureOf, inheritedAskFallbackMessage, withAllowRuleShadow } from "./allow-entry.js";
|
|
15
|
-
import { CD_GIT_COMPOUND_SENTENCE, changesDirectoryBeforeGit
|
|
16
|
-
import { readShellCommand } from "./shell-run-candidates.js";
|
|
15
|
+
import { CD_GIT_COMPOUND_SENTENCE, changesDirectoryBeforeGit } from "./read-only-shell.js";
|
|
17
16
|
import { COMMAND_RULE_TOOL, ruleShapeOf } from "./permission-rule-model.js";
|
|
18
|
-
import {
|
|
17
|
+
import { isProtectedWrite } from "./tool-registry.js";
|
|
19
18
|
import { callFaceSeat } from "./tool-roster.js";
|
|
20
19
|
import { wireOf } from "./tool-name-readings.js";
|
|
21
20
|
import { modeAcceptsFileCommand } from "./mode-policy.js";
|
|
@@ -24,7 +23,7 @@ import { exitGate, passAskFace, releaseRecordOf, takeSettledScreen, untakenValue
|
|
|
24
23
|
import { readOrgRuleLane, readPersistedRuleLane } from "./rule-lane-reads.js";
|
|
25
24
|
import { traceHookCrash } from "./gate-crash-trace.js";
|
|
26
25
|
import { createGateDeadline, awaitWriteProtectionJudgment, withGateTimeout } from "./gate-bounded-await.js";
|
|
27
|
-
import { readStationAnswer } from "./shell-read-silence.js";
|
|
26
|
+
import { confinedCallOf, readOnlyShellCall, readStationAnswer } from "./shell-read-silence.js";
|
|
28
27
|
import { judgedInputOf, raiseToolCheck } from "./mods/stations.js";
|
|
29
28
|
import { agentIdOf } from "./leg-identity.js";
|
|
30
29
|
import { extensionAllowOf, readToolChecks } from "./tool-check-reading.js";
|
|
@@ -250,7 +249,7 @@ export async function runGateLanes(pass) {
|
|
|
250
249
|
}
|
|
251
250
|
const readModeOn = async (standing, classification, mode) => {
|
|
252
251
|
const fileCommandByWord = modeAcceptsFileCommand(mode, wireOf("lanes.modeFileCommand", pass.req), pass.policyRewrite ?? pass.currentInput);
|
|
253
|
-
const verdict = arbitrateByMode(mode, classification, { ...(standing.origin !== undefined ? { origin: standing.origin } : {}), ...(standing.mandate !== undefined ? { mandate: standing.mandate } : {}) }, { fileCommand: pass.shellWritesPlaced === true && fileCommandByWord });
|
|
252
|
+
const verdict = arbitrateByMode(mode, classification, { ...(standing.origin !== undefined ? { origin: standing.origin } : {}), ...(standing.mandate !== undefined ? { mandate: standing.mandate } : {}) }, { fileCommand: pass.shellWritesPlaced === true && fileCommandByWord, ...confinedCallOf(input.confined, pass, pass.policyRewrite ?? pass.currentInput, input.confined !== undefined ? input.trackedCwd?.() : undefined) });
|
|
254
253
|
if (verdict.kind === "ask" && fileCommandByWord && pass.shellWritesPlaced !== true && pass.shellUnplacedOptions !== undefined && classification.classes.size === 1 && classification.classes.has("ordinary")) {
|
|
255
254
|
pass.decision = { ...standing, message: fileCommandOptionsSentence(pass.shellUnplacedOptions.program) };
|
|
256
255
|
}
|
|
@@ -403,12 +402,9 @@ export async function runGateLanes(pass) {
|
|
|
403
402
|
pass.decision = stampAskOrigin(stamped, originFacts, classifyStanding(stamped, originFacts));
|
|
404
403
|
}
|
|
405
404
|
if (allowMayClear("rule") && pass.probeBoundaryDeclined !== true && pass.leavesSandbox !== true && wireOf("lanes.readOnlyShellAllow", pass.req) === COMMAND_RULE_TOOL) {
|
|
406
|
-
const
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
const backgrounded = typeof args === "object" && args !== null && args.run_in_background === true;
|
|
410
|
-
const shape = typeof command === "string" ? readShellCommand(command) : undefined;
|
|
411
|
-
if (typeof command === "string" && shape !== undefined && !backgrounded && readOnlyShellVerdict(command, { shape, cwd: input.trackedCwd?.() }).readOnly) {
|
|
405
|
+
const reading = readOnlyShellCall(pass.req.args, input.trackedCwd?.());
|
|
406
|
+
if (reading.readOnly) {
|
|
407
|
+
const command = reading.command;
|
|
412
408
|
pass.decision = {
|
|
413
409
|
action: "allow",
|
|
414
410
|
message: "the command is read-only (upstream's read-only command tables) — allowed without asking",
|
|
@@ -418,7 +414,7 @@ export async function runGateLanes(pass) {
|
|
|
418
414
|
await notifier.notifyAsync(() => input.onReadOnlyAllowed?.({ toolName: pass.req.toolName, toolCallId, command }), "toolGate.readOnlyAllowed");
|
|
419
415
|
afterRuleClear();
|
|
420
416
|
}
|
|
421
|
-
else if (shape !== undefined && pass.tightenedBy === "shell_gate" && changesDirectoryBeforeGit(shape, input.trackedCwd?.())) {
|
|
417
|
+
else if (reading.shape !== undefined && pass.tightenedBy === "shell_gate" && changesDirectoryBeforeGit(reading.shape, input.trackedCwd?.())) {
|
|
422
418
|
pass.decision = { ...pass.decision, message: CD_GIT_COMPOUND_SENTENCE };
|
|
423
419
|
}
|
|
424
420
|
}
|
|
@@ -573,6 +573,10 @@ export interface ModeRelease {
|
|
|
573
573
|
readonly rowCount: number;
|
|
574
574
|
readonly tableUnread?: true;
|
|
575
575
|
};
|
|
576
|
+
/** The mode released the call BECAUSE the Runner declares its shape (`RunnerDeps.deploymentShape`): `classes` holds a class of
|
|
577
|
+
* {@link import("./ask-origin.js").RELEASED_ON_CONFINED_RUNNER} that keeps the question on a Runner that declares none. Absent ⇒ the
|
|
578
|
+
* release stands on any Runner. Not a class: the class set is the question's, this is the deployment's declaration. */
|
|
579
|
+
confined?: true;
|
|
576
580
|
}
|
|
577
581
|
/** The read-deny table one call is judged with: the active built-in tiers and the rows beside them (`ToolGateInput.readDenyInForce`). */
|
|
578
582
|
export interface ReadDenyTable {
|
|
@@ -624,7 +628,8 @@ export interface ModeRefusal {
|
|
|
624
628
|
* when present, are members of their closed sets, `reason` names a member of `classes` (the mint takes it from
|
|
625
629
|
* that set), and `readUnestablished`, when present, names a table: `tiers` and `rows` lists of strings, `rows` at most
|
|
626
630
|
* {@link READ_DENY_ROWS_NAMED} long, `rowCount` a whole number no smaller than `rows`, and `tableUnread`, when present,
|
|
627
|
-
* `true` beside an empty table (no tiers, no rows, `rowCount: 0`)
|
|
631
|
+
* `true` beside an empty table (no tiers, no rows, `rowCount: 0`), and `confined`, when present, is `true` — a mode
|
|
632
|
+
* releases nothing a person answered;
|
|
628
633
|
* I8 `deniedBy === "mode"` ⇔ `mode` present (`bypassPermissions` | `dontAsk`) with `askClass` and `classes`;
|
|
629
634
|
* I9 `disposition.clearedBy` present ⇒ `kind === "allowed"`, no settlement and no release (an allow member cleared the ask
|
|
630
635
|
* before anyone answered it), `member` one of the allow layer's members, `entries` a list of strings, `omitted` a positive
|
|
@@ -716,7 +721,8 @@ export type RetiredReasonsAreClassWords = AssertAllKeysHandled<Exclude<RetiredWo
|
|
|
716
721
|
export declare function isRetiredMember<S extends MemberSet>(set: S, word: unknown): word is RetiredWord<S>;
|
|
717
722
|
/**
|
|
718
723
|
* The release law of THIS engine (I7's policy half): a mode release names a set of classes that one face of the engine's table
|
|
719
|
-
* releases whole (`releasableAskClassesFor`) — the arbitration releases a set only when no member is immune on the call's face
|
|
724
|
+
* releases whole (`releasableAskClassesFor`) — the arbitration releases a set only when no member is immune on the call's face; a
|
|
725
|
+
* release that says `confined` reads the confined Runner's lists and holds a member only they release.
|
|
720
726
|
* Policy, not shape — it moves between versions — so only the producer reading of {@link screenGateOutcome} reads it.
|
|
721
727
|
* Module-level only; not part of the package root.
|
|
722
728
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isAskClass, isAskOrigin, isModeReleaseReason, isPermissionMode, isPersistedRuleMandate, ASK_FACES, releasableAskClassesFor } from "./ask-origin.js";
|
|
1
|
+
import { isAskClass, isAskOrigin, isModeReleaseReason, isPermissionMode, isPersistedRuleMandate, ASK_FACES, releasableAskClassesFor, confinedReleasableAskClassesFor, RELEASED_ON_CONFINED_RUNNER } from "./ask-origin.js";
|
|
2
2
|
import { isAutoModeFallbackCause } from "./auto-mode.js";
|
|
3
3
|
import { ALLOW_LIST_GRANTS, ALLOW_RULE_MEMBERS, isAllowListGrant } from "./allow-rule-shadow.js";
|
|
4
4
|
import { refusalEchoDefects } from "./refusal-echo.js";
|
|
@@ -213,10 +213,15 @@ export function releasePolicyDefects(g) {
|
|
|
213
213
|
const classes = r?.classes;
|
|
214
214
|
if (!isAskClass(askClass) || !Array.isArray(classes) || !classes.every(isAskClass))
|
|
215
215
|
return [];
|
|
216
|
-
|
|
216
|
+
const confined = r?.confined === true;
|
|
217
|
+
const listOn = (face, on) => (on ? confinedReleasableAskClassesFor(face) : releasableAskClassesFor(face));
|
|
218
|
+
if (!ASK_FACES.some((face) => listOn(face, confined).includes(askClass)))
|
|
217
219
|
return [`I7: released.askClass "${askClass}" is not a releasable class under this engine's table`];
|
|
218
220
|
const held = [askClass, ...classes];
|
|
219
|
-
|
|
221
|
+
const releases = (on) => ASK_FACES.some((face) => held.every((c) => listOn(face, on).includes(c)));
|
|
222
|
+
if (!releases(confined))
|
|
223
|
+
return [`I7: released.classes ${JSON.stringify(classes)} is not a set one face of this engine's table releases`];
|
|
224
|
+
return confined && (releases(false) || !classes.some((c) => RELEASED_ON_CONFINED_RUNNER.includes(c))) ? [`I7: released.confined stands only on a release the declaration made (its classes ${JSON.stringify(classes)} hold no class only a confined Runner releases)`] : [];
|
|
220
225
|
}
|
|
221
226
|
const LIST_MEMBERS = new Set(["request", "deployment"]);
|
|
222
227
|
const ALLOW_MEMBER_SET = new Set(ALLOW_RULE_MEMBERS);
|
|
@@ -392,6 +397,8 @@ export function screenGateOutcome(g, opts) {
|
|
|
392
397
|
defects.push(`I7: released.reason "${String(r.reason)}" is not a member of released.classes`);
|
|
393
398
|
if (r.readUnestablished !== undefined)
|
|
394
399
|
defects.push(...readUnappliedDefects(r.readUnestablished));
|
|
400
|
+
if (r.confined !== undefined && r.confined !== true)
|
|
401
|
+
defects.push(`I7: released.confined ${spelled(r.confined)} is not true`);
|
|
395
402
|
}
|
|
396
403
|
}
|
|
397
404
|
if (denied !== undefined && denied.clearedBy !== undefined)
|
|
@@ -180,7 +180,7 @@ export type NoticeAttention = "act" | "inform" | "audit";
|
|
|
180
180
|
* the union's catalog ({@link EngineNotice.code}). The groups below say only which family a row joins,
|
|
181
181
|
* so the catalog is not written a second time here and the two cannot drift.
|
|
182
182
|
*/
|
|
183
|
-
export declare const ENGINE_NOTICE_CODES: readonly ["config.autocompact_window_clamped", "config.env_timeout_discarded", "config.materialize_env_discarded", "config.models_swapped", "config.context_settings_swapped", "config.read_face_swapped", "config.read_face_deployment_clamped", "config.write_face_swapped", "config.write_face_deployment_clamped", "config.read_deny_swapped", "config.tool_model_gate_removed", "config.tool_model_gate_unknown_class", "config.tool_model_gate_env_invalid", "config.artifact_host_invalid", "config.task_root_not_canonical", "config.write_protection_target_view_absent", "config.path_view_unresolved", "config.execution_env_capability_invalid", "config.execution_env_failure_contract_broken", "config.read_deny_floor_unkept", "config.read_floor_confinement_unavailable", "config.inherit_env_declared_late", "config.command_sandbox_unavailable", "config.tool_card_undeclared", "config.tool_face_undeclared", "config.tool_face_invalid", "config.host_sink_failed", "config.seat_malformed", "config.session_delete_withheld", "config.env_knob_adjusted", "config.read_deny_home", "config.permission_rules_skipped", "config.process_start_time_unavailable", "config.data_root_spelling_split", "config.durable_gate_unavailable", "config.peer_admission_out_of_range", "config.peer_lane_unmounted", "config.scheduler_store_unmoved", "config.secret_env_scrubbed", "inherit_env.names_withheld", "config.credential_not_withheld", "config.cross_boundary_posture_undeclared", "config.cross_boundary_record_unwritten", "config.permission_mode_unavailable", "permission.rule_store_unavailable", "permission.rule_store_unreadable_relaxed", "config.entries_not_applied", "config.session_rules_earlier_grammar", "config.session_rules_reread", "config.skill_deny_unreadable", "config.legacy_tool_name", "config.toolpolicy.unmatched_names", "config.agent.unknown_tool", "permission.allow_rule_not_used_in_auto", "permission.revival_root_policy_unrestated", "mods.registration_refused", "mods.registration_refused_deployment", "mods.display_withheld", "mods.stop_ended", "mods.stop_continue_dropped", "mods.package_key_unread", "peer.inbound_disposition", "peer.inbound_unread", "peer.notice_user_only", "peer.receipt_delivered_user_only", "peer.held_settled", "peer.held_approval_unhonored", "peer.held_decision_applied", "peer.idle_subscription", "peer.idle_subscription_declined", "classifier.denial_limit", "classifier.fallback", "classifier.seat_rate_limited", "classifier.role_defaulted", "classifier.contract_broken", "classifier.unavailable", "classifier.unavailable_handed_on", "classifier.review_skipped", "checkpoint.execution_outcome_unrecorded", "delegation.transcript_integrity", "delegation.ask_unresolvable", "delegation.resume_lane_missing", "delegation.spawn_depth_unknown", "delegation.delivery_discarded", "delegation.settlement_external", "delegation.settlement_write_failed", "delegation.durable_row_unpersisted", "delegation.parked_card_unreadable", "delegation.parked_card_id_untrusted", "delegation.agent_row_ending_unreadable", "protocol.revocation_probe_failed", "mcp.server_redialed", "mcp.authorization_required", "mcp.server_unavailable", "mcp.server_connecting", "mcp.credential_echoed", "a2a.peer_card_drift", "mcp.server_stderr", "workflow.governance_key_stripped", "workflow.agent_option_ignored", "workflow.parked_decision_unused", "workflow.parked_decision_used", "workflow.record_unwritten", "memory.session_polluted", "memory.harvest_quarantined", "memory.harvest_refused", "memory.harvest_conflict", "memory.delegation_static_mark_waived", "memory.content_class_declared", "memory.hold_opened", "memory.hold_released", "memory.hold_disposed", "memory.consolidation_recommended", "memory.consolidation_committed", "memory.consolidation_conflict", "memory.consolidation_incomplete", "memory.consolidation_refused", "memory.consolidation_withheld", "memory.restore_withheld", "memory.project_scope_absent", "memory.notice_unscoped", "route.fallback_to_primary", "route.classifier_unroutable", "route.seat_detached", "advisor.not_attached", "route.credential_origin_mismatch", "route.credential_mismatch", "route.credential_rebound", "route.response_model_mismatch", "route.tool_call_id_folded", "route.finish_reason_unknown", "route.stream_end_ignored", "route.stream_content_dropped", "route.extra_body_reserved_dropped", "model.capability_downgraded", "model.fast_mode_changed", "model.fallback", "model.fallback_side_call", "context.tool_turn_repaired", "context.media_removed", "context.tool_schema_removed", "context.messages_omitted", "instructions.withheld", "instructions.outside_root", "instructions.family_undeclared", "task.user_steer_undrained", "task.user_followup_undrained", "task.undelivered_input_dropped", "steering.parked_input_blocked", "task.turn_interrupted", "task.halt_unconsumed", "mods.turn_aborted", "mods.turn_abort_unconsumed", "task.late_approval", "task.interrupt_unconsumed", "task.wait_ceiling_reached", "task.completed_past_limit", "task.verdict_refused", "task.tool_turn_incomplete", "task.tool_turn_unrecovered", "approval.read_root_granted", "approval.read_root_grant_rejected", "approval.session_call_granted", "approval.session_call_grant_rejected", "approval.approver_defect", "memory.capture_opted_out", "memory.capture_switched_off", "memory.capture_optout_unpersisted", "memory.mount_failed", "skills.listing_truncated", "agents.listing_truncated", "tool_result.offload_put_failed", "tool_result.media_refused", "tool_result.media_persisted", "tool_result.read_refused", "artifact.owner_refused", "config.image_processor_unavailable", "fs.staging_file_left", "fs.staging_file_swept", "store.tail_segment_unjudged", "store.lock_retained", "store.lock_reclaimed_on_declaration", "store.append_log_parked", "store.tree_id_stamp_incomplete", "store.process_anchor_unavailable", "store.process_anchor_lost", "engine.debug_trace", "session.lineage_rerooted", "rewind.boundary_unrecorded", "rewind.file_left_as_is", "verify.verifier_is_implementer", "workspace.sync_failed", "memory.layer_locked_legacy", "server.model_unreachable", "permission.entry_mode_clamped", "model.context_window_assumed", "config.store_ephemeral", "memory.sync_layer_parked"];
|
|
183
|
+
export declare const ENGINE_NOTICE_CODES: readonly ["config.autocompact_window_clamped", "config.env_timeout_discarded", "config.materialize_env_discarded", "config.models_swapped", "config.context_settings_swapped", "config.read_face_swapped", "config.read_face_deployment_clamped", "config.write_face_swapped", "config.write_face_deployment_clamped", "config.read_deny_swapped", "config.tool_model_gate_removed", "config.tool_model_gate_unknown_class", "config.tool_model_gate_env_invalid", "config.artifact_host_invalid", "config.task_root_not_canonical", "config.write_protection_target_view_absent", "config.path_view_unresolved", "config.execution_env_capability_invalid", "config.execution_env_failure_contract_broken", "config.read_deny_floor_unkept", "config.read_floor_confinement_unavailable", "config.inherit_env_declared_late", "config.model_shell_unmounted", "config.shell_state_env_dropped", "config.command_sandbox_unavailable", "config.tool_card_undeclared", "config.tool_face_undeclared", "config.tool_face_invalid", "config.host_sink_failed", "config.seat_malformed", "config.session_delete_withheld", "config.env_knob_adjusted", "config.read_deny_home", "config.permission_rules_skipped", "config.process_start_time_unavailable", "config.data_root_spelling_split", "config.durable_gate_unavailable", "config.peer_admission_out_of_range", "config.peer_lane_unmounted", "config.scheduler_store_unmoved", "config.secret_env_scrubbed", "inherit_env.names_withheld", "config.credential_not_withheld", "config.cross_boundary_posture_undeclared", "config.cross_boundary_record_unwritten", "config.permission_mode_unavailable", "permission.rule_store_unavailable", "permission.rule_store_unreadable_relaxed", "config.entries_not_applied", "config.session_rules_earlier_grammar", "config.session_rules_reread", "config.skill_deny_unreadable", "config.legacy_tool_name", "config.toolpolicy.unmatched_names", "config.agent.unknown_tool", "permission.allow_rule_not_used_in_auto", "permission.revival_root_policy_unrestated", "mods.registration_refused", "mods.registration_refused_deployment", "mods.display_withheld", "mods.stop_ended", "mods.stop_continue_dropped", "mods.package_key_unread", "peer.inbound_disposition", "peer.inbound_unread", "peer.notice_user_only", "peer.receipt_delivered_user_only", "peer.held_settled", "peer.held_approval_unhonored", "peer.held_decision_applied", "peer.idle_subscription", "peer.idle_subscription_declined", "classifier.denial_limit", "classifier.fallback", "classifier.seat_rate_limited", "classifier.role_defaulted", "classifier.contract_broken", "classifier.unavailable", "classifier.unavailable_handed_on", "classifier.review_skipped", "checkpoint.execution_outcome_unrecorded", "delegation.transcript_integrity", "delegation.ask_unresolvable", "delegation.resume_lane_missing", "delegation.spawn_depth_unknown", "delegation.delivery_discarded", "delegation.settlement_external", "delegation.settlement_write_failed", "delegation.durable_row_unpersisted", "delegation.parked_card_unreadable", "delegation.parked_card_id_untrusted", "delegation.agent_row_ending_unreadable", "protocol.revocation_probe_failed", "mcp.server_redialed", "mcp.authorization_required", "mcp.server_unavailable", "mcp.server_connecting", "mcp.credential_echoed", "a2a.peer_card_drift", "mcp.server_stderr", "workflow.governance_key_stripped", "workflow.agent_option_ignored", "workflow.parked_decision_unused", "workflow.parked_decision_used", "workflow.record_unwritten", "memory.session_polluted", "memory.harvest_quarantined", "memory.harvest_refused", "memory.harvest_conflict", "memory.delegation_static_mark_waived", "memory.content_class_declared", "memory.hold_opened", "memory.hold_released", "memory.hold_disposed", "memory.consolidation_recommended", "memory.consolidation_committed", "memory.consolidation_conflict", "memory.consolidation_incomplete", "memory.consolidation_refused", "memory.consolidation_withheld", "memory.restore_withheld", "memory.project_scope_absent", "memory.notice_unscoped", "route.fallback_to_primary", "route.classifier_unroutable", "route.seat_detached", "advisor.not_attached", "route.credential_origin_mismatch", "route.credential_mismatch", "route.credential_rebound", "route.response_model_mismatch", "route.tool_call_id_folded", "route.finish_reason_unknown", "route.stream_end_ignored", "route.stream_content_dropped", "route.extra_body_reserved_dropped", "model.capability_downgraded", "model.fast_mode_changed", "model.fallback", "model.fallback_side_call", "context.tool_turn_repaired", "context.media_removed", "context.tool_schema_removed", "context.messages_omitted", "instructions.withheld", "instructions.outside_root", "instructions.family_undeclared", "task.user_steer_undrained", "task.user_followup_undrained", "task.undelivered_input_dropped", "steering.parked_input_blocked", "task.turn_interrupted", "task.halt_unconsumed", "mods.turn_aborted", "mods.turn_abort_unconsumed", "task.late_approval", "task.interrupt_unconsumed", "task.wait_ceiling_reached", "task.manager_launch_narrowed", "task.completed_past_limit", "task.verdict_refused", "task.tool_turn_incomplete", "task.tool_turn_unrecovered", "approval.read_root_granted", "approval.read_root_grant_rejected", "approval.session_call_granted", "approval.session_call_grant_rejected", "approval.approver_defect", "memory.capture_opted_out", "memory.capture_switched_off", "memory.capture_optout_unpersisted", "memory.mount_failed", "skills.listing_truncated", "agents.listing_truncated", "tool_result.offload_put_failed", "tool_result.offload_put_unsettled", "tool_result.media_refused", "tool_result.media_persisted", "tool_result.read_refused", "artifact.owner_refused", "config.image_processor_unavailable", "fs.staging_file_left", "fs.staging_file_swept", "store.tail_segment_unjudged", "store.lock_retained", "store.lock_reclaimed_on_declaration", "store.append_log_parked", "store.tree_id_stamp_incomplete", "store.process_anchor_unavailable", "store.process_anchor_lost", "engine.debug_trace", "session.lineage_rerooted", "rewind.boundary_unrecorded", "rewind.file_left_as_is", "verify.verifier_is_implementer", "workspace.sync_failed", "memory.layer_locked_legacy", "server.model_unreachable", "permission.entry_mode_clamped", "model.context_window_assumed", "config.store_ephemeral", "memory.sync_layer_parked"];
|
|
184
184
|
/** A catalogued code (see {@link ENGINE_NOTICE_CODES}); {@link NOTICE_MINTER} says who mints it. NOT the type of
|
|
185
185
|
* `EngineNotice.code`, which stays `string` — a host forwarding its own notices through the same
|
|
186
186
|
* sink is a supported shape, and narrowing that field would break it. */
|
|
@@ -229,6 +229,7 @@ declare const NOTICE_AUDIENCE_TABLE: {
|
|
|
229
229
|
readonly "task.late_approval": "user";
|
|
230
230
|
readonly "task.interrupt_unconsumed": "user";
|
|
231
231
|
readonly "task.wait_ceiling_reached": "user";
|
|
232
|
+
readonly "task.manager_launch_narrowed": "user";
|
|
232
233
|
readonly "task.tool_turn_incomplete": "user";
|
|
233
234
|
readonly "task.tool_turn_unrecovered": "user";
|
|
234
235
|
readonly "task.completed_past_limit": "operator";
|
|
@@ -292,6 +293,8 @@ declare const NOTICE_AUDIENCE_TABLE: {
|
|
|
292
293
|
readonly "config.read_deny_floor_unkept": "user";
|
|
293
294
|
readonly "config.read_floor_confinement_unavailable": "operator";
|
|
294
295
|
readonly "config.inherit_env_declared_late": "operator";
|
|
296
|
+
readonly "config.model_shell_unmounted": "operator";
|
|
297
|
+
readonly "config.shell_state_env_dropped": "operator";
|
|
295
298
|
readonly "config.command_sandbox_unavailable": "user";
|
|
296
299
|
readonly "config.tool_card_undeclared": "operator";
|
|
297
300
|
readonly "config.tool_face_undeclared": "operator";
|
|
@@ -359,6 +362,7 @@ declare const NOTICE_AUDIENCE_TABLE: {
|
|
|
359
362
|
readonly "skills.listing_truncated": "operator";
|
|
360
363
|
readonly "agents.listing_truncated": "operator";
|
|
361
364
|
readonly "tool_result.offload_put_failed": "operator";
|
|
365
|
+
readonly "tool_result.offload_put_unsettled": "operator";
|
|
362
366
|
readonly "tool_result.media_refused": "operator";
|
|
363
367
|
readonly "tool_result.media_persisted": "operator";
|
|
364
368
|
readonly "tool_result.read_refused": "operator";
|
|
@@ -410,7 +414,7 @@ export type AudienceTableCoversEveryNoticeCode = AssertAllKeysHandled<Exclude<En
|
|
|
410
414
|
* {@link ENGINE_NOTICE_CODES} is enforced on the table above, where narrowing costs nobody anything.
|
|
411
415
|
*/
|
|
412
416
|
export declare const NOTICE_AUDIENCE: Readonly<Record<string, NoticeAudience>>;
|
|
413
|
-
/** The audience for `code` —
|
|
417
|
+
/** The audience for `code` — the catalog's own rows only; an unregistered code, or a name an object inherits (`constructor`, `valueOf`, …), reads `"operator"`. */
|
|
414
418
|
export declare function noticeAudienceOf(code: string): NoticeAudience;
|
|
415
419
|
/**
|
|
416
420
|
* The attention registry ({@link NoticeAttention}): one row per {@link ENGINE_NOTICE_CODES} member, kept in lockstep by the
|
|
@@ -465,6 +469,7 @@ declare const NOTICE_ATTENTION_TABLE: {
|
|
|
465
469
|
readonly "task.halt_unconsumed": "act";
|
|
466
470
|
readonly "task.interrupt_unconsumed": "act";
|
|
467
471
|
readonly "task.wait_ceiling_reached": "act";
|
|
472
|
+
readonly "task.manager_launch_narrowed": "act";
|
|
468
473
|
readonly "task.late_approval": "act";
|
|
469
474
|
readonly "memory.capture_optout_unpersisted": "act";
|
|
470
475
|
readonly "memory.mount_failed": "act";
|
|
@@ -525,6 +530,8 @@ declare const NOTICE_ATTENTION_TABLE: {
|
|
|
525
530
|
readonly "config.execution_env_capability_invalid": "act";
|
|
526
531
|
readonly "config.execution_env_failure_contract_broken": "act";
|
|
527
532
|
readonly "config.inherit_env_declared_late": "act";
|
|
533
|
+
readonly "config.model_shell_unmounted": "act";
|
|
534
|
+
readonly "config.shell_state_env_dropped": "act";
|
|
528
535
|
readonly "config.tool_card_undeclared": "act";
|
|
529
536
|
readonly "config.tool_face_undeclared": "act";
|
|
530
537
|
readonly "config.tool_face_invalid": "act";
|
|
@@ -564,6 +571,7 @@ declare const NOTICE_ATTENTION_TABLE: {
|
|
|
564
571
|
readonly "instructions.family_undeclared": "act";
|
|
565
572
|
readonly "approval.approver_defect": "act";
|
|
566
573
|
readonly "tool_result.offload_put_failed": "act";
|
|
574
|
+
readonly "tool_result.offload_put_unsettled": "act";
|
|
567
575
|
readonly "artifact.owner_refused": "act";
|
|
568
576
|
readonly "fs.staging_file_left": "act";
|
|
569
577
|
readonly "store.lock_retained": "act";
|
|
@@ -684,6 +692,8 @@ declare const NOTICE_MINTER_TABLE: {
|
|
|
684
692
|
readonly "config.read_deny_floor_unkept": "engine";
|
|
685
693
|
readonly "config.read_floor_confinement_unavailable": "engine";
|
|
686
694
|
readonly "config.inherit_env_declared_late": "engine";
|
|
695
|
+
readonly "config.model_shell_unmounted": "engine";
|
|
696
|
+
readonly "config.shell_state_env_dropped": "engine";
|
|
687
697
|
readonly "config.command_sandbox_unavailable": "engine";
|
|
688
698
|
readonly "config.tool_card_undeclared": "engine";
|
|
689
699
|
readonly "config.tool_face_undeclared": "engine";
|
|
@@ -818,6 +828,7 @@ declare const NOTICE_MINTER_TABLE: {
|
|
|
818
828
|
readonly "task.late_approval": "engine";
|
|
819
829
|
readonly "task.interrupt_unconsumed": "engine";
|
|
820
830
|
readonly "task.wait_ceiling_reached": "engine";
|
|
831
|
+
readonly "task.manager_launch_narrowed": "engine";
|
|
821
832
|
readonly "task.completed_past_limit": "engine";
|
|
822
833
|
readonly "task.verdict_refused": "engine";
|
|
823
834
|
readonly "task.tool_turn_incomplete": "engine";
|
|
@@ -834,6 +845,7 @@ declare const NOTICE_MINTER_TABLE: {
|
|
|
834
845
|
readonly "skills.listing_truncated": "engine";
|
|
835
846
|
readonly "agents.listing_truncated": "engine";
|
|
836
847
|
readonly "tool_result.offload_put_failed": "engine";
|
|
848
|
+
readonly "tool_result.offload_put_unsettled": "engine";
|
|
837
849
|
readonly "tool_result.media_refused": "engine";
|
|
838
850
|
readonly "tool_result.media_persisted": "engine";
|
|
839
851
|
readonly "tool_result.read_refused": "engine";
|