Skip to content

feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI - #316

Merged
AmitoVrito merged 3 commits into
mainfrom
feat/v1.2.0
Mar 20, 2026
Merged

AmitoVrito merged 3 commits into
mainfrom
feat/v1.2.0

Conversation

@AmitoVrito

Copy link
Copy Markdown
Collaborator

Summary

  • synapsekit serve — one-command FastAPI deployment with auto-detection for RAG, Graph, and Agent apps
  • synapsekit test — eval CLI that discovers @eval_case-decorated functions, enforces thresholds, CI-friendly exit codes
  • CostTracker — hierarchical cost attribution with scope context manager and COST_TABLE lookup
  • BudgetGuard — per-request/per-user/daily spending limits with circuit breaker (CLOSED → OPEN → HALF_OPEN)
  • @eval_case — decorator for eval test cases with min_score, max_cost_usd, max_latency_ms bounds
  • PromptHub — local versioned prompt registry (~/.synapsekit/prompts/)
  • PluginRegistry — entry-point-based plugin system (synapsekit.plugins group)
  • RedisCheckpointer — Redis graph checkpoint backend with optional TTL
  • PostgresCheckpointer — PostgreSQL graph checkpoint backend with UPSERT + JSONB

New dependencies (optional)

  • serve = ["fastapi>=0.110", "uvicorn[standard]>=0.29"]
  • postgres = ["psycopg[binary]>=3.1"]

Test plan

  • 68 new unit tests in test_v120_features.py (all passing)
  • 18 new integration tests in test_v120_integration.py (all passing)
  • Full suite: 1127 passed (6 pre-existing version assertion failures from older test files)
  • Import verification: from synapsekit import CostTracker, BudgetGuard, eval_case, PromptHub, PluginRegistry, RedisCheckpointer, PostgresCheckpointer

CLI:
- `synapsekit serve` — one-command FastAPI deployment with auto-detection
- `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes

Cost Intelligence:
- `CostTracker` — hierarchical cost attribution with scope context manager
- `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker

Evaluation:
- `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds

Prompts & Plugins:
- `PromptHub` — local versioned prompt registry
- `PluginRegistry` — entry-point-based plugin system

Graph Checkpointers:
- `RedisCheckpointer` — Redis checkpoint backend with optional TTL
- `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT

1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers
- Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059
- Rename BudgetExceeded → BudgetExceededError (N818)
- Fix PromptHub.list/versions return type annotations with builtins.list
- Simplify PluginRegistry to use entry_points(group=...) directly
- Update plugin tests to match new entry_points API
- Remove unused custom AsyncMock class from tests
- Clean up integration test imports
- Run ruff format on all files
- Update version assertions in old test files (1.1.0 → 1.2.0)
- Add psycopg to deptry DEP002 ignore (lazy import)
- Fix plugin test mocks to match entry_points(group=...) API
@AmitoVrito
AmitoVrito merged commit dc03fa2 into main Mar 20, 2026
4 checks passed
@AmitoVrito
AmitoVrito deleted the feat/v1.2.0 branch March 20, 2026 21:21
AmitoVrito added a commit that referenced this pull request Mar 24, 2026
* feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI

CLI:
- `synapsekit serve` — one-command FastAPI deployment with auto-detection
- `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes

Cost Intelligence:
- `CostTracker` — hierarchical cost attribution with scope context manager
- `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker

Evaluation:
- `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds

Prompts & Plugins:
- `PromptHub` — local versioned prompt registry
- `PluginRegistry` — entry-point-based plugin system

Graph Checkpointers:
- `RedisCheckpointer` — Redis checkpoint backend with optional TTL
- `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT

1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers

* fix: resolve lint and type-check errors for CI

- Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059
- Rename BudgetExceeded → BudgetExceededError (N818)
- Fix PromptHub.list/versions return type annotations with builtins.list
- Simplify PluginRegistry to use entry_points(group=...) directly
- Update plugin tests to match new entry_points API
- Remove unused custom AsyncMock class from tests
- Clean up integration test imports

* fix: CI fixes — formatting, version assertions, deptry ignore

- Run ruff format on all files
- Update version assertions in old test files (1.1.0 → 1.2.0)
- Add psycopg to deptry DEP002 ignore (lazy import)
- Fix plugin test mocks to match entry_points(group=...) API
AmitoVrito added a commit that referenced this pull request Apr 5, 2026
* feat: v1.2.0 — Serve, Cost Intelligence & Eval CLI

CLI:
- `synapsekit serve` — one-command FastAPI deployment with auto-detection
- `synapsekit test` — eval CLI with threshold enforcement and CI-friendly exit codes

Cost Intelligence:
- `CostTracker` — hierarchical cost attribution with scope context manager
- `BudgetGuard` — per-request/per-user/daily spending limits with circuit breaker

Evaluation:
- `@eval_case` decorator with min_score, max_cost_usd, max_latency_ms bounds

Prompts & Plugins:
- `PromptHub` — local versioned prompt registry
- `PluginRegistry` — entry-point-based plugin system

Graph Checkpointers:
- `RedisCheckpointer` — Redis checkpoint backend with optional TTL
- `PostgresCheckpointer` — PostgreSQL checkpoint backend with UPSERT

1127 tests passing, 16 providers, 20 retrieval strategies, 5 checkpointers

* fix: resolve lint and type-check errors for CI

- Fix ruff violations: unused imports, unsorted imports, UP035/UP037, SIM102, N818, F811, RUF059
- Rename BudgetExceeded → BudgetExceededError (N818)
- Fix PromptHub.list/versions return type annotations with builtins.list
- Simplify PluginRegistry to use entry_points(group=...) directly
- Update plugin tests to match new entry_points API
- Remove unused custom AsyncMock class from tests
- Clean up integration test imports

* fix: CI fixes — formatting, version assertions, deptry ignore

- Run ruff format on all files
- Update version assertions in old test files (1.1.0 → 1.2.0)
- Add psycopg to deptry DEP002 ignore (lazy import)
- Fix plugin test mocks to match entry_points(group=...) API
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