Commit graph

3 commits

Author SHA1 Message Date
Brandon Schneider
aba1fba7ad fix(adversarial-review): resolve 35 critical coding bugs across 8 subsystems
Security & correctness fixes from full adversarial review:

Lean (7 fixes):
- FixedPoint.lean: guard false theorem with n > 0 precondition
- QFactor.lean: remove double-scaling error in energy decrease
- AVMIsa/Step.lean: implement addSatQ16/subSatQ16 primitives
- BraidEigensolid.lean: fix crossStep second output argument swap
- SSMS.lean: complete ACI preservation proof (with rounding caveat)
- HouseholderQR.lean: add n > 0 precondition to spectral theorem

Verilog (7 fixes):
- q16_lut_core.v: fix multiply shift (16 → 32 bits)
- q16_lut_top.v: fix valid bit (0 → 1)
- cff_accelerator.v: fix SHA-256 padding (len < 448 check)
- research_stack_top.v: fix trigger aliasing (unique counters)
- Blitter6502OISC_small.v: fix address width (15 → 16 bits)
- spatial_hash_bram.v: add OOB write guard
- tmr_oepi_safety_fsm.v: fix double-increment race

WGSL (6 fixes):
- shaders.wgsl: atomicAdd for concurrent writes
- frustration_qubo.wgsl: double-buffer + CAS loop
- braid_fft.wgsl: workgroupBarrier synchronization
- burgers_scar_filter.wgsl: atomic E_bins array

Rust (9 fixes):
- thermodynamic.rs: Arc::from_raw → Arc::clone (double-free)
- thermodynamic.rs: Box::into_raw → Box (leak)
- tools/src/lib.rs: shell injection → shlex.quote
- ene-node/src/lib.rs: LRU caps, constant-time HMAC, peer caps

Python (6 fixes):
- similarity/__init__.py: pickle.load → RestrictedUnpickler
- AI-Feynman: torch.load → weights_only=True (14 calls)
- fetch_arxiv.py, fetch_s2.py: eval → ast.literal_eval
- topology.py: os.system → shutil.copy2
- SSH pipe: os.system → base64 pipe

Build: lake build 3572 jobs, 0 errors
2026-05-31 23:38:03 -05:00
Brandon Schneider
b58c1201ac Remove legacy Python prototypes superseded by Lean formalization
Deleted 58 Python files (~31K lines) that were experimental prototypes
and bootstrapping scripts now superseded by the Lean source of truth:

0-Core-Formalism/core/ (2 files):
  - field_solver_emulator.py
  - formalize_mass_number.py

0-Core-Formalism/lean/LeanGPT/ (17 files):
  - All LLM bootstrapping scripts (algorithm_bootstrap, automated_conviction_loop,
    classify_algorithms, external_model_bridge, genetic_hypothesis_generator,
    group_algorithms_by_domain, hutter_prize_full_test, hutter_prize_test,
    hypothesis_generator, mathematical_law_conviction, otom_pipeline,
    performance_profiler, refine_algorithms_by_domain, skeptical_agent_concern_fix,
    skeptical_agent_swarm, wgsl_hypothesis_runner)

0-Core-Formalism/lean/Semantics/ (1 file):
  - expand_domains.py

0-Core-Formalism/otom/ (4 files):
  - scripts/validate_routing.py
  - tools/ene/ene_artifact_salvage_extractor.py
  - tools/genetics/emit_selection_receipt.py
  - tools/genetics/selection_metrics.py

2-Search-Space/ (14 files):
  - FAMM/solve_famm_sorry.py
  - GhostPivot/gist_pivot_poc.py
  - PIST/hybrid_tsm_pist_torus.py, pist_sweep.py
  - SVQF/microgrid_voxel_emulation.py
  - manifold/ (9 files: api/server, collapse_editor, particle_interaction,
    projection_engine, relativity_adapter, self_typing_engine, soliton_search,
    substrate_bridge)
  - search/generate_lut.py, ingest_pd.py, sweep_manifold.py

3-Mathematical-Models/ (20 files):
  - dna_benchmark/compressors/ (5 files)
  - pist_biological_polymorphic_shifter_v3*.py (5 files)
  - fiber_optic_vibrational_tensor/fiber_optic_tensor_network.py
  - manifold_compression/src/ (2 files)
  - fix_kwargs_meta.py, fix_metadata.py, fix_remaining.py, fix_sbox.py
  - genetics/Allelica/Allelica.py

These prototypes expressed formal concepts in Python that are now
formalized in Lean (747+ Lean modules). Per AGENTS.md, Lean is the
source of truth for formal claims.

Generated with [Devin](https://cli.devin.ai/docs)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-05-19 15:34:17 +00:00
Brandon Schneider
5f88abf618 initial: sovereign research stack (consolidated, weightless, and lfs-optimized) 2026-05-04 18:11:36 -05:00