Repository navigation
chore(prompts): remove unused prompt files - #2488
Conversation
There was a problem hiding this comment.
🟡 Changes recommended
The ADR retains two dangling references to the removed .github/prompts/ directory.
1 open finding
What changed in this PR
Removes obsolete prompt adapters and their contract checks in favor of canonical skills.
Changes:
- Deletes two unused prompt files.
- Removes stale review-contract checks.
- Updates the agent capability inventory.
| File | Description |
|---|---|
.github/prompts/process-copilot-suggestions.prompt.md |
Removes the Copilot-review prompt adapter. |
.github/prompts/update-dependencies.prompt.md |
Removes the dependency-update prompt adapter. |
contrib/dev-tools/checks/agent-review-report-contract/src/main.rs |
Drops checks targeting the removed prompt. |
docs/adrs/20260821172000_establish_ai_agent_context_capability_and_portability_governance.md |
Removes the prompt adapter inventory row. |
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Co-authored-by: Copilot <[email protected]>
Remove .github/prompts/process-copilot-suggestions.prompt.md and .github/prompts/update-dependencies.prompt.md. Both were unused provider-facing shortcuts that duplicated workflows already covered by the process-pr-review and update-dependencies skills. Update the agent-review-report-contract checker (contrib/dev-tools/checks/agent-review-report-contract) to drop its hardcoded requirements against process-copilot-suggestions.prompt.md, since that file no longer exists. Remove the now-inaccurate "Prompt adapter" row from the AI agent context/capability/portability governance ADR, which described update-dependencies.prompt.md as a tracked capability. Co-authored-by: Copilot <[email protected]>
The .github/prompts/ directory no longer exists after removing the last prompt files, so remove it from the governance ADR's related-artifacts frontmatter and References section. Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
ed0692a to
8b1b7e4
Compare
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 8b1b7e42678669d843a40124ca5b815a1cd959d0 (round 1). Recomputed from the bytes at this head, against develop at 285938179, which is also the merge base.
The PR has three commits:
16be76b9bdeletes both files under.github/prompts/, drops theagent-review-report-contractpins that read the Copilot prompt, and removes the ADR's "Prompt adapter" row.f61eb91beremoves the ADR's two remaining.github/prompts/references.8b1b7e426addsdocs/pr-reviews/pr-2488-review/PR-REVIEW.md.
The last push was a rebase only. git range-diff a64d1497e..ed0692a4a 285938179..8b1b7e426 shows all three commits =, and git diff ed0692a4a 8b1b7e426 over the PR's files is empty. develop's own movement touches only a discussion folder and another PR's audit, nothing the checker reads. Five files change, and git merge-tree is clean.
Deletions and what they leave behind. Both workflows survive. The Copilot prompt's rules are restated by the Copilot Suggestions Handler profile it targeted (copilot-suggestions-handler.agent.md:12-17), and the dependency prompt's steps are all in update-dependencies/SKILL.md (:33-42, :79-168). Only two argument conveniences are dropped: defaulting to the active PR and a scoped update. git ls-files .github/prompts is empty. A whole-tree grep for github/prompts, .prompt.md and both file names, re-run at this head, matches only two closed specs (historical by design) and the audit record; the rebase added nothing.
Check tool. Five tuples were removed (REQUIRED_TEXT 49→47, WRAPPED_TEXT 28→27, FORBIDDEN_TEXT 12→10), along with let prompt and its six calls in verify_review_routing. Each removed pin mirrors one the handler keeps, and require_wrapped (20 call sites) and forbid (7) stay in use. A stdlib emulation reads 14 files with 0 failures over this head and over the merge-tree result, and every PROCESS_PR_REVIEW_ARTIFACTS path exists. The open spec for #2349 still describes the old file set (F2).
ADR edit. The ADR no longer names .github/prompts/. Every row of its three tables has its header's cell count, and docs/adrs/index.md:38 does not mention prompt adapters. The removal itself is unrecorded (F1).
Audit record.
- Copilot review 5456474248's inline finding (comment 4218839155, no reviewer ID) is recorded as F1,
review-finding:pr-2488-f1, following process-pr-review :57-64. - The reply 4218893132 is in the same thread, the resolution reference is
f61eb91be's subject, and the thread is resolved. - The Ownership, Status Values and Completion Rules blocks are byte-identical to the template.
- The log stamps are in order and fit the commit times to the minute.
- One verification sentence is false at this head (F3).
Hygiene. The three subjects are Conventional, and each body matches its diff. Author and committer are the same person on all three. The author times ascend (12:06:05Z, 12:27:40Z, 12:29:10Z), and the rebase gave all three the committer time 12:37:38Z. An attribution trailer is present on each commit and in the PR body. No banned token, manifest or lockfile appears. These are noted, with no finding: no issue link, a hard-wrapped body that does not mention the follow-up commits, and one mis-closed code span in the body.
Findings
- F1 [Major]: the prompt-adapter removal triggers the ADR's review cadence (:107-110, :115-117), but no review record was added. The inventory heading (:93) and the 2026-08-21 record (:123) now disagree.
- F2 [Suggestion]: the open spec for #2349 (:47-52) still counts 15 checked files, including the prompt.
- F3 [Nit]: the audit's current-tree verification (:59) says a
.github/promptssearch matches only two closed specs, but it also matches the record itself.
Checked, no finding: rebase-only push; merge-tree clean; five-file name-status; prompt rule inventory; no Markdown links to the deleted files; checker pins, helpers and artifact paths; ADR tables and index; the ADR fix commit; audit row, fields, ids, verbatim blocks and log order; closed-spec mentions.
Checks
On the loop's compute hub at this head, base develop 285938179 (also the merge base; git merge-tree clean; receipt server-gates-krkavec-195): pre-commit profile gate exit 0 (76 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at develop re-measured, so no new frontmatter finding; the edited package agent-review-report-contract: cargo run exit 0 ("Agent review report contract check passed."), cargo clippy --all-targets -- -D warnings exit 0 with no diagnostics, cargo test exit 0 (2 passed), cargo fmt --check exit 0, and the same cargo run at develop exit 0 as the baseline; validate-audit-record.py --pr-number 2488 --base 285938179 over the live review comments: 1 row, 3 log entries, 0 failures. GitHub checks at this head at posting time: "Package Coverage (agent-review-report-contract): queued/pending; Test (Docker) (release): in_progress/pending; Docker E2E: completed/skipped; Unit (nightly): in_progress/pending; Documented Clippy Allows: completed/success; Unit (stable): in_progress/pending; Layer Boundary Bans: completed/success; Docs Lint: completed/success; Discover Package Coverage: completed/success; Build on ubuntu-latest (stable): completed/success; Build on ubuntu-latest (nightly): in_progress/pending; Build on windows-latest (nightly): in_progress/pending; Build on macos-latest (stable): in_progress/pending; Build on windows-latest (stable): in_progress/pending; Build on macos-latest (nightly): completed/success; Generate Coverage Report: in_progress/pending". At posting, develop is 285938179.
Removing both tracked prompt adapters triggers the ADR's review cadence. Add a dated 2026-10-08 review record for .github/prompts/ and stop calling the inventory and the record table "initial", since they no longer describe only the 2026-08-21 state. Co-authored-by: Copilot <[email protected]>
…removal PR torrust#2488 removes the Copilot-suggestions prompt and the checker's pins on it, so agent-review-report-contract now reads 14 workflow documents. Update the spec's Background and log the change. Co-authored-by: Copilot <[email protected]>
The F1 current-tree verification said a .github/prompts search matched only the two closed specs, but it also matched the audit record itself, and the new ADR review record and torrust#2349 spec log now match too. List every match and say which of them are historical. Co-authored-by: Copilot <[email protected]>
Record review 5456830805's three findings: its F1 as audit F4 (ID collision with the Copilot F1), and its F2 and F3, all fixed. Co-authored-by: Copilot <[email protected]>
|
ACK 16885cd |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 16885cd182726b73463e6ab64ae5fb62e9fe43bf (round 2). Recomputed from the bytes at this head, against develop at 285938179, which is also the merge base.
git range-diff 285938179..8b1b7e426 285938179..16885cd18 shows the three reviewed commits =, followed by four new ones: dbea468d9, 69bdd91f1, bac68554f and 16885cd18. Against 8b1b7e426, those four touch only the ADR, the #2349 spec and the audit record. git merge-tree is clean.
| Finding | Fix | Recomputed at this head | Status |
|---|---|---|---|
| F1 [Major] review record | dbea468d9 |
ADR :124 adds a 2026-10-08 row with every element the cadence names (:115-117): configuration .github/prompts/, source "Repository files at the PR #2488 head; no external runtime/version source used", scenario, result, limitation, date and evidence state Tracked. The result is true: update-dependencies/SKILL.md exists, and the Copilot Suggestions Handler profile (copilot-suggestions-handler.agent.md:2, :12-13) routes to process-pr-review. The limitation is true: git ls-files .github/prompts is empty. The labels now read "The tracked inventory is:" (:93) and ### Review records (:119). "initial" survives only inside the 2026-08-21 row, which git diff -w shows unchanged. Every line at :121-124 has 7 cells. |
FIXED |
| F2 [Suggestion] #2349 count | 69bdd91f1 |
Spec :47-52 now says "14 workflow documents … four review agents; …" and that PR #2488 "removed the fifteenth". Its list (3+2+3+4+1+1) equals the 14 distinct paths the head's const tables and verify_* functions read. The 12:56 log entry matches last-updated-utc (:12). Keeping the 2026-09-26 entry as history suits an append-only log. |
FIXED (F4) |
| F3 [Nit] search sentence | bac68554f |
A fixed-string .github/prompts search matches exactly five files: two closed specs, ADR :124, spec :52 and :165, and the audit record. That is the list at audit :72, word for word. |
FIXED |
Audit record.
- The three new rows (:58-60) are Human, ORIGINAL, FIXED and RESOLVED, with the severities as posted.
- My F1 is now audit F4 with "Reviewer finding ID: F1" (:81). That follows process-pr-review :57-61, which assigns the next audit-local ordinal on a collision. F2 and F3 keep their IDs (
N/A, :94, :107). - Every id resolves against the capture: review 5456830805; comments 4219129893, 4219129905 and 4219129910; and replies 4219204213, 4219204492 and 4219204790, each in its own thread.
- The resolution references are the three fix subjects, and all four threads are resolved.
- Review 5456541068 is empty and holds reply 4218893132.
- The log stamps (12:53, 12:58, 12:59) fit the review time, the commits (12:55:53Z to 12:59:22Z) and the replies (12:58:03Z to 12:58:07Z).
- The Ownership, Status Values and Completion Rules blocks are byte-identical to the template.
Carry-over and hygiene. git diff 8b1b7e426 16885cd18 -- contrib .github is empty, and an emulation of the checker over the merge-tree result reads 14 files with 0 failures. The four new commits:
- have Conventional subjects and bodies that match their diffs;
- have the same author and committer, at ascending times (12:55:53Z, 12:56:48Z, 12:57:46Z, 12:59:22Z);
- each carry an attribution trailer;
- add no banned token, and
--name-statusagainst8b1b7e426shows three files.
The PR body now has "Review follow-ups" and a fixed code span (reported).
A new finding here is numbered F4 in this review's series; the audit's F4 is round-1 F1.
Findings
- F4 [Nit]: spec :165 says "the entry above records the 15-document state", but the entry above (:164) records neither the count nor the commit; :163 does.
- F5 [Nit]: audit :50-52 paraphrases this review's noted items and drops "hard-wrapped".
Checked, no finding: range-diff =; merge-tree; ADR tables; no link to the old heading anchor; the spec's counting; resolution subjects; thread states; validator ids; the empty reviews; verbatim blocks; log order; the PR-body change.
Checks
On the loop's compute hub at this head, base develop 285938179 (also the merge base; git merge-tree clean; receipt server-gates-krkavec-199): pre-commit profile gate exit 0 (75 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at develop re-measured, so no new frontmatter finding; the edited package agent-review-report-contract: cargo run exit 0 ("Agent review report contract check passed."), cargo clippy --all-targets -- -D warnings exit 0 with no diagnostics, cargo test exit 0 (2 passed), cargo fmt --check exit 0, and the same cargo run at develop exit 0 as the baseline; validate-audit-record.py --pr-number 2488 --base 285938179 over the live review comments: 4 rows, 6 log entries, 0 failures. GitHub checks at this head at posting time: "Publish (Release): completed/skipped; Publish (Development): completed/skipped; Context: completed/success; Package Coverage Regression: completed/success; Docker E2E: completed/skipped; Layer Boundary Bans: completed/success; Unit (stable): completed/success; Unit (nightly): completed/success; Documented Clippy Allows: completed/success; Test (Docker) (release): completed/success; Package Coverage (agent-review-report-contract): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Discover Package Coverage: completed/success; Docs Lint: completed/success; Generate Coverage Report: completed/success". At posting, develop is 285938179.
|
ACK 16885cd — round-1 F1-F3 recomputed FIXED and the audit record's four rows, ids and verbatim blocks verified at this head |
The 2026-10-08 log entry said "the entry above" records the 15-document state, but the entry directly above is the 13:33 approval entry. The count and commit are in the 2026-09-26 12:33 entry, so name it. Co-authored-by: Copilot <[email protected]>
…ust#2488 audit The Findings introduction paraphrased review 5456830805's "noted, with no finding" list and dropped its hard-wrapped-body note. Quote the sentence as written. Co-authored-by: Copilot <[email protected]>
Record approved review 5457160061's two nits as audit F5 and F6 (its F4 and F5 collide with existing audit IDs), both fixed. Co-authored-by: Copilot <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 17f44f1f7d4aa2b7533c67a0a77ee9fee990cc8b (round 3). Recomputed from the bytes at this head, against develop at 285938179, which is also the merge base.
git range-diff 285938179..16885cd18 285938179..17f44f1f7 shows the seven reviewed commits =, followed by three new ones: 37e38cd3e, 0be12c25e and 17f44f1f7. Against 16885cd18 they touch only the #2349 spec (+1/−1) and the audit record (+39/−2). git merge-tree is clean.
| Finding | Fix | Recomputed at this head | Status |
|---|---|---|---|
| F4 [Nit] log cross-reference | 37e38cd3e |
Spec :165 now says "the 2026-09-26 12:33 entry records the 15-document state at" the same commit the 12:33 entry (:163) names. That entry reads "the crate checks 15 workflow documents (counted from the paths in src/main.rs)". last-updated-utc stays at "2026-10-08 12:56" (:12), which is consistent: the schema says only "The required UTC-minute update timestamp" (frontmatter-validator/src/profile.rs:325), the log rule is "Append one line per meaningful update" (docs/templates/ISSUE.md:152), and the stamp matches the last logged event. |
FIXED |
| F5 [Nit] audit paraphrase | 0be12c25e |
Audit :51-53 quotes review 5456830805's sentence. It matches the review body once the soft wrap at :51-52 is joined, which is how Markdown renders it; the source differs only by that newline. The PR body is now one line per paragraph and list item (open-pull-request/SKILL.md:28), with its code spans closed and a "Review follow-ups" section. |
FIXED |
Audit record (17f44f1f7).
- Round-2 F4 is recorded as audit F5 and round-2 F5 as audit F6, each keeping "Reviewer finding ID" F4/F5 (:126, :139). That follows process-pr-review :57-61, which says to "assign the next audit-local
F<ordinal>and record the reviewer's original ID" on a reused ID. F4 collides with the round-1 mapping, and F5 then collides with the F5 just assigned. - Rows :67-68 are Nit, Human, ORIGINAL, FIXED and RESOLVED, and the details follow the rows in template field order.
- Every id resolves against the capture: review 5457160061 (da2ce7, approved at
16885cd18), comments 4219390897 and 4219390920, and replies 4220247125 and 4220247553, each in its own thread. - The resolution references are the two fix subjects, and both threads are resolved.
- The log stamps 13:52, 14:30 and 14:31 follow the review (13:15:24Z) and fit the commits (14:29:47Z–14:32:12Z) and the replies (14:30:56Z, 14:30:58Z).
- What the record says of round 2 is true: "approved", F4 and F5 "continuing its own series", and a body that "restates those two findings and verifies the round-1 fixes". It says nothing about the ACK comments or the dismissal.
- Rows F1–F4 and their details are unchanged; the only edit to existing text is the quote at :51-53.
- The Ownership, Status Values and Completion Rules blocks are byte-identical to the template.
The timeline's review_dismissed (14:30:46Z, at 0be12c25e) is GitHub dismissing a stale review on push, not a verdict.
Carry-over and hygiene. git diff 16885cd18 17f44f1f7 -- contrib .github docs/adrs is empty, and an emulation of the checker over the merge-tree result reads 14 files with 0 failures. The three new commits:
- have Conventional subjects and bodies that match their diffs;
- have the same author and committer, at ascending times (14:29:47Z, 14:30:33Z, 14:32:12Z);
- each carry an attribution trailer;
- add no banned token, and
--name-statusagainst16885cd18shows the spec and the audit record only.
A new finding here would be numbered F6 in this review's series; the audit's F5 and F6 are round-2 F4 and F5.
Findings: none.
Checked, no finding: range-diff =; merge-tree; last-updated-utc against the schema and the log rule; the quote's text; the PR body; the collision mapping; ids, URLs and threads; log order; verbatim blocks; round-1 rows unchanged; the carry-over diff.
Checks
On the loop's compute hub at this head, base develop 285938179 (also the merge base; git merge-tree clean; receipt server-gates-krkavec-200): pre-commit profile gate exit 0 (79 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at develop re-measured, so no new frontmatter finding; the edited package agent-review-report-contract: cargo run exit 0 ("Agent review report contract check passed."), cargo clippy --all-targets -- -D warnings exit 0 with no diagnostics, cargo test exit 0 (2 passed), cargo fmt --check exit 0, and the same cargo run at develop exit 0 as the baseline; validate-audit-record.py --pr-number 2488 --base 285938179 over the live review comments: 6 rows, 9 log entries, 0 failures. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Docker E2E: completed/skipped; Unit (stable): completed/success; Unit (nightly): completed/success; Layer Boundary Bans: completed/success; Documented Clippy Allows: completed/success; Test (Docker) (release): in_progress/pending; Package Coverage (agent-review-report-contract): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Build on ubuntu-latest (nightly): completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success; Docs Lint: completed/success". At posting, develop is 285938179.
|
ACK 17f44f1 — round-2 F4 and F5 recomputed FIXED and the audit record's six rows, ids, log and verbatim blocks verified at this head |
|
ACK 17f44f1 |

Description
Removes two unused prompt files under
.github/prompts/:process-copilot-suggestions.prompt.mdupdate-dependencies.prompt.mdBoth were provider-facing shortcuts into workflows already covered by the
process-pr-reviewandupdate-dependenciesskills, and were not referenced by any active workflow.Why
Identified as unused during a VS Code → Copilot CLI customization migration session. Confirmed with the maintainer that neither file is needed.
Dependent changes
Deleting
process-copilot-suggestions.prompt.mdwould have brokencontrib/dev-tools/checks/agent-review-report-contract, which hardcoded required/forbidden text checks against that file's content. This PR also:REQUIRED_TEXT/WRAPPED_TEXT/FORBIDDEN_TEXTentries and theverify_review_routingchecks that referenced the removed prompt file.docs/adrs/20260821172000_establish_ai_agent_context_capability_and_portability_governance.md, which trackedupdate-dependencies.prompt.mdas an active capability.Review follow-ups
.github/prompts/directory (Copilot F1).agent-review-report-contractstate what it reads #2349 spec now says the checker reads 14 workflow documents, not 15 (da2ce7 F2).docs/pr-reviews/pr-2488-review/PR-REVIEW.md.Validation
cargo run(agent-review-report-contract): passes.cargo clippy --all-targets -- -D warnings(agent-review-report-contract): clean.cargo fmt -p agent-review-report-contract -- --check: clean.linter markdown: all markdown files pass.validate-audit-record.py --pr-number 2488: 0 failures.Co-authored-by: Copilot [email protected]