Load COC Framework reference. Use when discussing AI-assisted development methodology, the five-layer architecture, vibe coding critique, anti-amnesia patterns, institutional knowledge engineering, or Human-on-the-Loop development.
This skill provides the reference for the COC (Cognitive Orchestration for Codegen) framework - the five-layer architecture for disciplined AI-assisted development.
This skill is self-contained — all essential COC knowledge is distilled below from the COC Core Thesis by Dr. Jack Hong. If Foundation source docs exist in this repo, read them for additional depth.
COC is a five-layer architecture that provides AI coding assistants with the organizational context, guardrails, and operating procedures they need to function as disciplined engineering partners. It applies the CARE framework's Human-on-the-Loop philosophy to software development.
COC is a new term introduced in the thesis paper. It names an architecture that the Kailash ecosystem has implemented. The principles are not new; the systematic five-layer organization is.
| Fault Line | Problem | Root Cause |
|---|---|---|
| Amnesia | AI forgets your instructions as context fills up | Context window limits |
| Convention Drift | AI follows internet conventions instead of yours | Training data overrides |
| Security Blindness | AI takes the shortest path (never the secure path) | Optimization for directness |
The root cause is not model capability. It is the absence of institutional knowledge surrounding the model.
Vibe Coding: Better Model → Better Code → Competitive Advantage
COC Reality: Better Context → Better Output → Competitive Advantage
(specific to you) (any model) (defensible)
+--------------------------------------------------+
| Layer 5: LEARNING |
| Observation → Instinct → Evolution |
+--------------------------------------------------+
| Layer 4: INSTRUCTIONS |
| Structured methodology with approval gates |
+--------------------------------------------------+
| Layer 3: GUARDRAILS |
| Deterministic enforcement, not suggestions |
+--------------------------------------------------+
| Layer 2: CONTEXT |
| Your living institutional handbook |
+--------------------------------------------------+
| Layer 1: INTENT |
| Specialized agents, not generalist AI |
+--------------------------------------------------+
user-prompt-rules-reminder.js) - fires every message, survives context compression| CARE / EATP Concept | COC Equivalent |
|---|---|
| Trust Plane | Rules + CLAUDE.md |
| Execution Plane | Agents + Skills |
| Genesis Record | session-start.js |
| Trust Lineage Chain | Mandatory review gates |
| Audit Anchors | Hook enforcement |
| Operating Envelope | 9 rule files + 9 hook scripts |
The developer's unique contribution is not writing code but defining and maintaining the institutional context:
Bainbridge's Irony (1983): The more automated a system becomes, the more critical it is that human operators maintain deep understanding. Every COC layer deepens the developer's expertise.
COC executes through autonomous AI agent systems, not human teams. This is the direct application of CO Principle 4 (Human-on-the-Loop): the human defines the operating envelope; autonomous agents execute within it.
Default multiplier: 10x — autonomous AI execution with mature COC institutional knowledge produces ~10x the sustained throughput of an equivalent human team.
| Factor | Multiplier |
|---|---|
| Parallel agent execution | 3-5x |
| Continuous operation (24/7, no fatigue, zero context-switch) | 2-3x |
| Knowledge compounding (CO Principle 7) | 1.5-2x |
| Validation overhead | 0.7-0.8x |
| Net sustained | ~10x |
| Gate Type | Examples | Human Role |
|---|---|---|
| Structural (human authority) | Plan approval, release authorization, envelope changes | Human decides |
| Execution (autonomous convergence) | Test passing, red team convergence, code review, security review | Agents converge; human observes |
When agents deliberate (during /analyze, /redteam, or planning), they MUST:
See rules/autonomous-execution.md for the full principle, multiplier basis, and application rules.
COC = Cognitive Orchestration for Codegen
5 Layers: Intent → Context → Guardrails → Instructions → Learning
3 Fault Lines: Amnesia, Convention Drift, Security Blindness
1 Insight: Institutional knowledge > Model capability
The Kailash COC Implementation:
30 agents, 28 skills, 9 rules, 9 hooks, 20 commands
Reference: github.com/terrene-foundation/kailash-coc-claude-py
If Foundation source docs exist in this repo, read the COC Core Thesis for additional depth. For comprehensive analysis, invoke the coc-expert agent.