Repository navigation
feat(ci): [#2222] add package coverage regression reporting - #2293
josecelano merged 18 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #2293 +/- ##
===========================================
- Coverage 85.00% 84.88% -0.13%
===========================================
Files 356 357 +1
Lines 32581 33162 +581
Branches 32581 33162 +581
===========================================
+ Hits 27696 28150 +454
- Misses 4494 4617 +123
- Partials 391 395 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Copilot review overview
Review effort: Lite
Findings: 6
Open (8)
This test manages a temp directory manually and only cleans up at the end, which can leak temp… · New This test manages a temp directory manually and only cleans up at the end, which can leak temp… · New This evidence still references the old tool/package namepackage-coverage-regression, but the PR… · New This evidence still references the old tool/package namepackage-coverage-regression, but the PR… · New The YAML frontmatter list undersemantic-links.related-artifactsappears mis-indented (items at… · New The workflow name referenced here is nowGenerate Coverage Reports (PR)(plural) in… · New Usingdrop(writeln!(...))to ignore theResultis unconventional and slightly harder to read.… · New The Order-of-Execution table marks items 2–4 as[ ], but earlier in this plan items 2–4 are… · New
What changed in this PR
Adds a report-only, package-scoped coverage regression report to the PR coverage workflow, moving discovery/validation/rendering into a repository-owned Rust tool and documenting portable CI workflow guidance.
Changes:
- Introduces
package-coverage-check(Rust) to discover changed packages, compare base/head coverage, validate artifacts, and render the Markdown summary. - Updates
generate_coverage_pr.yamlto use a dynamic matrix for per-package base/head coverage runs plus an always-present summary job. - Adds/updates documentation for the workflow, rollout evidence, and canonical CI workflow implementation guidance.
| File | Description |
|---|---|
| docs/testing.md | Documents the new PR package coverage workflow behavior. |
| docs/issues/open/2222-1347-package-coverage-regression-ci/workflow-portability-refactor-plan.md | Adds a refactor plan document for making workflows portable/thin. |
| docs/issues/open/2222-1347-package-coverage-regression-ci/manual-verification-evidence.md | Records initial local verification evidence and pending hosted scenarios. |
| docs/issues/open/2222-1347-package-coverage-regression-ci/ISSUE.md | Updates the issue spec to reflect the approved base/head double-build design. |
| contrib/dev-tools/checks/package-coverage-check/tests/summary.rs | Adds tests for artifact loading behavior. |
| contrib/dev-tools/checks/package-coverage-check/src/main.rs | Implements the CLI adapter for matrix/compare/summary commands. |
| contrib/dev-tools/checks/package-coverage-check/src/lib.rs | Implements discovery, comparison, artifact validation, and summary rendering. |
| contrib/dev-tools/checks/package-coverage-check/Cargo.toml | Defines the new Rust tool crate. |
| Cargo.toml | Registers the new tool as a workspace member. |
| AGENTS.md | Links to the new CI workflow implementation skill. |
| .github/workflows/generate_coverage_pr.yaml | Adds discover/matrix/summary jobs for package coverage regression reporting. |
| .github/workflows/AGENTS.md | Adds workflow-local constraints and points to the canonical skill. |
| .github/skills/dev/ci/implement-workflow/SKILL.md | Adds canonical, repository-owned guidance for implementing workflows portably. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
92ccb07 to
ed65c32
Compare
|
ACK 3b56344 |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 3b563441f2c2d3a47fb447037cd08000cf359e5d (round 1, post-merge). Recomputed from the bytes at this head.
Label: POST_MERGE_FINDINGS — this PR merged at 2026-09-22T12:33:41Z as bbcb34ff before this review was written; nothing below asks for remediation, and process-pr-review § "Reviews Submitted After Merge" governs any follow-up.
No audit record exists at this head, so loop findings number from loop F1 upward.
Recomputed shape: 18 commits (a0492149..3b563441), 16 files, +1884/−110, matching pr.json. The PR adds the workspace member contrib/dev-tools/checks/package-coverage-check (lib 756 / main 329 / integration 48 lines; 19 tests), rewrites generate_coverage_pr.yaml into a three-job adapter (Discover Package Coverage, Package Coverage (<pkg>), Package Coverage Regression), and adds the implement-workflow skill, .github/workflows/AGENTS.md, docs/testing.md guidance, a Containerfile/.dockerignore recipe repair, and the #2222 issue folder. The load-bearing claims hold: the trigger is pull_request, never pull_request_target; both sides are pinned to pull_request.base.sha/head.sha, so "immutable" is real and the merge ref is never measured; the comparison is exact integer percentage-point arithmetic with a strict > at five points (an exactly-5.00 pp drop does not warn); and no step depends on any secret or token beyond GITHUB_TOKEN — the only privilege declaration in the file is environment: coverage on the pre-existing coverage job, untouched here. The five-point threshold lives in neither the workflow nor a named tool default: it is an unnamed literal at main.rs:155.
POST_MERGE_FINDINGS
| id | severity | live on develop? | recomputation |
|---|---|---|---|
| loop F1 | Minor | live | package-coverage-summary (check "Package Coverage Regression") has no continue-on-error; under if: always() a failed discovery job yields an empty DISCOVERY, and read_json returns invalid JSON: EOF …, so the report-only check goes red on an upstream failure. |
| loop F2 | Minor | live | docs/testing.md:79 names Generate Coverage Report (PR); enumerating ^name: across all 15 workflows, no such workflow exists — this one is Generate Coverage Reports (PR). Copilot thread resolved, fix never landed. |
| loop F3 | Minor | live | Plan frontmatter related-artifacts entries sit at 4/3/4/6/6 spaces. Permissive profile (profile.rs:209,213) means no gate catches it. Copilot thread resolved, fix never landed. |
| loop F4 | Minor | live | The evidence file's "reproduce … by checking out the recorded commits" is unfollowable: git cat-file -t exits 128 (Not a valid object name) for both 88822c5c and aa026584; 10 stale package-coverage-regression mentions survive. Two Copilot threads resolved, fix never landed. |
| loop F5 | Minor | live | M2 and M3 are Status: TODO and plan step 5 is [ ]; no recorded run has ever executed compare on a hosted runner (M4's matrix was empty; M5 inspected only the summary job). |
| loop F6 | Suggestion | live | No permissions: key at any level, against .github/workflows/AGENTS.md:9 and SKILL.md:42, both added by this PR. Pre-existing gap; 11/15 workflows match it; fork PRs get a read-only token regardless. |
| loop F7 | Suggestion | live | Zero skill-link: implement-workflow markers tree-wide and no ## Skill Links section, against add-new-skill/SKILL.md:118-120; the rewritten workflow already carries the marker for another skill at line 3. |
| loop F8 | Nit | not live | Both docs' last-updated-utc predated their own last edit at head (by 40 min and 2 h 15 m). Fixed on develop by b5efb5c1, which set both to 16:40. |
Merged-tree-wrong test: met by F2 (a claim false at the head it ships in), F3 and F4 (resolved threads whose fix did not land; F4 also an evidence line that does not reproduce). Not met by F1 (a robustness gap, not a false claim) or F5 — at 3b563441 the tree is self-consistent, with the folder under open/ and the plan in-progress; the contradiction arises on develop, where b5efb5c1 archived it under closed/ with M2/M3 still TODO.
Copilot's review (5275981836, degraded — its body records that the full agentic review timed out) left eight threads, all now isResolved=true. Two landed (9face835 temp-directory, fb6f9cbd checkbox alignment). One was resolved without the fix and correctly so: let _ = writeln!(...) at main.rs:20 would be denied by workspace.lints.rust.let_underscore (Cargo.toml:144) because writeln! returns a #[must_use] result, so drop(...) is the right form here. The other three are F2/F3/F4.
Checked, no finding
- Artifact naming, the download
pattern/merge-multiple, and the tool's reader filter agree; the discovery JSON is written outside the results directory. - The empty-matrix path is sound end to end: empty
include→ job skipped → download guard false → missing directory →read_comparison_artifactsreturns empty (lib.rs:150) → "No directly changed workspace package was selected." - Workspace-level file changes select no package (the root package owns only
src/**andtests/**), which is what produces thatskippedpath. - New, removed and moved packages are name-paired with separate base/head directories; no fabricated base measurement for a new package.
- The "Delta" column differences two rates each rounded to 1/100 pp while "Warning" uses exact ratios, so they can disagree only within 0.01 pp of the threshold — a bounded presentation artifact.
- Discovery's shallow base checkout is harmless: git history is read only from the head checkout, which carries
fetch-depth: 0. - The tool is a real workspace member and is excluded from the container's nextest archives beside its sibling check tools; the
Containerfilechange is chef-skeleton resolution only, and the container never builds or runs this binary — so "same flags as CI" does not apply. render_summaryusesfmt::Writerather than appendingformat!output; itsexpectcalls are on infallibleStringwrites.- The new skill's frontmatter satisfies all four
add-new-skillrules and is linked from rootAGENTS.mdbeside the sibling skills;docs/index.mdcarries no skill links, so there is no other index to update. - The Order-of-Execution checkbox contradiction is fixed at head.
- Unquoted
last-updated-utcis permitted for these doc types;ISSUE.mdalso resolves to the Permissive profile. - Hygiene: 18/18 Conventional subjects, coherent author/committer times around the single 10:39 UTC rebase, no attribution trailers, and no banned token in any of the 16 changed files.
CI at this head (orchestrator's step, read after the merge): 24 check-runs — 20 success, 4 skipped by design (Docker E2E on the pull_request event, the Package Coverage matrix with an empty discovery — this PR's only package is the new tool itself — and both Publish jobs); all six workflow runs at this sha concluded success (Testing, Generate Coverage Reports (PR), Container, Security Scan, OS Compatibility, Docs Lint). No startup_failure or action_required conclusion. Orchestrator gate on a server worktree at this head: pre-commit.sh --format=json exit 0 (68 s) and clippy-allow-reasons --base-ref 63af2153 exit 0, tree clean afterwards.
| env: | ||
| DISCOVERY: ${{ needs.discover-package-coverage.outputs.discovery }} | ||
| run: | | ||
| printf '%s' "$DISCOVERY" > "$GITHUB_WORKSPACE/package-coverage-discovery.json" |
There was a problem hiding this comment.
[Minor][loop F1] The report-only check fails when the discovery job fails.
package-coverage-summary is the job behind the user-visible check "Package Coverage Regression" (line 122), and unlike the matrix job at line 59 it declares no continue-on-error. It runs under if: ${{ always() }} (line 124) and reads env: DISCOVERY: ${{ needs.discover-package-coverage.outputs.discovery }} (line 151).
When discover-package-coverage fails, its outputs resolve to the empty string. This line then writes a zero-byte file, and read_json::<SummaryInput> (main.rs:174-177) returns …: invalid JSON: EOF while parsing a value at line 1 column 0; run() errors and main returns ExitCode::FAILURE (main.rs:21). The step fails and, with no continue-on-error, the job fails with it. A failure of the download step at line 140 does the same.
The artifacts side already has the graceful counterpart — read_comparison_artifacts returns an empty vector for a missing directory (lib.rs:150) — but there is no equivalent for missing or empty discovery input, so an upstream infrastructure failure surfaces as a red check named for a coverage regression, carrying a JSON parse error as its message.
Merged-tree-wrong test: not met — a robustness gap, not a false claim. Live on develop.
There was a problem hiding this comment.
There was a problem hiding this comment.
Follow-up: tracked in #2361 (bug, EPIC #1347; routing: #2347 (comment)). Reproduced at the tool level on develop at 478516cf: package-coverage-check summary with an empty discovery file exits 1 with invalid JSON: EOF while parsing a value at line 1 column 0, while a valid empty discovery exits 0. #2361 decides whether the summary reports that discovery was unavailable or fails with a message naming the cause, and adds a regression test for it. Audit: review-finding:pr-2293-f1. This thread stays open until #2361's fix merges.
|
|
||
| --- | ||
|
|
||
| ### 5. [ ] Reconcile rollout evidence after the refactor [Medium impact / Medium effort] |
There was a problem hiding this comment.
[Minor][loop F5] The feature's central path was never verified on a hosted runner.
This step is [ ] and the plan's frontmatter says status: in-progress, while manual-verification-evidence.md records M2 ("Dynamic Changed-Package Matrix") and M3 ("Equal, Improved, and Reduced Coverage") as Status: TODO with "Pending implementation" in all three subsections. The PR closes #2222.
Concretely, no recorded run has executed the compare subcommand under GitHub Actions. M4's recorded discovery output is {"matrix":{"include":[]},"unavailable":[{"package":"package-coverage-check","outcome":"new package"}]} — an empty matrix, so the comparison job was skipped by the if at workflow line 58 — and M5 inspected only the summary job's checkout, toolchain and summary command. The sole recorded compare run is M1, local.
That leaves one thing unexercised that is worth naming: whether the absolute $GITHUB_WORKSPACE/<side>/<dir>/src prefix passed at workflow lines 108 and 110 matches the file keys in cargo llvm-cov --codecov output, which summarize_source_coverage tests with Path::starts_with (lib.rs:334). If it does not match, both sides count zero instrumented lines and compare_coverage errors (lib.rs:361). This cannot be settled from the review sandbox — no toolchain, no network — so it is recorded as an open risk, not as a defect.
The PR body is candid here ("No hosted result is claimed yet"), and at 3b563441 the tree is self-consistent: the folder is under open/ and the plan says in-progress. Merged-tree-wrong test: not met at this head for that reason. The contradiction is live on develop, where b5efb5c1 archived the folder under closed/ with M2 and M3 still TODO — a later PR's act, not this one's.
There was a problem hiding this comment.
There was a problem hiding this comment.
Follow-up: tracked in the existing #2301 ("Review package coverage rollout", EPIC #1347), whose scope already includes collecting hosted evidence and reconciling #2222's deferred M2 and M3 scenarios (routing: #2347 (comment)). The #2301 spec now records hosted evidence for your open risk. Run https://github.com/torrust/torrust-tracker/actions/runs/36305549957 (PR #2351, pull_request event) ran compare with non-zero counts, for example torrust-tracker-udp-server base 5250/5378 and head 5524/5651, so the $GITHUB_WORKSPACE source prefix does match the report's file keys. Audit: review-finding:pr-2293-f5. This thread stays open until #2301 completes.
…resolution evidence 143b0f6 docs(issues): record #2333 verification and completion evidence (Jose Celano) 94fe6c8 docs(pr-reviews): collect all review threads as self-audit evidence (Jose Celano) 2f4bd80 feat(dev-tools): return all review threads with resolution evidence (Jose Celano) Pull request description: ## Summary Implements EPIC #2278 subissue 4 (#2333), friction-register items F17, F18, and F32: the author's review-thread evidence view now includes resolved and outdated threads with who resolved them and where, while reply and resolution actions keep an explicit unresolved-only view. - `github-review-threads` requests each thread's `line` and `resolvedBy { login }`. The raw JSON file is a superset of the previous one, so `resolve-all-unresolved-threads.sh` reads it unchanged. - `list` and `show` return every thread by default and add `isResolved`, `resolvedBy`, and `line`; `--unresolved-only` selects the threads still awaiting a reply or resolution. `reply-status` is unchanged and still checks unresolved threads only, because it guards resolution. - The `fetch-review-threads` skill now collects every thread as evidence, names `resolvedBy`, `path`, and `line` as self-audit evidence (nulls are recorded as unknown, never inferred), and limits unresolved-only filtering to actions. Its inline `gh api graphql` fallback now requests exactly the tool's fields. The change extends the existing crate in place; it adds no new script or binary and does not decide the unified AI-harness placement, which stays with EPIC #2003. ## Commits - `feat(dev-tools): return all review threads with resolution evidence`: query, `ThreadSelection`, `--unresolved-only`, fixture tests, and spec/EPIC tracking for T1-T2. - `docs(pr-reviews): collect all review threads as self-audit evidence`: skill contract (T3). - `docs(issues): record #2333 verification and completion evidence`: manual evidence, acceptance review, EPIC AC2 (T4). ## Files touched - `contrib/dev-tools/github/github-review-threads/src/lib.rs`, `src/main.rs`, `tests/cli.rs` - `contrib/dev-tools/github/github-review-threads/tests/fixtures/thread-states.json` (new; one thread per state). The retired-script fixture `review-threads.json` is unchanged because its README pins it to the parity captures; it now also shows that files fetched before this change still parse, with null `resolvedBy` and `line`. - `.github/skills/dev/pr-reviews/fetch-review-threads/SKILL.md` - `docs/issues/open/2333-2278-fetch-all-review-threads/ISSUE.md` and `manual-verification-evidence.md` - `docs/issues/open/2278-2003-strengthen-pr-review-author-self-audit/EPIC.md` ## Validation - `cargo test --package github-review-threads`: 13 unit and 7 CLI tests pass (stable Rust 1.98.1). Temporarily reverting the selection filter to unresolved-only in the working tree failed 5 unit tests; the filter was restored before committing. - `cargo clippy --package github-review-threads --all-targets -- -D warnings` and `cargo +nightly fmt --all -- --check` are clean. - The pre-commit hook (including `linter all`) passed on every commit; `pre-push.sh` passed all 4 steps. - Manual scenarios M1-M4 were run read-only against merged PR #2320 (29 threads: 27 resolved, 2 unresolved, 21 outdated): all threads listed by default, resolver and line shown with explicit nulls on outdated threads, only the 2 unresolved threads in `--unresolved-only` and `reply-status`, and the bulk resolver's `--dry-run` still lists them. The fallback query returned the same data as the tool on PR #2322. ## Notes for reviewers - The skill no longer lists `canResolve` as a collected field; neither the tool's query nor the previous fallback query ever requested it. - The manual-capture survey found merged PRs that still hold unresolved threads (#2290, #2293, #2300, #2313, #2320). They were only read and are left for a maintainer decision under the post-merge review rule. Closes #2333 Related to #2278 ACKs for top commit: josecelano: ACK 143b0f6 Tree-SHA512: a37f3d9b46c4d1c92c4df242324cf81b52b441af65ab4e9522cebf77dcd75dd1c632bd69781263ef4deca01ae710e9f3d97675464456b4f7cc2530e103e743f7
…eview findings b3205e4 docs(pr-reviews): record PR #2348 thread resolution (Jose Celano) f6d0bb9 docs(pr-reviews): add PR #2348 review audit (Jose Celano) 27ac0ec docs(issues): keep #2347 follow-up threads open and time approval for new audits (Jose Celano) ac2c914 docs(issues): use the UTC minute format for EPIC #2003 last-updated (Jose Celano) 2db2f3d docs(issues): link subissue #2347 in EPIC #2003 (Jose Celano) 530f17a docs(issues): add issue specification for #2347 (Jose Celano) Pull request description: ## Summary Spec-only PR for #2347, a new subissue of EPIC #2003 (order 12). It tracks the 32 review findings that da2ce7 posted after PRs #2290, #2293, #2300, #2313, and #2320 merged. Each review body labels them post-merge findings, none had a reply, and nothing in the repository tracked them. The specification lists all 32 threads (the summary is each thread's first line), notes that the #2320 findings reuse audit IDs F24 and F25 and so need new audit-local IDs, and plans the work under `process-pr-review` "Reviews Submitted After Merge": triage against `develop`, maintainer-approved dispositions, audits for all five PRs, documentation-only fixes, and a close-out PR after merge (the PR #2276 precedent). Workflow, CI, and Rust changes become their own issues. T1 is already done, as the maintainer approved: the approval record is on #2347 (<#2347 (comment)>), and each of the 32 threads has one reply naming #2347 with its disposition pending. All threads stay unresolved. ## Files touched - `docs/issues/open/2347-2003-triage-post-merge-review-findings/ISSUE.md`: new specification. - `docs/issues/open/2003-overhaul-guardrails-and-automation/EPIC.md`: #2347 added as order 12 of the approved subissues, plus a progress-log entry. - `docs/pr-reviews/pr-2348-review/PR-REVIEW.md`: audit for review round 1 (Copilot review 5325942058, three findings, all fixed and resolved). ## Review Round 1 - `docs(issues): use the UTC minute format for EPIC #2003 last-updated` (audit F1) - `docs(issues): keep #2347 follow-up threads open and time approval for new audits` (audit F2, F3): `FOLLOW_UP` threads stay open until their owning fix merges, and the approval URL goes into the #2290 and #2293 audits when they are created. - `docs(pr-reviews): add PR #2348 review audit` - `docs(pr-reviews): record PR #2348 thread resolution` ## Validation - The pre-commit hook (including `linter all`) passed on both commits; the pre-push hook passed. - GitHub: #2347 was created with label `task`, and `parent_issue_url` confirms it is linked under #2003. A GraphQL refetch shows all 32 threads unresolved, each with the #2347 reply. Related to #2347 Related to #2003 ACKs for top commit: josecelano: ACK b3205e4 Tree-SHA512: 97c895d52fc04dc6cf8d3a53c5335658ae5f5c6d0b7d99c11275d15741ba046bd42437bb38066d5a83aaa63a3a7eab77c5540be1c6294f006831c9092243c9e3
…ngs on five merged PRs 30f7419 docs(pr-reviews): [#2347] record PR #2363 review rounds 4 and 5 (Jose Celano) d5bb52f docs(pr-reviews): [#2347] record Copilot's severity labels in the PR #2363 audit (Jose Celano) f102d70 docs(pr-reviews): [#2347] record PR #2363 review round 2 (Jose Celano) 068a018 docs(issues): [#2347] map the pre-PR task review finding IDs (Jose Celano) 76aab89 docs(issues): [#2347] count five retrospective improvement candidates (Jose Celano) bc3eb6b docs(issues): [#2347] name all three findings triage found dead (Jose Celano) 217df51 docs(issues): [#2347] count the three #2320 citations the F29 note moved (Jose Celano) c8676f7 docs(issues): [#2347] record the approval-timing deviation acceptance (Jose Celano) 1ec319d docs(pr-reviews): [#2347] add PR #2363 review audit (Jose Celano) f004145 docs(pr-reviews): [#2347] keep the #2320 head-id note at two lines (Jose Celano) 9c99bf5 docs(issues): [#2347] correct stamps and stale claims found by the pre-PR review (Jose Celano) 9f994a4 docs(issues): [#2347] record the pre-PR task review (Jose Celano) 52fccfc docs(issues): [#2347] record verification evidence and retrospective (Jose Celano) 42ae122 docs(pr-reviews): [#2347] record PR #2320 post-merge findings (Jose Celano) f3e6716 docs(pr-reviews): [#2347] record PR #2313 post-merge findings (Jose Celano) f20c229 docs(pr-reviews): [#2347] record PR #2300 post-merge findings (Jose Celano) 71c6757 docs(pr-reviews): [#2347] add PR #2293 post-merge review audit (Jose Celano) 7e65e92 docs(pr-reviews): [#2347] add PR #2290 post-merge review audit (Jose Celano) 4fc38fd docs(issues): [#2347] record the rebase and the upstream F3 fix (Jose Celano) 17e7e60 docs(issues): [#2347] restore the #2222 plan stamp after the upstream indentation fix (Jose Celano) 24d4364 docs(issues): [#2347] record the follow-up issues (Jose Celano) d0ee94a docs(issues): [#2347] route the PR #2293 hosted-evidence finding to #2301 (Jose Celano) cfcc79c docs(issues): [#2347] route the PR #2300 roster-pin finding to #2278 order 8 (Jose Celano) 1c1b8bb docs(issues): add issue specification for #2362 (Jose Celano) ba18b32 docs(issues): add issue specification for #2361 (Jose Celano) c290c2c docs(issues): [#2347] record the T3 routing amendment (Jose Celano) bb94947 docs(issues): add issue specification for #2360 (Jose Celano) b170b70 docs(issues): [#2347] record the approved order of work (Jose Celano) 5d8ee9f docs(issues): [#2347] refresh stamps on #2222 and #2261 docs edited by fixes (Jose Celano) 6d53267 docs(pr-reviews): [#2347] correct the #2320 retrospective head-id note (Jose Celano) 01baa61 docs(issues): [#2347] make the #2308 V1 command reproduce its result (Jose Celano) 96beca7 docs(issues): [#2347] cite #2295 review inputs by commit subject (Jose Celano) de9c790 docs(issues): [#2347] correct #2295 AC6 after the PR audit landed (Jose Celano) 4c422f9 docs(pr-reviews): [#2347] correct PR #2300 audit log stamps (Jose Celano) 8fc2435 docs(skills): [#2347] link implement-workflow to its workflow artifacts (Jose Celano) f721dab docs(issues): [#2347] map #2222 evidence commits to merged subjects (Jose Celano) 84e3242 docs(testing): [#2347] name the PR coverage workflow correctly (Jose Celano) 61dd5c0 docs(issues): [#2347] name all four #2261 empty_enums modules (Jose Celano) d984271 docs(issues): [#2347] describe the #2261 parser test action codes (Jose Celano) f780ad2 docs(issues): [#2347] correct the #2261 M1 result for retained A159 (Jose Celano) b5f217a docs(issues): [#2347] cite #2261 evidence commits by subject (Jose Celano) 2c7c731 docs(issues): [#2347] record T3 disposition decisions (Jose Celano) 3a95952 docs(issues): [#2347] record T2 triage of post-merge findings (Jose Celano) da8ac1f docs(issues): [#2347] mark spec in progress on implementation branch (Jose Celano) Pull request description: ## Summary Implements #2347 (EPIC #2003, order 12): it processes the 32 review findings that da2ce7 posted after PRs #2290, #2293, #2300, #2313, and #2320 had merged. The maintainer approved every disposition before any fix. Approval record: <#2347 (comment)>. Amendments: <#2347 (comment)> and <#2347 (comment)>. The order of work followed the PR #2339 / PR #2344 precedent. First the fixes and follow-up issues were committed and this PR was opened as a draft. Then each of the 32 threads got a disposition reply, and finally one audit commit per merged PR cites those replies. The rationale is in the spec's "Disposition Decisions (T3)" section. | Disposition | Count | Findings | | ----------- | ----- | -------- | | FIXED | 14 | #2290 F1, F2, F3, F5 (the audit itself), F6; #2293 F2, F4, F7; #2300 F5, F6, F9; #2313 F8; #2320 F29 (reviewer F25); #2293 F3, fixed upstream by PR #2357 | | NO_ACTION | 9 | #2290 F7; #2293 F6, F8; #2300 F7, F8, F11, F12; #2313 F10; #2320 F28 (reviewer F24) | | FOLLOW_UP | 9 | #2290 F4 → #2360; #2293 F1 → #2361; #2293 F5 → #2301; #2300 F10 → #2278 order 8; #2313 F4, F5, F6, F7, F9 → #2362 | Following `process-pr-review` "Reviews Submitted After Merge", the 13 fixes in this PR are recorded as `FOLLOW_UP`/`OPEN` until it merges. A close-out PR (T7) then changes them to `FIXED`, replies, and resolves the fixed and declined threads. #2293 F3 was already fixed on `develop`, so its row is `FIXED`/`RESOLVED` and its thread is resolved. FOLLOW_UP threads stay open until their owning issue's fix merges. ## Changes - Documentation fixes, one signed commit per finding. Most are appended, dated corrections. Two are in-place edits to closed text: the #2261 retrospective's Evidence list now cites commit subjects instead of unreachable ids, and the #2320 retrospective's head-id note is corrected, with the edit recorded in that audit's Processing Log. - #2261 folder (PR #2290): the evidence commits are cited by subject, the M1 result is corrected for the retained A159 allowance, the parser test's action codes are described accurately, and all four `empty_enums` modules are named. - `docs/testing.md` names the PR coverage workflow correctly. - #2222 folder (PR #2293): unreachable evidence commits are mapped to merged subjects. - `implement-workflow` skill: `skill-link` markers and a `Skill Links` section. The workflow file gets one comment line. - #2300 audit: a Processing Log stamp correction. #2295 folder: an AC6 correction and a review-input citation correction. - #2308 folder (PR #2313): the V1 command now reproduces its result. - Audits: new `docs/pr-reviews/pr-2290-review/` and `pr-2293-review/`; appended rows in `pr-2300-review` (F5-F12), `pr-2313-review` (F4-F10), and `pr-2320-review` (F28-F29). The approval URL is in each Ownership section. This PR's own review audit is `docs/pr-reviews/pr-2363-review/`. - New follow-up issue specs: #2360 (UDP protocol `empty_enums` allowance scope, #2003), #2361 (bug: the coverage summary fails when discovery fails, #1347), and #2362 (remaining audit-contract rules, #2278). The parent EPIC rows are updated, and pointers are added for the existing owners #2301 and #2278 order 8. - The #2347 spec with `triage.md` (per-finding live checks), `manual-verification-evidence.md` (M1, M3), `implementation-retrospective.md`, and `agent-review-reports.md`. ## Validation - `validate-audit-record.py` exits `0` for every audit, with the first parent of each PR's merge commit as `--base`: #2290 (7 rows), #2293 (8), #2300 (12), #2313 (10), and #2320 (29). It also exits `0` for this PR's own audit, `pr-2363-review`, with `--base` set to `develop`. - M1 (a GraphQL refetch of all five PRs): all 32 threads carry the #2347 tracking and disposition replies, and only #2293 F3 is resolved. M3 (three seeded random spot checks, one per disposition kind) reproduces the recorded results. - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh` passed on every commit (stable Rust toolchain; includes `linter all` and the staged frontmatter check). The pre-push hook passed: `cargo +nightly check`, `cargo +nightly doc`, and `cargo +stable test --tests --benches --examples --workspace --all-targets --all-features`. - An independent pre-PR task review found documentation defects only: stale stamps, log stamps out of order, and stale claims. They are corrected in `docs(issues): [#2347] correct stamps and stale claims found by the pre-PR review`, and the report is in `agent-review-reports.md`. - Temporary working-tree experiments (removing or narrowing the `empty_enums` allowance, and running Clippy) were restored with `git checkout` and are not part of this PR. Related to #2347. The issue stays open for the T7 close-out. ACKs for top commit: da2ce7: ACK 30f7419 — the commit records review rounds 4 and 5 in the PR #2363 audit (the F14 row and detail, the Round 4/5 paragraph, three log entries) and the #2347 spec, each checked against the posted reviews and replies josecelano: ACK 30f7419 Tree-SHA512: d545a11e29defea38b63cd5b4596f323a758c9a42adf1499421827a3af79789006021172abe46ea4b804257182135e019e4bd069d059c1017a0a5cffbb79ba24
…ing log and fix three log entries The PR torrust#2363 audit logged round 7 inside the 17:00 merge entry, after the 16:53 entry, although its review and ACK were posted at 16:50, and it had no entry for the dismissal of the four CHANGES_REQUESTED reviews at 16:54 that cleared the last blocking reviews before the merge. Round 7 now has its own 16:50 entry, a 16:54 entry records the dismissals, the 17:00 entry keeps only the merge, and the Round 6 paragraph and the F15 detail follow the same order, so the log is chronological through the close-out. Three close-out log entries in the PR torrust#2293, torrust#2313 and torrust#2320 audits lose a stray comma and a plural that described a single finding. Maintainer review on the close-out pull request, findings F2, F3 and F4.
…owner handle The spec cited the PR torrust#2293 branch id of the package-coverage-check recipe repair, which the merge rewrote; cite the develop commit a45ae2d instead. Identify the EPIC torrust#2003 owner by GitHub handle (da2ce7).
…ing log and fix three log entries The PR torrust#2363 audit logged round 7 inside the 17:00 merge entry, after the 16:53 entry, although its review and ACK were posted at 16:50, and it had no entry for the dismissal of the four CHANGES_REQUESTED reviews at 16:54 that cleared the last blocking reviews before the merge. Round 7 now has its own 16:50 entry, a 16:54 entry records the dismissals, the 17:00 entry keeps only the merge, and the Round 6 paragraph and the F15 detail follow the same order, so the log is chronological through the close-out. Three close-out log entries in the PR torrust#2293, torrust#2313 and torrust#2320 audits lose a stray comma and a plural that described a single finding. Maintainer review on the close-out pull request, findings F2, F3 and F4.
…ing log and fix three log entries The PR torrust#2363 audit logged round 7 inside the 17:00 merge entry, after the 16:53 entry, although its review and ACK were posted at 16:50, and it had no entry for the dismissal of the four CHANGES_REQUESTED reviews at 16:54 that cleared the last blocking reviews before the merge. Round 7 now has its own 16:50 entry, a 16:54 entry records the dismissals, the 17:00 entry keeps only the merge, and the Round 6 paragraph and the F15 detail follow the same order, so the log is chronological through the close-out. Three close-out log entries in the PR torrust#2293, torrust#2313 and torrust#2320 audits lose a stray comma and a plural that described a single finding. Maintainer review on the close-out pull request, findings F2, F3 and F4.
…e of five merged PRs e233bf8 docs(pr-reviews): [#2347] complete the PR #2363 processing log and fix three log entries (Cameron Garnham) bfbcf13 docs(pr-reviews): [#2347] align three post-merge narratives with the close-out (Cameron Garnham) 5c6aae4 docs(pr-reviews): [#2347] record the close-out pull request in the PR #2363 audit (Cameron Garnham) 663aad9 docs(pr-reviews): [#2347] close out the post-merge triage of five merged PRs (Cameron Garnham) Pull request description: Closes the loop on the 32 findings posted after PRs #2290, #2293, #2300, #2313, and #2320 merged, now that their follow-up PR #2363 is on `develop`, and records the last review rounds of PR #2363. The thread replies and resolutions were the maintainer's (josecelano, 17:07 UTC, and 16:53 UTC for PR #2363 F15); this PR records them. **Summary** - The 13 findings that PR #2363 fixed are `FIXED`/`RESOLVED` in their audits. Each cites its fixing commit subject, and its Reply URL is the maintainer's T7 reply. - The 9 `NO_ACTION` findings are `RESOLVED`, keeping their disposition replies. - The 9 `FOLLOW_UP` findings stay `FOLLOW_UP`/`OPEN`. Their disposition replies name the owners: #2360, #2361, #2301, #2278 order 8, and #2362. - The PR #2363 audit gains: - F15, which this commit fixes, with the maintainer's reply as its Reply URL; - the Round 6 paragraph; - Processing Log entries for rounds 6-7, the merge and this close-out; - the maintainer's post-merge approval for recording F15 (#2347 (comment)) as its approval reference. - The #2347 spec marks T6 and T7 `DONE` and AC4 `DONE`, and records M2. **Files touched** - `docs/pr-reviews/pr-2290-review/PR-REVIEW.md` - `docs/pr-reviews/pr-2293-review/PR-REVIEW.md` - `docs/pr-reviews/pr-2300-review/PR-REVIEW.md` - `docs/pr-reviews/pr-2313-review/PR-REVIEW.md` - `docs/pr-reviews/pr-2320-review/PR-REVIEW.md` - `docs/pr-reviews/pr-2363-review/PR-REVIEW.md` - `docs/issues/open/2347-2003-triage-post-merge-review-findings/ISSUE.md` - `docs/issues/open/2347-2003-triage-post-merge-review-findings/manual-verification-evidence.md` **Validation** - Pre-commit profile on the compute hub at this head, base `develop` `bc90cde1b`: `pre-commit.sh --format=json` status `pass`, exit 0, 74 s; `clippy-allow-reasons --base-ref bc90cde` exit 0; worktree unchanged after the run (2026-09-28 17:41 UTC). - `frontmatter-validator --all` at this head: exit 1 with exactly the counts `develop` has (35 `legacy-shape` errors and 4 warnings on unrelated closed specs) and no record for the #2347 folder or any audit this PR edits. - `validate-audit-record.py`, run offline against thread captures of 2026-09-28 17:19 UTC: #2290 exit 0 (7 rows), #2293 exit 0 (8), #2300 exit 0 (12), #2313 exit 0 (10), #2320 exit 0 (29); #2363 parsed 15 rows and reported only F15's resolution reference, which is this PR's own commit subject and resolves on this branch. The source-review check needs review ids the captures do not carry, so the maintainer's run with `gh` is the one of record. - M2 (GraphQL `reviewThreads`, 2026-09-28 17:19 UTC): #2290 10 threads, 1 unresolved (F4, #2360); #2293 16, 2 (F1, #2361; F5, #2301); #2300 12, 1 (F10, #2278 order 8); #2313 10, 5 (F4, F5, F6, F7, F9, #2362); #2320 29, 0; #2363 15, 0. The unresolved set is exactly the 9 `FOLLOW_UP` threads. Related to #2347. Closing #2347 and archiving its spec follow as a separate step: `cleanup-completed-issues` archives only the spec of an issue that is closed. ACKs for top commit: da2ce7: ACK e233bf8 — the four close-out commits rebased onto develop at 693162b unchanged (range-diff four `=` against the previous tip, which was itself four `=` against the tip the maintainer ACKed), the six review threads answered and resolved, the one open thread (the commit-policy wording) answered as intentional Tree-SHA512: 6f407ef2bf216f52153a931c44642d8302399f06c88fc4a39982563357a2d66a94f9a677643048340c6f62b6a7333420c26263eb8600154e632a577d86142d9a


Closes #2222
Summary
Adds a report-only, package-scoped coverage regression comparison to the existing unprivileged pull-request workflow. Directly changed workspace packages are measured at immutable base and head revisions; a regression greater than five percentage points is reported but never blocks merging.
The workflow is now a thin GitHub Actions adapter. The repository-owned Rust
package-coverage-checktool discovers comparable packages, parses Codecov JSON, compares exact source-line counts, validates artifacts, and renders the Markdown summary. The PR also adds canonical guidance for portable, tested CI workflow implementations.Validation
cargo clippy -p package-coverage-check --all-targets --all-features -- -D warningscargo test -p package-coverage-checklinter yaml,linter markdown, andgit diff --checkHosted Evidence
The PR is intentionally opened to collect the remaining GitHub-hosted matrix, artifact, summary, and fork behavior evidence. No hosted result is claimed yet.