Skip to content

release: 0.1.0-alpha.5 — Python Verdict.allow(), linux-arm64-gnu napi target - #65

Merged
MohammadHaroonAbuomar merged 4 commits into
mainfrom
mhabuomar/alpha5-prep
Aug 7, 2026
Merged

release: 0.1.0-alpha.5 — Python Verdict.allow(), linux-arm64-gnu napi target#65
MohammadHaroonAbuomar merged 4 commits into
mainfrom
mhabuomar/alpha5-prep

Conversation

@MohammadHaroonAbuomar

Copy link
Copy Markdown
Contributor

Prepares and versions the 0.1.0-alpha.5 release.

What

  • Python Verdict.allow() — no-argument trivial-permit constructor sugar, completing cross-SDK parity (Rust Verdict::allow, TS Verdict.allow(), .NET Verdict.Allow, Go AllowVerdict). Test added; Python README example switched to the sugar forms.
  • npm linux-arm64-gnu platform packageaarch64-unknown-linux-gnu added to the napi target set, committed npm/linux-arm64-gnu/ package dir (standard napi-rs layout; the generated loader already resolves it), native build on ubuntu-24.04-arm in the release matrix, publish-time optionalDependencies injection extended. The npm publish loop now fails soft when a never-published package cannot OIDC-publish (trusted publishers cannot be configured pre-first-publish); existing packages still hard-fail.
  • Version bump to 0.1.0-alpha.5 across all manifests, lockfiles and platform package dirs; CHANGELOG folds the Unreleased §12.1 items (docs(spec): admit incremental mediation as a §12.1 exception #64) into the alpha.5 section.

musl targets deliberately not added: the pipeline builds on native runners only and linux-x64-musl does not ship either; a musl pair can land together later.

Verification

  • scripts/check-version-consistency.py — surfaces agree at 0.1.0-alpha.5
  • actionlint (pinned v1.7.12, checksum-verified) — clean
  • ruff format --check / ruff check at the CI-pinned 0.15.21 — clean
  • pytest sdk/python/tests -p no:agent_hooks_ctk — 181 passed, 2 skipped
  • cargo test --locked --workspace --all-features (sdk/rust) — green
  • npm ci && npx tsc (sdk/typescript) — green

Follow-up (release time)

First publish of @responsibleai/agent-hooks-linux-arm64-gnu will warn-and-skip until the package is bootstrapped on npmjs.com and its trusted publisher configured; the release workflow is idempotent and can be rerun after.

Every other SDK exposes a no-argument trivial-permit constructor
(Rust Verdict::allow, TypeScript Verdict.allow(), .NET Verdict.Allow,
Go AllowVerdict); Python offered only the module-level ALLOW constant.
Add the classmethod for cross-SDK naming parity and switch the README
interceptor example to the sugar forms.

Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
Add aarch64-unknown-linux-gnu to the napi target set with a committed
npm/linux-arm64-gnu package dir (standard napi-rs layout; the loader
already resolves it), build it natively on the ubuntu-24.04-arm hosted
runner in the release matrix, and extend the publish-time
optionalDependencies injection plus the publish loop.

A never-published npm package cannot carry a trusted publisher, so its
first OIDC publish fails; the publish loop now fails soft for exactly
that case (warning, run continues) — bootstrap the package, configure
its trusted publisher, and rerun the idempotent workflow.

musl targets stay unshipped: the pipeline builds on native runners
only and linux-x64-musl does not ship either; a musl pair can land
together later.

Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
All four SDK manifests, their lockfiles and the committed npm platform
package dirs move to 0.1.0-alpha.5 (scripts/check-version-consistency
passes). The CHANGELOG folds the Unreleased §12.1 spec items (#64)
into the alpha.5 section alongside Python Verdict.allow() and the new
linux-arm64-gnu napi target.

Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
The generated loader embeds the package version in its
NAPI_RS_ENFORCE_VERSION_CHECK guards; the CI drift gate rebuilds and
diffs it, so the bump must ship the regenerated file. Version strings
are the only change.

Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
@MohammadHaroonAbuomar
MohammadHaroonAbuomar merged commit 6195293 into main Aug 7, 2026
29 checks passed
@MohammadHaroonAbuomar
MohammadHaroonAbuomar deleted the mhabuomar/alpha5-prep branch August 7, 2026 06:17
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.

1 participant