ops: prod still has no persistent disk, so protocol runs reset on every deploy
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- postgresql, python
- Domain
- backend, databases, infrastructure
Research direction
Start by reading CLAUDE.md’s “Prod deploy reality” note and the storage configuration in render.yaml; then inspect domain/runs/repository.py to understand the protocol-run state at risk. The issue needs a budget and architecture decision among attaching a disk, using a separate Postgres backend, or accepting and documenting the current behavior. Done means the chosen approach and its treatment of idempotency_keys are decided and recorded.
Written by the indexing model from the issue text.
Description
Split out of #308 so it does not die with that issue. The 2026-09-11 plan upgrade fixed the RAM and nothing else — this is the half that survived.
State (Render API, 2026-09-14)
Service srv-d7lbmpjbc2fs73bcr6t0: plan: 1c-2g, disk: null.
render.yaml declares a 1GB disk at /data and sets DATABASE_PATH=/data/backtest.db, but that file is documentation — prod does not sync from it. With no disk, DATABASE_PATH falls back to the committed seed dashboard/storage/data/backtest.db, which is replaced from git on every deploy.
Impact
Every deploy destroys:
protocol_runs/protocol_steps(domain/runs/repository.py)idempotency_keys
These three have no Postgres option. USERS_DATABASE_URL, CONTENT_DATABASE_URL and AGENT_RUNS_DATABASE_URL already moved accounts, content and run history off this file; protocol run state is what is left.
Merging to main auto-deploys (CI deploy hook, PR #95), so this fires on an ordinary merge — an in-flight external-agent run loses its step state with no error surfaced.
Why it is not already done
A Render disk is a recurring monthly cost and pins the service to a single instance (a disk cannot be shared across replicas). That is a budget and architecture call, not a code change — hence this issue rather than a PR.
Options
- Attach the 1GB disk
render.yamlalready describes. Simplest; costs money; forecloses a second replica. - Give protocol runs their own
PROTOCOL_RUNS_DATABASE_URLPostgres backend, matching the three existing*_DATABASE_URLsplits. No new spend (Neon free tier), and it is the only option compatible withnumInstances > 1.idempotency_keysis deliberately hot/local (seeAGENT_RUNS_DATABASE_URLin CLAUDE.md) and would need a decision of its own. - Accept and document. Currently the de facto state, but undocumented at the point of use.
Note
Do not read the 2GB upgrade as having fixed this. CLAUDE.md's "Prod deploy reality" bullet now states the two halves separately for exactly this reason.
Refs #308.
- Dominant language
- Python
- Stars
- 767
- Forks
- 156
- Avg merge
- 21h 57m
- Merged PRs (30d)
- 92
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Open-Finance-Lab/AgenticTrading
-
fix(llm): a non-ASCII execution handoff raises UnicodeEncodeError instead of ExecutionHandoffErrorPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Open-Finance-Lab/AgenticTrading#659 ·
Maintainers usually reply within 1 day
-
fix(backtests): an LLM action with trailing whitespace ("buy ") is silently droppedPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Open-Finance-Lab/AgenticTrading#658 ·
Maintainers usually reply within 1 day
-
fix(llm): Gemini adapter drops thinking tokens from the output countPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Open-Finance-Lab/AgenticTrading#657 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Open-Finance-Lab/AgenticTrading#591 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Open-Finance-Lab/AgenticTrading#586 ·
Maintainers usually reply within 1 day
All issues in Open-Finance-Lab/AgenticTrading
Similar issues
-
Python Volcengine provider returns failures instead of raising themPossibly taken @Ricardo-M-L claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
agent-infra/sandbox#248 ·
-
Textractor leaves empty temporary files when remote retrieval failsPossibly taken @HuaTNA claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
test(bm_generation): pin the learning parameters and CPU sync shortcutPossibly taken @iloveeyjafjalla claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
qboson/kaiwu-pytorch-plugin#1341 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
elder-plinius/V3R1T4S#625 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
foxglove/mcap#1907 · 1 comment ·
Maintainers usually reply within 1 day