exec(unified): sync local build — kernel_port + dialect §11 + friction §12 + size threading
Lands the /root/dev local increments (share was ENOSPC; now writable) into the canonical repo:
- kernel_port.py: real ExecPort over the DITAv2 kernel (duck-typed; injected to_kernel_intent).
- dialect.py §11: BingX boundary — clientOrderId(H4)/dash/quantize/payload (PostOnly=timeInForce).
- friction.py §12: effective-bps + naive-baseline savings; side-lane journal that can't raise
(b46ebd2); BingX commission-sign flip. DDL ships with code (register in applier verify-set).
- drive_loop/executor/working: Decimal size threaded through plan/working types (exit size cap).
All pure stdlib+Decimal, mutation-litmus RED on the two load-bearing asserts. 132 tests green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -39,6 +39,7 @@ class WorkingOrder:
|
||||
limit_price: Decimal
|
||||
deadline: float # in injected-clock units; <= now() means "resolve me"
|
||||
created: float
|
||||
size: Decimal = Decimal("0") # base qty the caller asked for (venue needs it; exits cap to slot)
|
||||
attempt: int = 0
|
||||
meta: dict = field(default_factory=dict)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user