Repository navigation
Conversation
Snapshot of drift fixes found in dry-run test 2026-07-19. See PR body for full diff explanation.
This was referenced Jul 19, 2026
Owner
Author
|
Superseded by per-file PRs (same drift fixes, cleaner review experience):
Plus #190 (script safety fix) from same doc-keeper validation cycle. Close this snapshot PR — review the per-file ones instead. |
EVWorth
added a commit
that referenced
this pull request
Jul 19, 2026
Two fixes for scripts/doc-keeper-sweep.sh: 1. Checkout the work branch BEFORE the agent runs (not after). Previously, if the agent was killed mid-run (timeout, Ctrl-C, OOM), partial changes landed on main's working tree — exactly what happened during the dry-run test that produced PR #189's snapshot. Branching first isolates agent edits to a throwaway branch even when the script is interrupted. 2. Add .doc-keeper-report.md to .gitignore. The report is a per-run artifact regenerated each sweep; not source. Without the ignore entry, accidental commits were possible. Refs: - #189 (snapshot branch — doc-keeper dry-run findings, for review)
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.
This PR is a snapshot of drift fixes the doc-keeper agent produced in a dry-run test. The test was killed mid-run by timeout, so no formal
.doc-keeper-report.mdwas written. Review the diff per-file before deciding what to do.Why this PR exists
Validates the doc-keeper agent works end-to-end (B from our roadmap). Captures the agent's findings for human review before they disappear.
Drift the agent found + fixed
docs/design/TESTING_STRATEGY.md3307/3308/3309→13306/13307/13308(matchesdocker-compose.test.yml+ CI service) — exactly the drift the earlier reviewer flagged. Plus seed path, healthcheck retries, container names.docs/design/ARCHITECTURE.mdschemaStore/uiStore(don't exist), addedfavoritesStore/themeStore(do exist).README.md1465 → 1488+,36 → 45(matches current CI output). Addedai/andquerybuilder/component dirs.mas-sqlitenow mentioned for history storage.docs/design/TECH_DECISIONS.mddocs/design/DESIGN_REQUIREMENTS.md.opencode/AGENTS.mdNet: ~88 insertions, ~73 deletions across 6 files. Well under the 2000-line diff guardrail.
Caveats
.doc-keeper-report.mdwritten (script killed before reaching that step).opencode/AGENTS.mdedit may overlap with docs: reference check-release-readiness.sh in release flow #187's release-flow docs workRecommendation
Two options:
A. Discard this PR, use it as a learning exercise. Fix the
--dry-runscript (branch BEFORE agent, not after), then re-run cleanly. End up with proper per-file PRs from doc-keeper.B. Cherry-pick the fixes into proper shrink PRs — one per file (ARCHITECTURE.md shrink, TESTING_STRATEGY.md fix, DESIGN_REQUIREMENTS.md annotate, README.md refresh). Each with a proper
.doc-keeper-report.md. Slower but cleaner.My pick: B, with the script fix as a separate small PR.
Related
test/doc-keeper-dry-runbranch