Skip to content

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

Closed

Description

@Jammy2211

Overview

The shift watcher treats a brief as open from the moment it lands until review-at:. It never checks dispatched:. Found in pilot shadow shift 1 (#574): brief 2026-11-05-am (dispatched 2026-11-05T09:00Z) landed on 2026-11-04 and its first tick proposed straight away. Harmless in shadow mode; on a live brief, landing early would start workers early.

Plan

  • _orchestrator.brief_open: before dispatched: the brief is not open. The tick is idle with "not yet open: opens at " and the slot is not created or touched.
  • batch watch header says "opens in …" before dispatched:.
  • Tests: an idle tick before dispatched: creates no slot; the first tick at or after dispatched: plans; the review-at path is unchanged.
  • Docs: batch AGENTS.md (the shift window is dispatched: → review-at:) and the pilot README (land the brief any time before the start).

This narrows the watcher, it doesn't widen it: no doctrine change.

Tier: glance — merge mode: auto-merge on green if the Witness passes, post-merge summary (a non-PASS Witness → human /prm).

🤖 Generated with Claude Code

Activity

  1. Jammy2211 commented on Nov 5, 2026

    @Jammy2211
    ContributorAuthor

    Shipped

    Merged in #590 (5e9e30db) as a glance-tier in-turn merge: Witness PASS (with a control), CI green, Heart STALE acknowledged by the human. A shift now opens at dispatched:, and a brief can be landed early.

    Revert: git revert -m 1 5e9e30db in PyAutoBrain.

    🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions