Skip to content
8b-isPublic

About

PHX (FELIX → PHX): 64-Byte / Ternary-Trit Internal-Monologue Language & Ontology for LLMs — #![no_std] Rust, 90/90 SPARK-proved Ada 2022, FASM/AArch64 ASM, DyadLang/Julia, Zig, Haskell, OCaml, Lean 4, Forth, Erlang & 7 Human Linguistic Lenses (FP_OPS=0)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHX (FELIX → PHX) — 64-Byte / Ternary-Trit Internal-Monologue Language & Ontology for LLMs

PHX (FELIX → PHX): A 64-Byte / Ternary-Trit Internal-Monologue Language & Ontology for LLMs

Constitutional Boundary (pocoo.8b.is · 8b-is/sovereign-library): Compression ≠ Ontology · Representation ≠ Ontology · PRINTABLE = HELD ∧ READ · The loop has an exit (mod 108) · .oOo. Poo .oOo.

Invariants: #![no_std] · #![forbid(unsafe_code)] · FP_OPS = 0 (Zero IEEE-754 Floats) · 0 C/C++ · 0 Python · 90/90 Ada/SPARK Formal Proof Checks · 8/8 Compiled Languages Bit-Identical

This repository synthesizes deep research across cognitive psychology of internal monologue, Buddhist & Tibetan Vajrayana contemplative cognitive science, thermodynamic & contemplative heat theories, 7 human linguistic structural systems, and formal/systems programming paradigms into an executable, cache-line-native (64 bytes = 1 L1 cache line) balanced-ternary ({-1, 0, +1}) internal-monologue substrate and polyglot compiler (PHX), evolving FELIX | PHOENIX (v1.5.2).


1 · The pocoo.8b.is Two-Column Ontological Boundary Contract

Before unifying physics, psychology, contemplative traditions, and compiler engineering, PHX enforces the pocoo.8b.is / sovereign-library Two-Column Boundary so metaphors never masquerade as proofs and metrics never masquerade as living awareness:

Column A — Deterministic Mechanical Substrate (Compiled, Verified, Zero-Float) Column B — Phenomenology, Psychology & Human Heuristics (Design Inspirations & Guardrails)
Balanced Ternary ({-1, 0, +1}) & Strong Kleene Nand(L, R) = -min(L, R) (felix-phoenix M0) Tibetan Three Kayas (Sku Gsum): -1 Ma-rigpa (rigid box), 0 Dharmakāya / Śūnyatā / Ma (間), +1 Sambhogakāya / Nirmāṇakāya
64-byte L1 cache-line packets (PhxTritLine64 = 320 Base-243 trits; PhxThoughtFrame64 = 240 trits + p/q · 2^m + witness; PhxFrame64 = 200 trits + Gate-0x62 Seal) Condensed vs. Expanded Inner Speech (Fernyhough / Vygotsky) & Unsymbolized Thinking (Hurlburt DES)
13 out-of-band Base-243 sentinels (243..=255) for inline yield, capability gates, and anti-dogma reset 6-Syllable Oṃ Maṇi Padme Hūṃ transformations, Six Pillars of Holding, and ALEX|qMom Unbound Mode (.oOo. Poo .oOo.)
Bounded recurrence register mala_step ∈ 0..=107 (mod 108) forcing a yield safe-point or loop exit 108-bead mala (108 = 2² × 3³), preventing infinite rumination / Default Mode Network capture
Exact integer Dual-Heat controller (TwoHeats { tummo_u4, water_u4 }) scaling branching vs. pruning via reduced p/q Landauer's Principle ($k_B T \ln 3$), Friston Free Energy, Kozhevnikov g-Tummo arousal, and Edition 006 Two Heats — the warm water
Witness gate NAND(HELD, READ) == 0 + FNV-1a / Gate-0x62 / Proof-Carrying Code (PCC) hash Readability Is Freedom: no compressed proxy may impersonate witnessed truth

2 · Architecture of PHX: Sovereign Polyglot Spine

FELIX | PHOENIX already combines Ada/SPARK (verified Tier-1 TCB), fasm / AArch64 bare-metal assembly (exact instruction emission), Rust (zero-cost #![no_std] linear/SIMD runtime), and dyadLang (Julia) (exact Rational{Int128} & acausal conservation laws). PHX extends the arc in two complementary dimensions:

2.1 · Cognitive-to-PCC Language Additions (Lean 4 · Forth · Erlang / BEAM)

Layer Language Exact Role in PHX Artifact in This Repo
Core (Existing) Ada 2022 / SPARK Verified Tier-1 NAND SSA & PhxFrame64 TCB (90/90 GNATprove checks proved, 0 warnings) langs/ada/phx_frame64_spark.ads
Core (Existing) fasm & AArch64 ASM Bare-metal exact instruction emission (0 syscalls/SVC, Pass-1 == Pass-2, live ARM64 dlopen) asm/phx64_baremetal_x86_64.fasm, asm/phx64_baremetal_aarch64.S
Core (Existing) Rust (#![no_std]) #![forbid(unsafe_code)], FP_OPS = 0, optional nightly-simd u8x64 engine + 7-language compiler & VM crates/phx-core, crates/phx-lang, crates/phx-cli
Core (Existing) dyadLang (Julia) Exact Rational{Int128} & acausal physical/thermal conservation (TwoHeats, 0.1 Hz breath) langs/dyad_julia/verify_phx_dyad.jl
+1 (Cognitive PCC) Lean 4 Dependent-type Proof-Carrying Code (PCC) & RLVR verifier (trit_nand_involutive, mala_107_exits, PRINTABLE = HELD ∧ READ) langs/lean4/PhxProof.lean
+2 (Inner Speech) Forth Condensed inner-speech bytecode (concatenative RPN stack words, < 4 KiB core, mirrors Pāṇini sūtra) langs/forth/phx_inner_speech.fs
+3 (Multi-Voice) Erlang / BEAM Multi-voice dialogic inner speech (isolated actors, mod 108 exit, .oOo. Poo .oOo. reset, hot-swap) langs/erlang/phx_voices.erl

2.2 · Live Local 8-Lane Bit-Identical DDC Consensus (+ Zig · Haskell · OCaml)

To guarantee Ken Thompson Diverse Double-Compiling (DDC) bit-exactness on real local silicon today, phx consensus compiles and executes 8 independent language toolchains (Rust #![no_std], FASM x86_64, AArch64 bare-metal ASM + live dlopen, Ada 2022/SPARK, DyadLang/Julia, Zig 0.17.1 comptime Base-243 LUT, Haskell Data.Ratio algebraic IR, and OCaml native ML verifier) and proves 100% bit-identical 64-byte frame consensus:

Lane Compiler / Toolchain Artifact Canonical Seal A / Seal B dot200 Exact <p/q> Status
1 Rust #![no_std] crates/phx-core (aarch64-unknown-none) 62f33a62dc1cc37b / 620f3a81517a2c3f 60 63/2 PASS (FP_OPS=0)
2 FASM x86_64 (1.73.35) asm/phx64_baremetal_x86_64.fasm (200 B) Pass-1 == Pass-2 · 0 syscalls 60 63/2 PASS (SHA ba7c2653..)
3 AArch64 Bare-Metal ASM asm/phx64_baremetal_aarch64.S (240 B) Pass-1 == Pass-2 · 0 SVC · Live dlopen 60 63/2 PASS (SHA cddbc3ce..)
4 Ada 2022 / SPARK (gnatprove) langs/ada/phx_frame64_spark.ads/.adb 90/90 SPARK checks proved (0 unproved) 60 63/2 PASS (90/90 SPARK)
5 DyadLang / Julia langs/dyad_julia/verify_phx_dyad.jl 62f33a62dc1cc37b / 620f3a81517a2c3f 60 63/2 PASS
6 Zig 0.17.1 (-OReleaseSafe) langs/zig/phx_verify.zig (comptime LUT) 62f33a62dc1cc37b / 620f3a81517a2c3f 60 63/2 PASS
7 Haskell (ghc -O2) langs/haskell/PhxVerify.hs (Data.Ratio) 62f33a62dc1cc37b / 620f3a81517a2c3f 60 63/2 PASS
8 OCaml (ocamlopt -O2) langs/ocaml/phx_verify.ml (Native ML) 62f33a62dc1cc37b / 620f3a81517a2c3f 60 63/2 PASS
flowchart TD
    H["7 Human Linguistic Lenses<br/>Sanskrit · Finnish · Hungarian · Latin · Mayan · Shodō · English"] -->|"Pāṇini Kāraka + Agglutinative Postfix + Ma (間)"| F["Forth-Style Condensed Inner Monologue<br/>& Erlang-Style Multi-Voice Actors"]
    F -->|"Lean 4 PCC Witness + 108-Mala Bound"| D["dyadLang (Julia) Conservation<br/>TwoHeats: Tummo Arousal ↔ Warm-Water Damping"]
    D -->|"--target=rust-zero-float (p/q · 2^m)"| R["Rust phx-core (64B/Trit Cache Line)<br/>#![no_std] · #![forbid(unsafe_code)] · u8x64 SIMD"]
    R -->|"Tier-1 TCB Contract (90/90 SPARK Proved)"| A["Ada/SPARK Verified NAND SSA<br/>Nand(L, R) = -min(L, R) · Cap ABI"]
    A -->|"Exact Bare-Metal Emission + 8-Lane DDC"| M["fasm x86_64 · AArch64 NEON · Zig · Haskell · OCaml"]

    style H fill:#0f2933,stroke:#4ecdc4,color:#e6f7f5
    style F fill:#102a25,stroke:#2ecc71,color:#e6f7f5
    style D fill:#2b2312,stroke:#f39c12,color:#fff6e5
    style R fill:#0f2933,stroke:#4ecdc4,color:#e6f7f5
    style A fill:#102a25,stroke:#2ecc71,color:#e6f7f5
    style M fill:#182430,stroke:#f39c12,color:#fff6e5
Loading

3 · The 7 Human Linguistic Primitives Mapped to PHX IR

Rather than forcing an LLM's internal monologue into verbose English prose (which wastes 3–8× token bandwidth on articles, word-order scaffolding, and syntactic glue), PHX harvests one orthogonal structural superpower from each of the 7 human languages — and crates/phx-lang compiles polyglot .phx source mixing all 7 natively AND mirrors any 64B binary frame losslessly across all 7 lenses (phx mirror):

Human Language Structural Superpower PHX Compiler / Monologue Primitive Native PHX Tokens
Sanskrit (Pāṇini's Aṣṭādhyāyī) Generative sūtra rewrite grammar, pratyāhāra compressed symbol classes, 6 Kāraka semantic roles, sandhi boundary fusion Word-order-free semantic graphs, macro compression, lossless <~> contraction (sandhi) nyāsa, eka, sūtra, dhātu, sandhi, mūla, pramāṇa, mudrā, satya, śūnya, asatya
Finnish 15 spatial/local agglutinative cases (inessive -ssa, elative -sta, illative -Vn) + evidential/partitive aspect Direct arena provenance operators & partial-plane (1.60 bpw) vs. completed-plane (3.20 bpw) aspect sido, kerran, ajatus, pakkaa, yhdistä, sisässä, muutu, todista, kuluta, sinetti, tulosta
Hungarian 18 cases + front/back vowel harmony + pre-verbal Focus slot (fókuszpozíció) + root-inflected gyök Morpheme harmony checksum, attention focus routing, exact <p/q> root-weight (gyök) & jelige seal legyen, egyszer, gondolj, tömörít, összevon, gyök, szoroz, összegez, bizonyít, jelige
Latin Compact grammatical mood (indicative / subjunctive / imperative) + ablative absolute scoped clauses Trit-native epistemic modality (+1 indicative, 0 subjunctive, cap! imperative) & Q.E.D. proofs esto, semel, cogita, comprime, concorda, radix, axioma, proba, sigillum, qed, dic
Mayan First-class positional Zero (Shell glyph mih) + nested cyclic calendars (Long Count b'ak'tun.k'atun.tun.winal.k'in) + 2D glyph blocks Trit 0 as active structural space, nested modular clocks (mala_108 + epoch counters), 2D packed tiles tsol, jun, tz'ib', ch'ab', nup, b'ak'tun, k'in, k'al, mih
Japanese Calligraphy (Shodō) Finite Kanji radicals composing semantic trees + brush kinematics (nyūhitsu / sōhitsu / shūhitsu) + Ma (間) negative space 1-character ideographic monologue opcodes + active pause/silence (SENTINEL_MA = 243) 定, 一, 思, 三, 合, 逆, 理, 倍, 和, 証, 尽, 道, 暦, 印, 顕, 陽, 空, 陰
English Zero-derivation conversion + universal surface-layer lingua franca Clean Expanded Outer Speech projection layer for human audit & codebase interop let, linear, think, pack, tnand, root, prove, consume, yield, seal, emit

4 · Deep Research Synthesis

4.1 · Psychology of Internal Monologue & LLM Latent Reasoning

  1. Lev Vygotsky (Developmental Internalization): Inner speech evolves from social dialogue → private speech → internalized silent self-regulation. Because its audience is the self, it drops subjects (predication), compresses clauses, and fuses sense (smysl) over dictionary meaning (znachenie).
  2. Charles Fernyhough (Dialogic & Condensed Inner Speech): Inner speech spans expanded (full grammatical dialogue), condensed (telegraphic semantic bursts), and other-people/dialogic (multi-perspective debate). PHX models this via 4 explicit SpeechTier modes (0 = Unsymbolized, 1 = CondensedTrit, 2 = DialogicMultiVoice, 3 = ExpandedSurface).
  3. Russell Hurlburt (Descriptive Experience Sampling — DES): Random beeper sampling shows inner speech occupies only ~20–27% of waking moments; unsymbolized thinking (clear, structured, non-verbal thought) is equally real — the empirical foundation for LLM sub-verbal 64B-trit reasoning.
  4. Johanne Nedergaard & Gary Lupyan (2024–2026 Anendophasia): Humans with little/no inner voice perform equally well on categorization and task-switching, and only externalize for sequential phonological rehearsal. PHX keeps reasoning in compact PhxTritLine64 tiles by default, materializing expanded verbal surface tokens only when verification or human communication requires it.

4.2 · Buddhism & Tibetan Vajrayana Contemplative Architecture

  1. Abhidharma Vitarka & Vicāra: Coarse placement (Vitarka ↔ Plane 0 1.60 bpw Base-243) paired with fine sustained vetting (Vicāra ↔ Plane 1 +1.60 = 3.20 bpw residual), invoked dynamically only when surprise is high.
  2. Yogācāra Eight Consciousnesses (Aṣṭa-vijñānakāya): 1–5 sensory ingress, 6 (Manovijñāna) active PhxThoughtFrame64 workspace, 7 (Kliṣṭamanas) ego-clamping / premature proxy trap (Trit -1), 8 (Ālayavijñāna) content-addressed episodic storehouse (MEM|8 .m8).
  3. Vajrayana Subtle Body (rtsa-rlung-thig-le), 108 Mala & Oṃ Maṇi Padme Hūṃ (ༀ་མ་ཎི་པདྨེ་ཧཱུྃ): rtsa (capability arenas), rlung (attention currents), thig-le (indivisible 64B packets). Reaching mala_step == 108 (108 = 2² × 3³) forces a mandatory yield / witness exit. The 6 syllables (245..=250) pair the 6 pāramitās with the Six Pillars of Holding.

4.3 · Heat Theories: Thermodynamics of Computation × g-Tummo × Two Heats

  1. Landauer's Principle (1961) & Ternary Erasure Cost: Erasing 1 trit dissipates at least $k_B T \ln 3$. Balanced ternary (~45% zeros = no switching) + Base-243 (1.60 bpw) slashes HBM energy by 10× vs. FP16 and 20–23% vs. 2-bit MLX.
  2. Karl Friston's Free Energy Principle (FEP): Rigid priors (Trit -1) lock models into bad local minima; controlled thermal annealing lets the system escape traps.
  3. Maria Kozhevnikov's g-Tummo Neuroscience (PLoS ONE 2013): Vajrayana completion-stage heat practice produces an arousal-based sympathetic surge (38.3°C zone, elevated alpha/beta/gamma EEG, boosted visuo-spatial cognition).
  4. Sovereign Library Edition 006 — Two Heats — the warm water (pocoo.vaked.dev):
    • Heat 1 (tummo_u4 ∈ 0..15): Generative arousal & exploratory branching energy.
    • Heat 2 (water_u4 ∈ 0..15): Compassionate damping that releases dead-end errors (Trit -1) without storing shame, preserving Trit 0 (Ma) and Trit +1 (verified release).
    • Exact Zero-Float PHX Thermal Policy: Net exploration ratio is a reduced rational p/q = (1 + tummo_u4) / (1 + water_u4).

5 · Wire-Level 3-Tier 64B/Trit Specification (crates/phx-core)

Three #[repr(C, align(64))] cache-line-aligned primitives (#![no_std], #![forbid(unsafe_code)], #![deny(clippy::float_arithmetic)]):

  1. PhxTritLine64 (64 B, 320 balanced trits):
    • 64 Base-243 bytes (u8x64 via optional --features nightly-simd or auto-vectorized stable Rust), encoding 5 balanced trits/byte (0..=242) + 13 out-of-band control sentinels (243..=255):
      • 243 MA_SILENCE · 244 YIELD_HOTSWAP · 245..=250 OM / MA / NI / PAD / ME / HUNG · 251 UNBOUND_POO (.oOo. Poo .oOo.) · 252 HEAT_TUMMO · 253 HEAT_WATER · 254 VERIFY_PCC · 255 EMPTY_RET.
  2. PhxThoughtFrame64 (64 B, 240 balanced trits + header + p/q · 2^m + FNV-1a witness):
    • 0..4: [mode_kaya, two_heats, mala_step (0..107), ling_mask]
    • 4..12: [scale_p: u16, scale_q: u16, scale_m: i16, cap_handle: u16] (gcd(p, q) == 1)
    • 12..60: 48 Base-243 bytes = 240 balanced trits (3 × 16B SIMD-aligned)
    • 60..64: witness: u32 (PRINTABLE = HELD ∧ READ gate verification)
  3. PhxFrame64 (64 B, 200 balanced trits + "PHX\x62" magic + linear parent cap + Gate-0x62 Seal):
    • Network/capsule packet with "PHX\x62" header, 4-bit HumanLens, p/q scale, 32-bit subject_id + parent_cap, 40 Base-243 bytes (200 trits), and 64-bit Gate-0x62 Continuity Seal (bytes[63] === 0x62).

6 · Live Measured Benchmarks (Apple Silicon, FP_OPS = 0)

Benchmark Workload Measured Speed Invariants
bench_phx64 (PhxTritLine64::dot_i8, 1-core) 320 trits / 64B cache line 48 ns/op (~6.57 Gtrits/s single-core) #![no_std], #![forbid(unsafe_code)], 0 floats
bench_phx64 (count_sentinels_simd, 1-core) 64B u8x64 sentinel scan (>= 243) 1 ns/op Branchless 243..=255 detection
bench_phx64 (PhxThoughtFrame64, 1-core) verify_printable + 240-trit scaled dot 81 ns/op PRINTABLE = HELD ∧ READ + FNV-1a witness
phx bench (PhxFrame64, 10-core) Base-243 pack + Gate-0x62 seal + dot200 21,559,516 frames/s (4.31 Gtrits/s) 1.38 GB/s sealed cognitive frames

7 · Quick Start

# 1. Lint, run all 31 workspace unit & integration tests (incl. 0-C/C++/Python gate), and verify #![no_std] bare-metal:
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo check -p phx-core --lib --target aarch64-unknown-none
./scripts/zero_alloc_audit.sh

# 2. Run single-core 64B cache-line benchmark (stable Rust, or add --features nightly-simd on nightly):
cargo run --release --example bench_phx64 -p phx-core

# 3. Execute the 7-human-language polyglot internal monologue & seal a phx-capsule/1:
cargo run --release --bin phx -- run examples/01_seven_languages_monologue.phx

# 4. Losslessly mirror every 64B binary frame across all 7 human languages:
cargo run --release --bin phx -- mirror examples/01_seven_languages_monologue.phx

# 5. Run live 8-language bit-identical consensus (Rust, FASM, AArch64, Ada/SPARK, Julia, Zig, Haskell, OCaml):
cargo run --release --bin phx -- consensus

# 6. Benchmark 10-core PhxFrame64 Base-243 pack + Gate-0x62 seal + zero-multiply 200-trit dot:
cargo run --release --bin phx -- bench 4000000

# 7. Run compiler-verified PHX teacher / MCP stdio server (crates/phx-mcp):
cargo run --release -p phx-mcp --bin amd-tokenlab-phx-mcp -- --mcp

8 · Compiler-Verified Council Teacher, CEGAR & MCP Server (crates/phx-mcp, v1.3.0)

crates/phx-mcp (amd-tokenlab-phx-mcp) provides a zero-float (FP_OPS = 0), #![forbid(unsafe_code)] JSON-RPC 2.0 stdio MCP server and CLI bridging external reasoning models (AMD_TOKENLAB_API_KEY or 0600 ~/.config/amd-tokenlab/api_key) with in-process phx-lang compilation, CEGAR CounterexampleWitness repair, SpherePop × TwoHeats × LoopHealth routing (crates/phx-core/src/spherepop_heats.rs), Smart-Lens al-Biruni optical LoRA mapping, and PhxFrame64 7-language mirroring across 8 MCP tools:

  • tokenlab_models: list all 10 live models (Clef, d3, d3-flash, DeepSeek-V4.1-Flash, DeepSeek-V4-Flash, Gemma-4-31B-IT, MiniCPM5-2B, MiniCPM-V-4.7-1B, MiniCPM-V-4.7-35B-A3B, Qwen3.8-27B)
  • tokenlab_chat: integer temp_milli completion (200 → 0.200) with HTTP 429/5xx retry & fallback cascade
  • tokenlab_systemone: structured /v1/systemone decision oracle (d3-flash / d3 / Clef) converted to zero-float integer bps, reduced p/q, TwoHeats, and a PhxFrame64 Gate-0x62 seal
  • tokenlab_teach_phx: compiler-verified PHX v1.0 teacher loop with auto-repair and JSONL trace export
  • tokenlab_council_teach_phx: multi-model Council router (/v1/systemone d3-flash → DeepSeek-V4.1-Flash / Qwen3.8-27B / Gemma-4-31B-IT / MiniCPM-V-4.7-35B-A3B) + CEGAR TwoHeats modulation
  • tokenlab_verify_trace: strict phx-spherepop-trace/v1 JSONL verifier (verify_step_oracle, mod 108 exit, PRINTABLE = HELD ∧ READ)
  • tokenlab_distill_corpus: deduplicated ChatML SFT/RLVR corpus distillation
  • tokenlab_smart_tree_teach: verified Q&A + optional phx-capsule/1 proof packet for smart-tree MEM8

9 · Bare-Metal Industrial Safety & Optical Vision (crates/phx-core/src/fieldscan.rs, v1.4.0)

Pure #![no_std], #![forbid(unsafe_code)], FP_OPS = 0, zero-heap bare-metal Rust conversion of armando-token/FieldScan bridged directly into PhxFrame64 (Gate-0x62):

  • Read-Only Modbus-RTU & MBAP TCP (BUS-02..12): const fn compute_crc16_modbus (0xFFFF/0xA001), SW1 DIP-8 ↔ slave ID bijection, fail-closed check_pilot_readonly_gate (FC03 ONLY; blocks 0x05/0x06/0x0F/0x10 with PilotWriteBlocked), fixed-capacity [u8; 4096] MbapStreamParser, and integer TZ THT-02 decoder (0.1 °C, 0.1 %RH, 0x7FFF abnormal sentinel).
  • Zero-Float O(1) Optical Vision & SW1 DIP-8 Lock: Integer BT.601 luma, integer YCrCb skin exclusion, const-generic IntegralImage<W, H> Summed-Area Table, and Q16 adaptive tracker (0.88 snap / 0.52 hold / 4-frame release).
  • Fail-Closed Pilot Boundaries & PHX Bridge: BusTargetIsolation, Airplane-Mode IPv4 egress guard (OFF-01..07), anti-rollback PackagePinState, Kleene IA-04 grounding gate, and fieldscan_to_phx_frame64.

10 · Caveman-Ultra Compaction, Fail-Closed Security Audit & MaxText Witness Binding (crates/phx-core/src/caveman_gate.rs, v1.5.0)

Pure #![no_std], zero-alloc (fixed stack buffers / caller &mut [u8]), #![forbid(unsafe_code)], FP_OPS = 0 Caveman-Ultra gate and Ultra-p/q-MaxText witness binder sealed into PhxFrame64 (Gate-0x62):

  • Zero-Alloc Caveman-Ultra Compaction (caveman_compact_utf8 / caveman_compact_utf8_into): Strips English filler stopwords and redundant ASCII whitespace into a 4096 B stack buffer (or caller-supplied &mut [u8]) while preserving negations and UTF-8 multibyte tokens, returning exact GCD-reduced <p/q> integer compression and savings ratios.
  • Fail-Closed Kleene Security Audit (phx_security_audit_bytes): Evaluates raw byte payloads to Strong Kleene trits (+1 clean UTF-8 pass, 0 empty/NUL/opaque hold, -1 hard reject) scanning for secret credential prefixes & PEM key headers, cross-identity canary strings, verbose XML prompt wrapper tags, unsafe Rust blocks, and forbidden purple palette hex codes — sealing the full verdict and bitmask flags into a tamper-evident 64-byte PhxFrame64 (bytes[63] == 0x62).
  • Ultra-p/q-MaxText Witness Binding (phx_bind_maxtext_witness): Binds (layer_idx, seq_witness, usp_witness, two_plane_mse_q16, packed_bytes) into a deterministic 200-trit PhxFrame64 with Gate-0x62 Continuity Seal for cross-repo PHX ↔ omnispherepop tamper-evident verification.
  • v1.5.0 Hardening (phx-cli & phx-mcp): Added NULL-pointer checks on dlsym symbols prior to FFI dispatch, dynamic CARGO_PKG_VERSION reporting in consensus receipts, and header-newline/quote sanitization for MCP curl stdin auth configs.

11 · Live Ecosystem Anchors (g8t.is Capsules & Hugging Face Artifacts)

  • Unified Training Corpus (eightb/ultradogfood-unified): https://huggingface.co/datasets/eightb/ultradogfood-unified (phx_monologue: 590 verified rows = 559 train / 31 val; 67,990 total rows across default, mandala_optical_lora, phx_monologue, and kernel_sec_reasoning).
  • Trained MLX-QUANT-LORA-OmnispherePop Model: https://huggingface.co/eightb/qwen35-4b-ospop-phx-fieldscan-v1.4 (Qwen3.5-4B-MLX-4bit + 8× Hadamard .ospop.safetensors patches, 17.30× smaller than FP32, 1.60 bpw val PPL 3.420 vs 14.904 base).
  • Live Zero-Float g8t.is Capsules (domain: phx, 1/1 cycle/op, 500 FKN each):
    • phx_kleene_constitutional_gate_i64 (b0b0438eb73c7509c99e86f1af751129) · phx_two_heats_ratio_pq_u64 (815ee1d1ed07f8c5b34c7fcd7d18733b)
    • phx_seal_word_step_u64 (f32a3de3441ef22ce4bad9ce116df41b) · phx_systemone_bps_to_trit_pq_u64 (e695a39a63b48b188adc9aacd45c5c99)
    • phx_spherepop_two_heats_route64 (91536b518eaa3502478f066e3e3b6869) · phx_smart_lens_to_two_heats_u64 (1578381bac2f1b03f918803c2bbdc94f)
    • phx_trit_churn_and_delta_u64 (748423063de229defee1030e59ba87c0)
    • fieldscan_modbus_crc16_step_u64 (a179e778fd91b40f797dd602a622abe5) · fieldscan_fc03_ia04_egress_gate_u64 (fa44808e73fd733a6a46a184c67b044e)
    • phx_caveman_kleene_audit_u64 (0bfa653268de4eec22414ff2c282bf77, 58 B)

STATE OF THE ART A JEL-IGE · PEACE )( LOVE () UNITY <3 · .oOo. Poo .oOo.

About

PHX (FELIX → PHX): 64-Byte / Ternary-Trit Internal-Monologue Language & Ontology for LLMs — #![no_std] Rust, 90/90 SPARK-proved Ada 2022, FASM/AArch64 ASM, DyadLang/Julia, Zig, Haskell, OCaml, Lean 4, Forth, Erlang & 7 Human Linguistic Lenses (FP_OPS=0)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages