# Source Layout

- `src/index.ts` owns the Loader-facing named plugin namespace and public types.
- `src/config.ts` owns the serializable Schemastery config and direct-call defaults.
- `src/runtime.ts` owns Cordis activation and returns the Tool Registry disposer.
- `src/invariant.ts` owns the explained-empty invariant companion.
- `src/retrieval/tokenizer.ts` owns Unicode and identifier tokenization.
- `src/retrieval/document.ts` projects live DSH Tool Schemas into lexical fields.
- `src/retrieval/bm25f.ts` owns deterministic Exact/BM25F ranking.
- `src/retrieval/tool-search.ts` owns the model-visible tool definition and live catalog read.
- `src/retrieval/types.ts` owns public result types and internal document types.

Keep DSH lifecycle access in `runtime.ts` or `tool-search.ts` and keep the ranking core independent of Cordis. Do not add aliases, translation, generated descriptions, or dynamic restrictions to the `0.0.x` line.
