Repository navigation
W9: admin run quality drill-down (#588) - #598
Merged
neuromechanist merged 13 commits intoNov 26, 2026
Merged
neuromechanist merged 13 commits into
neuromechanist merged 13 commits into
Conversation
Paths, words, grammar, forward path and the proxy obligations of nemar-cli's admin mount; the route drift test widened to them. Tested: drift test against the epic checkout (5 pass).
Run-quality and recordings states, page size, serving_index_deferred; drift test widened and the stamp pattern read from its new leaf. Tested: drift test against the epic checkout (7 pass).
Admin gate, GET only, no query, raw rest, forward path, caller's session cookie only, no-store, 4 MiB counted cap, three relayed headers, no redirects, service binding. Tested: proxy tests against a local HTTP server.
Local backend seeds canary, expired, in-progress and deferred runs; capture script writes their real answers. Tested: captured from the epic backend.
Tested: pipeline-quality-view (18 pass) on captured answers.
Tested: drill client through the real proxy (9 pass).
Tested: pipeline-admin-ui (81 pass), typecheck, build and size check.
Tested: 7 pass against the local backend.
Not tested: prose only.
2 tasks
Deploying nemar-website with
|
| Latest commit: |
fde6064
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://40f7e2cc.nemar-website.pages.dev |
| Branch Preview URL: | https://feature-issue-588-w9-admin.nemar-website.pages.dev |
3 tasks
sessionCookieOf picks __Host-nemar_session, else the legacy cookie; empty or duplicated is no session. A 204 or 205 is relayed without a body. Tested: proxy and drill tests.
Grouped by the panel's tab in the panel's words; links #600 for the shared drawView. Tested: drill tests.
Tested: e2e 7 pass on the local backend.
Tested: pipeline-admin-ui (86 pass).
neuromechanist
merged commit Nov 26, 2026
90860f3
into
feature/issue-586-epic-pipeline-progress
3 of 4 checks passed
This was referenced Nov 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase W9 of #586 (tracking #588), part of nemarOrg/nemar-cli#2324: the admin run drill-down.
What it adds
/admin/pipelines/runs/<id>): one sentence per run-quality word (run_in_progressincluded), a "Not public" label fromdataset_public, the expiry date (an expired canary says "Expired on"), the deferral of aserving_index_deferredrun, and a link to the drill-down./admin/pipelines/runs/<id>/quality): the run's succeeded recordings (paged byafter), and one recording's stored-data views only (Spectrum, component maps, class histogram) drawn with the W4/W6 renderers. Views that declareinputs(nemar.ic-activity,nemar.signal-window) are listed as "drawn on the dataset page once promoted". No CSP change: every fetch is same-origin..../quality/[...rest].ts(src/lib/quality-views/admin-proxy.ts), meeting each obligation of nemar-cli's docblock:adminGate;restfrom the rawurl.pathname, never from params;qualityAdminForwardPath;?refused;ALL);no-storeon every answer, upstream 401, 403 and 429 included;Content-Type,Content-DispositionandX-Content-Type-Optionsrelayed (nosniffforced);apiFetch).currentderivative of a dataset withdataset_public. A concealed anonymous deposit fails that gate, so it never gets one.admin-route-contract.tsholds the admin mount and the proxy obligations. It is kept apart fromroute-contract.ts, so the dataset page carries none of it. The run-quality words go incompute-pipeline-contract.ts.Tests
test/quality-admin-proxy.test.ts: covers every obligation on realRequests against a real local HTTP server. That includes nemar-cli #2390's dot-segment and encoding cases, non-GET methods,?, the over-cap body, no service identity,no-storeon every status, header stripping and redirects.test/quality-admin-drill.test.ts: the drill client through the real proxy. Covers the expired, missing and failed states.test/pipeline-quality-view.test.ts: tested on answers captured from the real backend (scripts/capture-run-quality-fixtures.mjs).test/pipeline-admin-ui.test.ts: source scans (noset:html, gate before fetch,no-store, binding).e2e/admin-quality.spec.ts: 7 pass againstscripts/local-backend.mjs --seed-pipeline --seed-quality. The script now also seeds canary, expired, in-progress and deferred runs..or..segment is also refused by the decoded recording rule.Gates
bun run test(267 files pass, 8 skipped locally)devuntil epic #2324 merges. The widened route and pipeline drift tests pass against the epic checkout.Notes
runs_without_index_after; only a dispatch answer carries it. The page reads it when present. Otherwise it says the run goes ahead 24 hours after the first deferral, and gives the time this deferral was recorded.ETag, so a record is read without one. It is still checked whole, view digests and file hashes included.admin-drill.tsrepeatspanel.ts's draw steps rather than editingpanel.ts;panel-model.tsis only imported.Agentic AI tools were used.