Repository navigation
docs(issues): add spec for scrape ignoring persisted torrent downloads - #2408
Merged
josecelano merged 3 commits intoOct 2, 2026
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The evidence does not verify the persisted database value, and the specification contradicts the PR’s spec-only workflow.
Review effort: Balanced
Findings: 4
Open (4)
What changed in this PR
Adds the specification and pre-fix evidence for persisted torrent download counts being lost from scrape responses after restart.
Changes:
- Documents design options, implementation plan, tests, and acceptance criteria.
- Records SQLite-backed HTTP/UDP reproduction evidence.
| File | Description |
|---|---|
ISSUE.md |
Defines bug scope, design, and verification plan. |
manual-verification-evidence.md |
Records the pre-fix reproduction. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
josecelano
force-pushed
the
2406-scrape-ignores-persisted-torrent-downloads-spec
branch
from
October 2, 2026 13:37
83a1f6c to
5b254f4
Compare
Member
Author
|
ACK 1efb4ff |
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
Adds the issue specification for the bug where HTTP and UDP scrape report zero downloads for a torrent after a tracker restart, even though persistence (
persistent_torrent_completed_stat) saved its completion count. Announce lazily restores the persisted count; scrape only reads the in-memory swarm.This is a spec-only PR. Implementation (red regression test, fix, green, like-for-like recheck) follows in a separate PR on the
2406-scrape-ignores-persisted-torrent-downloadsbranch after this merges.Files
docs/issues/open/2406-scrape-ignores-persisted-torrent-downloads/ISSUE.md: bug specification, scope, Option A/B design choice (read-only vs. cache a peerless swarm, maintainer preference B), regression-test strategy, plan, and acceptance criteria.docs/issues/open/2406-scrape-ignores-persisted-torrent-downloads/manual-verification-evidence.md: V1 pre-fix reproduction.Validation
completed: 1; after a clean restart and before any announce, HTTP reporteddownloaded: 0and UDP reportedcompleted: 0. Commands and output are in the evidence file.linter alland staged frontmatter validation.Context
Found during the #1488 SI-22 shutdown work and handed off to be fixed independently, ahead of SI-22.
Related to #2406