arrow_back Back to Guides
Architecture Level 07

The Kernel — Constitution of PARA Workspace

Understand the Kernel: 11 Invariants (hard rules), 9 Heuristics (soft conventions), and Schemas that govern every workspace instance.

The Kernel — Constitution of PARA Workspace

The Kernel is the rule system that governs all PARA Workspace instances. Think of it as a constitution — it defines the fundamental laws that every workspace, agent, workflow, and CLI tool must follow.

🧠 What is the Kernel?

The Kernel consists of three components:

ComponentPurposeChange impact
Invariants11 hard rules that must NOT be violatedMAJOR version bump
Heuristics9 soft conventions, strongly recommendedMINOR/PATCH bump
SchemasFile format contracts (tasks, catalog, decisions)Must update templates

The canonical Kernel lives in the repo at kernel/. When installed in a workspace, it exists as a read-only snapshot at Resources/ai-agents/kernel/.

[!IMPORTANT] Only /para-audit is authorized to read the full Kernel during normal operations. Other workflows interact with Kernel rules indirectly through the Rule Layers system.


⚖️ The 11 Invariants

Breaking any invariant is a non-compliant action. Changes require an RFC + MAJOR version bump.

#RuleSummary
I1PARA Directory StructureEvery workspace must have exactly 4 top-level dirs: Projects/, Areas/, Resources/, Archive/
I2Hybrid 3-File Task ModelTasks managed via backlog.md (canonical), sprint-current.md (Hot Lane), done.md (append-only)
I3Project NamingProject slugs must use kebab-case: my-saas-app
I4Project InactivityNo active tasks in backlog = inactive project
I5Areas — No Runtime TasksAreas/ contains stable knowledge only, no active work
I6Archive Is Cold StorageImmutable. Kernel and agent do NOT read Archive during normal operations
I7Seeds Are Raw Ideas.beads/seeds.md contains ideas, not tasks. Messy is OK
I8No Loose FilesEvery file must belong to a PARA pillar. No content at workspace root
I9Resource ImmutabilityResources/ai-agents/ is read-only. Never write back to Resources
I10Repo ↔ Workspace SeparationRepo has governance. Workspace has user data. Never mix
I11Workflow Language ComplianceAgent must use preferences.language from .para-workspace.yml for all output

Key Invariant Details

I2 — Hybrid 3-File Model is the most frequently referenced invariant:

  • backlog.md is the operational authority — only file where tasks are created/edited/deleted
  • sprint-current.md is the Hot Lane — agent writes quick tasks directly
  • done.md is append-only — receives completed tasks from /end
  • /end is the sole sync point — reconciles Hot Lane + strategic tasks

→ Learn: Hybrid 3-File Architecture


📐 The 9 Heuristics

Heuristics are soft conventions — strongly recommended but adaptable based on context.

#HeuristicPurpose
H1Naming Conventionskebab-case for files, PascalCase for PARA dirs, camelCase for code
H2Context Loading PriorityProject contract → Rules → Artifacts → Beads → Areas → Resources
H3VersioningSemVer for all projects. PATCH = agent autonomy, MINOR/MAJOR = approval required
H4Project StructureStandard layout: project.md, sessions/, artifacts/, .beads/
H5Beads LifecycleCreate when needed → messy during project → graduation review before archive
H6VCS & Git BoundariesGit only affects repo/. Session logs and artifacts are not committed
H7Cross-Project ReferencesPrefer shared resources over cross-project dependencies
H8Workflow CompatibilityDeclare kernel_compat range for each workflow
H9Governed Library Catalogscatalog.yml with id, name, version, kernel_min for each governed item

H2 in Action — Context Loading Priority

1. Project Contract (project.md)          ← Always first
2. Project Rules (.agent/rules/)          ← Lazy-loaded via Trigger Index
3. Workspace Rules (.agent/rules/)        ← Via rules.md index
4. Artifacts (tasks/, plans/)             ← Token-optimized reads
5. Active Memory (.beads/)                ← For recurring issues
6. Abstract Knowledge (Areas/)            ← Stable SOPs
7. Reference (Resources/)                 ← Read-only templates

→ Learn: Rule Layers & Trigger Index


🔄 Kernel Change Process

Change typeProcessVersion impact
InvariantRFC required → community review → mergeMAJOR bump
HeuristicPull request → review → mergeMINOR or PATCH bump
SchemaMust update templates + examplesDepends on scope

All changes must pass test vectors in kernel/examples/ (valid + invalid compliance vectors).

Kernel in Workspaces

  • Installed as a read-only snapshot at Resources/ai-agents/kernel/
  • Version tracked in Resources/ai-agents/VERSION
  • Updated via ./para update — which also runs migration scripts if needed

📚 References


→ Learn: Governance & Decision Standards → Learn: Rule Layers & Trigger Index → Learn: Hybrid 3-File Architecture