Skip to content
GitHub

DevelopServer & UI

@holtkeeper/web

The Holtkeeper admin panel: Home (what needs you, what changed, AI spend, your team’s repositories), audit reports, background jobs, automation (triggers, schedules, policies and freshness as a list, plus a map of events, rules and actions per team), credentials, settings, AI spend, storage, database, caches, users, your own account (/account/$section: session, theme, sign-out and home teams for every provider; passkeys and linked external accounts with the users provider) and the Audit log, the one log of who did what. A single-page React app that talks only to the server’s JSON API (/api/*) and auth endpoints (/auth/*). The server serves the built files from apps/web/dist.

Stack: React 19, HeroUI 3 (React Aria + Tailwind CSS 4), TanStack Router (code-based routes), TanStack Query, TanStack Table, Motion, Recharts, React Flow (@xyflow/react) with dagre layouts, lucide icons, @simplewebauthn/browser for passkeys.

Terminal window
# API server on :7420 (see apps/server/docs), then in another terminal:
cd apps/web
bun run dev # Vite dev server, proxies /api and /auth to http://localhost:7420
bun run build # writes apps/web/dist, which the server picks up

Set HOLTKEEPER_SERVER=http://host:port to proxy to another server. Session cookies work through the proxy because requests stay same-origin.

Checks: tsc -p apps/web (part of bun run typecheck), bun test apps/web, bun run lint.

index.html theme bootstrap script (no flash of the wrong theme)
vite.config.ts react + tailwind plugins, dev proxy, output to dist/
src/
main.tsx QueryClient (401 → refetch /api/me), RouterProvider
router.tsx route tree; pages are lazy-loaded
app.css Tailwind + HeroUI styles, Graphite tokens, HeroUI overrides, severity and chart colors
api/ the only code that knows URLs
client.ts request(): JSON over fetch with the session cookie, ApiError with the parsed body, missingOf (403) and linkGoneOf (410)
endpoints.ts one typed function per endpoint
queries.ts TanStack Query hooks and query keys
lib/ pure helpers with *.test.ts next to them
access.ts can / canGlobal(principal, action), action list and labels, grant summaries, role label, visible Settings sections
findings.ts finding rows, Language → tool → file → package grouping, search
home.ts Home scope filtering of attention and changes, attention grouping, repoHealth/fleetCounts ranking, fleet ticks, spend segments
fixes.ts fix attempts grouped into per-file fixer chains
units.ts report values by unit (bytes, %, ms…), signed deltas, delta tone, cell sorting
tree.ts treemap sizing (parents sum children), drill-down paths, "Other" folding
graph.ts highlighted cycle paths, graph capping, dagre layered and grouped layouts
markdown.ts safe markdown subset parser (no raw HTML, http(s)/mailto links only)
analyses.ts block type list, analysis pages with their workspace routes and hub areas, trend metrics, record search params, suggested changes, version points
diff.ts unified and split diff rows with line numbers, hunk headers, stats
markup.ts minified SVG/XML/HTML lines split into indented lines for display
selection.ts change selection, "select all safe", conflicts per change, MR titles
format.ts relative dates, durations, expiry tone, short ids
scope.ts scope description, normalisation, path pattern validation, `folderPatterns` ("this folder") and `previewPatterns` (which repositories a pattern list matches)
schema.ts JSON Schema → setting editor kind (x-editor picks a dedicated editor)
policies.ts merge request policies: normalising, cleaning, plain-words summary, checks, saving one policy of an entry
trackers.ts trackers: part variants, roles provided and read (x-role), links, checks
jobs.ts job status tones and labels, durations, analyzers per target scope, Runs segments, filters and search params, scope repos, wait reasons and hints, queue figures, cost helpers, step timeline
tasks.ts task and CI status labels and tones, Tasks filters and search params, task group diagram, spend cap estimate, write pool state and workers, kill switch entry
automation.ts schedule and trigger forms ↔ panel documents, cadence text, describeCron, schedule health, search params
automation-flow.ts the automation map: lanes of events → rules → actions projected from documents, mergedLane and filterLane, why-path of a job
access-map.ts users → scopes of their grants, and grant edits, for the access map
ai-usage.ts USD and token formatting, period deltas, task kind → feature map, breakdown rows, daily people/automatic series, weekly budget state, bar and form
audit-log.ts Audit log filters and scope → query, action and target labels, chain verification summary
storage.ts provider ordering and shares, clear results
database.ts table domains and sorting, dead row share, statement times, session ages, growth
caches.ts egress cache totals, per host sizes, entry filter, hit rate, TTL text
libraries.ts library list and docs search queries, version roles, source statuses, plain-text excerpts
dependencies.ts library rows: filters, segments with counts (filterCounts), sortRows/toCsv, libraryTotals for the strip, scope narrowing, library keys and tabs, upgrade versions, impact narrowing
upgrade-prompt.ts the "Copy as prompt" Markdown for upgrading a dependency or package
github-usage.ts GitHub token ranges, limit utilization, summed request counts, per-day chart series
assets.ts asset kinds, policy lines and fleet policy, table rows and KPIs, search params
branches.ts Quality › Branches search params
reviews.ts Quality › Reviews search params
settings-sections.ts Settings sections and their keys, which page owns which setting, the System catch-all
analyzers-off.ts the Analyzers off policy: analyzer options from the repo.analyzers schema, the value it writes
settings-search.ts one search index of every setting and section, wherever it is edited (Settings search, ⌘K)
media.ts image variant form validation, savings tone, snippet labels
accounts.ts external account providers, verification labels, link form
account-sections.ts Account sections and which a provider offers
my-teams.ts Account › My teams rows per team (`myTeamRows`), toggling a home team (`toggleHomeTeam`)
mcp-tokens.ts MCP token status (active, expires soon, expired, never used) from its dates
mcp-usage.ts MCP usage charts: daily bars, ranked tools, sparklines, error rate, calls per token
forbidden.ts the 403 card's title, actions held on the same kind of object, the "Copy request" text
passkeys.ts passkey names, cancelled prompts, what a setup link grants
schema-form.ts JSON Schema → form fields (objects, records, lists, variants, credentials, $ref; x-labels on enums and enum lists)
sheet.ts side sheet keys (J/K/Escape) and the "3 of 41" position
rules.ts rule scope in words, activation and agent labels, rule drafts and request bodies, history rows, version conflicts, effective prompt block titles, Knowledge search parameters
learnings.ts learning status and origin labels, activates in / expires in, summary totals, source labels, learning drafts and request bodies, reaction sums
repo.ts repository keys, hub splats and search, pasted paths, access checks, "Did you mean" suggestions, `withPaths` (adds exact paths to an include/owns list and lifts their exclusion)
repos.ts fleet list search, sorting, strip and legend, team rows (`teamRows`, `teamOwns`, `teamConsumes`), team edit levels (`teamEditLevel`), team drafts (`toTeamDraft`, `toTeamInput`), ownership change preview (`ownershipChange`), the folder tree (`folderTree`, `folderKey`, `inFolderKey`, `folderAncestors`, `folderLabel`)
repo-page.ts hub tabs and areas, cards, delivery cards, freshness rows, the Updates badge
freshness.ts how current a record is (current, behind, aging, stale, failed, never)
resolved-settings.ts settings resolver: categories, filters, layer counts, source labels
webhook-health.ts states of Holtkeeper's forge hooks, the disabled-hook notice and the forge card line
severity.ts, theme.ts
ui/ thin wrappers over HeroUI and shared visual pieces; shell.ts is the shell context (workspace tabs, side-sheet slot)
features/<area>/ one folder per page: shell, auth, home, repos, analyses,
reports, settings (the Settings page and shared setting editors), and the sections it
stacks: credentials, users, storage, database, caches, audit-log; ai (Ops › AI spend),
mcp, access (Scope/Grants editors), account, jobs, tasks, automation, media,
libraries, security, licenses, stack, public-api, test-coverage, bundles, assets,
ci, branches, reviews; repo holds the hub's tab bodies

Pages never call fetch. api/endpoints.ts maps every endpoint to a typed function using the shared types from @holtkeeper/api (types and browser-safe helpers only; no runtime code from other packages). api/queries.ts wraps them in hooks; mutations invalidate the affected query keys. Errors arrive as ApiError with the HTTP status and the parsed JSON body (body); a 401 anywhere refetches /api/me, which shows the sign-in page. missingOf(error) reads the missing permission of a 403 (ForbiddenError.missing: the action and, for a repository, the key the client sent) and linkGoneOf(error) the state and time of a used or expired setup link (410 LinkGone).

Scope editors (grants, settings, knowledge, budgets) share ScopeEditor over Scope { all?, teams?, repos? }: All repositories, teams picked by title (the key in mono beside it), and path patterns (acme/round/**, forge-prefixed gitlab:acme/round/** with several forges) with a live preview under the field of how many and which visible repositories match (previewPatterns, patternMatches from @holtkeeper/api). This folder adds the folder of the picked repositories as a pattern (folderPatterns, folderPattern). Settings editors offer paths and All first; teams stay selectable since the contract allows them. The schedule and trigger dialogs pick teams and path patterns the same way.

lib/access.ts can(principal, action) only asks whether any grant names the action (or *). It decides which navigation entries and buttons to show; the server still checks the exact scope on every request, and pages show “No access” on a 403. canGlobal(principal, action) needs the action on a grant over everything (scope.all), as the server does for global objects: the Automation entry and Settings › System, the forges, Slack, storage, database and caches sections of Settings, Show on Automation on a job and the schedule and trigger links on a repository’s config use it, so a team-scoped settings:read holder sees no link the server would refuse. useSession() offers both bound to the signed-in principal.

visibleSettingsSections(principal) lists the Settings sections to show, mirroring the server: People & access needs users:read (or settings:read for its Reach settings alone), Audit log repos:read (events of the viewer’s repositories) or a global audit:read (everything), System a global settings:read, AI and Integrations settings:read or credentials:read; a principal with only repos:read sees Settings with just the Audit log, and one with none of these sees no Settings button. actionLabels words every action as a phrase after “can” or “can’t” (repos:read → “read repositories”), and roleLabel(grants) gives one word for a set of grants from the shared roleOf (@holtkeeper/api, from @holtkeeper/access), worded by roleLabels: Admin (all actions on everything), Viewer (only *:read actions), Custom or No access; the setup link page uses the same words. audits:allowlist is gone: changing audit.allowlist is settings:write like any other setting.

Everything from @heroui/react is imported in src/ui/ only. Pages use Button, Panel, Dialog (size="xl" for wide editors), Markdown, TextField, Select, Switch, Checkbox, Segmented, MultiToggle, Tabs, Tooltip, SearchInput, notify and friends from ui/index.ts, so replacing the component kit means rewriting src/ui/ and nothing else. Wrappers expose small, explicit props rather than passing HeroUI props through. Tables (Table, report tables, heatmaps, diffs) cap their height with tableScrollClass and scroll inside under a sticky header; paged lists end in LoadMore, a show-more button that also presses itself once each time it scrolls into view (never again while it just stays on screen, shouldAutoLoad in lib/load-more.ts), placed inside the table’s scroll area when there is one.

A forge’s dialog has Packages for jobs (on by default) and Cache packages (off by default, needs the first): with it the egress proxy keeps the package files jobs download from the forge, and the forge card shows a “packages cached” chip.

With global settings:read, each credential of kind github under Settings → Integrations gets a usage section in its card (GitHubCredentialUsage in features/credentials/GitHubUsage.tsx, GET /api/system/library-index/github?days=, 30 days, refreshed every minute, hidden on 403/404): the GitHub account, requests with the share answered 304 from the cache and rate-limited answers, the live core limit as a bar with what is left and when it resets, a warning when it is a duplicate of another token’s account or GitHub rejected it, and Usage details with the other limits (search, graphql) and the counts per resource; a credential the libraries.github setting leaves out says so. The pool-wide GitHub API usage lives in Settings → System (see Library index).

AI provider credentials (kind ai-sdk, AiProviderFields.tsx) pick a catalog provider or one of your own, its package, base URL and advanced options as JSON (headers, settings, modelMap, pricing, limits). There is no model field: agents run on fixed tiers resolved to the newest Haiku, Sonnet and Opus the provider lists; Models (ModelsDialog.tsx) shows that listing with prices. Opening an old credential drops its model and models options on save. Which credential agents use is the global llm.provider setting.

The credential dialog offers Rotation only for kinds the server can rotate (canRotate in features/credentials/form.ts: the stored credential’s rotatable, else gitlab); GitHub has no API to issue a personal token, so github credentials are renewed by hand and saved with rotation off.

Credentials of kind egress-secret (“Proxy secret”) hold a secret the egress proxy puts into job requests in place of a placeholder (EgressSecretFields.tsx): a generated UUID with copy and regenerate buttons, more hosts, paths, methods and where to replace (headers, URL, body). The URL is where the secret goes, e.g. a Turborepo remote cache. The form keeps them as options, see the server docs on egress rules.

Settings → Integrations also lists forges (global settings:read, ForgesSection). With global settings:write you add a GitLab forge (id, URL, a GitLab token credential and the optional bot username Holtkeeper posts as, PUT /api/config/forges/:id), edit or delete forges, and issue, rotate or remove a forge’s SSH key (POST/DELETE /api/forges/:id/ssh-key): what it is used for (clone and push, signing, or both), its lifetime and an optional commit identity. forge-form.ts holds the form’s validation.

Below the forges, Slack (SlackTokensSection.tsx, global settings:read) shows whether the Slack app’s bot token and signing secret are stored (GET /api/slack) and the Event Subscriptions request URL to copy. With global settings:write it saves or replaces them (PUT /api/slack/connection) or forgets them with the emoji, and once they are stored edits the review status emoji (PUT /api/slack/emoji; blank fields use the defaults shown as placeholders, invalid names are flagged before saving); readers see the emoji in effect. The app marks merge request links with a review status emoji in every channel it is invited to (see Slack review status).

/repos (ReposPage) is the fleet as a FleetTable (ui/FleetTable.tsx, shared by every fleet page) beside a folder tree (FolderTree, folderTree in lib/repos.ts): folders derived from repository paths (pathAncestors, parentFolder, commonFolder from @holtkeeper/api), collapsible, each with its repository count; the forge root is hidden while there is a single forge. Picking a folder narrows the table to repositories under it (?folder=forge:folder, inFolderKey), its ancestors stay open (folderAncestors). The toolbar has the scope switch (its team picker is the page’s team filter, matching RepoSummary.teams, the owner teams), filter buttons for health state and forge, the health legend, a summary Strip (fleetStrip, ending in “Updates N webhook · M polling”), then a sortable table with the path and avatar, overall health and one cell per health area (fleetCells: Security, Deps, Coverage, Bundles, Jobs, CI, Licenses, Release; a cell the viewer may not read is absent from the answer and shows as empty), freshness and how the repository gets updates (updatesText). Rows the viewer’s teams do not own fold into one “Other teams · N” row in My teams. Filters and the sorted column live in the URL (parseReposSearch, withReposSort in lib/repos.ts; no sort means worst first, worstFirst); J/K move through rows, Enter or a click opens the hub, and a cell opens the hub area that explains it, Jobs the repository’s runs in Ops (cellTarget; its hidden status words come from cellStatusWords). Every fleet repository is listed (what teams own or consume plus what forges include), also ones never analysed. The header has a ghost Configure to Settings › Analyzers (global settings:read), a ⋯ menu with Copy link and Show runs (Ops › Runs), and Add repository as the primary action.

/repos/teams (TeamsPage) lists the teams from GET /api/config/teams (global settings:read) or, without it, the owner teams of the visible repositories: title and key, the owns, exclude and consumes patterns, members with their role (maintainer or member) and how many fleet repositories each team owns, computed in the browser with patternMatches (teamRows, teamOwns). New team and Delete need global settings:write. Edit opens TeamDialog at the viewer’s edit level (teamEditLevel): full (global settings:write) edits key, title, owns, exclude, consumes and members, with an “Unsaved: N join, M leave” preview of the owned repositories (ownershipChange, ownershipChangeText); members (* or settings:write on { teams: [key] }, a team maintainer) edits only the title and members; the server enforces the same rule. Saves go to PUT /api/config/teams/:id (toTeamInput trims and drops duplicates).

Add repository (global settings:write) is a three-step SideSheet (AddRepoDialog: “Step N of 3” as its progress bar, Back and Continue in its footer): a forge (with Change on the next step); paths picked from the token’s projects (RepoExplorer, GET /api/forges/:id/repositories) or pasted (parsePastedPaths in lib/repo.ts trims URLs and drops duplicates), checked in one batch of up to 50 (POST /api/forges/:id/repositories/access, worded by pathCheck, naming the token’s account to invite on 404); then Where: A team owns them (a team suggested from the owners of sibling repositories in the same folder; its owns list gets the exact paths, forge-prefixed when there are several forges) or Forge fleet only (the forge’s include list gets them). Paths a forge or team exclude pattern leaves out are listed as blocked until that pattern is edited (withPaths).

/repos/teams/:teamId (TeamPage, tabs={false} so the workspace tabs stay out of the header) has segmented tabs like the hub (SegmentedTabs, pickTeamTab): Repositories (owned repositories as a FleetTable, then consumed ones), Stack & conventions (StackView limited to the team, its view in ?view=), Knowledge (the team’s Guide) and Settings (the settings resolver in team focus, see below), with a summary strip (patterns, owned and consumed counts, health) and Run job for team as a secondary header button.

Team display titles. A team may have a display name (title, 1–60 characters) that the panel shows instead of its key everywhere a team appears: team lists and the team page header, the scope switch’s team picker, team tags in fleet tables, the Knowledge spaces sidebar, scope descriptions (describeScope, scopeLabel, sourceLabel, policySource), grants and other scope editors (the title with the key in mono as secondary text, TagInput labelOf), filters (matching by title or key) and chat thread scopes. Titles come from GET /api/me (MeResponse.teamTitles), limited to the teams the viewer may know about (other teams show their key); useTeamTitles() returns a TeamTitleOf function, TeamName renders one team, and lib/team-titles.ts holds the pure helpers (teamTitleOf, byTeamTitle, teamMatchesQuery, validateTeamKey, validateTeamTitle, withTeamTitle). The key stays the identity: grants, settings scopes, home teams, guides, schedules, URLs and stored values never use the title. /repos/$ (the splat is forge/path, repoSplat/parseRepoSplat) is the repository hub (RepoPage): a header with avatar, path, forge, default branch and owner teams, the Updates tag (updatesBadge, linking to Settings › Updates) and Run analyzer; the health strip (RepoHealthStrip, one named entry per readable cell, then the head freshness last saw); and segmented tabs kept in ?tab= with the area in ?section= (repoTabs, hubSearch; a tab the viewer may not see falls back to the first visible). Each tab is a file in features/repo/tabs/:

  • Overview (analyses:read, RepoOverview): the server’s Supply chain and Quality cards (HubCard), Delivery cards from reviews30d, work, knowledge and release (deliveryCards), the freshness of every analysis (freshnessRows over lib/freshness.ts: current, behind HEAD, aging, stale, failed, never), facts (toolchain, access in words with accessText: Read-only · reason, or Writable here with the reason when a narrower repo.freeze entry lifts a broader freeze, default branch) and the latest audit events of the repository.
  • Supply chain (RepoSupplyTab, supplySections: security with audits:read, libraries, licenses, stack and public API with analyses:read): one area at a time (section), each the Supply page’s body narrowed to the repository (see Supply chain) with Open in Supply › linking to the page filtered to it (stack links to its group’s Stack & conventions tab instead).
  • Quality (qualitySections: coverage, bundles, assets, CI, branches, reviews): one area at a time, each the Quality page’s body narrowed to the repository with a link to the page filtered to it; file and ref open an asset in the optimizer.
  • Releases: the repository’s release timeline. Activity: its audit events as the Audit log shows them to the viewer. Knowledge: its effective prompt, the rules that apply to it and its pending and active learnings, as on Knowledge.
  • Settings (settings:read): the settings resolver in repository focus.

Settings resolver (features/settings/ResolvedSettings.tsx over GET /api/settings/resolve?repo=|team=, helpers in lib/resolved-settings.ts): every setting the server defines as it applies to the focus, one row per key with the winning value (in words where raw JSON reads poorly, settingValueText: repo.freeze reads Read-only: reason or, for a lift, Writable here: reason, with its end), its source in words as a chip in the layer’s style (sourceLabel: Default, Org, Team web, This repo, Repo pattern, This team; Default dashed, the focus’s own layer accented) and what it replaces; rows overridden here are tinted with an accent bar. Rows group by the definition’s section into one table with a header row per section, also listed in a left category column with counts (resolvedSections; the hub keeps the category in ?section=, the team page in local state); the filter switches between All, Overridden here (the winner names the focus, setHere) and Not default, each with its count, a text filter narrows by label or key, and the legend shows the same chips with the winners per layer in the order they resolve (Default → Org → Team → This repo, layerCounts), so it reads as the key. With settings:write a row offers Override: an inline row editor (ValueEditor) with what the new value replaces and Save override, which writes an entry scoped to the focus (scopeOfFocus); an override of the focus can be edited inline or removed, a shared entry opens the full EntryDialog, and Full editor opens it for any row. Global keys say they have one value for all. Under the categories an Elsewhere block links Analyzer defaults, Policies and Audit log in Settings (those the viewer may open, visibleSettingsSections); the header has a ghost Edit defaults to Settings › Analyzers, and the footer’s audit log and Settings are links. For a repository the Updates category (also ?section=updates) adds RepoUpdatesSection (features/repos/RepoUpdates.tsx): the Webhook panel (URL with copy, issued when and by whom, registered on the forge or added by hand, the last delivery with its summary and result, deliveries and failures of the last 24 hours, Regenerate, Turn off, Register on GitLab, setup steps), the Polling panel (cadence with the budget warning, pollingCadence; what it looks for; last and next poll) and Recent events, webhook deliveries and polls in one table (updateEvents in features/repos/updates.ts). While GitLab keeps one of Holtkeeper’s hooks for the repository from delivering, a notice (webhookDisabledNotice in lib/webhook-health.ts) says whether polling stands in or, with polling off, that no updates arrive until the hook is back (danger). It reads Webhook disabled by GitLab — re-enabling while Holtkeeper is trying, with the last error and the next try from retryAt; Webhook disabled by GitLab after 3 failed attempts (danger) or when Holtkeeper cannot re-enable the hook at all (no retryAt, reenabledAt or lastError), then pointing to GitLab’s Settings › Webhooks. It lists the hooks with their state (hookStateLabel) and offers Re-enable now (POST /api/repos/updates/webhook/reenable); the Webhook panel’s On the forge shows the own hook’s state, and the Updates tag reads Webhook disabled · polling, or Webhook disabled (bad) with polling off. Re-enabling sends GitLab a test delivery that starts no triggers; a repository-scoped settings:write re-enables only the repository’s own hook. Poll now and Re-enable now need settings:write.

Nothing on these pages calls an LLM.

List pages that show repositories share one ScopeSwitch (ui/ScopeSwitch.tsx): the segments My teams (the viewer’s home teams) and All I can see, each with its count, then a Team: Any ▾ picker (a popover list box, keyboard accessible, as tall as the segments and wide enough for “Team: Any” so the toolbar does not shift) listing every team the viewer can see. The list is always the owner teams of GET /api/repos (useTeamNames), the same set resolveScopeView accepts, so every listed team can be picked; the page’s own counts (ScopeCounts.teams, teamCounts) are attached, 0 for a team the page has no items in, and a page that passes no counts shows no numbers. Picking a team narrows the page to that one team and selects neither segment; Clear goes back to My teams. The picker is the only team filter of a page: pages do not add their own Team filter button. Without home teams the switch reads My teams 0 and a quiet Choose your teams link (ChooseTeamsLink) to Account › My teams appears; Page and FleetTable put it last in the toolbar so nothing moves when preferences arrive. Lists under My teams show NoTeamsState (the same link) instead of an empty list. ScopeView is 'mine' | 'all' | 'team:<key>' (teamView, viewTeam), and that string is also what useScope() (features/shell/scope.ts) remembers per browser under holtkeeper.scope. parseScopeView drops a stored value it does not know (the retired others and group: values included), and resolveScopeView also drops a team the viewer can no longer see once repositories have loaded; both fall back to defaultScopeView, which is always My teams. useScope() also returns ready (preferences loaded for My teams, repositories loaded for a team; a team is dropped when repositories fail to load) and noTeams (My teams on, preferences loaded, no home teams). Pages show placeholders until ready instead of empty or unscoped data, and FleetTable waits for preferences under My teams. Its scope(items) calls scopeList (lib/home-scope.ts), which splits items with teams (their owner teams) by the home teams into what to list (a team position keeps that team’s items), the counts of both positions and of every team, and the other teams’ items and teams. foldScope does the same for tables and lists that fold: My teams keeps items in a home team or owned by no team and folds the rest (without home teams only items owned by no team stay), a team position and All I can see fold nothing. inView answers membership for one item, viewTeams gives the teams= a page sends to the server (the home teams, the one team, or none for All I can see), and scopeLabel / scopeSuffix name the position in captions (“of my teams”, “in Widgets”). For tables the kit has the row variant of OtherTeams: one collapsed row “Other teams · 40 repositories of 3 other teams” (otherTeamsText in lib/other-teams.ts) that expands into their rows. /repos and a team’s repository list fold them into that row through FleetTable, which hides the row in a team position. Home teams come from GET /api/me/preferences (the teams in the viewer’s grants until changed) and are edited on Account › My teams. They are a UI default, not a permission: the lists already hold only what the viewer may see. Every fleet page uses it. Pages whose data reaches other teams through the cross-team catalog (Libraries, a library’s Used by, Stack, Knowledge notes, a library’s team decisions) show them in a collapsed Other teams (N) section (the section variant of OtherTeams, with the team names) split off by foldOtherTeams (lib/home-scope.ts: items in a home team or owned by nobody stay, the rest fold; nothing folds without home teams).

/ (features/home/HomePage.tsx) reads GET /api/home (refetched every minute), GET /api/repos (with repos:read) and GET /api/inbox/count, and is open to every role; each part shows only what the server let through. The ScopeSwitch narrows it on the client: scopeHome in lib/home.ts keeps attention and change rows about no repository in every position and a row about several repositories where any of them belongs; repositories go through scopeList, whose counts the switch shows. Nothing is scoped until useScope().ready; without home teams Needs attention, What changed and Repositories show NoTeamsState where they would be empty. Repositories lists the ten worst repositories in scope (the switch’s team picker is its team filter) and names the scope in its footer (scopeLabel). The primary action Review inbox opens /inbox with the open count.

  • Strip. Repositories, one figure per health status (fleetCounts), items that need attention (snoozed ones left out), decisions waiting in the Inbox and, at the right, the number of stale analyses: the sum of freshness.total - freshness.current over the scoped repositories.
  • Needs attention is a table of the server’s items: severity, the sentence with its kind and detail, the repositories, the age and the actions. The action button follows HomeAttentionItem.action: Retry (offered only when the server says the caller may) queues the analyzer again on every repository of the item through useRetryAttention (POST /api/jobs per repository; refreshes jobs, Home and Inbox), Review, Renew and Open are links to its href, which for releases, learnings, knowledge and allowlist entries is the Inbox item. Each row snoozes for a day or unsnoozes through useSnoozeMutations. Rows are grouped by severity, kind or first repository (groupAttention, picked with the header’s By severity / By kind / By repository switch); snoozed rows are hidden until the header’s Snoozed N toggle is on, then they show with a Snoozed tag after the rest of their group. Retry rows add an arrow that opens the item’s href.
  • Fleet health (with repos:read) is a TickStrip of the scoped repositories worst first and a Legend with the count per status, plus the stale analyses line.
  • AI spend this week (with ai:read) is a meter on a monochrome scale (spendSegments: task kinds summed per product feature with featureOf from @holtkeeper/ai-usage/features, as Ops › AI spend labels them; the four largest from darkest to lightest, then Other) against the weekly limit, with a marker where automatic work stops, the projection as a Tag, the reserve, Resets Monday and the spend per feature.
  • What changed lists audit log events of the last 7 days, one sentence each (HomeChange.text), linking to the event’s href, with the repository, the actor’s avatar and the age; Full history opens Settings › Audit log.
  • Repositories (with repos:read) is a table of the 10 worst scoped repositories by repoHealth (overall health first: failing, with warnings, not analysed, healthy; then 10 per bad cell plus 1 per warn cell; then forge:path). Columns are the health cells the caller may read on any shown row (healthCells); each HealthCell opens that tab of the repository hub (hubSearch: Supply chain › Security, Libraries or Licenses, Quality › Coverage, Bundles or CI, Releases, Activity for jobs), the path opens the hub’s Overview. A Team filter narrows the table to repositories of the picked teams. The footer says the scope follows My teams (linking to Account › My teams) and links to the full list when there are more.

/inbox (features/inbox/InboxPage.tsx, the Home workspace’s second tab next to Overview, open to every role) reads GET /api/inbox (refetched every minute) and lists every decision the viewer may make in two sections, Waiting for you (what they may decide in their home teams, or everything without home teams) and Your teams can also decide, each oldest first unless the Sort filter picks newest first or soonest to lapse (?sort=newest|due). The For me / My teams switch (?for=mine) drops the teams section. Rows and figures come from lib/inbox.ts: groupInbox narrows by tab, kind segment, for and the search text (title, scope, detail, repositories, proposer) and sorts each section, kindCounts fills the segments (Task proposals, Notes, Learnings, Guide, Releases, Allowlist, Budget), inboxKpis the summary Strip (waiting for you, more for your teams, expired, expiring within 7 days, the oldest wait, snoozed; a budget warning’s dueAt is when the week resets, so it reads Resets in N days and never counts as expiring), and openCount equals GET /api/inbox/count for the same feed, so the badge and the rows agree. The Open / Snoozed tabs split the feed by snoozed; snoozing (POST /api/me/snoozes for a day or a week, DELETE to end it) is a private mark, the item comes back on its own. The search is in the URL as ?item=&kind=&tab=&sort=&for= (parseInboxSearch, the shape of webPaths.inbox); item is the InboxItem.id.

Each row has its kind’s decision: Approve a task group (POST /api/task-groups/:id/approve, nothing runs before) or Reject it (POST /api/task-groups/:id/reject, audited as task.reject), Approve or Reject a pending learning (POST /api/learnings/:id/approve|reject; left alone it activates after the approval delay), Accept a release only when item.can.accept and Reject it (release items are only acceptances nobody gave while there is something to release; proposing, tagging and deploying stay on the Releases page) (POST /api/releases/dismiss with head: hidden until new commits, nothing changes on the forge), Renew an allowlist entry by 30 days past its last day or today (POST /api/audits/allowlist/renew, renewalDate; it has no Reject; the server refuses a date past audit.allowlistPolicy.maxDays or a missing reason and the notice shows its message), and Acknowledge a weekly AI budget warning (budget, shown to people who may change that budget once spend passes its warnPercent), which snoozes it until the week ends; it has no Approve or Reject. Selected rows take Approve selected, Reject selected or Snooze 1 day: runBulk sends one request after another and the rows that failed stay selected with their error under the title and in a notice. Every decision goes through useInboxDecisions and refreshes Inbox, Home and its own area (decisionQueryKeys); the task, learning and release mutations of their own pages refresh Inbox and Home too.

A row opens the item in the SideSheet, headed by the item’s short id (shortItemId, copyable) and tagged with its kind, status and scope (J/K step through the rows, A approves, R rejects, S snoozes the open one, decisionCommand in lib/sheet.ts; with no sheet open J opens the first row and K the last): a task group’s Diff, Plan and Context (what was asked, by whom and where it writes) through TaskGroupView’s diff, plan and request sections, and Repositories (TaskDetail per repository); a pending learning’s text, reason, scope and files, agents, origin, when it activates and its sources (or a line saying it was decided once the pending learnings no longer list it); the release’s compact NextCard; an allowlist entry’s renewal form with the new last day and its reason; a budget warning’s spend against the budget (features/ai/BudgetWarning.tsx). The ⋯ menu snoozes and opens the item where it lives (item.href). The rail’s Home item and the Inbox tab carry the open count from GET /api/inbox/count (useInboxCount, read at most every 30 seconds, ETag on the server). While write tasks are off (tasks.write), task approvals are disabled and a warning (WritesOffNotice in features/tasks/WritesOff.tsx) points to the Agents may change code switch on Ops › Tasks, in the Inbox list, its task sheet and chat cards. A chat task card that waits for approval can be approved or rejected right in the thread, and links Open in Inbox (/inbox?item=task:<groupId>&kind=task). Decisions are not available through MCP.

/ops/runs (Ops, analyses:read): the queue of background analyzer runs with their steps, logs, cost and why each one ran. See runs.md.

/ops/tasks (Ops, repos:read): agent write task groups from approval to merge request and CI, with the tasks.write switch. See tasks.md.

/ops/automation (Ops, settings:read; editing with global settings:write): triggers, schedules, merge request policies and freshness as a list and a map. See automation.md.

/ops/spend (Ops, ai:read or ai:admin): the weekly budget with its inline editor, daily cost of people and automatic work, spend by feature, repository and model, and every model run. See spend.md.

/ops/reviews (Ops, ai:read or ai:admin): what merge request reviews cost by phase and per merge request, how people replied and how the bot answered, and what came of the comments. See review-analytics.md.

/settings/audit (Settings › Audit log, features/audit-log/AuditLogPage.tsx; repos:read or global audit:read) is the one log of who did what. It reads GET /api/history and GET /api/history/summary, so it lists only what the viewer may see: every audit event with global audit:read, otherwise only events about repositories the viewer can read and never instance events. The ScopeSwitch narrows it to the repositories of the viewer’s home teams (My teams), of one picked team, or everything (All I can see), using GET /api/history/scope. Filters pick an area, one repository, an outcome and a time range (24 h, 7 days by default, 30 days, All). With global audit:read a chain banner shows the daily hash chain check (GET /api/audit/verify/last), Verify chain runs one now, and the ⋯ menu exports CSV or NDJSON. A summary strip counts events, denied and failed ones and the people and agents who acted; the table groups events by day with their #seq, a sentence per action (lib/audit-labels.ts) and the scope; a row opens the SideSheet with Event / Changes / Details tabs and J/K stepping. See settings-audit-log.md.

Storage, the egress proxy cache, the database and the library index are blocks of Settings › System, each a SystemPanel with an anchor the sub-navigation links to, under a health strip from GET /api/system/health. Storage and caches (features/storage/Storage.tsx): space per storage area as a table with its share and change against the week-old daily snapshot, and Clear where the area allows it (global settings:write); git mirrors and the tool cache are broken down by worker as the workers report them, and clearing them asks every worker. Database (features/database/Database.tsx): size with 7-day growth, cache hit ratio, connections and uptime (or table, row and migration counts on SQLite), findings worth a look and always-visible tabs: Tables and size, Growth, Slow queries (top pg_stat_statements entries, Reset with global settings:write), Sessions, Indexes and Migrations; Slow queries and Sessions are Postgres only. Egress proxy cache (features/caches/Caches.tsx): the proxy’s download cache (GET /api/egress/cache) with its size, savings, hit rate, entries and removal (global settings:write). See settings-system.md. /account/$section also lists linked external accounts, links new ones and issues verification codes.

/knowledge/rules and /knowledge/learnings (Knowledge workspace, knowledge:read): the rules people write for all repositories, teams or repository patterns, with the effective prompt of a repository, and the rules Holtkeeper learned, with approve and reject. Older /knowledge/* paths redirect to Rules. See Rules, Learnings and the effective prompt.

/settings/$section (the rail’s bottom Settings button) is a left SubNav and the section beside it; Page gets tabs={false}, so there is no workspace tab row. Instead the section header carries in-page anchors to the section’s blocks (People: Users, Roles, Reach; AI: Providers, Budgets, Agent tools; Integrations: Forges, Credentials, Trackers, Request limits; System: Storage, Caches, Database, Library index, Background work, All keys) and the one primary its body asks for through useSectionHeader (features/settings/section-header.ts): Invite people, Add provider, Add forge, Run analyzer… and Check health now; the in-body buttons they replace are gone or secondary. The settings workspace has one entry per section (/settings/people|ai|integrations|analyzers|policies|system|audit, settingsSections and parseSettingsSection in lib/settings-sections.ts), each shown only to principals the server lets read some of it (visibleSettingsSections in lib/access.ts); the rail button opens the first visible one, /settings redirects there, an unknown section is the in-shell 404 and a hidden one the Forbidden card naming the permission it needs (settingsSectionRequires: People users:read, AI, Integrations, Analyzers, Policies and System settings:read, Audit log repos:read). People shows its Reach settings to settings:read holders and the people list only with users:read. Each section body lives in its own file under features/settings/sections/ (PeopleSection, AiSection, IntegrationsSection, AnalyzersSection, PoliciesSection, SystemSection); SectionSettings in SettingsSection.tsx renders a section’s settings with their entries. Optional search parameters deep-link into a section (parseSettingsSearch): item opens a record’s sheet (a user, a credential, an analyzer, a policy), tab a tab inside it, and repo starts the audit log filtered to a repository.

The sub-navigation shows a counter next to a section from endpoints the shell already reads (lib/settings-counters.ts), each only when the viewer may read it: the number of people (users provider, users:read), the share of the weekly budget over everything spent (budgetMeta, ai:read or ai:admin) and the credentials that need attention (credentialsNeedingAttention: a failed rotation or probe, or a secret expiring within 14 days). Its footer has a Look up · Effective config for… repository picker that opens the hub’s Settings tab (the resolver for that repository), says changes are recorded in the Audit log and names the instance (instanceLine: the host of publicUrl from GET /api/me, else the page’s origin, and the running version).

The Search settings field on top of the sub-navigation (/ focuses it) searches settingsIndex(definitions, sections) from lib/settings-search.ts: every visible section plus every setting the server defines, including those edited on another page, each with where it lives (Settings › AI, Quality › Coverage, Ops › Tasks; analyzers.review under Quality › Reviews, analyzers.guide under Knowledge › Guide, knowledge.autoAccept, learnings.autoAccept and guide.autoAccept under Settings › Policies). Results group by the setting’s section and link to the section at the setting’s entries (#setting-<key>, settingAnchor) or to the page that owns it. searchSettings(index, query) needs every word to match and ranks label and key matches first; the ⌘K palette reuses both (palette).

  • People & access (users:read): the people strip, table and UserSheet, role cards, then Reach (access.crossTeam) and the read-only repositories (repo.freeze) for settings:read. See settings-people.md.
  • AI (settings:read or credentials:read): provider cards, budgets split by feature with the scope caps, the llm.provider, llm.tiers, llm.budget and mcp.ask settings, and the read-only agent tools registry. Spend is on Ops › AI spend. See settings-ai.md.
  • Integrations (credentials:read or settings:read): forges with repository count and last webhook delivery (global settings:read), the credentials table with what uses each one and its last use, trackers and request limits as configured, and the stored Slack tokens (global settings:read). See settings-integrations.md.
  • Analyzers (settings:read): a built section, not a settings list: analyzers grouped by area with their state from Automation, 7-day health and a sheet with Runs, Options and Overrides over the same analyzers.<kind> keys the analyzer pages edit (settingHome still names the page). See settings-analyzers.md.
  • Policies (settings:read): a built section that drafts several keys at once (POST /api/settings/draft): analyzers.licenses, audit.allowlist, audit.allowlistPolicy, audit.fix, audit.upgrade, commits.conventions, assets.policy, analyzers.stack and analyzers.testids, also still homed on their pages. See settings-policies.md.
  • System (global settings:read): the health strip, storage and caches, database, the library index, Background work (libraries, polling, toolchain, freshness.sweep with who sets them) and Show all keys, which lists every setting no page or section claims too (sectionDefinitions), so nothing is left uneditable. Write tasks moved to Ops › Tasks. See settings-system.md.
  • Audit log (repos:read or global audit:read): see Audit log.

The MCP server section is on the Account page now, under Account › Connect agents.

Section details: People & access, AI, Integrations, Analyzers, Policies, System, Audit log.

Settings that belong to a page are edited there (pageSettingKeys and settingsPageHomes in lib/settings-sections.ts). Analysis pages carry a ghost Configure button (useConfigure in features/settings/SettingsSheet.tsx gives Page its configure prop and the sheet; settings:read) that opens a SideSheet with their analyzers’ options, one underline tab per setting (J/K step through them): Bundles, Libraries (depgraph, renovate), Public API (api-surface, usages), Stack (stack, browserslist; also Edit conventions), Security (analyzers.audit, audit.fix, audit.upgrade, audit.allowlist), Licenses, Coverage, Branches, CI, Assets and Reviews, and the hub’s Quality › Assets section (Analyzer options). Releases keeps releases on Flow setup (/releases/setup), Knowledge keeps analyzers.rule-miner and the policies agents read as facts (commits.conventions, assets.policy, analyzers.testids) in its Configure sheet, Automation keeps mergeRequests.policies and freshness, Tasks keeps tasks.write. The effective value per repository or team and where it comes from lives on the hub’s and the team page’s Settings tab (the settings resolver, see Repositories and groups).

Each setting shows its entries per scope next to its help (SettingEntries: SettingCard plus the add, edit and delete dialogs). An entry whose value carries keys the setting no longer reads (SettingView.unknownKeys, flagged by the server) gets a warning line under it (UnknownKeys, unknownKeysWarning in lib/resolved-settings.ts) naming them and where moved ones live now; the settings resolver shows the same line under a row’s value and the Policies cards under their header. Adding or editing an entry opens a wide editor: scope and value on the left, the setting’s guidance on the right. A global setting (such as llm.provider) has no scope picker: its entry always applies to all repositories. Settings with presets get a Preset picker above the value (PresetPicker, helpers in lib/presets.ts): applying one merges its fields into an object value (replaces other values) and remounts the value editor; the picker shows the preset the value already matches. Values get a form built from their JSON Schema; a setting or a string property with x-credential: <family> gets CredentialPicker (credentials of that family, e.g. github → kind github; it stores the id, shows the name, explains how to add one when there is none and falls back to a text field without credentials:read), and an array of such strings gets CredentialsPicker (several credentials, ids stored in order, an old name or unknown id stays listed as itself until removed, tag input without credentials:read). Every value gets a form; merge request policies and freshness are edited on Automation instead. x-editor: trackers gets TrackerEditor: entity and key normalization, a map (@xyflow/react) of sources by role → rules that read those roles → outputs, where dragging from a source to a rule sets the source’s x-role: provides field to a role the rule reads, preferring one no source provides yet (linkSource), with rules that read a role no source provides and sources no rule reads called out, then Sources, Rules and Outputs blocks whose options come from the kind variants of the schema. Shared rails and remove buttons live in features/settings/blocks.tsx.

Details: account.md.

/account/$section (the avatar at the bottom of the rail opens profile; a bare /account redirects there) is the signed-in principal’s own account for every auth provider (features/account/AccountPage.tsx, sections in lib/account-sections.ts). A header names the person with their avatar, email, role (roleLabel), sign-in chips (single sign-on identities and passkeys with the users provider, otherwise the provider’s name) and member-since date, then Docs and Sign out (a POST to auth.logoutUrl, shown only when the provider has one). Below it a SubNav lists the sections, each with a short count (home teams, passkeys, accounts to verify, role, tokens that have not expired), and points admins to Settings; an unknown section shows the not-found card.

  • Profile: with the users provider the stored name, email, member since, user id and New avatar (PUT /api/me/avatar with a random seed); otherwise what the provider reports.
  • My teams: the home teams My teams shows on every list page (GET/PUT /api/me/preferences, UserPreferences.homeTeams). A table of every team the viewer knows (titles from MeResponse.teamTitles plus the owner teams of visible repositories) with a checkbox, its repository count, its health (repositories per overall status with status dots) and forges (myTeamRows in lib/my-teams.ts; no people column), how many repositories My teams covers, and Use my grants to go back to the teams in the grants.
  • Sign-in (users provider only): passkeys to add, rename and remove (the last one stays), and single sign-on identities.
  • Linked accounts: ExternalAccounts (/api/accounts), every provider.
  • My access: the role, summarizeGrants and each grant with where it applies (describeScope) and what it allows (actionLabels).
  • Connect agents: the MCP section, see below.
  • Preferences: the theme and the scope list pages open on (useScope): My teams, All I can see or one team picked from every team the viewer can see, both kept in this browser.

Requests to /auth/users/* happen only when auth.provider is users; the other sections use /api/* and the session.

A 403 shows one card inside the shell (features/shell/Forbidden.tsx): “You can’t …” naming the missing action (actionLabels) and, for a repository, the key the client sent; You have (the People role from roleLabel, summarizeGrants and the actions of the same kind the viewer holds elsewhere, relatedActions in lib/forbidden.ts); Signed in as; Copy request, a message for an admin with the permission, target, viewer and page (accessRequest); and Go to Home. ErrorState renders it for every 403, so any refused query, whether authorize() or another route refused it, names the missing permission from the body (missingOf); pages that hide a section by grant pass the permission it needs (missing), so the card always names one. There is no “who can grant it” list.

An address that matches no route, and a repository key the viewer cannot see, show the not-found card inside the shell (NotFound and RepoNotFound in features/shell/NotFound.tsx) with Go to Home and Search ⌘K. For a repository key, “Did you mean” offers up to three repositories a few typos away (suggestRepos in lib/repo.ts), taken only from /api/repos, so it never reveals a repository the viewer cannot see.

Signed-out pages share AuthCard (features/auth/AuthCard.tsx): a top strip with the brand, the instance’s host, Docs and the theme toggle, then a centered card. LoginPage offers exactly the provider’s methods: Sign in with a passkey with a hint about the browser prompt, single sign-on buttons, and the admin password folded under Sign in with the admin password when anything else is offered. A closed passkey prompt reads “The passkey prompt closed before it finished. Nothing was changed.” with Try again and Use instead; with passkeys the card ends with how new people get a setup link and how lost passkeys are recovered. Without methods it says the server signs people in outside Holtkeeper.

/link/:token (LinkPage) is three steps (link checked, create passkey, open Home): welcome or recovery title, You get (the role and number of grants from LinkInfo.grants, never group names; linkGrantsText in lib/passkeys.ts) and the instance (never who issued the link), an optional passkey name, Create passkey and when the single-use link expires, relative and as a date, inline. A cancelled browser prompt leaves the link valid. A used or expired link (410) says when it was used or expired (linkGoneOf), an unknown one that it is not valid, both with Back to sign in; other failures offer Retry. While /api/me loads, AuthGate shows “Starting Holtkeeper”; when it fails, the status (503 · /api/me) with Retry.

RepoAvatar shows GET /api/repos/avatar (uploaded, the forge’s project or group avatar, or generated initials) in the repositories table, on repository pages and on analysis cards, with initials if the image fails. On a repository page the large avatar uploads a new one on click (settings:write, PNG, JPEG, WebP or GIF up to 512 kB) and resets it to the forge or generated one; every image of the repository reloads after a change.

Chat (features/chat, route /chat?thread=<id>, needs repos:read somewhere) is the team chat over /api/chat/threads: threads, the open thread and its context column. See chat.md; the Knowledge page’s Ask in chat opens a new thread there with the repository as context.

Releases (features/releases, Releases workspace, shown with releases:read) has Overview, Timeline, Compare, QA and Flow setup (features/qa). Release-specific components stay in features/releases. Per page:

  • Overview: /releases, the strip, the queue of repositories that need a person and the fleet table (lib/release-overview.ts)
  • Timeline: /releases/timeline?repo=, one repository’s next version, environments and past versions
  • Compare: /releases/compare?repo=&from=&to=, the changes, tasks, AI description and dependency changes between two versions, or a version and the target branch
  • Flow setup: /releases/setup?repo=, the setup wizard and the flow editor of a configured repository
  • QA: /releases/qa, tasks with recent changes across repositories, and /releases/qa/$key, one task with its changes and an AI summary for testing

The Quality workspace has Coverage, Bundles, Assets, CI, Branches and Reviews (features/shell/nav.ts, each with analyses:read); the hub’s Quality tab (RepoQualityTab) shows the same areas narrowed to one repository, each through its area’s *RepoSection component, whose header links Open in Quality to the fleet tab narrowed with ?repo=. Every route parses its search parameters with the area’s parse*Search (lib/coverage.ts, lib/bundles.ts, lib/assets.ts, lib/ci.ts, lib/branches.ts, lib/reviews.ts; the record page’s in lib/analyses.ts). Per area:

The Supply workspace has Libraries, Security, Licenses, Stack and Public API. Libraries, Security, Licenses and Stack are fleet pages on FleetTable with the scope switch, a summary Strip, filters with counts and a side sheet for the open row (J/K step through the rows on screen); on every page filters, sort and the open row live in the URL (parseLibrariesSearch, parseSecuritySearch, parseLicensesSearch, parseStackSearch, parsePublicApiSearch). Each body also has a variant narrowed to one repository for the hub’s Supply chain tab (RepoLibraries, RepoSecurity, RepoLicenses, RepoStack, RepoPublicApi) that keeps its filters in local state.

Libraries (features/libraries/LibrariesPage.tsx, /supply/libraries?repo=&library=&tab=&segment=&ecosystem=&q=&sort=&dir=) reads GET /api/dependencies: one row per library the readable repositories use, with its ecosystem and an internal tag, the versions in use as a bar tinted by majors behind, the number of repositories, latest, how far behind, advisories with the worst severity and update merge requests. Segments Third-party, Behind a major, Advisories, Update MRs and Internal and an ecosystem switch carry their counts (filterCounts); columns sort (sortRows) and Export CSV in “⋯” downloads the rows shown (toCsv). Under My teams rows narrow to the home teams’ repositories with versions and behind figures recomputed (scopeLibraryRows, narrowRow) and other teams fold into the table’s row. ?repo= narrows the table to one repository’s versions. A row opens the library in the SideSheet with Overview, Upgrade (badge: repositories not on the target yet), Used by (badge: repositories using it) and Docs (librarySheetTabs). The sheet header shows the version mix as a segment bar tinted by majors behind (4.2.0 × 9 · 4.1.3 × 2), the quiet actions Plan upgrade (opens the Upgrade tab, tasks:run) and Copy as prompt (upgradePrompt with the target and the repositories behind it), Public API in the ⋯ menu for internal packages, and Open as page. The sheet’s Overview facts add Public API (exports and documented share, useDependencyApi), Upgrade readiness (from → to, repositories already on the target, impact counts by level from useUpgradePlan) and Write tasks (on or off and the cap per repository, taskGroupCap). The header’s primary action is Analyse now (depgraph).

Library (features/libraries/LibraryPage.tsx, /supply/libraries/$ecosystem/$?tab=) is one library with a facts strip and six underline tabs (libraryTabs, rendered by LibraryDetail, shared with the sheet):

  • Overview (GET /api/dependencies/library, also for an internal package only the catalog knows): links (in the sheet a key–value block of latest, ecosystem, license, links and description, which the page shows in its header), team decisions (other teams’ shared ones folded), versions in use, advisories, licenses with verdicts, bundle shares, indexed versions and update merge requests. Verdicts, impact levels, API change kinds and merge request states read as words (verdictLabel, impactLabel, apiChangeLabel, mergeRequestStatusLabel).
  • API (GET /api/dependencies/api): for an internal package (definedIn) the facts of the shown version (PackageFacts) and its exports per entry point grouped by kind with declarations and doc comments (ApiTab); for a third-party library the totals the index knows.
  • Changes: for an internal package the diff with an earlier recorded release (removed, changed, deprecated, added) with the semver warning; for a third-party library its release notes and API changes from the oldest version in use to the latest (ChangesTab).
  • Used by (UsedByTab, /api/api-surface/usages/*): a table and a strip of the repositories using it with their versions tinted by how far behind they are, the exports, props and members they use as bars, unused exports and the code of a picked use; a repository narrows everything to it. The consumers toolbar has Export (the picked export, ?export=) and Version (only consumers on that version, ?using=) filters, All repositories while one is picked and Copy as prompt (upgradePrompt over the shown consumers).
  • Upgrade (GET /api/dependencies/upgrade, loaded lazily by useUpgradePlan in upgrade-plan.ts): from and to pickers (upgradeVersions), the affected uses narrowed to the scope (narrowImpact) or the API changes, the changelog and Copy as prompt (upgradePrompt).
  • Docs (GET /api/dependencies/docs): a search over the library’s indexed docs and the documents of the newest indexed version.

With tasks:run the header’s primary Roll out (RollOut.tsx) lists the repositories in scope below the target (rolloutTargets) with the spend cap (taskGroupCap), says when write tasks are off or there are more than maxRepos, and starts an upgrade task group, one draft merge request per repository. Nothing on these pages calls an LLM. Helpers live in lib/dependencies.ts, lib/usages.ts, lib/libraries.ts and lib/upgrade-prompt.ts.

Security (features/security/SecurityPage.tsx, /supply/security?view=&repo=&q=&urgent=&severity=&status=&ecosystem=&sort=&finding=&tab=) reads GET /api/audits/findings: the findings of the newest audit of every readable repository grouped by advisory and package (findingKey). Its views (view, Findings by default):

  • Findings: a Repository filter on the fleet page (writes ?repo=, which narrows every view), an Urgency filter (urgent=only: findings judged urgent, see FindingGroup.urgency), severity, status (open, fixing, allowlisted), ecosystem and text filters and a sort (filterFindings, sortFindings), a strip of counts (findingCounts, with the urgent ones when there are any) and a warning when allowlist entries have expired. The view tabs count every finding group, allowlisted ones included (as the strip does), and the allowlist entries (allowlistRows). Urgent findings carry an Urgent (or Malware) tag with the category under the severity and sort first by severity. A row opens the finding sheet (FindingSheet) with the urgency verdict (UrgencyNote: urgent or not, category, rule or AI, the reason and a link to the Slack alert), its repositories and their status (repoStatusCounts), details (aliases, installed, fixed in, first seen) and Fix attempts (FixTimeline over the fixes the newest audit of each repository ran for the advisory, read from GET /api/audits/fixes, plus the fixing task). Fix with agent and Allowlist… are the sheet’s quiet actions. Fix with agent proposes or starts a fix task group for the repositories where the finding is open (fixTargets, fixPrompt), with a dependency-upgrade source to the first fixed version (fixSource) so the finding turns fixing; its dialog cannot confirm and says why while write tasks are off, no repository has it open, no fixed version is published or there are more than maxRepos. Allowlist… (settings:write, AllowlistDialog) adds an audit.allowlist entry with a reason and a last day to the setting entry the resolver (GET /api/settings/resolve) says applies to the affected repositories, or to a new one scoped to the repositories no entry covers (allowlistTargets, withAllowlistEntry); repositories whose applying entry the caller cannot read are left out and named, since a narrower entry would replace that list.
  • Allowlist: every audit.allowlist entry with what it applies to, reason, last day, state (allowlistState: expired, expiring within 14 days, active, permanent) and the repositories where it hides a finding now (allowlistRows); Renew sets a new last day (settings:write). Without settings:read the allowlisted findings are listed instead. Narrowed to a repository it keeps entries that hide something there or whose scope reaches it (scopeCovers), expired ones included.

The page’s primary action is Run audit and Configure opens analyzers.audit, audit.fix, audit.upgrade and audit.allowlist. Helpers live in lib/security.ts, lib/findings.ts, lib/fixes.ts and lib/severity.ts.

Secret reports (features/secret-reports/SecretReportsPage.tsx, /supply/secret-reports?report=, nav entry for global credentials:read) reads GET /api/secret-reports: the secrets agents reported as exposed in their sessions (design: packages/secret-reports/docs). A notice on top restates the license’s use condition (reports are for rotating secrets only, never for sanctions or to identify anonymous reporters) with Read the license (LicenseButton in features/secret-reports/LicenseDialog.tsx, GET /api/secret-reports/license). The table shows status, kind, identifier, mask, service, repository (linked to its hub), channel, when it was reported (date and time for named reports, only the UTC day for anonymous ones), the reporter or Anonymous and repeats, filtered by status (open by default, all or one status, with counts), kind and text over identifier, service and repository. A row opens the report in a side sheet (?report=) with every field, the circumstances, the fingerprint with Copy and the holtkeeper secrets match command for OpenBao or Vault, and with credentials:write (canWrite) the status buttons (Acknowledge, Mark rotated, False positive, Reopen) and a note (PATCH /api/secret-reports/:id). A 404 (server.secretReports: false) shows a calm notice. Configure opens security.secretReports (also listed under Settings › Integrations). Helpers live in lib/secret-reports.ts.

Licenses (features/licenses/LicensesPage.tsx, /supply/licenses?repo=&verdict=&ecosystem=&sort=&q=&package=&tab=) reads GET /api/licenses: a KPI strip (packages checked, denied, need review, unknown license; licenseKpis, under My teams summed over the home teams’ repositories), the license mix as a bar (mixParts), the violations with verdict and ecosystem filters (teams come from the scope switch) and a sort (filterViolations, sortViolations), a row per repository with its verdict counts, license file and last scan (filterLicenseRepos) that opens the hub’s Supply chain tab, and the policy summary (policyFacts) whose Edit opens the License settings sheet. A violation opens a sheet (ViolationSheet) with Repositories and Policy (declared license, verdict, the rule behind it) and two quiet actions: Add exception… (settings:write, ExceptionDialog) adds an analyzers.licenses.exceptions entry with the package, optionally its license, a reason and a last day to the entry the resolver says applies to its repositories, kept whole since a narrower entry replaces every field, or to a new entry for repositories on the defaults (exceptionTargets, withLicenseException; repositories whose entry the caller cannot read are left out and named); Copy request copies a note asking for an alternative (alternativeRequest). The hub’s variant says when the repository has no license scan yet. Helpers live in lib/licenses.ts.

Stack (features/stack/StackPage.tsx, /supply/stack?tab=&segment=&kind=&line=&repo=&pane=) reads GET /api/stack and shows the current state, not records. Runtimes is a repository × tool matrix (repoMatrix) whose cells show the version and its support, with a support segment (all, ends soon, end of life) and a kind filter (teams come from the scope switch), followed by Version lines (versionLines): each tool, latest and the lines in use as chips with their repository count. The strip’s Conventions cell has an Open link to the Conventions view. A line or a cell opens the line sheet: Where declared (the repositories, linking to their hub, what they write and where), the quiet action Plan upgrade with agent (tasks:run, when a newer line is suggested: an upgrade task group moving every repository on the line to the first suggested step, with the cap and the write-task checks) and, with a cell picked (repo), Selected cell with that repository’s versions, the suggested upgrade steps (suggestedSteps) and the convention its file is checked against (matchingConvention). Conventions is repositories × convention files with matches, drifts, missing or error (conventionGrid); a cell opens the problems and the suggested fix as a diff, with Open merge request for analyses:run. Other teams fold as on every fleet page; a line under the tabs sums each team’s changes over a week (weeklyChanges). The header’s primary action is Run stack scan. StackView is reused by the team page’s Stack & conventions tab; the hub’s stack link opens that tab of the repository’s owner team (a home team when it is one), or this page when no team owns it, and leaves the scope switch alone. Helpers live in lib/stack.ts.

Public API (features/public-api/PublicApiPage.tsx, /supply/public-api?tab=&q=&sort=&package=&repo=&subpath=&kind=&match=&ref=&symbol=&pane=) reads the API catalog (/api/api-surface/*) of the organization’s own packages. Packages is the catalog: totals (catalogTotals) and every package with version, repository, exports, documented share, versions on record and the removed tag; a package opens its library page. Symbol search finds exports by name or doc words with facets for package, entry point, kind, match and newest release or default branch, each with counts from the server, Include deprecated and a sort. A symbol opens a sheet (GET /api/api-surface/symbol) with Declaration (the declaration, doc tags from parseDocTags: params, returns, throws, since, see, deprecated; entry point, repository, version) and History (how it changed between versions), plus Find usages and Compare versions. The header offers Configure, “⋯” with Reread records and Analyze past releases, and the primary Analyse now. Helpers live in lib/public-api.ts.

Connect agents (features/mcp/McpServer.tsx, Account › Connect agents, every signed-in user) is where people connect agents to the /mcp endpoint, as one flow with no in-page tabs. The three steps sit in a flush row. Your tokens (/api/api-surface/mcp/tokens) opens with a Strip of the status counts (active, expires soon within 14 days, expired, never used; tokenStatus in lib/mcp-tokens.ts, computed in the browser from expiresAt and lastUsedAt) and a name filter, then a table with each token’s status, what it allows (always Read: MCP tokens read and propose only), its Tools (toolsetsLabel in lib/mcp-tokens.ts: Default tools, All tools, No tools or N of M tools, with · QA when the QA toolset is on; the defaults are the toolsets mcpToolsetCatalog marks defaultOn, so Assets, QA tasks and Releases are off), prefix, expiry, last use, Calls, 7 days (GET /api/api-surface/mcp/usage?days=7 tokens, the caller’s own tokens only; callsByToken in lib/mcp-usage.ts) and revoke. New token is the Account header’s single primary action on this section (the header lifts the dialog state into the body): a name, a lifetime and Tools (features/mcp/ToolsetsChoice.tsx: a checkbox per toolset of McpTokenList.toolsets with its description, every toolset that is not defaultOn, such as QA tasks and Releases, marked Off by default and unchecked), no scopes; a wrench action on each row changes a token’s tools (PUT /api/api-surface/mcp/tokens/:id/toolsets, audited); the secret is shown once with its Claude Code command. While the deployment offers secret reports (secretReports in the token list), the dialog also has Report exposed secrets (Under my name, Anonymously, Off; default secretReports.defaultMode) with what reporting sends, why it helps, what protects the person, the limits of anonymity and Read the license (features/mcp/SecretReportsChoice.tsx); the table shows each token’s choice as a Reports: tag and a shield action changes it (PATCH /api/api-surface/mcp/tokens/:id, never audited). Without secretReports all of this is hidden. Client setup has the endpoint and a SegmentedTabs per client (Claude Code, Cursor, .mcp.json, curl check; mcpClients over mcpSetup in lib/mcp.ts) with Copy, and notes that tokens also read GET /api/api-surface/* and GET /api/dependencies*. Tool reference (anchored from the top of the section) is read live from the endpoint: the page posts JSON-RPC tools/list to /mcp with the session cookie (mcpRequest in api/client.ts), so it shows every tool a token can be given, split into packages (the organization’s and third-party ones under the same tools), repository tools (rules, test ids, assets, code review, release rules, status and changes; everything no other group claims), team knowledge, ask and QA tasks (qa_*, noted as off for new tokens; groupTools), each with its description and arguments (toolParams), filterable. My usage (features/mcp/MyUsage.tsx, beside Client setup) reads GET /api/api-surface/mcp/usage?days= for 7, 30 or 90 days and shows only me, the viewer’s own row: tool calls, failed calls and the last call, a daily chart of answered over failed calls (usageBars), three ranked columns with bar tracks (rankedRows): the most used tools, the packages the viewer’s calls asked about and the clients they called from, and, for ai:read or ai:admin, a link to the by-person table on Ops › AI spend. The endpoint URL also comes from that route. The Vite dev server proxies exactly /mcp (^/mcp$), so the panel’s own routes are never proxied.

Library index (features/settings/LibraryIndex.tsx, the System tab of Settings, shown with global settings:read) shows what the server indexes for agents (design: docs/library-docs.md). It reads GET /api/system/library-index?q=&ecosystem= (every 10 s while a run goes on): totals, a note naming the MCP tools agents use (libraryTools of lib/mcp.ts: package_docs, package_changes, package_source), Indexing now while a run goes on (features/settings/IndexStatus.tsx: libraries done of all as a bar, the libraries in work (several with concurrency), time so far and an estimate of the rest from runProgress, and the time a GitHub rate limit wait ends), Coverage per source (a bar of indexed, nothing to index, failed, skipped and not fetched yet, with the settled share from coverageDone and the counts), the last indexing run (when it finished, counts, an error, failed sources expandable with their messages), GitHub API usage (GitHubUsageSection: capacity per resource across distinct accounts, requests, saved by the cache, rate-limited answers, waits for a reset, requests per day stacked by token and anonymous requests over 7, 30 or 90 days), and a table of libraries — name with description, ecosystem, latest, indexed versions as chips, repositories using it, document sections, issues, a warning badge for sources whose last fetch failed, and when it was updated — filtered by name and ecosystem. Reindex now (analyses:run, global on the server) posts POST /api/system/library-index/reindex. When the server does not index libraries (enabled: false), it explains the libraries setting instead. Helpers live in lib/libraries.ts and lib/github-usage.ts.

  • Themes. Dark is the default. The preference (dark, light, system) is stored in localStorage under holtkeeper.theme and applied as .dark/.light and data-theme on <html> by an inline script before first paint; the Account page switches it (the sign-in card keeps a toggle that cycles dark → light → system), and ui/theme.ts follows prefers-color-scheme while the preference is system.

  • Graphite tokens. app.css defines the palette once per theme on :root (dark) and :root.light / [data-theme='light']: --bg, --panel, --raise, --sunk, --chip, --line and --line-strong (hairlines), --fg, --fg-muted, --dim, the one accent --brand, and status colors --ok, --warn, --bad, --info, --code. Tailwind gets them as bg-panel, bg-raise, bg-sunk, border-line, border-line-strong, text-dim, text-ok, text-info and so on. HeroUI’s theme variables (--background, --surface*, --accent, --success/--warning/--danger with their -soft steps, --field-*, --border, --separator) map onto them, so HeroUI components pick the palette up. Base text is 13px (text-sm), controls are 28px high with a 7px radius, cards use a 12px radius (rounded-2xl), and surfaces are separated by 1px hairlines: --surface-shadow is a hairline ring, there are no drop shadows except on overlays. A @layer components block resizes HeroUI buttons, toggle groups, tabs, inputs, cards and chips to this scale. Mono (Geist Mono, .mono) is for ids, hashes, versions, cron, paths and costs. Status colors are only for status; tags tint 11% of the color as background and 24% as border. The docs site’s landing.css still has the old palette. The mascot comes from @holtkeeper/brand through ui/BrandIcon.tsx; public/favicon.svg is the one favicon for every page.

  • Shell. features/shell/AppShell.tsx lays the signed-in app out as a row with 8px padding: a 60px rail, the main card (main, a panel with a hairline border and 12px radius that holds the routed page) and the side-sheet slot beside it. The rail shows the logo, then one item per workspace (icon and a 10px label, aria-label with the workspace name; no tooltips): Home, Repos, Chat (with the unread badge), Supply, Quality, Releases, Knowledge and Ops. Its bottom holds Docs (a link, in a new tab, to the documentation site’s guide page of the current workspace, docsLinkFor in features/shell/nav.ts; the guide’s start outside a workspace), ⌘K (openPalette in features/shell/palette.ts, which opens the command palette; ⌘K / Ctrl+K opens it from anywhere), Settings (the first Settings section the principal can open) and the avatar, which links to /account/profile for every auth provider. Theme and sign-out live on the Account page. There is no top bar: the workspace’s pages are segmented tabs in each page’s header. At 760px and narrower the rail becomes a top strip and an open side sheet covers the page. The rail item of the current workspace is marked with aria-current.

  • Navigation. Workspaces and their entries live in features/shell/nav.ts. Each entry has its route, a section for the Settings entries (they share /settings/$section, the section is the route parameter and decides visibility through visibleSettingsSections; navLink(item) gives the link props), the action it requires (or a list, any of which will do), global when the server checks it globally, and catalog for Libraries, Stack and Public API (shown on canCatalog: a catalog:read or analyses:read grant, or any read grant while /api/me’s crossTeam level is not off, like the server’s catalog check). The settings workspace is marked bottom: it is the rail’s Settings button, not a workspace item. visibleNav filters by grants and that level, groupByWorkspace groups in rail order and drops empty workspaces, and a rail item opens its workspace’s first visible entry. activeNav picks the current entry by path prefix: the entry whose to is the longest prefix of the pathname (/ only matches itself), a Settings entry by its path with the section filled in; for /analyses/$id it is the page of the record’s kind (analysisPages and stackRecords in lib/analyses.ts), so a report stays under Bundles, Coverage and so on, and kinds without a page belong to Repositories. The active entry also sets the browser tab title to <label> · Holtkeeper; the favicon stays the mascot.

  • Shell slots. AppShell provides ShellContext (ui/shell.ts): the current workspace’s tabs (Page draws them as SegmentedTabs when it gets no tabs of its own and the workspace has more than one visible page), its title and its crumb (the title row holds only the title and the workspace tabs, so the tabs keep their place from page to page; a page’s description sits on its own line below), and the side-sheet slot element, which SideSheet portals into. The slot is flex: 1 1 400px, at most 460px wide (a size="wide" sheet takes up to 760px, at most 55% of the window: Libraries, Coverage, Bundles, Tasks, Reviews and Inbox; a header button widens or narrows any sheet and the choice is remembered per size, lib/sheet-width.ts), sticky at the top of the viewport and hidden while empty, so an open sheet sits in the flow next to the list instead of over it.

  • Routes. Every page lives under its workspace’s prefix:

    Workspace Pages
    Home /
    Repos /repos?q=&folder=&health=&forge=&sort=&dir=, /repos/$ (hub: forge/path, ?tab=&section=&file=&ref=), /repos/teams, /repos/teams/$teamId?tab=&view=
    Chat /chat?thread=
    Supply /supply/libraries?repo=&library=&tab=, /supply/libraries/$ecosystem/$, /supply/security?view=&repo=, /supply/secret-reports?report=, /supply/licenses?repo=, /supply/stack?tab=&line=, /supply/public-api?tab=&q=&repo=
    Quality /quality/coverage?repo=, /quality/bundles?repo=&open=&tab=&version=&analysis=, /quality/assets?repo=, /quality/ci?repo=, /quality/branches?repo=, /quality/reviews?repo=&review=
    Releases /releases, /releases/timeline?repo=, /releases/compare?repo=&from=&to=, /releases/setup?repo=, /releases/qa, /releases/qa/$key
    Knowledge /knowledge/rules?rule=&prompt=, /knowledge/learnings?learning=
    Ops /ops/runs, /ops/runs/$jobId, /ops/tasks?group=&task=&tab=&view=, /ops/automation?job=, /ops/spend
    Settings /settings/$section (people, ai, integrations, system, audit); /settings opens the first visible section
    — /account/$section, /analyses/$id?compare=&view=

    Earlier paths have no redirects; an unknown path shows NotFound inside the shell with Go to Home and Search ⌘K.

  • Shell components (ui/, all exported from ui/index.ts).

    • SubNav: the left sub-navigation of a page with sections (Settings, Account): an optional search field (/ focuses it) whose results replace the entries while it has text, then icon entries with the current one marked, and a footer. It stacks above the page on narrow screens.
    • Page: the content of the main card. A header with a bottom hairline holds an optional crumbs trail (Crumbs: links to the parents, the current page as text), a 14px title, the tabs (tabs as SegmentedTabs, the current one picked by the pathname with currentTab in lib/page-header.ts; without tabs, the current workspace’s pages from the shell; tabs={false} shows none, for pages with a SubNav), and on the right a ghost Configure (configure, where the page’s analyzer options are set up), more actions behind a MoreMenu “⋯” button and exactly one primary action. A toolbar row under the title holds the scope switch, a search field with a / hint that / focuses (useSlashFocus) and a filters slot for FilterButtons. The body below is padded and stacks its children. The older free-form actions prop stays until the pages move to the new header; there is no page-wide width cap or fade-in.
    • MoreMenu: the “⋯” button with a page’s or a record’s secondary actions; entries run onAction or open an app path, danger ones are drawn red, and an empty list renders nothing.
    • Panel: the flush variant drops the surface box for a top hairline, a 13px h2 title row and the content.
    • Table: Th with sortKey, sort and onSort becomes a button that cycles ascending, descending and unsorted and carries aria-sort (nextSort, ariaSort and sortRows in lib/table-sort.ts: empty values stay last, strings sort naturally). A selection column is SelectAllTh (all, none or a dash for some of the listed ids, leaving selected ids outside the list alone) and SelectTd per row (lib/table-selection.ts); Tr with selected draws the selected-row style and sets aria-current; Tr with onClick is focusable and runs it on Enter or Space too.
    • Strip: the summary line above a table, cells of “value label caption” with an optional status dot, end pushing cells right. Legend: dots or color swatches with labels, so color never carries meaning alone; Dot is the shared 6px status dot. HealthCell: a table cell with a status dot, value and quiet caption, optionally a link, its status named for screen readers.
    • KeyValue: labelled facts as a definition list, empty values left out. Count: a small muted number badge after a tab or title, warning tinted. UnderlineTabs: a row of tabs under a header with an optional badge; links render as a nav, buttons as a tablist moved through with the arrow keys, Home and End.
    • FilterButton: a “Label: Value” multi-select, always a bordered secondary button, reading “Label: Any”, “Label: A, B” or “Label: A, B +N” (filterLabel in lib/filter-label.ts). ListFooter: “Showing 10 of 1,284” (shownText in lib/list-footer.ts) with a caption, a slot for LoadMore and keyboard hints. useSlashFocus(ref): / focuses and selects the page’s search field unless the key goes to an editable field or carries a modifier (lib/slash-focus.ts).
    • OtherTeams: other teams’ items folded away, as a section with a header and the team names or as a row inside a tbody (“Other teams · 40 repositories of 3 other teams” with the team names as quiet text) that expands into more rows.
    • FlowCanvas: a read-only React Flow diagram in the Graphite style, generic over node kinds: callers pass nodes (id, kind, data, optional size) and edges (from, to, optional label, dashed, tone) as plain data (lib/flow.ts), a render function that draws a node box’s inside per kind, and an optional drawer that returns a title and content (usually a form) for nodes that can be edited; clicking such a node opens it in a SideSheet, J/K step through the editable nodes. A drawer can also carry Open as page, progress, quiet actions, a ⋯ menu and tabs. Layout is dagre left to right (placeFlow); nodes are never dragged or connected and no position is stored.
    • SegmentedTabs: connected tabs, links or buttons, one current.
    • SideSheet: a record opened from a list, a card rendered into the shell’s side-sheet slot beside the main card so the list stays visible and usable (nothing renders outside the shell), with a header of the mono id (a copy button for copyId), title, “3 of 41” position, an Open as page button for openAsPage (router link props), and previous/next/close buttons. Under that row the header can hold a progress SegmentBar in status colors with a muted caption, and a row of up to two labelled quietActions buttons with a more “⋯” menu at its end; underline tabs sit under the header, and a footer of actions is pinned under the body. J and K call onNext/onPrevious, Escape calls onClose, except while typing in a field (lib/sheet.ts). Opening moves focus to the title and closing returns it to the element that had it; at 760px and narrower the sheet covers the page, so it becomes aria-modal and the main card and rail are inert while it is open.
    • SegmentBar: segmented progress sized by value with an empty remainder against total. TickStrip: equal status ticks, oldest first, skipped drawn neutral. Tag: a status tag in a StatusTone (default, accent, success, warning, danger, info, code), optionally with a dot or in mono. Progress uses segment bars and tick strips rather than spinners.
  • Page pattern. A workspace page passes only its own crumbs: Page puts the current workspace’s crumb first (from the shell, linking to the first page of the workspace the viewer may open, as the rail does) and defaults title to the workspace’s title (title in nav.ts when it differs from the label, e.g. “Supply chain”); a record page (a library, a repository, a team, an analysis record) is titled by the record, with the list it came from as the middle crumb. The toolbar row holds the scope switch (scope), the / search (search) and the filters (filters, e.g. the repository picker). On the right: free-form actions only for the one main action (run an analyzer, Effective prompt), a ghost Configure when the page has a settings sheet (useConfigure), the “⋯” more menu for secondary actions (Reread records, Analyze past releases, Open as Markdown) and at most one primary (Add repository). Sections of the repository hub and a team are SegmentedTabs in the header; a library’s are UnderlineTabs flush under the header; the record’s sheet uses the same tabs through SideSheet’s tabs, and J/K step through whatever list opened it.

  • Access map. The Users section (Settings › People & access) switches between List and Map. The map (features/users/AccessMap.tsx, lib/access-map.ts) links each user to the scopes of their grants, captioned with the actions (all actions, read only, n actions; grants on the same scope are merged), and offers everything and every team as scopes. With users:write, dragging a user onto a scope adds a repos:read + audits:read grant there (withGrant), the × on a highlighted link drops the user’s grants on that scope (withoutGrant; never on your own links, so nobody locks themselves out), and clicking a user opens the user dialog for exact actions.

  • People. Users appear with their generated avatar (ui/Avatar.tsx, initials when the image fails) in the rail, the users list and History, which resolves actor ids through the people map of /api/history. The account page rerolls the avatar (PUT /api/me/avatar).

  • Color. Severity colors (--sev-*) and the categorical series (--series-*) are built from the Graphite status colors, with their own light and dark steps in app.css; statusColor in ui/colors.ts maps a StatusTone to its CSS color. Severity always comes with a text label, never color alone.

  • Audit reports. An audit record’s findings resolve their package manager and language from the source file with sourceInfo (toRows in lib/findings.ts), filter by severity and free text and sort worst first, so every ecosystem renders the same way.

  • Motion. Lists animate layout changes, headline numbers count up; Motion honours prefers-reduced-motion.

  • Keyboard. Every control is a React Aria component or a native element; / focuses the findings search, a skip link jumps to content, Escape closes dialogs and side sheets, J/K step through records in a side sheet.