Repository navigation
The dashboard's Assistant page inspects a namespace and reviews its tune drafts - #226
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/i160-dashboard
branch
3 times, most recently
from
November 3, 2026 21:04
b1bf24e to
68bc2be
Compare
…une drafts Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/i160-dashboard
branch
from
November 3, 2026 21:46
68bc2be to
e7c24df
Compare
… as the namespace Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ay out of the shell's index chunk Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
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.
Related: #160
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
The dashboard has an Assistant page (
/assistant). On it a namespace viewer can see what the namespace holds and who appears in it, inspect what one user, agent or session remembers, open the entity graph from an entity, and review the draftsnamespace.tunemakes. Every read is deterministic and read-only, and nothing is applied from the page.Why
Issue 160 asks for an entry screen with:
The page must work with models disabled. The server side already exists as three VIEWER, read-only ops that call no model:
namespace.inventory,memory.inspectandnamespace.tune. This page is the dashboard's surface over them, so the CLI, MCP clients and the page read one shape.How each starter maps:
openGraphAt), which already applies the reader's authorization to every endpoint and source fact; Back returns focus to the starternamespace.inventory: live count and newest write per plane, a section that was not counted says why, and whether a model and an embedder serve the deployment; under a token pinned to one user (the answer'sscope) the panel says memories, runs and the observed identities are counted for that user only, and documents and members are the namespace's. A token scopedown_session, orown_userwith noread_user_id, needs a session or user id the page does not send, so the inventory starters are unavailable to it and say whymemory.inspectand shows the subject's own rows apart from every other live row of the namespace, headed as the server defines them (filed under a user by any writer, written by an agent, written in a session by any user), plus what creates them (guide revision, categories, the operator policy as written, "none set", or why it is not shown)namespace.tune; its drafts fill Review changesThe Review changes panel shows each draft as "Draft, not approved", with:
memory.set_from_messagesrequests.Apply is not in this release, so its button is shown as unavailable, with the reason. What the op skipped is listed under Skipped with the reason: a failed read (which may leave a shown draft without its cited rows or counts) or evidence that ruled a draft out. With no drafts, the panel says the evidence supports no change only when that list is empty.
Scope and risk
inspect(key, { agent, userId, sessionId })stores the user and session asinspectedOwner(kept in the Back place), and App spreads them into the inspector's identity (Identitygains optionaluser_id/session_id).memory.get, the inspector's edits, its History, Related and Provenance reads (which now spread the identity, so the user and session go out exactly when set), Copy to (from_agent/from_user_id/from_session_id), a followed rename (the row moved), and its late-restore guard then all address that row, not the newest row with the key or the caller's own. Lineage is read by key alone on the server, so it is sent no user. A redirect's target (which may be a deduplicated row's canonical, another writer's), related rows, entity mentions and provenance links name rows whose writers the drawer does not know, so they open as before (MemoryInspector.rename.test.tsxcovers both sides); returning each hit's writer identity is a follow-up. The Memories list and the header search still pass the agent alone, as before.versionis a nanosecond stamp past what a JavaScript number holds exactly, so the page never prints it: an inspected row shows its version count, a cited row its key.canCallon its own op. All three are VIEWER, so acanCallrefusal means the caller's role on the namespace is not known: no request is made, and the starters say so. A token pinned to one user or session is refusedmemory.inspectandnamespace.tuneby the server (neither is a scoped op); the page knows such a scope from the token's claims (views/assistant/tokenScope.tsreadsread_scope, and a trimmedread_user_idalone asown_user, as the server does, overtokenPayload, whichclaimsFromTokennow shares; the parsing stays out of the shell's index chunk), or, for an end-user token or behind a proxy, from the inventory's answer, and then Inspect and Configure are unavailable and say why.Assistantrail entry sits in the Memory group. The page is a memory view (MEMORY_VIEWS), so it never mounts on a code or tracker namespace.assistantjoinsPAGE_SEGMENTS, so the server serves the page at/assistant.Compatibility, rollout and rollback
scripts/codegen/op_reach_census.py) now skips a test kept beside its source (*.test.*), as it already skippedtests/directories: a fixture naming an op is not reach. The regenerated manifest records that the dashboard source namesmemory.inspect,namespace.inventoryandnamespace.tune, and dropsmemory.ask'splugin_hook, which only dashboard tests named (its SDK reach stays).components/ui/KeyButton, now Click UI'sLinkas an action, and is shared by the audit and the page. Agents areAgentBadges; authors and subjects areNameBadge, the same capped badge (180 px, the whole name in a tooltip) without the agent display names, split out ofAgentBadge.Tests
npm --prefix frontend run test: 1,751 passed.npm --prefix frontend run budget: the index chunk is 119.9 kB of its 120 kB (118.6 kB on main).src/views/Assistant.test.tsxcovers:skipped) says so instead of showing its default, and the activity line states its window with the ledger's retention caveat beside it;npm --prefix frontend run buildandnpm --prefix frontend run budget: OK.e2e/assistant.spec.tsdraws every panel (each starter panel in turn: the inventory, the populations with a 205-character subject, the relationships field; an inspection of a 205-character user id with the server's full definitions and a multi-line operator policy, a category draft with a long tag) at 1400 and 375 px, Back from the graph, and thememory.geta listed and a cited row send (agent, user and session): no element runs past the box that clips or scrolls it, and axe finds no violation. Moving a view's definition back into the heading's no-wrap caption fails it at 375 px./assistantadded to the route lists.make lint: passes, after regenerating the reach census.make test-uniton the rebased head: 25,991 passed. The full Playwright suite: 502 passed.test_a_test_beside_its_source_is_not_reachcovers the census change.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (an agent wrote most of the diff): Claude Code. Every claim above was checked against the server models and the tests.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make format-check,make lint,make typecheckandmake test-unitpass; the integration suite passes if server behaviour changed.docs/reference/configuration.mdand thedocs/reference/tables (python scripts/codegen/docs_reference.py), the reach manifest,schemas/schema.sql(make schema-dump) and the Codex plugin copies (python3 scripts/codegen/agent_plugin_sync.py).main; no merged migration is edited.hooks/,lib/,bin/,skills/,.mcp.json, the Codexplugin-defaults.json) bumps both plugin manifests' version, and no other open PR uses that version.npm --prefix frontend run build) and its tests pass, iffrontend/changed.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code