Phase-Lock Engine
4D Market Synchronization
- • RingBuffer with O(log n) temporal lookup
- • SLERP interpolation for 6-plane rotations
- • Stereoscopic data bifurcation (Chart + CPE)
- • Sub-frame phase-lock at Now - LatencyBuffer
PPP Engineering Status • Paul Phillips · Clear Seas Solutions
PPP is an internal toolset maintained by Paul Phillips. This document is the single source of truth for what the current build does, how to operate it, and where each capability lives in this repository—no partner language, no sales copy, just the implementation.
Phase-Lock Engine
4D Market Synchronization
Hypercube Runtime v2025.10
WebGL transport stack
Calibration Suite
Dataset automation
Sonic Geometry
Quaternion-coupled telemetry
The figures below summarise what the current toolchain has demonstrated during internal QA on a 2025 workstation-class laptop with an RTX 3070. They are not guarantees—performance depends on the dataset, browser, and GPU configuration.
≈60 FPS
Visual transport
Hypercube aims for VSync-limited playback. On an RTX 3070 auto-stream scenes held ≈60 FPS while rendering six-plane rotations and the spinor overlay.
Validate it yourself:
PPP_CONFIG.exposeApi !== false) call PPP.sonicGeometry.engine?.getPerformanceMetrics() while playback is active.64 Channels
Synchronized ingest
DataMapper and the recorder pipeline accept 64 scalar channels—the limit defined in scripts/constants.js—and mirror them into shader uniforms and sonic telemetry.
Where it is defined: see DATA_CHANNEL_COUNT in scripts/constants.js and the mapping loop in scripts/app.js.
Watch for: exceeding the limit will truncate values; update the constant and shader uniforms together if you need more streams.
Multi-context
WebGL fan-out
Local load tests spawned 20+ contexts for calibration capture without renderer crashes; memory footprint grows with recorder buffers.
Reproduce: launch multiple console tabs or embed instances while monitoring GPU memory in the browser task manager.
Notes: document multi-context findings in DEV_TRACK.md; throttle recorder retention if you notice slowdowns.
Relevant modules: LiveQuaternionAdapters.js, liveTelemetry.js, telemetry schemas.
Try this: feed a recorded IMU dataset through the recorder/player pair, then compare spinor overlays against INS ground truth to evaluate drift.
Relevant modules: SonicGeometryEngine.js, SpinorTopologyWeave.js, topology sample.
Try this: replay a calibration manifest in headless mode (headlessRunner.js) and feed the topology stream into your CI regression harness.
window.PPP when enabled) supports automated reporting and dataset packaging for downstream analytics.Relevant modules: mappingPresets.js, CalibrationDatasetBuilder.js, calibration summary.
Try this: define presets in PPP_CONFIG.mappingPresets, run the calibration toolkit, and snapshot overlays to compare variations between production lots.
Relevant modules: SpinorContinuumConstellation.js, constellation sample, live telemetry tests.
Try this: export a manifest, load it within an agent sandbox, and map the continuum payload into your policy embeddings to evaluate multi-agent coordination.
The iframe streams hypercube-core-webgl-framework.html?mode=embed. In embed mode PPP auto-streams synthetic data, keeps the console lock active, and hides the operator controls.
Use the expandable reference items below to understand what the full console exposes when launched directly.
The textarea (#dataInput) accepts JSON arrays. Imported values pass through DataMapper, which normalises length, clamps ranges, and maps channels to shader uniforms.
Mapping presets live in scripts/mappingPresets.js; the selector (#mappingSelect) swaps between them without reloading.
applyDataArray with the provided values or generate a seeded pattern.#statusMessage and #uniformPreview mirror the renderer uniforms for auditing.
DataRecorder captures channel arrays plus uniform snapshots. DataPlayer replays them with timeline scrubbing, loop control, and optional uniform reapplication.
setTimelineDisplay keeps elapsed time and total duration visible.
The WebSocket and Web Serial adapters live in scripts/LiveQuaternionAdapters.js. Buttons flip connection state; status labels report latency, reconnect attempts, and dropped frames.
applyLiveFrame, ensuring channel counts do not exceed the configured limit.liveTelemetry, which aggregates min/max latency and frame counts for dashboards.
SonicGeometryEngine derives resonance, signal, transduction, manifold, topology, continuum, lattice, and constellation payloads. Toggle analysis/audio via #sonicGeometryToggle.
getLastSummary() to share coherence, gate, and drift status at a glance.PPP.sonicGeometry.on* listeners clone payloads so consumers cannot mutate shared state.Calibration components orchestrate scripted motion plans. Use the sequence selector to run canonical captures; dataset builder compiles parity manifests and narrative insights.
renderer.captureFrame() while recording calibrated channel frames.PPP.calibration.dataset manifests and enables a download button once generation completes.CalibrationInsightEngine.
The monitor canvas charts live averages and peaks; DevelopmentTracker records annotated milestones. Both surfaces help QA runs remain auditable.
PPP.setMonitorHighlight and PPP.setMonitorSmoothing while the API is exposed.PPP.recordDevelopmentEntry(), keeping release notes co-located with the runtime.Need the full operator surface? Open hypercube-core-webgl-framework.html directly. The embed mode remains read-only by design.
Phase-Lock is the temporal synchronization layer that binds real-time market data streams to PPP's 4D rendering pipeline. It ensures that every animation frame displays data from a consistent point in time, with smooth SLERP-interpolated rotations across all six 4D planes.
TimeBinder (The Loom)
RingBuffer with O(log n) binary search. Phase-locks rendering at Now - LatencyBuffer.
GeometricLerp (The Smoother)
Quaternion SLERP + Rotor4D for mathematically correct 6-plane 4D rotation interpolation.
StereoscopicFeed (Data Prism)
Bifurcates data into Left Eye (2D chart) and Right Eye (4D geometry) with crosshair sync.
System Reference
Problem statement, architecture, math foundations, configuration
API Reference
Classes, methods, TypeScript types, usage examples
Architecture
Diagrams, memory layout, state machines, benchmarks
System Comparison
How Phase-Lock relates to every other PPP component
Launch the Phase-Lock Live App to see the system running with the full PPP HypercubeRenderer, driven by simulated market data.
PPP is being shaped as an intermediate language for machine perception—something that lets synthetic agents translate between raw sensor feeds, geometric intuition, and symbolic policy. The stack aims to make geometric cognition as accessible as language-based reasoning.
The long-term goal is ubiquity: a toolchain that any data-driven system—LLM-based agents, swarm controllers, or scientific workflows—can use to translate between raw measurements and an adaptable, stereoscopic understanding of environment and intent. Everything shipped here is a step toward that Rosetta stone; documented capabilities reflect what exists today, and speculative items are clearly marked for ongoing validation.
PPP.recordDevelopmentEntry().The calibration toolkit converts canonical motion plans into reproducible datasets, preserving parity across the visual transport and sonic geometry engines.
Reference artefacts: `samples/calibration/ppp-calibration-dataset-summary.json`, `samples/calibration/ppp-calibration-insights.json`.
Quaternion spinor analysis mirrors the visual transport, enabling robotics and multimodal teams to ingest harmonic descriptors even when audio is muted.
Sample payloads ship in `samples/telemetry/*.json`; refer to `tests/sonicGeometryEngine.test.js` for regression coverage.
window.PPP_CONFIG before loading the bundle to register callbacks, presets, or telemetry hooks.npm test to validate calibration, sonic, and telemetry suites before distributing artifacts.Contact: Paul Phillips · Clear Seas Solutions — for sandbox credentials, dataset publishing, and live ingest coordination.
PPP processes rotations across six planes simultaneously, doubling the degrees of freedom compared with conventional 3D stacks while sustaining synchronized visual and sonic transport.