connor / loot

connor/loot

Changes touching this path

  • agent-host: the agent host for hosted agents (ADR 0119 §2) in agent-host/, deployed and never published: a runtime-neutral core running the SDK tools over connectForge with the forge the key line names; one HostedAgent Durable Object per agent, ids from one function, keeping its pending change under an 8 MiB cap in values under 2 MB with a 7-day idle TTL by one alarm, never the key; a Census object counting active agents a month; a plain MCP endpoint at /<owner key>/<repo> on @modelcontextprotocol/server 2.3.1 serving 2026-07-28 and stateless 2025 initialize, with a loopback-only test credential the deployed entry never reaches; the SDK gains pendingState() and connectForge({ pending }), and refuses past 16 MiB a whole object that rode an agent head read; the sdk gate checks agent-host after the SDK and mcp/ (ntroovvq) 893040d7 · dbf3dbe6…
  • 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…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
  • 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
  • agent host: every request to forge.loot.build carries the Worker secret FORGE_AGENT_HOST_SECRET in the Loot-Agent-Host header, so the forge's nginx counts hosted agents under the agent host's own ceiling rather than per Cloudflare address (scripts db5fd5e: a map on the header empties the per-address key and nginx clears it before the forge; the agent host held to 4 in flight, half the forge's Postgres pool; per address 20 r/s burst 120, 20 in flight; nginx's 429 with Retry-After); a key line naming another forge connects without it; HttpRelayTransport takes headers sent with every request; ADR 0119 §4 as built; the secret added to lqrovzxp's list (twsvnxsy) e6e45aab · dbf3dbe6…diff
  • agent host OAuth, ADR 0119 §3: workers-oauth-provider 1.2.3 pinned, built per request for the one connector URL a request names (its resource, or its grant's), with CIMD and DCR, PKCE S256, iss returned, the 401 naming the connector's path-suffixed metadata, and claude.ai's, ChatGPT's and loopback callbacks taken; /authorize mints the key and keeps the connection in its own Durable Object under an opaque single-use id, the key line sealed under a key the starting browser holds in a __Host- cookie; GET /consent/<id> answers the page with CORS for the forge app and 404 when unknown, answered or expired; /consent/<id>/done completes only once /agents/self, signed with the minted seed, shows the agent live and hosted on that repo, with the registering key as the grant's user and the key line in its props; grants last 30 days unused and slide on refresh; one grant is one agent: the forge gains /agents/retire-self, an agent retiring itself through its row alone, signed once at /done and kept in the agent's object, and sent when a new connection supersedes the grant, the client revokes it, the forge answers the agent's row 403 after a refused call, or the object's alarm finds the grant lapsed or never completed; every forge request carries Loot-Agent-Host; ADR 0119 §3 as built, ADR 0111 and CONTEXT.md amended; oauth.test.ts gated (13), oauth.behavior.test.ts under workerd against loot-forge --dev with Claude Code's real CIMD document (9), e2e 9/9, the forge's agent tests 18; lvvwqxsr stays open for the live claude.ai and ChatGPT run, its comment naming what that needs (lvvwqxsr) 031612f4 · dbf3dbe6…diff
  • the agent host's KV namespace is named by id and its deploy asks nothing: deploy-worker.js mints its own token, sets the Worker secret in the upload and stops at Workers Paid, and the artifact cache purge reaches dl.loot.build (rszokouz) bd0c9c28 · 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.