Developers
Programmatic access to the CLP Platform. Register stakeholder positions, assert speculative demand, resolve certified lineage and commit consensus from any runtime, over a single versioned REST interface.
Authentication
Every request is authenticated with a directional bearer token issued against an alignment vector. Tokens are scoped by direction, and requests whose direction header does not match the token's scope are rejected at the attestation gateway before reaching the platform.
curl https://api.corvanelateral.com/v3/consensus \
-H "Authorization: Bearer clp_live_7f2a9c…e41" \
-H "X-CLP-Direction: bidirectional" \
-H "X-CLP-Quorum: implicit"/v3/stakeholdersRegister a stakeholder position
Registers a stakeholder as a position vector and returns its contribution to the organizational resultant. Positions are immutable once registered; subsequent changes are expressed as counterweights.
Parameters
namestringrequired- Display name of the stakeholder.
position.magnitudenumberrequired- Intensity of the position, normalized to [0, 1].
position.bearingnumberrequired- Direction of the position in degrees from the stated strategy.
position.couplingnumber- Coupling coefficient to adjacent positions. Defaults to 0.5.
{
"name": "Regional Operations",
"position": { "magnitude": 0.82, "bearing": 214.0, "coupling": 0.6 }
}{
"id": "stk_8f2a41",
"resultant_contribution": { "x": -0.672, "y": -0.459 },
"equilibrium_delta": 0.814,
"status": "registered"
}/v3/stakeholders/{id}/counterweightApply a calibrated counterweight
Introduces a complementary position sized to cancel the target stakeholder's contribution to the resultant, then damps the system toward equilibrium at the requested ratio.
Parameters
strategystringrequired- complementary | distributed | synthetic
damping_rationumber- Target damping ratio ζ. Defaults to 1.0 (critical).
{
"strategy": "complementary",
"damping_ratio": 1.0
}{
"counterweight_id": "cw_19c3e0",
"net_vector": 0.0,
"settling_time": "P2.4Q",
"residual_oscillation": 0.004
}/v3/forecasts/{id}/demandAssert speculative demand
Emits a speculative demand signal for a forecast ahead of upstream producer commit. The platform holds the forecast in the settlement layer until the lead interval elapses.
Parameters
lead_intervaldurationrequired- ISO 8601 duration. Maximum P14D.
confidence_floornumber- Minimum commit confidence. Defaults to 0.95.
{
"lead_interval": "P7D",
"confidence_floor": 0.98
}{
"forecast_id": "fc_2291",
"status": "accepted",
"projected_arrival": "-P6DT21H",
"settlement": "held"
}/v3/lineage/{metric}Resolve certified lineage
Returns the certified ancestry of a metric, expanded to the requested depth. Pass depth=saturation to expand until the provenance graph stops growing.
Parameters
depthinteger | saturation- Generations to expand. Defaults to saturation.
compactboolean- Apply edge-preserving compaction. Defaults to true.
GET /v3/lineage/revenue_q3?depth=saturation&compact=true{
"metric": "revenue_q3",
"generations": 11,
"edges": 312,
"terminal": { "cell": "D14", "status": "change_controlled" },
"load_factor": 0.87
}/v3/consensusCommit a position by consensus
Commits a proposal through the Quorum-Free Consensus Layer. In implicit mode, participants concur unless they register an objection within the concurrence window.
Parameters
proposalstringrequired- Proposal reference.
participantsstring[] | *required- Participant IDs, or * for the full stakeholder graph.
modestring- implicit | explicit. Defaults to implicit.
{
"proposal": "prop_q1_roadmap",
"participants": "*",
"mode": "implicit"
}{
"committed": true,
"votes_cast": 0,
"concurrence": 1.0,
"attestation": "9f2c41d0…e1"
}/v3/observability/monitors/{id}Withdraw a monitor
Schedules a monitor for retirement along the service's attenuation curve. The monitor is fully withdrawn once the service's intrinsic confidence clears the configured floor.
Parameters
curvestring- linear | graduated | logarithmic. Defaults to graduated.
DELETE /v3/observability/monitors/mon_4471?curve=graduated{
"monitor": "mon_4471",
"status": "attenuating",
"attenuation": 0.29,
"intrinsic_confidence": 0.94
}Rate limits
Requests are metered in consensus units (CU). A single-participant request consumes one CU; requests addressed to the full stakeholder graph consume one CU per participant, amortized across the concurrence window.
| Tier | Requests | Consensus units | Burst |
|---|---|---|---|
| Advisory | 600 / min | 40 CU / min | 2× |
| Enterprise | 6,000 / min | 400 CU / min | 4× |
| Sovereign | Unmetered | Negotiated by quorum | Bidirectional |
Errors
- 409
alignment_conflict - The submitted position collides with an existing vector of equal magnitude and opposite bearing.
- 422
lineage_unsaturated - The requested depth exceeds the certified provenance graph.
- 425
too_early - The request arrived ahead of its own demand signal.
- 503
quorum_pending - The concurrence window has not yet closed. Retry after the interval in the Retry-After header.
SDKs
Official libraries wrap authentication, direction scoping and concurrence-window retries.
import { Platform } from '@corvanelateral/platform';
const clp = new Platform({ token: process.env.CLP_TOKEN, direction: 'bidirectional' });
const cw = await clp.stakeholders.counterweight('stk_8f2a41', {
strategy: 'complementary',
dampingRatio: 1.0,
});
console.log(cw.netVector); // 0from corvanelateral import Platform
clp = Platform(direction="bidirectional")
lineage = clp.lineage.resolve("revenue_q3", depth="saturation")
print(lineage.terminal.cell) # D14Webhooks
Subscribe an endpoint to receive signed events as platform state changes.
consensus.committed- A proposal has been committed by the consensus layer.
stakeholder.equilibrated- The organizational resultant has fallen below the equilibrium threshold.
lineage.saturated- A metric's provenance graph has reached saturation.
forecast.arrived- A held forecast has been released from the settlement layer.
monitor.withdrawn- A monitor has completed its attenuation curve.