Developer Adoption

PMS4U Runtime SDK

SDK surfaces are introduced to accelerate implementation adoption. The runtime model remains authority-first, admissibility-first, and evidence-bound before consequence.

npm install @pms4u/runtimepip install pms4u

JavaScript package

import { evaluateAction } from "@pms4u/runtime";

const result = await evaluateAction({
  action: "release_order",
  authority: { actor: "sig_ops", role: "CARSHUNTER" },
  evidence: { traceId: "trc_01", stateHash: "sha256:..." },
});

console.log(result.decision); // ALLOW | DENY | REVIEW | DEFER

Python package

from pms4u import evaluate_action

result = evaluate_action(
    action="release_order",
    authority={"actor": "sig_ops", "role": "CARSHUNTER"},
    evidence={"trace_id": "trc_01", "state_hash": "sha256:..."}
)

print(result["decision"])  # ALLOW | DENY | REVIEW | DEFER

SDK release scope

LayerPurpose
ContractUnified request/decision schema aligned to constitutional runtime.
AdaptersHTTP adapter for governance-core plus local simulator mode.
Evidence helpersReceipt/hash helpers for continuity and replay references.
Tracing hooksTrace ID propagation and decision metadata helpers.

Next: publish package manifests and versioned changelog with conformance tests against governance-core decision contracts.

Related surfaces