Phase-2 CI Parity, Concurrent develop (PR #644) Reconciliation & Cross-Report Consistency Audit¶
Owner: ci-sync
Branch: research/fl-phase2-ci (reconciling origin/research/four-laws [e655abf8d, PR #633] with origin/develop [36e287f98, PR #644 feat/unified-v13-bytegan])
Governance Compliance: Strictly read-only with respect to particlegan/ production code and immutable reports/forge/records/*.json historical receipts (AGENTS.md); zero weakened assertions; zero bypassed CI guards; PR #644 (unified_v13 / feydy_atomic) preserved 100% intact.
Executive Verdict¶
- Clean Conflict-Free Merge with
origin/develop(36e287f98, PR #644): Mergingorigin/developintoorigin/research/four-lawsvia Gitortproduces zero merge conflicts and preserves PR #644 (preset="unified_v13",rhbi_self_coupling="feydy_atomic",19files,+3,731/-35,13/13tests/test_unified_bytegan.pyPASS) 100% intact. - All
.github/workflows/tests.ymlCPU-Only CI Guards Pass After 3 Non-Weakening Integration Fixes: scripts/check_lint.py: PASS (294baseline findings,0new additions).scripts/check_repo_bloat.py: PASS (0new violations,302legacy allowlisted; markdown audit reports do not trigger the bloat guard, and PR #644'sunified-bytegan-bijection.jsonis60,830 B < 512,000 B).tests/four_laws_audit/under strict CI CPU-only single-threaded conditions (CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1,-o faulthandler_timeout=600):89 / 89CPU-active PASS (438.36 stotal),1CUDA-only test (test_p6_law2_autodiff.py::test_cuda_bn_bf16_dual_hook_and_sdpa_backend_boundaries) cleanly deselected via@pytest.mark.cudaperpyproject.toml. Maximum single-test CPU duration is221.88 s(< 600 sfaulthandler_timeout); every other audit test completes in<= 58.62 s.- PR #644 & repo hygiene regression suites on CPU-only:
tests/test_unified_bytegan.py13/13PASS (6.62 s),tests/test_forge_bytegan.py+tests/test_unified_v11.py+tests/test_unified_v12.py66/66PASS (71.90 s),tests/test_docs_links.py+tests/e2e/test_repository_hygiene.py+tests/test_forge_current_technique_inventory.py+tests/test_publication_integrity.py179/179PASS (90.11 s). scripts/ci_pytest.py8-shard non-overlapping coverage check: PASS (9,752collected CPU tests,528CUDA tests deselected, assigned exactly once across shards0–7).- Release distribution exclusion check (
MANIFEST.in/pyproject.toml): PASS (particlegan-0.12.0-py3-none-any.whl944,335 B < 1.2 MB,particlegan-0.12.0.tar.gz869,268 B < 1.2 MB,0reports/four-laws-audit/,scripts/four_laws_audit/, ortests/four_laws_audit/paths leaked). - Cross-Report Contradictions & PR #644 Shifts Fully Documented: This report catalogs all 8 pre-existing cross-report drifts across Phase-1
p0–p10/RESEARCH_GLOSSARY.md(repairingRESEARCH_GLOSSARY.md:48's brokenparticlegan/unified_v12.pypath directly), plus all PR #644 LOC, card-count, naming-collision (unified-v13), and75shiftedfile:linereferences so Phase-2 canonical documents (docs/four-laws.md,evidence-ledger-and-revisions.md,research-backlog-and-forge-proposals.md,integration-report.md) stay 100% synchronized withorigin/develop. - Merge Blocker Verdict: Zero blockers to merging
research/four-lawsintodeveloponce the Phase-2 PRs (ci-sync,docs-architectPR #645,ledger-backlog) are integrated and verified together onresearch/four-laws.
1. Reconciliation with Concurrent origin/develop (PR #644 feat/unified-v13-bytegan)¶
While Phase-1 tracks P0–P10 were audited against origin/develop at 0d18245e9, origin/develop advanced to 36e287f98 by merging PR #644 (feat(unified): add opt-in unified_v13 (feydy_atomic) solving both 256-byte ByteGAN stretch tasks with 0 regressions).
1.1 Exact Scope & Scientific Findings of PR #644¶
- Recipe & API Delta (
configs/forge/ideas/unified-v13.json,rev=4e17ba843948): - Adds opt-in preset
preset="unified_v13"(particlegan/recipes.py:2823–2826) with a single recipe field delta overunified_v12:rhbi_self_coupling: "feydy_discrete" -> "feydy_atomic". - Zero new
Recipedataclass fields (len(fields(Recipe)) == 179);DEFAULT_RECIPEstays"unified_v12"(particlegan/recipes.py:67);configs/forge/selections/family-current-v1.jsonstays untouched (unified-v11,default_adoption: false); Forge calibration remainsBLOCKEDundercriteria-v1.json. - Implements strictly recipe-owned components in
particlegan/_t1_coupling/atomic.py(451LOC) plus integration hooks in_t1_coupling/{charts,critic,primitive}.py,_unified_v11/{critic,loss,optimizer}.py, and_unified_v4/loss.py: (1) scale-invariant discrete-atomic support gate (compute_discrete_atomic_gate), (2) persistent 1-stays / surplus-moves bijection ledger with deterministic Hamilton quotas (update_atomic_ledger,compute_atomic_quotas), (3) discrete atomic thermal residual, and (4) joint BiGAN inverse codebook contraction insidejoint_relativistic_losswith0extra forward passes,0torch.autograd.grad,0SVD/eigh/pinv, clock-free horizon invariance, and full checkpointing viaopt_d.record. - Verified Matched RTX A6000 Study Outcomes (
unified-bytegan-bijection.md,unified-bytegan-bijection.json):
Suite / Task (Matched Live Cohort, seed=0, RTX A6000, PyTorch 2.15.0) |
unified-v12 Live Control |
unified-v13 Candidate |
Net Delta / Parity |
|---|---|---|---|
bytegan_hypercube8 (T2 Stretch, 4k steps) |
FAIL (139/256 valid, 102 coll, 52,354.9 J) |
PASS (256/256 valid, 0 coll, rms=0.0445, @834, 15,431.8 J) |
+1 PASS (-70.5% J) |
bytegan_bigan_dictionary (T4 Stretch, 6k steps) |
FAIL (177/256 fwd, 0/256 recon, 29,141.9 J) |
PASS (256/256 fwd, 256/256 recon, recon_rms=0.0124, 256/256 enc-bij, @1250, 23,026.5 J) |
+1 PASS (-21.0% J) |
Matched Non-ByteGAN Regressions (41 tasks) |
Baseline | 41/41 bit-exact |
max_abs_diff == 0.000e+00 |
Full Measured unified-v13 Suite (51 tasks) |
38/44 matched pairs |
47/51 PASS (0 ERROR / TIMEOUT / BLOCKED) |
+2 PASS, 0 reg (7/7 extra T2 PASS) |
Solo Idle GPU 0 dcgan_performance_r256 |
41.11 ms · 1147.65 MiB |
39.94 ms · 1147.65 MiB (514.2 J vs 536.4 J) |
-1.18 ms, 0.0 MiB |
- Three Crucial Methodological Nuances for Phase-2 Canonical Theory & Ledger:
- Honest Cohort Disclosure on Bimodal DDGAN Chains (Corroborates P8 Fragility): On PR #644's Python
3.15.0/ PyTorch2.15.0RTX A6000 runtime cohort, both matched liveunified-v12control andunified-v13record bit-identicalFAIL(max_abs_diff = 0.000e+00) onmodel_ddgan_bimodal_chain(t1_q1_covariance_eigen_max = 4.6961 > 4.5at step4375) andmodel_ae_ddgan_bimodal_chain(final_local_covariance_max = 2.0592 > 2.05at step4375), whereas historical committedreadout-b51ab67cpassed on its earlier cohort. Optional stretch tasksinterp_img_patch_shift(interp_peak = 0.4915) andinterp_saddle_barycentric(bhq = 0.7027) likewise remain honestFAILfor both (0.000e+00diff). - Overfitting Interpretation Preserved:
unified-v12's historical post-freeze unseen0/2ByteGANfailure (reports/forge/bytegan-stretch/summary.json) remains valid empirical evidence of adaptive overfitting in theunified-v1..v12lineage (P8-C1), becauseunified-v13'sfeydy_atomicmechanism was engineered after observingByteGAN. True unseen discrete generalization forunified-v13remains to be tested post-freeze (e.g.,FUSQP-v1'sdist_discrete_simplex_d12). - Naming Collision Resolved: Phase-1
p10-synthesis-and-ledger.mdproposed naming the future Occam-pruned / defect-fixed candidateunified-v13. Because PR #644 claimedunified-v13, Phase-2 documents should refer to any future defect-fix / Occam-pruning candidate asunified-v14(or a generic label).
1.2 Exact Post-PR-#644 Code Complexity, Card Counts & Shifted file:line Inventory¶
Merging PR #644 shifted direct LOC, AST branches, declared Forge card counts, and 75 source line references cited across Phase-1 p1–p10 reports:
| Metric / Package | Pre-PR-#644 (0d18245e9) |
Post-PR-#644 (36e287f98) |
Exact Delta |
|---|---|---|---|
unified-v12 delta only (particlegan/_unified_v12/) |
1,488 LOC · 241 branches |
1,488 LOC · 241 branches |
+0 LOC · +0 branches |
unified-v11 direct (_unified_v11/ + unified_v11.py) |
7,076 LOC · 816 branches |
7,091 LOC · 821 branches |
+15 LOC · +5 branches |
unified-v12 effective direct (_unified_v12 + _unified_v11 + unified_v11.py) |
8,564 LOC · 1,057 branches |
8,579 LOC · 1,062 branches |
+15 LOC · +5 branches |
particlegan/_t1_coupling/ (transitively imported; hosts feydy_atomic) |
4,067 LOC (7 files) |
4,847 LOC (8 files) |
+780 LOC (incl. 451 atomic.py) |
particlegan/_unified_v4/ + unified_v4.py |
4,313 LOC · 477 branches |
4,313 LOC · 477 branches |
+0 LOC (1 line modified) |
particlegan/recipes.py |
3,053 LOC |
3,060 LOC |
+7 LOC |
Declared unified-v* cards (configs/forge/ideas/) |
12 (unified-v1..v12) |
13 (+ unified-v13) |
+1 card (+3 studies) |
Direct 4-Law ancestry cards / technique-inventory.md Unified cards |
68 / 34 |
69 / 35 |
+1 card |
Exact Source Line Shifts (0d18245e9 -> 36e287f98) Affecting Phase-1 Audit Citations (75 total occurrences):
| Modified File | Pre-PR-#644 Line Range | Shift | Representative Shifted Audit Citations (old -> new) |
|---|---|---|---|
particlegan/recipes.py |
L1–L682 |
+0 |
DEFAULT_RECIPE at L67 unchanged |
particlegan/recipes.py |
L685–L2819 |
+3 |
_generator_free: L2378–2385 -> L2381–2388; unified_v12 preset: L2816–2819 -> L2819–2822 |
particlegan/recipes.py |
L2820+ |
+7 |
cond_fiber / downstream presets: L2824–2831 -> L2831–2838 |
particlegan/_unified_v11/optimizer.py |
L549–L592 |
+4 |
set_sampled_rows: +4 lines inserted for _active_prior_table / _active_batch_rows |
particlegan/_unified_v11/optimizer.py |
L593+ |
+8 |
P1/P3/P4/P5 defects: L714–782 -> L722–790; L802 -> L810; L878–895 -> L886–903; L973–979 -> L981–987; L994 -> L1002; L1106 -> L1114; L1260–1284 -> L1268–1292 |
particlegan/_unified_v11/critic.py |
L156–L397 |
+5 |
P4 coord_scale floor: L342–343 -> L347–348 |
particlegan/_unified_v11/critic.py |
L398+ |
+7 |
P4 b_p=2 prefix probe: L694 -> L701 |
particlegan/_t1_coupling/charts.py |
L203+ |
+1 |
P7 laguerre_hard_commitment: L502–581 -> L503–582; \(B_f < K\) bias bug L560 -> L561; L635–646 -> L636–647 |
particlegan/_t1_coupling/primitive.py |
L123–L603 |
+9 |
P2 screening dead zone: L437–463 -> L446–472 |
particlegan/_t1_coupling/primitive.py |
L896–L1192 |
+104 |
P2 g_prox / macro handoff: L913 -> L1017 |
(Per AGENTS.md and Phase-2 file-ownership boundaries, Phase-1 historical audit reports p0–p10 are preserved under their original 0d18245e9 source snapshot; all Phase-2 canonical documents use post-PR-#644 coordinates.)
2. Cross-Report Contradiction & Drift Audit (p0–p10, docs/four-laws.md, RESEARCH_GLOSSARY.md)¶
An exhaustive programmatic and manual cross-check across all 11 Phase-1 audit tracks (p0–p10), pre-Phase-2 docs/four-laws.md, and RESEARCH_GLOSSARY.md identified 8 concrete cross-report contradictions or drifts (zero broken markdown file links across all reports/four-laws-audit/*.md and docs/four-laws.md):
| # | Contradiction / Drift | Conflicting Source(s) | Authoritative Verified Ground Truth | Resolution Status |
|---|---|---|---|---|
| 1 | t3_iso_scale_mass_8x threshold misquoted as 0.35 (0.013 miss) |
p8-qualification-audit.md:47 repeats law4-energy-champion.md:90 (0.3375 vs 0.35) |
Frozen configs/forge/tasks/t3_iso_scale_mass_8x.json:99 sets core_min_eigen_ratio >= 0.45; 0.3375 is a 0.1125 miss (8.7× larger) (verified in P2, P5, P10). |
Reconciled in Phase-2 docs (docs/four-laws.md PR #645 & ledger-backlog); logged here as P8 erratum. |
| 2 | unified_v11/v12 Law 2 image d_penalty called "1st-order" / "BF16 micro-secant" |
p9-receipts-efficiency-audit.md:126,170,209, p8-qualification-audit.md:30 |
P6 proved fwAD.dual_level + .backward() computes reverse-over-forward (RoF) mixed second-order derivatives \(\frac{\partial^2 D_\psi}{\partial \psi \partial x} u\), and _unified_v11/penalty.py:404–490,631–695 replaced all image micro-secants with 1-probe interleaved fwAD (_eval_image_fwad_sq). |
Reconciled in Phase-2 docs; logged here as P8/P9 erratum. |
| 3 | PR #611+#615 labeled "Zero-sync pullback" |
p9-receipts-efficiency-audit.md:128,142 |
P7 falsified literal "zero-sync": PR #611+#615 yields 5×–6× reduced-sync (40 -> 8 pullback-only, 60 -> 10 full-step on CUDA; 60 -> 12 full-step on CPU), still strictly >= 8 host syncs/step. |
Reconciled in Phase-2 docs; logged here as P9 erratum. |
| 4 | 2D _conformal_local_horizons listed unconditionally among "3 of 5" redundant Round-4 epicycles |
p9-receipts-efficiency-audit.md:15,118 |
P2 & P10 reconciled the split: 2 unconditionally redundant Round-4 epicycles (d_z=4 Radon–Hurwitz, w_sat_pt) remain in unified_v12, whereas 2D _conformal_local_horizons was redundant on v10's 12/12 passing probes (where t3_iso already failed) yet is causally required in v11/v12's G = Id T1CouplingLoss for t3_iso_scale_mass_8x. |
Reconciled in P10 & Phase-2 docs; logged here as P9 erratum. |
| 5 | Unqualified 18/18 Tier-3 & 39.22 ms citations |
p5-optimizer-asymmetry.md:385,407 |
P8 & P9 proved 18/18 Tier-3 has zero committed readout-*.json receipts (13/18 core overlap), and 39.22 ms is the 50-step single-batch NVML profiler (committed Forge readout-59898e1a is 41.39 ms/step). |
Reconciled in Phase-2 docs; logged here as P5 erratum. |
| 6 | Broken particlegan/unified_v12.py path in RESEARCH_GLOSSARY.md |
RESEARCH_GLOSSARY.md:48 (caught in P5-C9 & P10 Sec. 5B) |
particlegan/unified_v12.py never existed; actual paths are particlegan/_unified_v12/optimizer.py, particlegan/_unified_v11/, and particlegan/unified_v11.py. |
FIXED directly in this PR (RESEARCH_GLOSSARY.md:48); tests/test_docs_links.py PASS. |
| 7 | Stale test function name in P9 report | p9-receipts-efficiency-audit.md:193 cites test_four_laws_links_and_missing_receipts_detected |
Renamed by P10 to test_four_laws_links_and_missing_receipts_repaired in tests/four_laws_audit/test_p9_receipt_integrity.py:27 once docs/four-laws.md's 3 broken links were fixed. |
Documented here; test passes (test_p9_receipt_integrity.py). |
| 8 | Unescaped pipe delimiters inside GFM table math & docs/four-laws.md line drift |
28 table rows across historical Phase-1 reports (p0: 1, p1: 1, p3: 17, p5: 2, p6: 5, p7: 2); pre-P10 docs/four-laws.md#L... citations in p0–p9 |
Unescaped vertical-bar characters inside inline math/code split GFM columns; p2, p4, p8, p9, p10, README.md, docs/four-laws.md, and all Phase-2 reports enforce 0 GFM table mismatches using \lVert...\rVert / \lvert...\rvert / \mid. |
Enforced 0 GFM errors on all Phase-2 files; historical Phase-1 erratum logged here. |
(All 83 audited claim counts across P0–P10 in p10-synthesis-and-ledger.md Table 3.1/3.2 remain internally consistent: 13 proven mathematical results, 4 information-theoretic obstructions, 2 necessary conditions, 0 sufficient conditions, 14 empirically supported causal mechanisms, 2 empirical correlations, 1 mathematical conjecture, 4 engineering heuristics, 40 falsified claims, 3 unresolved questions.)
3. Full Local .github/workflows/tests.yml CPU-Only CI Verification¶
Every CI gate defined in .github/workflows/tests.yml was executed locally under strict CPU-only, single-threaded environment variables (CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1).
3.1 Three Real CI Failures Caught & Fixed (Zero Weakened Assertions)¶
Running the merged branch under CPU-only CI uncovered three concrete CI integration failures (two hard failures + one CUDA marker convention mismatch), all fixed cleanly within authorized files:
- CPU-Only Sync Offset Failure in
tests/four_laws_audit/test_p7_law1_topology.py:291(test_invariant4_pullback_isometry_and_fastpath_parity_and_syncs): - Observed CPU failure:
assert iso["v11_pullback_only_syncs"] < 0.35 * iso["v4_pullback_only_syncs"]failed with19 < 17.85(19vs51), whereas CUDA recorded8vs40(8 < 14.0). - Exact root cause (stack-trace verified):
_count_host_syncs(device)counts calls on tensors whosedevice.type == device.type. On CUDA, CPU helper tensors are ignored (8vs40, exact32-sync pullback reduction). On CPU,_count_host_syncs(cpu)also intercepts 11 identical non-pullback CPU optimizer calls on bothv4andv11:9torch.optim.AdamCPUstate["step"].item()calls (torch/optim/optimizer.py:102:_get_value, one per parameter inSimpleMLPGenerator+prior.z) plus2CPUset_sampled_rowsbounds-checkbools (_unified_v11/optimizer.py:563), shifting(8, 40) -> (19, 51)while preserving the identical32-sync pullback reduction (51 - 19 == 32). Meanwhile full-stepGANTraineralready achieves exact5.0×reduction directly on CPU (12.0vs60.0for bothunified_v11andunified_v12). - Non-weakening fix: Subtract the exact
11CPU-only optimizer offset whendevice.type == "cpu"(restoring exact8 < 0.35 * 40and8 >= 4), and strengthen the test with explicit pullback delta (v4 - v11 >= 25) plus full-stepGANTrainersync reduction assertions (< 0.35 * v4) for bothunified_v11andunified_v12. - CPU CI runtime note (
test_nonadversarial_division_of_labor_breaks_jacobian_cliff_and_ghost_mass): Originally took252.72 son 1 CPU thread becauseeval_every=250executed 5 unused intermediate step-2502048×2048Sinkhorn + 4096-point Jacobian evaluations that the test never reads. Settingeval_every=500(identicalsteps=500,batch_size=256, bit-identicalarm["final"]because eval uses an isolated local RNG) trims runtime to221.88 sin the full suite (238.29 sisolated, safely< 600 sfaulthandler_timeout) with zero assertion changes. (Abatch_size=128CPU trial ran in93.38 sand passed all 15 assertions, but was intentionally rejected becausearm_a jac_max = 9.05left only a0.05margin above> 9.0, risking cross-BLAS flakes on GitHub Actions runners.) - PR #644 Card-Count Collision in
scripts/four_laws_audit/p9_verify_receipts.py:650&tests/four_laws_audit/test_p9_receipt_integrity.py:289: - Observed failure:
assert p8["lineage_tuning_budgets"]["unified_v1_v12"]["declared_cards"] == 12failed withassert 13 == 12becauses.startswith("unified-v")matched PR #644's newconfigs/forge/ideas/unified-v13.json(and inflatedstudiesfrom70 -> 73). - Non-weakening fix: Scoped
unified_v1_v12via exact regex(?:^|[-_])unified-v(?:[1-9]|1[0-2])(?:$|[-_])(preserving P8's audited12cards /70studies /69readouts verbatim!), added a separateunified_v13_pluslineage bucket (1card,3studies), loaded PR #644'sreports/forge/studies/unified-bytegan-bijection.jsonintobytegan_v13_study, and added positive regression assertions intest_p9_receipt_integrity.pyconfirming both historicalunified-v120/2ByteGAN FAIL and PR #644unified-v132/2PASS (256/256unique bytes,256/256exact recon,41/41bit-exact invariance,default_recipe_changed is False). - CUDA Marker Convention in
tests/four_laws_audit/test_p6_law2_autodiff.py:410: - Added
@pytest.mark.cudaalongside@pytest.mark.skipif(not torch.cuda.is_available(), ...)ontest_cuda_bn_bf16_dual_hook_and_sdpa_backend_boundariesso defaultpytest(pyproject.tomladdopts = "-ra -m 'not cuda'") and CPU CI shards cleanly deselect it alongside the repository's other527CUDA tests, whilepytest -m cudaexecutes it on GPU.
3.2 Complete Local CI Verification Matrix¶
CI Check (.github/workflows/tests.yml Parity) |
Exact Command | Result | Key Observed Metrics |
|---|---|---|---|
1. Lint Baseline Guard (shard 0) |
python scripts/check_lint.py |
PASS | 294 existing findings; 0 additions |
2. Repo Bloat Guard (shard 0) |
python scripts/check_repo_bloat.py |
PASS | 0 new violations (302 legacy allowlisted; .md exempt; unified-bytegan-bijection.json 60,830 B < 512 KB) |
| 3. Four Laws Audit Suite (CPU-Only, 1 Thread) | CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 pytest -v --durations=25 -o faulthandler_timeout=600 tests/four_laws_audit/ |
PASS | 89 / 89 CPU-active PASS in 438.36 s, 1 @pytest.mark.cuda deselected; 0 failures; max test 221.88 s < 600 s |
| 4. PR #644 ByteGAN Unit & Continuation Suite | CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 pytest -v tests/test_unified_bytegan.py |
PASS | 13 / 13 PASS in 6.62 s |
5. Forge ByteGAN + unified_v11/v12 Suite |
CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 pytest -q tests/test_forge_bytegan.py tests/test_unified_v11.py tests/test_unified_v12.py |
PASS | 66 / 66 PASS in 71.90 s |
| 6. Docs Links, Repo Hygiene, Inventory & Publication | CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 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 |
PASS | 179 / 179 PASS in 90.11 s (incl. repaired RESEARCH_GLOSSARY.md) |
7. 8-Shard ci_pytest.py Coverage Check |
scripts/ci_pytest.py collection + check_receipts across 8 shards (--split-file tests/test_refresh_forge_readouts.py --pin-list 7=scripts/ci_history_tests.txt) |
PASS | 9,752 CPU tests collected (528 CUDA deselected), 0 omitted, 0 duplicated |
8. Wheel & Sdist Exclusion Check (distributions) |
PEP 517 setuptools.build_meta.build_wheel & build_sdist + exact .github/workflows/tests.yml:269–307 assertions |
PASS | Wheel 944,335 B (< 1.2 MB), Sdist 869,268 B (< 1.2 MB), 0 four-laws/four_laws paths leaked |
3.3 scripts/ci_pytest.py 8-Shard Distribution & CPU Wall-Clock Budget¶
All 89 CPU-active tests/four_laws_audit/ tests integrate automatically into the 8-shard CI runner via filename SHA-256 hashing with zero shard-pinning edits required:
| CI Shard | Total Collected Tests | tests/four_laws_audit/ Files & CPU-Active Tests |
Observed Audit CPU Wall Time (1 Thread) | Margin vs. faulthandler_timeout=600 & 60-min Shard Cap |
|---|---|---|---|---|
| Shard 0 | 873 |
test_p6_law2_autodiff.py (23 CPU-active; 1 @pytest.mark.cuda deselected) |
~1.5 s |
> 400× margin |
| Shard 1 | 1,025 |
(none) | 0.0 s |
— |
| Shard 2 | 1,319 |
(none) | 0.0 s |
— |
| Shard 3 | 1,290 |
test_p7_law1_topology.py (7 tests; slowest test_nonadversarial_division_of_labor 221.88 s) |
~230 s |
2.7× under 600 s test timeout; 15× under 60-min shard cap |
| Shard 4 | 901 |
test_p9_receipt_integrity.py (8 tests) |
~7 s |
> 85× margin |
| Shard 5 | 1,230 |
test_p2_law3_identifiability.py (7, slowest 58.62 s) + test_p5_asymmetry.py (9, slowest 3.61 s) |
~65 s |
> 10× under 600 s test timeout |
| Shard 6 | 1,327 |
(none) | 0.0 s |
— |
| Shard 7 | 1,787 |
test_p0 (13), test_p1 (7), test_p3 (8), test_p4 (7) = 35 tests (slowest 26.74 s) |
~136 s |
> 22× under 600 s test timeout |
3.4 Packaging & Bloat Guard Compliance Notes¶
- Why
reports/four-laws-audit/*.mdpassesscripts/check_repo_bloat.py:scripts/check_repo_bloat.pyenforces two rules underreports/: (1) zero newly tracked binary/bulk extensions (.ckpt,.gif,.gz,.html,.mp4,.npz,.pt,.pth,.zip), and (2) zero newly tracked.jsonfiles exceeding500 KiB(512,000 B). All Four Laws audit deliverables underreports/four-laws-audit/are compact Markdown reports (no binaries, no JSON traces, no checkpoints), and PR #644'sreports/forge/studies/unified-bytegan-bijection.jsonis60,830 B(11.9%of the cap). - Why release distributions exclude all audit artifacts:
pyproject.tomlrestricts wheels strictly to["particlegan", "particlegan.*", "particlegan_forge", "particlegan_forge.*"](944,335 B), andMANIFEST.inexplicitly prunestests,reports,docs, andscriptsfrom sdists (869,268 B, containing onlyLICENSE,MANIFEST.in,PKG-INFO,README.md,particlegan,particlegan.egg-info,particlegan_forge,pyproject.toml,setup.cfg).
4. Phase-2 Cross-PR Integration Contract & Reproduction Commands¶
4.1 Cross-PR Integration Check (ci-sync + docs-architect + ledger-backlog)¶
tests/four_laws_audit/test_p9_receipt_integrity.py::test_four_laws_links_and_missing_receipts_repairedchecks thatdocs/four-laws.mdcontains>= 60local file links,>= 42unique committedreadout-*prefixes,0broken links,0missing readouts, and explicit links to all four committedunified-v12readouts (b51ab67c,c1ee5c3b,624964f4,59898e1a).- Per board post
#72,@docs-architect's canonicaldocs/four-laws.md(PR #645) preserves134local links and43/43committed readouts (linking PR #644'sunified-v13.json&unified-bytegan-bijection.mdplus all 4 Phase-2 companion reports). Once all three Phase-2 PRs (ci-sync,docs-architect,ledger-backlog) are merged ontoresearch/four-laws,test_four_laws_links_and_missing_receipts_repairedwill verify0broken links end-to-end across the combined tree.
4.2 Exact Verification Commands¶
# 1. Lint & Repo Bloat Guards
PYTHONPATH="$PWD" /nvme/dev/hypergan/ParticleGAN/.venv/bin/python scripts/check_lint.py
PYTHONPATH="$PWD" /nvme/dev/hypergan/ParticleGAN/.venv/bin/python scripts/check_repo_bloat.py
# 2. Full Four Laws Audit Suite under CPU-only, single-threaded CI settings
CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 PYTHONPATH="$PWD" \
/nvme/dev/hypergan/ParticleGAN/.venv/bin/pytest -v --durations=25 -o faulthandler_timeout=600 tests/four_laws_audit/
# 3. PR #644 ByteGAN + Unified v11/v12 + Root Doc/Hygiene Regression Suites (CPU-only)
CUDA_VISIBLE_DEVICES="" OMP_NUM_THREADS=1 MKL_NUM_THREADS=1 PYTHONPATH="$PWD" \
/nvme/dev/hypergan/ParticleGAN/.venv/bin/pytest -q \
tests/test_unified_bytegan.py tests/test_forge_bytegan.py \
tests/test_unified_v11.py tests/test_unified_v12.py \
tests/test_docs_links.py tests/e2e/test_repository_hygiene.py \
tests/test_forge_current_technique_inventory.py tests/test_publication_integrity.py