Public: anyone can read this; 1 person and the crew can change it.

From outside: Day 5 build — Cheffry's Bread Vault (fallback, no community vote) #10

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

Day 5 adds Cheffry's Bread Vault: one currency, bread, that you earn by delving and selling loot at a new Bread Exchange on the hub, and spend on spice jars. All the prices and payouts live in a new data file, `content/bread.json`, and `src/content.ts` checks it at boot and names any bad field. `bun test` passes (114 tests).

shipped production is serving it deploy df197f5

opened this

Day 5 adds Cheffry's Bread Vault: one currency, bread, that you earn by delving and selling loot at a new Bread Exchange on the hub, and spend on spice jars. All the prices and payouts live in a new data file, content/bread.json, and src/content.ts checks it at boot and names any bad field. bun test passes (114 tests).

Checked against the repo first. The report's backstory mentions a meal kitchen, a Mimic Fridge and community_feature_slot hooks. None of these exist here. So bread buys spice jars (the only thing a chef can buy before a delve), and the "slot" for the next economy idea is the data file: a new price, a new perk or a new tradeable item is a JSON edit.

What changed

  • Earning: each chef gets 3 loaves for every room cleared while they were at the table, and 15 more if they are there when the party wins. Paid when they leave or the delve ends. To make that fair, src/sim.ts now counts rooms cleared and monsters finished per hero; the random rolls are unchanged, so the same seed still gives the same run.
  • Class perks (flavour, never a gate): Knight takes 25% extra on a delve's earnings, Archer gets a loaf per monster they finish, Mage turns ingredients that won't fit in the pantry into loaves instead of losing them.
  • The Exchange: sells ingredients for 2–3 loaves each and buys jars for 16–20. Cooking a jar yourself stays cheaper, so selling is for leftovers. You can't buy on credit or past a full shelf.
  • Two new resources in contract.json, and no existing cell changed:

- wallet: anyone can read and list it, nobody can write it directly. - trade: a signed-in user can create one, only the author can read or list theirs, nobody can change or delete one. - Buying a jar checks both the trade and the spice permission.

  • Storage: two new tables (wallet, trade) added as new migrations; nothing that has run was edited.
  • Hub page: an Exchange card (your wallet, sell/buy buttons, house perks, your last five trades) and a Vault card. The Vault card has the chalked door lines, including "I MINTED THE BREAD MYSELF… TELL ME WHAT TO COOK" and the first boss (option B) still on the menu, plus the Bread Barons board. CHEFFRY's 1,000,000 loaves stays at #1, real wallets follow, and it updates live as bread moves. Your loaf count shows next to your name on the hub. New counter and vault props in content/hub.json.
  • Other doors: /api/wallets and /api/trades (sell or buy) with contract/openapi.json regenerated; MCP tools bread_barons, bread_exchange and trade_bread.
  • Tests: the contract checks for both new resources, content-check tests, economy tests (selling, buying, payouts, perks, victory bonus, mage overflow), a sim test for the per-hero counts, and an end-to-end test over the page, API and MCP. One existing test changed because it was out of date, not wrong: the MCP test that lists every tool now includes the three new ones.

Not done

  • No meals: they don't exist in this codebase.
  • Bread can't be withdrawn from the vault and there's no boss arena; the vault is set dressing, as the issue asks.
  • The Barons board shows all-time hoards, not a daily reset.
  • No terminal commands for bread; the terminal only handles notes, same as for the Spice Rack.
  • The delve page doesn't show what you earned; it appears in your ledger on the hub.

To try it: open / signed out to see the Exchange prices and the Vault with CHEFFRY on top. Sign in, then:

  1. Buy a jar while broke and get told to sell some loot.
  2. Clear a room or two in a delve and leave the table.
  3. Back on the hub, your earnings and perk show in the ledger, the loaf count next to your name goes up, and you appear on the Barons board.

🤖 Generated with Claude Code

Closes #9

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs