✔ Binance report preserves hedge/net direction, base units and bounded discovered-symbol history (15.6266ms)
✔ OKX report preserves contracts, net signs, exchange fee signs and realized history fields (1.2842ms)
✔ report rejects inconsistent hedge signs instead of displaying a normalized false position (1.9088ms)
✔ PnL summarizes open legs and displayed fills separately with exact decimals and honest missing values (4.3692ms)
✔ binance labels only account-bound, symbol-and-side matched local fills (101.1715ms)
✔ okx labels only account-bound, symbol-and-side matched local fills (73.9043ms)
✔ Binance preserves distinct integer IDs above the JavaScript safe range across order query and fills (24.2572ms)
✔ authenticated failures abort the report; per-section history permission or outage remains partial (1.5654ms)
✔ clock sync excludes request pacing and response-body parsing from network midpoint (2.2656ms)
✔ recent report is sorted and capped across discovered symbols, with invalid timestamps rejected (3.9894ms)
✔ account-report CLI binance signs only GETs using exchange credentials with no A key or journal (403.5596ms)
✔ account-report CLI okx signs only GETs using exchange credentials with no A key or journal (426.0695ms)
✔ account-report CLI binance exposes only the authentication code and stops further reads (161.2863ms)
✔ account-report CLI okx exposes only the authentication code and stops further reads (170.7599ms)
✔ decimal arithmetic preserves precision and floors quantities (3.0377ms)
✔ incomplete, stale, duplicated, negative and future source data are rejected (3.7217ms)
✔ A payload fields can be mapped without changing its REST API (0.7864ms)
✔ partial source exit uses actual follower holdings, not theoretical target (2.4669ms)
✔ unchanged source never doubles a target and a new lifecycle must close first (1.1426ms)
✔ equity sizing uses allocated capital / leader equity (0.4581ms)
✔ IOC rounding stays within price budget; OKX quantities are contracts (1.2747ms)
✔ one-way account blocks simultaneous opposite source targets, hedge allows both (15.6091ms)
✔ risk caps restrict increases but allow reducing existing exposure (1.0139ms)
✔ 99 positions open and close through the full journal/engine loop (2505.7246ms)
✔ 100th leg is blocked at the default 99-position limit (2295.0174ms)
✔ accepted order with lost HTTP response is recovered after restart without duplicate (100.9241ms)
✔ ambiguous request absent from order lookup is never automatically resubmitted (60.4234ms)
✔ partial fill followed by partial source close reduces actual filled quantity (81.3035ms)
✔ position propagation delay prevents a duplicate order until account agrees (52.1127ms)
✔ manual changes / liquidation halt instead of automatically reopening (48.6656ms)
✔ changed lifecycle closes the old holding before opening the new holding (61.5426ms)
✔ source rollback / same-version payload mutation halt before placing another order (48.6341ms)
✔ pause still recovers pending exchange orders (45.9266ms)
✔ wait-flat bootstrap ignores the current lifecycle and follows the next lifecycle (42.9462ms)
✔ one journal has one engine lock, released when the connection closes (168.1419ms)
✔ cycle2 pass1: a fresh increase cannot revive an expired deferred equity entry (8.0937ms)
✔ cycle2 pass1: a fresh increase cannot restore expired unfilled quantity (0.7002ms)
✔ cycle2 pass1: an expired replacement still closes the old leg but copies only a fresh increment (1.7052ms)
✔ cycle2 pass1: initially stale unscaled entries are discarded while reductions remain intact (2.6243ms)
✔ cycle2 pass2: partial reduction and reincrease preserve only surviving, unexpired deferred units (1.6031ms)
✔ cycle2 pass2: equity changes during replacement do not reprice already sized pending entry (0.6988ms)
✔ cycle2 pass2: expired replacement size stays discarded on further equity-only versions (0.4468ms)
✔ cycle2 pass2: contract lots and all notional caps remain exact under diverse fractional units (11.096ms)
✔ cycle2 pass2: incomplete and duplicate source lists never turn into accepted flat state (0.8142ms)
✔ cycle2 pass2: A transport has no redirect, exchange headers, request body or raw error leak (31.5724ms)
✔ cycle2 pass3: restart and source refresh do not revive expired partially filled entry (156.5949ms)
✔ cycle2 pass3: no signal TTL keeps existing incomplete increase behavior (0.3576ms)
✔ cycle2: Binance account freshness includes slow response time but excludes pacing waits (6.9624ms)
✔ cycle2: Binance a slow position response cannot initialize or authorize an order (88.3062ms)
✔ cycle2: Binance remote local-abort text after an accepted POST recovers once across restart (196.9749ms)
✔ cycle2: Binance a genuine local gate abort still proves no POST was sent (134.7458ms)
✔ cycle2: OKX account freshness includes slow response time but excludes pacing waits (1.2664ms)
✔ cycle2: OKX a slow position response cannot initialize or authorize an order (59.4449ms)
✔ cycle2: OKX remote local-abort text after an accepted POST recovers once across restart (171.2271ms)
✔ cycle2: OKX a genuine local gate abort still proves no POST was sent (190.6624ms)
✔ cycle2: a remote local-abort code without HTTP status never proves non-submission (171.8186ms)
✔ cycle2: seeded hedge state changes preserve capacity and close after restarts and partial fills (2028.7127ms)
✔ cycle2: seeded oneway state changes preserve capacity and close after restarts and partial fills (971.4534ms)
✔ cycle2: documented custom REST adapter is present in the Docker COPY filesystem (187.729ms)
✔ cycle2: abrupt process exit releases account lock and preserves committed recovery state (431.589ms)
✔ cycle2: a restarted engine exposes starting state before its first slow account request completes (121.2947ms)
✔ cycle2: durable pause is visible while the engine still has its last following heartbeat (76.5313ms)
✔ cycle2: a missing A credential cannot prevent pending exchange order recovery (138.1811ms)
✔ cycle2: lazy A credentials are still checked before every REST request (97.8692ms)
✔ cycle3: customer CLI doctor, first run, pending restart, status, pause and resume preserve one accepted order (2813.4501ms)
✔ cycle3: canonical symbols must be strings rather than coercible arrays (2.8722ms)
✔ cycle3: mapped symbol and side lookup never coerces arrays or objects into trading identifiers (1.3955ms)
✔ cycle3: missing mapped identities cannot match the literal undefined dictionary entry (1.8358ms)
✔ cycle3: malformed mapped increase cannot change the accepted source or place another order (121.5012ms)
✔ cycle3: custom adapter preserves wait-flat across increases and restart until a new lifecycle (195.6298ms)
✔ cycle3: incomplete mapped and custom-adapter responses never become authoritative flat snapshots (301.8579ms)
✔ cycle3: completed order reports requested and actual fill for ratio 0 (146.0501ms)
✔ cycle3: completed order reports requested and actual fill for ratio 0.25 (36.7654ms)
✔ cycle3: completed order reports requested and actual fill for ratio 1 (44.4713ms)
✔ cycle3: definite rejection completion reports zero fill and preserves rejection evidence (49.3791ms)
✔ cycle3: locally unsent completion stays distinguishable from an exchange fill after restart (36.2731ms)
✔ cycle3 pass1: status identifies the selected journal and recovery ledger without exposing raw binding (74.1757ms)
✔ cycle3 pass2 FT-006: release relocation and restored online backup recover the same accepted order without resubmission (958.4447ms)
✔ cycle3 pass2: copying the default relative DB path to a new release fails status instead of creating a blank ledger (478.7326ms)
✔ cycle3 pass2: status reads pending proof independently of the bounded recent order list (66.4874ms)
✔ cycle3 pass2: dashboard shows the selected DB path as text, including unusual path characters (16.9152ms)
✔ cycle3 pass3: journal fingerprint, expected quantities and pending order share one committed snapshot (31.8274ms)
✔ cycle3 pass3: zero-fill completion is displayed as an order result, not a successful fill (1.6991ms)
✔ cycle4: OKX live customer preflight and persisted environment cannot silently switch account context (3182.6604ms)
✔ cycle4: OKX demo customer preflight and persisted environment cannot silently switch account context (3118.1213ms)
✔ cycle4 pass1: a changed quantity cannot predate the previously confirmed upstream watermark (7.7412ms)
✔ cycle4 pass1: introducing an old position contradicts a complete prior flat watermark (0.8881ms)
✔ cycle4 pass1: a heartbeat may retain a long-held position and an unchanged changedAt (0.7967ms)
✔ cycle4 pass2: source event clock tolerance includes its exact boundary (2.6934ms)
✔ cycle4 pass2: inconsistent changedAt halts durably before new targets or orders (58.1504ms)
✔ cycle4 pass2: strict mapped identities still allow canonical hedge legs, zero-free decimals and own special IDs (13.4347ms)
✔ cycle4 pass2: HTTP error and malformed payload cannot become authoritative mapped flat state (38.5658ms)
✔ cycle4 pass2: custom A auth uses only its requested header with no exchange credential or request body (2.3334ms)
✔ cycle4 pass3: first snapshot and equal canonical quantity remain valid for old held positions (0.7427ms)
✔ cycle4 pass3: a same-sequence heartbeat advances the watermark used for later source changes (46.1463ms)
✔ cycle4: Binance live and demo route signed reads, placements and recovery to the selected origin (39.7179ms)
✔ cycle4: every allowed OKX region keeps demo headers on placement and recovery without switching hosts (15.8077ms)
✔ cycle4: rejected attempts retain their retry budget across restart and never count as fills (76.1787ms)
✔ cycle4: rejected reduction never adopts an external position change as its own settlement (45.6897ms)
✔ cycle4: zero-fill expiry does not hide a foreign order or authorize the next retry (26.7071ms)
✔ cycle4: unknown lookup plus source change and restart keeps the original intent unresolved (27.9337ms)
✔ cycle4: status supplies the server observation time without changing saved health (22.2313ms)
✔ cycle4: browser clock skew cannot turn stale health fresh or fresh health stale (21.2378ms)
✔ cycle4: absent, invalid and future health times never imply running or a confirmed stop (23.7799ms)
✔ cycle4: old active/paused records are unknown while a valid old stop stays a historical stop (5.1026ms)
✔ cycle4: recorded long polls and retry waits remain planned waits, then become stale after the existing grace (5.6562ms)
✔ cycle4: a lone, inconsistent or unjustified future next-check time cannot hide stale health (6.1864ms)
✔ cycle4: scheduler records its actual poll wait without sleeping through the test (22.3417ms)
✔ cycle4: scheduler records its actual retry wait without sleeping through the test (18.1994ms)
✔ cycle4: selected configuration and stored runtime mismatches are diagnostic and do not require secrets (15.5985ms)
✔ cycle4: dashboard distinguishes the selected environment from the recorded environment (1.5803ms)
✔ cycle5: one active source ID survives partial fills and restart but cannot reopen after observed retirement (77.2748ms)
✔ cycle5: replacement close finishes before a retired ID is examined, then reuse cannot reopen exposure (40.1507ms)
✔ cycle5: unresolved B submission preserves its proof while a retired A reappears upstream (49.4401ms)
✔ cycle5: a SETTLING backup retains both terminal fill proof and retired source identity (48.3978ms)
✔ cycle5: observed flat retires the lifecycle and a restart rejects it before targets or submission (56.3869ms)
✔ cycle5: ignored bootstrap lifecycles are retired too; an actually new ID remains tradable (26.4206ms)
✔ cycle5: replacement retirement is atomic with source, targets and ignored IDs before close execution (16.0813ms)
✔ cycle5: malformed and regressed source snapshots cannot retire active IDs or initialize tracking (29.2711ms)
✔ cycle5: stream and ID SQL metacharacters stay data and retirement sequence keeps all decimal digits (20.7318ms)
✔ cycle5: doctor rejects a known retired ID without accepting it or modifying history (30.4808ms)
✔ cycle5: stream change retains the existing halt policy and cannot create a new tracking boundary (17.1245ms)
✔ cycle5: failed first acceptance does not publish a misleading tracking start boundary (17.5891ms)
✔ cycle5: a legacy heartbeat starts coverage without changing its target or ignored lifecycle (16.3899ms)
✔ cycle5: independent lifecycle model rejects observed retired IDs across many changes and restarts (484.0189ms)
✔ cycle5 ops: source, targets and retirement roll back together when acceptance persistence fails (51.5007ms)
✔ cycle5 ops: stale acceptance cannot retire IDs or overwrite a newer accepted source (18.4497ms)
✔ cycle5 ops: 99-leg cohorts use indexed retirement lookups as cumulative history grows (303.663ms)
✔ cycle5 ops: online backup retains tombstones and rejects reused IDs after restoration (49.5325ms)
✔ cycle5 ops: readonly legacy diagnostics do not migrate or invent pre-upgrade lifecycle history (40.6285ms)
✔ cycle5 ops: doctor observations never start or mutate lifecycle tracking (17.4442ms)
✔ cycle5 ops: an already-open readonly legacy reader sees tracking after another connection upgrades (46.6977ms)
✔ cycle5 ops: lifecycle coverage and source diagnostics share the same WAL snapshot during upgrade acceptance (35.2818ms)
✔ cycle6 continuity: semantically identical legacy heartbeat can advance timestamps without claiming lost history (51.7083ms)
✔ cycle6 continuity: an uncheckpointed new sequence is a gap even if its final positions happen to be equal (34.5509ms)
✔ cycle6 continuity: a foreign source write during preparation blocks intent creation (23.6864ms)
✔ cycle6 continuity: a gap after intent persistence aborts transport but still settles the unsent intent (38.0077ms)
✔ cycle6 continuity: malformed or unsupported checkpoints cannot appear as unverified legacy diagnostics (32.135ms)
✔ cycle6 continuity: failures release read snapshots without breaking later source acceptance (19.9202ms)
✔ cycle6: continuity loss preserves UNKNOWN proof and only halts new work after terminal zero fill (56.9793ms)
✔ cycle6: an accepted order with a lost response is reconciled once despite a source checkpoint gap (35.5033ms)
✔ cycle6: SETTLING backup retains fill proof and continuity gap without querying or resubmitting again (42.0898ms)
✔ cycle6: current-writer heartbeat and same active lifecycle survive restart and unfinished entry (48.9016ms)
✔ cycle6: continuity loss still permits cancellation and settlement of an already open partial order (32.9956ms)
✔ cycle6: a gap created during preparation blocks the order before its intent is recorded (18.6185ms)
✔ cycle6: a gap after intent but before transport records NOT_SENT then settles before halting (31.109ms)
✔ cycle6: persisted quantity changes cannot hide behind an unchanged cached digest (45.3745ms)
✔ cycle6: persisted lifecycle changes cannot hide behind an unchanged cached digest (31.1498ms)
✔ cycle6: persisted equity changes cannot hide behind an unchanged cached digest (29.7597ms)
✔ cycle6 ops: failed source acceptance rolls checkpoint, history, source and targets back together (53.2568ms)
✔ cycle6 ops: pre-checkpoint tracking keeps known retirements and marks only the newly verifiable boundary (54.8036ms)
✔ cycle6 ops: readonly pre-history journal reports unverified continuity without schema or checkpoint writes (46.5642ms)
✔ cycle6 ops: readonly doctor diagnostics detect a stale cached digest without rewriting evidence (33.6671ms)
✔ cycle6 ops: online backups preserve both consistent and broken continuity instead of silently repairing it (42.7713ms)
✔ cycle6 ops: the single continuity checkpoint stays constant-sized as 99-leg retirement history grows (85.7322ms)
✔ cycle6 ops: an atomic engine acceptance between doctor reads cannot invent a continuity gap (35.3137ms)
✔ cycle6 ops: tracking coverage and continuity cannot mix before and after the first atomic acceptance (39.1174ms)
✔ cycle7 controls: resume with a demo configuration cannot clear live journal controls (60.8483ms)
✔ cycle7 controls: changed source settings cannot resume an already-running protected context (50.4793ms)
✔ cycle7 controls: changed sizing settings cannot resume an already-running protected context (56.4337ms)
✔ cycle7 controls: changed bootstrap settings cannot resume an already-running protected context (54.2404ms)
✔ cycle7 controls: a bound legacy journal lacking a protected config identity cannot silently resume (47.8592ms)
✔ cycle7 controls: an unbound journal with initialized evidence is not mistaken for an unused database (40.6412ms)
✔ cycle7 controls: an unbound journal with source evidence is not mistaken for an unused database (49.3038ms)
✔ cycle7 controls: an unbound journal with orders evidence is not mistaken for an unused database (46.1927ms)
✔ cycle7 controls: runtime mismatch is rejected even if its config fingerprint appears to match (43.8953ms)
✔ cycle7 controls: permitted poll changes do not prevent a same-context resume or rewrite runtime (78.9759ms)
✔ cycle7 controls: safety pause still applies to the selected journal despite an environment mismatch (53.9578ms)
✔ cycle7 controls: matching protected settings resume without credentials and reset retries only when requested (52.8649ms)
✔ cycle7 controls: a prepared but unbound journal can still resume before its first run (40.3765ms)
✔ cycle7: a demo resume command cannot wake an existing paused live engine (73.9888ms)
✔ cycle7: public pause during prepare prevents an intent, then a matching resume permits exactly one order (94.5471ms)
✔ cycle7: pause after intent preserves NOT_SENT evidence until normal zero-fill settlement (64.0837ms)
✔ cycle7: retry-targets cannot erase cumulative fill proof or permit a fresh order while recovery is halted (63.7977ms)
✔ cycle7: key changes and rebind cannot bypass a pending order, and the original proof remains recoverable (69.0636ms)
✔ cycle7: rebind excludes a live journal owner and successful explicit rotation stays paused with tracking intact (138.7578ms)
✔ cycle7 ops: credential rotation cannot pass the active old-key engine journal lock (139.4264ms)
✔ cycle7 ops: credential rotation also rejects a different journal already using the new key (100.0188ms)
✔ cycle7 ops: CLI retry resume preserves UNKNOWN evidence and cannot erase a lifecycle gap (49.5838ms)
✔ cycle7 ops: CLI online backup during a live terminal commit retains a recoverable WAL generation (89.5271ms)
✔ cycle7 preflight: concurrent settlement cannot combine old expected positions with new empty pending and report ready (76.9653ms)
✔ cycle8 binding: actual run cannot claim a paused used journal after its credential binding is lost (57.6654ms)
✔ cycle8 binding: doctor, resume and rebind report the same missing identity without touching evidence or transport (50.8974ms)
✔ cycle8 binding: falsy and malformed persisted identities are never replaced as if no binding existed (89.5695ms)
✔ cycle8 binding: prepared first-use pause and resume controls do not count as trading history (51.2753ms)
✔ cycle8 binding: execution-event evidence uses its partial index without scanning a long control-only history (32.7307ms)
✔ cycle8 binding: bounded usage checks distinguish retired-only and completed-order-only restored journals (15.6103ms)
✔ cycle8 binding: engine-owned empty state and planning records still identify a partially restored used journal (18.279ms)
✔ cycle8 customer: a separate doctor process diagnoses missing journal identity without requiring keys (219.0168ms)
✔ cycle8 customer: a separate doctor process diagnoses invalid journal identity without requiring keys (328.6883ms)
✔ cycle8 customer: dashboard displays journal identity problems beside the last recorded engine state (40.0353ms)
✔ cycle8 binance: an unknown order cannot be rebound or queried using a new key after its binding disappears (65.547ms)
✔ cycle8 binance: matching quantities on another account cannot finalize a binding-less SETTLING order (56.8508ms)
✔ cycle8 binance: an unused journal binds once and an accepted order with a lost response recovers using that same key (121.8761ms)
✔ cycle8 binance: known-binding legacy upgrade stays paused and recovers existing proof without A credentials (70.8788ms)
✔ cycle8 okx: an unknown order cannot be rebound or queried using a new key after its binding disappears (42.6165ms)
✔ cycle8 okx: matching quantities on another account cannot finalize a binding-less SETTLING order (43.4826ms)
✔ cycle8 okx: an unused journal binds once and an accepted order with a lost response recovers using that same key (73.7312ms)
✔ cycle8 okx: known-binding legacy upgrade stays paused and recovers existing proof without A credentials (77.8526ms)
✔ cycle8 ops: documented legacy pause-backup-paused restart-resume flow restores only its missing control context (152.1908ms)
✔ cycle8 ops: legacy control context cannot be backfilled by restarting with a different protected source (67.1197ms)
✔ cycle8 ops: changed poll and risk values apply on explicit restart while preserving existing trade ownership (148.6797ms)
✔ cycle8 ops: status and backup preserve a used journal with missing account binding, and doctor cannot bless it (92.2221ms)
✔ cycle8 ops: an incomplete restore retaining only execution events is not adopted as an unused account (57.9093ms)
✔ SQLite transaction rollback preserves the database error and permits a clean retry (20.1038ms)
✔ cycle9 storage: a failed intent rolls back its slot and retry debit before any POST, then all 99 legs remain executable (874.0286ms)
✔ cycle9 storage: terminal audit failure rolls back expected quantity and order proof together, then restart applies the partial fill once (27.2195ms)
✔ cycle9 storage: a failed DONE update keeps SETTLING and its retry debit for restart without querying or posting twice (26.6445ms)
✔ cycle9 storage: a failed post-submit health write preserves the original intent for proof-based restart recovery (27.3831ms)
✔ cycle9 submit: local known zero-fill evidence survives a failed audit INSERT and restart (82.1482ms)
✔ cycle9 submit: binance known zero-fill evidence survives a failed audit INSERT and restart (45.9794ms)
✔ cycle9 submit: okx known zero-fill evidence survives a failed audit INSERT and restart (34.7527ms)
✔ cycle9 submit: failed audit retains ambiguous timeout-after-accept as the same recoverable intent (32.2698ms)
✔ cycle9 submit: failed audit retains ambiguous remote-local-abort as the same recoverable intent (28.4403ms)
✔ cycle9 submit: failure of the authoritative NOT_SENT write does not refund its retry separately or fabricate durable proof (27.041ms)
✔ cycle9 submit: a newer flat source waits for saved zero-fill settlement and cannot replay the old target (31.7202ms)
✔ local dashboard reads SQLite into a private file, refreshes atomically, and closes without a server or database writes (205.1083ms)
✔ local dashboard exports only display fields and excludes credentials, source identities, order identities and raw diagnostic bodies (2.3799ms)
✔ embedded JSON escapes script-breaking data while displaying literal text without executing it (1.6213ms)
✔ offline refresh reloads only a file URL and never requests status over HTTP (3.2629ms)
✔ an old or future-dated local file cannot advertise a currently following engine (3.4469ms)
✔ AWS disable flag rejects file dashboard creation without reading SQLite or opening a network connection (0.7547ms)
✔ dashboard CLI starts a local preview without credentials or a journal and does not initialize a trading database (76.3665ms)
✔ journal links observed source changes and order results by accepted sequence (84.7758ms)
✔ desktop engine exits cleanly on stop with its journal intact (412.0678ms)
✔ desktop engine exits cleanly on EOF with its journal intact (391.5044ms)
✔ Binance signs the exact query sent and excludes reduceOnly in hedge mode (13.6293ms)
✔ Binance one-way closing order is explicitly reduceOnly (2.8467ms)
✔ Binance cumulative partial fill returned on terminal expiration is preserved (2.5423ms)
✔ OKX signs timestamp + verb + path + exact JSON; hedge close omits reduceOnly (4.4991ms)
✔ OKX net close is reduceOnly and demo header appears only in demo environment (0.8836ms)
✔ OKX partial terminal fill is converted from contracts to base quantity (1.4858ms)
✔ order identity mismatch is rejected even if the client ID matches (2.8808ms)
✔ source requests carry only the A credential (5.7981ms)
✔ HTTP timeout is not retried and never discloses signed URL or headers (2.7066ms)
✔ HTTP retry-after is surfaced and redirects are disabled (33.6522ms)
✔ OKX instrument metadata and hedge positions use base-asset quantities (2.447ms)
✔ real HTTP transport → separate credentials → signed order → lost response → durable recovery (165.2184ms)
✔ OKX HTTP business rejection recovers and both hedge legs use signed contract orders (124.5605ms)
✔ initial preview read failure closes its readonly SQLite handle and removes its temporary display (34.0798ms)
✔ review: unknown risk/config fields fail closed instead of silently disabling a cap (4.3428ms)
✔ review: malformed configuration is rejected before credentials or HTTP are used (1.3511ms)
✔ review: REST field mapping validates a complete source contract with custom names (2.9749ms)
✔ review: numeric-equivalent sequence spellings cannot bypass version immutability (0.5374ms)
✔ review: source timestamps require an explicit timezone and coherent observation time (0.2932ms)
✔ review: a second source reduction preserves unfinished prior liquidation (1.8415ms)
✔ review: reduction after an incomplete entry still scales actual holdings (0.6339ms)
✔ review: exact multiply/divide avoids losing an exchange lot to intermediate truncation (1.4312ms)
✔ review: equity scaling evaluates all factors before its single precision truncation (1.5982ms)
✔ review: queued increases expire by position age; reductions remain executable (2.519ms)
✔ review: lifecycle IDs matching object-prototype names remain valid identifiers (1.3941ms)
✔ review: non-JSON throttling retains Retry-After and exposes response headers (30.6711ms)
✔ review: final local submission gate aborts before any network request and preserves its code (0.245ms)
✔ review: remote error strings cannot inject arbitrary payloads into journal error codes (0.1635ms)
✔ OKX preserves business rejection in a code=1 envelope (4.1342ms)
✔ Binance scans conditional orders and rechecks the target symbol before submission (3.5678ms)
✔ OKX scans all supported conditional algorithm order categories (4.1786ms)
✔ terminal order remains settling while its own open-order projection lags (32.5261ms)
✔ a foreign order during settlement halts instead of being hidden by recovery (25.9057ms)
✔ successful chunks do not exhaust the retry budget during a 15-chunk full close (101.0291ms)
✔ zero-fill retries still stop at the configured limit (29.9056ms)
✔ pause during asynchronous preparation prevents the order intent and POST (22.0973ms)
✔ SIGTERM stop callback prevents submission at the final gate (23.8547ms)
✔ pause after intent but before transport is recorded as definitely NOT_SENT (24.0222ms)
✔ transport checks final gate after spacing and preserves local abort evidence (0.7291ms)
✔ Binance budget limits weighted requests and incorporates external header usage (28.0446ms)
✔ repeated unresolved settlement emits one identical halt event (29.0386ms)
✔ retired target revisions are pruned from the retry ledger (25.2846ms)
✔ same exchange credential cannot run through different journals in one shared lock directory (99.4226ms)
✔ account lock identity is independent of database, instance name and source (0.6886ms)
✔ a journal lock failure releases the earlier acquired account lock (115.1086ms)
✔ pending and recent-order queries use their bounded index traversal (15.5193ms)
✔ online SQLite backup includes committed WAL data and never overwrites a backup (44.5985ms)
✔ status readers do not create missing journals or allow writes (33.7643ms)
✔ preflight returns blocking reasons instead of treating incompatible data as ready (22.7973ms)
✔ preflight catches journal drift, pending recovery and changed credential binding (16.2418ms)
✔ only active submission/settlement states use the faster poll interval (0.3074ms)
✔ secret redaction occurs before the error output length limit (0.4466ms)
✔ credential-only rebind preserves targets and stays paused after verifying account positions (18.3447ms)
✔ credential rebind rejects changed sizing, pending orders and mismatched actual holdings (15.0602ms)
✔ round2: missing numeric values never silently become zero (3.821ms)
✔ round2: malformed quote values are invalid data rather than portfolio-wide exceptions (0.3262ms)
✔ round2: one bad quote does not prevent the other 98 legs from being reduced (18.3245ms)
✔ round2: A credentials cannot be accidentally sourced from exchange secret variables (1.8146ms)
✔ round2: account freshness budget must be a positive integer (0.6456ms)
✔ round2: impossible calendar dates and 24-hour rollover cannot pass source freshness checks (0.3328ms)
✔ round2: null and primitive position entries produce an explicit schema error (0.3083ms)
✔ round2: mappings read own JSON fields and reject lossy quantity conversion (0.4299ms)
✔ round2: local adapter contents are bound but release-directory relocation is allowed (41.1498ms)
✔ round2: native contract granularity outside ledger precision is blocked before submission (0.5253ms)
✔ round2: exact products reject hidden dust and conservative products never round exposure down (0.1618ms)
✔ round2: sub-precision portfolio valuations cannot bypass gross exposure caps (0.4418ms)
✔ round2: Binance weighted wait checks a submission stop gate within 200 ms (2.9334ms)
✔ round2: Binance server-time estimate excludes weighted budget and request pacing waits (2.2661ms)
✔ round2: Binance refreshes the signature after HTTP pacing and clamps recvWindow to deadline (1.7562ms)
✔ round2: OKX refreshes authentication after pacing and sends a server-adjusted expiry (2.5025ms)
✔ round2: OKX clock synchronization measures its actual send time (0.9891ms)
✔ round2: missing account quantities fail closed instead of being interpreted as flat (1.8265ms)
✔ round2: malformed hedge signs never switch a long record into a short leg (1.4218ms)
✔ round2: cumulative fill and terminal status must agree (1.0632ms)
✔ round2: previously observed partial fill cannot decrease on terminal recovery (32.2707ms)
✔ round2: a 5xx response remains ambiguous even if its body resembles a business rejection (18.7883ms)
✔ round2: OKX rejects a mismatched client ID before adopting a definitive business rejection (0.4917ms)
✔ round2: account freshness is stamped at the position response, before later order-list delays (0.6023ms)
✔ round2: an expired account snapshot cannot initialize or submit an order (22.6359ms)
✔ round2: account deadline is checked again after intent and before transport (21.3919ms)
✔ round2: optional source-position expiry participates in the final transport deadline (18.4899ms)
✔ round2: explicit authentication/expiry rejection can settle without an order lookup (102.7591ms)
✔ round2: recovery refreshes a bad clock before the next client-ID lookup (0.7782ms)
✔ read-only doctor catches source rollback and mutation but warns on missing sizing equity (23.1548ms)
✔ normal engine shutdown persists stopped health and preserves recoverable pending intent (47.0754ms)
✔ run once returns nonzero for a halt and the halted reason survives stopped status (24.3254ms)
✔ a stopped-before-start run does not submit or touch exchange transport (24.2718ms)
✔ credential domain mistakes are rejected without including credential values (0.7416ms)
✔ concurrent backups atomically reserve one output and cannot overwrite each other (53.5152ms)
✔ round3: a rising source sequence cannot mask a regressing upstream watermark (2.9684ms)
✔ round3: lifecycle chronology cannot regress while sequence and watermark advance (0.8262ms)
✔ round3: steady-heartbeat and equal-millisecond legitimate changes remain allowed (0.791ms)
✔ round3: a lifecycle cannot migrate to another instrument or side (0.9978ms)
✔ round3: sequential decrease/increase/close/reentry preserves the unfinished reduction (5.0634ms)
✔ round3: a sell IOC limit never rounds below its configured slippage floor (0.6796ms)
✔ round3: A credential echoes are rejected before normalized state can be journaled (1.6148ms)
✔ round3: malformed UTF-8 in JSON identifiers is rejected instead of silently changed (22.9063ms)
✔ round3: zero-equity flat snapshot still liquidates a quantity-ratio follower (46.6596ms)
✔ round3: equity-ratio reductions work at zero equity; only deferred increases wait for recovery (39.4514ms)
✔ round3: unscaled entry decreases with source size and resumes from its remaining quantity (0.5725ms)
✔ round3: deferred 10 to 12 to 6 increase recovers only the surviving source quantity (38.4385ms)
✔ round3: invalid equity pauses old unfilled increases and does not restore them after a reduction (33.5764ms)
✔ round3: lifecycle replacement closes the old leg at zero equity and discards old deferred additions (30.4932ms)
✔ round3: both venues reject duplicate instrument identities instead of silently overwriting contract metadata (3.3329ms)
✔ round3: Binance canonical-symbol collisions are rejected even with different native instrument IDs (0.6573ms)
✔ round3: existing OKX holdings below ledger precision cannot be mistaken for a flat account (0.8495ms)
✔ round3: cumulative fills are converted exactly and cannot silently become zero (0.346ms)
✔ round3: partially-filled status requires a positive unfinished cumulative quantity (0.5525ms)
✔ round3: code=0 OKX business rejection with the wrong client ID remains ambiguous (2.2096ms)
✔ round3: a mismatched rejection never clears the engine pending intent (30.5391ms)
✔ round3: OKX cancellation acknowledges exactly one matching client order (1.3622ms)
✔ round3: settlement does not declare completion using an expired account snapshot (24.3186ms)
✔ round3: crash after terminal journal commit cannot apply the cumulative fill twice (29.6768ms)
✔ round3: a source close arriving during a partial-fill recovery closes only the actual fill (25.5758ms)
✔ round3: UTC day rollover renews the weight window, but a clock rollback never replenishes it (0.2808ms)
✔ round3: Binance budget uses the same synchronized clock as signed requests (0.2512ms)
✔ round3: a newer source sequence with an older upstream watermark persistently halts before another order (21.8615ms)
✔ status keeps one committed WAL view when an engine updates during the read (45.7993ms)
✔ a failed status read releases its snapshot and can read again (17.6457ms)
✔ journal directory aliases share a lock even when credentials differ (153.3537ms)
✔ doctor rejects expired, missing and far-future account snapshots (28.4056ms)
✔ credential rebind preserves the original binding on stale account data (24.8842ms)
✔ doctor uses the same source time and lifecycle guards as the engine (17.2766ms)
✔ doctor reports unavailable equity as an increase warning while flat and wait-flat remain ready (25.6869ms)
✔ doctor keeps zero-equity reduction and full close ready, warning only for a new leg (27.5475ms)
✔ doctor reads persisted deferred increases without changing the recovery ledger (30.1872ms)
✔ redaction handles one credential that is a prefix of another credential (13.4495ms)
✔ copy quantity defaults to one and US endpoints are unavailable (6.0993ms)
✔ source margin follows the signal on entry and the held OKX leg on exit (13.3125ms)
✔ OKX transmits the selected signal mode in tdMode (0.4353ms)
✔ Binance changes margin only on a flat symbol after the execution guard (3.2207ms)
✔ source-check uses only the A credential and displays positions without creating or binding a journal (47.2612ms)
✔ source-check rejects calendar data without printing credentials or unrestricted errors (22.6482ms)
✔ source-check rejects echo data without printing credentials or unrestricted errors (22.1889ms)
✔ source-check rejects adapter data without printing credentials or unrestricted errors (30.9581ms)
✔ source-check rejects shared A and exchange credential values before any request (17.2073ms)
✔ source-check cannot expose a numeric A credential disguised as an adapter error code (36.7771ms)
✔ source-check cannot expose a numeric A credential disguised as an http error code (16.1996ms)
✔ source-watch shows observed, increased, reduced and closed positions then exits on the desktop stop command (1708.2848ms)
✔ source-watch exits on desktop stdin EOF without leaving a reader or polling process behind (190.7485ms)
✔ source-check distinguishes received unmapped array JSON from a connection failure without exposing fields or values (14.5384ms)
✔ source-check distinguishes received unmapped object JSON from a connection failure without exposing fields or values (57.2754ms)
✔ source-watch continues from a received unmapped payload to a mapped first observation without creating history or exposing raw data (2185.8129ms)
✔ account-report for binance needs no A key, uses authenticated GETs only and creates no journal (402.0533ms)
✔ account-report for okx needs no A key, uses authenticated GETs only and creates no journal (401.1273ms)
ℹ tests 371
ℹ suites 0
ℹ pass 371
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 11789.2448
