Skip to content

docs(issues): [#1669] review the 2026-11-09 workspace coupling report - #2829

Merged
josecelano merged 8 commits into
torrust:developfrom
josecelano-bot:1669-coupling-report-review
Nov 11, 2026
Merged

josecelano merged 8 commits into
torrust:developfrom
josecelano-bot:1669-coupling-report-review

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Related to #1669. Review of the regenerated workspace coupling report for EPIC #1669 (documentation only, no code change).

Fills in the "Observations" and "New findings" sections of workspace-coupling-report-2026-11-09.md, checked against cargo metadata, cargo tree -e normal and deny.toml. There are no dependency cycles and no forbidden layer edges. The 9 optional testing edges are not in any default chain, as #2482 intended. udp-server → client-lib and rest-api-runtime-adapter → udp-server are confirmed and classified as accepted (DEC-11 and the EPIC known smells). No sub-issue is proposed. DEC-11 gains a trade-off line for the HTTP/UDP health check asymmetry.

Validation performed: linter md passed on the report before the first commit; the pre-commit hook runs on every commit.

🤖 Generated with Claude Code

… report

Fill in the observations and new findings: no forbidden edges or cycles,
9 optional testing edges (none in a default chain), and classify the
udp-server -> client-lib and rest-api-runtime-adapter -> udp-server edges
as accepted.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano josecelano self-assigned this Nov 11, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 11, 2026 12:01

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 9259e0548f405311a16171f197e92f8b23051e82. Recomputed from the bytes at this head, against the merge base f8b0f26e9; git merge-tree against develop a83f3ef29 writes a clean tree with no conflict, and none of the 23 develop commits since the merge base touches the EPIC folder.

Process: a docs change to an EPIC supporting artifact, governed by write-markdown-docs, commit-changes and open-pull-request under .github/skills/dev/. No new spec or record, so no index row is due.

The change against its claim: one file; Observations and New findings are filled in as described. Recomputed from the report and the manifests: exactly 9 optional (testing) edges, matching the list; no testing in any default and no normal dependency enabling another's testing; no cycle over normal edges; none of the seven forbidden layer edges, direct or transitive; configuration is the only workspace dependency of test-helpers; the import sites of rows 1 and 2 (server/launcher.rs, the #[cfg(test)] module of testing/environment.rs, v1/container.rs, v1/adapters/stats.rs); the deny.toml udp-server wrappers; client-lib dev-only in axum-http-server, whose health check calls reqwest. All of it also holds at a83f3ef29. The cited develop head is wrong (F1); row 4 and the weight sentence are incomplete or overstated (F2, F3).

Consistency: the four links and the DEC-11 anchor resolve; the #2482 references are intentional; every added word already occurs in tracked docs; nothing moves.

Hygiene: one commit (9259e0548), Conventional subject with [#1669] as earlier EPIC commits use, body matches the diff, author equals committer. It carries one attribution footer naming a model co-author, and the description ends with a tool attribution footer line; no rule in the tree forbids either. git diff --check is clean. The skill's PR-branch commit-id check prints one line: the id on line 1249 (F1). No closing keyword in the title, description or message.

Findings: F1 Major; F2, F3 Minor; F4, F5 Nit; F6 Suggestion.

Checked, no finding: table shape (four cells per row; MD060 is off), the DEC-11 "normal" direction wording, the EPIC known-smells sentence, finding 3's reachability through rest-api-runtime-adapter.

Checks

On the loop's compute node at this head, against the merge base f8b0f26e9 (receipt server-gates-kranich-705): the repository's pre-commit gate exit 0 (80 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; this PR has no review threads, so no audit record is due. F1 read at this head: line 1249 cites torrust/develop head 850e95e35, which resolves to the 2024-10-02 Release Version 3.0.0 merge and is not an ancestor of develop. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is a83f3ef29.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The report omits concrete container wiring from its decoupling recommendation and overstates build savings by overlooking dependencies that remain reachable through other paths.

2 open issues
What changed in this PR

This documentation-only PR records the review of the regenerated workspace coupling report for EPIC #1669, including the test-support isolation work from #2482.

Changes:

  • Records checks of dependency cycles, layer boundaries, and optional testing edges.
  • Classifies UDP client and REST adapter dependencies as accepted trade-offs.
  • Documents potential future decoupling without proposing new sub-issues.
File Description
docs/​issues/​open/​1669-overhaul-packages/​workspace-coupling-report-2026-11-09.md Fills in observations and findings with dependency checks, classifications, and recommendations.

Review effort: Balanced

josecelano-bot and others added 2 commits November 11, 2026 12:18
@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Round 1 (da2ce7 review 5858533435, F5): the PR description now has Related to #1669 and a validation line (linter md before the first commit; the pre-commit hook on every commit). F1-F4 and F6 are fixed by commits whose subjects are in the thread replies.

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 4eaad544f756d6aa0d0db97abcebf0d17e2bd44d. Recomputed from the bytes at this head, against the previous round's head 9259e0548 and the merge base f8b0f26e9; git merge-tree against develop a83f3ef29 writes a clean tree with no conflict, and none of the 23 develop commits since the merge base touches the three changed paths.

What moved: seven commits (6ef758996 to 4eaad544f) fast-forward 9259e0548 and touch three files: the report, DEC-11 and a new audit record. Every other path is byte-identical to 9259e0548.

Previous findings: F1 fixed, line 1249 cites f8b0f26e9, the merge base with develop. F2 fixed, row 4 and rows 1 and 2 now cover all 21 normal edges with one to three imports. F3 fixed as raised: the weight claim is scoped to udp-server, and axum-rest-api-server gains only client-lib. The new adapter clause is F7. F4 fixed, line 1273 names DEC-11 and the EPIC known smells, which list the adapter. F5 fixed in the description. F6 fixed at DECISIONS.md:281-286.

The new commits: the container claim (v1/container.rs:87,105), the axum-http-server health check with client-lib dev-only, and the DEC-11 line all hold. The audit has eight rows. The validator's logic, run offline on the captured comments with the commit subjects from git log, reports no failure, and the 12:23 log stamp falls after the last reply and before its commit. The skill's commit-id check prints one id (F8).

Hygiene: Conventional subjects with [#1669], no bodies (optional in commit-changes), author equals committer; each has one model co-author footer line, which no rule in the tree forbids. git diff --check is clean.

Findings: F7 Minor, F8 Nit; none blocks. The numbering continues this review's series, so the audit's own F7 is a different finding.

Checked, no finding: links and the DEC-11 anchor, audit sections and frontmatter, the R1 re-raise mapping, F5's resolution URL.

Checks

On the loop's compute node at this head, against the merge base f8b0f26e9 (receipt server-gates-kranich-711): the repository's pre-commit gate exit 0 (48 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee (offline links) exit 0; the repository's audit validator on pr-2829-review exit 0 (8 rows, 1 log entry, no failures). F1 read at this head: line 1249 now cites f8b0f26e9, the merge base with develop. Read on the forge: all 8 review threads are answered and resolved. GitHub checks at this head at posting time: "". At posting, develop is a83f3ef29.

`client-lib`, `http-protocol` and the client's `reqwest`/`hyper` stack into a production build for
one small function. Through finding 2 the edge also reaches `rest-api-runtime-adapter` and the
default build of `axum-rest-api-server`, but there it adds only `client-lib` itself: both already
have `http-protocol` (through `http-core`) and `reqwest`/`hyper`. It is accepted, not blocking. If the UDP health check is ever made

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Minor][F7] The edge adds more than client-lib to rest-api-runtime-adapter

The adapter has no reqwest or hyper dependency of its own and reaches both only through udp-server → client-lib. A closure over its manifest dependencies and every Cargo.lock edge, which over-approximates, contains neither once client-lib is removed, here and at a83f3ef29; only http-protocol arrives through http-core. "There it adds only client-lib itself" holds for axum-rest-api-server, which has reqwest and hyper directly, but not for the adapter, and "for udp-server" on line 1291 is too narrow for the same reason. The audit's F3 Solution and the F3 and R1 replies repeat the claim. Splitting the clause by package fixes it.

- Source review ID: 5858533435
- Reviewer finding ID: N/A
- Source URL: https://github.com/torrust/torrust-tracker/pull/2829#discussion_r4537729385
- Concern: Line 1249 cited `850e95e35`, the 2024 release merge, which is not an ancestor of develop.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F8] The open-pull-request commit-id check prints the id this line quotes

Run verbatim at this head, the check prints one line, for the old id quoted here. It is the 2024-10-02 Release Version 3.0.0 merge, not a branch commit, so a rebase cannot invalidate it. But the skill reads empty output as the pass and asks for the check before every push that changes an audit, so this line will be flagged each time. Naming the commit by subject and date, as the reply on the thread does, keeps the output empty.

@da2ce7

da2ce7 commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

ACK 4eaad54 — F1 to F6 recomputed as fixed from the bytes at this head, with the audit record passing the validator's logic offline and a clean merge into develop a83f3ef29

@josecelano

Copy link
Copy Markdown
Member

ACK 4eaad54

@josecelano
josecelano merged commit f10959f into torrust:develop Nov 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants