Skip to main content

AI Release Governance for production agents.

Project description

FlightDeck

FlightDeck is AI Release Governance for production agents.

It gives teams a local-first control loop for release safety: register immutable agent releases, ingest runtime evidence, compare trusted diffs, and gate promotion with policy.

FlightDeck is not an agent framework, prompt IDE, tracing dashboard, or gateway. It is the operating record for what changed, what it costs, how it behaves, and whether it is safe to promote.

Why It Exists

AI agent changes can silently alter cost, latency, failure rate, and unit economics. FlightDeck turns those changes into explicit release decisions backed by runtime evidence.

Current local spine:

  • versioned release.yaml artifacts with bundle checksums
  • RunEvent ingestion from JSONL or JSON arrays
  • immutable pricing tables with explicit --replace
  • trusted flightdeck release diff
  • policy-gated flightdeck release promote
  • promotion decision history

Status

FlightDeck is local-first and ships as a Python CLI backed by SQLite.

v1.0.0 establishes SemVer-stable public contracts for the documented CLI (README.md on main), committed schemas/v1/, and POST /v1/events with api_version v1. See RELEASE_NOTES.md (same narrative on main). The product scope is still intentionally narrow (release governance, not a hosted agent platform).

Not implemented yet:

  • hosted control plane
  • automated traffic routing
  • tool-cost pricing
  • OpenTelemetry import/export mapping (optional uv sync --extra telemetry or pip install 'flightdeck-ai[telemetry]' for future work)

Shipped locally:

  • flightdeck serve + JSON routes under /v1/* (read + diff/promote/rollback + event ingest); see Local HTTP API below
  • minimal Python SDK (flightdeck.sdk.client)
  • flightdeck release rollback (policy-gated, audited)

Local HTTP API

With flightdeck serve (default bind 127.0.0.1), the app exposes GET /health, GET /v1/releases, GET /v1/promoted, GET /v1/actions, POST /v1/events, POST /v1/diff, POST /v1/promote, and POST /v1/rollback. POST /v1/promote and POST /v1/rollback accept requests only from loopback clients unless FLIGHTDECK_LOCAL_API_TOKEN is set, in which case callers must send Authorization: Bearer <token> (same behavior as the web/ dev UI via VITE_FLIGHTDECK_LOCAL_API_TOKEN). See SECURITY.md.

Quickstart

Install uv, then from the repo root:

uv sync --extra dev
uv run flightdeck --help

Or with pip and a venv:

python -m venv .venv
python -m pip install -e ".[dev]"
flightdeck --help

Run the cross-platform quickstart smoke (same as CI):

uv run flightdeck-quickstart-verify

(or python -m flightdeck.quickstart_smoke / python scripts/quickstart_smoke.py inside an activated venv)

Or use the bash wrapper (Git Bash / WSL on Windows):

./scripts/smoke.sh

Or walk through the core commands:

flightdeck init
flightdeck pricing import examples/quickstart/pricing-baseline.yaml
flightdeck pricing import examples/quickstart/pricing-candidate.yaml
flightdeck policy set examples/quickstart/policy.yaml

BASELINE=$(flightdeck release register examples/quickstart/baseline-release)
CANDIDATE=$(flightdeck release register examples/quickstart/candidate-release)

sed "s/__BASELINE_RELEASE_ID__/${BASELINE}/g" examples/quickstart/baseline-events.jsonl > baseline-events.jsonl
sed "s/__CANDIDATE_RELEASE_ID__/${CANDIDATE}/g" examples/quickstart/candidate-events.jsonl > candidate-events.jsonl

flightdeck runs ingest baseline-events.jsonl
flightdeck runs ingest candidate-events.jsonl

flightdeck release diff "$BASELINE" "$CANDIDATE" --window 7d
flightdeck release promote "$BASELINE" --env local --window 7d --reason "initial baseline"
flightdeck release history --agent agent_support --env local

The static event files in examples/quickstart use placeholder release IDs so the repo can ship stable examples. Substitute them before ingestion, or run uv run flightdeck-quickstart-verify / python -m flightdeck.quickstart_smoke (venv) or ./scripts/smoke.sh from Git Bash/WSL on Windows.

Examples: examples/quickstart/ · examples/ci/ (policy gate + Actions) · examples/deploy/ (serve via Docker/Compose) · examples/integration/ (HTTP event emitter).

Documentation

Development

uv sync --frozen --extra dev
uv run python -m ruff check src tests
uv run python -m pytest
uv run flightdeck-quickstart-verify
uv run flightdeck --help

If you change web/ or Pydantic models, also run the static/ and schemas/ drift checks from DEVELOPMENT.md (same gates as .github/workflows/ci.yml). AGENTS.md and .cursor/rules/flightdeck-ci-artifacts.mdc summarize them for humans and Cursor.

See DEVELOPMENT.md for uv and pip setup, verification, troubleshooting, and PyPI releases (tag-driven; not on merge to main).

License

FlightDeck is licensed under the Apache License, Version 2.0 — see LICENSE and NOTICE.

The canonical public repository: https://github.com/flightdeckdev/flightdeck.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

flightdeck_ai-1.0.6.tar.gz (277.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

flightdeck_ai-1.0.6-py3-none-any.whl (122.1 kB view details)

Uploaded Python 3

File details

Details for the file flightdeck_ai-1.0.6.tar.gz.

File metadata

  • Download URL: flightdeck_ai-1.0.6.tar.gz
  • Upload date:
  • Size: 277.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flightdeck_ai-1.0.6.tar.gz
Algorithm Hash digest
SHA256 aa9665b62352f3ff944a11601b7d7916429541bc25f12233cbc1ccd4d9cd79a3
MD5 4ea8931268b46eecc8aeb7bf036f2575
BLAKE2b-256 0354bdfc71c292ad024b799db1a22569684e0fd5fd71b5aa17a13c729eb81b78

See more details on using hashes here.

Provenance

The following attestation bundles were made for flightdeck_ai-1.0.6.tar.gz:

Publisher: release-pypi.yml on flightdeckdev/flightdeck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file flightdeck_ai-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: flightdeck_ai-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 122.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for flightdeck_ai-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fc121978a6c03a332259bde65244efc1f813c86f04609a83075e4745bb23ea8a
MD5 b5603fbddac6b020bb02a879b13d69f8
BLAKE2b-256 c8b759fd4e26968bbccb9d28e7e47d21d4b6dae5eb20ec4b55bf28888daacbd5

See more details on using hashes here.

Provenance

The following attestation bundles were made for flightdeck_ai-1.0.6-py3-none-any.whl:

Publisher: release-pypi.yml on flightdeckdev/flightdeck

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page