Repository navigation
Description
Task
T-088b· Milestone M8 — Dashboard · Size M · Priority P0 · Epic #8Implements FR-DSH-002 · FR-SEL-008
Branch
feat/t-088b-campaign-console-entry-stream-spine— one task = one branch = one PR (doc 32 §6)
Summary
Implement the newest-first entry stream (virtualised; verdict, class, ρ, condition strip, phase, μ ± σ), the Spine in the margin rail, j/k navigation, and the rationale popover (phase, predicted μ ± σ, acquisition value, nearest known case).
Context / motivation
Transparency of the intelligent selector (US-013).
Scope
In scope
- Click entry → Run entry route.
Implementation guidance
features/console/stream/EntryStream.tsx: virtualised newest-first list from the infinite runs query (sort=-ordinal); each row shows ordinal, VerdictNotch, primary class, ρ (signed, 2 dp), ConditionStrip (xs), phase chip and μ ± σ fromselection_rationale.stream/RationalePopover.tsx(Radix Popover): phase, predicted μ ± σ, acquisition value + name, nearest known case (code + distance), ε-explore flag — fields from the run'sselection_rationaleJSON; missing fields are hidden, never shown as "undefined".- The Spine renders into the MarginRail slot (T-085b); clicking a tick scrolls the stream to that run.
- Keyboard:
j/kmove the selection,Enteropens Run entry,ropens the replay dialog for the selected run (registered vialib/keyboard.ts, feature scope). - Standards: respect the layering contracts (doc 16 §2) and conventions in doc 34; no hard-coded tunables — thresholds/defaults come from typed settings (doc 27); no magic numbers (ruff
PLR2004); public APIs typed (mypy strict) and documented.
Acceptance criteria
- 10 000-entry stream scrolls smoothly (virtualised).
- Popover content matches
selection_rationalefixture. - A new SSE run appears at the top without moving the user's position when they have scrolled down (anchor test).
- Popover keyboard accessible.
- Tests listed below added and green in CI; coverage of new code meets the gate in doc 18 §3.
- Docs, config reference and CHANGELOG
Unreleasedupdated where behaviour, keys or interfaces changed. - Definition of Done (doc 32 §3) satisfied.
Tests required
features/console/stream/*.test.tsx.
Dependencies
Blocked by: #165 (T-085d), #166 (T-086a), #167 (T-086b)
Blocks: #187 (T-118)
Parallelization notes
Files / paths owned by this task — avoid editing other paths; shared files (pyproject.toml entry points, cli/main.py, api/routers/__init__.py, router.tsx, docker/compose.yaml, ci.yml) are append-only:
web/src/features/console/stream/**
Parallel with T-088a.
Definition of Done
Per doc 32 §3 and AGENTS.md §5: lint, format, mypy strict and import-linter green; tests added and passing; docs updated; PR template completed with Closes #<this issue>; Conventional Commit messages referencing T-088b (doc 16 §6); commits authored only by the repository owner identity (AGENTS.md §4); CI green; reviewer checklist (doc 32 §5.1) satisfied.
References
Design docs: doc 13 §3.3 · doc 13 §4 · doc 08 §1 · doc 07 §1
Requirements: FR-DSH-002 · FR-SEL-008 (traceability: doc 28)
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsBacklog
Activity
/config.json), SSE client with reconnect/Last-Event-ID and query-cache patching #165feat(web): add live campaign Console and run stream (#306)
fix(console): restore run conditions and predictions (T-088b) (#310)
CodewithJha commentedon Nov 22, 2026
Shipped on main (merged PR).