Skip to content

Resolve PLAN.md review items - #190

Open
AidinTeymouri wants to merge 4 commits into
ed-donner:mainfrom
AidinTeymouri:plan-review-resolutions
Open

AidinTeymouri wants to merge 4 commits into
ed-donner:mainfrom
AidinTeymouri:plan-review-resolutions

Conversation

@AidinTeymouri

Copy link
Copy Markdown

Summary

This PR updates the spec only (planning/PLAN.md); no application code changes.

  • 6495f2e: works the earlier plan-review decisions into the spec.
  • d741e11: fixes the six blockers a reviewer-agent pass found in that rewrite:
    • B1: tickers are added to the watchlist automatically only on buys. Sells never re-add them, so fully selling an off-watchlist position stops tracking it, as §6 and §13 require.
    • B2: new "Trade Execution Order" (§8). The order is: validate, auto-add, read the price once, BEGIN IMMEDIATE transaction, snapshot, untrack. The auto-add persists even if the trade fails.
    • B3: the frontend re-fetches GET /api/watchlist after every trade and every chat response.
    • B4: compose passes LLM_MOCK through, and §13 documents the E2E run commands (down -v, then LLM_MOCK=true docker compose up).
    • B5: the LLM call must be await litellm.acompletion(..., timeout=30); any failure returns 502.
    • B6: .env is optional in compose (required: false, Compose ≥ 2.24).

Minor review items (B7–B19) are not addressed here and can be handled during implementation.

🤖 Generated with Claude Code

AidinTeymouri and others added 4 commits October 9, 2026 13:41
Define API response shapes, trading rules, chat/mock LLM contract,
SSE payload format, DB concurrency, and simplified Docker/test setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Auto-add to watchlist on buys only; sells never re-add (B1)
- Define trade execution order; auto-add persists on failure (B2)
- Re-fetch watchlist after every trade and chat response (B3)
- Pass LLM_MOCK through compose; document E2E run commands (B4)
- Require async litellm.acompletion with a timeout, mapped to 502 (B5)
- Make .env optional in compose (required: false) (B6)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move hooks/ to the plugin root so it loads, and add a 120s timeout.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.

1 participant