Skip to content

fix(runtime): separate shell execution from external observation and completion evidence #1048

Closed

Description

@XuPeng-SH

Problem

Authorized external shell operations can be rejected before process startup because the external-state fingerprint is unavailable or exceeds its bounded scan budget. A cleanup request against a build directory exposes this: execution is coupled to recursively reading the directory contents. The current delta receipt also cannot represent deleting its own observation root or reaching a desired state without a new delta.

The CLI projects this pre-spawn observation rejection as an executed tool failure, losing the distinction between admission, execution and evidence availability. Generic completion recovery further requires external mutation evidence and can request a write to obtain that evidence.

Intended correction

Separate policy and process admission, execution facts, optional observation, and task completion evidence across the shared backbone and CLI/User Runner/Server executors. Keep authorization, sandbox, process coordination, cancellation and explicitly requested source-preservation guarantees intact. Remove the superseded external-observation completion protocol and recovery paths where the design confirms they are unnecessary; no compatibility adapters or directory/command-specific exceptions.

Validate public executor behavior, partial failure/cancellation, unchanged and removed targets, bounded resources, truthful journaling, and completion/recovery behavior. Update owning design and public contracts.

Historical incident evidence exists locally; the issue intentionally omits private session contents and host paths. Independent reproduction and implementation validation will be recorded in the PR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions