Skip to content

fix: hotfix 26.11.7, nothing that needs an agent or you waits unseen - #10

Merged
ancongui merged 137 commits into
mainfrom
hotfix/26.11.7
Nov 8, 2026
Merged

ancongui merged 137 commits into
mainfrom
hotfix/26.11.7

Conversation

@ancongui

@ancongui ancongui commented Nov 8, 2026

Copy link
Copy Markdown
Collaborator

What and why

Things that needed an agent or the developer waited unseen. An idle tech lead heard nothing while crew members asked
questions; a member had no way to wait for its answer; questions answered by message stayed open; a request typed
while the agent worked lost the crew slot kept for it; answering a message by id could reach another run's message;
and the status block sometimes left out how far the run had come. Hotfix 26.11.7 makes one wait wake an idle session
for every devkit event, makes every message id reach the run that holds it, and adds a short welcome when a session
starts. The guard, the crew checks, and the skill rules also refuse fewer honest commands while reading more of the
ones that hide an action.

Changes

  • One wait for every devkit event: dev watch --wait and dev watches (crew questions and answers, decisions,
    ready steps, members that stopped, CI results). The Stop hook sends back a turn that ends while something can still
    arrive and nothing would wake it. A wait counts only as a command of its own, and a turn gets one wake instruction.
  • Crew messages: ids carry their session outside it (M3@<session>, approve D3@<session>); a SendMessage answers
    only the questions it reaches; a message over 1,500 characters is refused whole; a message typed mid-turn counts as
    the latest request, even after a very long transcript line.
  • The Progress bullet is required while a run is active; a short session-start welcome on Claude Code and Codex.
  • Crew lanes: dev commit in a lane commits only the lane's own staged files and keeps a pre-commit hook's fix; a
    resumed member takes its next step; dev crew graph draws every live session; write credit goes to the member
    that wrote the file, dotfiles included.
  • Skills and routing: required skills follow the commands a turn runs; briefs list the skills the gates check; the
    wait-and-wake skill.
  • Guard: false refusals from 12 lessons lifted; it reads more of what a shell runs (rebinds, options after -c,
    sourced files, process substitutions, a $(…) inside a word, a parse-only shell's words), refuses hiding the
    agent markers, and refuses a wait chained to other work.
  • The suite passes in worktrees and exported copies; dev test prove handles fixes in test helpers.
  • Docs, skills, agents/AGENTS.md and the CHANGELOG describe all of it.

How to verify

  • Local CI: dev ci --run on this tree → 7 of 7 steps passed (compile, unit tests, gitleaks, semgrep, osv-scanner,
    trivy, zizmor).
  • The full suite on Python 3.9 (the system Python) and on the current Python 3; dev test prove shows each new test
    fails without its change.
  • Reviews: the Code reviewer reviewed the branch, and every blocker, major and minor it found is fixed with a test
    except one minor, tracked for 26.11.8. The Red team tester attacked the guard four times: every critical is fixed,
    and nothing is weaker than 26.11.6. Six high bypasses that 26.11.6 also has are tracked for 26.11.8.

Risk and rollback

Medium: the change touches the guard, the hooks, and the crew records. Where devkit cannot tell, it keeps a record
open and refuses a command it cannot read. Rollback: dev install --version 26.11.6 restores the previous pinned
copy.

Links

  • CHANGELOG: the [26.11.7] section lists every change with its doc page.

The isolated run scrubbed a fixed list of variable names, so the next shell variable that named a real root broke test_hermetic's no-real-root check: _ (26.11.6), then zsh's FPATH, which lists a devkit release's completions folder; it failed under dev test and alone from an agent shell.

The scrub now also drops, from any variable, each entry of its value (a path list split on os.pathsep) that lies below a real root, keeping the other entries.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_hermetic on the staged tree: 18 tests OK each; the new scrub test fails on HEAD's helper
The isolated run joined every relative name with the working folder, so from a working folder inside a real root (a run started in the handoff repository) shutil.rmtree of a temporary folder was refused: its walk opens and removes names relative to a folder descriptor.

Events that carry dir_fd resolve the name against the folder the descriptor names; the open event carries none, so the relative names of shutil.rmtree's descriptor walk are left to the shutil.rmtree event, which judged the walk's root already.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_hermetic on the staged tree: 19 tests OK each; the new test fails with PermissionError on HEAD's helper
ScopeBaseTests used the tree under test as the run's repository: they failed in an exported copy (no .git) and in managed worktrees before 26.11.3, and the one-part id they moved to let a scope_base that keeps only the last id part pass.

The tests build <dev>/fireflysoftwaresolutions/devkit with its origin, and a managed worktree below <dev>/.worktrees/, in the run's home, and check the main checkout and the worktree with the id fireflysoftwaresolutions/devkit.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_shell_allowlist: ScopeBaseTests 3 OK in the main checkout, the managed worktree layout and an exported copy; a scope_base mutant keeping the last id part fails 2 of 3 (it passed the old tests)
AllowlistTests judged each command in the folder of the tree under test, so in a copy inside a session scratchpad the guard's scratch-folder rule refused every write first and 10 verdicts changed with where the tree sits.

The lane works in the same project of the run's dev root as the main session.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_shell_allowlist: 21 tests OK in the main checkout and in a copy in the session scratchpad (10 failures there before)
The doctor test pointed a hook at the tree under test, and the doctor knows a devkit hook by 'devkit' in its path, so in an exported copy whose folder has another name the hook was not seen and the test failed.

The hook runs the sandbox checkout the copy was pinned from, and the test also checks the doctor's '(the checkout)' marker.

Verified: python3 -m unittest tests.test_pinned_install.DoctorTests: OK in the main checkout; a doctor mutant that misses the checkout's hook fails it
Message and decision ids are numbered per run, so two runs of one project both hold an M11. dev status listed a finished run's M11 to M13 with dev crew answer M11, which answered the caller's own M11 to M13 instead and left the listed ones open; a finished run's questions also stayed under Needs you.

An id shown outside its own session now carries the run's session, M3@9448c4d0: dev status for every other run, the dashboard always, and a continuity brief read from another session. dev crew answer resolves a qualified id in that run, marks it answered under that run's lock and posts the answer there to the member who asked. A bare id that would reach another message than the one listed is refused with the qualified ids to use. dev crew decide and withdraw take the caller's own qualified id and refuse another session's, whose evidence lives in that transcript.

A run that ends or is replaced closes its waiting questions with the reason (crew.message-closed), and a finished run lists none, so they leave Needs you, the dashboard and the brief.

Verified: python3 -m unittest discover -s tests -t . (2765 tests, 1 failure: test_hermetic sees FPATH from the agent shell) and /usr/bin/python3 3.9.6 (2765 tests, the same failure); dev test prove: 22 of 23 new or changed tests fail without the change
The hatch tests judged commands in the folder of the tree under test: in an exported copy (no .git) the tag rule had no project, and in a session scratchpad the scratch-folder rule and the scratch-write allowance changed 12 verdicts, so exported copies failed them.

A member's lane works in a project of the run's dev root; the main-session hatches run in a checkout built in the run's home whose origin names fireflysoftwaresolutions/devkit.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_escape_hatches: 21 tests OK in the main checkout and in an exported copy in the session scratchpad (12 failures there at HEAD)
The personal-names check listed files with git ls-files, so in an exported copy (git archive, no .git) it errored instead of checking.

Without .git the check walks the tree, leaving out git's folder, the ignored ones and the caches a copy can hold; on devkit it lists the same 421 files as git ls-files.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_no_personal_names: 3 OK in the main checkout and an exported copy; the new test errors with CalledProcessError before the fallback
dev progress add joined its arguments with spaces, so two quoted specs ("a=5h [security]" "b=2h [testing]") became one step named "a=5h b=2h [testing]" with the wrong estimate and kind of work, and the run's plan and time were off until someone noticed.

Each argument with a space in it is a spec of its own; words typed without quotes still form one spec (review=20m after api), and ; still separates steps. A step name that still holds an estimate (a=5h b) is refused with how to write it, in dev progress add and in a plan given to dev progress start.

Verified: python3 -m unittest tests.test_progress tests.test_plan_dag tests.test_crew tests.test_dispatch tests.test_cli_wiring (210 tests; the 2 failures are CrewSafetyTests, from the Security engineer's uncommitted hooks.py); /usr/bin/python3 3.9.6 AddStepSpecTests and test_plan_dag pass; dev docs check exit 0
Write detection held a read-only member's shell call responsible for every file in another member's scope that changed meanwhile, unless that member had a shell call open. An Edit opens no shell call, so the Security engineer's and the QA engineer's edits were counted as the Business analyst's own writes, its step went unverified, and the branch review listed guard.py as changed by the analyst.

A file that changed during a read-only member's shell call inside the scope of a build member that works now (as dev crew owner reads it) is that member's write, call open or not: devkit audits it as attributed and flags nothing. Only a file no working member's scope holds is held against the read-only member and told to the tech lead; an open step whose scope holds it keeps it for the review that follows.

Verified: python3 -m unittest tests.test_progress (126 tests; the 2 failures are CrewSafetyTests, from the Security engineer's uncommitted hooks.py) tests.test_hooks_wiring tests.test_scope_liveness tests.test_crew_gates tests.test_approvals tests.test_approvals_fixes (1 failure, the same hooks.py change); /usr/bin/python3 3.9.6 ScopeWriteTests pass; dev docs check exit 0
A bare approve D3 typed in the wrong session's chat counted as the developer's answer to that session's own D3, a different decision. dev status and the dashboard listed another session's decision with that bare line.

The evidence reader takes approve D3@<session>[: <option>] as the developer's answer only in the session whose id starts with that prefix (8 characters at least) and records nothing for it anywhere else; as a later word on an irreversible decision it still ends an earlier yes. dev status and the dashboard give another session's decision its qualified approve line, which only the owning session accepts.

Verified: python3 -m unittest tests.test_evidence tests.test_evidence_forgery tests.test_approvals tests.test_approvals_fixes tests.test_red_team tests.test_red_team_2 tests.test_progress tests.test_dashnow tests.test_dashboard_now tests.test_crew (492 tests; the 5 failures are guard and hook routing cases from the Security engineer's uncommitted guard.py and hooks.py); /usr/bin/python3 3.9.6 QualifiedApproveTests, CrossRunIdTests, test_dashnow pass; dev docs check exit 0
The lane router now routes a crew member's dev progress or dev crew call joined only to cd or to reads as that member's own lane, so the safety test that expected every compound to be refused no longer matched the intended behavior.

The test keeps the refusals: a substitution, a call joined to a write, a pipe into it, a pipe out of it, and env before it all stay refused and never run as the tech lead.

Verified: python3 -m unittest tests.test_progress.CrewSafetyTests (6 tests pass) with the Security engineer's lane router in hooks.py and guard.py, still uncommitted in this checkout
The docs rule matched only docs/<folder>/*.md, so top-level docs (docs/crew.md) and devkit's skills, agent files, slash commands and AGENTS.md needed no skill at all.

The docs rule now also matches docs/*.md, plugin/skills/**, **/SKILL.md, plugin/agents/*.md, plugin/commands/*.md and agents/AGENTS.md. tests/test_skillguard.py holds a path-to-rule fixture table built in a temporary repository.

Verified: python3 -m unittest tests.test_skillguard tests.test_skills tests.test_language_neutral (32 tests pass; the new test failed before the change)
Review and read-only crew members were refused honest reads again and again: python3 --version before the tests, sysctl, ps, which -a with bash --version, a git merge-base substitution, sed without -n, mkdir of their own scratch folder, dev guard check and dev lesson show. Each refusal cost a retry and pushed members to guess around the guard.

A substitution or process substitution passes when the command inside it is itself on the read-only allowlist; arithmetic and a substitution as the program stay refused, and the masked command is tokenised once so a heredoc never hides the next line. An interpreter or shell asked only for --version runs. ps, pgrep, sw_vers, id, whoami, printenv, uptime, groups, locale, getconf and seq join the readers, and sysctl reads without a value, -w, -f or -p. sed runs when its script only prints (s without w or e, y, d, p, q, addresses, blocks), with or without -n; -i, -f, w, r and e stay refused. awk runs when its program prints to standard output only. mkdir runs inside the member's own scratch folder. A lowercase or one-letter shell variable may be set alone; PATH, PAGER, IFS and zsh's tied names stay refused. dev guard check and dev lesson show, ls run. A backslash-newline is read as the shell joins it.

Verified: python3 (3.15) and /usr/bin/python3 (3.9.6) -m unittest test_guard test_guard_crew test_guard_readonly_lanes test_shell_allowlist test_guard_refusals test_red_team test_red_team_2 test_escape_hatches on the staged tree: 229 tests, 227 pass; the 2 others fail only because the export sits inside a session scratchpad, and pass in the checkout
Every CHANGELOG.md entry required delivery and release-policy, so members who only wrote release notes were sent back to load release skills (23 delivery and 26 release-policy send-backs since 2026-11-07).

CHANGELOG.md stays under the docs rule only; the delivery rule keeps VERSION and the release tool configs.

Verified: python3 -m unittest tests.test_skillguard tests.test_skills tests.test_language_neutral (33 tests pass; the new test failed before the change)
The UI rule sent members back for frontend-design and impeccable after changing a test that holds an HTML string, a scratch probe outside the repository, or a Spring class with @component("x") (15 send-backs each since 2026-11-07).

Test files no longer match the UI rule by content (content_exclude), the Angular pattern is @component({ only, and the Stop hook and the crew gates skip files on disk outside every repository (skillguard.delivered).

Verified: python3 -m unittest tests.test_skillguard tests.test_gates_skills tests.test_skills tests.test_crew_gates tests.test_language_neutral (71 tests pass; the new tests failed before the change)
Crew members typed cd <worktree> && dev progress step, dev crew inbox | tail -5 or git status && dev crew inbox, and the lane router refused every one as a compound command: 285 refusals in this Mac's recorded sessions, the most frequent false refusal of honest crew work.

guard.lane_route places DEVKIT_FROM_AGENT in front of the one lane call of a flat list of simple commands: no substitution but a quoted heredoc message, no subshell, group, control word, comment, background job or heredoc, redirects only to /dev/null or between stderr and stdout. The lane call starts its pipeline and only read-only filters follow it; every other command must be a read on the read-only allowlist, never an interpreter, shell or project check, so the rewrite approves nothing else. The rewritten command is read back with the guard's tokenizer, and crew_shell_verdict passes exactly the lane calls the router marked. Two lane calls in one command, a write, a feeding pipe, a wrapper, a nested shell or a substitution stay refused.

Verified: python3 (3.15) and /usr/bin/python3 (3.9.6) -m unittest test_guard_lane_router test_guard_crew test_hooks_wiring test_red_team_2 test_guard (and test_progress test_crew test_threaded_turn_endings on 3.15) on the staged tree: 2 cases refuse with the scratch-folder reason only because the export sits in a scratchpad; all pass in the checkout
Only Java controllers and API specs required the backend skill, so PHP, Python and Node service code needed none, while any migrations folder required the Postgres skill even in a MySQL project.

The api rule now also matches *Controller.php and, by content, routes of Laravel, Symfony, FastAPI, Flask, Django, Express, NestJS, Fastify and Hono (tests excluded). The database rule requires backend; a new postgres rule requires the Postgres skill only in a repository whose project files name Postgres (rule field project).

Verified: python3 -m unittest tests.test_skillguard tests.test_gates_skills tests.test_skills tests.test_crew_gates tests.test_language_neutral tests.test_doctor tests.test_crew (144 tests pass; the new tests failed before the change)
Crew members looped over two Pythons (for py in python3 /usr/bin/python3; do $py -m unittest ...; done) or named a scratch path once (S=/path; mkdir -p $S/x) and the guard refused both as programs known only at run time; meanwhile python3 $S/x.py with S set the same way went uninspected, while the same script written out was read.

guard.literal_variants writes the command once per value a variable can hold where it is used, and guard.check, crew_shell_verdict and the main session's irreversible gate judge every variant: one refusal refuses the command. A variable is resolved only from a plain assignment of a literal word that always runs first (at the top level, after ; or a newline, never in a block, subshell, pipeline or background job, never as a prefix) or from a for loop over literal words, inside its body; and only when the command names it nowhere else. read, export, eval, source, IFS, case, functions, heredocs, backticks, ${x:-...} and zsh subscripts or modifiers keep it unknown. More than 16 combinations stay unknown.

Verified: python3 (3.15) -m unittest test_guard_variables test_red_team_2 test_red_team test_guard test_guard_crew test_guard_lane_router test_gate_tiers test_escape_hatches on the staged tree: 227 tests, 2 fail only with the scratch-folder reason of the export's location; /usr/bin/python3 (3.9.6) test_guard_variables test_red_team_2 test_red_team test_guard test_gate_tiers: 167 OK
The skill rules list commands (git push, dev release, dev test, dev lesson add) but the Stop hook checked only changed files, so a session that released without the delivery skill was never sent back, though the docs and the using-devkit skill say commands count.

skillguard.read returns the turn's shell commands for Claude and Codex, rules_for_commands matches them the way the crew gates read a command (quotes and heredocs dropped, bin/dev is dev), and on_stop asks once per skill for files and commands. To keep it sound, a push needs delivery only (a new release rule holds tags, releases and VERSION with release-policy), reading a CI run (gh run) and listing lessons need nothing.

Verified: python3 -m unittest tests.test_skillguard tests.test_skills tests.test_language_neutral tests.test_hook_capture tests.test_threaded_turn_endings (73 tests pass; the new tests failed before the change)
The skills and guides named five different ways to wait for CI (gh pr checks --watch, dev pr checks --watch, dev ci status --watch), none of which wakes an idle agent, so agents promised to report a run and never did. The Stop hook accepts only dev ci watch --wait.

Every place that tells an agent what to do after a push, PR, merge or release now says the same thing: arm dev ci watch --wait as a Monitor or background command in Claude Code, in the foreground in Codex, name its task id, and re-arm it on exit 3. dev ci status is described as a look only.

Verified: dev docs check: 0 errors (markdownlint 0 issues, all links resolve, 0 diagram problems); python3 -m unittest tests.test_consistency tests.test_codex_plugin: 26 tests OK
The guard refused a crew member's Python script whose regex or Markdown template held backticks (it read the string as a command substitution, so a program known only at run time), and refused any program with a Python variable named HOME next to a devkit path as setting HOME for devkit. Members renamed variables and spelled backticks as chr(0x60) to get past it.

_py_argv_only: a Python program that starts processes only with argument lists (no shell= other than False, no os.system, popen, getoutput or pty, no string naming a shell or a -c option, no exec, eval, compile, __import__ or getattr) hands no string to a shell, so the irreversible gate reads the substitutions in its strings as text; a shell route keeps the full reading. _code_env_sets: an assignment to a Python variable named HOME, DEV_ROOT or DEVKIT_* sets no environment; os.environ, putenv, an env dict or keyword, and a HOME=... in a shell line still count.

Verified: python3 (3.15) and /usr/bin/python3 (3.9.6) -m unittest test_guard_script_scan test_red_team test_red_team_2 test_evidence_forgery test_protected_state test_guard on the staged tree: 135 tests OK on each
/devkit:ship, also a Codex skill, told agents to run gh pr create --fill and gh pr checks --watch, which skip devkit's PR template, its local CI evidence check, the draft flow, and the watch that wakes the agent.

The command now lists the delivery skill's steps: dev ci, dev ci --run, dev push, dev pr create --draft, dev pr ready once, an armed dev ci watch --wait, the local fix loop for a failed run, and dev pr merge, dev task reconcile and dev release only when the developer asked for them.

Verified: dev docs check: 0 errors; python3 -m unittest tests.test_consistency tests.test_codex_plugin: 26 tests OK (the Codex copy of each command parses)
Crew members learned the guard's lane and read-only rules from refusals; the guide now says which compound lane calls reach the lane, what read-only lanes may run, and how a variable set from a literal or a Python program's strings are judged.

Verified: dev docs check docs/guard.md: 0 markdownlint issues, all 24 links resolve, 0 Vale findings
The single-change example in the delivery guide committed with --body "why", so readers copied a message without the reason paragraph or the Verified line that devkit's commit template asks for.

Verified: dev docs check: 0 errors; dev commit --help lists --why and --verified
The Security engineer's Scan phase required semgrep, whose scan plan needs the developer's approval that a subagent cannot get, and github-actions-hardening with no workflow in scope (17 and 19 send-backs since 2026-11-07).

The Scan phase now requires devsecops with its proof dev sec scan; github-actions-hardening stays required through the workflow file rule, and the phase says to run a Semgrep audit only when the developer asks. plugin/agents/keymaker.md is regenerated with bin/dev crew sync.

Verified: python3 -m unittest tests.test_gates_skills tests.test_crew tests.test_crew_gates tests.test_roles (pass; the new test failed before the change); bin/dev crew sync --check clean
The developer asked that nothing devkit or its agents deliver mention plan labels such as Phase 1 or Wave 2, but the rule lived only in one personal Claude memory, so Codex sessions, crew members and other developers never got it.

The global instructions say it in the working rules and in the commit rules, and the communicating skill's commit and PR sections say it with the reason: the readers never saw the plan. An id the host knows goes in the Refs: trailer only.

Verified: dev docs check: 0 errors; python3 -m unittest tests.test_consistency: OK
Every member's hand-off phase required the communicating skill, the top send-back (36 since 2026-11-07), though the brief already carries the report format and SubagentStop checks the status block.

communicating leaves the 25 phases that record the step with dev progress step (Hand off, the code reviewer's Verdict, the UX designer's hand-off, the product owner's Approve); it stays in each member's skills. The plugin agent files are regenerated with bin/dev crew sync.

Verified: python3 -m unittest tests.test_gates_skills tests.test_crew tests.test_crew_gates tests.test_roles (119 tests pass; the new test failed before the change); bin/dev crew sync --check clean
Superpowers' TDD asks for a test first on every change and its branch-finishing step merges locally, pushes with a raw git push and removes worktrees with git worktree remove, while devkit scales tests to the task and ships through a PR with one CI run. Nothing said which one an agent follows.

The global instructions now say devkit wins on test scale and selection, finishing a branch (dev push, dev pr create, dev pr ready, dev pr merge, dev wt rm), the plans folder and worktrees; the plugin settings table, the instructions summary and the using-devkit table say the same.

Verified: dev docs check: 0 errors; python3 -m unittest tests.test_consistency: OK; grep of superpowers finishing-a-development-branch SKILL.md shows git merge (96), git push -u (116), git worktree remove (173)
Both skills set disable-model-invocation, so a model cannot load them, yet the global instructions listed them among the skills an agent uses for design work; briefs that named them sent members back for a skill they could never load.

The global instructions list them as the developer's own slash commands, to suggest and never to put in a brief, and the skills table says a model cannot load them.

Verified: grep disable-model-invocation in both installed SKILL.md files: true; dev docs check: 0 errors
An agent ran unset CLAUDECODE before a project's release script, which hides from the project's own tools that an agent runs them, and nothing refused it.

Unsetting or blanking a variable in core.AGENT_MARKERS (CLAUDECODE, CLAUDE_CODE_ENTRYPOINT, CLAUDE_PID, CODEX_SANDBOX, CODEX_THREAD_ID, DEVKIT_SESSION, DEVKIT_AGENT, DEVKIT_FROM_AGENT) is refused for Claude and Codex, also inside sh -c: unset, env -u or --unset, env -i, and an empty assignment before a command or after export.

Verified: python3 -m unittest tests.test_guard_sequencing (2 tests OK; the refusal test fails with 18 subtests on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 507 tests OK on python3 and /usr/bin/python3
When two known projects share a repository name, the welcome's headline showed fireflysoftwares... instead of the project, and outside a project the run line cut its goal to ... and in another session to in another...

A project id (the alias of a project whose repository name another project shares) is cut from the left, as in ...solutions/devkit, so the repository name stays whole; only a repository name longer than the room by itself is cut, at its end. Outside a project, the run line shortens the project's name before its goal goes under its minimum, so the step and in another session always stay.

Verified: python3 and /usr/bin/python3 -m unittest on 9 affected modules: 127 tests OK; dev test prove --since HEAD: both new tests fail without the change; full suite on a copy of HEAD plus these changes: 2989 tests, the only failures are 9 guard tests that fail on HEAD alone
A crew message over 1,500 characters was cut without a word, so its reader got half a text and did not know it: a member's docs wording reached the tech lead cut mid-word today. dev crew ask and answer now refuse a longer message whole, with its size and how to send it (in parts, or a file path).

Verified: CrewMessageLengthTests: the refusal test failed on the old code (ValueError not raised) and passes now; tests.test_progress OK on python3 and /usr/bin/python3
For a crew member, dev watch and dev watches showed the raw agent id (for ab7b44761db23b396), and a member's wait that nothing could reach exited 2 with the main session's reasons (crew members, launches, slots, CI).

The consumer is named from its lane in the session's run, as Role (Name). A member's wait with no question of its own pending says so: none of your questions waits for an answer.

Verified: python3 -m unittest tests.test_watch_member tests.test_watch: 12 tests OK on this file state; dev test prove --since HEAD: the 3 new tests fail without the change; full suite on a copy of HEAD plus these changes: 2989 tests, the only failures are 9 guard tests that fail on HEAD alone
A background command that ran dev ci watch --wait and then a release build ended only after the build, so CI passing woke no one and the developer had to ask; devkit counted that command as a wait that wakes the session.

ciwatch.alone tells a wait that is the whole command line (piped at most into a filter that only reads it, such as tail) from one chained to other work after ;, &&, ||, & or a new line. A background command or Monitor counts as armed for the CI gate and for the global wait only when its wait is alone; the CI gate and the Stop rule then say that a chained wait wakes only when all of it ends. The Stop-rule tests no longer start a real background dev sync.

Verified: python3 and /usr/bin/python3 -m unittest on the watch and CI watch modules: 69 tests OK; dev test prove --since HEAD: the 3 new tests fail without the change; full suite on a copy of HEAD plus these changes: 2989 tests, the only failures are 9 guard tests that fail on HEAD alone
docs/agents.md still described a 7,000-character catalog of kinds of work, skills and anchors, up to four pitfalls and a digest of the handoff note, and skillguard's notes named the retired crew.catalog.

The SessionStart row and The session context now give the 9,000-byte limit, the order a cut follows, the catalog index with dev crew raci, dev crew rules and config/skill-rules.json, the three known pitfalls, and the handoff note's path, Now tasks and current state. skillguard's module notes point to hooks.catalog_context.

Verified: dev docs check docs/agents.md: 0 markdown issues, all links resolve (3 Vale warnings on lines this change does not touch); python3 -m unittest tests.test_skillguard OK
An agent ran dev ci watch --wait ... | tail -3; then a release in the same background command: such a wait wakes the session only when everything after it has ended, and the work after it runs whatever the wait reported.

A dev watch --wait or dev ci watch --wait followed by anything after ;, &&, ||, & or a new line, or piped into anything but a read-only filter (tail, head, grep, wc, jq ...), is refused for Claude and Codex; the reason says to run the wait alone and act after it wakes the session.

Verified: python3 -m unittest tests.test_guard_sequencing (4 tests OK; the wait refusal test fails with 14 subtests on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 509 tests OK on python3 and /usr/bin/python3 in a copy of HEAD plus these files under ~/Development/.tmp
An agent ran a CI watch piped into tail, then a release script after a semicolon: the release ran whatever CI said, and the pipe rule saw only git, dev and gh after a pipeline joined with &&.

An action that must depend on a check (commit, push, tag, merge, release, publish, deploy, and a project's release, publish or deploy script such as npm run release, make release or just release) is refused when it follows a check (a CI watch or run, dev test, a test runner, a linter, a type checker, a test, lint, check or build script) after ;, || or &, or after the check piped into a filter and joined with && without set -o pipefail. DEVKIT_PIPE_OK opens it as it opens the pipe rule.

Verified: python3 -m unittest tests.test_guard_sequencing (6 tests OK; the refusal test fails with 22 subtests on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 509 tests OK on python3 and /usr/bin/python3 in a copy of HEAD plus these files under ~/Development/.tmp
The rule for binaries the guard cannot identify refused crew members' ordinary reads in the replay of recorded commands: /usr/bin/grep -c, /usr/bin/head -c 300, a pipe into /usr/bin/sed, and a browser binary run in a command that also wrote a heredoc to a file.

A binary run by its path is identified by its name when it is the program installed under that name on the PATH (the same file or the same bytes) or a file the system owns (owned by root and not writable by this user). A heredoc counts as a program's input only for the segment it feeds.

Verified: python3 -m unittest tests.test_red_team_3 (16 tests OK; the new open-reads subtests fail 3 times on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 509 tests OK on python3 and /usr/bin/python3 in a copy of HEAD plus these files under ~/Development/.tmp
cmd > >(...) writes into a process substitution, but the guard took >( for a file the command writes, so a lane in a session scratchpad got the scratch-folder refusal instead of the verdict on the substitution's command, and the main session in its home folder was asked about a file named >(.

A redirect whose target is <( or >( records no file; the substitution's command is judged as before.

Verified: python3 -m unittest tests.test_red_team_3 (17 tests OK; the new test fails on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 510 tests OK on python3 and /usr/bin/python3 in a copy of HEAD plus these files under ~/Development/.tmp
b8d78e2 counted a wait as armed only when it was the whole command, which also refused cd <checkout> && dev watch --wait, the usual way a session arms it from another folder. A cd ends at once, so the wait is still the last thing the command runs; other work before or after the wait still keeps it from counting.

Verified: the two cd cases failed before the change and pass now; test_ciwatch, test_watch_stop, test_watch, test_watch_e2e OK on python3 and /usr/bin/python3
Eight guard tests judged a lane's commands in the folder of the tree under test, so in a copy inside a session scratchpad the scratch-folder rule judged every path first and their verdicts changed with where the tree lives, where crew members verify their work.

The lane tests of the router, the read-only lanes and the variables, and the hook-wiring lane test, run their commands in a project of the run's dev root, as the allowlist tests do.

Verified: guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 512 tests OK on python3 and /usr/bin/python3 in the checkout, in a copy under ~/Development/.tmp and in a copy inside the session scratchpad (8 failures there before)
On a re-planned run the welcome said step 57 of 62 while the status block said 24 of 31 steps: dev status and the welcome counted skipped steps as done. They now use the same counts as the Progress line. The goal was also cut to Hotfix… with room to spare, because a cut that ended at a space dropped one more word.

Verified: the two new tests failed on the old code (step 5 of 7; Hotfix…) and pass now; test_welcome, test_welcome_names, test_hooks_welcome, test_dashboard, test_dashnow, test_session_graph, test_crew_graph, test_aliases, test_branches, test_crew, test_ext OK on python3 and /usr/bin/python3
The replay of recorded commands showed the rule refusing commits that tested the check's result in an if or a [ ] test (r=$(... | tail -1); if [ "$r" = OK ]; then git commit ...; fi), which do depend on it.

Walking back from the action to the check, an if, then, elif, else, case, while or until, or a [ ], [[ ]] or test between them leaves the action open: it branches on something the guard does not read.

Verified: python3 -m unittest tests.test_guard_sequencing (6 tests OK; the 2 new twins fail on the previous commit); guard, red-team, allowlist, hatch, hook-wiring, audit, language-neutral and module-name suites: 512 tests OK on python3 and /usr/bin/python3 in a copy of HEAD plus these files under ~/Development/.tmp
The rule against hiding an agent listed every devkit identity variable, so the main session could no longer unset DEVKIT_FROM_AGENT, which the caller-identity rule allows on purpose (it carries none), and members got the new message instead of that rule's. DEVKIT_FROM_AGENT goes back to the caller-identity rule; CLAUDECODE, CODEX markers, DEVKIT_SESSION and DEVKIT_AGENT stay refused for everyone.

Verified: local CI's 5 failures in test_caller_identity reproduced and fixed; test_caller_identity, test_guard_sequencing, test_red_team_2, test_red_team_3 OK on python3 and /usr/bin/python3
A wait without --for me asked the call ledger who calls, and the ledger names a crew member whose own dev watch --wait --for me is open with the same words; the tech lead's wait then became the member's, took the member's answers and left the tech lead's events waking nobody. A wait is the member's only when the hooks routed it or --for me names a member the ledger finds; otherwise it is the main session's.

Verified: WhoseWait: two tests failed on the old code ('a_tank' != 'main'; no refusal) and pass now; the watch test modules OK on python3 and /usr/bin/python3
A transcript line longer than the 400 KB a hook reads (a screenshot) left no newline in the chunk, so the reading position never moved: every message the developer typed mid-turn after it was missed and every hook re-read the same bytes. The reader now skips to the end of such a line and reads on from the next one.

Verified: LongTranscriptLineTests failed on the old code ([] != the message) and passes now; test_watch_requests, test_progress, test_continuity_wiring OK on python3 and /usr/bin/python3
A lane commits from its own index, so a pre-commit hook that fixed and re-staged a file left the shared index on the old version: a staged revert the next commit would carry. After the commit, the shared index takes the commit's version of every path it changed, except what another lane keeps staged.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_commit_lanes: 7 OK; tests.test_gitx: 94 OK
The edit matcher stripped every leading dot and slash, so .github/… and .env never matched the member's own edit and a reading lane's report was held unverified for a file it never wrote. Only a leading ./ is stripped now.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_progress tests.test_gates_writes: 142 OK each
The refusal of two specs run together suggested dev progress add "a=5h" "b=2h", which devkit reads as the same joined spec and refuses again; the docs gave the same advice. Both now say to separate the steps with ;.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_progress: 140 OK each; the new test runs every suggested command
Each wait and every re-arm writes a record, and only dev watches removed those older than the days kept, so a session that never ran it kept every record. A new wait now removes them too. The member test file ran its unittest main before its last class; it now ends with it.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_watch tests.test_watch_member tests.test_watch_stop tests.test_watch_requests: OK
A turn that pushed while the crew worked went back with two instructions: a dev ci watch --wait of the commit, and dev watch --wait, which said it covers the CI results too. Now a run devkit's background watch follows is left to the one wait; only a run nothing follows gets its own CI watch, and the wait then no longer claims to cover it. The turn checklist gives the same answer.

Verified: python3 -m unittest of the 7 stop-gate and checklist test modules: 166 OK; /usr/bin/python3 on the 4 watch modules: OK
A SendMessage to a member closed every open question of every lane its name fits, though it reached one lane and maybe answered one question. Now a name that fits several asking lanes answers none, and a message that names question ids answers only those.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_watch_requests tests.test_progress: OK
The CHANGELOG lacked the agent-marker refusal the Code reviewer found missing, and the fixes made since: lane commits and hook fixes, the tech lead's own wait, long transcript lines, one wake instruction, wait records, SendMessage answers, and substitutions inside a word.

Verified: dev docs check CHANGELOG.md: no errors; the one warning on the new lines (a weasel word) removed
Comments added on this branch named lesson and task ids, which the rule on plan labels keeps out of code: they say nothing to a reader without the tracker. The guard's one label goes with its own change.

Verified: python3 -m py_compile on both files: OK; comment-only change
The tokenizer splits only a bare $(…) into commands, so the guard of Claude and Codex and the writing lane missed one in double quotes, a here-string, an expanding heredoc or the -c word of a parse-only shell: echo "$(dev install)" ran what echo $(dev install) is refused for, and bash -n -c "$(…)", refused at 26.11.6, passed. Each rule now walks those lines one level down; a heredoc inside $(…) is read as text, so the usual commit message heredoc still passes.

Verified: python3 -m unittest discover: 3021 tests, the 4 failures were files edited mid-run and pass on rerun (tests.test_hook_capture tests.test_mcp 43 OK); /usr/bin/python3 tests.test_red_team_4/3, test_guard_refusals OK; dev test prove: 3 of 4 new tests fail without the change, the 4th guards against false refusals
Version 26.11.7 in VERSION and the three manifests, and the CHANGELOG section dated.

Verified: python3 json.load of the three manifests: OK; VERSION reads 26.11.7
dev crew ask said the answer arrives with the next tool call or prompt, so a member that asked had no word on how to wait for it, and an idle tech lead seemed to need the developer's prompt. It now names the wait: dev watch --wait --for me for a member, dev watch --wait for the tech lead, each run on its own.

Verified: python3 and /usr/bin/python3 -m unittest tests.test_crew: OK; live check: an idle session's dev watch --wait woke on a helper's question M97 and printed it once
@ancongui
ancongui merged commit 2302202 into main Nov 8, 2026
3 checks passed
@ancongui
ancongui deleted the hotfix/26.11.7 branch November 8, 2026 22:31
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.

1 participant