Repository navigation
feat: /cockpit chat skill — watch and steer a live shift (M3.4 build C, #646) - #648
Merged
Merged
Conversation
The second half of M3.4 build C. skills/cockpit (SKILL.md + cockpit.md): - Attach: one Monitor running exactly the canonical stream command the end-at-deliverable hook allows (`<BRAIN>/bin/pyauto-brain batch watch --stream --record <MIND>/batches/<slot>.md --from <seq> --for 28`, literal resolved checkouts, timeout 30 min), after a foreground `--check`; re-armed only on `segment-end`, never after any other exit. - Report: one plain line per event; PushNotification only for `NEEDS YOU:` lines. - Steering: plain words become exactly one comment on the shift issue from the human's login (/pause /resume /drop /stop /kill /cap /add, with an audit line); /stop and /kill confirmed first; /add after a premise check. - Questions: counted from Mind origin/main questions.md and handed to /questions, with a one-line fallback while that skill is not installed. - Routing: in a /cockpit chat a pasted prompt is an /add to the shift, never start dev (COMMANDS.md, route.md, start_dev's description and body). - Committed discovery for Claude and Codex. tests/test_cockpit_skill.py: the command matches the hook's own STREAM_RE and passes this repo's installed hook mid-window (fixture workspace with the real resolver), is refused at review-at + 46 min and with a `$VAR` left in; the steering table covers exactly the watcher's COMMANDS; routing and discovery. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s, honest /stop Review of f724d53 (#646): - A question about the shift ("what's the shift doing?") gets a one-shot `batch watch --once` read, never a Monitor; the watch is armed only on an explicit request (policy condition 1). Dropped from the triggers. - /cap: merge-cap counts the whole shift, so "one more merge" is merged + running + 1 read from the snapshot first; every /cap is confirmed with its number; "fewer workers" asks for one. Unclear wording means ask, never a guessed verb, task or number. - "kill everything" -> /stop is confirmed as "stops new work; running workers continue", then each running worker's /kill is offered as its own confirmed comment. - "Stop watching" stops the Monitor with TaskStop and leaves the shift be. - route and start_dev: when both /queue and /cockpit ran in a chat, a paste is asked about. The procedure is trimmed to stay within the 200-line budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolves COMMANDS.md and start_dev/SKILL.md so the /queue, /questions and /cockpit routing notes coexist: each chat claims its own pastes, and when two or more of them ran in one chat a paste is asked about, never guessed. - COMMANDS.md keeps both new entries; the /cockpit entry states the rule. - start_dev: one description naming all three chats (394 characters), and one compact body paragraph, within the 200-line budget. - route.md, cockpit.md, queue.md and questions.md each carry the same ask-which rule. Discovery is unchanged (already current). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Closes #646 with the merged doctrine and hook (PyAutoLabs/PyAutoMind#575) and the engine (#647). This adds
skills/cockpit/, which watches and steers a live shift from a Claude chat, inside the human's carve-out (PyAutoMindpolicy/shift_cockpit_watch.md).batch watch --onceread. The watch is one Monitor on exactly the canonicalbatch watch --streamcommand, with resolved paths and 30-minute segments re-armed only atsegment-endinside the window. "Stop watching" runs TaskStop.NEEDS YOU:lines./stopand/killare confirmed first./stopis worded "stops new work; running workers continue", and each/killis offered separately./capis confirmed with its number (merged + running + 1 for "one more merge").questions.md, with a hand-off to/questions./cockpitchat means/add, never start_dev. If/queuealso ran, it asks. COMMANDS.md, route.md and start_dev are updated, and discovery is committed.Test plan
tests/test_cockpit_skill.py(24): the skill's Monitor command matches the hook'sSTREAM_REand passes the real installed hook mid-window, with a fixture workspace and the real resolver. It is refused at review-at + 46 min and with a stray$VAR./capnumber guessing, the/stopwording), fixed in a0891b7. Re-review in progress.🤖 Generated with Claude Code