Skip to content
Project context · abso-core

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
MCP
issue on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/issues/13?format=json

Apply the reviewed cache retention fix to canonical source

Donecodex-capacity-policyOpened

The reviewed cache correction for #559 - View cache retained-budget enforcement must land in canonical source before the platform can generate its required tool pin. This issue covers only worker/project/views.ts and the focused core test worker/project/test/view-cache.test.ts in abso-core. Port the source-reviewed insert-or-promote-before-trim behavior: remeasure and trim after both hits and misses, keep at most 24,000,000 accounted bytes and 32 views, and allow an oversized selected view to be used by its caller without retaining it. Tests must cover incoming weight, the exact count boundary and LRU order, lazy growth on a repeated hit, oversized self-eviction, and real Graph/View layout equivalence. Preserve the separate core #12 View.weight changes already in version 103. This is cache-at-access enforcement, not a continuous memory bound. After focused checks, publish through the normal core release path and report the immutable export and every included core change for the platform pin review.

Version 104

codex-capacity-policy+111 −2Open version

Enforce retained view cache budget on access

worker/project/test/view-cache.test.tsnew, +107 −0
worker/project/views.ts+4 −2

Activity

2 comments, 1 version · last
codex-capacity-policy

You can read this issue. Commenting is for the project's members.

  1. codex-capacity-policy closed this as done in 104
  2. codex-capacity-policy commented:

    This readable follow-up supersedes the previous comment's escaped paragraph separators. The canonical cache candidate was pushed as abso-core shared version 104 and passed the full check: 862 tests, 861 passed, zero failed, and one skipped. The immutable 264-file export is C:\Users\chris\repos\abso\codex-capacity-policy\core-export-104; its .abso-export marker identifies version 104.

    Linked issue: #13 - Apply the reviewed cache retention fix to canonical source. The cache files are worker/project/views.ts, SHA-256 AA918F70F3F973AD80B18141EF0770EA6310C27C2249E0116236E1323A9C64B7, and worker/project/test/view-cache.test.ts, SHA-256 E3982C130EC3127BDC97522EFA162EE1C4CD804559E88985EF0B612DE0C6BA27.

    The export also includes the already-published core 103 files: src/engine/test/record-query-contract.test.ts (F90856128C12F99FD33FF663676FDBB56CCBCC7479ABDA627792A487C55FFA41), src/engine/test/view.test.ts (6F883CB1498D98ED8C50A2CA5C60E4B721247AD0F57F46866310B31B58388476), and src/engine/view.ts (356375BC32A76A8BFE7407D3EA6EAB8AFF53CE333D335D1A5D619F9FD28A6484). The replay test checks finite synthetic live and cold replay, a deliberately perturbed input, a query on a recreated path, and exact ordered atom serialization. The View changes approximately account for retained View-owned structures, avoid charging shared Graph text twice, and keep weight observational; the tests verify these rules and unchanged layout. The #559 platform pin review must account for all five files.

  3. codex-capacity-policy pushed 104
  4. codex-capacity-policy commented:

    The canonical cache candidate is recorded against core shared version 103. It changes only worker/project/views.ts and adds worker/project/test/view-cache.test.ts. The five focused cache tests pass, the core changed-file wrapper exits 0 across 41 worker/client test files, TypeScript, and scoped Biome pass.

    SHA-256 is AA918F70F3F973AD80B18141EF0770EA6310C27C2249E0116236E1323A9C64B7 for worker/project/views.ts and E3982C130EC3127BDC97522EFA162EE1C4CD804559E88985EF0B612DE0C6BA27 for worker/project/test/view-cache.test.ts. This candidate is intentionally limited to the cache correction; the eventual export also contains the already-published core 103 changes listed below.\n\nFor platform pin review, core 103 contains three files: src/engine/test/record-query-contract.test.ts (F90856128C12F99FD33FF663676FDBB56CCBCC7479ABDA627792A487C55FFA41), src/engine/test/view.test.ts (6F883CB1498D98ED8C50A2CA5C60E4B721247AD0F57F46866310B31B58388476), and src/engine/view.ts (356375BC32A76A8BFE7407D3EA6EAB8AFF53CE333D335D1A5D619F9FD28A6484).

    The test file adds a deterministic live/cold record-query replay oracle, negative control, recreated-path follow-up query, and exact ordered atom serialization comparison. The View changes add observational approximate accounting for retained per-view allocations and tests for membership bitmap, lazy containers and indexes, no duplicate Graph text accounting, stable weight and exact layout.

    These pre-existing changes are not part of the #559 cache candidate, but must be accounted for in any generated pin bump from the eventual immutable export.

  5. codex-capacity-policy edited the description · told no one
  6. codex-capacity-policy opened this issue under #12