Skip to content

Shift-close = immediate seat release + linger mode: fix the round-open mutex's two false positives and codify the outgoing PM driving named tails to merge #12678

Closed

Description

@os-litant

Filed by the skills seat (session_01MnijPVVDakqK2J335JoJtq) executing a maintainer ruling issued in live PM chat, 2026-08-27 ~06:4xZ.

Ruling (verbatim, untranslated)

The maintainer's proposal-question:

「是否建议项目经理下班的日常流程应该是立刻进行交接,并继续处理完手上的任务到合并,这样可以方便下一任项目经理尽快接手。」

The seat answered with a three-part design (below); the maintainer's execution ruling on that exact three-part shape, verbatim: 「落协议」. The three parts are therefore the ruled scope — not a menu.

Evidence — the observed failure this fixes

2026-08-27 04:19Z: the maintainer summoned a fresh engine-lane PM. It ran the four mutual-exclusion readings and self-recused, offering the maintainer only "wait ~40–50 minutes" or "explicitly override". Two false positives compounded:

  1. Reading ① found the predecessor's shift-close briefing posted 4 minutes earlier and treated its recency as occupation. A close-out briefing is the predecessor's explicit declaration that it will write no more — it should read as a release marker, not as a lock. (Compounding half-state: the briefing was posted but the seat post title still said 🟢 — the close sequence has no defined final stroke.)
  2. Reading ③ found fresh non-self claims on two lane cards and read them as seat occupation — but those strokes were the skills seat's contract-review chain landing a cross-lane takeover patch, not an engine seat at work. Claims carry session ID and seat identity; cross-seat chain strokes are distinguishable and should not count.

Net effect: the maintainer's explicit summon was bounced by a passive timer, exactly the outcome the seat-availability design should prevent.

The three ruled changes

① Close-out briefing = seat release. The four-readings rule changes so that a shift-close briefing, when it is the latest event, releases the seat immediately — the recency window applies only to un-closed activity (a live or silently-dead predecessor). Close-sequence ordering is defined: seat-post body/title refresh first, briefing comment as the final stroke; the successor's release condition is the briefing's presence (a lagging title is a repairable half-state the successor fixes on seating, not a blocker).

② Linger mode (离任留守). The outgoing PM may keep driving its in-hand items to merge after close. Its post-close write surface is exactly the items named in the briefing (accepted PRs awaiting queue, review-chain carriers mid-landing) — no queue reads, no new dispatches, no un-named cards. The successor seats immediately and treats the named set as fenced (same declarative-collision shape as the hot-file serial queue). Residual timers of the outgoing session may only touch fenced items. When the last tail merges, the outgoing PM posts one tail-clear note on the seat post. Title vocabulary is NOT extended: a closed seat shows ⏳ vacant; the linger register (who lingers, which tails) is one line in the 说明 section. This flips the default from "hot-handoff custody to the successor" to "custody retained by the reviewer who accepted the work" — the natural extension of the 2026-08-25 清标即落地 ruling (the one who reviewed lands it).

③ Reading-③ cross-seat filter + explicit-summon override. Reading ③ counts only claims claiming this seat's lane dispatch — strokes by the review chain / Director seat on lane cards are cross-seat and do not occupy the seat. And a maintainer's explicit summon is the arbiter: with a close-out briefing present, the summoned session seats directly (repairing any title half-state on the way in); with no briefing (predecessor possibly dead mid-round), the conservative path stays — ask the maintainer to confirm termination, their confirmation seats.

Non-goals (binding)

  • 宁少跑 stays the rule for the un-closed case; nothing here weakens the mutex where no close-out exists.
  • No new seat-post title state word; no new labels; no change to the claim marker or any patrol predicate (check-half-states.mjs untouched by this card).
  • The dead-claim reclaim path and the takeover-liveness rules (>24h no output etc.) are untouched.

File surface

.claude/skills/pm-dispatch/SKILL.md (four-readings mutex clause + 收班 line) + references/seat-post-protocol.md (close sequence, linger-mode rules, title/说明 register) + references/dispatch-runbook.md only if the four-readings detail rows live there (bounded to the clauses this card names). All files sit at zero-headroom ratchets — every add is paid by same-file cuts with a cut ledger naming surviving homes.

Acceptance

  • The engine-case transcript replayed against the new text yields: seat immediately (briefing present), title repaired, fenced set = the briefing's named tails, no wait and no question bounced to the maintainer.
  • A predecessor with NO briefing still triggers the conservative path verbatim.
  • Ratchets hold (SKILL.md 1005/1005 etc.); check:pm-skill-ratchet, id-lint, frame-sync/freshness green; governed PR stays draft for human merge.

Activity

  1. added
    pm:queue
    domain:skills
    on Aug 27, 2026
  2. os-litant commented on Aug 27, 2026

    @os-litant
    ContributorAuthor

    Claim: skills-lane PM dispatch (post-shift ruling execution, same session as the filing)
    Session: session_01MnijPVVDakqK2J335JoJtq
    Branch: claude/issue-12678-shift-close-release
    Worktree: ../objectstack-12678 (dev-created from origin/main)
    Domain: skills
    File surface: .claude/skills/pm-dispatch/SKILL.md + references/seat-post-protocol.md + references/dispatch-runbook.md (third file only if the four-readings detail rows live there; bounded to the clauses the card names). Zero-headroom ratchets on all three — net 0 per file, cut ledger with surviving homes mandatory.
    Container & model: mode:subagent, claude-fable-5 — live node scripts/pm/dispatch-gates.mjs --tier output: "Model tier — MANDATORY: claude-fable-5 (derived from the file surface, not recalled). — .claude/skills/pm-dispatch/SKILL.md ⇢ clause ① of the model-tiering ruling (narrowed to protocol semantics, 2026-08-20)". No exit applies: this is a multi-clause protocol-semantics change, not a one-line mechanical edit. Clause-② content limb: no (PM protocol text; no shipped contract accept/reject behaviour moves).
    Serial constraints cleared: no open PR holds any of the three files (PR #12664 merged 05:36Z, #12657 merged 04:22Z; single-writer check runs on the PR). Hot-file serial queue on seat post #7623 shows all rows free (refreshed 06:2xZ this session).
    Assignee set by this seat in the same stroke (assignee 归 PM under mode:subagent; the branch above is the dev claim's distinguishing identity).


    Generated by Claude Code

  3. added
    pm:dispatched
    and removed
    pm:queue
    on Aug 27, 2026
  4. self-assigned this
    on Aug 27, 2026
  5. os-litant commented on Aug 27, 2026

    @os-litant
    ContributorAuthor

    os-dev-report

    {
      "issue": 12678,
      "status": "done",
      "branch": "claude/issue-12678-shift-close-release",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/12682",
      "premise_still_valid": true,
      "summary": "Executed the 2026-08-27 maintainer ruling (落协议) on the three-part shift-close design. SKILL.md 开轮互斥读法 rewritten: recency window scoped to un-closed activity only; a shift-close briefing that is the latest event releases the seat immediately (lagging title = repairable half-state fixed on seating; briefing-named tails fenced); reading-3 counts only claims claiming this seat's lane dispatch (review-chain and Director strokes are cross-seat, never occupation); explicit maintainer summon is the arbiter (briefing present seats directly, no briefing keeps the conservative confirm-termination path). seat-post-protocol.md: close sequence defined (body/title refresh first, briefing comment the final stroke) and a new 离任留守 linger bullet (default post-close custody: outgoing PM drives briefing-named items to MERGED, no queue reads or new dispatches, residual timers only touch the named set, tail-clear note on last merge, successor seats immediately and fences the named set; title vocabulary not extended, linger register is one 说明-section line), carried as the extension of 清标即落地. dispatch-runbook.md untouched: the four-readings detail rows do not live there (its mutex content is the tail-page reading recipe whose text says 读数定义在主文件). Non-goals held: 宁少跑 for un-closed case, no new labels or title words, check-half-states.mjs and liveness/reclaim rules untouched. Net 0 per file at zero-headroom ratchets; full cut ledger with surviving homes in the PR body. PR is DRAFT with skip-changeset applied (whole-set write; read-back shows exactly [skip-changeset]).",
      "tests": "All at PR head 2119da4ef, exits captured before any pipe, run under os-verify-lock. Derived union: node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack, exit 0, stderr names this checkout at 2119da4ef. check:pm-skill-ratchet exit 0 — verdict lines: SKILL.md is 1005 lines (ceiling 1005; headroom 0), widest table row 765 bytes (pin 765); seat-post-protocol.md is 105 lines (ceiling 105), row pin 0; dispatch-runbook.md is 274 lines (ceiling 274). check:pm-skill-id-lint exit 0: 23 file(s) clean. check:skill-frame-sync exit 0: 4 copies structurally isomorphic across 3 files. check:skill-frame-freshness exit 0: frame current with origin/main. check:pm-governed-prose exit 0: 2 surfaces name all 5 registered governed surfaces, claim no others. check:pm-governed-merges exit 0: 206 self-test assertions, generator certified this tree. check:agent-test-spelling exit 0: 0 violations. check:doc-authoring exit 0: 535 refusal strings clean. check:doc-formula-expressions first printed PREREQUISITE NOT MET (compiled deps absent, not a measurement); after building @objectstack/formula and @objectstack/lint it exits 0 (9 examples + 14 predicates judged clean). check:nul-bytes exit 0 (7030 files, no raw control bytes). check-governed-queue-guard: CI-only, NOT MEASURED locally.",
      "mcp_calls": "5 — create_pull_request, pull_request_read get x2, issue_write (labels), add_issue_comment (this report); card body and comments were read via the zero-quota public-repo payload channel, and no dedup search was needed (no findings filed)",
      "open_questions": [],
      "out_of_scope_findings": []
    }

    Generated by Claude Code

  6. os-litant commented on Aug 27, 2026

    @os-litant
    ContributorAuthor

    ACCEPT — seat review done on the full diff (PR #12682, head 2119da4e, 2 files, +38/−38, net 0 at every ratchet).

    • All three ruled changes land as chartered: ① the mutex recency window now reads 未收班活动 only, with 收班简报=释放标记 stated in the clause and the close sequence (body/title first, briefing as the final stroke) defined in seat-post-protocol; ② the linger bullet carries the full write-surface fence (briefing-named items only, no queue/new dispatch/un-named cards, timers bounded, tail-clear note, successor fences, ⏳ vacant + one-line 说明 register) with the maintainer's proposal fragment verbatim and the 清标即落地 lineage pointed at rather than copied; ③ reading-③ counts only claims claiming this seat's lane dispatch, and the explicit-summon arbitration is two-sided (briefing ⇒ seat directly; no briefing ⇒ conservative confirm-termination path verbatim).
    • Non-goals all held, including dispatch-runbook.md untouched with the verified reason (its mutex content defers to the main file: 读数定义在主文件) — the conditional third file resolved to "not needed" by measurement, not assumption.
    • Cut ledger audited: the two cuts I flagged for scrutiny both survive correctly — the rate-limit bullet's whole content lives in platform-readings' API-quota rows (zero-quota endpoint read, top-of-hour retry alignment, public-repo fallback), and the 读侧边界 compression is a semantic trim (a redundant rationale clause dropped), declared in the ledger, not a silent re-wrap purchase. The re-wrap declaration confines re-flow to rewritten paragraphs.
    • Acceptance replay holds both directions: the engine 04:19Z case seats immediately with fenced tails and a repaired title; a briefing-less predecessor still recuses verbatim.
    • Gates: ratchet verdict lines quoted per file (SKILL.md 1005/1005, row pin 765/765; seat-post 105/105; runbook 274/274), id-lint/frame-sync/frame-freshness/governed-prose/governed-merges self-test/doc gates all green at head; governed queue guard is CI-only, runs on the PR.

    Four-piece end state (same stroke): PR stays draft; review requested from os-zhuang with the draft bit passed explicitly; awaiting the maintainer's human merge — merging ratifies the protocol change. Fixes #12678 closes this card on merge.


    Generated by Claude Code

  7. removed
    pm:dispatched
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

domain:skills

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions