All Concepts
Agentic Engineering

AI writes the code.
Who governs the design?

AI coding tools have multiplied engineering velocity. They have not multiplied architectural judgment. Every line an agent writes carries your codebase further — and further from any context about where it must not go.

10x faster code generation0 architecture context in agents100% of PRs still need design conformance
The Shift

What agentic
engineering is

The developer is no longer writing every line. They are orchestrating. Reviewing. Merging. The agent writes. Sprint velocity has changed. The architectural surface area grows faster than review capacity ever could.

The tools

Copilot. Cursor. Claude Code. Cline. Devin. AI tools that write production code are standard-issue in 2026. Not experimental. Deployed.

The velocity shift

A senior engineer now reviews 4x more PRs than they write. The generation rate has decoupled from the review rate. That gap is structural.

The role change

The developer is an orchestrator. They define the intent, accept the output, and approve the merge. The agent fills the space between.

The problem

The architectural surface area grows faster than any review capacity. Every agent-generated PR is a design decision made without design context.

The Governance Gap
What the system must NOT do

ADRs. Banned patterns. Compliance constraints. None of this is in the agent's context window.

This is not a training problem. This is a context problem.
Where the architectural boundaries are

Pillars. Service contracts. Domain ownership. The agent cannot see the lines it is crossing.

This is not a training problem. This is a context problem.
Whether this PR violates a design rule

Lenses. Active audit prompts. The conformance criteria that should govern every merge decision.

This is not a training problem. This is a context problem.

The agent is not the risk.
The missing context is.

The Infrastructure
rkito governs

How rkito fills the gap

Before the agent writes
MCP Server

rkito MCP loads Lenses, Pillars, and Architecture Ledger context into the agent before code generation. The agent knows the rules before writing a single line.

It is not a prompt. It is a context layer.
When the PR opens
CDA Pipeline

The Continuous Design Audit evaluates every PR against active Lenses. PASS or BLOCKED. No manual review required. No architect as the bottleneck.

Automated conformance at CI speed.
After it ships
Architecture Ledger

Every approved structural change is recorded in the Architecture Ledger. Every decision is traceable. Every drift event is auditable.

Not a snapshot. A living record.
Shift Right
CDA enforces at PR time — after code is written

Continuous Design Audit

CDA is the enforcement layer. Every PR triggers a full design audit — diff fetched, entities mapped, Lenses evaluated. The result is a GitHub check status: PASS or BLOCKED. No architect needed for clean PRs.

Deviation is the only trigger

CDA does not block every PR. It evaluates every PR and raises a finding only when code deviates from design intent. A conformant PR proceeds with zero ceremony.

The CHI gate is primary

When a deviation is detected, the first question is: is there an approved Change Intention for this work? CHI governs whether the direction is approved. Lenses govern whether the implementation is correct. These are separate concerns.

Code privacy by design

The diff — not the full codebase — is what CDA evaluates. For regulated environments, a customer-side GitHub Action model keeps the diff inside the customer's perimeter entirely.

How CDA works in detail →
PR lifecycle with CDA
1
PR Opened
code pushed to branch
2
Diff Fetched
GitHub App or customer-side runner
3
Entity Mapping
changed files mapped to Architecture Ledger entities
4
CHI Gategate
is there an approved Change Intention for this scope?
5
Lens Evaluationgate
every applicable Lens evaluated against the diff
6
PASS or BLOCKED
result posted as GitHub check — binding, non-optional
< 5 min
per PR, automated
0
architect time on clean PRs
100%
violations caught before merge
Shift Left
MCP context loads before the agent writes

The rkito Session Protocol

The rkito Session Protocol is the mechanism by which agents precisely implement design intent. It is not a set of guardrails that prevent violations. It is the ordered process by which an agent receives the approved design decision, loads the architectural context for the entities it will modify, and implements exactly what was decided.

Nothing less. Nothing more. This is how the “implement the design” marching order is realized in the agentic era. The CHI is the approved intent. The session protocol delivers it to the agent before the first write.

The CHI is the marching order

An approved Change Intention defines what is to be built, in which scope, with what architectural decisions. Phase 4 delivers that CHI to the agent before any code is written. The agent implements exactly that scope — no more, no less. This is the 'implement the design' instruction, machine-delivered.

Context loads precisely for the entities being modified

Phase 5 loads three things in parallel: current Architecture Ledger state for the target entities, all applicable Lenses, and Steering context. The agent's working context is bounded by the same record CDA will evaluate. What the agent implements is what will be assessed — no gap, no surprise.

validate_diff keeps implementation aligned during generation

At each write in Phase 6, validate_diff() evaluates the current diff against the loaded Lenses. BLOCKER findings halt generation and the agent corrects before continuing. The implementation stays aligned with the approved design as it is being written — not after.

Full session protocol reference →
7-phase session lifecycle
01
Authenticationgate

OAuth PKCE for IDE agents. Service account API key for autonomous agents.

register_session
02
Skill Discovery

get_skills() returns a conformance bundle: entity binding, applicable Lenses, Steering refs, CHI requirements.

get_skills
03
Precondition Resolutionif needed

If the target entity is not in the Architecture Ledger, the agent drafts a CHI for entity introduction and waits for architect approval.

draft_chi
04
CHI Gategate

No code before an approved Change Intention exists. The agent waits in 'CHI pending' state. This is the IFR-driving phase.

get_approved_chi
05
Context Assembly

Three parallel MCP calls: Architecture Ledger state, all applicable Lenses, Steering context. Full governed context loaded.

get_ledger_state · get_applicable_lenses · get_steering_context
06
Governed Code Generation

Agent generates within CHI scope. validate_diff() called at each write. BLOCKER findings halt generation immediately — agent self-corrects.

validate_diff
07
CDA Evaluation + Session Close

PR opened → CDA runs automatically → GitHub check result. Session record immutably closed in Agent Shepherd.

automatic on PR open
Protocol invariants — non-negotiable
No code before an approved CHI
BLOCKER findings must resolve before PR is opened
CDA is binding — not advisory
How agents discover the protocol
A1Preferred
MCP Prompts

Auto-injected at session start. Zero developer friction. Requires IDE host support.

A2Universal
CLAUDE.md / AGENTS.md

One-time snippet committed to repo. Works with all MCP-compatible IDE agents.

A4Hardest enforcement
Session Hook

Claude Code PreToolUse hook. rkito-mcp-check fires before first tool use.

B1Autonomous agents
Orchestrator env vars

RKITO_API_KEY + system prompt injection. Works with any agent accepting a system prompt.

Skills Registry
A separate feature. Not Lenses. Not the session protocol.

The Skills Registry

A Skill is a governed, versioned instruction payload bound to one or more entities in the Architecture Ledger. It tells an agent precisely how to interact with a specific system, component, interface, or behavioural contract — without the agent needing to infer that context from the codebase.

Skills are not documentation. They are operational instruction sets subject to CHI-gated versioning, carrying Provenance, and bundled with the Lens criteria applicable to the entities they describe.

Lenses and Skills are different things

Lenses are binary conformance rules — pass/fail evaluation criteria. Skills are interaction instructions — how to work with an entity. An entity in the Architecture Ledger may have both. A Lens tells the CDA what to check. A Skill tells the agent how to act.

Skills carry conformance bundles

When an agent retrieves a Skill via get_skills(), it receives the instructions plus the complete Lens set applicable to the bound entities. The agent's instruction space is bounded by the same criteria CDA will evaluate. It cannot be instructed to violate a Lens — the Lens criteria are co-delivered with the instructions.

Skills are org-private or published to the network

An org authors Skills for their own systems and components. They can also publish Skills to the rkito network — making their interaction patterns available for other orgs to adopt, pin, and fork. Provenance is preserved through adoption and fork chains.

What an agent receives when it calls get_skills()
skill::auth-service::oauth-flowv2 · CHI-0089
InstructionsHow to interact with Auth Service — permitted OAuth patterns, interface contracts, what is prohibited
Lens bundleLens[A12] Service Authentication Posture · Lens[A15] External Service Data Access — co-delivered, non-suppressible
Steering refsPillar: Security · Policy: API Gateway Routing · ADR-0041: Auth Service Isolation
Bound entityAuth Service @ Ledger state v7 · approved via CHI-0089 by J. Smith
Org-private

Authored and consumed within one organisation

Published

Discoverable by other orgs in the rkito network

Forked

Locally owned derivative — Provenance link preserved

Multi-Agent
rkito as shared memory across parallel agent flows

rkito is the shared memory
in parallel agent flows

When multiple agents work concurrently on the same codebase — one modifying Service A, another modifying Service B which depends on Service A — each agent has its own context window. But the architectural state is shared and authoritative: the Architecture Ledger.

No agent can approve a structural change that another agent has already claimed scope over. No two agents can produce conflicting approved changes to the same entity simultaneously. The CHI system enforces this automatically.

CHI scope prevents collisions

Each agent session operates within a CHI scope. An approved CHI claims specific entities and a specific structural change. If a second agent targets the same entities, the protocol surfaces the conflict — the architect sees both CHIs and adjudicates before either agent proceeds.

Agent Shepherd is the live operational view

Agent Shepherd shows every active agent session, what Ledger entities each is modifying, which Skills were loaded, and the status of each session's CHI gate. For an engineering organisation running parallel agentic flows, this is the real-time architectural risk surface — not theoretical, observable.

MACCR measures coordination health

Multi-Agent CHI Collision Rate is the metric for this. A non-zero MACCR means concurrent agent sessions had overlapping CHI scope — a signal that agents are not coordinating through the shared Ledger as intended. Structurally zero is the target.

Multi-Agent CHI Collision Rate →
Parallel agents, shared ledger
Agent A
Payment Service
CHI-0112
Phase 6 — generating
Agent B
Notification Service
CHI-0113
Phase 4 — awaiting CHI
both read from the same Ledger
Architecture Ledger — shared state
Payment Service @ v7 — CHI-0112 scope: settlement interface refactor
Notification Service @ v4 — CHI-0113 scope: event subscription model
API Gateway @ v12 — no active CHI scope

Agent A and Agent B each have their own context window. The Architecture Ledger has one state. When Agent B loads context for Notification Service, it sees that Payment Service has an active CHI scope. The governed context includes that dependency — the agent cannot inadvertently collide.

Section 04

The governed
agentic engineering
loop

Not a diagram. Not a gate that blocks blindly. An infrastructure that governs every step — from intent to merge to record.

The loop. Not a gate that blocks.
An infrastructure that governs.
INTENT
Manifesto · Pillars · Lenses
AGENT GENERATES
With rkito MCP context loaded
[ CDA GATE ]
Design intent enforced at PR time
GOVERNED MERGE
Conformant · Auditable · Traceable
INTENT UPDATED
Architecture Ledger records the change
Section 06

What this means
for your team

Engineering Leaders
You can scale AI tool adoption without scaling architectural risk.

Agentic velocity is a competitive advantage — but only if it does not accumulate governance debt. rkito gives you the infrastructure to move fast and maintain design integrity simultaneously. Adoption without anxiety.

Architects
Your design intent is enforced even when you are not in the loop.

You author the Lenses once. Every PR is evaluated against them — automatically, continuously. You are not the bottleneck. You are the author of the rules that govern at scale. Review the exceptions. Not every PR.

Developers
You know what you cannot do before you write the code. The agent knows too.

rkito MCP loads your architecture context before the session starts. You do not discover a constraint violation at PR review. You and your agent both know the boundaries before the first line is written.

Get started

Govern your agentic
engineering practice.

Connect your repos, activate Lenses, and let rkito's MCP server load your design context into every agent session. Every PR governed. Every drift event caught. Every architectural decision traceable.