3e2cbcab88
tracker-policy-pr / check-pr (pull_request) Successful in 8s
test / integration-docker (pull_request) Successful in 12s
test / unit (pull_request) Successful in 43s
lint / lint (push) Failing after 59s
test / integration-firecracker (pull_request) Successful in 3m16s
test / coverage (pull_request) Successful in 16s
test / publish-infra (pull_request) Has been skipped
Move the `Supervise` lifecycle out of its own `orchestrator/supervisor/ supervise.py` and into the package `__init__`, renaming the class to `Supervisor`. Callers now import it from `bot_bottle.orchestrator.supervisor` alongside the queue surface it belongs with. Remove the dead `try/except ImportError` flat-import fallbacks from the package-only store modules (db_store, audit_store, config_store, queue_store) and image_cache. Those fallbacks existed for when the store files were flat-copied into the gateway; post-PRD-0070 the data plane never opens the DB, so these modules are only ever imported as part of the package. The two gateway data-plane files that may still be loaded flat (egress_addon_core, git_gate_render) keep their fallbacks. Full unit suite green (2251). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
17 lines
846 B
Python
17 lines
846 B
Python
"""Neutral supervise vocabulary — importable by every tier.
|
|
|
|
The supervise plane spans the control plane (orchestrator) and the data plane
|
|
(gateway `supervise_server`): the gateway proposes/polls over RPC, the
|
|
orchestrator queues and applies operator decisions. Both sides must agree on
|
|
the wire types and constants, so those live here — a neutral package neither
|
|
tier's private code, importable by `bot_bottle.gateway` **and**
|
|
`bot_bottle.orchestrator` without either depending on the other.
|
|
|
|
* `types` — the `Proposal`/`Response`/`AuditEntry` dataclasses, the tool /
|
|
status / poll-status constants, and the shared daemon constants.
|
|
* `plan` — `SupervisePlan`, the launch-time staging DTO.
|
|
|
|
The orchestrator-only half (queue I/O, diff rendering, the `Supervisor`
|
|
lifecycle) lives under `bot_bottle.orchestrator.supervisor`.
|
|
"""
|