Repository navigation
fix(portal): persist governed Custom model selection - #357
Merged
Merged
Conversation
Reuse the common executor for governed Custom creation, retained lifecycle, typed Gateway and network controls, private Chat and isolated terminal access. Preserve image entrypoints and non-root identities while retaining existing managed and non-Sandbox behavior.\n\nInclude generated policy schemas, Portal wiring, static probe packaging and offline regression coverage. Keep unsupported identity, mTLS and desktop combinations fail-closed and document the live qualification boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Retain Custom ingress and terminal contracts alongside native identity pinning and expectation validation. Update the Entra renderer tests for the shared validation signature and preserve fail-closed handling of unsupported Custom Entra projection. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Yield to the Node scheduler within act before arming the window access trap. Preserve the stale-dispatch negative control and late Chat completion assertions without retries or a longer timeout. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Record current policy-authorized model sources for Sandbox-bound Custom creation instead of leaving both fail-closed switches unset. Keep ungoverned Custom behavior, image approval, and ordinary Sandbox defaults unchanged. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7 of 8 tasks
Resolve #357 post-squash documentation conflicts while preserving the original governed model-selection patch and current main changes. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
7 of 8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Persist explicit, currently permitted model-source switches when the Portal creates a Sandbox-bound Custom Agent. Previously the Custom early return omitted
spec.modelAccess; the Sandbox API correctly defaulted both sources off, leaving the Agent atNoModelEntitlementeven when its policy and Gateway offered a shared model.Reuse the existing policy/catalog checks and request handling. Custom images do not require a built-in OpenClaw/Hermes catalog profile; their separate Operator image approval remains unchanged. Add ten creation regressions and update the contract and Pi manifest example.
Related issue
Focused follow-up to #354, discovered during authorized isolated validation. This PR targets
feat/custom-sandbox-runtimeso its diff contains only this repair. It should accompany #354; it does not merge or replace that PR.Validation
Offline checks used Go 1.27.3, Helm 3.22, Node 24.18.0, npm 12.0.1 and Hugo 0.164.0 extended. Commands below are relative to the repository root.
Authorized live evidence: two owner-created Custom Agents on separate runtime backends reproduced the missing selection before this fix. Both were deleted through their ordinary owner APIs; their Agents and namespaces were confirmed absent. The patched live rerun is still pending and is not claimed as passed here. No deployment configuration, raw diagnostics or credentials are attached.
Compatibility and operational impact
Only Sandbox-bound Custom creation changes. It now records effective source switches and rejects unavailable or unauthorized model selections before creating resources, like managed Agent creation. Existing Custom without a Sandbox retains its previous behavior. Direct Agent manifests still need explicit model-source switches; the fail-closed API defaults are unchanged.
No CRD, dependency, Operator authorization, image-approval or storage change. Existing blocked Agents are not silently granted model access. Maintainer review is required; the new PR's CLA and CI checks must complete independently.
Checklist