Skip to content

sandbox: verify a signed eval receipt at apply time if eval-gating is a hard guarantee #1017

Open

Description

@AmitoVrito

Found during review of #940 (PC Twin sandbox).

apply_bundle (sandbox/apply.py:101-104) gates apply on receipt.passed truthy and receipt.diff_sha256 == bundle.digest. On the CLI path (cli/sandbox.py:_run_apply) the receipt is built from an arbitrary JSON file, and EvalReceipt.receipt_hash is never verified or signed. Since the bundle digest is printed by diff and recomputable, a hand-written {"passed": true, "diff_sha256": "<digest>"} will apply an unevaluated diff.

This is not a privilege escalation — CLI apply still requires --yes (human confirmation) and all writes are confined to the host root by the path-traversal defenses. But the "evaluation-gated apply" property is currently a workflow marker, not a cryptographic control. If eval-gating is intended as a hard guarantee, apply should verify a signed receipt (reuse the Ed25519 audit-signing pattern from Dream Mode #935).

Activity

  1. added
    enhancement
    on Sep 3, 2026
  2. added a commit that references this issue on Sep 3, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions