connor / loot

connor/loot

Changes touching this path

  • SDK: extract deep WorkingOverlay both LootRepo backends compose (#429) Both LootRepo adapters shared only the interface — the capture-first pending-change behaviour (Pending type, overlay/message/guard fields, the added/modified/removed ternary, the two push preconditions, the guard union) was copied into RelayRepo and PhysicalRepo. Extract it once into a pure, synchronous WorkingOverlay<P>: RelayRepo composes WorkingOverlay<Uint8Array>, PhysicalRepo composes WorkingOverlay<string> (abs path). status/diff become one-liners over classify + message; push walks entries() to compose its own change. Relay's client-side visibility resolution + GuardError enforcement and the private keyring stay in the relay adapter. classify(committed) is pure and unit-tested with hand-built inputs (13 tests, no relay, no binary). CONTEXT.md gains the SDK-tier Working overlay entry linking [[Working change]]. SDK suite 45 green (32 pre-existing + 13 new). 82ee8e52 · dbf3dbe6…
  • SDK: restore OverlayEntry as a discriminated union (#429 follow-up) The #429 extraction flattened repo.ts's tight put|remove union into a single shape with optional payload, which regressed the fold site to a non-null assertion (builder.put(path, pending.payload!, …)). Make OverlayEntry<P> a discriminated union again so the push loop narrows on kind and reads payload without the `!`. Pure type change; tsc clean, 45 SDK tests green. 4e54101b · dbf3dbe6…diff
  • site and sdk production comments cut by 71% to the docs/agents/writing.md standard: history, ticket numbers, rosters and ADR retellings removed, security reasoning, browser quirks and directives kept; comment-only, the TypeScript AST without comments identical, built bundles unchanged but for the build stamp (yrkykmsn) d8c01375 · dbf3dbe6…diff
  • docs/agents/writing.md is the standard for comments and docs: a comment says only the why the code cannot, rg and loot log answer who-calls, which-members and when-changed better than a cached comment, and history, ticket numbers, rosters and emphasis are deleted on sight. AGENTS.md links it. CONTEXT.md, AGENTS.md, docs/agents, the skills, specs, READMEs, research and evidence are cut by about 65% to it, every cited heading, § number and test-pinned string kept; files the yrkykmsn ticket (yrkykmsn) 8e3c7b83 · dbf3dbe6…diff
  • the ADRs are cut by 71% to the docs/agents/writing.md shape: Context, Decision and Consequences in about a page each, amendments folded into the decision they amend, function tours, test counts, sweeps and ticket archaeology removed; every title, Status section, cited § and numbered decision kept. ADR 0103 folds in the vmusyoxz, snmzospn and xrqwmovz amendments and restores the operator rulings of 3e1a10ce that the loot-core comment land reverted (yrkykmsn) 0fc947d9 · dbf3dbe6…diff
  • in-session undo on the SDK's pending change: WorkingOverlay gains discard(path?), checkpoint() and rollback(id), restoring edits, removes, message and guard, with a push clearing every checkpoint and ids never reused so a pre-push id is NotFoundError; the in-memory backend implements a new PendingUndo interface, exported as a type, which a checkout does not since its pending change is its disk; two overlay tests, each of three mutations red (oyynvwvz) cf044844 · dbf3dbe6…diff
  • connectForge, the SDK's forge backend (ADR 0112 §5): reads follow the forge's one head over signed bounded fetches, refusing several heads by name, after applying the session's own standing self-grants from the mailbox, and a pending edit reads as itself; push builds in the WASM core's new change.rs against the head read before the edits, sealing each path by the head's .lootattributes (no visibility from the caller, publishing only on allowReveal, relative one-line paths), stows, deposits self-grants and ingests through the settling loop lifted from publishTicket into ingest.ts, a moved head refusing as ConflictError before anything is sent and a 401 or 403 at /ingest as AuthError naming propose(); propose stows the change with its objects, claims it with the .lootpipeline kinds through Identity.proposalClaim, deposits keys to itself and Internal ones to the owner, never calls /ingest, and revises its earlier proposal under the same change id; loot_codec::proposal_wire::encode_claim takes the claim encoder from loot-net, whose bytes are unchanged, and the visibility census names the one new name match; a behaviour suite against loot-forge --dev and the release CLI, red under each of three mutations; SDK 93 of 93; propose end to end owed to urrqturu (nywvmxll) 96baef90 · 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
  • 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.