System Architecture & Zero-Trust Whitepaper

How Desk7 isolates LLM drafting from live production databases using the Model Context Protocol (MCP), surgical Gutenberg AST parsing, and cryptographic audit receipts.

Zero-Trust Security Model: Why We Never Give Passwords to LLMs

Frontier foundation models are exceptional drafting engines but fundamentally vulnerable to prompt injection, hallucinated queries, and erratic writes. Traditional WordPress automation plugins connect LLMs directly to MySQL or grant Administrator REST API application passwords. One hijacked prompt can truncate tables or deface your entire network.

Desk7 enforces an airtight security perimeter: The AI execution container has zero outbound network access to your production WordPress installations. It can only propose delta changes within a sandboxed PostgreSQL staging environment. Writes to WordPress occur exclusively through the Model Context Protocol (MCP) Adapter after cryptographic human approval.

The 4-Layer Defense Architecture

1. AI Sandbox Isolation: LLM agents generate proposed block deltas against an AST model in memory. No database credentials are ever exposed.

2. Deterministic AST Rule Validator: Python AST engine runs mandatory policy verification (legal disclaimers, regex checks, banned terms) in pure code.

3. Human Review & SHA-256 Sign-off: Reviewers inspect visual diffs. Every approved delta receives an immutable cryptographic digest.

4. Zero-Trust MCP Adapter: The official WordPress MCP adapter executes atomic writes only as Staging Drafts. Never directly to production live posts.

Surgical Gutenberg AST Parser: Preserving Custom Layouts & ACF

Generic tools treat WordPress post_content as unstructured text or markdown, stripping CSS classes, dropping custom block attributes, and corrupting ACF field blocks. Desk7 treats Gutenberg as an Abstract Syntax Tree (AST).

AST Node Isolation

We parse the block tree and tag editable nodes (paragraphs, table cells, review ratings) while locking opaque layout containers, shortcodes, and script wrappers.

Byte-for-Byte Preservation

Block comment JSON attributes (uniqueIDs, styling tokens, alignment props) are validated before and after updates. If a byte fails validation, the write aborts automatically.

Idempotent Receipts

Every update operation is idempotent: applying the same patch multiple times results in the identical post state with zero duplicate blocks or ghost revisions.

Review Our Complete Security & Integration Specs

Book an enterprise technical session with our systems architect to review threat modeling, MCP endpoints, and staging benchmarks.