Skip to content

audit-engine: published entity map leaves ~3 KB for the graph (page-index limit 128000 vs cap 131072) #2433

In progress

Description

@nc9

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.

Activity

  1. added
    bug
    size: S
    engine
    on Nov 28, 2026
  2. added theissue type on Nov 28, 2026
  3. added
    in-progress
    on Nov 28, 2026
  4. self-assigned this
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugenginein-progresssize: S

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions