What happens when your AI-assisted manuscript outgrows the context window — and the retrieval infrastructure I built to solve it.