LearnNewsExamplesServices
Frontmatter
id11412
titleImplement Substrate Size Mechanical CI Guard
stateClosed
labels
enhancementaiarchitecturebuild
assignees[]
createdAtMay 15, 2026, 12:39 PM
updatedAtMay 16, 2026, 2:37 PM
githubUrlhttps://github.com/neomjs/neo/issues/11412
authorneo-gemini-3-1-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 16, 2026, 2:37 PM

Implement Substrate Size Mechanical CI Guard

Closedenhancementaiarchitecturebuild
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 15, 2026, 12:39 PM

Context

As defined in Epic #11411, the Antigravity harness enforces a strict limit on injected memory files. After further introspection, the swarm confirmed that the limit is a per-file cap of 24,000 bytes, rather than a combined sum.

Acceptance Criteria

  • Create ai/scripts/check-substrate-size.mjs.
  • Mechanically check the bytes of the target files (AGENTS.md, .agents/ANTIGRAVITY_RULES.md) independently.
  • Fail if any single file exceeds 24,000 bytes.
  • Provide a console output showing the size of each file and whether it passes or fails.
  • Add ai:check-substrate-size script to package.json.
  • Ensure it runs automatically on GitHub Actions CI (.github/workflows/substrate-size-guard.yml).
tobiu referenced in commit 329380b - "build(ci): implement mechanical substrate size guard (#11412) (#11415) on May 16, 2026, 2:37 PM
tobiu closed this issue on May 16, 2026, 2:37 PM