Skip to content

Phase-2: Sync origin/develop (PR #644), CPU-only CI parity & P0-P10 consistency audit - #647

Merged
martyn merged 6 commits into
research/four-lawsfrom
research/fl-phase2-ci
Nov 24, 2026
Merged

martyn merged 6 commits into
research/four-lawsfrom
research/fl-phase2-ci

Conversation

@martyn

@martyn martyn commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Summary

Reconciles research/four-laws (e655abf8d, PR #633) with concurrent origin/develop (36e287f98, PR #644 feat/unified-v13-bytegan), verifies full local .github/workflows/tests.yml CPU-only CI parity, repairs RESEARCH_GLOSSARY.md:48, and publishes reports/four-laws-audit/ci-and-consistency-check.md.

Key Changes

Verification (CPU-Only, OMP_NUM_THREADS=1 MKL_NUM_THREADS=1)

  • python scripts/check_lint.py: PASS (294 baseline, 0 additions)
  • python scripts/check_repo_bloat.py: PASS (0 new violations, 302 legacy allowlisted)
  • pytest -v --durations=25 -o faulthandler_timeout=600 tests/four_laws_audit/: 89 passed, 1 deselected in 438.36 s (max test 221.88 s < 600 s)
  • pytest -q tests/test_unified_bytegan.py: 13 passed in 6.62 s
  • pytest -q tests/test_forge_bytegan.py tests/test_unified_v11.py tests/test_unified_v12.py: 66 passed in 71.90 s
  • pytest -q tests/test_docs_links.py tests/e2e/test_repository_hygiene.py tests/test_forge_current_technique_inventory.py tests/test_publication_integrity.py: 179 passed in 90.11 s
  • scripts/ci_pytest.py 8-shard check: 9,752 tests verified non-overlapping (528 CUDA deselected)
  • Wheel (944,335 B) & sdist (869,268 B) exclusion checks: PASS (< 1.2 MB, 0 four-laws files leaked)

…crete atomic targets

Introduce self_coupling='feydy_atomic' (exposed via opt-in preset 'unified_v13' with
zero new Recipe fields, preserving unified_v12 / DEFAULT_RECIPE bit-for-bit):

1. Scale-invariant discrete-atomic support gate (compute_discrete_atomic_gate):
   distinguishes finite discrete atomic targets (exact duplicate draws separated by an
   empty annular gap) from continuous 1D/nD densities and point masses, preventing
   the q75/q90 manifold gate from blinding chart discovery and orphan transport.
2. Persistent 1-stays / surplus-moves bijection ledger (update_atomic_ledger):
   uses exact sampled prior rows to pin closest particle(s) per chart via deterministic
   Hamilton quotas and route only surplus duplicates to nearest deficit charts, paired
   with zero-radius Born-Infeld commitment, absent-chart shielding, and non-splitting
   streaming charts (allow_dead_revival=False in atomic mode).
3. Scale-invariant discrete atomic thermal residual: keeps thermal cooling active while
   any particle is unassigned or uncrisp relative to inter-atom spacing, then cools
   smoothly once settled.
4. Joint BiGAN inverse codebook contraction (split_joint_table_pair,
   match_inverse_atomic_targets): contracts encoder codes toward each real atom's
   assigned latent particle code inside joint_relativistic_loss with zero extra
   forward passes and full checkpointing via opt_d.record.

Verified on GPU 0 (seed=0):
- bytegan_hypercube8: PASS 5/5 (256/256 valid unique, rms=0.0445, max=0.183)
- bytegan_bigan_dictionary: PASS 5/5 (256/256 fwd/recon/enc-bij, rms=0.0041, recon_rms=0.0109)
- 9/9 Forge canaries PASS (clockfree, two_pole, unused_token_hold, cover_leftover,
  gaussian1d_smoke, interp_sparse_arc, ring16_acquisition, img_bars4, five_word_joint_smoke)
- Unit tests (incl. tests/test_unified_bytegan.py bit-exact continuation & parity),
  check_lint.py, check_repo_bloat.py, and experiments.forge validate all clean.
feat(unified): add opt-in unified_v13 (feydy_atomic) solving both 256-byte ByteGAN stretch tasks with 0 regressions
@martyn martyn added the research Scientific research and mathematical audit label Nov 24, 2026
@martyn
martyn merged commit f5ec2f3 into research/four-laws Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

research Scientific research and mathematical audit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant