[interactive] Deploy trajectory ledger, evaluate LiteLLM, and verify first activation #56
Labels
No labels
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
coherence-core
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
qa-fixture
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-flight-deck/agent-proxy#56
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Outcome
Complete the remaining durable trajectory deployment and LiteLLM evaluation headlessly, then present one bounded feature-ownership decision to Kai. Agent Proxy retains a separate append-only raw trajectory ledger for deterministic replay, provenance, and reproducible training-data construction. Signoz remains the durable operational observability surface for traces, logs, metrics, and correlation joins. No existing production traffic is being migrated.
workflow: interactive
Landed inputs
Architecture boundary
Deferred until a concrete consumer asks
The deployment does not activate or require:
The first deployment retains body-safe internal metadata only and exposes no new historical-data interface. Storage capacity remains observable. Kai revisits lifecycle and access governance before any restricted data, external consumer, or destructive cleanup is introduced.
Headless execution
Deploy and prove the durable raw ledger
PROXY_TRAJECTORY_DB_PATHusing existing deployment precedent.PROXY_TRAJECTORY_REQUEST_EMISSION_ENABLED.Deploy and evaluate the LiteLLM candidate
ward exec litellm-parityagainst the current gateway and candidate using representative synthetic traffic and the resident tower models.num_ctx, and delivered-context checks.Verify first activation behavior
One human decision checkpoint
After the headless evaluation, post one disposition packet covering each overlapping or dormant feature:
The packet must explicitly cover provider routing, retries, fallback, model discovery, virtual keys, budgets, spend attribution, Agent Proxy queueing and resilience, correlation and context accounting, and the dormant governed query and restricted-data capabilities. Kai decides only the unresolved ownership choices and whether an intended first consumer justifies activation.
After that decision, the agent implements the approved cleanup. The agent retires code in
models.py,upstream.py,queue.py, or commodity portions ofresilience.pyonly when the corresponding responsibility is proven elsewhere and Kai approves its disposition.Done when
docs/litellm-parity.mdpasses against resident models using synthetic traffic.[interactive] Coordinate live rollout, LiteLLM cutover, and data governanceto [interactive] Evaluate LiteLLM ownership and verify first activationScope corrected after Kai's architecture review:
The rewritten issue body is the execution contract.
Execution checkpoint: no headless engineer or live rollout was launched.
Dispatcher preflight exposed a canonical architecture conflict with the revised scope. The repository currently assigns Agent Proxy durable raw retention, replay, trajectory assembly, evaluation joins, and dataset materialization. It explicitly states that Signoz and OTLP are operational evidence surfaces, not the sole durable trajectory store.
docs/trajectory-retention.mdalso requires durable SQLite storage and backup or recovery.The revised issue instead makes Signoz authoritative and SQLite a disposable delivery spool. That would be an architecture reversal and feature-removal program, not a deployment-only interpretation.
Execution is paused at the human decision wall: either preserve the separate durable trajectory ledger while deferring speculative access governance, or explicitly replace the landed trajectory architecture with Signoz-only durability and scope the corresponding code and documentation removal.
[interactive] Evaluate LiteLLM ownership and verify first activationto [interactive] Deploy trajectory ledger, evaluate LiteLLM, and verify first activationArchitecture decision resolved:
Execution may proceed under the updated issue body.
Repository implementation is landed.
659695cadds counts-only SQLite online-backup and replay evidence, secret-safe LiteLLM credentials, expanded surface probes, and explicit live-only gates. All 165 tests, lint, type checking, and formatting pass.4306df2and47bf9c7add durable Agent Proxy trajectory storage, body-safe lifecycle emission, read-only Ward skill-use ingestion, a disabled-by-default standalone LiteLLM 1.92.0 plus PostgreSQL 16.14 candidate, deterministic fallback, body-safe OTLP, independent disable behavior, and idempotent SSM secret provisioning. The full pre-commit suite and repository tests pass.Current live wall: the target Mac is intentionally local-run and absent from the remote Ansible inventory. This Windows surface cannot resolve or reach that Mac, so the agent cannot provision its SSM values, run the Mac-local converge, or observe Docker and tower evidence from here. LiteLLM remains disabled, so the landed change cannot break the current converge. Agent Proxy can activate its durable ledger independently on the next Mac converge.
No deployment, parity, rollback, or retain/replace/drop claim is being made without that observation.
Retain, replace, or drop packet
The headless deployment and evaluation are complete. Agent Proxy is the sole public model endpoint on ser8. LiteLLM remains a separate ser8 candidate with no Agent Proxy traffic.
Durable evidence plane
num_ctx, but the tower-delivered context and Ward to Agent Proxy to LiteLLM trace join cannot exist before inner-hop integration. Recommendation: retain. Consequence: no context or Ward evidence moves into LiteLLM.Commodity gateway plane
queue.pyorresilience.py.Deployment evidence
0231c83retires all host-local Agent Proxy configuration.Recommended decision
The agent recommends:
Kai's remaining choice is whether the idle LiteLLM candidate stays running, stays disabled with its PostgreSQL claim preserved, or proceeds into a separate Agent Proxy to LiteLLM integration issue.
Continuation decision: proceed into the separate Agent Proxy to LiteLLM inner-hop integration while keeping Agent Proxy as the public policy, context, correlation, and trajectory boundary. Agent Proxy #58 and deploy #207 hold the bounded implementation and live rollback proof. The current direct-tower path remains the rollback until the joined gates pass.
Post-integration ownership packet
The inner-hop integration is complete. Agent Proxy is Ready on ser8 as the sole public endpoint and routes its provider-facing traffic through LiteLLM. Direct routing remains the observed rollback mode. Agent Proxy #58 and deploy #207 are closed with live evidence.
queue.pyor the circuit portions ofresilience.py.Decision required
The agent recommends that Kai approve this disposition, authorize no code deletion, and close #56. If Kai wants commodity retry or fallback consolidation, the agent should open a separate removal issue with integrated failure-injection gates before changing
upstream.py,queue.py, orresilience.py.