Independent Developer Submission

Deterministic Physical State Attestation

A zero-retention, tick-bounded visual and logical ledger powered by the Edge Metal Gemini 3.7 Flash engine and local Gemma 4 models. Built entirely in low-overhead, #![no_std] Rust, to eliminate physical-world disputes with immutable cryptographic evidence.

Read the Source Read the Thesis
The Human Connection

Sovereign Parity. Painted on Steel Arches.

In construction, painting, and property inspection, subjective interpretation of physical conditions is the source of endless administrative friction and costly rework. Large state entities and corporate developers hold the capital, the legal teams, and the centralized cloud data. Local communities, First Nations on Treaty land, and independent operators end up arguing over raw photographs—turning evidence back into opinion.

Surface Ledger is the culmination of 23 years of built-environment protective coatings and inspecting experience in Alberta, translated into bare-metal software. By tokenizing the visual appearance space into discrete, repeatable visual standards (VARS) and analyzing them via advanced multimodal AI and local surface normal recovery, I collapse subjectivity into deterministic, non-repudiable state proofs.

"Without a shared, locked vocabulary, photos become arguments rather than evidence. I painted the Walterdale Bridge steel arches and inspected with NACE Level 2 rigor. I solve this not at runtime via expensive litigation, but at rest, upstream."
SM
Sean Morin
Half-Cree Founder & Systems Engineer
The Mathematical Foundation

The Pararity Theorem

A balanced-ternary coordinate system is the unique minimal container that can hold a choice, not just a toggle. Binary {0, 1} is just presence vs absence. Balanced ternary {-1, 0, +1} establishes a true center—equilibrium.

n = 2m + k

Orbit Decomposition

An involution $f$ on a discrete lane of $n$ states pairs elements off. The states that survive the fold are the fixed points $k$ (the pararity number). If $n$ is even, $k$ must be even, losing the neutral zero-state. Only odd $n=3$ guarantees $k=1$, giving my balanced trit a place to rest.

3^k Composite Depth

The S13 State Vector

By composing multiple arity-3 lanes instead of collapsing one, the total state space is $3^k$, which is always odd. A true, drift-free all-zero origin survives at every composite depth. The Sieve-13 (S13) token represents the physical state on a 13-lane balance.

Temp = 0.0

The Ground State

A temperature parameter of $0.0$ in my Gemini API models is not an absence of temperature; it represents the fixed-point residue of cognitive tuning. It serves as the model's equilibrium, shutting out generative hallucination along the validation path.

The Client Stack

Shape-from-Shifting Offline Normal Recovery

To guarantee high-precision inspections completely offline in remote, zero-bandwidth zones (such as agricultural fields or rural bridge structures), I run an on-device Photometric Stereo Solver.

  • 1 Guided Capture: The mobile client guides the user to tilt their phone in an arc, capturing surface lighting from 3+ angles using the camera flash.
  • 2 Inverse Lambertian Solver: The device solves the linear system $G = (L^T L)^{-1} L^T I$ to recover true 3D surface normal vectors $N = G/\|G\|$ for each pixel.
  • 3 NACE Failure Curvature: Surface gradients compute the mean curvature $H$. If a blister or defect exceeds $0.5\text{mm}$, it is localized and tokenized into S13.
  • 4 Gemini context-caching: For legal disputes, S13 is uploaded to Gemini with cached VARS dictionaries, returning an audited classification for $\$0.000020$ per query.
9:41
OFFLINE_MODE
100%
Move phone in a smooth arc
1
2
3
4
Capture Quality 0%
RECOVERED NORMALS
ALIGNMENT STATE: WAITING FOR ANGLE 1
Nx, Ny, Nz: [0.00, 0.00, 1.00]
Mean Curvature H: 0.00mm (PENDING)
Distance optimal (35cm)
Lighting ambient calibrated
!
Tilt phone to capture Angle 1
Clean Systems Craftsmanship

The Rust Core: `forge-envelope`

A look inside the bare-metal, no_std library designed for zero dynamic heap allocation, complete safety guarantees, and deterministic evidence chain linkage.

crates/forge-envelope/src/lib.rs 100% no_std
// Initialize a new, rolling evidence hash chain
let mut chain = EvidenceChain::new();

// Pack a high-dimensional S13 state token inside a tick-bounded envelope
let env = EphemeralEnvelope::new(b"s13_v1_hinge_fail_741_992_012_000".to_vec(), 0, 60);

// Resolve the envelope before deadline (at Tick 10)
let link = env.resolve(10, &mut chain);

// The resulting link carries the attested state, while raw bytes are cryptographically zeroized
assert!(matches!(link.record(), Disposition::Attested(_)));
assert!(link.verify());

// Verify that link_b properly follows link_a chronologically
assert!(link_b.follows(&link_a));
Live Verification & Cloud-Scale Benchmarks

10,000 Physical Inspectors across Alberta

Deterministic load testing executing millions of O(1) WeaverArbiter DFA cycles, active wire-level sabotage repudiation, and Edge Metal Gemini 3.7 Flash Context Caching.

Throughput
12.78M ops/sec
1,000,000 DFA cycles / 0.078s
Weaver Arbiter Latency
39.77 ns / op
< 1 μs SLA Passed (25x headroom)
Sabotage Repudiation
100.0% intercepted
40,000 / 40,000 active attacks blocked
Hotpath Allocations
0 Bytes
Compute-at-Rest `#![no_std]` verified
Gemini 3.7 Flash Context Cache Vertex AI Edge
Corpus Dictionary: 450,000 tokens (VARS 23yr)
Audit Queries Tested: 25,000 queries
Cache Hit Rate: 99.8% (24,950 hits)
Uncached Cost: $843.75
Cached Cost: $212.20
Cost Reduction: 74.85% Savings
Alberta Municipal Inspection Streams (10 Sites) 1,000 inspectors / site
Edmonton Walterdale Bridge 100k tokens
Calgary Bow River LRT Green Line 100k tokens
Fort McMurray Base Plant Coating 100k tokens
Red Deer River Bridge Abutment 100k tokens
Lethbridge High Level Viaduct 100k tokens
Medicine Hat Gas Corrosion Log 100k tokens
Grande Prairie Wapiti River Bridge 100k tokens
Banff Cascade Mountain Viaduct 100k tokens
Intercepted Sabotage & Tampering Attempts (Real-Time Ledger)
100% Cryptographic Repudiation
Attack ID Attack Vector Target Municipal Site Threat Signature Repudiation Mechanism Status
#001 Predecessor Hash Collision Attack Edmonton Walterdale Bridge CHAIN_DISCONTINUITY_PREV_HASH_MISMATCH ChainLink::follows() strict predecessor check BLOCKED
#002 Unanchored Genesis Evaluation Attack Edmonton Walterdale Bridge UNANCHORED_GENESIS_ZERO_HEAD_BREACH WeaverArbiter Provenance Gate repudiation BLOCKED
#003 Reentry Post-Expiry Memory Snoop Edmonton Walterdale Bridge ZEROIZE_READ_ON_EXPIRED_PAYLOAD EphemeralEnvelope proactive .wipe() on read BLOCKED
#004 Retroactive Tick Timestamp Forgery Edmonton Walterdale Bridge TAMPER_TICK_MUTATION_DETECTED ChainLink::follows() verification failure BLOCKED
50-Year Infrastructure Prognosis Engine

Multi-Factor Degradation Tensor

Physical infrastructure doesn't fail in a vacuum. Simulate 50 years of combined macroeconomic inflation, northern Canadian freeze-thaw extremes, municipal budget deferrals, and skilled trade labor shortages with rework cascades.

Simulation Parameters
1. Macro Construction Inflation: 3.85% / yr
1.50% (Nominal) 8.00% (Hyper-Escalation)
2. Climate & Freeze-Thaw Stress: 1.80x (Alberta Prairie)
1.0x (Temperate) 3.0x (Sub-Arctic Chloride Ingress)
3. Government Budget Deferrals: 1.40x (Moderate Cuts)
1.0x (Fully Funded) 2.5x (Severe 4-Yr Freeze Cycles)
4. Skilled Trades Deficit & Rework: 35% Deficit (2.3x Rework)
5% (Certified Master Guild) 65% (Severe Labor Shortage)
Year 50 Health
0.0%
CriticalEscalation
Cost Multiplier
6.61x
Replacement Factor
50-Year Trajectory (18,250 Ticks)
Condition ($S_{CR}$) Replacement ($C_r$) Debt Avalanche
Deterministic Weaver DFA Arbitrations Compute-at-Rest

When government deferrals delay maintenance past Year 15 under freeze-thaw stress, the condition curve experiences a non-linear cliff. Latent defects from junior trade rework accelerate chloride ion ingress by 2.3x, triggering the WeaverArbiter to transition from StructuralEquilibrium to CriticalEscalation.

Ready to Bring Trust to the Physical Layer?

Sign up as an early validator, builder, or inspector to keep track of the open-source Surface Ledger release and the Gemini API integration timeline.