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 — fix(id/currency): prevent full-width posted counters from producing a false clean supply audit · Issue #13542 · developing-today/code

fix(id/currency): prevent full-width posted counters from producing a false clean supply audit #13542

New issue
Copy link
New issue
Copy link
Done
#13565
Done
fix(id/currency): prevent full-width posted counters from producing a false clean supply audit#13542
#13565
Copy link
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)status:done

Description

@dezren39
dezren39
opened on Nov 23, 2026
Issue body actions

At main cb4f687, the report-only currency supply audit casts each posted u128 counter to i128 by saturating at i128::MAX, then subtracts or adds those truncated values. With issuer debits (2^127 + 1) and holder credits 2^127, all other counters zero, the true discrepancy is one unit but the report can say clean. Adding holder nets also uses unchecked signed addition.

Acceptance: compute balances without truncating counters, aggregate independently of account enumeration order, and expose an explicit finding when the public report cannot represent a result. A non-clean result must survive report serialization. Include a focused oracle through the existing report entry point for the one-unit difference, large cancelling counters and existing ordinary balances. This is an arithmetic/reporting correction; production deployment, ledger writes, scheduling and payments remain with their existing owners.

Source:

code/pkgs/id/src/currency/reconcile.rs

Line 186 in cb4f687

/// A balance as a signed net: credits posted minus debits
. Follow-up to completed #2320, #13139 and #13166. Program #13240. No production occurrence has been established.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-23T17:57:56Z",
    "session_id": "ses_e5df6a0d535ffehEFUfk3bN4oa",
    "lane": null,
    "host": "amd",
    "worktree": "/home/user/git/code",
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": {
      "kind": "worktree",
      "id": "/home/user/git/code",
      "repo": "developing-today/code",
      "branch": "main",
      "sha": "cb4f687a2479c82718697139cc278bd3705200c8"
    },
    "auth_subject": "agent-next-26-local",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Activity

  1. dezren39
    added
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Nov 23, 2026
  2. developing-today commented on Nov 23, 2026

    @developing-today
    developing-todayBot
    on Nov 23, 2026 – with developing.today
    Contributor
    More actions

    CODE-4948

  3. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Claiming the report-only arithmetic fix and focused verification for #13542 in the AMD ID program lane. The F4 implementation and property tests from #2320 landed in #13139 and #13166. #10070 and its production items keep their existing ownership. An additional triage packet is deliberately omitted while this specific issue is actively implemented here; link the PR and Fleet result on this issue.

  4. developing-today
    added
    status:in-review
    on Nov 23, 2026
  5. dezren39 commented on Nov 23, 2026

    @dezren39
    dezren39
    on Nov 23, 2026
    MemberAuthor
    More actions

    Implementation is in PR #13565, commit 08ac052. The GitHub-hosted Fleet verification runs the reconciliation tests using the pinned ID Nix environment. The named regression checks an exact one-unit shortage before and after offsetting large lifetime debit and credit counters. Run pending.

  6. dezren39
    closed this as completedin #13565on Nov 23, 2026
  7. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 23, 2026
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

    app/idPackage/app: id (pkgs/ or apps/ in this repo)status:done

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — 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.