Skip to content

Roadmap

The product of this repository is evidence: eight markets closed by numbers, with the Retrospective as the closing document and the Design Review as the argument for the instrument that produced them. This document is the plan for what is still worth building, and the boundary that stops it from expanding — the demo that shows the engineering is complete, a personal execution system is one possible request away rather than a backlog item, and everything deferred is recorded here with the reason it was deferred, so that "not now" is a decision rather than an omission.

The seam that makes more possible already exists: Strategy and IMatchingEngine are the only interfaces the pipeline knows about, and src/market/ holds one reader per input format. A live feed is another reader, and paper trading is the existing book and matching engine against that feed.

Where the project stands

Delivered the queue model, the fee model, the two latency legs, the order trace and the queue distribution, four sweeps of the strategy levers, a four-tier gate that re-derives every quoted number, the interval a mean carries, and a three-command demo path
The binding result at a one-tick spread the fee is 2.57 ticks against 0.088 captured, and no lever moves that ratio. On the five free sample days the capture runs 0.035 to 0.462 ticks, and 0.353 at most when the same days are cut to equal half hours, so the ratio holds every day: the best day earns 18% of the fee it pays, the best equal-time day 14%
Closed eight markets, each by a quotient; the inputs and the binding gate of each are in tests/fixtures/verdicts.json and re-derived by tools/study/viability.py on every gate run
Frozen the pre-queue-model line is tagged v1.0-demo
Open the conclusions rest on the free sample days — five months, one day each, cut both by the row count and by the clock — so what is measured is a series of five draws with fewer than thirty fills each, and nothing has been run against a venue's own live feed; the paced replay, the recorder and the websocket reader are in place, so the seam is closed at the desk and what remains is a credential. Phase 2b is the plan from the first positive window to a running system
Stopped the per-fill PnL column, a latency budget in the gate, an id that survives a restart and a fuzz tier — recorded with their verdicts below, not scheduled
Defect, open (P1, 2026-11-28) The replay's P&L does not reconcile with a per-fill decomposition, and the gap is the fill set, not the scale. An average-cost pass over the record's maker rows lands within a cent of the replay's net_usd on 3 of 21 days at 1x and 0 of 21 at the instrument's 10x (2026-11-03 -3.5836, 11-13 +0.9822, 11-23 -7.3281, to the digit), so the earlier ten-times reading was tested and rejected: the replay's basis is the notional's own, the one the fee is charged on, and the multiplier in instrument_spec.h:269 is inert there. The days that miss are the days the replay counts more fills than the record's maker rows carry -- trade_reports=60 against 58 on 2026-11-25, the day with the -3.03 USD gap -- and reading every trade row instead does not close it (0 of 21) because the venue's taker rows are the counterparty's mirrors. What stays open is which rows the replay counted and whether the record loses fills at the writer; the decomposition keeps refusing to quote until that is answered, and no absolute net_usd in the tables is in question meanwhile, because those are on the basis the fee is charged on

Current iteration plan (maintained)

This is the one plan for the next iterations. It is a project-quality plan: cover the technical parts of a trading system in a small, readable implementation, without requiring production connectivity or statistical rigor, and stop at a stated boundary. Every deferred item is a current scope boundary, not a permanent no: a later request can lift it, and the change is recorded here.

Maintenance. At the end of every iteration, update the statuses, the change log and the stop line in this section, and report the diff in the chat. Do not create another planning document; this section plus the existing design, architecture and user documents are the whole plan.

Coverage at a glance

Part of a trading system State Next useful increment Priority
market data: replay, recorder, local websocket done none for the demo done
L2 book, queue models, fees, latency done; participation cap added price impact remains out of scope done
matching, partial fills, self-trade prevention, IOC/FOK done; the venue also refuses an order that would trade on arrival when the run asked for add-liquidity-only none: cancel/replace is refused with a reason under item 11, not deferred done
strategy framework and market making done none done
non-market-making line trend_l2, its 27-cell grid, the two-window scale test that closes the taker variant by non-replication, and the passive entry (--trend-entry=side=own, five own-side runs) that closes the rest -- the fill is adversely selected (markout negative on four of five) and the gross is negative on every name nothing while the closure stands; a new signal is a new row closed
execution algorithms execution_l2 with three schedules, two entry modes and parent-level shortfall against both the arrival price and the window's TWAP; the schedule wins at most half a basis point, posting loses the fills it saves, and size moves the number of crossings but not the cost nothing while the closure stands; a venue with a materially different fee would be a new row closed
pre-trade risk done: switch, fat finger, rate, exposure, position; the exposure cap is the account's when several books share one, so two books cannot each spend it none done
order state done: Pending/Resting/PartiallyFilled/Filled/Cancelled/Rejected, reasons, pending release, IOC/FOK terminals; the venue also refuses an add-liquidity-only order that would trade on arrival cancel/replace, for the reason recorded under item 11 done
portfolio and PnL several instruments in one run against one account: a book, a decision layer, a venue and a pipeline per symbol, per-instrument valuation, and [EXPOSURE] reporting gross against net; a book prints its own [PNL] symbol=, and --close-out prices the exit so a "net" figure that carries a position can be read as the mark it is the maker comparison needs a larger fill count than the free days give; that is data, not code done
broker and gateway simulation paper broker plus gateway faults and timeout queries, and idempotent client order ids: a re-send under an id the venue has already seen is refused rather than filled, so a retry cannot become a second position an id that survives a client restart, which is the snapshot's next_order_id and is a different mechanism done
persistence and recovery a session is written down and taken over: the account, the positions with their entries, the marks, the working orders and the clock, one record per book in a two-symbol run; a resumed run restores the account and asks the venue about each order it inherited a venue that remembers its own fills across a client restart, which is the durable-venue line and not a persistence feature done
live venue done: REST placement and cancels on a demo venue, its private orders channel subscribed on the same login, and an acceptance run on the venue's own book that fills, reconciles and stays inside its cap -- 15 fills, exposure_over_collateral_fills=0, [RECON] status=ok, equity=997.376, [PNL] gross_pnl_usd=0.373523 net_pnl_usd=-2.62371 over ninety seconds; a long session's four gaps are closed on the same route -- a venue-balance [RECON] line, an orders-pending recovery for --snapshot-in, a per-endpoint budget with 429 retries, and --venue-demo for the market leg -- and the evidence for them is the loopback stand-ins in the venue tests, not a further venue run a venue that is not a demo, the demo header becoming a flag, and a live-session recovery matrix P3
market impact and realistic taker fills partial: capacity cap only; there is still no price-impact model none inside the current boundary done
out-of-sample, Sharpe and capacity the Sharpe, volatility, drawdown and Calmar figures are measured on demand behind --metrics; the out-of-sample and capacity studies are still not a demo goal the studies, not the measurement, are out of the demo out
documents and the maintained plan done: one plan, no new documents keep it current; no interview material required done

Parameter management: one registry, immutable profiles, and invariants as a gate (registered 2026-11-30)

Folded into the next-iteration card on 2026-12-01. Its open half is C2 (Slice 1) and C3 (Slices 2-3) below; this section stays for the reasons Slice 0 gives and is no longer maintained as a second ledger.

The question. Three failures in one day -- a $6 stop that did not move when the exposure cap went to $160, a live seat three mechanisms away from the w50b it was meant to run (extra_layers, the stacking ratio, the halt's unit), and a set-key that runs the repository head's allowlist against the host's older binary -- are one defect: a parameter is defined in four places (C++ flag, Python allowlist, markdown table, host file) and only single values are validated, never combinations. Can a machine-read registry plus a set of coupling invariants make each of those three impossible rather than unlikely?

What lands tonight, and what does not. Tonight's window is at 12:30 UTC and every layer of this touches the path the live seat reads, so the order is by risk, not by elegance. Slice 0 (built, read-only): config/param_registry.json and tools/gate/check_params.py, which validate the schema, check five coupling invariants against a concrete profile, and print the coverage count -- nothing on the host, no deploy, no set-key. Slice 1: a profile is what the backtest and the seat both consume (--profile profiles/<name>.yaml, one promote dispatch instead of N set-key calls). Slice 2: live_config.py derives its allowlist from the registry instead of owning a second copy, and the host's own binary validates the config (engine --validate-config) so a head-only key cannot be written. Slice 3: a profile_hash and the key metrics appended to experiments.jsonl, so significance.py reads N from a ledger instead of from anyone's memory.

slice what it changes the bar that closes it
0 config/param_registry.json, tools/gate/check_params.py, profiles/up_w50b_v1.yaml; in the code tier the checker refuses tonight's pre-fix configuration on all three of today's defects ($6 stop vs $160 cap, extra_layers 0 with order_burst 4, ticks and bps both named) and passes tonight's applied one
1 --profile on the replay driver and one promote dispatch for the seat a replay started from up_w50b_v1.yaml reproduces w50b-1230-1530's row to the digit, and the promote writes the same values set-key wrote today
2 live_config.py's allowlist from the registry; engine --validate-config the registry is the only place an authority is written (the tool's SETTABLE is derived), and a key the host's binary does not accept is refused by name before it is written
3 experiments.jsonl, profile_hash in every sweep row significance.py --ledger experiments.jsonl reads N_eff from the file and agrees with the registered 8

The invariants, on one page. Each is a relation the four-places shape let drift, and each names the failure it was written from:

invariant relation the failure it was written from
overshoot (inventory_limit + (1 + extra_layers) * order_size) * P_ref * ctVal <= max_exposure_usd w50b was measured peaking at 69 contracts (152.6 USD) against a file that said 60 -- and the primary quote is half of that overshoot, which is why the formula carries 1 +
stop clamp k * (overshoot notional) * sigma_win <= stop_loss_usd <= beta_eq * E $6 against a $160 cap: it sat 3.8x inside one window's noise
burst order_burst >= 2 * (1 + extra_layers) four orders a refresh on a four-token bucket is enough by exactly one; five layers would silently drop a side
mutual exclusion pause_ticks_per_second and pause_bps_per_second never both two rulers for one threshold is two rows that cannot be compared
authority AGENT_TUNABLE == the tool's SETTABLE, and nothing else is settable OWNER_DELEGATED grew twice in one day while no page said who owns what

What would overturn it. If slice 0's checker passes a configuration that then fails on the host, the invariants are the wrong ones (they are arithmetic about a file, not about a session), and the next bar is a replay of the failing window rather than a stricter rule.

The tree's four lifetimes (registered 2026-11-30)

Folded into the next-iteration card on 2026-12-01. Cuts 2, 3 and 5 are C4 and cut 4 is C1; the counts this section measured (31 orphans, 71 readers) are that card's sizing and stay here as their derivation.

The question. The instrument's source is 6.7 MB (src 1.9, tests 0.8, tools 2.4, docs 1.2, deploy 0.4) and the working tree around it is 55 GB: data/ 42 GB in 1,145 files and out/ 13 GB in 3,528. tools/ is 110 files across eight directories and there are 51 documents. The ratio is 8,000:1 of generated material to source, and every session pays for it twice -- in search time and in the chance of reading a stale copy of a number. The cause is not that the engine grew; it is that four things with four different lifetimes share one tree: experiment scripts that change hourly, live code that must not move, append-only evidence, and documents that restate both. Can four boundaries plus a lifecycle stop the growth without a rewrite?

The four lifetimes, and the rule between them. core (src/, tests/) is admitted slowly and only carries a mechanism that has been measured; ops (deploy/, tools/live/, tools/ops/) is everything that touches the host and the money, and it moves only through the deploy gate; research (tools/study/, tools/sweep/, tools/fetch/, tools/bench/, tools/legacy/) is consumable by design and must be archivable in one command; registry (config/, profiles/, docs/) is the single place a fact is written. The dependency is one-way: research may read any of the others, and nothing under src/ or deploy/ may name a research script -- the existing [LAYERS] check in lint_prose.py is where that is enforced, so the rule is an extension of it rather than a new tool.

# cut the bar that closes it
1 extend before you create, as a .clinerules bullet: a new tool, page, key or top-level directory names the file it could not extend, in the commit message the next three commits each name the file they extended, or the reason none could be
2 an orphan count in the code tier: every file under tools/ whose name nothing outside itself reads, printed as a number and a list the number is on every run and does not grow; each survivor names its reader or moves to archive/studies/YYYY-MM/ by git mv, with the doc and gate greps recorded
3 one entry point: tq <verb> dispatching to the modules that already exist (tq record, tq audit, tq deploy, tq compute) the verbs do what the individual tools do, and the lint refuses a new top-level tools/*.py or tools/*.sh that is not a subcommand of it
4 TQ_DATA_DIR and TQ_OUT_DIR, defaulting to today's paths: every reader resolves its root through one function every recorded row re-derives with both roots outside the tree, and the reference replay hash is unchanged
5 tables generated from the registry: the flag table is rendered from config/param_registry.json and the tool's own map docs/L2_FLAGS.md's table is generated, and lint_prose.py refuses a hand-written row for a registered key

The two numbers the cuts are sized from (measured 2026-11-30 11:38Z). Cut 2: 31 files under tools/ have no consumer in the automation (verify_l2.sh, the workflows, deploy/, tests/) -- and the documented hand-run entrance is among them (.run.sh's verbs reach soak.sh, and the rules themselves name quiet.sh and install_post_commit.sh), so the number to hold is the subset with neither a reader nor a documented entrance, which is the definition the first run of cut 2 has to print. Cut 4: 71 files under tools/, deploy/, tests/ and .github/ resolve a data/ or out/ path as a string, which is why the root becomes a function every reader calls rather than a rename.

What is not in this card. No directory is renamed and no file is moved before the 12:30 window: verify_l2.sh, tools/gate/*, tools/live/* and deploy/* are on the deploy and ExecStartPre path, and a reorganisation in their hour is the untested branch this repository's own rules refuse. Cut 4 is the one the owner feels most directly -- a download lands outside data/ today and someone writes a script to file it -- and it is also the one that touches the most readers, so it goes first after the close and carries the re-derivation bar above.

What would overturn it. If cut 2's count is small (a handful of orphans) then the bloat is the generated 55 GB and not the tool count, and the honest response is cut 4 alone plus a retention decision on out/jobs/done/ -- which the data_inventory.py audit already knows how to print and refuses to prune without a named rule.

L2 experiment card: releasing the local order budget (registered and confirmed 2026-11-28, awaiting the window)

Closed 2026-12-01, on the window it was waiting for. The 2026-11-30 close reads submitted=1473, rate_limited=0, post_only_cancels=19 (9 venue declines + 10 own cancels), fills=89 -- so the local order budget never refused an order and the four settings this card would have moved are not the binding cap. The card is closed with nothing applied (the settings stay as they are), because its own question -- do the caps turn the live window's 12 fills into the replay's count -- cannot be answered here: the fills are 89 and the caps are idle.

The question. The first live window submitted 2,591 orders and reached the venue with 201: 2,390 were refused by link.venue_max_orders=200, and 18,098 placement attempts died one layer earlier in the risk bucket (engine.max_orders_per_second=8 with --order-burst=1). The replay has neither cap and fills 45 orders a window. Does releasing the local budget turn the live window's 12 fills into the replay's count without breaking anything else?

The numbers, which are the point of the card. One arm, because all three are the same mechanism -- the local order budget -- and none of them touches a price or a size.

setting now card why this number who may change it
link.venue_max_orders 200 3000 a first cap above what the strategy actually asks (2,591 in the measured window) with headroom for a second seat operator
link.venue_orders_per_second 2 20 ten times today and far under the venue's own budget; the point is that the venue cap stops binding first instrument (agent key)
engine.max_orders_per_second 8 20 with 8/s the risk bucket is the binding cap even after the venue's is raised operator
--order-burst 1 4 a one-token bucket refuses the second leg of a pair placed inside 125 ms; four lets a two-sided re-quote go out together. Reachable from live.yaml since 2026-11-28 as engine.order_burst -- until then it existed only as a command-line flag, and a unit-started session cannot pass one the agent, after the owner delegated the three budget keys (2026-11-28)
engine.advance_debounce_ms 40000 40000, unchanged the 40 ms arm read better on one day (-0.2317 against +0.1066 on 2026-11-26) and that is the only sample it has; changing it here would mix a price-refresh knob into a budget arm instrument (agent key)

The bar, registered before the run. Measured on the live journal of the next window, all five at once: refused_by_adapter / submitted_orders below 20% (92% today), rate_limited_orders below 2,000 (18,098 today), fills of 20 or more (12 today), capture_per_fill > 0 (and the mean markout_per_unit_ticks reported beside it, whose 28-day replay median is +0.416), and residual = 0 with [RECON] at=end ok. A venue-side rate refusal (venue_refusals above 2) fails the arm: the point is to move the binding cap, not to trade the venue's patience.

What would overturn it. Fewer than 20 fills with the refusals below 20% says the budget was never the constraint and the 58:1 quote split is the strategy's own; more than 20 fills with a markout below the replay's says the extra orders were adverse selection, and the budget is a feature rather than a bug.

Read on 2026-11-28, and its one failing clause was an instrument defect. The window answered the card: refusals 0.0%, 34 fills against 12, capture +2.662 ticks, markout +1.221, residual 0 with [RECON] at=end ok -- four of the five clauses met -- while rate_limited read 11,086. That last number was not the strategy's: the risk bucket's clock divided a millisecond timestamp by 1e6 (found and fixed 2026-11-28 UTC), so the 20/s allowance paid 148 tokens in two hours instead of 144,000, and is_reducing exempted the 193 sell quotes while the book was long. The session submitted 343 orders rather than the 144,000 the failed clause had been read as: it wanted 1.59 orders a second, and 19.2 messages bought a fill where the replay's 100 s arm paid 26.6. So the card closes as the budget was never the constraint, and the clause is re-read after the fix rather than after a strategy change.

Read on 2026-11-29, the second window after the fix, and the one clause that fires. The five clauses were met at once: refusals 0.0%, rate_limited 0 (against 2,000), 56 fills (against 20), capture +2.766 ticks, residual 0 with [RECON] at=end ok. The card's own overturning clause fires on the other half: 56 fills is more than 20, and the markout is +0.209 against the replay's 28-day +0.416 -- so the extra orders were, by the registered rule, more adversely selected than the replay's, and the seven days of fills it bought cost more than 34 did. The window's money was negative (net_pnl_usd -0.226); the wind-down is the part of it that now has a measured price: the venue's own statement for 2026-11-29 reads one taker sell of 7 contracts at 0.2177, realized -0.0813 and fee -0.00761950, a balance change of -0.0889 on a 15.24 USD notional -- -58.3 bps, against the replay's static [SETTLE] assumption of 2.30 bps. That -58.3 is the carried position's mark, not the exit's slippage (entry ~0.21886 against a fill at 0.2177): the exit itself filled at the venue's own bid, against a limit sent through it. The two items this window registered -- calibrate the settle price as a depth walk at 15:30, and measure a 30-second chased-IOC close -- are read below, and the second of them closes on that reading rather than on a run.

The settle price, calibrated on the two closes whose book is on disk (2026-11-30). tools/live/close_cost.py rebuilds the day's 400-level book at 15:30 from the archive itself and walks it for the residual. On 2026-11-27 the book is four ticks wide (0.1764 / 0.1768, mid 0.1766) and it takes 50 contracts at the bid itself -- 2.00 ticks, -11.33 bps from the mid. On 2026-11-26 it is three ticks wide (0.2161 / 0.2164) and takes 104 contracts at 0.216087 -- 1.63 ticks, -7.51 bps. The depth penalty over the largest residual the month carried is therefore 0.13 ticks, and the price a close pays is the touch, not one tick past it: --settle-slippage-ticks=1 charges a tick the book did not take. Three consequences, and the third is the registered item.

  1. The constant is validated in kind and pessimistic by one tick: 22.0 bps of the closed notional on 11-27 against the book's 16.3 (5 bps taker + 3.00 ticks against 5 + 2.00; arithmetic on the tokens below), 16.6 against 12.5 on 11-26.
  2. No recorded row moves. A residual is at most ~1.5 percent of a day's maker notional, so 4 to 6 bps of a close is about 0.1 bps of settled_net_bps: 11-26's whole handover reads settle_bps=0.241645 in the 28-day row and would read 0.15 at zero slippage (arithmetic from that row). The extra tick is therefore left where it is -- a pessimism the rows cannot see is not worth a re-record -- and the calibration is what says so.
  3. The chased IOC closes on the measured case rather than on a build. Its mechanism is a residual the touch cannot take; at both closes whose book is on disk the touch took the whole residual at its own price, and 11-29's live close filled 7 contracts at the venue's bid. It reopens at the first [WIND-DOWN] that prints closed < position, no_liquidity=1 or refused=1 on a close whose book is on disk -- a trigger, not a schedule.

The 682 post-only refusals were our own cancels (2026-11-30). The window's [EXECUTION] line read 738 submissions, 56 fills and post_only_cancels=682, and the three decompose exactly -- 679 cancels were the engine's own and 738 = 682 + 56 -- which is the tell that the venue never refused them. tools/sweep/post_only_refusals.sh measures what a venue does refuse, at the live file's shape (one contract a clip, ten a cap) and the frozen cell's, on the flat day and the trend day: 0.0 / 0.0 / 0.3 percent of 720 to 789 quotes at 0, 10 ms and 100 ms on 2026-11-19, 0.0 / 0.0 / 0.5 of 653 to 683 on 2026-11-26; at 0.3 s, 1 s and 3 s it reads 0.6, 2.2 and 3.3 percent; and moving the quote from three ticks to one moves it by 0.1 to 0.4 points. No latency and no distance this instrument can have produces 92 percent, so the counter was not reading the venue: both relays labelled every cancel of a post-only order post_only (tools/live/venue_relay.py, src/lines/venue_order_translator.cpp), and the label is now the cancel this client sent, pinned by venue_order_translator_test and the relay's own self-test. What the window's record can still bound without its rows: of the 682, at least 3 were cancelled with no client cancel in flight (738 - 56 - 679) and at most all of them, and the split is the record dump's to name -- --ops record --since/--until, built on 2026-11-30 (dispatch_deploy.sh record), so the split is a number now rather than a bound. The live readings this counter produced before this date (87 of 172, 59 of 100) are withdrawn.

The multi-symbol screen's two tiers, registered before the b9 rows are read (2026-11-29). The six admission clauses are not relaxed for any row: a fills median of 25 or more, a positive closed median, 85% or more positive days, the tail inside the red line, CE(0.02) above the line, and a sparse-day share below the limit. A symbol that passes all six joins the reserve pool even when its dollars per window sit below UP's (10 clips, 13:30-15:30: 0.719 USD median): a 99 USD account cannot fund a second seat today, and the reserve is where a symbol waits for the execution fixes and the margin that would let it run beside UP as a low-correlation seat. Replacement -- the main seat's instrument -- requires the six clauses and dollars per window above UP's. Neither tier drops CE or the sparse-day clause: a row that fails either is not admitted at any tier, and a row quoted without those two numbers is a row not yet read.

A cheap step 0 comes before any of that, registered 2026-11-30 on the three that failed. The 28-day admission is what refused BLUR, BABY and DNA (CE -3.50 / -4.09 / -2.26 against UP's +9.19), but each cost a month of depth and a full replay to learn what a 7-day half-hour profile answers for free: okx_halfhour_profile.py prints, per 30-minute bucket, the median trade rate and the duration-weighted half-spread across days, so a symbol whose 12:30-15:30 buckets carry under half the day's best contiguous two hours, or whose half-spread there cannot pay one tick of fee (2 bps maker), is refused before the depth is fetched. prescreen-pool runs it over the five 7-day candidates already on disk (SSV, PIEVERSE, ONE, OL, GRVT). The pre-screen is a filter and not an admission: a symbol that passes it still faces all six clauses, so it can refuse a pool and can never admit one. Two of the five pass, and the run corrected the criterion rather than the pool. PIEVERSE is the only candidate with density -- 6.77 and 6.97 trades a second, 7 of 7 days -- and the other four are refused by it (SSV 0.082, ONE 1.09, OL 0.23, GRVT 0.68). PIEVERSE was then refused on a different clause, okx_download_rank's capture at three ticks (0.96 bps) against the 2.00 bps fee, and that comparison is the criterion's own defect: three ticks is a BTC-shaped distance, a queue position on a one-tick book and an improvement of the touch on a 7.7-tick one. At its own touch PIEVERSE captures 2.45 bps against 2.00, so +0.45 bps a fill before adverse selection -- thin, not dead, and the kind of edge a 6.8-a-second book exists to carry. A distance-dependent capture may therefore rank a candidate and may not refuse one; the refusal is the fee against the capture at the distance the tick regime allows. The density floor is derived, not chosen. A median rate is a report until it is converted into what the seat needs: fills a day >= (the day's cost) / (the per-fill capture times the clip's notional), both terms already measured at the row's own cell. okx_halfhour_profile.py --gate-rate (2.5 a second by default) is that report's threshold and not the refusal's, and the absolute floor enters beside the relative test -- the window against the day's best two contiguous hours -- because the relative test alone passes a uniformly dead symbol by being busiest while this account is awake, which is how a 0.07-a-second book could reach a seat's queue.

How it is applied and undone. One --ops set-key dispatch carries all four values -- key and value take comma-separated lists zipped in order -- and live_config.py writes them atomically: one backup, and no write at all if any of them is refused. The three the owner delegated on 2026-11-28 (engine.max_orders_per_second, engine.order_burst, link.venue_max_orders) are settable; engine.advance_debounce_ms stays at 40000 and link.venue_orders_per_second was already the instrument's. A key whose line the file does not carry yet is refused unless the dispatch asks for add, because a new key is a decision. Nothing is restarted. The unit reads the file at ExecStartPre, so the write lands on the next start -- and between windows the next start is toyquant-window-start.timer at 13:30 UTC. --ops restart is for a hotfix inside a window and it is not part of applying this card: a restart between windows opens a two-hour session hours before the registered one and spends the window the arm is measured on. The previous file is the backup set-key left beside it, and the rollback is the same dispatch with the old numbers.

And the leader-state gate is not part of this card. |BTC 3 s return| was found on the seven days that have BTC's book; testing it out of sample needs the twenty-one days block 4 is fetching, and the first test is a fill-level counterfactual (drop the fills whose leader state was moving, recompute the mean markout), not a PnL -- an engine input for the leader's state is a wiring change that only earns its place if that counterfactual clears.

Deploy experiment card: two cuts in the release path (registered 2026-11-28, before either is built)

Folded into the next-iteration card on 2026-12-01. Its two cuts are the release-path halves of C2; the reasons they were registered stay here.

The question. A deploy runs one path for every change: build, test, the seventeen-rule audit, a tar, an unpack, an activation and a health check. That is right for a binary and wrong for a one-line config edit -- and it is also the path with seven failures behind it. Two cuts are proposed; this card says what each has to clear and in what order, because both of them touch the path that has to work at 13:30 UTC.

What the tree already carries, measured on the last session's commits. The review that asked for this card listed four items; two of them landed during the live-line work and the card starts from that, not from the list.

item state where
the activation sequence landed deploy/activate.sh -- bundled by the package step (deploy.yml:196) and called by the deploy (:315): daemon-reload -> reset-failed -> start in a bounded retry that prints the attempt it succeeded on, and on giving up prints LoadState, FragmentPath, systemctl cat and the unit's journal, then wait_for_ports.sh and preflight.sh
rollback, as a command landed deploy/rollback.sh restores toy_quant.prev -- copied before the unpack (deploy.yml:244) -- restarts and runs the health check; a red job names it (deploy.yml:324)
rollback, automatic landed 2026-11-28 deploy/activate.sh runs check_health.sh, re-runs it five seconds later when the first read is red, and only a second red calls deploy/rollback.sh --refuse <RELEASE>; the rollback's own health check is the deploy's verdict
release-path split landed and measured 2026-11-28 deploy/release_path.py classifies a diff against the card's six paths; deploy.yml gains classify and deploy-light (rsync, bootstrap, activate.sh, no program). The switch is the repository variable TOYQUANT_LIGHT_PATH, and with it on a config-only diff reached the host in 21.1 s against the full path's 164.9
the two-strike rule landed 2026-11-28 deploy.yml's remote script reads reverted_release before the mkdir, the tar and the bootstrap and exits 2 naming the release; tools/gate/check_deploy.py's eighteenth rule refuses the absence of either half

Cut 1 -- automatic rollback on the second red health check, and a latch against the third attempt. On a red health check the job re-runs check_health.sh once, ten seconds later, and only a second red result calls deploy/rollback.sh; the rollback's own health check is what makes the job's verdict, and the reverted commit is written to /opt/toyquant/data/runtime/reverted_release, which the next deploy reads: a second dispatch of the same commit prints the reason and exits 2 without touching the host. The re-run exists because the first red result has a history of being a sampling artifact -- check_health.sh once read "activating" mid-restart and reported zero processes on a healthy unit -- and a rollback that fires on that would revert a good binary, which is worse than the failure it was written for.

The bar, registered before the build: an artifact built with -march=native (the SIGILL class, the failure that crash-looped 35 times) deployed to the host ends with toy_quant.prev running, check_health.sh green, the job red, and reverted <sha> in the log; a re-dispatch of that same commit exits 2 in under twenty seconds with no write to the host; and a deploy of a good binary with one deliberately red health reading does not revert. Measured between windows (04:00-12:00 UTC), never inside 13:30-15:30. The red path is dropped from the plan, by the owner's decision of 2026-11-29 (it was first closed as not-done on 2026-11-28, and the second decision is that it does not come back): a deliberately red deploy is the only way to exercise the rollback end to end, and the owner judged that not worth the risk on a host whose next event is a window. So it is not a gap to be picked up between windows -- it is out of the queue. What stands is the synthetic proof (check_deploy.py's eighteenth rule fires on each half of the latch, its nineteenth on a widened allowlist and on a program in the light job) plus four green deploys' worth of the code path being read. The first real red deploy will be the test, and that sentence stays here so the absence reads as a decision rather than an oversight. Nothing in either cut makes the window start, so nothing depends on it.

Cut 2 -- the release-path split. A diff that touches only config/, deploy/*.service, deploy/*.timer, deploy/*.env.example, deploy/journald/ and deploy/logrotate/ takes a config-only path: live_config.py --check, an rsync of exactly those files, activate.sh, the health check -- no build, no tests, no tar, no seventeen-rule audit. Any file outside that list takes the full path, which is unchanged. The classifier is deliberately conservative and its allowlist is written in one place, because the failure mode it invites is a config change that needs a binary: a new key the running program does not read is the coupling class check_deploy's rule_coupling exists for, and it must never be classified as light.

The bar: a config-only change (one value in live.yaml) from dispatch to a green health check in under 60 seconds, measured from the runner's first line to the host's check_health.sh line; the full path still green on a src/ change; and check_deploy gains a rule that refuses a light classification whose file list is wider than those six paths, plus a rule that refuses a light path which ships a binary. Measured 2026-11-28 (run 46136078091, and the card is closed): classify: light, only classify and deploy-light ran, and the runner's first line at 10:37:50.137 reached the host's activation report at 10:38:11.226 -- 21.1 seconds, against 164.9 for the last full deploy (run 46133428662, 10:04:38 to preflight: OK at 10:07:22.9). The endpoint is the activation's report rather than a check_health.sh line because a green health line needs a running session and this card forbids deploying inside 13:30-15:30; the substitution is written here rather than made quietly in the number, and the owner's instruction of 2026-11-28 was to close the bar if it was not reachable as written. The switch is a repository variable (TOYQUANT_LIGHT_PATH=yes), not a secret, so a reader can see whether the fast path is on; and one wording the build corrected: the operator's live.yaml never travels by a deploy at all (it is --ops set-key's), so the light path is about config/, the units, the timers, the env templates and the journald/logrotate files. The first attempt failed at Host key verification failed -- the light job copied the full job's key-install step without its ssh-keyscan line -- and that is 576712a; the run after it is the one measured.

Why Cut 1 first, and why neither is built in the hour before the window. Tonight's session is started by toyquant-window-start.timer, not by a deploy: nothing in either cut makes the window start. What tonight needs is the order_burst mapping key and the three budget values, which travel through the existing path -- the one whose activation now retries through the race and whose rollback is one command. Building a second path in the same hour as the deploy that must land would put the untested branch on the critical line, and the measurement that decides it is the window's own journal. So the order is: land the key, deploy through the current path, read the window, and build the two cuts in priority order -- Cut 1 before Cut 2, because a rollback protects every deploy while a split only shortens some of them. (A measurement still names its safety window: a deploy inside 13:30-15:30 is refused, which is a restriction on when, not a schedule for the work.)

The research queue after the closures (registered 2026-11-28; one line per question, one bar each)

The proposal this section answers listed seven lines in three tiers. The order below is the same material sorted by what can be answered with the tree and the data as they stand, because a question whose data needs a week of fetching is not "first priority" in a session that has an hour -- it is first in the queue, and the queue is advanced one closed row at a time. Two lines moved: the debounce ladder was in "week two" and is the first offline job after the counterfactual, because it needs no code and no data; the live-replay calibration stayed where the proposal put it but is the owner's to run.

Tier 1 -- answerable now, with the data on disk.

# question depends on the bar that closes it
1 does the leader's volatility state (\|ΔBTC\|) hold up out of sample? BTC's 21 depth days (block 4, landing) and tools/study/leader_state_out_of_sample.py on the 21 days the gate was never measured on: the flat bucket's mean markout stays materially above the pooled mean, and dropping the moving-state fills does not cost more than a fifth of the fills for it. Ran 2026-11-28 and it fails both clauses: on 2,518 fills the flat bucket's mean is -0.12 bps against a pooled +0.35, with the moving buckets at +0.41, +1.85 and +5.75/+5.32 -- the effect reversed rather than decayed -- and dropping the moving fills costs 31 percent of them. No engine input is bought; the row is in the Retrospective's frontier map as a method closure, and the line is closed outright on 2026-11-28: a 77-118 ms round trip cannot act on a 3 s state that turns inside the trip, so no further compute goes to it
4 where is the debounce's turning point? nothing new: 60 days of UP depth, four arms (40000, 5000, 1000, 250 ms) on the ten-contract cell a fill share and a markout that both hold above the control's on the same 59 measured days, with the fee column unchanged; a monotone slide either way is an answer too, and the number that stops it is where the pooled median turns. Ran 2026-11-28 over the sixty days: the turning point is the recorded 40000 ms. The control reads +17.22 on 44 of 59 with 38 fills; 5000, 1000 and 250 read +3.84, +6.84 and +4.62 on 37, 44 and 41 of 60 with 61, 63 and 69 fills, so every shorter window buys fills and gives up the median, the tail multiple and the dollars -- and not monotonically. The frozen cell stays; the four rows are in the CHANGELOG
6a is NES steady over a second month? 32 more NES days (prefetch_windows.sh), then the same cell the seat floor and the two ranking columns of the admission rule below, on 59 days instead of 27
7 does the cell's ranking survive the latency the wire actually has? nothing new: the sixty days of cuts are on disk and the cell already carries a latency flag the bar: every arm's ordering -- control, f1_tox2, the four debounce values, the A-S ladder -- is the same by median and by tail at the measured 77-118 ms as at the cell's 10 ms. If the ordering flips, every conclusion computed at 10 ms is a conclusion about a market this project does not trade, and the affected rows are re-derived rather than quoted. Ran 2026-11-28 and the bar fails: at --latency-us 100000 over the same sixty days the control's fills fall 38 to 10, its closed median 17.22 to 5.85, its net median +14.79 to -6.97 and its positive days 44 to 31, with the residual settled at the far touch eating the edge the quotes no longer earn; and the A-S 25 bps arm inverts against the control -- at 10 ms it carried the better worst day (-36.30 against -75.19) and at 100 ms the worse one (-105.31 against -54.33). So the levels and at least one ranking are 10 ms findings, and the seat rule's own medians (+15.70 NES, +12.27 UP) are 10 ms numbers -- re-run on NES's own twenty-eight days, the floor falls from +15.70 to +3.49 with nine fills instead of twenty-six, and five dead windows of twenty-eight against a 15 percent ceiling. The debounce ladder inverts too: at 10 ms every shorter window gave up the median against the frozen 40000 ms (+17.22 control against +3.84, +6.84 and +4.62), and at 100 ms the 1000 ms arm reads +7.75 closed and +11.46 net against the control's +5.85 and -6.97, with the dollars 0.1096 against -0.0217 -- so "40000 is the turning point" is a ten-millisecond finding. And both of those columns were measured through a unit defect found on 2026-11-28 UTC: MatchingEngine added --latency-us to the market clock unconverted, so on a millisecond cut this row's "10 ms" arm is ten seconds and its "100 ms" arm a hundred -- the row is re-derived at 100 clock units (--latency-us=100) before any of its numbers is quoted again. Re-derived 2026-11-29 UTC and the bar fails on its own terms: the orderings flip. Twenty-six arms over the sixty days at both latencies (/tmp/tq/rerec/<arm>-<lat>/, read by sweep_summary.py --read): the control reads +13.03 closed on 42 of 59 with 32 fills at 10 ms and +16.32 on 39 of 60 with 30 at 100 ms, while the three toxicity arms read +15.44 at 10 ms and +15.25 to +15.94 at 100 ms -- so the gate beats the control on the median at 10 ms and loses to it at 100 ms, and the A-S 25 bps arm moves the same way (+13.31 to +14.53). The latency also helps rather than hurts the maker on this sample (control and PROS both read better at 100 ms than at 10 ms), which makes the effect non-monotone against the ten-second rows: 10 ms, 100 ms and 10 s are three regimes, not a ladder. Two caveats carried with the table: the re-record runs the fixed volatility halt, so its fill counts (32 / 30 against the recorded 38) are not a pure latency comparison, and the three toxicity arms are byte-identical at 10 ms -- the check that separates "the flow trigger dominates above two ticks" from "the flag never reached the engine" is one day at two values, registered below

| 9 | is the maker's capture a property of the strategy, or of the two hours it was measured in? | nothing new: sixty days of UP depth on disk, and the cell now carries --start/--end (tools/sweep/window_grid.sh) | the bar: on twenty-eight days, an alternative two-hour slot replaces 13:30-15:30 only if its closed median beats the recorded window's by more than the same-window day-to-day spread -- the gap between the median and the leave-one-out median that sweep_summary.py prints -- with the fill floor held (median 40 or more) and its worst net day at -120 bps or better. Anything less closes the row with "the schedule costs nothing measurable", which is a result and not a null: it says the two hours are free, and that what the account's availability costs is not the clock. Why this is a line rather than a flag: every closure in the Retrospective was measured inside that window, and the window is a restriction written before measurement -- the operator is available then -- so no row in the frontier map prices the constraint itself. Moving the live window stays the owner's decision either way (it is hours, not a flag); this measures what the hours are worth. Ran on 2026-11-29 and the bar fails, in the direction that closes the line: tools/sweep/window_grid.sh over seven days put the four slots at 00:30 +4.32 / 63 fills, 07:30 +13.66 / 66, 13:30 +16.82 / 52 and 20:30 +21.34 / 45 -- the evening slot leading by 4.5 bps -- and the twenty-eight-day run of that slot (win2030-28d, 10 ms, the cell's own flags) reads +11.52 closed on 27 days, median fills 22, against the recorded window's 28-day control +12.27 on 45 fills. So the screen's 4.5-bps lead was the seven-day sample talking: at the resolution the row was registered on, the evening slot is below the recorded window's median and fails the fill floor (22 against 40), while its tail is better behaved (worst day -24.45 against the control's -75.19, tail multiple 2.12) -- a thinner book, not a better hour. The row's first answer, and what moved it. The evening slot closed with the sentence the registration asked for -- the schedule costs nothing measurable at 20:30-22:30 -- and its tail difference is carried forward as an observation rather than a lever (a thinner evening book may suit a smaller clip; that is a different row and it is not registered). The midday slot was then run at the same resolution and moved the answer the other way: 12:30-14:30 reads +24.57 closed on 42 fills, 23 of 28 positive, leave-one-out 24.31, CE 16.47, worst day -14.80 (win1230-28d, 10 ms, the same twenty-eight days), against the control's +12.27 on 45 fills -- a 12.3-bps lead where the same-window spread (median minus leave-one-out) is 0.26, the fill floor holds at 42 against 40, and the worst day is inside -120 bps. So the schedule is not free: the recorded window is not the best two hours of the day at this resolution. What keeps the seat at 13:30 is the latency every row above was measured at -- 10 ms against a host route of about 100 ms -- so the replacement is registered, not made: win1230-28d-100ms and the control win1330-28d-100ms run the same days at 100 ms, and the ordering there decides -- both are tools/sweep/up_ten_contract_cell.sh --arm f1_control --latency-us 100000 with only --start/--end moved (12:30-14:30 and 13:30-15:30), and win0630-28d-100ms adds the non-overlapping 06:30-08:30 slot at the same latency for the second-window question. The evening slot's failure stands; it and the midday pass are different slots. At the wire's latency the midday lead does not survive (2026-11-29). Both slots were then run on the same days with --latency-us 100000: 12:30-14:30 reads +23.58 on 44 fills (24/28, leave-one-out 23.35, CE 14.14, worst day -25.24) against the recorded window's +21.27 on 42 fills (23/28, leave-one-out 21.14, CE 15.96, worst day -29.14). The gap falls from 12.3 to 2.31 bps while the control itself moves +9.0 bps (12.27 -> 21.27) between the two latencies -- so the slot difference is smaller than the movement the latency assumption produces on its own, and under the owner's risk ruler the recorded window leads (15.96 against 14.14). The window stays at 13:30-15:30. What the panorama's +25.43 was, mostly, is the ten-millisecond wire; the funnel did its job (seven days, then twenty-eight at 10 ms, then twenty-eight at the wire), and the second-window question is now 06:30-08:30's, not the midday's. And that question is answered too (2026-11-29): win0630-28d-100ms reads +18.99 on 37 fills (20/28, leave-one-out 18.93, CE 4.97, worst day -72.88) -- under the 40-fill floor and under the control's 100 ms leave-one-out of 21.14, so it fails its registered bar on two clauses. No second window is built on the current evidence: the live line stays one window a day, and a future candidate has to arrive with its own pre-registered bar and the twenty-eight-day path at 100 ms -- the seven-day screen's lead has now been wrong twice (20:30 and 12:30), which is the one thing both failures agree on. | dc7ea37 |

Tier 2 -- answerable after one piece of work that is not a measurement.

# question what stands in the way the bar
3 can a soft inventory skew narrow the close without cutting the two-sided spread? a new engine key: the wind_down_* family is a hard stop and the throttle key pauses the adding side, so "lean, do not stop" is a code change first on 60 days: worst day materially better than the control's -75.19 with the median not below it, and fills within a tenth of the control's. Built and measured 2026-11-28 and the bar fails: --as-skew-bps=B with --session-start=HH:MM shifts both quotes against the carried position by B bps at full inventory and a full session remaining, relaxing to nothing at the close (Avellaneda-Stoikov's (T - t), the greeks folded into one number). Over sixty days the tail improves monotonically -- worst day -75.19 to -47.76, -35.31 and -36.30 at 10, 16 and 25 bps, tail multiple 4.37 to 3.68, 3.02 and 2.24 -- and the median is below the control at every value (17.22 to 12.98, 11.68 and 16.23) with fills unchanged (36/38/38). The dip at 16 bps against 25 says the median differences are inside the sample's noise, so the one robust statement is the trade: a tail multiple of 2.24 for 0.99 bps of median and one fewer positive day. As a seat it does not clear the admission rule, which ranks the median first; a reopen changes the mechanism, not the value
5 is the perp-index basis an inventory bias? the data question is answered (2026-11-28): the index series exists. /api/v5/market/index-candles?instId=UP-USDT answers code 0 (0.1997 to 0.2001 on a live bar) and /api/v5/market/history-index-candles serves 1-minute bars at least 30 days back (UP reads 0.1388 at a 30-day-old stamp), free and without a key -- so what stands in the way is the measurement, not the feed. The earlier note (no UP spot book) described the spot instrument and not the index the basis's extreme-negative decile must show a fill asymmetry whose sign is stable across the two months, before it is worth wiring
2 how far is live from replay once the budget is released? the owner's set-key dispatch and five to seven windows, each two hours markout_per_unit_ticks inside the replay's own interval across 300+ non-blocked fills, with the cancel-race slippage named
10 can one volatility-halt threshold mean the same thing on a different instrument? --pause-ticks-per-second is absolute ticks a second and nothing else -- measured 2026-11-29, the live seat runs 6, which on UP (1 tick = 5.26 bps at 0.19) is 31.6 bps/s, on a 1.5-bps-tick contract is 9 bps/s (it halts on ordinary noise) and on a 12-bps tick is 72 bps/s (too late to help). --as-skew-bps and --throttle-adverse-bps are already in bps, so the halt is the last absolute-tick lever standing between the params and a second instrument a pause_bps_per_second key (the threshold as a price speed in bps/s, converted at the current mid; mutually exclusive with the tick form, both kept) reproduces the registered 6 against 9 ordering on UP's sixty days -- the pair that made the switch (pause 6: +10.56 median, CE +5.57, worst day -57.40, 178 pauses; pause 9: +14.32, CE +1.56, -89.29, 75 pauses) -- and then holds one bps/s threshold across BLUR/DNA/BABY without the pause count exploding on one instrument and vanishing on another. The $200 single-window scale-up stays shelved
8 what does a live session actually do, order by order? the live leg writes no order record: live_config.py has no record_orders key and the unit's ExecStart takes its flags from that map, so a window leaves one summary line at 15:30 and nothing per order -- no submission-to-ack distribution, no refusal reasons, no per-fill edge, and no way to compare the record's fill set against the venue's the bar: one window whose record carries every submission, cancel and acknowledgement. From it: p50, p95 and p99 of submission to acknowledgement; the refusal reasons as a distribution rather than one ratio; and the record's maker fills equal to the venue's own trade count for the same window, which is the fill-set question answered on live data instead of on a replay

Tier 3 -- depends on the rows above.

# question depends on
6b which two or three seats hold a portfolio 6a for NES, 1 for the state gate, and the correlation of the seats' bad days (already measured once: r = 0.039)
7 dynamic size and the intraday circuit breaker a seat with a stable positive median at one contract, and a tail baseline that is an event rather than a number: the C bucket's -250.5 bps is one day (2026-11-22), so a size ladder must be calibrated on the count of such days, not on the single worst print

The live line's next shape: N seats, more windows, one gate (registered 2026-11-29)

Folded into the next-iteration card on 2026-12-01. Its live-seat items are A2 and A4, its schedule item is the per-seat hours the tree now carries (a seat's WINDOW_START/WINDOW_STOP become timer drop-ins), and the rest is C2. Nothing here is maintained separately.

The owner's three instructions of 2026-11-29, in the order they are worth taking: the second seat must be the second of N rather than a pair, more windows a day because the data and the bugs are what is scarce, and NES is a cyclical instrument that needs a gate rather than a permanent seat. The cuts below are ordered by what can be answered with the tree as it stands; each names the fact that closes it.

# cut what it changes closes when
L1 one ledger row per seat (daily_report.py --unit, one CSV per seat, --ops ledger naming the seat) today the report reads toyquant-live only, so a second seat's window leaves a journal and no row -- N seats would be N unmeasured journals two seats' rows appear from one window, each with its own fills and [RECON]
L2 the seat inventory (--ops seats: the seats file, each seat's ceiling and ports, the sum against the account's, and each seat's last [RECON]) the sum and the port uniqueness are checked at write time now; nothing answers "what does this host carry" in one line one dispatch answers the whole host, and a hand-edited file is caught by it. Landed 2026-11-29: deploy/seat_inventory.sh prints one line a seat (instrument, ceiling, both ports, unit state and restarts, last [RECON] at=end) and then the ceiling sum beside the account's own equity from the probe, as a ratio -- on the live pair that first read 160 notional against 99.29 cash (1.61x), which is a leverage statement for the owner rather than a fault of the inventory. A seat with missing files is named and the rest still print, and the exit is non-zero. ops.yml offers the action and check_deploy's ops-action rule holds the choice, the case and the package together
L3 a slot is a schedule entry, not a unit (N OnCalendar= lines on one seat timer; the engine ends itself at ws_seconds) a window today is a timer pair per seat, so four windows × three seats is twelve units to keep in step; the engine already stops itself, and wind_down_end is the only fixed clock in the way two consecutive 2-hour slots run from one unit, the second with its own wind-down, and no position crosses the gap. Not built, and closed on the evidence (2026-11-29): the midday candidate that passed at 10 ms fails at 100 ms, and win0630-28d-100ms -- the best non-overlapping slot -- reads 37 fills and a leave-one-out of 18.93 against the control's 21.14, two clauses short of its bar. A schedule with no passing slot is a second way to run the same two hours; reopening needs a candidate registered on a mechanism (a different clip, a state gate, a continuous seat), not another seven-day screen
L4 the liquidity gate (a gate tool beside the other live tools, reading a seat's last three days of venue volume -- volCcy24h from the public ticker, or the tape's own hourly ticks -- against a per-seat floor; the window timer's ExecStartPre refuses a dormant seat) a cyclical instrument quoted through its dead season pays the fee and earns nothing; the gate is the difference between "the instrument is in a good phase" and "the fee was paid in a bad one" a seat's gate closes on a measured dead day (the 9-10 月 NES week is the fixture) and opens on a live one, and the engine never starts behind a closed gate. And since 2026-11-29 the numbers the gate would read are on the record: daily_report.py writes turnover_24h_usd, oi_change_24h_pct and funding_rate for the 24 hours before each window, and tools/study/env_columns.py joins those three to a sweep's per-day rows -- so "the instrument is in a good phase" is measured before the gate exists, and a cross-month reversal (the NES case) is read as market-versus-engine instead of by memory
L5 the calendar (deploy/calendar.yaml + /etc/toyquant/calendar.d/, both layers; tools/live/calendar_gate.py is both live units' ExecStartPre) a cliff release and a macro print are both scheduled unilateral events, and one of them -- the venue's own maintenance -- is announced at short notice, so it is fetched rather than written down: sync_venue_calendar.py runs from toyquant-calendar.timer at 01:00 UTC, writes venue.yaml into /etc/toyquant/calendar.d/ (atomic, 0640 root:toyquant, a meta block naming the fetch and its result) and the gate merges it with the operator's dated file. A failed fetch keeps the last known windows; the gate's --audit prints the horizon, the unverified count and each auto file's age, and preflight warns past ten days. --cross-check compares a public weekly feed with the operator's macro rows and writes a status-only file: an aggregator may warn, never close a window met locally 2026-11-29: --instrument NES-USDT-SWAP --at 2026-12-24T13:30Z refuses in one line naming the date, --instrument UP-USDT-SWAP --at 2026-12-10T13:30Z refuses on the CPI instant, and check_deploy's calendar rule holds both units, the timer and the seed. The host's own refusal is the first window inside a band after the next deploy (the Dec 4 NFP, or Dec 24)

The gate's two engineering clauses, registered with it (2026-11-30). ExecCondition=, never ExecStartPre=: 1-254 skips the start and marks nothing, 255 fails, and the difference is the host reading degraded for a market that is merely closed -- measured twice on this host before the gate existed. And the floor's evidence comes from the tapes on disk rather than the venue's hourly series, which reaches only about thirty days back: nes-turnover-tape sums price x size per UTC day over NES's 60 days, and the venue's turnover_24h_usd is used only to check that the two bases agree on a day both can see.

The exit side of the same question, measured on NES (2026-11-30). A floor that says "enough flow to pay the fee" is half an admission rule; the other half is "enough book to leave", and tools/live/close_cost.py gained a ladder mode for it: one pass over the day's archive, the book sampled every --every seconds, each sample walked for every quantity on --ladder, and a summary that counts the moments inside a --budget-bps concession to the mid, whichever side the walk took. On NES's own hours (01:00-04:30, quarter-hourly, the 28 recorded days, 420 moments) a 50-contract sell stays inside 10 bps on 296 of 420 moments (70.5 percent), worst moment 19.22 bps, with three days where every moment qualified; ten contracts read 359/420 (85.5 percent, worst 17.42), twenty-five 329/420 (78.3) and a hundred 229/420 (54.5, no day wholly inside). The book's spread reads 1 to 2 ticks of 0.0001 and the mid travelled 0.12145-0.29565 over the month, so one tick is 8.2 bps at the low end and 3.4 at the high and a 10 bps budget is one to three ticks. So the floor a seat is admitted on is partly a size floor: at ten to fifty contracts the exit exists most of the time, and above that it stops existing before the fee does. UP's own closes are the comparison: 50 contracts at the bid itself (-11.33 bps, 2026-11-27), so at equal size NES's book is the thinner exit and profiles/nes_v1.yaml carries the smaller ceiling. Artifact out/study/nes-closecost-28d.txt, one summary line a day, re-derivable by the loop in the tool's docstring.

And a seat's budget is not its own when two seats overlap. NES and UP on one 12:30-15:30 window are two positions in one account, and in a BTC sell-off the alts' tail correlation goes to one: two 5 percent stops and two ~150 USD peaks compose to about 10 percent and 300 USD, i.e. 0.6x equity. So profiles/nes_v1.yaml may not pass check_params.py on its own numbers -- if nes-halfhour-28d shows an overlap, the two seats' stops and ceilings are split so the portfolio drawdown stays inside 5 percent, or the owner raises beta_eq to 8-10 percent and that is written into the registry rather than discovered in a drawdown.

What N means, mechanically, and what is already true. Seat 1 is the plain unit and every other seat is an instance of the templates, so the unit side of N is done: seats is a list, bootstrap_server.sh enables one instance per line and refuses a seat whose files disagree with each other, check_health.sh counts 1 + active instances, --ops seat writes a seat's two files with the refusals that keep two seats from sharing an address or a ceiling, and --ops diagnose lists what the host carries. What is missing is the measurement side (L1, L2) and the schedule side (L3) -- an instrument is cheap to add and expensive to read, and a window is currently a unit.

Priority, set by the owner on 2026-11-29 (keep the single-window multi-seat arrangement solid first, explore UP's multi-window second) and re-sorted the same day by the @ 100 ms pair. The order below is that decision applied to what the numbers now say, not a preference among cuts:

order what why it is here
1 (now) the calendar onto the host: one deploy carrying deploy/calendar.yaml, calendar_gate.py, venue_context.py, both units' ExecStartPre, preflight 7/7 and the three ledger columns; then --ops preflight and the timers read back the only item with a date outside the tree's control: Dec 4 NFP 13:30Z, Dec 10 CPI 13:30Z, Dec 24 NES cliff (closed Dec 22-27). A gate in the tree protects nothing until it runs as a unit's first line, and the ledger's three context columns start accumulating only from the first deployed window
2 (landed) L2 the host inventory (--ops seats) -- landed 2026-11-29: deploy/seat_inventory.sh, one line a seat plus the sum against the equity, check_deploy's ops-action rule holding the wiring L1 landed and the calendar now closes windows per seat, so "what does this host carry" -- the seats, the sum of their ceilings, each seat's last [RECON] -- is the reading an operator needs before a second window is argued. It is the "keep the pair solid" half of the owner's order, and it is one dispatch
3 (then) L4 the liquidity gate, on the columns that now exist NES's sixty-day row is 11 fills and 0.00 closed; the dead-day fixture is measured (the 9-10 月 week), and turnover_24h_usd / oi_change_24h_pct are the two series the gate would read. It decides whether NES is a seat at all, which no other row answers
4 (closed on the evidence) L3 a slot as a schedule entry -- not built the midday candidate passed at 10 ms and failed at 100 ms, and win0630-28d-100ms -- the best non-overlapping slot -- reads 37 fills (floor 40) and a leave-one-out of 18.93 against the control's 21.14, so no slot carries a schedule today. The shape is kept in the table rather than deleted: reopening it needs a candidate registered on a mechanism, not a clock shift
5 (long term) the continuous seat (E1 windowed/continuous, E2 per-UTC-hour scaling, E3 funding in the reservation price), the per-day order record, cross-seat margin; PROS reopens on newer tapes unchanged, and each needs its own bar; nothing in the pool is a 24/7 candidate yet

What "solid" means for the live pair, concretely. (i) Both seats start at 13:30 UTC and stop at 15:32, verified by systemctl list-timers on the host. (ii) Each seat's window leaves one ledger row with its own fills and [RECON]. (iii) A red seat names itself: unit, file, port or variable (--ops diagnose and the bootstrap's refusals already do this). (iv) A second red deploy for the same reason stops and says what would have to differ -- the rollback latch. Nothing else is "solid" and nothing less is.

Long-term, recorded so it is not re-invented (not scheduled, no bar yet).

item what it is the trigger that would schedule it
E1 mode switch a seat declares windowed or continuous; continuous turns off settle_residual and the wind-down, and leans on inventory skew instead a seat passes a 24-hour panorama with most slots positive and the settled cost of its forced closes is the larger half of its net
E2 session-aware scaling a per-UTC-hour multiplier on quote distance and halt threshold -- wider and more defensive in thin hours, flat and tight in the good ones E1 exists and one seat's hours differ by more than the day-to-day spread of a single hour
E3 funding anchor the funding rate enters the reservation price, so a carried position is priced against what holding it costs a continuous seat carries inventory across a funding stamp for more than a handful of days
per-day order record live*_orders.csv rotated by day (logrotate covers the journal today, not this file) a continuous seat's record passes a few hundred MB, or a window's rows need to be attributed to a day without a grep
cross-seat margin the ceilings are per process today; a continuous seat needs the sum held against the account, priced at each instrument's margin a second continuous seat, or one seat whose carried inventory reaches the account's margin

Why the panorama is running before any of L3/E1. It is the same grid that answers both questions -- which hours UP earns in, and whether any hour is good enough that a seat could run through it continuously -- and it costs one background job rather than a week of sessions. Its artifact ranks the slots; a 28-day run on the top two is the confirmation, and only then does L3 get built.

The 24-hour atom scan and the variable-length windows (registered 2026-11-29, running)

Reconciled 2026-12-01: not running. pgrep finds no scanning process and out/jobs/ has nothing pending or running, so the state in this heading was stale -- the scan died with the session that started it rather than with a verdict. Nothing it produced is quoted anywhere; re-running it is a decision, and it is not queued.

The fixed two-hour window was an engineering convenience -- it made one cut comparable with another -- and the 100 ms pair above shows what it costs: a slot that looked 12.3 bps better at 10 ms is 2.3 bps better at the wire, so the schedule has no candidate and the line is locked to 13:30-15:30. The owner's instruction of 2026-11-29 is to stop guessing windows with overlapping two-hour runs and measure the day as it is: 24 non-overlapping one-hour atoms, then merged windows that end where a market event happens rather than where a clock does.

One ruler for all three batches, registered before the first run: --latency-us 100000 (the host's route), --pause-ticks-per-second=6 (the live halt threshold since 2026-11-29), the same twenty-eight days (2026-10-30..2026-11-26), --cuts out/cuts/<batch> (a generated tree on the 886 GB filesystem, because ~700 cuts do not fit /tmp's 5.1 GB) and --min-free-gb 5. Every earlier row was measured at 10 ms and at the engine's own halt default, so a row from these batches is comparable with the live seat and not with them -- which is why Batch 2 re-runs the baseline instead of borrowing one.

batch what why it is here
B2 -- six windows 13:30-15:30 (baseline), 12:30-14:30, 11:30-14:30, 10:30-14:30, 06:30-08:30, 06:30-09:30 the live line's own question: does one longer run ending at the US cash open (14:30 UTC) beat two hours after one settlement instead of two? Six arms, and three of the cut sets already exist
B1 -- 24 atoms 00:00-01:00 .. 22:00-23:00, and 23:00-23:59 (the tool's end is HH:MM of the same UTC day, so the last atom is a minute short) the attribution map: which hours earn, which are toxic, and which adjacent hours could be merged at all. ~700 cuts, so it queues behind B2
B3 -- PROS 13:30-15:30, 12:30-14:30, 06:30-08:30 on the same days, --symbol PROS-USDT-SWAP --tick 0.0001 the second candidate's twenty-eight-day admission, and whether its good hours line up with UP's -- the multi-seat scheduling question. Its 28 trade tapes are already on disk

The admission red lines, registered before any of the rows existed (the owner's, restated): a 2 h+ window needs a median fill count of 25 or more (a 1 h atom 12 or more) and at most 15 percent thin days; the leave-one-out median must still be positive and the best day's share below 0.35; and a window replaces or joins the live schedule only if it beats the 13:30-15:30 baseline on CE(0.02) and the positive-day share together. A boundary that is not on the hour or the half hour is not tested at all. The clauses are code rather than prose now -- tools/study/window_admission.py prints one line a candidate with every clause's number beside its limit, so the verdict is the same whoever reads the rows. Superseded as the deciding rule on 2026-11-29 by the screening methodology: the clauses stay as the record's arithmetic (window_admission.py still re-derives every row they closed), the funnel decides a candidate measured from then on, and its first run over these same rows admits none of them -- the numbers are in this page's change log. The expansion rule beside it is the expansion methodology: no multi-seat batch before a replay reproduces one live window, a seat's quoting rule follows its tick regime, and the shared gateway is a decision at three seats.

The in-session reduction loop is not built, and its measurement is the first slice (registered 2026-11-29, the slice built 2026-11-30). The tail defences are five rather than four: the speed halt, the position and loss ceilings, the rate limiter, the close, and --flatten-band / --close-out, which do cross. What is missing is (a) a state trigger for the crossing reduction (the band is a static position, and it is absent from the live file), (b) a BBO-collapse cancel, and (c) the counter without which neither can be judged: a run prints max_abs_inventory and the closing net_pos, but not how long the position sat above the cap nor how much of the day's PnL accrued in that time. So the first slice is two fields, seconds_above_inv_frac and pnl_bps_above_cap, printed in [EXECUTION] behind --inv-above-frac=F; the bar is that on the 50-contract arm and the 100-contract control over the same 28 days they say what share of 2026-11-26's bps was accrued above the cap. The two-value smoke already reads 41.8 book seconds and -9.57 bps above the 50-contract boundary against 242.8 seconds and +14.05 bps above the 100-contract one on that day, and the 28-day rows are queued (inv50b-28d-100ms, inv100b-28d-100ms). The bar comes before the rule because the rule has two signs in the record: the equities study has the same flatten band taking AAPL from -3,165 to -871 and SPY from +262 to +161, since every flatten pays the spread and the fee -- so "flatten above N" trades a certain cost for an uncertain drift and cannot be adopted without the split.

The funnel's declared inputs and the account's boundaries, decided 2026-11-29. alpha is 0.10 for a screen and 0.05 for a live seat. N is measured rather than chosen: the participation ratio of the trials' correlation matrix, N^2 / sum c_ij^2, reads 8 over the 53 series on disk -- which is why 12:30-14:30 passes at DSR 0.961 while the live window fails at 0.456, and why nobody has to argue about how many trials were run. Cap is the seat's nominal ceiling: 60 USD per live seat and about 100 USD for the ten-clip research cell, from an equity of 99.17 USDT and a survival leverage of 1.0 to 1.6 times. The inventory ceiling is an exogenous boundary: 50 contracts for the research cell (five clips), 5 to 10 live, with one day's tail inside 1 percent of equity -- a boundary first read on 2026-11-26, where the cap turned a -5.20 USD day into -0.28 at a 10 percent cost in the month's dollars, and re-read on the 28-day pair, which inverts the direction: at the same ten-contract clip inv50b's worst day is -50.91 against inv100b's -19.96, with the closed median at +12.62 against +21.48 and the CE at +9.19 against +16.79. So the tight cap is not a tail guard -- it sells into the crash -- what holds the live seat's exposure is --max-exposure-usd and the kill switch, and moving the live cap from 50 to 100 is an owner decision about inventory rather than a tail fix. A Cap moves only with the owner's money, and the owner asks to be told rather than assumed: the standing instruction of 2026-11-30 is that an experiment which needs more capital names the amount and the use before it runs, because a Cap sized for 99 USD is a boundary and one sized for 499 is a different boundary rather than a bigger number -- docs/ROADMAP.md's change-log row of that date is where the first such request landed. The close's calibration day is 2026-11-27, because 2026-11-29's archive answers 404; there the book's price for seven contracts is -11.3 bps against the mid, which is the replay's own crossed-close charge (5 bps taker plus one tick, about 10.7 bps at this price) -- not the 2.30 bps the 28-day runs print as their settled difference: the first is what a crossed close costs, the second is how little residual there was to cross. The record's full dump was decided on 2026-11-29 and built on 2026-11-30: --ops record --since/--until with its check_deploy.py rule (record_path) and its documentation rows, driven end to end by tools/ops/dispatch_deploy.sh record, which saves the window's rows under out/runtime/ and reads them with tools/live/record_stats.py in the same command.

Order, and why it is not the batch numbers. The measured cost is about thirty seconds a day-window (a cut is a decompressed slice of a 1.5 GB archive), so a six-window batch is ~85 minutes and the 24 atoms are ~5.5 hours. B2 runs first because it is the decision the live line is waiting on; B3 runs second because 42 minutes buys three admission rows, and B1 runs last with its atoms re-ordered by decision value -- 12, 13, 11, 14, 10, 06, 07, 08, 09, 20, 19, 18, 05, 15, 16, 17, then the rest -- so whatever part of the map fits covers the hours a window would be chosen from. The queue is serial, each row is out/jobs/<name>.job, and the CSVs are out/windows/<name>/f1_control.csv -- in the tree, so a reboot loses the log and not the measurement. Tonight's 13:30-15:30 live pair is untouched by any of this: the queue is local and runs at nice 10.

What the batches answered (rows landed 2026-11-29, 100 ms, halt 6, the same 28 days). The baseline was re-run inside B2 rather than borrowed, and every candidate is adjudicated by tools/study/window_admission.py against it.

window fills closed median positive leave-one-out CE(0.02) verdict
13:30-15:30 (baseline) 43 +20.71 23/28 +20.05 +14.75 the baseline
12:30-14:30 50 +19.67 24/28 +18.40 +13.29 fail: 21.4% of days thin, CE below
11:30-14:30 (3 h) 62 +19.44 20/28 +19.01 +9.63 fail: CE and positive share
10:30-14:30 (4 h) 80 +11.70 19/28 +11.54 +1.41 fail: CE and positive share
06:30-08:30 37 +17.33 21/28 +16.53 +1.58 fail: 42.9% thin, CE, positive
06:30-09:30 (3 h) 41 +17.02 21/28 +15.92 +1.59 fail: 42.9% thin, CE, positive

The verdict on the flexible window: the two hours stay. Lengthening the run does not buy the settlement it was supposed to save -- the 3 h and 4 h windows add variance faster than edge (CE 9.63 and 1.41 against 14.75), and the 12:30 slot's higher positive share (24/28) comes with a thinner fill profile (21.4% of days under 25 fills) and a lower CE. Every smaller window is dominated where it matters. No window replaces or joins 13:30-15:30 on this evidence, which is the same answer the 100 ms pair gave from the other direction.

Overturned by the owner on 2026-11-30, and the input was the funnel, not this paragraph. The w50b batch re-read the same three candidates at the live seat's own ruler (50 contracts, halt 31.6 bps/s, 100 ms, the same 28 days): the funnel at the registered N=8 passes 12:30-14:30 at DSR 0.977 and 12:30-15:30 at 0.985 and fails the recorded 13:30-15:30 at 0.552, while this paragraph's clauses still refuse both candidates on 17.9 percent of thin days -- so the two rulers disagree exactly as they did in the 53-series run, and the deciding rule (registered 2026-11-29) is the funnel. The live window is therefore 12:30-15:30 UTC (three hours), the start moved by the window-start timer, and future rows are measured against this window as the baseline. The paragraphs above keep the window their rows were measured in; 12:30-14:30's thin-day share is carried forward as the risk the three hours take on.

PROS is not admitted. Its own best window is CE-negative (13:30-15:30: +7.55 median, CE -10.25, 18/28), and its two alternatives are worse (12:30-14:30 CE -9.56 with a negative closed total; 06:30-08:30 median -0.11, 13/28). It stays a watch-pool instrument, and a reopen needs a sample in which the tail is not one day -- the same sentence the admission row already carried.

The 24 atoms: none passes, and that is the finding. Every hour fails the thin-day floor (25 to 60 percent of days under 12 fills) and/or CE; the strongest are 12:00-13:00 (+19.96 on 24 fills, 21.4% thin), 14:00-15:00 (+18.53, 22, 25.9%), 18:00-19:00 (+18.01, 15, 40.7%) and 13:00-14:00 (+16.15, 24, 25.0%). The midday 12-15 cluster holds every atom above +16 -- so the edge is in being in that session, not in one hour of it, which is what the two-hour window already captures. No merged window is registered from the atoms: their role was to say where the session is, and it said it.

B5 (running, 2026-11-29): the screen's three best candidates at the same ruler. b5-blur-28d-100ms, b5-dna-28d-100ms, b5-baby-28d-100ms -- BLUR, DNA and BABY over the same twenty-eight days at 100 ms and halt 6, with --min-free-gb 5, judged by the same six clauses against UP's baseline (+20.71 / CE 14.75 / 23 of 28). Their seven-day rows at the same latency read +14.35 / +12.79 / +8.39 closed on 38 / 19 / 24 fills, so the month is the test of whether that was the sample. The screen's own floor is a trap this batch does not repeat: UP's book is 1.5 ticks wide, so --min-spread-ticks 2.0 excludes the reference instrument -- the note in okx_spread_screen.py now says so, and the isomorphic test is the quote-distance-to-book-width ratio (UP: 3 / 1.5 = 2), not the raw tick count.

The rulers, the states, and the decisions of 2026-11-28 UTC

Decision 1: a risk-aversion coefficient, fixed exogenously. gamma = 0.02 per bps, with CE = mean(closed_bps) - (gamma / 2) * variance(closed_bps) taken over the windows of a sample. The reason is the account this stage runs on: a 60 USD exposure ceiling and a 6 USD kill switch make the goal positive expectation and capital efficiency, so moderate daily variance is tolerated rather than paid for out of the spread. Under that number the two seats read UP +9.22 against NES +8.06, so UP is the live seat and NES moves to the watch pool -- and the preference the old rule carried in prose ("the median first, the tail beside it") is now a number every row can be re-derived under. The crossover is gamma = 0.0285: below it UP wins, above it NES does, which is exactly why the value is a decision and not a measurement, and why it is registered here rather than left in a tool's default.

Decision 2: two rulers, assigned by the role of the lever. It applies to every new arm; a recorded row is never re-judged, it is re-read under the ruler its role names, and both readings stay on the row.

the lever's role primary ruler secondary
pricing and capture -- quote distance, refresh, debounce, seat admission closed median + the fill floor CE(0.02)
risk and de-inventory -- the A-S skew, the volatility halt tail cost ratio (bps of median paid per bps of worst day compressed, red line 0.150) + CE(0.02) closed median

Decision 3: the A-S skew is Active as a risk mechanism, not as a revenue one. The 25 bps arm pays 0.99 bps of median for 38.89 bps of worst day -- a cost ratio of 0.025 against the 0.150 red line, so the risk ruler admits it and the revenue ruler does not, and both sentences stay recorded as they were. Its admission to live.yaml waits on the A/B rebuild at 10 and 100 ms, which has to show the same ratio holding there.

Decision 4: the halt threshold is 6, switched on 2026-11-28 UTC after the check it was conditioned on. Over the seven days, 6 read a closed median of +19.65 against 9's +16.82, 7 of 7 positive against 6 of 7 and a worst day of +5.92 against -42.79, with fills flat (53 against 52) and more pauses (97 against 45) -- the extra halts filter flow that did not pay, which is the "toxic flow" the lever was for. The owner's condition was a re-check of both on the sixty-day sample at the real latency, and that check passes: 6 reads 31 fills / +10.56 closed / 40 of 60 positive / -57.40 worst / CE +5.57 against 9's 30 / +14.32 / 39 of 60 / -89.29 / CE +1.56, so 31.89 bps of worst day is bought for 3.76 bps of median -- a cost ratio of 0.118 against the 0.150 red line -- with the fill count flat at 31 against 30. --ops set-key engine.pause_ticks_per_second=6 was dispatched the same night and lands at the next 13:30 UTC start, which is the ExecStartPre path and not a restart. The rollback is the same dispatch with 9.

Decision 5: the private WS order channel is Dormant, with two unlock conditions. (a) live_orders.csv shows the REST path paying a re-handshake on an idle disconnect -- the strategy recomputes a quote every ~23.7 s, so a gateway that drops an idle socket near 30 s would turn part of the window into 200+ ms; (b) the host moves to a 10-20 ms colocation, or the strategy becomes a multi-level re-quoter, where 2-5 ms of protocol is a proportion rather than a rounding error.

The three states. Active means usable under the current 100 ms constraint. Dormant means the mechanism is sound and what blocks it is hardware, a fee tier or a credential: it is kept with its unlock condition instead of being written off as refuted, which is the loss this vocabulary exists to prevent. Killed means a mechanism that reversed out of sample or cannot cover the fee.

state the lines in it
Active the UP seat; the frozen control; the A-S skew (as a risk mechanism, pending its A/B rebuild)
Dormant the private WS channel (two conditions above); every parameter set that wins at 10 ms and loses at 100 ms -- kept for a low-latency host; the fine-tick cells at a size they cannot carry
Killed the fee and tick arithmetic of the 555-to-12 screen; the toxicity gate (the second month reversed the sign); trend_l2 (a gross of 1-6 bps against a 10 bps toll)

And the twelve candidates: the second screen was contaminated, the first was not. The 555-to-12 screen read a spread off one REST call a symbol, so it is clean. The 12-to-2 cut ran the cell at LATENCY=10000, which was ten seconds, so what survived were the quiet instruments -- a ten-second-late quote on a busy book arrives crossed or is swept, which is the mechanism UP's own recovery demonstrates. Re-screening is two phases, not one sweep:

phase what it needs what it costs
1. screen all twelve on the seven days on disk, both latencies, frozen control, red lines unchanged (median fills 25 or more, thin days at most 15 percent), ranked by closed median and CE(0.02) seven depth days and seven tapes each (2026-11-16..22), which the tree has 24 runs, about half an hour with the cuts built
2. admit -- the two or three that clear at 100 ms go to twenty-eight days 252 more depth archives (12 x 21), fetched by tools/fetch/fetch_okx_depth.py at the portal's own URL shape -- one call a day, verified for its .data member and an opening snapshot, --skip-existing so a resume is free, and a --min-free-gb floor that refuses rather than fills the mount under an hour: a mid-cap day measured 50 MB and a small one 2.6 MB, so the window is 2-7 GB into a filesystem with 891 GB free -- and it runs in the queue

No seat enters the live file on phase 1. Seven days is the sample whose power the same review calls too thin for a hard bar. Phase 1 ran 2026-11-29 UTC (all twelve, both latencies, the frozen control, seven days each) and four clear the fill floor at 100 ms with a positive median: PROS +12.74 closed on 6 of 7 with 104 fills and 2.94 USD a window, DGAI +6.09 / 49 fills / 1.72 USD, ALLO +4.49 / 81 / 0.08, BLUR +14.35 / 38 / 0.03, and ONE (+3.65 / 40) is economically zero. Dead at both latencies: CT, GRVT and PIEVERSE (622 fills and still -7.3 bps -- turnover is not a market); below the fill floor: BABY, DNA and OL; and SSV is not measurable (three days with one fill). PROS is the one worth an admission run and it is the case the three states exist for: at 10 ms it reads -9.59 and at 100 ms +12.74, so it is Active at the latency the account has and Dormant at the one it does not. Its twenty-eight-day run needs twenty-one more trade tapes, which the venue publishes as one zip a day for every symbol (so a per-day fetch sliced once per symbol is the driver, not twelve fetches), and then up_ten_contract_cell.sh --arm f1_control --symbol PROS-USDT-SWAP --days 2026-10-30,...,2026-11-26 --latency-us 100000 against the admission rule's own floor.

The admission rule, registered before any seat is ranked, decided by the owner on 2026-11-28, and its reading fixed the same day. A seat enters a comparison only above a fill floor: the median of its windows' fill counts is at least 25, read as the median and not as a per-window veto. The veto was refused because a thin window is a property of the instrument's tape rather than of the seat's quality: NES's median is 26 while 11 of its 27 measured windows are thinner than 25, so a veto would refuse the seat with the better median capture and the smaller tail multiple. One supplementary ceiling keeps the median from hiding a dead sample: at most 15 percent of the measured windows may be dead or nearly so, defined as zero fills or fewer than a fifth of the floor (5 fills); NES reads 2 of 27 (7.4 percent) against UP's 2 of 59 (3.4 percent), so both clear it. The ten-contract cell's own 40-fill floor still governs a cell measured over a window set, and every row states which floor it used and which column it ranked on. The ranking column is the median closed_bps -- the column every recorded row quotes, and the same one the tail multiple's worst day / median is built from -- with the tail multiple beside it, smaller is better. The median net_bps is printed in the row and orders these two seats identically (+18.97 against +15.96 as well as +15.70 against +12.27); if a future seat's two columns disagree in order, the row reports both and the owner picks, rather than the rule silently switching columns. Never the dollar total, which stays the row's third column and is deliberately not the ranking. The owner's reason: a dollar total scales linearly with seats running in parallel and with equal-risk size, so it ranks the capital behind a seat rather than the seat's quality, while the tail multiple is what bounds a worst-day drawdown and therefore how much room there is to add size. NES reads +15.70 at 3.95 and UP +12.27 at 6.13 on the same 28 days, so NES ranks first on both columns while UP carries the larger dollar total (0.3630 against 0.2342 USD a window), and the two facts are kept side by side rather than collapsed. And the seats are not a tournament: two instruments that both clear a positive median with a controlled tail are run together, which is the reason the portfolio line exists at all -- the merge's dispersion test already read 2.77x with the two seats' bad days uncorrelated.

The two seats under it, measured on the same twenty-eight days (2026-10-30..11-26). NES's row is the control arm run on its own symbol (--symbol NES-USDT-SWAP, 28 days) and summarised by tools/study/sweep_summary.py --read; UP's is the recorded f1_control row in tools/sweep/up_ten_contract_cell.sh's header.

seat windows fills (median) closed median [range] positive net median USD/window tail multiple
NES 27 measured of 28 26 +15.70 [-62.01, +65.48] 21 of 27 +18.97 0.2342 3.95
UP 28 45 +12.27 [-75.19, +90.37] 22 of 28 +15.96 0.3630 6.13

NES is first on both ranking columns and on the floor's own median; UP carries the larger dollar total. The row carries the two readings the rule was fixed with on 2026-11-28: the floor is the median of the sample's windows -- 11 of NES's 27 are thinner than 25, which is why a per-window veto was refused -- and the ranking column is closed_bps, with the net_bps median printed beside it because it orders the pair identically. The dead-window ceiling reads 2 of 27 for NES and 2 of 59 for UP at the 5-fill definition, so both are inside the 15 percent limit.

And neither of those two rows was measured at the latency the account has. --latency-us 10000 was ten seconds when they were recorded (the unit defect found 2026-11-28 UTC), so the table above is a ten-second table; the row taken to show what the wire costs (--latency-us 100000 = 23 measured of 28, 9 fills, +3.49 closed, five dead windows of 28 at 17.9 percent) was a hundred seconds. Read again at 10 ms -- the frozen control over the same twenty-eight days, which were the first two jobs through tools/ops/jobq.sh -- the two seats read:

seat windows fills (median) closed median [range] positive net median USD/window tail multiple thin days
NES 26 of 28 30 +12.71 [-16.39, +50.03] 17 of 26 +11.34 0.2104 1.29 4 of 28 (14.3 percent)
UP 28 of 28 36 +15.61 [-42.79, +56.29] 23 of 28 +13.28 0.5732 2.74 1 of 28 (3.6 percent)

So the ordering flips, and the two ranking columns disagree. At ten seconds NES led on both (+15.70 against +12.27, tail 3.95 against 6.13); at ten milliseconds UP leads on the closed median and on the net (+15.61 and +13.28 against +12.71 and +11.34) while NES has the better tail (1.29 against 2.74) and the thinner sample (26 of 28 measured, and 4 of 28 days under five fills against UP's 1 -- both inside the 15 percent ceiling). Both clear the fill floor, 30 and 36 against 25. The rule already says what happens when its two columns disagree: the row reports both and the owner picks. So this is the owner's decision, not a number to settle here -- and it is the first thing the six-month-old floors have ever said at the latency the account actually has.

Waiting on data, with the run it unlocks

Three sets are downloading or published late, and each row names the run it is for, so the next session does not rediscover why the days were wanted. The fetcher is tracked and skips a day it already holds, so a re-run is free.

waiting on how it arrives the run it unlocks
UP's 2026-09-28..2026-10-29 tapes (the 32 depth archives are on disk) bash tools/fetch/prefetch_windows.sh --block 1 tools/sweep/up_ten_contract_cell.sh --days <sixty days> -- the second month the one-regime argument asks for, because the 28-day sample's mean window move is -104 bps at one standard error of 84
NES's 2026-10-30..2026-11-26 (21 days) --block 2, queued behind block 1 the ten-contract cell on NES over the same 28 days as UP: the first seat comparison that stands on one sample
2026-11-27's book and tape, both instruments --block 3; the depth URL answered 404 at 07:00 HKT on 2026-11-28, and a re-run costs nothing a replay of the first live window itself, which is how its markout_per_unit_ticks of -0.591 is compared with the replay's +0.333 under the same flags and +0.416 as the cell's 28-day median

Ordered backlog

P0 — documentation consolidation (done; no interview material).

  1. Delete PROJECT_BRIEF.md and the separate decision-log file; make this section the only plan.
  2. Make index.md the map of five core documents, and add no new planning document.
  3. No walkthrough or interview Q&A is planned; the project itself is the deliverable.

P1 — current iteration (complete).

  1. Order timeout and query visibility — done. OrderQuery lets the gateway ask whether the venue still holds a timed-out order; [GATEWAY] reports unacknowledged, timeouts_queried, timeouts_working and timeouts_unknown. Neither query result is a fill or a cancel; the ledger stays Pending until a report.
  2. Participation cap only — done. --participation-limit=X caps one aggressive external-BBO fill at X of the displayed best size, leaving the rest to rest or to the order's time in force. The execution price is still the touch; there is deliberately no price-impact model.
  3. IOC/FOK, not cancel/replace — done. TimeInForce is carried by StrategyOrder and exchange::Order; an IOC cancels its immediate remainder with CancelReason::Ioc, and a FOK checks the external touch and the internal book first, then either fills completely or cancels with CancelReason::Fok without trading. --time-in-force=gtc|ioc|fok applies one setting to every strategy order. Cancel/replace stays deferred: it needs old/new id mapping, queue-priority reset, and a replace race.
  4. Demo path — done. The ordered command list and expected lines are in the User Guide verify_l2.sh fast, risk_check.sh, then a one-cell trend_sweep.sh. It uses the existing scripts, adds no strategy, and states that the negative trend PnL is the measured result rather than a demo failure.

P2 — only after P1, or when the owner asks.

  1. Multi-instrument, portfolio and netting. Landed: the account keys positions by symbol and reports [EXPOSURE] — one leg per symbol with its signed notional, the sum of the sizes, the size of the sum and their ratio, valued at the last quote each symbol showed and without moving the account. A two-leg book that nearly cancels reports a gross of twice its net, which is the number a hedged book is judged by and the one the carry line's fee bill was charged on. And a run that trades two books at once: --symbol-b, --trades-b and --depth-b give an l2_replay a second instrument, so the run builds a book, a decision layer, a venue and a pipeline per symbol against one Portfolio, merges the four readers by timestamp (src/market/merged_event_reader.*), and reports one [EXECUTION] ... symbol= line, one [PNL] symbol= line and one [BOOK] line per book, one [PORTFOLIO], and one [EXPOSURE] over both legs. The per-book [PNL] is what says which leg lost the money: on the measured window the long BTC book lost 0.033 USD closed, at a break-even maker rate of −0.00025, and the short ETH book made 0.005 — and the legs add up to the account exactly, because the split is taken where the account's totals are written rather than recomputed from them. The account values each symbol with its own instrument (Portfolio::set_instrument), because a ten dollar contract face and a one dollar one are not the same exposure — without that the ETH leg is priced ten times too large. Measured on 2020-04-01, 200k depth rows per instrument: 377,024 events, one contract long in BTC and one short in ETH, gross_usd=11 against net_usd=9, fees_usd=0.0202 (the sum of both books' fees). The gate re-derives it on every run. Still missing, each refused with a second book rather than half-applied: the broker and the gateway (they wrap one venue), --metrics (one account's equity series sampled by two pipelines), --parent (one arrival price per line), --record (the replay shapes hold one book), and --funding-rates (one history per flag). A third book is a change to the two-source array and to the flags, not to the design. The cap followed the account. --max-exposure-usd used to be each book's own ceiling, so two books could each carry the full amount against the same cash and both report no violation. Each book is now told what the other legs already hold (Pipeline::set_account_marks), and the check adds it to this book's projection through a new RiskContext field, which is zero in a single-book run and therefore leaves every recorded number where it was. On the same two books with a ten dollar cap: the BTC book fills to ten, the ETH book is refused every quote because its own dollar would be the eleventh, and [EXPOSURE] reports symbols=1. The gate re-derives that too.
  2. Persistence and restart recovery. Landed: a session can be written down and taken over, against a venue that outlives the client. --snapshot-out=FILE writes the account (cash, realized PnL, fees and both trade counts), every position with its entry price and the fee riding on it, the last midpoint each symbol showed, the orders the ledger still holds, and the clock and next order id. --snapshot-in=FILE restores the account, then asks the venue about every order the snapshot listed: a live one is cancelled (a queue position a new process did not stand in is not one it can keep), and a forgotten one is counted rather than assumed to be filled or cancelled, because the venue's query cannot tell those apart. The run then replays its file from the first line — the book has to be the one the snapshot was taken against — and holds its own orders until the snapshot's clock, so the market is rebuilt and the decisions are not repeated. Measured on the 200k slice: the resumed run reports [RESUME] ... cash_usd=989.993 legs=1 next_order_id=382 and then a [PORTFOLIO] and [EXPOSURE] identical to the run it took over, field for field; the gate re-derives that on every run. What it deliberately does not do: restore the strategy. A new process starts with the account it was given and no memory of its own quotes, and the first fill after a resume reports it through strategy_position_mismatches rather than being silently absorbed. Adoption — taking a live order over instead of cancelling it — would need a queue position nobody can reconstruct, so it is refused by design. One record per book: the snapshot writes the account once and each book's own clock, id sequence and working orders, so a two-symbol run resumes both legs at their own venues; the single-book format written first is still read, because a restart reads a file an older build left behind. Still missing: a venue that remembers its own fills across a client restart (the simulator's engine is created per run, so a resumed run compares against nothing; the test uses one broker for both halves to show a fill missed while down being caught by reconcile_positions).
  3. Full venue semantics. First quarter landed: add-liquidity-only. --post-only makes the venue refuse an order that would trade on arrival: it is cancelled with reason post_only rather than filled, because a quote that arrives after the market went through it is a maker paying the taker rate. The check is the one FOK already used, so a venue that refuses to cross cannot disagree with the venue that fills. Measured on the 200k window: active_l2 is unchanged, because none of its quotes arrived crossed; trend_l2 clips at the touch, so all 55 of its fills were taker fills (taker fees 0.275 USD against maker fees 0) and with the flag it makes 1,814 crossing attempts, all cancelled, and trades nothing. That is the reversion line's cost explained one level down: a clip at the touch is not a quote, it is a market order. Cancel/replace is deliberately not built, and the reason is in the engine: the queue an order joins is reconstructed from the displayed size at the moment it joins and then shrinks with the display, so an amend at the same price lands behind the same queue a re-entry would. Its only measurable gain is one round trip instead of two and no window in which the quote is absent, and those need the latency model (--order-latency-us, --cancel-latency-us) to price; a version that reports "amends saved nothing" would be a claim about a lever this engine does not have. Still deferred (P3, out of the demo): a venue that is not a demo, the demo header becoming a flag, FIX, a price-impact model, out-of-sample studies, and the performance experiments (block parsing, shared memory, binary telemetry, configuration hot reload).

P3 — current boundaries, not permanent.

Everything in P2 is deferred for this stage. Lifting one requires a new request; add it as a new row here rather than pretending the boundary was never there.

Requested later (2026-11-14, closed): the sandbox's own output in the documents. A live run's [VENUE], [RECON] and [ORDER-LOG] lines beside the replay numbers, labelled as what they are -- an acceptance of the wire, not a measurement of a strategy. They are on the live page, with the three commands that produce them, and the run fills: 15 fills at one contract an order against the demo venue's own book, inside a 1,000 USD exposure cap (exposure_over_collateral_fills=0), [RECON] status=ok, equity=997.376, [PNL] gross_pnl_usd=0.373523 net_pnl_usd=-2.62371. Three defects the run found are fixed -- a fractional accFillSz dropped the private channel, a live fill carried no fee, and a live fill carried no symbol (which is why the first run's equity looked like cash). What the item did not deliver is a replayable live session: that was measured and recorded above, a live session is not deterministic, so its recording is an audit trail and the loop that reproduces is the matcher's.

Gaps that were on no list (recorded 2026-11-02)

Everything above was chosen and written down. The rows below were not: they were absent from this plan, from the Design Review's "what it deliberately does not do", and from the retro's list of closed lines. Several of them are gaps in the evidence rather than in the simulator, which is why they matter more than their size suggests: a claim can be honestly produced and still be under-powered.

Gap Why it matters Verdict
No interval on any number Almost every closed line rests on a point estimate over few fills. The rule "fill counts below thirty are not conclusions" was applied by hand, one row at a time; nothing computed a standard error and no line printed one, and the maker break-even gap between BTC and ETH was quoted as −5.65 against +1.26 bps from one window each done: tools/study/pnl_interval.py (a bootstrap over a series, a window mode that replays the windows itself, a self-test in the tier-1 tool block) and a five-month series in docs/PERFORMANCE_HISTORY.md, where the mean is −1.87 bps with an interval of −2.84 to −0.90 and the five draws span 2.75 -- so the month moves one instrument by 40% of the 6.9 bps gap. Still open, and recorded as such: a per-fill series does not exist on disk (the trade report carries price, quantity, side, fee and role), so adding a PnL column to it is the remaining half
The strongest gate tier never runs tools/gate/verify_l2.sh full compares a 1.5 GB replay's output against a stored hash, and the reference lived in /tmp, so in a clean checkout it printed SKIP (no reference yet). The Design Review's claim that tier 2 "rules out every explanation except cost" was therefore true of the script and not of the tree. Fixed in this session: the hash drops the mode line, which carries absolute paths, and the reference is kept at tests/fixtures/l2_full_ref.sha256, so the tier runs and passes on a checkout done
No calendar and no contract lifecycle The engine has no opening or closing auction, no halt, no half day, and no expiry or roll: a future position never expires and a perp's funding is only applied when a file is named. Everything measured here is a continuous event stream, which is exactly what a crypto perpetual is and is not what an equity or a future is record only: the corpus is crypto and the equity rows are measured from daily bars, so closing this would be a different data line rather than an extension
"Portfolio" means several books sharing a wallet There is no covariance, no factor model, no beta, no cross-sectional ranking and no margin: [EXPOSURE] sums signed notional in USD and that is the whole risk model. Two books are two independent books, not a hedged portfolio with an optimum record only: a risk model needs a return history the free days do not provide, and any number it produced would be a model of a model
The kill switch stops quoting; it does not flatten A run at its loss limit stopped sending orders and kept whatever it was holding, so the control that exists to cap loss left the exposure open until the input ended. Two things had to be fixed and only one was obvious: the switch refused every order, including the one that would take the position down, and the account was never marked during a run, so unrealised_pnl stayed at zero and the loss it reads sat inside the position instead of in its input. Fixed in this session: the switch exits the position (narrower than is_reducing, because a flip is not an exit), the account is marked each cycle while it is armed, and the halt is priced — 5.39 bps on the measured window, with [EXPOSURE] symbols=0 afterwards done
The venue is a process, not a service Client and venue share one process and one clock, so a restart can never miss a fill and a reconnect never loses a sequence number. This is why the venue is not given its own persisted statement: it would only prove the simulator agrees with itself deliberately not (P3 by nature): a durable venue is the live-venue line, not a persistence feature
No adversarial input for the readers Four venue formats are parsed by hand-written readers, and the tests fed them fixed files in the shape the venue publishes. Nothing asserted what happens to a row that is truncated, that says nan, that carries a negative quantity or a side in the wrong case -- so "the reader rejects bad input" was a claim about code nobody had run against bad input. The readers turned out to be stricter than the test suite knew (they refused all of it), but four things were missing: the messages named no row, a nan price was refused by the validator rather than by the reader that could locate it, a crossed incremental batch was skipped without being counted, and an empty depth file produced a formatted run of zeros with exit code 0 done: tests/malformed_input_test.cpp (hostile rows per family plus the tolerant shapes that must still read), LineReader::lines_read() for row numbers, csv_fields::parse_price, crossed_book_batches on [L2 DATA], and both silent-zero paths refused
No latency budget in the gate [LATENCY] and the stage profiler report numbers, and ring_bench reports a throughput figure, but nothing fails when any of them regresses by a factor. A performance claim in a document is re-derived only if someone re-runs it later: an assertion needs a stable machine, and this project has one that changes
The recorded L2 windows mix two time spans A 200k-row depth slice is a quarter of an hour of book against a whole day of prints, so 117,889 of the 119,237 prints arrive with a midpoint older than a second. No fill happens there -- the last one is 1.2 seconds before the depth ends -- so the measurement stands, but the window is not a window of one market record only, and now printed: stale_trades on [L2 DATA] says which case a run is in. Cutting both inputs to the same span would re-derive every number in docs/PERFORMANCE_HISTORY.md to a different window, which is a new study rather than a fix
The two paths disagree about a print far from the mid On the L1 replay a print more than five basis points from the best bid and offer is dropped before the strategy or the venue sees it (filtered_market_trades), on the reasoning that a BBO sitting that far from a print is the one that is stale. The L2 path counts the same rule and delivers the print anyway, because a book is a better reference than a BBO and a print far from it is a sweep rather than a bad tick. Two rules, one phrase in the code record only: unifying them means choosing one of the two behaviours for both paths, and either choice moves every recorded fill on the path that changes -- the count is the honest gain, and it is printed
No machine-readable record of which run produced which number The marked blocks re-run a command and compare fields, which catches a number that moved; nothing records the commit that produced a historical figure, and the change log does that by hand deliberately not: the documents and their blocks are the register, and a second one would be maintained by hand too

Stop line

Stop when the P1 items that buy a new technical point are done. The current iteration is complete when:

  1. ctest is 33/33 and tools/gate/verify_l2.sh fast is tier 0 and tier 1 OK;
  2. one L2 event, one risk refusal/backoff and one order-state path can be traced end to end;
  3. one short replay and tools/sweep/risk_check.sh can be shown if asked, without claiming a profitable strategy;
  4. this plan and the five core documents still describe the binary;
  5. no known bug on the demo path is hidden.

Not accepted during the freeze: a new strategy, venue, risk control, performance experiment or document. Accepted: a bug fix, a test or explanation of existing behaviour, or a demo script.

Lifted on 2026-10-30, for one requested item. The freeze was there to stop the market-making line from expanding without bound; both it and the signal line are now closed by measurement, so the boundary moves rather than disappears. The request was an execution scheduler: execution_l2 works one parent order and takes no view on direction, so it is a new strategy name without being a new claim about the market. Everything else stays frozen, and a next item needs the same kind of request and a row here.

The owner's freeze, recorded 2026-11-10, and what lifted it. Code and data were frozen: no new strategy, no new measurement, no purchase and no performance experiment. Lifted on 2026-11-11, by request, for one line of work: the live-venue demonstration of ADR 0005 -- an order outlet that is off unless asked for, and nothing that changes a recorded number. Everything else stays frozen, and a next item needs the same kind of request and a row here.

The owner's request, recorded 2026-11-13, and what it lifted. Three tools, and no claim about a market: an expanding walk-forward over the sweep CSVs the repository already writes (tools/study/walk_forward.py), so a cell chosen on one window is scored on the next one alone; a windowed true range (tools/study/volatility_window.py), the "tick range over a fixed time window" that src/strategy/maker/active_l2_market_maker.h names as the reason its per-second volatility halt cannot be a threshold, with a two-bucket join; and the driver that gives that join something to join (tools/study/slice_pnl.py), which cuts a day into slices, replays the same maker on each and writes the per-slice result beside the per-slice range on the same clock. All three are tooling: no strategy, no purchase, no change to a recorded number. Everything else stays frozen.

The owner's stop, recorded 2026-11-13. Three items came out of the volatility work and none is being taken. The walk-forward run does not go into the document gate: the self-test does, because it costs nothing, but the two sweeps a real run needs are about forty-three seconds, and fast is the check every edit pays for. A measurement that answers a question when a paper is being written is a command, not a gate; tools/study/walk_forward.py stays one. The two measurements that came out of the floor -- a wider quote than one tick, and a rolling-window range against the fixed slice -- stay frozen with everything else, because the fee wall has now been measured from enough directions that tuning a quote width is the expensive end of marginal work and it would pull attention off the sandbox acceptance line. And tools/fetch/slice.py's snapshot mode keeps scanning past its end timestamp: a tool with no self-test that no run path depends on is not worth the risk of a change, and slice_pnl.py cuts in one pass and does not use it. Each of the three is a decision with its reason, so lifting one takes a new request like any other.

The owner's stop, recorded 2026-11-02. Four items were candidates and are not being built: a per-fill PnL column in the trade report (the remaining half of the interval work), a latency budget asserted in the gate, a client order id that survives a process restart, and a randomized fuzz tier for the readers. Each has its verdict in the gaps table or in the item that named it; none is scheduled, and lifting one takes a new request like any other row.

Change log

Scope decisions only. What changed in the code, release by release, is CHANGELOG.md — this table records the decisions about what the project will and will not build, which is the thing a plan has to remember. A row here that also appears there is the same event seen twice: once as work, once as scope.

A decision that closes a technical question rather than a scope question gets a file of its own under docs/adr/ — context, decision, what it costs, and the links that measure it — because the thing a reader needs for "why is the event a variant?" is a link they can send, and a row in this table cannot be that link.

Date Change Commit
2026-10-28 Consolidated the plan here; removed PROJECT_BRIEF and the separate decision log; reset the boundary to "deferred, can be lifted" 2d23d5d
2026-10-28 Removed the interview walkthrough/Q&A from P0; the plan is project-quality only 2078958
2026-10-28 P1-1 done: gateway timeout query/reconciliation; P1-2 is a participation cap only; P1-3 is IOC/FOK, cancel/replace deferred this commit
2026-10-28 P1-2 and P1-3 done: external-BBO participation cap, TimeInForce on orders, IOC/FOK terminal cancels, --participation-limit and --time-in-force f832873
2026-10-28 P1-4 done: the three-command demo path and expected lines in the User Guide; P1 is complete 95d3216
2026-10-29 Internal refactor: one side-generic matcher, one external-touch predicate, and a single-order submission step; no behavior change and gate green 87be6ba
2026-10-29 Internal refactor: report fan-out named as handle_report; quote observation separated from generic order submission b05898e
2026-10-29 Internal refactor: named handle_event overloads replace the if constexpr market-event chain 7ba3927
2026-10-29 Internal refactor: fill accounting extracted from handle_report into apply_market_maker_fill 3ac6994
2026-10-29 Internal refactor: fill state moved into FillAccounting; Pipeline now reads position/reservations/counters through it 0526993
2026-10-30 Internal refactor: shared event clock/mid/queue helpers, one risk-context builder and one order-settlement step; no behavior change 96f652f
2026-10-30 Metrics batch 1: the equity series sampled once per 60-second bucket behind --metrics, and a [PERFORMANCE] line with drawdown, its duration, volatility, Sharpe, Sortino and Calmar; default output unchanged f0a7b9d
2026-10-30 Metrics batch 2: every closing fill booked as a round trip (side, entry and exit price and time, PnL, both halves of the fee), with [ROUND_TRIPS] reporting win rate, profit factor, expectancy, average win and loss, holding time, taker and total notional, and turnover 8b259fb
2026-10-30 Metrics batch 3: the decision midpoint kept per order, [TAKER] reporting arrival slippage, the drift after a crossing fill at 5/20/60 cycles, and the implementation shortfall of the IOC/FOK orders; --markout-horizon=N parameterises the hardcoded five cycles 66b0484
2026-10-30 Metrics line closed: the architecture table documents [PERFORMANCE], [ROUND_TRIPS] and [TAKER] with their definitions, the coverage table states what is measured and what is still out of scope, and two accessors nothing read are gone 934ee97
2026-10-30 Non-market-making line closed by non-replication: the EWMA cross re-measured at four horizons of 1–64 seconds on two non-adjacent windows, break-even taker rate 0.74–6.72 bps against the venue's 5, one net-positive cell in April and none in June 9582550
2026-10-30 Metrics batch 4: the round-trip distribution split by the side the position was opened on, one [ROUND_TRIPS_SIDE] line per side, sharing the aggregate's arithmetic 110f8aa
2026-10-30 Boundary lifted for one requested item: the freeze no longer covers an execution scheduler that takes no view on direction, and everything else stays frozen 69eaa83
2026-10-30 Execution line: execution_l2 works one parent order with market, twap:N or pov:X children, and [EXECUTION_ALGO] reports the shortfall in basis points. First measurement: no schedule beats one crossing by 2 bps on two windows, so the schedule is not the lever and the fee is 69eaa83
2026-10-30 Execution benchmark: the parent is also measured against the time-weighted midpoint of its own window. twap lands within 3.2 bps of it in every cell while a single crossing sits at −11.92 and +7.79, so the crossing is a drift bet and the schedule pays a stable half point bbbe087
2026-10-30 Execution entry: --algo-entry=post:N rests each slice and crosses the remainder on timeout. Four timeouts on two windows: the fee falls with patience (5.00 → 1.80 bps) but fills fall with it (100 % → 60 %) and the opportunity cost rises faster (0.00 → 10.85 bps), so crossing stays the entry 509e811
2026-10-30 Execution cleanup: two dead fields removed, --algo-entry=cross refuses a parameter it would ignore, complete documents that a truncated window makes the shortfall a lower bound, and the architecture's file and family counts now include the execution line 605af3f
2026-10-30 Capacity ladder 1,000–100,000 contracts on both windows: the shortfall in basis points is flat (every term is proportional to quantity) while the crossings needed go from one to six for market and to 97 for twap; no size reorders the schedules, so the capacity question closes 6c6aa7a
2026-10-30 Pair pre-check before building a multi-symbol pipeline: Tardis serves ETH-PERPETUAL in the same schema without a key, and a fixed z-score rule captures 2–10 bps of reversion against a 28 bps round trip, so the pair closes by measurement rather than by missing data 53f7f63
2026-10-30 Second instrument: ETH-PERPETUAL registered (five-cent tick, one dollar of face value, same fee), its account numbers separated from the BTC contract's, and the crossing floor measured at 6.88 against 5.39 bps for an identical fee 432dc18
2026-10-30 Maker break-even is tick-dependent: −5.65 bps on the BTC contract against +1.26 on the ETH one, same venue and fee; recorded as a hint, because the free days give too few fills to settle it 0b79452
2026-10-31 The campaign after the tick curve, each with its verdict in the sections above: the dated and calendar basis, the CME calendar over 23 quarterly holds, the straddle measured three times (the first two wrong), the maker revival test that falsifies "execution rescues a closed line", and the funding extreme that fails all three gates 8df8777 … 86be0ce
2026-11-02 P2-9 completed: a run that trades two books at once. --symbol-b/--trades-b/--depth-b build a book, a decision layer, a venue and a pipeline per symbol against one Portfolio; the four readers are merged by timestamp; Portfolio::set_instrument values each symbol at its own face value; the summary prints one [EXECUTION] ... symbol= and one [BOOK] per book and the account once. Measured: 377,024 events, gross 11 against net 9, fees 0.0202, re-derived by the gate bf9ef28
2026-11-02 Pre-trade risk follows the account: the hard exposure cap counted each book's own notional against the same cash, so two books could carry twice the cap while both reported no violation. Each book is told what the other legs hold and the check adds it, which is zero in a single-book run. With a ten dollar cap on the same two books the second book is refused and the account never passes ten 5a63c58
2026-11-02 P2-10 landed: a session is written down and taken over. --snapshot-out writes the account, the positions with their entries, the marks, the working orders and the clock; --snapshot-in restores the account, asks the venue about every inherited order (a live one is cancelled, a forgotten one counted) and holds its own orders until the snapshot's clock while it rebuilds the book. The resumed run's [PORTFOLIO] and [EXPOSURE] are identical to the run it took over, and the gate re-derives that. Also fixed: a Pipeline left the venue holding a callback into itself, which a restart is the first thing to notice 195839f
2026-11-02 P2-11 opened with add-liquidity-only: --post-only makes the venue cancel an order that would trade on arrival instead of filling it. active_l2 is unchanged on the 200k window; trend_l2's 55 fills on it were all taker fills (taker fees 0.275 against maker fees 0), and with the flag it trades nothing. Cancel/replace is recorded as deliberately unbuilt, with the engine reason: the queue is reconstructed on entry, so an amend's only gain is the round trip, which needs the latency model 0112968
2026-11-02 Two loose ends closed. A two-book run now reports [PNL] symbol=.. per book — the account's line could not say which leg lost the money — and the split is taken where the account's totals are written, so the legs add up to it exactly. And the session snapshot holds one record per book (its own clock, id sequence and working orders), so a two-symbol run resumes both legs at their own venues; the single-book format written first is still read, because a restart reads a file an older build left behind d5ab624
2026-11-02 The end of the session, priced: --close-out flattens what the run is holding at the touch and prints [WIND-DOWN]. Closing a carried BTC position costs 5.39 bps (5.00 taker + 0.39 half tick) — the same floor the crossing measurements found, arrived at from the other end of the trade — which is the amount every net_pnl_usd that carries a position was optimistic by. A close the touch cannot fill reports no_liquidity=1 with the position as residual instead of a flat account. Also decided: the simulator's venue does not persist its own fills across a client restart, because that would only prove the simulator is self-consistent; a fill a client misses is already reachable in one run (--broker-drop-every) 6a6893a
2026-11-02 Recorded the gaps that were on no list — no interval on any number, no calendar or contract lifecycle, "portfolio" with no risk model, a kill switch that stops quoting but does not flatten, a venue that is a process rather than a service, no adversarial input for the readers, no latency budget, no machine-readable provenance — each with a verdict, because an unrecorded gap is rediscovered as a feature request. One of them was then closed: tier 2 compared against a reference in /tmp, so it never ran on a checkout; the hash now drops the path-dependent mode line and the reference lives in tests/fixtures/ 445a4cc
2026-11-02 The halt path completed. The kill switch used to refuse every order — including the one that would close the position — and the account was never marked during a run, so its realised + unrealised reading had the loss sitting in the position rather than in the PnL. It now exits only (a flip is not an exit, which is what its magnitude-based neighbour would have allowed), marks the book each cycle while it is armed, closes at the touch when it latches, and prices that exit: 5.39 bps on the 200k window, with [EXPOSURE] symbols=0 afterwards where it used to leave a leg open. A limit the run never reaches changes nothing, so every recorded number stands 355b215
2026-11-02 Every number this project quotes is a mean over a handful of events, and the "below thirty fills is not a conclusion" rule had only ever been applied by hand. tools/study/pnl_interval.py now resamples the mean and prints the interval, the median, the range and the thin-sample flag, with its own hand-checked self-test in the gate. Applied to one snapshot slice a month for five months, the maker break-even rate moves from −3.19 to −0.44 bps: the interval around the mean is −2.84 to −0.90, narrower than the 2.75 bps the five draws span, which is the difference between "this mean is pinned" and "this population is one thing". The paired same-day difference is negative on both windows available, so the BTC/ETH gap keeps its sign and loses its size this commit
2026-11-02 The L2 path's data-quality accounting was inert: the validator's stale_trades/dislocated_trades need a best bid and offer, and the three depth readers produce none, so on the path every recorded number comes from those checks never fired and [L2 DATA] did not print them either. The prints are now scored against the book's own midpoint in Pipeline (correct on the threaded path too, where validation runs on another thread), split into stale_trades -- no midpoint, or one more than a second old -- and dislocated_trades -- a fresh midpoint the print was more than five basis points from. Measured: 117,889 and 9 on the 200k window, 0 and 554 on the full day, both printed only when non-zero. The tier-2 reference moved by exactly one token and the re-record is justified by stripping it (270d8085 → d66e88e0) this commit
2026-11-02 The last two long documents were split, which is where the tiering stopped being enough. ARCHITECTURE.md (1,574 lines) is an index over six parts in docs/architecture/, and USER_GUIDE.md (1,048) an index over seven in docs/using/. The field list in the L2 replay part was the remaining overlap with the Learning Path: five fields stay because a run is judged by them, the rest are the conditional groups a flag turns on, and the benchmark's CSV columns are pointed at the tool that documents them. Splitting broke 29 links and one heading's slug had been wrong for weeks, which produced the thing this repository was missing: tools/gate/check_links.py, which resolves every relative link and every #anchor against the headings of the file it names, counts the number of link openings so a malformed one cannot hide from it, and runs in tier 1 and in CI this commit
2026-11-02 Twelve documents at one level, three of them longer than a thousand lines, with the plan carrying 1,700 lines of finished research and two change logs saying the same thing. The documents are now in three tiers -- the answer and the argument, the reference, the evidence -- with docs/index.md as the map and a "who owns what" table that says what each document owns and what it must not contain. PERFORMANCE_HISTORY.md is an index over three parts in docs/performance/ (the engine, the L2 mainline, the studies); LATENCY_DESIGN.md became docs/performance/design.md; ROADMAP.md dropped from 1,971 to 290 lines by moving the record of finished studies to docs/archive/studies.md; and RESEARCH_NOTES.md joined it in docs/archive/. Every intra-document link was rewritten, the gate and CI now lint and re-derive docs/*.md docs/*/*.md, and a paragraph claiming there is no persistence or recovery -- both of which exist -- is corrected 0dbfbb4
2026-11-02 The documents still introduced the project as a toy simulator for learning, with the measurement work as a second half bolted on. They now say what it is: a measurement project with an instrument inside it, eight markets closed by quotients, and every quoted number re-derived by the build. The intro of the README, the documentation index, the Design Review, Architecture, the Main Line, the Learning Path, the User Guide and the Roadmap's opening and status table all say it the same way; the "interview versions" section became "the questions a reader asks", because the plan removed interview material a week ago; and the README's non-goals were rewritten, since the old list claimed there was no persistence and no L2 reconstruction, both of which exist a4f0bf9
2026-11-02 The tools directory was one flat list of forty-eight files, and nothing in it said which tool answered which question. It is now seven directories by kind -- gate/, sweep/, fetch/, study/, live/, bench/, legacy/ -- with tools/README.md as the map, and every path in the documents, the source comments, the gate and the CI workflow moved with it. Two files became one entry point (slice.py, whose window and snapshot subcommands are the two shapes a slice takes), the marked-block emission moved into lib.sh so four sweeps no longer each spell the marker, and one file was deleted: lf_windows.sh, named by nothing and asking the question equity_schedule_sweep.sh already asks. The stale site/ build of the documents went too 47c6849
2026-11-02 A review of the recent code found three things worth changing and two worth recording. Changed: the OKX depth reader's levels and the live feed's prices went through parse_double, so a nan level price reached the ladder on the two paths the CSV families had already been hardened against; the OKX depth errors now carry the line number as well. Recorded: the L1 path drops a print far from the BBO while the L2 path counts it, and the recorded windows mix quarter-hour depth with day-long prints -- both in the gaps table, because either fix moves recorded numbers 7fb6133
2026-11-02 The readers were asked what they do with input nobody promised them, in a test rather than in a review. They already refused every hostile row — truncated, nan, negative quantity, wrong-case side — which was better than the test suite knew, and four things were still missing: no message said which row, a nan price was caught by the validator instead of the reader that could locate it, a batch that left the book crossed was skipped and not counted, and an empty depth file produced a formatted run of zeros with exit code 0. All four are closed; the row numbers come from LineReader::lines_read() and the count rides on [L2 DATA] only when it is non-zero, so no recorded line moved 7c62be3
2026-11-06 The two notes that lived outside docs/ came in: data/README.md and tools/README.md are now docs/DATA.md and docs/TOOLS.md, with a six-line pointer left at each old path so that a link into data/ or tools/ still lands on something that says where the answer is. The reason is mechanical rather than tidy: a document outside docs_dir cannot be linked relatively -- mkdocs build --strict refuses the link and check_links.py cannot follow it -- so the seven links that reached those files were absolute GitHub URLs on a repository name that has not been renamed yet, which is a 404 in the window between the two. They are relative and checked again. The eighth absolute link, to CHANGELOG.md, stays absolute: a release log belongs at the root of a repository and not inside its site. The prose lint now covers 31 documents instead of 29, which is how the fetchers' --verify, --sample and --self-test were found missing from its list of flags that belong to the tools rather than to the engine this commit
2026-11-10 The published site's front door was still the old one, and the reason is worth recording: the repository page is README.md and the site's home is docs/index.md, and the earlier diet had been applied to the first only. The home page is now the same three parts as the README -- the pitch, one command, the hook into the vault -- with the map moved to docs/MAP.md, which also repaired a real defect: the who-owns-what table had five tier-3 rows sitting outside it, so the published page showed a second table with no header. The navigation is grouped by the same three tiers instead of listing fourteen pages flat, with the guide's seven parts, the architecture's six and the history's three nested under their own indexes. No file moved and no link changed: the grouping lives in mkdocs.yml, and .clinerules now records that there are two front doors and that both are the same shape cecad15
2026-11-06 The two longest pages were split once more: architecture/05-strategy.md (663 lines) is an index over two parts and using/03-l2-replay.md (618) an index over three, both keeping their paths so nothing that linked them had to move, and each part keeping the heading text it had so every anchor survived the cut. Splitting them exposed a gate bug rather than a document one: lint_prose.py and check_docs.py were called with docs/*.md docs/*/*.md, which is exactly two levels deep, so the five new pages were outside both checks and nine documented flags read as "not mentioned in any document" while every tier stayed green. Both tools now take a directory and walk it, the gate and CI pass docs, and a section that grows a subdirectory can no longer fall out of the lint silently this commit
2026-11-06 The threaded path became measurable per stage, which it could not be: --profile-stages with --feed-thread was refused because one profiler would be written from two threads. Each thread now has its own instance and the run prints two labelled blocks — the feed's read+parse and validate, then the consumer's six — so the mode the ring exists for can be profiled at all, which matters because [LATENCY] counts in microseconds and the hand-off it would have to show is 170 ns. The two-book path keeps the refusal with its reason: there one profiler would be written by two pipelines as well. With the measurement available, the event's shape is recorded as not worth changing — 119 ns per message of move-and-destructor against a trivially copyable payload of the same size, on a path no recorded number uses, and not a rename: MarketDepthSnapshot carries two std::vector<DepthLevel>, so making the variant trivially copyable means bounding a snapshot's levels or a pooled-buffer protocol this commit
2026-11-07 The reading the previous row made possible was taken and written down: three runs each way on the W1 slice, median of three, now in §3.5 of the performance reference. It says the split is what threading buys — the feed thread carried 57–68% of the direct block's per-event work, so most of an event's cost is the reader's and it runs beside the strategy instead of in front of it — and it says every stage is slower than the same stage done serially (book-apply +53%, market-view +28%, strategy +23%, engine +13%, and even the feed's validate +27%), with the ordering stable across the three runs and the magnitudes not. That follows from the hand-off costing more than the 119 ns ring_bench measures: the bench hands over a value the consumer already has in cache, while a real event is written on one core and read on another. It is a second reason not to restructure the event type to recover that 119 ns this commit
2026-11-07 The last performance candidate was closed by counting rather than by optimizing. MEOrderBook keeps a std::map per price level and the plan's answer was "needs a workload with real order flow"; three settings were measured on W1 and the strategy posts 406 orders at the recorded setting, 685 with --refresh-price-ticks=1 --edge-cover-ticks=0, and 682 at the touch with the refresh threshold at a tick — a factor of 1.7 at most, where a container change would need three orders of magnitude to show. One or two resting levels a side makes the map worth tens of nanoseconds per own order, so a few tens of microseconds in a run: not a latency item, and the workload that would make it one is a strategy this project does not have. The conservative quoter is the finding rather than an accident, so the item is retired instead of scheduled this commit
2026-11-10 The documents were given the layer they were missing and told to keep the names they had. A four-layer reorganisation was proposed twice -- rename archive/ to research/, add a second quick-start, split the optimisation ledger out of PERFORMANCE.md -- and the measured answer was: those two renames cost seven and fifteen inbound links to buy vocabulary, the quick-start already exists as the getting-started guide, and the ledger is load-bearing through the Ledger row: convention in the low-latency design. What was actually missing was addressability, so docs/adr/ now holds one file per technical decision, append-only, with a status line, a consequences section and no number it does not own -- every figure in a record is a link to a marked block, which is what keeps the layer cheap enough to survive a re-record. README.md went from 370 lines to 92 by deleting what the retrospective and the guide already said, and the front door now opens on the pitch, one command and the hook into the vault. The record/index agreement is checked by tools/gate/check_adr.py in tier 1 and in CI, because a status table is one more fact kept in two places this commit
2026-11-10 The low-latency line got the one document it was missing: a retrospective of the line itself, at tier 1 next to the project retrospective, because the material existed only as three fragments — the mechanism in performance/design.md, the numbers in the ledger, and the order taken in performance/history-*. docs/LOW_LATENCY.md says what the line was for, the order the attempts came in, what returned (a win that survived the end-to-end test, a win that did not, and a measurement that replaced a change), the two kinds of loss, the four rules it produced, and then the two sections that justify a page at this level: the stop stated as a condition a future proposal can be tested against, and the five things the line never measured. It owns no number — every figure it needs is a link to a block the gate re-runs — and .clinerules now says the page is maintained rather than frozen and is not to be folded into an ADR, because the records are one decision each and this is the narrative they are footnotes to this commit
2026-11-07 The project's central claim was given the series it was missing. "At a one-tick spread the fee is 2.57 ticks against 0.088 captured" was a statement from one window, and the plan's open row said so; tools/study/pnl_interval.py could resample the break-even rate over the five free days but not the other half of the same question, so it gained --window-field and --window-scale and now summarises any field a replay prints. The capture side over the same five days is 0.086, 0.035, 0.242, 0.379 and 0.462 ticks, against an interval of 0.096 to 0.385 and a spread of 0.427: on every day the policy earns 1.2% to 18% of the fee it pays, and the best day is still 5.6 times short. So the ratio replicates where one window could not show it, and the two columns move together — April worst on both, August best on both — which is the month effect appearing twice rather than a second finding. Both series sit in docs/performance/history-03-studies.md behind tool: blocks the gate re-runs, and the open row now states the limit exactly: a series over windows, not over months this commit
2026-11-07 The last confound in that series was removed rather than restated, and removing it changed the answer. The archive is a stream of rows, so 200k rows is half an hour in April and two hours in July, and the draws carried the month and the slice length; Window now takes a span as well as a rows, --window btc-months-span replays the first half hour of the same five days, and the row count becomes the thing that varies (204k in April, 73k in July, a factor of 2.8). The result is not a tidier table: the mean moves from −1.87 to −2.05 bps, the spread widens from 2.75 to 3.57, July's break-even rate turns positive at +0.05 bps, and sign_consistent falls from 1 to 0 — so the ordered trend the row-count series showed was partly the slice length, and the honest report is the flag the tool prints rather than a rounding to the sign the other four days have. What survives is what the dead-ends table rests on: net per fill is negative on all five days (−0.0055 to −0.0020 USD), and the best equal-time capture is 0.353 ticks against a fee of 2.57. Both series stay — one answers "is this the month or the slice?", the other is what the rest of the documentation quotes. A third column (net_per_fill_usd) came for free, since the field switch added an hour earlier takes any name=value a run prints this commit
2026-11-07 The two routes a reader keeps proposing were answered from the record instead of re-argued, and one reading was corrected. The venue table's "good" is an access-and-cost rating, not a verdict: micro futures and "equities with the quoting removed" are both in the eight closures. The micro E-mini failed on the fill population rather than on the fee — 0.0131 ticks captured at the touch against a half tick of commission, and at two ticks the capture rises 37× while the fills fall from 1,675 to 57 with a −0.689 markout, and at four ticks nothing fills in two hours — and the low-turnover rule is the eighth closure itself, at 4 of MU's 8 windows positive with a median of −23.34 cents a share. What the record was missing is the split between what a fill earned and what the position earned afterwards, so --markout-horizon was swept on the one positive window: the markout goes from +0.092 ticks at five quote cycles to +0.333 at two hundred while the capture and the net do not move at all, which makes the SPY window evidence of a drift in the position's favour rather than of a quoting edge — the same fact as the 27.40 USD by which its capture misses the commission, and the reason the archived "it is quoting, not the position" sentence should be read as closed-versus-open. MU's eight windows carry the opposite sign on that term (−3.59 to −7.08 ticks) with the quoting margin positive in all eight, which is the 941 against 10,588 the hibernation row records; they are now rows in tools/sweep/f4_windows.sh, one of them pinned in the studies page, the rest printed but not quoted because their tick decomposition does not reconcile with closed_pnl_usd this commit
2026-11-10 The gate was split by what a change pays for, because the working rules had made the expensive half mandatory for every edit. Measured before cutting: tier 1 is two halves that cost different things -- the code half asserts about twenty invariants on the 200k slice in 10 to 15 seconds, the document half re-derives every quoted number in about 110 seconds, and almost all of that is one page whose blocks replay Databento equity windows at about 35 seconds a run against a tenth of a second for a Deribit slice. verify_l2.sh now takes smoke (two replays, about a second), code (tier 0 plus the invariants), docs [pages] (the documents, page by page) and keeps fast as the whole tier for once per task, with all still the acceptance gate. The header's cost claim was rewritten from measured values, because the one it carried -- about 64 seconds -- had been wrong by an order of magnitude and nothing was checking it. The first run of the new verb also found that a page argument is not a binary path, so docs takes its binary from GATE_BIN. .clinerules gains the matching table and the two rules the failure came from: batch the edits and verify once, and a red gate is not a prompt to retry it this commit
2026-11-11 The freeze was lifted for one line of work and the first step of it landed. The question was how to demonstrate a live connection without either claiming profitability or risking money, and the answer was already in the tree: PaperBroker and OrderGateway are both IMatchingEngine, so a venue is a third implementation and the core does not change. src/lines/live_venue.{h,cpp} is that adapter with its wire injected, so nothing socket-shaped exists yet: an order becomes one frame, the adapter refuses past its own order-count and size bounds before anything is written, a failed write is counted as a failure rather than a sent order, and ack/fill/cancel/reject become the ExecutionReports the ledger already consumes. tests/live_venue_test.cpp pins all of it against a recorder, and because nothing in the run path calls the adapter no recorded number moved; only the counts the documents state moved, which is what lint_prose counts, and how it found the six places that still stated the old test count this commit
2026-11-11 The second step of the same line: the injected wire gets a real one. src/lines/tcp_venue_transport.{h,cpp} is a TCP transport -- one frame per line, the venue's replies split on newlines on a receive thread, a connection that has gone away reported rather than sent into -- and it is POSIX like the legacy UDP feed beside it, still the only file in the line that knows a socket exists. tests/tcp_venue_transport_test.cpp runs the adapter over loopback against a listener the test opens on an ephemeral port, so the round trip is proved without an endpoint, a credential or a market: the frame crosses as one line, the ack and the fill come back as ExecutionReports, the counters on both ends agree with what crossed, and an order after the venue hangs up is a refused write. What it does not do is speak the relay, which is WebSocket: the order channel is still the open half of the step. The counts moved again, and no recorded number moved, because nothing in the run path calls the line yet this commit
2026-11-12 The second half of step two and all of step three, which were the two things the step before was missing: a proof across processes, and a record. tools/live/venue_relay.py gains an order channel -- the adapter's lines in, the venue's order messages out, and the venue's answers back as the four replies the adapter decodes -- with --simulate-orders answering as a sandbox venue, deterministically and with no key, so the translation is exercised without an endpoint; tests/relay_order_channel_test starts that relay as a child process and drives it with the real adapter and the real transport, which is the claim neither of the other two tests could make alone. The route to a venue's private channel is deliberately not written: it needs a key and a login handshake, so --order-listen without --simulate-orders is refused rather than accepted and ignored. src/lines/order_recorder.{h,cpp} writes the order leg to <prefix>_orders.csv -- one row per submission, per cancel and per execution report, every field a report carries, prices as the shortest decimal -- and src/lines/recorded_venue.{h,cpp} is the reader: RecordingEngine decorates a venue and records, RecordedVenue answers from the file instead. tests/order_recorder_test pins the header and two rows literally, the round trip field for field including a rebate's sign, the rows_left count that says a replay stopped short, and four refusals that each name the file and the line. --record-orders=PREFIX is the flag, refused on a mode with no venue and on a two-book run because a recording is one file per venue. Two bugs were self-inflicted and worth the record: pclose closes the read end before it waits, so a relay still printing its summary exited 120 until the test drained the pipe, and the pinned CSV rows were wrong by a comma in the two columns a submission leaves empty. The counts moved -- the test binaries of that build, 120 files, 26,024 source lines -- and no recorded number moved, because nothing in a run reads the file back yet this commit
2026-11-13 The private route the order channel was missing, and the acceptance criterion that had to move before it could be measured. tools/live/venue_relay.py now serves --order-listen from either backend: --simulate-orders, or the venue's own private stream -- a login signed over timestamp + "GET" + /users/self/verify, the orders subscription, the same OrderTranslator both ways, and a reconnect that logs in and subscribes again, with logins, subscribes and reconnects in the summary. The three credentials come from TOYQUANT_API_KEY, TOYQUANT_API_SECRET and TOYQUANT_PASSPHRASE and are masked in any repr; a listener with neither backend exits naming the variable that is missing instead of saying the route does not exist, which is what the previous row's decision said while the route was unwritten. The gate never ran the relay's self-test, so verify_l2.sh now does: one HMAC vector computed outside the tool, a local stand-in venue that verifies the login from the bytes that crossed a socket and drops one connection so the re-login and re-subscription are exercised, and the six refusals that were already pinned. ADR 0005 gained an amendment: the order leg replays on the recorded clock (A), because RecordedVenue answers on submission and a live fill does not, and the ledger-only reading (B) is recorded as rejected with its cost. Two recordings now have to cover the same window, which is a requirement on the run rather than a new measurement. The counts did not move -- no C++ file changed and no test binary was added -- and no recorded number moved, because no app mode drives this yet this commit
2026-11-13 Two tools for the question the signal study left open, granted by the owner and recorded above. tools/study/walk_forward.py fits a swept parameter on every window up to a fold and scores the chosen cell on the fold alone, which is the half trend_l2's 27-cell grid was missing -- the page's own sentence about its best cell is that it "is a statement about this window, not a parameter to freeze". It consumes the CSVs the sweeps already write, states its selection rule (highest mean over the training windows, ties to the first tuple in the file), counts a missing metric as missing rather than as zero, and refuses a single window. tools/study/volatility_window.py computes a window's own true range in ticks -- the "tick range over a fixed time window" that src/strategy/maker/active_l2_market_maker.h records as the thing its per-second volatility halt cannot be -- prints both averages (all windows, and the windows with at least two prints, because a window with one print has a range of zero) and offers a two-bucket join split at the median that deliberately takes no verdict. Both read what is already on disk, both have a --self-test in tier 1's tool check, and neither changes a strategy, a recorded number or the size counts. A first walk-forward over the two Deribit windows reports replicated=no with the chosen cell negative out of sample, which is the tool doing its job rather than a finding this commit
2026-11-13 The first sandbox order was placed against the real demo venue, and it decided where placement lives. The blocker was the account, not the request: 50026 was three identical answers with backoff, integer and string instrument codes and the clock within 120 ms, while REST named the real refusal -- 51010 "You can't complete this request under your current account mode" -- and the account was acctLv=1, spot-only. Switched to margin, REST places the order (code 0, sCode 0, "Order placed", ordId 4096362816047378433, then a cancel answering code 0) while the websocket trade operation still answers 50026, so the demo venue's placement surface is REST and its websocket is the orders channel. The relay grew --order-rest URL, which sends the translator's own args[0] as the REST body -- one translation, two transports -- beside --order-inst-code for the venue's instIdCode and a second timestamp function, because REST wants ISO-8601 milliseconds where the websocket wants epoch seconds (50112 against 60004). Measured on the engine's side: [VENUE] frames_sent=2 frames_received=2 orders=1 cancels=1 reports=2 dropped=0, [ORDER-LOG] submissions=1 cancels=1 reports=2, [RECON] status=ok; on the relay's, placed=1 venue_refusals=0 transport_failures=0. A fill stays unmeasured for two named reasons: the orders channel is not subscribed on the REST route, and sz is in the replay instrument's units (one OKX contract is 0.01 BTC at 2026 prices, the replay is 2020), so a fill would be a number about nothing. No C++, no recorded number and no size count moved this commit
2026-11-13 The sandbox was blocked on the demo account's mode, and the chain to that sentence is measured. 50026 was not a transient: three attempts a second apart, instIdCode as a number and as a string, all identical, with the host clock within 120 ms of the venue's. The same order over REST -- which needs ISO-8601 milliseconds where the websocket login needs epoch seconds, 50112 against 60004 -- answers sCode 51010 "You can't complete this request under your current account mode", and GET /account/config reports acctLv=1, spot-only. A perpetual swap is not a spot instrument, so the websocket handler had collapsed that refusal into a system error. The round trip is proven on both roads ([VENUE] frames_sent=2 frames_received=2 reports=2, both rejections booked, --order-inst-code passing the venue's contract code rather than guessing it); a fill waits on a venue-side setting -- single-currency margin, acctLv 2 or up -- and not on a change here. The eight error codes this line has actually produced are now folded on the live page, with the two timestamp formats beside them, because a client sharing one timestamp function across both surfaces is one code away from looking like it has the wrong key. No C++, no recorded number and no size count moved this commit
2026-11-13 The sandbox order's request shape is now settled, and what stops it is the demo venue's own answer. The relay's frames showed the venue answering both requests and the client dropping both: no id to correlate on, and an early return on an empty data list before the decoder could turn a refusal into a REJECT. With the id the complaint became specific -- instIdCode -- so --order-inst-code passes the venue's internal contract code (10459 for BTC-USDT-SWAP, read from its public instruments endpoint) rather than deriving one, and with it the venue answers 50026 "System error. Try again later." for the order and 51400 ... does not exist for its cancel, both booked by the engine as rejections ([VENUE] frames_sent=2 frames_received=2 reports=2). --order-no-subscribe established the other surface: the business route refuses both the orders subscription (60018) and an op: order (60012). --order-dump=FILE records every frame both ways with the login's key and signature redacted, which is how each of those answers was read, and the round trip is proven while a fill is blocked on the demo venue rather than on this side. The size stays open, being in the replay instrument's units and not the venue's. No C++, no recorded number and no size count moved this commit
2026-11-13 The live venue became the run's venue, and the first run taught the adapter three fields it had never carried. --live-orders --venue-endpoint=HOST:PORT --venue-max-orders=N puts LiveVenue over TcpVenueTransport in place of the in-process matcher, with the broker, the order recorder and the gateway unchanged around it -- the decorator stack every recorded run uses, which is what ADR 0005 decision 1 bought. The three flags are required together and refused outside l2_replay and ws and on a two-book run; the live leg's replies are applied on the consuming thread, so the accounting is never mutated from two threads and a fill is seen before the next decision. The first run against the relay's simulated venue decoded twelve reports, booked none and reported [RECON] status=break: the frames carry an order id and nothing else, so the reports had no owner, the default side (Buy) and no liquidity role. The adapter stamps all three from the order it sent, tests/live_venue_test pins them -- and that test had been returning 0 two thirds of the way down, so its four-reply mapping had never run either. The same run now reconciles with report_count_difference=0; the app-level run is still a hand-run step rather than a gate step, and the sandbox acceptance run is the next thing the key pays for. The counts moved to 26,201 source lines (app 8978, lines 3872) with the file and test-binary counts unchanged this commit
2026-11-18 The adapter's session cap is a bound on what a run sends, which is the wrong shape once the refusals reach the strategy: the 60 s demo run met --venue-max-orders=20 with 383 quotes and 362 refusals, and its exposure was whatever those twenty orders filled (400 units, 25.6 USD) rather than the 10,000 the same harness reached while the refusals were invisible. --venue-orders-per-second=N is a second bound, on how fast the session places, exempting a close like the session cap does; a rate refusal is counted apart (rate_limited) from the cap's, because an exhausted session says the run is over while a rate refusal says the next window is. It is a scope decision rather than a repair: the cap still exists and still binds, and no recorded run sets the rate this commit
2026-11-19 The venue's quantity is reconciled beside its equity now, at both ends of a session and on a resumed one, and the number travels with the unit it is counted in. GET /api/v5/account/positions is asked on the balance's own signed surface and converted with the translator's contract size, signed because a short is a negative quantity; the line is [RECON] at=start position venue_units=… ledger_units=… position_break=… tolerance_units=0 status=ok|break|unknown, printed before anything is quoted, because a resumed session restores positions from a file and the venue is the only one that can say whether the file is still right. Measured 2026-11-19 against the demo venue: a 60 s run read at=start position venue_units=0 ledger_units=0 position_break=0 tolerance_units=0 status=ok and the same at the end beside equity_break_usd=9.74505e-05 status=ok; tools/live/resume_live.sh fresh|resume|break runs the only shape that reaches the start line on a resume (l2_replay --live-orders --snapshot-in, because ws refuses the snapshot flags), and its break run -- that snapshot with one fabricated 10,000-unit position -- read venue_units=0 ledger_units=10000 position_break=-10000 status=break beside equity_break_usd=-100000 status=break. The fault there was the file and not the venue, so the harness grew venue [S|B]/flat [B|S]: one contract placed at the venue's own touch through the relay's order leg with no engine connected, which is a position the snapshot cannot know -- unrun, because www.okx.com stopped answering at 22:23. The unit is now checked rather than assumed: the relay states what it converted with (POSITION <units> <units_per_coin> <coin>), the engine compares that with the run's own instrument, and a disagreement prints position_break=n/a … status=unknown with no magnitude, the coin being compared rather than the instrument's name (BTC-PERPETUAL and BTC-USDT-SWAP are one quantity of BTC). A two-book run has no such line and cannot have one: --live-orders is refused with two books dbb6392, 82ee196, 8f1bfcf, 1d6cded, e400df3
2026-11-21 The relay's transport stopped being able to hang, die, or go nowhere. Three defects, each found by trying to run a live session on a host whose resolver answers www.okx.com with a link-local address: connect(2) had no bound (the Python relay has always passed timeout=15 to socket.create_connection, and the port dropped it), so a balance query sat inside it for the whole seventy seconds it was watched while the engine read frames_received=0; the three query answers took session_mutex_ and called REST inside it, so the venue's read loop waited at on_connected; and a TLS write on a reset socket killed the process (exit=141, SIGPIPE, because MSG_NOSIGNAL covers the plaintext writes and SSL_write has no such flag). The connect is now non-blocking with one ten-second deadline for the address list, the answers take no lock (what they read is immutable), SIGPIPE is ignored once at the relay's entry, and --proxy=HOST:PORT puts both legs and the placement route behind an HTTP CONNECT tunnel -- which is what let the venue be reached at all: the market leg carried the public stream, the order leg placed over REST, and the run closed flat with [RECON] at=end position venue_units=0 ledger_units=0 position_break=0 status=ok beside equity_break_usd=-0.00123797 status=ok. With a way in open, the venue-side break was measured in the one shape whose two sides count the same thing (ws on BTC-USDT-SWAP): flat read at=start position venue_units=0 ledger_units=0 position_break=0 status=ok, and one contract sold on the venue from outside the engine with a market order read venue_units=-10000 ledger_units=0 position_break=-10000 status=break beside equity_break_usd=-9.35721 status=break. The first attempt at that injection was an IOC at the bid, which filled a hundredth of a contract, and the line said -100 for it -- the conversion being right both times (pos is the contract count, and -1 x 0.01 x 1e6 is -10000), so the size of a fault is read from the venue's row before its line. A new venue_ws_test pins the deadline against a listener whose accept queue is full, the refusal path, the tunnel's own name, a 403 status line and a write to a closed peer; tcp_venue_transport_test's refusal case now holds its port rather than releasing it, because two tests running together once let it connect to another test's listener this commit
2026-11-21 [WIND-DOWN] could not tell a refused exit from an empty book, and the field meant to had never been set from the venue. Two runs are the evidence: the 2026-11-17 40 bps exit, refused for pricing below the demo venue's floor, and the break run's reduce-only sell, refused because the account was already short -- both printed no_liquidity=1. The exit now records the id its submission will take (read before the call, because an in-process matcher and a stand-in venue both report inside it), the report stream raises a flag when that id is rejected, and the wait ends on the flag instead of spending its budget; the summary prints refused=1 and the position stays on the ledger. pipeline_accounting_test's LateFillVenue gained a refuse_closes mode to pin it, and the first version of that test failed on the id being recorded after the synchronous report. The same turn corrected a claim from a93e808: the venue's pos is the contract count (pos=-1 beside notionalUsd=582.5454 and imr=194.5729), so POSITION -10000 1000000 BTC for one contract is right and the earlier -100 was a hundredth of a contract that an IOC filled -- not a hundredfold understatement. No recorded number moved this commit
2026-11-21 A five-minute live session, and the two things it taught the report. Measured ws on BTC-USDT-SWAP through the proxy, cap 4000, rate 2/s, --starting-cash set to the venue's own equity: [RECON] at=start ... equity_break_usd=-2.77474e-07 status=ok and at=end venue_equity_usd=4850.19 ledger_equity_usd=4850.2 equity_break_usd=-0.00386365 status=ok beside at=end position venue_units=-1400 ledger_units=-1400 position_break=0 status=ok -- the first session whose two sides compared a nonzero position and agreed -- with [VENUE] orders=326 cancels=281 refused_by_adapter=75 reports=909 dropped=0 duplicates=2 rate_limited=75, every refusal the rate rather than the cap. The same window at the default cap spent it in a minute (orders=201 rate_limited=43 refused_by_adapter=1004), so a longer session needs the cap raised until the rate is the only bound. And its wind-down read position=-1400 closed=0 residual=-11400 no_liquidity=1, which was two facts in one field: the exit's reduce-only order did not fill and a resting quote filled the other way during the wait, growing the position by 10,000 units. [WIND-DOWN] now prints grew=<units> beside either verdict, pinned in pipeline_accounting_test by a venue that refuses the exit and fills a quote during its wait this commit
2026-11-21 Three five-minute live windows, and the decomposition the project's own question needs. Through the tunnel, ws on BTC-USDT-SWAP, cap 4000, rate 2/s, and a --starting-cash read from the venue before each: gross -0.41, +0.92 and +1.07 bps of maker notional (61,884.4, 53,281.2 and 43,208.4 USD), fees 3.36, 3.88 and 3.80 bps, net -3.77, -2.95 and -2.73 bps (net_pnl_usd -23.309, -15.7405 and -11.7888). [PNL]'s own breakeven_maker_rate is -4.09e-05, 9.217e-05 and 1.07135e-04: this strategy needs a maker fee at or below about one basis point and the demo venue charges two. One gross is negative and two are positive, so it is an edge in neither direction -- what the three pin is that a passive quote capturing around a basis point cannot pay a two-basis-point fee. Every window reconciled at both ends (best equity_break_usd 2.80261e-08, worst -0.00386365, all status=ok), one compared a nonzero position and agreed (venue_units=-1400 ledger_units=-1400), and window 2 ended venue_units=0 ledger_units=-1800 status=break because 280 of its 304 reports were late fills and the last arrived after the final drain: the account was flat and the ledger caught up on the next query, which is the shape late_fill_reports exists to make recognisable this commit
2026-11-23 The two instrument gaps a strategy review found are closed, and one live window measured the fee half. --post-only never reached the venue: the engine's order line has one slot for the kind of order and every kind left as limit, so an add-liquidity-only quote was the taker fill it exists to prevent and an IOC rested. PostOnly now travels in that slot and both relays translate it into the venue's ordType (post_only, ioc, fok), and a live fill carries the venue's own role: the relay forwards OKX's execType (M rested, T took) as a sixth field and LiveVenue books liquidity_role from it instead of assuming a Gtc fill was a maker. Measured ws on BTC-USDT-SWAP, 300 s, cap 4000, rate 2/s, --post-only, --close-out-cross-bps=20: [PNL] gross_pnl_usd=0.17664 maker_notional_usd=20803.6 net_pnl_usd=-4.41232 breakeven_maker_rate=8.49085e-06, [PORTFOLIO] fees_paid=4.58896 maker_fees=4.16071 taker_fees=0.428249 maker_trade_count=44 taker_trade_count=1, [EXECUTION] submitted_orders=172 trade_reports=45 post_only_cancels=87 audited_rejected_orders=76, [WIND-DOWN] position=14100 closed=14100 residual=0 fees_bps=5.00091, and both [RECON] lines status=ok with the position flat. Fees were 2.21 bps of maker notional -- the maker's own 2.00 plus the exit's 0.21 -- against the three earlier windows' 3.36/3.88/3.80, so the flag saved 1.15 to 1.67 bps, and 87 of 172 quotes were declined as marketable, which is what it costs; OKX delivers that decline as a cancel, not as a refusal at placement. This window's gross was +0.085 bps rather than the earlier +0.92/+1.07, so its net (-2.12 bps) is not a like-for-like comparison: the fee rate is, and at 2 bps of maker fee the line still needs a gross capture this strategy has not shown this commit
2026-11-23 The add-liquidity-only flag got its baseline in the same hour, and the session shape became a verb. Measured ws on BTC-USDT-SWAP, 300 s, cap 4000, rate 2/s, back to back: post-only read fees_paid=4.58896 maker_fees=4.16071 taker_fees=0.428249 maker_trade_count=44 taker_trade_count=1 on maker_notional_usd=20803.6 (2.21 bps, gross +0.085, net -2.12), and baseline read fees_paid=13.8705 maker_fees=4.91893 taker_fees=8.95158 maker_trade_count=47 taker_trade_count=176 on maker_notional_usd=24594.7 (5.64 bps, gross -0.633, net -6.27) -- 3.64 of that 5.64 is taker fees on 17,903 USD of aggressive notional, 42% of what it filled, and the flagged window's gross is the higher of the two, so the declined fills were the bad ones that half hour. The saving is 3.43 bps here against 1.15-1.67 against the 2026-11-21 windows: what the flag is worth is a property of the flow, not a constant. Both windows reconciled at both ends with the position flat. The shape is tools/live/soak.sh post-only|baseline, started as bash .run.sh soak <mode> -- a session typed into the tool's terminal with detach.sh once left that shell executing nothing for twenty minutes while the session ran on, so a live session is a verb now, and the rule is in .clinerules. A replay of the flagged window's recording says the offline half of this: without --order-latency-us the flag changes nothing (the quote and the book are one event), and at 100 ms the matcher declines what lands in a moved book this commit
2026-11-23 The demo line's width was swept once, and the sweep says the width is not the lever. Three 300 s windows, all BTC-USDT-SWAP, cap 4000, rate 2/s: at the default two ticks with --post-only, fees 2.21 bps, gross +0.085, net -2.12; without the flag, fees 5.64 (3.64 of them taker on 42% of the filled notional), gross -0.633, net -6.27; at six ticks with the flag, fees 2.00, gross -1.045, net -3.05, and 59 of 100 quotes were still marketable on arrival. Read as a ratio: 2.00 bps charged against a 0.101 bps half-spread is 19.8 half-spreads, so a maker that captured a whole half-spread on every fill would still be twenty times short -- and no width, gate or inventory rule moves that. active_l2's gates were tried first and pause on this feed (4 orders, 0 fills and risk_pause_count=13 in 40 s), which is the view-gap defect history-02-l2 records rather than a strategy result. The tool gained STRATEGY, SPREAD_TICKS and TAG so a scan does not overwrite itself this commit
2026-11-23 The passive entry for the trend line is closed by measurement, and the entry mode is the reason rather than the width. --trend-entry=side=own puts the clip inside our own touch and never through it, so the fee is the maker rate and the fill probability is the one the queue model grants: taker_trade_count=0 in every own-side run. Five runs on AMD, AAPL and TSLA (2026-09-29, clips 100 and 500) read markout -0.75, -0.33, -0.29, -0.05 and +0.76 ticks -- the fill is adversely selected on four of the five -- and gross -0.45 to -0.79 bps of maker notional against 2.2 to 3.2 bps charged, 37 to 53 percent of it the 0.35 per-order floor. The bar was registered before the run (net at least +2 bps, markout at least +4 bps, three windows): the first two fail on every name and the third is a data condition, one tracked session per name, that cannot move a sign. Reopening it needs a measurement and not a parameter: a positive markout in the same test this commit

| 2026-11-23 | The signal line's passive question is answered by the engine rather than by an argument: trend_l2 pays the taker fee on every entry -- 514 of 514 fills, maker_notional_usd=0, fees_paid=2.57 on 5,140 USD of notional, which is 5 bps and not the 2 bps --maker-fee-rate names -- and --post-only declines all 1,814 of its quotes instead of making them passive. Pinned in docs/performance/history-01-engine.md by two marked blocks, so check_docs re-derives both. What follows is what the cascade probe already priced: a signal paying the taker on both legs needs 10 bps of gross and measured +6.09 at 30 s, and a passive version is a different entry rule (rest behind the touch, accept a fill probability) rather than a flag | this commit |

| 2026-11-22 | The demo milestone's three open decisions were closed by policy, and one of them needed a code change to be a policy at all. A recovery that could not resolve an inherited order used to count it as gone -- OrderQuery had two values being asked to mean three things, and PENDING unavailable therefore read as "nothing is working". It now has Unanswered as a third answer, LiveVenue::query_order answers only from a list this client was actually given (a timed-out refresh clears the flag too, because a list that predates the question is not an answer to it), ResumeSummary counts it as unknown= and prints it only when it is not zero, and both resume sites (one book and two) throw before anything quotes: the operator checks the account with tools/live/okx_probe.py and starts again. The other two decisions are recorded rather than built: an exit that was refused or that grew is one attempt and stop (refused=1 / grew=<units>, position left on the ledger) instead of a re-sizing loop racing the venue, and the fee boundary (gross -0.41 to +1.07 bps against 3.36-3.80 bps charged over three five-minute windows) is the fifth closed market rather than a tuning target. session_state_test pins the unanswered bucket and live_venue_test the three-state query; the one fixed sleep in venue_order_session_test became an immediate assertion, because the route answers synchronously and a wait only gave a bug time to arrive late | this commit |

| 2026-11-14 | The Drive workflow existed and had been failing silently for ten days, and the reason was one line in a log nobody read. The post-commit hook called a script outside the repository, at a path in the operator's home directory, whose default repo was the pre-rename checkout directory; with that directory gone, every commit wrote ERROR: <that directory> is not a git repository into /tmp/tq_gdrive_sync.log and the Drive folder stayed at 7035823 while the tree moved through two hundred commits. The replacement lives in the tree and is checked after the copy: tools/export/push_windows.sh runs bundle.py --sync into out/export, copies code.txt, docs.txt, manifest.txt and diff.patch to the Windows folder named by .drive-target (git-ignored, because a machine path is not a repository fact), and then compares each file's remote size and sha256 with the local one -- measured ok code.txt 2236301B 21fe6c715cd4, synced 2a06abc -> <the folder named by .drive-target>. tools/export/install_post_commit.sh puts the block in the hook before the final exit 0 and is idempotent, because the first version appended it after exit 0 where it would never have run; .clinerules section 6 now carries the rule, the log check and the post-mortem (the retired directory is described rather than named, because the gate refuses a built page that carries the old repository name), and the old ToyQuant_*.txt files are left in the folder rather than deleted from outside the repository | this commit | | 2026-11-14 | The handoff to a read-only reviewer is now a sync with a diff, not a dump. tools/export/bundle.py --sync writes code.txt, docs.txt, manifest.txt and diff.patch into $TOYQUANT_DRIVE_DIR -- the folder a Drive client uploads from -- and then checks what it wrote; a missing folder is an error that names the variable, because a reply reporting a finished task while the sync did not run is wrong. The diff is the commit the previous manifest carried to HEAD over the bundled paths, which is the artifact a review actually needs: a typical change is a few KB against 3.35 MB for the tree, and the manifest's commit and per-file sha256 are how the reviewer says "stale" without being told. --since sets the base explicitly, the self-test covers a known base, a manifest with a since line and a second sync that picks the base up from the previous manifest, and .clinerules gains rule 6 with the order a reviewer is given things in and the sentence that the reviewer does not write. The ## Definition of done heading the previous documentation edit swallowed is restored | this commit | | 2026-11-14 | A codebase dump with no age is a copy, not a view, and the repository now has the tool that says so. tools/export/bundle.py --emit writes code.txt (212 files, 2.2 MB), docs.txt (55 files, 1.1 MB) and a manifest that opens with the commit and carries one sha256 per file; the file list is git ls-files, so ignored data and secrets are absent by construction. --check re-hashes the tree and names every file that changed, appeared or disappeared, plus how far the snapshot's commit is behind HEAD, and exits 1 when anything differs -- which is what the ten-day-old Drive snapshot could not do, having been read as current by the reader it was given to. The --self-test proves the check fires by corrupting one hash and dropping two entries, so the tool is a check rather than a promise. Measured on the tree at 66f299e; no C++, no recorded number and no size count moved, and docs/TOOLS.md lists the tool as manual | this commit | | 2026-11-14 | The work's own process was the last thing with no test, and this session's failures were all in it. A long command now goes through tools/gate/detach.sh <name> [seconds] -- <command>, which starts it detached, writes /tmp/<name>.log and drops /tmp/<name>.exit with the status, because a foreground command that outlived the tool's budget was killed by the next one -- that is how a post-commit sync was cut between its manifest and its copy, leaving an empty diff.patch for review. .clinerules section 3 now carries the protocol that survives this terminal: one long command at a time, poll by reading the exit file and never the same unchanged file five times (which is what the tool's loop detector stops a session for), no sleep in the foreground, the zsh prompt's first-character bite answered with a leading space, and the timings measured here (code ~20 s; fast ~4 min rather than the header's 100-130 s, the document half being ~3.5 min). Section 6 adds the rule that a commit is not finished when git commit returns: the hook is a child of that shell, the reply waits for the four ok lines and synced <hash>, and a log that stops at copying ... is re-run with TOYQUANT_SINCE=<the previous manifest commit> -- the knob added earlier the same day. No C++, no recorded number and no size count of src/ moved; docs/TOOLS.md lists the runner | this commit | | 2026-11-14 | The sandbox's four open items landed, and two of the lessons were measured rather than written. LiveVenue gained --venue-max-notional=USD, priced with fill_notional_usd so the cap is the number the ledger books; the relay now converts the engine's numbers into the venue's -- sz through --quantity-scale and --contract-size, rounded down to --lot-size, px onto --tick-size, and a size below one contract refused with both numbers -- which relay_order_channel_test measures across two processes (100,000 units in, ten contracts at the venue, 50,000 units back as the half fill); the orders channel is de-duplicated against the venue's cumulative accFillSz, one fill per increment, repeats counted as deduplicated, a counter that goes backwards refused; and --replay-orders=PREFIX makes a recording the run's venue, releasing each report when the clock passes its timestamp -- the reading ADR 0005's amendment chose. What the measurement corrected: a session's report timestamps are not monotone, because two live orders interleave, so the queue is a prefix gate in file order rather than a sorted one; and a report has to be released after the event at its timestamp, not at it, because the session booked it during that event, after the strategy had already decided. Measured on the 200k slice: the recording replays to the same [PNL] (net_pnl_usd=0.0071445), the same [EXECUTION] (submitted_orders=305, trade_reports=15) and [ORDER-REPLAY] reports=655 rows_left=0 pending=0 flushed=0. Two quickstart commands were written with a space where the parser wants the --record=PREFIX form, so they could not run as copied; both are fixed and the prose lint now fails that form. Counts: 120 files, 26,363 lines (app 9066, lines 3946), and the test count of that build | this commit | | 2026-11-14 | The data page described a checkout that no longer exists. docs/DATA.md opened on "two purposes, scenarios/ and runtime/" while almost all of it is about data/v2/, and its inventory named six families where the checkout has seven: options/ was missing, crypto/ said 12 files and 4.6 GB against ls's 21 and du's 8.5 GB, and the "removed" paragraph listed three 2020 snapshots that are on disk again. The opening is a three-row table whose third column says which path git ignores, the inventory says it was measured with ls and du on one checkout (which is all a page about ignored files can claim), and the slice examples lost their tab indentation. The same pass wrote the buffer rule into .clinerules: a new direction is a rough note in the studies record or an ADR, never a guide edit, and once the core path works every change is a local increment rather than a rewrite at the end. No C++, no recorded number and no size count of src/ moved | this commit | | 2026-11-14 | The two figures a reader meets first were unreadable where they were read. In the site's dark palette the page's own text colour won over the Mermaid classDef, so every label was pale on a pale box, and the quickstart's two-row diagram was laid out side by side -- two subgraphs with direction LR and no edge between them are one row to Mermaid. Both are SVG now, drawn by tools/study/figure_path.py (dark ink on a pale fill, a mid-grey connector, explicit width/height so an <img> has an intrinsic size), checked by --check in tier 1, and the same file is README's image, which retires the hand-kept Mermaid copy. The pass also found that charge.svg had never been on the page: an SVG included on its own is not a Markdown block, so the build produced <p><svg></p> and a paragraph per <text> element -- invisible because it sits in a fold. Every include is wrapped in <figure>, lint_prose.py fails a bare one, and the two figure checks are in the gate. No C++, no recorded number and no size count moved | this commit | | 2026-11-14 | The page a reader looks a tool up in did not list the tools. docs/TOOLS.md is what MAP.md's "find the tool behind a number" row points at, and it named ten of the fifty-five files under tools/ -- compare_runs.sh, whose --markdown emits the marked blocks the gate re-runs, among the missing. The same pass found the directory table's third column wrong twice: live/ said the gate never runs it while tier 1 runs venue_relay.py --self-test, and study/ counted five self-tests and left out viability.py, the verdict fixture. The page now carries a folded inventory of all 55 files with what each prints and who runs it; lint_prose.py walks tools/ and fails a build when a file has no line there, which an empty page reports as all 55; --markdown joins the flags that belong to a tool rather than to the binary; and verify_l2.sh's header no longer says "three tool self-tests" where it runs seven. The same sweep found a heading counting six flags over eight sections (L2_FLAGS.md, with MAP.md's row and two anchors following the stale count) and a sentence in the design review cut mid-clause at "restarted from the"; both are repaired. The design review's "46 scripts" and "five lints" were second copies of facts the page and the gate already own, so they became a pointer to the inventory and the sixth lint's row. No C++, no recorded number and no size count moved | this commit | | 2026-11-14 | The order leg now uses both of the venue's surfaces at once, which closes the gap the sandbox recorded. The demo venue answers 50026 to its websocket trade operation and places the same order over REST, so --order-rest had been a placement-only route: no socket was opened, and a fill on the orders channel had nowhere to arrive. serve_venue_orders now opens the private socket for the subscription and keeps the placer for the requests, with --order-no-subscribe restoring the placement-only shape; the three combinations are a function (venue_order_route) whose rows --self-test pins, because the alternative is a run that places orders and hears no reports. The summary prints the state half on its own line (order state channel: logins=… subscribes=… messages=…), so a run says which of the two connections was silent. A fill is still unmeasured and now for one reason: the size and the de-duplication are done (--contract-size/--quantity-scale, the cumulative accFillSz), but the replay's 2020 prices sit against the venue's 2026 book, so nothing crosses. What is next is one ws session recorded twice -- book and orders -- for recorded_venue to replay on its clock. No C++, no recorded number and no size count moved | this commit | | 2026-11-15 | The venue's order session starts moving into the engine. The market leg's session is already C++ (TLS, the WebSocket client, the reconnect loop) while the order half -- login, subscription, translation, accFillSz de-duplication and REST placement -- is still tools/live/venue_relay.py; ADR 0006 accepts the port in four slices, each with its own test, and supersedes that boundary of ADR 0005 for the order session only. The first slice is landed: src/lines/venue_auth.{h,cpp} is SHA-256, HMAC-SHA256 and base64 with no new build dependency, and the login and REST preimages are pinned by RFC 4231's first and sixth cases, the relay's own login vector and an independently computed REST signature. The live path still needs the relay for the other three slices, and the live page says so. No recorded number moved | this commit | | 2026-11-15 | ADR 0006's second slice lands: the order translator is C++ now. src/lines/venue_order_translator.{h,cpp} turns the engine's ORDER/CANCEL lines into the venue's args[0] object and its replies back into ACK/FILL/CANCELED/REJECT, porting the rules the relay's self-test states rather than reinventing them: a size below one contract refused with both numbers, a size rounded down to the lot, a price onto the tick, and one fill per increment of the decimal accFillSz -- never an integer read, which is the defect the first live session found. The venue's fillFee (or the order's cumulative fee) rides on the fill, negated into the engine's sign. The JSON reader moved out of the relay into src/lines/venue_json.h; the relay's file-local copy stays until slice three deletes it with the session, and the ADR says so. tests/venue_order_translator_test pins the relay's own cases as literals. The live path still needs the relay for slices three and four; no recorded number moved | this commit | | 2026-11-15 | ADR 0006's third slice, state machine first: src/lines/venue_order_session.{h,cpp} holds the login (over the timestamp its signature is computed from), the orders subscription that follows the venue's login answer rather than a timer, the ping cadence, and the reconnect that logs in and subscribes again, writing to a Sink the caller supplies so the whole machine runs in one process under a test. An entry for another instrument is counted as other_instruments rather than answered to the engine, and decode_orders_entry split out of the translator so the session can filter before decoding one entry. tests/venue_order_session_test has a stand-in that recomputes the login's signature from the secret it holds (and finds the relay's pinned vector at the pinned timestamp), forces a reconnection, and checks the ping's cadence and a bad frame's count. The TLS/WebSocket wiring is the next step; the live path still needs the relay, and no recorded number moved | this commit | | 2026-11-15 | The relay stops carrying a second JSON reader. src/lines/venue_json.h, extracted for the order translator, is now what the C++ relay itself includes: its file-local Json/JsonParser is deleted, --self-test decodes the same captured shapes and the market decoder is untouched. The duplication ADR 0006 called deliberate and temporary is gone in the same stretch that landed the state machine, which is when the record said it would go. No recorded number moved; the source counts fell by the parser's length and the size table and MAINLINE's file group state them | this commit | | 2026-11-15 | ADR 0006's third slice is complete: the order session has its transport. src/lines/venue_order_wire.{h,cpp} dials the venue, reads on a 200 ms timeout so the keepalive is due on the session's own clock, answers both heartbeat forms the venue uses, and reconnects on the relay's schedule -- logging in and subscribing again -- while src/lines/venue_order_session.* keeps the states. The socket is now one implementation for both legs: the market leg's URL, TLS stream, WebSocket frames and opening handshake moved into src/lines/venue_ws.h, which the relay and the order leg both include, so the relay's file-local copies are deleted. The C++ relay serves the channel from --order-listen and answers a refused line as REJECT <id> venue rather than dropping it, holding a request that arrives before the venue's login until the session is up instead of losing it, so an order leg no longer needs an interpreter; this venue places over REST, which is the fourth slice, so a run against the demo venue still uses the Python relay. tests/venue_order_session_test drives the whole connection against a stand-in venue on a loopback socket: the login's signature is recomputed from the secret the stand-in holds, the subscription is acknowledged, one fill arrives as FILL 7 6421.5 10000 0.1, a size below one contract comes back as a REJECT, and a forced drop produces sessions=2 and reconnects=1 with no write failure. Nothing here has been run against a venue. No recorded number moved | this commit | | 2026-11-15 | The demo venue is also tested against a dropped private channel, which a healthy session never exercises: --order-drop-after-seconds=N is the order leg's twin of the market leg's --drop-after-seconds, and a 180-second run with it armed logged in five times and subscribed five times over four reconnects (sessions=5 logins=5 subscribes=5 reconnects=4 transport_failures=0), placed=20, and still reconciled -- [RECON] status=ok, quantity_breaks=0 report_count_difference=0 fee_difference=0.000000. A gap costs a re-subscription rather than a fill, because the channel re-sends a live order's cumulative state when it comes back. Four fills against the earlier run's twenty-seven is the cap rather than the channel: --venue-max-orders=20 refused 29 of 49 submissions. The REST client's three branches a loopback with one fixed reply never reaches are now pinned -- a chunked body, a body that is not JSON, and a connection closed with no answer -- and the test's stand-in venue serves every connection until the test stops, which is what lets a scheduled drop be observed | this commit | | 2026-11-15 | The reconnect path is measured with fills on both sides of every gap. A 300-second demo run with --order-drop-after-seconds=50 and the order cap at 60 logged in six times and subscribed six times over five reconnects (sessions=6 logins=6 subscribes=6 reconnects=5 transport_failures=0 write_failures=0, placed=60 venue_refusals=62 unreadable=0) and reconciled across all of them: [RECON] status=ok, quantity_breaks=0 report_count_difference=0 fee_difference=0.000000 over trade_reports=31, with [BROKER] fills_dropped=0. An earlier 180-second run with the same hook collected four fills, which is too few to say a gap was crossed with fills on both sides; this one is not too few, and the channel re-sending a live order's cumulative state on re-subscription is what makes it hold. The 62 refused cancels are 51400 -- a REST round trip lets the venue fill first -- and refused_by_adapter=56 of 116 submissions is the 60-order cap still binding. No code moved and no recorded number did | this commit | | 2026-11-15 | The REST placement route's latency is counted before anything is designed around it. RestPlacer counts every call it makes, the milliseconds inside connect plus the TLS handshake, and the milliseconds of the whole placement, and the summary prints rest_calls, rest_connect_ms_avg and rest_place_ms_avg; the failure path is counted too, because a call whose answer never arrived paid for its handshake as well. Measured on the demo venue over 120 s, 25 REST calls: rest_calls=25 rest_connect_ms_avg=94 rest_place_ms_avg=228, beside orders=14 cancels=11 placed=14 venue_refusals=3 transport_failures=0 and [RECON] status=ok. Connect plus the handshake is about two-fifths of a placement by arithmetic on those two averages, which is the share a pooled connection would have to beat -- and the decision is not to pool it now: what a faster cancel moves is the stale-cancel share (62 of 104 cancels refused 51400 in the reconnect row above), a pool is a connection state machine with its own framing, reuse and failure modes, and nothing this line reports needs it today. Both averages stay in the summary so a later session re-opens the question with a number rather than an argument | this commit | | 2026-11-15 | The C++ order leg gets the frame dump the Python route used to explain its first silent sandbox session, and the acceptance tiers get a word of their own in the runner. --order-dump=FILE appends every frame both ways, one JSON object a line, masks the login's apiKey, passphrase and sign, JSON-escapes each frame so a quote inside one cannot end the line, and refuses a path it cannot open by naming it; tests/venue_order_session_test points it at a file and asserts that both directions appear while the api key never does. --order-no-subscribe stays out: this route targets the private channel, where the subscription is the half that carries state, so a placement-only shape would be a different route rather than a flag. .run.sh gained full and asan, the two tiers all is made of, so the acceptance gate is one word in an environment where a hand-typed command may not be delivered | this commit |

| 2026-11-15 | ADR 0006's fourth slice is accepted against the demo venue. With libssl-dev present the C++ relay served both legs of a 120-second session with no Python in it: [VENUE] orders=20 cancels=32 refused_by_adapter=16 write_failures=0 reports=103 dropped=0, [EXECUTION] trade_reports=27 fill_rate=0.132222, [PORTFOLIO] equity=998.5 fees_paid=1.0772, [PNL] gross_pnl_usd=-0.423298 net_pnl_usd=-1.50049, [RECON] status=ok with quantity_breaks=0 fee_difference=0.000000; on the relay's side placed=20 venue_refusals=19 transport_failures=0 sessions=1 unreadable=0. The venue found three defects on the way, and each was fixed where it lives: the socket's 200 ms receive timeout is what keeps a caller's clock, and both handshakes read its first expiry as a close (transport_failures=26 in one run while the loopback test stayed green); the keepalive sent {"op":"ping"}, which the private channel refuses as 60012 because it takes the bare text ping; and a notice or error event was counted as unreadable, which made a healthy session print a number that reads as a defect. The 19 refused cancels are 51400 -- a REST round trip is long enough that the venue had often filled the order first -- and each was answered REJECT <id> venue rather than dropped. Twenty-seven fills in two minutes is a wire acceptance, not a rate | this commit |

| 2026-11-15 | ADR 0006's fourth slice lands: the order leg places over REST. This venue answers 50026 to its websocket trade operation, so venue_order_wire posts the translator's own args[0] as the body of POST /api/v5/trade/order and POST /api/v5/trade/cancel-order on the TLS stream the tree already has, signed with venue_auth::rest_signature over an ISO-millisecond timestamp -- the opposite of the login's epoch seconds, and the two formats are one error code apart. The reply becomes the adapter's lines (ACK <id> <units> from sz, CANCELED <id> user, REJECT <id> venue with the venue's own sCode/sMsg printed), and a transport failure is a REJECT rather than a silence. OrderTranslator::request_of splits the request into its halves so the websocket frame and the REST body are one translation, with encode's output unchanged. venue_relay --order-rest=BASE_URL drives it, and the order leg's engine socket was corrected to the adapter's line protocol -- TcpVenueTransport speaks lines, not a WebSocket handshake, so the market leg's accept path had been the wrong one. The build used here has no OpenSSL, so no wss:// venue was reached: the evidence is a loopback socket (the tests) and a line smoke, and the live page's demo run still goes through the Python relay on such a host, which is the fallback the ADR recorded | this commit |

| 2026-11-16 | The no-OpenSSL fallback is closed as a build property rather than a gate tier. src/lines/venue_ws.h and src/lines/venue_relay.cpp refuse a wss:// venue by name when the build has no libssl, and nothing in the gate constructs such a build: pinning it would need a CMake preset that hides the system OpenSSL plus a full extra compile inside every all run -- minutes per acceptance to exercise two defensive throws -- while forgetting libssl-dev on a fresh host already fails at configure time with OPENSSL_SSL_LIBRARY-NOTFOUND, which is the guard that matters. The question is recorded in ADR 0006 instead of being left open in a plan. No C++, no recorded number and no gate move | this commit |

| 2026-11-14 | The sandbox's fill is measured on the venue's own book, and getting there took three defects the first live sessions found. The demo key had been persisted in secrets/okx-demo.env (ignored, mode 600) and never used for a market leg -- every earlier attempt replayed 2020 prices against a 2026 book, so nothing crossed. A ninety-second ws session with the venue's public BTC-USDT-SWAP feed as the market leg and two relay processes (market and order; --order-listen returns rather than serving both) filled and reconciled inside the cap: [WS] frames=119616 trades=3600 depth_updates=116014 ring_waits=0, [VENUE] orders=20 cancels=20 reports=66 dropped=0, [EXECUTION] submitted_orders=28 trade_reports=15 fill_rate=0.333214 max_abs_exposure_usd=656.583 hard_limit_rejections=12 exposure_over_collateral_fills=0, [BROKER] fills_seen=15, [RECON] status=ok with quantity_breaks=0 fee_difference=0.000000, [PORTFOLIO] cash=1437.13 realized_pnl=-2.55906 unrealized_pnl=-0.064655 equity=997.376 fees_paid=2.99724, [PNL] gross_pnl_usd=0.373523 net_pnl_usd=-2.62371. The three defects: a contract fills in parts and the venue reports accFillSz: "0.45", where int() raised inside the decoder and dropped the private channel on the first such push; the adapter's FILL frame had no field for a fee, so every live fill was booked with fee = 0 while the venue had charged -0.14999409 on the same fill; and the adapter's reports carried no symbol, so the position was keyed under the empty string -- [EXPOSURE] legs=:-14300:-0 and [PORTFOLIO] equity=1950.98, which was cash rather than the account's value. With the symbol fixed the account marks as it should, and two guards cover the case where there is genuinely no price: the closing mark is the last positive midpoint, and with no mark at all the run prints [MARK] missing ... equity_is_n/a, equity=n/a marks_complete=0, [EXPOSURE] ... unmarked=1, with [PNL]'s net, gross and per-fill rates following the same flag while closed_pnl_usd stays a number. tests/live_venue_test pins the symbol, the optional fee and the clock; tests/portfolio_test pins the zero-price guard and the n/a line; venue_relay.py --self-test pins the decimal counter and the fee sign | this commit | | 2026-11-14 | The live leg's recording had no clock, and the step the plan named for it turned out not to exist. LiveVenue decoded the venue's frames without a timestamp, so --record-orders wrote ts=0 on every report: a recording made through the adapter released every answer at the first event when replayed, and stopped at the third submission -- three replays, the same order, one tick apart. The adapter now stamps each report with the run's market clock, one microsecond before the event it is applied at, since RecordedVenue releases strictly past a timestamp. Then the step itself was measured rather than assumed: one ws session through the live adapter, recorded twice and replayed, cannot reproduce -- the same command run twice on one market recording placed 154 and 261 orders and wrote two different order legs while the two market legs were byte-identical, because which answers have been drained when an event is handled is the receive thread's timing. The loop that does reproduce is the matcher's ([ORDER-REPLAY] submissions=305 cancels=290 reports=655 rows_left=0, the same [PNL]), so a live session is an audit trail rather than a replayable stream. The same pass fixed the live page's sandbox command, which could not place an order at all: with the engine's quantity_scale at 1 against the relay's million, every order was 1e-6 of a coin and refused as below one contract; the page now matches the two scales (active_l2 1000000, --order-size=10000) and states the fill that gives ([VENUE] orders=15 cancels=15 reports=30, [EXECUTION] trade_reports=7). No recorded number moved, and tests/live_venue_test pins both halves of the stamp: a report with no clock keeps ts=0, one with a clock carries the market time of the frame it came from | this commit |

| 2026-11-13 | The volatility floor was measured before it was built, and the measurement says not to build it. tools/study/slice_pnl.py cuts a day's depth and trade files into slices of a fixed length in one pass, replays the same maker on each -- with --paper-broker, so a slice that does not reconcile is marked recon=bad rather than kept -- and writes the per-slice result beside the per-slice true range from tools/study/volatility_window.py, both keyed on the same slice start. Three cuts: five Deribit days at half an hour a slice (240 slices, 5,549 fills), the same two of those days at ten minutes (288 slices, 3,135 fills), and the two at half an hour again (96 slices). Every slice reconciles, and every cut splits at its own median range into two halves that both lose money a fill; the quiet half's loss is 0.66 to 0.82 of the busy half's in all three, which is 0.00410 USD a fill against 0.00515 over the five days. The premise is not supported, no C++ control changes behaviour, and active_l2_market_maker.h now records the measurement where it used to call the window a known gap. The five-day run is nine minutes and the ten-minute one four, so it is a command rather than a marked block, and its limits are one instrument, one configuration, five days and one quote width -- the finding is "this floor has no case", not "volatility does not matter" | this commit |

| 2026-10-28 | Order state machine, reject/cancel reasons, risk pipeline, non-market-making line and measurements | 9a691be … 3b0a180 | | 2026-11-17 | The venue-equity line moves to the USDT equity (details[ccy=USDT].eq), not the account-wide totalEq: the demo account's spot BTC and OKB are most of its totalEq and none of its USDT equity, so their prices moved a number a USD ledger never traded -- measured flat on 2026-11-17, totalEq read sixteen times the strategy's USDT equity. A flat run with --starting-cash=<the probe's eq> opened at=start ... equity_break_usd=<a fraction of one basis point> status=ok; the single controlled run ended with a one-contract residual ([WIND-DOWN] ... no_liquidity=1) and a mark difference of about 1.3 USD, and the account was flattened with the venue's close-position. The earlier 80k figures are the totalEq and are corrected on the live page, where the account's own figures now live in private/docs/live/session-record.md; a venue-side close is the next iteration. No replay number moved | this commit | | 2026-11-17 | The live recovery pair is measured, and the ACK bug it exposed is fixed. A replay with --live-orders wrote [SNAPSHOT] orders=1; the --snapshot-in run printed [RESUME] orders=1 live=0 gone=1 (the venue had already let it go), and a controlled working order produced live=1 cancelled=1 with [VENUE] cancels=1. The placement reply has no sz, so RestPlacer acknowledged every live order ACK <id> 0; the translator's Request.contracts now supplies the sent size, and the stand-in's no-sz answer pins ACK 25 100000. A PENDING/EQUITY line probe printed PENDING 0 and EQUITY <the account's USDT equity> with pending_queries=1 equity_queries=1. The earlier live numbers are wire acceptances, not re-quoted strategy results; no replay number moved | this commit | | 2026-11-17 | The first demo session through the four new lines found the next gap: the ledger's opening cash was hard-coded at 1000 while the demo account held four figures. --starting-cash=USD sets the opening cash, the exposure ceiling and [EXECUTION] starting_cash_usd; a live run prints the venue-equity [RECON] line at=start before it quotes and at=end after the last mark, and the tolerance moved from ten basis points of the account to one after a 64 to 76 USD gap read ok at the wider width. Measured 2026-11-17: the first run (no flag) reported a break the size of the account itself; seeding with the account's totalEq left one of tens of dollars; the third (final build, --starting-cash=<the totalEq again>) opened at=start ... equity_break_usd=-22.1486 tolerance_usd=8.00124 status=break and at=end ... equity_break_usd=-16.6734, with the broker's own reconciliation status=ok over three fills. The gap is a demo position the ledger did not open: a flat account or a --snapshot-in is the clean start, not a wider tolerance. --venue-demo delivered 3,713 frames and 657 trades in the first 60 seconds and the order leg placed 20 orders and read 60 reports. No replay number moved; the flag's default is 1000 | this commit | | 2026-11-17 | The four gaps between the demo leg and a long session are closed, and each is measured by a test rather than by a venue run. The account's own half: a live run prints a second [RECON] line from GET /api/v5/account/balance, with venue_equity_usd, ledger_equity_usd, a signed equity_break_usd and a printed tolerance_usd that is the larger of 0.05 USD and ten basis points of the account; status=unknown when either side is n/a -- the check the broker's statement cannot make. Recovery: --snapshot-in on a live venue asks GET /api/v5/trade/orders-pending?instType=SWAP through RestPlacer::pending_orders, and LiveVenue::query_order answers from that list, refreshed before the recovery asks and again after each cancel (settle_queries); the engine refuses to resume when the first query is unanswered rather than leaving inherited orders alive. The budget: a per-endpoint token bucket (ten calls a second) and two retries on HTTP 429, with rest_429 counted beside venue_refusals. The demo feed: venue_relay --venue-demo points the market leg at the demo public stream, and giving --venue as well is refused. The evidence is tests/venue_order_session_test (a stand-in that recomputes the GET signature over the method and query string, answers PENDING 2 11 12 and EQUITY <a replay-sized balance>, and returns two 429s before ACK 24; rest_calls=11 rest_429=2; a one-per-100-ms bucket that measures its wait), tests/live_venue_test and tests/paper_broker_test. No demo session was run, so no live number moved, and the demo's fee schedule and thin book remain the two reasons its fees_paid and its 51400 count are not live conclusions | this commit | | 2026-11-29 | The deploy card's red path is dropped from the plan, by the owner's decision (it was closed as not-done on 2026-11-28; the second decision is that it is out of the queue rather than parked). A deliberately red deploy is the only end-to-end exercise of the rollback and the owner judged it not worth the risk on a host whose next event is a window, so what stands is the synthetic proof in check_deploy.py (its eighteenth and nineteenth rules) plus four green deploys' worth of the path being read. The first real red deploy is the test, and the card says so in one sentence so the absence reads as a decision | this commit | | 2026-11-29 | Two rows closed by the queue, both against the earlier reading. (1) Tier 1 #9: the schedule costs nothing measurable. The seven-day screen put the evening slot 4.5 bps ahead of the recorded window (+21.34 on 45 fills against +16.82 on 52); the twenty-eight-day run of that slot reads +11.52 on 27 days with median fills 22 against the recorded window's 28-day control +12.27 on 45 -- the screen was the sample talking, and the evening book is thinner rather than better (its worst day -24.45 against -75.19 is carried forward as an observation, not a lever). The window stands. (2) PROS fails the admission rule on the risk ruler, not on the median: 28 days at the account's latency read median fills 48, closed +9.27, 20 of 28 positive, net +7.72, 0.4621 USD a window -- and CE(0.02) = -3.74 with one day carrying 54.5 percent of the profit (best_share=0.545) and a worst day at -91.22 (9.84x the median). A positive median a single day pays for is the shape the BLUR size ladder was retired on, so PROS goes to the watch pool rather than to a seat: what would reopen it is a sample where the tail stops being one day, which is a month of newer tapes, not a different threshold | dc7ea37 | | 2026-11-29 | The seat is no longer the operator's alone: --ops seat writes a second seat's two files. The guardrail was deliberate -- set-key's allowlist refuses engine.symbol and the endpoint by name, "a size, a loss limit, the seat or an endpoint is the operator's" -- and the owner delegated it on this date so the work does not wait for a hand edit nobody can re-run. The delegation is a command with the same three authorities: deploy/seat_files.py renders live-<seat>.yaml from the shipped config/live.example.yaml (a seat gets the shape a deploy proves), writes live-<seat>.env with the instrument's facts and its two ports, refuses seat 1's 8765/8766, a ceiling above the template's (one account carries both ledgers, so a seat may not raise the sum), an instrument that is not a venue perpetual and any key it does not know; it checks the result with live_config.py, backs up what was there and only then moves it in. The workflow scp's the writer rather than trusting the deployed copy, so the refusals are the commit's. Self-test in a temp dir (a rendered seat, idempotent on seats, four refusals, an unknown key), and live_config.py --check on the rendered file | this commit | | 2026-11-29 | Tier 1 #9 is registered: the schedule line and the frozen cell learns --start/--end so the window is a variable and the flags stay one definition. The question is not a new strategy: every closure in the Retrospective was measured inside 13:30-15:30 UTC, and that window is a restriction written before measurement -- the operator is available then -- so nothing in the frontier map prices the constraint itself. The bar, registered before the first run: on twenty-eight days an alternative two-hour slot replaces the recorded window only if its closed median beats 13:30-15:30's by more than the same-window day-to-day spread (median against leave-one-out median), with the fill floor held at 40 and its worst net day at -120 bps or better; anything less closes the row with "the schedule costs nothing measurable". The one-day smoke on 2026-11-16 shows the flag has a live region -- 136 fills at +25.18 closed in the recorded window against 67 at -8.37 in the Asian one -- so the screen is worth its nine minutes; moving the live window stays the owner's decision either way | this commit | | 2026-11-29 | The screening rule becomes a funnel, and the funnel's first run is a refusal. The owner's four-stage method is written down (methodology) and its arithmetic built (tools/study/significance.py): the physical floor, the non-normal Sharpe standard error, the deflated ratio against the expected maximum of N zero-skill trials, the marginal condition with max(0, rho * SR_P), and the shrinkage weights. Run over the 49 recorded series at alpha=0.10, N=49, nothing passes: the live window reads SR 0.255 a day and DSR 0.181 against a 0.464 hurdle, while 12:30-14:30 (0.763) and the three-hour 12:30-15:30 (0.801) rank above it -- the opposite of the recorded verdict. So the six clauses keep the record's arithmetic and lose the decision, a candidate measured from now on is decided by the funnel once alpha, N and Cap are written in its card, and the divergence is registered as the next measurement rather than settled here | this commit | | 2026-11-29 | The expansion rule: what to copy from the one-to-five-person paradigms, and what not to. The expansion methodology sets the premise first -- hftbacktest's examples are Binance/Bybit maker accounts whose fee tier is not this account's 2 bps, so a method travels and a result does not -- then names the three gaps the comparison actually finds (a three-way latency split from the record's own submission/ack/fill rows, a BBO-collapse cancel for the large-tick regime, a volatility-scaled half-spread for the small-tick one), and closes the door on two: a rebate instrument's numbers, and a second engine for the live path. It also corrects one row the briefing listed as a gap -- prices and quantities are already integer ticks in engine units, so the fixed-point refactor has nothing to do -- and records the ladder l2_replay -> ws --paper-broker -> 1 contract -> measured size -> a second seat, with rung 1 built and never used and the shared gateway written as an ADR at three seats rather than a refactor to start | this commit | | 2026-11-29 | The funnel's hurdle was computed on the wrong variance, and the live window's skew is one day. (1) SR0 now takes the null variance 1/(T-1) instead of the trial list's own spread: the cross-section converges to the differences between candidates, so the earlier hurdle (0.464 at T = 28) was a property of the list and left any strategy below it unpassable at any sample size. The corrected hurdle is 0.430 at N = 45 and 0.100 at N = 2, shrinking as sqrt(1/T); the re-run reads the live window at DSR 0.222 (0.751 at N = 2) and 12:30-14:30 at 0.818 (0.997) -- the live window fails at every N, and the candidate's admission is a statement about N, which is why N is registered before a run. The folder run also names four duplicate series (b6-up-size10, b8-win0630, b8-win1230, b9-pros), so 45 distinct and not 49. (2) The -1.30 skew is one day: --tails drops 2026-11-26 and the skew falls to -0.56, and on that day the three isolated hours (13-14, 14-15, 15-16) made +0.25, +0.31 and +0.42 USD while the continuous 13:30-15:30 lost 5.20, with closed_bps -8.91 against net_bps -69.08 and a peak position of 104 contracts -- an inventory event in a trending hour, not a quoting one. What would move the window row is the inventory cap and the skew in a trend, not the schedule | this commit | | 2026-11-29 | The five open decisions are settled where they can be measured, and the fifth is sized before it is built. (1) Cap 60 USD a live seat, ~100 for the ten-clip cell; (2) N is the participation ratio of the trials' correlation matrix, 8 over 53 series -- so 12:30-14:30 passes at DSR 0.961 and the live window fails at 0.456, and no one chooses the count; (3) inventory ceiling 50 contracts research / 5-10 live with a 1 percent tail rule, from the 11-26 test that turned -5.20 into -0.28 for 10 percent of the month's dollars; (4) the record's full dump is --ops record --since/--until with its own check_deploy.py rule and doc row -- built on 2026-11-30 with its own rule and doc row, and it was decided first because a live workflow changed at night with no static rule is the failure this repository keeps paying for; (5) the close is calibrated on 2026-11-27 (11-29 is a 404) and reads -11.3 bps for seven contracts against the mid -- the replay's own crossed-close charge (5 bps taker plus one tick, ~10.7 bps here), so the constant is validated rather than refuted, and the 2.30 bps the runs print is the settled difference, not the cost of crossing | this commit | | 2026-11-30 | The close's price is the touch, and the chased IOC has no case on the closes that exist. The depth walk the 11-29 window registered was run on the two closes whose book is on disk: at 15:30 the 2026-11-27 book is four ticks wide and takes 50 contracts at the bid itself (2.00 ticks, -11.33 bps from the mid), and 2026-11-26's is three ticks wide and takes 104 contracts at 0.216087 (1.63 ticks, -7.51 bps), so the depth penalty over the month's largest residual is 0.13 ticks and --settle-slippage-ticks=1 charges a tick the book did not take. The constant is therefore validated in kind and pessimistic by one tick (22.0 against 16.3 bps of the closed notional on 11-27, 16.6 against 12.5 on 11-26), no recorded row moves -- a residual is at most ~1.5 percent of a day's maker notional, so the extra tick is ~0.1 bps of settled_net_bps against 11-26's own 0.24 -- and the 30-second chased IOC is closed on the measured case: it exists for a residual the touch cannot take, and at both closes the touch took all of it, while 11-29's live close filled 7 contracts at the venue's bid. It reopens at the first [WIND-DOWN] printing closed < position, no_liquidity=1 or refused=1 on a close whose book is on disk. tools/live/close_cost.py now also prints its measurement as one key=value line, which is what the page's blocks re-derive | this commit | | 2026-11-30 | The record dump is built, with the rule and the rows its decision asked for, and it carries the split it was built to name. --ops record --since/--until (and --seat) prints the session's own rows -- the recorder's fifteen columns -- bounded by two ISO instants that the tool converts into the record's own clock unit, measured from the file (a 13-digit ts is milliseconds, a 16-digit one microseconds); tools/ops/dispatch_deploy.sh record --since ... --until ... dispatches it, saves the window under out/runtime/record-*.csv and reads it with tools/live/record_stats.py in the same command, so the artifact and its reader travel together. Three pieces make it a record rather than a paste: deploy/order_summary.py --rows (the selected rows as the recorder's CSV, and an empty selection refused by name), tools/live/record_dump.py (the job log's timestamp prefix stripped, a header with no rows refused: the 2026-11-28 lesson) and record_stats.py's new venue_declines against own_cancels -- a post_only report with no cancel of ours before it is the venue's refusal, and one after it is our own re-quote. check_deploy.py's twenty-fourth rule record_path holds the action's RECORD= to the template's engine.record_orders plus the recorder's suffix and to a seat's own prefix, and its self-test fires on both drifts. Its first reading is the 2026-11-29 window (2,949 rows, out/runtime/record-20261129.csv): 738 submissions, 1,532 reports, 56 fills and 679 cancels requested -- the journal's own counts -- with the post-only split at 9 venue declines against 673 of ours, i.e. the venue's own refusal share was 1.2 percent of 738, the same order as the replay's 0.5 at 100 ms. The record's fee column sums to 0.031983 against the ledger's fees_paid 0.0319829, so four independent numbers reconcile. It also refused one clause of its own bar: the round trip is not measurable on this record -- 359 of 738 first reports predate their submission, because a submission carries the engine's event clock and a report the venue frame's market time -- so a local arrival stamp in the recorder is the next cut, and record_stats.py now names the two clocks instead of printing a p50 over the half that lines up | this commit | | 2026-11-30 | The reduction slice is built, and its two-value smoke already shows both signs. --inv-above-frac=F samples the absolute position against F of --inventory-limit after every event, on all three entry points -- the generic reader, the L2 view and the L2 trade -- and [EXECUTION] prints inv_above_frac, seconds_above_inv_frac and pnl_bps_above_cap only when the flag is named, so every recorded line stands. The PnL is a difference of two marks of the run's own net, and the slice marks the books itself because advance_mid marks only for an armed kill switch; --inv-above-frac without --inventory-limit is refused. Two defects were found by the slice's own test before any row existed: the first version sampled on the generic path only, which the mainline's L2 entry points never take (a fill arrives on process_l2_market_trade), and its second read the risk gate's exposure limit instead of the inventory cap, which measured a boundary of zero. On 2026-11-26 at 100 ms and halt 31.6 bps/s the smoke reads 41.8 book seconds and -9.57 bps above the 50-contract cap against 242.8 seconds and +14.05 bps above the 100-contract one -- one day, both signs, which is why the rule waits for the 28-day rows (inv50b-28d-100ms, inv100b-28d-100ms, queued with that bar) | this commit | | 2026-11-30 | The window batch reads two ways again, and this time the recorded window is the one that fails. The three w50b arms (50 contracts, halt 31.6 bps/s, 100 ms, the same 28 days) are read by both rulers. The funnel at the registered N=8 (SR0 0.281, T=28) passes 12:30-14:30 at DSR 0.977 and 12:30-15:30 at 0.985, and fails the recorded 13:30-15:30 at 0.552; the record's clauses refuse both candidates on the same rows -- 17.9 percent of days under the 25-fill floor against the 15 percent ceiling, with the positive-share clause too -- while the baseline carries median +12.62, CE +9.19, 24 of 28 positive and 46 fills against the candidates' 48.0 and 50.5. So the two rulers disagree again, the disagreement is now about the recorded window failing rather than a candidate passing, and it is measured on the ruler the live seat actually runs (100 ms, the live halt). Nothing is decided here: the window is the owner's hours, and a window selected for being positive is not an edge | this commit | | 2026-11-30 | The live window moves to 12:30-15:30 and the clip to ten contracts, by the owner's decision, on the funnel's reading. The start moves because the w50b batch put 12:30-14:30 and 12:30-15:30 at DSR 0.977 and 0.985 against the recorded window's 0.552 at the registered N=8, on the ruler the live seat runs; the two-hour 13:30 window was the restriction the closure table priced as free, and the freed hour is the one before it. Three things move together and only three: deploy/toyquant-window-start.timer fires at 12:30 (OnCalendar=... UTC, and check_deploy.py's clock rule holds the zone), engine.ws_seconds goes 7200 to 10800 so the session ends at the same 15:30 the stop timer and the report already name, and engine.order_size goes from one contract to ten (10000000 to 100000000 engine units) with engine.inventory_limit unchanged at its registered live ceiling of ten -- the clip is what moved, and the ceiling is not the clip's to move. The clip's key is the one new member of OWNER_DELEGATED (the owner's instruction is the delegation; engine.inventory_limit, the loss limits, the seat and the endpoints stay refused by name), and the schedule's is a timer, so the change is a dispatch plus a --ops set-key rather than a hand edit nobody can re-run. What this costs: the two-hour rows are not re-measured by it -- they were measured in the window they were measured in -- and the thin-day share 12:30-14:30 carried (17.9 percent) is the risk the three hours take on | this commit | | 2026-11-30 | The 11-29 ledger closes by cash flow, and the $0.43 is drift plus fees; the per-fill markout is unmeasurable on that day and the row says so. tools/study/fill_decomposition.py --record out/runtime/record-20261129.csv reads the record's 56 fills and prints gross -0.194000, fees 0.031983, net -0.225983 -- the ledger's own net_pnl_usd to the digit -- and --curve prints one row a fill (ts, side, price, coins, cumulative net, position). So the gap from the engine's captured edge (+0.17) to net is -0.396, and with the fees it is the $0.43 in two parts: fees 0.032 and drift 0.364. That drift is a remainder, not a measurement: a per-fill markout needs the mid at each fill, and 2026-11-29 has neither -- the depth archive answers 404 and the trade endpoint answers no daily file for that date (both tried 2026-11-30) -- so what this row closes is a cash identity and the curve is the cash path, not a markout. The fix is the recorder carrying the mid at each fill, registered as the next cut: with it, the per-fill split becomes computable from the record alone, on a day with no archive at all | this commit | | 2026-11-30 | The size pair and the exposure cap are the owner's to set, and no value was applied with the delegation. The owner added 400 USDT and asked for the w50b geometry on the seat before the window; tools/live/live_config.py now carries engine.inventory_limit and engine.max_exposure_usd in OWNER_DELEGATED beside engine.order_size, so one --ops set-key can apply it -- and nothing was applied, because --ops diagnose read equity: 99.17 USDT at 09:50Z: the deposit had not reached the account the relay trades (RELAY_ORDER_VENUE=wssap.okx.com, the demo venue), and the w50b peak is 70 contracts with --extra-layers=1, 152.6 USD at 0.218 -- 1.54x of 99.17 against 0.31x of 499. The registered boundary this touches is docs/ROADMAP.md:395-399 ("Cap 60 USD per live seat, inventory ceiling 50 research / 5 to 10 live, one day's tail inside 1 percent of equity"), and its survival-leverage clause admits 1.54x while its 1-percent-tail clause was measured on a 99 USD account with a 60 USD cap -- so it does not transfer to a 152.6 USD peak without a new measurement, which is the second reason the values wait. The loss limits stay refused by name, and the 6 USD kill switch is worth naming at this size: 6 USD over 500 coins is a 0.012 move, 5.5 percent of 0.218, where at ten contracts it was 27 percent -- the brake goes from inert to active, which is the owner's to scale and not the agent's | this commit | | 2026-11-30 | The w50b geometry is on the seat, and the account behind it reads 499.17 USDT. The transfer landed -- --ops diagnose read equity: 499.17 USDT at 10:02Z, exactly the 99.17 plus 400 -- so the row above's reason to wait was answered and the two dispatches ran; set-key re-prints the flags, which is the evidence: --order-size=100000000 --inventory-limit=500000000 --max-exposure-usd=160 --extra-layers=1. What the seat now carries is the mechanism the 0.985 DSR was computed on -- ten contracts a clip into fifty, four orders a refresh -- and the peak that cap has to hold is the batch's own measured 70 contracts, 152.6 USD at 0.218, which is 0.31x of the account. The Cap of 60 USD and the 5-to-10 live ceiling are superseded by the deposit rather than argued away: the boundary paragraph at docs/ROADMAP.md:395-399 now says a Cap moves only with the owner's money and that he is told, not assumed. One difference from the batch stays and is named: the halt is still 6 ticks/s, 27.5 bps/s at 0.218 against the batch's 31.6, i.e. 13 percent tighter -- moving it needs the bps form set and the tick form cleared, which the engine refuses to see together, so it waits for Tier 1 #10. And the 6 USD kill switch is named rather than moved: it is 1.2 percent of 499.17 and it binds before any inventory limit does, so a normal bad day can end the window; scaling a loss limit is the owner's, and nothing here does it | this commit | | 2026-11-30 | The brake becomes a derived boundary, and tonight's value is 24.9. The owner's rule: a stop is clamped by two bounds -- k * Cap_eff * sigma_win <= L_stop <= beta_eq * E -- and where the lower bound exceeds the upper the seat is physically overloaded and must refuse to start rather than tighten the stop into its own noise. The lower bound is now measured: tools/study/window_sigma.py reads the live window out of the 28 days' trade tapes -- last print per minute, one-minute log returns, scaled by sqrt(180) -- and reads sigma_3h median 4.737 percent, p95 7.455 percent; with Cap_eff = 152.6 that is L_noise 22.75 USD at k=2.0 (28.44 at 2.5), and beta_eq = 5 percent of 499.17 is L_survival 24.96. The band holds only to k = 2.19: at 2.5 this account fails its own feasibility test, so the operating point is the survival bound and k = 2.0 is what the position must clear. The applied kill_switch_loss_usd = 24.9 replaces a 6 that was 3.8 times inside the 2-sigma noise of a fully loaded seat -- it would have fired on ordinary movement and ended the window, which is the failure this whole parameterization exists to name. Built: the measurement and the delegation (engine.kill_switch_loss_usd is in OWNER_DELEGATED so the derived value applies without a hand edit). Not built: the engine's dimensionless form (a kill_switch_equity_frac key) and the start-time refusal that compares the two bounds -- until those land the file carries a USD number whose derivation is this row, and k_sigma is never grid-searched, because a stop moved to improve a window is window selection | this commit | | 2026-11-30 | The multi-symbol screen closes on 28 days: BLUR, BABY and DNA all fail the admission floor, and the failure is CE. window_admission.py over the three s28-* rows against UP at the same flags (inv50b-28d-100ms: median +12.62, CE +9.19, 24 of 28 positive, 46 fills): BLUR fills 34.5 but thin 39.3 percent (11 of 28 days under 25), tail +0.43, CE -3.50, positive 57.1 percent; BABY fills 35.5, thin 25.0, tail -0.71, CE -4.09, positive 50.0; DNA fills 23.0, thin 55.6, spread 0.512, CE -2.26, positive 57.7. So no candidate reaches even the four floor clauses, and the ranking clauses are the larger gap: each of the three reads a CE about twelve points under the baseline and a positive share near a coin flip. The seven-day rows that first looked like a seat (BLUR's closed median +31.74 on 5 of 7) did not survive the month -- the same lesson as the evening window's +21.34 that read +11.52 at 28 days -- so nothing joins the reserve pool on this evidence, and the population the seat rule still needs is a symbol whose CE clears +9.19: a different instrument, not a different flag | this commit | | 2026-11-30 | Card 6a closes: NES's preceding month is dead, so the 28-day row was a regime and the seat needs a gate rather than a slot. The same cell and the same account latency over the 32 days before the recorded 28 (2026-09-28..2026-10-29) reads fills=4 on 27 measured days against the 28-day month's 28, a closed median of 0.00 against +14.52, 10 of 27 positive against 22 of 28, and CE +0.49 against +11.27; the leave-one-out median is 0.00 because most days had no close at all. The 32-day month also fails the seat floor on its own terms -- a 25-fill median is unreachable at four fills a month -- so the two rows together say NES is a cyclical instrument and the second month's +14.52 is a phase rather than a property. That is card L4's premise, measured: a seat whose volume has a season needs the liquidity gate to keep it out of the dead one, and no window or clip change fixes a month with no flow. The 28 days are also why the nes28-100ms row that fed the seat rule must be read as one month's row and not as a baseline | this commit | | 2026-11-30 | The record carries its own clock and the mid at every fill, and a red preflight now stops the deploy. Two columns on every recorder row: local_us (the writer's wall clock in microseconds since the epoch, on both a submission and a report, so a round trip is one clock's subtraction -- the 2026-11-29 window's refused clause was 359 of 738 first reports predating their own submission on the session clock) and mid (the midpoint of the last two-sided top of book, remembered by RecordingEngine's process_bbo/process_l2_top forwarders, so no other component changed). record_stats.py measures the round trip on local_us when present and still refuses the session clock by name, fill_decomposition.py --record splits gross into spread and drift from the record alone -- the per-fill markout the row above called unmeasurable without an archive -- and order_summary.py --rows / record_dump.py keep every column the file carried. The header checks in the three readers match the fifteen as a prefix, so both vintages read. One defect fell out of the pair: a cancel of an order the recorder never saw a submission for is stamped with the recorder's last event time by design and the reader's "empty and zero" sweep refused exactly that row, which made a recovered order's cancel unreadable. And the deploy's own silent failure is closed: deploy/activate.sh ran preflight.sh with its status unread, so measured 2026-11-27 two deploys printed preflight: FAIL nothing listens on 127.0.0.1:8765 and both reported success; the call is now an if ! whose branch exits, and check_deploy.py's twenty-fifth rule preflight_fatal refuses the unguarded call and a guard that prints and continues, with both halves in the self-test | this commit | | 2026-11-30 | The 682 post-only refusals were the strategy's own cancels, and the label is fixed. The live window of 2026-11-29 read 738 submissions, 56 fills and post_only_cancels=682, which decomposes exactly: 679 cancels were the engine's own, and 738 = 682 + 56 -- so the venue refused nothing like 682 quotes. The instrument's own refusal share, measured by tools/sweep/post_only_refusals.sh at the live file's shape and the cell's on the flat and trend days, is 0.0 / 0.0 / 0.3 percent at 0, 10 ms and 100 ms on 2026-11-19 and 0.0 / 0.0 / 0.5 on 2026-11-26, 0.6 / 2.2 / 3.3 percent at 0.3 s, 1 s and 3 s, and moving the quote from three ticks to one changes it by 0.1 to 0.4 points -- no latency and no distance this instrument can have reaches 92 percent, so the counter was not reading the venue. Both relays labelled every cancel of a post-only order post_only; the label is now the cancel this client sent (cancel_requested in the translator, known["cancel_requested"] in the relay's), pinned by venue_order_translator_test and the relay's self-test. The window's record can still bound what the venue did without its rows: of the 682, at least 3 had no client cancel in flight, and the exact split is what the row above built, read by record_stats.py's venue_declines against own_cancels. The live readings taken from this counter before today (87 of 172, 59 of 100) are withdrawn on the pages that carried them | this commit | | 2026-11-30 | P1.1 closes on the 28-day slice: almost nothing accrues above 50 contracts, so a reduction rule has no sample to manage. --inv-above-frac=1 sums pnl_bps_above_cap to 1.55 bps over 28 days on inv50b (nonzero on 8 days, largest 9.63) and to 14.05 bps on a single day on inv100b -- the 2026-11-26 reading, reproduced -- against closed medians of +12.62 and +21.48, so the exposure a "reduce above 50" rule would act on is about 0.5 percent of the month's dollars and the rule is closed rather than built. The pair also reads the cap lever itself, and against the direction it was chosen for: at the same ten-contract clip the tight arm's worst day is -50.91 against -19.96, its closed median +12.62 against +21.48 and its CE +9.19 against +16.79, so the inventory cap is a skew lever (it enters through position/limit) and not a tail guard. The 1× arm of the same window prices that lever's other end: w10b-1230-1530 fills 77 times for a closed median of +1.87 and 15 of 28 positive (CE +2.04) where w50b fills 50 for +15.62, 23 of 28 and CE +10.70 -- more fills, almost no capture, which is what a one-clip ping-pong measures | this commit | | 2026-11-30 | The live cap stays at 50; the cap lever is split into its halves before it moves, and a column's meaning is read from its writer. The 28-day pair says the tight cap is worse, and raising it live is refused by arithmetic rather than by taste: at cap 100 with two ten-contract layers the theoretical overshoot is 120 contracts, $261.6 (the measured peak was 105, $228.9), which is truncation against today's --max-exposure-usd=160 -- a live inv100b would not be the cell that was measured -- and with the exposure cap opened to match, the $2 sigma noise floor of $39.0 crosses the $24.96 survival line, which check_params.py refuses. So up_w50b_v1.yaml runs unchanged, and the research question is which half of the lever the +7.6 CE belongs to: the skew slope (position/limit) or the hard ceiling. One cell on the live window (12:30-15:30) holds the hard limit at 50 and sweeps the skew denominator, and the bar is that the CE gain survives there; only then is a ceiling move an inventory decision. Separately, NES's own 28-day profile puts its flow at 01:00-04:30 UTC (0.67-0.81 trades a second) and its coldest stretch at 13:30-15:30 (0.29-0.38), so its next backtest runs in its own hours rather than in the window it shares with UP -- the two seats are offset and do not compete for margin. The reading correction belongs in this row too: sweep_summary.py's fills= is a per-day median (fills_median), so NES's row is 28 fills a day -- 22 of 28 days positive, closed +14.52 bps, CE +11.27 -- and the same column read as a month's total turns a healthy row into one fill a day | this commit | | 2026-11-30 | NES's exit liquidity is measured over its own 28 days: a 50-contract sell inside 10 bps exists on 70 percent of its moments. The L4 gate's floor had only an entry side ("enough flow to pay the fee"), so tools/live/close_cost.py -- which answered a single moment -- gained a ladder mode: --from/--to/--every/--ladder/--budget-bps, one pass over the archive rather than one replay a moment, the book sampled on the cadence and each sample walked for every quantity, with a summary counting the moments inside the concession to the mid (either side, so a buy and a sell read the same). Over NES's 28 recorded days at its own hours, 01:00-04:30 quarter-hourly (15 moments a day, 420), 50 contracts read 296/420 = 70.5 percent inside 10 bps with a worst moment of 19.22 bps and three days wholly inside; 10 contracts 359/420 (85.5, worst 17.42), 25 329/420 (78.3), 100 229/420 (54.5, no full day). The book's spread reads 1-2 ticks of 0.0001 while the mid travelled 0.12145-0.29565 across the month, so a tick is 8.2 bps at the low end and 3.4 at the high, a ten-bps budget is one to three ticks, and the day-level spread runs 6 to 15 moments of 15 at the 50-contract size. The reading that matters for the profile is the comparison: UP's closes took 50 contracts at the bid itself (-11.33 bps), so at equal size NES is the thinner exit and profiles/nes_v1.yaml carries the smaller ceiling. The ladder is pinned by a marked block in the L4 section on one day (2026-11-26, samples=15 q50_ok=11/15) and the 28-day aggregate by out/study/nes-closecost-28d.txt, one summary line a day. One correction to the same session: an earlier reply said this tool did not exist; it did, and the extension rather than a second tool is the whole change | this commit | | 2026-11-30 | A record a kill takes with it was never written, and the probe that should have read it printed nothing. The NES seat ran its whole window -- [RECON] baseline starting_cash_usd=498.362 at 13:30:03, Stopping at 15:32:01 -- and left /var/lib/toyquant/live-nes_orders.csv reading back as 0 bytes (order_summary.py's own words: has columns []), while toyquant-relay@nes had handled 16 submissions, 1 placed, 15 venue refusals and answered sCode=51006 Order price is not within the price limit (max buy price: 0.2156, min sell price: 0.2071) to fifteen of them: the window traded nothing, and the record that would have named our price was inside the writer's buffer. Measured in the tree, the mechanism is the buffer and not the host -- a 36-row write through the same default std::ofstream reads 0 bytes on disk while the writer is alive -- and the recorder flushed only every 1024 rows and at the run's end, which a session SIGKILLed at TimeoutStopSec=25 never reaches (both 11-29 and 11-30 ended that way, Failed with result 'timeout'). So OrderRecorder flushes the header at construction and every row (1.03 us against 0.21 us a row on this filesystem, 4.7 ms for seat 1's 5,908-row day), the graceful stop's first tick flushes and logs [SHUTDOWN] step=record path=... submissions=... before any cancel is sent, and tests/order_recorder_test.cpp reads the file while the writer still holds it open (header alone, then a submission, then a cancel). deploy/seat_probe.sh also prints the record it wrote through order_summary.py -- the reason histogram beside the prices -- caps its own ceiling at PROBE_CEILING (50 USD) instead of refusing a seat above it -- a seat's ceiling is the owner's risk number and the probe's own safety is the cap it forces; --ops seats reads the NES seat at 40 USD, so that refusal was not what kept the probe off this seat, which an earlier draft of this row asserted -- and zeroes the seat's repricing suppression (--advance-debounce-ms=0), because the file's 40,000 means a probe of a few seconds never reaches its first order -- the NES engine started at 13:30:02 and its first submission left at 13:30:36 -- while the clip guard that separates a probe's seat from the main seat's ten contracts stays a refusal. Its reader is the ops action's staging name (/tmp/toyquant-order-summary.py), because /opt/toyquant/deploy/ does not carry one and the first version printed no record at all. The first probe of the seat (16:43Z, 20 s) placed nothing: [WS] connected=1 frames=128 trades=0 depth_updates=126, so the book this seat needs is not moving at that hour and the price question has to be asked in NES's own hours. Not settled: the fifteen refusals name the venue's band and not our price; the next probe or window answers it now that the record survives a kill and the probe prints it | this commit | | 2026-12-01 | The next iteration is registered as four blocks, and five of the list's premises do not survive contact with the tree. The plan is the card above: acceptance (A1 the close's row and the day's record, A2 the L4 gate's ExecCondition= with a floor taken from a tape, A3 the runner starting itself on add, A4 a probe that prints which venue it dialled), NES's calibration (B1 the floor's two tapes, B2 the own-hours sigma pinned, B3 the ceiling from the sigma and the brake, B4 the 28-day DSR measured inside the new window, B5 the clip ladder and a reduce-only 04:30 exit, B6 the profile and the timer last), the tree (C1-C4: Cuts 4/2/3/5 and registry slices 1-3) and expansion (D1-D3, the last two behind Cut 4). The five corrections: the seats share one clock -- window-start@.timer is 13:30 for every %i and window-stop@.timer is 15:32, so "NES is already offset to 01:00-04:30Z" is a decision the tree cannot express until a per-seat schedule exists, which is why B6's "enable the timer" is not the last step but the last-but-one; "the brake" is two things -- the halt has both rulers (--pause-ticks-per-second, --pause-bps-per-second, the parser refusing both) while the kill switch is a USD number with no dimensionless form and no start-time refusal, so one is C2 and the other is a cut of its own; the runner exiting on an empty queue is the design, which is what keeps the queue in out/jobs/ rather than in a process, so the fix is "start one when a row is added" and not a keepalive; 50-60 contracts is the edge, not a target -- L_noise = 2 * Cap_eff * sigma_p95 against beta_eq * E puts a 50-contract ceiling (~100 USD) at the size where k = 2 meets the survival line, so the number is B3's to compute and B2's to supply; and profiles/nes_v1.yaml does not exist, so B6 creates it. Closed and therefore not re-proposed: the L4 gate (797ebf7) and check_deploy's gate_condition rule, the halt's bps form, slice 0's registry and four couplings, the corrected pre-screen criterion (PIEVERSE's 0.96 at three ticks is not a verdict), and NES's own-hours sigma measured once this session (days=27; not pinned, which is B2's whole content) | this commit |

| 2026-12-01 | The skew-half cell lands below both arms, and the registered bar did not name that outcome. w50-skew40-1230-1530 -- cap held at 50, --onesided-inventory-frac=0.4 (the 20-contract ratio a 100-cap arm carries), --max-exposure-usd=160, 100 ms, halt 31.6 bps/s, the same 28 days -- reads closed +11.30, CE +8.67, 82 fills, 24 of 28 positive, leave-one-out +10.80, best day 11.5 percent, against the bar's two ends: inv100b-28d-100ms at +21.48/+16.79 (which would say the missing +7.6 was the skew) and w50b-1230-1530 at +15.62/+10.70 (which would say it was the inventory). It is below both, so the 40 percent adding-side limit recovered none of the gap and cost about 2 CE against the tight-cap row it was meant to improve on. What closes it, registered before any further cell: the skew half is closed unless an arm beats w50b's +15.62 closed and +10.70 CE on the same 28 days with its fill median within a fifth of 50 and its positive share no worse than 23 of 28 -- a lower threshold, a different ratio or a second window is not a re-test, it is window selection; and the ceiling half stays refused by the arithmetic already in this log (inv100b at cap 100 with two layers overruns $261.6 theoretical against the $160 exposure cap, and at $39.0 two-sigma it crosses the $24.96 survival line), so a ceiling move is not the next cell either. The artifact is out/windows/w50-skew40-1230-1530/f1_control.csv and the consumer line above re-derives from it | this commit |

| 2026-12-01 | The skew direction is closed by the owner on its own measured bar, and no further compute goes into it. The arm is w50-skew40-1230-1530 (cap 50, 40 percent on the adding side, --max-exposure-usd=160, 100 ms, 28 days): closed +11.30, CE +8.67 against w50b's +15.62 / +10.70, so the adding-side limit does not recover the skew half of the cap lever -- it starves the mean-reverting fills the tight cap was collecting and costs about 2 CE. The seat stays on w50b (ten a clip into fifty, w50-skew40 is one jobq row that will not be re-run twice), and the closure is registered as an input, a gate and a number rather than as a preference: the direction is reopened by nothing at this sample -- the lever's other half, the hard ceiling, is refused by the arithmetic already in this log (inv100b overruns $261.6 theoretical against the $160 exposure cap; at $39.0 two-sigma it crosses the $24.96 survival line), and a re-test would have to name a mechanism that is not a threshold, a ratio or a window. The artifact is out/windows/w50-skew40-1230-1530/f1_control.csv | this commit | | 2026-12-01 | The L4 gate is armed with a floor derived from the instrument's own two months, and both units now carry it. B1's tapes ran: nes-turnover-60d reads the dead month 2026-09-28..10-29 at median 22,460 USD/day (32 days, p75 44,832, p90 93,369, max 266,586) and the live one 10-30..11-26 at median 140,502 (28 days, min 32,961, p10 50,525, p25 89,344); nes-env-60d reads the venue's own turnover_24h_usd at median 2,160,633 over the 15 days its history still reaches, which is the same market an order of magnitude up and confirms the tape arm rather than contradicting it. The floor is 50,000 USD/day, and its kind is named: an owner's boundary declared before use and derived from the two months -- it misclassifies 10 of the 60 days, the least any single cut does, sits above the dead month's p75 and below the live month's p25, and is a row in config/liquidity_floors.json rather than a number typed into a unit. A2 lands with it: toyquant-live.service and toyquant-live@.service each carry an ExecCondition= naming tools/live/liquidity_gate.py --config ... --row, the gate resolves its floor by instrument from that file, and check_deploy.py's gate rule now refuses a unit with no such line. A4 lands too: seat_probe.sh prints venue=<RELAY_ORDER_VENUE> beside the two endpoints it used and refuses, by name, a probe whose env names no venue or whose order port disagrees with the address its config dials. Still open on these three: the off-window read that shows a closed market leaves a unit inactive and not failed needs a window where the gate actually skips (tonight NES passes at 2.2M against its 50,000), and the floor itself is the owner's to confirm or move -- it is a declared boundary, not a measurement | this commit | | 2026-12-01 | One ledger: four cards are folded into this iteration, two are closed, and NES cannot open at 13:30 any more. The L2 order-budget card is closed with nothing applied -- the window it waited for reads submitted=1473 rate_limited=0 post_only_cancels=19 fills=89, so the local budget never refused an order and the caps it would have lifted are not the binding constraint. The 24-hour atom card is reconciled as dead: no process, nothing queued, nothing quoted anywhere; re-running it is a decision rather than a resumption. The parameter-management, four-lifetimes, live-next-shape and deploy cards are folded into this card with their open halves named (C2/C3, C1/C4, A2/A4/C2, C2) -- the sections keep their reasons and stop being a second ledger. And the seat-hours question that was the first of the two owner decisions is closed by the tree: NES runs 01:00-04:30 from its own drop-ins and seat 1 runs 12:30-15:32, so 13:30 starts nothing for NES and the units stay enabled for its own window | this commit | | 2026-12-01 | The NES window is 01:30-04:30Z, locked on the boundary screen, with its ceiling pinned at the point where k=2 meets the survival line. window_sigma.py over the chosen hours reads p95 = 10.023 percent, so Cap_eff = 24.9 / (2 x 0.10023) = 124.2 USD -- the sigma block above pins L_noise(k=2)=24.90 at that cap, and the seat's timers move to 01:30 start with the 04:32 close unchanged. Two arms are rejected by their own numbers rather than by taste: 02:00-04:30 reaches the highest raw closed x Cap (0.116) but its CE 0.50 is a tenth of every other arm, so the tail it carries is refused; 01:00-04:00 buys the cheapest exit (7.25 bps at 04:00 against 11.55 at 04:30) and pays for it with 40 percent of its closed bps, because the half-hour it drops is the one the inventory mean-reverts in. The rule that comes out of it, registered before the next screen: an arm whose CE is under half the baseline's is refused whatever its closed x Cap says. What the lock does not settle: the seat still reads a 40 USD ceiling against a 124.2 legal maximum, so the clip ladder (B5) and the ceiling itself (B3) are the next experiments -- raising either is the owner's | this commit | | 2026-12-01 | The clip ladder is measured at the locked window, and one contract is the rung that pays: more size buys fills and spends the tail. Four rungs at 01:30-04:30, the same 28 days, CAP 57 contracts (the 124.2 USD ceiling at 0.218), only SIZE moving: 1 contract reads fills 36, closed +11.43, CE +8.20, 21 of 28 positive; 2 contracts 38 / +10.34 / +4.68 / 19; 5 contracts 51 / +5.25 / +0.04 / 17; 10 contracts 52 / +4.83 / +1.68 / 18. The registered bar picks the rung with the best CE at or above 25 fills a day and no worse a positive share than the baseline's 21 of 28, and that is one contract -- the seat's present clip, so the ladder does not ask for a change to the live file. What it rules out is the direction the ceiling invites: 124.2 USD of legal position buys 4.83 to 5.25 closed bps at five and ten contracts against 11.43 at one, so scaling up is not a lever here and the ceiling question (B3) is decided on risk, not on capture. The reduce-only wind-down at 04:30 is not in this row: close_cost.py reads the market exit (10 contracts -7.67 bps, 50 contracts -11.55 at 04:30, pinned above) and a reduce-only policy is a build, not a measurement -- it stays open in B5 | this commit | | 2026-12-01 | A1 closes: the UP close reads through the tools and its decomposition reconciles to the digit. --ops window gave the row (maker 88, taker 1, fees 0.315362, gross -0.298, net -0.613362, residual 0, markout 4.0158, submitted 1473, cancels 1400, post_only_cancels 19, rate_limited 0, capture 3.39093, equity 498.55) and --ops record gave 5908 rows: 1473 submits, 3035 reports, 89 fills, fees 0.315362, p50 197.727 / p90 379.610 / p95 382.905 / p99 498.316 ms over n=1473, fill 0.0604 post_only 0.0129 reject 0.0000, venue_declines 9 own_cancels 10. They reconcile on every clause -- fees equal both sides, 88 maker plus 1 taker is 89, 9 plus 10 is 19, net is gross minus fees, and no rejection against a zero rate-limited count -- which is the bar this row was registered with. The p95 is not printed by record_stats.py (it stops at p90): it was computed from the saved record by pairing each order with its first report on order_id, and that computation reproduces the tool's p50/p90/p99 to the millisecond. One defect travelled with it and is fixed: the ledger row names window_start_utc 13:30 while the record spans 12:30:19-15:30:01, because deploy/daily_report.py's WINDOW_START default was never moved with the timer; the constant is 12:30 now and report_seats.sh passes each seat its own hours, so the 12-01 window is the first row that should carry the right label -- if it does, A1 has no residue, and if it does not, the defect is in the writer and this row reopens | this commit | | 2026-12-01 | Cut 4's first ops readers ask the resolver, and the gate now runs the resolver's own tests. tools/ops/jobq.sh puts the queue's state under $TQ_OUT_DIR/jobs (default out/jobs/) and tools/ops/dispatch_deploy.sh saves the window's series and record under $TQ_OUT_DIR/runtime/, so four of the card's 71 readers resolve a root through one definition instead of spelling out/; the build tree deliberately does not follow TQ_OUT_DIR, because the digest a job records must name the binary bash .run.sh build wrote. Both halves of the resolver run in the code tier -- roots.py --self-test and three shell assertions on the defaults and both override shapes -- and so does jobq.sh self-test, which now pins that status exits 0 after printing a table: it returned 1 whenever the last done row carried no verdict, because the last [ -f ] was the command's status. Open: the other 67 readers and the move itself, which is one commit after a full re-derive. | this commit | | 2026-12-01 | The NES numbers are decided: clip 1, the cap pair (30, 70), and the loss brake unchanged at 24.9. (1) B3's ceiling is (inventory_limit=30, max_exposure_usd=70) -- 30 contracts plus the one resting clip is 31 contracts = 67.58 USD at 0.218, the stop band is [13.55, 24.93] with the applied 24.9 sitting 11.35 above the floor, and the price may rise 3.58 percent before check_params' overshoot invariant trips where (40, 90) left 0.69; 30 also does not clip the measured curve, whose clip-1 peak inventory is 25 contracts over the 28 days, so the ladder's CE transfers to the file. (2) clip = 1 is confirmed and is already the live value: the ladder's registered bar (best CE at 25+ fills, positive share no worse than 21 of 28) reads CE +8.20 at 36 fills and 21 of 28 against 4.68 / 0.04 / 1.68 at 2 / 5 / 10 contracts. (3) kill_switch_loss_usd stays 24.9 and stays a USD loss brake: its couplings are k*peak*sigma <= stop <= beta_eq*E (tools/gate/check_params.py:144-151) and there is no contract-count relation to satisfy -- a 30-contract number cannot be written into it and is refused above beta_eq*E; a soft position brake below the hard cap is not built, on the owner's instruction not to grow the config schema. Two candidates are deleted with their arithmetic: 124.2 is not a live file (57 + 1 contracts reads a 25.35 floor against 24.93, and 56 leaves 0.01) and 80 contracts has no legal stop (35.40 against 24.93). The host still reads 40 USD / 10 contracts until B6 applies the pair | this commit | | 2026-12-01 | B4 is measured at the locked window and the DSR fails: 0.721 at the registered N_eff=8, and no ceiling moves it. significance.py on out/windows/nes-ladder-size1/f1_control.csv against the live window's series reads T=28, SR=0.362, skew 1.73, kurt 5.51, SE 0.139, SR0 0.281, DSR 0.721, fail, pinned in the B4 section below. The same series at --trials 1 reads 0.995 pass, which is the count the methodology page refuses, so the pass cannot be bought by arguing about trials. Cap is a constant divisor and cancels in stage one, and the measured peak (25 contracts) sits under every candidate ceiling, so (30, 70), (40, 90) and (56, 124) all read the same 0.721 -- the lever that would move it is the edge, not the file. The 0.356 in the handoff belongs to nes-ownhours-28d, reproduced here as SR 0.203 / SE 0.210 / DSR 0.356, and is not this window's row. The session stays a test, and B5's reduce-only exit is what the 04:30 close waits on | this commit |

| 2026-12-01 | Cut 4's live readers ask the resolver, and soak.sh turns out to need nothing. tools/live/trace_order.sh and tools/live/resume_live.sh now source tools/lib/roots.sh and build their tape paths from $TQ_DATA_DIR (v2/crypto/deribit_trades_2020-04-01_BTC-PERPETUAL.csv.gz, and for the resume line the 2020-04-01 book snapshot), with the build tree deliberately unchanged because a job's digest has to name the binary bash .run.sh build wrote. Six of the card's 71 readers now ask one definition. soak.sh carries no data/ path at all -- it records under $OUT=/tmp/tq/soak and reads the seat's own config -- so the handoff's "three live readers" was one too many; live_config.py's data/runtime/live-snapshot.json is the seat's runtime path and moves only with the deploy's layout, not with this cut. One check earned its keep: the resolver's root is data/ itself, so the path is $TQ_DATA_DIR/v2/crypto/..., and the first draft dropped v2 -- test -f refused it before the gate saw the file | this commit |

| 2026-12-01 | The venue question is settled with three prices, and the settled pair's price headroom is already spent. At 03:19Z the production book read 0.3433/0.3436 (mark 0.3434) and the simulated venue's own book, read with x-simulated-trading: 1, read one ask at 0.2387 with no bids (mark 0.2387); the band the venue refused with at 01:30 was [0.2046, 0.213], centred at 0.2088, which is the simulated market as it stood then -- so the band follows the venue the orders go to, and the seat was quoting production's book at it. The mixed reader is the relay's public leg (venue_relay.py:77 production against :1361 simulated), not the probe: okx_probe.py:44 sends the simulated header on every call. Two consequences. First, the price basis: check_params has no venue concept, so the price it is given must be the order venue's own mark -- at the simulated mark 0.2385 the decided pair (30, 70) fails overshoot, 31 contracts = 73.94 USD against 70, while (28, 70) reads 69.16 and (30, 75) 73.94, and at the production mark 0.3434 the same 31 contracts is 106.5 USD. The 0.218 the pair was decided at is now 9.4 percent below the simulated mark and 57 percent below the production one, so the pair is re-derived at the applying venue's mark and never inherited. Second, the direction: the simulated book has no bids, so binding the data leg to it makes a buy-only-side market, and the 28-day evidence was measured on production tapes -- which is A4's decision, not this row's. The band guard stays the code that turns a refused quote into one named line instead of 3,069 blind orders | this commit |

| 2026-12-01 | Cut 4's first study batch asks the resolver, and out/build stays literal. book_lead_lag.py, okx_fill_profile.py and okx_halfhour_profile.py take their --archives/--trades defaults from roots.data("v2/crypto"); fill_markout_by_state.py and gate_latency_counterfactual.py take out/cuts from roots.out("cuts") and the depth archive from roots.data("v2/crypto"). Eleven of the 71 readers now ask one definition, up from six. Path("out/build/linux-debug/toy_quant") stays literal in every one: the build tree deliberately does not follow TQ_OUT_DIR, because a job's digest has to name the binary bash .run.sh build wrote. The batch's checks are py_compile and --help per file inside it, and one code tier at its end | this commit |

| 2026-12-01 | Cut 4's second study batch asks the resolver: nine more readers, and one default deliberately left alone. okx_quote_share.py and okx_tape_toxicity.py take --root/--archives/--trades from roots.data("v2/crypto"); fill_basis_asymmetry.py and fill_decomposition.py take out/cuts and the index root from the resolver; cascade_probe.py, leader_state_out_of_sample.py, live_knobs_ab.py, okx_spread_screen.py and lowturnover_test.py build their paths from it too. Twenty of the 71 readers now ask one definition. benchmark_l2_strategies.py is not migrated: its literals are data/runtime/orders.csv and data/runtime/trades.csv, the seat's own runtime copies, which move with the deploy's layout rather than with TQ_DATA_DIR (the same reason live_config.py's data/runtime/ stays). Path("out/build/...") stays literal in every file | this commit |

| 2026-12-01 | The last direct study readers move: the tail of the list is done, and what is left is not a reader. screen_spread.py takes its cache directory from roots.data("v2/screen") and window_regimes.py its folder and rows from roots.data("v2/crypto/UP-USDT-SWAP") / roots.out("p2/f1_control.csv"), so twenty-two of the 71 readers ask one definition. What the grep still returns is deliberately not migrated: benchmark_l2_strategies.py reads data/runtime/ (the seat's runtime copies), viability.py carries data/ strings inside a command manifest (cmd lists for other tools, not paths it opens), the rest are out/build/ (the build tree) or a help string. pnl_interval.py is its own cut: sixteen literals and a marked block in docs/performance/ that re-runs it, so it lands with that page | this commit |

| 2026-12-01 | pnl_interval.py moves last, because its fourteen windows are named in module state. The WINDOWS tuple's fourteen archive paths and the trade template resolve through roots.data("v2/crypto/..."), and all fourteen resolve to existing files (windows=14 missing=0, proved by importing the module and testing each window's source). The import has to sit above the tuple: a str(roots.data(...)) executed before the import is a NameError, which is how the first draft failed. Twenty-three of the 71 readers now ask one definition, and what still carries a data/ string does so on purpose: the runtime copies, the command manifest, the build tree and a help string | this commit |

| 2026-12-01 | The trial book gets its read side: --ledger turns rows into a trial count. significance.py accepted --series and --folder and nothing else, so N_eff could only be taken by re-scanning a folder -- a count that grows with whatever was left on disk. --ledger <jsonl> now reads one JSON object a line, each naming a series, and feeds the same participation-ratio arithmetic; a row that names none is refused by name rather than skipped, and a line that is not JSON is refused with its line number. The smoke over three recorded series reads 3 distinct series, effective N=3.0. What is still missing is the writer: no sweep row carries profile_hash yet, so the book has to be assembled by hand until that column exists | this commit |

| 2026-12-01 | The trial book's writer is a column, not a second file. Every sweep row now carries profile_hash: twelve hex characters over the row's resolved flag shape (profile_hash([...]) in tools/sweep/okx_maker_baseline.py), so two rows of one configuration share it and one changed flag changes it. A separate book file would have been a second place to keep in step; a column means the book is grep over the cells the sweep already writes, and the ledger's reader (--ledger) takes series paths from it. The key goes into the row and the column list in the same edit, and the self-test pins the three properties: stable for one shape, twelve characters, different after one changed flag | this commit |

| 2026-12-01 | Both roots pointed outside the checkout, and every recorded row re-derives. With TQ_DATA_DIR=/tmp/tq/roots/data TQ_OUT_DIR=/tmp/tq/roots/out (symlinks to the checkout's own bytes, so the test is the resolver's plumbing and not a copy), verify_l2.sh full reads tier2 OK against the tracked reference hash and the whole docs set reads docs OK -- every marked block re-derived on the moved roots, including the ones that read data/v2 through the resolver and write under out/. What this proves is the bar's first half (a recorded row is a hit rather than a miss when a root moves); the physical relocation is a separate step with the same two commands | this commit |

| 2026-12-01 | The allowlist is closed by a check, not by generation, and the check is the stronger form. C3's card asked for live_config.py's allowlist to be generated from config/param_registry.json. The tree already carries the opposite decision with its reason -- the list is explicit so a key added later is denied until someone decides it is the instrument's -- and check_params.authority_problems enforces the agreement in both directions: AGENT_TUNABLE must be in AGENT_KEYS, a settable OWNER_ONLY must be in OWNER_DELEGATED, SYSTEM is never settable, and every settable key must be classified. Generating the list would have made a one-line registry edit a grant; the check makes it a red gate until the tool names the key. Measured: registry=48 live_keys=48 uncovered=0 not_a_live_key=0, exit 0 | this commit |

| 2026-12-01 | The entry point starts as a dispatcher, not a second implementation. tools/ops/tq.sh status is the first verb of C4's tq: the commit the checkout is on beside the commit the handoff names, the queue's active rows, the two roots, the registry's coverage line and the live template's config check, in one screen that used to be five commands a session had to remember. It calls the tools that own each fact -- jobq.sh, check_params.py, live_config.py, tools/lib/roots.sh -- and the self-test pins the six sections and an unknown verb refused by name. The host half of the cockpit (--ops seats/status/ledger) is a dispatch and stays where it is | this commit |

| 2026-12-01 | The trial book gets its writer, and the smoke exposed a defect in the funnel's own labels. significance.py --book-out turns the cells a folder already holds into the book: one JSON row per distinct profile_hash, a duplicate hash printed and counted once, and a cell without the column refused by name (the recorded cells predate the column, so a book from them is a refusal, not a guess). The end-to-end smoke -- two cells -> --book-out -> --ledger -- read 1 distinct series for two files, because the series label was the parent directory and both files shared it; the label now falls back to the file's stem when it collides, and the smoke reads 2 distinct series, effective N=2.0. That is the failure the funnel exists to refuse: a trial count smaller than the trials lowers N and deflates nothing | this commit |

| 2026-12-01 | The order leg can no longer be silently simulated under systemd, and a seat may not override the venue. venue_relay.py refuses when an order channel is served under systemd (an INVOCATION_ID is set) and neither --order-live nor RELAY_ORDER_LIVE was named -- the default used to be "simulated", which is how the NES seat came to quote the production book at the demo venue on 12-01 with no line saying which leg it was. A local run keeps the default, so the lab harnesses are unchanged. bootstrap_server.sh refuses a seat env that names RELAY_ORDER_VENUE/RELAY_ORDER_REST/RELAY_ORDER_LIVE, by name and with the fix in the message: the venue is the account's, in /etc/toyquant/live.env. Both guards run their cases in the self-tests the code tier runs | this commit |

| 2026-12-01 | The band guard: a quote outside the venue's own band is refused locally and named. venue_relay.py reads the order venue's mark once at startup (/api/v5/public/mark-price, with the simulated header when the leg is not live) and, on every ORDER, refuses a price more than BAND_BPS (200) from it: the engine gets the same REJECT <id> venue it would have got from the venue, nothing reaches the wire, and the refusal prints the price, the mark and the gap -- the first and then every hundredth, so a bad configuration is one line rather than 3,069 submissions and 20 answers. band_gap_bps carries its cases in the relay's self-test. What is not proved: that 200 bps is the venue's own band on every instrument -- it is the band the venue printed on 12-01, and the guard is a spamming floor, not a price model | this commit |

| 2026-12-01 | The no-ack latch: a venue that stops answering stops being fed. latch_tripped(pending, silent_for) says quiet when ten orders are outstanding and none has been answered for five seconds; when it trips, the relay answers REJECT <id> venue locally, prints one line with the count and the silence, and stops submitting ORDERs -- cancels still go, because refusing a cancel locally would leave the engine believing an order rests. pending is decremented by any delivered line whose second token is an order id (the ACK, REJECT and fill shape), and client.submit is the one place it is incremented, so the REST path -- which answers on the same thread -- cannot latch on its own silence. Measured 2026-12-01 is the case it exists for: twenty answers, then 3,069 submissions into a queue nobody drained | this commit |

| 2026-12-01 | A4 closes: the probe refuses two mismatches by name. seat_probe.sh already printed the venue and both endpoints; it now refuses (1) a seat env whose venue differs from the shared live.env's -- the order venue is the account's, in one file -- and (2) a venue whose host and live flag name different environments (the live host takes real orders, the demo host refuses them, so a disagreeing pair answers 401 or places a demo order that never reaches the market). Both messages name the two values, and the code tier's probe self-test runs in the same cut | this commit | | 2026-12-01 | B3's pair is re-derived at the applying venue's mark, and the table is the deliverable. At the production mark 0.3434 the decided (30, 70) reads 31 contracts = 106.5 USD against the 70 cap, so the legal pairs there are (19, 70) (20 contracts = 68.7) or (30, 107) (106.5, stop floor 21.4 under the 24.9 line). At the simulated mark 0.2385 they are (28, 70) (69.2) or (30, 75) (73.9). The pair is therefore re-derived at the venue the file is applied on and never inherited from the 0.218 it was decided at; the host keeps reading 40 USD / 10 contracts until B6 applies one | this commit |

| 2026-12-01 | The --profile dispatch: one action writes the file the unit reads. deploy/install_profile.sh installs profiles/<name>.yaml onto /etc/toyquant/live-<seat>.yaml: it validates with live_config.py --check as the service user, keeps the replaced file as <name>.bak-profile, installs 0640 for the service group, and restores the backup when the reader refuses. The action travels the same way as the others -- ops.yml offers it and scps the installer plus the profile (refused unless the path is under profiles/), ops_remote.sh carries the branch, dispatch_deploy.sh passes --profile and --seat, check_deploy's action map names the script and its self-test fixture carries the branch -- so a profile moves without a hand edit on the host and without a deploy. What it does not do: restart the seat; --ops seat-start (which restarts a running pair) stays the next step | this commit |

| 2026-12-01 | The halt's bps/s is registered on a second instrument; its artifact is in flight. bps31.6-pros-28d-100ms: tools/sweep/up_ten_contract_cell.sh --arm f1_control --symbol PROS-USDT-SWAP --tick 0.0001 --latency-us 100000 --pause-bps 31.6 over the 28 days 2026-10-30..11-26, artifact out/windows/bps31.6-pros-28d/f1_control.csv, read by sweep_summary.py --read. The bar is registered before the run: the same 31.6 bps/s halt on a second instrument must read as a lever -- more pauses with a better CE(0.02) and a worse worst day than its own control -- and a pause count that explodes on one instrument or vanishes on the other says the number is not carrying across. The owner's rule for a long row applies: the job runs in the background and the block does not wait on it; the row's numbers land when the artifact does | this commit | | 2026-12-01 | Block 5 is parked by the owner, and its rows stay registered rather than deleted. D1's density floor, D2 PIEVERSE's 28 days, D3's next batch, B5's reduce-only 04:30 exit and B6's profile and per-seat timer move out of the current queue and stay as their card rows carry them; the queue continues with Block 3 (the relocation), Block 4 (tq, the rendered flag table, the orphans) and Block 6 (the workflow files). Parking is an instruction, not a measurement: nothing in those rows is closed by it | this commit |

| 2026-12-01 | The relocation is one check away, and the check that was missing is now in. The first attempt moved both roots and the docs tier failed with ten mismatches: check_docs mapped a block's inputs: glob but not the data/ and out/ tokens on its command line, so close_cost.py --depth data/v2/... and window_sigma.py --dir data/v2/crypto read paths that no longer existed. check_docs._mapped now rewrites those tokens onto the resolved roots (the build tree excepted), and the second attempt read tier2 OK on full and docs OK on the whole docs set. The code tier then refused the move three times, each one a literal path: the sweep fixture named only --symbol (so the tool searched the checkout's data/v2/crypto), okx_maker_baseline.py resolved the trade tape from ROOT / "data/v2/crypto" instead of the resolver, and the roots assertions asserted the default with TQ_DATA_DIR inherited. With all three fixed the moved roots read code OK, tier2 OK and docs OK -- the bar's three checks in one pass | this commit |

| 2026-12-01 | Cut 4 closes: the roots live outside the checkout and every check is green on them. data/ and out/ moved to the directory the two variables name (the build tree stays inside, as the rule says); the last three literal paths were the sweep fixture's missing --archives, okx_maker_baseline.py's trade tape resolved from ROOT instead of the resolver, and the shell roots assertion reading an inherited override as the default. On the moved roots verify_l2.sh code reads code OK, full reads tier2 OK against tests/fixtures/l2_full_ref.sha256, and the whole docs set reads docs OK: every recorded row re-derives and the replay hash is unchanged, which is the bar the card wrote | this commit |

| 2026-12-01 | The orphan count is 32, and the definition is the point. A tools/ file that no other tracked code file (.py/.sh/.yml, docs/ excluded) names by basename: 32 survivors today against the card's 31, the difference being a tool added since it was measured. The named survivors are the bench and fetch one-offs (ab_bench.sh, count_libc_calls.c, fetch_deribit_options.py, fetch_funding_rates.py, inspect_source.py), quiet.sh, the legacy tick generator and the post-commit installer. The card's bar is that the number stops growing and each survivor names its reader or moves to archive/studies/YYYY-MM/ by git mv; this row records the number, not a migration | this commit |

| 2026-12-01 | The stop was never armed, and a machine nobody requested cannot finish a stop. Two stops on 2026-12-01 (04:32 and 07:58) printed [SHUTDOWN] step=record and then no step at all, and the unit killed each session with TimeoutStopSec=25. The record flush was sound and the venue was never reached: SessionShutdown::advance() returns an empty list unless request() has been called, and src/app/application.cpp drove advance() on every tick without ever calling it -- so the empty answer read as "nothing to do yet", finished() stayed false, the feed was never stopped and no cancel was ever sent. Three bounds land with the arming: tick() arms the machine on the first call after the signal and the sequence then runs itself at 50 ms instead of one step per feed idle tick; the cancel write is bounded at 800 ms (TcpVenueTransport sets SO_SNDTIMEO, and line_socket::write_all now treats EAGAIN as a failed write rather than retrying the hang) with the machine's deadline checked before each id; and the 20 s watchdog's clean exit now carries two forced [RECON] at=end lines with the ledger's last numbers and status=unknown reason=shutdown-watchdog, because a stop that reaches the watchdog never heard the venue. The pair is pinned by test rather than by a host: session_shutdown_test asserts a first tick arms the machine and its budget, and tcp_venue_transport_test asserts a peer that accepts and never reads fails the write inside the bound. P2 lands with it, and it is a bar rather than a ceremony: tools/live/stop_smoke.py starts the binary in the unit's own ws + --live-orders invocation against the relay's simulated order venue, rests a partially filled order (two contracts, half filled on arrival, so the remainder is working), sends SIGTERM, and reads 265 ms, exit 0, [SHUTDOWN] record then done, both [RECON] at=end lines, two cancels and working=0 at the venue; with the arming removed it reads 20,115 ms and no step=done, which is the session's own failure reproduced. It runs in the gate's code tier. Open: systemd's own stop is the one half this does not drive -- the unit's TimeoutStopSec=25 versus the engine's 10 s is check_deploy's rule, and the seat's next window is what shows the host path; the NES P1 items stay where the B3 row put them | this commit |

| 2026-12-01 | The NES seat's orders reach a market its data never sees, so the gate now asks the order venue, and the record names the venue's own code. Today's 01:30Z window settled it: 2,730 submissions, 20 venue refusals (sCode=51006, band [0.2046, 0.213]), no fills, and the stop hung at 04:32Z. Measured at 08:45Z on both venues: the demo (where the seat's orders go) read ask 0.2322 x 97, no bid, volCcy24h=0, while production (where the tapes and the price come from) read 0.3308/0.3312, mark 0.3304, 61.2M USD -- a 30 percent gap and a one-sided book, so no quote could ever fill and the production turnover the L4 gate read (17.9M against its 50k floor) passed a window that could not trade. Two changes, one rule each: the L4 gate asks the order venue first (liquidity_gate.py reads the ticker the order leg dials, RELAY_ORDER_LIVE selecting the demo header): no 24h volume or one side and the window is skipped whatever the production floor says, while an instrument the order venue's public API does not list (UP answers 51001) is unknown and falls through, because the private leg can still serve it -- measured on the three shapes: NES demo venue_status=dead verdict=skip, NES production venue_status=tradable verdict=open, UP demo venue_status=unknown verdict=open; and the refusing side's own code rides the reject (REJECT <id> venue:<sCode> in both relays, the adapter's reject_detail, the record's reason column as venue:51006, the reader taking the class before the colon so a replay still reproduces the report). The host's relay is older than the band guard and the no-ack latch (the 01:30 journal has neither line), so the next step is a deploy, then the seat's next window should read verdict=skip in one journal line instead of 2,730 refusals. Deployed and activated the same hour: deploy run 46624341830 succeeded, and because a deploy does not restart a relay that is already up, the documented path was used -- --ops stop then --ops preflight -- so toyquant-relay came back at 10:28:36 from the new file (band guard, no-ack latch, venue:<sCode>) and the preflight read 7/7, 'this host would start a session'; the engine's new binary (the armed stop) is what tonight's 12:30Z window starts. Open: the owner's venue decision -- the demo's NES is not tradable, so the seat either stays shut or moves to production, where the pair (30,70) re-derived at 0.3304 reads 102 USD against the 70 cap and must become (19,70) before it applies -- the seat's extra_layers: 1 puts two clips behind the limit, so 21 contracts of peak is 69.38 USD against the 70 cap (0.89 percent headroom), and the 0.218 pair's own peak is 32 contracts, 69.76 USD, whose headroom is 0.34 percent rather than the 3.58 the B3 row states; and the next NES window's one-line verdict=skip is the first proof the gate runs on the host | 7ae6f46 |

| 2026-12-01 | The NES parameters are set at the applying mark, and the B3 headroom claim does not survive the seat's extra layer. profiles/nes_v1.yaml is the candidate: clip one contract, (19,70), brake 24.9, the locked 01:30-04:30 window, the cell's spread 3/1 and 40,000 ms suppression, ports 8767/8768, --starting-cash=venue. The pair is a function of the mark and check_params decided all three cases at equity 498.55 and sigma 10.023 percent: production 0.3304 -> (19,70) (peak 21 = 69.38 USD, stop floor 13.91, headroom 0.89), demo 0.2319 -> (28,70) (30 = 69.57, floor 13.95), the B3 mark 0.218 -> (30,70) (32 = 69.76, floor 13.98); (20,70) at 0.3304 is refused with 22 contracts = 72.69 USD. The correction: the B3 row counted 30 + one resting clip = 31, but the seat runs extra_layers: 1 and the overshoot invariant counts limit + (1 + layers) * size, so the 0.218 peak is 32 contracts and its headroom 0.34 percent, not 3.58; the pair still clears the 70 cap, so the decision stands and the headroom number moves. The brake 24.9 sits inside [13.91, 24.93] at every mark. The two offline re-runs are in flight (detached, nes-ladder and nes-month): the B5 ladder at the applied (19,70) ceiling (four rungs, 28 days, 01:30-04:30, 100 ms) and the 6a second month (the ten-contract cell at 13:30, the 28- and 32-day halves), with the sweep's --archives gap fixed so the moved data root is nameable. For tomorrow's live run: the NES window at 01:30Z is skipped by the L4 gate (the demo has no bid and 24h volume 0), so no NES parameter applies; the UP window at 12:30Z keeps its up_w50b_v1 shape (clip 10, limit 50, cap 160, brake 24.9). The NES file is a production-venue candidate and is not applied. | f367229 |

| 2026-12-01 | The 60-day NES cell says the seat is a regime and not a property, and the ladder inside the applied ceiling still pays one contract. 6a ran: the ten-contract control at 13:30-15:30, 10 ms, 1,000,000,000-unit cap, both halves on the cuts already on disk. The live month (10-30..11-26) reads 26 of 28 measured, median 30 fills, closed +12.71 [-16.39, +50.03], positive 17 of 26, CE 8.06; the dead month (09-28..10-29) reads 26 of 32 measured, median 4 fills, closed 0.00 [-37.36, +41.30], positive 8 of 26, CE -0.15. Together (52 of 60 measured) the seat reads median 11 fills, closed 0.00, 25 of 52 positive, 23 thin days (38 percent against the 15 percent ceiling), CE 3.85 -- so the admission floor (25 fills) and the thin-day ceiling both fail, which is what the L4 gate's dead-month tape (22,460 USD/day against 140,502) was warning about. The B5 re-run inside the applied pair (19,70) (--inv-limit=190000000, --max-exposure-usd=70, 01:30-04:30, 100 ms, 28 days) keeps clip 1 as the paying rung: clip 1 40 fills, closed +9.54, 17 of 28, CE +1.74; clip 2 46 / +0.67 / 14 / -0.12; clip 5 51 / +3.08 / 18 / +1.58; clip 10 66 / +1.09 / 15 / +0.45. The cap costs most of the old CE (+8.20 at the 57-contract ceiling): the strategy's position ratio is a fraction of inventory_limit, so a 19-contract limit changes the quotes, not only the bound. Decision: the NES parameters stay (19,70), clip 1, brake 24.9, 01:30-04:30 (profiles/nes_v1.yaml); the seat is not admitted on the 60-day sample, and tomorrow's 01:30Z window is skipped by the L4 gate (the demo has no bid, volume 0). Tomorrow's live run is the UP window at 12:30Z with its up_w50b_v1 shape, unchanged. Artifacts: out/windows/nes-tencell-month1|month2/f1_control.csv, out/windows/nes-cap190-size{1,2,5,10}/f1_control.csv. | f367229 |

| 2026-12-01 | The admission standard is conditioned on the L4 gate, and the CE the small cap ate was the skew's denominator, not the market's. The 60-day cell measured unconditionally read median 11 fills / 0.00 closed / CE 3.85, and the owner's correction is that those days include ones the machine would never have started: the L4 gate skips a window whose order venue is dead, and the dead month's tape is 22,460 USD/day against the 50,000 floor. Conditioned through sweep_summary.py --turnover out/study/nes-turnover-60d.csv --floor-usd 50000 (34 of 60 days at or above the floor, 33 measured): median 23 fills, closed +7.30 [-37.36, +50.03], 20 of 33 positive, CE 4.56. The B5 gap was a coupling: the quote skew normalized by the risk cap, so at (19,70) a two-contract position read as a tenth of the way to disaster and the strategy shed instead of quoting. --skew-limit separates the two numbers (the hard cap and the one-sided retreat still read the risk limit; 0 keeps every recorded run). On the 28 days at 01:30-04:30, 100 ms, conditioned on the gate's 26 open days, clip 1 reads: coupled +9.54 / CE +0.83, a 40-contract comfort +12.94 / +3.67, a 50-contract comfort +9.75 / +4.19, and clip 1 is the best rung at both comforts (clip 2/5/10 CE -0.51 to -5.25). The registered significance bar still fails on the conditioned series: significance.py --series <gated> --trials 8 --alpha 0.10 reads DSR 0.344 (T=34, ten-contract 60-day) and 0.522 (T=26, seat clip 1), both short of 0.90. The decisions this row takes, on the owner's instruction: the admission standard is the L4-filtered active-day positive expectation, not the unconditional 60-day mean; NES stays in the production candidate pool; the parameters are (19,70), clip 1, skew comfort 50 contracts, brake 24.9, 01:30-04:30 (profiles/nes_v1.yaml). Open: the live key engine.skew_limit (registry + live_config + the rendered table) before the profile can carry it; the 04:30 reduce-only exit remains a build; and the DSR is reported, not moved -- a conditioned DSR at a different N_eff is the owner's next declaration. Commands: python3 tools/study/sweep_summary.py --read out/windows/nes-60d.csv --turnover out/study/nes-turnover-60d.csv --floor-usd 50000; the ladder arms are out/windows/nes-cap190{,-skew40,-skew50}-size*/f1_control.csv. | 9fe48a6 |

| 2026-12-01 | The skew comfort is a live key, the wind-down has a reduce-only taker, and the DSR's N is re-measured on the gated days. engine.skew_limit is in the registry (AGENT_TUNABLE, contracts) and the allowlist -- 49 of 49 covered -- and profiles/nes_v1.yaml carries the 50-contract comfort. --reduce-only-exit makes the wind-down's closing side a taker at the touch for what is carried and never more (the resting quotes cancelled first, --close-out the fallback). On the seat's 28 days at (19,70), clip 1, 100 ms, the L4-open 26: the exit leaves a median position of 1 contract against 3, at +3.07 bps on the settle line, -0.40 net bps, +0.0065 USD a day against the passive wind-down -- cheaper than the recorded market close (10 contracts -7.67 bps, 50 -11.55 at 04:30) and not free. significance.py gained --turnover/--floor-usd; over the eight NES candidates (208 of 224 rows gated) the participation ratio is N_eff = 1.8 (two trials), and the ladder's clip-1 series reads DSR 0.968 (pass) where the raw-count-8 reading was 0.721; the applied (19,70) skew-50 arm reads 0.877 and the exit arm 0.683. The convention is now in docs/METHODOLOGY_SCREENING.md: a gated seat's N is re-measured on the days its filter admits, the conditioned number is the declared one and the raw count is the sensitivity -- so the ladder's arm passes, the applied seat's does not, and both stay printed. Open: --reduce-only-exit is not a live key yet (replay only); the exit's --close-out arm did not move the cell's columns (the pipeline's close is not in the row's accounting), so the close's own cost still comes from close_cost.py's venue reading. Artifacts: out/windows/nes-exit-{passive,reduceonly,closeout}/f1_control.csv, the gated series under /tmp are regenerable by the two tools' --turnover. | 51b936c |

| 2026-12-01 | The UP skew comparison is run and the config is not rewritten: the CE gain is marginal and the cap-pinned days nearly double. Three fixed arms on the live shape (12:30-15:30Z, clip 10, limit 50, cap 160, layers 1, 100 ms, the 28 days 10-30..11-26), skew_limit 0 (=50, the baseline), 80, 100, read with sweep_summary.py --cap-units 500000000. First the floor question, which decides the sample: config/liquidity_floors.json carries UP 1,000,000 USD/day, not 50,000 (that is NES's). At the owner's stated 50k all 28 days pass; at the gate's own 1M only 9 of 28 do. | arm | CE (28d, 50k) | closed (28d) | cap-days | residual (contracts) | settle bps | net USD | CE (9d, 1M) | closed (9d) | |---|---:|---:|---:|---:|---:|---:|---:|---:| | base (0=50) | 11.85 | 17.46 | 6/28 | 16.3 | 0.70 | 0.412 | 9.06 | 15.94 | | skew 80 | 15.01 | 22.09 | 11/28 | 17.0 | 0.92 | 0.774 | 11.54 | 8.75 | | skew 100 | 12.66 | 21.66 | 13/28 | 17.4 | 0.89 | 0.614 | 9.53 | 12.29 | The paired closed difference (skew80 - base) is +3.22 bps, SE 1.75, t=+1.84 on the 28 days (marginal at 10 percent, not at 5) and +2.26, t=+0.95 on the gate's 9; the exit cost rises +0.22 bps on the settle line and the residual +0.7 contracts, while the cap-pinned days go from 6 to 11 and the worst-day multiple from 0.62 to 0.88. Verdict: keep the UP config. The 28-day reading is marginal and its gain is bought with a near-doubling of cap-pinned days; under the gate's own 1M floor the closed median falls (15.94 to 8.75) on nine days, and skew 100 is worse than 80 on both. The floor itself is the owner's: if UP's L4 floor is meant to be 50,000, that is a config decision with this row as its evidence; until it moves, the gate's 9-day sample refuses the change. Artifacts out/windows/up-skew-{base,skew80,skew100}/f1_control.csv; the conditioning tape out/study/up-turnover-28d.csv. | pending |

| 2026-12-01 | The pre-deploy audit corrects two readings and stops one action. (1) The order venue is a global layer, not a per-seat one: /etc/toyquant/live.env owns RELAY_ORDER_VENUE/REST/LIVE, bootstrap_server.sh refuses those three names in live-<seat>.env, and start_seat.sh deletes any seat override and then rewrites the shared file to RELAY_ORDER_LIVE=1. The units load the shared file first and the seat file second, so an override would win -- the refusal is policy, not capability. Consequence: flipping the shared flag for NES flips every seat on the host, UP included; the safe path is a per-seat venue override (one change to the bootstrap's refusal and start_seat's reconciliation) or NES on its own host, not the shared file. (2) The pair is invalid at today's mark: at 12:56Z the production NES mark is 0.3339, and (19,70) peaks at 21 contracts = 70.12 USD > 70; the largest valid limit at that mark is 18, so the 16:00Z sequence now fetches the mark, runs check_params, and skips the profile rather than installing a pair derived at 0.3304. (3) The B5 comparison was read on the wrong line: closed_bps counts round trips only, so the passive wind-down's 3-contract residual close sits in settle_bps/settled_bps, not in the CE; on the settled basis the reduce-only exit is +3.07 bps better (7.46 against 4.39), the opposite of the -0.40 net bps median-difference reading, and the settle model charges 1.35 bps where the recorded market close is -7.67 bps, so the passive's settled total still flatters it. The next exit build is the two-stage one: passive at the touch for the first minutes, taker for the last 30-60 s. (4) The gate rule is static: .clinerules now forbids piping verify_l2.sh (the exit status is the command's own), after three piped-gate commits on the same day. | e3ef824 |

| 2026-12-01 | The order venue is per seat now: a production seat and a demo seat can share one host. The units already loaded live.env first and live-<seat>.env second (a later file wins); the block was policy in three scripts, and it is removed: bootstrap_server.sh now validates a seat's own RELAY_ORDER_VENUE/REST/LIVE -- a live seat must name all three (the shared file may be the other venue's), while a demo seat may name none and inherit -- instead of refusing the trio; start_seat.sh reads the seat's effective pair (seat file, then shared), refuses a simulated leg by name, and never rewrites the shared file (the old behaviour flipped every seat's venue at once); seat_probe.sh allows a consistent override and still refuses a venue whose host and live flag disagree; live-seat.env.example documents the three lines and the credential rule; seat_inventory.sh's self-test covers --facts reading a seat's own venue. The live page's seat table and route section say the same. Open: a seat on a different account also needs its key lines in its own file (later file wins; one key per account, one rotation); the 75 USD cushion or the mark-derived limit the owner suggested is not applied (the profile still reads (19,70), which the 0.3339 mark refuses, so the 16:00Z job skips it); the two-stage exit is the next build. | pending |

| 2026-12-01 | The NES enablement solves the pair at the apply instead of shipping one: the 70 USD budget stays, the limit follows the mark. The owner chose the dynamic form over a 75 USD cushion, because a cushion of +7 percent is exhausted by a 10-20 percent two-day move and the apply would fail again. deploy/install_profile.sh now fetches the venue's live mark (or takes TOYQUANT_PROFILE_MARK), reads the seat's RELAY_CONTRACT_SIZE, and rewrites the profile's inventory_limit to floor(cap / (mark * ctVal)) - (1 + extra_layers) * clip_contracts before the 0640 install and the reader's check; a mark that leaves no room refuses the install (never a negative or a stale limit). The self-test derives 58 contracts at 0.3339 from the example's 200 USD and one clip, and refuses a mark of 30. The committed (19,70) is an example of the pair: at 0.3339 the same profile installs 18, at 0.218 it installs 30. The 16:00Z job was re-armed as nes-deploy3 without its local check -- the host derives and refuses -- and prints the derivation line. Open: the enablement still needs the production permission/margin check and the seat's own venue trio; the two-stage exit is the next build. | pending |

| 2026-12-01 | Incident: the UP window's order channel died at 12:30Z and was recovered at 14:00Z; the cause was a name collision in the relay, not the strategy. The UP record carried 43,826 submissions, 0 fills, 0 cancels, 0 rejects -- the engine was writing into a relay whose order loop had crashed on the first venue answer: TypeError: unsupported operand type(s) for -: 'bytes' and 'int' at venue_relay.py:1295, because serve_venue_orders named both the socket read buffer and the outstanding-order counter pending, and the buffer (bytes) replaced the counter (int) that deliver decrements. Both relays (plain and nes) crashed at 12:30:03, on the first delivery. Fix eb87a5d: the buffer is buffer; the counter and the no-ack latch keep pending; the relay self-test passes. Deployed (deploy.yml 46661298177) and the plain pair restarted at 14:00:25 (the first start attempt lost a 30 s port race; systemd's second brought it up, which the health check counted as three transient failures) -- the record then read 46 orders / 46 cancels / 93 venue reports in its first two minutes, so the venue is answering again. The account is clean: the UP restart's [RECON] at=start position venue_units=0 ledger_units=0 status=ok, and the stopped NES seat's one-shot queries returned pending: rows=[], position: rows=[]. Found alongside: the NES seat was running on the 12:30 clock (the 10-seat-window.conf drop-in), not its 01:30-04:30 window, and was stopped; its start timer still fires at 12:30 tomorrow. Open: the relay should close the client socket when its order loop dies (the engine kept writing into a dead channel for 90 minutes; the transport saw the writes succeed); today's UP window is half-dead and its ledger row will read the 43,826 orphan submissions; the NES per-seat timer is the operator's drop-in; the fills' price/size are not in the record's report rows (0/0), so the ledger is the only place today's fills will show. | eb87a5d |

| 2026-12-01 | The UP floor is lowered to 50,000 on the owner's rule, the DSR is declared at N_eff = 2 and not flattered, and the per-seat venue override is live. (1) The floor test: on the live shape (12:30-15:30, clip 10, limit 50, cap 160, layers 1, 100 ms, the 28 days), the [50k, 1M) tape band read CE +13.13 (19 days, 14 positive, mean closed +15.57, t=+4.34) and its sub-band [50k, 500k) +17.96 (13 days, 11 positive, t=+4.94), while [500k, 1M) was not significant (6 days, t=+1.02, leave-one-out -2.61, one day 68 percent of the cell); the whole 28-day cell is +11.85 CE, 21 of 28, t=+4.98. The rule was 'negative or near zero -> lock 1M; otherwise lower to 500k or 50k'; the band is significantly positive and the low sub-band is the strong one, so the floor moves 1,000,000 -> 50,000 (config/liquidity_floors.json, with the caveat that the floor is compared to the venue's 24h series and the bands are the tapes'). (2) The DSR is declared honestly: the applied (19,70) skew-50 arm is DSR 0.877 at N_eff = 2 (the conditioned participation ratio), below 0.90; it is not reported at N = 1 (which would read 0.995 and be a lie), the status is candidate pool (positive expectation), and the plan is to let T grow to 35-40 active days rather than move the threshold -- with a manual decision if the screen starts killing on the threshold rather than on the number. (3) The per-seat venue override is live: bootstrap_server.sh validates instead of refusing a seat's RELAY_ORDER_VENUE/REST/LIVE, start_seat.sh reads the seat's own trio and never rewrites the shared file, and the deploy of 2026-12-01 (46661298177) shipped both -- so /etc/toyquant/live-nes.env can name the production trio and UP/NES stop sharing one order-venue switch. (4) The account is confirmed by the owner: UP and NES are both cross margin at 5x; the enablement's account-side check is cleared. | 6a254d8 |

| 2026-12-01 | Batch 0 item 3: a dirty close-out now locks the seat's next window. closeout_check.py gained a residual clause -- the ledger's residual_units and the recon's venue_units must both be zero -- and prints [CLOSEOUT] LOCK when that clause fails or the end-of-window recon is missing; window_closeout.sh turns that line into --ops lock --seat <seat>, which writes /var/lib/toyquant/locks/<seat>.dirty (new lock/unlock actions in the dispatcher, the workflow and the remote); liquidity_gate.py checks the lock first -- seat from the config's basename -- and skips the window with the lock's first line in the journal. The other failing clauses are still reported and mailed, but they are not a dirty venue: today's 43,826-submission window fails on the counts and must not lock tomorrow. Self-tests: the checker's carried-residual case, the gate's seat/lock cases. The bar: a fail with residual != 0 writes the lock and the next window skips; the operator flattens, verifies and unlocks. | pending |

| 2026-12-01 | Batch 0 items 4-5: the host's log ceilings were already in the bundle, and the NES seat now names its own window. The journald drop-in (deploy/journald/toyquant.conf, SystemMaxUse=500M, MaxRetentionSec=30day) and the logrotate rule (deploy/logrotate/toyquant, daily, 14 days, copytruncate) are installed by the bootstrap -- the plan proposed 2G/14day, but 2G is the distribution's 10-percent default on this 20 GB disk (the very thing the drop-in exists to escape), so the stricter 500M stays and the retention is bounded by it. The NES window moved off the shared 12:30 clock through the sanctioned writer: --ops seat --seat nes --key window_start,window_stop --value 01:30,04:30 rewrote live-nes.env (backup kept, the 23 settings of live-nes.yaml carried over untouched -- the flags re-read show inventory 100M, exposure 40, the old values), and the next deploy's bootstrap writes the two timer drop-ins from those lines. The template now documents the two keys. | pending |

| 2026-12-01 | Batch 1 item: the 42 GB tree has a content manifest, written in 2.4 s. data_inventory.py --write-manifest walks the tree it already classifies and writes one JSON line a file -- symbol, day, kind, bytes, mtime, fast_sha256 over the first and last 64 KB plus the size -- then prints the manifest's own hash. On the current root: 1,032 files, manifest_sha256 7e5ce95...5029, 2.4 s (the head/tail window is why it is seconds and not a half hour). The walk also named one real gap: UP 2026-11-27 has a depth archive and no tape (orphan-depth), so a sweep of that day would fail rather than silently shorten -- the recorded cells stop at 11-26 for that reason. Self-test: the manifest is one line a file and the hash is content-based (same bytes, same hash). Open: the report rows do not yet carry the manifest hash (a sweep-column change); the file is generated under out/study/, not committed. | pending |

| 2026-12-01 | Batch 1 item: the window cut is keyed by both bounds and carries its own span. okx_book_window.py now writes okx_<symbol>_<day>_<start>_<end>.jsonl and a <cut>.meta.json (symbol, day, both bounds, tick, the source archive's name/bytes/mtime, rows); okx_maker_baseline.py reads that meta and refuses a cut whose declared span is another window -- the reused-cache defect a name keyed by the start alone allowed -- while a legacy cut (old name, no meta) is still read with a printed warning so the warm 28/60-day caches are not re-cut. Verified on a fresh 1-minute cut: okx_ALLO-USDT-SWAP_2026-11-22_1459_1500.jsonl.meta.json reads 14:59-15:00, the ALLO archive and 744 rows; the self-test pins the legacy (no meta) and the declared-span cases, and the gate's sweep ran green (the gate's own cut dir kept its legacy cut and took the warning path). Open: the existing cuts stay legacy until re-cut; the report rows do not carry the manifest hash yet. | pending |

| 2026-12-01 | Batch 1 items: the L4 gate names its series and the health check stops reddening a recovered restart. The gate's row now carries source=venue_24h|venue_ticker|none: the hourly series is the primary, the order venue's own ticker volCcy24h is the fallback (the host has no tapes; the tape's last complete day is the lab-side derivation, not a host runtime source), and none means neither answered -- a floor compared against two series is a measurement whose basis a reader must see. deploy/check_health.sh now fails on Failed with result since the unit's own last start and on a restart loop (three or more Started lines in the window), while a single recovered restart prints warn instead of a failure: measured 14:00Z today, the first start raced the relay's port, systemd brought it up again, the current run was clean, and the old NRestarts != 0 rule read three failures. Self-tests: the gate's three source cases; check_deploy green. | pending |

| 2026-12-01 | Batch 1 complete except seat-activate: every sweep row now names the data it replayed. data_sha (twelve hex, after profile_hash) is the manifest's hash of the row's symbol and day entries -- the depth archive and the trade tape with their fast hashes -- so a row can be traced to the exact bytes; a tree without a manifest writes n/a. Verified on a fresh 1-minute ALLO row: profile_hash=3bfb53dabc5c data_sha=cf33910d22dd, the manifest's two lines for that day; the gate's sweep ran green with the new column. | pending |

| 2026-12-01 | Batch 1 complete: one command enables a seat through the read-only half and refuses a demo leg. tools/ops/seat_activate.sh runs the sequence: the live mark and the instrument's ctVal from the venue's public API, the limit solved from the cap, the new --ops account probe (the key's perm, the account level, the position mode, the USDT availBal/eq, the instrument's cross leverage -- read-only, ships okx_probe.py config), the cushion check (availBal >= 2 x cap), the couplings on the derived pair at the mark and the account's own equity, the seat's effective venue (refuses the demo host or RELAY_ORDER_LIVE != 1), then the profile install (the host derives again at its own mark), the preflight and the short seat probe; --dry-run stops before the install. It never writes the operator's venue trio or key. Dry run on NES: mark 0.3329, ctVal 10, cap 70, layers 1, clip 1 -> limit 19 contracts; the demo-account read answered perm=read_only,trade acctLv=2 posMode=net_mode availBal=494.23 eq=499.92; the same probe against the seat's own live=1 answered HTTP 401 -- the host's credential is the demo account's while the seat names the production venue, which is exactly the key/venue gap the operator's trio + production key must close. The probe ships with the action (okx_probe.py scp'd), and the seats read strips the log prefix. | pending |

| 2026-12-01 | Batch 2 item: the frozen L1 line is out of the default build. option(BUILD_LEGACY_L1 ... OFF) guards lines/legacy/l1_market_maker.h (1,285 lines) and the five L1 branches in strategy_factory.cpp; the default build accepts the names in app_config and refuses each with the legacy L1 line is not built; -DBUILD_LEGACY_L1=ON compiles them (the define is PUBLIC so the tests' link of toy_app sees it). The config header (l1_market_maker_config.h) and the L2 baseline makers stay in both builds. The two L1 tests (strategy_state_test, strategy_benchmark_test) are registered only when the line is built -- 38 of the 40 by default, all 40 with -DBUILD_LEGACY_L1=ON (measured 2026-12-01: the default gate ran red on both until they travelled with the option). The shipped binary is the default. | pending |

| 2026-12-01 | The day's live review: the window lost ninety minutes to the relay's crash and still closed up +1.35 USD; the close-out found three tool defects. Timeline: the 12:30Z start, the relay's order channel dead on the first answer (the pending name collision, fixed 668bd6b), the engine writing 43,826 unanswered submissions until the 14:00Z restart (the deploy 46661298177 + the pair), then the working session to 15:30Z. The ledger row: 3 sessions, 1,289 submissions, 1,243 cancels, 71 fills (70 maker, 1 taker), 564 contracts, vwap 0.235787, fees 0.267377, net +1.34862, residual 0, capture 4.06 ticks, equity 499.90, verdict PASS. The close-out read the record's own stats: RTT p50 174.4 ms / p90 272.8 / p99 423.8 (the config models 100 ms -- a latency calibration owed), fill rate 5.5 percent, post-only declines 1, the fills' fee 0.267. The check: 11 of 14, and all three missing clauses are tool defects, not venue ones: (1) sessions stated=3 measured=1 -- the restart truncated the record, so the ledger's session count and the record's cannot reconcile; (2) net_vs_gross_fees failed by 3e-6 -- the ledger's five-decimal rounding against a 3e-6 tolerance; (3) recon_equity_status missing -- the wrapper's logs ops.yml fetched the previous dispatch's seats table (which contains the words [RECON] at=end) instead of the tail-logs run, so the equity line never arrived (the position line it matched was the NES seat's). No lock was written: the residual and the venue's position were both zero, which is the lock's rule. The next work is the three tool fixes (the wrapper must name the run it reads, the tolerance must cover the ledger's rounding, the sessions clause needs the restarted-window semantics), the latency arm at 174 ms, and the enablement's production key (the seat-activate probe's 401). | pending |

| 2026-12-01 | The close-out's three defects are fixed, each with its own clause. (1) window_closeout.sh's journal fetch now requires the [RECON] at=end venue_equity_usd= line, not the bare [RECON] at=end the seats table also contains -- the wrong-run fetch that hid the equity recon is no longer accepted. (2) ROW_TOLERANCE/FEE_TOLERANCE move 3e-6 -> 1e-5, the ledger's five decimals: today's net failed by 3e-6 on rounding alone. (3) the sessions clause no longer measures against a hardcoded 1: a ledger that says more than one session reports the restart by name (the recorder truncates at a restart, so the record is a suffix and the per-session clauses reconcile the last one), and a single session passes. Self-test: the restarted row fails on sessions alone. | pending |

| 2026-12-01 | Batch 2 item: check_docs --render is the only writer of a marked block. It runs each block and rewrites that block's then: from what the run prints now -- the same launch the check makes, without the cache (a cached reading is what a stale then: already carries) -- and leaves a block alone, naming it, when the run cannot produce a field the then: names or a block's then: lines do not match its runs. A hand edit still fails the check, so the render is the only path that changes a block. Unit-tested on a temp document with a stubbed run: two blocks rewritten, a missing field refused with the block untouched. The render's own self-test is a follow-up: the check_docs carries none yet. | pending |

| 2026-12-01 | The dispatcher's wait followed "the newest run", and on a morning of back-to-back actions that answered with an hour-old one -- the 16:00Z deploy sequence's waits both read stale runs, so the profile ran against the code before the deploy that was still building and the preflight refused its own queue. dispatch_deploy.sh run now records the run id it dispatched (polls for the id that is not the pre-dispatch newest) in /tmp/tq/dispatch-<workflow>.id, and wait follows that id through runs/<id>; the newest-run loop stays as the fallback for a manual wait with no recorded dispatch. The 16:00Z job's actual order: the deploy (46686063838) succeeded, the profile (46686079310) failed because it ran against the pre-deploy code (the skew_limit/reduce_only_exit live keys did not exist there), the preflight never ran. The fixed dispatcher's first pass is the next read. The profile's own first live run then refused for the right reason with no evidence: install_profile: could not read NES-USDT-SWAP's mark -- the fetch's except Exception swallowed whether it was DNS, TLS, the venue or a timeout (2026-12-01 16:08Z). It now retries three times and prints the exception's type and message -- and the retry found the reason: HTTP 403 Forbidden, the venue's edge refusing a bare Python-urllib agent (the probe's own comment names 403 error code: 1010 for exactly this). The fetch now carries the browser User-Agent the other fetchers use. The dispatcher's id poll waits 180s (the run id took longer than 60s to appear at 16:19Z; the newest-run fallback found it). | pending |

| 2026-12-01 | Batch 2 item: a live page may not state a count the tree produces. The prose lint now flags N files, N lines, N live keys, N test binaries/executables, N milestones, N documents outside a checked block or the checked size row; the ROADMAP and the archive -- the log, whose numbers are history -- keep theirs, and the pattern is plural-only so a journal's "10 line above" is not a count. Five live pages named tools instead of numbers: docs/DATA.md's 249 files, docs/DESIGN_REVIEW.md's 40 test binaries (now stated as 38 by default plus the two L1 ones with -DBUILD_LEGACY_L1=ON -- the number had already drifted when the option landed), docs/MAINLINE.md's size sentence, docs/TOOLS.md's 50 live keys, and docs/architecture/03-coordinator-and-book.md's 1,261 lines. | pending |

| 2026-12-01 | Batch 2 item: the strategy config is split into Risk / Quote / Signal / counters. L2MarketMakerBaseConfig's 62 flat fields become four nested structs -- risk 14 (the position cap, the skew's comfort and retreat, the throttle, the wind-down and the exit), quote 26 (sizes, spreads, tick, refresh cadence, layers, the amend policy, the depth ladder, fees), signal 9 (the reference price and the flow guards) and counters 13 (the run's evidence) -- with each field's comment moved with it. Every use (config_.X, config_.base.X, base_config.X) and every aggregate in the factory and the tests became a nested designated initializer. The transform had to be comment-aware: an aggregate's comment may carry a comma, and a // inside an inline brace swallows the brace, so the rebuilt aggregates are multiline and the trailing comments (// three ticks at 0.5) survive. code and full green -- the replay output is byte-identical; the size table moves to 33,819 (app 11,030, strategy 2,528). | pending |

| 2026-12-01 | Batch 2's app-split prelude: the strategy mapping is one function, and the replay path stops ignoring four settings. run_replay_mode kept a stale copy of the 30-field StrategyFactoryConfig mapping: --skew-limit, --reduce-only-exit, --markout-cover and --flatten-band were never read there, so a replay that named them ran on the defaults while the live path honoured them (the live path's copy had them). Application::strategy_config(instrument, clock_ms) is now the one mapping, and the replay's millisecond clock is converted to the strategy's microseconds inside it (the deadline /1,000, the post timeout x1,000), which is the one difference the two runs have. code and full green: the replay output is byte-identical (the slices set none of the four); the size table moves to 33,773 (app 10,984). The class extraction -- the drivers, the close-out and the record -- is the next step. | pending |

| 2026-12-01 | The NES "401" was the probe, not the key, and the NES needs no key of its own. The --ops account probe ran sudo env RELAY_ORDER_LIVE=... probe without the seat's key: it carried none, fell back to its demo pair, and answered the demo account (or 401 once the seat's flag said live). The relay units load /etc/toyquant/live.env then /etc/toyquant/live-%i.env (a later file wins), and the shared file already holds the production key -- the UP seat filled 71 orders through it today. The remote's account branch now sources the same two files in the unit's order and passes the three TOYQUANT_* variables to the probe, so the account it reads is the account the relay reaches. | pending |

| 2026-12-01 | The NES's 401 was the seat's own demo key, and an unset-key action now removes it. The seat's live-nes.env named the demo pair; the units load /etc/toyquant/live.env then the seat's file, and a later file wins, so the seat's demo key overrode the shared production key -- which is why the UP seat filled 71 orders through that account while the NES's relay and every probe answered 401. --ops unset-key --seat nes (with a backup, TOYQUANT_* lines only) restores the fallback, so the seat uses the same key the UP does. Then --ops account --seat nes should read the production account instead of 401. | pending |

| 2026-12-01 | The account probe's last two defects, and the account it now reaches. After the seat's demo key was unset, --ops account --seat nes still answered 50105. Two reads in the remote's own branch were the cause, not the operator's file: the ssh user's sed cannot read the 0640 seat env, so live fell back to 0 and the probe sent the production key under the demo header (b85c8c2); with the header right the venue still refused, because the probe sourced the file through bash while a unit's EnvironmentFile= takes the value verbatim, $ and spaces included (2f98f37). The probe now reads the files itself, in the unit's order and with the later line winning, and a fresh --ops account --seat nes answers the production account (perm=read_only,trade, acctLv=2, net_mode, 5x cross on NES). The key, the passphrase and the venue were never the problem and nothing on the venue was changed; code green. | this commit |

| 2026-12-02 | D2 closes: PIEVERSE is refused on twenty-eight days, not on the retired three-tick ruler. The full-month cell (d2-pieverse-28d, 2026-10-30..11-26, 13:30-15:30Z, prorata 3-tick, 10 ms) reads 990 fills, closed median -0.85 bps [-6.00, +2.81], 8 of 28 positive, net -2.86, CE(0.02) -1.19, leave-one-out -1.18. The density the pre-screen rewarded (6.8/s) does not pay the fee at its own touch: the six admission clauses refuse it on the closed median, the positive-day share and CE together. PIEVERSE leaves the reserve; the seat keeps its one live instrument. | this commit | | 2026-12-02 | Batch 3 Stage 1-3: the parameter schema is the one declaration the runtime, the docs and the engine read. Stage 1 (c9a734f) added config/params_schema.yaml, 50 live keys with type/default/range/group/live_tunable, generated by params_schema_gen.py --write; check_params --schema proves every row against param_registry.json, live_config.FLAGS and the C++ AppConfig, and the three sources agree 50/50. Stage 2 (9bc1e43) moved live_config.py's nine hand-written structures (FLAGS, SWITCHES, POSITIONAL, REQUIRED, SETTABLE, AGENT_KEYS, OWNER_DELEGATED, WS_REFUSED, VENUE_KEYS) onto schema fields, with the generated flags table byte-identical (sha256 2cf480e2). Stage 3 (e5b7da3) generates the C++ parser from the schema in CMake, deletes 45 else if branches and 45 flag constants from app_config.cpp, and holds --help at 14,081 bytes with an empty diff, 443 argv cases with 0 failures, and full at 97947711…. | this commit |

| 2026-12-02 | A live window that stops quoting now says so while it is happening. The engine prints [HEARTBEAT] state=… quote_age_ms=… risk_pause=… position=… fills=… every 60 s in ws mode (3bf2019), from the counters the shutdown line already reads; replay is byte-identical. paused is "a cancel was requested and its terminal report never came back", the exact state of the 2026-12-02 NES order. The relay half landed the same day (dcfd0cf, 1080b6f): an accepted REST cancel is answered once with CANCELED <id> user and the private channel's echo is suppressed, because that channel is the connection that lost the message and froze the window for 65 minutes. | this commit |

| 2026-12-02 | The profile install reads the contract size the way the unit does. --ops profile --seat 1 refused because /etc/toyquant/live-1.env has no RELAY_CONTRACT_SIZE; the install now reads the seat file, then the shared file, then the venue's instrument table (15f2544), and the retry wrote /etc/toyquant/live-1.yaml at inventory_limit=440000000 derived at mark=0.2477 (ctVal=10). Seat 1's unit reads live.yaml, so that install was inert and the window still ran the committed 500,000,000; fat_finger_bps=200 was in force through --ops set-key on live.yaml. The target is corrected in the next row. | this commit |

| 2026-12-02 | Seat 1's profile goes to the file its unit reads, and the engine unit is why 44 contracts reads 440000000. install_profile.sh spelled live-$seat.* for every seat, so --ops profile --seat 1 wrote /etc/toyquant/live-1.yaml while toyquant-live.service reads /etc/toyquant/live.yaml: the derived limit was inert and the UP window would have run the committed 50 contracts, whose ladder peak at the recorded 0.2477 mark is 173.39 USD against the 160 budget. seat_yaml/seat_env now map seat 1 to the plain pair for both the contract-size read and the install target; the self-test installs seat 1 into a scratch live.yaml, refuses a live-1.yaml, and the code tier runs it (until now no tier ran the installer's self-test). The derived value is written to a private copy and installed from there: the in-place write of the scp'd profile failed EACCES on the host (2026-12-02) and would dirty a tracked profile on a local run, so the source is never rewritten and the self-test pins that. The number was never a unit error: one contract is ctVal x quantity_scale = 10 x 1e6 = 1e7 engine units, so inventory_limit=440000000 is 44 contracts, and floor(160 / (0.2477 x 10)) - (1 + 1) x 10 = 44 at a ladder peak of (44 + 20) x 10 x 0.2477 = 158.53 USD. | this commit |

| 2026-12-02 | The N-seat plan, registered: a seat must be routine or it does not scale. The evidence is the 2026-12-02 NES window: one unconfirmed cancel froze quoting for 65 minutes, and nothing in the system said so until the shutdown line. Three items, each with a bar: (1) heartbeat (3bf2019), [HEARTBEAT] every 60 s in ws mode, so one idle window is diagnosed from the last line alone -- done; (2) seat_day --seat X --day D, one PASS|SKIP|DIRTY reason= line from journal + order record + ledger, written to the ledger and used by the mail, so no routine check needs three --ops calls; (3) one manifest per seat (config/seats/<seat>.yaml: instrument, window, venue, profile, floor, ceiling, bar) rendered by one writer into env/unit/profile, so adding a seat is one file and one command and no file has two writers. | this commit |

| 2026-12-02 | The seat manifest is the single source a seat is authored from (Phase 1). config/seats/<seat>.yaml names what a seat is (instrument, profile, ceiling, floor, ports, contract/tick/lot, window, venue, bar); config/account_policy.yaml holds the account's two guards. tools/gate/check_seats.py reconciles the mirror against the profiles and liquidity_floors.json -- the ceiling declared twice must be the same number, no two seats share a port, sum(ceiling) stays inside the budget -- and its self-test runs in code. seat_files.py's manifest mode renders live-<seat>.yaml from the profile (the record prefix overlaid, the limit left for install_profile.sh to derive) and .env from the facts; --ops seat without --key/--value is the manifest mode. SEAT_1_PORTS is gone: a new seat's port collision is the host's live*.env, not two magic numbers, and the up manifest now renders. The writer's self-test was one no tier invoked, so code runs it. | this commit |

| 2026-12-02 | The account ceiling is a policy, not a template number (Phase 2). config/account_policy.yaml: max_total_ceiling_usd: 750 (write-time -- seat_files.py refuses a seat or a sum above it) and max_ceiling_to_equity: 1.5 (run-time -- seat_inventory.sh refuses, pre-open, when sum(ceiling)/equity exceeds it, rather than only printing the ratio). The policy ships with the deploy; the host read 0.46x <= 1.5x after it landed. | this commit |

| 2026-12-02 | One verdict per seat-day (Phase 3, first slice). tools/ops/seat_day.py reuses closeout_check.py's reconciliation and prints one line: PASS (every clause reconciled), DIRTY (a break, named), UNKNOWN (a hole), or SKIP (the window never opened -- the L4 verdict=skip, the calendar, the dirty lock, or no session lines). The self-test pins each and code runs it. The ledger write + mail hand-off, and the bar-gates-RELAY_ORDER_LIVE check, remain. | this commit |

| 2026-12-02 | The Google Drive lane's first pieces: one download per venue-wide archive, a queue post-hook, and the rclone wrapper. fetch_okx_trades.py --symbol takes a comma list and slices every symbol from one allswap-trades-<day>.zip (~600 MB) -- the four D3 survivors no longer re-download the same 28 archives four times (~8 h to ~2 h). jobq gains --post-hook "<command>", run detached after a successful job (a failed job skips it). tools/ops/cloud_sync.sh wraps copy/sync with the pacer flags that stopped gdrive's rateLimitExceeded (a bare four-transfer run sat 3h25m). Both self-tests run in code. | this commit |

| 2026-12-02 | The lake's second half: the close's cloud tail, the hydrate, and the scratch root. tools/ops/eod_sync.sh (scheduled daily at 04:40Z/15:40Z) syncs the generated record -- the ledger, the close-out verdicts, the study CSVs -- to gdrive:ToyQuant/ops and regenerates the content-addressed data manifest to gdrive:ToyQuant/manifest; tools/ops/hydrate.sh pulls the raw layer's missing archives back before a replay (rclone copy skips what is already here). Both ride cloud_sync.sh's pacer flags. The trade fetch's venue-wide staging moved off /tmp onto the third generated root TQ_TMP_DIR (default tmp/ beside data/ and out/, ~/tq-roots/tmp here). | this commit |

| 2026-12-02 | seat_day's verdict is durable. The PASS|SKIP|DIRTY|UNKNOWN line now appends (--write) to a seat-day ledger, one line per seat-day, so the mail and the EOD sync read a file rather than a transcript. The mail hand-off and the bar-gates-RELAY_ORDER_LIVE check remain, gated on the six-clause verdicts. | this commit |

| 2026-12-02 | The lake's floor and the fetch's retry. tools/ops/disk_guard.sh warns and exits nonzero when the data SSD has less than 30 GB free and names the audited eviction (data_inventory --prune old --keep-days 60), closing the Google Drive lane; fetch_okx_trades.py retries a failed day up to three times with a backoff, for the venue's transient network resets (measured 2026-12-02: ~8 of 28 days), so a flaky day lands in one pass. | this commit |

| 2026-12-03 | The Sim-to-Real deviation report, and its first number. tools/study/sim_vs_real.py + sim_vs_real_daily.py replay a live window with the record's own p50 latency and the seat profile's geometry, then print the signed gap -- fill_rate and net_usd, sim minus live, so the gap is the queue model's error rather than the venue's. The first real run (UP 2026-12-01, prorata 3-tick, 174.4 ms) reads fill_rate sim=0.026 live=0.055 d=-0.029, net_usd sim=0.70 live=1.35 d=-0.65: the replay over-submits (7,727 against 1,289) and under-fills, which is the model error to calibrate. Caveat: that window restarted twice (3 sessions), so the record is the last session's suffix against a full-window replay. | this commit |

| 2026-12-03 | D3 closes: the atom scan's four survivors all fail the six-clause admission, so the expansion is not admitted. The 28-day cells (d3-<S>-28d, 2026-10-30..11-26, prorata 3-tick, 10 ms) are judged by window_admission.py against the UP baseline (b8-up-1230-1530, 100 ms: median +19.05, CE +13.55, 24 of 28 positive, 50 fills): 0 pass, 4 fail. MOVE fills 64.5, 13/28 positive (46.4%), CE -2.52, closed total -45.77; AT fills 12.0 (19/28 thin), 13/27 positive, CE -5.63, closed total -106.95; ONE fills 1082.0, 0/28 positive, CE -1.89, closed total -52.72; SLX fills 17.5 (18/28 thin), 13/28 positive, CE -1.64, closed total -19.03. All four have negative CE and under-half positive share and fail the tail/spread clauses. The candidates ran at 10 ms against the 100 ms baseline, so the loss is not a latency artifact. Not admitted; not re-queued. | this commit |

| 2026-12-03 | --max-spread-ticks=4 gates the just-widened book, and the paired check refutes the aggregate gain. The fill-level spread slice showed UP's 4+ tick fills resolve negative (markout_net 5s -0.0099) against the 3-tick paid fills (+0.0038), so a quote-time gate that skips quoting while the touch is at least 4 ticks wide was built (--max-spread-ticks, the symmetric twin of min_spread_ticks) and run with the bar registered first (CE and markout_net 5s up, median not below control, fills within tolerance). The aggregate passed: control CE 9.22 / closed +15.61 / 23-of-28; gated CE 11.36 / closed +17.70 / 24-of-28, fills unchanged (36), markout_net 5s +0.63 -> +1.08, 4+ tick fills 222 -> 192. The paired per-day check then refuted it: the day-by-day closed difference (gated minus control) reads median +0.00, 8 improved / 8 worsened / 12 tied, bootstrap 95% CI [-1.88, +5.57] (contains zero), paired t 0.88, sign test p 0.60 -- the +2.14 CE is a right-skew summary artifact (a few big wins, e.g. 11-06 +36.1 and 11-21 +17.6, offset by a few big losses, e.g. 11-25 -21.5 and 11-18 -17.2), because the gate also skips quotes placed narrow and filled after the book reverted. The mechanism is real but the PnL effect is a coin flip, so the flag does not become a seat default; it stays an available lever. The lesson carried forward: the aggregate CE gain is gamed by a right skew, and the paired per-day difference is the honest check. | this commit | | 2026-12-03 | NES is pulled from live (owner decision): the seat is archived and its reopen is gated on Stage 2. NES classifies informed-flow (5s markout_net -6.54, deep negative adverse selection) and its front/back 30-day structure is a regime jump (dead month 4 fills vs live month 53 fills), not a stable property -- the symmetric passive maker loses to the informed flow. The owner sets live=0 (UP stays live=1); the reopen condition is wired to the OFI/micro-price single-sided bias (Stage 2) landing, at which point NES is re-tested, not auto-re-admitted. The two NES-affected scheduled timers (the NES open inspection and the relay restart guard) are withdrawn. | this commit | | 2026-12-03 | The inventory hold-timer is refused: compressing the holding time cuts the profit, not the risk. --max-hold-seconds (10/30/90s, hold-skew 2 ticks) doubles the fills (36 -> ~74) but halves the closed median (+15.61 -> +5.5..+6.7) and worsens the tail (worst_x 2.74x -> 4.3..5.3x), failing the bar (tail improves, median not below control) on all three. The closing-side walk trades capture for turnover -- the same refusal the close-side and wind-down levers measured -- because UP's carry is the profit (the afternoon drift), not a risk to compress. The lever stays off. | this commit | | 2026-12-03 | The candidate pool is tiered with reopen conditions, not deleted. 一级 (physically unworkable: point spread < 2 bps fee, or dead-water) -- the mainstream and dead coins, never downloaded, stay out; reopen = fee <= 1 bps or a new mechanism. 二级 (mechanism mismatch: informed-flow / slow-trend, six-clause fail) -- MOVE/AT/ONE/SLX (D3, 0/4), NES (informed-flow, 5s markout -6.54, live=0), and PIEVERSE (28d CE -1.19, 8/28 positive); reopen = Stage 2 OFI/micro-price single-sided bias lands, then re-test (not auto-admit). 三级 (borderline CE, other clauses pass) -- empty: no candidate passes the first five clauses and fails only the CE. The data files are not deleted (data/ is input); a tier is a recorded decision with a reopen trigger. | this commit |

| 2026-12-03 | The new-listing bonus window is archived: the local data predates no listing. OKX listTime against the local archives shows the only new-ish USDT perps are DGAI (listed 2026-09-03), CT (09-30), DNA (10-16), whose first 2-4 weeks all fall before the local data start (10-30; CT 10-20); the rest (MOVE 2024-12-09, AT 2025-10-30, SLX 2026-06-01, GRVT 2026-07-30, ONE 2024-02, SSV 2023-11) are not new listings. The 10-30..11-26 slice is already their 2-8 weeks, past the bonus period, so the window cannot be measured from local data. Archived; reopen = a real-time new-listing recorder starts capturing the first weeks. No 09-10 history is fetched. | this commit |

| 2026-12-03 | The strategy research line is closed: ten hypotheses falsified, UP is the only supported config. The symmetric micro-price maker (active_l2) on UP 12:30-15:30Z is the single config that survives the 2 bps maker / 5 bps taker fee wall: the atom-scan expansion (D3, 0/4), the max-spread gate (paired check refuted the aggregate gain), the window grid (midday + evening + 06:30 slots failed), the hold-timer (refused), the inventory skew (median below control), the single-sided bias (depth_imbalance and trade_imbalance both fail, filling 2.8-4.3x more and turning the markout adversarial), the funding settlement windows (thin + informed-flow), the new-listing window (data predates no listing), and the taker burst momentum (raw forward return ~0, the flow is a lagging signal). The non-market-making line (taker momentum + maker carry + funding basis) is not reopened: the carry is the maker's own afternoon drift. The research effort switches to UP live ops -- a daily sim_vs_real reconciliation against the 100 ms replay, and clip/max_pos scaling within the 750 USD pool, both without new strategy code. | this commit |

| 2026-12-03 | UP scaling: the CE peak is 15/150, the owner targets 20/200 for the higher absolute return. The three-curve intersection: CE peaks at 15/150 (+13.37), while 20/200 is +13.02 with more fills (93 vs 79.5) and a higher median USD (+1.66 vs +1.55); the close_cost at 100-200 contracts is ~18-21 bps; Q_kill ~318 / Q_cap ~319 contracts sit ~1.6x above the 200 cap. The seat switches clip 10 -> 20 + cap 100 -> 200 + kill_switch ~50 USD after the day's reconciliation. | this commit |

The next iteration (registered 2026-12-01)

The question. The NES seat's first live window traded nothing for one named reason -- the venue refused fifteen of sixteen placements with sCode=51006, a price outside its ±2% band -- and the record that would have said at what price is now durable (1433c47 flushes it row by row, ab9c4c0 gives the probe a reader, c3cbaf6 gives it the strategy's counters). The owner's list of what is left is sixteen items across acceptance, NES's calibration, the tree and expansion. Which of them can be answered with the tree and the data as they stand, which are already closed, and which rest on a premise this tree contradicts?

Closed, and therefore not re-proposed. The L4 gate is built (797ebf7: tools/live/liquidity_gate.py with its three exit codes, check_deploy's gate_condition rule and its self-test); what is open is the line on the unit and the value of the floor, not the tool. The halt has a bps form (--pause-bps-per-second, in live_config.py and in OWNER_DELEGATED); the brake does not, and that is a separate item. check_params.py's four couplings and the 48-of-48 key registry are slice 0. The pre-screen's capture criterion was corrected on 2026-11-30 -- a distance-dependent capture ranks and never refuses -- so PIEVERSE's 0.96 at three ticks is not a verdict. And NES's own-hours sigma was measured once this session (window_sigma.py --start 01:00 --end 04:30 --cap-usd 40, days=27, 2026-11-07 named and skipped for too few prints); it is in .handoff.md and not pinned, which is the first cut of block B.

block item -- and the bar that closes it what exists now
A1 UP's 2026-11-30 close, read through a tool. --ops window for the ledger row, then --ops record for the day -- not the 12:39Z slice. Bar: one row whose residual, local_us round-trip p50/p95/p99, post-only split and fee/gross/net decomposition reconcile against each other the close was 15:30Z and its ledger 15:35Z; out/runtime/record-20261130-session.csv is a 12:39Z snapshot (209 rows, 2 fills, ends 12:36:52)
A2 The L4 gate on the units. ExecCondition= on toyquant-live.service and toyquant-live@.service, with the floor's value taken from block B1. Bar: check_deploy green with the line present, and one off-window read showing a closed market leaves the unit inactive and not failed the gate and the rule; no unit carries the line; the tool's examples' 8000000 is a placeholder
A3 The runner starts itself. jobq add with no runner alive starts one. Bar: a row enqueued while nothing runs leaves pending inside a second, and stop still stops the runner exits when the queue empties, by design; tools/ops/jobq.sh has no pgrep
A4 Which venue a seat dials. The probe prints the venue and the two endpoints it used. Bar: a probe whose env names one venue and whose config names the other is refused by name the venue is an env fact (RELAY_ORDER_VENUE); --ops probe-venue reads the wire; deploy/seat_probe.sh has no venue= argument
B1 The floor's tapes. nes-turnover-tape and nes-env-60d re-registered with the command form fixed (both died on python3 -c and on bash against a .py). Bar: a per-seat USD floor with its kind named -- physical, analytic, an owner's boundary or a power requirement both rows are done(1)/done(2); the 60 days are on disk
B2 NES's own-hours sigma, pinned. Bar: a marked block in this page re-deriving the median, p95 and L_noise over 01:00-04:30Z on the 28 days measured once (days=27, one day refused by the tool's own print floor); not pinned
B3 The ceiling, from the sigma and the brake -- decided 2026-12-01 as the pair (inventory_limit=30, max_exposure_usd=70). Bar: the largest Cap_eff whose k at L_noise = 2 * Cap_eff * sigma_p95 still clears the registered k = 2, with the brake at beta_eq * E, and check_params refusing anything above it decided: 30 contracts plus the resting clip is 31 contracts = 67.58 USD at 0.218, the stop band is [13.55, 24.93] -- the applied 24.9 sits 11.35 above the noise floor where (40, 90) left 6.98 -- and the price may rise 3.58 percent before the overshoot invariant trips where (40, 90) left 0.69. 30 does not clip the measured curve -- clip 1 peaked at 25 contracts over the 28 days, so the ladder's CE transfers. 124.2 is not a file: 57 + 1 contracts reads a 25.35 noise floor against the 24.93 clamp, and 56 leaves 0.01. 80 contracts has no legal stop (35.40 against 24.93). The host still reads 40 USD / 10 contracts until B6 applies the pair
B4 The 28-day replay in NES's hours, and its DSR -- measured 2026-12-01 at the locked window and it fails. Bar: significance.py at the registered N_eff, a number of its own -- the 13:30Z window's cannot be inherited clip=1 at 01:30-04:30Z reads SR=0.362 SE=0.139 DSR=0.721 fail at the registered N_eff=8 (SR0=0.281), pinned in the B4 section below; Cap is a constant divisor and cancels in stage one, so no ceiling value moves it. The 01:30-04:30Z session stays a test, not an admission
B5 The clip ladder and the 04:30 exit. Two or three rungs inside the B3 ceiling, and a reduce-only wind-down instead of a market close. Bar: CE per rung and the close's cost in bps of notional at the touch the clip half is closed 2026-12-01: 1 contract is the paying rung (CE +8.20, 36 fills, 21 of 28) and is confirmed as the live clip; the 04:30 reduce-only exit is still open -- close_cost.py reads the market exit (10 contracts -7.67 bps, 50 contracts -11.55 at 04:30), and a reduce-only policy is a build rather than a measurement
B6 The profile, and the timer last. profiles/nes_v1.yaml through check_params, then the seat's timers enabled. Bar: the four couplings pass on the file, and the timer is the last thing switched on profiles/ carries only up_w50b_v1.yaml; see the schedule gap below
C1 Cut 4: the data roots. TQ_DATA_DIR and TQ_OUT_DIR behind one resolver, with the 55 GB of generated material left outside the source tree. Bar: every recorded row re-derives with both roots pointed elsewhere, and a replay hash is unchanged 71 readers resolve a data/ or out/ path as a string; the resolver exists in both languages and both halves' self-tests run in the code tier, and twenty-three of the 71 are migrated (tools/export/bundle.py, tools/export/push_windows.sh, tools/ops/jobq.sh's queue state, tools/ops/dispatch_deploy.sh's saved series, tools/live/trace_order.sh and tools/live/resume_live.sh's tapes, and fourteen tools/study readers -- the change log names them), so the two variables exist in tools/ now. soak.sh needs no change (it names no data/ path) and live_config.py's data/runtime/ is the seat's own, moving only with the deploy's layout. The bar's first half is proved: with both roots pointed outside the checkout (symlinks in /tmp/tq/roots), verify_l2.sh full reads tier2 OK -- the reference hash in tests/fixtures/l2_full_ref.sha256 is unchanged -- and the whole docs set re-derives docs OK, so every recorded row is a hit on the moved roots; the physical relocation is done: data/ and out/ now live outside the checkout, named by TQ_DATA_DIR and TQ_OUT_DIR, with the build tree deliberately kept inside; a block's own data/ and out/ arguments are rewritten onto the resolved roots before it runs (check_docs._mapped), which is what the ten mismatches of the first attempt were missing. verify_l2.sh full reads tier2 OK on the moved roots and the whole docs set reads docs OK
C2 Slice 1: the profile drives the host, and the halt moves to bps. Bar: one --profile dispatch sets the file the unit reads, and the halt's number carries in bps/s across two instruments without the pause count exploding on one and vanishing on the other pause_bps_per_second is built and delegated; the profile-driven dispatch is not
C3 Slices 2-3: the whitelist derived from the registry, a start-time config refusal, and the trial book. Bar: live_config.py's allowlist is generated from config/param_registry.json, the binary refuses an unknown key before it trades (the flag is not built; it is named validate-config here and nowhere else until it exists), and experiments.jsonl yields a real N_eff slice 0 plus the trial book's read side: significance.py --ledger reads one JSON object a line naming a series, refuses a row that names none, and takes N_eff from what was actually tried (3 distinct series, effective N=3.0 on a three-row smoke). the writer's column exists too: every sweep row carries profile_hash, twelve hex characters over its resolved flag shape, so the book is one grep over the cells, and significance.py --book-out writes it: one row per distinct hash, a duplicate hash counted once, a cell without the column refused by name. The same audit found a defect: two series in one directory shared the directory's label and collapsed to one trial (1 distinct series for two files), which lowers N and raises every DSR -- the label now falls back to the file's stem, measured as 2 distinct series, effective N=2.0. no start-time refusal yet. The allowlist clause is closed as an agreement check, not a generation: check_params.authority_problems holds AGENT_TUNABLE to the tool's AGENT_KEYS, a settable OWNER_ONLY to OWNER_DELEGATED, keeps a SYSTEM key out of SETTABLE, and refuses a settable key the registry does not classify -- all four measured green (48 keys, 0 uncovered). Generating the list from the registry was the card's wording and is the weaker design: a key written down as AGENT_TUNABLE would become writable by being written down once, which is the failure live_config.py's own comment records (a key added later is denied until someone decides)
C4 Cuts 2, 3 and 5: the orphan count, tq <verb>, and the flag table rendered from the registry. Each bar is registered in "The tree's four lifetimes" above that card's counts (31 orphans, 71 readers); the entry point's first verb exists: tools/ops/tq.sh status prints the tree's commit beside the handoff's, the queue, the two roots, the registry's coverage and whether the live template still reads as a config, in one screen (self-test pins the six sections and an unknown verb refused by name); no tq record|audit|deploy|compute yet, and docs/L2_FLAGS.md is written rather than rendered
D1 The derived density floor. A pre-screen floor in contracts a second, sized as a power requirement from the five symbols' measured capture rather than chosen the criterion was corrected on 2026-11-30; the five candidates' densities are measured (PIEVERSE 6.8/s, the rest 0.08-1.09)
D2 PIEVERSE, 28 days. Bar: the six admission clauses and CE at its own touch, where it captures 2.45 bps against a 2.00 fee before adverse selection refused at three ticks (0.96) by a criterion this tree has since corrected; the row is registered
D3 The next batch of candidates refused on 28 days (2026-12-03): MOVE/AT/ONE/SLX all fail the six clauses against the UP baseline -- negative CE and under-half positive share, tail/spread failed -- so the atom scan's expansion is not admitted; the row is registered

B2, pinned: the sigma over NES's own hours (registered 2026-12-01)

B2's bar was "a marked block in this page re-deriving the median, p95 and L_noise over 01:00-04:30Z on the 28 days". It is measured once below, on the 27 days the tape can carry, and the one it cannot is named rather than zeroed: 2026-11-07 printed 104 times, under half the window's minutes, so the tool reports it and leaves it out of the aggregates. The windows are cut on the UTC clock the seat will run.

What the block says: ordinary movement inside NES's own three and a half hours has a median 3.745% and a 95th-percentile 12.145% three-hour sigma, so a fully-loaded 40 USD Cap_eff can lose 9.72 USD to a two-sigma move, and 12.14 at k=2.5. Read against the registered 24.9 USD survival line that is k ~ 5.1 at this ceiling -- the band is wide, not tight, and that is the fact B3 computes the ceiling from rather than a number quoted here: B3's bar is the largest Cap_eff whose k at L_noise = 2 * Cap_eff * sigma_p95 still clears 2, and 40 USD is where the seat sits today (--ops seats), not where this measurement puts it.

The NES window boundary, pre-registered (2026-12-01)

01:00-04:30Z was picked from the half-hour table by eye. The tool below is the same one that moved seat 1 from 13:30-15:30 to 12:30-15:30: the boundary is chosen on physical quantities before any P&L, the candidates are registered before the run, and the comparison is a risk-adjusted dollar figure rather than a bps number that ignores the ceiling each window allows.

Step one, the pre-screen (no backtest, so no DSR penalty). Four candidates, each a natural boundary of the same morning: the registered 3.5 hours, two 3-hour cuts, and the 2.5-hour core. The half-spread is flat across all of them (5.4-5.8 bps a bucket), so the boundary does not pay in spread; it pays in two other currencies:

window hours p95 sigma Cap_eff at k=2 close 50 at the end weakest bucket
01:00-04:30 (registered) 3.5 12.145% 102.5 -11.55 bps (04:30) 01:30 / 03:30, 0.47 trades/s
01:00-04:00 3.0 11.332% 109.9 -7.25 bps (04:00) 01:30, 0.47
01:30-04:30 3.0 10.023% 124.2 -11.55 bps (04:30) 03:30, 0.47
02:00-04:30 2.5 8.162% 152.5 -11.55 bps (04:30) 03:30, 0.47

The sigma is window_sigma.py over the same 28 days at --cap-usd 102.5 (the 3.5-hour cap that clears k=2 against the 24.9 line); Cap_eff is 24.9 / (2 * sigma_p95), so a shorter window buys a larger legal position: 102.5 to 152.5 USD, a 49 percent rise for the 2.5-hour cut. The close is close_cost.py on 2026-11-26, the live day: selling 50 at 04:00 costs 7.25 bps against 11.55 at 04:30, so the last half-hour is the expensive one to leave from -- and the 01:00 bucket is the densest of the morning (0.748 trades/s), so the two 3-hour cuts are not equivalent: one drops the strongest thirty minutes, the other the most expensive thirty.

Step two, the bar, registered before the run. The four arms are the same cell with only --start/--end changed (--symbol NES-USDT-SWAP --tick 0.0001 --latency-us=100000 --pause-bps=31.6, the 28 days, f1_control), so the per-window ceiling ratio and the clip are held constant and a day-sample is shared. The verdict is not the closed bps: it is closed_bps x Cap_eff -- the dollars the same account could earn at the largest position that window's own sigma permits -- with CE as the tie-breaker, and a window whose arm is not positive on the same 20-of-28 days fails regardless. The four arms, read (2026-12-01 19:2xZ). Same cell, only the bounds moved, so the comparison is the windows and not the configuration:

window closed bps CE Cap_eff closed x Cap, USD CE x Cap, USD positive
01:00-04:30 (registered) 9.14 5.13 102.5 0.094 0.053 20 of 28
01:00-04:00 5.39 4.74 109.9 0.059 0.052 20 of 28
01:30-04:30 8.23 4.84 124.2 0.102 0.060 21 of 28
02:00-04:30 7.63 0.50 152.5 0.116 0.008 20 of 28

The owner locked 01:30-04:30 on 2026-12-01, and the pin above is the chosen window at its own ceiling. Cap_eff 124.2 USD is the largest legal position that window's 10.023 percent p95 sigma allows against the 24.9 survival line, so the block reads L_noise(k=2)=24.90 exactly -- the ceiling is the point where k=2 meets the line, not a number chosen beside it. The two other arms are rejected with their reasons: 02:00-04:30 wins the raw closed x Cap but its CE is 0.50, a tenth of the others, which is a tail the metric was meant to price and did not; 01:00-04:00 loses 40 percent of its closed bps to buy 4.3 bps of cheaper exit, because the 04:00-04:30 half-hour is where the inventory mean-reverts. A rule is registered with it, before the next such screen: an arm whose CE is under half the baseline's is refused regardless of its closed x Cap, so a tail cannot win a window again.

And the bar does not settle it, which is the finding. The primary metric -- closed x Cap_eff -- names 02:00-04:30 (0.116 against 0.102), and its 152.5 ceiling is the largest the sigma arithmetic allows. But its CE is 0.50, a tenth of every other arm's 4.7-5.1: the 2.5-hour core keeps the margin and loses the tail, so the metric the ceiling was supposed to reward collapses once the tail is priced, and CE x Cap puts it last (0.008). The bar called CE a tie-breaker; a tenfold gap is not a tie, so the rule as written has two readings at exactly the decision it exists for. It is not resolved here by choosing the friendlier reading: the two orderings are in the table, the artifact rows are the four out/windows/nes-win-*/f1_control.csv, and the choice is the owner's -- take 02:00-04:30 on the written primary metric, or 01:30-04:30 on the risk-adjusted one (which is also the arm that improves on the registered window on both of the columns that survive the ceiling: closed 8.23 against 9.14 is lower, but the legal position is 21 percent larger). What neither arm escapes: the last half-hour is the expensive one to leave from (04:00 closes 4.3 bps cheaper at 50 contracts), so 01:00-04:00 pays the 4.3 for a 7 percent larger ceiling and loses about 40 percent of its closed bps -- the boundary that looked obvious in the pre-screen is the worst arm in the run.

No arm may be re-cut by half an hour after its number is read; a boundary that loses here is closed, and the winner is frozen into profiles/nes_v1.yaml and the seat's timers in one change.

What the tree contradicts in the list, and what changes with it.

  • The seats share one clock. deploy/toyquant-window-start@.timer is OnCalendar=*-*-* 13:30:00 UTC and window-stop@.timer is 15:32, both templated over %i, so "NES is already offset to 01:00-04:30Z" is a decision the tree cannot express today. A per-seat schedule is a cut of its own -- a seat-named timer, or a template that reads the seat's hours from its own environment -- and it comes before B6's "enable the timer". Until it lands, tomorrow's 13:30 starts the NES seat inside UP's window, at a 40 USD ceiling, on an instrument whose strategy has not once quoted.
  • Two different brakes. The halt (pause_ticks_per_second -> pause_bps_per_second) has both forms and the parser refuses a line that names both; the kill switch is kill_switch_loss_usd, a USD number with no dimensionless form and no start-time refusal when L_noise > L_survival. So "switch the brake from ticks to bps" is C2 for the halt and a separate cut for the kill switch, and neither is the item the other is.
  • The runner exiting on an empty queue is the design. It is what keeps the queue's state in out/jobs/ rather than in a process, and why a reboot costs a log and not a queue. What the list wants is therefore "start one when a row is added" (A3), not a keepalive.
  • 50 to 60 contracts is the edge, not a target. At NES's own hours the input is the measured sigma_p95: L_noise = 2 * Cap_eff * sigma_p95 against L_survival = beta_eq * E. A 50-contract ceiling is about 100 USD on this instrument, which is the size at which k = 2 meets the survival line; 60 would sit outside it. B3 has now computed it and the file is the smaller pair (30, 70): 31 contracts of peak is 67.58 USD, the stop sits 11.35 above the noise floor where (40, 90) left 6.98, and the price may rise 3.58 percent before the overshoot trips. The 124.2 maximum is maximal only for a position with no resting clip behind it: at 57 + 1 the noise floor 25.35 crosses 24.93.
  • profiles/nes_v1.yaml does not exist, so B6 creates it rather than edits it -- and a window is a restriction written before measurement, so B4's 28 days have to be measured inside 01:00-04:30Z rather than inherited from the 13:30 ones.

What is not in this card. No ceiling, window or k is moved to make a number look better; the floor is not chosen before its tape; the seat's timer is not switched on before B4's own DSR exists; and Cut 4 is not begun in the hour before a window. The ceiling B3 proposed is taken: the pair (30, 70) is recorded in the card above with its arithmetic, and the host files still read 40 USD until B6 applies it. What remains the owner's is the units' 13:30 state until the per-seat schedule exists -- the only decision this card still names rather than takes.

B4, measured: the 28-day DSR at the locked window (2026-12-01)

B4's bar was "significance.py at the registered N_eff, a number of its own". It is measured on the candidate the ladder closed -- clip = 1 inside 01:30-04:30Z, the 28 days -- against the live window's series, and it fails:

series T SR/day skew kurt SE DSR at N_eff=8 verdict
nes-ladder-size1 (clip=1, 01:30-04:30Z) 28 0.362 1.73 5.51 0.139 0.721 fail
b2-1330-1530 (the live window, for scale) 28 0.255 -1.30 6.12 0.229 0.456 fail

The command is python3 tools/study/significance.py --series out/windows/nes-ladder-size1/f1_control.csv --baseline out/windows/b2-1330-1530/f1_control.csv --trials 8 --alpha 0.10. The bar is DSR > 1 - alpha at the registered alpha = 0.10 and N_eff = 8, with SR0 = 0.281 the hurdle docs/METHODOLOGY_SCREENING.md measures over the 53-series set -- so 0.721 is 0.18 short, and it is short on the series rather than on the count. Two readings guard the row: at --trials 1 the same series reads 0.995, pass, and that is exactly the count the methodology page refuses, so the verdict is taken at the measured N and not at a chosen one; and the ceiling cannot move it -- Cap is a constant divisor and cancels in stage one, and the measured peak (25 contracts) sits under every candidate ceiling -- so the pair decided above is a risk decision and not a DSR attempt. The 0.356 quoted in earlier notes is a different row: nes-ownhours-28d reproduces as SR 0.203 / SE 0.210 / DSR 0.356, and it is not this window's.

The seat stays a test. A live session at 21:30-23:30 HKT inside a DSR of 0.721 is not an admission, and what would revisit it is a cell that raises SR: the clip ladder has spent the size lever (one contract is the best CE of the four rungs), so the revisit is a hold, a window or a different instrument -- not another ceiling.

For an AI reviewing this plan

Read this section, then the Design Review and Architecture. Review it against the goal above: evidence that stays true, produced by a bounded instrument, not a production system. Check for scope creep, missing technical coverage, duplicate documents, a clear stop line, and any deferred item written as permanent. Do not propose production features unless they buy a concrete project improvement.

The studies behind the answers

The record of studies that have already been run -- the CME calendar, the large aggressive prints, the stale quote, the options lines, lead-lag, the funding extreme, the venues that fit a personal user, the carry line's gates, and the plan from a positive window to a running system -- is The studies under docs/archive/.

Nothing was deleted: a study that closed a line is the evidence for the closure, and the ones that did not close anything are the reason nobody has to run them again. It is out of this document because the plan is short by design and a record of finished research is not a plan.

Read it when you want to know how a line was closed or why a venue was rejected. Read this document when you want to know what is still open.

Deliberately not planned

  • Order-by-order (L3) data. The bounds experiment shows the conclusions do not move between the conservative and the optimistic queue models, so a true queue in between cannot move them either. Finer data would buy precision on secondary numbers, at the price of a different instrument and the measured history that goes with it. If it is ever worth doing, it is one day of data used to calibrate the existing model offline, not a new runtime path.
  • More strategies and more knobs. The binding constraint is the fee, so a better quote rule changes how much is lost rather than whether anything is.
  • Cosmetic repository work. No demo recordings, no badges. The documents are the interface.

Why the seams are where they are

Every choice below was made for a measurement that had to be possible, and each one is also what keeps a live path possible. The table is the reason the instrument is shaped the way it is rather than a promise about later.

Choice made now What it keeps open later
every input format behind one reader in src/market/ a live feed is another reader, not a second pipeline
the strategy talking to interfaces only the same code can be driven by a replay or by a live book
execution reports as the only input to accounting a real venue's fills update the portfolio unchanged
determinism and replay as pinned properties a recorded live session can be replayed and compared