Skip to content

galaxyscope: size pool from GG_JOB_CORES; pin parallel verifiers (Fixes #4902) - #4907

Merged
squid-protocol merged 3 commits into
mainfrom
fix/4902-pool-sizing
Oct 11, 2026
Merged

squid-protocol merged 3 commits into
mainfrom
fix/4902-pool-sizing

Conversation

@squid-protocol

@squid-protocol squid-protocol commented Oct 11, 2026 •

Copy link
Copy Markdown
Owner

Fixes #4902

  • galaxyscope.resolve_max_workers(): pool = GALAXYSCOPE_MAX_WORKERS, else GG_JOB_CORES, else cpu_count-1 (min 1); explicit value wins. Unit tests: tests/core_engine/test_pool_sizing.py.
  • rosetta_audit (per verifier), contract_pr_check (4 legs), bugfix_kit bless (its legs): each parallel child gets an equal GG_JOB_CORES share (total // N, total = GG_JOB_CORES or cpu_count). GALAXYSCOPE_MAX_WORKERS is not set there, so a caller's explicit value still wins.
  • mainframe-ground-truth.yml pytest step: OMP_NUM_THREADS: 1.

Measured (12 cores, golden-lock, crucible_check both legs in parallel, check mode, no bless; wall / peak 1-min load)

  • old main (11 workers per leg): 76 s / 15.0
  • pinned 1: 182 s / 11.8
  • share (GG_JOB_CORES=6 per leg): 73 s / 9.3
    All variants PASS on both legs against the unchanged golden masters, so output is byte-identical; nothing blessed.
  • rosetta_audit (51 languages): output identical before/after; wall 20 s -> 18 s, sampled peak load 8.6 -> 7.7.
  • Scan output identical, default pool vs GG_JOB_CORES=3 (211-file corpus): master.db rows identical; other files differ only in timestamps/uuid.
  • pr_gates --fast 5/5; --ratchets 7/7 (0 skipped) earlier on the same engine code.

🤖 Generated with Claude Code

https://claude.ai/code/session_01AUWeQX7v4QBdErFbghEEEX

@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 11, 2026
@squid-protocol

Copy link
Copy Markdown
Owner Author

No description provided.

@squid-protocol
squid-protocol marked this pull request as ready for review October 11, 2026 16:21
@squid-protocol
squid-protocol enabled auto-merge (squash) October 11, 2026 16:21
@squid-protocol
squid-protocol merged commit 35d974d into main Oct 11, 2026
33 checks passed
@squid-protocol
squid-protocol deleted the fix/4902-pool-sizing branch October 11, 2026 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pipeline: galaxyscope sizes its pool from GG_JOB_CORES; pin parallel scans in rosetta_audit / contract_pr_check; OMP_NUM_THREADS in ground-truth CI

1 participant