Skip to content

Migrate Python examples to Context Compiler 0.9 API - #62

Merged
rlippmann merged 16 commits into
mainfrom
0.9migrationpython
Aug 8, 2026
Merged

Migrate Python examples to Context Compiler 0.9 API#62
rlippmann merged 16 commits into
mainfrom
0.9migrationpython

Conversation

@rlippmann

@rlippmann rlippmann commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

Migrates the Python example integrations to the Context Compiler 0.9 public API and updates the examples/tests to match the post-checkpoint architecture.

Why

The 0.9 API removed raw state access and continuation/checkpoint semantics. This branch updates examples to use the public engine boundary instead:

  • engine.premise and engine.policies for semantic state access
  • current Decision handling
  • export_json() / import_json() for persistence where persistence is still part of the example
  • directive drafter 0.2.0dev0 integration
  • updated tests that previously asserted removed clarification/continuation behavior

Example metadata

  • Enforcement point: multiple reference integration boundaries (LiteLLM proxy hooks, OpenWebUI integration, tool/authorization examples)
  • Domain: reference integrations and repository migration
  • Technology/runtime: Python examples, FastAPI, LiteLLM, OpenWebUI, directive drafter
  • Example type: repository maintenance / reference integration
  • Does this use directive drafter? should normally be no: Yes, only for examples that explicitly demonstrate drafter integration
  • Does this derive state from model output? must be no for primary examples: No

Checklist

  • Repository scaffolding / governance change
  • One primary enforcement point
  • Explicit authoritative state
  • No model-derived state mutation
  • Adversarial stub or equivalent test
  • Observable runtime behavior change
  • Domain vocabulary is natural
  • Framework is secondary to the enforcement point
  • Docs updated
  • Tests/smoke checks added where practical

Notes

Validation:

  • ./scripts/validate_python.sh
  • 200 passed, 6 skipped (live tests)
  • live integration tests verified after migration

@rlippmann
rlippmann merged commit 5765dfb into main Aug 8, 2026
6 checks passed
@rlippmann
rlippmann deleted the 0.9migrationpython branch August 8, 2026 05:33
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