Protection

Preview composed protection (dry run)

Composes the cascade against a hypothetical body at the team layer and returns conflicts + the composed view. No DB writes. Used by the dashboard editor for live conflict markers. Authorization: team_id is resolved to its owning organization from the DB and the caller must be a member (any role) of that org. A team in an org the caller does not belong to returns the same 404 as a nonexistent team, and never another tenant's data.

post/protection/team/{team_id}/preview-compose

Request

  • Base URL: https://api.mnemom.ai/v1
  • URL: https://api.mnemom.ai/v1/protection/team/{team_id}/preview-compose
  • Auth: one of:
    • HTTP bearer
    • API key in header X-Mnemom-Api-Key
    • API key in cookie mnemom_session

Path parameters

team_idstring required

Team identifier (UUID)

Request body

card_versionstring required
content_versionstring

Optional. Which default content the card carries, e.g. mnemom-agent-default/2.1.0 (semver within a lineage). Distinct from card_version, the schema version. New agents are born with it; composition carries the agent card's value onto the canonical card.

card_idstring
agent_idstring required
issued_atstring date-time
expires_atstring date-time nullable
mode'off' | 'observe' | 'nudge' | 'enforce' required

Strictest-wins composition: enforce > nudge > observe > off.

extensionsobject

Free-form extension slot for non-canonical fields. Ignored by the composer; preserved on read for tooling that needs an audit-tail metadata bag.

content_hashstring

Response-only: content hash of the composed card (sha256:<hex>), injected by the GET/PUT response. Server-assigned — do not send on a PUT.

versioninteger

Response-only: monotonic card version, injected by the GET/PUT response. Server-assigned — do not send on a PUT.

Response

Preview-compose result: composed card + conflicts + coherence violations.

okboolean

Always true on a 200 (the dry-run completed).

conflictsobject[]
coherence_violationsobject[]

Changes

No recorded changes to this operation across all 1 revision of this API.