agent traversal
rule
traverse the corpus by ownership, not keyword accumulation: machine index ->
raw .md document of the nearest governing rule -> its direct related links
only when a boundary crosses domains.
- rendered Fumadocs URL: reading and browsing
- matching
.mdURL: stable direct-retrieval representation - both identify the same canonical document and path
why
keyword navigation reads unrelated examples alongside governing rules. a domain rule (database pagination) shares keywords with a stack page (TanStack Query optimization) but governs different concerns. the agent conflates implementation mechanisms with core reasoning, copies a library-specific pattern into domain decisions, and breaks the corpus's portable/technology-specific boundary. the codebase then says "we use TanStack because the gurus say so" instead of "we cache because cost matters, and we use TanStack to implement it here" — decisions stay tethered to a stale implementation across boundary changes.
ownership-first retrieval keeps the reason separate from the mechanism, so a future engineer can substitute a new technology confidently.
retrieval path
- fetch
/guru/llms.txtfor the compact raw-document catalog, or/guru/agent-index.jsonwhen title, kind, canonical URL, and raw URL are needed as structured data. - start with
corewhen choosing an optimization principle: readability, maintenance surface, bounded units, or compounding work. - select the owning
domainfor the decision boundary. - read a
stackpage only when the rule depends on a named library or platform. - use a case study to inspect a full proven flow, not as a competing owner.
- retrieve direct related links only when they name a needed dependency, authority, or verification path.
good and bad
bad
Agent searches "cache" in corpus -> reads TanStack Query stack page + performancedomain page in random order -> adopts TanStack's identity-key pattern for aD1 query cache that has no browser client -> 6 months later, caching ruleschange, only TanStack page is updated, D1 pattern is orphaned and no longerverified
keyword-only retrieval treats library patterns as owning facts instead of implementation choices bounded to that library. when the core principle (e.g., cache invalidation) changes, orphaned copies in other domains are silent and untraced: duplicated rules drift independently, none can be found from the owner, and the corpus contradicts itself while every reader assumes the page they found is the law.
good
Agent consults agent-index.json for "cache" -> selects core principle forperformance/cache-identity -> reads that rule's verification checklist ->navigates to performance domain for ownership rules -> reads stack page onlyto implement the chosen rule in TanStack Query (or D1) -> documents theverification in the domain owner, not the stack page
each read narrows the decision while preserving the owner that can explain and verify it. when a core principle changes, one place is authoritative and stack-specific copies can be checked against it. the reason stays separable from the mechanism, so replacing a library means re-implementing one stack page against an unchanged governing rule, not re-deriving the decision.
verification
for any corpus page, confirm its raw_url returns the authored MDX and its
canonical_url renders the same title through Fumadocs. verify one traversal
starts at the appropriate core or domain owner before reaching a
stack-specific practice.