Repository navigation
fix: prevent missing and incomplete documentation pages - #147
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Parent and repository overview prompts asked API models to read child pages without providing file-reading tools or the page contents. Responses such as “I'll start by reading…” followed by file paths were saved as finished Markdown and skipped on subsequent runs. Module agents could also finish without writing their required page.
This change supplies immediate-child documentation within a 32,000-token input budget, validates overview content before saving, and allows one correction attempt shared with Mermaid validation. Reruns automatically repair empty pages and the specific reading-preamble/path-only failure while preserving other existing prose. Successful replacements are atomic; failed recovery retains the original page.
Module agents now check for their required file. API agents receive up to two reminders in the same conversation before failing explicitly; subscription agents fail explicitly when the file is absent. Delegated module reservations remain resumable, and failures cannot silently pass after independent modules finish.
Fixes #134.
Validation:
No new dependencies, CLI flags, configuration fields, or backend interfaces. Child excerpts may be truncated to preserve the input budget; a real provider/pipeline rerun remains useful to confirm documentation quality.