Skip to content

docs: record the release-archive and Homebrew decision as ADR 0319 - #1405

Merged
rdimitrov merged 1 commit into
mainfrom
docs/adr-0319-release-archives
Sep 11, 2026
Merged

rdimitrov merged 1 commit into
mainfrom
docs/adr-0319-release-archives

Conversation

@rdimitrov

Copy link
Copy Markdown
Member

Summary

The archive + Homebrew pipeline shipped under an explicit spine waiver, so no ADR recorded it. That left no durable answer to a set of questions a future reader will certainly ask:

  • Why does GoReleaser run alongside ko rather than replacing it, and which tool owns what?
  • Why the existing public stacklok/homebrew-tap rather than a new per-project tap?
  • Why four platforms, and is Windows excluded because it fails to compile? (No — Homebrew's scope.)
  • Why is the archive flat rather than using a versioned top-level directory?
  • Why is the deprecated brews: block retained instead of migrating to homebrew_casks?
  • Why does the ldflags stamp re-add the v prefix?

All decided with reasons that currently live only in PR bodies.

Reusing ADR number 0319

0319 was allocated to an unmerged proposal in the now-closed #1238 and is referenced nowhere on main — not in docs/, AGENTS.md, .claude/, nor the ADR index. TestRealADRNumberUniqueness globs on-disk docs/adr/*.md, so it never saw that branch either. By this repository's own rule — merging is the approval event, proved by git ancestry — that file was never an ADR.

The reuse is explained inside the document: the Context section names the earlier proposal, and Rejected alternatives describes its narrower decision (Darwin arm64 only, hand-written packaging script, versioned directory) and why it was set aside. That is better than leaving a silent gap plus an orphaned thread. A follow-up comment on #1238 points at this ADR so the closed thread reconciles.

Honesty about the process

Status: Accepted, with a Context note stating plainly that the implementation shipped first under an explicit waiver and that this records the decision after the fact. Without that line the dates would imply a process that did not happen. Writing it is a docs change recording an already-shipped decision, so Routine — no spine for the ADR itself.

Development stage

  • Plan / Interface
  • Implementation
  • Combined
  • Spike / Routine — acceptance-plan spine exempt

Contract linkage

  • Work classification: Routine
  • Classification rationale: documentation of a decision already in force. No code, no contract, no behaviour change; reversible.
  • Decision record: this PR is the decision record. It introduces no new decision — every clause describes what .goreleaser.yaml and .github/workflows/release.yml already do on main.
  • Human waiver of spine: No — Routine is spine-exempt by classification. (The implementation it documents was waived; that is stated in the ADR.)
  • Acceptance plan: n/a
  • Human decisions resolved and recorded: N/A — the directing human asked for this ADR and chose to reuse 0319.
  • Plan / Interface PR: n/a
  • Approved commit baseline: n/a
  • Combined/exemption rationale: n/a

Interface conformance

No gRPC/protobuf, exported Go API, tool schema, CLI, config, event, persistence or trust-boundary change. Two markdown files.

Issue relationship

Relates to #890

Type of change

  • Behavioral/interface plan
  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation/process
  • Other

Test plan

Baseline checks

  • Acceptance-plan checker — n/a, Routine
  • Linting — no code touched
  • Offline test suite (task test) — exit code 0, 0 FAIL lines
  • Offline demo — n/a
  • Markdown changed: docs generation/link checks (task docs) — 375 documents, 3450 references, 0 broken links/anchors, 0 ambiguous/orphans/unreachable
  • User docs changed — none
  • Guarded engine API affected — no; task api:check runs under task test
  • Final implementation review: /panel-review — not run

go test ./docs/lint passes, covering both TestRealADRNumberUniqueness and CheckCitations. Every cited path was confirmed to exist before citing.

One thing caught by the gate, worth knowing: the first draft linked ../../user-docs/install.md and task docs failed with 1 broken link — user-docs/ is excluded from the matlatl corpus (.matlatlignore:59), and mine was the only relative link of its kind anywhere in docs/. The convention is the published URL or an absolute blob URL; it now uses https://mecatl.dev/docs/install.

Changes

File Change
docs/adr/0319-release-archives-and-homebrew-tap.md New. 154 lines: Context, Decision, Consequences, Rejected alternatives, See also
docs/adr/README.md Index entry under UX & forge, beside 0028 (the other forge ADR)

User-facing change

None.

Special notes for reviewers

The clause most worth reading is the brews: one. It is the deprecated GoReleaser block, retained deliberately because stacklok/homebrew-tap is a Formula/ tap and casks must live in Casks/ — migrating is an org-wide move across three publishing repositories. Without the ADR, that is the clause most likely to be "helpfully" modernised by someone who does not know the tap's layout.

Consequences is deliberately unflattering. It records the ~302 MB install and that __gopclntab is reducible by no flag; the two-destination partial-failure mode; tag immutability and fix-forward; ~2.0 GB of build cache per platform against a runner that starts with ~14 GB free; and that retaining brews: makes goreleaser check exit 2. An ADR with only upsides is a sales pitch, per the template's own guidance.

Rejected alternatives credits what was not rejected. The earlier proposal's offline contract test for .github/workflows/release.yml is called out as still worth porting — nothing currently tests that workflow, and it broke twice during the v0.0.30 attempts.

I used ## Rejected alternatives rather than inventing a heading: no ADR in the repo uses ## Alternatives, while 0063 and 0095 already use this one.

🤖 Generated with Claude Code

The archive + Homebrew pipeline shipped under an explicit spine waiver, so no
ADR recorded it. That left no durable answer to why GoReleaser runs alongside
ko, why the existing public tap rather than a new one, why four platforms, why
the archive is flat, or why the deprecated `brews:` block is retained — all
decided with reasons that lived only in PR bodies.

Reuse ADR number 0319. It was allocated to an unmerged proposal in the closed
#1238 and is referenced nowhere on main; by this repository's own rule that
merging is the approval event, it was never an ADR. The document says so
explicitly and describes that narrower proposal under Rejected alternatives, so
the reused number is explained rather than merely vacant.

Status Accepted with a Context note stating plainly that the implementation
shipped first, so the dates do not imply a process that did not happen.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@rdimitrov
rdimitrov force-pushed the docs/adr-0319-release-archives branch from 3e8f96d to 6a4bc0f Compare September 11, 2026 11:02
@rdimitrov
rdimitrov merged commit 526ac43 into main Sep 11, 2026
58 of 59 checks passed
@rdimitrov
rdimitrov deleted the docs/adr-0319-release-archives branch September 11, 2026 11:36
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Sep 11, 2026
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants