Files
amethyst/commonsUI
Claude debf361f2b feat: a card that prices a bag's search before it spends anything
The last layer of the region-bag work. A kind 33330 in a feed now renders
a card that has already read its hint and says what the search costs:
"Hidden in a box of 4096 regions", or that the box is out of reach. The
quote is three subtractions on two tags, so it is free while the row
composes, and a box past the caps never becomes a button at all — §7.7
lets a hider pick the difficulty, and a bag can carry a gap-30 hint
precisely to burn a day of a reader's battery.

The plan asked for the Android cost to be measured before any number was
quoted in the UI. What ships measures it at the tap, on the device that
is about to pay: the box's own base region is derived and timed, and only
then is the rest committed to. That candidate is never wasted — a gap-0
hint names exactly it — and the estimate deliberately over-quotes, since
the first candidate carries three axis roots that every later one reuses.

Every sweep is a tap, including the gap-0 hint §7.7 itself calls "a
destination the seeker can compute or walk to directly, not a search".
A reader who learned that some bags open themselves would have learned an
expectation a hostile bag could hide inside.

Items render through the cards that already exist: a 3330 shard through
SnoObjectCard, a kind 1 as its text, anything else named and skipped.
The attribution follows §7.6 rather than intuition — placement belongs to
the bag's author, authorship only to a signed item's own pubkey — so an
unsigned item says its author is a claim instead of borrowing either name.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JwXApJjoZYtkD3sPRWbPNa
2026-09-23 02:33:03 +00:00
..