From 416b04d903309e57af91af3ad9ca32221273e066 Mon Sep 17 00:00:00 2001 From: Edy Cu Date: Wed, 9 Sep 2026 21:55:58 +0700 Subject: [PATCH] fix(docs): the audit trail brought nineteen more tests The HCS audit trail added 19 vitest cases, which moved the suite 239 -> 258 the moment it merged -- so the figure corrected two commits earlier was stale again before anyone read it. Re-measured rather than inferred: `yarn vitest run` reports 258 across 14 files, `yarn hardhat:test` still 64. Seven places carried the old number, including the homepage stat and the /judge table -- the two a judge sees first. This is the third time this number has drifted. It drifts because it is written by hand in seven places and produced by a command in one. --- JUDGE.md | 4 ++-- README.md | 4 ++-- packages/nextjs/app/judge/page.tsx | 4 ++-- packages/nextjs/app/page.tsx | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/JUDGE.md b/JUDGE.md index 81a9b08..39cd3ab 100644 --- a/JUDGE.md +++ b/JUDGE.md @@ -88,7 +88,7 @@ Hedera mirror node — the exact `curl` commands are in [`docs/proof.md`](docs/p | **Gas used, `subscribe()` on testnet** | 1,582,554 (limit 2,000,000) | | **Gas used, deploy** | 968,564 | | **Contract tests** | **64 passing** — `yarn hardhat:test` | -| **Resource-server unit tests** | **239 passing** — `yarn next:test` | +| **Resource-server unit tests** | **258 passing** — `yarn next:test` | | **Amounts checked across the unit boundary** | **202,059**, three invariants each = 606,177 assertions | | **Hedera Schedule Service methods used** | 3, all load-bearing: `scheduleCall`, `hasScheduleCapacity`, `deleteSchedule` | @@ -121,7 +121,7 @@ proves the contract logic, not the network behaviour, and it is never the demo: ```bash yarn hardhat:test # 64 contract tests -yarn next:test # 239 unit tests, 202,059 amounts across the unit boundary +yarn next:test # 258 unit tests, 202,059 amounts across the unit boundary ``` There is no offline, mock or demo mode for the product itself. The gate reads `hasAccess()` on diff --git a/README.md b/README.md index c43e36c..74959bf 100644 --- a/README.md +++ b/README.md @@ -723,7 +723,7 @@ balance without funding a period. Each claim is listed next to its test in [`.github/SECURITY.md`](.github/SECURITY.md). ```bash -yarn next:test # 239 unit tests, the resource server's arithmetic +yarn next:test # 258 unit tests, the resource server's arithmetic ``` The sharpest edge in this project — Hedera's weibar/tinybar boundary, whose failure mode is a @@ -754,7 +754,7 @@ an explicit switch to the live chain, no autoplay under reduced motion, no sidew | Layer | Tool | Where | |---|---|---| | Contract tests | Hardhat + Mocha, 64 passing | `.github/workflows/lint.yaml` | -| Unit tests | Vitest + fast-check, 239 passing, 202,059 amounts | `.github/workflows/lint.yaml` | +| Unit tests | Vitest + fast-check, 258 passing, 202,059 amounts | `.github/workflows/lint.yaml` | | E2E | Playwright, 56 checks, desktop + mobile | `.github/workflows/e2e.yaml` | | Types + lint | `tsc --noEmit` and ESLint, both workspaces | `.github/workflows/lint.yaml` | | SAST | CodeQL — TypeScript **and** the Actions workflows | `.github/workflows/codeql.yaml` | diff --git a/packages/nextjs/app/judge/page.tsx b/packages/nextjs/app/judge/page.tsx index 9aba507..7884c10 100644 --- a/packages/nextjs/app/judge/page.tsx +++ b/packages/nextjs/app/judge/page.tsx @@ -84,7 +84,7 @@ const receipts: [string, React.ReactNode][] = [ [ "Resource-server unit tests", <> - 239 passingyarn next:test + 258 passingyarn next:test , ], [ @@ -253,7 +253,7 @@ BASE_URL=${BASE} yarn tsx scripts/retainer-agent.ts`}

         {`yarn hardhat:test     # 64 contract tests
-yarn next:test        # 239 unit tests, 202,059 amounts across the unit boundary`}
+yarn next:test        # 258 unit tests, 202,059 amounts across the unit boundary`}
       

Honest limitations

diff --git a/packages/nextjs/app/page.tsx b/packages/nextjs/app/page.tsx index c595fc4..0a6c5da 100644 --- a/packages/nextjs/app/page.tsx +++ b/packages/nextjs/app/page.tsx @@ -115,7 +115,7 @@ const Home: NextPage = () => { source="mirror node · CONTRACTCALL · SUCCESS" /> 64 + 239} + value={<>64 + 258} label="contract tests + resource-server tests passing" source="yarn hardhat:test · yarn next:test" />