Skip to content

Add SDK GA canary and CodeQL gates#9

Open
jaberjaber23 wants to merge 30 commits into
mainfrom
hardening/sdk-ga-canary-gates
Open

Add SDK GA canary and CodeQL gates#9
jaberjaber23 wants to merge 30 commits into
mainfrom
hardening/sdk-ga-canary-gates

Conversation

@jaberjaber23

Copy link
Copy Markdown
Member

Summary

  • add artifact-backed TypeScript and Python live-canary matrix for SDK GA promotion
  • add clean install/import verification for local artifacts and registry packages
  • enforce clean-install and CodeQL security gates in CI/publish policy checks
  • document Python sync-only behavior and strict multimodal promotion requirements

Verification

  • pnpm --dir typescript install --frozen-lockfile
  • pnpm --dir typescript exec tsc -p tsconfig.json --noEmit
  • pnpm --dir typescript test
  • pnpm --dir typescript build
  • pnpm --dir typescript pack
  • node scripts/verify-npm-package.mjs typescript/runinfra-sdk-*.tgz
  • python -m pip install -r python/requirements-dev.txt
  • python -m pytest python/tests -q
  • python -m build python
  • python scripts/verify-python-package.py python/dist
  • python -m twine check python/dist/*
  • node scripts/verify-clean-installs.mjs --package both --mode artifact
  • node scripts/verify-clean-installs.mjs --package both --mode registry
  • node scripts/run-sdk-live-canaries.mjs --package-source artifact --report artifacts/sdk/non-strict-post-codeql.json
  • node scripts/verify-workflow-policy.mjs
  • node scripts/verify-version-sync.mjs
  • quoted/unquoted unpinned-action mutation checks against verify-workflow-policy

Not GA Yet

Strict live canaries still require production canary keys, deployed models, pipeline key, deterministic ASR fixture, idempotency replay evidence, green CI/CodeQL on this PR, and full multimodal real endpoint proof before any GA publish.

Add artifact-backed TypeScript and Python live canaries, clean install/import verification, stricter package workflow enforcement, and GA documentation for multimodal SDK promotion.

Verified locally: TypeScript typecheck/build/test/pack/package scan; Python tests/build/twine/package scan; artifact and registry clean installs; artifact canary non-strict/strict-missing-env behavior; independent second-opinion review passed for this checkpoint.
Add a SHA-pinned CodeQL workflow for TypeScript and Python, expose the status badge, and extend workflow policy checks so quoted, unquoted, and shorthand action uses must stay SHA-pinned.

Verified locally: verify-workflow-policy, quoted/unquoted unpinned-action mutation checks, TS typecheck/test, Python tests, version sync, code scanning alert query showing zero open high/critical alerts before this workflow lands.
Remove the advanced CodeQL workflow because GitHub default CodeQL setup is enabled and rejects advanced SARIF uploads in this repo.

Keep workflow policy checks for OIDC trusted publishing, SHA-pinned actions, clean package installs, branch-locked publish jobs, and no long-lived registry tokens. Document the default CodeQL gate and add the Agent 4 SDK production-stability goal.
Add installed-artifact canary rows for local webhook verification helpers and block combined report writes when secret-shaped values, local paths, or source-map markers appear.

Fix Python request-id extraction to be header-case-insensitive, preserve split UTF-8 SSE tokens with an incremental decoder, and require deterministic voice pipeline audio plus expected text instead of generated silence.
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