feat(pxi): add the approval-gated navigation.goTo operation - #15411
Draft
cephalization wants to merge 1 commit into
Draft
feat(pxi): add the approval-gated navigation.goTo operation#15411cephalization wants to merge 1 commit into
cephalization wants to merge 1 commit into
Conversation
Implement the RFC from #15339 on top of the subsumption machinery. The handler registers at the app root and is available from every page — its job is to be reachable when the operation a script wants is not. - path validates against the registered route catalog with matchPath, so parameterized routes work and the model cannot navigate to a guess - reason is a required schema field, rendered in the approval card ("PXI wants to take you to Playground — '…'") - never auto-accepts: bypass edit mode still shows the card - accept resolves only after the route change commits; a navigation the router refuses (blocker/unsaved work) resolves { ok: false } - rejection resolves { ok: false } with a do-not-retry, offer-a-link instruction, so the script continues gracefully - dispatch's not-mounted error and the execute_ui instructions now point at ui.navigation.goTo, closing the self-healing loop - unit tests cover validation, parameterized matching, already-there, accept/blocked/declined, and the no-bypass rule Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
cephalization
force-pushed
the
pxi-navigation-operation
branch
from
August 12, 2026 21:11
52a747f to
b7b785a
Compare
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.
resolves #