Skip to content

Keep unknown history distinct from empty forecast history - #8341

Merged
orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-22549-ef82b925
Nov 7, 2026
Merged

orbit-agent-01 merged 1 commit into
agent-mainfrom
orbit/ORB-22549-ef82b925

Conversation

@orbit-agent-01

Copy link
Copy Markdown
Contributor

Task

ORB-22549 — Keep unknown history distinct from empty forecast history

Description

Analytics > Forecast, dark theme at 1440×900 and 375×900. In a browser-only GET response fixture, load /#analytics/forecast with inputs.history_deliveries omitted, while keeping the forecast wrapper, explicit unavailable reasons, support, and pre_regression_baseline. The full view claims no task has finished with recorded runs and hides the supplied baseline/reason. A second response keeps available time/cost/token quantiles but omits only the history count: the full view still hides the figures, while the compact Tasks forecast shows them. Users are told to widen history even though the server did not establish empty history. Unknown history must stay distinct from an explicit zero.

Reproduction/evidence: ORB-22536 ux-review.json and measurements/forecast-extra-* retain the API-shaped response. Screenshots on ORB-22536: screenshots/dashboard-forecast-older-with-reasons-dark-375.jpg, screenshots/dashboard-forecast-older-with-values-dark-375.jpg, and their -1440.jpg counterparts. Compare screenshots/dashboard-compact-older-with-values-dark-375.jpg.

Code: crates/orbit-web/assets/dashboard/js/forecast.js:624–633, totalsNodes uses !inputs.history_deliveries before rendering availability evidence. Verified against base e2b83af and matching live JS. Deduplicated against completed ORB-19963 (presentation) and ORB-19961 (calculation); neither is open, and this finding concerns only presentation of an omitted field. No live history was changed.

Acceptance Criteria

  • At dark 1440px and 375px, a response omitting history_deliveries does not assert that history is empty; available adjusted figures remain visible and unknown evidence remains qualified.
  • With history_deliveries omitted and explicit unavailable reasons plus a pre-regression baseline retained, the full view explains the reason and qualifies baseline limits; partial baseline percentiles stay unknown.
  • An explicit zero-history response still explains the empty history; capture manual QA screenshots for omitted, zero, and available cases at both widths, without adding UI tests.

Screenshots

Before After
forecast-omitted-available, 1440 — forecast-omitted-available-dark-1440.jpg
forecast-omitted-available, 375 — forecast-omitted-available-dark-375.jpg
forecast-omitted-reason, 1440 forecast-omitted-reason-dark-1440-before.jpg forecast-omitted-reason-dark-1440.jpg
forecast-omitted-reason, 375 forecast-omitted-reason-dark-375-before.jpg forecast-omitted-reason-dark-375.jpg
forecast-zero-history, 1440 — forecast-zero-history-dark-1440.jpg
forecast-zero-history, 375 — forecast-zero-history-dark-375.jpg

Execution Summary

Click to expand

Result

Changed totalsNodes in crates/orbit-web/assets/dashboard/js/forecast.js to show the empty-history state only when inputs.history_deliveries is numeric zero. Missing and null counts now continue through the existing forecast, unavailable-reason, and baseline renderers.

Acceptance criteria

  1. The omitted-count response with adjusted quantiles retained rendered time, cost, and token figures at dark 1440×900 and 375×900. Its missing token p90 remained labeled unknown; no empty-history claim appeared.
  2. The omitted-count response with explicit regression-gap reasons and a partial pre-regression baseline rendered the reason and baseline-only warning. Baseline guidance identified excluded regression follow-up work; missing percentiles remained unknown.
  3. Explicit zero still rendered “No delivery history to sample” and the recorded-runs explanation. No UI tests were added. Manual screenshots cover omitted-with-reason, zero, and omitted-with-available-quantiles at both widths.

Validation

  • Passed: make ci-guards
  • Passed: cargo fmt --all -- --check
  • Passed: scripts/build-budget.py -- cargo clippy -p orbit-web --lib --bins -- -D warnings -D clippy::disallowed_methods
  • Passed: scripts/build-budget.py -- cargo clippy -p orbit-web --all-targets -- -D warnings -A clippy::disallowed_methods
  • Passed: RUSTDOCFLAGS="-D warnings" scripts/build-budget.py -- cargo doc --no-deps -p orbit-web
  • Passed: git diff --check
  • Passed: final manual browser fixture run via the verified browser kit; all six cases had no uncaught page errors. A first harness attempt failed because the fixture put regression gap details at the wrong JSON level; I corrected the fixture and reran all cases successfully.
  • Passed: base-revision browser capture verified the old empty-history behavior for omitted counts at both widths.
  • Not run: UI tests, as prohibited by the workspace guide.

Evidence and reconciliation

Attached task artifacts: screenshots/forecast-omitted-reason-dark-1440.jpg, screenshots/forecast-omitted-reason-dark-375.jpg, screenshots/forecast-zero-history-dark-1440.jpg, screenshots/forecast-zero-history-dark-375.jpg, screenshots/forecast-omitted-available-dark-1440.jpg, screenshots/forecast-omitted-available-dark-375.jpg, plus base screenshots screenshots/forecast-omitted-reason-dark-1440-before.jpg and screenshots/forecast-omitted-reason-dark-375-before.jpg.
Only the selected source file is a tracked worktree change; it is within the existing task selector. Screenshot sources and the temporary browser harness remain under ignored .orbit/tmp/. No unrelated edits or cleanup leftovers exist. No documentation change applies.

Validation

  • Not reported

Branch Freshness

  • Base ref: origin/agent-main
  • Head ref: orbit/ORB-22549-ef82b925
  • Behind base: 0
  • Ahead of base: 1

@orbit-agent-01 orbit-agent-01 added the orbit orbit related label Nov 7, 2026
@orbit-agent-01
orbit-agent-01 merged commit c0b628e into agent-main Nov 7, 2026
15 checks passed
@orbit-agent-01
orbit-agent-01 deleted the orbit/ORB-22549-ef82b925 branch November 7, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

orbit orbit related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant