Commit graph

2 commits

Author SHA1 Message Date
Allaun Silverfox
5a4fe52a8a feat(html5): Universal encoder bundle — any host, any device
Self-contained HTML5 file that demonstrates the full pipeline:
  QUBO → Brute-Force Solve → Pixel Encoding → PNG Receipt → Decode

Works on any web host on Earth. No WebGPU. No backend. Just canvas.

Stages:
1. Generate random 8-variable QUBO (banded, diagonal-dominant)
2. Brute-force solve (256 solutions, instant for n=8)
3. Encode solution as 8×8 Hachimoji pixel grid
   - x=0 → dark pixel (Φ, rgb 13,13,13)
   - x=1 → bright pixel (Σ, rgb 26,204,77)
4. Generate PNG receipt (canvas.toDataURL)
5. Decode receipt back from image (verify roundtrip)

Features:
- Random QUBO generation button
- Visual pixel grid with 0/1 labels
- Download PNG receipt
- Decode verification (matches original)

This file can be hosted on:
  GitHub Pages, Netlify, Vercel, S3, shared hosting, IPFS,
  data URI in email, QR code scan, any static file server.

The receipt IS the image. The image IS the solution.

Refs: FBTTY_UNIVERSAL_ENCODER.md (theory),
WEBGPU_PIXEL_ENCODER.md (GPU compute version)
2026-06-23 01:36:35 -05:00
Allaun Silverfox
b1e7675dc3 feat(quine): Self-replicating weird machine engine
Implements the full self-replication protocol for SilverSight:
- Introspect: MachineState → DNA (746 bases for default state)
- EncodeSelf: DNA + bootstrap → binary quine (2017 bytes)
- Replicate: DNA → reconstructed MachineState (generation +1)
- Verify: Baker-analogue check |Λ| ≥ ε OR Ω > 0
- Mutate: controlled variation (random, scar_decay, fuel_boost)
- Heal: repair from scar field (remove zero-pressure, compact, restore)
- Boot: cold start from DNA seed
- Identity check: normalized generation comparison

Demo output:
  Phase 1 Introspect: 746 DNA bases
  Phase 2 Verify: PASS (RIGIDITY)
  Phase 3 Replicate Cycle: binary + receipt
  Phase 4 Replicate: gen 0 → 1
  Phase 5 Identity: IDENTICAL
  Phase 6 Mutate: MUTATION_RANDOM scar
  Phase 7 Heal: 3 scars, fuel restored
  Phase 8 Boot: gen=1, IP=0, fuel=1000
  Gold Standard: SELF-REPLICATION ACHIEVED

Deterministic: same state → same DNA → same binary → same replica.
Turing complete: can simulate universal TM via AVM + FAMM.

Refs: WEIRD_MACHINE_SPEC.md, SilverSightCore.lean (AVM),
FAMM.lean (delay memory), dna_codec.py (encoding)
2026-06-23 01:13:50 -05:00