Repository navigation
Studio hand-over: every note is not sent, sent and not picked up, or picked up; nothing a person submits is lost - #240
Merged
Conversation
…picked up; nothing a person submits is lost
The first real film lost a batch of 12 notes written after their round had been taken, showed "正在取" while nobody would
take anything, and let one storyboard submission end the outline re-review's wait too.
- feedback.py: .consumed records who took what (when, which run, which agent program); a wait claims under the lock, so
two waits never both hand one submission over; a wait is for one round and ends (exit 7) when its page is no longer
out; it first hands over every submission nobody took or answered, of any round, a later batch said as such; the
default wait is 12 h (was 7100 s).
- status.py: notes nobody took come before any other next step (review.unread, an "unread:" line); a later page of a
decided gate ① (1b) waits for the person; holder says which agent program holds the film and whether outside Studio.
- standing.py: "正在取" only for a live wait on the round that is out; notes_late / notes_left say who picks notes up;
an agent outside Studio's window is named, with a second AI here only as a confirmed second line.
- Studio: the notes block shows each note's state, pinned above the note box; a taken round's new notes go as a later
batch ("补交"), said before and after sending; "先改" with no note asks once; the conversation tab asks before it
starts a second AI on a film an outside agent holds.
- Checks: replays of the lost batch, one submission ending two waits, two waits on one note, a timeout leaving notes,
the outside agent (test_agents.py handoff); the page in a headless Chrome (test_page.py, page_driver.mjs).
…s out the outside-agent line (the agent reading it is that agent); unread counts only submissions as Studio saves them; the output schemas name the new codes and fields; the notes block's edge uses a theme colour
…each whole-film note its own once the note box keeps several); the agent column's check for adapters left behind looks only at its own desk's process tree, never by name, so two runs of the checks on one machine don't trip each other
…otes block holds from 1280x720; A10 asks only when the page says so - feedback.py: a hand-over is two steps. claim() writes an unconfirmed claim (pid, when) under the lock; the note is written and flushed; only then confirm() makes it taken. A claim whose process is gone is no claim; a signal releases this process's claims; a closed or broken output releases them and ends the wait with 74. unread() counts every unconfirmed note; taken() only confirmed ones. A wait started orphaned hands nothing over. New submissions are looked at before the page-changed check, so exit 7's "nothing was submitted" is true. "late" needs a hand-over recorded by this version. One WAIT constant for desk wait and gate --wait. - status.py: the stop's row and next: name one command, bin/vh desk wait. - standing.py, agent.js, core.js: an outside agent is "open" on the film, never said to be working. - Studio: the column is two parts, what to decide scrolling above and the notes block below (at most half the column), so the block holds from 1280x720 in every theme and in English; drafts on a page the agent replaced are listed as not sent and go to that page's own round, or are dropped, on the person's click; A10 asks only for an option with needs_note (gate --init writes it on gate 3's FIX), documented with the gate JSON. - Checks: a wait killed in the claim-to-write gap (KILL, TERM, INT) and one with a closed output leave the note unread; two waits held at the claim and released together hand it over once (fails without the lock); the layout at both sizes, three themes, English; drafts of a replaced page; "no change" options never ask; the page check stops its own desk's process tree; the handoff group ends the stand-in it builds. - playbook 01 and the skill: on return, bin/vh status, then bin/vh desk wait; what to do when the host ended a wait.
…r-trust-59e5a0 # Conflicts: # tools/desk/static/studio.js
… a lock that is gone as naming nothing (GitHub's macOS runner: the turn ended between the look and the read)
ZLHad
marked this pull request as ready for review
November 23, 2026 10:58
ZLHad
enabled auto-merge (squash)
November 23, 2026 10:58
ZLHad
added a commit
that referenced
this pull request
Nov 23, 2026
…s the hand-over PR's last head, which this branch already holds
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The hand-over between a person reviewing in Studio and the agent waiting outside it. The first real film made with Studio lost a batch of twelve notes, said "你的意见交出去了,等着的 agent 正在取" when nothing had been sent, and let one storyboard submission end an older wait too. Fixes A1, A2, A3, A10, A7 and E10 of the first-film review.
The rule
A submission is in exactly one of three states, and Studio,
bin/vh statusand a waiting agent say the same:out/review/feedback/.consumedkeepsfilesas before and addstaken);A wait hands a note over in two steps:
.consumed.lock. An unconfirmed claim carries the claiming pid and its time.What happens when a wait does not get that far:
KILL) or crashedTERM,INTorHUPIn every case the note stays for the next wait and
bin/vh status.Notes written after their round was picked up are a later batch: a submission of their own, labelled as such, handed to the next wait and listed by
bin/vh status, never merged into another round. Notes written but never sent on a page the agent has since replaced stay listed as not sent. On the person's click they go to that page's own round, or are dropped.What changed
tools/desk/feedback.py.listening.claim,confirm,release), and exit 74.WAIT = 43200s (12 h; was 7100 s), the one default fordesk waitandgate --wait.tools/desk/desk.py,tools/gate.py: the default fromWAIT;gate --waitpasses its page as the wait's round; exits 7 and 74 in-h.tools/status.pynext:and the stop's row both namebin/vh desk wait; a newunread:line, and--jsonreview.unread.waiting_personuntil answered. Gate ①'s record asbin/vh renderandcheckread it is unchanged.review.taken(confirmed only), andholder.tools/standing.pynotes_late/notes_left, with who picks the notes up.agent_outside: "这支片子开在这个窗口外面的 Claude Code 里;在这里打的字,它收不到。" This says what is known (it is open on the film), not that it is working. Starting an AI here is a second line that asks once more, in those words. The terminal view ofbin/vh statusleaves this line out.studio.js,studio.css, new keys incore.js)notesCount. It counts each whole-film note on its own once the note box keeps several (generalPartsfrom Studio 审片顺手了:意见钉在你停下的地方,放大时时间轴跟着播放头走,"记下"点一次就成,分镜按镜头翻,长段落里点得到具体一镜 #239), else the overall words as one.needs_note: trueasks, when picked with no note, what to change ("回去写" / "就这样交").bin/vh gate --initwrites it on gate ③'s FIX. Nothing is guessed from an option's words; pages without the field never ask. Documented inplaybook/01-pipeline.md审阅页,tools/desk/README.mdandtools/schemas/gate.schema.json.agent.js(A7): on a film an outside agent holds, the conversation tab says so. Nothing starts until the person clicks "另起一个 AI".tools/desk/README.md,playbook/01-pipeline.md审阅台 (12 h; exit 7; on return or when the host ended a wait,bin/vh statusthenbin/vh desk wait),skills/open-video-harness/SKILL.md(and the plugin copy),tools/commands.json, the output schemas.New strings follow the coming word table's direction: the agent by name when known, else "AI"; the step by name; no file names or English states on screen. Existing strings are not reworded.
Checks
Each new check was run against code without the fix, and failed there.
tools/desk/test_agents.py, the handoff group:show()in the check's own process), and a realbin/vh desk waitwhose stdout is closed (exit 74). Afterwards the note is unread, status lists it, the page's state is not "taken", and the next wait hands it over.notes_late,next:, 1b waiting on the outline, the next wait hands the batch over at once.Against the previous head (11bf99b) the gap and held-claim checks failed on missing functions, not on behaviour. They are checks of the new protocol.
tools/desk/test_page.py(new; Studio in a headless Chrome throughpage_driver.mjs, fromdesk_checks; it stops its own desk's process tree):needs_noteoption and never for "不要改,保持不变,不用重做".The handoff group also now ends the stand-in program it builds. The agent column's leftover-adapter check looks at its own desk's process tree, never by name.
Full local
tools/ci.sh --committedis green on the head (macOS); shellcheck and pyflakes were run separately on the changed files, clean.Looked at by eye
On an isolated desk with made-up films and a stand-in outside agent (a small program named
claude):Looked into without a picture
holder: every launch path (the app,bin/vh studio,bin/vh gate, a restart) ends inexec python3 …/tools/desk/desk.py, which the match looks for, andpsdoes not cut the command short when not on a terminal (the check uses a long temp path). After a desk restart, its old agents end with it.AGENT.tell, which asks unless the person already confirmed "在这里另起一个 AI" in the column;Not looked at
bin/vh status.Stacked next: the window follows the film's files and opens a stop on what it asks about (A4, A5, B4), in its own draft PR.