Skip to content

ui-server: priced Activity route fixture splits into two days at UTC midnight #3634

Closed

Description

@schlessera

Out of scope

No Activity grouping, billing/accounting, timestamp or API behavior change. No safety-verdict or provider-history implementation change.

Context

Candidate confirmation for #3601 / PR #3633 failed in run42131653674, unit2 job127610254927 on tested merge 55e35e65c38c84774688babaf9e21c8f06823fd6, parents main 4ff63be8581dcfd72ed7ef3220347409a912a542 and head 0f417cf93210f4af47b13f49e3fb0d3dcf658b02.

seededPriced (packages/ui-server/tests/routes-activity.test.ts:283) sets session starts to Date.now()-60000 (:299) and cron starts to Date.now()-30000 (:320). The single-day assertion (:335) fails between 00:00:30 and 00:01:00 UTC: the fixture legitimately produces two day buckets, while expecting one. Hosted failure occurred at 00:00:55 UTC, expected1/received2. The test file's blob is identical on candidate and base (3b2c539a7b53c5d741087a6bafaf1129e5877110); no verdict code touches these route or fixture timestamps.

A command-scoped clock preload set to the fictional fixture date 2026-07-12T00:00:55.000Z reproduces that exact assertion failure through the repository's normal offline test wrapper. The same target test passes at 2026-07-12T12:00:55.000Z. No network/namespace guard or deadline was changed. Independently repeat the reproduction on fetched main before implementation.

This is a supporting proof blocker for #3601; its complete scope is Activity test determinism, outside the session-safety epic outcome. Main is not recorded red. #3633's failed confirmation is not merge qualification and will not be rerun unchanged.

Scope

Make the intended single-day priced-aggregation fixture independent of execution time and UTC rollover. Audit sibling fixtures in this file for the same assumption, keeping relative-window tests faithful to their separate purpose. Prefer a local fixture anchor or explicit test clock; preserve the pinned Odysseus example date where a fixed date is used.

Acceptance criteria

  • The real target route test reproduces expected1/received2 on the unchanged base with an isolated clock at 00:00:55 UTC; midday control passes.
  • Corrected fixture passes before, across and after the UTC date boundary, including 00:00:55, with its full five-run cost/unpriced/session/job assertions retained.
  • No production grouping/accounting semantics, guards, deadlines or assertions are relaxed; any sibling single-day fixture assumptions found in the file are corrected within the same bounded scope.
  • A restored mutation reintroducing the bad timestamp relationship fails the named day-bucket assertion; the full Activity route test file and contribution preflight pass.

Verification

Use bun run test --preload <owned-clock-file> packages/ui-server/tests/routes-activity.test.ts -t 'rollups route sums only priced runs' with separate command-scoped clocks. Run the full route fixture suite under representative boundary clocks and normal time. Retain exact base/head/tree, commands, expected failing assertion, mutation/restored receipts and selected hosted proof. Never relabel this failed #3633 confirmation as passing.

Contract impact

Test/fixture correction only; no contract or shipped API change is intended. Apply repository changeset policy for a test-only contribution with an explicit absence rationale.

Priority p2 matches the blocked #3601 chain. The completing fix belongs to release 0.45.0 with the affected verification work.

Delivered fix — 2026-11-06

PR #3635 merged as 5766d7b5fbee2754a2d54339ebfab9bb5584216e, actual parent 4ff63be8581dcfd72ed7ef3220347409a912a542, tree d36c7aa96f93058fdc9b04a02943fbdd78844a6b. The single-helper fix preserves all assertions and independent time-window fixtures. All four acceptance criteria are verified: unchanged-main midnight failure/midday control, seven fixed full-file clock controls, bounded scope and restored mutation. Parent independently reran all20route tests/142assertions at the failing clock and verified66artifact plus4416source hashes. Current committed-head preflight207/1659 and strict typecheck pass.

Full confirmation42136442164, attempt1, passed every selected category; all16actualexecution checkouts and the aggregate were independently verified. Packaging was explicitly excluded for this test-only change; no selected job was missing, cancelled or unexpectedly skipped. The actual squash matches the tested tree and is on main. Closure and issue/PR0.45.0 milestones are read back. Automatic main42139316790, attempt1, passed all eight selected categories freshly. All sixteen actual execution checkouts, including the aggregate, independently match the squash; packaging was intentionally excluded. Full post-merge reconciliation is complete and parent claim activity-3634-parent-integration-20261106 is released. The failed earlier safety confirmation remains historical. The corrected #3633 candidate has since merged as cfbfcab18b869f829da803dec39f23fd55935074; its separate automatic-main reconciliation is ongoing.

Activity

  1. added this to the 0.45.0 milestone on Nov 6, 2026
  2. added
    type: test
    area: ui-server
    priority: p2
    agent-ready
    on Nov 6, 2026
  3. self-assigned this
    on Nov 6, 2026
  4. schlessera commented on Nov 6, 2026

    @schlessera
    OwnerAuthor

    Claim token activity-3634-midnight-20261106-30f9e99f; intended branch test/3634-activity-midnight-30f9e99f from fetched main 4ff63be8581dcfd72ed7ef3220347409a912a542 in the environment-provided isolated checkout.

    Readiness verified: open, unassigned, p2, agent-ready, milestone 0.45.0, no parent epic and no implementation PR. The cited fixture offsets and assertion still match fetched main. I will independently reproduce the midnight failure and midday control, bound the fixture timestamps locally, audit sibling assumptions, retain mutation/boundary evidence and open a draft PR. No production behavior changes.

    Collision detection on starting graph ddb8e5107f9929570422e6b2d344993af67380f9 reports shared ui-server proof closure with #3059, #3069, #3336, #3393, #3458, #3464, #3581, #3587, #3590, #3594, #3622 and #3633; its reported closure paths include this file for #3393, #3458 and #3633. This is detection, not a lock. #3601 and PR #3633 remain parent-owned; I will not alter their claims, confirmation, readiness or integration state.

  5. schlessera commented on Nov 6, 2026

    @schlessera
    OwnerAuthor

    Implementation handoff for claim activity-3634-midnight-20261106-30f9e99f: draft PR #3635 contains the focused test-only fix at head f1a19ac86159c965d601b018147339058d56a638, tree d36c7aa96f93058fdc9b04a02943fbdd78844a6b, based on fetched main 4ff63be8581dcfd72ed7ef3220347409a912a542 (tree ca79f6a897adcfa9eeb1d2d8cf7344d890a1d460).

    Independently reproduced the unchanged-base 00:00:55 failure at the exact day-bucket assertion (expected 1, received 2), with a passing midday control. The fixed fixture passes normal time and six boundary/control clocks: 20 tests, 142 assertions each. Replacing the bounded anchor with Date.now() reproduces the same named assertion failure; mutation restored byte-for-byte. Every assertion and separate relative-window test remains unchanged. Strict typecheck passes with the existing 6144 MiB command-scoped heap setting; its earlier default-heap OOM remains recorded as failed. bun run check:pr --base origin/main passes, including leakage and 207 fast invariants. No shipped files changed, so the changeset gate requires none.

    The draft PR carries exact identities, the complete local proof-file manifest, source/runtime hashes, command receipts and the contribution-preflight block. Raw precommit receipt identities are preserved and bound to the committed tree by reconstructing their exact patch against the verified base. Public text and owned evidence files passed leakage screening; saved GitHub actor metadata uses login/ID only. Both PR and issue retain milestone 0.45.0.

    Parent retains review, selected hosted proof, cooperative integration, main verification and the later #3633 refresh. No confirmation, watch, merge or other claim/reservation change was performed. #3634 remains open with Refs pending that proof and closure decision. Releasing only this invocation's #3634 assignment now; #3601 and #3633 remain parent-owned.

  6. schlessera commented on Nov 6, 2026

    @schlessera
    OwnerAuthor

    Taking integration ownership of #3634 / draft #3635 under claim activity-3634-parent-integration-20261106. The implementation worker released its claim. Reviewed the single-fixture diff at f1a19ac86159c965d601b018147339058d56a638: the one-hour anchor keeps all five runs in the same completed UTC hour, with every assertion and separate relative-window fixture retained. The supplied baseline/mutation/boundary receipts and exact source identities are being verified before cooperative confirmation. #3601 remains separately parent-owned and blocked until this supporting fix is delivered.

  7. removed their assignment
    on Nov 6, 2026
  8. schlessera commented on Nov 6, 2026

    @schlessera
    OwnerAuthor

    Completed #3634 via PR #3635, squash 5766d7b5fbee2754a2d54339ebfab9bb5584216e, exact tested parent/tree verified. Candidate run42136442164 and automatic-main run42139316790, attempt1, each passed every selected category; all sixteen execution checkouts in each run were independently verified. Packaging was explicitly excluded for the test-only change. All four criteria, closure and issue/PR0.45.0 milestones are reconciled. Releasing only claim activity-3634-parent-integration-20261106. Supporting #3601 has since merged via #3633 at cfbfcab18b869f829da803dec39f23fd55935074; its separate automatic-main reconciliation remains with its parent.

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: ui-serverpriority: p2type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions