LAYER 01 · Build the mental model

How to read the source city

Move from generated catalogs to package READMEs, then types and events—avoid blind index.ts spelunking

12 min3 source anchorsupstream@47f9438
graph → contract → producer/consumer → implementation
The question this chapter resolves

In a large agent repository, do you search functions first or find contracts first?

Build intuition

To repair complex equipment, start with wiring diagrams and interface catalogs before opening the chassis. Following one screw rarely reveals the system.

MECHANISM

Mechanism

DeepSeek Harness generates module graphs, capability-seam graphs, event producer/consumer matrices, persistence catalogs, and config catalogs from source declarations.

Read in this order: establish responsibility, locate service/event contracts, identify providers and consumers, then enter implementations and tests.

Step 1 of 4

Locate graph

Choose module, service, event, or persistence view in graph-atlas.

INVARIANTS

What extensions must preserve

  • Generated documentation blocks must stay source-synchronized
  • Teaching material should name the upstream commit it aligns to
  • Inference and source-backed fact must be clearly separated
FAILURE MODES

The tempting wrong turns

  • ×Copying package names from stale posts
  • ×Reading only the happy path, not cancellation and disposal
  • ×Assuming the first provider found is the only one
VERIFY IN SOURCE

Do not trust the conclusion—verify it

These anchors are pinned to official deepseek-harness@47f9438; account for later breaking changes when reading current upstream.

KNOWLEDGE CHECK

Pause for ten seconds before revealing

Why inspect consumers before deciding what a service really does?

Why the next chapter follows

With this method, we enter Cordis through its collaboration surface: Context.

Learn DeepSeek Harness

An independent learning project. Explanations derive from source; upstream remains authoritative.