Skip to content

fix(batch): a shift opens at dispatched:, not when the brief lands - #590

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/shift-opens-at-dispatched
Nov 5, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/shift-opens-at-dispatched

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

The shift watcher opened a brief the moment it landed, ignoring dispatched:. Pilot shadow shift 1 (#574) opened a day early. That's harmless in shadow mode, but a live brief landed early would start workers early. A brief is now open only from dispatched: to review-at:. Before the start, a tick is idle with not yet open: opens at dispatched … and touches nothing, not even the slot directory, so a brief may be landed early. batch watch shows not yet open — opens in ….

Closes #589

API Changes

None public. _orchestrator.brief_open returns (False, "not yet open: …", None) before dispatched:. This narrows the watcher; there is no doctrine change.

Witness

  • test_a_brief_before_dispatched_is_not_yet_open: a tick at 08:00Z on a brief dispatched at 08:30Z is idle, says "not yet open" with the time, and creates no slot; the tick at 08:30Z plans. Control: with _orchestrator.py reverted, this test fails (1 failed); with the fix it passes.
  • test_before_dispatched_the_header_says_not_yet_open (batch watch).
  • Full Brain suite: 1575 passed, 1 skipped. Tenant firewall: OK.
  • Heart STALE, acknowledged by the human at ship.

Tier: glance — merge mode: auto-merge on green with Witness PASS, post-merge summary.

🤖 Generated with Claude Code

)

brief_open treats a brief before its dispatched: as not yet open: the tick
is idle and touches nothing, so a brief may be landed early. batch watch
says 'not yet open — opens in …'. Found in pilot shadow shift 1, which
opened a day early.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Jammy2211
Jammy2211 merged commit 5e9e30d into main Nov 5, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/shift-opens-at-dispatched branch November 5, 2026 21:48
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.

fix(batch): a shift opens at dispatched:, not when the brief lands

1 participant