You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
audit-engine: published entity map leaves ~3 KB for the graph (page-index limit 128000 vs cap 131072) #2433
bugSomething isn't workingenginepackages/audit-engine, crawler, page-classifierin-progressclaimed by a lane; see ops/state/claims.tsvsize: Shamsterwheel
In packages/audit-engine/src/publish-cap.ts (~line 1344), the published entity map gets maxBytes: 131072, but ENTITY_MAP_PUBLISH_LIMITS.maxPageIndexBytes stays at 128,000. The page index takes its share first (entity-map-project.ts ~497), so the graph itself gets about 3 KB.
A 25-page map with 3 entities per page projects to 13 nodes and 6 edges at the 640 KB limit. Under the production cap it is cut to 4 nodes and 1 edge, even though the whole map is only 5.6 KB. Found while reviewing #2432.
Acceptance Criteria
The page-index budget is a share of the entity-map byte cap (or is checked against it), so the graph always keeps a meaningful budget when the cap binds.
A map that fits the cap whole (e.g. the 25-page, 3-entities-per-page case, ~5.6 KB) publishes with all its nodes and edges.
A test covers that case and fails with the current limits.
bugSomething isn't workingenginepackages/audit-engine, crawler, page-classifierin-progressclaimed by a lane; see ops/state/claims.tsvsize: Shamsterwheel
Activity