Skip to content

Commit 7d2a718

Browse files
committed
v3.6 docs: 14 pages (2,598 lines) — comprehensive release documentation
operator.md, auth.md, web-shell.md, subagent.md, streaming.md, extends.md, consensus.md, graph.md, sessions.md, task-engine.md, agent-teams.md, changelog.md, introduction.md, index.md. Each page explains WHY + logical analysis sections. Docs nav dropdown, improved sidebar grouping.
1 parent cdfd681 commit 7d2a718

15 files changed

Lines changed: 2176 additions & 597 deletions

docs/.vitepress/config.mts

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ export default withMermaid(defineConfig({
2121
siteTitle: 'Concept Kernel',
2222

2323
nav: [
24+
{
25+
text: 'Docs',
26+
items: [
27+
{ text: 'v3.6 (Current)', link: '/v3.6/introduction' },
28+
{ text: 'v3.5-alpha6', link: '/v3.5-alpha6/introduction' },
29+
{ text: 'v3.5-alpha3', link: '/v3.5-alpha3/introduction' },
30+
{ text: 'v3.4', link: '/v3.4/introduction' },
31+
]
32+
},
2433
{
2534
text: 'Ontology',
2635
items: [
@@ -48,8 +57,9 @@ export default withMermaid(defineConfig({
4857
]
4958
},
5059
{
51-
text: 'Auth & Web',
60+
text: 'Infrastructure',
5261
items: [
62+
{ text: 'CK.Operator', link: '/v3.6/operator' },
5363
{ text: 'Authentication', link: '/v3.6/auth' },
5464
{ text: 'Web Shell', link: '/v3.6/web-shell' },
5565
]
@@ -58,28 +68,31 @@ export default withMermaid(defineConfig({
5868
text: 'Claude Integration',
5969
items: [
6070
{ text: 'CK as Subagent', link: '/v3.6/subagent' },
61-
{ text: 'Streaming via NATS', link: '/v3.6/streaming' },
71+
{ text: 'Streaming', link: '/v3.6/streaming' },
6272
{ text: 'EXTENDS + CK.Claude', link: '/v3.6/extends' },
6373
]
6474
},
6575
{
66-
text: 'Governance',
76+
text: 'Governance & Knowledge',
6777
items: [
68-
{ text: 'Consensus Loop', link: '/v3.6/consensus' },
78+
{ text: 'CK.Consensus', link: '/v3.6/consensus' },
79+
{ text: 'Ontological Graph', link: '/v3.6/graph' },
6980
]
7081
},
7182
{
72-
text: 'Changelog',
83+
text: 'Planned Features',
7384
collapsed: true,
7485
items: [
75-
{ text: 'v3.5.3 -- v3.5.12', link: '/v3.6/changelog' },
86+
{ text: 'Multi-User Sessions', link: '/v3.6/sessions' },
87+
{ text: 'Task Execution Engine', link: '/v3.6/task-engine' },
88+
{ text: 'Agent Teams', link: '/v3.6/agent-teams' },
7689
]
7790
},
7891
{
79-
text: 'Ontology Files',
92+
text: 'Changelog',
93+
collapsed: true,
8094
items: [
81-
{ text: 'v3.5-alpha6 (Turtle)', link: '/ontology/v3.5-alpha6/' },
82-
{ text: 'v3.4 (Turtle)', link: '/ontology/v3.4/' },
95+
{ text: 'Full Changelog', link: '/v3.6/changelog' },
8396
]
8497
},
8598
{
@@ -91,6 +104,13 @@ export default withMermaid(defineConfig({
91104
{ text: 'v3.4', link: '/v3.4/introduction' },
92105
]
93106
},
107+
{
108+
text: 'Ontology Files',
109+
items: [
110+
{ text: 'Browse Ontology', link: '/browse/' },
111+
{ text: 'v3.5-alpha6 (Turtle)', link: '/ontology/v3.5-alpha6/' },
112+
]
113+
},
94114
{
95115
text: 'Community',
96116
items: [

docs/v3.6/agent-teams.md

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
---
2+
title: Agent Teams -- Multi-Kernel Coordination (Planned)
3+
description: How multiple concept kernels will operate as concurrent Claude Code subagents, each with its own identity, working on coordinated tasks.
4+
---
5+
6+
# Agent Teams
7+
8+
::: warning Planned Feature
9+
This feature is specified in SPEC.CKP.v3.5.4.delta.md (D3) and planned for v3.5.16. It is not yet implemented. It depends on Claude Code Agent Teams (currently experimental) stabilizing.
10+
:::
11+
12+
## The Problem: One Kernel at a Time
13+
14+
The `/ck` command (v3.5.8) spawns a single subagent with one kernel's identity. This works for focused conversations: "talk to Core about its actions" or "ask ComplianceCheck to validate the fleet."
15+
16+
But real operational tasks involve multiple kernels:
17+
- **Deploy a new feature**: ComplianceCheck validates the ontology, Operator deploys the kernel, Core aggregates the results
18+
- **Governance review**: Consensus evaluates the proposal, ComplianceCheck validates constraints, CK.Claude provides AI review
19+
- **Fleet migration**: Every kernel in the fleet needs its CK loop updated, validated, and redeployed
20+
21+
These tasks require coordination between kernels, not sequential conversations with individual ones.
22+
23+
## The /ck-team Command
24+
25+
```bash
26+
# Spawn a team: three agents working in parallel
27+
/ck-team ComplianceCheck Operator Delvinator.Core
28+
29+
# With a coordinating instruction
30+
/ck-team ComplianceCheck Operator Core -- validate and deploy the new quality.score action
31+
```
32+
33+
Each named kernel becomes a concurrent Claude Code subagent:
34+
35+
```
36+
/ck-team ComplianceCheck Operator Core
37+
|
38+
+-- Agent 1: CK.ComplianceCheck
39+
| CK loop: ComplianceCheck identity
40+
| Task: validate the fleet
41+
| DATA loop: writes validation results
42+
|
43+
+-- Agent 2: CK.Operator
44+
| CK loop: Operator identity
45+
| Task: reconcile deployments
46+
| DATA loop: writes reconciliation records
47+
|
48+
+-- Agent 3: Delvinator.Core
49+
CK loop: Core identity
50+
Task: aggregate and report
51+
DATA loop: writes summary instances
52+
|
53+
Parent agent orchestrates, merges results
54+
```
55+
56+
## Per-Agent Identity
57+
58+
Each agent in the team loads its own CK loop, following the same awakening sequence as the single-agent `/ck` command:
59+
60+
1. `conceptkernel.yaml` -- identity
61+
2. `CLAUDE.md` -- behavioral instructions
62+
3. `SKILL.md` -- action catalog
63+
4. `ontology.yaml` -- data schema
64+
5. `storage/memory/MEMORY.md` -- persistent memory
65+
66+
Each agent operates under three-loop discipline: CK read-only, TOOL read-only, DATA writable. Each agent writes memory independently.
67+
68+
## Cross-Kernel Messaging
69+
70+
Agents in a team can communicate via NATS:
71+
72+
```
73+
Agent 1 (ComplianceCheck) publishes to input.CK.Operator:
74+
{ action: "reconcile", data: { validationResult: "pass" } }
75+
76+
Agent 2 (CK.Operator) receives, processes, publishes to result.CK.Operator:
77+
{ event: "reconciled", kernels: 6 }
78+
79+
Agent 3 (Core) subscribes to event.CK.Operator, sees reconciliation complete
80+
```
81+
82+
This uses the same NATS topic topology as the deployed cluster. The agents do not need a special coordination protocol -- they communicate through the same channels that the live kernels use.
83+
84+
## Coordination Model
85+
86+
The parent agent (the Claude Code main session) orchestrates:
87+
88+
1. **Dispatch**: spawns all team agents with their respective CK loop contexts
89+
2. **Monitor**: watches agent outputs for completion signals
90+
3. **Merge**: combines results from all agents into a unified summary
91+
4. **Memory**: persists each agent's memory updates to their respective `storage/memory/MEMORY.md`
92+
93+
The parent does NOT coordinate the agents' internal work. Each agent is autonomous within its own identity. The parent provides the task; the agents decide how to execute within their capabilities.
94+
95+
## Prerequisites
96+
97+
| Prerequisite | Version | Status |
98+
|-------------|---------|--------|
99+
| Subagent (/ck) | v3.5.8 | Deployed |
100+
| NATS bridge | v3.5.8 | Deployed |
101+
| Streaming | v3.5.9 | Deployed |
102+
| Claude Code Agent Teams | Experimental | Requires `CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1` |
103+
104+
The primary blocker is Claude Code Agent Teams stabilizing. The CKP infrastructure is ready -- each kernel already has the identity files, NATS connectivity, and three-loop discipline that team agents need.
105+
106+
## Design Considerations
107+
108+
::: details Architectural Questions
109+
110+
**Question:** How do agents avoid conflicting DATA loop writes?
111+
112+
**Answer:** Each agent writes to its OWN kernel's DATA loop. ComplianceCheck writes to `CK.ComplianceCheck/storage/`, Operator writes to `CK.Operator/storage/`, Core writes to `Delvinator.Core/storage/`. There is no shared writable path. Cross-kernel communication goes through NATS, not filesystem.
113+
114+
**Question:** Can agents in a team use EXTENDS?
115+
116+
**Answer:** Yes. If Delvinator.Core EXTENDS CK.Claude, the Core agent in the team has access to the `analyze` action. The EXTENDS resolution happens during CK loop loading, before the agent starts working.
117+
118+
**Question:** What happens if one agent in the team fails?
119+
120+
**Answer:** The parent agent detects the failure and can either retry the failed agent, redistribute the task, or report the partial result. The other agents are not affected -- they operate independently.
121+
122+
**Question:** How does this differ from the Task Execution Engine (v3.5.15)?
123+
124+
**Answer:** The Task Engine executes consensus-approved tasks headlessly -- no human in the loop. Agent Teams are interactive -- a developer spawns the team, monitors progress, and can intervene. The Task Engine is autonomous execution; Agent Teams are collaborative execution.
125+
:::

0 commit comments

Comments
 (0)