Skip to content

evals: provide a local internal website for development comparisons #1610

Open

Description

@schlessera

Context

Source inspected at main d167ac7679bb66cddc90c2734fb4be3199d848f7: evals/README.md:1-22 records cases and per-harness model/effort overrides. The retained scenarios are every scenario directory under evals/ (everything except evals/cases/ and evals/README.md); scope follows that set, not a fixed count. Current list at main d79eeed0a (2026-11-10), thirteen: 839, 842, 843, 844, 845, 846, 847, 849, 850, 1416 and 1593, plus evals/3445-propagation-triage/ and evals/3452-propagation-policy/ added by #3458. Neither new scenario has a file under evals/cases/: 3445 reads its own cases.json, and 3452 has no cases file and reuses the #3445 corpus from the product test fixture packages/core/tests/fixtures/propagation-cases.json. docs/investigations/haiku-5-5-current-path-investigation.md records #1611/#1612's delivered current-arm-only comparison and its pending reviews. docs/decisions/experiment-tier.md governs offline scoring-test discovery; docs/decisions/measurement-archive.md is amended by #1604's current ruling. Read native parent #1603 and #1604's settled maintainer policy before implementation. Preserve all compatible immutable runs on main; archive superseded configurations at exact immutable commits before removal; raw transcripts remain outside Git. Current means latest complete validated run by completion time with stable run-ID tie breaking. Compare only full compatible evaluation identities (scenario/cases/rubric/protocol/model version/effort/other parameters, with material source/runtime differences distinguishable). Missing legacy identity stays unknown. Preserve frozen tuning floors, goldens, original result bytes and historical decision citations. No default-model change, product adoption, paid rerun or restored #1542 machinery is implied.

Blocked by #1605
Blocked by #1607
Blocked by #1609

Scope

Provide a local scenario index and detail pages generated from #1605 manifests, #1607 normalized evidence and #1609 chart/data capabilities. Embed selectable X/Y metric exploration and Summary / Individual runs, defaulting to Summary. Present scenario purpose, cases/rubric/protocol, compatible evidence groups, current validated observations, original adoption decisions, limits, pending judgments and exact run/source provenance.

The viewer is repository-internal developer tooling, launched explicitly on loopback only for development and stopped when no longer needed. Reading/exploring/exporting recorded results requires no keys or model calls. Do not wire it into the public website build, routes, navigation, GitHub Pages workflow or generated deployment output. Local tooling instructions belong in the eval developer documentation, not public website/README discovery links. Implementation may choose a small local generation/serving approach within this scope; no product seam, daemon requirement or production deployment is introduced.

Invocation examples, if displayed, are developer instructions for separately authorized evaluations. State actual credential/subscription/API requirements and possible provider consumption truthfully; displaying a command is not authorization to run it. Browsing recorded evidence remains distinct from executing measurements.

Out of scope

Public Astro integration, public evaluation navigation/routes, homepage/README marketing links, GitHub Pages publication, remote hosting, a publicly reachable viewer, private deployments/data, raw transcript publication, new model adoption/defaults, recalibration, live model calls from chart controls, a new shipped package/CLI/MCP/frontmatter contract or replacement evaluation infrastructure.

Acceptance criteria

The accepted implementation specification is local-viewer rev 3 plus rev 4, under all later maintainer chart/launch/JSON/local-only rulings. Implement their page hierarchy/state/control/isolation and proof criteria without reopening the approved policies.

  • bun run evals:view starts a foreground read-only viewer bound to 127.0.0.1 with an OS-allocated port, no fixed/probed port or host option. Print the actual URL only after successful bind. Parallel launches receive independent ports. Ctrl-C/SIGTERM closes the listener cleanly; failed bind exits nonzero without a URL. Local operation is documented in eval developer docs.
  • Every retained scenario is discoverable in the index and has detail HTML and a JSON equivalent from one internal page/evidence model. Routes are discoverable through alternate/footer links and documented alongside the internal schema version. Preserve original adoption decisions, metric definitions, groups, authoritative current selection, all runs/exclusions, unknowns, limits, pending/safety and immutable provenance. Page JSON is distinct from selected-chart exports.
  • Detail pages embed core: generate charts from normalized eval results #1609's accepted dynamic axes, Summary / Individual runs (Summary default), authored direction and gated scale controls with synchronized accessible tables/exports. Reading/selection changes invoke no evaluation/provider calls, mutate no recorded evidence and preserve actual compatibility/paired-run/current/adoption semantics.
  • Run instructions and actual recorded requirements are quoted from authored metadata; absent requirements are explicitly unrecorded, not guessed. Displaying an invocation does not authorize execution. No raw transcripts, credentials, environment values or absolute host paths appear in page/JSON output.
  • Local source/output is separate from website/. Static export refuses destinations inside the public website tree, including canonical path aliases; generated output remains local/gitignored as applicable. Actual public build and dependency/output inspection prove no viewer pages/assets/navigation are shipped or published. No public README discovery or site integration is added.
  • Real loopback-browser proof covers axes/views/scales, skip/navigation/callout/controls/table/download/previous-next keyboard paths, long labels, 320px/desktop and dark/paper. Labels/status and equivalent tables remain accessible without color-only inference.
  • Deterministic HTML/JSON output and semantic parity fixtures cover recorded decision, safety/pending, current IDs, exclusions, unknown identity, provenance and requirements. Meaningful mutations of pending parity, non-loopback exposure, public-output leakage or fabricated requirements fail the intended assertions. Runtime listener/parallel/shutdown/failure tests and complete required PR proof remain mandatory.

Verification

Use keyless Odysseus fixtures (pinned 2026-07-12), existing offline guards and the appropriate experiment/product partition. Prove local viewing makes no provider request and public builds exclude the viewer. Run focused tests/typecheck/lint and required PR proof. Meaningful mutations must fail the relevant comparison/disclosure or public-output exclusion assertions. Local serving is loopback fixture work; live evaluations require their own existing authorization/caps and are not implementation proof by implication.

Contract impact

Repository-internal tooling/data only; no supported package/CLI/MCP/frontmatter change selected. Document the internal input/interface and local developer commands. Preserve #1604 result-retention/compatibility rules and #1609 chart policies.

Binding rulings

All recorded as maintainer comments on this issue; the accepted specification folds them in.

2026-10-24: removed the superseded "Current handoff", "Revised local design proposal awaiting review" and "Consolidated specification awaiting acceptance" sections and the interim instructions to keep needs: design/needs: decision without agent-ready, all resolved by the 2026-10-13 acceptance; moved the in-body rulings into the list above. The removed text is preserved in a comment. Specification, criteria and dependencies are unchanged.

Updated 2026-11-10: the scenario set is every retained scenario directory under evals/; the two #3458 scenarios (3445, 3452) are in scope beside the original eleven.

Activity

  1. added
    type: feat
    area: docs
    on Oct 11, 2026
  2. added
    priority: p2
    blocked
    needs: design
    type: docs
    and removed
    type: feat
    on Oct 11, 2026
  3. schlessera commented on Oct 11, 2026

    @schlessera
    OwnerAuthor

    Needs design — local internal eval development tooling (scope corrected 2026-10-13).

    The maintainer requires a local website consulted by the coding agent during development. It is not part of the public Astro site. Earlier public-site proposals are superseded. Chart/data policies are settled; full local interaction and output-isolation design remains pending.

    Design the current local-only scope of https://github.com/schlessera/brain-kit/issues/1610 under #1603.
    
    Read first:
    - Full latest bodies and rulings of #1603, #1604, #1609 and #1610. #1605 owns scenario manifests; #1607 normalized data; #1608 pending review execution. Existing actual blockers remain.
    - evals/README.md:1-22; docs/investigations/haiku-5-5-current-path-investigation.md, including Method, Limits and pending judgments.
    - docs/decisions/measurement-archive.md with #1604's amendment; docs/decisions/experiment-tier.md; docs/decisions/example-corpus.md. Existing scenario decision records determine adopted behavior; chart comparisons do not.
    
    Settled requirements:
    - Internal local development viewer only, explicitly launched on loopback and stopped after use. No public Astro routes/build/navigation, README marketing links, GitHub Pages output, production host or daemon requirement. Document local operation in eval developer docs.
    - Dynamic X/Y metric selection, including reliability/cost and latency/accuracy; Summary / Individual runs switch default Summary. Headline plus curated secondary metrics are authored defaults. Always median/min-max metric summaries; no box threshold or invented confidence interval.
    - Summary X/Y medians use the same eligible paired independent-run set; summary need not be an actual run. Individual points retain exact paired-run identity. Within-run repetitions are not independent runs.
    - Missing/unknown pairs are disclosed, not zero. Separate incompatible identities; preserve units/denominators, provisional/pending safety and vetoes, run counts, provenance, immutable evidence and authoritative current selection. No scoring/calibration/adoption changes or paid calls from viewing/controls.
    - Raw transcripts stay outside Git; use only allowed structured evidence. Odysseus alone, pinned 2026-07-12, with leakage gates intact.
    
    - Launch is bun run evals:view with an OS-allocated free port on 127.0.0.1 only. Print the actual loopback URL after successful bind; foreground lifetime ends on Ctrl-C. No fixed port, check-then-bind probe, daemon or non-loopback host option. Include actual listener/printed URL, concurrent launch and shutdown proof.
    - Index and each scenario detail provide HTML plus discoverable local JSON equivalents from one evidence/page model. Specify/document the internal routes and representation, preserving metric/group/current/adoption/provenance/unknown/exclusion/pending-safety parity and determinism. Distinguish full page JSON from selected-chart exports. No public API, raw transcripts, credentials, inference or evidence mutation.
    
    Design:
    1. Local index/detail hierarchy for agent development, with exact sources, cases/protocol/limits, current and historical run groups, recorded decisions versus comparison evidence.
    2. Axis/view controls, paired-run eligibility, readable tradeoff plots and per-metric summaries, synchronized accessible tables and deterministic selected-view exports.
    3. Honest no-valid-run, missing-pair, incompatible, unknown, pending and veto states; essential safety/provenance must remain available after selection.
    4. Desktop and 320px layouts, keyboard/focus, non-color distinctions, long labels and chosen theme behavior. Provide annotated mocks and real browser acceptance criteria; a mock alone is not baseline approval.
    5. Implement the approved free-port launch/stop model and design discoverable HTML/JSON index/detail routes, shared-fact parity, deterministic output and public-output exclusion. Reading/building recorded evidence is offline/keyless. If invocation examples are included, describe actual credentials/consumption and existing separate run authorization; do not add a live-run button implicitly.
    
    Deliverable: complete proposed local-viewer design with labels, controls, state/eligibility rules, local output isolation and verifiable offline/build/browser/mutation proof. Preserve the approved policies and actual dependencies. Post review on the issue before implementation; no public-site integration or publication is authorized.
    

    2026-10-13 triage refresh: removed superseded choices from the active prompt and incorporated all later recorded rulings inside the self-contained design brief. All current policy choices are settled; retain needs: design for complete feasible specification review and actual dependencies/proof. Source remains inspected main 857ab01d1f9cb591f928755f5be516ab7f73338e; no new approval, implementation or baseline/publication result is claimed.

    Latest complete review input: #1610 (comment). Review/accept rev 3 plus rev 4 or identify bounded corrections to feasibility, state/copy/layout and proof. Existing choices stay settled; this full-spec acceptance remains needs: design. Do not treat the proposal's own completeness statement as approval.

    2026-10-13 explicit acceptance: the maintainer accepted local rev 3 plus rev 4 as the implementation spec. Full design/spec acceptance is resolved; implement against the current active body and linked revisions, preserving later #1609 rulings. No additional preliminary design approval is required. Retain actual listener/parallel/shutdown, HTML/JSON parity, browser/accessibility, public-output isolation and meaningful mutation proof. needs: decision/design are cleared; agent-ready plus real #1605/#1607/#1609 blockers reflects a complete brief awaiting prerequisites. Acceptance performs no implementation, publication or paid run.

  4. schlessera commented on Oct 12, 2026

    @schlessera
    OwnerAuthor

    Design brief: eval scenario pages on the website (#1610)

    Recommendation: a new Evaluations section inside the existing Docs navigation, after the handbook's four sections and marked as reference. It has one index page and one page per retained scenario (11). It adds nothing to the homepage. README and docs link to the index. Pages are static Astro, generated from manifests, normalized results and #1609's chart artifacts. There are no filters: 11 rows don't need them, and a filter would add state the static page doesn't need.

    Read: #1610, #1604 rulings, #1609 design (#1609 (comment)), website/DESIGN.md (handbook reading flow, docs nav, 75ch, tables scroll, teal focus, dark/paper), PRODUCT.md (honest claims), evals/README.md and the Haiku investigation.

    Index: /docs/evaluations/

    Evaluations                                                        (54px serif title)
    How brain-kit's shipped behaviour was measured: each scenario asks one question, on fictional
    Odysseus cases, and records the decision it led to. Results are observations from a few runs,
    not benchmarks.                                                    (lead, 42ch)
    
    | Scenario                     | Question it answered                 | Recorded decision | Current run | Status            |
    | 839 Smart capture            | Should capture pick type and target? | No-go             | 2026-10-11  | ▲ 26 reviews pending |
    | 842 Mechanical hygiene       | Code or model for source maps?       | Go: code          | 2026-10-11  | complete          |
    | 850 Import enrichment        | …                                    | …                 | …           | ▲ provisional     |
    | …                                                                                                  |
    Decisions are for the model the shipped path uses (claude-sonnet-5-5). Other models' runs are comparisons.
    

    Detail: /docs/evaluations/839-smart-capture/

    Order, top to bottom:

    1. Title Smart capture (#839) and a lead with the question in one sentence.
    2. Recorded decision callout (docs callout style, 20 % ink border): No-go for the shipped path (claude-sonnet-5-5). Decision record: smart-capture.md →. If pending safety reviews exist, a second line: ▲ 26 content-loss reviews are pending for the Haiku comparison. Pending reviews count as possible content loss.
    3. Current evidence: core: generate charts from normalized eval results #1609 panels for the headline metric(s) plus their tables. The heading reads Current evidence · latest complete validated run per configuration.
    4. Comparisons, not adoption, when any non-shipped-model row exists: a heading plus the line These runs swap the model on the current path to see what would change. Nothing here changes brain-kit's behaviour. The Haiku and effort rows live here, in their own panel, never mixed into Current evidence's shipped row.
    5. What was measured: cases (57 held-out, 19 tuning · fictional Odysseus world, pinned 2026-07-12), rubric, protocol and judge, plus what was reused (frozen floors, goldens, Jev judgments).
    6. Run it: a code block with the reproducible invocation (EVAL_CLAUDE_MODEL=… bun evals/839-smart-capture/run.ts). The line under it: Needs a Claude subscription session; paid. Raw transcripts aren't published.
    7. All runs: a table of every compatible immutable run per identity group (date, commit, status, median, runs/reps). Excluded runs are listed with their reason. Groups with unknown legacy identity get their own subheading: Earlier runs · effort not recorded.
    8. Limits: from the result's limits and pending fields (One sample per cell…).
    9. Sources: Results file (JSON) · 839 · 2026-10-11 · @abc1234, Harness source, Cases file, Decision record, Investigation. All are GitHub links at exact commits, labelled with file type and size.
    10. Ruled previous/next scenario links (handbook pattern).

    States

    State Display
    No valid run Current evidence is replaced by No complete validated run yet. plus the excluded-runs list. The recorded decision is still shown.
    Only partial or invalid runs the same, with the reasons listed
    Provisional (pending judgments) the provisional row label (#1609), the callout line, and the index Status
    Destructive veto present the callout line in ink, not gold: ▲ 9 false-report vetoes in the current run. The veto count sits in the safety column and is never hidden behind a disclosure.
    Unknown identity separate group heading, never merged
    Single configuration table only (No chart: one configuration only.)

    Navigation, focus, themes

    • In the docs nav as Evaluations with 11 child rows. The current page uses the existing 10 % amber tint. Below 900 px it is in the existing collapsed Browse documentation disclosure.
    • Skip link, teal 3 px focus outline, 44 px link targets. Tables are labelled scroll regions with tabindex="0" on desktop.
    • Charts follow the site theme (dark/paper tokens). The exported PNG links open the light-on-paper version.
    • Reduced motion: no motion is used.

    README / docs links

    • README, under the existing docs links: Evaluations: how shipped behaviour was measured → https://…/docs/evaluations/.
    • docs/decisions/*.md records with a scenario get a line under their go/no-go: Evidence page: Evaluations › Smart capture.

    Acceptance (build + browser)

    1. Each of the 11 scenarios has a page. Every source link resolves to an exact commit. Build is offline and keyless, with no transcripts.
    2. A pending-review fixture shows the callout line, the index ▲ N reviews pending and the provisional row.
    3. A no-valid-run fixture shows the empty current state and the recorded decision.
    4. Haiku rows render only under Comparisons, not adoption.
    5. 320 px and desktop, dark and paper: index stacked rows at 320, long model labels wrap, keyboard path through nav, tables and sources.
    6. A mutation (merging an unknown-effort run into a known row, or showing pending as 0) fails.

    Open questions

    1. Location: under Docs as a reference section (proposed), or a top-level /evals/ beside Docs?
    2. Paid invocation line: keep the "paid" note on Run it?
  5. added
    needs: decision
    needs: design
    and removed
    needs: design
    on Oct 12, 2026
  6. schlessera commented on Oct 12, 2026

    @schlessera
    OwnerAuthor

    2026-10-12 triage: folded the newly posted proposal and exact review questions into the current body. Its recommendation is not recorded approval; retained needs: decision and restored needs: design for the remaining judgments, with existing binding rulings, real blockers and evidence intact.

  7. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    Design review rev 2: eval scenario pages (#1610)

    This is a self-review of the first brief against #1609's chart design, now at rev 2. One section conflicted with the chart design and has been reconciled; three gaps are filled; the acceptance criteria are folded in. Location, navigation, page order and states are unchanged.

    Corrections

    # Rev 1 Problem Fix
    P1 §3 Current evidence held the shipped row, and a separate §4 "Comparisons, not adoption" panel held the alternates Two axes for one metric conflict with #1609 and make the comparison unreadable §3 embeds #1609's single panel with its Shipped path and Comparisons · not adopted row groups. §4 shrinks to a short paragraph above the panel: Rows under "Comparisons" swap the model on the current path to see what would change. Nothing there changes brain-kit's behaviour.
    P2 "Exported PNG links open the light-on-paper version" The site and download theme rules weren't stated Inline figures follow the site theme. Download links read Chart (SVG, paper theme) · 4 KB, Chart (PNG, paper theme) · 38 KB and Data (CSV) · 1 KB.
    P3 The index Status column didn't state precedence A scenario can be both provisional and carry vetoes Precedence: no valid run > ▲ N vetoes (ink) > ▲ N reviews pending (gold) > provisional > complete. The column shows only the highest. The detail callout lists all of them.
    P4 The index table never said what Current run means It could be read as "the latest attempt" The column header is Latest complete run. A footnote under the table reads Partial or invalid runs are never shown as current.

    Detail page order (rev 2)

    Smart capture (#839)                                   ← h1, serif
    Should capture pick a note's type and target itself?   ← lead
    ┌ Recorded decision ────────────────────────────────┐
    │ No-go for the shipped path (claude-sonnet-5-5).   │
    │ Decision record: smart-capture.md →               │
    │ ▲ 26 content-loss reviews pending for a           │  ← gold ▲ + words; ink if vetoes
    │   comparison run. Pending counts as possible loss.│
    └───────────────────────────────────────────────────┘
    Current evidence · latest complete validated run per configuration
      Rows under "Comparisons" swap the model … changes brain-kit's behaviour.
      [#1609 panel: Shipped path / Comparisons · not adopted]  [table]  [SVG · PNG · CSV]
    What was measured · Run it · All runs · Limits · Sources   (unchanged from rev 1)
    ← 1593 …                                         842 Mechanical hygiene →
    

    At 320 px the callout stays above the figure, and the ▲ line is never collapsed. The index keeps stacked rows. Dark and paper use the site tokens. Focus is a teal 3 px outline, and links have 44 px targets.

    Folded acceptance criteria (replace rev 1's list)

    1. Each of the 11 retained scenarios has one page under /docs/evaluations/, and the index lists all 11.
    2. The build is offline and keyless. No transcripts are published. Every source link points to an exact commit.
    3. The recorded decision text is verbatim from Epic: use classification and deterministic code where generic prompting is wasteful #838's record and is never derived from results.
    4. Alternate-model rows appear only inside core: generate charts from normalized eval results #1609's Comparisons · not adopted group.
    5. Pending reviews render the callout line, the index status and the provisional row. Vetoes render in ink and are never behind a disclosure.
    6. A no-valid-run fixture shows No complete validated run yet., the excluded runs with their reasons, and the recorded decision.
    7. Unknown-identity runs appear under their own Earlier runs · effort not recorded heading in All runs.
    8. The index status follows the P3 precedence.
    9. 320 px and desktop, dark and paper: stacked index rows at 320, long model labels wrap, table regions are labelled and focusable, and the keyboard path covers skip link → nav → callout links → tables → downloads → prev/next.
    10. Each mutation fails a test: pending shown as complete, an alternate row placed under Shipped path, an unknown-effort run merged into a known group, or the decision text altered.
    11. README and decision records link to the index or page as in rev 1.

    Open questions (rev 1, still open)

    1. Location: under Docs as a reference section (proposed), or top-level /evals/?
    2. Paid invocation line: keep Needs a Claude subscription session; paid. on Run it?
  8. 12 remaining items

  9. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    2026-10-13 triage: folded the newly posted local rev 3 proposal and its two specific review questions into the active brief. Prior audience/statistical choices remain settled; these newly introduced choices are recommendations, not approvals. Preserved needs: decision and restored needs: design for complete-spec review, alongside real data blockers and offline/public-output boundaries.

  10. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-13): B — bun run evals:view with an automatically allocated free port.

    Bind only 127.0.0.1 and let the OS allocate an available port; print the actual loopback URL after successful bind. Run in the foreground until Ctrl-C. The agent discovers the changing URL from process output; no fixed 4317 assumption, check-then-bind probe, daemon or non-loopback host setting. Verify parallel launches, printed URL versus actual listener, and shutdown with real loopback tests.

    Updated the body and design handoff. JSON page twins remain an open choice; needs: decision stays alongside design and data/chart blockers. Local viewing remains offline/keyless and does not execute evaluations.

  11. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-13): A — HTML plus JSON equivalents for the local viewer index and scenario detail pages.

    Generate both from the same internal evidence/page model, retaining the same provenance, current/adoption facts, metric definitions, groups, exclusions, unknowns and pending/safety states. Document discoverable local routes and the internal representation. Page equivalents differ from selected-chart JSON exports. This is local developer tooling, not a new public API, and includes no raw transcripts, credentials or private data. Reading JSON invokes no evaluation or evidence mutation.

    Prove semantic HTML/JSON parity with deterministic offline fixtures and a meaningful mutation. Updated the body and design handoff. All current #1610 policy questions are settled; removed needs: decision. needs: design and actual manifest/data/chart blockers remain, without agent-ready.

  12. removed
    needs: decision
    on Oct 13, 2026
  13. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    Design brief rev 4: launch port and JSON equivalents folded in (#1610)

    This folds the two 2026-10-13 rulings into rev 3:

    • B: bun run evals:view with an OS-allocated port.
    • A: an HTML page plus a JSON equivalent from one page model.

    Everything else in rev 3 stands: the pages, page order, theme, accessibility, isolation and the use of #1609.

    1. Launch (replaces rev 3 §1 "Binding")

    $ bun run evals:view
    eval-viewer: listening http://127.0.0.1:53117/
    eval-viewer: 11 scenarios · 64 runs · recorded evidence only · Ctrl-C to stop
    
    • Binding. It binds 127.0.0.1 with port 0, so the OS picks a free port. There's no probing beforehand, and no --port or --host flag.
    • Printed URL. The URL is printed only after the bind succeeds, and it is read from the actual listener address, not from a computed value. The first line has a stable prefix eval-viewer: listening , so the coding agent can parse it.
    • Lifetime. Foreground only. Ctrl-C or SIGTERM closes the listener and exits 0, and the shutdown line reads eval-viewer: stopped.
    • Parallel launches each get their own port. Each one is independent and read-only.
    • Bind failure exits non-zero with eval-viewer: could not bind 127.0.0.1 (<code>), without printing a URL.
    • --export <dir> is unchanged. It refuses paths inside website/.

    2. HTML + JSON equivalents (replaces rev 3 "JSON twin" wording)

    • One page model per route, built from the evidence, renders both forms:
      • / ↔ /index.json
      • /<id>-<slug>/ ↔ /<id>-<slug>.json
      • Each HTML page links its JSON in the head (<link rel="alternate" type="application/json">) and with a visible JSON link in the footer.
    • The JSON has the same facts as the page:
      • scenario and question;
      • the recorded decision (verbatim) and its record path;
      • safety and pending lines;
      • the metric definitions (unit, denominator, preference, scale, role, rationale);
      • identity groups, including unknown identity;
      • current runs (latest complete validated);
      • all runs with exclusions and reasons;
      • limits and pending judgments;
      • provenance (repo-relative path, commit, size, git show line);
      • the developer run instructions and requirements, verbatim or not recorded.
    • What it leaves out: transcripts, credentials, environment values and absolute host paths.
    • Not the same as chart exports. The page JSON describes the page's evidence. The selected-chart JSON from core: generate charts from normalized eval results #1609's Export view describes one view. They are separate files with separate names.
    • Format.
      • Keys are sorted and schemaVersion is 1.
      • The internal representation is documented in evals/viewer/README.md, alongside the route list.
      • It is local developer tooling, not a public API.
    • Read-only. Fetching JSON never runs an evaluation and never writes evidence.

    3. Acceptance changes (replace rev 3 §4 items 2 and 8; add 10–11)

    1. Loopback launch.
      • The listener address is 127.0.0.1 on an OS-assigned port, and the printed URL equals the actual listener.
      • Two parallel launches get different ports, and both serve.
      • SIGTERM closes the listener (a connection is refused afterwards).
      • A forced bind failure exits non-zero without printing a URL.
      • The source contains no fixed port and no host option.
    2. Browser over the printed loopback URL:
      • axis, view and scale changes;
      • the keyboard path (skip → nav → callout → controls → table → exports → prev/next);
      • long labels;
      • 320 px and desktop, dark and paper.
    3. HTML/JSON parity. For each fixture page, a parity test extracts the same facts from both forms and asserts them equal: decision text, safety lines, current run ids, exclusions, unknowns, provenance and requirements. Mutation: dropping a pending line from the JSON only, or from the HTML only, fails.
    4. Identical evidence gives byte-identical HTML and JSON.

    Follow-up for the maintainer

    All policy is ruled. Accept rev 3 + rev 4 as the implementation spec (still blocked by #1605/#1607/#1609)? Or name the section that needs another pass.

  14. added
    needs: decision
    needs: design
    and removed
    needs: design
    needs: decision
    on Oct 13, 2026
  15. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    2026-10-13 triage: consumed the newly posted rev 3 plus rev 4 consolidated specification and reconciled the prior settled choices. The remaining explicit request is full design acceptance or bounded corrections, so retained needs: design and removed the decision label that would reopen settled policy. Preserved actual dependencies and proof; proposal completion is not acceptance or runtime delivery.

  16. schlessera commented on Oct 13, 2026

    @schlessera
    OwnerAuthor

    Decision (maintainer, 2026-10-13): A — accept local-viewer rev 3 plus rev 4 as the implementation spec.

    The accepted brief covers local-only OS-allocated loopback launch/printed URL/foreground shutdown, index/detail hierarchy, shared-model HTML/JSON equivalents, recorded evidence/provenance/unknown/pending states, developer instructions and #1609's accepted interactive charts. Active criteria now reflect the spec and actual runtime/browser/parity/isolation/mutation proof. No public Astro integration, paid evaluation, evidence mutation or publication is selected.

    Removed needs: decision and needs: design and added agent-ready, preserving the real #1605/#1607/#1609 blockers. Specification acceptance is not implementation or passing runtime/baseline/public-build exclusion evidence.

  17. added
    agent-ready
    and removed
    needs: design
    on Oct 13, 2026
  18. schlessera commented on Oct 24, 2026

    @schlessera
    OwnerAuthor

    2026-10-24: the following sections were removed from the body because the 2026-10-13 acceptance of local-viewer rev 3 plus rev 4 superseded them. They are preserved here verbatim as history; the active specification and a list of the binding rulings remain in the body.

    Removed body text

    Decision (maintainer, 2026-10-13): local development website only

    The eval pages are an internal, local website consulted by the coding agent during development. They are not part of the public Astro website. This replaces the former public Docs-versus-top-level location question and the public-publication/README-link requirements; neither public route is selected.

    Current handoff

    All maintainer policy questions for #1610 are resolved by the local-only ruling. Remove needs: decision; retain needs: design and the actual #1605/#1607/#1609 blockers, with no agent-ready. Replace public-site proposals with a complete local-agent-viewer design covering hierarchy, interactions, evidence/provenance, local launch/output isolation and proof. Old public website mocks and navigation/cost-copy questions are historical proposals superseded by this scope; no implementation or publication is claimed.

    2026-10-13 correction: replaced public Astro integration with a local internal development viewer; removed public location/publication/README-link requirements and settled the old audience-specific copy question. Interactive chart policies and data prerequisites are preserved.

    Revised local design proposal awaiting review — 2026-10-13

    Rev 3 supplies a proposal under the approved local-only audience and prior statistical/interaction policies. Those existing choices remain settled. The revision introduces these new concrete review questions; no option is approved by the proposal:

    1. Launch convention is resolved by the later B ruling below: bun run evals:view with an automatically allocated free loopback port and the actual URL printed after binding.
    2. Machine-readable output is resolved by the later A ruling below: HTML plus JSON equivalents for the index and each scenario detail, derived from the same evidence/model.

    These choices are resolved by the later dated rulings below. Retain needs: design for acceptance of the complete revised controls/encoding or local-viewer hierarchy/state/output-isolation specification; no current needs: decision remains for those resolved choices. Preserve existing canonical data blockers, offline/keyless viewing, truthful identity/paired-run/safety/unknown provenance, no provider call or adoption change, and no public website integration. Review the complete proposal against current source and feasible runtime/browser/mutation proof before adding agent-ready. No implementation or baseline/publication result is claimed.

    Decision (maintainer, 2026-10-13): automatic free-port launch

    B — launch with bun run evals:view on an automatically allocated free port. Bind the foreground viewer to 127.0.0.1 only, requesting an available port from the operating system rather than assuming 4317 or using a check-then-bind port probe. Print the actual bound loopback URL once listening, so the coding agent can discover it from process output. Document that the address may change between launches and Ctrl-C stops the process; no daemon or non-loopback host option is selected.

    The launch notice must use the actual listening address/port and appear only after successful bind. Parallel instances must receive distinct available ports and not silently attach to an unrelated existing service. Tests exercise concurrent launches, discovery of the printed URL, actual loopback address and clean shutdown; retain offline/keyless recorded-evidence viewing. This resolves the default command/port convention, not blanket approval of every serving/export detail in the proposal.

    The JSON-twin versus HTML-only question remains open. Keep needs: decision alongside needs: design and existing blockers, with no agent-ready. All earlier local-only audience, chart and no-provider-call rules remain binding.

    2026-10-13 correction: selected automatic free-port launch option B; superseded fixed 4317/next-port default in the proposal. Machine-readable twins and full local design review remain outstanding.

    Decision (maintainer, 2026-10-13): HTML plus JSON equivalents

    A — provide a machine-readable JSON equivalent for the scenario index and each scenario detail page. Both representations derive from the same internal evidence/page model rather than independent parsing or duplicated facts. Define and document the repository-internal JSON representation and discoverable local routes, including index/scenario identity, metric definitions, run groups, authoritative current selection, original adoption decisions, provenance, exclusion reasons, unknown metadata and pending/safety facts. Preserve these facts consistently in HTML and JSON; do not present an unreviewed judgment as passed in either form.

    JSON output remains local to the development viewer, not a new supported public API, shipped package surface or published evidence endpoint. It contains allowed structured results, not raw transcripts, credentials or private instance content. Rendering/reading the output starts no evaluation and changes no stored evidence, current pointer, calibration or adoption. The existing chart view JSON/CSV exports remain selected-view artifacts; distinguish them from full page equivalents rather than conflating their scopes.

    Document how the coding agent discovers the JSON routes from the printed loopback base URL. Test semantic equality between representations for current/provisional/no-valid-run, incompatible/unknown identity, exclusions and safety states; identical evidence yields deterministic page JSON. Use a meaningful mutation of a shared fact or representation mapping to prove the parity assertion can fail. Retain local-only/public-build exclusion and offline/keyless guarantees.

    All current maintainer policy questions on #1610 are resolved. Remove needs: decision; retain needs: design and the existing manifest/data/chart blockers, with no agent-ready, pending the complete local hierarchy/state/isolation design and actual runtime/browser/mutation proof. Launch remains bun run evals:view with an OS-allocated free port, loopback-only actual-URL output and foreground lifetime.

    2026-10-13 correction: selected HTML-plus-JSON option A, updated the active machine-readable-output question and removed needs: decision. Design and data dependencies remain outstanding.

    2026-10-13 triage reconciliation: consumed all later recorded choices and removed superseded live-question/readiness instructions from the active handoff. Complete feasible design acceptance, actual data dependencies and runtime/browser/mutation proof remain; no new choice or delivered behavior is claimed.

    Consolidated specification awaiting acceptance — 2026-10-13

    The latest rev 3 plus rev 4 proposal folds the recorded choices into a proposed implementation specification and explicitly asks for acceptance or bounded corrections. Prior policy choices remain settled; that complete-spec review is needs: design, not a reopened policy choice. Retain needs: design and the existing canonical implementation dependencies. A specification proposal does not record its own acceptance, implementation proof or baseline approval. Fold recorded acceptance and any corrections into the active criteria before adding agent-ready.

    Decision (maintainer, 2026-10-13): accept consolidated local-viewer specification

    A — accept local rev 3 plus rev 4 as the implementation specification. Complete-spec acceptance is resolved, and active criteria above fold in the agreed page hierarchy, OS-allocated loopback launch, HTML/JSON model, local isolation, interactive charts and proof requirements. Preserve later #1609 chart rulings and all recorded evidence/privacy/offline policies; public Astro integration remains excluded.

    Remove needs: decision and needs: design; add agent-ready for the complete implementation brief while preserving the actual #1605/#1607/#1609 blockers. These dependencies still withhold pickup/delivery as appropriate. Acceptance is not runtime/browser/parity/public-output proof and does not merge, publish or execute evaluations.

    2026-10-13 correction: recorded explicit local rev-3-plus-rev-4 acceptance, replaced active implementation criteria and cleared design/decision prerequisites while retaining manifest/data/chart dependencies.

  19. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main d79eeed0a: merged #3458 added evals/3445-propagation-triage/ and evals/3452-propagation-policy/, so evals/ now holds thirteen retained scenario directories, not eleven. Context now defines the set as every scenario directory under evals/ and keeps a dated list of the thirteen for reference. Neither new scenario has a file under evals/cases/ (3445 has its own cases.json; 3452 reuses packages/core/tests/fixtures/propagation-cases.json). Labels and readiness unchanged; no eval was run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyarea: corearea: docsblockedpriority: p2type: feat

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions