Skip to content

Verify native patch decisions with explicit local fixture boundaries (T19) #262

Closed

Description

@erickb336

Sage task T19
Parent: #88.

Verify the packaged patchEditDecision component through actual local Codex apply_patch calls in an isolated temporary fixture. Existing native role checks do not establish protected-path composition. Production policy, installed settings and activation defaults remain unchanged.

Acceptance:

  • Sage off permits one harmless file outside the protected root, with exact expected contents.
  • Sage off refuses a protected path through the packaged patch policy before native execution.
  • Sage on refuses a chief's direct patch through the existing production role restriction.
  • Require actual tool result and matching hook/call evidence. Missing files alone do not prove Sage enforcement.
  • Use fixed simulated responses, verified direct CLI 0.160.0, bounded capture and current fixtures. Preserve normal sandbox/permission checks.
  • Track all processes from launch and verify terminal cleanup. Preserve failed evidence; remove successful temporary profiles.
  • Add meaningful assertion/cleanup tests to CI and complete build/check/full tests, independent code review and QA.

The fixture supplies its own fixed local execution directory and protected root. This is an explicit test assumption, not an authoritative general execution-context producer. Passing does not resolve #243, prove remote behavior or arbitrary filesystem races, or enable automatic Sage. A passing production baseline is expected; this is new evidence, not a failing-main regression repair.

Keep Claude-owned #119, #105 and #67 untouched.

Activity

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