connor / loot

connor/loot

Changes touching this path

  • agent host: what a hosted agent costs, measured under workerd and priced at Cloudflare's published rates (docs/research/hosted-agent-cost.md, from agent-host/test/cost.behavior.test.ts and its metered entry): idle draws nothing, an all-day agent $0.27-0.57 a month at list rates and $0 within Workers Paid's inclusions, a never-idle one $40-99; Pro's hosted_agents stays 5, the 8 MiB cap and 7-day TTL stand (ADR 0119 §2 and §4); files oxupvnzx, utrnsmmq and qqqvlorn (lovwlmll) 0fd8fec2 · dbf3dbe6…
  • sdk: a forge session reads the head once per operation and frees the bundles it parses (utrnsmmq) 4b9a4cdb · dbf3dbe6…diff
  • agent host: a read-only call writes no storage row: the HostedAgent re-arms its alarm and the used timestamp only when the alarm is more than a day short of the 7-day TTL (REARM_MS), so a pending change outlives its last call by 6 to 7 days and a call past it still finds nothing, and KeptPending.save writes nothing when the index equals the stored one; the cost suite asserts loot_status back to back and the gapped reads write 0 rows and the session's only writing read is the diff that names the head its first writes stand on, the session mix writes 0.49 rows a call (was 3.2), the never-idle bill falls from $40-99 to $18-29 a month and five all-day agents from $2.87 (66%) to $2.46 (57%) in docs/research/hosted-agent-cost.md and ADR 0119 §2 and §4; nptsyzum's budget becomes about 53,000 calls a month; .lootignore drops the cost entry's .wrangler; cost 6/6, e2e 8/8, unit 14/14 (qqqvlorn) dc515cab · dbf3dbe6…diff
  • agent host: an awake HostedAgent keeps one forge session between calls: AgentSession in the runtime-neutral core holds the connected session in memory, never stored, and opens one again from the store after the object sleeps, for another key line, after an unauthorized answer with no why, a transport or setup refusal, an overlay_full, or the TTL's delete; every call still reads the head once, so a moved head is seen and a retired agent refused (e2e); later calls take 46 B from the forge instead of about 580 KB and the session 344 KB instead of 73 MB, 0.7 s in the object instead of 13.1 s; the research note and ADR 0119 §2 and §4 re-price utrnsmmq, qqqvlorn and this together: an all-day agent $0.05 a month, five 6% of Pro's net, never idle $28-61 at a 100 ms forge and $69-155 at 30 ms, now set by the forge's round trip; ADR 0119 §3 says the session is held in memory while awake; nptsyzum's budget becomes about 500,000 calls a month; files rkuvqmsv; cost 6/6, e2e 9/9, unit 19/19 (stvwvrur) d41d0e08 · dbf3dbe6…diff
  • sdk: a session taking up a pending change reads on from the base it fetched, so a wake downloads the head once (rkuvqmsv) a3ad1daa · dbf3dbe6…diff
  • agent host: an awake object's heap is flat per call, measured under Node: heap.behavior.test.ts runs the front door, AgentSession and KeptPending against loot-forge --dev over 12,000 kept-session calls, checkpoints and wakes, collecting before each sample and diffing heap snapshots; the SDK's privateKeyring held about 100 B a call, so AgentSession now serves at most 1,000 calls (SESSION_CALLS) before opening a session from the store, after which 10,000 calls grow 33-39 B a call within noise and the suite asserts under 256 KiB of program objects (631 KiB without it); checkpoints grow 2.8 KB each without bound, filed as ntlpstnt for the SDK with the launch waiting on it, and the keyring as qozrzmpp; wakes are flat; workerd's isolate heap, read over the inspector, holds 9.2 MiB while its RSS grows, so that growth is workerd's own; the research note gains The heap over hours, ADR 0119 §2 and §3 say a session serves at most 1,000 calls; the cost mix moves to test/session-mix.ts; heap 3/3, e2e 9/9, cost 6/6, unit 20/20 (uwmzrowr) 190c6cc3 · dbf3dbe6…diff
  • sdk: a long agent session stays bounded, its newest 100 checkpoints kept and cleared by a propose, and no key of what it proposed kept (ntlpstnt, qozrzmpp) bab20321 · dbf3dbe6…diff

Renames are not followed. loot's tree maps a path to an address, so a rename is a delete and an add. This list is the history of the name, not of the bytes.