Skip to content

Gate releases on clean Linux and macOS candidate artifact smokes #97

Closed

Description

@ElbertePlinio

Goal

Make the Pickforge release workflow prove the exact candidate artifacts before any publish step. Cover a clean Linux container and the Apple silicon macOS Rust integration path.

Current risk

release.yml builds Rust assets, then the publish job tests the source tree and publishes npm before any built/downloaded artifact is executed. The alpha.1 macOS arm64 binary was never run. The clean Linux smoke was a local substitute rather than a real container gate. The published checklist is pinned to alpha.1 and first-publish steps.

Linux candidate smoke

  • Pack the npm CLI from the candidate tree without registry publication
  • Download/use the exact Rust asset produced by the workflow
  • In a clean Flutter container, run the installer against only those candidate artifacts
  • Verify all three versions, Flutter project detection, doctor, init, idempotency, config isolation, and a real Dart MCP handshake
  • Prove the project tree contains only expected Flutter files and no Pickforge state/config pollution
  • Upload logs and generated evidence as workflow artifacts

macOS arm64 runtime smoke

  • Assert the runner is Apple silicon (uname -m = arm64)
  • Download and checksum the exact candidate macOS asset
  • Execute pickforge --version
  • Use a disposable real Flutter project to run doctor, transactional/idempotent init, a real Dart MCP handshake, and evidence recording
  • Use isolated HOME and PICKFORGE_HOME; verify no real runner-home config writes
  • Upload logs/evidence
  • Record and enforce the stable signing/notarization policy

Release ordering and docs

  • Publishing jobs depend on both runtime smokes
  • A dry-run dispatch builds and executes all gates but cannot publish
  • The release checklist is version-parameterized and reusable
  • UNRELEASED.md lifecycle does not leave draft instructions or stale “not executed” claims in public notes
  • Full CI/security/dependency/complexity gates pass

Blocks beta.1 and stable in #89. Refs #89.

Activity

  1. added
    enhancement
    on Sep 4, 2026
  2. ElbertePlinio commented on Sep 4, 2026

    @ElbertePlinio
    MemberAuthor

    PR #99 (open, not merged) implements this: scripts/candidate-smoke.sh plus a reusable candidate-artifacts.yml that packs the npm tarball, builds the Rust assets, and runs the Linux container and Apple silicon smokes before a publish job that is the only job with contents: write/id-token: write.

    Both gates are green on real runners: run 33930949301. The macOS gate downloaded the exact pickforge-macos-arm64 asset, verified its checksum and ad-hoc signature, executed it (pickforge 0.4.0-alpha.1), and ran doctor, dry-run-isolated and idempotent init, a real dart mcp-server handshake (14 tools), and evidence recording under an isolated HOME/PICKFORGE_HOME, with the project tree and the real home unchanged.

    A defect this gate closes: strip invalidates the ad-hoc signature Apple silicon requires, so the alpha.1 macOS asset may never have been executable. The workflow now re-signs, verifies with codesign --verify --strict, and executes the asset before publishing.

    Report and raw evidence: ~/Projects/Boards/pickforge/0.4-release/candidate-smokes/.

    Not done, deliberately: no workflow_dispatch dry run was triggered — a dispatch runs release.yml as it exists on main, which is still the old single job holding write and OIDC permissions, so it would prove nothing about this change while granting publish rights. Checklist step 7 documents how to run it after merge (gh workflow run release.yml --ref main -f confirm=; an empty or non-matching confirm cannot publish).

  3. added a commit that references this issue on Sep 5, 2026
    fc170ea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions