Repository navigation
chore(release): 26.11.19 - #39
Merged
Merged
Conversation
Sessions kept stopping for typed grants on routine delivery, the 26.11.19 candidate could not pass its own security gate, and a full review of every subsystem found 49 defects in the candidate that would have shipped. This release makes automatic mode the default without grant friction, completes the security scan deterministically, and fixes what the review found. Automatic mode: in the main session's own repository, pull requests, pushes, merges, releases (a project's own release script included) and programs the guard cannot classify run by policy, each with an audit record. Anything else, another repository or one of the developer's own decisions (embargo, backup publishing, bug sharing, lesson release, removing devkit from an agent, turning an agent off), needs a typed grant, which now works in both modes, and the refusal names the exact line. An invalid configuration refuses irreversible actions only. Security scans: the dashboard script is one strict-mode block instead of one closure, so Semgrep's taint analysis completes; dev sec scan and the CI gate share one serial Semgrep command with no per-rule time limit, because the taint budget reads CPU time that parallel workers share; two framework rules are left out only when no file imports their packages. Review fixes: lesson preventions are no longer reopened in bulk; bug report settings are honored and bounded; unknown saved configuration keys no longer block installs, updates or doctor; unattended installs, update hand-off and optional install steps work in auto mode; Codex launch recovery tolerates a growing parent log; crew proofs, message receipts, CI results, request keys, state paths behind links, and Homebrew Python cleanup are fixed; step checks need an explicit check mark; secrets in messages are judged by value. Verified: dev ci --run --step-timeout 60 then --resume (all 8 steps green, evidence for tree dade293); python3.13.18 -m unittest discover: 5512 tests OK (skipped=1); dev docs check clean; independent code and security reviews approved
The CI security job failed on a Django-only rule, and the review of the release found minor defects in grant scopes, message secret checks, unreadable command variants and bug report cleanup. Root cause: The Django NaN-injection rule ran on a tree that never imports Django and hit a fixpoint timeout on the slower runner; typed grant scopes accepted only owner/repo and had no scope for a program run outside any repository in a session with no project; count words and placeholders matched inside other words; the variant loop refused unreadable text without checking for an irreversible action; nothing removed settled bug reports. Verified: python3 -m unittest on the 14 touched test modules: 576 tests OK; dev docs check: 0 problems
The developer typed grant lines while the session worked and they opened nothing, so every irreversible step waited for the line to be typed again as its own prompt. Root cause: Claude Code runs no prompt hook for a message typed mid-turn and records it only as a queued_command transcript attachment, which devkit read as a request, never as approval evidence; a Codex steering message counted only when its prompt hook fired. Verified: python3 -m unittest on 9 grant, guard, steering, red-team and consistency modules: 279 tests OK; dev test prove: the 23 new tests fail without the change
Automatic mode still asked for typed grants for routine delivery in the developer's other repositories, runs recorded by older versions stayed in guided mode after the upgrade, and the review of mid-turn grants found that the prompt hook does fire for a mid-turn message. Root cause: authorization_decision allowed automatic policy only in the session's own project; mode_context kept a run's recorded mode when it carried no origin; on_human_prompt treated a mid-turn message delivered under the turn's prompt id as a replay, and block-shaped prompts were never read. Verified: python3 -m unittest on 10 authorization, grant, steering, red-team, guard and consistency modules: 308 tests OK; the security engineer's run of 43 affected modules: 1495 OK
The developer wants every devkit bug sent as it is identified; reports with an agent's own words waited for review, and every report waited for the hourly sync. Verified: python3 -m unittest tests.test_bugs_sync tests.test_bugs_cli tests.test_cli_completion tests.test_consistency tests.test_gc: 221 tests OK; dev test prove: the 10 new tests fail without the change
Reports in an agent's own words now go out without review, so an agent stuck in a loop could open many public issues under the developer's account. Verified: python3 -m unittest tests.test_bugs_cli tests.test_bugs_sync: 144 tests OK; dev test prove: the 6 new tests fail without the change
Automatic mode covered any workspace checkout, so an agent could clone a repository, or rename an existing checkout and point it elsewhere, and push there with no grant. Root cause: The workspace rule checked only the checkout's place and origin, and a folder's creation time on macOS can be set back, so nothing tied the checkout to what existed before the session. Verified: python3 -m unittest on 9 authorization, grant, continuity, guard and consistency modules: 332 tests OK (1 skipped); the security engineer's run of 25 affected modules: 813 OK
The review of the workspace scope found that a missing list fell back to a creation time an agent can set back, that every prompt read the whole transcript, and that a guided run chosen on 26.11.18 would silently become automatic. Root cause: The session-start check trusted the git folder's creation time when the list was absent; mid-turn prompts were told apart by scanning the transcript backwards; mode_context treated every run without an origin as following the configuration. Verified: python3 -m unittest on 16 grant, scope, hook, canary, Codex and continuity modules: 434 tests, one failure from another lane's uncommitted completion change; the security engineer's run of 34 modules: 1232 OK
The developer read the same reply twice whenever a reply missed a presentation rule, about 67 minutes of repeated text in the last seven days, and a message typed mid-turn restarted the turn. Root cause: The Stop hook blocked the turn for presentation misses after the reply was already shown, and the prompt hook treated a mid-turn UserPromptSubmit, which carries the running turn's prompt id, as a new turn. Verified: python3 -m unittest on 16 hook, canary, Codex, grant and continuity modules: 434 tests, one failure from another lane's uncommitted completion change; the DevEx engineer's full suite: 5552 tests
The review of automatic bug sending found that consent given to the old text covered unreviewed free text, that a time zone change reset the daily cap, and that security reports and background starts had no limit. Root cause: Consent carried no version of the text it was given to; the cap counted a local calendar day; security items were not counted and a background send could start as soon as the previous one exited. Verified: python3 -m unittest tests.test_bugs_sync tests.test_bugs_cli tests.test_setup_flow tests.test_wizard tests.test_cli_completion: 357 tests OK; dev test prove: the 19 new tests fail without the change
The red team showed that an archive or folder copy into ~/.claude could add a transcript line that counted as a grant, and that a nested claude -p session launched by an agent got automatic policy. Root cause: capture_typed made a queued_command transcript line a grant by itself, and authorization_decision never checked whether a session was nested or an unverified headless run. Verified: python3 -m unittest on 17 grant, scope, Codex, red-team, hook, canary and continuity modules: 445 tests OK; red-team probes p1, p1b and p7 pass
The review of the single-reply change found that a Codex steering prompt still restarted the turn, a mid-turn message could appear twice in continuity, ride-along misses were counted as reminders, and a reminder could reach a non-development turn. Root cause: The hooks compared only Claude Code's prompt_id, continuity merged the two records of a mid-turn message only within one second, the canary audit used one outcome for both cases, and notes were handed to the next prompt before the turn was classed. Verified: python3 -m unittest on 17 hook, canary, continuity, Codex and grant modules: 445 tests OK; dev test prove: 9 new or changed tests fail without the change
The red team showed that an agent could extract an archive or copy a tree into a protected folder, make gh act on another repository than the one classified, and retarget a remote in the same command as the push. Root cause: The guard checked only whether a write destination lay under a protected root, never whether a protected root lay under it, read only the first -R and no PR URL or gh default repository, and bound the push transport before earlier parts of the same command ran. Verified: python3 -m unittest on 12 guard, evidence, scope, grant and consistency modules: 306 tests OK; red-team probes p2 to p6 pass; dev test prove: the 15 new or changed tests fail without the change
The re-review of automatic bug sending found that a security report or a report on another bug was dropped when its title matched a queued one, that dev status asked to turn sharing back on after it was turned off, and that Ctrl+D at the consent question failed dev update. Root cause: The duplicate check matched on the title alone, the consent line read any consent that was not current as outdated, and the consent question did not handle EOFError; the cap also recorded sends at the pass's start time and reset on an unreadable record. Verified: python3 -m unittest tests.test_bugs_sync tests.test_bugs_cli tests.test_setup_flow tests.test_wizard: 331 tests OK; the senior engineer's run of 35 modules: 1284 OK
Review found that once duplicates matched by routing, a public report with the title of a queued private report went out as a public issue with a title an agent had just filed as a security matter. Root cause: _queued_report compared the routing in both directions, so a public filing never matched a queued private report. Verified: python3 -m unittest tests.test_bugs_sync tests.test_bugs_cli: 160 tests OK; the new test failed before the change ((False, '2') != (True, '1'))
Review found that an honest grant typed while a long tool call ran was refused, and that a claude -p launched detached with nohup escaped the nested-session rule and could even grant from its own prompt. Root cause: The confirmation required the queued attachment within 60 s of the hook, but the attachment is stamped when typed and the hook runs when the turn absorbs it; nested() looked only at parent processes, which launchd replaces for a detached launch. Verified: python3 -m unittest on 8 grant, scope, Codex, red-team and audit modules: 387 tests OK; the security engineer's run of 26 suites: 776 OK
progress.py now imports ctypes to read a process's executable path, and the bug renderer's test requires every standard module devkit imports to be listed. Root cause: stdlib_namespaces did not list ctypes after 141a184 added the import. Verified: python3 -m unittest tests.test_bugs_render: 24 tests OK; it failed before with ['ctypes'] != []
Review and the red team showed that an archive or copied tree could drop an agent settings file into a project, that abbreviated tar options and unplaced made paths escaped the guard, and that push configuration could move a push to another branch. Root cause: The guard judged recursive writers by their destination only, matched long options exactly while the tools accept abbreviations, dropped made paths it could not place, and judged a push without a refspec by the current branch's name. Verified: python3 -m unittest on 11 guard, evidence, consistency and scope modules: 263 tests OK; dev test prove: the 34 new or changed tests fail without the change
Agents run with bypassPermissions in Claude Code and danger-full-access in Codex, at the developer's risk. The command guard kept refusing work and asking for typed grants, and every review round found new shell-parsing bypasses, so it protected little and cost the developer a grant line or a question several times a day. The PreToolUse hook is now dev hook pre-tool (guard stays an alias for running sessions): it records calls, routes crew members' devkit calls to their lane and turns the old refusals into advice. guard.py, authorization.py, typed grants, pre-approvals, approve lines, developer-only commands and blocking lesson rules are gone. The shell reader, read-only classifier, lane router, lane scopes and git rules the kept features need moved into shellparse, readonly, laneroute, lanescope and gitrules. The safeguards settings are retired and ignored. devkit's own commands keep their checks: branch names, commit secrets and AI attribution, local CI evidence before dev push, the delivery policy in dev release, embargoes in dev backup and dev push. Verified: python3 -m unittest discover -s tests -t . ran 4645 tests; its 9 failures were fixed and their 6 modules rerun green; tests.test_branches and tests.test_codex_audit_identity OK; dev docs check 0 errors BREAKING CHANGE: devkit no longer refuses agent tool calls or reads typed grant, approve or pre-approval lines; dev guard, dev crew mode --approve, dev crew ask --irreversible/--target/--repo/--performs, dev lesson prevent --by guard and --block are removed. Use the agent's own permission settings and branch protection on the git host.
The code and security reviews of the guard removal found devkit commands that lost their own checks, texts that still asked for approve lines or promised refusals, and advice that never reached Codex members. Root cause: The removed guard had also run checks for devkit's own commands: dev git push --all, --mirror, --tags and default-branch deletes, the release claim, and the commit secret scan's config. Without it those paths ran unchecked, an untracked .gitleaks.toml or .gitleaksignore could hide a secret, and Codex rewrites approved whole compound commands. dev git push checks every pushed branch and tag, refuses --mirror as a force push and default-branch deletes; dev gh release create checks the tag format; dev release stops again while another session holds the release claim. dev commit and the backup scan read gitleaks config and ignore list only from HEAD and say when the scan did not run. Codex rewrites carry allow only for a single devkit call or when Codex never asks; Codex members get advice as a lane notice. dev status and the dashboard show the dev crew decide line; dev crew rules marks advice as advised; the bug registry accepts only the old refusal ids and refuses destructive detour steps; settle lines are not presented as the developer's; hook tracebacks are redacted. Verified: Backend engineer: 370 tests in 16 files on python3 and 3.9 plus 30 proved tests; DevEx engineer: 936 tests on 3.15 and 3.9, 20 proved tests; dev docs check clean on CHANGELOG.md and SECURITY.md
The re-review of the guard-removal fixes found that devkit could approve a command the developer's Codex settings would ask about, and that dev git push and the detour denylist could be sidestepped by option forms. Root cause: The Codex allow gate judged commands with a bash-only reader, so zsh expansions such as =(…) passed as one devkit call and got allow where the developer's Codex asks; dev git push read only full option spellings and literal refspecs, so abbreviations, * refspecs and --follow-tags skipped its checks. Where Codex never asks, every rewrite carries allow. Where it asks, only a lone dev progress, crew, watch or session call made of plain words, with the command as the only input, is rewritten with allow; anything else is left to Codex and the member and tech lead are told. dev git push refuses abbreviated long options and * refspecs and checks --follow-tags like --tags. dev commit warns when a commit changes what the secret scan sees. The detour denylist skips git and gh global options before matching. SECURITY.md says devkit's checks catch mistakes, not determined agents; docs and CHANGELOG follow. Verified: Backend engineer: dev test --since HEAD passed 4660 tests in 217 files; /usr/bin/python3 3.9 passed 220; dev test prove: 10 new tests fail without the fix; dev docs check clean on SECURITY.md, CHANGELOG.md, docs/agents.md, agents/AGENTS.md, docs/concepts.md
PR 39's CI failed on three tests that pass on a developer's Mac: two escalation settles and one welcome check. Root cause: The detached-run check reads the real process table: PeerCase sessions use made-up pids 101, 202 and 303, which are live daemons with no terminal on the macOS runner, and the welcome sandbox's session pid has no terminal or app above it there, so both read as detached headless runs. Locally a terminal and its app sit above every process, so the tests passed. PeerCase and the welcome Sandbox now answer the attachment check as a terminal, since none of their tests is about attachment. The tests job's timeout goes from 60 to 90 minutes: the suite took 46 minutes on the runner. Verified: reproduced the failure with no controlling terminal and no app above the process (start_new_session, _app_main false): test_welcome failed before and passes after; tests.test_peers_claims, test_peers, test_welcome, test_peers_security, test_hooks_peers OK on python3 and /usr/bin/python3 3.9; actionlint clean
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.
What and why
Sessions kept stopping for typed grants on routine delivery, and the 26.11.19 candidate could not pass its own
security gate. This release makes automatic mode the default without grant prompts for routine work, makes the
security scan complete and deterministic, and fixes the 49 defects (14 high) that a review of every subsystem found
in the candidate.
Changes
(a project's own release script included) and programs the guard cannot classify run by policy, each with an audit
record. Another repository, or one of the developer's own decisions (embargo, backup publishing, bug sharing,
lesson release, removing devkit from an agent, turning an agent off), needs a typed grant, which works in both
modes; every refusal names the exact grant line. An invalid configuration refuses irreversible actions only.
Semgrep analyzed as a single function.
dev sec scanand the CI gate share one serial Semgrep command with noper-rule time limit, because Semgrep's taint budget reads CPU time that parallel workers share (4 to 169 timeouts
on the same tree, depending on load). Two framework rules (boto3, Flask) are left out only when no file imports
their packages. The CI security job allows 60 minutes.
bugs.syncandbugs.shareare honored and only the developer changes them; the outbox journal iscompacted and bounded.
dev doctor, and are named with therepair command.
install.sh --yes,dev updateanddev setupwork in auto mode (authorization handed tothe install they start); optional install steps finish with problems (exit 3) instead of failing.
replayed after the upgrade; two sends in one shell call are two messages; steps close done only with an explicit
✓; proofs count in worktrees and through read-only pipes.
terminal keeps the backup question in auto mode.
framework Python.
these behaviors.
How to verify
dev ci --run --step-timeout 60, thendev ci --run --resumeafter a docs-only edit → all 8 stepspassed (compile, native analysis, unit tests, gitleaks, the qualified Semgrep gate, osv-scanner, trivy, zizmor);
evidence recorded for the tree of
babf0b4.python3 -m unittest discover -s tests -t .→ 5512 tests OK (skipped=2).dev docs check→ 0 markdownlint issues, all links resolve, 0 diagram problems.dev config validate, and confirm thatgh pr createin asession's own repository runs without a grant prompt in auto mode.
Risk and rollback
Medium: the change is large and touches the guard, authorization and messaging. A saved configuration key that
devkit does not read makes the configuration invalid until it is removed with
dev config edit; while it isinvalid, irreversible actions are refused (ordinary commands keep working). Rollback: install the previous release
with
dev install --version 26.11.18; the tag stays.Links
[26.11.19]section ofCHANGELOG.md.