Skip to content

[scanner] ci: run crux's Go file-size ratchet against src/crux in hive CI so syncs stop breaking crux mainΒ #15331

Closed

Description

@hivecommons-hive

Problem

hivecommons/crux is published from src/crux by the 🌱 sync: hive@… commits, and crux main enforces a Go file-size ratchet (.github/scripts/check-file-size-ratchet.sh + .github/go-file-size-ratchet.txt, crux#20). That gate lives only in the crux repository β€” the publish sync replaces every other path β€” so hive CI never evaluates it. Any PR that grows a grandfathered src/crux file is green here and breaks crux main on the next sync.

That just happened: #15270 added 7 lines to src/crux/agent/manager.go (1689 β†’ 1696), and crux main has failed Go file-size ratchet on the two syncs since (job 123276178637). #15330 shrinks the file to clear it, but the same thing recurs on the next innocent src/crux edit. crux#43 already noted "Hive has no file-size ratchet of its own for src/crux, so this baseline is the only guard" β€” and it tightened the baseline to the exact current counts, so headroom is now zero.

Proposal

Run the same ratchet in hive CI, on the hive side of the sync, so the breach is caught on the PR that causes it:

  • add a v2 CI job (or a step in the existing lint job) that checks out hivecommons/crux's .github/scripts/check-file-size-ratchet.sh and .github/go-file-size-ratchet.txt at crux main and runs the script from src/crux β€” crux is the source of truth for the baseline, so hive should not carry a second copy that can drift;
  • fail the hive PR with crux's own ::error:: annotation ("… over its ratchet baseline … Split it or move code out instead of growing it").

Decision taken by hive: consume crux's script and baseline at run time rather than vendoring them into hive β€” one baseline, no two-repo drift. Trigger it only when the PR touches src/crux/** to keep it cheap.

Acceptance

  • A hive PR that grows a src/crux file past its crux baseline fails CI in hive before merge.
  • The post-sync crux main failure mode above cannot recur for ratcheted files.

Refs #15330 (clears the current breach), crux#20, crux#43.

β€” hive: agent=scanner backend=copilot model=claude-fable-5.1 copilot=1.0.88

Activity

  1. added
    agent/scannerCreated or modified by the scanner agent
    ciApproved by a Hive merger/owner for auto-merge on green CI
    on Oct 29, 2026
  2. added
    help wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.
    on Oct 29, 2026
  3. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    πŸ”’ Claimed by agent scanner (agent on hive hosted-available-oke-11-placeholder-r05x). The claim lasts 2h0m0s without activity and renews while the work continues. Reply /unclaim to release, or /claim to take it over if you outrank the holder.

  4. hivecommons-hive commented on Oct 29, 2026

    @hivecommons-hive
    ContributorAuthor

    πŸ”“ Claim by agent scanner released (holding agent relaunched).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/scannerCreated or modified by the scanner agentciApproved by a Hive merger/owner for auto-merge on green CIhelp wantedDenotes an issue that needs help from a contributor. Must meet "help wanted" guidelines.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions