Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
5a6fa18
feat(core): explain() — evaluation reason, matched rule, bucket and p…
akosidencio Nov 21, 2026
d460535
feat(node): getDetails() and onStatusChange()
akosidencio Nov 21, 2026
a7cbf82
feat(node-integrations): Express, Fastify and NestJS adapters for @ch…
akosidencio Nov 21, 2026
4a7bbda
feat(openfeature): @checkgate/openfeature-provider
akosidencio Nov 21, 2026
c418988
test(node-integrations): real-addon suite per framework against the f…
akosidencio Nov 21, 2026
cc9ceb4
docs(node-integrations): runnable Express, Fastify and NestJS examples
akosidencio Nov 21, 2026
662a151
fix(node-integrations): every root export visible to ESM; bound ready…
akosidencio Nov 21, 2026
03232ff
test(node-integrations): run the NestJS suite on the Fastify platform…
akosidencio Nov 21, 2026
88394ae
ci: node-integrations job on Node 22, 24 and 26
akosidencio Nov 21, 2026
0404145
docs: Express, Fastify and NestJS guide for @checkgate/node-integrations
akosidencio Nov 21, 2026
795a0cd
chore: bump-version.sh covers sdks/node-integrations
akosidencio Nov 21, 2026
45e779f
feat: evaluation playground (server endpoint + dashboard page)
akosidencio Nov 21, 2026
d7a4211
feat(core): FlagStore::independent_copy, len, is_empty
akosidencio Nov 21, 2026
673939f
feat(sdk-python): PyO3 extension module checkgate._core (evaluation e…
akosidencio Nov 21, 2026
a607a2a
feat(sdk-python): CheckgateClient with SSE sync, poll fallback and of…
akosidencio Nov 21, 2026
9158bd9
test(conformance): run the SSE fault suite and the live suite against…
akosidencio Nov 21, 2026
e3158e7
docs(sdk-python): FastAPI, Flask and Django examples; public SDK page
akosidencio Nov 21, 2026
d0bc1aa
ci(sdk-python): test job on 3.11 and 3.13; verify-only wheel builds
akosidencio Nov 21, 2026
742cfd8
docs(sdk-python): platform tables say what each platform is tested by
akosidencio Nov 21, 2026
118eeba
feat(node): getHealth() diagnostics (schema 1); OpenFeature serves th…
akosidencio Nov 21, 2026
d493231
feat(server): propose-scoped personal access tokens for AI agents
akosidencio Nov 21, 2026
08b13c5
docs: SDK diagnostics page (local health, and what the server can and…
akosidencio Nov 21, 2026
e87721f
feat(mcp): @checkgate/mcp-server — let AI agents read flags and propo…
akosidencio Nov 21, 2026
1cf9822
test(sdk-python): portable peer-close check in the fake server (no MS…
akosidencio Nov 21, 2026
39d80d2
feat(server): server-observed SDK diagnostics — delivered revisions, …
akosidencio Nov 21, 2026
49f586c
Merge branch 'feat/v0.2.0-core-explain' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
aab32be
Merge branch 'feat/v0.2.0-openfeature' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
d119d99
Merge branch 'feat/v0.2.0-sdk-diagnostics' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
79f6b16
Merge branch 'feat/v0.2.0-python-sdk' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
0c3e289
Merge branch 'feat/v0.2.0-evaluation-playground' into integration/v0.…
akosidencio Nov 21, 2026
b9e5871
Merge branch 'feat/v0.2.0-server-diagnostics' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
251d679
Merge branch 'feat/v0.2.0-backend-integrations' into integration/v0.2…
akosidencio Nov 21, 2026
b57c173
Merge branch 'feat/v0.2.0-agent-mcp' into integration/v0.2.0-rc
akosidencio Nov 21, 2026
1436d08
feat: five-minute quickstart — one script, sample flag, Node.js and P…
akosidencio Nov 21, 2026
168d9d7
Merge pull request #50 from checkgate-sh/feat/v0.2.0-core-explain
akosidencio Nov 21, 2026
6ad7b37
fix(sdk-python): no intra-doc link from public crate docs to the priv…
akosidencio Nov 21, 2026
826fb8c
Merge pull request #51 from checkgate-sh/feat/v0.2.0-openfeature
akosidencio Nov 21, 2026
3842562
Merge pull request #52 from checkgate-sh/feat/v0.2.0-sdk-diagnostics
akosidencio Nov 21, 2026
4b927a6
Merge branch 'feat/v0.2.0-developer-adoption' into feat/v0.2.0-python…
akosidencio Nov 21, 2026
75f6187
Merge pull request #53 from checkgate-sh/feat/v0.2.0-python-sdk
akosidencio Nov 21, 2026
f20f789
Merge pull request #54 from checkgate-sh/feat/v0.2.0-evaluation-playg…
akosidencio Nov 21, 2026
e86c189
Merge pull request #55 from checkgate-sh/feat/v0.2.0-server-diagnostics
akosidencio Nov 21, 2026
9fe6474
Merge branch 'feat/v0.2.0-developer-adoption' into feat/v0.2.0-backen…
akosidencio Nov 21, 2026
d49c126
Merge pull request #56 from checkgate-sh/feat/v0.2.0-backend-integrat…
akosidencio Nov 21, 2026
e760ad5
fix(docker): copy the Python SDK crate's manifest so cargo can load t…
akosidencio Nov 21, 2026
57dde7c
Merge pull request #57 from checkgate-sh/feat/v0.2.0-agent-mcp
akosidencio Nov 21, 2026
a77862b
docs: restore the Python SDK sidebar entry (dropped by the #53 update…
akosidencio Nov 21, 2026
2e7fd51
Merge branch 'feat/v0.2.0-developer-adoption' into feat/v0.2.0-quicks…
akosidencio Nov 21, 2026
bd6aa5c
Merge pull request #58 from checkgate-sh/feat/v0.2.0-quickstart
akosidencio Nov 21, 2026
459cbd2
Merge pull request #60 from checkgate-sh/fix/v0.2.0-docker-python-man…
akosidencio Nov 21, 2026
ecda48c
ci, docs: restore what the phase merges' conflict resolutions dropped
akosidencio Nov 21, 2026
42d5dd6
Merge pull request #61 from checkgate-sh/fix/v0.2.0-merge-resolutions
akosidencio Nov 21, 2026
2b6c2a2
fix: track the MCP server's bin entry point; give the live e2e job it…
akosidencio Nov 21, 2026
4018b73
ci: build and test the Python wheel natively on every supported platform
akosidencio Nov 21, 2026
e201d61
Merge pull request #62 from checkgate-sh/fix/v0.2.0-live-e2e-python
akosidencio Nov 21, 2026
2adeccd
Merge pull request #63 from checkgate-sh/ci/v0.2.0-python-native-wheels
akosidencio Nov 21, 2026
e8f20f0
ci(python-wheels): install the pinned toolchain with rustup show
akosidencio Nov 21, 2026
0a9887f
test(sdk-python): read the shared vectors as UTF-8 (Windows)
akosidencio Nov 21, 2026
02d3e1d
Merge pull request #64 from checkgate-sh/ci/v0.2.0-wheels-windows-too…
akosidencio Nov 21, 2026
97fa0c0
fix(security): propose tokens cannot create flags (review F-01, high)
akosidencio Nov 21, 2026
66cf1cf
Merge pull request #65 from checkgate-sh/fix/v0.2.0-f01-propose-no-cr…
akosidencio Nov 21, 2026
de79d55
fix(sdk-python): sync thread survives huge timers; a bad cache never …
akosidencio Nov 21, 2026
1ac38cb
fix(node, openfeature): review F-05, F-09, F-10, F-11, F-13
akosidencio Nov 21, 2026
0ce655f
Merge pull request #66 from checkgate-sh/fix/v0.2.0-python-review
akosidencio Nov 21, 2026
4a033e8
Merge pull request #67 from checkgate-sh/fix/v0.2.0-node-openfeature-…
akosidencio Nov 21, 2026
59b0ece
release, docs: upgrade/rollback rules for propose tokens; package the…
akosidencio Nov 21, 2026
feac71f
Merge pull request #68 from checkgate-sh/fix/v0.2.0-release-docs
akosidencio Nov 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 201 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ jobs:
cargo test -p server --test security_remediation -- --nocapture
cargo test -p server --test integration_test_message -- --nocapture
cargo test -p server --test analytics_hardening -- --nocapture
cargo test -p server --test propose_scope -- --nocapture

# The server's own tests that need PostgreSQL and Redis (they skip in
# the Rust tests job, which has neither): the scheduler, analytics
Expand All @@ -217,6 +218,28 @@ jobs:
- name: SSE fault-injection tests
run: cargo test -p server --test sse_faults -- --nocapture

# @checkgate/mcp-server against the real server binary built above: an
# agent with a propose token proposes, the server queues it, a different
# person approves, the agent reads it back. Also prints the measured
# MCP-over-stdio overhead versus direct HTTP.
- uses: actions/setup-node@v5
with:
node-version: 22

- name: MCP server end-to-end test
working-directory: integrations/mcp-server
env:
PGPASSWORD: postgres
CHECKGATE_E2E_SERVER_BIN: ${{ github.workspace }}/target/debug/server
CHECKGATE_E2E_DATABASE_URL: postgres://postgres:postgres@localhost:5432/checkgate_mcp_e2e
CHECKGATE_E2E_REDIS_URL: redis://localhost:6379
CHECKGATE_REQUIRE_MCP_E2E: "1"
run: |
npm ci --ignore-scripts
test -x "$CHECKGATE_E2E_SERVER_BIN" || cargo build -p server
psql -h localhost -U postgres -c 'DROP DATABASE IF EXISTS checkgate_mcp_e2e' -c 'CREATE DATABASE checkgate_mcp_e2e'
node --test test/e2e.test.js

- name: Upload reliability artifacts
if: always()
uses: actions/upload-artifact@v6
Expand Down Expand Up @@ -314,6 +337,19 @@ jobs:
with:
channel: stable

# The Python SDK joins the live suite: scripts/sdk-live-e2e.sh expects
# the package installed in sdks/python/.venv.
- uses: actions/setup-python@v6
with:
python-version: "3.11"

- name: Python SDK for the live suite
run: |
python -m venv sdks/python/.venv
sdks/python/.venv/bin/pip install "maturin>=1.9.4,<2"
sdks/python/.venv/bin/maturin build --release --manifest-path sdks/python/Cargo.toml --out dist-python
sdks/python/.venv/bin/pip install dist-python/*.whl

- name: Live end-to-end, every SDK
env:
PGPASSWORD: postgres
Expand Down Expand Up @@ -420,6 +456,33 @@ jobs:
test "$code" -eq 3
node -e 'const r = JSON.parse(require("fs").readFileSync(process.argv[1], "utf8")); if (r.status !== "out_of_date" || r.findings[0].id !== "typegen.out_of_date") process.exit(1)' "$RUNNER_TEMP/report.json"

# ---------------------------------------------------------------------------
# MCP server — @checkgate/mcp-server unit, schema and stdio lifecycle tests
# against a fake API (the e2e run against a real server is in
# server-integration).
# ---------------------------------------------------------------------------
mcp-server:
name: MCP server tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- uses: actions/setup-node@v5
with:
node-version: 22

- name: Install dependencies (lockfile, no install scripts)
working-directory: integrations/mcp-server
run: npm ci --ignore-scripts

- name: Run tests
working-directory: integrations/mcp-server
run: npm test

- name: Audit production dependencies
working-directory: integrations/mcp-server
run: npm audit --omit=dev --audit-level=high

# ---------------------------------------------------------------------------
# Edge — @checkgate/edge evaluator tests (zero deps, Node's built-in runner)
# ---------------------------------------------------------------------------
Expand Down Expand Up @@ -477,6 +540,90 @@ jobs:
working-directory: sdks/nodejs
run: node --test

# ---------------------------------------------------------------------------
# Node SDK with the REAL native engine (sdk-node above uses the stand-in):
# the shared evaluation vectors, and the OpenFeature provider against the
# real OpenFeature SDK and a real SSE stream. Every Node.js line in LTS
# (22 and 24 maintenance, 26 active); 20 reached end of life on 2026-04-30.
# ---------------------------------------------------------------------------
sdk-node-native:
name: Node SDK (native) + OpenFeature provider (Node ${{ matrix.node }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node: [22, 24, 26]
steps:
- uses: actions/checkout@v5

- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2

- name: Build the native addon
working-directory: sdks/nodejs
run: npm ci && npm run build:debug

- name: Node SDK tests (real engine, shared vectors)
working-directory: sdks/nodejs
run: node --test

- name: OpenFeature provider — install, typecheck, test
working-directory: sdks/openfeature-provider
run: npm ci && npm run typecheck && npm test

# ---------------------------------------------------------------------------
# Node framework integrations — @checkgate/node-integrations (Express,
# Fastify, NestJS) over the REAL @checkgate/node and its native addon, with
# sdks/conformance/fault-server.mjs as the Checkgate server. Every Node.js
# line in LTS (22 and 24 maintenance, 26 active); 20 reached end of life on
# 2026-04-30.
# ---------------------------------------------------------------------------
node-integrations:
name: Node integrations (Node ${{ matrix.node }})
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
node: [22, 24, 26]
steps:
- uses: actions/checkout@v5

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2

- uses: actions/setup-node@v5
with:
node-version: ${{ matrix.node }}

- name: Build the Node SDK native addon
working-directory: sdks/nodejs
run: |
npm ci
npm run build:debug

- name: Install dependencies
working-directory: sdks/node-integrations
run: npm ci

- name: Type definitions compile
working-directory: sdks/node-integrations
run: npm run typecheck

- name: Run tests (adapters, examples, core)
working-directory: sdks/node-integrations
run: npm test

# ---------------------------------------------------------------------------
# Web + React Native SDKs — client-logic unit tests (vitest; the WASM core is
# stubbed for web, the JSI bridge faked for RN — no native/WASM build needed)
Expand Down Expand Up @@ -582,6 +729,60 @@ jobs:
path: conformance-traces
retention-days: 30

sdk-python:
name: Python SDK tests (${{ matrix.python }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# The wheel is abi3 (CPython 3.11+): test the oldest and the newest.
python: ["3.11", "3.13"]
steps:
- uses: actions/checkout@v5

- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable

- name: Cache Rust build artifacts
uses: Swatinem/rust-cache@v2

- uses: actions/setup-node@v5
with:
node-version: 22

# Build the release wheel and test the installed wheel, not the source
# tree: what users install is what is tested.
- name: Build and install the wheel
run: |
python -m venv sdks/python/.venv
sdks/python/.venv/bin/pip install "maturin>=1.9.4,<2" pytest
sdks/python/.venv/bin/maturin build --release --manifest-path sdks/python/Cargo.toml --out dist-python
sdks/python/.venv/bin/pip install dist-python/*.whl

# Unit tests, the shared evaluation vectors, the sync state machine
# against a local fake server, concurrency and fork safety.
- name: Tests
run: sdks/python/.venv/bin/python -m pytest sdks/python/tests -q

# The shared SSE fault-injection suite (sdks/conformance), driving the
# Python client with the real Rust engine.
- name: SSE fault injection (CI seeds)
env:
PYTHON: ${{ github.workspace }}/sdks/python/.venv/bin/python
CONFORMANCE_TRACE_DIR: ${{ github.workspace }}/conformance-traces
run: node --test --test-concurrency=1 sdks/conformance/python.mjs

- uses: actions/upload-artifact@v6
if: failure()
with:
name: conformance-traces-python-${{ matrix.python }}
path: conformance-traces
retention-days: 30

# ---------------------------------------------------------------------------
# Go integrations — shared client, Terraform provider, Kubernetes operator
# ---------------------------------------------------------------------------
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Python wheels (native platforms)

# Builds the Python SDK wheel ON each supported platform and runs the test
# suite against the installed wheel there — native testing, not
# cross-compilation. The release workflow builds the publishable wheels
# (manylinux, cross-built where needed) but only on a version tag; this is
# the evidence that each platform actually works before a release.
# Runs when the engine or the Python SDK changes, or by hand.

on:
pull_request:
branches: [main, dev, "feat/**"]
paths:
- "core/**"
- "sdks/python/**"
- "sdks/conformance/vectors/**"
- ".github/workflows/python-wheels.yml"
workflow_dispatch:

permissions:
contents: read

jobs:
native:
name: ${{ matrix.platform }} (Python ${{ matrix.python }})
runs-on: ${{ matrix.os }}
timeout-minutes: 40
strategy:
fail-fast: false
matrix:
include:
- { platform: linux-x86_64, os: ubuntu-latest, python: "3.11" }
- { platform: linux-x86_64, os: ubuntu-latest, python: "3.13" }
- { platform: linux-aarch64, os: ubuntu-24.04-arm, python: "3.11" }
- { platform: macos-x86_64, os: macos-15-intel, python: "3.11" }
- { platform: macos-arm64, os: macos-latest, python: "3.11" }
- { platform: macos-arm64, os: macos-latest, python: "3.13" }
- { platform: windows-x86_64, os: windows-latest, python: "3.11" }
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v5

- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python }}

# The toolchain rust-toolchain.toml pins, as release.yml installs it:
# installing `stable` first and letting cargo fetch the pin conflicts on
# Windows runners (clippy's cargo-clippy.exe already present).
- name: Install Rust toolchain
run: rustup show

- name: Build the wheel on this platform
run: |
python -m venv .venv-build
if [ -d .venv-build/Scripts ]; then BIN=.venv-build/Scripts; else BIN=.venv-build/bin; fi
"$BIN/pip" install "maturin>=1.9.4,<2"
"$BIN/maturin" build --release --manifest-path sdks/python/Cargo.toml --out dist-python
ls -l dist-python

- name: Install the wheel in a clean environment and test it
run: |
python -m venv .venv-test
if [ -d .venv-test/Scripts ]; then BIN=.venv-test/Scripts; else BIN=.venv-test/bin; fi
"$BIN/pip" install pytest dist-python/*.whl
# Run from outside the source tree so the installed wheel is imported.
cd "$RUNNER_TEMP"
"$GITHUB_WORKSPACE/$BIN/python" -c "import checkgate, sys; print(checkgate.__file__, sys.version)"
"$GITHUB_WORKSPACE/$BIN/python" -m pytest "$GITHUB_WORKSPACE/sdks/python/tests" -q
Loading
Loading