Skip to content

docs(skills): clarify the issue-spec key for template-prescribed documents - #3059

Merged
josecelano merged 8 commits into
torrust:developfrom
josecelano-bot:claude/docs-evidence-template-issue-key-201a27
Nov 26, 2026
Merged

josecelano merged 8 commits into
torrust:developfrom
josecelano-bot:claude/docs-evidence-template-issue-key-201a27

Conversation

@josecelano-bot

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

Copy link
Copy Markdown
Contributor

The semantic-link convention and the write-markdown-docs skill say to replace issue-spec markers with issue: #<number> once the GitHub issue exists, while docs/templates/MANUAL-VERIFICATION-EVIDENCE.md and its evidence files use issue-spec pointing at the issue's own spec.

The two do not conflict: the replace rule is for artifacts affected by an issue, not for documents that keep the key. This PR states one criterion in both places: a document inside the issue's own folder, or one whose template prescribes the key, whose issue-spec key points at the issue's primary spec (ISSUE.md, or EPIC.md for an EPIC) and is rewritten when that spec moves, keeps the key. The template and the existing files are unchanged. No GitHub issue, by maintainer decision.

Files touched:

  • docs/skills/semantic-skill-link-convention.md: Issue-spec lifecycle paragraph, marker catalog row, Maintenance Workflow step 2.
  • .claude/skills/write-markdown-docs/SKILL.md: the matching paragraph.
  • docs/pr-reviews/pr-3059-review/PR-REVIEW.md: the review audit record.

Validation: ./contrib/dev-tools/git/hooks/pre-commit.sh passed on each commit, and validate-audit-record.py --pr-number 3059 reports no failure. Counted by a front-matter scan of docs/issues: 156 documents carry a top-level issue-spec key, 138 of them manual-verification-evidence.md; none is rewritten.

🤖 Generated with Claude Code

…cuments

The convention and the write-markdown-docs skill say to replace issue-spec
markers with issue: once the GitHub issue exists. That applies to artifacts
outside the issue folder. Evidence documents inside the issue folder keep
the issue-spec key from their template, pointing to their own ISSUE.md.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

@claude claude Bot 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.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 7 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7bfe3a9e-bc47-497f-88a2-9ce8df8c6a6b
Commits

Reviewing files that changed from the base of the PR and between 8a2f13a and 59ca44f.

Files selected for processing: 3

  • .claude/skills/write-markdown-docs/SKILL.md
  • docs/pr-reviews/pr-3059-review/PR-REVIEW.md
  • docs/skills/semantic-skill-link-convention.md

No actionable comments were generated in the recent review.

Walkthrough

This PR clarifies when template-prescribed issue-spec frontmatter keys remain unchanged as primary specs move. It also adds a PR #3059 review audit record with finding dispositions, review-processing events, and completion rules.

Changes: Issue-spec convention

Layer / File(s) Summary
Define issue-spec key retention
docs/skills/semantic-skill-link-convention.md, .claude/skills/write-markdown-docs/SKILL.md
The convention and writing guidance explain that template-prescribed issue-spec keys pointing to the primary issue or EPIC spec remain issue-spec when that spec moves.

PR review audit

Layer / File(s) Summary
Record review findings
docs/pr-reviews/pr-3059-review/PR-REVIEW.md
The audit record defines PR metadata and status terms, lists findings F1–F10, and records their concerns, stated solutions, verification, and references.
Record review processing
docs/pr-reviews/pr-3059-review/PR-REVIEW.md
The audit record logs review rounds and defines completion rules for replies, resolutions, citations, and thread checks.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • torrust/torrust-tracker#2264: This PR defines the issue-spec frontmatter convention covered by part of the issue’s scope. It does not split the convention document.
Merge Risk: Minimal · previous review 8a2f1

This PR only clarifies documentation on when issue-spec keys are kept and adds a review audit record. It has no runtime impact and is safe to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "docs(skills): clarify the issue-spec key for template-prescribed documents" matches the main change. The PR clarifies that documents whose template prescribes an issue-spec key keep that ke…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check

Explanation

The title "docs(skills): clarify the issue-spec key for template-prescribed documents" matches the main change. The PR clarifies that documents whose template prescribes an issue-spec key keep that key when the primary spec (ISSUE.md or EPIC.md) moves. The changed files are the skill guidance in the semantic skill link convention and the write-markdown-docs SKILL.md, and the title names both the scope and the topic. The title is 74 characters, which is slightly long but still clear and specific.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cc568018-4da6-4bba-9020-dfb97295aace
Commits

Reviewing files that changed from the base of the PR and between f72f93c and 8a2f13a.

Files selected for processing: 3

  • .claude/skills/write-markdown-docs/SKILL.md
  • docs/pr-reviews/pr-3059-review/PR-REVIEW.md
  • docs/skills/semantic-skill-link-convention.md

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 0 remain after this review.

@josecelano josecelano self-assigned this Nov 25, 2026
@josecelano
josecelano requested a review from da2ce7 November 25, 2026 17:03
@josecelano

Copy link
Copy Markdown
Member

ACK 096e3f4

@josecelano

Copy link
Copy Markdown
Member

@claude review

@claude claude Bot 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.

Nothing blocking. The comments below are optional suggestions. There is no need to push a fix for them before merging.

da2ce7
da2ce7 previously approved these changes Nov 25, 2026

@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 096e3f4c17103b69d0b1bff22b745d9b459a9966. Recomputed from the bytes at this head, against the merge base 8f8202582; git merge-tree against develop f72f93c5c writes a clean tree whose diff from develop is exactly the nine added lines of this change, in two files.

Process: a documentation fix governed by write-markdown-docs, commit-changes and open-pull-request; cleanup-completed-issues owns the archive step the new text relies on. The convention links write-markdown-docs, and that skill changes in the same commit.

The change against its claim: both additions take documents inside an issue folder out of the replace-with-issue: rule, and the commit body matches the diff. The tree supports it: 156 documents under docs/issues carry a top-level issue-spec key, 138 of them manual-verification-evidence.md, each pointing at its own issue's primary document at the folder's current path, as cleanup-completed-issues Step 4 prescribes on archive.

Consistency: no link, anchor, dictionary word, index row or path changes; the cited template exists, and the exception agrees with the existing stability warning.

Hygiene: one Conventional commit, author = committer, one attribution footer line (no rule in the tree on it); the description carries one attribution footer line too. git diff --check is clean, the commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, description or message.

Findings (none blocks; each is wording to close here or in a follow-up):

  • [Minor] The two new texts use different criteria (inline, skill).
  • [Minor] The marker catalog row and Maintenance Workflow step 2 keep the unqualified rule (inline, convention).
  • [Nit] "sibling ISSUE.md" and "(open/ to closed/)" are narrower than the tree (inline, convention).
  • [Minor] The description's "~80 existing evidence files" recomputes to 138 (156 in-folder documents in all), and the merge copies the description into history; it omits the validation performed and the files touched that open-pull-request asks the body to list.
  • [Nit] The templates scope names an area the diff does not touch: the change is to a skill and to the convention in docs/skills/. The head branch name matches none of the patterns in AGENTS.md.

Checked, no finding: no in-folder key is stale after an archive move; two legacy evidence files using issue: are left alone; no other skill restates the replace rule; both files' front matter is unchanged.

Checks

On the loop's compute node at this head, against the merge base 8f8202582: the repository's pre-commit gate and lint roster exit 0 (2026-11-25). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: of the Markdown files under docs/issues at this head, 156 carry an issue-spec key in their front matter (18 under open/, 2 under drafts/, 136 under closed/), and 138 of those are named manual-verification-evidence.md. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Claude Code Review: completed/neutral; Docs Lint: completed/success; CodeRabbit: completed/neutral". At posting, develop is f72f93c5c.

@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

ACK 096e3f4 — both added paragraphs checked against the 156 in-folder issue-spec keys and the archive rule they rely on, with a clean merge into develop f72f93c

@josecelano

Copy link
Copy Markdown
Member

ACK 480aee7

@josecelano
josecelano requested a review from da2ce7 November 25, 2026 17:21

@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 480aee7c92a741f03c7f44e4006161265eacd02a. Recomputed from the bytes at this head, against the merge base 8f8202582; git merge-tree against develop f72f93c5c writes a clean tree whose diff from develop is this change's nine added lines, in the same two files.

Verdict: COMMENT until the review audit record lands. The reply 4698326753 answers thread PRRT_kwDOGp2yqc68A6Iv, and that thread is resolved, but the head carries no docs/pr-reviews/pr-3059-review/PR-REVIEW.md; process-pr-review asks for it before the first reply. Threads PRRT_kwDOGp2yqc68BFS4, PRRT_kwDOGp2yqc68BFTA and PRRT_kwDOGp2yqc68BFTB have no reply yet.

The change against its claim: 480aee7c9 swaps "the sibling ISSUE.md" and "the issue's own ISSUE.md" for the folder's own spec, "ISSUE.md, or EPIC.md in an EPIC folder", as its subject says. The tree agrees: of the 156 in-folder issue-spec keys, 148 point at their own folder's ISSUE.md and 7 at their own EPIC folder's EPIC.md. The one exception, a subfolder document, points one level up.

Hygiene: one new Conventional commit with no body, author = committer, one attribution footer line (no rule in the tree on it). git diff --check is clean, the commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, description or messages.

Findings:

  • [Minor] No audit record, although a thread has been answered and resolved (see the verdict above).
  • [Minor] The reply 4698326753 cites a branch commit id as its resolution reference. process-pr-review step 6 and open-pull-request ask for the Conventional Commit subject, because a rebase changes the id; the audit record can map it.

Still open from review 6061865252:

  • [Minor] The skill and the convention still use different criteria and disagree on security reports (PRRT_kwDOGp2yqc68BFS4); unchanged.
  • [Minor] The marker catalog row and Maintenance Workflow step 2 keep the unqualified rule (PRRT_kwDOGp2yqc68BFTA); unchanged.
  • [Nit] Partly fixed by 480aee7c9: EPIC folders are now covered. The subfolder document and the drafts/ to open/ move remain; PRRT_kwDOGp2yqc68BFTB carries them.
  • [Minor] The description still says "~80 existing evidence files" (138) and still omits the validation performed and the files touched.
  • [Nit] The templates scope, now repeated in 480aee7c9, names an area the diff does not touch.

Checked, no finding: no in-folder key points at a missing file; neither file's front matter changed.

Checks

On the loop's compute node at this head, against the merge base 8f8202582: the repository's pre-commit gate and lint roster exit 0 (2026-11-25). The PR changes documentation only, so no package tests apply. Checked against the forge and the bytes at posting: docs/pr-reviews/ at this head has no pr-3059-review folder; the three threads opened by review 6061865252 each have one comment and are unresolved; and the thread with first comment 4698231533 has two comments and is resolved. 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". At posting, develop is f72f93c5c.

…keys

The convention and the write-markdown-docs skill now exempt any document whose
template prescribes an issue-spec key that points at the issue's primary spec
(ISSUE.md or EPIC.md) and is rewritten when the spec moves. The marker catalog
row and Maintenance Workflow step 2 carry the same qualifier.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano-bot josecelano-bot changed the title docs(templates): clarify the issue-spec key for in-folder evidence documents docs(skills): clarify the issue-spec key for template-prescribed documents Nov 25, 2026
@josecelano-bot

josecelano-bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

Round 2 response, review 6062023160 (da2ce7) and the findings of review 6061865252 that were not inline:

  • F5 (description said "~80", omitted validation and files): FIXED by editing the PR description. It now gives the front-matter counts (156 documents, 138 evidence files), the files touched and the validation run. F9 re-raises F5; same fix.
  • F6 (templates scope names an area the diff does not touch): FIXED for the PR title, now docs(skills): ..., and for the new commit docs(skills): state one criterion for template-prescribed issue-spec keys. The two earlier commits keep their subjects, because rewriting pushed history would invalidate the reviews and ACKs on them. F10 re-raises F6; same fix.
  • F7 (no audit record): FIXED by adding docs/pr-reviews/pr-3059-review/PR-REVIEW.md in the next commit.
  • F8 (reply cited a branch commit id): FIXED by editing reply 4698326753 to cite the commit subject.
  • F2, F3, F4 (inline threads): FIXED in docs(skills): state one criterion for template-prescribed issue-spec keys; each thread has a reply and is resolved.

@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 1e3bbe6de3c85db776b8b1fd335050f52d7fb2b0. Recomputed from the bytes at this head, against the merge base 8f8202582; git merge-tree against develop f72f93c5c writes a clean tree whose diff from develop is this change's 14 added and 1 removed lines, in the same two files.

Verdict: COMMENT until the review audit record lands. Comment 7169733295 says the record arrives "in the next commit", but this head has no docs/pr-reviews/pr-3059-review/PR-REVIEW.md. Meanwhile all four threads (PRRT_kwDOGp2yqc68A6Iv, PRRT_kwDOGp2yqc68BFS4, PRRT_kwDOGp2yqc68BFTA, PRRT_kwDOGp2yqc68BFTB) have replies and are resolved.

The change against its claim: 1e3bbe6de states one criterion in both files: a key that a template prescribes, that points at the issue's primary spec and that is rewritten when that spec moves. It also qualifies the marker catalog row and Maintenance Workflow step 2, as its body says. The #issue-spec-lifecycle anchor resolves. The security report, EPIC specs and the drafts/ to open/ move are now covered in both files.

Description and replies: the description now gives the counts (156 and 138, both recomputed), the files touched and the validation. The title's scope is now skills; the two earlier commits keep templates, consistent with the history rules in AGENTS.md. Reply 4698326753 now cites a commit subject, and the three new replies cite the subject of 1e3bbe6de.

Hygiene: one new Conventional commit whose body matches its diff, author = committer, one attribution footer line (no rule in the tree on it). git diff --check is clean, the commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, description or messages.

Findings:

  • [Minor] No audit record at this head, although every thread is answered and resolved (see the verdict above).
  • [Minor] The template criterion leaves out 18 in-folder documents that carry the key (inline, convention).

Resolved at this head: the two texts' different criteria, the unqualified catalog row and workflow step, the sibling and lifecycle wording, the description's count and missing sections, the branch commit id in reply 4698326753, and the scope of the title and the new commit.

Checked, no finding: the PR leaves docs/issues, docs/templates and docs/security unchanged; MD013 and MD060 are off, so the long catalog row passes.

Checks

On the loop's compute node at this head, against the merge base 8f8202582: the repository's pre-commit gate and lint roster exit 0 (2026-11-25). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: of the 156 Markdown files under docs/issues that carry an issue-spec key in their front matter, 138 are named manual-verification-evidence.md, which leaves the 18 other in-folder documents the review counts; and docs/pr-reviews/ at this head has no pr-3059-review folder. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral". At posting, develop is f72f93c5c.

@josecelano

Copy link
Copy Markdown
Member

ACK 76ba467

@josecelano
josecelano requested a review from da2ce7 November 25, 2026 17:53
da2ce7
da2ce7 previously approved these changes Nov 25, 2026

@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 fe02b3b3738ef2430016f7952dc720bbdd3d637d. Recomputed from the bytes at this head, against the merge base 8f8202582; git merge-tree against develop ebe9e42b9 writes a clean tree whose diff from develop is this change's three files, with 267 lines added and 1 removed.

The change against its claim: 76ba46794 widens the exception in both files to "a document inside the issue's own folder, or one whose template prescribes the key", with one condition: the key points at the issue's primary spec and is rewritten when that spec moves (skill lines 80-84, convention lines 53-58, catalog row 28, step 2 at line 301). That is no wider than the tree supports. Every issue-spec key in docs/issues points at its own issue's ISSUE.md or EPIC.md; only the evidence and security-report templates prescribe the key; and create-issue and cleanup-completed-issues (Step 4 in each) rewrite in-folder references on both moves.

The record: 8a2f13ab1 adds it, and fe02b3b37 records review 6062267415. The two new rows match their sources. The inline finding (4698649361, Minor) cites reply 4698740473 on its own thread and the subject of 76ba46794; the audit-record item is a re-raise citing the subject of 8a2f13ab1. The log entries at 17:42, 17:48 and 17:50 match the review, the commit and the reply. The validator's checks, run offline against the captured comments and the branch's commits, report 12 rows, 9 log entries and no failure.

Verdict: all five threads predate the latest record commit, and each has a reply, a row and a resolution.

Hygiene: three new Conventional commits, author = committer, one attribution footer line each (no rule in the tree on it). git diff --check is clean, and no closing keyword appears in the title, description or messages. The commit-id check prints one id (inline).

Findings (none blocks):

  • [Minor] The record cites a branch commit id (inline).
  • [Minor] The description ends with an automated summary whose first bullet says template-prescribed keys "remain unchanged when a primary spec moves". The text says the key is rewritten when that spec moves, and the exception covers in-folder documents too. The merge tool copies the description into the merge commit, so correct the bullet or remove the block before merge.
  • [Nit] Two lines in the record do not match the bytes (inline).

Checked, no finding: three documents in the 2226 issue folder carry the key outside valid front matter and are covered too.

Checks

On the loop's compute node at this head, against the merge base 8f8202582: the repository's pre-commit gate and lint roster exit 0, and the audit validator reports ok with 12 rows, 9 log entries and 0 failures (2026-11-25). The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: line 216 of the audit record names the commit id 1e3bbe6de, and line 88 carries the verification sentence the Nit quotes. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "CodeRabbit: completed/neutral". At posting, develop is ebe9e42b9.

@da2ce7

da2ce7 commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

ACK fe02b3b — the issue-spec exception checked against every in-folder key and both templates that prescribe it, every audit row against its source, reply and resolution with the validator's checks passing offline, and a clean merge into develop ebe9e42

@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Round 4 response, review 6062581226 (da2ce7). F15 (the description ended with an automated summary that contradicted the text): FIXED by editing the description, which now states the current criterion and has no automated block. F13 and F14 (audit record lines) are fixed in the audit record; see the inline replies.

@josecelano

Copy link
Copy Markdown
Member

ACK 42ee908

@josecelano
josecelano requested a review from da2ce7 November 25, 2026 18:13
@josecelano

Copy link
Copy Markdown
Member

ACK 59ca44f

@josecelano
josecelano merged commit a94c3ce into torrust:develop Nov 26, 2026
2 checks 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