Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 162 to 163

Compare

+15 −1 in 1 place
Lines 143–163 at 163 (were 143–149 at 162)
143143 // One operation changes an AVL path plus rotation neighbors, not history.
144144 // Keep only those decoded records and persist each final record once.
145145 const changed = new Map<number, SequenceNode>();
146− const get = (id: number): SequenceNode => changed.get(id) ?? this.get(map, id);
146+ // The immutable input map is fixed for this batch. Cache only its bounded reads;
147+ // changed nodes always take precedence and the cache never survives a transaction.
148+ const original = new Map<number, SequenceNode>();
149+ let originalBytes = 0;
150+ const get = (id: number): SequenceNode => {
151+ const found = changed.get(id) ?? original.get(id);
152+ if (found) return found;
153+ const node = this.get(map, id);
154+ const bytes = 192 + node.text.length * 2;
155+ if (original.size < 256 && originalBytes + bytes <= 65536) {
156+ original.set(id, node);
157+ originalBytes += bytes;
158+ }
159+ return node;
160+ };
147161 const put = (node: SequenceNode): number => {
148162 changed.set(node.id, node);
149163 return node.id;
MCP
compare on this site's /mcp
CLI
abso diff 162 163 src/engine/experimental/projection-sequence.ts --json
JSON
/christopher/abso-core/compare/162..163?file=src%2Fengine%2Fexperimental%2Fprojection-sequence.ts&format=json