Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
36 changes: 17 additions & 19 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,7 @@

## [Unreleased]

### Added

- `control-plane start` / `stop` / `status` β€” run the plane detached from the
terminal as one managed background instance (PID + state file under a
`platformdirs` user-state dir; logs redirected to a file since the process is no
longer attached to a console). `start` waits for `/health` before returning and
reaps the process if it never comes up; `stop` escalates `terminate()` β†’ `kill()`
on a timeout; both are idempotent (safe to call when already in the target state).
Cross-platform: POSIX detaches via `start_new_session`, Windows via
`DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP` β€” Windows has no SIGTERM, so `stop`
there is a hard stop, not a graceful drain.
New deps: `psutil`, `platformdirs`.
- `Dockerfile` + `docker-compose.yml` β€” the repo's first container image. Builds from
source (`pip install .`), runs as a non-root user, SQLite on a `/data` volume,
built-in `HEALTHCHECK` against `/health`. Entrypoint is `control-plane serve`
(foreground) β€” the container is its own process supervisor, so the new
`start`/`stop`/`status` background mode is for local dev only, not for images.

## [0.2.0] β€” TokenOps remote-only (#10)
## [0.2.0] β€” 2026-09-13 β€” TokenOps remote-only + background CLI (#10)

**Additive on the wire and schema.** 0.1-era clients keep working against 0.2.x; the
breaking fold (drop `run_registrations`, remove `create_run`, narrow `PATCH`) is
Expand All @@ -43,6 +25,22 @@ Added
forward-only `_apply_migrations()`. Opening a 0.1 DB adds the new tables/columns and
bumps the version β€” no data loss. The 0.3.0 destructive fold (#11) slots in as v3.

- `control-plane start` / `stop` / `status` β€” run the plane detached from the
terminal as one managed background instance (PID + state file under a
`platformdirs` user-state dir; logs redirected to a file since the process is no
longer attached to a console). `start` waits for `/health` before returning and
reaps the process if it never comes up; `stop` escalates `terminate()` β†’ `kill()`
on a timeout; both are idempotent (safe to call when already in the target state).
Cross-platform: POSIX detaches via `start_new_session`, Windows via
`DETACHED_PROCESS | CREATE_NEW_PROCESS_GROUP` β€” Windows has no SIGTERM, so `stop`
there is a hard stop, not a graceful drain.
New deps: `psutil`, `platformdirs`.
- `Dockerfile` + `docker-compose.yml` β€” the repo's first container image. Builds from
source (`pip install .`), runs as a non-root user, SQLite on a `/data` volume,
built-in `HEALTHCHECK` against `/health`. Entrypoint is `control-plane serve`
(foreground) β€” the container is its own process supervisor, so the new
`start`/`stop`/`status` background mode is for local dev only, not for images.

Changed
- `POST /v1/runs` response includes `registered_at`; `register_run` returns the
persisted row so the SDK can bind without a follow-up `GET .../registration`.
Expand Down
2 changes: 1 addition & 1 deletion control_plane/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""AgentPlane shared control plane β€” governance (TokenOps) + Chronicle envelopes."""

__version__ = "0.1.0"
__version__ = "0.2.0"
Loading