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.

API v3.4https://api.corvanelateral.com/v3

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"
POST/v3/stakeholders

Register 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.
Requestapplication/json
{
  "name": "Regional Operations",
  "position": { "magnitude": 0.82, "bearing": 214.0, "coupling": 0.6 }
}
Response200 OK
{
  "id": "stk_8f2a41",
  "resultant_contribution": { "x": -0.672, "y": -0.459 },
  "equilibrium_delta": 0.814,
  "status": "registered"
}
POST/v3/stakeholders/{id}/counterweight

Apply 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).
Requestapplication/json
{
  "strategy": "complementary",
  "damping_ratio": 1.0
}
Response200 OK
{
  "counterweight_id": "cw_19c3e0",
  "net_vector": 0.0,
  "settling_time": "P2.4Q",
  "residual_oscillation": 0.004
}
POST/v3/forecasts/{id}/demand

Assert 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.
Requestapplication/json
{
  "lead_interval": "P7D",
  "confidence_floor": 0.98
}
Response200 OK
{
  "forecast_id": "fc_2291",
  "status": "accepted",
  "projected_arrival": "-P6DT21H",
  "settlement": "held"
}
GET/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.
RequestHTTP
GET /v3/lineage/revenue_q3?depth=saturation&compact=true
Response200 OK
{
  "metric": "revenue_q3",
  "generations": 11,
  "edges": 312,
  "terminal": { "cell": "D14", "status": "change_controlled" },
  "load_factor": 0.87
}
POST/v3/consensus

Commit 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.
Requestapplication/json
{
  "proposal": "prop_q1_roadmap",
  "participants": "*",
  "mode": "implicit"
}
Response200 OK
{
  "committed": true,
  "votes_cast": 0,
  "concurrence": 1.0,
  "attestation": "9f2c41d0…e1"
}
DELETE/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.
RequestHTTP
DELETE /v3/observability/monitors/mon_4471?curve=graduated
Response200 OK
{
  "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.

TierRequestsConsensus unitsBurst
Advisory600 / min40 CU / min2×
Enterprise6,000 / min400 CU / min4×
SovereignUnmeteredNegotiated by quorumBidirectional

Errors

409alignment_conflict
The submitted position collides with an existing vector of equal magnitude and opposite bearing.
422lineage_unsaturated
The requested depth exceeds the certified provenance graph.
425too_early
The request arrived ahead of its own demand signal.
503quorum_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.

TypeScriptnpm install @corvanelateral/platform
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); // 0
Pythonpip install corvanelateral-platform
from corvanelateral import Platform

clp = Platform(direction="bidirectional")

lineage = clp.lineage.resolve("revenue_q3", depth="saturation")
print(lineage.terminal.cell)  # D14

Webhooks

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.