@intutic/gate / core / Snapshot
Class: Snapshot
Constructors
Constructor
ts
new Snapshot(): Snapshot;Returns
Snapshot
Properties
| Property | Type | Default value | Description |
|---|---|---|---|
ageDays | number | 0 | - |
decideRules | DecideRecord[] | [] | 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. |
digest | string | 'none' | - |
droppedRules | number | 0 | Regexes that would not compile. |
formatVersion | number | 1 | The snapshot format its @format record names; 1 without one. |
generatedAt | string | '' | - |
mcpAllowlist | McpAllowlistRecord | null | null | The 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. |
mcpRegistry | McpRegistryRecord | null | null | The 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. |
opaque | boolean | false | The 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. |
ruleRecords | GateRuleRecord[] | [] | 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. |
rules | Rule[] | [] | - |
ssoGroups | SsoGroupRecord | null | null | The 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. |
state | SnapshotState | 'absent' | - |
workspaceId | string | '' | - |
Accessors
healthMessage
Get Signature
ts
get healthMessage(): string;Returns
string