Skip to content

chore: three cleanups around Postgres persistence#147

Open
FlyM1ss wants to merge 1 commit into
mainfrom
chore/persistence-cleanups
Open

chore: three cleanups around Postgres persistence#147
FlyM1ss wants to merge 1 commit into
mainfrom
chore/persistence-cleanups

Conversation

@FlyM1ss

@FlyM1ss FlyM1ss commented Jul 18, 2026

Copy link
Copy Markdown
Collaborator

Batch C of the agent-persistence follow-ups — three unrelated few-minute cleanups (grouped as filed in #141).

  • Seed DB — dropped 2 leftover repro agents (owner-a-repro, intruder-b-repro) from backtest.db external_agents (inert debris, same class chore: drop stray test data from seed backtest.db #106 removed). Removed via raw sqlite3 + WAL checkpoint: no tables added, no other rows touched, agent_versions/strategies already empty.
  • render.yaml — documented USERS_DATABASE_URL (sync: false) next to CONTENT_DATABASE_URL. It's set on the service and equally load-bearing, but an operator reading the yaml wouldn't have known it exists. Documentation only — prod doesn't sync from this file (sync: false, so no secret committed).
  • Plan doc — fixed the Task 9 Step 5 verification that cried wolf. Piping uvicorn stdout to grep block-buffers the factory print()s and timeout's SIGTERM discards them, so it showed zero backend: lines on healthy code — while "Application startup complete" still appeared, making the false alarm convincing. Added PYTHONUNBUFFERED=1 (what render.yaml sets in prod). Verified at source: 4 lines with it, 0 without.

Closes #141. Suite unchanged: 1095 passed / 18 skipped.

- Drop 2 leftover repro agents (owner-a-repro, intruder-b-repro) from the
  committed seed backtest.db external_agents table (inert test debris,
  same class #106 cleaned).
- Document USERS_DATABASE_URL in render.yaml (sync: false), alongside the
  already-listed CONTENT_DATABASE_URL -- both are set on the service and
  equally load-bearing.
- Fix the plan's Task 9 Step 5 verification: it piped uvicorn stdout to
  grep (block-buffered) and timeout's SIGTERM discarded the buffer, so it
  printed zero backend: lines on healthy code -- a false alarm. Add
  PYTHONUNBUFFERED=1 (what prod uses) so the four lines flush. Verified: 4
  lines with it, 0 without.

Closes #141

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agentic-trading-lab Ready Ready Preview, Comment Jul 18, 2026 8:41am

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.

Three small cleanups around the Postgres persistence work

1 participant