Show live Treachery and Spice draw-pile counts

Add server-derived physical draw counts above the board after setup begins.
Counts exclude hands, auction pools, faction caches and discards; the client
receives only two numbers, without deck identities or order. Lobby counts are
absent, zero remains explicit and existing refill/custody rules are unchanged.
An internal guide explains pile boundaries, empty/refill behavior, first-turn
worm return and existing authorized inspection. Nexus counts remain separate.

Independent review found no material issue. Six focused cases cover genuine
Basic setup, every viewer, private-field exclusion, JSON/input immutability,
actual auction draws and refill, physical custody, Spice refill with Thumper
annotations excluded, skipped worm return and connected busy/empty/lobby UI.
The initial refill assertion assumed a single card; it was corrected to account
for a legal randomized chain of worms before a territory. The original broad check caught seven view-equality failures in privacy
fixtures that also changed the now-public deck count. Their four test files now
vary hidden allocations/identities at fixed public counts, retain whole-view
assertions and check physical custody. The Sapho fixture now returns its
swapped card rather than losing it. A reviewed CHOAM correction keeps its owner
empty during donor1to2 by staging a hidden discard; the original oracle test
remains intact. All70 affected focused tests pass.

Types, lint, all 4990 offline tests, production build and 49 HTTP tests
passed on stable source. Browser QA reused the existing three-human Basic Nexus
without any game action. Treachery29 and Spice19 matched saved physical arrays;
390px layout fit within339px without internal overflow, with16px body/14px labels.
The internal guide worked by click and Enter, and Back/refresh restored the same
counts. Normal viewport restored and preview retained. Screenshot capture timed
out; full visual, screen-reader,200% text and combined-game acceptance stay open.

All 1499 opening rooms, 3171 seats and auxiliary rows are
unchanged. SQLite integrity and foreign keys pass; isolated HTTP rooms are new.
Healthy server reused without restart, migration, reset or recurring automation.
Full AI refinement remains deferred and no mode/publication gate was opened.

Private evidence: 20260921-deck-status.
Verified source tree: 091be8f49f9b637b9a79da43271cbffdff5cf8c9f653484afa7041c71af88e98
This commit is contained in:
Quintine committed 2026-09-21 11:36:25 +10:00
1 parent 537da4a12c
commit 14a7800fe9
16 files changed
+339 -18

No files matched your search

+7
View File
@@ -1,5 +1,12 @@
# Component inventory and verification ledger
**Draw-pile counts, 21 September 2026:** the table now displays authoritative
Treachery and Spice draw counts above the board, separate from auctions, hands,
caches and discards. Existing Nexus counts and authorized card inspectors remain
in place. No private card faces or order are exposed. This closes the ordinary
draw-count gap; broader card handling and visual acceptance remain open. See
[scope and evidence](DRAW_PILES.md).
**Force counter inspection, 21 September 2026:** each public player summary now
opens enlarged faction diagrams and a physical location inventory. All twelve
sets have reference faces; special counters, advisor stances, native Homeworld
+13 -13
View File
@@ -6,20 +6,20 @@ gated.** Prototypes do not open completion or publication gates.
## Current checkpoint and work
Latest delivered checkpoint: `2b071a4`, [live Nexus offer withdrawal](NEXUS_OFFERS.md).
Types, lint, **4,973 offline tests**, production build and **49 HTTP tests** passed.
All 1,459 opening rooms, 3,081 seats and auxiliary rows stayed unchanged. Isolated
QA brought the local baseline to 1,499 rooms and 3,171 seats. Browser proposal,
refresh, keyboard withdrawal, preserved incoming offer, acceptance, break and
390px layout checks passed. Full visual acceptance remains open. The healthy
server was reused. Prior checkpoints include `91dcca4` for bribes, `7814f74` for
table discussion and `b2fcef8` for Storm/Spice practice.
Latest delivered checkpoint: `537da4a`, [public force inspection](FORCE_INSPECTION.md).
Types, lint, **4,984 offline tests** and production build passed. All 1,499 rooms,
3,171 seats and auxiliary rows stayed unchanged. Browser checks covered live
counts, twelve faction faces, keyboard inspection, internal guidance, refresh and
390px layout. Screenshot capture remained unavailable; full visual acceptance is
open. The healthy server was reused. Prior checkpoints include `2b071a4` for
Nexus offers, `91dcca4` for bribes and `7814f74` for table discussion.
Current work: [public force inspection](FORCE_INSPECTION.md) connects enlarged
counters and public location inventories for all factions, with special/advisor
subsets, Homeworld reserve breakdowns and concealed No-Field markers. This is
read-only; source-bound checks, independent review, browser and preservation/Git
evidence belong to the private checkpoint. The broader game remains unfinished.
Current work: [Treachery and Spice draw counts](DRAW_PILES.md) connect public
physical pile sizes above the board, separate from auction and private holdings.
Setup, actual draw/refill, skipped-worm return, Thumper exclusion, privacy and
JSON/rendering checks accompany source-bound independent review, browser and
preservation/Git evidence. No game action or AI strategy changes. The broader
game remains unfinished; continue independent card handling and player features.
The separate Bureaucrat/Emperor gift question is pending.
The `8f7a62c` policy checkpoint removed usage checks/cutoffs and deferred AI
refinement until feature completion, followed by three adjacent 75% targets.
+54
View File
@@ -0,0 +1,54 @@
# Live draw-pile counts
Connected prototype, 21 September 2026. This completes the missing ordinary
draw-count display; full component, rules-mode and visual acceptance remain open.
## Behavior and boundaries
`viewGame` now projects `drawPiles: { treachery, spice }` from the lengths of the
authoritative draw arrays, or `null` while the lobby is uninitialized. The table
displays both counts above the board with an internal guide. Counts refresh with
the existing saved-table response and require no decision, command or schema.
Finished games retain their actual counts.
The numbers exclude hands, auction pools, the Richese cache, discards and other
separate holdings. Auction `remaining` already counts its unsold pool including
the current lot; Nexus already exposes its own deck/discard counts. No inferred
Storm deck is introduced: that runtime selects from six values without a saved
physical draw array. No private identities, order, peeks or discard faces are
added to the response.
Zero is a real empty draw pile. Existing Treachery and Spice refill logic remains
authoritative; viewing never triggers a shuffle. First-turn worms set aside are
outside the pile until returned, and Thumper annotations are not physical Spice
Cards to recycle. Optional cards contribute only when physically in a draw pile.
The feature does not change any of these rules or the existing card custody.
The existing [Nullentropy contract](NULLENTROPY_BOX_ENGINE_AUDIT.md) records the
GF9 CHOAM & Richese rulebook's discard privacy restriction and the paid owner's
search entitlement. Counts grant no new discard inspection. Public Spice tops,
owned hands and entitled peeks keep their existing inspectors. Generic discard
browsing and hand sorting/filtering are not supplied by this checkpoint.
## Verification
- Genuine three-player Basic setup checks undealt and dealt counts, all viewers,
private-field exclusion, input immutability and JSON restoration.
- Controlled Charity boundaries use real ready/auction draws, including an
exhausted Treachery pile, and reconcile physical auction/deck identities.
- A later Storm/Spice boundary exercises real Spice refill with an excluded
Thumper annotation. A first-turn draw checks a skipped worm leaving and
rejoining the counted pile.
- Full-table rendering connects the display while controls are busy. Empty,
single-card and lobby states have focused rendering checks.
- Existing CHOAM market, Ecaz alliance, Richese Ambassador and Sapho privacy
fixtures now keep public draw counts fixed while varying hidden allocations
or identities. Complete opposing-view equality assertions remain intact, with
physical custody checks. Moving a card out of a public draw pile is not an
otherwise-identical public state.
Run `npm test -- draw-piles`. Independent review, browser checks, final
type/lint/offline/build/HTTP checks, saved-game preservation and Git delivery
are recorded in the private source-bound checkpoint. Focused fixtures are not
complete-game or expansion-combination certification. AI strategy and release
gates are unchanged.
+10
View File
@@ -1,5 +1,15 @@
# Dune implementation status
## 21 September 2026 — live Treachery and Spice draw counts
The table now shows both physical draw-pile counts above the board. The public
projection excludes auction pools, hands, caches and discards, while keeping
private card identities and order concealed. [Draw-pile counts](DRAW_PILES.md)
connect existing saved responses, empty/refill guidance and internal inspection
help. Setup, actual draws/refills, skipped worms, Thumper exclusion, privacy and
JSON/rendering checks accompany independent review and private final evidence.
No schema, game action, AI strategy or mode/publication gate changed.
## 21 September 2026 — public force counter inspection
Every player now has **Inspect forces**, with enlarged diagrams, special subsets,