GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Usage history: test the thinning gap >= 0 check (#502 lens) · Issue #504 · scuttletoby/t3code

Usage history: test the thinning gap >= 0 check (#502 lens) #504

New issue
Copy link
New issue
Copy link
Closed
#541
Closed
Usage history: test the thinning gap >= 0 check (#502 lens)#504
#541
Copy link

Description

@scuttletoby
scuttletoby
opened on Nov 18, 2026
Issue body actions

Follow-up from the lens on #502 (#502 (comment); SAFE).

  1. The gap >= 0 check in thinning has no test (apps/server/src/usage/UsageReadingsHistory.ts, thinning loop). Removing it keeps all tests green, and usage history: keep clock step-backs through thinning; test clock guards #502 now relies on it. The lens wrote a test that shows the risk: readings at day −31, the clock steps back to day −36 (that reading ages out), then readings resume at day −31 minus 20 minutes. Without the check, all 30 readings after the step are dropped, along with the break. Add that test (it must fail without the check). Same kind of gap as usage history: two clock-deletion guards have no test #38.
  2. PR usage history: keep clock step-backs through thinning; test clock guards #502's body overstates one proof: removing edges.add(previous) fails 2 thinning tests, not 3. Description only; nothing to change in code.

🤖 Generated with Claude Code

Activity

  1. scuttletoby
    added a commit that references this issue on Nov 19, 2026

    usage: test the thinning gap check; end a failure streak once its ret…

    9652718
  2. scuttletoby
    closed this as completedin #541on Nov 19, 2026
  3. scuttletoby
    added 3 commits that reference this issue on Nov 21, 2026

    usage: test the thinning gap check; end a failure streak once its ret…

    507410a

    usage: test the thinning gap check; end a failure streak once its ret…

    deaa4c0

    usage: test the thinning gap check; end a failure streak once its ret…

    02622a9
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.