Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

ContextDB Memory CI

Run a hosted Memory CI suite from any CI shell and fail the job when memory behavior regresses.

Memory CI is Hosted Alpha. This package is 0.1.0a1, the reusable GitHub Action tag is 0.1.0, and there is no availability SLA.

- name: Run ContextDB Memory CI
  uses: atomsai/contextdb-clients@memory-ci-action-v0.1.0
  with:
    token: ${{ secrets.CONTEXTDB_EVAL_TOKEN }}
    project-id: ${{ vars.CONTEXTDB_PROJECT_ID }}
    suite-id: ${{ vars.CONTEXTDB_EVAL_SUITE_ID }}
    upload-artifacts: "true"

The Action pins this package version, writes a safe GitHub summary, and uploads content-free JSON and JUnit exports after every CLI result. See the Action guide and example workflow.

Raw CLI

Use the CLI directly in other CI systems or when you need a custom shell step:

pip install contextdb-memory-ci==0.1.0a1

contextdb-memory-ci run \
  --project-id "$CONTEXTDB_PROJECT_ID" \
  --suite-id "$CONTEXTDB_EVAL_SUITE_ID" \
  --json-output memory-ci.json \
  --junit-output memory-ci.xml

Set CONTEXTDB_EVAL_TOKEN to a cbe_ evaluation token before running the command. Keep the token in a CI secret store. The client sends it only in the Authorization header and never prints it.

The command starts one run, polls to a terminal status, then writes requested safe exports atomically. It exits:

  • 0 for passed plus unchanged
  • 1 for failed behavior or a regression
  • 2 for operational errors, cancellation, timeout, or no baseline

A passed run with no baseline exits 2 by default. Use --allow-no-baseline only when that policy is intentional.

The public client accepts and displays aggregate status, opaque IDs, bounded machine failure codes, and content hashes. It rejects undeclared status fields. It does not receive suite names, queries, assertions, memory content, raw failures, or case details.

When to run Memory CI

  • Before changing an embedding model, retrieval policy, or memory-formation prompt, run the pinned suite and block evidence or action-outcome changes.
  • After adding a source backfill, verify that expected customer context appears without reviving forbidden stale evidence.
  • Before releasing a voice or support agent, confirm the same memory cases still produce the expected act, ask, or abstain result.

Run and export retention can be bounded, and service failures exit 2 rather than being reported as behavioral regressions.

Frequently asked questions

Does the CLI receive customer memory or test queries?

No. Polling returns aggregate status and opaque IDs. JSON and JUnit exports are content-free. The CLI rejects response fields outside the published contract.

Which exit code should block a pull request?

Exit 1 means observed memory behavior failed or regressed. Exit 2 means the check could not make a behavioral determination, so fail the job and inspect the operational error separately.

What happens when a suite has no baseline?

A passing run exits 2 by default. Pin a successful baseline in ContextDB, or use --allow-no-baseline only for an intentional first-run workflow.

Is the evaluation token the same as a project API key?

No. cbe_ tokens are project-bound automation credentials limited to Memory CI run and export routes. Keep them in CI secret storage.

Apache-2.0. ContextDB trademarks are not licensed by Apache-2.0.

Metadata

Release files for contextdb-memory-ci 0.1.0a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for contextdb-memory-ci 0.1.0a1
File Size Uploaded
contextdb_memory_ci-0.1.0a1.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for contextdb-memory-ci 0.1.0a1
File Interpreter ABI Platform
contextdb_memory_ci-0.1.0a1-py3-none-any.whl Python 3 none any Details

Total release size: 48.9 kB

Release files / contextdb_memory_ci-0.1.0a1.tar.gz

Download URL contextdb_memory_ci-0.1.0a1.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cc3fdea3f4b0bf0393ca0b57e3b7e2f14d655c736dbcba4d08f29bdd067f3380
BLAKE2b-256 checksum
How to use checksums
e9f97002fa8b242d26477bf69e30181a32193cad499b14164ce614fb7c16f484
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release files / contextdb_memory_ci-0.1.0a1-py3-none-any.whl

Download URL contextdb_memory_ci-0.1.0a1-py3-none-any.whl
Size 23.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d2721149db093688e65650d2c4a49012d46346950f89ab0d01a30acead35f1fb
BLAKE2b-256 checksum
How to use checksums
65d5e2c76038f399c3747c347a78b64729c0a101078640f9b7076d19b8f7619a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page