Skip to content

chore(release): 26.11.24, the bug sweep - #54

Merged
ancongui merged 28 commits into
mainfrom
fix/bug-sweep-26.11.24
Nov 19, 2026
Merged

ancongui merged 28 commits into
mainfrom
fix/bug-sweep-26.11.24

Conversation

@ancongui

Copy link
Copy Markdown
Collaborator

What and why

Release 26.11.24: a bug sweep. Every open bug report was triaged against the code: 166 reports, 48 already fixed, duplicated or obsolete, 3 not defects (each shown by a reproduction), and 112 real bugs: 6 high, 39 medium, 67 low. This release fixes them, plus the defects the sweep and its code reviews found on the way. Each fix starts from a test that fails without it.

Changes

  • Crew and progress: dev progress begin refuses a closed step; the SubagentStop hook gets 10 s; a delegated step queues for a busy lane and a reassignment takes it out; lane calls two members typed alike are refused; scopes count per checkout; Codex late records, item support and the ledger's process check.
  • Git, pull requests and CI: dev pr merge --auto reads the PR again and never reports a waiting auto-merge as done; dev ci --run skips Linux-only setup and home-folder writes but always runs a check; the Semgrep step runs in a worktree; embargoes hold across every project, fail-closed; dev pr ready needs evidence for any PR's head; dev commit follows the repository's convention and leaves a working lane's files; PEP 440 versions; the security gate keeps the exact rules it ran; devkit's own CI runs its tests in two parts per Python.
  • Security and privacy: per-bug voter digests in the bug registry; audit details masked (goals, step names, launch labels, made-up options); only the main session and the developer's terminal see other sessions' words; lesson anchors refuse destructive programs; the lesson screen holds hook-skipping flags in the fields agents act on.
  • Sessions and handoff: each Mac writes only its part of a note's auto block, and dev sleep removes the parts of Macs gone for 30 days; notes, plans and branches take the locks dev sync holds; the PR cache is bounded and locked; lock files are swept safely.
  • Setup and doctor: Codex hook trust by identity, two new dev doctor rows (Google Chrome, the dev link on PATH), config restores from the right copy, a test sandbox that cannot start real syncs, npm installs or Docker pruning.
  • Dashboard and visual: capture redirects to another host stop before they are sent; mask covers follow clipping; the crawl loads pages from the app, guards each hop and every shared worker request; work and visual ids keep a fixed width past 2027-12-01.
  • Docs and CHANGELOG: about 40 pages and lines updated, and a 26.11.24 CHANGELOG section with one line per fix. Version files at 26.11.24.

How to verify

  • dev ci --run: 8 steps green in 39m11s on Python 3.13, from a managed worktree (the Semgrep step's worktree fix, live): unit tests 35m50s, Semgrep gate 0 new findings with 43 reviewed dispositions, gitleaks, osv-scanner, trivy and zizmor clean.
  • Every fix commit names its root cause and its verification; each member ran its tests on Python 3.15 and 3.9.6 and dev test prove showed the new tests fail without the change.
  • Two independent code reviews of the whole range, the second of which approved the final tree after its five findings were fixed.

Risk and rollback

The changes are bug fixes, many small, across most modules; the risk is in the behaviors that changed on purpose: auto-merge refusals, local CI skipping setup, embargoes held across projects, and crew members seeing less of other sessions. Each has a test and a CHANGELOG line. devkit's own CI now runs four test jobs instead of two; main has no required checks to rename. To roll back, release 26.11.23 again; no data migration is involved, and work and visual ids written by 26.11.24 still read in 26.11.23 (they sort after the old ones).

Links

Six dev test and dev test prove defects from the bug triage. prove no longer credits another test's error to a test that has no result of its own: a module that fails to load, a failing class or module setup, or a test that did not run each gets its own verdict. An unscoped dev test, plan or prove in a crew lane keeps only the lane's changed files and names the rest. Claude runs' logs are allocated and pruned under the same lock as Codex's. A package without its own environment uses the nearest parent with .venv or uv.lock. prove's copy links setuptools-mapped packages to its own folders, and restores helper code changed inside a test module, so a fix there can be proven.

Root cause: testx.py gave a test with no result the first failure of its file; changed_files had no lane filter; the non-Codex _log_path pruned logs without a lock; _venv_python looked only at the package folder and the repository top; _copy_source_paths skipped code-running .pth lines; only helper files counted as part of the change

Verified: python3 -m unittest tests.test_testx tests.test_runner_logs: 180 OK (tech lead); 216 tests on 3.15.2 and 3.9.6; dev test prove --since 0807d5b: 12 of 12 new tests fail without the change (DevEx engineer)
Five low-severity dev test defects: a release-cut branch measured its changes against the wrong base, a deleted file's failures stayed recorded, plain node scripts lost their node options and their blast radius, and folders of killed runs were left behind. Each now has a test that fails without the fix.

Root cause: testx.py took origin's default branch as the base of release/* and integration/* branches, kept recorded failures of files that no longer exist, built plain node script runs without the project's node options, mapped no blast radius for them, and removed run folders only when the run ended normally

Verified: python3 -m unittest tests.test_testx: OK (tech lead); 181 of 181 and 596 affected tests on 3.15 and 3.9.6; dev test prove --since 4619428: all 5 new tests fail without the change (DevEx engineer)
Twelve crew and progress defects from the bug triage. dev progress begin refuses a closed step and step closes only the step begun, never one whose name only shares a word. The SubagentStop hook gets 10 s with a 6 s budget for the gates, so a slow gate no longer leaves a lane open. The gates track background Agent launches, count a failed stop as ended only when the task no longer runs, and skip malformed records instead of turning off. Scopes in two worktrees no longer clash, stale lanes no longer count as working, a sent-back step keeps its lost lane and names the exact relaunch, the call ledger matches whole words, short step names match their step, a resumed member is told the line that gives it a new step, a saved auto mode takes decisions left waiting from guided time, and a hook and a wait no longer report the same item twice.

Root cause: begin skipped a done step silently and step fell back to any running step; the hook's 5 s limit was below the gates' unbounded run; the gates trusted every TaskStop error and every transcript record; scopes, lanes and ledger matches compared raw state and substrings; the wait and the hook printed items before claiming them

Verified: python3 -m unittest tests.test_progress tests.test_crew_gates tests.test_approvals tests.test_watch_sources tests.test_continuity_wiring: 296 OK (tech lead); 283 tests on 3.15.2 and 3.9.6; dev test prove: all 24 new tests fail without the change (Senior engineer)
Five security and privacy defects from the bug triage. The bug registry's voter id no longer links one person's votes across reports: it is keyed per report, which still catches a second vote on the same report. The audit trail records run goals, step names and dev codex prompts as their length and a run id, and masks name options whose value holds a space, in every spelling of the option; --command and --section count as free text. The lesson screen flags eleven destructive forms it let through, such as a +main push, find -delete, dd of=/dev, shutil.rmtree and core.hooksPath=/dev/null. dev ext outdated checks that every SHA pin is on the extension's default branch, as dev ext update did.

Root cause: bug_registry_action.py hashed a voter with one key for every report; audit.py kept run goals and step names in clear and read name options only when their value had no space; lessonlint.py's patterns missed those forms; ext.py checked SHA pins only in update

Verified: python3 -m unittest tests.test_audit tests.test_audit_lane tests.test_bug_registry_action tests.test_codex_audit_identity tests.test_ext tests.test_lessonlint tests.test_security_corpus: 449 OK (tech lead); 128 affected files on 3.15 and 3.9 OK; every new assertion fails without its fix (Security engineer)
Six low-severity audit, registry, lesson and extension defects from the bug triage. A made-up long option before a shell's -c is recorded as its length, and crew launch labels in crew.start, crew.bind and crew.resume details and targets are recorded as their length too. The public audit context finds its caller as a record does, so a member is never recorded as the developer. Lesson anchors refuse destructive programs alone, such as dd, shred and mkfs. A bug-report hint's dev slot accepts its leading dev. dev ext ack sends a security notice and every session start for a day shows it, and an accepted extension's audit record is written only after the list write succeeds, with an id that reserve_id issued.

Root cause: audit.py kept every option name before -c and the labels in launch records, and read a caller without a lane as main; lessonlint knew only bare and everyday programs; bugs.py normalized only step-shaped dev values; ext.py marked the ack shown on first read and wrote the accept record inside the state callback

Verified: python3 -m unittest tests.test_audit tests.test_audit_lane tests.test_bugs_cli tests.test_lessonlint tests.test_ext tests.test_security_corpus: 426 OK (tech lead); 1719 tests in 46 files on 3.15; dev test prove --since 73d59d9: 9 new tests fail without the change (Security engineer)
The 26.11.16 Cleanup entry read 'is check first'.

Verified: git diff: one word in CHANGELOG.md line 667
tests.test_module_names failed: lessonlint defined _words twice, so the later definition silently replaced the earlier one for every caller in the module.

Root cause: the commit-flag check added a second _words splitter with the same behavior instead of reusing the module's existing one

Verified: python3 -m unittest tests.test_module_names tests.test_lessonlint: 85 OK
Twenty setup, configuration and test-sandbox defects from the bug triage. Codex hook trust matches devkit's own hooks by identity; a pinned checkout on a branch names the checkout to go back to; the reply language reads Codex 0.167 user records; the canary reads a crew name that opens a sentence before an article as a verb; the test environment keeps DEVKIT_TEST_CHROME and impeccable's critique metadata; dev doctor checks Google Chrome for the DevTools MCP and the dev link on PATH; wizard and consent text wrap only at spaces; backup copies sort and number by time; a config restore offers only copies of the file that broke; file_lock re-checks its file after locking and dev sleep removes idle lock files; the sandbox parses launcher options once and reads env -iu, env -S and unset; the npm guard folder survives a replaced PATH; bash completion unquotes the typed word; pin_npx catches quoted and sentence-final @latest; the stop hook harness no longer starts real detached syncs; and setup no longer opens the Claude app inside a test sandbox.

Root cause: each defect had its own cause at the line its test names: policy keyed hook trust by event, setup named dev update on a branch, language read only user_message events, canary flagged every capitalized name, the hermetic env dropped every DEVKIT_ and IMPECCABLE_ variable, textwrap broke at hyphens, copies sorted by name, file_lock trusted a path a sweep could replace, the sandbox used a regex per launcher, the harness left _spawn_sync unpatched, and setup_desktop ignored the sandbox

Verified: python3 -m unittest on the 26 setup, core, wizard, completion, policy, language, canary, impeccable, tui, sleep, sandbox, hermetic and work modules: 474 OK (tech lead); 54 files, 1284 tests on 3.15 and 3.9.6 and dev test prove --since ab99ee2 (DevEx engineer)
Seventeen progress, crew, hooks, watch, CLI and lesson defects from the bug triage. dev sync --finish reads GitHub again for projects with a branch due for backup; lesson commands that change a lesson reach only the command's scope, its initiatives and global; a global lesson's third repeat opens its work item; lesson usage folds the local counter; merges work from the file on disk; review names lessons caused by a devkit bug; --search includes archived lessons. Plan steps named with 'and' bind after the plan is known; questions that approve steps are sent as they are; a Codex member's late records settle at SubagentStop and any item record counts as item support; the ledger records the agent process and judges a Codex call in its workdir; the slot limit has hysteresis and one notice key; dev ci status --watch waits for the branch commit's run; dev status matches project names whole; dev crew owner finds an unstamped caller; and a new launch takes over its ended lane's unverified step.

Root cause: each defect had its own cause at the line its test names: cmd_sync refreshed PRs only on scheduled runs, lessons.find fell back to every scope, after-clauses were split before the plan was known, item support was read from the first session_meta only, the ledger matched by session without the agent process, _issue_needs matched ids as substrings, and dev crew owner read a caller with no lane as main

Verified: python3 -m unittest on the 52 progress, crew, hooks, watch, cli, lesson, identity, continuity, raci, sync, module-name and consistency modules: 1129 OK (tech lead); 2008 tests on 3.15 and 3.9.6 and dev test prove --since ead6a78 (Senior engineer)
Eighteen registry, session, work, continuity, dashboard, dispatch and diagram defects from the bug triage. Work item ids get a fixed 6-character time part that sorts after every existing id, so the order holds past 2027-12-01; the PR cache keeps merged PRs the newest 200 no longer list; the map skips orphaned worktrees; sync conflict issues are one per set-aside file, named by kind and project; dev branch takes the reentrant notes lock dev sync holds and plan revisions wait as long as the repository lock; each Mac writes only its own part of a handoff note's auto block; continuity reads code spans as Markdown backtick runs; diagram and testx parse options without abbreviations; the dashboard opens no browser in a test sandbox and its CI rows copy the command with the project's cd; lock renewal re-reads each item under its record lock; a release claim takes its project from the checkout, is capped at 16 hours, and JSON rows with other sessions' words carry a frame while crew members see only metadata; dispatch queues a step for a busy lane; and same-second items sort by id.

Root cause: each defect had its own cause at the line its test names: work.new_id wrote seconds as variable-width base36, registry.prs replaced the cache, _holds_all counted orphaned worktrees, handoff_conflict_issues merged all copies into one line, _edit_records took a second lock on a file dev sync held, the auto block was one shared block with a session marker, continuity matched single backticks only, renew_locks wrote from a list read before the lock, peers.claim read the project from the session record only, and dispatch.delegate merged a busy lane's scope at once

Verified: python3 -m unittest on the 40 registry, peers, work, dashboard, dispatch, diagram, continuity, sync, store-lock, branches, plans and testx modules: 742 OK, 1 skipped (tech lead); 50 files, 1235 tests on 3.15 and 3.9.6 and dev test prove --since 07b9418 (Backend engineer)
Follow-up defects the bug sweep found. A busy core.Lock closes its lock file, so every second handoff flusher no longer leaks a descriptor. Hook tests patch work.request_sync, so no test starts a detached dev sync. Three test modules define tearDownModule so Python 3.9 runs their module cleanups, and a consistency test refuses a module that registers module cleanups without it. The Codex exec-script reader skips JavaScript regular expression literals whole. The lesson screen holds hook-skipping flags and configuration paths only in the fields agents act on, not in the story of a mistake. File scopes count in the checkout they were given in, and a lane call two members typed alike names both instead of acting as one. Two tests follow the busy-lane queue rule that delegate now shares with assign.

Root cause: core.Lock.__enter__ returned False with its file open; HookCase left work.request_sync unpatched; Python 3.9 runs addModuleCleanup cleanups only for modules that define tearDownModule; scope.py had no rule for /…/ literals; lessonlint screened every field the same; scope_holders and the edit advice ignored the lane's checkout; identity settled on the first matching member

Verified: python3 -m unittest on 65 progress, crew, hooks, scope, identity, lesson, core, store-lock, handoff-push, consistency, ext, installer, config-writer, watch, dispatch, cli, language, module-name and sync modules: 1434 OK (tech lead); 2542 tests on 3.15 and 3.9.6 and dev test prove --since 47ed51d (Senior engineer)
Seven visual diagnosis and dashboard defects from the bug triage. A capture now fails a top-frame redirect to another host before the browser sends it, and a new window follows no redirect, so a capture without --remote never reaches another host. The overlap check compares text line by line, so wrapped inline code no longer reports a false overlap. A capture stops only its own processes, and mask covers are cut to the boxes and inset clip-paths that clip them, never smaller than the masked content. Component matching reads selectors in one spelling. Visual records name the GitHub user, never the Mac's login. Visual ids get the fixed-width time part work ids use, so their order holds past 2027-12-01. The dashboard scrolls the selected page tab into view at narrow widths.

Root cause: capture.cjs's guard saw only a navigation's first request, and a new window's first request had no frame; checks.js joined a text's lines into one box; store._stop matched the capture folder as a substring and covers ignored clipping ancestors; map.py normalized only spaces in selectors; store.py and map.py fell back to USER; store.py wrote unpadded base36 seconds; app.js rebuilt the tab bar scrolled to 0

Verified: python3 -m unittest on the 30 visual, dashboard, disk, gc, noderun and work-id modules: 838 OK, 1 skipped (tech lead); 811 tests on 3.15 and 490 on 3.9.6 and dev test prove --since a8fa9b9 (Frontend engineer)
The sweep's fixes changed what devkit does in about thirty places the docs describe: test proving and lane scoping, the SubagentStop budget, progress begin and the tech lead's checks, scopes per checkout, lane identity, extension acks, bug hints, lesson anchors, the lesson screen and write scopes, dev sleep's lock sweep, config copies, dev ci status --watch, two dev doctor rows, the per-Mac auto block, what crew members see of other sessions, release claims, and the visual capture's redirect, overlap and mask rules. The CHANGELOG gets a 26.11.24 section with one line per fix, grouped by area.

Verified: dev docs check on the 13 files: 0 markdown issues, 411 links and anchors OK, 0 Vale errors (Technical writer); every line checked against the code it describes
A copy of devkit failed its own dev docs check on this SVG fixture, which had no title for people who cannot see it. A title changes no pixel, so the lazy-load capture tests still read the same picture.

Verified: python3 -m unittest tests.test_visual_capture -k Lazy: 3 OK
A crawled page's scripts, images and fetches on another port of this Mac failed to load, and a redirected script imported from the wrong address. The crawler now lets Chromium load each page from the app itself and checks every redirect hop at the response stage before it is followed, keeping every crawl guard: GET only, one origin for documents, avoided and excluded paths, and no request from a window the page opens. The docs and the CHANGELOG say so.

Root cause: Crawl.guard served each page through route.fetch and route.fulfill, so Chromium treated it as a public page and its Local Network Access check refused requests to another local port, and Crawl.subresource followed redirects itself and served the final answer under the first URL

Verified: python3 -m unittest tests.test_visual_crawl tests.test_visual_capture tests.test_visual_map: 126 OK (tech lead); crawl and capture suites 110 OK on 3.15 and 3.9.6, dev test prove --since fbbfaa9: 4 of 4 fail without the change (Frontend engineer)
Seventeen git, pull request, CI and security-gate defects from the bug triage. dev pr merge --auto allows running checks only when GitHub's merge state blocks the merge, merges at once when nothing holds it, and reads the PR again after gh returns, so a waiting auto-merge is never reported as done. dev ci --run skips Linux-only system setup and writes into the home folder as runner setup, with a line, and treats test commands under sudo as root checks. The Semgrep step mounts a worktree's shared git directory read-only, so it runs from a worktree. dev push and dev backup hold embargoed commits of every project, fail-closed, and count only the push target's refs as public. dev pr ready needs evidence for any PR's head; dev commit follows the repository's own commit convention and leaves files a working lane holds; PEP 440 versions release; a release watches its tag only when a workflow runs on it; CI waits know their repository; finished runs on GitLab, Bitbucket and Azure list their jobs; dev ci --commands skips workflows that never run on pushes or pull requests; the security gate keeps the exact Semgrep rules it ran; and the test job runs in two parts per Python with full history.

Root cause: each defect had its own cause at the line its test names: merge_gate let pending checks through with --auto and _pr_merge never re-read the PR, _prep_one had no rule for Linux system setup or home-folder writes, the Semgrep step mounted only PWD, read_embargoes read the checkout's own project only and --not --remotes counted every remote, ready checked evidence only for the checked-out branch, commit_violation knew only Conventional Commits, version_scheme knew only CalVer and SemVer, and the release always started a tag watch

Verified: python3 -m unittest on 20 gitx, ci, ciwatch, cistatus, branches, backup, commit, security-corpus, hooks-wiring, workflow, release, pr, delivery, consistency and completion modules: 782 OK (tech lead); actionlint clean; 5682 tests on 3.15 and 3.9.6, zizmor and dev ci audit clean, dev test prove --since 19f512e (Senior engineer)
A shared worker on a crawled page could send a POST and reach an avoided path, which breaks the crawl's GET-only promise. A browser-level Fetch guard now applies the crawl's rules to every request a shared worker sends, at the request stage and at each redirect hop, so pages that use one keep working. The docs and the CHANGELOG say so.

Root cause: Chromium runs a shared worker in a target of its own and Playwright detaches from shared_worker targets, so neither the context route nor each page's Fetch session saw what a shared worker sent

Verified: python3 -m unittest tests.test_visual_crawl tests.test_visual_capture tests.test_visual_map: 128 OK (tech lead); 128 on 3.15 and 3.9.6, dev test prove --since 19f512e: both new tests fail without the change (Frontend engineer)
Release 26.11.24 ships the bug sweep; the four version files name the release the CHANGELOG section describes.

Verified: git diff -U0 on the four files: one version line each, 26.11.23 to 26.11.24
The git and CI fixes changed how dev pr merge --auto, dev pr ready, dev commit, dev push and dev backup embargoes, dev ci --run setup and --commands, the security gate's kept rules, and devkit's own CI behave. The pages that describe them now match, and the 26.11.24 CHANGELOG lists each of those fixes.

Verified: dev docs check on the 7 files: 0 markdown issues, 219 links and anchors OK, 0 Vale errors; python3 -m unittest tests.test_consistency: 31 OK (Technical writer); every claim checked against b0a2af7
The sweep changed the command line: dev task ls --all, the dev ci status --watch and dev pr merge --auto help, and bash's handling of quoted words. The generated zsh and bash scripts now match the parser again.

Verified: bin/dev completion zsh and bash are identical to the committed files; python3 -m unittest tests.test_consistency tests.test_cli_completion OK
The code review of the sweep found five gaps. Only the main session and the developer's own terminal now see other sessions' words; a caller devkit cannot name, or whose lookup fails, gets the crew member's filtered view. The Codex exec-script reader reads a slash after a closing brace or a postfix ++ or -- as division, so a call there is not skipped. dev sleep removes handoff-note parts of Macs not seen for 30 days, never this Mac's own part and nothing when presence cannot be read, and a Mac without a real machine id writes no part. The PR cache keeps a dropped merged PR while its branch exists locally or for 90 days, written under its lock. core.Lock.__exit__ is safe to call twice, and reassigning a step queued for a busy lane takes it out of the queue and records it. Plan labels left in capture.cjs and ext.py comments are gone.

Root cause: peerscli._member_reads filtered only lanes other than main and empty, so an unknown speaker and a failed lookup saw everything; scope._js_regex read every slash after a brace or postfix operator as a regex; nothing removed another Mac's auto-block part; registry.prs kept every dropped merged PR and wrote without a lock; Lock.__exit__ kept its closed fd; and assign judged a reassignment by owner only, missing steps queued for a lane

Verified: python3 -m unittest on 52 peers, scope, registry, sleep, core, progress, raci, crew, dispatch, handoff-push, hook-capture, ext, security-corpus, module-name, consistency, sync, store-lock, work, branches and hooks modules: 1131 OK; node --check capture.cjs (tech lead); dev test --affected 5746 of 5751 with the 3 failures explained, 135 tests on 3.15 and 3.9.6, dev test prove: 13 new tests fail without the change (Backend engineer)
The review fixes changed who sees other sessions' words, how the Codex script reader reads a slash, what dev sleep tidies in handoff notes, how long the pull request cache keeps a merged pull request, and what a reassignment does to a queued step. The CHANGELOG and the concepts and lessons pages now say so.

Verified: dev docs check CHANGELOG.md docs/concepts.md docs/lessons.md: 0 errors, 134 links OK
The final review found two defects in the git and CI fixes and three smaller gaps. The security gate scans its kept rules file with --no-rewrite-rule-ids, so reviewed dispositions and rule exclusions match again. dev ci --run skips a home-folder write as runner setup only when its piece runs no check, so 'pytest | tee ~/pytest.log' runs. The Codex script reader reads a slash after a block as a pattern and scans its text, and after an object literal as division. A push to a URL no remote names counts no commit as public. The CI test part variable is DEVKIT_TEST_PART, so a SHARD in the developer's shell cannot halve the local gate. Plan labels in the lines this release touched are gone.

Root cause: security.semgrep_command lacked --no-rewrite-rule-ids, so Semgrep prefixed every rule id read from a local file with its folder; _prep_one returned setup for any home-folder write and _classify then marked the whole pipeline as setup; scope._js_regex read every slash after a closing brace as division; _target_has returned --remotes for an unknown URL; and the workflow read SHARD, which the local step environment inherits

Verified: python3 -m unittest tests.test_security_corpus tests.test_workflow_ci tests.test_scope tests.test_branches: 125 OK; actionlint clean (tech lead); 1010 tests in 40 files on 3.15 and 3.9.6, dev test prove 5 of 5, the pinned Semgrep image keeps python.test.eval-use with the flag, zizmor clean (Senior engineer)
The final review fixes changed how the Codex script reader reads a slash after a block, which pipelines dev ci --run still runs when they write into the home folder, and what a push to an unnamed URL counts as public. The CHANGELOG and the command and git guides now say so.

Verified: dev docs check on the three files: 0 errors
The example pipeline in the dev ci --run row and in the runner-setup table broke each table cell at its pipe, and markdownlint refused the code spans.

Root cause: an unescaped | inside a Markdown table cell ends the cell, so the code span lost its closing backtick

Verified: dev docs check CHANGELOG.md docs/commands.md docs/git-and-github.md: 0 issues, 139 links OK
The local CI's Semgrep step failed in a worktree: under Colima a bind mount at the host's own path came up empty in the container, so git found no repository and the corpus could not list its sources. The step now mounts the shared git directory read-only at /gitcommon and names this checkout's git directory with GIT_DIR and GIT_WORK_TREE, which works in a worktree, in a plain checkout and on GitHub's runners.

Root cause: the step mounted the git common directory at its own host path (/Users/...), which Colima's Docker shows as an empty, missing folder inside the container

Verified: the pinned semgrep image with the step's command from this worktree listed 904 files, the same as the host; python3 -m unittest tests.test_workflow_ci tests.test_security_corpus: 26 OK; actionlint clean
The security gate failed on a Semgrep parse error in the generated bash completion: a case arm with a long bracket pattern. The completion now tests the character with [[ ... == [...] ]], which Semgrep parses and bash 3.2 and 5 run alike, with the same ASCII list so cache names stay apart.

Root cause: Semgrep's bash parser cannot read a case pattern made of a long bracket expression followed by a multi-line arm, so the gate counted the generated dev.bash as an unexpected scan error

Verified: semgrep 1.182.0 with the gate's kept rules: no parse error on the new form; /bin/bash -n shell/completions/dev.bash OK; python3 -m unittest tests.test_completion tests.test_cli_completion tests.test_consistency OK
The capture's redirect tests added a fixture page with a plain POST form, which Semgrep's Django CSRF rule flags. It is a loopback test page with no session to protect, reviewed the same way as the test app's account form, pinned to its exact text.

Verified: the pinned semgrep gate from this worktree: passed, 0 findings, 43 reviewed, 0 errors; python3 -m unittest tests.test_security_corpus OK
@ancongui
ancongui merged commit 09891fb into main Nov 19, 2026
5 checks passed
@ancongui
ancongui deleted the fix/bug-sweep-26.11.24 branch November 19, 2026 01:32
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