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

+10 -1
View File
@@ -17,16 +17,25 @@ pub enum Cause {
/// The connection followed changed: the new one's book, which may hold
/// changes the old one never delivered.
Switch,
/// Its market was removed and is tracked again: its first book since,
/// against the last one written before.
TrackedAgain,
}
impl Cause {
const ALL: [Cause; 3] = [Cause::Loss, Cause::SubscriptionGap, Cause::Switch];
const ALL: [Cause; 4] = [
Cause::Loss,
Cause::SubscriptionGap,
Cause::Switch,
Cause::TrackedAgain,
];
fn name(self) -> &'static str {
match self {
Cause::Loss => "loss",
Cause::SubscriptionGap => "subscription gap",
Cause::Switch => "switch",
Cause::TrackedAgain => "tracked again",
}
}
}