from oscillink.core.lattice import OscillinkLatticeCreate a lattice from anchor vectors Y (N x D).
Set the focus vector and optional per‑node gates b.
Attach an SPD chain prior (path Laplacian) or remove it.
Implicit step using CG (Jacobi preconditioner). Diagnostics returned.
Exact ΔH + per‑node components + null points + diagnostics.
Pass/fail verdict, weakest link, per‑edge z‑scores, chain coherence gain.
Return top‑k items ranked by blended coherence + alignment, MMR‑diversified.
When using the cloud API server, responses may include these headers when enabled via env flags:
-
Adaptive profiles:
X-Profile-Id(also present asmeta.profile_id), gated byOSCILLINK_ADAPTIVE_PROFILESandOSCILLINK_ADAPTIVE_LEARN. -
Bundle caching (/bundle):
X-Cache: HIT|MISS; on HIT alsoX-Cache-HitsandX-Cache-Age. Gated byOSCILLINK_CACHE_ENABLE, withOSCILLINK_CACHE_TTLandOSCILLINK_CACHE_CAP. -
Endpoint rate limits (per-endpoint, best-effort): when enabled per endpoint, responses include
X-EPRL-Limit,X-EPRL-Remaining, andX-EPRL-Resetwhile 429 responses includeRetry-After.- CLI endpoints:
/billing/cli/start: gated byOSCILLINK_EPRL_CLI_START_LIMITandOSCILLINK_EPRL_CLI_START_WINDOW(seconds)/billing/cli/poll/{code}: gated byOSCILLINK_EPRL_CLI_POLL_LIMITandOSCILLINK_EPRL_CLI_POLL_WINDOW(seconds)
- Per-IP global limiter headers:
X-IPLimit-*whenOSCILLINK_IP_RATE_LIMIT>0and window viaOSCILLINK_IP_RATE_WINDOW. - Global rate limiter headers:
X-RateLimit-*when enabled via runtime config (get_rate_limit).
- CLI endpoints:
See README section "Cloud feature flags and headers (beta)" for details.