| context shop: Shop | Context object | Shop domain root owning three initial priced items (125, 250, 375 cents) |
| context ledger: Ledger | Context object | Ledger domain root recording Money entries and raw byte notes |
| enum Currency | USD | EUR | Currency enumeration passed across the host boundary as member spelling strings |
| interface Adjuster(Money) -> void | SAM interface | Rule entry interface for in-place item adjustment (case 067) |
| interface Score(Money) -> int | SAM interface | Rule entry interface for @item and @total host-dispatched scoring (cases 068-069) |
| fn fee(int) -> int | Host function | Pure host fee computation helper |
| fn money(int) -> Money | Host function / conversion | Construct a Money handle in signed int64 cents (also declared int -> Money conversion) |
| fn money(float) -> Money | Host function overload | Construct a Money handle from finite currency units rounded half away from zero to cents |
| fn host_null() -> Money | Host function | Return a typed null Money sentinel handle for boundary verification |
| fn sample_tmp() -> string | Host function | Return the isolated SAMPLE_TMP scratch directory path |
| method Money.amount() -> int | Host method | Return signed int64 cents stored in this Money handle |
| method Money.currency() -> Currency | Host method | Return the Currency enum member (such as USD) for this Money handle |
| method Money.set(int) -> Money | Host method (returns: self) | Update cents in place and return the same Money receiver handle |
| method Money.plus(Money) -> Money | Operator + | Allocate a Money handle with wrapped int64 sum of cents |
| method Money.minus(Money) -> Money | Operator - | Allocate a Money handle with wrapped int64 difference of cents |
| method Money.times(int) -> Money | Operator * | Allocate a Money handle with wrapped int64 product of cents |
| method Money.neg() -> Money | Unary operator - | Allocate a Money handle with wrapped int64 negated cents |
| method Shop.items() -> Items | Host method | Return the shop Items collection handle |
| method Shop.total() -> Money | Host method | Return a Money handle with the sum of all current shop items |
| method Items.len() -> int | Collection protocol | Return item count to enable for (item in shop.items()) loops |
| method Items.at(int) -> Money | Collection protocol | Return the existing Money handle at index preserving pointer/handle identity |
| method Ledger.record(Money) -> Ledger | Host method (returns: self) | Append a Money amount to the ledger and return the Ledger receiver |
| method Ledger.note(string) -> void | Host method | Append a raw byte string note to the ledger |
| method Ledger.balance() -> Money | Host method | Return the current ledger balance as a Money handle |
| method Ledger.count() -> int | Host method | Return the number of recorded ledger entries |