Repository navigation
Description
Current status
PR #170 is a draft at eb3352038f38da3db2293677745604d38799a457, based on main 428cc47.
- Build and repository checks pass. Eleven focused tests pass. The initial ten tests and the added missing-directory regression fail on detached main.
- The first extraction passed 115 server tests and 1,103 full-suite tests. The repaired-head full suite is running with the added regression.
- Native CLI 0.160.0 probes pass with simulated responses: explicit/default arguments, allow/deny decisions, and Sage-off routes. Denial prevents execution; the policy receives every requested field. Each temporary profile is removed.
- Two clean code/security/QA cycles passed on the unchanged repaired commit. Review fixed off-mode children without stored observations; malformed evidence still refuses.
- Final full tests and CI remain pending. No merge claim yet.
Sage task T27. Component of #88 and #138.
Codex CLI 0.160.0 presents a Bash hook with only command text. The native call also contains shell, working directory, and permission fields. Shared command policy needs those exact requested arguments before it can make a decision.
Extract original command recovery from the prepared integration branch. Validate the protected transcript against the authenticated actor, session, active turn, exact pending call, and command text. Pass the validated original envelope to the policy callback in both Sage modes. Do not invent defaults or claim that requested fields prove the effective execution environment.
Acceptance:
- Reject missing, duplicate, completed, interrupted, forged, mismatched, or unsupported native evidence before evaluation.
- Preserve every supported original command field through the existing strict decoder. Unknown or malformed fields refuse.
- Check root and admitted child identities. Sage-off children use verified native identity without creating an admission record.
- A policy callback that waits cannot preserve permission after the native command evidence changes.
- Native simulated allow and deny probes check the recovered envelope, real command result or absence of execution, default and explicit arguments, and Sage off. Use only the fixed harmless command in a temporary workspace.
- New tests fail on detached main. Build, checks, full tests, exact-head CI, and two clean code/security/QA cycles pass before merge.
This topic does not add task/run state operations or edit Claude's active state-tool or hook files. Effective remote environment resolution, complete policy composition, installed activation, and real-model operation remain separate work. Automatic Sage remains incomplete; see #88.
Activity