Repository navigation
docs(issues): [#2278] strengthen PR review author self-audit - #2279
josecelano merged 4 commits into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Resolve the four documentation and verification-plan issues identified in the review.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Adds an implementation-ready specification for PR author self-audits and registers issue #2278 under EPIC #2003.
Changes:
- Defines self-audit gates, validator boundaries, and evidence requirements.
- Adds implementation, verification, and acceptance plans.
- Registers #2278 as an early EPIC candidate.
| File | Review summary |
|---|---|
docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/ISSUE.md |
Contains four unresolved comments concerning an absent artifact path, a retired checker reference, unstable issue links, and missing re-review-request evidence. |
docs/issues/open/2003-overhaul-guardrails-and-automation/EPIC.md |
Registers issue #2278 under EPIC #2003. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ecaa9c2 to
7ceee32
Compare
|
ACK 60219c3 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 60219c3c2993ddc7947ed552b9f78edae0ea17f8 (round 1, post-merge). Recomputed from the bytes at this head.
Label: POST_MERGE_FINDINGS — this PR merged at 2026-09-21T18:21:18Z as ffa3528c before this review was written; nothing below asks for remediation, and process-pr-review § "Reviews Submitted After Merge" governs any follow-up.
The audit record shipped here already owns F1 and F2, so this review skips those numbers and starts at F3.
The PR is four commits and three files (+374/-1): a new folder-style specification for #2278, one row registering #2278 in EPIC #2003's Approved Early Implementation Candidates table, and a new audit record for this PR's own Copilot review. The specification's shape is the template's exactly — every section present, in template order, which is closer to docs/templates/ISSUE.md than either maintainer example merged this week. Everything below is an accuracy defect in the two records, not a shape defect.
| ID | Severity | Live on develop? |
Recomputation |
|---|---|---|---|
| F3 | Minor | yes | Processing Log says "17:36 - Replied"; the replies were created 17:39:00Z/17:39:02Z. Its 17:44 re-derivation entry describes work that landed at 18:12:20Z. |
| F4 | Minor | yes | F1 cites git diff --check — a whitespace check — as evidence for a content claim; on develop its range is empty by construction. |
| F5 | Minor | yes | "31 of 42 human findings": PR #2271's record has 42 human rows, of which metadata+correctness = 30. The 31 is the retrospective's figure over all 46 rows. |
| F6 | Minor | yes | The audit record's related-artifacts reintroduces the docs/issues/open/... spec path that its own F1 removed from ISSUE.md. |
| F7 | Minor | yes | 0da04958 checks "spec progress is up to date" while leaving last-updated-utc: 16:26 (its own author time is 17:28:34Z) and adding no Progress Log line. |
| F8 | Minor | yes | The same commit dropped tiered-model-routing-design.md from related-artifacts; the file exists and line 103 still cites it. Record F1's Solution records only the three replacements. |
| F9 | Suggestion | yes | related-pr: null at head, though #2274, #2266, #2230 and #2179 all populate it. |
| F10 | Suggestion | yes | "#2271 concludes the current field roster must not change" is stronger than that retrospective's "Do not add more per-finding fields". |
Liveness: git log ffa3528c -- <path> for each of the three files returns no commit after this PR's own, so every finding above is still true on develop.
Checked, no finding
- Diff is exactly the three files, +374/-1, four commits; all four subjects Conventional and accurate to their contents; no attribution trailer;
git diff --checkover the range clean. - Author/committer times ascend throughout; the three rebased commits share committer
17:44:05Z, each later than its own author time — no committer-before-author anomaly. - Section spine equals
docs/templates/ISSUE.mdexactly and in order; frontmatter carries every field the semantic-link convention requires. Bug-Fix ProcessandRegression Test Strategy"Not applicable" meet the template's "only when the work is not substantively a bug".- The ADR the spec names exists at
develop, and it is listed as related, so "ADRs to create: None known" is consistent. - "PR #2270 recorded 25 of 43" recomputes exactly: 43 rows, 25
documentation, and a semantic re-read of the row summaries also gives 25. - "a correct four-line workflow change" matches PR #2272: four
run:lines changed intesting.yaml(+8/-4 after one reflow and a comment), and 10 of 10 rows in its audit record concern documents, not the workflow — "audit-only" holds. - "the validator does not verify all structural relationships" holds:
validate-audit-record.pychecks parity, source review ID, reply-thread ownership, resolution-commit existence, severity brackets and log order, but not detail order, re-raise targets, field roster, or whether a cited commit touches the described path. - Both paired statements exist verbatim: #2270's "Collapse re-raise bookkeeping" and its
Resolution referencequestion, atpr-2270-review/review-retrospective.md:179-189. - Record field roster and order match the template exactly;
Reviewer finding IDvalues (pr-2278-f1,F1) match Copilot's brackets;Source review ID5269357103 owns both source comments; each reply is on its own source thread (r4064792821→r4064358733,r4064792982→r4064358781); theResolution referencesubject resolves to0da04958on the branch; severities match the source brackets; both threads RESOLVED per GraphQL. - Record F2's verification line is true at this head:
test ! -e contrib/dev-tools/checks/tests/test-agent-review-report-contract.shexits 0 andcargo run --quiet --package agent-review-report-contractprints "Agent review report contract check passed." (exit 0, 0.73 s). It is not the citation the spec forbids: the crate takes no path argument and reads neither artifact, so what the run evidences is that the command replacing the retired shell checker exists and passes — which is exactly Copilot's concern. - The EPIC row keeps its table's own shape and path convention (rows 3, 5 and 10 use
docs/issues/open/...likewise), and the remainingopen/paths insideISSUE.mdare self-referential and move with the file.
|
|
||
| - 2026-09-21 17:36 UTC - Fetched review 5269357103 and normalized its two actionable Copilot findings. | ||
| - 2026-09-21 17:36 UTC - Replied to F1 and F2 with their verified resolution references. | ||
| - 2026-09-21 17:44 UTC - Re-derived F1 and F2 verification references after rebasing onto `torrust/develop`. |
There was a problem hiding this comment.
[Minor][F3] Two Processing Log stamps precede the events they record, and the log stops before the record's last edit
The replies to F1 and F2 were created at 17:39:00Z and 17:39:02Z (review-comments.json, ids 4064792821 / 4064792982), but the entry above them records "2026-09-21 17:36 UTC - Replied to F1 and F2".
This line dates the post-rebase re-derivation at 17:44. The rebase landed at 17:44:05Z as 7ceee32b, and that commit's text still read "both succeed at 07b595c4" — a pre-rebase sha this record's own Completion Rules forbid. The re-derivation is 60219c3c at 18:12:20Z, about 28 minutes later; the log has no entry for it, nor for resolving the two threads.
process-pr-review/SKILL.md:180-181 names this class as one the validator cannot catch: "nor that a log stamp is later than the commit that carries it; check those by hand." In the same gap, nothing in the record evidences the two mandatory completion steps — validate-audit-record.py exiting 0, and the final GraphQL fetch showing no unresolved actionable thread — though both threads are in fact resolved.
Merged-tree-wrong: yes, log entries dated before their events.
| - Source URL: <https://github.com/torrust/torrust-tracker/pull/2279#discussion_r4064358733> | ||
| - Concern: Lifecycle-dependent issue-spec paths would become stale when the referenced records move. | ||
| - Solution: Replaced the #2003, #2219, and #2233 issue-spec paths with stable quoted issue references. | ||
| - Current-tree verification: `git diff --check torrust/develop...HEAD -- docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/ISSUE.md` and inspection of the current tree show the three quoted stable issue references for the affected lifecycle-managed artifacts. |
There was a problem hiding this comment.
[Minor][F4] This verification line names a whitespace check as evidence for a content claim
git diff --check reports whitespace errors and conflict markers; on a clean diff it prints nothing and exits 0. It cannot "show the three quoted stable issue references" — the only evidence for that is the unnamed "inspection of the current tree" in the same sentence. The repository's own uses of the command treat it as a whitespace gate, which is what it is (docs/issues/closed/2238-refactor-native-tracker-test-fixture/agent-review-reports.md:21, .../2169-1488-si-4-migrate-torrent-cleanup/agent-review-reports.md:35).
The underlying fact is true at this head — ISSUE.md:18-20 carry "issue #2003", "issue #2219", "issue #2233" — and torrust/develop is an established remote name in this repository, so this is not a false claim but an unverifying verification. On develop it is now weaker still: ffa3528c contains 60219c3c, so the cited range is empty by construction and the command checks nothing (recomputed: git diff --check 60219c3c...60219c3c -- <path> → exit 0, no output).
PR #2271's retrospective proposed a rule for exactly this field and it is still PROPOSED; process-pr-review/SKILL.md:180 states the validator does not check these sentences.
Merged-tree-wrong: yes, a verification line whose named command cannot establish its claim.
| rounds focused on the audit rather than the delivered change. | ||
|
|
||
| PR #2270 recorded 25 of 43 findings about audit or progress-log accuracy. PR #2271 recorded 31 of | ||
| 42 human findings about the audit record. PR #2272 showed that a correct four-line workflow change |
There was a problem hiding this comment.
[Minor][F5] "31 of 42 human findings" is not supported by PR #2271's audit record, whose human rows give 30
Recomputed from docs/pr-reviews/pr-2271-review/PR-REVIEW.md at ffa3528c by parsing its own ## Findings table and classifying strictly by its own columns: 46 rows, 42 with Author class = Human — the denominator is exact. Human rows in the audit-facing categories metadata + correctness are 22 + 8 = 30. The same two categories across all 46 rows are 23 + 8 = 31.
The 31 comes from the cited retrospective itself — pr-2271-review/review-retrospective.md:141-142: "This one is warranted by 31 findings about the record itself" — which does not restrict to human findings. The spec narrows the population to the 42 human rows without re-deriving the numerator. Reading the row summaries semantically rather than by category gives 25 for findings about the record proper and about 29 including audit-contract rows; 31 is reachable only by also counting Copilot rows, which the word "human" excludes.
The neighbouring claim recomputes exactly, for contrast: PR #2270 has 43 rows, 25 of them documentation, and a semantic re-read of its summaries also gives 25, so "25 of 43" holds under both rules.
Merged-tree-wrong: yes, a count the cited record does not support for the population the sentence names.
| - process-pr-review | ||
| related-artifacts: | ||
| - "issue #2278" | ||
| - docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/ISSUE.md |
There was a problem hiding this comment.
[Minor][F6] The audit record reintroduces the lifecycle-dependent spec path its own F1 removed from ISSUE.md
This related-artifacts list carries both "issue #2278" (line 6) and the docs/issues/open/... path (line 7). Record F1's Concern reads "Lifecycle-dependent issue-spec paths would become stale when the referenced records move", and 0da04958 removed exactly this form from ISSUE.md at 17:28:34Z. This record was created afterwards, in 7ceee32b at 17:43:08Z.
The remaining open/ paths inside ISSUE.md are defensible: spec-path, its own move record and the template's closing checkpoint all refer to the file itself and move with it, which the convention's stability warning permits ("artifacts move together"). This one does not move with it — docs/pr-reviews/pr-2279-review/ stays put when #2278 closes and the spec moves to docs/issues/closed/, so the path goes stale while the stable reference beside it does not. Removing the path costs nothing.
Merged-tree-wrong: no — nothing is false today; the link breaks at the next lifecycle move.
| - [ ] Evidence-based implementation completion review recorded: issue-local retrospective created for material discoveries, or progress log states why none was needed | ||
| - [ ] Reviewer validated acceptance criteria and updated checkboxes | ||
| - [ ] Independent reviewer reports recorded in issue-local `agent-review-reports.md` when reviewers received this folder-style specification | ||
| - [x] Committer verified spec progress is up to date before commit |
There was a problem hiding this comment.
[Minor][F7] The commit that checks "spec progress is up to date" is the commit that left this spec's progress metadata stale
0da04958 (author 2026-09-21T17:28:34Z) flipped this box from [ ] to [x] while making three content changes to this file. In that same commit last-updated-utc stayed at "2026-09-21 16:26" (line 12), 62 minutes earlier than the commit's own author time, and the Progress Log (lines 190-191) gained no entry, against the template's "Append one line per meaningful update" (docs/templates/ISSUE.md:152). Both remain so at this head: git log ffa3528c -- <path> shows 0da04958 as the last commit to touch the file, and its log still ends at the 16:25 entry.
The checkbox flip is also outside what the commit's subject ("stabilize issue 2278 review references") and record F1's Solution describe.
Merged-tree-wrong: yes, a checkbox asserting a state the commit that set it contradicts.
| - .github/skills/dev/pr-reviews/process-pr-review/SKILL.md | ||
| - .github/skills/dev/pr-reviews/process-pr-review/scripts/validate-audit-record.py | ||
| - docs/templates/PR-REVIEW-TEMPLATE.md | ||
| - contrib/dev-tools/checks/agent-review-report-contract/src/main.rs |
There was a problem hiding this comment.
[Minor][F8] The "stabilize references" commit deleted an artifact link instead of stabilizing it, and the audit's Solution does not record the deletion
In one hunk, 0da04958 converted three issue-spec paths to "issue #2003" / "issue #2219" / "issue #2233" and dropped docs/issues/closed/2233-2003-tune-unified-pr-review-process/tiered-model-routing-design.md from this list entirely. That file exists at ffa3528c, and the spec still relies on it: line 103 states "tiered-model-routing-design.md from #2233 remains design input and is not revisited here." So the frontmatter no longer links an artifact the Out of Scope section rests on, and the deletion was not a stabilization — a closed/ path could have become "issue #2233" like its two neighbours.
Record F1's Solution reads "Replaced the #2003, #2219, and #2233 issue-spec paths with stable quoted issue references": three replacements, no deletion. Copilot's inline finding r4064358733 asked only for the three conversions. Its review body does mention "an absent artifact path", but no inline thread raised it and the file is not absent, so that prose does not account for the removal either.
Merged-tree-wrong: yes, the Solution field understates the commit it cites.
| github-issue: 2278 | ||
| spec-path: docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/ISSUE.md | ||
| branch: "2278-2003-strengthen-pr-review-author-self-audit-spec" | ||
| related-pr: null |
There was a problem hiding this comment.
[Suggestion][F9] related-pr stayed null through the pull request that shipped this spec
PR #2279 was opened at 2026-09-21T16:31:55Z, and the author committed to this file again at 17:28:34Z and to the branch at 18:12:20Z, so the number was available well before merge. The sibling specs merged the same week populate the field: #2274 has related-pr: 2275, #2266 has 2269, #2230 has 2270, #2179 has 2272. It is still null at ffa3528c, where the spec's own checkpoint list tracks "Spec-only PR merged into develop before implementation".
| - Consolidate the author-side evidence from the three retrospectives into a traceable disposition | ||
| of each proposed improvement: adopt, defer with rationale, or reject with rationale. Reconcile | ||
| the conflicting proposals explicitly: PR #2270 suggests collapsing re-raise rows and questions | ||
| the `Resolution reference` field, while PR #2271 concludes the current field roster must not |
There was a problem hiding this comment.
[Suggestion][F10] "#2271 concludes the current field roster must not change" is stronger than what that retrospective says
pr-2271-review/review-retrospective.md:139-140 reads: "Do not add more per-finding fields. The cost came from false values, not missing ones; the ten-field roster is sufficient." That rules out additions. It does not rule out removal, which is what the #2270 half of this sentence actually proposes (pr-2270-review/review-retrospective.md:186-189: "Ask whether every field earns its place. Resolution reference as a commit subject is fragile under rewording and is the field most often wrong here; a reply URL alone might carry the same traceability at lower cost"). The nearest support for a fixed roster is #2271's proposal 2, which would have a validator enforce "ten fields per entry" (:124) — a checking rule, not a conclusion that the roster cannot change.
T1 asks the implementer to "Reconcile the conflicting proposals explicitly". As written, the conflict is partly manufactured: an implementer would be reconciling a position #2271 did not take, and might discard #2270's removal question on the strength of it.
…evidence boundary f47addb docs(pr-reviews): record PR #2350 thread resolution (Jose Celano) 1c57bcc docs(pr-reviews): add PR #2350 review audit (Jose Celano) 0f4882f docs(issues): link write-unit-test and qualify audit paths in the #2349 spec (Jose Celano) 8ad6355 docs(issues): link subissue #2349 and record order 5-7 decisions in EPIC #2278 (Jose Celano) e22287d docs(issues): add issue specification for #2349 (Jose Celano) Pull request description: ## Summary Spec-only PR for #2349, EPIC #2278 order 6: make `agent-review-report-contract` state what it reads, so a passing run is never cited as audit evidence (friction items F56, false-evidence part, and F57). At `develop` the checker reads 15 workflow documents and no audit record, but no hook, workflow, skill, agent, or template mentions it; the PR #2271, #2279, and #2300 audits nonetheless cite it as current-tree verification. It prints plain text, is unclassified in the CLI output-contract ADR, and pins template fields at mixed granularity. The specification plans: one pin-granularity rule (label first; placeholder only when it states an admissible-value rule, with a comment); module docs naming the checked files and the audit-record boundary; migration to `no-stdout-result` (NDJSON failures on stderr, and one stderr pass record listing the checked files), approved by the maintainer under the ADR's migrate-when-touched rule; tests for that record and empty stdout; and one `process-pr-review` sentence. CI or pre-commit invocation, audit validation, and historical audit edits are out of scope. The EPIC #2278 update also records the maintainer's ordering decision (order 6 now, order 5 after PR #2344 and #2347 triage) and the three approved decisions for the order 7 validator port. ## Files touched - `docs/issues/open/2349-2278-contract-checker-evidence-boundary/ISSUE.md`: new specification. - `docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md`: order 6 row linked to #2349 and a progress-log entry. - `docs/pr-reviews/pr-2350-review/PR-REVIEW.md`: audit for review round 1. ## Review Round 1 Copilot review 5326193009 (2 findings; audit `docs/pr-reviews/pr-2350-review/PR-REVIEW.md`): - `docs(issues): link write-unit-test and qualify audit paths in the #2349 spec` (audit F1, F2). `write-unit-test` is added to `skill-links`; no inline `process-pr-review` marker is added, because the semantic skill-link convention makes frontmatter canonical. - `docs(pr-reviews): add PR #2350 review audit` - `docs(pr-reviews): record PR #2350 thread resolution` ## Notes for reviewers - Rebased onto `develop` after PRs #2344 and #2348 merged. The one conflict, in the EPIC #2278 progress log, was resolved by keeping both entries in chronological order, with the later `last-updated-utc`. ## Validation - The pre-commit hook (including `linter all`) passed on both commits; the pre-push hook passed. - GitHub: #2349 created with label `task`; `parent_issue_url` confirms it is linked under #2278. Related to #2349 Related to #2278 ACKs for top commit: josecelano: ACK f47addb Tree-SHA512: a775bc0988220c2c5106ba31a5f64da8e3397cfcf18b07e1acf7a47b384af06e9d9fc3fb1d988dcfe1852e03670ec5e1b5f63996cad1c4d69bc2776e96f8e7e4

Summary
Adds the approved implementation-ready specification for author-side PR review self-audit and deterministic evidence generation.
Changes
Validation
linter markdownlinter cspellRelated to #2278