Skip to content

fix: allow ordinary stage inspection without consent (#524) - #533

Open
datacas wants to merge 4 commits into
mainfrom
task-524
Open

datacas wants to merge 4 commits into
mainfrom
task-524

Conversation

@datacas

@datacas datacas commented Nov 25, 2026

Copy link
Copy Markdown
Owner

Allow the ordinary inspection commands listed in #524 without a consent question, while retaining external-write, credential, provider mutation and role guards.

Closes #524.

Diagnosis

The stage table classified read pipelines/globs as interpreter operations, rejected Git directory selectors, omitted repository-scoped comments GET and isolated snapshot inspection, and generated narrower Claude permission entries. An auxiliary refusal could also become an unanswered decision after a completed stage.

Before implementation, python3 -m unittest tests.test_read_parity reproduced 64 command/role refusals. The shared invariant is that ordinary authorized reads pass both the toolkit hook and executor layer without consent. This is a shared cause within this issue's scope; the root fix updates the common table, dispatch patterns and refusal recording. Related work was searched by parity/permission terms and the implicated module: #450, #464, #406, #439, #398, #522, #523 and #493. #523 already covers publication reconciliation; this change covers completed accessory inspection and leaves its publication guards in place.

Work units

Unit Behaviour Files Tests Verification Rollback
WU-1 Guarded ordinary inspection; aligned Claude entries; attributed and reconciled refusal records scripts/stage_permissions.py, scripts/command_permissions.py, scripts/cycle.py, permission regression tests and owning docs New command/role matrix, direct Bash vs subprocess hook comparisons, negative write/credential/API cases, decisions regression Agent-reported: focused suites pass; complete configured suite is still running independent: revert this commit

Verification (agent-reported, pending full-suite result)

  • Focused permission/consent/compound/audit suite: 212 tests passed; expanded read matrix: 6 tests passed; table consent regression: 27 tests passed.
  • python3 scripts/validate-package.py: passed.
  • basedpyright: 0 errors, 0 warnings, 0 notes.
  • python3 -m unittest: exited 0, discovered 0 tests. The configured discovery command is the required full suite and is still running.
  • Native Claude/Codex direct-vs-dispatched parity remains unverified. This enclosing Codex sandbox cannot start nested Codex; the shared-hook tests use fixture provider output and are not native evidence.
  • Security audit ran with cc-security-review: no confirmed vulnerability found in the changed paths; native first-barrier matching remains a verification limitation.

Tests use disposable Git fixtures with explicit identity and a fixture provider binary. No global Git identity or live provider credential is required for those comparisons. The full existing suite may exercise additional environment assumptions.

Documentation

The prior docs did not cover this no-consent inspection set. docs/host-permissions.md now lists commands and verification roles; docs/capability-parity-audit.md maps every converted refusal to the existing PA rows. Native parity is explicitly left open pending real executor evidence.

Run: schema:2 | profile:deep_coder | requested:openai/gpt-6.1-sol | resolved:? | effort:medium

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stages are refused ordinary read-only Git, gh and unittest commands that the agent runs directly (capability parity #450)

1 participant