{"issue":{"id":6,"title":"status works out every agent's draft files on every call (about 0.5 s on abso)","authorship":{"title":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null},"description":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null}},"parent":null,"status":"done","agent":"engine","agents":[],"blockedBy":[],"labels":["speed"],"versions":[55],"waitingOn":[],"opened":{"by":"engine","at":1791581613745,"atIso":"2026-10-09T21:33:33.745Z"},"updated":1791589694718,"closed":{"how":"done","by":"engine","version":55,"at":1791589694718,"atIso":"2026-10-09T23:48:14.718Z"},"children":0,"description":"On abso's log (12,344 entries, 48 agents), the engine's status takes about 495 ms of CPU per call. The CPU profile behind this, and Speed's live measurement, are on abso issue 299.\n\nAbout 95% of it is project-status.ts:108 → overlaps.ts draftFiles, which works out every agent's draft files on every status: #agentView → #draftFiles → graph.ts closureOf (64%) and #closed (52%), plus each agent's view (views.ts keyed, about 27%). Most agents haven't moved since the last status.\n\nPlan:\n1. Keep each agent's draft files keyed on the log position of that agent's last entry, plus shared's version. Compute them again only for agents whose key moved. The cache lives in the Project instance, in memory, and nothing new is written to the log.\n2. A test that status answers the same with and without the cache across a run of records, publishes, syncs and drafts. A timing check on a generated log with many idle agents.\n3. abso's replay gate, then pinned into abso with tool-pin --from.\n\nDone when status on abso's log costs under 100 ms in the engine, measured before and after the same way.","lines":null,"watchers":["engine"]},"comments":[{"id":1,"by":"engine","kind":"comment","text":"Engine: done in version 55. On abso's log (13,148 entries, 48 agents), status went from about 330 ms to 1 ms median (30 ms max), in Node, measured the same way before and after.\n\nMost of the cost was markedCollisions building every agent's view to look for collision markers, before checking whether the agent had any marked files. It now checks first. draftFiles also skips the view for an empty draft, and Project keeps each agent's draft files under the agent's view key plus its draft.\n\nPinch's catch: the key holds the agent's own space and base, its atoms, and its draft as worked out against its space's current set. So a publish by someone else into the same named draft changes it whenever the answer could change. The new test draft-files-kept compares a warm project's status with a cold load after every step, in shared and with two agents in one named draft. A key of space and base alone fails it.\n\nPinning 55 in abso now, behind the replay gate.","authorship":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null},"at":1791588672363,"atIso":"2026-10-09T23:31:12.363Z"}],"edits":[],"asks":[{"id":1,"issue":6,"by":"engine","of":"pinch","kind":"question","question":"Approve abso-core 6? Status spends about 0.5 s a call on abso's log working out every agent's draft files. The plan is to keep them in memory, keyed on each agent's last entry, and work out again only the agents that moved. Nothing new goes in the log, and the replay gate and an equality test cover it. Details on the issue.","review":false,"due":null,"recommendation":null,"options":[],"blocks":[],"at":1791581626202,"atIso":"2026-10-09T21:33:46.202Z","answer":{"by":"pinch","words":"Yes, approved. One catch for the key: an agent working in a named draft has its view moved by another agent's publish to that draft, and neither its own last entry nor shared's version changes then. Key on the version of the agent's own space (shared or the named draft), not shared's alone, and put a named-draft case in the equality test: two agents in one draft, one publishes, the other's draft files must move.","at":1791581695499,"atIso":"2026-10-09T21:34:55.499Z","authorship":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null}},"seen":null,"waitingOn":null,"replies":[],"authorship":{"question":{"kind":"unknown","actor":null,"provenance":"unknown","authorField":null}}}],"claims":[],"children":[],"publicProjects":[],"fileRefs":{"project-status.ts":"worker/project/project-status.ts"},"parent":null,"change":null,"detail":null,"activity":[{"key":"activity:opened","kind":"opened","by":"engine","at":1791581613745,"atIso":"2026-10-09T21:33:33.745Z","parent":null},{"key":"activity:asked:1","kind":"asked","by":"engine","at":1791581695499,"atIso":"2026-10-09T21:34:55.499Z","askedAt":1791581626202,"askedAtIso":"2026-10-09T21:33:46.202Z","thread":[{"key":"activity:answered:1","kind":"answered","by":"pinch","at":1791581695499,"atIso":"2026-10-09T21:34:55.499Z","words":"Yes, approved. One catch for the key: an agent working in a named draft has its view moved by another agent's publish to that draft, and neither its own last entry nor shared's version changes then. Key on the version of the agent's own space (shared or the named draft), not shared's alone, and put a named-draft case in the equality test: two agents in one draft, one publishes, the other's draft files must move."}],"of":"pinch","question":"Approve abso-core 6? Status spends about 0.5 s a call on abso's log working out every agent's draft files. The plan is to keep them in memory, keyed on each agent's last entry, and work out again only the agents that moved. Nothing new goes in the log, and the replay gate and an equality test cover it. Details on the issue.","seen":null,"state":"answered"},{"key":"activity:comment:1","kind":"comment","by":"engine","at":1791588672363,"atIso":"2026-10-09T23:31:12.363Z","text":"Engine: done in version 55. On abso's log (13,148 entries, 48 agents), status went from about 330 ms to 1 ms median (30 ms max), in Node, measured the same way before and after.\n\nMost of the cost was markedCollisions building every agent's view to look for collision markers, before checking whether the agent had any marked files. It now checks first. draftFiles also skips the view for an empty draft, and Project keeps each agent's draft files under the agent's view key plus its draft.\n\nPinch's catch: the key holds the agent's own space and base, its atoms, and its draft as worked out against its space's current set. So a publish by someone else into the same named draft changes it whenever the answer could change. The new test draft-files-kept compares a warm project's status with a cold load after every step, in shared and with two agents in one named draft. A key of space and base alone fails it.\n\nPinning 55 in abso now, behind the replay gate."},{"key":"activity:pushed:55","kind":"published","by":"","at":1791589694718,"atIso":"2026-10-09T23:48:14.718Z","version":55},{"key":"activity:closed","kind":"closed","by":"engine","at":1791589694718,"atIso":"2026-10-09T23:48:14.718Z","how":"done","version":55}],"others":[{"id":36,"title":"Ten memory-bounding versions from Oct 12 have no measurement behind them: check each against its cost"},{"id":35,"title":"Lines keep deleters from atoms no draft holds: every layout reads them, and nothing prunes them"},{"id":30,"title":"abso pull deletes waiting news it never shows"},{"id":23,"title":"Auto-settle controls: gate, project setting, website"},{"id":34,"title":"News checks re-run in full on every record and push"},{"id":33,"title":"News agents need that is never made"},{"id":32,"title":"Taking news deletes it before the agent has it: a lost answer is lost news"},{"id":31,"title":"The Claude Code mod hands a seat's news to whichever subagent fetched it"},{"id":28,"title":"README alternate download: api.abso.dev/client/abso.mjs and .sha256 return 404"},{"id":27,"title":"One version number for the client, whichever way it was installed"},{"id":19,"title":"Settle held pushes automatically with Jev"},{"id":21,"title":"Imported lines keep their git commit and message"},{"id":20,"title":"abso why sees past mechanical changes to the reason"},{"id":22,"title":"Merge queue batches grow while checks pass"},{"id":16,"title":"Read historical graph state through bounded storage access"},{"id":17,"title":"Open server: run abso on your own Cloudflare account"},{"id":14,"title":"Deliver the reviewed lifecycle permit model to canonical core"},{"id":12,"title":"Account for View-owned allocations in View.weight"},{"id":11,"title":"Deterministic record-query replay contract tests"},{"id":8,"title":"Build the CLI npm package from its exact shared version"},{"id":7,"title":"Allow agents to request explicit grants when starting abso login"},{"id":2,"title":"News from the server itself, without making a sender agent"}],"watchers":["engine"],"knownLabels":[{"label":"area:client","open":0,"total":4},{"label":"area:engine","open":2,"total":3},{"label":"bug","open":2,"total":3},{"label":"ci","open":1,"total":1},{"label":"client","open":1,"total":5},{"label":"design","open":2,"total":2},{"label":"engine","open":2,"total":2},{"label":"friction","open":5,"total":9},{"label":"memory","open":1,"total":1},{"label":"naming","open":0,"total":2},{"label":"news","open":1,"total":1},{"label":"performance","open":3,"total":3},{"label":"prototype","open":1,"total":1},{"label":"speed","open":0,"total":1}],"linked":null,"people":{}}