Repository navigation
docs(issues): [#3006] spec for a schema version in tracker_client results - #3008
josecelano merged 20 commits into
Conversation
…ent results Adds the issue specification for torrust#3006 (EPIC torrust#2758) with the maintainer's decisions: the rule lives in the global CLI output contract ADR, the field is a top-level integer `schema_version`, and its first value is 1. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
[Low impact] The PR appears safe to merge; it changes documentation only. SummaryThis documentation-only PR defines the planned
No new actionable issues found. Reviews (18) · Last reviewed commit: "docs(pr-reviews): [#3006] record review ..." · Reviewed by Greptile |
|
ACK 076c87b |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 076c87b023ab353301aaf6df8a18ef12820c2afd. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop ff3600f10 writes the head's own tree: no conflict, nothing for the merge to add.
Process: a spec-only PR for a subissue of the EPIC, governed by .claude/skills/create-issue/SKILL.md (template docs/templates/ISSUE.md, -spec branch) and .claude/skills/open-pull-request/SKILL.md (title, Related to, commit-id and closing-keyword checks). Folder, branch, frontmatter and the Related to link conform.
The change against its claim: one new spec, as described. The four render paths, the string-only output::write_result, --format (json, text) on every result subcommand, the compact monitor summary, the contract doc's Stability and Auditability text, the README note, audit row F7 of the 2956 record, the ADR's lack of a version field and the validator's kebab-case schema-version match the code at this head. The premise of D2 does not hold for every result shape (F1).
Consistency: every path the spec names exists; spec-path, related-artifacts and the skill link resolve; the draft path survives only in the checkpoint that records the move. The EPIC lists neither this subissue nor its order before the close-out issue (F2).
Hygiene: two commits, author = committer, Conventional subjects with [#3006]; each carries one attribution footer line (no rule in the tree on it), and the description carries one attribution footer line too. git diff --check is clean; the skill's commit-id check prints nothing (its one token, ff3600f10, is on develop); no closing keyword in the title, description or messages.
Findings: F1 Major (the HTTP scrape result is a map keyed by info-hash, so a top-level field does not fit it as the spec says); F2 Minor (EPIC row and order); F3 Minor (consumer list and file set); F4 Minor (toolchain-qualified evidence); F5 Minor (approval checkpoint); F6 Minor (snake_case claim); F7 Nit (D3 tense). F1 blocks: the spec-only PR is where the design is approved before implementation, and that sentence tells the approver the field fits every shape. Changes requested.
Checked, no finding: frontmatter against the v1 profile and the open-folder status rule; the draft name and the move; the e2e helper only logs stdout; no stdout-result-data tool emits a version yet; no new spelling word; no review thread, so no audit record is due.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1367): the repository's pre-commit gate and lint roster exit 0 (116 s wall). This pull request has no audit record yet, so there was nothing for the audit validator to check. The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the HTTP scrape response serializes as a map with one entry per file, keyed by the hex info-hash (packages/http-protocol/src/v1/responses/scrape/deserialization.rs:63-74), and the test helper returned_files in console/tracker-client/tests/tracker_client/scrape.rs:153-155 counts the result's top-level keys as returned files, so a top-level schema_version would change that count, as F1 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success; CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is ff3600f10.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
3 open issues
What changed in this PR
Adds a spec/issue document for #3006 describing the decision and plan to introduce a top-level schema_version field to all tracker_client stdout result objects, aligned with EPIC #2758 and the global CLI output contract ADR.
Changes:
- Introduces a new issue spec capturing decisions (D1–D3), scope, acceptance criteria, and verification plan for adding
schema_version. - Documents current
tracker_clientrender/write paths and proposes a single writer that injectsschema_version. - Enumerates consumers/tests/docs to update during implementation.
| File | Description |
|---|---|
| docs/issues/open/3006-2758-tracker-client-schema-version/ISSUE.md | New issue spec defining the schema version requirement and implementation/verification plan for tracker_client outputs. |
Review effort: Lite
… name all consumers Addresses da2ce7's review of PR torrust#3008. The http scrape result is a map keyed by info-hash, so the spec records the maintainer's answers: the entries move under `files` (D4) and the UDP field sits beside the variant tag (D5). It also names the skills and the README among the consumers and in the file set, says why the e2e helper needs no change, asks for toolchain-qualified evidence, and fixes the snake_case claim and the tense of D3. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… JSON Addresses Copilot's review of PR torrust#3008: both --format values write JSON, so jq reads either; also names da2ce7 as a GitHub user. Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 001b226efe3438a56b39249d182d1dbeadee6c33. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop f73a359f8 merges cleanly, and the merged tree differs from develop only by this spec.
Process: the same governing skills as round 1, plus .claude/skills/process-pr-review/SKILL.md now that the PR has review threads.
The change against its claim: one commit, 001b226ef, whose message matches its diff. F1 is resolved: Background names the map-keyed http scrape result and the single-key UDP result; D4 moves the scrape entries under files, the key of the bencoded response; D5 keeps the UDP tag beside the field; D3 names both changes that 1 marks; Risks, T1 to T5 and AC5 follow. The facts it adds hold at this head: the Serialize impl, returned_files, results and udp_trackers as keys the client defines, and no repository reader of the UDP result as a typed enum. F3, F4, F6 and F7 are resolved; F5 is resolved by the Progress Log entry that ties approval to the merge of this PR. F2 stands: the EPIC at this head and on develop still has no row, and the log defers it to another PR, which this review cannot read.
Consistency: the six skills now named are the only Markdown outside closed specs and audits that pipes or shows tracker_client results; the file set adds them and keeps the e2e helper out, with the reason.
Hygiene: author = committer; one attribution footer line (no rule in the tree on it). git diff --check is clean; the skill's commit-id check prints nothing; no closing keyword in the title, description or messages.
Findings: F2 Minor (still open); F8 Minor (no audit record, and no thread has a reply); F9 Minor (D4 and D5 cite an answer the record does not hold); F10 Nit (order of D4, D5 and AC5).
Verdict: no blocking finding stands, but none of the 10 review threads (7 from round 1, 3 from the automated reviewer) has a reply or an audit row, so this round comments without approving.
Checked, no finding: frontmatter (last-updated-utc moved to the commit's minute); no new spelling word; the meaning of --format text that one automated thread asks about (pretty-printed JSON) is stated in the contract doc and the README.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1371): the repository's pre-commit gate and lint roster exit 0 (57 s wall). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: there is no docs/pr-reviews/pr-3008-review/ directory at this head, so the round-1 threads have no audit record yet, as F8 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/success; Greptile Review: completed/success". At posting, develop is f73a359f8.
|
ACK b4ebacd |
…nd of PR torrust#3008 Co-Authored-By: Claude Opus 5.5 <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at b4ebacdc095e2dc9686aa3e2b90f196e930f360d. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop f73a359f8 merges cleanly, and the merged tree differs from develop only by this spec.
Process: the same governing skills as round 2.
The change against its claim: one commit, b4ebacdc0, whose message matches its diff. Background and Scope now say that both --format values write JSON, text pretty-printed, which OutputFormat::is_pretty confirms (console/tracker-client/src/console/clients/unified/app.rs:15-17); line 42 names the reviewer as a GitHub user. Both answer the automated threads.
Forge record since round 2: the 10 earlier threads each carry a reply and are resolved. The replies cite commit subjects, not ids, and match the bytes. F2 is answered as a follow-up in the coordinator's PR, which keeps the EPIC out of this PR's file set, and the spec's log points there; that route is accepted, though it cannot be checked offline and develop has not moved.
Hygiene: author = committer; one attribution footer line (no rule in the tree on it). git diff --check is clean; the skill's commit-id check prints nothing; no closing keyword in the title, the description (which gained a bot summary) or the messages.
Findings: F8 Minor stands. The threads are now answered and resolved, but the head still has no docs/pr-reviews/pr-3008-review/PR-REVIEW.md, so the replies have no rows and the validator has nothing to check. The record is also where the reply IDs get mapped: the automated threads were answered as F8 and F10, while this PR's own F8 and F10 threads name other findings. F9 Minor and F10 Nit stand unchanged (lines 89 and 218); their threads came after this commit and have no reply yet. No new finding.
Verdict: no blocking finding stands; this round comments without approving until the audit record lands with a row for every thread.
Checked, no finding: frontmatter (last-updated-utc at the commit's minute); the new Progress Log line; no new spelling word.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1374): the repository's pre-commit gate and lint roster exit 0 (74 s wall). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: there is no docs/pr-reviews/pr-3008-review/ directory at this head, while every earlier thread is now answered and resolved, so those replies have no audit record, as F8 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success; CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is f73a359f8.
…isions and ACs in order Addresses da2ce7's second review of PR torrust#3008. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 050778b |
|
Re-raise of F2 in review 6025241076 (audit F14): FOLLOW_UP, as for F2. The EPIC row for #3006, its wave and the order before #2770 are in the coordinator's PR #3007 ( |
…orrust#3008 and correct a log entry Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
1 open issue
3 resolved since last review
Review effort: Lite
|
ACK a2c0fc4 |
|
ACK df39a52 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 45e486aa8094581a7b551ef4c28141731935269f. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop 6bc417424 merges cleanly, and the merged tree differs from develop only by this PR's two files.
Process: as in round 7.
The change against its claim: one commit, 45e486aa8, makes T2 and T3 one red-green increment, as its subject says: the T2 row (ISSUE.md:171), a paired commit point (:181) and the loop (:186-197), where the pass gate and the design review apply to the increment as a whole. That settles the gate conflict of the bot thread on :189. The record is unchanged since 6099880e8 (17:16:19); the validator's logic, run offline, still passes (22 rows, 12 log entries, 0 failures), and all 21 threads that predate that commit have a reply, a row and a resolution. The commit-id check prints nothing; the description is unchanged.
Forge record: the four later threads (the bot thread at 17:16:51, the round-6 pair and the round-7 thread) now have replies and are resolved. Their replies cite audit F23 to F26 and a commit docs(pr-reviews): [#3006] record review rounds 8 and 9 of PR #3008 that this branch does not hold yet, and the bot followed up at 17:42:25 that the T2 row still lacks an exception.
Hygiene: author = committer; one attribution footer line (no rule in the tree on it). git diff --check is clean; no closing keyword in the title, description or messages.
Findings: F24 Minor: the T2 row and the loop's first step say every test fails first, while the next step lets later schema_version tests pass on their first run. F25 Minor: the later threads' rows, the promised commit and the 17:01Z correction are not at this head. F20 and F23 are resolved except for what F24 and F25 carry. None blocks: those threads came after the record's last commit, the record covers every thread before it, and the loop states the exception in full, so a reader of the merged spec is not misled.
Checked, no finding: the paired commit point against the loop; the red run recorded but not committed; no new spelling word.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1410): the repository's pre-commit gate and lint roster exit 0 (139 s wall), and the audit validator passes on this PR's record (22 rows, 12 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the T2 row at line 171 of the specification still says each test comes first and fails, without the exception the loop below it makes for a later schema_version test, as F24 says. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is 6bc417424.
|
ACK 45e486a — the spec's D1 to D5 and its T2 and T3 red-green loop, the description and the 22-row audit record checked against the code, the review threads and the validator logic at this head |
|
ACK 45e486a |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 378de2e3bb691daaeffaad3782e8094089c2bba7. Recomputed from the bytes at this head, against the merge base ff3600f10; git merge-tree against develop 6bc417424 merges cleanly, and the merged tree differs from develop only by this PR's two files.
Process: as in round 8.
The change against its claim: one commit, 378de2e3b, records rounds 8 and 9 as F23 to F26, as its subject says: the bot thread on the T2 loop, the round-6 pair (F25 a superseded re-raise of F23) and the round-7 thread, each with its reply URL and resolution, plus a log entry that corrects the 17:01Z reply time to 17:02:40Z. The validator's logic, run offline against the captured comments and this PR's commits, passes: 26 rows, 14 log entries, 0 failures, and the new rows' current-tree commands reproduce. All 25 threads that predate this commit (17:43:24) have a reply, a row and a resolution, so F25 is resolved. The commit-id check prints nothing; the description is unchanged.
Hygiene: author = committer; one attribution footer line (no rule in the tree on it). git diff --check is clean; no closing keyword in the title, description, messages or record.
Findings: F24 Minor stands: the T2 row (ISSUE.md:171) and the loop's first step (:188) still say every test fails first, without the exception at :190-193. F27 Nit: the round-9 note calls review 6026332138 APPROVED, while the forge shows it DISMISSED and the round-7 note reports that state. F28 Minor: the round-8 review's two threads (17:48:17, after this commit) await replies, rows and resolutions. None blocks: the record covers every thread before its last commit, and the loop states the exception in full, so a reader of the merged spec is not misled.
Checked, no finding: the round-8 note's heads and author class; F23's label severity; the new log entries' times; no new spelling word.
Checks
On the loop's compute node at this head, against the merge base ff3600f10 (receipt server-gates-kranich-1417): the repository's pre-commit gate and lint roster exit 0 (118 s wall), and the audit validator passes on this PR's record (26 rows, 14 log entries, 0 failures). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: the Findings table of docs/pr-reviews/pr-3008-review/PR-REVIEW.md now holds 26 rows, which covers every thread opened before its last audit commit. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral; Greptile Review: completed/success". At posting, develop is 6bc417424.
|
ACK 378de2e — the spec's D1 to D5 and its T2 and T3 red-green loop, the description and the 26-row audit record checked against the code, the review threads and the validator logic at this head |
…e T2 row and the loop Addresses CodeRabbit's follow-up and da2ce7's round-10 review of PR torrust#3008. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…orrust#3008 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 25f1dd0 |
The audit validator ties a row to the review of its thread's root comment; F27 came as a follow-up reply in the F23 thread. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
3 resolved since last review
Review effort: Lite
…#3008 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 69466ca |
…3 as superseded Addresses Greptile's review of PR torrust#3008 and records it as F34. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
2 resolved since last review
Review effort: Lite
…#3008 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
ACK 8130123 |
|
Post-merge note: this pull request requested a review from this account and was closed without one at its final head. A post-merge review will not be done: The last requested review was at commit 378de2e, and the six commits after it changed only the issue specification and the review audit record. |


Related to #3006 (EPIC #2758)
Summary
Spec-only PR: adds the issue specification for #3006, which adds a schema version to every
tracker_clientstdout result. #2768 changed thecheckresult from a top-level array to{"results": [...]}without a version (PR review audit of #2956, row F7); this issue owns the version.The maintainer's decisions are recorded in the spec:
stdout-result-datatool; this issue applies it totracker_client. This issue merges before Close the CLI contract migration: update the ADR notes and the EPIC #2770, which also edits that ADR.schema_versionon every stdout result object, not on stderr diagnostics.1. It marks two breaking shape changes: thecheckarray-to-object change oftracker_client: TTY refusal and JSON-only output #2768 and thehttp scrapechange of D4.http scraperesult, today a top-level map keyed by info-hash, moves underfiles({"schema_version": 1, "files": {"<info-hash>": {...}}}), and the ADR rule adds that a result object never uses data as its top-level keys.{"schema_version": 1, "Scrape": {...}}).The spec also names the four render paths that today pass a rendered string to
output::write_result, so the implementation replaces that writer with one that takes the value and adds the field, and it lists the package tests, six skills and the README as consumers to update.Files
docs/issues/open/3006-2758-tracker-client-schema-version/ISSUE.md(new): the specification.docs/pr-reviews/pr-3008-review/PR-REVIEW.md(new): the review audit record of this PR.No code changes. Implementation waits for this PR to merge. The EPIC row for #3006 and its order before #2770 are in the coordinator's PR #3007.
Validation
linter allpasses.validate-audit-record.py) passes on the record.🤖 Generated with Claude Code
Summary by CodeRabbit