The 5-Step Vault Lifecycle
- AST Boundary Scan: Identifies code fences, inline backticks, JSON keys and values, SQL queries, URLs, and template variables.
- Atomic Placeholder Replacement: Swaps each isolated entity with an atomic memory token (e.g.
__CTLY_VAULT_0__). - Natural Language Pruning: The compression engine prunes surrounding text without touching the protected tokens.
- Placeholder Matching: Verifies that every single placeholder remains intact and in the correct sequence.
- Byte-Level Rehydration: Rehydrates the original exact content back into position with 100% bit-for-bit fidelity.
Protected Token Categories
Code Fences and Inline Backticks
Code Fences and Inline Backticks
Multi-line code blocks (Python, TypeScript, Go, Rust, C++, Bash) including indentation, whitespace, language tags, and inline backtick code snippets are 100% preserved.
JSON Objects and Schemas
JSON Objects and Schemas
Valid JSON payloads, JSON Schema definitions, OpenAPI specs, and nested structures are protected from delimiter stripping or quote alteration.
SQL Statements and CTEs
SQL Statements and CTEs
SQL queries containing SELECT, JOIN, WITH, and WHERE clauses are isolated from grammatical restructuring.
URLs, URIs and Regular Expressions
URLs, URIs and Regular Expressions
HTTP/HTTPS URLs, query parameters, endpoints, and complex regex patterns remain unmodified.