Skip to content

ci: gate repositories on released okf binaries - #24

Merged
leoafarias merged 1 commit into
mainfrom
feature/14-ci-gate
Aug 21, 2026
Merged

ci: gate repositories on released okf binaries#24
leoafarias merged 1 commit into
mainfrom
feature/14-ci-gate

Conversation

@chrishiguto

@chrishiguto chrishiguto commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Why

Consumers need an OKF Spec conformance gate without installing Dart or reimplementing the engine's exit policy.

What

Tagged releases validate the exact tag commit, compile okf-linux-x64 and okf-macos-arm64, and publish them only when immutable releases are enabled. The installer verifies GitHub's signed release-asset attestation before making a downloaded engine executable.

The root composite action infers its explicitly pinned engine tag from the action ref (or accepts an override), downloads the matching binary, and executes one okf validate invocation. Its process exit status is the verdict; the action parses no report and computes no exit code.

A consumer needs only checkout plus uses: conceptadev/okf@v0.2.0. Bundle defaults to the repository root; optional strict mode passes the canonical --strict flag.

Workflow actions use their current releases pinned to full commit SHAs. Weekly Dependabot updates keep those immutable pins and version comments current through reviewable PRs, without runtime tag drift.

Reviewer's guide

Start with action.yml, .github/workflows/release.yml, tool/ci/install-engine.sh, and test/ci_gate_test.dart. This PR builds on the merged Spec validation work and is independent of the graph/MCP stack.

Testing

  • Formatting and fatal-info analysis are clean.
  • All 109 tests pass, including action/release invariant tests.
  • Bash syntax, ShellCheck, and actionlint are clean.
  • dart pub publish --dry-run reports zero warnings and excludes infrastructure-only tests.
  • dart compile exe produces a working okf 0.2.0 binary.

Repository immutable releases are enabled for all future releases.

Links

Fixes #14.

Publish pinned release binaries and provide a thin composite action that delegates validation and exit policy to the okf executable.

Fixes #14

Co-authored-by: Christiano Higuto <christiano.higuto.c@conceptatech.com>
@leoafarias
leoafarias merged commit a051e9c into main Aug 21, 2026
5 checks passed
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.

CI gate: release binaries and composite GitHub Action

2 participants