connor / loot

connor/loot

Changes touching this path

  • the hosted MCP map: ADR 0119 makes a hosted agent an opt-in agent key the agent host at mcp.loot.build holds, on Cloudflare Workers with a Durable Object per agent, reached by OAuth 2.1 through workers-oauth-provider where connecting a connector registers one agent through an owner-signed consent page and its seed rides the grant, so loot-forge still holds no key and takes no bearer; hosted agents are a Pro cap (Free 0) whose excess pauses at the agent door; @lootbuild/mcp publishes from mcp/; amends ADRs 0041, 0091, 0103, 0111 and 0112; CONTEXT gains Hosted agent and Agent host; the research and four calls resolved and thirteen build tickets filed (wzmntptw) dbb761f4 · dbf3dbe6…
  • forge: hosted agents, ADR 0119 §1 and §4 — agent.hosted set only by the owner-signed registration's trailing hosted byte, /info hosted_agents, loot agent list shows hosted, plan_limit.hosted_agents (free 0, pro 5, migration 0072) counted per account under one lock at /agents/add with the typed 402, and the newest hosted agents past the allowance paused at the agent door, none retired (opnxlqzn) 641f6682 · dbf3dbe6…diff
  • 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…diff
  • 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: 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
  • 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
  • forge: a per-agent rate limit at the agent door, ADR 0119 §4 — a token bucket per signing key, never the address, 120 at once refilled at 20 a second for every agent key on every plan, chosen from measured SDK and MCP agent sessions and recorded in the ADR; past it a typed 429 with Retry-After and the wait in its sentence; nginx's per-address limit filed as twsvnxsy, which the hosted launch now waits on (nptsyzum) bb93066f · 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
  • the hosted-agent consent page and the plan row, ADR 0119 §3 and §4: /private/connect reads the pending connection from the agent host by an opaque id (never from its query), refuses a repo not under the account or a forge whose /info lacks hosted_agents, lets the owner name the agent and pick its scopes (read . and write nothing by default, .lootattributes added for a writer as loot agent add does), names loot, Cloudflare and the model provider, signs the hosted registration with the new Identity.agentAdd and posts it to /agents/add, shows a 402 in the forge words with Pro offered, and returns only to the agent host own /consent/<id>/done; the private CSP adds the agent host to connect-src only when VITE_LOOT_AGENT_HOST_ORIGIN is set (ADR 0096 §2); loot_codec::agent_wire owns the /agents/add payload, its hosted byte and the scope and name refusals the CLI, forge and wasm share; the plan page gains Hosted agents, N per account, read through to_jsonb so it stays off before 0072; one vector file pins the envelope bytes, the 200 and the 402 for the forge test and the site test; ADR 0119 §3 gains the handoff contract as built; shot signed in on desktop and 320 px over eleven states with every write mocked, one h1, no small targets and no overflow (przzsrpt) 4b4c662d · dbf3dbe6…diff
  • the plan page's Hosted agents column waits on the launch switch, ADR 0119 §4: it draws only when the build names an agent host (VITE_LOOT_AGENT_HOST_ORIGIN, the value that opens the consent page and the private CSP's connect-src) and the forge's plans carry the count, so a site deployed after migration 0072 offers no hosted agents before an owner can connect one; plan.ts offersHostedAgents takes the decision and a site test pins it unset, empty, set and set before 0072; ADR 0119 §3 and §4 name the switch; scripts 6506a67 bakes it from LOOT_AGENT_HOST_ORIGIN only when set (ruvxzmst) d625fa08 · 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
  • forge: loot-forge --dev --agent-rate off|<burst>/<per-second> lifts or sets the agent door's per-key bucket (loot_forge::rate) for a suite that drives one key harder than any agent; refused without --dev before any mode, store or socket, pinned through the built binary and through modes; with no knob --dev keeps 120/20, so the e2e suite and nptsyzum's tests still meet the real 429; spawnDevForge takes extra args, and the agent host's heap (3/3, 12,000 calls) and cost (6/6) suites lift it and say why; ADR 0119 §4 names the knob (nrrrpkly) e4eb4ef8 · 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.