# Replay the public lab
The lab opens with archived data and a reference network inspector. Choose one of three recorded FX windows. The October example begins at October 30 at 12:00 UTC. At 250 ms and 0.1 extra log bps per leg, EUR→JPY→USD→EUR at that instant has margin −0.745857 and EUR→USD→JPY→EUR has margin −1.873725. These values allow a cross-language consistency check between the browser and the Python verifier.
! Open the public lab | https://amelie-iska.github.io/phaseweave-lab/
Step through several observations using the forward and back controls and compare the route table with the two history traces. A line break or unavailable label marks insufficient evidence under the chosen settings. Scrubbing the time slider changes the input frame. Rotating the scene changes only the viewpoint. If a route disappears when the maximum age changes, inspect the ages of the participating edges.
## Follow one observation through the model
Pause on a complete frame. Use the input, tokens, compute and output tabs in order. First find the nodes, the directed bid and inverse-ask edges and the recorded ages. Next inspect the per-token values and the displayed aggregation. Change the selected reference operator to GCN, then GAT, then TokenGT. The source frame remains fixed so the differences originate in the chosen reference transformation.
With the cyclic qutrit entry selected, inspect the state or measurement values exposed by the reference view. The published lab uses compact deterministic reference operators. Compare a true model forecast through the separate checkpoint inference command later in this chapter group. This distinction is especially important when inspecting a browser output for a model with no corresponding training run.
## Offline and network-dependent views
Serving the repository's site directory over loopback loads the recorded walkthrough, including the reduced examples. A user-selected Gate option uses live venue data. The interface can also request dated official reference series. Network availability and provider-side data freshness affect both. To compare two computations, keep the same recorded frame or preserve the returned evidence and time.
```
python3 -m http.server 8117 --bind 127.0.0.1 --directory site
```
Open http://127.0.0.1:8117 in the browser. The recorded examples contain 31 frames each. The browser test checks all eight reference operators with both attention settings on the 93 recorded frames and verifies that the two cellulations have the stated face counts and Euler characteristics.

# Reproducing a forecast
Run from the PhaseWeave checkout with the project training environment active. Set the predecessor path to your local ToricGT-ToricMora checkout at the pinned revision 004e040. The current forecast inference entry point can also load the checksum-verified bundled snapshot when the predecessor argument is omitted. Commands below use a fresh reproduction root; choose a previously unused directory name for a new attempt. Source manifests and their archives must already be available at the documented paths. An inference-only reproduction can use the existing curated dataset and checkpoint directly.
```
py=python3
pred=/path/to/ToricGT-ToricMora
rep=runs/book-reproduction
mkdir "$rep"
export PYTHONDONTWRITEBYTECODE=1
"$py" research/curate_margin.py \
  --manifest data/histdata-pilot/manifest.json \
  --manifest data/histdata-crosses/manifest.json \
  --seed 20261120 --samples-per-triangle 16384 \
  --output "$rep/windows"
```
The curation command checks input archive hashes, constructs five purged splits and writes a manifest with one digest per compressed split. At inference the loader checks the manifest digest saved in the checkpoint and the digest of the requested split. A different byte serialization can change a digest even for semantically equivalent arrays. Use the exact released snapshot when checking an existing checkpoint.
## Baseline and width transfer
```
PHASEWEAVE_PYTHON="$py" ./scripts/train.sh \
  --predecessor "$pred" --dataset "$rep/windows" \
  --config configs/forecast-pilot.yaml \
  --output "$rep/standard"
"$py" research/campaign.py \
  --predecessor "$pred" --dataset "$rep/windows" \
  --config configs/campaign-pilot.yaml \
  --output "$rep/campaign"
"$py" research/campaign_report.py \
  --predecessor "$pred" --dataset "$rep/windows" \
  --campaign "$rep/campaign" \
  --output "$rep/campaign-evaluation.json"
```
The campaign starts with an activation and residual coordinate smoke check. It journals completed runs, freezes the best two-seed hyperparameter group and trains wider models. Training logs are collected locally in offline W&B mode by this recipe. Reproducing decimal-level scores on different libraries, GPU kernels or hardware requires documenting the exact arithmetic settings.
## Phase comparison and checkpoint inspection
```
"$py" research/phase_ablation.py \
  --predecessor "$pred" --dataset "$rep/windows" \
  --selection "$rep/campaign/selection.json" \
  --output "$rep/phase"
"$py" research/campaign_report.py --ablation \
  --predecessor "$pred" --dataset "$rep/windows" \
  --campaign "$rep/phase" \
  --output "$rep/phase-evaluation.json"
"$py" research/forecast.py infer \
  --predecessor "$pred" --dataset "$rep/windows" \
  --checkpoint "$rep/campaign/proxy-12/best.pt" \
  --split new_asset --row 0 --device cuda
```
In the returned structure read the edge order before interpreting the final frame channels. Compare the two forecast values to persistence and the two later archived observations. One row demonstrates the interface. The paired population errors in the ledger measure performance over supported samples.
## Full epochs and validation stopping
The longer study reads configs/config.yaml, which pins the v2 dataset manifest and completed pilot selection receipts on the training host. The planning command validates these ingredients without training. The training command below uses width 200 and a fresh output directory. Use the same frozen recipe at widths 448 and 832 to reproduce the specified wider fits.
```
"$py" research/convergence.py --predecessor "$pred" \
  --config configs/config.yaml --width 200 --plan
"$py" research/convergence.py --predecessor "$pred" \
  --config configs/config.yaml --width 200 \
  --output "$rep/convergence-200"
```
## Probing a stored graph
```
"$py" research/quote_graph.py \
  --manifest data/histdata-pilot/manifest.json \
  --at-utc 2026-09-17T12:00:00+00:00 \
  --write-graph "$rep/september.graph.json"
"$py" research/quote_graph.py \
  --graph "$rep/september.graph.json" \
  --max-age-ms 250 --extra-log-cost-bps-per-leg 0.1
PYTHONPATH=research "$py" -m pytest -q research/tests
node --test site/tests/core.test.js
```
For September 17 at noon the verifier reports −0.113632 and −2.601014 log bps in lexicographic starting-currency order with JPY-first and USD-first traversal respectively. The August 15 noon example yields unavailable or stale in both directions. Together these observations distinguish three outcomes that a reader might otherwise conflate: a well-formed negative route, a positive quote-derived target and a route lacking required evidence.

# Practical observation and model checks
The local workbench command can inspect available services, replay archived examples or run local chat against recorded evidence. The public feed and reference commands access the network; use replay for deterministic archived examples. Enter the research checkout in the existing OpenCode launcher to enable its project-local coordinator and three specialists.
```
./scripts/phaseweave doctor
./scripts/phaseweave replay
./scripts/phaseweave chat "Compare the archived route evidence."
./scripts/phaseweave feed
./scripts/phaseweave references
```
Two illustrative policies in the replay tool act on a positive current margin immediately or require two observations of confirmation. A later eligible quote supplies an indicative target for the chosen orientation. Availability, attempted actions and observed subsequent margins have different denominators. An abstention policy gives a comparison even in the stale archived window. These examples do not include time-priority simulation or confirmed fills.
## Numerical circuit probes
```
"$py" research/circuit_probe.py \
  --predecessor "$pred" --device cpu \
  --output "$rep/circuit-cpu.json"
"$py" research/circuit_probe.py \
  --predecessor "$pred" --device cuda \
  --output "$rep/circuit-cuda.json"
```
A backend agreement test compares both central observable values and derivatives for the same seeded patch. Recover the shape, depth and batch size from each record. The centered finite difference uses perturbation 0.002 on one parameter. A mismatched qudit ordering, sign convention or reduction across wires can preserve norm while changing the observable; checking norm alone leaves this failure undetected.
## What would change the conclusion
Fresh quote observations from another feed would help test whether the concentrated stress labels reflect the underlying market. Extending time and asset coverage would increase the number of independent positive sessions available for policy evaluation. Topology-specific claims require graphs whose cycle ranks and embeddings vary. A causal claim about the effect of acting requires a model of fills and responses to the action.
A trained reasoning comparison additionally requires predeclared candidate and resource budgets, verified evidence correspondences and barriers between retrieval and holdouts. A claimed quantum computational advantage needs a way to compare actual resource growth with strong classical alternatives. Each new claim defines its own experiment and evidence requirements.
