Component evidence

Reference Frame Effect Classifier (src/ref-frame-effect.ts)

agent-device · packages/contracts/src/ref-frame-effect.ts · typescript · MIT
aiinfracliuilang:typescripttag:device

Classifies daemon command ref-frame lifetimes as preserve, may-invalidate, or delegated to ensure session state integrity. Use when building command-line or device control interfaces.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/callstack/agent-device | License: MIT | Copyright 2026 Callstack
// Provided via justclaw.it.com; keep this notice with the code.
// ADR 0014 ref-frame effect classification. A plain string union so
// `core/command-descriptor/` can classify commands without importing the daemon.

/**
 * ADR 0014 session ref-frame lifetime. Declares how a daemon command relates to
 * the session's authorized ref frame:
 * - `preserve`: no successful path changes device-visible element identity, so
 *   the frame carries through untouched (snapshots, reads, inventory, ...);
 * - `may-invalidate`: some successful path crosses a device side effect, so the
 *   leaf must expire the frame at its side-effect seam when that path runs;
 * - `delegated`: an orchestrator (batch/replay/t

... (truncated -- full source via MCP)