Create a new document
Fast path for a strictly new ordinary document, task, or decision.
Canonical documents live in Git. The Go server applies identity and resource permissions. Workers process durable jobs and return every result through the same governed API.
SPEC.mdFast path for a strictly new ordinary document, task, or decision.
Existing documents, deletes, skills, policies, and learning output use review.
The same loop works for Cloudflare Agents SDK, Codex SDK, or another conforming runtime.
Git holds company knowledge. SQL makes that knowledge fast to find and protects operational workflows. Embeddings add optional semantic retrieval. Every access path still passes through the Go server.
A document is a Git-tracked file with a stable ID and validated metadata. Its path may change without changing its identity. Text normally uses Markdown with frontmatter. Connected providers map their records into the canonical types instead of creating provider-specific types. A transcript is always a meeting.
organization
contactproject · task · decision
workflow · skillmessage · meeting
calendar_eventfile · object_manifest
access_policy · tombstoneGit stores every canonical document version, policy, skill, provenance record, and tombstone. A strictly new ordinary document can use a validated direct commit. Existing-document changes, deletions, policies, skills, and learning output use a pull request. Merge is the approval event.
This plane contains current document records, versions, paths, types, aliases, wiki links, relationships, provenance, tombstones, and projected access policy. Only the commit projector can write it. The Go server uses a read-only identity for filters, relationships, authorization, and lexical retrieval.
This plane changes without a document merge. It stores principals, roles, sessions, API keys, immediate resource grants, encrypted secrets, sync cursors, leases, cron jobs, agent runs, checkpoints, proposals, approval decisions, exception queues, action ledgers, and the audit outbox. Its writer cannot change projected documents.
Embeddings contain chunks from accepted document versions. Each chunk carries document ID, commit, type, date, source, project, ACL scope, language, and model version. The index is disposable and can be rebuilt from Git. Permission filters or an authorized candidate list apply before results leave the trusted boundary.
Images, video, audio, and other large binaries do not enter ordinary Git history. Git stores a small object manifest with an immutable content-addressed object ID. Authorized reads use the API and may receive a short-lived signed URL.
The Go server is the only supported user, agent, and app access layer. It authenticates the caller, checks route capabilities, evaluates resource access, filters retrieval, coordinates runs, serves the UI and API documentation, and creates correlated audit records. Agents never receive SQL or vector-store credentials.
Schedulers create due runs. Workers acquire fenced leases, use short-lived capabilities, heartbeat, checkpoint, and return outputs through the API. Ingestion workers make one source item per document and one commit per cycle. Learning and agent workers create proposals or user queue items. The commit projector updates SQL. The optional embedding worker updates vectors only after projection.