Add Charity and Revival resource practice

Expand the internal introduction to eleven lessons and nine independent Basic exercises. Charity shows the ordinary top-up to two spice and prevents duplicate claims. Revival lets Atreides, Emperor and Fremen return ordinary forces in batches and revive an eligible leader using the same spice balance. Reuse production charity and revival calculations; only narrow the leader-options TypeScript signature, with no live rules or AI strategy changes.

Version 5 practice saves retain all earlier lesson identities and accepted choices. Replay a bounded, validated history to reconstruct spice, Tanks, reserves, leader custody and turn allowances. Cover first-cycle, surviving-leader and repeat-death rosters, cumulative free allowances, paid returns, the three-force cap, separate leader allowance and unaffordable choices. Seven new tests compare real engine actions, immutable inputs, migration and impossible-save rejection.

Independent review found no material issues. Types, lint, 4941 offline tests and production build passed on stable final source. Browser checks confirm previous alliance migration, keyboard Charity, shared revival spending, refreshed force/leader outcomes, roster restrictions, faction free rates, cap rejection and leader inspection. At390px all observed new controls fit, with 44px or taller targets. Screenshot capture remains unavailable; DOM bounds are narrower evidence. The full curriculum, faction/expansion teaching and rules/publication gates remain incomplete.

Reused the running server. A stale development import for the newly-created file cleared through import-graph invalidation and reload without restarting. All 1337 rooms, 2805 seats and existing recovery, entry, handover, delegation and migration rows remain unchanged. SQLite integrity and foreign keys pass. No database migration/reset, automation, usage check or AI calibration. HTTP/auth/persistence source is unchanged; the required offline suite includes recovery checks and no broad HTTP suite was rerun.

Private evidence: 20260921-resource-practice.
Verified source tree: 40e207a5d46f53501a9ec8f77a8b48a5e4f0b3d67278bf670b1e53050770a40b
This commit is contained in:
Quintine committed 2026-09-21 08:22:06 +10:00
1 parent c4ff75a56d
commit 67e429e32f
16 files changed
+848 -56

No files matched your search

+13
View File
@@ -1,5 +1,18 @@
# Dune implementation status
## 21 September 2026 — Charity and Revival practice
The [introduction](INTERACTIVE_INTRODUCTION.md) expands to eleven lessons and nine
Basic examples. Charity teaches the top-up to two spice; Revival teaches shared
free allowances, paid force returns, the ordinary cap, leader eligibility and
separate leader/force limits. Existing production calculations supply the costs
and choices; a legal saved action history preserves cumulative spending and custody.
All previous lesson identities and outcomes migrate to version 5. No live AI
strategy or rules mode changes. Focused engine comparisons, independent review,
browser controls and source-bound checks/preservation/Git evidence belong to the
private checkpoint. Duke revival/loans retain their existing unresolved custody
boundaries; the full curriculum and game remain unfinished.
## 21 September 2026 — Interactive Nexus alliance practice
The [introduction](INTERACTIVE_INTRODUCTION.md) now connects nine lessons and seven