Task: GitHub issue #246 — clean up ADR-020 Repo: /home/janfr/dev/pc-switcher. Your…
- User
Task: GitHub issue #246 — clean up ADR-020
Repo:
/home/janfr/dev/pc-switcher. Your working directory is an isolated git worktree; edit only files under it.You have no shell. Do not attempt git,
gh,uvor any command. Read, Write, Edit, Grep and Glob only. Someone else runs the checks, commits and opens the PR. Produce the file edits and a report; nothing else.Read first:
CLAUDE.md,~/.claude/CLAUDE.md,docs/adr/adr-001-adr.md(the project's own ADR instructions).Terseness is the deliverable, not a side constraint.
docs/adr/adr-020-declarative-package-convergence.mdis 323 lines of prose that says things three times. Cut hard. Any sentence that does not change what a reader concludes goes.The problem
ADR-020 is three documents in one:
- A decision record (
## Decision, sectionsD-01..D-43) — what an ADR is for. It stays. - An
## Implementation Rulesblock (lines 11-41) of MUST / Forbidden clauses — a second normative rule set covering the same obligations asdocs/planning/package-sync-conformance-criteria.md'sPKG-FR-*/PKG-NG-*articles, with no declared precedence between the two. - Screen-copy rules (which words each answer key shows, that hostnames appear in every title and
source/targetnever do, how a legend sentence reads) embedded inD-07andD-24— a UI specification.
Plus measured third-party-tool evidence ("measured against apt 2.8.3", HTTP status codes, exit codes) inline in the decision prose.
Your input
/home/janfr/.claude/jobs/5545537a/tmp/adr-020-rule-audit.mdis a completed clause-by-clause audit of the Implementation Rules block: 53 clauses classified DUPLICATE (45), STRONGER (7), ORPHAN (1), each with its counterpart article and line. It also locates, perD-nnsection, the measured evidence and the screen copy. Read it before touching anything. Spot-check a handful of its DUPLICATE claims against the two documents rather than trusting all 45 — if you find one misclassified, say so in your report.What to do
- Delete the
## Implementation Rulesblock, but not before every obligation in it has a home:- DUPLICATE clauses: delete outright, the article already covers them.
- STRONGER clauses (7): these say more than their article, so deleting them loses an obligation. For each, either extend the existing article in to carry the extra force, or add a new article beside it.
- A decision record (
Assistant
I'll start by reading the required files and the audit input.
Assistant
Now the referenced target files.
Assistant
Reading the rest of the conformance file and the two spec docs.
Assistant
Now the jobs doc and user-requirements. Let me search for batching wording in both.
Assistant
Let me read the user-requirements batching context and the version/collateral sections for D-04/D-30 pointers.
Assistant
Let me check both docs for MUST-flavoured batching wording before editing.
Assistant
Docs already frame batching as a preference with correctness rounds — no fix needed there. Now creating the measurements considerations doc.
Assistant
Now the conformance-criteria edits. First, rewrite PKG-FR-BATCHED (clauses 11, 12, 13):
Assistant
Now extend PKG-FR-REPO-CONFLICT and PKG-FR-FLATPAK-REPOINT with the two-answer shape (clause 20), and sharpen PKG-FR-APT-IGNORES (clause 26):
Assistant
Now append the ORPHAN as a new non-goal at the end of the Non-goals section:
Assistant
Update Traceability for the new non-goal:
Assistant
Now the ADR rewrite — the main deliverable. Writing the trimmed version with every
D-nnheading preserved:Assistant
Let me verify the line count and that every
D-nnheading still resolves.Assistant
202 lines — over the 150-180 target. Let me trim fat without losing any decision. Tightening Context and cutting lower-value Consequences bullets:
Assistant
The 201 floor is driven by paragraph/bullet count, not words — one-paragraph-per-line means in-sentence cuts don't reduce lines. I'll merge naturally-continuing double paragraphs in the longest sections (content-preserving) to get closer to target.
Assistant
Now verifying: no Implementation Rules leftover, measured apparatus moved out, and links resolve.
Assistant
Let me verify the conformance additions are well-formed.
Assistant
All conformance edits verified. Let me do a final spot-check of a few audit DUPLICATE claims and get the final ADR line count.
Assistant