← All Foundational Objects/Prefix: vaul_16 Fields
AI-Agent-First Documentation
/SKILL.md
Prompt your Agent: "Query and mutate records on the 'vault' table (ID prefix 'vaul_') using platform.records and platform.query.sql, ensuring all lookup fields use plain string IDs."

Vault (vault)

The `Vault` object represents a static, relational directory node (folder) within the Valstorm Virtual File System (VFS). Instead of traditional physical folders, Vaults are database records that other records "symlink" to via a lookup array. By chaining Vaults together via the `parent_vault` relationship, Valstorm constructs a dynamic, hierarchical file system where moving or renaming a folder only requires a single record update.

Python SDK & PlatformContext Example
# 1. Query vault via parameterized ANSI SQL
rows = await platform.query.sql("SELECT id, name, created_date FROM vault ORDER BY created_date DESC LIMIT 25")

# 2. Create vault record (Generates 'vaul_...' Base62 ID)
created = await platform.records.create("vault", [
    {"name": "Example Vault"}
])
Field API NameType / FormatLookup TargetFlagsDescription
idstring—Id
namestring—Name
created_datestringdate-time—Created Date
modified_datestringdate-time—Modified Date
created_bystringlookup→ user (string ID)Created By
modified_bystringlookup→ user (string ID)Modified By
ownerstringlookup→ user (string ID)Owner
shared_withlistsharing—systemShared With
parent_vaultstringlookup→ vault (string ID)A self-referential lookup pointing to the parent `Vault` ID. Used to traverse up the hierarchy tree. Null indicates a root node.
computed_pathslist—Read-only cached array of absolute string paths. Useful for fast exact-match or prefix-match RAG queries without recursive graph traversal.
descriptionstringrich-text—Semantic context regarding the directory's intended contents, useful for automated filing or classification decisions.
iconstringicon— UI-only metadata field storing the string identifier for the frontend icon library (e.g., Material Icons).
colorstringcolor—UI-only metadata field storing a hex code or color token string.
vault_pathslist—systemVault Paths
is_publicboolean—requiredWhether everything in it is publicly accessible
taglistmulti-select—Categorize vaults with global tags to enable multi-agent knowledge binding and querying.