First-touch pass on an inherited or forked research codebase. Walks a structured inventory, distills what's actually load-bearing into docs/codebase-patterns.md, and seeds docs/CONTEXT.md so future agents inherit the inferred conventions instead of re-deriving them.