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 246 to 247

Compare

+14 −0 in 1 place
Lines 103–122 at 247 (were 103–108 at 246)
103103 });
104104});
105105
106+test("trim reweighs growth with no further hit and evicts until the views fit (abso Capacity)", () => {
107+ withControlledWeights((control) => {
108+ const cache = new ViewCache(new Graph());
109+ control.setIncomingWeights([10_000_000, 10_000_000]);
110+ const growing = get(cache, "growing");
111+ const newer = get(cache, "newer");
112+ // A call lays files out in the older view after the cache last weighed it, and nothing asks for it again.
113+ control.setWeight(growing, 16_000_000);
114+ cache.trim();
115+ assert.equal(get(cache, "newer"), newer);
116+ assert.notEqual(get(cache, "growing"), growing);
117+ });
118+});
106120test("an oversized view is returned but not retained", () => {
107121 withControlledWeights((control) => {
108122 const cache = new ViewCache(new Graph());
MCP
compare on this site's /mcp
CLI
abso diff 246 247 worker/project/test/view-cache.test.ts --json
JSON
/christopher/abso-core/compare/246..247?file=worker%2Fproject%2Ftest%2Fview-cache.test.ts&format=json