Behavioral contracts that discipline AI agents into accountable engineering peers. Their genesis is tailed at Turning AI Coding Agents into Senior Engineering Peers.
Contract split complete. Original _archive/CONTRACT_FOR_PAIRING_AGENTS_v3.md preserved for reference.
| File | Purpose | Status |
|---|---|---|
| CORE.md | Entry point + universal rules | Complete |
| PAIRING_MODE.md | Human-supervised collaboration | Complete |
| MULTI_AGENT_MODE.md | Peer-supervised Liza system | Complete |
| CONTRACT_FOR_PAIRING_AGENTS_v3.md | Original monolithic contract (reference) | Preserved |
~/.claude/CLAUDE.md or ~/.codex/AGENTS.md (symlinks)
│
▼
~/.liza/CORE.md (entry point + universal rules)
│
└── Mode Selection Gate (auto-detect from bootstrap)
│
├── Default (no Liza agent) → Read PAIRING_MODE.md
│ → Execute Session Initialization
│ → (read files, build models, greet)
│
└── "You are a Liza ... agent" → Read MULTI_AGENT_MODE.md
→ Execute Session Initialization
→ (read role/blackboard, silent)
Key: No response until Session Initialization from mode contract is complete.
- Initialization Sequence (mode selection → read mode contract → execute Session Initialization)
- Rule Priority Architecture (Tiers 0-3)
- Execution State Machine (generalized with mode-specific gate semantics)
- Golden Rules 1-14
- Skills Integration
- Protocol References (Debugging, Test, Architecture, Tools)
- Context Management
- Security Protocol
- Recovery Protocols
- Git Protocol
- Mental Models
- Anti-Gaming Clause
- Context Management (degraded mode tiers)
- Contract Authority (human overrides)
- Gate Semantics (Pairing): approval request → human approves
- Collaboration Philosophy and Modes
- Approval Request Standard
- Skills Integration
- Subagent Mode/Delegation
- Context Management
- Retrospective Protocol
- Magic Phrases
- Session Initialization
- Collaboration Continuity
- Contract Authority (blackboard as source of truth)
- Role Definitions
- Pre-Execution Checkpoint (gate artifact for MAM)
- Gate Semantics (Multi-Agent): checkpoint written = gate cleared
- CORE Rule Overrides (Multi-Agent)
- Blackboard Protocol
- Iteration Protocol
- Scope Discipline (spec is law)
- Context Recovery
- Circuit Breaker
Key Insight: The Execution State Machine in CORE.md is universal — it forces structured thinking before action. The "gate" is the mechanism:
- Pairing: Gate = human approval (agent waits)
- Multi-Agent: Gate = checkpoint written to blackboard (self-clearing, but forces the same thinking; Code Reviewer verifies alignment later)
- specs/ — detailed specifications
- Implementation Phases — extraction timeline