SmartMemory
GET
/memory/policy/bundle

Compile this workspace's active decisions into a Stratum policy bundle.

Errors: 400 invalid_selector: a status other than active was requested. 400 workspace_scope_missing: the caller has no resolvable workspace. 400 workspace_mismatch: the compiled bundle is not this workspace's. 400 invalid_as_of: as_of is not an ISO 8601 instant (SM-ASOF-DECISIONS-1).

Authorization

AuthorizationBearer <token>

Send Authorization: Bearer <token>. The token is either a Clerk session JWT or a SmartMemory API key (prefix sm_live_, sm_test_, or legacy sk_).

In: header

Query Parameters

workflow?|

Workflow selector echoed back in the bundle's selector. P1 does not filter rules by workflow. It records what the bundle was compiled for.

domain?|

Exact decision-domain filter (contract: selector.domain).

status?array<string>|

Repeatable lifecycle selector (contract: selector.status, default ['active']). P1 compiles active decisions only. Any other value is a 400 invalid_selector rather than a silently narrowed bundle.

as_of?|

ISO 8601 instant (SM-ASOF-DECISIONS-1). Answer as of then: the decisions held at that instant (supersession and retraction honoured), each labelled as_of_resolution. Absent = now. An unparseable value is a 400.

Response Body

application/json

application/json

curl -X GET "https://example.com/memory/policy/bundle"
{}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}