Skip to content

feat(release): install from the released installer, with provenance - #118

Merged
TusanHomichi merged 5 commits into
mainfrom
claude/95-pinned-installer
Oct 15, 2026
Merged

TusanHomichi merged 5 commits into
mainfrom
claude/95-pinned-installer

Conversation

@TusanHomichi

@TusanHomichi TusanHomichi commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Primary Issue

Closes #95

Problem And Outcome

The documented one-line install piped install/install.sh from main, so every merge reached new installations before any release. The archive's checksum came from the same place as the archive, so it caught corruption but not a compromised origin.

After this PR:

  • the one-liner runs the installer published with the release, stamped with that release's version so it installs that release's archives;
  • every release asset, checksums included, carries GitHub build provenance;
  • ADR 0026 records why there is no long-lived signing key yet.

Changes

  • Release workflow (tags only):
    • publishes install.sh, stamped with RELEASED_VERSION="<tag>", and install.sh.sha256 as release assets; the release fails if the stamp didn't land;
    • attests every archive, the installer, and their .sha256 files with actions/attest-build-provenance, pinned by SHA (id-token: write, attestations: write);
    • the release notes show gh attestation verify.
  • install/install.sh: the default version comes from RELEASED_VERSION. Empty in the repository means the latest release; --version still overrides it.
  • Every documented command uses https://github.com/FieldmouseWorks/consolebook/releases/latest/download/install.sh: README, install guide, the setup interface, and the release notes.
  • Guards (rung 2), in tests/install_command.rs:
    • fails if any document, the interface, or a workflow points the command at main again;
    • fails if the line the release stamps changes.
  • ADR 0026: amends ADR 0023 and is indexed in docs/development.md.
  • CHANGELOG (Changed).

⚠️ Merge order

This merges immediately before the 0.2.0 release PR. releases/latest/download/install.sh resolves only once v0.2.0 is published, so the one-liner 404s until the tag is pushed and the release workflow publishes.

Verification

  • Full local proof on 60d58eb: passed, all 7 gates. The browser suite was 61/0/0. Receipt .proof/20261015T033454Z-60d58ebcfd42/receipt.json, sha256 f51875e66fa922a7906906a20eceebd80f5b235df219dee61ab0b80456b38b5c.
  • CI on 60d58eb: fmt-clippy-test, build-x86_64 (install and upgrade on a systemd runner), and build-aarch64 all passed.
  • The stamping step was simulated locally with GITHUB_REF_NAME=v0.2.0: it stamped RELEASED_VERSION="0.2.0", the grep -qx passed, sh -n passed, and shellcheck is clean.
  • Codex: two findings, both fixed (pinning the archive to the installer's release; attesting the checksums). The re-review found no issues.
  • Still to prove on the tag: the asset upload and attestations, then an install from the published one-liner and gh attestation verify. These will be recorded on install: pin the one-line installer to a release and decide on archive signing #95.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts


Generated by Claude Code

The one-line install piped install.sh from main, so every merge reached
new installations before any release, and the archive's checksum came
from the same place as the archive. The release workflow now publishes
install.sh and its checksum as release assets and attests every archive
and the installer with GitHub build provenance; the documented command
fetches releases/latest/download/install.sh. ADR 0026 records the
decision, including why there is no long-lived signing key yet.

A test fails if the README, the guide, the interface, or a workflow
points the command at main again; putting one main URL back fails it.

Closes #95

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01TsvZjbz8dTRM8A1NqAP5ts
…aller

# Conflicts:
#	CHANGELOG.md
#	docs/decisions/0023-linux-installation-lifecycle.md

Copy link
Copy Markdown
Member Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-15T03:52:17.473460Z 60d58eb Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c43a9448ba

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread README.md Resolved
Comment thread .github/workflows/release.yml Resolved

Copy link
Copy Markdown
Member Author

@codex review


Generated by Claude Code

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 9a4a091c14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@TusanHomichi
TusanHomichi marked this pull request as ready for review October 15, 2026 03:45
@TusanHomichi
TusanHomichi merged commit 8befd2b into main Oct 15, 2026
4 checks passed
@TusanHomichi
TusanHomichi deleted the claude/95-pinned-installer branch October 15, 2026 03:46
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.

install: pin the one-line installer to a release and decide on archive signing

2 participants