feat: ready to submit, a run to watch, the README, the review's fixes

Sprint 08 (roadmap/08. ready to submit.md), the last milestone.

- scripts/watch.sh runs the collector with a live view of its log, stops
  cleanly on Ctrl-C, then checks the output (reconcile) and shows one
  symbol's book as text (show, a new binary).
- The README for the solution, with the final runs: Polymarket through an
  outage it recovered from on its own, Kalshi's demo with two slow
  connections recycled.
- From a review of the whole codebase: Kalshi takes RSA keys too
  (RSA-PSS-SHA256); a slow Kalshi connection takes the hourly recycle's
  next turn, which it nearly never got before; a market tracked again no
  longer fails reconcile; Book::add checks for overflow; usage and --help
  name the key variables; the first scan says how far it got.
- Tests for every gap the reviews found, an offline run of the whole
  orchestrator among them; ShellCheck in CI.
This commit is contained in:
pascal committed 2026-11-12 22:32:39 +01:00
1 parent 515e85941d
commit cf6c16c9cf
35 files changed
+2791 -207

No files matched your search

+4 -3
View File
@@ -3,7 +3,7 @@ name = "engineering-challenge"
version = "0.1.0"
edition = "2024"
build = "src/util/build.rs"
# `cargo run` runs the collector, not `src/bin/reconcile.rs`.
# `cargo run` runs the collector, not `src/bin/reconcile.rs` or `show.rs`.
default-run = "engineering-challenge"
[dependencies]
@@ -14,10 +14,11 @@ chrono = "0.4"
crossbeam = "0.8.4"
# `termination`: SIGTERM and SIGHUP stop the collector like SIGINT.
ctrlc = { version = "3", features = ["termination"] }
# Signs Kalshi's handshake (Ed25519 or RSA-PSS); already rustls's crypto
# provider.
ring = "0.17"
# Not used directly: tungstenite leaves rustls's crypto provider to the app, and
# rustls panics at runtime unless exactly one (here ring) is enabled.
# Signs Kalshi's handshake (Ed25519); already rustls's crypto provider.
ring = "0.17"
rustls = { version = "0.23", default-features = false, features = ["ring"] }
# Reads the PEM of Kalshi's key.
rustls-pki-types = { version = "1", features = ["std"] }