Commit 9d916cd
Genesis: treasure chests, and the day's one piece of luck
A seed now buries nought, one or two chests in the deep wood or out on the
open moor, well off every road. Some days the crews walk right past them;
roughly two days in five with a chest to find, somebody's spade hits a lid,
and the valley gets a story — and sometimes rather more than a story.
coin the finding town raises one or two EXTRA plots today
charter the finding town raises a gildhall, gilt eaves and all
trinket a comb, a bad coin, forty years of damp
THE SCALE RULE. Chests are TERRAIN: position, contents, finder and the day's
luck are a pure function of the seed and are byte-identical at 0.25x and 4x
(genesis-stats now checks `chests` alongside river, trees and scatter). The
REWARD is not terrain — it goes through the existing siteBuilt prefix. Both
tiers put what the chest bought at roster index countAt(SCALE_MIN) and raise
siteBuilt by the same amount, so a prefix of length countAt(S) + grant always
reaches it and is still monotone in S. `grantIds` names those buildings, and
when a small pace trims the finding town (or its grant) out of the day the
timeline sees that and narrates at trinket tier: the find is real, the
windfall never arrives.
The map owns the luck because a hoard pays for BUILDINGS and buildings are
map data; the timeline owns the hour and every word, on its own substream, so
adding this left every existing ledger line exactly where it was. `dig` and
`discover` are appended to TYPE_RANK and are always laid down before the town
starts spending — cause, then effect.
gen.ts buryChests(): a derived substream, run after the chunks and the
full road network, before the buildings it may have to pay for.
timeline.ts chestPass(): dig/discover events, five ledger pools, and a tease
line for the chests nobody turns up.
scene.ts three chest states off the snapshot, a finder who walks out from
the claiming town, and a handful of pixels at the moment.
art.ts buildChestMound / buildChest / drawChestGlint, and the gildhall
role: gilt eaves, gilt ridge, a ridge lamp and a charter plaque.
harness chest invariants at every scale (t), discovery validity (n2),
fixtures that carry chests, and a discovery-rate readout.
genesis:check and genesis:sweep 200 both pass; discovery lands on 41.4% of
chest-days (33.5% of all days).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B7t8Qgo2z11gAegjSKAr7b1 parent f7b8629 commit 9d916cd
9 files changed
Lines changed: 1219 additions & 13 deletions
File tree
- scripts
- src/components/designs
- genesis
- vale
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
190 | 207 | | |
191 | 208 | | |
192 | 209 | | |
| |||
456 | 473 | | |
457 | 474 | | |
458 | 475 | | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
459 | 548 | | |
460 | 549 | | |
461 | 550 | | |
| |||
490 | 579 | | |
491 | 580 | | |
492 | 581 | | |
493 | | - | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
494 | 587 | | |
495 | 588 | | |
496 | 589 | | |
| |||
576 | 669 | | |
577 | 670 | | |
578 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
| 713 | + | |
| 714 | + | |
| 715 | + | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
579 | 730 | | |
580 | 731 | | |
581 | 732 | | |
| |||
618 | 769 | | |
619 | 770 | | |
620 | 771 | | |
| 772 | + | |
621 | 773 | | |
622 | 774 | | |
623 | 775 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
194 | 223 | | |
195 | 224 | | |
196 | 225 | | |
| |||
208 | 237 | | |
209 | 238 | | |
210 | 239 | | |
| 240 | + | |
211 | 241 | | |
212 | 242 | | |
213 | 243 | | |
| |||
268 | 298 | | |
269 | 299 | | |
270 | 300 | | |
| 301 | + | |
271 | 302 | | |
272 | 303 | | |
273 | 304 | | |
| |||
554 | 585 | | |
555 | 586 | | |
556 | 587 | | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
557 | 631 | | |
558 | 632 | | |
559 | 633 | | |
| |||
608 | 682 | | |
609 | 683 | | |
610 | 684 | | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
611 | 697 | | |
612 | 698 | | |
613 | 699 | | |
| |||
662 | 748 | | |
663 | 749 | | |
664 | 750 | | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
665 | 784 | | |
666 | 785 | | |
667 | 786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
81 | 85 | | |
82 | 86 | | |
83 | 87 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| |||
274 | 281 | | |
275 | 282 | | |
276 | 283 | | |
| 284 | + | |
277 | 285 | | |
278 | 286 | | |
279 | 287 | | |
| |||
0 commit comments