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.
docs/02-standards/publications/COC-Core-Thesis.md - Definitive thesis by Dr. Jack Hongdocs/00-anchor/00-first-principles.md - Core mission and principlesdocs/00-anchor/01-core-entities.md - What Foundation provides (including Kailash)docs/03-technology/kailash/04-vibe-coding.md - Vibe coding methodologydocs/presentations/sg-claude-code-community-vibe-coding-session.md - Vibe coding presentationCOC 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 = 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/Integrum-Global/kailash-coc-claude-py
Read these source documents:
docs/02-standards/publications/COC-Core-Thesis.md - The thesis paperdocs/03-technology/kailash/04-vibe-coding.md - Vibe coding methodologydocs/presentations/sg-claude-code-community-vibe-coding-session.md - PresentationFor comprehensive analysis, invoke the coc-expert agent.