# Privacy-as-Load-Bearing, and the Recipe as Intermediate Abstraction: v0.1 → v0.2

From v0.1 (11 May) to v0.2 (11 May): 5,608 words to 2,558 words, 2,365 words in new or rewritten paragraphs and 5,415 taken out, 198 paragraphs changed.

## Change note of v0.2

**Rewritten as a report on the first week of using the method**

The proposal is replaced by a field report. The four building blocks are now running on the live fork, and the paper says what that looked like and which details of the design turned out wrong. It is less than half as long, and the background and related-work sections are gone.

- The design documents became a folder of about fifteen small files, because an AI loads a whole file at once and small files cost less to read.
- 32 runnable checks across 11 files, six live probes, and a gate runner that executes them.
- Three corrections to the proposal: one folder instead of one big file, a privacy file that must be excluded from its own check, and a search path the gate has to set itself.
- A plain-language list of lessons and a list of pending work.

## Changed paragraphs

Marks: [-removed-] {+added+}.

### RSC: Intermediate Abstractions for AI-Pair-Coded Forks

[-# RSC: Intermediate Abstractions for AI-Pair-Coded Forks-]

### RSC v0.2 — Practical Notes from the First Week of the Discipline

{+# RSC v0.2 — Practical Notes from the First Week of the Discipline+}

### RSC v0.2 — Practical Notes from the First Week of the Discipline

**Oscar Serra¹, Jarvis (Claude Opus 4.7)²** ¹Independent Research ²TinkerClaw, anchored on OpenClaw *Paper J15 — Version [-0.1-] {+0.2+} — 11 May 2026*

### RSC: Intermediate Abstractions for AI-Pair-Coded Forks

[-**Internal codename:** RSC (after the retrosplenial cortex; see §1.2 and §8) **Plugin:** none (process / tooling primitives) **Keywords:** vibe coding, AI pair programming, intermediate abstractions, layered documentation, executable invariants, snapshot testing, retrosplenial cortex, cognitive cartography, characterization tests, auto-merge gates, agent feedback loops-]

### RSC v0.2 — Practical Notes from the First Week of the Discipline

{+**Internal codename:** RSC (after the retrosplenial cortex; see v0.1 §1.2 and §8) **Status:** the four primitives proposed in v0.1 are deployed on the live fork. The merge gate runner exists (`pnpm bible:invariants`, 32/32 passing). Probes for the four high-priority surfaces are live RPCs. Bible is now a folder of fifteen files. The auto-merge cron itself is still off pending integration with the gate.+}

### Abstract

[-## Abstract-]

### Abstract

[-Programming improves when programmers add **intermediate abstractions** between the code and the questions they ask about it. A function is the first such abstraction; a module, a service boundary, a deployment unit are higher ones. AI-pair coding, in its current practice, operates with only *two* levels: the code itself (too large to fit in the AI's context window) and a single prose "bible" (the team's shared mental model, written down once). The mid-level views that human engineers routinely sketch — sequence diagrams, state machines, data-flow maps, failure-mode topologies, trust-boundary diagrams — are missing. Their absence is a *cognitive* failure, not a technical one. Humans solve the same context-window problem every day by maintaining a *plurality* of partial intermediate abstractions, each optimised for a class of question, integrated by an internal translator that lets a navigator move between views without conflating them. We argue this is the missing infrastructure for AI-pair coding and propose a discipline — codenamed **RSC** after the *retrosplenial cortex*, the brain region that performs precisely this between-view translation in humans — of four primitives: *multiple intermediate abstractions* (sequence, lifecycle, topology, failure-mode, trust boundary), *executable invariants* that anchor each abstraction to verifiable runtime state, *commit-and-timestamp anchors* that record when each abstraction was last known true, and *probe symmetry* (an inspection capability for every system surface the AI can modify, returning state deterministically in a single tool call). The four primitives compose into an auto-merge gate that strictly dominates `pnpm build`. We ground the proposal in the neuroscience of the retrosplenial cortex and the **posterior parietal cortex (PPC)**, regions responsible for translating between egocentric and allocentric reference frames and for integrating multiple spatial viewpoints into a coherent world model; patients with RSC lesions exhibit *topographical disorientation* — rich landmark recognition but broken navigation — which we argue is the cognitive shape of bible-only AI-pair coding. We present a case study from one production day in which three independent regressions slipped the existing gate and were caught only by the human typing a command, and show that each would have been caught at merge time under RSC by approximately one line of YAML frontmatter. We state an *Agent-Feedback Symmetry Principle*: for every action an AI can take that affects observable system state, there must exist an AI-callable inspection that returns that state, deterministically, in a single tool call. The paper closes the cognitive-architecture stack opened in J1–J14 by addressing the substrate of AI-pair coding itself rather than any single agent component.-]

### 0. Why a v0.2

{+## 0. Why a v0.2+}

### 0. Why a v0.2

{+v0.1 was a proposal; v0.2 is a report from one week of using the proposal on a live system. Three things changed our mind about details of the design:+}

### 0. Why a v0.2

{+1. **The bible should be a folder, not a single file with frontmatter.** v0.1 imagined `bible.md` carrying per-section YAML frontmatter. In practice the AI's context window benefits more from *small files* than from *small sections inside a big file*: a single file is loaded all-or-nothing. Splitting the bible into sixteen targeted files lets the AI load `failures.md` (~150 lines) when debugging and `flows.md` when refactoring, and never look at the other fourteen. 2. **The pii-boundary file has to be self-aware.** Any file that *documents* a leak grep is itself going to match its own grep. The fix is a verify command that explicitly excludes the self-documenting file from the check. A general lesson: meta-rules need carve-outs from their own enforcement. 3. **Probe RPCs need PATH-aware shell invocation.** `pnpm` prepends `./node_modules/.bin` to PATH; if a binary like `openclaw` exists in both the local node_modules and `/usr/local/bin`, pnpm's stub wins. The merge gate runner must prepend `/usr/local/bin:/usr/bin:/bin` to PATH or every system-tool invocation breaks. We hit this on the first run and would have hit it in production.+}

### 0. Why a v0.2

{+What follows is the practical layer: how the discipline is actually applied, in our codebase, with dumbed-down examples from things that broke.+}

### 1. Introduction

[-## 1. Introduction-]

### 1.1 The Cognitive Substrate of Vibe Coding

[-### 1.1 The Cognitive Substrate of Vibe Coding-]

### 1.1 The Cognitive Substrate of Vibe Coding

[-Vibe coding, the working term for fast AI-pair programming, succeeds because the human and the AI agree on intent through prose and the AI handles the typing. It fails — silently and expensively — when the prose drifts from the code. Across J1 through J14 we have proposed neural-inspired architectures for agent *memory* (J1, J2, J5, J14), *personality* (J4, J11), *deliberation* (J6), *humor* (J7), *curiosity* (J8), *security* (J9), *organizational scale* (J10), *cost* (J12), and *orchestration* (J13). What none of those papers addresses is the substrate beneath all of them: the documented model the AI consults at the start of every session.-]

### 1.1 The Cognitive Substrate of Vibe Coding

[-In our production fork (TinkerClaw, anchored on OpenClaw), this substrate is a single 3,000-line markdown document, the *Tinker UI Design Bible*. It encodes intent, decisions, and don't-regress rules. It is, by every reasonable measure, the working method's most important artifact. It is also, after fifteen weeks of weekly upstream-merge churn, partially wrong. The wrongness is structural, not careless, and the goal of this paper is to characterize it precisely enough to fix.-]

### 1.2 The Cognitive Cartography Analogy

[-### 1.2 The Cognitive Cartography Analogy-]

### 1.2 The Cognitive Cartography Analogy

[-When a human engineer is handed a 400-KLOC unfamiliar codebase, the first thing they do is not "read the bible." It is *draw a map*. The map is rarely a single artifact. It is a sketchbook of small drawings: who calls whom, what data flows where, which modules are stable and which are merge battlegrounds, where the trust boundaries sit, what state machine governs the session, what fails when a network call hangs.-]

### 1.2 The Cognitive Cartography Analogy

[-This practice is older than software. Cartographers since the seventeenth century have understood that no single projection can represent a sphere on flat paper, and that a navigator carries an *atlas* — a deliberate plurality of partial maps, each optimized for a class of question. Mercator for compass bearing; gnomonic for great-circle routes; orthographic for the planet from space.-]

### 1.2 The Cognitive Cartography Analogy

[-The neuroscience of this practice is increasingly well-understood. The **retrosplenial cortex (RSC)** is responsible for translating between *egocentric* representations ("what the world looks like from where I stand") and *allocentric* representations ("the map view, anchored to landmarks") [Vann, Aggleton, & Maguire, 2009; Mitchell et al., 2018]. Patients with RSC lesions exhibit *topographical disorientation*: they recognize their own house but cannot navigate using that recognition, because the link between the egocentric percept and the allocentric map has been severed. The **posterior parietal cortex (PPC)** performs the complementary work of mental rotation and reference-frame transformation [Shepard & Metzler, 1971; Andersen, Snyder, Bradley, & Xing, 1997]. Together RSC and PPC implement what Tolman (1948) originally hypothesized as the *cognitive map* and what O'Keefe and Nadel (1978) localized to the hippocampal–entorhinal–retrosplenial system.-]

### 1.2 The Cognitive Cartography Analogy

[-The behavioral pattern is **cognitive offloading**: humans extend working memory into external substrates — drawings, notebooks, whiteboards — and depend on the RSC/PPC integration to translate between the external artifact and the internal model [Wilson, 2010; Risko & Gilbert, 2016]. A skilled engineer offloads onto multiple substrates simultaneously because each substrate is a partial optic, and the engineer's RSC handles the translation cost.-]

### 1.2 The Cognitive Cartography Analogy

[-**An AI pair-coder cannot do this on its own.** It has no parietal cortex, no retrosplenial cortex, no working memory that persists beyond the context window. It has one substrate — the bible — and the substrate is one optic. The cognitive load that humans distribute across many small maps the AI must carry in 3,000 lines of prose. The result is exactly what RSC lesions look like in humans: rich landmark recognition (the bible's prose detail), broken navigation (the regressions that ship anyway).-]

### 1.3 The Failure Mode in Two Types

[-### 1.3 The Failure Mode in Two Types-]

### 1.3 The Failure Mode in Two Types

[-We separate documentation rot into two phenomena that are usually conflated and need different treatments.-]

### 1.3 The Failure Mode in Two Types

[-**Type A — Functional regression.** The bible correctly describes behavior X, behavior X worked when written, a later change broke behavior X, the bible was not updated. Type A is well-recognized in software engineering and is the canonical target of *characterization testing* [Feathers, 2004; Beck, 2018].-]

### 1.3 The Failure Mode in Two Types

[-**Type B — Principle erosion.** The bible no longer mentions an invariant the team depends on. Nobody broke the code; nobody added the test; the documentation author skipped the update during an unrelated refactor of the surrounding section. The principle remains true in code (because the relevant code did not change) but a reader of the bible at HEAD cannot find it. Type B is *under-recognized* in software engineering literature, partly because it is invisible in non-AI workflows: a human author who held the principle in their head will simply remember it. An AI that re-reads the bible every session cannot.-]

### 1.3 The Failure Mode in Two Types

[-Type B is the AI-pair-specific failure mode. The cost is paid not when the principle is forgotten but weeks later when the AI, in good faith, violates an invariant the bible no longer documents and the human has stopped explicitly stating because they assumed it was written down.-]

### 1.4 Contributions

[-### 1.4 Contributions-]

### 1.4 Contributions

[-1. **Four documentation primitives** — multi-optic atlases, executable invariants, commit/timestamp anchors, probe symmetry — composable into a coherent practice (§4). 2. **An auto-merge gate** that strictly dominates `pnpm build` by refusing merges that break previously verified bible sections (§5). 3. **The Agent-Feedback Symmetry Principle** — a discipline that closes self-correction loops by requiring deterministic, single-tool-call inspection for every system surface (§6). 4. **A worked case study** from one production day in which three independent regressions slipped the existing gate; each would have been caught at merge time under RSC (§7). 5. **A neuroscience grounding** for the cognitive shape of the problem, locating multi-optic reasoning in the RSC/PPC system and the cognitive-offloading behavioral pattern (§1.2, §8).-]

### 1. The bible folder, after one week

{+## 1. The bible folder, after one week+}

### 1. The bible folder, after one week

{+The bible is `~/src/tinkerclaw/TINKER_UI_DESIGN_BIBLE/`. Sixteen files. One entry point, one narrative, thirteen structural, plus a redirect stub at the old path.+}

### 1. The bible folder, after one week

{+``` TINKER_UI_DESIGN_BIBLE/ ├── INDEX.md ← AI entry point and map ├── bible.md ← narrative, intent, decisions, don't-regress (now ~1730 lines) ├── tinker-ui.md ← UI layout + visual language + feature registry (~1095 lines) ├── bug-log.md ← historical bug-fix log, forensic timeline (~290 lines) ├── flows.md ← sequence diagrams (Mermaid) for the top 7 pipelines ├── lifecycles.md ← state machines for sessions, workers, messages, recovery ├── topology.md ← components, ports, plugins, channels, symlinks ├── config-shape.md ← every openclaw.json key + override chain ├── failures.md ← failure-mode propagation maps (M1–M10) ├── probes.md ← inspection primitives registry (live + proposed) ├── tool-loop.md ← the cc-bridge / claude-cli divergence ├── auth-routing.md ← model rank, provider routing, billing gate ├── crons.md ← cron registry + auto-merge policy ├── pii-boundary.md ← public-OK vs private-only + sanitization workflow ├── memory-layout.md ← workspace memory directory map + writers └── subagents-and-recipes.md ← subagent spawn + recipe catalog + Prefrontal split ```+}

### 1. The bible folder, after one week

{+`INDEX.md` is the only file the AI is *required* to read at session start. The rest are loaded on demand based on the question. The question-to-file mapping is encoded in INDEX.md as a verbatim lookup table.+}

### Concrete payoff: a debug session that was

{+### Concrete payoff: a debug session that was+}

### Concrete payoff: a debug session that was

{+When a user asks "why did Jarvis say something went wrong on WhatsApp yesterday at 16:55," the AI's old flow was:+}

### Concrete payoff: a debug session that was

{+> Open the bible. ctrl-F "WhatsApp". Read 200 lines of context. Read more. Try to remember if there was a cc-bridge thing. Open the bible's §11 because that's where backend stuff lives. Realize the timeout discussion was in §11.6d. Re-read the surrounding §11.6c and §11.6e. Now think about whether the symptom fits.+}

### Concrete payoff: a debug session that was

{+The new flow is:+}

### Concrete payoff: a debug session that was

{+> Read `failures.md` (150 lines). Match the symptom to row M1 (cc-bridge SIGTERM). Follow the cited probe (`debug.session.config`). Confirm the resolved timeout is 600000ms — the path is alive. Conclude the symptom is from an older session that timed out before the fix shipped.+}

### Concrete payoff: a debug session that was

{+The first flow is six turns; the second is two. The compression is the *single owner per fact* rule from v0.1 §4.1, paid for at write time.+}

### 2. Background and Related Work

[-## 2. Background and Related Work-]

### 2.1 Position in the Serra J-series

[-### 2.1 Position in the Serra J-series-]

### 2.1 Position in the Serra J-series

[-RSC sits orthogonal to the prior fourteen papers in the series. J1–J14 are *agent components*: how the agent stores memory, retrieves it, develops personality, deliberates, jokes, gets curious, defends itself, scales organizationally, manages its own budget, orchestrates subagents, and enhances its own memory pipeline. RSC is about the *documentation substrate* on which the human–AI pair operates when *building* those agents. It is the cognitive infrastructure that makes the rest of the series maintainable.-]

### 2.1 Position in the Serra J-series

[-This is the same shift one finds in operations literature when moving from "the system" to "the documentation of the system as a system" [Allspaw, 2012]. The thing being designed is no longer the agent; it is the *practice* in which the agent is iterated.-]

### 2.2 Characterization Tests and Approval Tests

[-### 2.2 Characterization Tests and Approval Tests-]

### 2.2 Characterization Tests and Approval Tests

[-Michael Feathers' *Working Effectively with Legacy Code* [Feathers, 2004] formalized **characterization tests** (also called *golden master tests* and, in their assertion-relaxed form, *approval tests*): pin the observable behavior of legacy code, refactor underneath. The Wikipedia formulation is the canonical statement: if one observes that `f(3.14) == 42`, a test asserts that the output continues to match. Modern variants for LLM systems use **golden datasets** — curated prompt-and-expected-output pairs — to detect behavioral regression in model upgrades [Techment, 2026].-]

### 2.2 Characterization Tests and Approval Tests

[-RSC borrows the assertion shape but changes its binding. Classical characterization tests live in a `tests/` tree, decoupled from the documentation. RSC binds each test to the documentation section whose claim it verifies. The binding is the novelty: deletion of the test becomes visible in the documentation review, and addition of a documentation section becomes a forcing function for adding a verification.-]

### 2.3 Living Documentation and Spec-Driven Development

[-### 2.3 Living Documentation and Spec-Driven Development-]

### 2.3 Living Documentation and Spec-Driven Development

[-The 2025–2026 *living documentation* movement [InfoQ, 2025; Kinde, 2026] argues that architecture is no longer advisory: "all database writes must go through service A" is not a guideline but an executable invariant enforced by tooling. Swimm's *code-coupled documentation* is the closest existing instance of RSC's `last_verified_commit` anchor: documents flag drift when the cited code changes [Swimm via Kinde, 2026].-]

### 2.3 Living Documentation and Spec-Driven Development

[-RSC extends these ideas in two directions. First, it anchors *entire prose sections* rather than only code citations, so that a section reviewing "why we did it this way" is also pinned to the commit at which the why-reasoning was last verified true. Second, it adds the **multi-optic** discipline: the spec-driven movement assumes a single source of truth (the spec); RSC assumes that no single document can be the source of truth for a complex system and that a small set of orthogonal optics is the correct shape.-]

### 2.4 Snapshot and Visual Regression Testing

[-### 2.4 Snapshot and Visual Regression Testing-]

### 2.4 Snapshot and Visual Regression Testing

[-Commercial snapshot testing [Percy, 2026; Applitools, 2026; SauceLabs, 2026] is the mature industrial form of probe symmetry for UI: capture a deterministic representation, compare on every PR. Recent work pairs visual regression with **AI agent loops** for self-correction: an agent navigates the UI, captures snapshots, compares against baseline, and files issues with likely root causes [AutonomyAI, 2026]. The productive four-step pattern reported in this literature is **Explore → Locate → GenerateFix → RunTests**, with the failure signature being agents that loop on Explore → Explore [AutonomyAI, 2026].-]

### 2.4 Snapshot and Visual Regression Testing

[-RSC generalizes the probe from "pixel snapshot" to "deterministic text representation of any system state," because the consumer of the probe is an LLM rather than a human eye, and because the principle is *symmetry* (every breakable surface has an inspector), not visual fidelity. Our existing probe `debug.dumpUiSnapshot` renders the Tinker UI's chat DOM to a deterministic text file; reading it via a single `Read(file)` call collapses the "what does the UI look like right now" loop from ≈ 10 turns (screenshot requests) to 1 turn. The same pattern generalizes naturally to non-UI surfaces (event tails, state dumps, effective-config dumps) that pixel snapshot tools do not address.-]

### 2.5 The Vibe-Coding Methodology

[-### 2.5 The Vibe-Coding Methodology-]

### 2.5 The Vibe-Coding Methodology

[-Recent practitioner writing [Osmani, 2026; DEV, 2026] formalizes vibe-coding as a methodology and identifies **context packing** as its single highest-leverage practice: pack the AI's session with high-level goals, invariants, examples of good solutions, and warnings about approaches to avoid. Our bible is the context pack. The gap this paper addresses is the *verifiability* of the pack's claims.-]

### 2. The four primitives, instantiated

{+## 2. The four primitives, instantiated+}

### 2.1 Multi-optic atlas → fifteen typed files

{+### 2.1 Multi-optic atlas → fifteen typed files+}

### 2.1 Multi-optic atlas → fifteen typed files

{+v0.1 named seven candidate optics. In practice we landed on fifteen files because some narrative content (the `bible.md` and the `bug-log.md` historical timeline) does not fit any single optic and deserves its own file, and because Tinker UI's visual feature registry is large enough to warrant a dedicated file (`tinker-ui.md` weighs in at ~1100 lines).+}

### 2.1 Multi-optic atlas → fifteen typed files

{+**Lesson:** don't constrain the count up front. Let each optic emerge from a distinct *class of question* that an AI is reasonably likely to ask. If two files would always be loaded together, merge them. If one file is loaded for two very different questions, split it.+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+### 2.2 Executable invariants → 32 verify commands across 11 files+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+Each structural file's frontmatter now carries a `verify:` block. Three concrete examples:+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+**a) Catching the cc-bridge dead-code regression from 2026-05-05.** ```yaml # config-shape.md verify: - name: claude-code provider overlay resolves timeoutSeconds=600 cmd: python3 -c 'import subprocess,json; r=subprocess.run( ["openclaw","gateway","call","debug.session.config","--params", json.dumps({"provider":"claude-code"})],capture_output=True,text=True); assert "\"resolvedRequestTimeoutMs\": 600000" in r.stdout' ```+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+If this assertion fails, the cc-bridge plugin overlay broke. The bug Oscar typed `/new` to discover would have failed this check at merge time.+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+**b) Catching the handler-wipe class from 2026-04-29.** ```yaml # failures.md verify: - name: M3 fork RPC alive — config.openExternalFile cmd: python3 -c 'import subprocess,json; r=subprocess.run( ["openclaw","gateway","call","config.openExternalFile","--params", json.dumps({"path":"/dev/null"})],capture_output=True,text=True); assert "\"ok\"" in r.stdout' ```+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+If an upstream merge silently drops the handler again, the next nightly run of `pnpm bible:invariants` flags it.+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+**c) Catching the PII boundary breakage class.** ```yaml # pii-boundary.md verify: - name: bible files do not match the PII leak grep (excludes this self-referential file) cmd: | cd ~/src/tinkerclaw && for f in TINKER_UI_DESIGN_BIBLE/INDEX.md TINKER_UI_DESIGN_BIBLE/flows.md ...; do if grep -P 'Oscar(?! Serra)|...' "$f" >/dev/null 2>&1; then echo "LEAK in $f"; exit 1; fi; done ```+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+If a structural file gains a leaked literal, the gate refuses to push.+}

### 2.2 Executable invariants → 32 verify commands across 11 files

{+The 32 checks run in approximately 4 seconds end-to-end. Cost is bounded.+}

### 2.3 Probe symmetry → six live RPC probes + one log-line probe

{+### 2.3 Probe symmetry → six live RPC probes + one log-line probe+}

### 2.3 Probe symmetry → six live RPC probes + one log-line probe

{+We shipped these RPCs in one commit (`23f7585623`):+}

### 2.3 Probe symmetry → six live RPC probes + one log-line probe

{+- `debug.session.config({provider})` — effective resolved providerConfig including plugin overlay state. - `debug.session.state({sessionKey})` — session-store entry plus activeRunIds from the gateway's chatAbortControllers map. - `debug.tail.lastN({sessionKey,n})` — last N parsed messages from a session transcript with a path-safety allowlist. - `cron.lastRun({jobId})` — last receipt JSONL entry plus file mtime and size. - `cron.listJobs` — full cron registry plus per-job freshness in seconds. - `debug.dumpUiSnapshot` — preexisting; renders Tinker UI's chat DOM to a deterministic text file.+}

### 2.3 Probe symmetry → six live RPC probes + one log-line probe

{+Plus one log-line probe: `[idle-timeout-diag]`, emitted by `attempt.ts` on every turn, showing the resolved idle timeout and where each component of the resolution came from. It is the canary for the cc-bridge timeout class of bugs.+}

### 2.3 Probe symmetry → six live RPC probes + one log-line probe

{+The Symmetry Principle held up in practice. The probes that exist today were each added to *unblock an investigation that was expensive without them* — that's the right cadence, because it forces the maintainer to feel the cost of asymmetry before paying the cost of building a probe.+}

### 2.4 Commit-and-timestamp anchors → frontmatter on every file

{+### 2.4 Commit-and-timestamp anchors → frontmatter on every file+}

### 2.4 Commit-and-timestamp anchors → frontmatter on every file

{+Every structural file carries `last_verified: 2026-05-11` and `last_verified_commit: HEAD`. We treat HEAD-tracking as the lazy default; sections that need precise pinning (e.g., quoting a specific line number) get a frozen commit SHA. This is the discipline that catches Type B obsolescence: when the AI reads a section, the anchor tells it whether the section was rechecked recently. If git log shows the cited files changed yesterday but `last_verified` is from two weeks ago, the AI knows to re-verify before trusting.+}

### 3. The Diagram-Pluralism Principle

[-## 3. The Diagram-Pluralism Principle-]

### 3. The Diagram-Pluralism Principle

[-Experienced engineers draw multiple kinds of diagram because *no single diagram type captures all of the questions a complex system raises*. The canonical types and the questions they compress:-]

### 3. The Diagram-Pluralism Principle

[-| Diagram type | Question it answers | Compression ratio | |---|---|---| | **Sequence** | "In what order do these components communicate?" | High | | **Architecture** | "What are the components, and what are their boundaries?" | Medium | | **Data flow** | "How is this piece of data transformed from input to output?" | High | | **State machine** | "What transitions are legal for this entity over its lifecycle?" | High | | **Deployment** | "What runs where, and what crosses the network?" | Medium | | **Failure-mode** | "When X breaks, where does the symptom appear?" | High | | **Ownership** | "Whom do I talk to about this concern?" | Medium |-]

### 3. The Diagram-Pluralism Principle

[-Two empirical claims about this practice:-]

### 3. The Diagram-Pluralism Principle

[-1. **No single diagram type is sufficient.** A sequence diagram answers "what order" but cannot answer "where does the failure surface." A failure-mode map answers the latter but is mute on ordering. An engineer carrying only one diagram type will be lost on questions the diagram does not address.-]

### 3. The Diagram-Pluralism Principle

[-2. **Drawing the diagram is the work.** Cognitive scientists studying expert problem-solving find that the act of producing an external representation is itself the cognitive operation that produces understanding [Klein, 1998; Larkin & Simon, 1987]. The diagram is not a record of thought completed; it is the substrate on which thought happens.-]

### 3. The Diagram-Pluralism Principle

[-For an AI pair-coder, neither claim is currently honored. The bible is one diagram type (prose), and the AI cannot draw to extend its own working memory. Both gaps compound: the AI is restricted to one optic *and* it cannot generate new optics under cognitive pressure the way a human can sketch on the back of a napkin.-]

### 3. The Diagram-Pluralism Principle

[-RSC's response is to **furnish the AI with a small, fixed set of diagram-shaped documents**, maintained by AI proposal and human review, each owning a distinct optic. The pluralism is borrowed from human practice; the maintenance is automated to keep the cost reasonable.-]

### 3. The merge gate runner

{+## 3. The merge gate runner+}

### 3. The merge gate runner

{+`scripts/test-invariants.mjs` walks every `*.md` in the bible directory, parses YAML frontmatter, and runs each `verify.cmd` through a bash subshell with a 30-second timeout. Exits 0 if every check passes, 1 if any fails, 2 on internal error.+}

### 3. The merge gate runner

{+Invoked as `pnpm bible:invariants`. Total runtime on the current state: about 4 seconds for 32 checks.+}

### 3. The merge gate runner

{+The runner is small — under 300 lines, with a hand-rolled YAML subset parser to avoid pulling in `js-yaml` as a build-time dependency. It is intentionally not over-engineered.+}

### 3.1 Wiring into the merge cron

{+### 3.1 Wiring into the merge cron+}

### 3.1 Wiring into the merge cron

{+The `daily-fork-sync` cron job is currently **disabled** (per crons.md). When re-enabled, the gate inserts here:+}

### 3.1 Wiring into the merge cron

{+``` upstream merge → pnpm build → pnpm bible:invariants → ship | block ```+}

### 3.1 Wiring into the merge cron

{+If `pnpm bible:invariants` exits non-zero, the merge does not ship. The failing section names land in the cron receipt, so the operator sees exactly which behavior was lost and where the bible expects to find it.+}

### 3.1 Wiring into the merge cron

{+We have not yet re-enabled the cron. The plan is: one more pass adding `verify` blocks to the four files that currently lack them (`bible.md`, `bug-log.md`, `flows.md`, `lifecycles.md`, `tool-loop.md`, `tinker-ui.md`), then a pilot week of running the gate manually before letting the cron own it.+}

### 4. The RSC Primitives

[-## 4. The RSC Primitives-]

### 4. The RSC Primitives

[-Four primitives. The set is deliberately small; framework-scale proposals fail in solo-developer practice because the maintenance overhead exceeds the savings.-]

### 4.1 Multi-Optic Documentation Set

[-### 4.1 Multi-Optic Documentation Set-]

### 4.1 Multi-Optic Documentation Set

[-Rather than a single bible, RSC proposes a fixed set of seven intermediate abstractions, each in its own file under `docs/rsc/`:-]

### 4.1 Multi-Optic Documentation Set

[-1. **`bible.md`** — narrative, intent, decisions, don't-regress rules. The existing artifact, slimmed. 2. **`flows.md`** — sequence diagrams (Mermaid syntax) for the top pipelines (inbound → dispatch → cc-bridge → model; surface_error → envelope → broadcast; etc.). 3. **`topology.md`** — architecture: components, plugins, channels, boundaries. 4. **`lifecycles.md`** — state machines for sessions, runs, workers, channel subscriptions. 5. **`failures.md`** — failure-mode propagation maps: which failure at which component surfaces where. 6. **`pii.md`** — trust boundaries, sanitization rules, public-vs-private surface. 7. **`probes.md`** — the index of inspection primitives (§4.4).-]

### 4.1 Multi-Optic Documentation Set

[-Each file is **partial by design**. The discipline that prevents drift between them: *at most one optic owns each fact*. Cross-cutting concerns get cross-references but not duplication. When ownership is unambiguous, drift is locally bounded.-]

### 4.1 Multi-Optic Documentation Set

[-This is the **plurality** half of RSC: a deliberate set of partial intermediate abstractions, each one small enough to fit comfortably in the context window when only that view is needed for the question at hand.-]

### 4.2 Executable Invariants with Frontmatter Anchors

[-### 4.2 Executable Invariants with Frontmatter Anchors-]

### 4.2 Executable Invariants with Frontmatter Anchors

[-Every section in every optic carries machine-readable frontmatter:-]

### 4.2 Executable Invariants with Frontmatter Anchors

[-```yaml --- section: 11.6e # references bible's stable section ID status: DEPLOYED last_verified: 2026-05-10T19:50+02:00 last_verified_commit: 78594ebd1a verify: - cmd: openclaw gateway call files.resolveBareName --params '{"name":"BRIEFING.md"}' expect: '.matches | length == 1 and (.matches[0] | endswith("/BRIEFING.md"))' - cmd: | journalctl --user -u openclaw-gateway.service --since '5 minutes ago' --no-pager | grep -oP '\[idle-timeout-diag\].*idleTimeoutMs=\K[0-9]+' | head -1 expect: '. == "600000"' invariants: - "files.resolveBareName resolves BRIEFING.md to the workspace path" - "claude-code provider resolves to model.requestTimeoutMs=600000 at runtime" --- ```-]

### 4.2 Executable Invariants with Frontmatter Anchors

[-A nightly job runs every `verify.cmd` and writes `<section>.verified.json`. Sections that fail get a `STALE since YYYY-MM-DD` badge auto-injected on the next bible read.-]

### 4.2 Executable Invariants with Frontmatter Anchors

[-This is the **anchoring** half of RSC: intermediate abstractions tied to verifiable landmarks. The neuroscience analogue is the use of **landmark cells** in the retrosplenial and parahippocampal regions: spatial maps are anchored to stable features in the environment, and disruption of those landmarks specifically disrupts navigation while leaving recognition intact [Auger, Mullally, & Maguire, 2012; Epstein, 2008]. The bible's prose without anchors is a map without landmarks.-]

### 4.3 Commit-and-Timestamp Anchors

[-### 4.3 Commit-and-Timestamp Anchors-]

### 4.3 Commit-and-Timestamp Anchors

[-Every primitive carries `last_verified_commit` (40-char git SHA) and `last_verified` (ISO timestamp). These are not bookkeeping; they are the substrate of the **trust graph** between docs and code.-]

### 4.3 Commit-and-Timestamp Anchors

[-When the AI reads a section, the anchors tell it: this claim was true at commit *X* at time *T*. If HEAD has moved past *X* and touched any file referenced in the section, the AI knows to either re-verify before relying on the claim, or escalate to the human.-]

### 4.3 Commit-and-Timestamp Anchors

[-In the case study (§7), every regression had a clean post-hoc trace: the commit that broke the behavior was identifiable in hindsight. Anchors make this identification *prospective* rather than forensic.-]

### 4.4 Probe Symmetry

[-### 4.4 Probe Symmetry-]

### 4.4 Probe Symmetry

[-> Anything the AI can break in one turn, the AI should be able to inspect deterministically in one turn.-]

### 4.4 Probe Symmetry

[-For every system surface, a probe. Today's fork has one: `debug.dumpUiSnapshot` writes the rendered chat DOM to `~/.openclaw/data/tinker-ui-snapshot.html`. The AI calls `Read(file)` and sees what the human sees, deterministically, without screenshots. The compression from "describe the bug verbally" to "read the file" is the entire game.-]

### 4.4 Probe Symmetry

[-The discipline:-]

### 4.4 Probe Symmetry

[-- **Deterministic.** Same call → same output (clocks masked, IDs canonicalized). - **Bounded.** Fixed maximum size; truncation preserves the tail. - **Single tool call.** One `Read` or one RPC; not a sequence. - **Always-on.** No enabling flag, no separate process.-]

### 4.4 Probe Symmetry

[-The probe inventory for tinkerclaw under RSC:-]

### 4.4 Probe Symmetry

[-| Probe | Surface | Status | |---|---|---| | `debug.dumpUiSnapshot` | Tinker UI chat DOM | live | | `[idle-timeout-diag]` log line | LLM idle watchdog resolution | live | | `debug.tail.lastN({sessionKey})` | recent agent events for a session | proposed | | `debug.session.state({sessionKey})` | lane state, worker liveness, queued replies | proposed | | `debug.session.config({provider})` | effective resolved model + overrides | proposed | | `wa.lastOutbound({chat})` | last N WhatsApp outbound messages incl. dropped | proposed | | `cron.lastRun({jobId})` | last run state, exit code, duration, output tail | proposed |-]

### 4.4 Probe Symmetry

[-The probes that exist today were each added during an investigation that they would have prevented. The Agent-Feedback Symmetry Principle (§6) is the discipline of **adding the probe before the feature ships**.-]

### 4. Lessons from the first week (dumbed-down)

{+## 4. Lessons from the first week (dumbed-down)+}

### 4. Lessons from the first week (dumbed-down)

{+These are the lessons that I would have written into v0.1 if I had known them. They are all small. Together they describe what the discipline actually feels like in use.+}

### 4. Lessons from the first week (dumbed-down)

{+**L1. "Single owner per fact" requires friction at write time, not at read time.** The temptation when documenting something for two different audiences is to write it twice. Resist. Pick the file whose *primary question* the fact answers, write it there, and reference it everywhere else. Concretely: the cc-bridge idle timeout fix lives in *one* place — `config-shape.md` — and `failures.md`, `tool-loop.md`, and `auth-routing.md` all `see also:` it.+}

### 4. Lessons from the first week (dumbed-down)

{+**L2. Probes pay for themselves the second time they're used.** The first investigation that needed `debug.session.config` cost about two hours, partly because there was no probe and partly because the AI had to grep across six files to assemble the answer. The probe took 45 minutes to write. The next investigation will take five minutes. Net break-even is at investigation #2.+}

### 4. Lessons from the first week (dumbed-down)

{+**L3. Verify commands are easier to author than verify *names*.** The mechanical part — write a shell command that exits 0 on success — is fast. The hard part is naming the check well enough that, when it fails six months from now, the maintainer reads the name and immediately knows what's wrong. Spend the naming effort.+}

### 4. Lessons from the first week (dumbed-down)

{+**L4. The PATH bug we hit on day one will recur in every CI integration.** `pnpm` shadows system binaries via `./node_modules/.bin`. So does Yarn, sometimes. The runner prepends `/usr/local/bin:/usr/bin:/bin` to PATH explicitly. Any future runner that calls system tools needs the same fix. This is the kind of obstacle that v0.1 abstracted away as "implementation details"; in practice it eats half a day.+}

### 4. Lessons from the first week (dumbed-down)

{+**L5. `jq` is not always installed.** Several initial verify commands used `jq`. The runner failed because `jq` was not on the test machine. We rewrote with `python3 -c`. Lesson: assume nothing about installed tools beyond `bash`, `python3`, and `node`. Those three are reliably present; everything else is luck.+}

### 4. Lessons from the first week (dumbed-down)

{+**L6. Self-referential files need a carve-out.** `pii-boundary.md` documents the regex it grep-tests against. The first run of the suite failed on the file's own content. The fix: have the verify command explicitly *list* the files it checks and exclude `pii-boundary.md`. The same pattern will recur for any meta-document.+}

### 4. Lessons from the first week (dumbed-down)

{+**L7. Migrating a 3000-line file is faster as line-range surgery than as cut-and-paste.** We slimmed bible.md from 3085 → 1728 lines by writing a Python script that read specific line ranges into the new files (`tinker-ui.md`, `bug-log.md`) and wrote the slimmed bible as the complement. The whole operation took under a minute and didn't lose a single line. The naive cut-and-paste would have taken hours and probably dropped content.+}

### 5. The Auto-Merge Gate

[-## 5. The Auto-Merge Gate-]

### 5. The Auto-Merge Gate

[-The primitives compose into a merge gate that strictly dominates today's `pnpm build`:-]

### 5. The Auto-Merge Gate

[-``` merge-from-upstream: 1. git merge upstream/main 2. pnpm build # compile gate (today) 3. pnpm test:invariants # NEW: run every section's verify.cmd 4. for each optic file: parse frontmatter for each section's last_verified_commit C: if any referenced file changed between C and HEAD: mark section TOUCHED_PENDING_REVIEW 5. if any verify.cmd failed: BLOCK MERGE emit report: failed sections + suspect commits 6. if any new TOUCHED_PENDING_REVIEW: ALLOW MERGE (compile-clean) emit human-review queue 7. otherwise: SHIP ```-]

### 5. The Auto-Merge Gate

[-The gate's defining property: a merge that breaks a previously-verified behavior must either *repair the verification*, *update the documentation*, or *not ship*. The cost is one nightly cron plus one line of frontmatter per section. The benefit is the elimination of the regression class that today only surfaces when the human types a command.-]

### 5. The Auto-Merge Gate

[-The gate generalizes the LLM-regression-testing pattern [Techment, 2026] from "test my model against curated prompts" to "test my fork against curated behaviors." The behaviors are the bible's claims; the merge gate makes the claims load-bearing.-]

### 5. What v0.1 missed

{+## 5. What v0.1 missed+}

### 5. What v0.1 missed

{+In retrospect:+}

### 5. What v0.1 missed

{+- **v0.1 underestimated the value of a redirect stub at the old path.** External references (CLAUDE.md, code comments, memory notes) point at `TINKER_UI_DESIGN_BIBLE.md` (the old single file). When that file became a directory, the old `.md` path stayed in place as a 525-byte stub redirecting to `INDEX.md`. This is cheaper than chasing every external reference and prevents silent lookup failures. - **v0.1 said "the cost of an invariant is one line of YAML frontmatter."** That was wrong. The cost is roughly *five lines of YAML plus 30 minutes of design thought*: which probe should the check use? What is the failure mode this check is meant to catch? What's the right assertion shape? The discipline is cheap, not free. - **v0.1 did not anticipate the meta-document carve-out (L6).** This is now baked in. - **v0.1 underweighted the value of having the gate runner produce *colored, human-readable* output even when it exits non-zero.** A failing check that prints the stderr tail in red, with the section name highlighted, is dramatically easier to triage than a numeric exit code. The runner is only ~300 lines but the output formatting is doing real work.+}

### 6. The Agent-Feedback Symmetry Principle

[-## 6. The Agent-Feedback Symmetry Principle-]

### 6. The Agent-Feedback Symmetry Principle

[-The deepest lesson of the production day reported in §7 is that *AI-pair coding succeeds when the AI can close its own loops and fails when it cannot*. The empirical signature of the failure mode — observable in our journal grep cycles and corroborated by recent agent-evaluation literature [Augment Code, 2026; AutonomyAI, 2026] — is the agent that loops on **Explore → Explore → Explore**, never reaching **Locate**, because the locate step requires inspection capability the agent does not have.-]

### 6. The Agent-Feedback Symmetry Principle

[-The principle:-]

### 6. The Agent-Feedback Symmetry Principle

[-> **For every action an AI can take that affects observable system state, there must exist an AI-callable inspection that returns that state, deterministically, in a single tool call.**-]

### 6. The Agent-Feedback Symmetry Principle

[-Corollaries:-]

### 6. The Agent-Feedback Symmetry Principle

[-- **Build the probe before the feature ships.** A probe added during an incident is too late; the human is already typing screenshots. - **Single tool call is non-negotiable.** A probe that requires three sequential calls multiplies context-window cost per investigation by three and makes the loop too expensive to run frequently. - **Determinism is non-negotiable.** A probe that returns different output on identical state breaks the comparison that drives Locate. - **Asymmetric surfaces are tech debt.** Today's WhatsApp outbound delivery has no probe; every investigation of it requires journal grepping. This is a quantifiable debt: cost equals (frequency of investigation) × (turns per investigation) × (token cost per turn).-]

### 6. The Agent-Feedback Symmetry Principle

[-The symmetry principle is the cybernetic version of *cognitive offloading* [Risko & Gilbert, 2016]: the human extends their working memory into the environment; the AI extends its self-correction loop into deterministic probes. In both cases the external substrate carries the cognitive load that the internal mechanism cannot.-]

### 6. Pending work, by class

{+## 6. Pending work, by class+}

### 6. Pending work, by class

{+> **Emptied 2026-05-12 — superseded by v0.3 §6.** Every item that lived here has either shipped or been re-classified under v0.3's leverage-ordered backlog. This section is preserved as a header (so external references resolve) but the list itself now lives in `2026-05-12-rsc-v0.3.md` §6 "Pending work, ordered by leverage", which is the canonical source going forward. > > Snapshot of how Class A–E from v0.2 resolved: > > - **Class A (verify backfill)** — all six files now carry `verify:` blocks (see v0.3 Appendix C). > - **Class B (merge-gate cron integration)** — the runner is now wired into `pnpm test` AND `git-hooks/pre-push`, so the gate runs on every push regardless of cron state; merge-cron integration remains queued behind the `daily-fork-sync` re-enable decision. > - **Class C (more probes)** — `wa.lastOutbound` and `plugin.boot.status` shipped, plus 4 additional probes (`gateway.stuckSessions`, `gateway.diagnosticSessionCount`, `gateway.observability.snapshot`, `gateway.flow.replay`). `cc-bridge.workerInfo` remains queued (requires plugin-API extension). > - **Class D (architectural follow-ups)** — cc-bridge heartbeat stream events SHIPPED (commit `12bb2c4f7a`, made the 600s overlay belt-and-suspenders); `self.lid` population and synchronous session-status-on-surface_error still pending. > - **Class E (bible slimming)** — `bible.md` slimmed from 1,730 → ~1,500 lines via phase-3 extraction (§5.66 cc-bridge mechanics → `tool-loop.md`, §5.78 branch policy → new `branch-policy.md`).+}

### 7. Case Study: One Production Day, Three Regressions

[-## 7. Case Study: One Production Day, Three Regressions-]

### 7. Case Study: One Production Day, Three Regressions

[-On 10 May 2026 our fork surfaced three structurally distinct regressions in approximately four hours. We use them as a worked example.-]

### 7.1 Regression A — Functional regression of a fork-restored RPC

[-### 7.1 Regression A — Functional regression of a fork-restored RPC-]

### 7.1 Regression A — Functional regression of a fork-restored RPC

[-The bible's §5.68 declared `config.openExternalFile` `DEPLOYED 2026-04-18` after a prior fork-side restoration. A subsequent upstream merge silently dropped the handler. The bible kept saying `DEPLOYED` for thirteen days. The user found the regression by clicking a file link in the chat and watching nothing happen.-]

### 7.1 Regression A — Functional regression of a fork-restored RPC

[-**Under RSC.** The section's frontmatter `verify.cmd` would have been:-]

### 7.1 Regression A — Functional regression of a fork-restored RPC

[-```yaml verify: - cmd: openclaw gateway call config.openExternalFile --params '{"path":"/dev/null"}' expect: 'has("ok")' ```-]

### 7.1 Regression A — Functional regression of a fork-restored RPC

[-The nightly job, run the day after the upstream merge that dropped the handler, would have failed this check. The section would have been auto-badged `STALE`. The next auto-merge would have refused to ship until the section was either repaired (handler restored) or its claim retracted.-]

### 7.2 Regression B — Dead code that compiled cleanly

[-### 7.2 Regression B — Dead code that compiled cleanly-]

### 7.2 Regression B — Dead code that compiled cleanly

[-The cc-bridge `timeoutSeconds: 600` setting was added to the plugin catalog on 2026-05-05 as the documented fix for the 120s SIGTERM idle-watchdog issue. The setting was, in fact, never read at runtime: `applyConfiguredProviderOverrides` reads from `cfg.models.providers[provider]`, and plugin discovery never merges into `cfg`. The fix was Type A regression on day one of its existence — the documentation was wrong from the start.-]

### 7.2 Regression B — Dead code that compiled cleanly

[-**Under RSC.** The invariant frontmatter:-]

### 7.2 Regression B — Dead code that compiled cleanly

[-```yaml invariants: - "claude-code provider's effective requestTimeoutMs is 600000 at runtime" verify: - cmd: openclaw gateway call debug.session.config --params '{"provider":"claude-code"}' expect: '.requestTimeoutMs == 600000' ```-]

### 7.2 Regression B — Dead code that compiled cleanly

[-This requires the `debug.session.config` probe (§4.4), which does not exist today. The probe would have been added as part of writing the bible section — under the Symmetry Principle (§6) — and the first invariant check would have failed on 2026-05-05, the same day the dead-code fix was committed, surfacing the bug *before* the next heavy WhatsApp turn timed out twelve days later.-]

### 7.3 Regression C — Undocumented hole in webchat broadcast

[-### 7.3 Regression C — Undocumented hole in webchat broadcast-]

### 7.3 Regression C — Undocumented hole in webchat broadcast

[-When the agent ran to completion but the lifecycle-event path dropped its emission (which happens on `surface_error` timeouts and when the control-UI visibility flag is false), `chat.send`'s `.then()` block emitted no `state="final"` event. The Tinker UI's spinner stayed on `sending...` indefinitely. The bug was never documented.-]

### 7.3 Regression C — Undocumented hole in webchat broadcast

[-**Under RSC.** Even an *undocumented* invariant would have been authorable when the dichotomy was first introduced:-]

### 7.3 Regression C — Undocumented hole in webchat broadcast

[-```yaml invariants: - "every chat.send run terminates with at least one state='final' or state='error' broadcast within timeout" verify: - cmd: | RID=$(openclaw gateway call chat.send --params '{"sessionKey":"agent:main:main","message":"RSC-VERIFY-NOOP","deliver":true,"idempotencyKey":"atlas-noop-$(date +%s)"}' | jq -r .runId) sleep 30 openclaw gateway call debug.tail.lastN --params "{\"runId\":\"$RID\"}" | jq '[.events[].state] | contains(["final"]) or contains(["error"])' expect: '. == true' ```-]

### 7.3 Regression C — Undocumented hole in webchat broadcast

[-The check would have failed the first time we hit a `surface_error` timeout, weeks before the user saw the symptom.-]

### 7.4 Aggregate

[-### 7.4 Aggregate-]

### 7.4 Aggregate

[-Three regressions, three distinct shapes (Type A handler-wipe, Type A dead-code-from-birth, Type B undocumented hole), one common feature: each was invisible to type checks, build pipelines, and unit tests. Each was visible to an executable invariant the fork did not have. Each would have cost approximately *one line of YAML* to prevent.-]

### 7.4 Aggregate

[-----]

### 8. Neuroscience: Why the Atlas Works

[-## 8. Neuroscience: Why the Atlas Works-]

### 8. Neuroscience: Why the Atlas Works

[-Section 1.2 introduced the cognitive cartography analogy. Here we draw out the mapping precisely.-]

### 8. Neuroscience: Why the Atlas Works

[-**Retrosplenial cortex (RSC)** sits at the boundary between the hippocampal formation (which stores cognitive maps as the place- and grid-cell substrate [O'Keefe & Nadel, 1978; Hafting, Fyhn, Molden, Moser, & Moser, 2005]) and the posterior parietal cortex (which performs spatial transformation and mental rotation [Andersen et al., 1997]). Its function is *translation*: between egocentric "what I see from where I stand" and allocentric "where I am in the landscape." RSC lesions disconnect the egocentric and allocentric frames, producing *topographical disorientation*: patients can recognize landmarks (egocentric percept intact) but cannot navigate using them (no translation to the map) [Aguirre & D'Esposito, 1999; Maguire, 2001].-]

### 8. Neuroscience: Why the Atlas Works

[-The bible-only fork is in topographical disorientation. The egocentric view is rich: any one file, opened, makes local sense. The allocentric view does not exist as a maintained artifact. When the AI is asked to navigate (refactor, merge, debug across files), it must reconstruct an ad-hoc allocentric view from prose, every session.-]

### 8. Neuroscience: Why the Atlas Works

[-The RSC discipline gives the AI the missing translation by externalizing the allocentric frames into a small set of intermediate abstractions, anchoring each one with verifiable landmarks (executable invariants), and registering a probe at every system surface so the egocentric frame can be re-acquired in one tool call. This is the engineering analogue of a healthy retrosplenial cortex.-]

### 8. Neuroscience: Why the Atlas Works

[-The broader behavioral pattern is **cognitive offloading via cartography**, documented across human practice from medieval mappae mundi to twentieth-century air-traffic-control displays [Hutchins, 1995; Norman, 1993]. The pattern is robust because it works *with* rather than against the human (and now AI) constraint that internal working memory is bounded. RSC is the application of this old discipline to the new substrate.-]

### 8. Neuroscience: Why the Atlas Works

[-----]

### 9. Limitations

[-## 9. Limitations-]

### 9. Limitations

[-**Invariant rot.** Verify commands themselves age. A command asserting `X == 600000` is silently wrong if the unit changes from milliseconds to seconds. Mitigation: invariants carry their own `last_verified_commit`; the merge gate flags untouched-for-N-months invariants for re-review.-]

### 9. Limitations

[-**Maintenance load.** Every new bible section now requires frontmatter and at least one verify command. The load is small (≈ 5 minutes per section) and amortized, but non-zero, and a team without discipline will skip it.-]

### 9. Limitations

[-**Type B is only partially solved.** Executable invariants surface forgotten *invariants*. They do not surface forgotten *context* — the reason a particular invariant matters, the historical incident that prompted it. Prose still rots in its narrative payload.-]

### 9. Limitations

[-**Multi-optic discipline is fragile.** "At most one optic owns each fact" is easy to state and hard to enforce. Drift between optics is bounded only by author care. Mitigation: a cross-reference linter that flags facts mentioned in two optics without a `see-also` annotation.-]

### 9. Limitations

[-**Probe coverage lags.** The Symmetry Principle is a target, not a guarantee. There will always be system state with no probe yet.-]

### 9. Limitations

[-**Neuroscience as analogy, not foundation.** The RSC / cognitive-cartography framing in §1.2 and §8 is a generative metaphor that organizes the proposal; it is not a claim that the AI substrate *implements* an RSC. Mapping cognitive neuroscience onto LLM systems is suggestive but not load-bearing for the engineering proposal.-]

### 9. Limitations

[-----]

### 10. Future Work

[-## 10. Future Work-]

### 10. Future Work

[-- **Auto-generated verify commands.** An LLM pass over a bible section proposes candidate verify commands; the human reviews and accepts the strongest. Reduces the marginal cost from ≈ 5 minutes to ≈ 30 seconds. - **Optic auto-extraction.** Periodic LLM pass over the codebase emits draft updates to `flows.md`, `topology.md`, `lifecycles.md`. The human reviews diffs against the previous draft. - **Mermaid corpus.** A small library of diagram templates for sequence, state, deployment, and failure-mode diagrams, inlined directly into the optic files so the AI consumes them as text. - **Cross-optic linter.** Static check that a fact stated in `flows.md` is not also stated in `bible.md` without an explicit `see-also`. - **Probe registry as live RPC.** Today `probes.md` is a static index; in v0.2 it becomes a gateway-side RPC that returns the current list, ensuring the index cannot drift from the available probes. - **Empirical evaluation.** Track *regression-discovery latency* (time from regression-shipped to regression-noticed) for one month before and after the merge gate is enabled. Hypothesis: median latency drops from ≈ 5 days to ≈ 1 day. - **Generalization to teams.** The current proposal is single-developer-and-AI-pair. Multi-developer extension introduces conflict resolution on the optic files; HIVEMIND (J10) is the natural place to integrate.-]

### 10. Future Work

[-----]

### 11. Conclusion

[-## 11. Conclusion-]

### 11. Conclusion

[-AI-pair coding is not a fundamentally new kind of programming. It is programming with a different set of cognitive constraints — bounded context window, between-session amnesia, prose-only substrate — and the right response is to address those constraints directly with more *optics*, more *anchors*, more *probes*, and fewer assumptions.-]

### 11. Conclusion

[-The human brain solved this problem with the retrosplenial / posterior-parietal system thousands of years ago. The cognitive practice it enables — cognitive offloading into multiple partial maps, integrated by an internal translator — is the model. RSC is one engineering instantiation of that model, built small enough to be a discipline rather than a framework, and load-bearing enough to refuse merges that break behaviors the documentation claims still work.-]

### 11. Conclusion

[-Closing the cognitive architecture stack of J1–J14 with RSC reflects a deliberate choice: the most valuable piece of infrastructure for a long-running fork is not any single agent capability but the *substrate that keeps the fork honest about its own state*.-]

### 11. Conclusion

[-----]

### References (informal)

[-## References (informal)-]

### References (informal)

[-- Aguirre, G. K., & D'Esposito, M. (1999). Topographical disorientation: a synthesis and taxonomy. *Brain*, 122(9), 1613–1628. - Allspaw, J. (2012). *Web Operations: Keeping the Data on Time*. O'Reilly. - Andersen, R. A., Snyder, L. H., Bradley, D. C., & Xing, J. (1997). Multimodal representation of space in the posterior parietal cortex and its use in planning movements. *Annual Review of Neuroscience*, 20, 303–330. - Auger, S. D., Mullally, S. L., & Maguire, E. A. (2012). Retrosplenial cortex codes for permanent landmarks. *PLoS ONE*, 7(8): e43620. - Augment Code. (2026). Best AI Agent Evaluation Tools for Production Teams. *https://www.augmentcode.com/tools/best-ai-agent-evaluation-tools* - AutonomyAI. (2026). Building a QA Workflow with AI Agents to Catch UI Regressions. *https://autonomyai.io/technology/building-a-qa-workflow-with-ai-agents-to-catch-ui-regressions/* - Beck, K. (2018). *Test-Driven Development*. Addison-Wesley. - DEV Community. (2026). Vibe Coding in 2026: The Complete Guide to AI-Pair Programming That Actually Works. - Epstein, R. A. (2008). Parahippocampal and retrosplenial contributions to human spatial navigation. *Trends in Cognitive Sciences*, 12(10), 388–396. - Feathers, M. (2004). *Working Effectively with Legacy Code*. Prentice Hall. - Hafting, T., Fyhn, M., Molden, S., Moser, M.-B., & Moser, E. I. (2005). Microstructure of a spatial map in the entorhinal cortex. *Nature*, 436, 801–806. - Hutchins, E. (1995). *Cognition in the Wild*. MIT Press. - InfoQ. (2025). Spec-Driven Development: When Architecture Becomes Executable. - Kinde. (2026). Building AI-Enhanced Documentation From Code Comments to Living Architecture Docs. - Klein, G. (1998). *Sources of Power: How People Make Decisions*. MIT Press. - Larkin, J. H., & Simon, H. A. (1987). Why a diagram is (sometimes) worth ten thousand words. *Cognitive Science*, 11(1), 65–100. - Maguire, E. A. (2001). The retrosplenial contribution to human navigation. *Scandinavian Journal of Psychology*, 42(3), 225–238. - Mitchell, A. S., Czajkowski, R., Zhang, N., Jeffery, K., & Nelson, A. J. D. (2018). Retrosplenial cortex and its role in spatial cognition. *Brain and Neuroscience Advances*, 2. - Norman, D. (1993). *Things That Make Us Smart*. Addison-Wesley. - O'Keefe, J., & Nadel, L. (1978). *The Hippocampus as a Cognitive Map*. Oxford University Press. - Osmani, A. (2026). My LLM coding workflow going into 2026. *Medium*. - Percy. (2026). Snapshot Testing: Should You Go For It in 2026? - Risko, E. F., & Gilbert, S. J. (2016). Cognitive offloading. *Trends in Cognitive Sciences*, 20(9), 676–688. - Sauce Labs. (2026). The 20 Best Visual Regression Testing Tools of 2026. - Shepard, R. N., & Metzler, J. (1971). Mental rotation of three-dimensional objects. *Science*, 171, 701–703. - Swimm via Kinde. (2026). Building AI-Enhanced Documentation From Code Comments to Living Architecture Docs. - Techment. (2026). 7 Proven Strategies for LLM Regression Testing Using Golden Datasets. - Tolman, E. C. (1948). Cognitive maps in rats and men. *Psychological Review*, 55(4), 189–208. - Understand Legacy Code. (2018). What's the difference between Regression Tests, Characterization Tests, and Approval Tests? - Vann, S. D., Aggleton, J. P., & Maguire, E. A. (2009). What does the retrosplenial cortex do? *Nature Reviews Neuroscience*, 10(11), 792–802. - Wilson, M. (2010). The re-tooled mind: how culture re-engineers cognition. *Social Cognitive and Affective Neuroscience*, 5(2-3), 180–187.-]

### References (informal)

[-----]

### Appendix A — Worked frontmatter for tinkerclaw §11.6c, §11.6d, §11.6e (sketch)

[-## Appendix A — Worked frontmatter for tinkerclaw §11.6c, §11.6d, §11.6e (sketch)-]

### Appendix A — Worked frontmatter for tinkerclaw §11.6c, §11.6d, §11.6e (sketch)

[-To be filled in v0.2.-]

### Appendix B — Probe inventory for tinkerclaw under RSC (sketch)

[-## Appendix B — Probe inventory for tinkerclaw under RSC (sketch)-]

### Appendix B — Probe inventory for tinkerclaw under RSC (sketch)

[-See §4.4 table. Detailed RPC contracts to be specified in v0.2.-]

### Appendix C — Two-week pilot plan (sketch)

[-## Appendix C — Two-week pilot plan (sketch)-]

### Appendix C — Two-week pilot plan (sketch)

[-Phase 1: convert bible §11.6c–§11.6e to frontmatter form, ship `debug.session.config` and `debug.tail.lastN` probes, run verify nightly.-]

### Appendix C — Two-week pilot plan (sketch)

[-Phase 2: extract `flows.md` and `lifecycles.md` from existing bible content; observe drift between bible and the extracted optics over one upstream-merge cycle.-]

### Appendix C — Two-week pilot plan (sketch)

[-Phase 3: wire merge gate into the existing upstream-merge cron; gate one merge with a deliberate behavioral regression injected to confirm the gate refuses to ship.-]

### 7. Conclusion

{+## 7. Conclusion+}

### 7. Conclusion

{+v0.1 was a thesis. v0.2 is a report on it being true.+}

### 7. Conclusion

{+The four primitives — multi-optic documentation, executable invariants, commit-and-timestamp anchors, probe symmetry — survived contact with a real codebase. They were not all proposed at the right scale (we needed sixteen files, not seven), and the runner needed two implementation-level fixes (PATH, jq) before it would run cleanly. But the underlying mechanic — *write down what should be true, then write down how to check it* — is exactly the right shape for AI-pair coding at velocity.+}

### 7. Conclusion

{+The merge gate runner is the load-bearing piece. Without it, every primitive degrades back into prose. With it, the bible's claims become refuseable: when a claim is false, the merge that made it false does not ship. This is the property that distinguishes a useful documentation discipline from a beautiful one.+}
