Skip to content

@intutic/gate / core / Snapshot

Class: Snapshot ​

Constructors ​

Constructor ​

ts
new Snapshot(): Snapshot;

Returns ​

Snapshot

Properties ​

PropertyTypeDefault valueDescription
ageDaysnumber0-
decideRulesDecideRecord[][]The decide rules whose @decide records decoded, rule and hash checked, in snapshot order. Each one's fallback line is skipped only for a caller that evaluates decide rules (LoadSnapshotOptions); a record that does not decode is not here, and its fallback line refuses. Empty on a snapshot that fails its integrity check.
digeststring'none'-
droppedRulesnumber0Regexes that would not compile.
formatVersionnumber1The snapshot format its @format record names; 1 without one.
generatedAtstring''-
mcpAllowlistMcpAllowlistRecord | nullnullThe workspace's mcpAllowedServers list (the @mcp_allowlist record), or null when it set none. Null on a snapshot that fails its integrity check, as mcpRegistry is.
mcpRegistryMcpRegistryRecord | nullnullThe workspace's MCP server registry decisions (the @mcp_registry record), or null when it made none. Null on a snapshot that fails its integrity check, on which the gate admits no MCP server at all (mcpSnapshotUnverifiedRefusal): a deleted record looks like one never set, so neither record can be vouched for.
opaquebooleanfalseThe workspace is OPAQUE (the @intervention_mode record): a refusal on workspace policy tells the agent OPAQUE_REFUSAL_MESSAGE, not the rule, and the event keeps the rule. Kept on a snapshot that fails its integrity check, since it only ever hides text and never allows a call.
ruleRecordsGateRuleRecord[][]The rule records (@rule) that decoded, in snapshot order: qualified prerequisites, enforced scopes and plan approval, which Tier R evaluates. Each one's fallback line is skipped only for a caller that evaluates rule records (LoadSnapshotOptions); a record that does not decode is not here, and its fallback line refuses. Empty on a snapshot that fails its integrity check.
rulesRule[][]-
ssoGroupsSsoGroupRecord | nullnullThe workspace's SSO-group policy and the member this snapshot was issued to, or null when the workspace has no group policy. On a snapshot that fails its integrity check the member is null — groups unknown — so an edited group list in the file clears nothing.
stateSnapshotState'absent'-
workspaceIdstring''-

Accessors ​

healthMessage ​

Get Signature ​

ts
get healthMessage(): string;
Returns ​

string

The circuit breaker for AI agents