Skip to content

Recognize output-file programs in the shared Codex write policy (T44) #203

Closed

Description

@erickb336

Parent #99; supports #88. Sage task T44. Risk: auth.

The shared shell-write classifier used by Codex misses common output-file commands. This can hide a known file write from role and protected-path checks.

Implement this in packages/sage-core/shell-write-policy.mjs and its helpers, with packaged-provider tests. Cover curl output forms, git diff/show/log output, ditto, scp, wget, openssl output, and sqlite3. Preserve ordinary reader arguments and scratch-file writes under the path check. Test text only; never execute command examples.

Claude's active hook is outside this topic. Its remaining #99 work stays open. This shared change does not activate Sage or prove sandbox enforcement.

Acceptance: new tests fail behaviorally on detached main; build/check/full suite pass; two clean code/security/QA cycles on the final commit; exact-head CI passes.

Activity

  1. added
    codex
    on Oct 13, 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

    codex

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions