Repository navigation
The dashboard's Assistant page inspects a namespace's documents and lists the document drafts - #259
Merged
Merged
Conversation
zlareb1
force-pushed
the
feat/i160-doc-dashboard
branch
from
November 4, 2026 11:26
119dfc3 to
e53d8c4
Compare
…ument drafts Documents join User, Agent and Session as an Inspect subject. They take no id and read knowledge.inspect: documents by format, source and revision, what search serves under the server's embedder, the newest documents with their chunks, decisions, extraction coverage and jobs, and the ingest findings grouped by kind, so a backlog never reads as bad content. A section the server could not read shows as not read, never as zero. A token pinned to a user can inspect documents, because knowledge.inspect honours the read scope. Review changes renders the chunking and extractor-route drafts from namespace.tune: the before and after on the same document sample, the sample and its cap, the documents cited, and the write that would apply each draft (the settings.set admin route, or an environment variable that takes effect after a restart, with its placeholders to fill in). Apply stays unavailable. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… failed read leaves null
A skipped line under a section's name is also how knowledge.inspect says a
section it read was cut short ("documents: more than ... the counts cover the
first"), so the page showed such a section as unread. Whether a section was
read now comes from the fields the server leaves null on a failed read: the
document totals and groups, the chunk count, the job count and the extraction
count. A cut section shows its data with the server's line as a note. The
chunk and job checks say they did not run only when the reads they run on
failed. An unread job count no longer makes the namespace read as empty, so a
first ingest that is queued or failed stays visible.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
…and the e2e fixture states one rule once Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… every check the server runs Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…an drawing an empty list Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… total was not read Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…nd a cut read, and its tests send what the server sends Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…erver can build The unit fixtures are now built the way server/knowledge/app/inspect.py builds a response. The base sends every document check, with clean ones as count-0 info findings over the live documents. Each ingest check has the population of its own read: sources with a job, or documents with an extraction. The extraction_incomplete finding matches the extraction counts, rules_run names all ten checks, and by_format is ordered most live first. Each derived state goes through a helper that changes every field the server changes for it: - an empty namespace (zero totals, null newest write, zero populations) - a failed documents read (null totals and newest write, listing never complete) - a failed job read (every job count null, the five job checks in rules_skipped) - a first ingest queued (the backlog check counts it) - one ingest check hitting (its sources, jobs and totals) - documents and extraction reads cut at the group cap The e2e fixture follows the same rules: per-check populations, no ingestion ids for extraction_incomplete, job hits that fit the four sources and the state totals, a URI of its own for each source with no live document, and both live documents listed. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… send The page no longer says "namespace.audit reported none". The server sends both of the audit's memory checks, a clean one at count 0, or names each one it did not run in `skipped`, so that line could not be reached. The unit fixtures: - send both memory checks - sort the cut group rows the way the store orders them - give a queued job the due time knowledge.ingest gives it - give each failed job the stage and attempts it would have - send memory drafts with the fields the current server adds, with one case for the older shape that lacks them The chunking and route drafts use tune.py's own text and numbers: five cited documents for twelve flagged, the real sample cap and load cap, and a route rationale that fits its services. The e2e fixture now tells one story across knowledge.inspect and namespace.tune: - an embedder whose input limit makes the over-the-limit rule draft a smaller size for the deck - an xlsx source the default extractor does not declare, which the route draft cites - sources without a document in the store's order - retired versions that add up Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ce a cut section was read Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…h check that did not run A chunk finding's count line now says how many of its documents knowledge.ingest published, and marks those samples, because the remedy differs: a text document is written again, an ingested one is ingested again. When the read of the sources with a job and no live document fails, the page gives their count and says they were not listed. The ingest checks say they did not run by code, from coverage.rules_skipped: the five job checks when the job read failed, and the coverage check when the coverage read failed. Before, a failed job read alone said nothing. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
… and drops two checks a failed listing implies Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…, and its test sends a cut the server makes Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
zlareb1
force-pushed
the
feat/i160-doc-dashboard
branch
from
November 4, 2026 11:48
de25f5c to
cb97308
Compare
…of 22 documents gives 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]>
…s no chunk size, and a finding under one percent reads <1% Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…t sample test sends a sample no rule flags Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
…ts queued and one replaced source Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: zlareb1 <[email protected]>
8 of 9 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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's Assistant page can inspect a namespace's documents: what they are by format, source and revision, what search serves of them, their ingestion and extraction state, and the decisions recorded from them. Review changes now shows the chunking and extractor-route drafts, with their before and after on a document sample and the deployment write that would apply each one.
Why
knowledge.inspectand the document drafts innamespace.tuneare on main, but the dashboard could only show memories. A person reviewing a namespace had to call the ops by hand to see why a document is not searchable or why a draft wants a new chunk size. This change makes documents an Inspect subject next to users, agents and sessions, and shows the document drafts in Review changes. Neither panel changes anything.Scope and risk
knowledge.inspecton a click. The panel shows:kind(the deployment's state, the files, what was written or kept), one card per finding that hit and one "Checked, none found" line per group, so a backlog never reads as bad contentskipped, because the server also writes askippedline under a section's name when it read the section but cut it short ("the counts cover the first"). A section that was not read says so, and is never shown as zero. A cut section shows its data with that line as a note. A check says it did not run whencoverage.rules_skippednames it: the chunk checks, the five job checks and the extraction coverage check each get their own line. The namespace reads as empty only when both the live document count and the job count were read as zero, so a first ingest that is queued or failed is never hidden. The document listing, its jobs and the list of sources with no live document have no such field, and the server writes only a failed read under their names, so the page uses thoseskippedlines. When the list of sources with no live document was not read, the page gives their count and says they were not listed. The fullskippedlist andcoverage.rules_skippedare printed at the end.knowledge.inspecthonours the read scope (SCOPED_OPS), so the page gates it as it gatesnamespace.inventory. A token pinned to a user can read it. A token whose scope needs an id the page does not send (own_session, orown_userwith no pinned user) is refused before any request.settings.knowledge_chunkingandsettings.document_extractors_jsondrafts:TuneApply.via:POST /v1/admin/settings.setforadmin_route, or the variable plus a restart forenvironmentapply_alsoin orderargs_complete=false, "once each placeholder is filled in"knowledge.inspectrequest. The index chunk grows by onecanCallentry.knowledge.inspectgains the dashboard'splugin_hookreach, as its sibling ops have.Compatibility, rollout and rollback
TuneApply.via,apply_also,preview,TuneEvidence.documentsandNamespaceTuneOutput.chunkingas optional, so a server a release behind (which sends none of them and drafts only ops) still renders as before.Tests
knowledge.inspectfixtures, unit and e2e, are responses the server can build. Every check is sent, each with the population of its own read, and each derived state goes through a helper that changes every field the server changes for that state (an empty namespace, a failed read, a cut read, a queued first ingest, one check hitting).src/views/Assistant.test.tsx, a case for each new state:rules_skippednames it (including a failed job read on its own)own_sessiontoken refusedvia: environment,args_complete=falseand the restarte2e/assistant.spec.tsnow draws the Documents panel and both document drafts with long source URIs, a long format name and long titles. It runs at 1400 and 375 px with no horizontal scroll, nothing clipped and no axe violations. The first 375 px run caught the preview table's labels widening the card, which this change fixes.npm --prefix frontend run test(the full suite),npx tsc -b,npm --prefix frontend run build,npm --prefix frontend run budget(index chunk 115.9 kB of 120 kB, boot scripts 184.3 kB gzipped of 198 kB),make format-check,make lint,make typecheck,tests/unit/test_public_copy.py,tests/unit/test_doc_links.pyandtests/unit/test_op_reach_census.pywith the dashboard route tests. The full Python unit suite passes; the only server-side file is the regenerated reach manifest, which the census test checks.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. Checked against the server's wire models and the inspect and tune handlers on main: section names in
skipped, finding codes and kinds, and theviavalues.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