Skip to content

refactor!: remove the superseded production path (ADR-0015) - #76

Merged
bketelsen merged 2 commits into
mainfrom
lucilla/remove-production-path
Oct 24, 2026
Merged

bketelsen merged 2 commits into
mainfrom
lucilla/remove-production-path

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Oct 24, 2026 •

Copy link
Copy Markdown

Summary

Removes the superseded Frostyard production publication path from Repogen. Core ADR-0055 made frostyard/apt-publisher the only Frostyard Debian writer. ADR-0013 is superseded, and Plan 0001 is superseded. The code stayed in the tree and kept its tests, but nothing calls it. ADR-0013 said removal is a separate decision. This PR records that decision as a new ADR-0015, with status Proposed.

⚠️ Breaking change. The validate-production and reconcile-production commands shipped in v0.5.2. This PR removes them. generate and the publish-to-r2 action do not change.

Removed paths

Path What it was
internal/cli/production.go (+ _test.go) validate-production command
internal/cli/reconcile_production.go (+ _test.go) reconcile-production command
internal/production/ production config, builder, execute
internal/intake/ intake store and recovery. Only the production path imported it.
internal/objectstore/r2/ R2/S3 adapter. Only the production path imported it. With it, the AWS SDK modules leave go.mod.
internal/generator/deb/production_contract.go, production_restore.go, production_transaction.go (+ tests) Debian production restore and transaction
internal/generator/deb/recovery_writer.go (+ test) Debian recovery writer
internal/generator/deb/local_generation.go, _linux.go, _other.go (+ test) R7/R8 atomic local production generation. Only production code used it.
internal/generator/deb/pool.go (+ test) R4 SharedPool object-store primitive. Only the production transaction used it.
internal/releaseasset/reconcile_action_test.go, reconcile_inputs_test.go tests of the removed action
scripts/validate-reconcile-inputs.sh input validator of the removed action
.github/actions/reconcile-production/ composite action
production/templates/ config and policy templates
docs/specs/production-r2-reconciliation.md spec of the removed path

Kept and moved: generate needs the check of prior Release, InRelease and Release.gpg signatures, which it uses for signed no-op reuse. That check moved from production_restore.go to internal/generator/deb/release_signature.go as parseTrustedKeyRing and verifyReleaseSignatures. The logic is the same, and the move adds table-driven tests in release_signature_test.go. TestGenericUnsignedGenerationRemainsSupported moved to generator_test.go. The sysext OSVersion reconciliation belongs to generate, so it stays.

Consumer evidence (checked 2026-10-24)

The default branches were cloned and their workflows were read directly:

  • frostyard/apt-publisher @ 8804052: no workflow uses a repogen action or command. Its only repogen mention in .github/ is a comment in import-stable.yml about importing the legacy dists/stable. Its reconcile_state is its own shell function.
  • frostyard/snosi @ 82c4501: .github/workflows/build.yml uses only frostyard/repogen/.github/actions/publish-to-r2@ea8cd1f… (v0.4.1), with repogen-version: v0.4.1. It uses no production command or action. That pin does not move with this PR.
  • frostyard/omarchy-apps @ 1cbd54d: no repogen reference at all.
  • Org-wide gh search code found no hit for reconcile-production or validate-production outside this repo. The only other hits for repogen/.github/actions are core ADR-0010 (docs) and test fixtures in chairlift and pilothouse. Those fixtures name publish-to-r2, which stays.

Docs

  • New docs/adr/0015-remove-the-superseded-production-path.md (Proposed).
  • ADR-0013: only the Status line and the banner sentence changed (code removed per ADR-0015).
  • Plan 0001: marked Superseded, with the code removed. The body is kept as the record.
  • docs/design/overview.md, docs/design/ci-cd.md, docs/specs/generators.md, README.md, RELEASING.md, docs/README.md, docs/org-adrs.md: production content removed. The docs now say that apt-publisher publishes Frostyard Debian packages.
  • docs/specs/r10-release-acceptance.md and .github/prompts/r10-release.prompt.md: the rules that needed the deleted code are removed (the signed two-suite test and the R1–R9 matrix). The release asset, checksum, installer and no-move rules stay.

Checks (local)

make build, make fmt (clean), make lint (golangci-lint v2.3.1 built with go1.26.10, as in CI: 0 issues), go vet ./..., and make test all pass. make test covers unit, integration and e2e. node scripts/check-docs.mjs passes (23 docs, 227 links, 9 symlinks). repogen --help lists only generate, version, completion and help.

Cross-review

  • Reviewer: openai/gpt-6.1-sol. Coder: github-copilot/claude-sonnet-5.5, with small edits by the parent agent (Lucilla).
  • Base and merge-base: 0aa4d6892cfa22b212c7023796d1023649e60e90.
  • Initial review at 633d80b: Not ready, with 2 findings, and I accepted both.
    • The README and the docs index named the removed commands. They now say "the former production commands" and link to ADR-0015.
    • The test case "Release.gpg for other data" did not check the detached signature. It now uses an armored detached signature over other bytes, and it expects the detached-signature error.
  • Re-review at b86fd49: Ready, Blocking: none.
  • Scope: all 18 substantive added or modified files (1,076 changed lines). The reviewer checked the 38 deleted paths as a list for retained dependencies. The generated go.sum was excluded from the line-by-line review.

Proposed release version: v0.6.0

Repogen is 0.x. By SemVer §4 and the usual 0.x practice, a minor bump carries breaking changes. This PR removes 2 CLI commands that shipped in v0.5.2: validate-production and reconcile-production. A patch release (v0.5.3) would hide that break. A v1.0.0 would claim a stable API, which nobody has decided.

main also carries #67, a behavior change that is not released yet: generate requires --codename for Debian. v0.6.0 releases both changes under 1 minor bump.

No known consumer is affected. snosi pins publish-to-r2 and the binary at v0.4.1. apt-publisher and omarchy-apps do not use repogen.

Brian: please decide

  1. The removal decision. Do you accept ADR-0015? If yes, change its Status to Accepted before merge, or tell me and I will.
  2. The release version. I propose v0.6.0, for the reason above.

Delete the validate-production and reconcile-production commands and the
code behind them: internal/production, internal/intake,
internal/objectstore, the Debian production restore/transaction/contract,
recovery writer, local production generation and SharedPool, the
reconcile-production action, its input validator, the production/
templates and the production R2 spec. Core ADR-0055 made
frostyard/apt-publisher the only Debian writer; nothing calls this path.

generate keeps its prior-signature check, moved to
internal/generator/deb/release_signature.go with its own tests.
generate and the publish-to-r2 action do not change.

BREAKING CHANGE: the validate-production and reconcile-production
commands (shipped in v0.5.2) are removed.
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 82.97872% with 8 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/generator/deb/release_signature.go 82.22% 6 Missing and 2 partials ⚠️

📢 Thoughts on this report? Let us know!

…ames from index notes

Address cross-review findings on #76.
@frostyard-machines
frostyard-machines marked this pull request as ready for review October 24, 2026 03:27
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Oct 24, 2026
@bketelsen
bketelsen merged commit 12eb6bf into main Oct 24, 2026
3 checks passed
@frostyard-machines
frostyard-machines deleted the lucilla/remove-production-path branch October 24, 2026 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants