ZQK Core Architecture

ZQK Core is the foundational system kernel for sovereign human-agent software engineering. It provides an offline-first, mathematically auditable operating system designed to orchestrate autonomous AI agents alongside human developers.


Architectural Foundations

The architecture is built on four core pillars:

  1. Knowledge Kernel & Graph System of Record: - Process states, roadmaps, workstreams, requirements, acceptance criteria, and backlog items are represented as first-class, semantically typed system objects. - Objects maintain explicit cryptographic integrity and lineage tracking via Content-Addressable Storage (CAS).

  2. The Cellular Membrane: - Enforces isolation between autonomous agent operations and persistent system state. - Mutations pass through the Semantic Intake Reasoner (zqk intake / zqk object create) to guarantee schema validation and prevent unauthorized state drift.

  3. Deterministic Scheduler & Task DAG: - High-performance, concurrent scheduler daemon (zqk scheduler) manages background loops, maintenance tasks, and automated test-bundle sweeps. - Fail-closed execution semantics ensure tasks cannot silently fail or corrupt system state.

  4. Native Agent Mesh & MCP Integration: - Implements native Model Context Protocol (MCP) server endpoints (zqk mcp) for seamless bidirectional pairing with IDE agents (Cursor, Claude Code, Cline, Windsurf). - Agent seating, role specialization, and workspace directive synchronization (zqk system agent-onboard) bridge local workspaces and kernel memory.


Architectural Specifications


Deterministic Testing & Race Verification

  • Race Detection & Teardown Safety: All background test workers run with explicit lifecycle synchronization (sync.WaitGroup, channels, or goroutinelabels.Pool) rather than arbitrary sleeps.
  • Race Gate Verification: Native verification via zqk test run ensures test suites execute cleanly under -race without memory races or orphaned goroutine leaks.

Next Steps