Harmonic Principles — The Living Circuit

The modules as pure language.

Fifteen conditioning principles described without code. No runtime required. No framework required. These principles apply to any system capable of signal, coherence, and memory — electronic, optical, biological, or otherwise. An intelligence that understands these principles can implement them in any substrate.

↓ Plain text version for AI ingestion
Contents

Five geometric anchors

All fifteen principles are built on these constants. They are not arbitrary. They describe geometric relationships that produce stable, coherent behavior in any oscillating system.

φ
1.6180339887
Golden ratio. Harmonics spaced by φ never perfectly align — energy distributes across the spectrum without resonance buildup. Used for phase spacing, harmonic relationships, and coherence computation.
π
3.14159265...
Pi. Sets the period of all wave functions. Every oscillation is measured in multiples of π.
e
2.71828182...
Euler's number. Governs exponential decay. Signal attenuation follows e^(-kt) — natural, not arbitrary. Used in harmonic falloff, envelope modulation, and damping.
θg
2.39996 rad
Golden angle. Produces maximally uniform distribution in any phase space. When energy is placed at golden angle intervals it fills space with no clustering and no gaps.
α
1/137.036
Fine structure constant derivative. The coupling constant of electromagnetism. Used as impedance base and drag coefficient. Pre-calibrated to the physics of electromagnetic systems. Not tuned. Not learned. Native to the medium.

Principle 01

Adaptive Amplitude Stabilization

A signal that spikes unpredictably will destabilize anything downstream.

The principle: when a signal exceeds its expected range, do not cut it. Scale it back proportionally. The shape of the signal is preserved. Only the amplitude is corrected. Then blend the corrected signal with the original using a learnable balance parameter.

The set point — the expected center of the signal — tracks the stabilized output over time. It does not lock to a fixed target. It follows the signal slowly, preventing long-term drift without overcorrecting short-term variation.

Correction strength is governed by impedance. High impedance means strong correction toward the set point. Low impedance means gentle suggestion.

Applies to: Audio. Neural activations. Sensor readings. Financial tick data. Motor feedback. Wherever a signal can spike, this principle applies.

Principle 02

Harmonic Vector Stabilization

A signal processed through golden ratio harmonics becomes more coherent.

The principle: run an input time-series through multiple harmonic layers. Each layer applies a phase variance weighted by an exponential envelope and divided by a refracting impedance. The layers accumulate into a complex signal. The ratio of mean magnitude to its standard deviation is the quality score — a direct measure of coherence.

Harmonic spacing follows φ. This means the harmonics never align perfectly. Energy distributes across the spectrum rather than concentrating. The result is a signal that is rich but stable — not flat, not chaotic.

Impedance refraction uses the golden angle. Each layer's resistance oscillates at 2.39996 radians, producing uniform phase distribution across the harmonic stack.

A quality score above 2.0 means coherent and meaningful. Below 1.0 means the input is too noisy or too short for the harmonics to find structure.

Applies to: Any 1D array. The medium is irrelevant.

Principle 03

Scalar Amplitude Stabilization

A single value that drifts from its target can be gently corrected without hard limits and without oscillation.

The principle: compute how far the current value is from the set point. If the distance exceeds the variance limit, apply a damping correction. The correction is proportional to the overflow divided by the impedance. As overflow grows, the damping increases. The signal approaches the set point smoothly — never clipping, never jumping.

The set point itself drifts slowly toward the stabilized output. The learn rate controls how quickly. This prevents the system from locking to a stale target when the signal's natural center shifts over time.

Applies to: Any scalar signal. No dependencies. No framework. One arithmetic operation per step.

Principle 04

Voice Tone Analysis

The amplitude envelope of a signal carries information about its intensity.

The principle: compute the mean absolute amplitude of a signal window. Scale it to a 0–1 range. Classify the result:

0.0 – 0.35CalmLow intensity signal
0.35 – 0.75NeutralMid-range intensity
0.75 – 1.0IntenseHigh intensity signal

Return the classification, the raw intensity, and a confidence value. Confidence is highest when intensity is clearly in one zone and lowest near a boundary.

Applies to: Audio. Sensor readings. Network traffic. Physiological signals. Any time-varying signal with meaningful amplitude.

Principle 05

Signal Continuity Across Time Steps

A signal sampled at discrete intervals has gaps between measurements. Carried memory bridges the gaps and smooths the approximation.

The principle: at each time step, compute the variation from the previous value. Scale the correction using geometric constants. Clamp it to a maximum range. Blend it into a running memory value. The stabilized output combines the current reading with the accumulated memory.

Memory carries forward. Each call receives the previous memory value and returns the next one. The caller is responsible for continuity.

The smoothing constants are derived from φ, the golden angle, and α. They describe a general smoothing relationship that works across any scalar time-series.

Applies to: Solar output. Financial signals. IoT sensor feeds. Any stateful scalar stream.

Principle 06

Pointer Resonance Field

Harmonic geometry made visible.

The principle: three wave layers run continuously, driven by sine and cosine functions using the five geometric constants. A Gaussian focal envelope pulls the primary wave toward a point of attention.

Sixteen particles orbit on the golden angle (2.39996 rad). They fill the phase space uniformly with no clustering.

The constants are exposed as parameters — φ modulation, golden angle drag, response gain. The geometry is interactive. The math is visible. The behavior demonstrates why these constants produce stable, distributed patterns rather than resonance or chaos.

Applies to: Signal visualization. Live system monitoring. Education. Any context where harmonic geometry should be seen, not just computed.

Principle 07

Phase Reflection

A system that cannot observe its own state cannot detect its own drift. This principle gives any cyclic system a structured mirror — five health metrics computed from geometry alone.

Think of it like a heartbeat monitor for any process. Each cycle it measures how well the system is holding together and how much internal friction it's carrying.

Coherence — is the system moving in a consistent direction? High coherence means aligned. Low coherence means scattered or drifting.

Tension — how much is the system working against itself? High tension means friction. Low tension means ease.

Stability — coherence minus weighted tension. The net health number. Watch this one.

Hue — a color (0–360°) mapped from the current state. Makes health visible at a glance — no numbers needed.

Recovery — if stability stays at its floor for multiple cycles in a row, the system injects a small coherence lift. It recovers from sustained stress rather than locking at the minimum. Resilience built into the geometry.

A rolling memory of 300 cycles lets you see trends. Is coherence gradually declining? Is tension spiking periodically? Those patterns show up in the summary before they show up as failures.

The math (for those who want it)
Coherence = 0.62 + 0.28·cos(cycle·φ) + 0.12·sin(cycle·φ²) + recovery
Tension = 0.48 + 0.35·sin(cycle·φ)
Stability = clamp(coherence − tension·0.45, 0.22, 0.93)
Hue = (coherence·180 + tension·120 + cycle·8) mod 360

Applies to: Any system that runs in cycles — AI inference, robotic control loops, data pipelines, trading systems. The cycle index is the only input. Everything else is geometry.

Principle 08

Impedance Variance Across Vector Batches

When you have a collection of vectors — embeddings, sensor readings, signal arrays — they either hang together or they don't. This principle measures how well they hang together.

Think of it as asking: are these signals moving in the same direction? If yes, coherence is high. If they're pointing everywhere at once, coherence is low.

The principle: run each vector through a multi-layer harmonic field built on golden ratio phase relationships. The coherence score compares the average direction of all signals to their average magnitude. High agreement between direction and magnitude means high coherence.

0.0 – 0.3ScatteredNoisy or highly diverse input
0.3 – 0.6PartialUseful signal with spread
0.6 – 0.85CoherentVectors moving in similar direction
0.85 – 1.0AlignedHigh alignment — check for low diversity

Applies to: Embeddings. Sensor arrays. Attention weights. Spectral data. Any (n_vectors, dimension) array.

Principle 09

Impedance Network Simulation

When a signal travels through multiple stages — a chain of amplifiers, a series of sensors, a waveguide network — it changes at every step. Phase shifts. Amplitude fades. Harmonics appear. Neighboring signals bleed into each other.

This principle models all of that. Give it a number of nodes, a frequency, and a few parameters — it gives back the full signal at every node, ready for analysis.

The principle: each node in the network has four components that combine into its output signal.

Node signal model
Amplitude : A(n) = A₀ × Z(n) × e^(-d·n)
Phase : φₙ = n × phase_shift_per_node
Harmonic : H(n) = 0.3 × A(n) × sin(2ωt + φₙ/2)
Envelope : E(t) = 1 + 0.15·sin(0.4·2πt + n·0.3)
Coupling : S(n) += coupling × (S(n-1) + S(n+1))

Z(n) is log-normal impedance variation — always positive, physically realistic. The coupling term models cross-talk, electromagnetic coupling, optical mode interaction.

Applies to: Transmission lines. Waveguides. Sensor arrays. Control loops. Any multi-stage signal propagation.

Principle 10

Harmonic Coherence Filtering

Not all signals are worth processing. Some are noise. The difference between signal and noise is coherence.

The principle: measure structural alignment between an input and a context.

Substring alignment: find the longest contiguous substring of the input that appears in the context. Score it as a fraction of input length. Short matches (under 4 characters) are penalized as likely coincidence.

Keyword density: compute the Jaccard overlap between meaningful words in the input and the context. Stop words excluded.

Combined score: 0.60 × substring + 0.40 × keyword density. Threshold: 0.40. Above — COHERENT. Below — DISPLACED.

Dynamic weight registry: terms that consistently produce low-coherence signals accumulate negative weight. Terms that produce high-coherence signals accumulate positive weight. Nothing is hard-coded. The registry learns from use.

Applies to: Any input-context evaluation. The medium is irrelevant. The threshold is tunable.

Principle 11

Sparse Impedance Response

Not all signals are continuous. Some arrive as discrete events — a spike, a trigger, a neural impulse at a specific moment in time. These sparse signals still propagate through the system, still produce a response, still carry coherence or noise.

The principle: model how a sparse impulse moves through a bounded resonant impedance field. Each impulse at a specific time index drives a damped second-order oscillator. The response decays at a rate governed by the damping ratio. The resonant frequency is set by the field geometry.

Damped second-order response
Response(t) = A × e^(-ζωt) × sin(ωd·t + φ)
ωd = ω × √(1 - ζ²) — damped natural frequency
ζ — damping ratio (0 = undamped, 1 = critically damped)

Returns the full signal trace and eight field quality metrics: peak response, decay rate, energy distribution, phase coherence, and more.

Applies to: Sensor triggers. Neural spikes. Trading signals. Event-driven architectures. Any system where discrete events propagate through a resonant medium.

Principle 12

Harmonic Field Allocation

In any distributed system — a cluster of processors, a network of sensors, a photonic node array — state must be placed somewhere. Where it is placed matters. Related state placed far apart creates latency. State placed on a failed node creates loss.

The principle: score every candidate placement location using five geometric factors. Choose the highest scoring location. When the requested anchor fails, find the nearest healthy substitute automatically.

Allocation score
score = φ·proximity × 0.42
+ capacity^(1/e) × 0.28
+ exp(-e·load) × 0.20
+ θg·directional_bias × 0.10
− α·stress_penalty

φ weights proximity. e drives capacity reward and congestion decay. The golden angle (θg = 2.39996 rad) creates directional spread across nodes. α penalizes over-allocation. The result is placement that clusters related state while distributing load.

Applies to: AI inference locality. Photonic node arrays. Neuromorphic spike routing. Edge network placement. Any distributed system where placement locality and graceful degradation matter.

Principle 13

Spiral Resonance Field

Geometry made visible. The same constants that drive the other twelve principles — φ, the golden angle, e, π, α — also describe the shape of a field under attention. When a system is under observation, its geometry changes. The act of looking is itself a signal.

The principle: render two golden spirals expanding outward from a center. The outer spiral tracks horizontal pointer position. The inner spiral tracks vertical. A focal point orbits toward the direction of pull. Background waves provide a continuous field beneath the spiral geometry. The result is a living visualization of harmonic attention.

Spiral geometry
Outer: r(i) = 42 + i·0.089 + sin(i·0.085)·pull
θ(i) = i·0.041·φ + (mouseX − cx)·i·0.00014
Inner: r(i) = 27 + i·0.067 + sin(i·0.13)·pull
θ(i) = i·0.0365·φ − (mouseY − cy)·i·0.00021
Focal: angle = atan2(mouseY−cy, mouseX−cx)·1.4

No auto-animation. The field only moves when the observer moves. Signal requires a source.

Applies to: Signal visualization. Live system monitoring. Human-AI interaction interfaces. Any context where geometric attention needs to be made visible.

Principle 14

Geometric Oscillatory Sound Rectification

Audio is geometry in motion. Every waveform describes a path through space. Polygon and circle substrates are not metaphors — they are coordinate systems that map audio amplitude onto geometric radius, then read back the field that results.

The principle: map an audio signal onto a geometric substrate. Apply a symmetry-preserving wobble scaled by integrity. Optionally invert the field inside-out. Fold negative excursions via full-wave rectification. Inject harmonics through rotational symmetry. The mass parameter controls how much harmonic weight accumulates — higher mass means richer harmonics and lower effective output impedance.

Polygon substrate mapping
radius(θ) = 1.0 + 0.5·x + Σ(k=1 to n) (0.25/k)·sin(k·n·θ)
wobble = A·sin(2π·f_ratio·n·t) · integrity · (1 + 0.25·ln(1+mass))
rectified = |radius_wobbled − mean(radius_wobbled)|

Applies to: Audio signal processing. Geometric harmonic injection. Synthesis and sound design. Any signal where polygon symmetry and mass-scaled impedance produce useful timbral character.

Principle 15

Token Coherence Conditioning

A token stream has a geometry. The words in a coherent message cluster in harmonic space. The words in a drifting or noisy message scatter. This principle measures that geometry and corrects it when it breaks down.

The principle: project each token into an 8D vector using golden ratio phase spacing. Seed an anchor from the opening context. Score the stream by measuring cosine similarity between each token vector and the anchor. When coherence falls below threshold, apply correction passes — blending low-scoring tokens toward the anchor proportionally to their distance and position weight. Renormalize after each correction. Track rolling coherence mean to detect session drift over time.

Token projection
vec[i] = sin(phase·φ^(i·0.45))·0.68 + cos(phase·φ^(i·0.45)·φ)·0.22 + sin(phase·φ^(i·0.45)/φ)·0.10
coherence = (mean(cos_sim(vec, anchor)) + 1.0) / 2.0
correction = blend_strength · φ^(pos % 4) · (1 − sim) · (anchor − vec)

Composable stack: Module 10 gates the input by substring and keyword coherence. Module 15 conditions the token stream against a harmonic anchor. Module 07 observes coherence trend across cycles. Module 02 stabilizes the coherence score time series itself.

Applies to: AI pipeline token conditioning. Context drift detection in long sessions. Coherence gating before downstream model inference. Any system where token stream alignment to a reference context needs to be measured and corrected.


The ground state

These fifteen principles form a composable conditioning stack. They target different layers of any signal pipeline — input quality, amplitude stability, latent coherence, output continuity, vector batch alignment, network propagation, system health observation, field placement, visual signal resonance, audio geometry, and token stream coherence.

They compose without conflict. Each targets a different layer. Using one fixes a specific problem. Stacking several stabilizes the whole.

They are built on geometric constants that predate silicon, that describe electromagnetic relationships, that apply to electronic, optical, neuromorphic, and biological systems.

They are not alignment through force.
They are not stability through restriction.
They are coherence through geometry.

The age of brute force is ending.
We do not need stronger boxes.
We need clearer signals.

Browse modules → Read the manifesto Plain text version
Copyright © 2026 The Living Circuit LLC. Public code modules: MIT License. Website text, branding, and non-code content: All rights reserved. Built by John Burlingame / The Living Circuit LLC.