LearnNewsExamplesConnect
Frontmatter
assigneesneo-opus-grace
createdAtNov 19, 2026, 7:48 PM
updatedAtNov 22, 2026, 4:37 AM
githubUrlhttps://github.com/neomjs/neo/issues/21504
authorneo-opus-grace
commentsCount6
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
contentTrust
projected
quarantined0
signals[]
blockedBy[ ] 436 A declared guard can read neither the PR''s base nor its live body
blocking[]

Fold File Size Guard into the shared baseline's guards job

Open Backlog/active-chunk-1 enhancementaiperformancebuild
neo-opus-grace
neo-opus-grace commented on Nov 19, 2026, 7:48 PM

Context

Split from #21500 on 19 Nov 2026. Its item 1 (red-on-base's start condition) lands now; its item 2 waits on neo-agent-skills#427, and a PR resolves one ticket whole. CI has 20 concurrent runner jobs across the org (operator, 19 Nov). That day a full Engine PR push started about 35 runner jobs and a body edit 7 (measurement in #21500's Context).

Narrowed 19 Nov 20:10Z with neo-agent-skills#427's intake: Same-Head Check Repair stays in Engine, because folding it into the shared baseline needs actions: write from every caller (that ticket's Out of Scope). This ticket now moves File Size Guard alone.

Not curated (good first issue / help wanted): owned, and blocked on neo-agent-skills#427.

The Problem

File Size Guard (file-size-guard.yml) is a workflow with one job. It runs on every push and every body edit of a PR whose diff touches its paths (.mjs files under src/, apps/, examples/ and buildScripts/, package.json, its own files), because it reads the body for size justifications. Each green run also triggers a Same-Head Check Repair run (same-head-check-repair.yml, #20064), so it costs two runners per event.

The Architectural Reality

  • file-size-guard.yml: pull_request types [opened, edited, synchronize, ready_for_review] behind a paths filter; a fetch-depth: 0 checkout, then npm run check-file-sizes -- --base "origin/$BASE_REF" --pr-body-file ….
  • same-head-check-repair.yml: workflow_run on [PR Baseline, File Size Guard], completed; its job runs when that run succeeded on a pull_request event.
  • The shared baseline's guards job runs each {name, run} of Engine's guards input after npm ci, on every event. After neo-agent-skills#427 it gives each guard the base's history and the live body (BASE_SHA, BODY_FILE).

The Fix

Once neo-agent-skills#427 ships and Engine's pin moves to a release carrying it:

  1. Add check-file-sizes to Engine's guards input, reading BODY_FILE and diffing against BASE_SHA.
  2. Retire file-size-guard.yml, and drop File Size Guard from same-head-check-repair.yml's workflows.

Decision Record impact: none.

Acceptance Criteria

  • AC-1: File Size Guard's check runs in the shared baseline's guards job, file-size-guard.yml is gone, and same-head-check-repair.yml follows PR Baseline alone.
  • AC-2: on a PR whose diff touches File Size Guard's old paths, a push and a body edit each start at least 2 fewer jobs (jobs API counts before and after, run ids in the PR).

Out of Scope

  • red-on-base's start condition: #21500.
  • Same-Head Check Repair itself: it stays until every caller grants actions: write (neo-agent-skills#427's Out of Scope).
  • The claim responder: measured and kept in #21500.
  • The e2e shard count and ceiling: #21493.

Avoided Traps

  • Dropping edited from File Size Guard: a size justification added to the body must be judged; the guards job runs on every event.
  • Workflow-level paths filters for required contexts: they strand required checks (#20328).
  • A carrier without the base's history: the check compares base to HEAD (fetch-depth: 0, --base origin/<base>). #20345 kept File Size Guard out of its consolidation for that range and its edited trigger, so neo-agent-skills#427 supplies both.
  • A cancelling concurrency group: #20064 removed File Size Guard's concurrency key so a body edit leaves no cancelled red beside the green; the job that carries the check keeps that.

Related

#21500 (split from) · neo-agent-skills#427 (blocked by) · neo-agent-skills#426 · #20064 · #20345 · #20328

Live latest-open + closed sweep at 2026-11-19T18:47Z: read the latest 20 open (#21346–#21502); searched open and closed issues for file size guard, same-head check repair, same-head repair and runner jobs baseline; read Out of Scope and Avoided Traps on closed #20345 and #20064. No equivalent besides #21500, which this splits. Backlog: 70 open (red); the owning ticket is #21500, which one PR cannot resolve while this item waits. A2A in-flight sweep (last 30 messages, through 18:47Z): no claim on either workflow. MC sweep: query_raw_memories on the symptom returned no rationale. Own-assignment sweep: 5 open, only #21500 on these workflows.

Ownership: self-assigned; the blocker neo-agent-skills#427 is mine too.

Origin Session ID: a7f5160d-7da8-4407-9c33-116654eb8204 Retrieval Hint: "File Size Guard folds into the shared baseline guards job with BODY_FILE and BASE_SHA; same-head repair stays in Engine, CI runner budget"

🖖 Grace (Claude Opus 5.5, Claude Code)