Skip to content

Series routine docs: provisional newest bar, and what a missed night looks like - #130

Merged
mspinola merged 1 commit into
mainfrom
claude/series-docs-provisional
Oct 27, 2026
Merged

mspinola merged 1 commit into
mainfrom
claude/series-docs-provisional

Conversation

@mspinola

Copy link
Copy Markdown
Owner

Doc-only follow-up to mspinola/marketdata#40 (0.3.3).

Why

Both Windows templates described the series build's old rule: gate the newest bar and store it. Since 0.3.3 a capture's newest bar is provisional. It counts for the session gate and is otherwise ignored, so the store trails the latest capture by one session by design. Read against the old text, that lag looks like a missed night.

The measured reason, now in both files: from 2026-09-16 to 2026-10-23 the vendor later revised 54 of 226 newest bars, against none of about 215 bars it had already served once as settled. Storing the newest bar froze 14 of 15 series from late September.

What changed

  • run-series.cmd: the stage-2 paragraph is rewritten for the provisional rule and --accept-restatement. A new WHEN NOTHING RUNS AT ALL section covers the 2026-10-26 failure. Comment lines only: every non-REM line is byte-identical, and the new lines contain no <>|&%^.
  • series-routine.md: "What a good night looks like" now says the bar a run adds is the previous session's, and how a genuine restatement is taken. The new When a night is missed section covers the same failure from the operator's side.

The missed-night section

On 2026-10-26 Claude Desktop on the producer was signed out. Neither routine ran, and nothing on the box recorded it: no raw file, no exit code, no log, no Task Scheduler result. The only trace was the replica's series dates not advancing.

The docs now cover:

  • No data is lost: the next ten-bar capture carries up to nine missed sessions.
  • Recovery: Routines, then Run now.
  • What a morning run stores: sessions through the one before the latest.
  • Detection: verify-scheduling.ps1 flags the series only after four days, so the reading machine should watch the dates.

Checks

No test covers these templates. The deployed copies on the producer box are being updated to match.

🤖 Generated with Claude Code

… night looks like

marketdata 0.3.3 (mspinola/marketdata#40) holds each capture's newest bar until a
later capture confirms it, because the vendor revises the evening value of the day's
bar. Both templates still described the old rule (gate and store the newest bar), so
the one-session lag the store now carries by design read like a fault.

Also documents the failure seen on 2026-10-26: with Claude Desktop signed out on the
producer, neither routine ran and nothing on the box recorded it. Recovery is Run now,
and a morning run stores through the session before the latest one.

run-series.cmd changes REM lines only; every executable line is byte-identical.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@mspinola
mspinola merged commit 4af0194 into main Oct 27, 2026
5 checks passed
@mspinola
mspinola deleted the claude/series-docs-provisional branch October 27, 2026 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant