Skip to main content
POST
Compare two sets of traces against PSMG v3.0's accuracy criteria, window by window (`ss.power.trace_comparison/1`)

Authorizations

x-api-key
string
header
required

Required when the deployment sets SS_REQUIRE_AUTH=1

Body

application/json
async
boolean

true: run as a job and answer 202 with job_id, poll and events; the finished job's result is this route's body without the inline result (read result_key's blob). false: always inline. Left out: inline up to the estimated work of 2e6 point-elements (SS_POWER_DYNAMICS_SYNC_WORK; about two dozen bench tests), a job above: the whole bench, a whole clause check and a long CCT search are jobs

candidate
object

The candidate traces, inline. Give it or candidate_key

candidate_key
string

The key of stored traces

criteria
object

Accuracy criteria in DY15's shape (ss.power.accuracy_criteria/1); left out, PSMG v3.0's as shipped

reference
object

The reference traces (ss.power.traces/1), inline; the bands are referenced to it. Give it or reference_key

reference_key
string

The key of stored traces (what power_dynamics_traces_import answers)

settings
object

alignment {time: {rule: none | shift (shift_s) | events (reference_t_s, candidate_t_s) | detect (element, quantity, threshold, quiet_s)}, resample: {rule: reference_rows | uniform (step_s)}}, channels [{element, quantity, candidate_element, location (connection_point | internal), capacity, ibr_connection_point}], windows [{start_s, kind (controlled | uncontrolled), label}], settle_span_s (0.5), min_change (1e-4), max_lag_s (0.2), lag_step_s (0.001)

Response

study, schema, result_key (BLAKE3 of the result's canonical bytes, the crate's own hash; blob_uri reads it, report_uri is its certificate, which verify_result runs again), request_key, documents (each document the study read, by content key), network {key, name, counts}, tables, upstream, summary, work (the estimate the lane and the job threshold read), result_inline, series (how the series were cut), and result: reference, candidate (summaries), criteria (cited), alignment, settings, windows, channels [{element, quantity, windows [{start_s, end_s, kind, checks [{criterion, verdict, ...}], errors}]}], not_judged, verdict, findings, note

The response is of type object.