Cover the daily team end to end and measure keep or recruit on the race

A last Sokko TCG journey plays five days on a moved server clock: gold stars
from the daily card, a recruitment that survives reloads, a race interrupted by
a reload and finished with its boost, a full race, the team's three days and a
full reserve that turns the daily reward back into plain stardust.

scripts/simulate-team-race.mjs measures keeping against recruiting on the race
itself. inventTeam takes an optional gold reserve for it. Keeping wins 1.6
stardust per race over recruiting every day; choosing by average power adds 0.4.
The figures are in docs/equipe-du-jour.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Shinuwa 2026-12-01 14:20:05 +01:00
parent f3428b17a5
commit ba2ebfb19d
8 changed files with 324 additions and 5 deletions

View file

@ -21,6 +21,7 @@ not bugs, missing scenarios or a percentage of work remaining.
| HTTP cache policy of the delivered Node server | `tests/server-cache.test.mjs`; production E2E remains responsible for stale bundle recovery |
| Node server resilience: hostile requests, invalid Cards configuration, clean shutdown | `tests/server-robustness.test.mjs` |
| Sokko TCG ownership, recharge, idempotence, transfers, campaign codes, account deletion and backup/restore | `tests/nebula-cards.test.mjs`, `tests/nebula-cards-api.test.mjs`, then `e2e/nebula-cards.spec.js` against the delivered Node API and a temporary SQLite database |
| Sokko TCG daily team: gold stars from the daily card, recruitment surviving a reload, race interrupted by a reload, team days and a full reserve | `tests/nebula-cards-team.test.mjs` for the rules and service, then the last test of `e2e/nebula-cards.spec.js`, which moves the server clock five days ahead in reduced motion |
| Toolbox sharing by encrypted link: server caps, single use, expiry, browser quotas, encryption, send and receive under the production CSP | `tests/toolbox-shares-api.test.mjs` (real HTTP server, temporary directory), `tests/toolbox-share-crypto.test.mjs`, `tests/toolbox-share-quota.test.mjs`, then `e2e/toolbox-share.spec.js` with isolated recipient contexts and `e2e/production/toolbox-share.spec.js` |
| Shared reorder policy and module order | `e2e/grouped-reorder.spec.js`, `module-order.spec.js` |
| Toolbox creation, import/export, text exchange | `e2e/toolbox.spec.js`, `text-exchange.spec.js`; Node toolbox module tests |