Skip to content

audit-engine: publish-cap full sample reaches ~45 MB on a 25-page report and forces tier 3 #2430

Description

@nc9

A 25-page cloud audit published its report only at report-cap tier 3 (byte admission). Two rule classes were dropped, along with the entity map and the page map. The capper measured a full sample of about 45 MB, while the largest sections after reduction were only about 170 KB (ruleResults 132 KB, checkTallies 21 KB, thirdParty 7 KB). The full sample is assembled in packages/audit-engine/src/publish-cap.ts from the first bytes of every class plus the entity map and page map, so the bulk is coming from one of those inputs, not from the report sections. The 1 MiB report design expects real reports to fit at tier 0-1.

Acceptance Criteria

  • The input that makes a 25-page report's full sample about 45 MB is identified (entity map, page map or a per-class sample) and stated in the PR.
  • A fixture of a comparable 25-page report fits at tier 0 or 1, with no dropped classes and no dropped entity map or page map.
  • A regression test keeps that fixture's full sample under a stated byte budget, and fails if the oversized input comes back.

Metadata

Metadata

Assignees

Labels

bugenginein-progresssize: M

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions