Skip to content

usage history: borrowed/own account flips must not count as swaps (part 3 docs) #39

Closed

Description

@scuttletoby

apps/server/src/usage/UsageReadingsHistory.ts:31-41: an instance with no workspace flips between the borrowed account and its own <base> as the other instance comes and goes. Each flip is recorded, and the account field doc counts any change between two present values as a swap. Fix: one sentence in the docs (a change between <base> and <base>.<ws> with the same base, or to/from a borrowed account, is not a swap), and part 3 follows it.

From the round-4 check of #24 (#24 (comment)). Left as a minor at merge.

🤖 Generated with Claude Code

Activity

  1. added 3 commits that reference this issue on Nov 18, 2026
    1837f15
    9c8165d
    c297dfe
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