Commit 95c79411cb for bind

commit 95c79411cb06b1f71ca684c3418afabc3b1bddb0
Author: Michal Nowak <mnowak@isc.org>
Date:   Mon Nov 23 15:29:57 2026 +0000

    Drop the tweak-release-notes skill

    The skill now lives in the bind9-qa repository, next to the bind-release
    skill that drives the rest of the release process and calls it for the
    "Tweak and reword release notes" step. Keeping a copy here would let the
    two drift apart and load both versions in a bind9 checkout.

diff --git a/.agents/skills/tweak-release-notes/REFERENCE.md b/.agents/skills/tweak-release-notes/REFERENCE.md
deleted file mode 100644
index d162441f4d..0000000000
--- a/.agents/skills/tweak-release-notes/REFERENCE.md
+++ /dev/null
@@ -1,291 +0,0 @@
-# Release-notes reference (ISC BIND 9)
-
-Detailed conventions for the [tweak-release-notes](SKILL.md) workflow. When
-any rule here is unclear or seems stale, **the most recent released
-`doc/notes/notes-9.*.rst` files win** (find them with `ls -v` — plain `ls`
-sorts 9.21.9 after 9.21.24) — grep them and mirror what they do.
-
-**No silent truncation.** When paging long output (`head`, `tail`), make
-sure the ranges join up to cover all of it, and reconcile against the
-scripts' printed counts: every merge `cycle_merges.py` lists gets a
-substance judgment, and the issue count `summarize_issues.py` parses must
-equal the set `issue_refs.py` derived.
-
----
-
-## 1. Action / audience taxonomy
-
-The changelog and release notes are generated from the **MR title** (and
-description), not from commit messages. The title is
-`[BRANCH][CVE-…] ACTION: AUDIENCE: short description`.
-
-| ACTION | Notes/changelog section |
-| ------ | ----------------------- |
-| `sec`  | Security Fixes          |
-| `new`  | New Features            |
-| `rem`  | Removed Features        |
-| `chg`  | Feature Changes         |
-| `fix`  | Bug Fixes               |
-
-| AUDIENCE | Release note | Changelog |
-| -------- | :----------: | :-------: |
-| `usr` (users)      | yes | yes |
-| `pkg` (packagers)  | yes | yes |
-| `dev` (developers) | no  | yes |
-| `test` (testers)   | no  | no  |
-| `doc` (docs)       | no  | no  |
-| `ci` (infra)       | no  | no  |
-| `nil` (none)       | no  | no  |
-
-So a **release note** is generated iff audience is `usr` or `pkg`. Section is
-chosen by ACTION. Notes-file section order seen in prior art: Security Fixes,
-New Features, Removed Features, Feature Changes, Bug Fixes — include only
-sections that have entries.
-
-**Cycle boundary:** the most recent first-parent commit whose subject matches
-`Set up version for BIND 9.X.Y` (the version bump opening the cycle). Range is
-that commit `..HEAD`. `git log --merges --first-parent` over that range lists
-the cycle's MRs; the one `Merge tag 'vX'` back-merge is not an MR (skip it).
-
----
-
-## 2. Substance review — the main event
-
-The audience→section mapping is script-generated and almost never wrong, so
-audit it only as a checkmark (notes count == usr/pkg count; nothing usr/pkg
-missing). **Spend the effort judging whether the ACTION and AUDIENCE match the
-change's substance** — what a user actually observes, not the diff's size.
-
-Two kinds of mismatch to look for:
-
-- **Action-substance** — e.g. a `chg` when there are no user-visible changes -
-  should probably be classified as `fix` instead, or not using `rem` when a
-  feature was removed. Alternately, not surfacing user-visible changes as `chg`.
-  An internal API/struct change does **not** make a user-facing bug fix into a
-  `chg`; the tag classifies user-visible nature, not internal footprint.
-- **Audience-substance** — e.g. a `dev` fix whose issue is `Security`-labeled
-  and affects a *released* version, shipping with no note; or a `dev` change
-  that alters user-visible CLI/behavior.
-
-### Triage heuristics (whether a change deserves a note)
-
-- **Dev-branch-only vs stable-affecting.** A bug affecting only the current
-  development branch (e.g. 9.21) is handled with more leeway and often stays
-  `dev` even if user-facing-ish. The same class of bug that *also* affects a
-  stable branch (e.g. 9.20) is far more likely to warrant `usr` + a note.
-  Check the issue's `Affects vX` labels.
-- **Developer decision is respected.** If devs deliberately left it `dev`,
-  that stands.
-- **Reporter origin.** Internal (ISC staff) or CI/sanitizer findings with no
-  significant consequence usually get no note. Historically, external
-  (non-ISC) user-reported issues were likelier to get a note — but that is
-  shifting under the volume of LLM-reported issues, which no longer get the
-  same treatment.
-- **User/interface changes** generally get a note — *except* when merely
-  loosening/relaxing a condition (and/or main-only): OK to skip.
-- **Main-only optimizations**: OK to skip.
-- **Implementation details** which are unlikely to be visible to sysadmins:
-  OK to skip.
-
-### Flag, don't decide
-
-Surface every mismatch with evidence as a flag-for-decision; the maintainer
-owns the call (and may relay it to dev). When the maintainer agrees, reflect a
-section move / attribution change **in the notes only**.
-
-**The changelog is never edited.** It is generated purely from the git log of
-the already-merged MRs, which no longer change at this point. A notes-side
-reclassification therefore makes the notes and changelog differ for this
-release — that is expected, not a defect to reconcile.
-
-### Label / milestone facts (so you don't chase ghosts)
-
-- The **`Release Notes` GitLab label lives on the MR, not the issue**, and CI
-  enforces that it matches the audience. Don't audit issues for it.
-- The **"Not released yet" milestone is normal cycle staging** (even `usr` MRs
-  carry it) — *not* an embargo hold. Embargoed security fixes go through
-  `security-*` branches (auto "Not released yet" + auto backports). A
-  `Security`-labeled fix appearing publicly in `main` as `dev` is therefore a
-  real audience decision worth questioning, not an embargo artifact.
-
----
-
-## 3. Issue close-status check
-
-Every issue "covered by" the release should be **closed**. Derive the set with
-`python3 scripts/issue_refs.py <ver>` (union of `:gl:` refs in the generated
-changelog+notes and `Closes/Fixes #N` in cycle merge bodies; noise like
-`PKCS#11` / `port=53` is filtered). Fetch each into one directory with the
-`gitlab` CLI (anonymous, no token needed for public issues):
-
-```
-gitlab --server-url https://gitlab.isc.org --skip-login -o json \
-    project-issue get --project-id isc-projects/bind9 --iid <N> \
-    > <dir>/<N>.json
-```
-
-then `python3 scripts/summarize_issues.py <dir>`.
-
-For any issue not closed, reason and flag (don't fix silently):
-
-- **Omission** — the closing MR merged via a non-`main` or cross-project
-  branch (e.g. the **private fork** for a security fix), so GitLab's auto-close
-  on public `main` never fired. → suggest the maintainer close it manually
-  (this workflow's GitLab access is anonymous and read-only; you flag, you
-  never close).
-- **Ongoing** — the MR only *referenced* the issue (no `Closes`/`Fixes`)
-  because work remains. → leave it open.
-
----
-
-## 4. Notes refinement — markup & style
-
-**Prior art is the source of truth.** Before applying any rule, grep recent
-notes for how the exact term/construct is already rendered, and match it.
-
-### Sphinx markup decision table
-
-| Thing | Render as | Examples |
-| ----- | --------- | -------- |
-| named.conf statement/option | `:any:`name``; use `:namedconf:ref:`name`` only when the bare `:any:` target is ambiguous (matches multiple objects) | `:any:`dns64``, `:any:`nxdomain-redirect``, `:any:`tkey-gssapi-keytab``, `:any:`dnssec-policy`` |
-| rndc subcommand / CLI option | `:option:`…`` | `:option:`rndc flush``, `:option:`dig -x``, `:option:`named-checkconf -b`` |
-| program / man page | `:iscman:`name`` | `:iscman:`named``, `:iscman:`delv``, `:iscman:`dnssec-signzone`` |
-| RFC | `:rfc:`NNNN`` | `:rfc:`2535``, `:rfc:`3645` Section 4.1.1` |
-| CVE (security only) | `:cve:`YYYY-NNNN`` | summary line of a CVE'd Security Fix |
-| GitLab issue / MR | `:gl:`#NNNN`` / `:gl:`!NNNN`` | see ordering below |
-| record types in prose | **plain** | A, AAAA, CNAME, DNAME, RRSIG, NS, AXFR, IXFR, meta-types |
-| RCODEs | **plain** | SERVFAIL, FORMERR, NOERROR |
-| protocols / algorithms | **plain** | TCP, UDP, DoH, Ed25519, Ed448, PKCS#11 |
-| filenames, identifiers, struct/func names, counters, internal flags, literal config values | ``literal`` (double backtick) | ``bind9.xsl``, ``MismatchTCP``, ``malloc_trim()``, ``file``, ``unlimited``, ``-C`` |
-
-Notes:
-- Record types are **plain** in prose (prior art is ~100:1 plain).
-- **Never leave single-backtick** `` `text` `` (the unset default role). Convert
-  to a role or a ``literal``. After editing, confirm none survive.
-- **Verify every role target resolves** — the build gate is warnings-as-errors.
-  Before using `:any:`X``/`:iscman:`X``/`:option:`X``, confirm it's real: grep
-  `doc/` for an existing identical use, or for its definition
-  (`.. namedconf:statement:: X`, `doc/man/X.*`). If a term is only ever plain
-  text and has no definition, keep it a ``literal`` — don't invent a role.
-  Avoid ambiguous `:any:` targets (e.g. a bare `file`) that match multiple
-  objects → build warning; use a ``literal`` or a domain-qualified role.
-
-### Attribution (security fixes ONLY)
-
-We do **not** attribute non-security fixes. Security Fix entries credit the
-reporter, in its own paragraph, matching recent tags:
-
-```
-ISC would like to thank <Name> [of|from <Org>] for bringing this
-{vulnerability|issue} to our attention. :gl:`#NNNN`
-```
-
-When an entry is reclassified out of Security Fixes, **drop the attribution
-line** and let `:gl:`#NNNN`` attach to the end of the last body sentence.
-
-### Wording
-
-- Summary line: imperative-verb style (`Fix …`, `Add …`, `Remove …`, `Use …`)
-  — but descriptive openers exist in prior art; only rewrite awkward/non-
-  imperative summaries. Don't mechanically transform every entry.
-- Summary lines DO carry roles (e.g. `Fix :any:`nxdomain-redirect` combined
-  with :any:`dns64`.`) — format linkable terms there too, like the body.
-- Avoid a sentence-initial lowercase `:iscman:`named`` (renders lowercase
-  "named …"); restructure, e.g. "Previously, :iscman:`named` …" or "The
-  :iscman:`named` process …".
-- Fix obvious typos while you're in the file.
-- Intended audience are system administrators. Omit implementation details like
-  function names, data structure details etc. Focus on user visible impact.
-
-### Sectioning & entry order
-
-- Move an entry to the correct section if its action/substance was corrected.
-  Remove a section that becomes empty (e.g. the lone Security Fix moved
-  out → delete the `Security Fixes` header + underline).
-- **Entry order is not a strict numeric sort.** The only consistent rule:
-  issue entries come before MR-only (`!`) entries within a section. Otherwise
-  preserve the generator's order; when inserting a moved entry, place it
-  consistent with the order already present (often ascending-by-issue) — verify
-  against the file and recent tags.
-- **Issue-less entries** (MR only, no `Closes`) cite the MR: append
-  `:gl:`!NNNN``. The generator may omit this; prior art includes it.
-
----
-
-## 5. Build gate
-
-Verifying the docs compile is a **required gate after any notes change**. The
-docs are Sphinx; the real CI gate runs `sphinx-build` with **`-W`
-(warnings-as-errors)** over `doc/arm` (and `-n` nitpicky depending on
-verbosity), so every role target must resolve or the build fails.
-
-Run it directly with meson (sphinx-build underneath):
-
-```
-meson setup build   # once; add -Ddoc=enabled if sphinx-build isn't auto-detected
-meson compile -C build arm
-```
-
-Filter the output for warnings mentioning your notes file.
-
----
-
-## 6. Commit conventions
-
-For general commit mechanics — message shape, wrapping, trailers,
-fixup/amend rules, the never-push boundary — follow the **bind-commit**
-skill. Only the release-notes-specific conventions are listed here.
-
-- **The tweak commit:** subject exactly `Tweak and reword release notes`, **no
-  body** (this recurring step uses that fixed subject every release — e.g.
-  prior `Tweak and reword release notes` commits for 9.21.20/.21/.22).
-  Notes-only — the changelog is never in this commit.
-- **Never amend the session base** (HEAD at session start, e.g. the "Prepare
-  release notes" commit). Add commits on top.
-- **Follow-up edits** after you've presented the tweak commit become fixups
-  of it (per bind-commit).
-- **DROP-revert (standard final step, every release):** revert the generated
-  changelog so the GitLab review diff is notes-only, while keeping the
-  changelog correct in history.
-
-  ```
-  git revert --no-commit <Generate-changelog-sha>
-  git commit -F - <<'EOF'
-  DROP Revert "Generate changelog for BIND 9.X.Y"
-
-  This reverts commit <full-sha>.
-
-  The generated changelog is correct and kept in place; this revert is
-  dropped before merge so the review diff shows only the release-note changes.
-
-  Assisted-by: ...
-  EOF
-  ```
-
-  The DROP commit sits at the tip and is dropped before merge (which restores
-  the changelog). The dangerfile FAILs on `DROP`/`fixup!` subjects — that is
-  the intended pre-merge tripwire, not a development-time blocker.
-- **Follow-up session with the DROP already at the tip:** add new fixup
-  commits on top of the DROP anyway — do not reorder or rewrite history
-  yourself. The maintainer's final `git rebase -i --autosquash` squashes the
-  fixups into the tweak commit and drops the DROP, so the ordering resolves
-  there.
-
-At end of turn, surface any `fixup!`/`DROP` commits present and whether
-`git rebase -i --autosquash <base>` applies cleanly; wait for the maintainer
-before rewriting history.
-
----
-
-## 7. Scripts
-
-All pure-local except where noted; run from the repo root.
-
-- `python3 scripts/cycle_merges.py [<boundary>] [<tip>]` — list cycle merges with
-  parsed `action:audience` and what each generates; reconciliation counts.
-- `python3 scripts/issue_refs.py <ver> [<boundary>]` — derive the complete covered-
-  issue set (handles the changelog being reverted out of HEAD by the DROP
-  commit); separates doc-referenced from body-only (test/ci) issues.
-- `python3 scripts/summarize_issues.py <dir-of-issue-json>` — parse downloaded
-  issue JSON: close-status (flags non-closed) and `Affects vX` labels. Fetch
-  the JSON first with the `gitlab` CLI (see §3 above).
diff --git a/.agents/skills/tweak-release-notes/SKILL.md b/.agents/skills/tweak-release-notes/SKILL.md
deleted file mode 100644
index 571e802d6b..0000000000
--- a/.agents/skills/tweak-release-notes/SKILL.md
+++ /dev/null
@@ -1,84 +0,0 @@
----
-name: tweak-release-notes
-description: Review and refine ISC BIND 9 release notes for a new version — audit audience/action tags against the actual change substance, verify every covered issue is closed, and rewrite the auto-generated notes into the project's established prior-art style with correct Sphinx markup, verifying the docs still build. Use when preparing or tweaking BIND 9 release notes (doc/notes/notes-*.rst), reviewing a "prepare documentation"/release branch, producing the "Tweak and reword release notes" commit, or when the user mentions release notes, changelog/notes audience tags, or release-note markup.
----
-
-# Tweak release notes (ISC BIND 9)
-
-Refine the auto-generated release notes for a new BIND 9 version into the
-project's reviewed style, after checking that the generated content is correct
-and complete. **Notes only** — the changelog is never hand-edited.
-
-## Golden rule
-
-**Recent tags are the source of truth.** This process evolves; when any
-convention below is unclear or seems to conflict with what you see, mirror the
-most recent released `doc/notes/notes-9.*.rst` files. Consistency — in git
-style and in release-note style, content, and markup — is the whole goal.
-Stick to existing conventions unless the maintainer asks otherwise.
-
-## Prerequisites
-
-- **`gitlab` (python-gitlab CLI)** — issue reads use anonymous access:
-  `gitlab --server-url https://gitlab.isc.org --skip-login -o json
-  project-issue get --project-id isc-projects/bind9 --iid <N>`. No token
-  needed for public issues.
-- **`meson`/`sphinx-build`** — the docs build gate runs directly, no wrapper:
-  `meson setup build && meson compile -C build arm` (add `-Ddoc=enabled` to
-  setup if it doesn't auto-detect `sphinx-build`).
-- The generated `doc/changelog/changelog-<ver>.rst` and
-  `doc/notes/notes-<ver>.rst` already exist (committed by "Generate changelog"
-  and "Prepare release notes").
-
-## Workflow
-
-Work top to bottom. Details for every step: **[REFERENCE.md](REFERENCE.md)**.
-Helper scripts (pure-local git/text + JSON parsing) are in `scripts/`.
-The whole workflow operates on a single release branch/checkout — one
-`<ver>` at a time.
-
-**Where the work pauses:** the flags produced by steps 3 and 4 need
-maintainer decisions, but do not block on them — carry on with steps 5–7
-for everything unflagged and present the flags together with the result.
-Edits that follow from flag decisions land afterwards as fixups.
-
-1. **Scope the cycle.** Range = the most recent `Set up version for BIND
-   9.X.Y` commit `..HEAD`. List merges + their `action:audience` tags:
-   `python3 scripts/cycle_merges.py`. (Action/audience taxonomy: REFERENCE.md.)
-
-2. **Audit audience→notes mapping (light checkmark).** This is script-
-   generated and rarely wrong: confirm notes-entry count == usr/pkg merge
-   count and nothing usr/pkg is missing. Don't over-invest here.
-
-3. **Substance review — the main event.** For every merge, judge whether the
-   `action` (sec/new/rem/chg/fix) AND `audience` (usr/pkg/dev/…) match what
-   the change actually does — not the diff's size. Read the MR/issue when in
-   doubt. **Flag mismatches for the maintainer; do not silently re-tag.** Use
-   the triage heuristics in REFERENCE.md. When the maintainer agrees a note
-   should move section (e.g. a crash mis-tagged `chg` → belongs in Bug Fixes,
-   or a `sec` with no CVE → Bug Fixes minus attribution — examples of past
-   maintainer decisions, not standing rules; always flag first), reflect it
-   **in the notes only**. The changelog is never edited — it is generated
-   from the git log of the already-merged (frozen) MRs — so notes and
-   changelog simply differ for this release, which is expected.
-
-4. **Issue close-status check.** Derive the full covered-issue set
-   (`python3 scripts/issue_refs.py <ver>`), fetch each via gitlab CLI,
-   then `python3 scripts/summarize_issues.py <dir>`. Every covered issue should be
-   **closed**. For any that isn't, reason: *omission* (closed via a non-main /
-   private-fork branch so auto-close never fired → suggest the maintainer
-   close it) vs *ongoing* (MR only referenced it, no `Closes` → leave open).
-   Flag, don't fix silently.
-
-5. **Refine the notes (style + markup).** Rewrite into prior-art style: add
-   Sphinx roles to everything linkable, render the rest per prior art, fix
-   typos, normalize phrasing, place/section entries correctly. Full rules and
-   the markup decision table: REFERENCE.md. **When unsure, grep recent notes.**
-
-6. **Verify the docs build.** A required gate after any notes change. Use the
-   meson compile; the gate treats Sphinx warnings as errors, so every role
-   target must resolve.
-
-7. **Commit.** `Tweak and reword release notes` (verbatim subject, no body) +
-   `Assisted-by` trailer; follow-ups as `--fixup`; finish with the standard
-   DROP-revert of the changelog. Exact conventions: REFERENCE.md.
diff --git a/.agents/skills/tweak-release-notes/scripts/cycle_merges.py b/.agents/skills/tweak-release-notes/scripts/cycle_merges.py
deleted file mode 100644
index 4f397df409..0000000000
--- a/.agents/skills/tweak-release-notes/scripts/cycle_merges.py
+++ /dev/null
@@ -1,121 +0,0 @@
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-"""
-List the merge commits of the current release cycle with their parsed
-action/audience tags, and what each one generates.
-
-Cycle boundary: the most recent first-parent commit whose subject matches
-"Set up version for BIND" (the version bump that opens the cycle). Override
-by passing an explicit <boundary-ref> as argv[1].
-
-Usage:
-    python3 scripts/cycle_merges.py [<boundary-ref>] [<tip-ref>]
-
-The audience/action -> changelog/notes mapping is auto-generated by the
-project's tooling, so this is a sanity checkmark, not the main event. The
-main event is judging whether each tag MATCHES THE SUBSTANCE (see SKILL.md).
-"""
-
-import re
-import subprocess
-import sys
-
-ACTION_SECTION = {
-    "sec": "Security Fixes",
-    "new": "New Features",
-    "rem": "Removed Features",
-    "chg": "Feature Changes",
-    "fix": "Bug Fixes",
-}
-# audience -> (release note?, changelog?)
-AUDIENCE = {
-    "usr": (True, True),
-    "pkg": (True, True),
-    "dev": (False, True),
-    "test": (False, False),
-    "doc": (False, False),
-    "ci": (False, False),
-    "nil": (False, False),
-}
-# Subject shape follows the dangerfile's MR_TITLE_RE: optional [9.XX(-S)]
-# branch prefix and optional [CVE-...] prefix (backports), then
-# action:audience.
-SUBJ_RE = re.compile(
-    r"^\s*(?:\[[^]]*\]\s*)*"
-    r"(sec|new|rem|chg|fix)\s*:\s*(usr|pkg|dev|test|doc|ci|nil)\s*:\s*(.*)$"
-)
-
-
-def git(*args):
-    return subprocess.run(
-        ["git", *args], capture_output=True, text=True, check=True
-    ).stdout
-
-
-def main():
-    boundary = sys.argv[1] if len(sys.argv) > 1 else None
-    tip = sys.argv[2] if len(sys.argv) > 2 else "HEAD"
-    if boundary is None:
-        out = git(
-            "log",
-            "--first-parent",
-            "--grep",
-            "Set up version for BIND",
-            "-1",
-            "--format=%H",
-        )
-        boundary = out.strip()
-        if not boundary:
-            sys.exit(
-                "could not find a 'Set up version for BIND' commit; pass a boundary ref"
-            )
-    print(f"# cycle boundary: {boundary[:12]}  tip: {tip}\n")
-
-    raw = git(
-        "log", "--merges", "--first-parent", f"{boundary}..{tip}", "--format=%H%x00%s"
-    )
-    notes = clog = neither = skipped = 0
-    for line in raw.splitlines():
-        if not line:
-            continue
-        sha, subj = line.split("\0", 1)
-        m = SUBJ_RE.match(subj)
-        if not m:
-            print(
-                f"  SKIP   {sha[:12]}  {subj}   (not an action:audience merge — e.g. tag back-merge)"
-            )
-            skipped += 1
-            continue
-        action, audience, _desc = m.groups()
-        rn, cl = AUDIENCE[audience]
-        gen = "note+changelog" if rn else ("changelog" if cl else "neither")
-        if rn:
-            notes += 1
-        elif cl:
-            clog += 1
-        else:
-            neither += 1
-        print(
-            f"  {action}:{audience:<4} -> {gen:<14} [{ACTION_SECTION[action]}]  {sha[:12]}  {subj}"
-        )
-
-    print(
-        f"\n# note+changelog (usr/pkg): {notes}   changelog-only (dev): {clog}"
-        f"   neither: {neither}   skipped: {skipped}"
-    )
-    print(
-        "# expected: notes entries == usr/pkg count; reconcile against the generated files."
-    )
-
-
-if __name__ == "__main__":
-    main()
diff --git a/.agents/skills/tweak-release-notes/scripts/issue_refs.py b/.agents/skills/tweak-release-notes/scripts/issue_refs.py
deleted file mode 100644
index 8f5fc201cb..0000000000
--- a/.agents/skills/tweak-release-notes/scripts/issue_refs.py
+++ /dev/null
@@ -1,133 +0,0 @@
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-"""
-Derive the complete set of issues "covered by" the release.
-
-Sources:
-  1. Every :gl:`#NNNN` in the generated changelog and notes files for this
-     version (authoritative for usr/pkg + dev entries).
-  2. Every issue closed/fixed by a cycle merge body (catches test/ci/doc/nil
-     merges that close an issue but produce no changelog entry).
-
-Noise such as "PKCS#11" or a diff line "port=53" is excluded by requiring a
-close keyword directly before a "#N" ref for body refs (GitLab's default
-closing pattern, as in the dangerfile) and the :gl: role for doc refs.
-
-Usage:
-    python3 scripts/issue_refs.py <version>            # e.g. 9.21.23
-    python3 scripts/issue_refs.py <version> <boundary> # explicit cycle boundary ref
-
-Prints the union, and notes which refs come only from merge bodies (i.e. not
-represented in the changelog/notes — usually test/ci issues).
-"""
-
-import re
-import subprocess
-import sys
-
-GL_RE = re.compile(r":gl:`#(\d+)`")
-# Mirror the dangerfile's ISSUE_CLOSING_REGEX (GitLab's default closing
-# pattern): a close keyword followed by one or more "#N" refs, where the
-# "#" starts the ref — so "fixes PKCS#11 support" does not match.
-ISSUE_REF = (
-    r"(?:(?:isc-projects/bind9)?#"
-    r"|https://gitlab\.isc\.org/isc-projects/bind9/-/issues/)\d+"
-)
-CLOSE_RE = re.compile(
-    r"\b(?:clos(?:e[sd]?|ing)|fix(?:e[sd]|ing)?|resolv(?:e[sd]?|ing)"
-    r"|implement(?:s|ed|ing)?):? +"
-    r"(?:(?:issues? +)?" + ISSUE_REF + r"(?: *,? +and +| *,? *)?)+",
-    re.I,
-)
-REF_NUM_RE = re.compile(r"(?:#|issues/)(\d+)")
-
-
-def git(*args):
-    return subprocess.run(
-        ["git", *args], capture_output=True, text=True, check=True
-    ).stdout
-
-
-def read_doc(path):
-    """
-    Read a doc file's content even if it has been reverted out of HEAD by
-    the DROP changelog-revert: try HEAD, then the worktree, then the most
-    recent commit that still has the blob.
-    """
-    try:
-        return git("show", f"HEAD:{path}")
-    except subprocess.CalledProcessError:
-        pass
-    try:
-        with open(path, encoding="utf-8") as fh:
-            return fh.read()
-    except FileNotFoundError:
-        pass
-    for sha in git("log", "--format=%H", "--", path).split():
-        try:
-            return git("show", f"{sha}:{path}")
-        except subprocess.CalledProcessError:
-            continue  # e.g. the DROP commit that deleted it
-    print(f"# note: {path} not found in history", file=sys.stderr)
-    return ""
-
-
-def main():
-    if len(sys.argv) < 2:
-        sys.exit("usage: issue_refs.py <version> [<boundary-ref>]")
-    version = sys.argv[1]
-    if len(sys.argv) > 2:
-        boundary = sys.argv[2]
-    else:
-        boundary = git(
-            "log",
-            "--first-parent",
-            "--grep",
-            "Set up version for BIND",
-            "-1",
-            "--format=%H",
-        ).strip()
-        if not boundary:
-            sys.exit(
-                "could not find a 'Set up version for BIND' commit; pass a boundary ref"
-            )
-
-    doc_refs = set()
-    for path in (
-        f"doc/changelog/changelog-{version}.rst",
-        f"doc/notes/notes-{version}.rst",
-    ):
-        doc_refs |= {int(n) for n in GL_RE.findall(read_doc(path))}
-
-    body_refs = set()
-    shas = git(
-        "log", "--merges", "--first-parent", f"{boundary}..HEAD", "--format=%H"
-    ).split()
-    for sha in shas:
-        body = git("show", "-s", "--format=%b", sha)
-        for m in CLOSE_RE.finditer(body):
-            body_refs |= {int(n) for n in REF_NUM_RE.findall(m.group(0))}
-
-    union = sorted(doc_refs | body_refs)
-    only_body = sorted(body_refs - doc_refs)
-    print("# all issues covered (union):")
-    print(" ".join(f"#{n}" for n in union))
-    print(
-        f"\n# count: {len(union)}   from docs: {len(doc_refs)}   from bodies: {len(body_refs)}"
-    )
-    if only_body:
-        print("\n# only in merge bodies (no changelog/notes entry — usually test/ci):")
-        print(" ".join(f"#{n}" for n in only_body))
-
-
-if __name__ == "__main__":
-    main()
diff --git a/.agents/skills/tweak-release-notes/scripts/summarize_issues.py b/.agents/skills/tweak-release-notes/scripts/summarize_issues.py
deleted file mode 100644
index a004798143..0000000000
--- a/.agents/skills/tweak-release-notes/scripts/summarize_issues.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
-#
-# SPDX-License-Identifier: MPL-2.0
-#
-# This Source Code Form is subject to the terms of the Mozilla Public
-# License, v. 2.0. If a copy of the MPL was not distributed with this
-# file, you can obtain one at https://mozilla.org/MPL/2.0/.
-#
-# See the COPYRIGHT file distributed with this work for additional
-# information regarding copyright ownership.
-
-"""
-Summarize issue JSON dumps: close-status and version-affecting labels.
-
-This is the deterministic *parsing* half of the close-status / substance
-checks. The *fetching* half is a network operation: pull each issue's JSON
-with the `gitlab` CLI (anonymous access works for public issues):
-
-    gitlab --server-url https://gitlab.isc.org --skip-login -o json \
-        project-issue get --project-id isc-projects/bind9 --iid <N> \
-        > <dir>/<N>.json
-
-then run this over that directory.
-
-Usage:
-    python3 scripts/summarize_issues.py <dir-of-issue-json>
-
-Flags any issue that is NOT closed (the close-status check) and prints the
-"Affects vX" labels (input to the substance review: does a released version
-carry the bug?). A non-closed issue is usually one of:
-  * omission  -> closed via a non-main / cross-project (e.g. private fork)
-                 branch, so auto-close on public main never fired; suggest
-                 the maintainer close it.
-  * ongoing   -> the MR only referenced the issue (no "Closes"); leave open.
-"""
-
-import glob
-import json
-import os
-import sys
-
-
-def main():
-    if len(sys.argv) != 2:
-        sys.exit("usage: summarize_issues.py <dir-of-issue-json>")
-    d = sys.argv[1]
-    files = sorted(glob.glob(os.path.join(d, "*.json")))
-    rows = []
-    for f in files:
-        if "discussion" in os.path.basename(f):
-            continue
-        try:
-            with open(f, encoding="utf-8") as fh:
-                data = json.load(fh)
-        except (ValueError, OSError) as exc:
-            print(f"# warning: skipping {f}: {exc}", file=sys.stderr)
-            continue
-        if "iid" not in data:
-            print(f"# warning: skipping {f}: no 'iid' key", file=sys.stderr)
-            continue
-        labels = data.get("labels", [])
-        rows.append(
-            (
-                data["iid"],
-                data.get("state", "?"),
-                [l for l in labels if l.lower().startswith("affects")] or ["(none)"],
-                data.get("title", "")[:50],
-            )
-        )
-    rows.sort()
-    not_closed = [r for r in rows if r[1] != "closed"]
-    print(
-        f"# issues: {len(rows)}   closed: {sum(1 for r in rows if r[1]=='closed')}"
-        f"   NOT closed: {len(not_closed)}\n"
-    )
-    for iid, state, affects, title in rows:
-        flag = "  <<< NOT CLOSED" if state != "closed" else ""
-        print(f"#{iid}  {state:8} affects={','.join(affects):40} {title}{flag}")
-    if not_closed:
-        print(
-            "\n# NOT CLOSED — reason out each: omission (suggest the"
-            " maintainer close it) vs ongoing (leave open)."
-        )
-
-
-if __name__ == "__main__":
-    main()