Phase 3: Fix Local Window Estimation — Stop Using now-5h as Fallback Start #38
Labels
No Label
admin
agent-api
api
api-client
audit
backend
boards
cost-accounting
database
design
forgejo
frontend
issues
metrics
mutation
navigation
optional
phase:1
phase:2
phase:3
phase:4
phase:5
phase:6
polish
priority:high
priority:low
priority:medium
service
sync
usage-accuracy
validation
webhooks
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: null/Pipeline#38
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
References:
remaining-usage-accuracy-review-plan.md— Phase 3Summary
Pipeline's
_build_window()fallback setsstarted_at = now - 5h, thenresets_at = started_at + 5h, which makesreset_in_mseffectively zero whenever gateway status lacks explicit window fields. The reference dashboard uses the oldest recent message timestamp plus five hours, which produces a believable reset time.Acceptance Criteria
reset_in_msis nonzero and matches oldest included event + 5 hoursWork
_build_window()or move window construction after session filteringoldest_event_in_window + window_duration, notnowDo Not
Priority: High
Phase: 3