You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Enforce Codex Sage read-only roles before edits (T30) #175
PR #176 is merged at c241ec1. Reviewed head 40b0363 passed build/check and all 1,116 local and CI tests. Code/security/QA each passed two clean cycles on this unchanged head. Exact-commit CI run 38413912131 succeeded.
Native CLI 0.160.0 probes with simulated responses verify lead refusal before evaluation and implementer file creation with exact contents. Both run under workspace-write permissions, complete normally, and remove their temporary profiles. Completion and message controls also pass.
Six new tests pass and fail detached main 148553a: one missing helper API, five missing behavior/context checks. The probe-only baseline fails role_edit_denial_missing. A review found older lifecycle fixtures that used lead patches as generic operations. Three inputs now use read-only calls; every assertion remains intact. The repaired native-server suite passes 127 tests.
Scope and acceptance
Extract role-based edit refusal from the Codex integration for #88 and #138. With Sage on, derive the native role from admission and refuse apply_patch or known shell writes from read-only roles before evaluation. Writer roles and Sage-off sessions retain evaluator checks. Use the existing shared command classifier; do not claim complete shell safety.
Source scope: shared role-policy helper and public export, Codex policy, tests, and native probe. Do not change Claude files or shared state.mjs.
Acceptance: new tests fail detached main; native simulated refusal and writer controls pass; build/check/full suite and CI pass; two clean code/security/QA cycles review the final head. Installed automatic Sage remains disabled.
Activity