Skip to content

refactor(core): classify shell policy once per decision - #472

Merged
lg2m merged 1 commit into
refactor/shell-grant-cleanupfrom
refactor/shell-classify-once
Oct 25, 2026
Merged

lg2m merged 1 commit into
refactor/shell-grant-cleanupfrom
refactor/shell-classify-once

Conversation

@lg2m

@lg2m lg2m commented Oct 25, 2026 •

Copy link
Copy Markdown
Collaborator

Removes the second classification of the same shell command within one policy decision. Auto reuses the first verdict after the existing Forbidden check; Full and task-scoped Auto retain their bypass, and the remaining modes and blocked-host checks keep their decisions.

Third PR in the #6 cleanup stack, based on #471 (above #470). cargo xtask check --base refactor/shell-grant-cleanup passed formatting, lint, strict all-feature Clippy and all 2,602 affected tests (14 skipped), including the approval decision tables, task-scoped Auto bypass and child/revocation coverage. Cross-review confirmed the combined grant/classification changes preserve behavior.

No new classifier, policy mode, dependency or change to the durable execution path. This is duplicate-work removal, not a measured performance claim.

Final commit d5729041: hosted CI and real-binary smoke passed; Codex reviewed the same head with no findings and a thumbs-up. Stack: #470 → #471 → #472.

@lg2m

lg2m commented Oct 25, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-25T07:59:31.816869Z d572904 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: d572904110

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lg2m
lg2m added this pull request to stack #473 October 25, 2026 21:19
@lg2m
lg2m merged commit 5e0109c into main Oct 25, 2026
7 checks passed
@lg2m
lg2m deleted the refactor/shell-classify-once branch October 25, 2026 21:19
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.

1 participant