security: multi-arch publish + WS49/WS50 hardening + docs#1
Merged
Conversation
added 2 commits
June 6, 2026 21:26
…S49/WS50) - Repoint SDK to a git source: the dep name was wrong (criteria-adapter-sdk; the distribution is criteria-python-adapter-sdk) and the SDK is not on PyPI. Use [tool.uv.sources] git so it resolves; commit the generated uv.lock. - Multi-arch publish: Nuitka can't cross-compile, so publish.yml now builds each platform on its own native runner (ubuntu x64, ubuntu-24.04-arm, macos-14) and assembles bin/<os>/<arch>/ into one multi-platform signed OCI artifact (was: single binary). - WS49: osv-scanner.toml; NEW ci.yml with blocking osv-scan (scans uv.lock explicitly); make vuln-scan. Tree clean. - WS50: docs/dependency-policy.md (no update bot; uv tooling); deps-report job. - Docs: README security section; SECURITY.md; all-checks gate.
main.py awaited serve(), but the SDK's serve() is synchronous and returns an int exit code, so 'await serve(...)' raised 'object int can't be used in await' and --emit-manifest (used by the publish pipeline) was broken. Call it synchronously and sys.exit() its return code. Async handlers (_run) are still driven by serve().
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hardens the Python adapter starter and unblocks its build.
Unblock + correctness
criteria-adapter-sdk(wrong — the distribution iscriteria-python-adapter-sdk) and isn't on PyPI. Repointed to a git source via[tool.uv.sources];uv lock/uv syncnow resolve, import works, and the generateduv.lockis committed.Multi-arch publishing (req 1)
publish.ymlbuilds each platform on its own native runner (ubuntu-latest,ubuntu-24.04-arm,macos-14) and a final job assemblesbin/<os>/<arch>/into one multi-platform, signed OCI artifact (was: single binary).WS49/WS50
osv-scanner.toml; newci.ymlwith a blockingosv-scan(pinned action) scanninguv.lockexplicitly;make vuln-scan. Tree clean (18 packages).docs/dependency-policy.md(no update bot;uvtooling); non-blockingdeps-report.SECURITY.md;all-checksgate.Test plan
uv lock+uv syncresolve from git;from criteria_adapter_sdk import serveworks