Skip to content

Record permission-profile fallback warnings in OpenShell tests - #5438

Merged
freeqaz-openai merged 2 commits into
mainfrom
codex/openshell-native-fallback-observation-r2-20261111
Nov 11, 2026
Merged

freeqaz-openai merged 2 commits into
mainfrom
codex/openshell-native-fallback-observation-r2-20261111

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

When the OpenShell Driver refuses a revision configured with a personal access token (PAT), the installer test already compares the requested permissions with a diagnostic thread’s grant. If they differ, the receipt now records whether the Harness logged a native permission-profile fallback warning.

The fixture reads the current agent container of one Pod controlled by the revision’s Sandbox. It verifies the Sandbox, Pod and container identities around the read. The permissionProfileFallback field reports observed with fixed source categories, unobserved when the returned logs contain no match, or unavailable when collection fails or ownership is uncertain. Raw logs and policy details stay out of the receipt. The fixture rethrows the original Driver refusal.

Verification

  • All 44 diagnostic tests and 52 Kubernetes command conformance tests passed on Node 24.22.2. The wire tests use the real Driver and gateway with scripted peers. A fixture test starts a controlled child executable and checks owner rejection and credential exclusion.
  • Actual kubectl passed eight cases against a simulated Kubernetes API, including owner mismatch, replacement during collection and millisecond filtering. The retained offline native 0.164.0 check observed the warning with synthetic system requirements. Its empty-policy control granted full access and produced no matching warning.

The warning identifies a container and time window. There is no per-request identifier, and truncation or clock differences can hide a match. Installed and hosted log collection and the origin of the protected requirement remain unverified.

Hosted CI and CodeQL passed for PR head 2324aab366f0112d08dfc18a520f6cfa8f2c1959. CI run · CodeQL analysis

@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 08:48
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 08:48
@freeqaz-openai
freeqaz-openai merged commit 6e5f756 into main Nov 11, 2026
42 of 43 checks passed
@freeqaz-openai
freeqaz-openai deleted the codex/openshell-native-fallback-observation-r2-20261111 branch November 11, 2026 08:48
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