Skip to content

docs(issues): add specification for #2183 - #2187

Merged
josecelano merged 10 commits into
torrust:developfrom
da2ce7:2183-adopt-calendar-msrv-policy-spec
Oct 13, 2026
Merged

josecelano merged 10 commits into
torrust:developfrom
da2ce7:2183-adopt-calendar-msrv-policy-spec

Conversation

@da2ce7

@da2ce7 da2ce7 commented Sep 9, 2026 •

Copy link
Copy Markdown
Contributor

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-version becomes 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.yaml that reads the pin from Cargo.toml and runs cargo check --locked on exactly that toolchain, and recomputed in the update-dependencies skill 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 base e4db63d5a onto develop at 41add51ab; the five original commits applied without conflicts, and git range-diff reports all five as unchanged.

After the review rounds the branch was 61 commits behind develop again, and it is rebased from 41add51ab onto develop at 7614ae5f3 at the maintainer's request; no file conflicted, and git range-diff 41add51ab..f35f26bca 7614ae5f3..59ad7f6ac reports 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 and related-artifacts entries 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 in testing.yaml at 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 the derive_more comments 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) and docs(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 develop 41add51ab: at de4a36f37 (the rebased branch with the three fix commits) the pre-commit profile gate exited 0 (128 s), linter markdown and linter lychee exited 0, and linter cspell exited 1 on the single word repoint; at 61104852a (with the dictionary commit) and at f35f26bca (with the reply URLs) the pre-commit profile gate exited 0 (163 s and 149 s) and linter markdown, linter cspell, linter lychee exited 0; frontmatter-validator --all reports 19 errors / 4 warnings at each head and 19 / 4 at develop re-measured, so the migrated frontmatter adds no finding; validate-audit-record.py --pr-number 2187 at f35f26bca, against the review comments captured after the replies were posted: 10 rows, 14 log entries, 0 failures.

At the rebased head 59ad7f6ac, base develop 7614ae5f3 (the merge base): pre-commit profile gate exit 0 (77 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all 19 errors / 4 warnings at the head and 19 / 4 at develop re-measured; validate-audit-record.py --pr-number 2187 against the review comments captured on 2026-10-13: 10 rows, 14 log entries, 0 failures; git merge-tree against develop clean.

The pre-commit gate ./contrib/dev-tools/git/hooks/pre-commit.sh runs 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.

Copilot AI lite review requested due to automatic review settings September 9, 2026 14:14

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.

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.md spec 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.

da2ce7 added a commit to da2ce7/torrust-tracker that referenced this pull request Sep 9, 2026
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 josecelano self-assigned this Sep 9, 2026

@josecelano josecelano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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-version any locked dependency requires is 1.88, so the raise is feasible.
  • The sed extraction prints exactly one value.
  • dtolnay/rust-toolchain@stable accepts a version number as its toolchain input.
  • The cargo machete baseline 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.

da2ce7 added a commit to da2ce7/torrust-tracker that referenced this pull request Oct 9, 2026
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.
da2ce7 added a commit to da2ce7/torrust-tracker that referenced this pull request Oct 9, 2026
…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.
da2ce7 added a commit to da2ce7/torrust-tracker that referenced this pull request Oct 9, 2026
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.
@da2ce7
da2ce7 force-pushed the 2183-adopt-calendar-msrv-policy-spec branch from 8de09a9 to 6110485 Compare October 9, 2026 10:51
@da2ce7

da2ce7 commented Oct 9, 2026

Copy link
Copy Markdown
Contributor Author

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 docs/pr-reviews/pr-2187-review/PR-REVIEW.md, with the old audit file removed), the rebase onto develop, this round's three commits, and the validation at the new head with all nine pre-commit steps.

Verified: contrib/dev-tools/git/hooks/pre-commit.sh on develop defines nine steps.

@josecelano

Copy link
Copy Markdown
Member

@da2ce7 Thanks for working through review 5466878644. I've checked all eight findings against the current head (f35f26bca), and they're fixed. All threads are resolved.

The branch is now 61 commits behind develop. Could you rebase it onto the latest develop and push? None of those commits touch anything the spec depends on, so I expect no conflicts.

The merge tool (contrib/dev-tools/git/merge-pull-request.sh) refuses to merge a branch whose base is behind develop, and the develop ruleset dismisses approvals when new commits are pushed. So I'll approve after the rebase, once Docs Lint has passed on the new head.

da2ce7 added 10 commits October 13, 2026 14:46
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.
@da2ce7
da2ce7 force-pushed the 2183-adopt-calendar-msrv-policy-spec branch from f35f26b to 59ad7f6 Compare October 13, 2026 12:48
@da2ce7

da2ce7 commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

Rebased onto develop 7614ae5f3 as asked: the new head is 59ad7f6ac57e44e61eda2a5127a7068c90f9de82. No file conflicted, so the content of every commit is unchanged: git range-diff 41add51ab..f35f26bca 7614ae5f3..59ad7f6ac shows all 10 commits equal. The gate at the new head is in the description's Validation section.

@josecelano

Copy link
Copy Markdown
Member

ACK 59ad7f6

@josecelano josecelano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@josecelano
josecelano merged commit f7380a4 into torrust:develop Oct 13, 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.

3 participants