Repository navigation
docs(issues): add specification for #2183 - #2187
Conversation
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.
Pull request overview
Adds a folder-style issue specification documenting the proposed calendar-based MSRV policy for #2183 (no implementation changes).
Changes:
- Add a new
docs/issues/open/.../ISSUE.mdspec describing the MSRV policy, ADR/workflow updates, and acceptance criteria. - Document computed MSRV rule (one-year-old stable Rust), enforcement approach, and recomputation procedure.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Records both review threads with their decision and the evidence behind it: the doubled-pipe report is declined, because the pattern does not occur in the file and the renderer produces no blank column for either table it names; the escaped-pipe report is accepted for the source form, which is what an implementer reads, and the command was relocated into a fenced block. Both threads carry a reply before being resolved, and a re-fetch after the round reports two threads and none unresolved.
josecelano
left a comment
There was a problem hiding this comment.
Thanks for the spec. The policy itself is well argued, and I spot-checked its claims:
- The release dates are correct. As of today the rule gives 1.90, which the spec already anticipates.
- The highest
rust-versionany locked dependency requires is 1.88, so the raise is feasible. - The
sedextraction prints exactly one value. dtolnay/rust-toolchain@stableaccepts a version number as its toolchain input.- The
cargo machetebaseline is still the two findings cited.
Requesting changes because the branch is 2005 commits behind develop. Git merges it without conflicts, but the merge result fails develop's link check (F1) and frontmatter validator (F2), and several implementation references are stale (F4). Details are in the inline threads.
[Nit][F8] The PR description is out of date. It says only docs/issues/ is touched, but docs/copilot-pr-reviews/... was added later. It also says the pre-commit gate has "six steps"; on develop it now has nine. Please refresh it after the rebase, together with the validation evidence.
Records both review threads with their decision and the evidence behind it: the doubled-pipe report is declined, because the pattern does not occur in the file and the renderer produces no blank column for either table it names; the escaped-pipe report is accepted for the source form, which is what an implementer reads, and the command was relocated into a fenced block. Both threads carry a reply before being resolved, and a re-fetch after the round reports two threads and none unresolved.
…e unified record The PR's review audit lived in the deprecated suggestions directory under docs/, following the retired workflow, while the process-pr-review skill keeps one audit record per pull request in docs/pr-reviews/ that its validation script can check. docs/pr-reviews/pr-2187-review/PR-REVIEW.md is created from the template. It carries the two earlier automated findings as F1 and F2 with their source review, dispositions, thread states and replies, and their processing log with commit hashes replaced by the commit subject. It records review 5466878644 as F9 and F10 (reviewer F1 and F2, renumbered on collision) and F3 to F8. The old file is removed. Reply URLs for the review's threads and the description response are placeholders until the replies are posted.
The documentation gate failed on this branch because cspell does not know the word, which the reviewer's finding uses and which the PR torrust#2187 audit record and a fix commit subject repeat. The quoted texts stay as written, so the word's three forms go into the project dictionary, and the record's Processing Log notes the failure.
8de09a9 to
6110485
Compare
|
Review 5466878644, F8: FIXED in the PR description, which I replaced after the rebase. It now lists both files the branch touches (the spec and Verified: |
|
@da2ce7 Thanks for working through review 5466878644. I've checked all eight findings against the current head ( The branch is now 61 commits behind The merge tool ( |
The workspace floor has only ever been discovered from the dependency tree: 1.85 came from edition 2024 and 1.88 from a transitive requirement, so the compatibility promise moves on a third party's schedule and is re-argued at every raise. The draft proposes computing rust-version from the calendar instead, as the newest stable release at least one year old, and enforcing it with a CI job that reads the manifest, which the repository currently lacks entirely. One computed floor also answers the application and the future extracted libraries with the same number, superseding the per-class split deferred by issue 1787.
The reviewed draft now has a GitHub issue, so the specification moves from the drafts folder to `docs/issues/open/` under its assigned number, and its frontmatter, heading, workflow checkpoints and progress log record that number together with the spec-only delivery branch. The Computation section now states that the 1.89.0 and 1.90.0 publication dates were verified against the upstream Rust release history rather than carried over from a sibling repository unchecked, while keeping the requirement that the implementer recomputes the pin on the day the change lands.
Commit signing is a repository-wide invariant enforced by the merge tool and the contributor workflow. Restating it inside one task's commit policy is redundant and reads as if signing were optional for work outside that plan.
The T3 row of the implementation plan carried the pin extraction command inline in a table cell, where the pipe had to be written as an escaped pipe so the cell would not split. GitHub's renderer consumes that escape, so the command reads correctly on the pull request page, but the raw markdown does not: an implementer working from the file in the tree copies a backslash into the shell, where it stops the pipe from being a pipe and passes head and its argument to sed instead. These specifications are read as raw markdown by whoever implements them, so the source form is the one that has to be correct. The command moves into a fenced block under Job shape, where the pipe needs no escape and the line can be copied verbatim into the workflow step, and the T3 row points at it. The note added alongside states why the anchored pattern matches only the workspace declaration, which is the property manual scenario M4 already verifies.
Records both review threads with their decision and the evidence behind it: the doubled-pipe report is declined, because the pattern does not occur in the file and the renderer produces no blank column for either table it names; the escaped-pipe report is accepted for the source form, which is what an implementer reads, and the command was relocated into a fenced block. Both threads carry a reply before being resolved, and a re-fetch after the round reports two threads and none unresolved.
…igrate the frontmatter to v1 The branch was cut before the closed specifications moved to the folder-style layout and before the v1 frontmatter contract applied to open specifications, so the rebased spec failed both the offline link check and the frontmatter validator. The two Background links, the two References links and the two related-artifacts entries now name docs/issues/closed/1778-migrate-to-rust-edition-2024/ISSUE.md and docs/issues/closed/1787-evaluate-msrv-bump/ISSUE.md. The frontmatter takes the shape of docs/templates/ISSUE.md: schema-version 1, the lifecycle status planned in place of open, and a quoted last-updated-utc. The progress log records the change.
…nst current develop Several values the spec handed to the implementer no longer held on current develop, and an implementer following them literally would add an action reference the repository does not use, edit the wrong lines, or miss a stale pointer. - The MSRV job reuses the uses: forms of the sibling jobs in testing.yaml at implementation time instead of pins copied into the spec, which go stale; the sccache and rust-cache mentions drop their version suffixes. - T4 names its targets (the AGENTS.md Language bullet and its MSRV policy note, the skill's MSRV sentence, the PGO draft's T1 row) instead of line numbers, uses the folder-style PGO draft path, and adds the EPIC torrust#1669 out-of-scope pointer to torrust#1787, which this policy supersedes. - Background counts the root package and all 30 workspace members. - AC5 and M5 name the derive_more::Constructor comments and allow reasons and the MSRV dictionary entry as expected sweep hits; upgrading derive_more is recorded as out of scope. - T3, M1, the job rationale and the local check run cargo check --locked, so the floor is checked against exactly the committed lockfile.
…e unified record The PR's review audit lived in the deprecated suggestions directory under docs/, following the retired workflow, while the process-pr-review skill keeps one audit record per pull request in docs/pr-reviews/ that its validation script can check. docs/pr-reviews/pr-2187-review/PR-REVIEW.md is created from the template. It carries the two earlier automated findings as F1 and F2 with their source review, dispositions, thread states and replies, and their processing log with commit hashes replaced by the commit subject. It records review 5466878644 as F9 and F10 (reviewer F1 and F2, renumbered on collision) and F3 to F8. The old file is removed. Reply URLs for the review's threads and the description response are placeholders until the replies are posted.
The documentation gate failed on this branch because cspell does not know the word, which the reviewer's finding uses and which the PR torrust#2187 audit record and a fix commit subject repeat. The quoted texts stay as written, so the word's three forms go into the project dictionary, and the record's Processing Log notes the failure.
f35f26b to
59ad7f6
Compare
|
Rebased onto |
|
ACK 59ad7f6 |
josecelano
left a comment
There was a problem hiding this comment.
Approving at 59ad7f6ac. All eight findings from review 5466878644 are fixed. The rebase onto develop (7614ae5f3) is content-identical: git range-diff shows all 10 commits equal. All commits are signed, every review thread is resolved, and Docs Lint passes on this head.
Related to #2183
Summary
This pull request adds the reviewed specification for issue #2183 and contains no implementation, so it does not resolve the issue.
The specification replaces the workspace's dependency-driven Minimum Supported Rust Version with a computed one:
rust-versionbecomes the newest stable Rust release published at least one year before the day the pin is computed, so the floor depends only on the calendar and the Rust release history and only ever rises. The rule is recorded as a repository-wide ADR, enforced by a new job in.github/workflows/testing.yamlthat reads the pin fromCargo.tomland runscargo check --lockedon exactly that toolchain, and recomputed in theupdate-dependenciesskill and the release process.Files touched
docs/issues/open/2183-adopt-calendar-msrv-policy/ISSUE.md: the specification.docs/pr-reviews/pr-2187-review/PR-REVIEW.md: the review audit record for this pull request.An earlier commit added a review audit file in the deprecated suggestions directory under
docs/; this round moves its findings into the audit record and removes the file, so the branch adds no other file. No source, test, workflow, or manifest is changed.Rebase
The branch was 2005 commits behind
develop. It is rebased from its original basee4db63d5aontodevelopat41add51ab; the five original commits applied without conflicts, andgit range-diffreports all five as unchanged.After the review rounds the branch was 61 commits behind
developagain, and it is rebased from41add51abontodevelopat7614ae5f3at the maintainer's request; no file conflicted, andgit range-diff 41add51ab..f35f26bca 7614ae5f3..59ad7f6acreports all ten commits as unchanged.This round's commits
These answer review 5466878644:
docs(issues): [#2183] repoint the closed MSRV spec links and migrate the frontmatter to v1(F1, F2): the closed-specification links andrelated-artifactsentries use the folder-style paths, and the frontmatter is migrated to v1.docs(issues): [#2183] re-verify the implementation values against current develop(F4 to F7): action references are taken from the sibling jobs intesting.yamlat implementation time, T4 describes its targets instead of line numbers and adds the EPIC Overhaul: Packages #1669 pointer, the member count is the root package plus 30 members, AC5 and M5 name thederive_morecomments as an expected sweep category, and the floor check runs with--locked.docs(pr-reviews): [#2183] move the PR #2187 audit to the unified record(F3): the audit record listed above, replacing the deprecated file.Two further commits followed the push of those three:
chore(spelling): add repoint to the project dictionary(the documentation gate's cspell step does not know the word the reviewer's F5 uses and the record and a commit subject repeat; the record's Processing Log notes it) anddocs(pr-reviews): [#2183] record the PR #2187 reply URLs(the eight Reply URL fields name the posted replies; the seven threads are resolved).F8 is this description.
Validation
At the new head:
In a Linux container with the workspace nightly toolchain, base
develop41add51ab: atde4a36f37(the rebased branch with the three fix commits) the pre-commit profile gate exited 0 (128 s),linter markdownandlinter lycheeexited 0, andlinter cspellexited 1 on the single wordrepoint; at61104852a(with the dictionary commit) and atf35f26bca(with the reply URLs) the pre-commit profile gate exited 0 (163 s and 149 s) andlinter markdown,linter cspell,linter lycheeexited 0;frontmatter-validator --allreports 19 errors / 4 warnings at each head and 19 / 4 atdevelopre-measured, so the migrated frontmatter adds no finding;validate-audit-record.py --pr-number 2187atf35f26bca, against the review comments captured after the replies were posted: 10 rows, 14 log entries, 0 failures.At the rebased head
59ad7f6ac, basedevelop7614ae5f3(the merge base): pre-commit profile gate exit 0 (77 s);linter markdown,linter cspell,linter lycheeexit 0;frontmatter-validator --all19 errors / 4 warnings at the head and 19 / 4 atdevelopre-measured;validate-audit-record.py --pr-number 2187against the review comments captured on 2026-10-13: 10 rows, 14 log entries, 0 failures;git merge-treeagainstdevelopclean.The pre-commit gate
./contrib/dev-tools/git/hooks/pre-commit.shruns nine steps: project dictionary formatting, documented Clippy allows, staged Markdown frontmatter, unused dependencies (cargo machete --with-metadata), workspace layer boundary bans (cargo deny check bans), nightly Rust formatting, all linters (linter all), the Containerfile hadolint check, and the workspace documentation tests.