A typed map of every component's code zone and seams.

Component & zone model

Intent — A typed catalogue of every component's code zone (focus-dirs, tags, boundary kind, external seams, read surfaces), so "which component owns this file, and what may touch it" is a queried fact, not a guess.

SummaryA typed map of every component's code zone and seams.
TargetBridge · System models
Formtyped-ir
EnforcementHard (deterministic) — a typed model held true by its reverse-mapping test + boundary lints (the drift gate is the counted sensor)

Motivation — the failure it kills

Governance constantly asks "which component owns this file? what zone is it in? what boundary kind, what seams?" Answered ad hoc, with a hardcoded path list here and a grep there, those answers drift the moment a component is added or a directory moves, and the tool keeps passing while reasoning about a stale map. It is also the map an agent needs to know where it is in a large codebase.

Why it's not just "infer it from the directory layout"

Inferring component ownership from paths re-implements a fragile heuristic per tool, and the meaning of a zone (its boundary kind, its sanctioned seams, its read surfaces) isn't in the layout at all. The component model names those facts once, in a typed registry, and a reverse-mapping test asserts the model matches the real tree in both directions. Ownership becomes a fact you query from one authoritative place, so every tool reads the same answer and a moved directory fails the parity test instead of silently staling each tool's private inference. This is the map agents operate through: dispatch reads it for zones, lints read it for scope, dynamic context-injection reads it to slice constraints.

Mechanism

The Component registry is a typed dataclass set (leaf/group/meta kinds, focus_dirs, tags, docs, dockerfile, k8s manifest); the Boundary & seam classifiers classify each component's boundary, its outside-touching seams, and its read-side surfaces. A Reverse-mapping parity test holds the model↔reality parity.

Prerequisites

Consequences & costs

Known uses

Related mechanisms