Skip to content

chore(issues): [#2281] archive closed issue spec - #2364

Merged
josecelano merged 2 commits into
torrust:developfrom
josecelano:chore/cleanup-completed-issues
Sep 28, 2026
Merged

josecelano merged 2 commits into
torrust:developfrom
josecelano:chore/cleanup-completed-issues

Conversation

@josecelano

Copy link
Copy Markdown
Member

Archives the completed specification for issue #2281 from docs/issues/open to docs/issues/closed.

Also strengthens the completed-issue cleanup workflow: an EPIC cannot be closed or archived while draft subissues remain, whether identified by its number-prefixed draft folder or by an explicit parent relationship.

Validation:

Copilot AI lite review requested due to automatic review settings September 28, 2026 11:11
@josecelano
josecelano requested a review from a team as a code owner September 28, 2026 11:11
@josecelano josecelano self-assigned this Sep 28, 2026
@josecelano

Copy link
Copy Markdown
Member Author

ACK 9bd559f

@josecelano
josecelano merged commit 0462d00 into torrust:develop Sep 28, 2026
1 check passed

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.

Copilot review overview

Review effort: Lite
Findings: 1 Medium severity

Open (1)
What changed in this PR

Archives the completed specification for issue #2281 and updates documentation/workflow guidance to prevent closing or archiving EPICs while draft subissues still exist.

Changes:

  • Updated issue/EPIC/docs references to point to docs/issues/closed/... for #2281.
  • Marked #2281 as done and updated progress log / checklist.
  • Strengthened the cleanup skill guide with a mandatory draft-subissue safeguard step.
File Description
docs/​issues/​open/​2281-2264-frontmatter-validator-command/​manual-verification-evidence.md Updates issue-spec pointer + timestamp to closed-path
docs/​issues/​open/​2281-2264-frontmatter-validator-command/​implementation-retrospective.md Updates related-artifact links to closed-path
docs/​issues/​open/​2281-2264-frontmatter-validator-command/​ISSUE.md Marks status DONE, updates spec-path, checklist, and progress log
docs/​issues/​open/​2264-2003-refactor-semantic-link-conventions/​EPIC.md Updates #2281 row to closed-path and DONE
contrib/​dev-tools/​checks/​frontmatter-validator/​README.md Updates issue #2281 link to closed-path
.github/​skills/​dev/​planning/​cleanup-completed-issues/​SKILL.md Adds mandatory “draft subissues remain” gate and bumps version

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

```bash
EPIC_NUMBER=1669
{
find docs/issues/drafts -maxdepth 1 -mindepth 1 -type d -printf '%p\n' | rg "/${EPIC_NUMBER}(-|$)"

@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 9bd559fa6334e8970e7ca93ce029345b396bfa46 (round 1, post-merge: merged as 0462d00cf at 2026-09-28T11:18:40Z before the requested round could start). Recomputed from the bytes at this head.

The PR adds two commits over develop ef6a4048d: f1aacc82c (the archive) and 9bd559fa6 (the skill change). It touches 8 files: five renames of the #2281 folder into docs/issues/closed/, row 2.2 of the #2264 EPIC, the validator README link, and a new mandatory Step 0.7 in cleanup-completed-issues. It archives the spec of #2281, which was closed at 2026-09-28T10:09:35Z. It also makes an EPIC stay open while draft subissues remain. The tree of 0462d00cf is identical to this head's tree, so every finding below is live on develop.

Verification:

  • Skill walk: Steps 0.6 and 1 to 5 are done for #2281: closure checked, folder moved, status: done, closed spec-path, quoted last-updated-utc in ISSUE.md, the evidence file and the EPIC, two checkpoints ticked, and row 2.2 set to DONE with a ../../closed/ link. Step 0.7 was not due, because #2264 is not being closed.
  • Reference sweep: issues/open/2281 has 12 hits at ef6a4048d and 6 at the head. All 6 are retained history: four recorded transcript lines in the evidence file, and the #2337 review record, which Step 4 exempts. All 26 relative links in the changed files resolve.
  • Safeguard (rg translated to grep -E): 1669 → 3 dirs + 3 ISSUE.md; 1488 → 12 dirs; 2264 → empty. The PR body's #1488/#1669 claim holds.
  • Version: 1.7 → 1.9 breaks no rule, because add-new-skill sets only "1.0" at creation.
  • Frontmatter: the moved ISSUE.md is v1 with done, the value the validator's closed-location rule requires, and its spec-path equals its path.

Verdict had the PR been open: APPROVE. There is no Blocker or Major, and the two Minors leave no path or claim wrong.

Findings (post-merge, live on develop at 0462d00cf):

  • F1 Minor: the archive progress-log entry is prepended, not appended.
  • F2 Minor: test-design-review.md lacks the minimal frontmatter block Step 3 asks for.
  • F3 Suggestion: the Step 0.7 content pattern misses common declaration forms.
  • F4 Suggestion: Step 0.7 cannot see planned rows that exist only in the EPIC table (#2264 now).
  • F5 Suggestion: the skill description does not surface the EPIC-closure guard.
  • F6 Nit: the title carries [#2281] for an already-closed issue, and the body has no Related to #2281.

Checked, no finding:

  • The merge base is ef6a4048d and merge-tree is clean.
  • 8 files, matching the PR's file list.
  • Both subjects are Conventional Commits. The archive subject matches Step 6's pattern word for word. There are no trailers, and the commit times are in order.
  • git diff --check is clean.
  • Step 0.6: every draft carries github-issue: null.
  • The skill change rides in its own docs(skills) commit, which AGENTS.md permits.
  • rg is already used by Step 4 of this skill and by manual-torrent-cleanup-e2e.
  • No 1.8 exists in the history.
  • Every related-artifacts path in the moved files exists.
  • agent-review-reports.md holds no path to repair.

Orchestrator's server checks (head 9bd559fa6, nightly rustc 1.100.0-nightly (1303417c4 2026-09-21)). Gate (the pre-commit profile: cargo machete --with-metadata, cargo deny check bans, nightly fmt --check, linter all, hadolint, cargo test --doc --workspace): every step pass, wall 105 s, worktree unchanged after the run. frontmatter-validator --all from this head: exit 1, nothing on stdout, the same 35 error legacy-shape and 4 closed-spec warnings as develop before the merge, and no record for any file under docs/issues/closed/2281-… — the archived spec passes the v1 schema and the repository checks in closed/. Reference sweep recomputed independently: git grep -n 'issues/open/2281' at this head returns six lines, four recorded transcript lines in the moved evidence file and two in docs/pr-reviews/pr-2337-review/PR-REVIEW.md (lines 7 and 91), matching the review's count. Posted after the merge at 2026-09-28T11:18:40Z, seven minutes after the review request; a merged pull request gets no approval and no ACK, so this is a comment review and its findings are post-merge findings.


### Progress Log

- 2026-09-28 10:53 UTC - GitHub Copilot - Verified GitHub issue #2281 is closed and archived this

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][F1] The archive progress-log entry is prepended, not appended

docs/templates/ISSUE.md:152 says "Append one line per meaningful update." This log is otherwise chronological, from 2026-09-24 16:01 to 2026-09-28 10:02 (line 596). The 10:53 entry now sits first, ahead of the 2026-09-24 entries, so the log reads out of order. The entry itself is accurate, so no claim is false and this does not block.

Post-merge fix: move lines 367-369 after the 10:02 entry (after line 607).

Step 3 of the cleanup skill says only "Add a progress log entry documenting the archival action" and not where. Closed specs place it both ways, so the position is worth stating in the skill.

- docs/issues/open/2281-2264-frontmatter-validator-command/test-design-review.md
- docs/issues/open/2281-2264-frontmatter-validator-command/manual-verification-evidence.md
- docs/issues/closed/2281-2264-frontmatter-validator-command/ISSUE.md
- docs/issues/closed/2281-2264-frontmatter-validator-command/test-design-review.md

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][F2] test-design-review.md was archived without the minimal frontmatter block Step 3 asks for

This comment is anchored on the line that names the file, because the file itself is a pure rename with no hunk. cleanup-completed-issues/SKILL.md:188-190 says: "For supplementary docs without existing frontmatter, add a minimal block with spec-path, last-updated-utc, and a semantic-links section linking back to the parent issue spec." At this head, docs/issues/closed/2281-2264-frontmatter-validator-command/test-design-review.md opens with # Issue #2281 Test-Design Review and has no frontmatter.

This does not block, because Step 3 is not one of the steps the skill marks Mandatory and no path goes stale. The same rule was also skipped in the #2280, #2323, #2342 and #2345 folders: 78 supplementary docs under docs/issues/closed/ have no frontmatter. Either the rule or the practice should change.

EPIC_NUMBER=1669
{
find docs/issues/drafts -maxdepth 1 -mindepth 1 -type d -printf '%p\n' | rg "/${EPIC_NUMBER}(-|$)"
rg -l -i "(^epic: ${EPIC_NUMBER}$|epic.*\\[#${EPIC_NUMBER}\\]|\\[#${EPIC_NUMBER}\\].*epic)" \

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.

[Suggestion][F3] The Step 0.7 content pattern misses common declaration forms and flags unrelated prose

Run at this head with rg translated to grep -E / grep -rliE --include='*.md', the check finds every real draft: for 1669, three dirs plus their ISSUE.md; for 1488, twelve dirs by name only.

Synthetic drafts with EPIC_NUMBER=1669 show the edge cases:

  • Missed:
    • epic: "1669"
    • epic: 1669 # parent
    • a trailing space or CRLF after epic: 1669
    • Subissue of EPIC #1669, the plain form draft 144 uses on its line 27
    • [#1669 - Title](...), the link form of the EPIC subissue tables
    • a single-file drafts/1669-x.md
    • a numbered dir nested below drafts/ with no markers
  • Wrongly matched: a draft under another EPIC whose prose says Unlike the EPIC [#1669] work.
  • Correctly not matched: 16690-....

None of these cases matches a real draft at this head, so this is a Suggestion. Three changes would close most of the misses:

  • use ^epic:[[:space:]]*"?N"?[[:space:]]*(#.*)?$ for the field;
  • use #N([^0-9]|$) next to epic for links;
  • drop -type d from the find so single-file drafts are covered too.

} | sort -u
```

If it finds any draft specifications, the EPIC remains open. Do not close its GitHub issue or move

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.

[Suggestion][F4] Step 0.7 looks only at drafts, so #2264 now passes it while eight subissues are still unplanned

The step's premise (lines 112-113) is that closed GitHub children alone do not make an EPIC closable. #2264 is exactly that case after this PR:

  • GitHub reports 4 of 4 sub-issues completed.
  • The check returns nothing: there is no 2264-* draft and no epic: 2264.
  • Rows 3 to 10 of its subissue table (EPIC.md:344-351) are TODO and have neither an issue nor a draft.

Step 0.7 was not due in this PR, because #2264 is not being closed. But the next reader who runs it to ask whether #2264 can close gets an empty result.

Suggestion: add to the same step that the EPIC's own subissue table has no row other than DONE.

metadata:
author: torrust
version: "1.7"
version: "1.9"

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.

[Suggestion][F5] The skill description does not surface the new EPIC-closure guard

add-new-skill/SKILL.md:25 says only name and description load at startup, and :112 asks the description to cover WHAT and WHEN. The description on line 3 covers archiving closed specs, and its triggers are archive phrases. An agent asked to close EPIC #1669 or #1488 therefore never loads the step that says not to close it.

Suggestion: name EPIC closure in the description, for example "blocks EPIC closure while draft subissues remain", and add a trigger such as "close epic".

This comment is anchored on the version line, the nearest changed line to line 3.


- 2026-09-28 10:53 UTC - GitHub Copilot - Verified GitHub issue #2281 is closed and archived this
specification in `docs/issues/closed/`; updated the parent EPIC and live documentation references -
https://github.com/torrust/torrust-tracker/issues/2281

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][F6] The title carries [#2281], but the PR neither implements nor closes #2281

This comment is anchored on the new log entry's issue link, because the PR title is outside the diff. AGENTS.md:381 says: "Include an issue reference [#<issue>] only for the issue the PR implements or closes, so the merge commit links that issue; a merely related or already-closed issue belongs in the PR body (Related to #N)."

#2281 was closed at 10:09:35Z. The title's [#2281] is now permanent in the subject of 0462d00cf, and the body has no Related to #2281 line.

Three sources of guidance disagree:

So this is recorded as a guidance conflict rather than an author error.

@josecelano
josecelano deleted the chore/cleanup-completed-issues branch October 8, 2026 05:37
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