piker/ai/prompt-io/opencode/20260829T175542Z_e09e306a_p...

1.6 KiB
Raw Blame History

Prompt

The user asked to land recent branch work in small chronological patch sets, including missing tests. For Binance, the user required preserving the existing committed topic patch through cherry-pick and placing newly found correctness repairs in a separate follow-up boundary above the flake/xonsh stack. The user also required every yielded stack layer to include a complete /commit-plan with patch-specific checks.

Generated code

git diff HEAD~1..HEAD -- piker/brokers/binance/feed.py

Restricts Binance feeds to the supported one-symbol contract, renders direct quote routes, separates L1 liveness from first-trade readiness, and derives the contextual trade timeout from Trio’s enclosing effective deadline.

git diff HEAD~1..HEAD -- piker/data/_web_bs.py

Lets structured cancellation bypass reconnect throttling and ensures handled handshake rejections retry before accessing connection-local cancel state.

git diff HEAD~1..HEAD -- tests/test_binance.py

Adds deterministic regressions for symbol cardinality, route selection, silent startup, immediate rejection, cancellation cleanup, aggregate-trade schema evolution, delayed trades, and finite/infinite/tiny deadlines.

Verification output

  • Targeted Binance tests: 10 passed in 0.26s.
  • Ruff passes for all three changed Python files.
  • git diff --check passes.
  • Independent final review reports no actionable findings.
  • No live Binance network probe was run.