Repository navigation
feat(shell): link to the grants page as Agent access - #98
Merged
Merged
Conversation
The rail's foot and the switcher get an Agent access link that opens /oauth/grants in a new top-level page. The grants page cannot be framed (frame-ancestors 'none'), and a same-tab navigation would unload every app frame. /lodge/apps does not say who is an admin, so the link shows to every user and the page enforces its own access. shell.md records the rule; no route is added.
Tab can focus the Agent access link in the open switcher, but only the filter took Escape, the switcher's shortcut and the companion's chord. One handler now serves both focus targets; Enter stays the link's own.
Its name held the word "keys", which the org's risk-path floor reads as key material (level L1). The record's content is unchanged.
Contributor
Author
|
Labels lowered by the author: |
bketelsen
approved these changes
Nov 17, 2026
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
The shell gets an Agent access link to the grants page,
/oauth/grants, where an admin reads and revokes agent grants (oauth.md, The grants page). Until now the page was reached only by its typed URL (runbook-pilot.md types it 4 times), which is slow on a phone. This is the smallest step of the roadmap's later idea "Settings in the shell", with no new route.<a href="/oauth/grants" target="_blank" rel="noopener noreferrer">: a new top-level page, never a frame. The consent routes answerframe-ancestors 'none'andX-Frame-Options: DENY(lodge-http.md, OAuth routes), and a same-tab navigation would unload every app frame, which shell.md's Rules forbid. A same-origin top-level navigation passes the consent routes' fetch-metadata check. A click in the switcher closes it./lodge/apps, the only route the shell reads, does not, so the link shows to all and the page enforces its own access (lodgectl allow admin LOGIN).runbook-pilot.md keeps the typed URL: its run needs lodge v0.5.0, which has no link.
Risk tier
Risk tier: 2 — a behaviour change in the shell's UI only: a link with no new route, fetch or write. No path in
.github/risk-paths.jsonmatches (shell/,docs/andsite/are not listed).At
edb8e45the PR gotrisk:highandlevel:L1from the org floor of core's risk-paths spec: the correction record's first name,...-takes-the-switcher-keys.json, holds the path wordkeys. That file is a JSON review record, not key material.257502arenames it (content unchanged), and pr-triage at that head computesL3. By that spec's rules 1 and 6, the author lowers the labels by hand when the stricter change leaves the PR:risk:highandlevel:L1are removed andlevel:L3set.Cross-review
openai/gpt-6.1-sol; codergithub-copilot/claude-sonnet-5.5(shell code), docs byanthropic/claude-opus-5-5. Base5a42da37d49c7939de409386c80c2423ec30583d.00c9f05: Not ready, 1 blocking point: with the switcher link focused (Tab), Escape, the switcher's shortcut and the companion's chord did nothing.edb8e45: 1 shared key handler for the filter and the link; Enter stays the link's own. Guard: testtakes the switcher's Escape, shortcut and companion chord while the switcher link has focus; record.memory/corrections/2026-11-16-pr-98-switcher-link-takes-escape-and-chords.json; shell.md states the keys. Re-review 1 atedb8e45: Ready, Blocking: none.257502a(the record's rename only): Ready, Blocking: none.Docs housekeeping
Verification
make cigreen in the nsl machine before the first push (verify, race, cross, client-check, ui-check, shell-check: 56 shell tests).shell/src/lodge.tsandshell/src/style.cssreverted toorigin/main, tests kept;pnpm exec vitest run test/lodge.test.ts -t "agent access"(nsl) fails all 3 new tests on assertions:has one rail link, with and without a companion,has a switcher link outside the listbox, and a click closes the switcher,never frames the grants page or changes history.shell/src/lodge.tsat00c9f05, tests kept;pnpm exec vitest run test/lodge.test.ts -t "agent access"(nsl) failstakes the switcher's Escape, shortcut and companion chord while the switcher link has focuson an assertion (expected false to be true); the other 3 pass.make shell-check(nsl, 57 tests) andmake check(host) green.