Phase Intake

Feeding Phase Samples

Phase samples are the foundation for Resonance Calculus metrics. Follow this checklist to integrate the SDK or feed harness and keep your controller tuned.

1. Connect to the agent intake endpoint

Phase samples are ingested via POST /intake/phase on the agent. Ensure RESONANCE_API_KEY is configured and include it as the Authorization Bearer token.

2. Capture phase offsets

Each sample should contain the service identifier, timestamp, and current phase offset (radians). Use the SDK helper `sdk.metrics.recordPhase(...)` or your own instrumentation.

3. Stream at steady intervals

Aim for at least one phase sample per service every 60 seconds while tuning. Higher frequency sampling accelerates band compliance stabilization.

4. Use the bench harness for testing

`node resonance/bench/feed_phases.js --count 120 --interval 1000` will simulate traffic and confirm the intake key is accepted before you connect production systems.

5. Monitor dashboards

R(t), band compliance, and coherence scores will respond within minutes once samples flow. Leave the dashboard tab open to build historical context.

Helpful Resources