Repository navigation
chore(release): 26.11.28 - #68
Merged
Merged
Conversation
docs/audit.md lacked rows for calls.use-unrecorded, calls.close-unrecorded, calls.text-ambiguous, calls.text-use-without-result and the text-pin caller records, and the calls.pin-contested, calls.pin-malformed and calls.pin-early rows described the token checks only. pin-contested now names the plain-call cases and what a detail ending in 'the contest could not be recorded' means (neither the pin's marker nor the ledger's contest flag could be made). Verified: dev docs check docs/audit.md: 0 structure issues, all links resolve, 0 Vale findings
A step the tech lead closed lost who closed it once the run's history moved on by 200 changes, so its author's later work on it never made it unverified again. Root cause: _closed_by_another read the closer from the run's history, which keeps only its last 200 entries, so an older close named nobody and the rework check was skipped _finish_step keeps the closer on the step as closed_by, and _closed_by_another reads it; the history stays the fallback for a step closed before steps kept it. Verified: python3 -m unittest tests.test_review_rework (Python 3.15): the history test fails at 374bf59 and passes with the change
A lane's edits for its next step made a step the tech lead had closed unverified again, while the tech lead's close, an approval's ✓ and a review's ✓ ignored the author's rework after the step went unverified, so a review approved work it never saw. Root cause: each close and stop asked its own question: _worked_on_since counted every edit of the lane after a time, _main_edited_since only the tech lead's, the approval and review closes asked nothing, and _edit_in_scope matched a relative glob against the end of any path, so an edit in another repository counted _worked_on_since(run, step, since, sid) now names who worked on a step after a time: a lane that ran it, a helper it launched, or the tech lead. It counts updates that name the step, files of its scope inside the project's checkouts, files its lanes edited for it before its work ended, and for a step with no scope a lane's files while that lane holds no other open step. After a lane closed its step itself, only work on the step's scope or that names it counts. The tech lead's close and an approval's close end reworked unverified work at the close, a review's ✓ neither closes nor approves work done after it began (approvals.from_review takes those steps), and a lane's stop unverifies a closed step only for that step's own work. Verified: python3 -m unittest tests.test_review_rework tests.test_approvals_rework (Python 3.15): the six new tests fail at the previous commit and pass; 314 tests of the approval, review, dispatch and progress modules pass
An author's report ✓ on its unverified step kept the old end of its work, while its own dev progress step ✓ moved it, so a review begun before approved a close it never saw. Root cause: _end_member_step moved the end of the work only when the lane had worked on the step since it ended unverified, and the closing dev progress step counted as that work while a report's ✓ did not An author's done close of its own unverified step ends its work at that close, whichever channel it comes through. Verified: python3 -m unittest tests.test_review_rework (Python 3.15): the report close test fails at the previous commit and passes; 289 tests of the approval, review and progress modules pass
dev progress assign --scope saved a secret, a URL, a .. segment or a folder outside every checkout in the run, all of which dev crew delegate refuses. Root cause: assign split the scope text itself and kept absolute globs outside the repository, instead of checking it with the rule delegate uses assign and delegate share dispatch._scope_entries, which checks the text, and dispatch._repository_globs, which keeps an absolute path inside one checkout repository-relative and refuses one outside every checkout, with the same messages. A scratch folder or a .. path in an assign scope is now refused. Verified: python3 -m unittest tests.test_dispatch_scope (Python 3.15): the assign tests fail at the previous commit and pass; 272 tests of the dispatch, progress, lane binding and patch scope modules pass
A scope holding U+202E, U+200B or U+2028 was saved: where it is shown, it reads as another path or splits in two. Root cause: _scope_entries refused only ASCII control characters (below 32 and 127), not Unicode format characters, line and paragraph separators, or unassigned code points _scope_entries refuses any character of the Unicode categories Cc, Cf, Cs, Co, Cn, Zl and Zp, for delegate and assign alike. Verified: python3 -m unittest tests.test_dispatch_scope (Python 3.15): the invisible character test fails at the previous commit for each of its three scopes and passes; 30 dispatch tests pass
The crew guide described each close's rework check on its own, and said a member's own close kept its later work off the step and that assign kept absolute scopes outside the repository. One list now says which work counts for a step at every close and stop, when a close ends reworked work, and that assign and delegate refuse a scope by one rule, invisible characters included. Verified: dev docs check docs/crew.md: 0 markdownlint issues, all links resolve, no Vale errors
dev release on release/26.11.27, hotfix/26.11.27 or hotfix/login --version 26.11.27 with tag v26.11.27 present exited 0 and appended the new fragments to the shipped 26.11.27 section of CHANGELOG.md. Root cause: prepare_release checked the version with its own copy of the format checks (changes.version_refusal) and never looked for the tag, which only _release on the default branch checked gitx.release_version_refusal holds the one version check, the tag included, and both _release and prepare_release call it; the copy in changes.py, which reached into gitx's private names, is gone. Verified: python3 -m unittest tests.test_release_fragments tests.test_changes: 44 tests OK; the three release-branch forms failed with rc 0 before the fix; tests.test_gitx -k release: 11 OK
When the release's section was the last one in CHANGELOG.md, dev release put the fragments' entries and any new ### heading after the link definitions that end the file, outside the section they belong to. Root cause: merge ended an existing section at the next level-one or level-two heading, or at the end of the file, so for the last section the trailing link definitions and blank lines counted as its lines The last section now ends before the blank lines and link definitions at the end of the file, the same walk the new-section branch already made; both use one helper, _before_links. Verified: python3 -m unittest tests.test_changes: 37 tests OK; the new test failed before the fix with the entry after the link definitions
The comment still described the contest as a mark inside the ledger entry, which the identity fix replaced with a flag file of its own Verified: python3 -m py_compile lib/devkit/hooks.py; comment only
dev release on a release branch rewrote a CHANGELOG.md with CRLF line endings as LF, so the release commit changed every line of the file instead of adding the new ones. Root cause: merge turned every \r\n into \n before it split the CHANGELOG into lines and always joined the result with \n merge keeps the line ending of the CHANGELOG's first line, and prepare_release writes the bytes as merge returns them, so no platform translates the newlines again. Verified: python3 -m unittest tests.test_changes: 38 tests OK; the new test failed before the fix with an LF file
When a release's subsection ended with a fenced code block, dev release wrote the fragments' entries right after the closing fence, which Markdown linters flag (blanks around fences) and some renderers read as one block. Root cause: _section appended the new entries straight after the subsection's last kept line, without looking at whether that line closed a fenced code block A subsection whose last kept line belongs to a fenced code block gets one blank line before the new entries. Verified: python3 -m unittest tests.test_changes: 38 tests OK; the fence test failed before the fix without the blank line
Five parts of the rule that decides which work counts for a step had no test: in-memory mutants of each passed the whole rework suite. One test each: a file the lane edited after the step's work ended or before it started is not the step's; a note naming no step while the lane runs another step is not; a file of another step's scope is not the work of a step with no scope; the tech lead's edit of the step's file after his own close is. Verified: python3 -m unittest tests.test_review_rework (Python 3.15): 13 pass; each of the five mutants fails exactly its test
dev ci --run --dry-run planned the steps and exited 0 on a branch that edits CHANGELOG.md or holds a fragment it cannot read, without saying that the real run fails on it before any step. Root cause: run_local_ci looked at changes.ci_problem only when it was not a dry run, so a dry run dropped the problem instead of reporting it A dry run prints the problem and its details as a warning, then plans the steps as before; the real run still fails on it. Verified: python3 -m unittest tests.test_release_fragments: 9 tests OK; the new test failed before the fix with no warning
The guardrails table said only dev ci --run fails a CHANGELOG.md edit, though dev ci --mark-passed fails it too, and the guide did not say that dev release refuses a version already tagged on a release branch or that a dry run warns. The Change fragments section says a tagged version is refused, that the link definitions at the end of CHANGELOG.md stay there, and that dev ci --run --dry-run warns; the table row names dev ci --mark-passed and the tagged-version refusal. Verified: dev docs check docs/delivery.md: 0 markdownlint issues, all links resolve, 0 Vale findings
The CHANGELOG line for change fragments should tell readers that dev release on a release branch refuses a version that is already tagged, as it now does. The Added entry names the tagged-version refusal, rewrapped evenly. Verified: changes.read parses the fragment (one Added entry); dev docs check changes/feat-changelog-fragments.md: 0 issues, 0 Vale findings
The docstring had one line holding only 'and says' after the tagged-version sentence was added, which reads as a broken sentence. The last sentences are wrapped evenly; no code changes. Verified: python3 -m py_compile lib/devkit/changes.py: OK; git diff shows the docstring lines only
A test that ran sh -c 'echo $(python -I ...)' started a Python that skips prove's import record, yet the recorder did not flag it, so a run with no record of its imports could still read as proof. Root cause: the recorder split a shell line into commands and skipped echo and printf by their first word, so it never read the commands inside $( ) and backticks, which the shell runs before echo prints their output The recorder reads the inside of each $( ) and backtick pair, outside single quotes, as command lines of their own. Verified: python3 -m unittest tests.test_testx_prove in a copy of this commit: 37 tests OK; dev test prove: the recorder test fails without the change
prove left out a test file whose change was to a test class's run() or __init__, a fixture pytest finds by its name= alias, pytestmark, load_tests or a pytest hook: no test names those helpers, so prove counted no changed test there, though each runs for every test. Root cause: _changed_units took a changed helper that no test names as reaching no test, for a helper that was there as for one the change adds, and only setUp, module setups and autouse fixtures were known to run for every test A helper the test framework calls (run, __init__, __call__, setUp and its kind, a dunder, a module setup, pytestmark, load_tests, pytest_*, any fixture, a JavaScript hook) reaches every test it runs for. Only a helper the change adds that no test names reaches no test; a changed helper that was there and that no test names counts the whole file again. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove in a copy of this commit: 40 tests OK; with tests.test_testx.ProveTests: 88 tests OK; dev test prove: the new tests fail without the change
prove undid a helper change inside a test module by patching git's -U0 hunks, and git pairs lines across helpers: a changed helper came back as neither its base text nor its text now (one lost its return line), and a test that failed on that mix read as proof. A new test or a kept new helper that read a name only the helper edit gave (an attribute, a parameter) failed on that name without the change and read as proof too. Root cause: _support_text rebuilt helpers from diff hunk positions, which git aligns by matching lines, so a hunk could pair a changed helper's last line with the same line of a helper the change adds; and nothing marked a test that needed the helper edit itself Each helper is matched by class and name and comes back as its own base text; one the change removed comes back next to its neighbor; one it adds stays whole. The result is read again: every helper must be its base text or its text now and still find each name a removed import gave, else the module's tests cannot be proven. A test that names a word whose meaning the restore changes (a name in a rebuilt helper's lines now and not at the base, or the other way round, or a rebuilt function whose parameters changed), in its own text or in a helper the change adds that it reaches, cannot be proven. A JavaScript class's members are read at the class body's own depth only, fields included. Verified: dev test run of every tests/test_testx*.py: 290 passed, and 290 OK on /usr/bin/python3; after moving one constant, tests.test_testx_prove and tests.test_testx: 252 passed on both Pythons; dev test prove --since HEAD: 14 of 14 new or changed tests fail without the change; the review probes give no false proof
When this Mac pruned a finding's picture before, verify told the developer to run dev visual capture --again, which takes the page as it is now: the new picture is an after, never the before, so the next verify still compared nothing.
Root cause: _settle's message for a picture before pruned from this Mac's store named capture --again as the way forward, though no capture can bring the picture before back
The outcome now says the picture before is no longer in this Mac's store, so nothing was compared, and names no command; the history keeps its words.
Verified: timeout 600 python3 -m unittest tests.test_visual_verify.BeforePrunedHereTest tests.test_visual_verify.BeforeElsewhereTest: 5 tests OK; the changed test failed before ('… nothing compared: the picture before is no longer in this Mac's store; capture it again: dev visual capture --again VC-…')
dev test prove now rebuilds each changed test-module helper from its own base text and checks the result, counts a helper the test framework calls as reaching every test, and reads the inside of $( ) and backticks; the guide still described the hunk-by-hunk restore Verified: dev docs check docs/testing.md: no errors
A capture taken here before devkit kept a machine id names this Mac by its hostname then (local:<hostname>); once this Mac pruned that picture, verify said it was taken on that hostname and is not on this Mac, naming this Mac as another one.
Root cause: _settle compared the record's Mac with this Mac's machine id only, so a hostname this Mac carried when it took the capture never counted as this Mac (store.py _settle, pruned = before_on == identity.machine().id)
taken_here reads a capture's Mac as work.mine reads an older record: this Mac's machine id, or a hostname this Mac carried at the capture's time (identity.was_this_mac); a capture taken under that name after this Mac dropped it stays another Mac's. verify passes it to _settle, and the history names this Mac by its machine id.
Verified: timeout 600 python3 -m unittest tests.test_visual_verify.BeforePrunedUnderAnOldHostnameTest tests.test_visual_verify.BeforePrunedHereTest tests.test_visual_verify.BeforeElsewhereTest: 6 tests OK; the new test failed before ('nothing compared: the picture before was taken on ana-macbook-pro and is not on this Mac' for a capture taken here)
When this Mac pruned a capture's picture or description, describe, marks and share said it 'is not on this Mac: it was taken on <this Mac>', a sentence that contradicts itself and sent the developer to look for another Mac.
Root cause: judge._description, judge._picture and store.share named the Mac in the record as the place the file is, without asking whether that Mac is this one, by its machine id or by a hostname it carried then
store.not_here reads the record with taken_here, the test verify uses: describe and marks say the description or the picture is no longer in this Mac's store and keep 'Capture it again here'; share says so and 'Nothing was shared.', since a new capture would be another picture. A capture on another Mac reads as before.
Verified: timeout 600 python3 -m unittest tests.test_visual_describe.PrunedHereTest tests.test_visual_store.SharePrunedHereTest tests.test_visual_describe.DescribeCommandTest tests.test_visual_describe.MarksCommandTest tests.test_visual_store.ShareTest tests.test_visual_check: 33 tests OK; the new tests failed before ('is not on this Mac: it was taken on ana-macbook-pro (m-test0001)')
The HTML report renamed any m- plus 8 characters in a finding's history, so a reviewer's reason such as 'the m-dropdown menu overlaps' read 'the another Mac (m-dropdown) menu overlaps'.
Root cause: report.MACHINE_IN_TEXT matched a machine-id shape anywhere in a history reason, and macs_named and the audit load applied it to people's --why text as well as to the words store._settle writes
The pattern matches a machine id only where a verification writes one, 'the picture before was taken on m-… and is …'; a person's words stay as written, and the audit no longer resolves their look-alike ids as Macs.
Verified: timeout 600 python3 -m unittest tests.test_visual_report: 86 tests OK; the new test failed before ('the another Mac (m-dropdown) menu overlaps the header at another Mac (m-1440wide)')
On a loaded machine the same checkout lost its isolated-import evidence and the snapshot test failed 6 of 20 runs.
Root cause: _proof_snapshot in lib/devkit/testx.py stopped after a 0.2 s monotonic deadline (PROOF_SECONDS), so hashing 750 files under CPU load returned unknown ({}) although the file and byte limits already bound the work
Verified: test under 11 stress processes: 50/50 on Python 3.9.6 and 50/50 on 3.15.2 (6/20 failed before); dev test prove: the test fails without the fix; an unbounded snapshot fails the PROOF_FILES and PROOF_BYTES subtests
dev audit --publish and the daily audit job copied this machine's closed days to the handoff repository as stored, so a typed key, a job's name, a whole jobs.set detail, a value digest or a secret the redactor learned since, held in a line an older devkit wrote, reached the team repository and its git history for good, although every reader now hides it. Each line now goes out as a reader sees it; a line already clean goes out byte for byte. A cleaned v2 record keeps its id, prev and hash and is marked cleaned; a cleaned v1 line goes out as its reader view; a line no reader can read goes out as a stand-in holding its id. The anchor matches a cleaned line to its local line by id and hash and by how both read today, so a team-copy edit marked cleaned still diverges and a redaction pattern added since changes nothing; verify notes elsewhere what a cleaned copy cannot prove. Nothing is published while the redaction patterns cannot load. Root cause: publish wrote data[begin:end] of the local month file byte for byte: the read-time cleaning (lift and _reclean, with the key and job-name rules of 22bc4a5) ran only in readers, and the anchor and verify required the published copy to be the local bytes, so no cleaned line could be published without breaking them Verified: python3 -m unittest tests.test_audit tests.test_audit_lane tests.test_jobs_audit: 167 tests OK; tests.test_sync, test_branches, test_doctor, test_consistency, test_config_writers, test_zz_real_state_untouched: 175 tests OK; dev test prove --since HEAD: the 4 new or changed tests fail without the change; dev docs check docs/audit.md: 0 issues
test_the_redactor_runs_in_linear_time failed at 12.4 s against its 2 s limit at load average 75: a wall-clock limit measures the machine as much as the redactor. It now takes the CPU time of each command-rule text at 4 KB and at 64 KB, the faster of two tries, and requires the longer text to take less than 40 times as long: a linear redactor takes about 16 times, a rule that scans to the end from every word about 256 times. Root cause: the test compared elapsed wall-clock time with a fixed 2 s limit, so other processes on a loaded machine (load average 75) made it fail with a linear redactor Verified: python3 -m unittest tests.test_audit.RedactionTests: 10 tests OK, six runs of the test OK at load average 53-88; the same test with redact patched to add one rule that scans to the end from every word fails (59 times as long for 16 times the text)
The audit reference did not say how a command line's configuration key and job name are recorded, how a job run's action names a job, or what jobs.set, jobs.install and dev.config.set records keep, so a reader could not tell a masked key from a missing one or find a job's records by its id. Verified: dev docs check docs/audit.md: 0 structure issues, all links resolve; one Vale weasel-word warning on line 582 that predates this change
Any teammate can write a line into the handoff repository's audit copies or its audit policy. A line nested 100,000 levels deep stopped dev audit --team, dev audit verify, publish and every audit record on that machine, and a deep policy made readers fall back to the built-in redaction rules. Audit lines, held-day records, an old record's JSON detail and the team policy are now parsed by one helper that treats a value past the parser's limits or nested deeper than 64 levels as unreadable, the way a cut-short line is: readers skip it, publish writes its stand-in, verify names it in a note by the stand-in's id, and a too-deep policy fails closed as invalid JSON. Root cause: The audit readers caught only ValueError around json.loads. Python 3.9 to 3.13 raise RecursionError while parsing a line about a thousand levels deep, and Python 3.15 parses 100,000 levels but then overflows the stack in what reads the value (repr in lift, json.dumps in verify's digest), so a teammate's nested line escaped every handler. Verified: python3 (3.15) and /usr/bin/python3 (3.9) -m unittest tests.test_audit.DeepNestingTests: 6 tests OK, all 6 failed or errored before the fix; dev test run on test_audit, test_audit_lane, test_jobs_audit, test_codex_audit_identity: 146 passed
pytest-timeout 2.2 and later stops a hung test with "Failed: Timeout (>1.0s) from pytest-timeout.", which prove counted as the test failing on an assertion, so a test of a rebuilt module that timed out without the change proved it.
Root cause: the lookahead in _ASSERTION excluded only "Failed: Timeout >", the message of pytest-timeout before 2.2, so the "Timeout (" of the current message passed as pytest's own Failed
A Failed that says Timeout is never an assertion, bare or after E or _pytest.outcomes.
Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove.FailedTimeoutTests FailureKindTests: OK; the changed test failed before the fix (three messages read as assertion)
A test that stopped before it unlocked a read-only folder in the proof copy made prove crash with FileExistsError when the rerun made its fresh copy. Root cause: the rerun removed the copy with shutil.rmtree(ignore_errors=True), which leaves a folder it cannot write in place, and os.makedirs then failed on the copy still there The copy is removed with each refused removal made writable for its owner and tried again; a copy that still cannot be removed (a file locked beyond its owner's mode) gives no rerun, so its tests cannot be proven. The copy at the end of prove goes the same way. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove.LockedCopyTests CleanRerunTests: OK; both new tests failed before the fix with the FileExistsError traceback
A test that failed on an error without the change and left a folder in the temp folder, the home folder, or beside the proof copy failed again on that folder in the rerun, and prove reported a proof of a change the test never reached. Root cause: the rerun with the support as it is now counted any failure as proof, and every run shared the developer's temp folder, so what an earlier run left outside the copy decided the rerun The rerun proves only by an assertion failure, as the run without the change does, and each run of prove has a temp folder of its own (TMPDIR, TEMP and TMP), empty at its start and removed with it. A test that fails on an error in both runs, such as a function only the change adds in a module whose helpers also changed, or a plain node script that imports a changed helper (it fails by its exit code), cannot be proven now. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove.LeftStateRerunTests SupportRerunTests RebuildVerdictTests tests.test_testx.ProveTests.test_node_test_files_are_proven_with_node: OK; the new and changed tests failed before the fix (three false proofs, a mark left in the shared temp folder, errors counted as proof)
The JavaScript reader kept misreading constructs (a division after a variable named of, a postfix ++ before a division, a brace in a template literal's expression, an HTML-like comment), and each misread could hide a statement edit inside a helper's body, so the run without the change reverted it and prove reported a false proof. Root cause: the rebuild trusted its own scanner for where each helper body ends, and nothing checked that cut; the scanner also read a postfix ++ or -- before a slash as an operator, ended a template literal at a brace of its expression, and read <!-- and --> as code in scripts Before a JS/TS module is rebuilt, Node reads each helper body and each test the reader cut, all of a module in one run (lib/devkit/testx_jscheck.cjs): a body Node does not read as one whole function body keeps the module, named by it, and so does a body that may hold JSX or a machine without node. The scanner reads the three constructs as the engine does, so those modules rebuild. The indentation guard is gone: the Node reading keeps every module it kept. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove: OK; the new tests failed before the fix; every review probe case ends kept or cannot be proven, with and without the guard
The prove guide named only the old pytest-timeout message, said a rerun proves by any failure, did not say that a plain node script reaching a changed helper cannot be proven, and described the indentation guard that the Node reading replaces. Verified: dev docs check docs/testing.md: 0 issues, all links resolve, 0 Vale findings
tests.test_bugs_render failed on this branch: devkit's source imports tokenize, which the list of standard library modules whose exception classes readable text may name left out. Root cause: testx.py imports tokenize since the rebuild of test modules from their base text, and bugs.stdlib_namespaces was not given the new module Verified: python3 and /usr/bin/python3 -m unittest tests.test_bugs_render: OK; ExceptionNameTests failed before with ['tokenize'] != [] (also on df59217)
tests.test_identity_token's rule that every process devkit starts in a session of its own builds its environment with identity.detached_env failed for testx, so the rule would fail after the merge, where the other spawn it named is fixed. Root cause: run_tests starts a run with a limit in a session of its own (start_new_session) with an environment built only by identity.runner_env, not by identity.detached_env as every detached spawn must The environment is the same: runner_env already leaves the call token out. Verified: the rule's scan of lib/devkit/testx.py finds no spawn left (it named testx.py:2699 before); python3 and /usr/bin/python3 -m unittest tests.test_testx_partial tests.test_testx_routing tests.test_identity_runners: OK
A capture stopped from outside (the store's capture timeout or Ctrl-C) left a hung design detector and its engine running with no limit. Root cause: noderun.stop killed only the driver's group and the groups naming the run's folder; the detector, started detached by capture.cjs, leads its own group and its command line does not name the folder, and its own 60 s timer died with node stop lists pid, ppid, pgid and command before it kills the driver, and also kills the group of every process whose parent is the driver, never its own group, 0 or 1. Verified: python3 and /usr/bin/python3 -m unittest tests.test_visual_noderun tests.test_visual_runner: 15 OK each; dev test prove: the new test fails without the change
When ps failed in the wait after the groups were killed, the message said only that the browser was not stopped. Root cause: the two stderr messages in killNamed were worded for the kill alone, though processes() also serves the wait loop Both messages now say the browser is neither stopped nor waited for; a test makes the capture's ps listing throw at the bound and reads stderr. Verified: python3 and /usr/bin/python3 -m unittest tests.test_visual_capture: 79 OK each; dev test prove: the new test fails without the change
The review of ConfigChange round 11 found dev config unlock could leave devkit's hooks in neither the managed nor the user settings, and dev config repair crashed on user settings that are JSON but no object Root cause: unlock ran sudo rm on the managed-settings drop-in before writing devkit's hooks into the user settings, so a write that failed afterwards (an immutable file, a full disk) left the hooks nowhere; diff_claude called .get on whatever the settings file held, which raises for a JSON list Verified: two new tests failed first (sudo rm called; AttributeError on a list); test_config_change, test_doctor, test_json_reads OK on 3.15 and 3.9; test_policy and the four other callers' modules OK
# Conflicts: # lib/devkit/branches.py # lib/devkit/core.py # lib/devkit/visual/compare.py # tests/test_core_json.py
noderun.stop now also stops the driver's own children, so the prefix test's stand-in for another run, which the driver itself started, was stopped too and the test failed after the merge Root cause: the test modeled a process of another run as a child of this run's driver, a case real captures never have; once noderun.stop stopped every child of the driver (decision D94), the stand-in was stopped by its parent link, not by its folder Verified: tests.test_visual_store.DriverGroupTest OK on 3.15 and 3.9; tests.test_visual_store OK; no stand-in left running
Version and release notes for the bug sweep that fixes what the firefly-weave sessions hit: crew coordination, caller identity, ConfigChange, JSON reads, dev test prove, CI and visual capture Verified: test_consistency, test_changes, test_release_fragments, test_delivery OK; dev docs check CHANGELOG.md 0 issues, links resolve
A test that fails on an error from a function only the change adds, in a module whose helpers also changed, was reported as cannot be proven, though it failed the same way with the helpers as they are now, so only the production change decided it. Root cause: the rerun with the support as it is now counted only an assertion failure as proof, so an error that the support's edit does not affect, raised again with the same type and message, proved nothing The rerun proves the change on an assertion failure or on the error of the run without the change again: the same type, which both runs name, and the same message once the proof copy's own path is taken out. Another type (a folder an earlier run left outside the copy fails it with FileExistsError), another message, or an exit code, which names no type, still cannot be proven. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove tests.test_testx: OK (76 and 204 tests on 3.9); dev test prove --since 8e07b90: the 5 new and changed tests fail without the fix; dev test --affected: 6184 of 6187 pass, the one failure (the gitx.py detached spawn) fails on 8e07b90 too
The prove guide said the rerun proves only on an assertion failure and that a test failing on a function only the change adds cannot be proven, which is no longer true. Verified: dev docs check docs/testing.md: 0 issues, all links resolve, 0 Vale findings
Round 8 of the prove fixes counts a rerun that fails with the same error type and message as the run without the change; the 26.11.28 notes said only the same way Verified: dev docs check CHANGELOG.md: 0 issues, links resolve
A test whose rerun failed on what the run without the change left outside the copy (a folder in the home folder, beside the copy, or at a fixed path) was reported as proving a production change it never reaches. Root cause: the rerun with the support as it is now counted the same error type and message as the run without the change as proof, and a folder that run left outside the copy reproduces exactly that error on the rerun The rerun proves the production change only on an assertion failure, as before the same-error rule: another error or a pass is cannot be proven, named by what the test raised without the change. A test of a function only the change adds, in a module whose helpers also changed, reads that way again. The per-run temp folder and the fresh-copy rerun stay. Verified: python3 -m unittest tests.test_testx_prove.SameLeftErrorTests (3 places) fails on 54041d4 with proves the change and passes now; python3 and /usr/bin/python3 -m unittest of the rerun, left-state, clean-rerun and rebuild-verdict classes: OK (8 and 11 tests)
A new test that checks a template literal fixture in a JavaScript test module was reported as proving a production change it never reaches: the run without the change put the fixture's base text back. Root cause: the rebuild of a JS or TS test module trusted devkit's own reader for where helper bodies and template literals end, and Node's check read each cut body alone, so code inside a template literal that a misread backtick exposed passed as a helper body and was rebuilt from the base devkit rebuilds only Python test modules. A JS or TS test module whose lines outside its tests differ from the base keeps its change: a test of it that passes without the change is cannot be proven: its module keeps its change: devkit rebuilds only Python test modules, and one that fails proves the change, since only the production change was undone. A module whose only change is its tests has nothing to rebuild. Removed: testx_jscheck.cjs with Node's check, the rebuild's layout and outline readers (_js_layout, _js_parts, _js_entries), the HTML-comment view of scripts and the JS line-break guard. Kept for test names and selection: _js_scan, _js_mask, the bracket and statement readers, _js_units, _js_test_calls, _js_support and the class member readers. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove plus the nine other testx modules (106 tests) and tests.test_testx (204 tests): OK; the new and updated JS tests fail on 3e84303 (30 failures, the template literal case reads proves the change)
A proof copy or a stale copy that held two or more unreadable folders, one inside another, as a stopped test can leave them, was never removed: the rerun lost its fresh copy and the copies piled up in the temp folder. Root cause: a removal pass lists a folder only after an earlier pass unlocked it, one level per pass, and _remove_tree stopped after two passes while the stale-copy sweep made one plain rmtree that ignored errors _remove_tree passes again while a pass unlocks something (a pass on nested locked folders removes nothing until the last one, so the count of what it removed cannot measure headway); modes only rise, so the passes end. The sweep of stale proof copies and run folders removes each with _remove_tree. Verified: python3 and /usr/bin/python3 -m unittest tests.test_testx_prove.RemoveTreeTests, LockedCopyTests, CleanRerunTests, LeftStateRerunTests and tests.test_testx.RunFolderSweepTests: OK; RemoveTreeTests fails on 601d3c8 (4 shapes stay, the sweep returns nothing)
The prove guide said a rerun proves by the same error, that devkit rebuilds JavaScript and TypeScript test modules with Node's check, and that the removal of a copy reads one level of locked folders; none of this holds now. The rerun proves only by an assertion failure, and the guide names the same-error case it refuses (a folder left in the home folder, beside the copy, or at a fixed path) and what that means for a test of a new function in a module whose helpers also changed. A JavaScript or TypeScript test module that changed outside its tests keeps its change, with the verdict its passing tests get. A folder left unreadable at any depth is removed before the rerun. Verified: dev docs check docs/testing.md: 0 issues, all links resolve, 0 Vale findings
The capture rounds made the detector spawn detached, so the reviewed Semgrep disposition no longer matched its source line and test_security_corpus failed on the release Root cause: the corpus pins each reviewed finding to its exact source text; 55c6028 added detached: true to the detector's spawn call without updating the reviewed context Verified: tests.test_security_corpus OK on 3.15 (22 tests) and 3.9
The test of a kept JavaScript module's failing test also passed on 54041d4, where the same-error rerun proved it, so it showed nothing about keeping the module. The failing test reads what the helper's edit gives before it calls the function only the production change adds: a rebuild of the module fails it on another TypeError message, which the base rule calls cannot be proven, while the kept module proves it. Verified: the 19 new and changed tests of tests.test_testx_prove run against an export of 54041d4 with this test file: 41 failures, 0 errors, each an assertion; python3 -m unittest tests.test_testx_prove.JsModuleKeptTests: OK
Round 9 of the prove fixes stopped rebuilding JavaScript and TypeScript test modules and made the rerun prove only on an assertion; the notes described the JavaScript rebuild and the same-error rule Verified: dev docs check CHANGELOG.md: 0 issues, links resolve
Review of prove round 9: a literal 0o700 chmod in a new test helper is a Semgrep finding the CI security gate fails on, the removal loop had no upper bound if a process kept locking folders, and the guide overstated what a kept JS module's failing test proves Root cause: 9294ce0 wrote the test helper's mode as a literal that semgrep's insecure-file-permissions rule flags and looped while each pass unlocked something, which a process still writing in the copy could keep true; the guide's sentence predates the support rule for changed helper files Verified: tests.test_testx_prove OK on 3.15 and 3.9; semgrep p/default on testx.py and test_testx_prove.py exit 0; dev docs check docs/testing.md 0 issues
# Conflicts: # tests/test_caller_identity.py # tests/test_dispatch.py # tests/test_hooks_wiring.py
test_json_reads imports test_mcp since the JSON reads branch, which makes test_mcp a helper module; the helper isolation check from the test-runner branch then failed the merged suite Root cause: two branches crossed: one started importing test_mcp from another test module, the other checks that every module other tests import activates the suite's isolation before importing devkit, and test_mcp did not Verified: test_test_safety, test_mcp, test_json_reads OK on 3.13 path and 3.9 (134 tests each); dev ci --run unit step: 7,034 tests, this the only failure
The capture rounds added a RegExp built from the capture's own folder in killNamed, which Semgrep's non-literal RegExp rule flags and the corpus had not reviewed, so the CI's Code (semgrep) step failed Root cause: killNamed builds its match from the folder path with every metacharacter escaped between fixed anchors; the reviewed corpus pins each accepted finding and had no entry for this new one Verified: semgrep 1.182.0 container: passed, 0 findings, 44 reviewed; tests.test_security_corpus OK (22)
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
Release 26.11.28. Sessions on firefly-weave hit devkit bugs that stopped or misled the crew: a member's verdict
credited to the wrong lane, a ConfigChange hook that let a settings change through when its log could not open,
dev test provereporting proofs for changes a test never reached, visual captures that outlived their time bound,and crashes in
dev sec,dev commitanddev crew owner. This release fixes them at the root and hardens thecode around each one, after a review of every branch by the Code reviewer and a security review of the identity and
settings changes.
Fixes #53, #59, #61, #63, #64, #66, #67.
Changes
devcall is pinned to its own shell when the agent checkspermissions; a contested call is refused and audited whatever is planted in the call ledger, and devkit fails
closed on any name at a ledger mark. The sweep's budget and the ledger root listing are bounded. A piped
dev progress steppasses the gates only when its lane recorded that step.Infinity and numbers past a float's range are refused and never written.
disableAllHooksis refused in user,project and local settings, and
dev doctorreports a project file that holds it. devkit's hooks count only asdev installwrites them.dev install,dev config repair,lockandunlockfail when they cannot write theuser settings, and unlock writes them before it removes the managed file. JSON that another machine or person wrote
is read through one depth-guarded reader, checked by a guard test.
dev test prove. Python test modules are rebuilt from the base text with the new tests in them; JavaScript andTypeScript test modules run as they are (devkit's JavaScript reader could not be made reliable without a real
parser). A rerun proves only on an assertion failure, in a fresh copy with its own temporary folder.
dev ci --runsteps stop cleanly under load;change fragments in
changes/replace direct CHANGELOG edits, and tags follow the project's format.detector's engine, and leaves no temporary folder.
How to verify
dev ci --run(with Python 3.13 first onPATH), and/usr/bin/python3 -m unittest discover -s tests -t .forPython 3.9.
python3 -m unittest tests.test_config_change tests.test_json_reads tests.test_identity_textpin tests.test_testx_provefor the settings protection, the JSON reads, the caller identity and the prove rules.
What ran:
dev ci --runon 2ba78f9 with Python 3.13.18: 8 steps green (unit tests 7,034, gitleaks, semgrep with nounreviewed finding, osv-scanner, trivy, zizmor); evidence recorded for the tree.
/usr/bin/python3) on 2ba78f9: 7,034 tests OK, 5 skipped.security rounds with probes on real processes and real settings files.
Risk and rollback
disableAllHooksin project settings,NaN or Infinity), and
dev config repairexits 1 when it cannot write the user settings. Each refusal names thefile and the fix. Rollback:
dev install --version 26.11.27.Not done (tracked as tasks):
tests/__init__.py.dev crew brief --stepassigning its step; a session-start notice for user settings left unwritten; spreading theledger sweep's random window; stopping a detached detector after a capture driver crash.
Links
CHANGELOG.md.