Repository navigation
Conversation
📊 Automated PR Analysis
SummaryThis PR extends Review Checklist
Linked issues: #1789 Analyzed automatically by wshm · This is an automated analysis, not a human review. |
yeahjack
marked this pull request as ready for review
October 12, 2026 20:37
9 tasks done
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.
Summary
rtk telemetry forgeterase both the SQLite recall store and legacy tee spool, regardless of the current recovery mode or write-disable switches. Each backend reuses its existing path resolver, including environment overrides, configured paths, and migrated[tee]settings.-wal,-shm, and-journalsidecars, plus top-level RTK-shaped tee filenames. Preserve unrelated files/directories, tolerate missing stores, refuse file symlinks, and report partial cleanup failures while attempting both backends.Closes #1789. Implements the current-retriever follow-up invited in #2798 (comment). The tracking database override change in #3044 remains separate.
Design and scope
The backend modules own cleanup; the telemetry command coordinates erasure and reports failures. An unreadable/malformed config fails before overwriting configured paths with defaults. No dependencies or command-output hot paths change.
The tee scope follows the existing writer's
<epoch>_<sanitized-slug>.logformat, including older unshortened slugs. Configuration and nonmatching files remain. Erasure removes current recovery data;rtk config recall disabledseparately prevents future recovery writes.Test plan
cargo fmt --all --checkcargo clippy --all-targetscargo test --all: 4,390 passed, 8 pre-existing ignored tests not runcargo doc --no-depsbash scripts/check-test-presence.sh origin/developLocal verification ran on Linux. All destructive tests use disposable fixtures.
CI run 38304221436 passed for
102b6b73791942ea42aa6ad82206e648fbb2af83, including Linux/macOS/Windows tests, formatting, clippy, rustdoc, benchmark, and security scans. CLA passed. The target-branch check is intentionally skipped for develop; the optional AI documentation review was skipped because its repository API key is not configured (the job reports success).