You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Lowercase close misses position, shadow order id collisions, Alpaca shorts stored as longs, zero-qty fills, 90-minute bars restart hourly #111
Linux, source checkout of main at 43fc66f4 with the repo's dev environment (uv sync); offline test suite.
Observed behavior
close_position("aapl") on the safety facade leaves an AAPL position open.
Two shadow orders accepted in the same millisecond get the same id.
An Alpaca short snapshot is stored with a positive quantity, so a later close sells more.
An Alpaca fill with filled_qty 0 is recorded as a full fill.
A 90-minute aggregation restarts at each hour instead of keeping 10:30–12:00 intact.
Expected behavior
The uppercase position is found and reduced. 2. Ids stay unique. 3. Shorts are negative. 4. The fill is rejected. 5. Windows align to midnight.
Minimal reproduction
Each case has a focused unit test on quantum-like/live branch review/fixes (one commit per fix, on top of 43fc66f4). Every test fails on main and passes with its fix:
The same new public-workflow tests were run against complete original producing source from base 2ad36a8 and against each fix. That base contains only the dependency-security prerequisite relative to main 43fc66f. No copied implementation or patched faulty method was used to manufacture the failure.
The focused PRs are now running the full stable and ecosystem checks. This bundled report and PR #112 remain open until the five fixes are merged and their evidence is recorded. No release or credentialed provider qualification is claimed.
AI assistance: Codex reviewed and verified the original Cursor-assisted contribution and prepared the additional regressions.
Activity
stefan-jansen commentedon Oct 17, 2026
I reproduced the reported defects and split the repairs into focused owning issues and PRs, preserving the original contribution:
The same new public-workflow tests were run against complete original producing source from base 2ad36a8 and against each fix. That base contains only the dependency-security prerequisite relative to main 43fc66f. No copied implementation or patched faulty method was used to manufacture the failure.
The focused PRs are now running the full stable and ecosystem checks. This bundled report and PR #112 remain open until the five fixes are merged and their evidence is recorded. No release or credentialed provider qualification is claimed.
AI assistance: Codex reviewed and verified the original Cursor-assisted contribution and prepared the additional regressions.
fix: integrate broker, aggregation and guide maintenance (ml4t#121)