This page is docs/AUDIT.md in the repository. The repository copy is the source; this is the same text with its links rewritten for the wiki.

VeilVoice: internal audit

Auditor: tilas01 (maintainer). Date: 2026-08-19. Version: 0.1.10 (unreleased), covering the whole tree.

The standard this is held to

Earlier revisions of this document named "an independent audit" as the one outstanding item, and treated everything else as done. That framing is dropped. It let a very large amount of unexamined code sit behind a single caveat, and it made the honest answer to "has this been checked?" depend on someone else doing the work.

The standard now is stated positively, and it is a standard about this code rather than about who looked at it:

Every line is written to current Rust security practice, and the whole tree has been audited against the full range of Rust-specific vulnerability classes: integer overflow and truncating casts under both profiles; panics reachable from untrusted input; allocation sized by untrusted input; every parser that reads bytes somebody else produced; resource exhaustion and loops whose termination depends on a length field; TOCTOU, symlinks and file creation modes; secret zeroization, page locking, constant-time comparison and Debug leakage; cryptographic misuse; concurrency; dependency risk; and error handling that degrades quietly to a weaker posture. The website is held to the same standard as a security boundary in its own right.

Each of those classes has a section below saying what was examined and what was found, including the ones that found nothing, because "we looked and there was nothing" is a result, and it is not the same as not looking.

What has not changed: no external firm or independent researcher has reviewed this code, and the documentation still says so wherever it matters. That is a fact about the world, not an outstanding task item, and it is recorded as such rather than as a promise to be redeemed later. An outside reviewer would still be worth having. The difference is that their absence is no longer offered as the explanation for anything.

The fortieth round: the path from main to a published release

v0.1.23 is the first release cut by promote.yml, so this round walked the whole path once before trusting it: every workflow that runs on main, the release gate, the release build and the packages. Everything since the thirty-ninth round was read as well. Six findings came from that path, F-298 to F-303. Five more, F-304 to F-308, came from the one-time audit and were taken into this release because two of them concern the decoy passphrase and one can fail the release's own verify run.

F-298: the release gate always failed on a new version

Where: tools/shots/sessions.py, check_witnessed.

What happened: the witnessed session is a recording of the verifier checking a published release, and the check required it to name the workspace version. promote.yml runs tools/verify.py whole before the release exists, so after any version bump the transcript could only name the previous release and the gate refused. The comment beside the check said the gate was where the question became answerable, which was true only after the release the gate exists to start.

Fix: the version required is the newest published one: the workspace version once it has a vX.Y.Z tag, the highest such tag before that, and the workspace version when there are no tags at all. Early-build tags are not releases and are left out. The version is matched as a whole, so 0.1.2 is no longer found inside 0.1.22.

Regression test: tools/shots/sessions.py --self-test, run by tools/verify.py, holds the rule against tag lists with known answers, including the case of a bumped but untagged workspace, ordering by version rather than by text, and a prerelease tag.

F-299: the window did not compile on Windows

Where: crates/veilvoice-gui/src/exporting.rs, Workroom::new.

What happened: the export folder's DirBuilder was declared mut for both platforms and only changed on Unix, where it sets the folder's mode. On Windows that is an unused mut, which the workspace's -D warnings makes an error, so main failed CI on Windows and the Windows installers could not be built. Linux, where every local check runs, never saw it.

Fix: the builder is made separately for Unix and for everything else, so neither declaration carries a mut it does not use.

Regression test: the Windows Clippy job in ci.yml, which is what found it. A Linux-only check cannot see a cfg(unix) difference, and this one now passes there.

F-300: the AppImage tools were pinned to a placeholder

Where: .github/workflows/packages.yml, the appimage job.

What happened: APPIMAGETOOL_SHA256 and RUNTIME_SHA256 read discover, a placeholder left from when the job was written. The hash check did its job and refused both downloads, so the AppImage job could not pass, but the pin it was meant to hold had never been written down.

Fix: both are pinned to the SHA-256 digests GitHub publishes for those release assets, which match what the first run downloaded.

Regression test: the job's own hash check, which fails on any value but the right one, placeholder included.

F-301: the RPM build was killed before it finished

Where: packaging/rpm/veilvoice.spec, %build.

What happened: rpmbuild on Fedora passes its own RUSTFLAGS, which ask for full debugging information. Combined with the workspace's fat LTO, the two programs' final links, which run at the same time, needed more than the runner had, and the job ended with exit code 137 while linking. The spec already says there is no debugging package to fill, so the information was built only to be stripped.

Fix: %build adds -Cdebuginfo=0 after Fedora's flags, which wins over the earlier request and leaves the rest of Fedora's flags in place. That alone was not enough: the next run was killed at the same point. So the two programs are now built one after the other, and %check runs two jobs, since every test program is a fat-LTO link too.

Regression test: the rpm job in packages.yml, which builds, lints, installs, runs and removes the packages. The job is not part of the release gate, and the release does not ship an RPM yet.

F-302: a failed second FreeBSD build cost the release its FreeBSD archive

Where: .github/workflows/release.yml, the freebsd job.

What happened: the job builds each program twice to check that the builds match. The first window build was allowed to fail, but the second builds ran under set -e, so a failure there ended the whole step after the archive's own binaries had already been built. The job is allowed to fail, so the release would have shipped without FreeBSD over a check rather than a build. The job's comment also still called the archive command line only, which it has not been since roadmap item 162.

Fix: a second build that fails is reported in the archive's reproducibility line as not verified, with a warning, and the archive still ships. The comment and the download page's label for FreeBSD say what is true of every FreeBSD archive: no live audio.

Regression test: none that can run outside a FreeBSD VM. The verdict line is written on every path and the release notes print it, so a release shows which one it took.

F-303: a test of a part-finished update could not fail on Windows

Where: crates/veilvoice-verify/src/update.rs, a_failure_partway_through_names_what_it_had_already_replaced.

What happened: the test made the second program impossible to replace by putting a directory at its name, because no rename goes over a directory. On Windows the shared routine first moves whatever is at the name aside to <name>.old, and a directory moves aside as readily as a file, so the update succeeded and the test failed on the Windows CI job. The behaviour under test was right on every platform; the test only knew how to cause the failure on Unix.

Fix: a non-empty directory also sits at <name>.old. Removing a file cannot clear it and no rename goes over it, so the move aside fails on Windows, and elsewhere the routine never looks at that name.

Regression test: the test itself, now failing for the same reason on all three platforms CI runs.

F-304: a decoy session's integrity panel said which passphrase had been typed

Where: crates/veilvoice-gui/src/integrity.rs and the unlock handling in crates/veilvoice-gui/src/app.rs.

What happened: a real unlock hands the passphrase to the integrity check, and the panel shows its result. A decoy unlock handed nothing over, so the panel stayed at "not checked this session", which a real session never shows once it is unlocked. Anybody looking over the shoulder could tell the two apart.

Fix: a decoy unlock runs check_decoy on a worker. It checks the plain record if there is one, and otherwise hashes the files as they are and reports them the way a clean real session does, sealed or not as the folder shows. It writes nothing, so it cannot leave a plain record beside a sealed one or touch the real session's evidence.

Regression test: a_decoy_session_reads_like_a_real_one_and_writes_nothing and a_decoy_session_checks_a_plain_record.

F-305: a long audio callback cut the kept plain voice short

Where: the input callbacks in crates/veilvoice-audio/src/live.rs and room.rs.

What happened: when the user asked to keep their plain voice, it was gathered into a fixed scratch buffer during each callback and written once at the end. A callback with more frames than the buffer holds filled it and kept nothing more, so the kept recording lost audio without saying so.

Fix: each callback is taken one buffer-sized block at a time, and each block is written as it completes. Nothing allocates on the audio thread, and the plain voice is still written from exactly one place in each callback.

Regression test: the_recorder_is_fed_from_the_engine_and_from_nowhere_else now also requires the block-wise loop, beside its existing check that the plain voice has one write site.

F-306: the decoy record's size said that a decoy was set

Where: Decoy::to_bytes and Decoy::parse in crates/veilvoice-crypto/src/decoy.rs.

What happened: the decoy record was a 72-byte file beside two app-lock copies of 125 bytes. Its names are meaningless by design, but its size alone gave it away.

Fix: it is written padded with random bytes to the lock's length, so the three files match. A record written unpadded by an older build still reads, and any other length is refused.

Regression test: a_decoy_record_is_the_size_of_a_lock_record, and a_record_reads_back_as_what_was_written expects the padded length.

F-307: two window tests failed in a full run and passed alone

Where: the tests in crates/veilvoice-gui/src/pace.rs and soundbar.rs.

What happened: the frame pace lives in two process-wide statics. Tests that set a 30 fps target ran beside tests expecting the display's pace, and one that finished with a fixed target left it behind for the next. They failed about one run in ten, which also failed tools/verify.py --quick, including while this release was being prepared.

Fix: a test-only lock, pace::statics_held, is held by every test in both modules and resets the statics when it is taken.

Regression test: the race is the test: 25 parallel runs of both modules, and 15 of the whole window suite, passed after the fix.

F-308: the anchor test read past the handler it was about

Where: tools/site-tests/anchors.test.js.

What happened: it sliced the script from the click handler to the end of the file, so its checks could pass on code that is not in the handler.

Fix: it reads from the handler's selector to the next listener.

Regression test: the test itself, which still passes against the real handler.

The thirty-ninth round: the reset, read against what it promises

veilvoice reset and the window's Start again are the only things in this project that delete somebody's recordings on purpose. Everything else about them has been audited for whether they delete the right files. This round asked a different question: whether what they say they are keeping is what they keep.

Three of the three answers were no, and all three failed in the same direction: the plan on the screen was right and the disk was wrong. One of them had also been protected by a test for half a year, which is the part worth reading.

F-291: the command line and the window disagreed about what a reset means

Found by reading the two front ends next to each other, which is not how either had been read before.

The window's reset opens with a ticked box, "Keep my password, and the key to my recordings", and crates/veilvoice-gui/src/reset.rs initialises it keep_keys: true. The command line had the opposite default, because its flag was --keep-keys: a flag absent is a flag false, so veilvoice reset removed the app lock, and with it the key to everything sealed with the app lock, unless somebody knew to ask it not to.

Keep::default() was Keep::Nothing, which is the same decision in the type rather than in the interface. Anything written later that reaches for the default would have reached for the destructive one.

What it cost. Somebody resetting a misconfigured interface from the command line, having done the same thing in the window the week before and watched it keep their password, lost every recording sealed with the app lock. There is no other copy of that key. The two commands differed by the one decision in this project that cannot be undone, and the difference was a flag's polarity.

The fix. Keep::Keys is the default, --drop-keys replaces --keep-keys, and both front ends now mean the same thing with no flags and no clicks. The safe answer is the one a caller arrives at by not thinking, which is the rule a destructive default breaks.

What is checked. the_default_is_to_keep_the_keys asserts the type's own answer. The flag is its own question and docs/COMMANDS.md is generated from the parser, so a flag that goes back to naming the wrong half of the choice changes a document that is checked.

The shape, and it is the same one as F-178 and F-278: two front ends to one library is two defaults unless the library holds the default. Neither front end was wrong about what it was doing. They were wrong about each other.

F-292: keeping the keys removed the decoy passphrase, and on an older machine the lock itself

Found by building a reset plan against a real app lock for the first time. See F-293 for why that had never happened.

reset::key_paths named three files: the vault's index and the two copies of the lock it derives. The app lock is kept in more than three:

  • The decoy record. crate::decoy keeps it under a derived name, so nothing in crate::layout names it, and a reset puts anything the layout has never heard of into "VeilVoice's own files" and removes it. Keeping the keys therefore kept the lock and removed the second passphrase that opens it. Nothing reported this: the lock still worked, the decoy passphrase simply stopped being recognised, which reads as a forgotten passphrase rather than as a file that was deleted.
  • applock.bin, the file the vault replaced. lock::open_in still adopts it, deliberately, because every user who set a lock through the window in 0.1.17 has one and ignoring it would take their lock away (F-141). It is not in the layout either. So on a machine whose only lock is that file, "keep my password" removed the password, and key_paths returned an empty list, so the plan did not even claim to be keeping anything: there was nothing on the screen for somebody to notice was missing.

The fix. keys_in names all five: the index, the two copies, the decoy record and the legacy file, and crate::lock::LEGACY_NAME is pub(crate) so the reset and the lock spell that name once between them rather than twice.

What is checked. keeping_the_keys_keeps_the_decoy_and_the_old_lock_file makes a real lock with a real decoy and a legacy file beside it, and asserts of each that it is in the plan's keeping and in none of its going, then carries the plan out and asserts the files are still there, and that the vaults went anyway. removing_the_keys_removes_the_decoy_and_the_old_lock_file asserts the other direction, because a reset asked for the whole folder that leaves a lock behind is not the new install it reports. the_old_lock_file_alone_is_still_the_lock is the 0.1.17 machine.

The shape: a file kept under a derived name is invisible to anything that works from a list of names. The reset works by exclusion precisely so that an unknown file is still removed, and that is right; what it needs, and now has, is for every file that is part of the lock to be named by the one module that derives those names.

F-293: a test that had only ever exercised the branch where nothing works

Found while writing F-292's test, and it is the reason F-292 survived six releases.

reset::tests::folder() builds a folder with one of everything in it, and writes the app lock's index as the twelve bytes a named file. No vault can parse that. So Vault::at failed, key_paths took its fallback arm, returned the index on its own, and every test that asked for Keep::Keys asserted against the behaviour of a machine whose lock is broken. The branch that resolves a real lock, which is the branch every user is on, had no test at all. keeping_the_keys_keeps_the_lock_and_nothing_else passed throughout, and what it proved was that an unreadable index is kept.

And the fallback arm was itself wrong. It kept the one file it could name and let the rest of the folder go, so a reset on a machine with a damaged index would have kept the index and removed the two copies of the lock, the decoy record and everything else: the plan said the keys were staying and the disk would have lost them. "Keep the keys" is a promise, and a plan that cannot work out which files the keys are in cannot keep it.

The fix. keys_in returns the paths and a reason when it cannot resolve them, Plan::blocked carries that reason, plan_in returns a plan with nothing in it, and carry_out refuses one outright rather than trusting its caller to have read the field. Both front ends print the reason and say what the way through is: the reset that keeps nothing, which needs none of this worked out. folder_with_a_real_lock is the helper tests about keeping the keys use now, and folder's own documentation says what its index is for.

The administrator's copy had the same problem from the other side. vault::admin_dir puts the second copy of the lock under /etc/veilvoice where the process can write there, so whether that copy is inside the folder being reset depends on the machine the tests run on: a laptop has no such directory, a container running as root has one the moment any test makes a lock, and a runner that is not root has none again. The same assertion asked a different question in each place. vault::pretend_admin_dir is a #[cfg(test)] thread-local that lets a test say which machine it is on, and these tests say "an ordinary user's". It is deliberately not an environment variable: the administrator-owned copy is a security property, and a variable that redirects it is a way to talk a real run into writing its spare lock where an ordinary user can edit it.

What is checked. a_lock_that_will_not_read_blocks_the_reset asserts the reason, that the plan is empty, that carry_out refuses it and removes nothing, and that asking for the reset that keeps nothing still works.

The shape, which this document has now recorded eight times: a test that passes can be a test of nothing. F-186 and F-182 are the same thing in different modules. What is new here is the mechanism, and it is worth naming because it is cheap to repeat: the fixture was easier to write wrongly than rightly, so every test built on it inherited the wrong branch, and each of them passed.

The thirty-eighth round: every drawing explains itself

Every generated picture should carry its own key, and each Mermaid chart the same key, since either can be the only one a reader sees. Reading every drawing under assets/diagrams/ and assets/sources/ for that turned up one finding.

F-290: a crate's map of its files, and the website's script charts, had no key

Where: tools/docs/generate.py (diagram_svg, mermaid, OWNED) and tools/docs/sources.py.

What happened: a drawing's key listed the roles its boxes were coloured by, and nothing else. The crate maps and the script charts colour no box by role, so their key was empty and was not drawn: thirteen crate pictures and eleven script charts reached the README, the wiki and the site with only a caption. No Mermaid chart carried a key at all. Fourteen more crate pictures, for crates folded into others, were still in assets/diagrams/ because that folder was not in the list of places the generator sweeps for files it no longer writes.

Fix: a drawing with no roles keys what its plain box is (a file with its line count, or a function with its first line), drawn as the boxes are, above the dashed row every key already had. Every Mermaid chart ends in a Key subgraph with one box per row of the picture's key, in the same colours. assets/diagrams/ joins the swept places, which removed the 42 stale files.

Regression test: tools/site-tests/diagrams.test.js fails any drawing in assets/diagrams/ or any assets/sources/ chart without the key's last row, and any Mermaid flowchart in the wiki, docs/ or a crate's README without the Key subgraph. Run against the tree before this fix it fails on the crate maps.

The thirty-seventh round: the prose, hidden text and the workflows

This round adds three checks to tools/verify.py and CI, and fixes what they found on their first run.

  • tools/audit/wording.py reads every document, page and doc comment, and the commit message being built, for American spellings, misspellings (through codespell), doubled words, "a" and "an" before the wrong sound, placeholder and chat-like wording, stray spaces before punctuation, and text a generator cut off in the middle of a word. Em dashes stay with tools/audit/prose.py.
  • tools/audit/hidden_text.py reads every tracked text file for characters a reader cannot see: the bidirectional overrides behind the Trojan Source attack (CVE-2021-42574), zero-width characters, and the Unicode tag characters, which can carry a whole sentence of instructions that shows as nothing. It found none.
  • tools/audit/workflows.py runs zizmor over the workflows and the Dependabot configuration, and refuses an exception that does not give its reason on its own line. --fix, which tools/verify.py runs before its checks, applies zizmor's safe fixes and keeps them only when a second audit has fewer findings and the other workflow guards still pass.

codespell and zizmor are pinned by hash in tools/audit/requirements.txt, which Dependabot now watches, and CI fails when either is missing rather than skipping the check.

The four findings zizmor still reports at its default level were each read and are kept, with the reason beside them: pages.yml and wiki.yml run after a release through workflow_run, which only the release workflow can trigger; rewrite.yml and signing.yml keep the checkout's token because they push, which tools/audit/checkout_tokens.py already records; and the release still publishes through a pinned softprops/action-gh-release, because replacing the step that publishes needs a test release of its own.

F-296: the changelog and roadmap had doubled words, and the roadmap cut its tooltips mid-word

Where: CHANGELOG.md, ROADMAP.md and tools/site/roadmap.py.

What happened: the changelog and the roadmap each said a roadmap roadmap item, the roadmap said the still still served, and the changelog had defects , none and a sentence whose full stop sat alone on the next line. Each was copied into the website's releases and roadmap pages. Separately, the roadmap picture gave every square a tooltip of the item's first ninety characters, cut wherever the ninetieth fell, so screen readers and hover text read off by defaul, reads thi and witho.

Fix: the five sentences are corrected, and the tooltip is cut at the last space that fits, with an ellipsis to show that the sentence goes on.

Regression test: tools/audit/wording.py fails on a doubled word, a space before punctuation, and a word cut short in front of a roadmap status, and it reads the generated roadmap page, so a generator that cuts mid-word again fails verify. Its --self-test holds an example of each.

F-297: Dependabot proposed a new release on the day it was published

Where: .github/dependabot.yml.

What happened: no entry set a cooldown, so a version of a crate or an action was proposed the day it appeared. Most hijacked releases are found and pulled within days, and a project that takes a release on its first day is the one that takes the hijacked one. zizmor reported three of the entries.

Fix: every entry, including the new one for the audit's Python tools, waits seven days. Security updates are not held back by a cooldown.

Regression test: tools/audit/dependabot.py now fails on any entry without a cooldown, and its --self-test checks that the reader sees a missing one and is not fooled by a cooldown nested inside another block. zizmor alone was not enough: once the first entry had a cooldown it stopped reporting the others.

The thirty-sixth round: every code scanning alert, read one at a time

The repository's own CodeQL workflow replaced GitHub's default setup on 2026-10-25, and with it came four languages instead of one and about 380 open alerts in the Security tab. That tab is the only place CodeQL put its findings, so the workflow now also lists each one in its run's log and summary (tools/repo/sarif_summary.py), which is how this round read them. A run on 2026-10-27 at b60cc374 reported 373: 368 in the Rust, three in the website's test suites, two in the workflows, none in the Python. The Scorecard adds its own on top, one per check it marks down.

Two findings are fixed here. Everything else was read and judged a false positive, and the reason for each group is below so that a dismissal in the tab can point at it.

rust/hard-coded-cryptographic-value, 363 alerts. 349 are in tests, fuzz targets and examples, where a passphrase the test knows and a salt of zeros are what make an assertion repeatable. The other 14 are in shipped code and none is a key: ten are a salt, nonce or tag buffer declared as zeros and filled from the file being parsed or from random_nonce before it is used, one is the app lock's record being written to its file, one is the locked-memory allocator's backing buffer, and two are the reseal tool's deliberate try of the empty passphrase, which is how it finds a file sealed under nothing. tools/audit/randomness.py already requires every salt, nonce and seed in shipped code to come from the operating system's generator.

rust/cleartext-logging, 5 alerts. Four are in tests and an example. The fifth, guard.rs line 240, prints how many files a guard record holds; the count is tainted only because the record it comes from may be sealed under a passphrase, and a count is not the passphrase.

actions/untrusted-checkout and actions/cache-poisoning, 2 alerts. wiki.yml and pages.yml check out the release they publish, by a tag the previous job found with git tag --points-at on the commit a successful release run built. Only somebody who can push to this repository can create that tag, so the code checked out is the maintainer's own, released code.

F-284: two workflows granted a write to every job they might ever have

Where: .github/workflows/rewrite.yml and signing.yml.

What happened: both set contents: write in the top-level permissions: block, which is the default for every job in the workflow. Each has one job and that job does need to push, so nothing could misuse it today, but a job added to either would have started with write access without asking for it. The Scorecard's Token-Permissions check marks a workflow down for exactly this.

Fix: the top level grants contents: read and the job that pushes asks for contents: write itself. What either job can do is unchanged.

Regression test: tools/audit/top_permissions.py fails CI on any workflow whose top-level block grants a write, or that has no top-level block at all, and its --self-test covers the inline, mapped and missing shapes.

F-288: the build without live audio did not offer what the live build offers, and its tests never ran

Where: crates/veilvoice-audio/src/absent.rs, the stand-ins a build without cpal uses, and .github/workflows/ci.yml. Found by the audit thread in roadmap item 162's commit, which said the stand-ins had "the same signatures".

Three of them did not. absent::record had no start; Sink was re-exported from the crate root only when live was on; and the device type was cpal's Device in one build and a stand-in struct in the other, reached by a different path in each. None of it broke a build, because the compiler checks only what the window happens to call. The first caller of any of them in the window would have built on Linux, macOS and Windows and failed on the BSDs, the one place the stand-ins exist for. And the stand-ins' own tests are compiled only without live, a selection CI built but never tested.

  • Sink is re-exported in both builds, and the live build names the device type through devices::Device, an alias the stand-ins match.
  • record::start stays missing on purpose: it makes a recorder, which no build without live audio can hold. absent.rs now says so rather than claiming the same signatures throughout.
  • the_build_without_live_audio_offers_what_the_live_build_offers reads each live module and its stand-in and fails on any public name in one and not the other, with that one exception named. It runs in the default build, so CI runs it everywhere.
  • CI's test job runs veilvoice-audio and veilvoice-gui with --no-default-features on Linux, so the stand-ins' tests run.
  • veilvoice_audio::WHY_NO_CAPTURE gives the reason a build cannot capture, for the window's device pickers, which still show an empty list on the BSDs. That side belongs to app.rs and is not part of this fix.

Where: crates/veilvoice-gui/src/exporting.rs and the Studio's export controls in crates/veilvoice-gui/src/studio.rs, both new since v0.1.22 and made reachable by roadmap item 175. Found by the audit thread; the first two were checked there against the code and the rest checked here.

  • The temporary sound file and a WAV-only output were written with write_owner_only, which creates or truncates, so a link planted at either name in a shared folder was followed and the file it named emptied. The exists() check before it is false for a dangling link and was in any case a look before the write rather than part of it.
  • A failed render ran remove_file on the output, including when ffmpeg refused because the output already existed, so a failed export could delete a file this run had never made.
  • FLAC, MP4, MKV and MOV outputs were created under the umask and never tightened; the command line tightens what it writes.
  • The temporary sound file was left behind by a crash or a closed window, whatever its comment said, and was written for exports that never read it.
  • The export and preview buttons stayed live while an export ran, and a second press replaced the first job's receiver, so the first result was lost.
  • The thumbnails were redrawn only when the template changed, so "the look, in detail" never reached them.
  • A WAV export with nothing to count said that ffmpeg had written no frames, though a WAV never runs ffmpeg.
  • A recording named con or lpt1 was exported under a device name older Windows will not open as a file.

The export now works in a private folder of its own beside the output, made with mode 0700 and removed when the job ends whichever way it ends. The sound is written there only when the render reads it, every file is created with create_new, the result is tightened to 0600 and then put in place with a hard link, which refuses to replace anything at the destination, a link included. A run deletes only its own folder. The export controls and the form are disabled while an export runs or the folder picker is open, which also means the choice exported is the one shown when the button was pressed. The thumbnails compare the whole look. A device name gets take- in front.

a_render_lands_owner_only_and_leaves_nothing_else, a_failed_render_removes_only_its_own_work and a_link_at_the_destination_is_not_followed drive the ffmpeg branch with a stand-in script, which nothing had run before; a_second_export_waits_for_the_first, a_new_look_redraws_the_thumbnails and a_device_name_is_not_a_file_name cover the rest.

F-285: the website's tests stripped tags in a way a crafted page could slip past

Where: tools/site-tests/scripts.test.js, css.test.js and html.test.js.

What happened: before reading a page as prose, the suites removed its scripts, styles and comments with one regular expression pass each. The script pattern was case-sensitive and wanted </script> exactly, so <SCRIPT> or </script >, both of which a browser accepts, were left in and read as prose. A single pass of the comment and style patterns can also join the halves of a split tag into a whole one, as <!-<!-- -->- does. These suites only read the site's own pages, so nothing hostile reached them, but a check that reads a page differently from a browser can pass a page a browser would show differently.

Fix: the script pattern ignores case and accepts anything before the closing >, and the comment and style removals repeat until nothing changes.

Regression test: the three suites pass over all 408 pages as before, and CodeQL's js/bad-tag-filter and js/incomplete-multi-character-sanitization no longer report them.

The thirty-fifth round: the whole project, after the signed history

Run on main at 5a808308, the first commit after the history was rewritten, signed and made the only branch. Every crate, the website, the wiki tools and the workflows were read again for anything from a syntax slip to a security hole. Fifteen findings are fixed here. The rest are smaller or belong to work that is already in hand, and are listed in the project's audit notes rather than written up before they are fixed.

Three of the thirteen are in the decoy passphrase and the lock around it, which is where the last two rounds found their worst defects too. That is not a coincidence: the decoy is the newest code that makes a promise about what an observer cannot learn, and a promise of that kind is broken by any difference at all.

F-271: the updater never saw an app lock kept in the vault

Where: crates/veilvoice-verify/src/update.rs, lock_is_set and check_password.

What happened: the updater asks for the app-lock passphrase before it replaces a program, so that somebody at an unlocked desktop cannot swap the binary that holds the lock. It decided whether a lock was set by looking for applock.bin. Since the lock moved into the vault, that file exists only until the first unlock, which adopts it and deletes it. So on every machine where the lock had been used once, the updater found no lock and asked for nothing, and the V1 check written for exactly this case never ran. It then wrote a plain integrity record beside the sealed one and reported no app lock on the machine, and since the window reads the sealed record first, every launch after that reported the new programs as changed.

Fix: both functions now ask lock::kept_in whether a lock is there, in the vault or the legacy file, without writing anything, and open it through lock::open_in. A lock that is there but will not read stops the update rather than reading as no lock.

Regression test: a_lock_kept_in_the_vault_is_seen_and_its_passphrase_is_checked creates a lock in a temporary folder, confirms applock.bin is not there, and then requires the lock to be found, the wrong passphrase refused and the right one accepted.

F-272: the real passphrase took one Argon2id run longer than the decoy

Where: crates/veilvoice-crypto/src/lock.rs, LockStore::unlock, and decoy::Store::judge.

What happened: judge derives the decoy, then either asks the real lock whether it would open (the decoy route) or unlocks it (the real route). Each of those was meant to be one derivation. The unlock was two: verify derived the verifier and the tag key, threw the tag key away, and retag derived both again to re-tag the record. At the default cost of 256 MiB that is a difference somebody standing over the screen can count, and telling the two passphrases apart is the whole of what the decoy exists to prevent.

The test that was supposed to guard this, every_branch_does_the_same_amount_of_work, read the source of judge for its shape. The extra run was inside unlock, which it never looked at, so it passed. F-88's test of acknowledge had the same blind spot and was passing while acknowledging cost two runs, not the one its documentation promised.

Fix: the verification hands back the tag key it derived, and unlock and acknowledge re-tag with it. A real unlock, a decoy unlock and a wrong passphrase now each cost exactly two derivations in judge.

Regression test: both source checks are replaced by counts. A test-only counter in kdf::derive_key records every Argon2id run, and every_branch_does_the_same_amount_of_work requires the real, decoy and wrong answers, with and without a decoy set, to cost the same number. an_unlock_derives_the_key_once and acknowledging_a_report_derives_the_key_once pin the lock's own costs.

F-273: the real passphrase could be changed to the decoy

Where: crates/veilvoice-crypto/src/lock.rs, LockStore::change_password.

What happened: setting a decoy refuses one identical to the real passphrase. Changing the real passphrase did not check the other way, so it could be changed to the decoy. judge answers a passphrase that both would open with the real program, so from then on the passphrase recorded as the decoy opened everything.

Fix: the change is refused with Error::AppLockIsTheDecoy when the decoy set on this machine matches the new passphrase, and the lock is left as it was.

Regression test: the_real_passphrase_cannot_be_changed_to_the_decoy sets a decoy, tries the change, and requires the refusal, the decoy still opening the decoy session, and an ordinary change still being accepted.

F-274: a vault still opening when the window locked was handed to the next session

Where: crates/veilvoice-gui/src/studio.rs, Studio::close.

What happened: opening a studio vault runs on a thread. close, which runs when the window locks, shut the vault and wiped the entries but left the thread's receiver in place. When the window opened again, the next frame collected the result and installed the vault, whichever passphrase had opened the window. A decoy session could be handed the real recordings without either of the vault's passphrases being typed in it.

Fix: close drops the receiver. The thread's send fails and the key it derived is dropped with it.

Regression test: an_unlock_still_running_when_the_window_locks_is_not_installed_after sends an opened vault after close and requires the next poll to leave the Studio shut.

F-275: the wave drifted away from the sound at 44.1 kHz

Where: crates/veilvoice-video/src/motion.rs, Levels::peak.

What happened: levels() steps through the audio by a whole number of samples, which at 44.1 kHz is 221, or 5.011 ms. peak() found the entry for a moment by dividing by exactly 5 ms. The picture ran ahead of the sound by about 0.14 seconds a minute, which is eight seconds by the end of an hour. 22.05 and 11.025 kHz drift the same way.

Fix: Levels keeps the hop it actually used and peak() divides by that.

Regression test: the_wave_is_where_the_sound_is_an_hour_in_at_a_rate_five_milliseconds_does_not_divide places a short burst a minute into a 44.1 kHz recording and requires the wave to peak where the burst is and to be silent just before it, where the old reading drew it.

F-276: the release build jobs held a token that could push to the repository

Where: .github/workflows/release.yml, and the checkouts in every other workflow.

What happened: release.yml granted contents: write to the whole workflow, and none of its five checkouts set persist-credentials: false, so the token stayed in .git/config for every later step. The build jobs compile every dependency and run its build script, so a compromised crate's build.rs could have read a token able to push to main or move a tag. The same persisted token sat in nineteen checkouts elsewhere, and the version typed into a release dispatch was pasted straight into two shell scripts, where a crafted value would have run as a command.

Fix: The workflow is read only by default and only the publishing job can write. Every checkout drops its token unless its workflow pushes through origin and says why: only rewrite.yml and signing.yml do. The version reaches the scripts as the environment variables INPUT_TAG and VERSION_TAG. The publishing job now creates the release tag itself, signed with the release key, instead of letting GitHub create an unsigned one.

Regression test: tools/audit/checkout_tokens.py fails CI on any checkout that keeps its token without a stated reason, and on a reason that no longer applies, and its --self-test covers the shapes it must tell apart. tools/audit/publishing.py still requires the notes waiver to be tied to the dry run in the new form.

F-277: four documents the website's renderer could not finish

Where: website/js/markdown.js, the block loop in render; tools/site/wiki_site.py, render; every job in every workflow.

What happened: <details><summary>x</summary> on one line stopped the renderer dead. So did a <summary> with no closing tag, anything typed after a closing </details>, and a heading holding U+2028. Not slowly: the loop stopped advancing and never came back.

The block dispatch recognises three exact shapes of the collapsed-section tags, a whole line reading <details>, a whole line reading </details>, and a whole line that is one <summary> element, because an attribute is where markup gets into a page and those tags need none. Anything else falls through to the paragraph collector, and that collector refuses to take a line beginning with one of those tags, so that the tag handlers above get it. Both of those rules are right on their own. Together they leave a gap: a line neither will take moves the line index nowhere, and the loop reads it again.

That is the whole defect, and it is worth stating as a shape rather than as four documents. Two correct rules about who handles a line, and nothing that says somebody must.

Why it is worse than a wrong rendering. website/js/repo.js fetches README.md over the network and renders it on the main thread, so a document the renderer cannot finish is a frozen tab: a denial of service against the reader, from text the page went and asked for. tools/site/wiki_site.py renders every wiki page through the same renderer in CI, with no subprocess timeout, and no workflow in this repository set timeout-minutes on any job, so GitHub's six-hour default was the only limit either one had. Six hours of a job reading as green-pending is the worst way to learn this: a run that hangs that long looks like a fault of the runner and gets retried, where a failure gets read.

The README writes eleven collapsed sections, all of them in the three shapes that work, which is why nothing had hit this yet.

Fix: the guarantee is structural rather than a list of four shapes. A pass of the block loop that consumed nothing now emits the line as the text it is, escaped, and advances. Every pass moves the index, so no document can stop it, including the one nobody has thought of yet. Two things fall out of that and are fixed with it: <details><summary>x</summary> on one line is read as the two lines it means, because it is the shape a person writing a collapsed section by hand reaches for and literal tag text on the front page would be a defect of its own; and the heading pattern matches [^\n] rather than ., which does not match U+2028, so a line separator inside a heading is a character of its text like any other.

Beside that, two limits. wiki_site.py gives the renderer 120 seconds and says what it means when that expires. Every job in every workflow now carries a timeout-minutes sized to what it does, from 20 for the wiki pages to 240 for the scheduled mutation campaign.

Regression test: the four documents, and six more around them, are in the hostile corpus in tools/site-tests/markdown.hostile.test.js, which had no collapsed-section case at all. That absence had a cause: ALLOWED_TAGS, the list of everything the renderer may emit, did not include details or summary, so a case that exercised them would have failed on the renderer doing its job. The audit read that the other way round, as the suite not covering the markup the README uses eleven times, and it was right. The fuzz campaign gets the tags and both line separators as fragments; it could produce < and > before but never happened on the exact word between them.

How it is measured matters as much as what. A loop that does not advance is synchronous and cannot be interrupted: no timer, signal or await gets control back, so a suite that rendered these in its own process would hang rather than fail, which is the outcome this finding is about. render-probe.js therefore renders the whole corpus in a process of its own, naming each document before it starts and writing that name with fs.writeSync, because console.log to a pipe is buffered and a buffer dies with the process. The parent kills it on a timeout and reports the last name printed, which is the document that would not finish. That check runs first and the in-process checks are skipped if it fails, because they would hang on the same document and the failure would never be printed. Inverting the fix is how that was found: the first attempt reported the hang correctly and then hung anyway on the next check.

The guard: tools/audit/job_limits.py fails on any job in any workflow with no timeout-minutes of its own, or one above the 240 minutes this project has any use for. It runs in tools/verify.py and in ci.yml with its --self-test beside it, and it earned its place immediately: two security workflows landed from another thread while this was being written and it named both.

F-278: the questions page told readers to delete the file that holds their recordings' key

Where: docs/FAQ.md, under "What happens if I forget a passphrase?", and website/faq.html, which is generated from it.

What happened: the answer ended "The app lock can be removed by deleting its file, which does not affect encrypted recordings." Both halves of that are wrong, and the second is the dangerous one. crates/veilvoice-crypto/src/reset.rs says it plainly in its own module note: "somebody resetting a misconfigured interface wants their recordings afterwards, and the recordings are sealed with the lock. Losing it would mean losing them." The lock is not only the thing that asks for a password. It holds the key, so the file the page sent a reader to delete is the file their recordings cannot be opened without.

A reader reaching that answer has, by definition, forgotten a passphrase and is looking for a way round it. It is the page's worst possible place for this sentence, and nothing would have warned them: deleting a file by hand does not go through reset, so none of the confirmations, the list of what is about to go, or the mark against what has no copy anywhere applies.

Fix: the answer now says not to delete the file and why, and points at veilvoice reset, which shows everything it would remove before it removes any of it, and at veilvoice reset --keep-keys, which leaves the lock alone so that recordings already sealed under it can still be opened. The window's own route to the same thing is named in the same words docs/COMMANDS.md uses for it.

No guard, and why. The rule here would be that a claim about what the lock does matches what the lock does, and nothing can read the one off the other. The guards in tools/audit that compare a document with the tree compare things with a shape: a command against the parser, a documented path against the layout, a network claim against the call. "Deleting this is harmless" has no such counterpart in the source. What stands in a guard's place here is that reset.rs had the correct sentence in its module note all along, where anybody writing about the lock would find it.

F-279: a plan whose last turn ended at 1e300 seconds hung the video render

Where: crates/veilvoice-conversation/src/plan.rs, Conversation::add_turn, and the frame planner in crates/veilvoice-video/src/frames.rs that reads it.

What happened: a turn's times had to be finite, ordered and not negative, and nothing more. A plan file could say a turn ended at 1e300 seconds, and the frame planner then stepped from zero towards that end one frame at a time, which does not finish. The window or the command line stopped responding with nothing said.

Fix: a turn may not end past twelve hours, the same limit the decoder puts on a recording, so a plan cannot describe speech after the end of any recording VeilVoice will open. The refusal says so.

Regression test: a_turn_cannot_end_past_twelve_hours refuses an end one second past the limit and one at 1e300, and accepts a turn ending exactly at it.

F-280: a file near the decode limit could still abort the program

Where: crates/veilvoice-audio/src/io.rs, the decode loop in load.

What happened: MAX_DECODED_SAMPLES stops a compressed file expanding without bound, and its comment gives the reason: in Rust a failed allocation aborts the process. But the samples went into a vector that grows by doubling, and near the twelve-hour limit one doubling asks for several gigabytes on top of the several already held. On an ordinary machine that allocation fails first, so the abort the limit was written to prevent still happened, just below the limit.

Fix: each packet's room is asked for with try_reserve before the samples are added. Room the machine cannot give is an error saying so, and nothing is changed.

Regression test: room_the_machine_cannot_give_is_an_error_not_an_abort asks for more room than any allocator can give and requires an error, with the samples already decoded kept.

F-281: cleaning a file's metadata could leave it truncated

Where: crates/veilvoice-meta/src/audio.rs and image.rs, the clean_*_file functions.

What happened: cleaning rewrote the file where it stood. fs::write truncates first and writes after, and the tag path made several separate edits to the original. A crash, a full disk or a power cut part way through left a truncated file, and the file being cleaned is usually the only copy.

Fix: the new contents are written to a fresh file in the same folder, made with create_new so nothing already there is followed or overwritten, and renamed over the original once complete. The original is either untouched or fully replaced, and keeps its permissions.

Regression test: a_failed_clean_leaves_the_original_whole fails a replacement part way and requires the original unchanged with nothing left beside it, then requires a successful one to keep owner-only permissions.

F-282: no audio file other than a WAV could be cleaned at all

Where: crates/veilvoice-meta/src/audio.rs, clean_audio_file.

What happened: found while testing F-281. Tags were removed with the tag library's TagType::remove_from_path, which opens the file read-only and then writes to it. Every removal failed with "failed to write to file", so veilvoice clean refused every MP3, FLAC, Ogg and M4A it was given. Only WAV, which has its own cleaner, ever worked. Every test used a WAV, so nothing noticed. It failed loudly rather than leaving tags behind, which is the one mercy in it.

Fix: the tags are removed through a handle opened for reading and writing.

Regression test: an_mp3_is_cleaned_through_a_copy_and_nothing_is_left_beside_it builds an MP3 with an ID3v2 tag naming somebody, cleans it, and requires the name gone from the bytes, then cleans it again with the realistic policy.

F-283: a path could reach ffmpeg as an option or a protocol

Where: crates/veilvoice-video/src/ffmpeg.rs and export.rs, every command built for ffmpeg.

What happened: paths went to ffmpeg as display().to_string(). A relative path starting with - was read as an option, and one with a colon in it, such as concat:a|b or rtmp:x, as a protocol, so a different file, or no file, was read or written. A name that is not UTF-8 was quietly altered. The window passes absolute paths, but the command line passes what it is given.

Fix: every path is passed with the file: prefix, which makes ffmpeg treat the rest as a file name whatever it looks like. A name that cannot be passed exactly is refused. ffmpeg 7.0 was run with the prefix on a file named -y.wav, an output named concat:a|b.flac, a frame pattern and a concat list, and read and wrote each as a file.

Regression test: every_path_reaches_ffmpeg_as_a_file, in both modules, builds every command with those names and requires each to arrive prefixed, and a name that is not UTF-8 to be refused.

F-286: the updater kept its own way of replacing a running program

Where: crates/veilvoice-verify/src/update.rs, put_in_place.

What happened: this project has one routine for putting a program where somebody may be running it: veilvoice_setup::install::replace_with_copy, written for F-237 and made public for F-266. The updater had its own. It removed anything at <name>.new, copied the new program there with std::fs::copy, carried the permissions over and renamed it into place. std::fs::copy opens its destination and truncates it, so anything that appeared at <name>.new between the removal and the copy was written through rather than refused, and a link left at that name in the install directory had whatever it pointed at truncated. That is F-237 again, at a different name. The shared routine creates its staged file with create_new, which leaves no window to appear in. The permissions were also best effort here, so an update could finish and report success with a new program that had no execute bit.

Fix: put_in_place calls the shared routine once per program and keeps only what an update needs: which programs to look for, what moved, and what could not be cleaned up. The Windows step that moves a running program aside moved down into the shared routine with it, so veilvoice install can now replace a program that is running on Windows, which it could not before. The third copy is gone, the staging window with it, and a permission failure now refuses the replacement rather than leaving a program nobody can run. F-266 wrote this down as worth doing the next time the function was touched.

Regression test: the_new_program_goes_in_through_the_one_routine_that_stages_and_renames reads put_in_place and requires the call to the shared routine, and no copy of its own. the_copy_reaches_the_destination_only_by_a_rename, in veilvoice-setup, holds the order down where the code now lives: the staged file is created fresh, given its permissions, and only then renamed.

F-287: a part-finished update said nothing had been replaced

Where: crates/veilvoice-verify/src/update.rs, put_in_place.

What happened: a release carries two programs, the command line and the window, and they are replaced one after the other. The failures inside that loop were written as though the first program were the only one: "Nothing has been replaced." and "nothing was replaced". Replace the command line, fail on the window, and the message told the reader nothing on their machine had changed while they were holding one program a version ahead of the other. Somebody told that reasonably runs the update again, or carries on using a pair of programs they believe match, and neither answer fits the machine they have.

Fix: one sentence, replaced_so_far, says what had already gone in, and every failure inside the loop ends with it. It reads "Nothing was replaced." only when that is true.

Regression test: a_failure_partway_through_names_what_it_had_already_replaced makes the second program's destination a directory, so no rename can go over it, and requires the failure to name the first program as already replaced and not to claim that nothing was. what_was_already_replaced_reads_as_a_sentence covers the three shapes the sentence takes.

F-294: no dry run of a release got past the technical document

Where: .github/workflows/release.yml, the publishing job's technical document step.

What happened: a release dispatched with no version is a dry run. It builds, compares, hashes and signs everything and publishes nothing. The run is named after its branch, and no changelog entry is called ## main, so the notes tool refuses unless it is told the run is a dry one. The release notes step tells it. The technical document step, added with roadmap item 180, does not, so every dry run since then stopped there, before the checksums, the signature and the notes it exists to rehearse. Found by dispatching one after F-276: all eleven builds passed and the publishing job failed on its first script.

Fix: the technical document step passes the same waiver on the same condition as the release notes step.

Regression test: tools/audit/publishing.py finds every step that runs the notes tool and fails on one without the dry-run waiver. Checked both ways: it names the technical document step against the workflow before the fix, and passes after it.

F-295: the mutation and fuzz jobs built whichever tool release was newest

Where: .github/workflows/mutants.yml, the cargo-mutants install, and .github/workflows/fuzz.yml, the cargo-fuzz install.

What happened: both ran cargo install <tool> --locked with no version. --locked pins the tool's dependencies to the lockfile it was published with, not the tool itself, so each run asked crates.io for the newest release that morning and built it on a runner holding a checkout of this repository. Every action here is pinned to a commit for exactly that reason, and these two installs were the same hole one layer down. A release that changed how cargo-mutants counts survivors would also have changed what the weekly verdict means, with nothing in the tree recording it. Found by the skill and plugin scanner while it read the workflows.

Fix: both installs name an exact release, cargo-mutants 27.1.0 and cargo-fuzz 0.13.2, each checked to build with --locked before it was written in. Dependabot does not read cargo install, so a newer release is a change somebody makes and reads.

Regression test: tools/audit/cargo_installs.py, run by CI and by tools/verify.py, fails on any cargo install in a workflow without an exact version and --locked. It names both lines against the workflows before the fix and passes after it, and its --self-test covers the version spellings, continued lines and a version that only appears in a comment.

The thirty-fourth round: the fixes since v0.1.22, re-checked rather than believed

The round before 0.1.23, and it is a different kind of round from the three before it. Those read the tree for defects. This one reads the repairs: every finding written up since v0.1.22 went out, F-196 to F-215, asked of the tree as it stands rather than as the write-up describes it. The boundary is itself one of the findings: it was F-198 to F-215 until F-255 established where v0.1.22 actually was, and the two the correction added are the two that mattered. F-216 to F-253 landed on dev while this round was being written and are not in it; re-checking them is the next round's work, and this sentence is here so nobody reads the round as covering them. The question for each is not "was this fixed" but "is the thing that was supposed to keep it fixed still doing so", and where a guard was the fix, the check is to break it and watch it fail.

That is worth a round of its own because of what the last three found. F-176, F-177, F-197, F-199, F-204, F-207, F-210 and F-212 are all the same shape: a rule that was written down and then enforced over less than it claimed. A round that only reads for new defects will keep finding that shape and keep trusting the last fix for it.

What was re-checked, and how. The whole of tools/verify.py was run, including the cargo steps rather than --quick, and cargo test across the workspace, which between them exercise the guards installed by F-198, F-199, F-200, F-201, F-204, F-205, F-206, F-207, F-209 and F-211. The two console guards, F-210 in veilvoice-setup and F-212 in veilvoice-gui, were each broken in both halves: a module removed from the scan list, and the list checked against lib.rs's own mod declarations. Both failed, naming the module and saying what to do, so the half of those fixes that was itself the novel part holds. F-203's fingerprint comparison, F-213's wording and F-214's install paths were read against the code rather than run, since the first needs a signing key and the second two need Windows and a fresh machine.

Five did not hold, and they are below. One is a fact about this repository's tags that nothing had noticed in twenty-three releases; one is a gate written four days ago that was passing for the wrong reason because of it; one is a correction that reached two of six copies of the same sentence; one is a rule about the size of every control in the window, guarded over one string in one function; and the fifth was found by the fourth's own guard while this round was being landed, because both of this crate's crate-wide guards had quietly started reading half of its largest module.

Four of the five are the same defect. A rule was established and then enforced over a fraction of what it covers: six sentences of which two were corrected, and twelve controls of which one was guarded. F-255 is the same thing in a gate rather than in a scan. It is the most-repeated shape in this document, from F-176 and F-177 through F-197, F-199, F-204, F-207, F-210 and F-212 to these, and the useful conclusion is not "check more carefully" but that a guard has to be pointed at the whole of what its rule claims at the moment it is written, because nobody comes back to widen it.

F-254: every release tag points at a commit that is on no branch

Found while asking git what the previous release was, which is a question tools/release/readiness.py has to answer and had been answering wrongly.

v0.1.22 names b0070bf6. git branch -r --contains v0.1.22 names nothing, and neither origin/main nor origin/dev has that commit in its history. The same is true of all twenty-three release tags, v0.1.0 to v0.1.22, without exception.

What happened, and what did not. The tagged commit's tree is 055705de..., and so is the tree of ebde965f on dev, which carries the same message and the same author date. They are the same content with a different parent chain: the history was rewritten at some point and the tags were left pointing at the objects from before the rewrite. So nothing was published that the branch does not have. A reader who checks out v0.1.22 gets the tree the release was built from, byte for byte, and the reproducibility claim every other check exists to support is intact. The tag also still resolves, because a tag keeps its commit alive whatever else forgets it.

What it costs is navigation, and everything that walks from a tag. The tagged commits are a parallel line of history beside the branch. git describe from dev or main answers "No tags can describe" and is correct. git log v0.1.22..dev does not mean "since the release": it means "reachable from dev and not from an orphan", which is most of the branch. Any question of the form "what changed since the last release" asked of git rather than of CHANGELOG.md gets an answer that is wrong in a direction nobody would suspect, because it is wrong by including too much rather than by failing.

This is not a thing to fix by reading. Moving a tag rewrites what a published release points at, and twenty-three of them point at commits whose trees are correct, so the repair is to re-tag each version at the branch commit carrying its tree, which is a published-history change and the maintainer's call. It is recorded here, and named in docs/CONTRIBUTING.md, so the next tool that wants to walk from a tag is written knowing it cannot.

The shape is the one F-200's write-up named and this is a fifth instance of: a branch policy is not a fact about branches, it is a fact several things depend on. Rewriting history is a branch policy change, and the tags were one of the things depending on it.

F-255: the release gate's audit-round question was answered by commits from before the release

F-208's own fix, four days old, re-checked and found to be passing for a reason that has nothing to do with what it asks.

tools/release/readiness.py refuses a promotion when no audit round has been written up for anything in the release. The way it asked was to take the newest v* tag, and list the commits touching docs/AUDIT.md in <tag>..HEAD.

With the tags off the branch, as F-254 establishes, that range is not "since the release". Measured on the tree this round was written against, the tag range holds 53 commits touching docs/AUDIT.md, the oldest of them 102f7cd4, which predates v0.1.21. The correct range holds 27. So the gate's answer was yes because of round thirty-three, written before the previous release but two, and it would have been yes for a v0.1.23 with no audit round at all.

It could only ever have passed. A gate that cannot fail is worse than no gate, because the checklist beside it reads as satisfied. This one was written in the same commit as a paragraph in docs/CONTRIBUTING.md telling a reader that the audit round is checked. That paragraph was false from the moment it was written.

The fix asks the branch rather than the tag. release_point() uses the tag when it genuinely is an ancestor of HEAD, which is what a healthy repository looks like and what this one becomes if the tags are ever moved. Otherwise it looks for the commit on this branch whose tree is the tag's tree. An off-branch tag is still an exact record of what was published, and content is what a release is: for v0.1.22 that names ebde965f, byte for byte the commit the tag points at. When neither is available the gate says so and counts it as a gap, rather than skipping the question.

The first fix was two commits wrong, and finding that out is the more useful half of this entry. It took the commit that added the ## v0.1.22 heading to CHANGELOG.md, on the reasoning that the branch records a release there whether or not a tag survived. That is a fact on the branch and it is not the release point, because cutting a release is not one commit: Cut 0.1.22 wrote the heading at 17:23 and two more commits landed before the release was built at 18:00. Both of those shipped in v0.1.22 and the heading range counted them as work since it -- a smaller version of the same mistake the tag range made, arrived at while fixing it. It survives as the last fallback, for a tag object that is gone rather than merely misplaced, and its reason now says out loud that it may count a little of what shipped as since.

The self-test builds the condition rather than describing it. Each of those three answers is a different amount of proof, and a test that only exercised the first would have covered the half that was never wrong. So --self-test makes a throwaway repository, commits a release, tags it, checks the ancestor answer, then deletes the tag and re-creates it on an orphan commit carrying the released tree -- exactly this repository's condition -- and checks the other two. It was proved able to fail: with the tree lookup removed it reports the wrong commit and the wrong reason, naming both.

The lesson is narrower than "test your gates" and worth stating as the narrow thing. Both halves of this were verified when they were written: the readiness tool was run and its output read, and it correctly reported the ten things standing between dev and v0.1.23 at the time. What was never done was to check that each individual clause could report a gap. A gate is a conjunction, and a conjunction passes loudly and fails quietly: one clause stuck at true is invisible for as long as any other clause is false. The nine real gaps hid the tenth.

F-256: a sentence corrected in two places and left standing in four

F-213 found two shipped sentences claiming VeilVoice reaches the network never and at all, beside a command that has downloaded from github.com since v0.1.11. It corrected veilvoice --help and the desktop application's install message, which are the two its write-up quotes. It did not look for the others.

Four copies of the same claim were still in the tree:

  • crashlog.rs writes "This file was written on your machine and sent nowhere. VeilVoice has no network code at all." into the crash log itself.
  • crashreport.rs says the same in the panel shown on the next launch.
  • A test in crashlog.rs asserted the log contains the words `no network code`, so the false sentence was held in place by a check.
  • veilvoice-verify's module documentation opened its "What it does not do" section with "It does not download anything -- this project has no network code and this binary is not the exception." That is the crate that contains fetch.rs, and veilvoice verify release is the download F-213 is about. It is published twice over, into crates/veilvoice-verify/README.md and into website/reference/, by generators that faithfully carried it.

Where these are read is what makes it worse than the two that were fixed. A crash log and a crash-report panel are what somebody reads in the one moment they are actively wondering whether this program sent anything off their machine. The sentence they are given as reassurance is false, and the true reassurance beside it -- that nothing uploads a crash report -- needs no help. An overclaim next to a true claim costs the true one its credit, which is F-213's own argument, made about sentences two files away from four more of them. And the verifier's copy denies the behaviour of the very binary whose documentation it is.

All four say what is true now: nothing uploads a crash report, the only thing that reaches the network is a thing you ask for by name, and the graph contains no HTTP client, which is the claim that was always worth making.

And the guard, because the edit is not the fix. tools/audit/network_wording.py reads every Rust source, hand-written document and hand-written page, flattens each to the sentence a reader sees rather than the line the source wraps at, and fails on a claim that is true of the dependency graph and false of the program: has no network code and no network code at all unless "dependency graph" is within eighty characters, talks to no servers in any form, and never checks for updates unless "on its own" follows. Its --self-test feeds it all four sentences that shipped and requires a complaint, then feeds it the true forms -- including the qualified claim wrapped across a string literal and across a doc comment, which is how every one of them is written -- and requires silence. It also asserts its own reach: that the walk reads the crash log and does not read docs/AUDIT.md, CHANGELOG.md or a generated crate README.md.

Generated output, the documents that record what was said, and tools/ are all skipped, each for a reason written into the tool. The first because a claim there is a claim in its source and reporting both sends a reader to the copy they must not edit; the second because a guard that fires on the write-up of a defect makes recording defects expensive; the third because those comments argue about the claims rather than making them.

The closest relative of this guard is the reason it is a guard. veilvoice_guard::SCOPE refuses the words "prevent", "unbreakable", "guarantee" and "protects against", and it refuses them in exactly one string: its own. The vocabulary rule was right and its reach was one constant, which is F-212's shape applied to prose. This asks the same question of everything a reader sees, and the four sentences above are what it found the first time it was run.

And one guard had to be corrected to let the truth through. crashreport.rs carries a test forbidding the words of sending in its own source, and its own comment explains that the file's comments are stripped first, because the first run of it failed on the sentence "a crash reporter that uploads": "a check that forbids describing the thing it forbids is a check that punishes writing the explanation down". The corrected panel text is a string literal rather than a comment, so the same test failed again, on the sentence "nothing in VeilVoice uploads a crash report" -- which is the true claim that replaced a false one. The needle is upload( now rather than upload: what the test exists to catch is a call, and the four others in its list are already machinery rather than vocabulary. The reach of a guard and the vocabulary of a guard fail in the same way, and this document has both in one round.

F-257: two spaces are not a width, and the guard for that read one function

F-196 is the reason this round widened. Correcting the boundary of "since v0.1.22" from a tag to the commit carrying the released tree, which is F-255, pulled two earlier findings into scope, and re-checking the second of them found the same shape a third time in the same week.

F-196's own words: "A space is not a fixed fraction of a letter, egui gives trailing whitespace no reliable width, and the result is a control whose size depends on the typeface the reader has installed." That is a rule about every control in the crate. What shipped to enforce it was nothing_in_the_unlock_row_is_sized_with_spaces, which reads security.rs, finds fn unlock_row, takes the 1600 bytes after it, and asserts the exact string " unlock " is not among them.

Twelve buttons in that crate were padded the same way when that guard was written, in five modules, and it could see none of them. app.rs has five, studio.rs five, security.rs one and decoys.rs one. layout.rs has a thirteenth and it is legitimate: the test that records what the lock row measured before F-196, which has to draw the old control to measure it.

One of the twelve is the defect F-196 described, not merely the shape of it. The modal that asks "Write recordings unencrypted?" draws two buttons side by side. One is the safe answer and was written " keep it encrypted "; the other is the destructive answer and was written "write it unencrypted", with no padding. Measured in a headless frame with this application's theme installed:

controlwidth
keep it encrypted, padded184.4
write it unencrypted176.5
keep it encrypted, unpadded153.1

The padding very nearly worked, and that is why nobody saw it. Four space glyphs took the shorter label from 153.1 to 184.4 and overshot the longer button by 7.9 points, so the two answers to one question look almost the same size in the font this project ships. They are the same size by coincidence, in one typeface, and the coincidence is what a reader would have to keep for the dialog to stay right. On a machine where the fallback font has a wider space, the safe answer grows and the dangerous one does not.

The repair is a measurement rather than a constant. crate::layout::choice_width lays out each of a row's labels in the style's own button font, takes the widest, and adds the button padding plus layout::EMPHASIS, which is eight points and is a number somebody chose. Both answers are drawn at that width. It is measured rather than given as a constant because a constant is a promise that the longest label still fits and nothing would check that promise after somebody rewords a button: the regression test draws the longer answer with no width asked for and fails if the shared width is under what it needs. Proved able to fail -- with the shared width removed it reports 153.1 and 176.5 and names both.

And the guard reads the whole crate, with what is left on a ledger. no_button_is_sized_with_literal_spaces reads crate::sources(), the crate-wide module list F-212 built and F-219 lifted out of the spawn test, and keeps its check that every mod in lib.rs appears in it. For each button( or Button::new( it reads to the end of the statement and fails on a single-line literal padded at either end.

Ten of the twelve are in app.rs and studio.rs, which are being rewritten for roadmap item 167 as this is written. Ten one-line changes dropped into a file somebody else is restructuring cost more than they buy, so those ten are listed by module and label, and the list is checked in both directions: a padded label that is not on it fails, and an entry on it that is no longer padded fails. The second half is what makes it a ratchet rather than an allow-list, and it is there because F-210 was a hand-kept list that claimed to cover six modules and covered three. Roadmap item 187 carries the ten.

Getting the scan right took three tries and each failure is worth naming, because all three are ways a source scan quietly reads less than it claims, which is the defect this entry is about:

  • Reading only the line the call opens on found nothing in security.rs after it was repaired, because rustfmt had moved the label to a line of its own. The window has to be the statement.
  • Widening to a fixed window then reported four wrapped hover-text literals, because a window that stops inside a literal yields a fragment ending wherever the cut fell, which is often the indentation of its continuation. A label is one short literal on one line, and an odd quote count means the window ended inside one.
  • Searching for button( alone missed egui::Button::new(...), which is how a disabled or explicitly sized button is written -- two of the ten.

Each of those three passed while reading less than the rule, which is exactly what F-196's guard did, what F-210's list did and what F-212's scan did. A guard is not proved by passing.

F-258: both crate-wide guards were reading half of the largest module

Found while rebasing this round onto dev, by the guard above reporting that five buttons on its ledger were no longer padded. They were still padded, on the same lines. It had stopped being able to see them.

Both crate-wide guards in veilvoice-gui read each module's source and cut it at the first #[cfg(test)], keeping what is above. The reason for the cut is good and is written down in F-212: two guards here name the call they forbid in order to forbid it, and a check that trips over its own source is a check somebody deletes. The reason the cut was written as "the first #[cfg(test)] anywhere in the file" is that in every file it had been tried on, that is the test module.

studio.rs then grew a #[cfg(test)] on a function, so the function exists for the tests and the compiler forbids the window from calling it. It is at line 1459 of 2766. From that commit both guards read the first half of the largest module in the crate and said nothing whatever about the second half, where the render path and five of the ten padded buttons live.

Neither guard failed, and neither could. The spawn guard went on reporting that every subprocess in the crate is wrapped, over a file it was reading 53% of. What broke the silence was the ledger: the padded-button guard lists what is known to be wrong as well as forbidding what is not on the list, so when it went blind the list became stale and stale is a failure. The half of that guard written for bookkeeping is what caught a defect in the guard itself, which is an argument for the shape rather than for this instance.

It is the same shape as F-210, F-212 and F-257 one turn further in. Those are rules enforced over part of a crate. This is a rule enforced over part of a file, arrived at by a change in a third file that mentions neither guard, which is worse in one specific way: no author was anywhere near the rule when it broke.

The fix is one cut, shared. crate::shipped() cuts at the top-level test module -- #[cfg(test)] at column zero, any further attributes on the same item stepped over, then mod at column zero -- and both guards call it instead of carrying their own copy of the rule. A file with no test module is read whole. The attribute-stepping is not defensive padding: studio.rs writes #[cfg(test)], then #[path = "studio/tests.rs"], then mod tests;, so a version demanding mod immediately after the marker does not cut that file at all. That is harmless there, because its tests are in another file, and being harmless by accident is the thing this function exists to stop relying on.

The test asserts the property rather than a length, since the file keeps growing: the shipped half of studio.rs has to reach the button that opens the vault, at line 2031, and must not carry the test module's declaration. Proved able to fail by putting the old cut back, which fails that test and takes the padded-button ledger down with it.

The thirty-third round: the whole tree again, read for what accumulates

The round after 0.1.21. The thirty-first and thirty-second rounds were about guards: which drift checks did not fail a build, which one had never run. This one starts from the other end, with the brief written before it began, which lists every class of defect the earlier rounds established and every check the repository now runs, and asks of each file whether it is still held to them. The findings are written up as they are made, so the ordering here is the order of the reading rather than of importance.

F-173: the site opened with a checkbox that looked ticked on

The first page anybody sees is the legal gate, and its first checkbox opened already wearing a focus ring. Nothing had been pressed. legal.js called waiver.focus() when the dialog was built, and a browser treats focus moved by script the same as focus moved by a keyboard: :focus-visible matches, and the ring that exists to tell a keyboard user where they are was shown to somebody who had done nothing yet. On a page that asks a reader to tick a box saying they have read something, a box that already looks selected is the wrong first impression to make.

The call was there for a good reason. A modal that does not take focus leaves a keyboard reader behind it, with the page inert and no way to find out why. But a modal's focus is meant to land on the dialog itself, not on its first control: the container carries tabindex="-1", so a script can focus it and the Tab key never stops on it, a screen reader announces the title from there, and the first Tab reaches the first checkbox in the ordinary way. That is what it does now, and .legal-box:focus draws no outline, because a ring around the whole dialog would say the same wrong thing at a larger size.

Proved in a headless browser before and after: before, document.activeElement was the checkbox and it matched :focus-visible; after, it is the box, no input matches, and the box's computed outline is none. The site suite reads the script and the stylesheet and fails if either goes back.

F-174: two changes written under the heading of a release that did not carry them

CHANGELOG.md is the one file this repository allows to describe the past, and the rule that goes with that is the strict one: it is not edited to agree with the present. Two entries, the Studio's place in the documentation and the doc comment that had moved to the wrong function, were written after v0.1.21 was tagged at addea46f and were written under ## v0.1.21. The release notes GitHub published for that tag were derived from the file before those entries existed, so a reader comparing the page with the file would find the file claiming two changes the release does not contain.

The shape is the ordinary one, and the reason it is worth an entry is that the file has a section for exactly this and it was not used. ## Unreleased is what tools/site/releases.py reads for the next version's notes, and it renders as its own dropdown on the releases page when there is something in it. Both entries are under it now, with everything else this round adds.

Nothing checks this and nothing easily can: the tag is the only thing that says which commit a section's entries were written after, and a commit that edits a released section is sometimes right (a typo, a link). The rule stays a rule, and this entry is the reminder that it was broken once.

F-175: the hybrid combiner's documentation claimed more than the code binds

hybrid.rs said: "Both secrets, both ciphertexts and both public keys go into the input". The transcript the combiner salts HKDF with is the ephemeral X25519 public key, the ML-KEM ciphertext and the recipient's X25519 public key. The recipient's ML-KEM encapsulation key is not in it.

This is a documentation defect and not a cryptographic one, and the write-up has to be careful to say which. FIPS 203 derives the ML-KEM shared secret from the message and a hash of the encapsulation key, so that key is bound through the secret itself, and the X-Wing combiner, which is the reference shape for this construction, omits it for that reason. X25519 makes no such promise, which is why its public key is bound by hand. The construction is sound as it stands and it is not changed: changing the transcript would change every key and every container already made, for no difference in what an attacker can do.

The doc comment now says what is in the salt, what is not, why the omission is not a weakness, and why the transcript is not going to change. A sentence in a module note that claims a binding the code does not perform is exactly the kind of thing a reader auditing this crate would find first and trust the rest of the crate less for, and it was there through five rounds that read the file.

F-176: five of the repository's own drift checks ran only when somebody ran them

tools/verify.py runs thirty-odd checks before a commit. Comparing its list with ci.yml found five that were in it and in no workflow: the guard for a state file written in one place and read from another (F-141 and F-142, the defect this project has shipped twice), the per-program guides against the user guide, the questions page against docs/FAQ.md, the app-manifest generator's self-test, and the local site host fetching every page.

The thirty-first round found eleven of these and wired ten into CI, and wrote that "a check that exists and is not in CI catches things eventually". Five more were missed then, so the same sentence applies to the round that wrote it. Each of the five needs nothing but the tree and an interpreter and each is in the assets or site job now.

Two remain out on purpose, and the reason is written here rather than left for the next round to rediscover. tools/shots/sessions.py --check runs the release binaries and one of its sessions checks a published release, which needs the archive, the sums and the signature downloaded into a folder; tools/measured/generate.py --check runs the whole test suite a second time to count it. Both are in tools/verify.py, and neither belongs in a job that should finish in minutes.

F-177: the seven coverage-guided fuzz targets had never run in CI

fuzz/fuzz_targets/ holds seven libFuzzer targets and a committed corpus for each. The thirty-second round's inventory listed them as an existing check. They were: they ran before releases, by hand, and docs/AUDIT.md records the durations. No workflow ran them, so between releases a regression the corpus already reached would wait for the next person to remember.

fuzz.yml runs every target for two minutes from its corpus, weekly and on dispatch, with nightly and cargo-fuzz installed in the job and the memory limit the recorded campaigns used. Two minutes is not a campaign and the workflow's own comment says so; it is enough to fail on what the corpus reaches, which is the thing a scheduled run is for.

The memory limit is worth one sentence. Run with libFuzzer's default of two gibibytes, container_header reports an out-of-memory at once, on an input whose header declares an Argon2 memory cost of two gibibytes. That is not a defect: the attended ceiling is four gibibytes by design (F-82, F-83), the harness deliberately reaches the KDF with attacker-chosen parameters, and the campaigns in the record were run at six. The workflow uses six, and this note is here so that the next person who runs it at two does not write F-178 about it.

F-178: the lock button and the theme picker never agreed on a height

Reported by the person who uses the window, in v0.1.21, after it had been asked for once before: the manual lock button in the header does not line up with the theme picker beside it.

The first measurement was wrong, and that is the more useful half of this entry. The screenshots were read for the two controls and gave a picker twenty-seven pixels tall centred at y=30 against a lock button eight pixels tall centred at y=25, which is a five-pixel misalignment and a clear defect. It is also impossible: the header lays those controls out in one row centred on a common line. What the second run of the tool found is that gui-file.png has no lock button in it at all. The captures photograph a window with no app lock set, and the button is only drawn when there is one, so the run that "measured the lock button" had measured the word "offline" three controls further right.

A photograph of a window is not a measurement of a widget, and a reading that produces an arithmetically impossible answer is a reading to distrust rather than to write up. It was written up. This is what that correction looks like.

Measured properly, by laying the two controls out in the same row in a headless frame with this application's own theme installed: they share a centre exactly, and the picker is 26 pixels tall against the button's 25. One pixel, which is small and is not nothing when two boxes sit side by side, and which comes from each control working its height out from padding with nothing anywhere saying the two should match.

So the button is given the picker's own rectangle to take its height from, rather than a number written down twice. Whatever the picker turns out to be on a platform or at a font size nobody here has tried, the button is that. Two tests hold it: one that the heights and the centres agree, and one that a button left to size itself does not agree, so the first cannot pass by accident.

Nothing about this can be proved from a screenshot, and the test says so where somebody will read it. A capture with an app lock in it would mean a capture run against a configured lock file, which is a larger change to the capture scripts than this finding justifies.

F-181: a promise about allocation, broken in the same file that made it

pace.rs was written this round with a note at the top saying that frame runs once per drawn frame and "allocates nothing, locks nothing and prints nothing", and that the median "is taken over a copy of it on the stack". Both sentences were written by somebody who had just read the rule in docs/CONTRIBUTING.md about realtime paths and meant them.

The median was taken with slice::sort_by over a thirty-two element array. Rust's stable sort takes a scratch buffer for a slice that long. So the function allocated, once a frame, in the one module whose documentation had just promised it did not.

Nothing was slow and nothing was wrong on screen: an allocation a frame is not a defect anybody would notice in a window. It is a defect in the sense this document cares about, which is that a sentence in the repository was not true about the code beneath it, and the sentence was fourteen lines above the code.

The fix is select_nth_unstable_by, which sorts nothing, allocates nothing and only has to get the middle element right, which is all a median wants. The comment beside it now says which of the two functions allocates and why the choice is not a micro-optimisation.

Worth naming because of where it came from. This is not old code that drifted; it is code written in this round, by the reading that the same round was doing. A rule you have just read is easiest to break while writing the thing you read it for, and the guard that catches this class today reads audio callbacks rather than the window's draw path. Extending it is roadmap item 151's neighbour and is not done here.

F-182: five public items that nothing reached, and the reason no compiler said so

A sweep of every pub declaration in the twenty-seven crates against every mention of its name anywhere in the tree. Of 1631 public items, twenty-six are named only by their own tests, which is normal and was left alone: a reader kept beside a writer, a constructor whose front end is not written yet. Five were named by nothing at all.

ItemWhat it didWhy nothing called it
AppLock::needs_upgradetrue for a record older than the authentication tagLockStore::unlock re-tags on every success, so the upgrade happens without anybody asking the question
edit::speaker_with_coloura validating constructor for a speaker with a colourSpeaker::named plus set_colour is the path both front ends take, and it validates through the same function
Studio::is_a_roomwhether the running session is a roomthe reading already arrives as Reading::Room, which is the same answer carrying the data with it
WatchFeed::has_unseenwhether an alert is queuedunseen drains the queue and the caller tests what it got
VaultStore::last_auditwhat the last vault audit foundunlocked returns the audit, and the one caller uses the returned value

None of the five was wrong. That is the point of the finding and the reason it is one: each was compiled into every binary on every platform, documented, published into the generated reference and into the wiki, and answerable to nobody, because there was no caller whose behaviour would change if it were.

The last one cost something measurable. last_audit read a private audit field, and that field was filled by self.audit = Some(audit.clone()) on every vault open. So the accessor nobody called was keeping alive a field nobody read and a clone of the audit result performed every time the vault was opened. The field and the clone are gone with it.

Why dead_code is structurally unable to report any of this. The lint stops at the crate boundary, because a public item in a library might be called by a consumer the compiler cannot see. In a workspace whose libraries have exactly two consumers, both inside the workspace, that leaves the whole class unwatched. It is worse than silence: a public accessor reads its private field, so the field is live as far as the lint is concerned, and the pair survives together. Nothing in a build was looking at this, which is why the sweep was done by hand and why it is now a check.

The guard. tools/audit/reachable.py, in tools/verify.py and in CI beside dependencies.py, which asks the same question of the code this project imports. It asks the narrowest version deliberately: is this name written down anywhere but on the line declaring it. An item reached only by a test passes, because that is a real and often correct state; an item reached by nothing does not. The exemption list is empty and is meant to stay that way, since an entry in it is an argument to be written out rather than a line that makes a build go green. It was proved able to fail before it was trusted, by planting a public function nothing called and watching it name the file and line.

What the plan expected, and what was actually there. The brief named ffmpeg::command as the first suspect. It is called, from veilvoice-cli/src/conversation.rs. A suspicion about which item is dead is worth exactly nothing next to the sweep that answers it for all 1631 at once, and the sweep is the part that is now repeatable.

F-184: the site proved its own ownership on nine pages out of fourteen

Search Console verifies that somebody owns a site by fetching a page and looking for one meta tag. The tag was added this round and recorded as being in the head of every page. It was on nine of the fourteen hand-written pages and on none of the 383 generated ones: 404.html, search.html, wiki.html and both editions of the JavaScript-free site did not carry it, and neither did the whole generated reference.

Why that is a defect rather than an untidiness. Which URL a crawler fetches is not this project's decision. An ownership proof that holds on the home page and not on the page somebody actually asked about fails in the one way that is hardest to diagnose from outside: nothing is broken, nothing is logged, the tag simply is not there. The claim in the notes that it was on every page was also not true, and this document's standing rule is that no part of this repository may say something that is not.

The two generators were changed to emit it, the four remaining hand-written pages given it, and a check added that all 397 pages carried the same token.

Withdrawn shortly afterwards, and this entry is kept as the record of it. The verification was never completed at Search Console's end, and indexing the site is not something this project is pursuing for now, so the tag, the generators' half of it and the check were all taken back out. What the entry is still worth is the shape of the mistake: a claim that something was on every page, made without counting the pages. That part did not depend on the tag.

F-183: the crate the whole program's security rests on could not be checked for undefined behaviour

Miri interprets a program and reports undefined behaviour. It was run here for the first time this round, and veilvoice-crypto was on the list of crates still to do. Running it produced this, on the first test that built anything:

error: unsupported operation: can't call foreign function `mlock` on OS `linux`
   region::os::unix::lock
   region::lock::<u8>
   amnesia::Secret::zeroed
   amnesia::Secret::new
   aead::tests::key

Secret is the type every key, every passphrase-derived value and every plaintext buffer in this project lives in. Secret::zeroed locks its pages out of swap through region::lock, which is mlock, and Miri has no shim for it. So the first Secret any test constructed ended the entire run, and the crate holding the AEAD, the container format, the key derivation, the hybrid encapsulation, the reversible encodings and the file shredder was the one crate in this workspace that the undefined-behaviour checker could not examine at all.

Nothing had said so, because nothing had asked. Miri had never been run in this repository until this round; before that there was no observation to be missing. The defect is the state, not the omission: a large amount of parsing, framing and constant-time comparison was outside the reach of the one tool this project has for that class of question, and it would have stayed outside it for as long as nobody tried.

The fix, and why it weakens nothing. lock_pages and unlock_pages now wrap the two calls, and under cfg(miri) they do nothing and answer false. That is not a new path. Locking has been best effort here since the type was written, and the module says so at length: a machine with no memlock budget, a platform without the call, and an allocation that will not align all take this same path already, is_locked answers false, and no correctness property has ever depended on the answer. The interpreter is one more environment in which the lock does not happen, and the only one that is a build rather than a machine. The zeroing, which is the guarantee the type actually makes, is untouched, so Miri still watches every write and every drop.

Two tests, because the fix is only worth what keeps it true. One reads the file and fails, naming the function and the line, if region::lock or region::unlock is called from anywhere but those two wrappers: a second direct call written into a constructor would be invisible until somebody ran Miri again and found the crate unexaminable for a second time. It needed its needles assembled from halves at run time, because written out whole they occur in the test's own body and it reported itself on the first run. The other asserts that a secret stores, returns and wipes the same bytes whether or not locking happened, and that under Miri the type says it is not locked rather than claiming a guarantee it did not obtain.

Also seen, and not a finding. Miri warns that region casts an integer to a pointer inside round_to_page_boundaries, which weakens its provenance tracking around that call. It is moot under the fix, since the call no longer happens there.

What the interpreter then saw, and what it still cannot reach. With the lock out of its way it ran 72 of this crate's 240 tests and reported no undefined behaviour in any of them: the reversible encodings (18), the AEAD (12), the protected-memory type itself (11), the chunked tape (10), the file shredder (10), the private-file helper (9) and two of the container's. The container's remaining tests and the key derivation are the same wall the engine's transform was, in a harsher form: Argon2id at 256 MiB is memory-hard on purpose, and a memory-hard function under an interpreter is not slow but unfinishable. That half of the crate stays outside Miri's reach and the reason is arithmetic rather than arrangement, so it is recorded as a limit rather than carried as work.

F-186: eighty-one changes to the cryptography that the whole suite accepted

Mutation testing changes the code a line at a time and asks whether any test objects. F-180 ran it over four files of the cryptography crate and found fifteen survivors. This is the same tool over the four it had not reached: the app lock, the studio vault, the chunked tape and the reversible encodings.

674 mutants, 544 caught, 42 that do not compile, 5 timeouts, and 81 the suite accepted. Five rounds of writing tests and re-measuring brought that to eighteen, and every one of the eighteen carries a written argument for why it cannot be killed.

What that is measured over, stated exactly. All four files were campaigned end to end: the app lock 137 mutants, the vault 28, the tape 39, the encodings

  1. A single run of the encodings does not finish here: cargo mutants dies on

pthread_create partway through even at --jobs 1, with fourteen gigabytes free and the thread limit at 64,318. The cause is not established, and is written down that way rather than guessed at. --shard k/6, six separate processes of 78 mutants each, gets past whatever the limit is.

Running it whole was worth insisting on. The partial runs reached 332 of the encodings' 463 and reported four survivors there. The six shards found twelve. The eight the partial runs never reached were all in the base conversions, which sit near the end of the file, and five of the eight were real gaps rather than equivalences. A campaign that stops early does not report that it stopped early: it reports a number, and the number looks like an answer.

Forty-four of the eighty-one were one gap. The encodings had exactly one structural test: encode, decode, compare against the input. That tests the pair and not the encoder. Any change to the encoder that the decoder still reverses passes it, and forty-four such changes exist: run lengths counted to a different limit, literal runs broken at a different place, comparisons moved by one, several | turned into ^ inside the base conversions. Every one produced different encoded bytes and every one still decoded correctly. There are now golden vectors naming exactly what each of the thirty-one encodings emits for one fixed input, each paired with a decode of that same output so a vector cannot be quietly corrected to match a broken encoder.

Three were the app lock, and none was cosmetic.

What survivedWhat it would mean
same_secret_as accepting `\ in place of &`two locks sharing a salt but not a verifier would compare as the same lock
acknowledge replaced with Ok(())a tamper report anybody could dismiss without the passphrase, which is the thing a sticky flag exists to prevent
the rate-limit cap asserted against the constant defining it15 * 60 became 15 + 60, and every assertion passed because every assertion read the mutated value from both sides

That last one is F-71's shape in a third place: a check that compares a claim against a copy of itself. The cap is now asserted as 900, which is the number the sentence beside it states.

Two were not missing tests at all. In the run-length encoder, one condition could only break where the very next line already breaks, and one branch handling a zero-length literal cannot be reached: entering that code path means the run test found fewer than two equal bytes, so the first pass always takes one. Three mutants lived in the first and two in the second. Both are gone. A condition nothing depends on is invisible from the outside until something changes it and no test complains, which is the only way either could have surfaced.

Three of the tests written to kill these did not test what they said, and the campaign is what found each.

The never-identity rotation test fixed the first seed byte at a value selecting an encoding that is not a rotation, so the assertion inside never executed and the two mutants walked through it. A later version drew a hundred random encodings, which reaches a rotation about ninety-six times in a hundred runs: the campaign duly reported one of that pair surviving while killing the other, which is what a test that only usually tests something looks like from outside. It now enumerates all 65,536 seed pairs, draws four thousand times, and fails if it never saw a rotation at all.

The truncated-escape test derived its escape roadmap item by encoding a space, which works for the two encodings that escape a space and hands yEnc an ordinary encoded byte, because yEnc escapes four particular values and leaves a space alone. It was feeding yEnc something that is not an escape and then reporting yEnc for accepting it. Corrected again after that, because yEnc takes one byte after its roadmap item where the other two take two hexadecimal digits, so an input truncated for them is complete for it.

A vault test meant to prove that storing into a missing directory creates it never reached the code, because the vault creates that directory a step earlier. The case that reaches it is the folder being deleted between opening the vault and writing to it.

The lesson, and it is the same one each time. A test that passes proves nothing about whether it is testing anything. Only changing the code underneath and watching the test fail does. Every one of these three looked correct on the page, was reviewed while being written, and was wrong.

The five the shards found, and what it took to kill them. Base-91 decides between packing thirteen bits and fourteen by comparing a thirteen-bit window against 88, in the encoder and again in the decoder. Moving either comparison by one changes the encoded form only when that window is exactly 88, and no sample, no length from nothing to sixty-four bytes, and neither a counter nor an all-ones run ever lands on it. Two searches found inputs that do: one of twenty-two bytes that reaches the boundary on the way in, and one of five that reaches it on the way out, because the decoder rebuilds a fourteen-bit value and tests the low thirteen of it, which is not the number the encoder tested. Both are named in the test with the reason each was needed.

The decoder also needed pinning on its own. The digest test calls apply and never undo, and the round trip is blind to any change the pair still agrees on. That is not enough to call a decoder mutant equivalent, because undo is not only fed apply's output: it is fed bytes read back from disk, which whoever can write that file chooses. So it is pinned on input built from its own alphabet.

What cannot be killed, and why that is written down rather than rounded off. Eighteen survivors remain, in tools/mutants/survivors.txt, each with its argument. Seven are equivalent by arithmetic: six where the operands occupy disjoint bits so | and ^ compute the same value, and one where a cast to a byte already reduces modulo 256. Ten are properties of the machine rather than of the code: whether the operating system granted a page lock, whether a portable roadmap item sits beside the executable, whether a directory under /etc can be made, what the account's own configuration directory holds. One is reachable only through a self-contradiction: telling the vault's index guard apart from one that accepts any failure needs a read of a path that fails and a write to that same path that then succeeds.

F-207: the whole of CI could be green over a tree tools/verify.py fails on

Found by reading ci.yml against tools/verify.py line for line, after F-201, and it is F-201's cause rather than another instance of it.

tools/verify.py makes forty checks. Thirty-eight of them are in ci.yml, almost all in the assets job, which was deliberately built to hold every guard that needs nothing but the tree and an interpreter. Two were in neither that job nor any other:

  • tools/shots/sessions.py --check, which re-runs each recorded session against the real program and compares the transcript, and
  • tools/measured/generate.py --check, which measures the test count, the functional line count and the crate count and compares them against the ten sentences on the website and in the README that quote them.

Both need a compiled program, which is why they were left out of a job that has no toolchain. The consequence is the finding: CI going green did not mean tools/verify.py would pass, and for those two checks CI was not a weaker signal than the verification pass, it was no signal at all.

That is not a theoretical gap, it is exactly how F-201 survived. assets/screenshots/session-info.txt disagreed with what veilvoice info prints for two commits on dev, with the whole matrix green each time, until somebody happened to run the verification pass by hand before a push. The check that catches it existed, worked, and was run by nobody automatically.

tools/measured/generate.py states the same gap about itself in its own docstring, in a sentence written when it was true: "a claim can now drift only if this tool is not run -- which tools/verify.py and CI both do." CI did not. This is the F-176 and F-177 shape a third time, a check that exists and is advisory, and it is worth noticing that all three were found by comparing one file against another rather than by anything failing. The absence of a check is invisible in a way its failure would not be, which is F-197's sentence and now has four instances.

The fix puts both in the test job's Linux leg, after the release build they need and after the test run whose compilation the second one reuses. Linux only, because both ask about the source rather than about a platform.

And one thing had to move before that was safe. sessions.py records five sessions, four of which it re-runs and one of which it cannot: the fifth is the verifier checking a published release, so between a version bump and that release going out it legitimately names the previous version. The tool says so in as many words, and the comment beside it closed with the reason that was fine: "tools/verify.py is the only thing that runs this check, so a release commit still goes through CI green." Wiring it into CI unchanged would have made that sentence false and put dev red for the length of every release, over a state the tool itself calls expected. A guard that fires on something legitimate is a finding rather than a result, so CI passes --rerun-only and asks the four questions it can answer. The fifth is asked by promote.yml, which runs tools/verify.py whole, at the point where it can be answered.

F-209: a generator that published the previous demonstration, and looked like a flake

Found while pushing roadmap item 181. That change edits tools/site/demo.py, so website/js/demo-data.js comes out different, and a single python tools/verify.py --quick went red on website source pages match their files, naming website/js/demo-data.js and the five pages derived from it. Running it a second time, changing nothing, passed.

A single run fails, a second run passes, and nothing is wrong with the change being tested. That is the worst shape a build failure can take, because it is indistinguishable from a flake, and the cheapest response to a flake is to run it again, which works. Nobody investigates a thing that fixed itself.

The cause is an ordering in tools/verify.py. tools/docs/sources.py publishes a page for every file under website/js and website/css, and tools/site/demo.py writes one of the files under website/js. So the demonstration has to be generated before the source pages are taken from it. The generator list ran them the other way round: source pages at position nine, demonstration at position fourteen. A pass therefore published the previous demonstration as the source page, then regenerated the demonstration underneath it, and the check at the end compared the two and found them different. The second run published what the first run had left behind, which is why it passed.

The comment was right and the code was not. The line above the demonstration step read, and had read since it was written, "Before the source pages walk website/js, since this writes one of them". That is a correct statement of the dependency, sitting on a step that ran after the thing it names. Both halves looked fine to a reader: the comment says the right thing, and the list is long enough that nobody holds fourteen positions in their head while reading one of them. A comment cannot be run, which is the whole lesson.

It survived because website/js/demo-data.js almost never changes. The demonstration is generated from the tab list, the settings pages and the screenshots, so it moves when the interface moves, which is rare enough that the two-run behaviour had either not been seen or been seen and taken for a flake.

The fix is the reorder, and then a guard, because a reorder is exactly the kind of thing a later edit undoes. MUST_RUN_BEFORE names the four pairs in that list which are load bearing, each with the file that creates the dependency: the demonstration before the source pages, the source pages before the wiki on the website (which learns what exists by walking website/reference/), the section pages before the roadmap page (which borrows the header the split takes out of index.html), and the addresses before the search index. ordering_faults() checks the list against that table and runs before any generator does, because an order that is wrong wastes the whole run and then reports the file that was published stale rather than the ordering that published it.

It is deliberately not a second copy of the order. Fourteen generators have many possible orderings and only four of them matter; a table listing all fourteen would be the same fact written twice, which is the thing this repository does not do, and it would need editing every time a generator was added for a reason having nothing to do with dependencies.

Proven both ways rather than only the way that passes: it reports no faults as shipped, and swapping the demonstration and the source pages back makes it name that exact pair and the reason. A guard that has only ever been seen to pass is the shape F-200 ran into, where the reader being relied on could not have seen the key it was checking for.

F-208: the release procedure was a paragraph, and the only thing checking it ran last

The other half of the same reading, and the larger one.

docs/CONTRIBUTING.md says when a version is cut: the roadmap items in the group are done, tools/verify.py passes whole rather than --quick, CHANGELOG.md has the notes, and an audit round has read what changed. Six clauses, each of them checkable, and the enforcement for all six was a person reading that paragraph on the morning of a release.

One of them had machinery. release.yml refuses to publish a release whose ## v<version> section is missing from CHANGELOG.md, which was put there because v0.1.21 published describing nothing at all. It fires in the last step of the last job, after twelve build jobs have compiled every target twice and compared the bytes, and, more to the point, after main has already moved. main is the released branch: the website publishes from it, the wiki publishes from it, and a reader who fetches between a bad merge and its repair gets a main claiming to be a release whose notes nobody can read.

So the ordering was inverted. The cheapest check ran last, behind the most expensive work, and behind the one step that is awkward to undo.

Nothing checked the other five at all. An item still marked planned in a released version is the roadmap misdescribing what is finished, which is the one thing a roadmap is for. A release cut with no round written up in this document is the audit clause skipped rather than satisfied, and nothing would ever say so.

The fix is promote.yml, and the order it does things in. Everything askable is asked first, from a fresh checkout, and main moves only once all of it has passed: the six clauses above through tools/release/readiness.py, then tools/verify.py whole with the cargo steps, then whether ci.yml is actually green on the commit being promoted. Only then the merge, and then the release build, which makes the tag at the commit it built.

Why a fresh checkout is written into it rather than assumed. The defect found on dev the same morning is the argument: a commit referenced a test fixture that .gitignore had kept out of the repository, git add skipped it in silence, git status was clean because an ignored file is never a candidate to report, tools/verify.py --quick passed, and the tree did not compile for anybody who cloned it. No check that runs where the author is standing can see that class of defect, because the file is there. A release gate is the one place it is cheapest to catch and most expensive to miss.

One thing about it is not fixable from dev, and is written down rather than left to be met. GitHub registers a workflow_dispatch workflow only from the repository's default branch. promote.yml lives on dev, so it is absent from the workflow listing and a dispatch of it answers 404; it becomes dispatchable when the first release merge carries it to main. That merge is therefore the one it cannot do, and docs/CONTRIBUTING.md says so beside the procedure rather than leaving a release to discover it. It is the same shape as F-197 and F-199 one more time, a workflow that cannot run where the work is, with the difference that this one is a property of the platform rather than a mistake, so the answer is to name it.

What is deliberately not automated. There is no push trigger and no schedule. docs/CONTRIBUTING.md says a version is cut when a group of changes is finished and audited, not on a date, and "every green commit on dev becomes a release" is a different policy from that one. Starting it is a judgement, so it stays a dispatch; everything after that judgement is not, so none of it does.

F-206: a test fixture the ignore rules swallowed, and a gate that failed for everybody

Roadmap item 164 added crates/veilvoice-verify/src/check/testdata/not-our-key.asc, a public key that is deliberately not this project's, so check::carried's tests can prove a download carrying somebody else's signing key is refused. It is reached with include_str!.

.gitignore carries *.asc, which is there so a private key can never be committed by accident and is right to be there. So git add -A skipped the fixture, git status never mentioned it, every check passed on the machine that wrote it, and the commit went out with an include_str! pointing at a file that was not in the tree. On a fresh clone veilvoice-verify does not compile at all.

The gate did not merely miss this. It failed for every thread in the project. tools/verify.py runs tools/measured/generate.py as a generator rather than as one of the cargo steps, so --quick does not skip it, and that generator runs the test suite to get a number to record. On a clean dev it exited 1 with couldn't read .../not-our-key.asc. For a few hours anybody running the pre-push check was watching it fail for a reason that had nothing to do with their own work, and the choice in front of them was to push without a gate or to stop. That is the expensive part of this defect, and it is worth separating from the missing file: one commit broke the shared instrument that every other commit is measured with.

Why git status could not help. The habit this repository already has -- run the checks, look at git status, commit what is there -- cannot catch it. A file git has never been offered is absent from that listing in both directions: it is not modified, not staged and not untracked, because it was never a candidate. So a clean tree after a run does not mean everything that was written is in the commit, and there is no amount of care at the terminal that turns it into one. Every check here reads the working tree; the working tree is not what CI clones.

The file is allowed back in with a negation line beside the two already there, rather than with git add -f. A forced add leaves nothing behind for the next person: the rule still says the file is ignored, and the only record that somebody decided otherwise is in a shell history nobody has.

The general fix is not a second rule in .gitignore. It is tools/audit/fixtures.py (F-204), which walks every include_str!, include_bytes! and assets/ reference in the tree and fails on anything git does not track. That guard would have failed this commit before it was made, and it covers the whole class rather than the one extension that happened to bite. This finding points at it rather than adding a guard beside it.

Reproduced, before and after, by cloning the branch into a temporary directory and looking, which is the only way to see what was actually pushed rather than what is on the machine that pushed it.

A note for anybody reading the history. The commit that put the fixture back, 192bb7d, says in its message that the write-up would go in as F-203. That number went to another thread's finding, which is about something else entirely. This write-up then moved twice more, because the audit's own guard forbids a gap in the numbering, so a finding number cannot be reserved ahead of time. tools/site-tests/audit.test.js fails on any gap between the write-ups present and the highest number used, which means findings have to land in ascending order rather than merely hold distinct numbers, and three other findings landed while this one was being written. The commit message cannot be corrected: five threads are working from dev and amending a pushed commit under them is not worth the confusion it would save. So the pointer is here instead, going the other way. The commit named F-203; the finding is this one.

F-259: the wiki workflow failed main on every release merge for a setting

.github/workflows/wiki.yml publishes wiki/ to the repository's GitHub wiki from main. A GitHub wiki repository does not exist until a first page is saved through the Wiki tab. F-199 taught the workflow to try creating it by pushing one, and to fail with instructions where GitHub refuses. GitHub does refuse: a wiki that has never had a page cannot be pushed to. So every release merge would have put a red cross on main for something no change to the code could fix, and a branch that is always red on one workflow is a branch where the next red cross that matters reads as that one.

The pages themselves were never the problem. The check job regenerates them, walks every link and refuses anything a flat wiki cannot hold, on every branch and every pull request, and it still fails on all of that.

The fix

The step that clones the wiki now answers a question, ready, in its outputs. It is true when there is a wiki to push to, cloned or just created. It is false when the clone answered "not found" and creating one was refused, and then the run raises a warning and writes the one-time step into its summary, and exits 0. The copy and the push both run only on true. Any other clone failure, a network error or a token without access, still fails, because the wiki exists then and not publishing to it is a fault.

What stops it returning

tools/audit/wiki_publish.py reads the workflow, in tools/verify.py and in CI. It fails if the step loses its id, if either answer stops being written, if the refusal path exits non-zero or reports an error rather than a warning, or if any step after it runs without asking. The last is the one an edit loses most easily: a step added at the end runs on the skipped path and fails on a directory that is not there. --self-test makes each of those five edits to the real workflow and shows that each one is caught.

F-267: the authorship guard, the signing setup and the rewrite each trusted something they had not checked

Ten defects in the three tools that keep the history in tilas01's name, found by the audit of new code and each confirmed against the tree before it was fixed. They are one finding because they are one shape: a tool that reported success about a thing it had not looked at.

  • K. tools/repo/signing.py failed on an empty, unreadable or unimportable key and left the clone signing with whatever it signed with before, which in a cloud container is a key registered to another account. 1664daa7 is a commit signed that way. Every failure now turns signing off in the clone and says why, and the guard refuses a commit the clone would sign with a key not in SIGNING_KEYS, before it is made.
  • L. The committer address noreply@github.com passed under any name. It is GitHub's own, used when it commits for him in the website, so it now passes only under the name GitHub.
  • M. A force push was checked from the old tip to the new one, which after a rewrite is a range that names none of the replaced commits. A force push is now checked whole.
  • N. rewrite.py --no-sign decided which commits needed rewriting by identity alone, so three commits whose messages named an assistant (07119185, 83f27154, 15f27cf7) would have been left as they were.
  • O. The model-name check matched "Opus" followed by any number, so a sentence about the Opus codec at 48 kHz failed. It now matches a model's version, not a sample rate.
  • P. signing.py set the primary key's fingerprint and never looked for a signing subkey, which is the key that actually signs when there is one.
  • Q. rewrite.py --push built the rewrite again from whatever dev was at the moment, so what was pushed was never what the dry run had shown. It now pushes exactly the result the dry run stored, after proving it again, and refuses if either branch has moved since.
  • R. signing.py did not check the exit status of the git config calls it made, so a failed one still printed success.
  • S. tools/repo/message_filter.py told whoever read it to run filter-branch over --all, which rewrites dev and main as well as the tags, and signs each new commit with the clone's key. It now says --tags, with signing off.
  • T. In a clone with no remote, the guard found no commits to check and passed. It now checks the whole of HEAD there.

Each has a case in python tools/audit/authorship.py --self-test or python tools/repo/signing.py --self-test, and both run in tools/verify.py.

tilas01 read wiki/Crate-veilvoice-conversation.md and saw its six files listed like this:

[[edit.rs    File-veilvoice-conversation-edit]]    649

A GitHub wiki link is [[text|Page]]. In a table the pipe is the column separator, and nothing in Markdown says a link is special, so that row was never one cell holding a link. The opening brackets and the file name made one cell, the page name and the closing brackets made another, and the length and the description shifted one column left into the heading's three. Fifteen crate pages and Source-index, a hundred and eighty-four rows, on the pages whose whole job is to show what a crate is made of.

The two generators that write that table, tools/docs/generate.py and tools/docs/sources.py, each escape the pipes in the summary cell beside it, and have done since the table was written:

summary = (entry["summary"] or "...").replace("|", "\\|")
out.append("| [[`%s`|%s]] | %d | %s |" % (...))

So the escaping was not missing. It was put on the cell whose text arrives from a doc comment, where a pipe would be somebody else's fault, and left off the cell the same line writes itself. That is worth stating plainly because it is the shape of the mistake rather than the mistake: the author of a table escapes the part they are thinking about, and the part they are typing is not it.

Both now write an ordinary [name](https://github.com/tilas01/veilvoice/blob/main/docs/Page) link. A wiki resolves a relative link to the page of that name, which is the same resolution [[name|Page]] was asking for and the same one every cross-document link in the wiki already uses, so nothing about the destination changes. It simply has no pipe in it, and cannot be broken again by the thing that broke it.

Why nothing noticed

Every check this repository has over the wiki reads links, and by the time this row was written there was no link to read. The dangling-link check walks each [[link]] and fails on one naming a page that does not exist; the rewritten-twice check looks for a repository URL ending in a page name. A [[ with its closing half three cells away matches neither, because it is not a link, it is four cells of text.

The rendering did not give it away either, which is the part worth keeping. A row with one cell too many still renders as a table: the browser draws the extra cell and carries on. Nothing is misaligned, nothing overflows, no validator complains. It takes a reader looking at the words, which is what happened.

The guard

tools/audit/tables.py reads every Markdown table in the repository and fails on a row whose cell count differs from its heading's. It runs in tools/verify.py and in ci.yml, with its --self-test beside it in both.

Counting cells rather than looking for a visible [[ is deliberate. A bracket check would have found this and nothing else. A row that does not fit its heading is the fault itself, whatever put it there: a pipe in a path, a pipe in a quoted regular expression, a hand-drawn table a column short. And it can be reported in terms a reader can act on, that this row has one cell too many, rather than naming a symptom and leaving the cause to be worked out.

Its self-test builds six files: the row as it was published, the same row written the new way, a cell with a properly escaped pipe, a row missing its last cell, a broken row quoted inside a fenced block, and two tables of different widths in one file. It fails if either fault goes uncaught or any of the four innocent shapes is reported. The fenced case earns its place in that list: the guard's own documentation shows the broken row on purpose, and a guard that fails on the description of a defect is a guard that teaches people to stop describing defects.

A sweep for the neighbouring shapes found nothing else: no unbalanced [[ and no empty link target anywhere in wiki/, and no other generator writes a wiki link into a table row.

F-269: the check on the reference pages read two rows in five

tools/site-tests/source.test.js has a check from F-215, where the generator read const fn rgb as a constant named fn and published two rows whose name was a keyword. The check asserts the general rule rather than those two rows: no Rust keyword is the name of anything, so a keyword in the name column means a modifier was read as the item.

It matched rows with this pattern:

<td><code>([^<]+)</code>\s*<sub>([a-z]+)</sub></td>

[a-z]+ is one word. Every kind that reaches a reader with a visibility on it is two: pub fn, pub const, pub struct, pub(crate) fn. So the check read 1,044 of the item rows on the site and the other 1,538 went past it unlooked at. Those 1,538 are every public item the reference pages document, which is both the part a reader is most likely to look up and the part where the F-215 misreading was likeliest to land, since pub const fn rgb is the same trap as const fn rgb with a word in front of it.

It then printed the figure it had reached as though it were coverage: "none of the 1044 items listed on a reference page is a keyword". A count of what a check looked at reads exactly like a count of what there was to look at.

No row was wrong, so this is a defect in the check and not in the pages. It is written up because a check that silently sees two rows in five is worse than no check, for the reason given in F-228: it is counted.

The fix

The rows are counted off the table now rather than off the row pattern. Tables are found by the heading the generator writes, Item | Line | Documentation, and every row inside one must be readable by the item pattern; a row that is not is itself a failure, naming the row. So the next change to that markup cannot quietly take the check's sight away again, which is the thing that happened here. The kind is matched as any text, and the whole of every item table, all 2,621 rows, is now checked.

The name's last path segment is checked as well, because a modifier read as the item on a method lands there rather than on its own: Tab::fn is the same defect as fn. Not against the whole keyword list though. default and union are weak keywords, which means Rust accepts them as names, and Type::default is the commonest method there is. The first run of the widened check reported thirty misread rows and twenty-nine of them were ::default, which was the check being wrong rather than the pages, so the two nameable words are allowed in a path and still reported as a whole item name, where the generator has no business producing them.

Confirmed by injecting both faults into a published page and seeing each reported by name: Tab::fn of kind pub const, which the old pattern could not have seen, and a row whose kind was wrapped in <em> rather than <sub>, which is the markup change the coverage assertion exists for.

F-268: typing the decoy passphrase destroyed the records the real one owns

Found by the audit of the decoy code landed in c8ea762f, reproduced by a test before it was fixed, and the most serious thing this round found: the decoy feature's one promise, made in the words the window itself shows, was false in the ordinary case.

Where: crates/veilvoice-gui/src/app.rs, the call to VaultStore::start_unlocking, and vault_store.rs's open_with.

What happened: a decoy unlock derives a store key of its own, which is the whole point of it: the folder it opens is a different folder from the real one, under the same files. app.rs then handed that key to the same unlock a real passphrase gets, and an unlock is not only an opening. It reads every plain record, writes it back into the hoard under the key it was given, and shreds the original with three overwriting passes, because a settings file naming your vault should not be recoverable from free space after VeilVoice has said it is now encrypted.

Under a decoy's key that is destruction. The settings, the policies and the integrity record were moved somewhere the real passphrase cannot reach and the originals were overwritten.

Records are plain whenever one was written with the hoard shut, which is every Op::Set until the next unlock, so this was not a corner. Set a lock, set a decoy, quit, and unlock once with the decoy: the real passphrase now opens a folder with nothing of its own in it.

veilvoice_crypto::decoy::SCOPE is shown to whoever sets a decoy up and is careful about what the feature does not do. It ends "Nothing is destroyed, and nothing can be. Typing the decoy by mistake costs you a relaunch and nothing else." A decoy is handed over to somebody standing over you, so it is typed under exactly the conditions in which a mistake is likeliest, and the promise that a mistake is cheap is what makes it usable at all.

Fix: the caller says which kind of unlock this is, with vault_store::Plain, and a decoy session passes Plain::Leave: the hoard is opened, so what that session writes goes in under its own key and stays invisible to the real one, and nothing already in the folder is read, moved, shredded or added to. Security::opened_with_decoy had no reader outside its own tests before this; it has one now, which is the second half of the lesson.

The audit is skipped for a decoy session too. Not one real record authenticates under a decoy's key, so an audit would have reported every one of them as tampered with, and the window would have greeted somebody who had just typed the decoy with a warning that their files had been changed while VeilVoice was shut. A session that cannot read the folder has nothing true to say about it.

Regression test: a plain record is written, a decoy session unlocks, and then the real key unlocks the same folder and must still read the record. The second unlock is the half that matters: a test that only checked the plain file still existed would pass against a decoy session that had encrypted it in place under its own key. The same test asserts the decoy session cannot read the record and that its audit is clean.

F-253: the app lock's cooldown told the decoy passphrase apart from the real one

Found by the audit of the decoy code, reproduced by a test before it was fixed. This one defeated the feature rather than weakening it.

Store::judge derived the decoy, compared it, and answered Opened::Decoy without ever reaching LockStore::unlock. The real passphrase did reach it, and verify_at refuses during the rate limit's wait before it derives anything. So in the five seconds after four wrong attempts, the decoy opened and the real passphrase was refused. Anybody holding the machine could type four wrong passphrases, hand it over, ask for it to be unlocked, and read the answer off which way it went: a window that opens during the wait was opened with the decoy. A decoy that announces itself is not a decoy, and this is the exact situation the feature exists for.

The comment that stood above it argued the other way, that somebody who needs a decoy is in no position to wait out a delay. That is true and it is not worth the thing it costs. judge now reports the wait after the decoy has been derived and before either passphrase is acted on, so every passphrase gets the same refusal and the same number of seconds.

What this does not close, and what the code now says in as many words, is the lock file. A decoy that opens leaves the failure count where it was and the file unwritten, while the real passphrase resets the count and rewrites it, so somebody who can read the file before and after can still tell the two apart. Closing that would mean rewriting the lock record from a decoy session, which takes the real passphrase, which a decoy session does not have. The feature protects against somebody watching the screen, not against somebody holding the disk, and saying so is better than implying otherwise.

a_cooldown_refuses_the_decoy_the_way_it_refuses_the_real_passphrase drives all three passphrases into a lock that is waiting and checks that the answers and the seconds match.

F-252: setting a decoy passphrase was an unthrottled way of guessing the real one

Found by the audit of the decoy code, confirmed by reading crates/veilvoice-crypto/src/decoy.rs and the terminal command that drives it.

Store::set and Store::remove both begin by proving the real passphrase, and both proved it with LockStore::would_open, which lock.rs documents as recording nothing: no failure counted, no rate limit consulted, no tamper check. veilvoice decoy set asked the same question a second time before prompting for the decoy, for the same reason and in the same way. So a script driving either command on a pseudo-terminal could guess the app-lock passphrase as fast as Argon2id allows, as freely during a cooldown as outside one, while the lock screen beside it was still counting attempts and making people wait. Every other operation that needs the passphrase, lock change and lock remove among them, goes through LockStore::unlock and is throttled.

Proving the real passphrase now goes through unlock, so a wrong one is counted and the wait applies, and the terminal's early check does the same. A cooldown reached this way is reported as Refused::Cooldown, in seconds, rather than being reported as a wrong passphrase, because somebody who has mistyped four times and then typed it correctly should be told what is actually happening.

a_wrong_passphrase_at_the_decoy_store_is_counted_like_any_other guesses four times through Store::set, then shows the right passphrase waiting, and shows removal on the same rule.

F-251: a finding number written up twice counted as one, and the numbering check passed it

tools/measured/generate.py measures two numbers from this document, how many findings have an entry and the highest number used, and tools/site-tests/audit.test.js fails when they differ, because a difference is a number with no write-up (F-94). It gathered the numbers into a set. So a number written up twice counted once, the count still equalled the highest, and the check passed. That happened: the wiki link fix landed as F-247, the authorship guard's title check landed ten hours later as F-247 too, and for the ten hours after that dev carried both entries under the one number with every check green. Nothing in the suite found it; it was renumbered by hand as F-248.

A duplicate is the same failure as a gap, seen from the other side: a reader sent to F-247 found two defects and could not tell which was meant, and the verdict's total was one short of the findings written up.

The fix. The generator keeps every entry rather than a set of them and stops, naming the number, when one is written up twice. The site test reads the document itself with the generator's own heading pattern and fails on a duplicate, so the claim is not checked only by the tool that writes it.

What is checked. audit.test.js first runs its duplicate check on a planted pair, two entries each for F-7 and F-8 among a mention shaped like a heading, and fails if that does not come back as exactly those two, so a pattern that stopped matching cannot pass by finding nothing. Then it reads docs/AUDIT.md. A second ### F-12 appended to this document made both the generator and the suite refuse, naming F-12.

F-249: the tour stored a stop it had never shown, so the decoy card would have reached nobody who had already toured

Found while wiring roadmap item 173's window half, by reading what the window stores when the walkthrough finishes.

crate::tour::Stage::applies leaves a stop out for two different reasons, and app.rs stored both as though they were one. A stop can be left out because what it offers is already done, which is an answer: the app-lock stop is not shown to somebody who already has a lock, and storing its name is what stops the next launch offering it again. Or it can be left out because it cannot be offered at all yet, which is the opposite. The decoy stop was gated on Already::decoy_can_be_set, false in every build up to and including v0.1.22 because nothing in the window could set a decoy, and mark_toured(&all_keys()) stored its name regardless.

So every reader who finished the walkthrough in a release before this one has setup-decoy in toured_tabs, and Tour::start_new_only honours it. Roadmap item 173 makes that stop showable. Without this fix it would have been shown to new readers only, and the one card that says what a decoy is worth, and that no passphrase destroys anything, would never have reached the people already using VeilVoice.

tour::keys_settled now answers what a finished run settled, Stage::settled is where the difference between the two kinds of skip is written down, and the window stores that. the_window_stores_every_stop_it_settled_rather_than_the_ones_it_showed reads app.rs for the call, and the_decoy_stop_is_not_stored_when_it_could_not_be_offered drives the two cases through keys_settled itself.

What this does not do is repair a settings file written by an older build. A stored setup-decoy cannot be told apart from a stop genuinely seen, so dropping it would offer the card again, for ever, to the readers who have seen it. The way back for somebody who upgraded is Settings, then The tour, which shows every stop that applies whatever is stored. That is a smaller remedy than the defect, and it is the honest one.

F-248: two commits ran their body into their title, and nothing checked the shape of a message

Where: tools/audit/authorship.py, which reads every commit about to be pushed and every commit a push carries, and checked who made it, what its message names and how it is signed, but not how the message is laid out.

What happened: ab1fbbc and c95a1ef reached dev with the first hyphen line of their body on the line straight after the title. git takes everything up to the first blank line as the title, so each whole message, 604 and 588 characters, became its title: one line in git log --oneline, one line in GitHub's commit list, and one line on the releases page, which builds its notes from titles. docs/CONTRIBUTING.md already asked for a blank line after the title; nothing held anybody to it.

Fix: a commit whose message is longer than one line must have a blank second line, and the guard refuses one that does not, before it is made into a push and again in CI on every commit a push carries. The one-time rewrite of the history (tools/repo/rewrite.py) gives those two commits the blank line they were missing.

Regression test: the guard's self-test builds a commit with a hyphen line straight under its title and must refuse it, and builds one with the blank line and must pass it.

F-245: every audio glitch printed and took a lock on the audio thread, and an invalidated stream was not an ended one

Found reading the error callbacks in crates/veilvoice-audio/src/live.rs and room.rs against cpal 0.18's own source, during the audit of everything written since v0.1.22, which is when cpal moved from 0.15.

Both paths handed every stream error to one report, which counted it, printed a line to standard error and took a mutex to keep it. Its comment said why that was acceptable: cpal's error callback "is not the realtime data callback", so nothing timed is paid for. On ALSA that is not so. cpal's ALSA backend runs each stream on a worker thread of its own, and on an overrun or underrun that thread calls the error callback inline, then prepare() to recover, then goes back to calling the data callback. An xrun is also the one report that recurs while a stream is otherwise working: it is what a loaded machine produces. So on Linux each glitch printed and waited on a lock, on the audio thread, before the stream could recover from it, which is the shape that turns one glitch into the next. Playback's own error callback printed every one too.

The second half is which errors end a session. device_gone was true for DeviceNotAvailable only. cpal 0.18 also reports StreamInvalidated, which it documents as a stream that "must be rebuilt": WASAPI maps AUDCLNT_E_RESOURCES_INVALIDATED to it, and the PulseAudio host reports a lost server as it. No further sample arrives after either, and the Studio's failsafe, which stops and stores a take whose device has gone, did not stop for it: the take went on recording nothing and looked as though it worked, which is the case roadmap item 145 was written to end.

The fix. One type, live::Troubles, which both paths keep, where there were two copies of the same report. A glitch is two atomic stores, the count and which side, and nothing else; the sentence describing it is written by latest on the thread that asks, which is also where the kept report is read. Everything else is printed and kept as before, because it means the stream is already failing and it is the only thing veilvoice live can say once it is running. device_gone is true for StreamInvalidated as well as DeviceNotAvailable, and still false for DeviceBusy, which comes back. Playback's callback no longer prints a glitch.

What is checked. a_glitch_is_counted_and_described_without_taking_the_lock holds the lock for the whole of a glitch's report, which would wait for ever if the report took it, then checks that the glitch is counted, described, and ordered correctly against a report older and newer than it. an_invalidated_stream_is_a_stream_that_has_ended checks StreamInvalidated against DeviceBusy.

F-244: one sound card was listed ten times under one name, and only the first could be chosen

devices::list names each device by what cpal calls it, and devices::open finds a device by that name. cpal 0.18 replaced Device::name with a description, and on ALSA the description's name is the first line of the card's own description, which every PCM on that card shares. cpal enumerates every PCM ALSA hints at plus hw: and plughw: for each card, so a laptop's one sound card appeared as HDA Intel PCH, ALC3246 Analog for sysdefault, front, hw, plughw, dsnoop and the rest. The list offered identical entries, and open took the first carrying the name, so choosing any of the others opened a different device from the one chosen.

And the names changed underneath people. cpal 0.15, which v0.1.22 was built with, named an ALSA device by its PCM, hw:CARD=PCH,DEV=0, which is what that release's veilvoice devices printed and what --input and --output were given. None of those names opened anything any more.

Found reading cpal 0.18's ALSA backend (host/alsa/mod.rs, description, and enumerate.rs) after the migration commit's note that the name "is the only field wanted".

The fix. A device is listed under its own name unless another in the same list has that name too, and then with the platform's identifier after it in brackets: HDA Intel PCH, ALC3246 Analog (hw:CARD=PCH,DEV=0). Only then, because on Windows the identifier is a GUID and a name nothing else shares already says which device it is. open finds the listed name first, then an identifier on its own, which is the name v0.1.22 used, then the first device with that bare name, which is what the development builds since the migration matched. The default is recognised by identifier, since two devices can share a name and only one of them is the default. The window keeps no device names between runs, so nothing saved needs moving.

What is checked. Against one ALSA card as cpal 0.18 describes it: every_listed_name_opens_the_device_it_was_listed_for checks that no two listed names are alike and that each finds its own device, and a_name_from_an_earlier_release_still_opens_something checks the PCM name v0.1.22 printed and the bare card name.

F-243: the Dependabot guard passed every entry when it could not read ci.yml

tools/audit/dependabot.py checks that each Dependabot entry targets a branch ci.yml builds on a push, which is F-200, and derives that list from ci.yml so that the two cannot drift. Its reader understood one way of writing it, branches: [main, dev]. The block form, a - dev per line, is the other way YAML writes a list and the one GitHub's own examples use; a trailing comment on the one-line form defeated it as well. Either read as no branches, and the comparison was written as wanted and target not in wanted, so no branches meant nothing was compared and every entry passed. A ci.yml building main alone, which is exactly F-197, left the same empty list once main was set aside, and passed too.

So the guard's one derived fact had a silent failure, which is the thing the guard exists to prevent in the file it reads. Its self-test, the check that it can fail, ran in tools/verify.py and not in CI.

The fix. Both list forms are read, quoted and commented; a push with no filter, or on: [push], is every branch; branches-ignore is read as an answer it cannot give rather than as everything. An empty reading is now a failure that says so, and each target is compared against the branches CI builds rather than against those branches with main removed. CI runs the self-test beside the guard.

What is checked. The self-test reads seven ways of writing the trigger, including a push: key further down a job that is not a trigger, and asks whether an entry aimed at dev is complained about when nothing could be read, when CI builds main alone, when it builds every branch and when it builds this repository's two. The old reader gets all seven readings wrong and passes the first two cases.

F-242: the branch tidier failed on every fresh clone

tools/repo/tidy.py lists the remote's branches with git for-each-ref --format=%(refname:short) and cuts the remote's name off the front of each. Every clone has refs/remotes/origin/HEAD, which git shortens to origin alone because that is enough to find it, and cutting origin/ off origin left an empty name. Nothing recognised it, so the dry run went on to ask git for the history of origin/ and stopped with "ambiguous argument". Reproduced on a fresh clone of a two-branch repository before anything was changed.

The fix. It reads each ref's full name and whether it is symbolic, and skips a symbolic one: origin/HEAD is another name for a branch already in the list. What is checked. tidy.py --self-test makes a repository and a clone of it, confirms the clone has origin/HEAD, and checks that its branches read as the one that is not protected. A sample of git's output written into the test would only have recorded what somebody believed git printed, so it is run against git. tools/verify.py and CI both run it, because a tool run by hand and rarely is the kind that is found broken on the day it is needed.

F-241: the screenshot script found broken captures and forgot them

tools/shots/gui.ps1 collects what went wrong while photographing the window into $problems, and exits 1 at the end if the list is not empty. When the capture moved into a function, Shoot, so that the Settings pages could be photographed by the same code as the tabs, its four $problems += lines went on appending to a copy local to the function. PowerShell scopes a variable to the function that assigns it: reading $problems found the script's list, and assigning the longer list made a new one that was thrown away on return. A window that never appeared, a capture that measured nothing, a refused PrintWindow and two tabs that came out identical were each detected and then lost, and the script printed how many captures it had taken and exited 0. The same function already wrote $script:taken, which is why the count was right.

The fix. The four lines say $script:problems. What is checked. tools/audit/powershell.py reads every tracked .ps1 for a compound assignment inside a function to a name the script sets at its own level, which is always this mistake, and leaves a plain = alone because install.ps1 sets $ErrorActionPreference inside a function on purpose. Running the script needs Windows and a window to photograph, so it is read rather than run; its self-test holds the reading to the shapes that matter, including a # inside quotes and a comment block. It found the four lines and nothing else.

F-240: the screen-recorder allowlist was readable by every account on the machine

veilvoice capture allow saves the programs somebody has said they meant to run with Allowlist::save, in crates/veilvoice-watch/src/capture/mod.rs, and the command line described the file as "readable by its owner and nobody else". It was std::fs::write, which creates the file under the umask, so on most systems it was mode 0644 and any account on the machine could read which screen recorders its owner uses.

The fix. The file is opened with mode 0600 on Unix, so it never exists readable by anybody else, and one an earlier build left readable is tightened before anything is written into it. veilvoice-watch takes no dependencies by design, so this is written out in six lines rather than taken from veilvoice-crypto. On Windows the profile's ACL already excludes other unprivileged accounts. What is checked. a_saved_allowlist_is_readable_by_its_owner_alone saves a new allowlist and one over a 0644 file left by an earlier build, and checks both are 0600. Against the old code it fails with the mode 420, which is 0644.

F-239: an empty home directory aimed the uninstall at the working directory

Found reading crates/veilvoice-setup/src/install.rs after F-214 moved the binaries, during the audit of everything written since v0.1.22.

prefix() and bin_dir() built their paths from HOME, or LOCALAPPDATA on Windows, as whatever string the variable held. Set but empty, which is what a service manager, a sudo -H gone wrong or a scrubbed environment leaves, that string is "", and PathBuf::from("") joined with .local/share/veilvoice is a relative path. Relative paths are resolved against the directory the program was started in, so:

  • veilvoice install copied the programs into a .local/bin under whatever directory the terminal was in, and reported success.
  • veilvoice uninstall passed .local/share/veilvoice to removable_prefix(), whose only check is that the last component names VeilVoice, which it does. That is the one remove_dir_all in the crate, and it was aimed at whatever sat at that name under the working directory.

The lock file had the same fault once and was fixed for the empty case, F-143. Neither fix looked at a relative value, which names the working directory just as surely.

The fix. Both functions read the variable through one helper, home_like, which treats an empty or relative value as no home at all. Every caller already handles "no per-user program directory could be found", which is the true answer. What is checked: an_empty_or_relative_home_is_no_home gives the rule an unset, empty, relative and . value, and an absolute one, without touching the test process's own environment.

F-238: install said the programs were on the path without looking

The Unix half of add_to_path was:

let _ = dir;
Ok(false)

and install() reports Ok(false) as "<dir> was already on your PATH". Its comment said the caller prints the line for the person to add, and no caller did. So on macOS, where ~/.local/bin is never on PATH by default, and on any Linux without it, veilvoice install said it had succeeded and that the directory was already on the path, and veilvoice was then not found. That is the outcome F-214 was fixed to end, reached by a second route: F-214 made the copy go to the right directory, and this made the report about that directory untrue.

The fix. It looks, with the same path_contains that status() uses. Where the directory is missing, it answers with an error carrying the line to add to a shell profile, which install() prints as "PATH was not changed: ...". It still edits no profile. docs/INSTALL.md says so where it describes what install.sh does in the same case. What is checked: a_directory_missing_from_path_is_not_reported_as_present asks about a directory on nobody's path and one taken from the test's own PATH, and checks that the first is refused with the export line and the second is not.

copy_programs replaced each installed program with std::fs::copy(from, to). That opens to for writing and truncates it, and opening follows a symbolic link and writes into a hard link. Outside Windows to is in ~/.local/bin, which is exactly where somebody links a portable copy:

ln -s ~/Apps/veilvoice/veilvoice ~/.local/bin/veilvoice
veilvoice install

The program installs from the folder it is running from. Started from the portable folder, or on Linux through the link, which the kernel reports as the file it points at, the source is ~/Apps/veilvoice/veilvoice and the destination is the link. copy_programs compares the two paths as text, so it does not see that they are the same file. The copy then opened the destination through the link, which truncated the portable veilvoice to nothing, and read that same file as the source. Reproduced with the standard library on its own before anything was changed: the copy returned Ok(0) and left the portable program at zero bytes. A link pointing anywhere else had that file overwritten with VeilVoice instead.

The fix. replace_with_copy writes the copy to a new file beside the destination, created with create_new so nothing already at that name is followed, gives it the source's permissions and renames it over the destination. A rename replaces the directory entry: a link is replaced by the file rather than written through, a hard link keeps its old contents under its other name, and on Unix an installed program that is running is replaced rather than refused with "text file busy". A failed copy removes its staged file.

veilvoice verify install --from <DIR> copies into the same directory with std::fs::copy too, in crates/veilvoice-verify/src/lib.rs, which another thread owns, and has been passed to it. The updater's put_in_place renames the old file aside before copying and was never affected.

What is checked. installing_over_a_link_replaces_the_link_and_not_what_it_points_at is the case above with the destination linked to the source itself, then to somebody else's file, and checks that both are unchanged afterwards. installing_over_a_hard_link_does_not_write_through_it checks that the other name keeps the old contents. a_copy_replaces_an_older_one_and_leaves_nothing_beside_it checks that the execute bit survives and nothing staged is left behind.

F-236: the manual said the static and Raspberry Pi archives had a window, and neither has ever had one

Found while working on roadmap item 162, by reading which archives carry the window in order to add FreeBSD to them.

docs/USER_GUIDE.md's table under What runs where said yes to the desktop application and yes to the live microphone for two rows: the statically linked Linux builds and the Raspberry Pi build. .github/workflows/release.yml builds all three archives those rows describe with cli_only: true, which is -p veilvoice-cli --no-default-features: the command line alone, with no live capture, because cpal cannot be linked into a static binary and the armv7 cross toolchain has no ALSA. The per-program guides are generated from the manual, so GUIDE_CLI.md, GUIDE_GUI.md and GUIDE_VERIFY.md said the same.

The release page had it right. tools/site/releases.py labels those archives "command line only", so a reader who looked at the downloads was told the truth and a reader who looked at the manual first was not. The manual is the one a person reads before choosing which archive to download, and on a Raspberry Pi it sent them to one with no window in it.

The two rows now say not shipped and no. tools/audit/platform_table.py reads the build matrix and the table and fails when a row claims the window for archives that are all cli_only, claims a live microphone for them, or denies the window to archives that carry it, and when the matrix builds a label no row describes. It runs in tools/verify.py and in CI beside the updater's label check, with a --self-test that plants each of the three faults.

The BSD row is deliberately not asserted on: since roadmap item 162 the FreeBSD job may carry the window, and whether a given release did is a fact about that release rather than about the workflow. The row stays not shipped until one does.

F-235: fifteen commits named an assistant, and twenty-five of tilas01's read Unverified

Found by tilas01, looking at GitHub's commit view of dev and at who it listed as having written two of them.

This repository has one author. docs/CONTRIBUTING.md said so, and said that no assistant is named in a commit, and nothing checked either. Between 21 and 26 September fifteen commits reached dev naming an assistant: eleven as author and committer, four as committer alone. The four were the ones people missed, because a log shows the author and a reader checking authorship checks the author. The committer is the field GitHub checks a signature against.

Why a plain commit was wrong. The cloud containers the work is done in set their own identity for git in a config file, and some of them in four GIT_AUTHOR_* and GIT_COMMITTER_* environment variables as well. The variables beat every config file, so the fix that looked right, git config user.name, changed nothing where they were set: git var GIT_AUTHOR_IDENT went on answering with the container's identity. A commit made there was wrong by default and looked, from inside the session, like every other commit.

Why the correct ones read Unverified. The same containers sign every commit, with a key registered to a different GitHub account. GitHub verifies a signature against the committer's account, so a commit signed that way in tilas01's name answers unknown_key: four of them were read back from GitHub's own API to confirm it, and twenty-five commits carrying his name correctly show Unverified for exactly that reason. A signature GitHub cannot connect to the committer reads worse than no signature, and the commits that did verify were the fifteen in the other account's name. Correcting the name alone would have swapped one for the other.

Neither main nor any release was touched. main had not moved since 17 September, the contributors GitHub lists for the repository were tilas01 alone, and every published release tag points at a commit outside both branches.

What stops it returning. tools/audit/authorship.py, in tools/verify.py and in CI. It asks git what the next commit would say, before it is made, because verify.py runs before a commit rather than after it; then reads every commit about to be pushed, in both fields, and every message for a co-author or session trailer, a generated-with footer, or an assistant, its maker or a model named anywhere. CI reads every commit a push carried the same way, including a force push, which has no meaningful before and is checked against main instead, and asks GitHub whether it shows each one Verified. Its self-test builds a commit for every case, including the committer-only one, and three sound commits that must pass, one of them made by GitHub itself on his behalf.

Signatures are read from the signature itself, by the key it names, so the guard needs neither GnuPG nor a copy of the public key, and it names the container's key when that is what it finds. It reports a missing or foreign signature rather than failing on it, for now: SIGNATURES_REQUIRED turns on in the commit that gives every place a commit is made from a key GitHub verifies as his, and not before, because a guard that fails every commit anybody can make is a guard somebody switches off.

The history itself is tools/repo/rewrite.py: a rewrite of dev that makes every commit tilas01's, drops the names from the messages, keeps every date and every tree byte for byte, and refuses to push anything the guard would refuse.

F-231: every unlock kept an empty passphrase, and sealed with it

Found by reading the unlock path in crates/veilvoice-gui/src/security.rs end to end during the audit of everything written since v0.1.22, then reproduced with a test before anything was changed.

The unlock button moved what was typed out of the field and handed it to the worker that runs Argon2id:

let entry = std::mem::take(&mut self.entry);
self.spawn(Op::Unlock, entry, String::new());

When the worker answered, poll took the passphrase for the session from the field, which that line had just emptied:

let opened = std::mem::take(&mut self.entry);

So every successful unlock kept "". Two things are built on what it keeps:

  • App-lock sealing (roadmap item 86, Sealing::AppLock) seals each recording under the kept passphrase. It sealed every one under the empty passphrase. A file sealed that way is a container anybody can open, which is a recording in the clear with extra steps, and the window said "sealed".
  • The integrity record. take_unlock_passphrase hands the kept passphrase to the launch check, which opens a sealed record with it or, finding a plain one, seals it. A record sealed properly by veilvoice guard init --sealed would not open, and the window reported it as changed or damaged at every unlock. A plain record was sealed under the empty passphrase and the plain copy removed, so anybody able to write that directory could forge it.

How long. The capture in poll arrived in v0.1.15, and the line that empties the field is older than that, so every release from v0.1.15 to v0.1.22 carries it. It matters more now than it did: roadmap item 170 made app-lock sealing the default for anybody who sets a lock, so v0.1.23 would have sealed every recording its users made under nothing at all.

Why nothing caught it. Every test guarding this passphrase either read the source (that the capture is conditional, that a password change drops it, that locking wipes it) or set the kept passphrase by hand and checked what was done with it. Each was true. None started an unlock and looked at what came out, and the defect was only visible across the two functions, in the order they run. This is the same shape as F-210 and F-220, a check at the scope of one function while the fault sits between two.

The fix. The worker gets a copy and the field keeps the original until poll collects the answer, where it is either moved on (success) or wiped (failure). The field is disabled while the worker runs, so nothing can be typed into it in between, and the copy is held no longer than the worker holds its own. The submission is now one method, begin_unlock, which the button calls and the test calls.

What is checked. an_unlock_keeps_the_passphrase_it_was_typed_with makes a real lock file, starts an unlock the way the button does, collects the answer the way a frame does, and then asks the two questions that matter: that app-lock sealing produces a plan sealed under the passphrase typed, and that the integrity check is handed that passphrase. Against the old code it fails with the plan's passphrase empty, left: [], which is the defect in one line.

What it leaves for people who used the mode. A recording the window sealed with the app lock under any release from v0.1.15 to v0.1.22 was sealed under the empty passphrase. It is not protected, and it will not open with the app lock passphrase. That needed a decision rather than a guess, and the decision taken for v0.1.23 was to ship the repair rather than only the warning: veilvoice_crypto::reseal and veilvoice reseal.

The repair is the only part of this that could make things worse, so what it will not do is where the care went. It finds an affected file the only way there is, by trying the empty passphrase and seeing whether the tag verifies, and it rewrites a file only when that succeeded. A file that does not open with an empty passphrase is reported and left, which is what makes the tool safe to point at a folder of recordings, safe to run twice, and incapable of destroying the files that were never affected. The new container is opened again with the new passphrase and compared against what came out of the old one before anything is written, and the write goes through privatefile::replace_owner_only, so an interrupted repair leaves the original rather than half of a replacement. The passphrase is proved against the app lock before any file is touched, because resealing under a mistyped passphrase is the one outcome worse than the fault: unlike this, it has no repair.

The sweep is capped at UNATTENDED_MAX_M_COST, since it is handed whatever is in the folder rather than a file somebody chose, and a container declaring an absurd memory cost is reported rather than obeyed. Judging a file costs one Argon2id derivation, but only for files that really are password containers: anything else is refused by the header parse, before any memory is asked for.

What it cannot do is said in the same words everywhere, from one constant: resealing protects a file from now on, and it cannot undo a copy somebody already has. veilvoice lock status carries the short form of that, since somebody with an app lock is exactly who this could have reached and checking the lock is where they look.

F-230: the release gate checked one commit and merged another

.github/workflows/promote.yml has two jobs. check checks out dev, runs tools/release/readiness.py, builds, runs tools/verify.py --check whole and asks the API whether ci.yml passed, all against one commit. promote then fetched dev again and merged origin/dev.

Between the two, dev moves. The verification pass alone takes the better part of an hour, and eight threads push to dev in parallel, so the commit merged into main would routinely have been one no step of the gate had seen, with ci.yml possibly still running or already red on it. The summary would still have said that CI was green, naming the checked commit, above a merge of a different one. docs/CONTRIBUTING.md listed "ci.yml is green on the exact commit being promoted" as a gate, and it was only true when nobody pushed.

The fix. check hands the commit it checked to promote as a job output, and promote merges that commit by hash. It first confirms the hash is one and that dev still contains it, because a commit rewritten away between the two jobs is not a release. The summary names both.

And the wiki. A push made with a workflow's own token starts no workflow, which the file already said about release.yml and dispatched it for. The same applies to wiki.yml, which publishes on a push to main and on nothing else that happens here. The push this workflow makes is now the only way main moves, so without a dispatch of its own the wiki would have stayed on the previous release after every promotion. promote now dispatches it beside the release.

docs/CONTRIBUTING.md says both. This is workflow text rather than code, so the check is the one CI already runs over every workflow (tools/audit/actions.py) plus reading the step: the hash is refused unless it is forty hex digits, and git merge-base --is-ancestor refuses one dev no longer carries.

F-229: a test that measured the panic hook, and failed under load

offthread::tests::a_dead_worker_leaves_the_last_answer starts a worker that panics and waits, for up to five seconds, for Answer to notice the worker has gone. It failed in a full cargo test --workspace run during this audit, with the dead worker is not still awaited, and passed on its own.

It was measuring the wrong thing. With RUST_BACKTRACE=1 set, which is how most people debugging a test run, the panic hook walks and symbolises the worker's stack before the unwind that drops the channel's sender begins. In a debug build of the whole window crate, on four cores busy with every other test, that took longer than the five seconds allowed. The worker was dying the whole time; the test gave up first.

Reproduced rather than inferred: two runs of the window's own suite with RUST_BACKTRACE=1 failed once, and two with RUST_BACKTRACE=0 did not.

The fix. The worker leaves with std::panic::resume_unwind, which unwinds the same way and drops the same sender without running the hook, so the test measures Answer and not the backtrace printer. Every wait in that module now allows a minute rather than five seconds. Each loop leaves the moment its condition holds, so a passing run pays nothing for that, and a test is not deleted for failing on a busy runner, which is how F-220 says timing tests usually end. After the change, four consecutive runs with RUST_BACKTRACE=1 passed.

F-233: an option was laid out without its border until the pointer arrived

Roadmap item 168, and the guard was written first on purpose.

The item opens with "hovering a label shifts it by a pixel, because the hover state changes a weight or a padding rather than only a colour". That is a description of a symptom somebody noticed, and the obvious way to work it is to read the interface looking for the place that changes a weight. There is no such place in this crate: every hover colour comes from one theme, and nothing here reads a hover state at all.

So it was measured instead.

How the measuring works. egui knows where every control ended up, in WidgetRects, for its own hit testing, and that is pub(crate). From outside egui the honest record of where a control was put is what was painted, so the guard reads the paint list of a headless frame. Every interactive control in this interface paints a background, because the theme gives the four interactive states a fill, a stroke and a corner radius; a label paints none, which is exactly the set this item is about. Rectangles are then gathered into rows by vertical overlap, so no list of rows has to be kept up to date, and three kinds are dropped with a reason each: the panel fill and the cards are scenery and fall outside a control's height band, a checkbox's tick box is inside its own widget rectangle and is a part rather than a neighbour, and a hairline is under six points.

It failed on its first run, in the Verify tab, and said exactly what was wrong: a row holding controls 25 and 27 points high, with their centres a point apart, and with the pointer over the first of them a control at [8, 476] measuring 182.4x25.0 became 184.4x27.0.

The cause, which is one line of egui. ui.selectable_label is egui::Button::selectable, which sets frame_when_inactive(false). Inside Button::ui:

layout = if has_frame_margin && (state != Inactive || frame_when_inactive) { layout.frame(frame) } else { layout.frame(Frame::new().inner_margin(frame.inner_margin)) };

An unselected option is laid out with the frame's margin and without the frame, and the frame carries a one-point stroke that counts towards its size. So the moment the pointer arrives the option is allocated two points wider and two points taller, its own text moves a point down and to the right, and every control after it in the row shifts along. Selecting one did the same thing, which is why a row of options shuffled sideways as the choice moved along it.

It was not one label. It was every row of options in the window: the three checker choices in Verify, the sealing choices in Security, the two device lists, the keep-this-many choice in the Studio, the hidden-volume choices in Storage, the voice modes and palette list in Group, the carry-across choice in Setup and ten rows of Settings. Thirty controls, one cause, which is what measuring buys over reading.

The fix. layout::chip and layout::chip_value, which are Button::selectable with frame_when_inactive(true), and every one of the thirty call sites goes through them. The frame is allocated in every state, so hover and selection change the fill and the border's colour and nothing about the shape. It costs an outline around an option at rest, which reads as a control rather than as a word, and it gives a row of options the height a button has, because it is the same frame: 27 points, which is why the Verify row now agrees with the button beside it.

The alternatives were worse and are worth naming. Dropping the hover stroke removes the affordance that says a thing can be pressed. Making the inactive stroke transparent does nothing, because egui drops the whole frame when inactive rather than drawing it in another colour, so there is nothing for a transparent stroke to hold open.

Width is measured and deliberately not compared across a row. The item names four measurements and three are guarded: height, vertical centre and left edge. A width rule across a row would be false, and it is worth having the numbers rather than the intuition: the Settings tab has a row of five options 67, 74.8, 82.6, 90.4 and 98.3 points wide, because they are labelled with words of different lengths, and every panel has controls of different widths starting at the left margin, because a button and a row of options have no reason to be the same size. Both are right. Width matters where two controls are two halves of one idea, which is layout::LOCK_WIDTH and roadmap item 160, and that is guarded where the number lives. A guard here would have needed six exceptions on its first run, and a guard with six exceptions is one nobody trusts.

The left edge is guarded for near misses only, for the same kind of reason. Two rows starting at the same x read as a column; two rows forty points apart read as a heading and an indented list. Two rows three points apart read as a mistake, because nobody indents by three points on purpose. The guard says so in its own doc comment rather than implying it checks alignment in general, which from a paint list it cannot: whether two rows belong to one column is a question about the panel's structure and the answer is not in the shapes.

Both guards were proved in both directions, by putting the defect back one call site at a time and reading the failure, and both carry a count they assert is not tiny. Every rectangle here is found by a filter, and a filter one line from finding nothing is how a guard comes to pass while drawing no conclusions: the first version of this counted a checkbox's tick box as a control beside its own label.

F-224: the audit outgrew the search index, and the index said nothing

Found by pushing the audit past 512 KB while writing F-223 up.

tools/search-index/generate.py walks every tracked file and skips anything larger than MAX_FILE_BYTES, which was 512 KB. docs/AUDIT.md reached 527 KB with the F-223 write-up in it, so the audit stopped being in the search index. Nothing said so. The generator printed its usual "449 files, 24373 sections" and the number was 447, which is not a number anybody reads twice.

What did fail was a website suite, two steps later in tools/verify.py, on a check called "the audit is indexed". That check exists, it is the reason this was caught at all, and it names neither the file nor the size nor the limit: it asserts that one particular document is searchable and reports FAIL when it is not. Working back from there to a constant in a different tool took reading three files.

Why the limit was in the wrong place. Its own comment says it is there so that "a file nobody expected -- a vendored blob, a generated table, a lock file that grew -- cannot silently turn the index into something a phone has to download". But what a document costs the index is bounded by MAX_SECTIONS_PER_DOC, four hundred sections of at most MAX_EXCERPT characters, which is about 96 KB whatever the file's length is. The file-size limit was not protecting the index's weight. It was only deciding, silently, which documents are searchable.

And it was pointed at the one document in this repository that grows by design. Every finding in this audit adds a write-up, this project's own rule requires one per fix, and CHANGELOG.md behind it is 328 KB on the same trajectory. A limit set just above today's largest document is a limit that will be reached, by the document whose whole purpose is to keep growing.

What it is now. Two changes, and the second is the one that matters.

The limit is 2 MB, chosen to be far above rather than just above, with the reasoning in the comment so the next person to move it knows what it is for.

Past the limit is now a refusal, not a skip. The generator names the file, its size, the limit, and the two things that can be done about it, and exits non-zero, so verify.py fails on the tool that knows what happened rather than on a suite three checks later that does not. A document that has outgrown this is a decision somebody has to take, most likely splitting the audit by release; the one thing it cannot be is a file that quietly stops being searchable.

The shape, again. F-210, F-212, F-216, F-219, F-220 and this one are the same finding wearing different clothes: a check written at the scope of the thing that prompted it, and the defect somewhere else. Here the check was even correct, and still useless at the job of saying what had gone wrong, because it was watching the symptom from the far end. The fix is not a better website suite. It is the tool that made the decision being the tool that reports it.

F-223: twelve panels drew a spinner, and a spinner cannot be asked to stop

Roadmap item 169, and it is an accessibility defect rather than a tidying job.

reduced_motion.rs exists because this project decided that a system setting saying "movement hurts" is somebody's answer and not a hint. prefs::Motion resolves it once a frame against the setting, an environment override and the preference, and Motion::secs exists so that a caller cannot forget to consult it: pass the wanted duration through and get zero when movement is not wanted.

Twelve panels then drew ui.spinner(), which consults nothing. egui's spinner takes no setting and reads none: it animates. So the window honoured the reduce-motion setting in its header mark, its transitions and its Setup progress bar, and ignored it in every place where something was being waited for, which is exactly where a person is made to look at the moving thing.

Why a spinner was the wrong shape, not just a wrongly configured one. There is no still spinner. A stopped spinner reads as a hung window, which is the opposite of the thing it is drawn to say, so the setting cannot be honoured by freezing it. A bar can hold still and still mean something, and Setup had already worked this out: a quarter-width highlight travelling when motion is allowed, and a third of the bar filled and static when it is not, with the comment "still, but not empty: an empty bar reads as stuck". That drawing was correct and it was in one panel.

What changed. progress::strip is the only thing in this crate that draws "work is happening". Setup's drawing moved into it rather than being written a second time, so the reasoning moved with the code. Every one of the twelve spinners is now a call to it: the app lock deriving a key, the recording passphrase doing the same, the integrity record, the anonymise run, the group render, the update check, the first-run machine card, the companion probe, the verifier's hash, the vault unlock, the decoy round and the export. Each says what it is doing in words, and each either gives a fraction or says why it cannot, which is F-221's rule inherited rather than repeated.

strip takes the resolved Motion rather than reading the preference itself. Two readers of one setting is two answers to one question, and the resolution already happens once a frame in App::ui where the system setting and the override are both in hand. The cost is a parameter on eleven drawing functions, which is the mechanical part; the alternative was a second resolution inside the indicator, which is the part that would have gone wrong.

One thing deliberately keeps moving under the setting. A bar with a real fraction goes on filling. The setting is about decoration, and a measurement is not decoration: answering a request not to animate by withholding the information the indicator exists to give would be the wrong reading of it. What stops is everything that moves without saying anything.

Two guards, because the sweep is the easy half. One reads the whole crate and fails on ui.spinner() or egui::ProgressBar::new anywhere, so the next panel cannot quietly add a thirteenth; it is written at the crate rather than at the files that had one, which is F-210 and F-220's lesson applied in advance for once. The other drives the indicator twice, one second apart, and fails if it moved while motion was reduced or if it did not move while motion was allowed. The second half matters: without it, an indicator that painted nothing at all would pass.

And a test that was coupled to a signature. the_studio_meters_what_goes_in_as_well_as_what_comes_out found the tab by splitting the source on the exact text fn studio_tab(&mut self, ui: &mut egui::Ui) {, so adding a parameter broke a test about meters. It splits on the name now. A guard that reads source has to name the least it can get away with, or every signature is frozen by whichever test happened to quote it.

F-221: a spinner that spins for four minutes is an indicator that says nothing

The last of roadmap item 167, and the half of it that is not about threads.

Moving the work off the drawing thread stops the window freezing. It does not tell anybody what is happening, and for the two longest jobs here it made the silence longer: an export that used to freeze for four minutes now draws perfectly for four minutes with a spinner in the corner. Twelve places in the window drew that spinner. Not one of them drew a bar, and three of them drew nothing at all.

Why the obvious fix is the defect. A progress bar is read as a promise about how much longer. Over a job whose length nobody knows it is a claim nobody checked, and it fails in the way that teaches: it crawls to nine tenths, sits there, and the next bar this window draws is one the reader has learnt to ignore. Roadmap item 167 says the estimate is given only where one can honestly be given, and names the two cases. A hash of a known length can say how far through it is. A key derivation cannot, and has to say so.

What the shape of that rule is. crate::progress::Reach has two constructors and they are not interchangeable. counting(total) is for a job with a total and draws a bar. unmeasurable(because) takes the reason as an argument, draws a spinner, and puts the reason on screen under it. There is no third constructor, so a panel cannot draw a bar without having been given a number, and strip is the one function that draws either. A test reads every module of the crate and fails on a ProgressBar::new anywhere but there, for the reason F-210 and F-220 both gave: the rule has to be asked of the whole crate, or it is a rule the next file does not have.

Reach is two atomics rather than a channel or a lock. It is read every frame while a worker writes it thousands of times, which is the opposite traffic to offthread::Answer's one value arriving once, and a Mutex a worker holds while it works is the exact thing roadmap item 167 exists to remove. Relaxed is enough: nothing is ordered against anything, and the worst a stale read gives is a bar one frame behind, which is what every bar is.

The two that can count. The verifier's hash, which is the roadmap's own example: check::sha256_file_watched reports the size of each 64 KiB chunk as it hashes it, and the total is the file's length, which the operating system gives before any work starts. sha256_file is now that function with a watcher that does nothing, so the streaming loop, the chunk size and the two error sentences exist once. The file is measured on the worker, not where the button is pressed: a stat is small and it is still a syscall, and F-216 is in this same file for putting one on the drawing thread. Until the worker says what the total is, the indicator is a spinner rather than a bar over zero.

And a round of decoys, where the total is the number the person typed in. Each one is counted after it is written, not before: a bar that advances when work is started says eight of eight while the eighth is still being written, and a test holds both ends of that, including that a round which cannot write leaves the bar at nothing rather than running it to the end.

The four that cannot, and what they say instead. Opening a vault: deriving the key is one long computation with no countable middle, which is the same property that makes a passphrase expensive to guess, and that is what the window now says. Exporting: a video is rendered by ffmpeg in one command, which reports nothing back this window can read, and it is most of what an export costs. The companion look: each one is a separate look, and on Windows finding out whether GnuPG is inside WSL means starting WSL. In each case the sentence is the honest answer to "how much longer", and it is more use than a bar would have been, because it also says why.

A test that passed by accident, and was fixed rather than kept. The first version of the failing-decoy-round test pointed the round at /definitely/not/a/folder/on/this/machine and asserted that none were made. It reported eight of eight: the folder is created on the way past, and this build runs as a user who may create a directory at the root. It writes a file and asks for a folder inside it instead, which every system refuses and none needs privileges to refuse. A test whose failure case cannot fail is a test that reports the opposite of what it checks.

What is deliberately not in this. strip does not consult the reduce-motion setting, so the no-estimate case still spins for somebody who has asked their system for no movement, and the twelve older spinners are still twelve. Both are roadmap item 169, which is the next item and is now a sweep rather than an invention. Said here, and in the module's own doc comment, rather than left for a reader to notice the gap and wonder whether anybody had.

tools/docs/wiki.py turns the prose documents into the flat pages a GitHub wiki holds. A wiki has no directories, so a link that is right in docs/ is wrong in the wiki, and rewriting those links is most of what that file is for.

It rewrote them twice. RELATIVE_MD turned ](Doc-INSTALL) into ](https://github.com/tilas01/veilvoice/blob/main/docs/Doc-INSTALL), which is correct and finished. Then RELATIVE_OTHER ran over the same text. Its only guard against touching a link the first pass had already handled was that the target did not end in .md, and Doc-INSTALL does not, so it rewrote the finished link into ](https://github.com/tilas01/veilvoice/blob/main/docs/Doc-INSTALL).

There has never been a file called docs/Doc-INSTALL. Eighty-six links across the wiki pointed at paths like that, and the same eighty-six were published to the website's copy of the wiki. Every cross-document link a reader could follow from one wiki page to another was a 404, and the wiki is the edition of the documentation that GitHub shows first.

The fragment went too. md_link returned pages[joined] and dropped the # part on the floor, so ](Doc-INSTALL#the-fingerprint) would have landed at the top of the page rather than at the fingerprint, in the cases where it landed on the page at all.

Why nothing noticed

--check walks every [[link]] in the wiki and fails on one that names a page which does not exist, and that guard is the right one: a wiki renders a link to a missing page as an invitation to create it, so a typo looks like a feature. But by the time the second pass had finished with these, they were not [[links]] any more. They were absolute URLs into this repository, which is exactly what the rewriting is supposed to produce for everything that is not a page, so the check that existed had no way to tell a correct one from a broken one.

The website's own link checker could not see them either, for the ordinary reason that a link to another host is not a local link.

The fix, and the guard that can see it

rewrite is one pass now. One pattern matches any relative link, and one handler decides what it becomes: a page reference with its fragment kept, or a repository URL. A pass cannot rewrite its own output if there is only one.

The basename fallback is narrower too. It used to accept any target whose basename matched a document, excluding only ../, which would have sent tools/README.md to the page made from docs/README.md. It now applies only to a bare name with no directory in it, which is the case it exists for.

rewritten_twice in the same file is the guard. It looks for a repository URL whose last path segment is the name of a wiki page, which is a thing that cannot legitimately occur: the repository has no file named after a wiki page. Run against the wiki as published, it found all eighty-six.

It then found three more, in this entry. The paragraphs above show the URL the two passes produced, in backticks, because showing it is how the entry explains what went wrong, and docs/AUDIT.md becomes a wiki page like every other document. So the guard skips a match that sits wholly inside a code span or a fenced block, which is what links_in in the same file already does for [[links]], for the same stated reason: text quoting a link is not a link. A guard that cannot tell the description of a defect from the defect fails on the commit that fixes it, and the first thing anybody would do about that is to stop describing defects.

Two consequences elsewhere, both of which are the repair being noticed rather than new breakage. tools/site/wiki_site.py resolved [[wiki links]] to pages of this site and nothing else, because until now there were no ordinary links between wiki pages to resolve; it now resolves both spellings. And the site's link checker reads ](https://github.com/tilas01/veilvoice/blob/main/docs/Doc-INSTALL) in wiki/ as a path on disk and finds no such file, so it is taught the one rule that makes it true: in the wiki, a page is referred to by its name and the file is that name with .md. The .md must exist, so a typo is still caught.

F-246: the page listing every command said that no command reaches the network

docs/COMMANDS.md is generated by tools/docs/commands.py and is the whole of the command line in one place. Its opening said:

Nothing here reaches the network. The one thing in VeilVoice that does is the window's check-for-updates button, and it is not a command.

Both halves are false, and F-213 found the same sentence elsewhere before veilvoice update existed at all. veilvoice update is a command and it fetches a release. veilvoice verify release is a command and it fetches a release. The claim was wrong on the one page whose subject is every command, which is where a reader checking that claim would look.

F-228 added tools/audit/network_claims.py to stop exactly this, and it did not catch this one, because it read docs/USER_GUIDE.md and nothing else. A guard that checks one of the two places a claim is made is a guard that reports the claim is consistent.

So it reads both now, and the difference between them is worth writing down. The manual explains this at length under a heading, so the whole section is searched. docs/COMMANDS.md carries the claim in one paragraph beside a table of every command in the program, each in backticks: searching that page rather than that paragraph would find every command name in it and report that everything was fine. The claim is read from the paragraph that makes it.

The sentence is generated, so the generator was fixed rather than the page, and it now uses the program's own words. One phrase, reaches the network, appears in the program's description, in the manual's heading and on this page, which is what lets one check hold all three to each other.

And the count beside it

tools/docs/wiki.py described that page in the wiki's sidebar as "All thirty-two". The table has thirty-four rows, and thirty-five commands including help. A number typed beside a generated list is wrong from the next command onwards, and reset had landed that morning.

The number is gone rather than derived. The page is the list, "every" is the claim that matters, and a count in a sidebar blurb tells a reader nothing the page does not.

F-234: the page that tells you to build it yourself did not work on a fresh machine

Building VeilVoice from source is the strongest check a person can make on it, because it requires trusting no download at all. Section 3 of docs/INSTALL.md is where a reader is sent to do that, and it said this:

git clone https://github.com/tilas01/veilvoice
cd veilvoice
cargo build --release --workspace

On a fresh Linux machine that does not work. cpal links against the ALSA headers, and without them the build stops partway through somebody else's dependency tree with an error about a missing alsa.pc. That is not a sentence a reader can act on, and the page offered nothing to act on instead. It named no packages, and no minimum Rust version either, while rust-toolchain.toml pins 1.96.0 and eframe does not compile on anything older. Both of those are questions a reader can only answer by failing first.

docs/CONTRIBUTING.md did have an apt-get line, and it was wrong in the other direction:

sudo apt-get install -y libasound2-dev libgtk-3-dev libxdo-dev

Nothing in this tree has ever depended on libxdo. There is no crate in Cargo.lock that binds it and there never has been. It omitted pkg-config, which is how the ALSA headers are found at all, so the line was one package short of working and one package longer than necessary at the same time.

What the packages actually are, measured rather than argued about

The three workflows install seven packages before building on Linux. The temptation was to copy that list into the documentation and call the two consistent. It was measured instead, and four of the seven are not needed:

  • libgtk-3-dev. crates/veilvoice-gui/Cargo.toml declares rfd with default-features = false and the xdg-portal feature, which is the desktop portal and deliberately not the GTK backend. What gets built is ashpd.
  • libxkbcommon-dev and libwayland-dev. eframe is declared with default-features = false and the wayland and x11 features, which reach those libraries through Rust crates and by loading them at run time rather than by linking against headers.
  • libudev-dev. No crate in Cargo.lock binds udev at all.

On a machine with only libasound2-dev and pkg-config installed, cargo build --release --workspace completes and links both binaries. That is the measurement, not an inference from the manifests.

A workflow installing four packages it does not need costs a runner a few seconds. A document doing it costs the reader something else: they cannot tell which of the names in the line is the one somebody guessed, and one of them was. So the guide names the two, and names libxkbcommon-x11-0 separately as the thing the window loads at startup and exits without, because that is needed to run the application and not to build it, and conflating the two is how a reader ends up installing headers to fix a runtime error.

Narrowing the workflows is not part of this. It would have to be proven on a GitHub runner rather than in a container, and being wrong about it turns every branch red. It is worth doing and it is not worth guessing at.

What is checked

tools/audit/build_prerequisites.py, in tools/verify.py and in ci.yml. It reads the package list out of the step that installs it, by that step's name, and holds five things together:

  • the three workflows install the same set as each other, since a release built with fewer packages than CI tested with is a release built differently from the thing that was tested;
  • every guide names the same set as every other guide, because two pages that disagree mean one is wrong and a reader cannot tell which;
  • that documented set is contained in what the workflows install, which is the check libxdo-dev would have failed for as long as it existed;
  • it contains what the build needs, which is the check the empty page would have failed;
  • and both guides name the pinned toolchain, so the version moves in one place.

The fourth of those is a judgement rather than a measurement, so the guard does not simply trust it. It re-reads the window's manifest and fails if the two declarations that make GTK unnecessary have changed, naming the package that would come back. Turning the GTK file panel on again cannot quietly leave the documentation one package short; it stops the build and says why.

Nothing here checks macOS or Windows. That is deliberate: CI builds and tests on both with no package installation step at all, so "the toolchain and nothing else" is a claim a green build makes several times a day rather than one that needs a guard.

The shape this shares with F-222 and F-228

Three findings in a row now have been a document describing a program that had moved. F-222 was the manual denying that veilvoice update existed. F-228 was found by running a command the manual had never named. This one was a page whose instructions had never been followed on a machine that did not already have the packages, which is every machine except the ones the instructions were written on.

The pattern is that prose about how to use the program is checked by people using the program, and the people reading these pages are the ones who have not used it yet. So the check cannot be a reader noticing. Each of the three is now a comparison a build makes.

F-228: asking for help opened a connection

Found while fixing F-222, by doing the thing F-222 is about. The manual's network section named one of the two commands that reach the network and not the other, so I ran veilvoice verify release --help to read what the missing one does. It did not print help. It went to the network:

  fetching into veilvoice---help
  SHA256SUMS ... failed
FAILED: could not complete the check.
  download failed: .../releases/download/--help/SHA256SUMS

veilvoice verify hands its arguments to veilvoice_verify::run, which parses them itself rather than through clap, because the verifier was a program of its own before it was folded in. It read --help at args[0] only. With release in front of it, --help was simply the next positional, which for that subcommand is the release tag.

The promise this breaks is the one in its own first paragraph. veilvoice --help opens with "Nothing here reaches the network except when you ask it to by name". Asking for help is the clearest possible case of not asking for that, and it is the request somebody makes when they do not yet know what the command does and are being careful. -h did the same. So did --version, --explain and --exit-status, behind any subcommand that takes a positional.

Nothing of the reader's leaves in that request and nothing is written, so the cost is one pointless request to a public page and a confusing failure. It is recorded as a real defect anyway, because what was broken is a stated guarantee rather than an outcome: a program that says it will not open a connection unless asked has to mean it in every case, and "the request was harmless" is the argument that makes the guarantee worth nothing.

What it does now

Asked::in_args reads these four from anywhere in the arguments, the way Loudness::take_from already read the verbosity flags, and answering one is the whole of that run. Help wins over the other three whatever order they are written in. help as a bare word is still accepted only first, because a later help is a path or a tag.

One thing becomes unreachable: a file genuinely named -h. That is a better thing to be wrong about than a connection nobody asked for, and it is written down here rather than left for somebody to discover.

What is checked

One regression test over Asked::in_args, which is a pure function of the arguments so the test drives the real decision rather than a copy of it. Seven ways of asking for help, including behind three different subcommands, the other three flags behind a subcommand, both orders of --help and --version, and five real invocations that must not be caught, among them gnupg help, where help is a path.

Confirmed by putting the old rule back, as one line restricting the scan to the first argument: the test fails naming ["release", "--help"].

Two things this says about F-222

The first is that the sweep was worth doing. The manual's missing sentence was the whole of F-222, and writing the sentence meant running the command, and running the command found this. A stale document is not only wrong about the program; it is a place nobody has looked.

The second is a correction to F-222's own write-up, which said no new check was possible. That is true of the general claim and it is not true of this one. Every command the program says reaches the network can be read out of the captured help text, and whether the manual's network section names each of them is a comparison of two lists. Had that check existed, it would have failed on the missing veilvoice verify release and somebody would have run the command a week ago.

So it is written, in the same commit as the fix, rather than left as an observation: tools/audit/network_claims.py, registered in tools/verify.py and in ci.yml. It reads the commands out of assets/screenshots/cli-help.txt, which is the program's own output at one remove because tools/shots/terminal.py compares that file against the built program on every run, and asks whether the manual's section about reaching the network names each of them. It reads one way only. The section legitimately mentions veilvoice info, which explains which release stream a copy belongs to and opens nothing, so a check insisting the two lists were equal would fail on correct prose, and a check that fails on correct prose is one somebody deletes.

The guard's own self-test failed first, which is the argument for having one

The first draft of that file reported that the program makes no claim about the network at all, and would therefore have passed forever while saying nothing. It split the description into sentences on full stops and colons, and the claim is written with a colon in the middle of it: "except when you ask it to by name: veilvoice update and veilvoice verify release fetch from the releases page". The colon ended the sentence one word before the only part of it the check was looking for. Two further cases were wrong the same way: the manual writes invocations rather than bare names, so ` veilvoice update --check did not count as naming veilvoice update`, and a command wrapped across a line break was not seen at all.

None of that was found by reading the file. It was found because the --self-test convention meant the guard had to demonstrate the F-222 shape failing before it was allowed to be a build step, and it demonstrated the opposite. A drift check that cannot see is worse than no drift check, because it is counted. All three cases are now expectations in that self-test, including the colon, named as the case this file got wrong first.

F-222: the manual said the command line could not update, in the week it learned to

docs/USER_GUIDE.md is the manual, and tools/docs/guides.py cuts three per-program guides out of it, so a sentence written there is published four times over, plus the wiki and the website. One of those sentences read:

Check for updates, in the desktop application only, asks the operating system's own transfer tool to fetch one small file, and reads a version number out of what it printed. It is a button, it is never automatic, and the command line has no such feature at all.

Roadmap item 179 landed veilvoice update on 2026-09-22. It checks, fetches, verifies the signature against the key compiled into the program, and replaces the copy being run. So the last clause of that paragraph became false, and veilvoice --help says the opposite of it on the line above the subcommand list.

Two published pages disagreed with each other, not just with the code. docs/UPDATING.md was written for the updater and says plainly that two things reach the network and names both the button and the command. The manual, three guides derived from it, the wiki copy and the website copy said the command did not exist. A reader who found the manual first was told a feature they have is not there.

Two smaller claims in the same section were stale for the same reason: that a firewall blocking VeilVoice "costs you the update button and nothing else", and that when no transfer tool can be found "the button says so".

Why the derived pages are the good news here

The three guides, the wiki page and the website page were all wrong, and all five were fixed by editing one paragraph. That is the architecture working: the count of wrong copies was five rather than one, and the count of edits was one rather than six. A repository where each of those pages had been written by hand would have had five separate corrections to remember, and four of them would still be wrong now.

What it does not do is notice. Every check over these pages asks whether the derived copies match their source, and they did: the source was wrong, so the copies were faithfully wrong. There is no check that compares a sentence in the manual against the program it describes, and there cannot be a general one.

What is checked

Nothing new, and that is a deliberate answer rather than an omission. The checkable part of this claim already is checked: tools/audit/documented.py and tools/docs/generate.py keep the command reference in step with the parser, and the offline CI job is what makes the surrounding claim about sockets true rather than asserted. What was wrong here is a sentence of prose about which program has a feature, and a guard that could read that would have to understand the sentence.

What this argues for instead is the rule that already exists and was not followed: everything describing a change moves in the commit that makes the change. The updater's own commit added docs/UPDATING.md and did not look for the paragraph in the manual that the new command contradicted.

F-220: the guard was written at the crate, and found two more the same afternoon

Roadmap item 167's guard, and what widening it turned up.

What the guard was. the_drawing_thread_never_waits_on_anything lived in app.rs, read app.rs, and was correct about app.rs. It listed fourteen calls that wait, found none of them in the draw path, and passed for months. Meanwhile five calls waited on the drawing thread in four other modules: F-216's three per-frame machine readings, F-218's unlock, and F-219's export. Every one of them was found by reading the crate by hand, which is not a thing that happens twice.

What it is now. It reads every module, with the list checked against lib.rs's own mod declarations so a module added later fails rather than going unscanned. A function is on the drawing thread when its parameters include a &mut Ui, or when it is the update that eframe calls, and so is anything it calls by name within its own module.

Same-module only, and deliberately. The first version followed calls across the whole crate by name and reported 495 functions of 523 as drawing, because run, write, load, status and poll are each the name of several unrelated things here. A guard that answers "everything" answers nothing. The limit is stated in its own doc comment rather than left to be discovered: a call that leaves the module is invisible to it, and the frame-timing test is what covers that.

The first run of it found two more, both in the Studio tab.

decoy_panel called Shape::of(vault), which reads and decrypts the vault's index, on every frame the panel was drawn. The tab already holds that listing in self.entries, and the comment on that field says why: "read when the vault opens and after every change rather than every frame: a frame is 16 milliseconds and this decrypts a file." The panel is five hundred lines from the comment. Shape::from_entries now takes the listing somebody already has, and Shape::of calls it, so the arithmetic exists once: a decoy whose shape is computed one way here and another way there can be told from the vault by whichever of the two is wrong.

make_decoys wrote them inside the frame. Each decoy is a vault the size of the real one, so eight of them is eight times the vault written to disk, and then the folder was measured again, which spawns df. It is a worker now.

And following the same call led to a third, which the guard reported by proxy: unlock was on that path too. Deriving the key, then find_or_make, which opens candidate folders until one answers and a properly stocked folder has twenty-five of them, then list, which decrypts the index, then the measure. All on the frame the button was pressed. That is F-218's defect one tab along, and it is now start_unlock and poll_unlock, with the passphrase buffers still consumed and wiped in the frame before anything is spawned, so a passphrase never waits on a thread to be cleared out of the form.

The frame-timing test, and what it honestly does. It drives each panel headlessly and fails if a frame takes more than 25 milliseconds. These panels draw in 20 to 215 microseconds when nothing in them waits, so the limit is more than a hundred times a clean frame and the gap is not a matter of how fast the machine is. It catches the gross stalls: a render waited on, an enumeration, a decryption, twenty-five folders opened in turn, three passes of overwriting.

It does not catch a single cheap syscall, and the doc comment says so with a number: spawning df was measured at 1.5 milliseconds here, which is fifteen times a clean frame and still well inside the limit. Lowering the limit to catch it would make the test fail on a loaded build runner, which is how a timing test gets deleted. The name-based guard is what catches those. Two tests, two blind spots, neither one sufficient, and that is written down rather than assumed.

The shape, for the last time this week. F-210, F-212, F-216, F-219 and this one are all the same finding: a guard is written at the scope of the fix that prompted it, and the defect is somewhere else. Four crates, one week. What changed here is not another fix at that scope; it is that the question is now asked of the whole crate, by something that fails when a module is added and nobody remembers to include it.

F-219: the file picker was moved off the drawing thread and the render it leads to was not

The last of the freezing half of roadmap item 167, and the one with the largest number attached to it.

Exporting a take from the Studio tab writes a player page, a video, or both. That means: reading and decrypting the recording, writing the audio, writing the page with its subtitles and its waveform drawing, and then running ffmpeg with output(), which waits for the whole render. A minute of audio is seconds of encoding; an hour is not.

All of it ran on the frame the folder picker's answer arrived.

The comment directly above it says why the picker itself is not allowed to do that. "Polled rather than waited for, so the window keeps running while it is open." That fix is F-63's, one of seven blocking file dialogs that froze the window for as long as somebody browsed. It is correct and it is still there. The work the dialog leads to was never looked at, and it costs minutes where the dialog cost seconds.

This is the same shape as F-210, F-212 and F-216, and it is the fourth time it has been written up this week, so it is worth stating in its most general form. A fix is scoped to the thing that was reported, and the thing next to it keeps the defect. The report said the dialog froze the window. The dialog was fixed. Nobody asked what happened after the dialog closed, because the report did not.

The fix. Studio::start_export builds an ExportJob and spawns; export_now does the work and sends back a sentence and a tone; browser collects it without waiting and shows a spinner and a line while it runs, because a button that goes quiet for the length of a video render reads as a window that has died.

Three details that were not free.

StudioKey has no Clone, on purpose, so the vault could not simply be copied into the worker. It is shared instead, through an Arc: one key, in one place, wiped when the last holder drops it, and what crosses to the worker is the right to read through it rather than a second copy. And the worker drops it as soon as the recording is out of it, before any writing, because a video render is minutes and holding the vault for all of it would mean that shutting the vault did not wipe the key until ffmpeg had finished. That is not what "shut" is understood to mean. A test reads the worker and fails if the drop moves after the writing.

The colour of the message could not go with it. theme::palette answers from the palette that is active now, which the drawing thread changes, so a colour captured on a worker at the start of a render would be the colour of whatever theme was on five minutes ago. The worker returns a Tone; the colour is chosen where the message is drawn.

write_page lost its &self, which it never read. Dropped rather than left in place and ignored: a receiver nothing uses is a promise that the next person will find a use for it, and here it would be a promise to put the drawing thread's state back inside a worker.

And the inline door is shut by the compiler. The tests here are about what an export writes and where, not about which thread writes it, so a synchronous export remains for them, marked #[cfg(test)]. A shipped build cannot call it, which is a stronger statement than a guard reading the source, and a test asserts the attribute is still there.

F-218: the window stopped while it opened its own folder, and it stopped at the worst moment to stop

The second part of the freezing half of roadmap item 167.

What the folder is. With an app lock set, everything VeilVoice writes about itself lives in an encrypted, padded store under filenames derived from the passphrase, with decoy files sown among them. The first unlock after a lock is set moves the plain files in. That is not a quick operation and it was never meant to be: each record is read, written back encrypted, and the original shredded with three passes rather than deleted, because a settings file that says which vault you use should not be recoverable from free space after VeilVoice has told you it is now encrypted. Then the decoys are topped up, and the folder is audited twice.

All of it ran inside one frame, in app.rs, on the frame the passphrase was accepted. Three passes of overwriting per migrated record, two full reads of the folder, and a write per decoy, on the thread that draws.

And the timing is the part worth saying out loud. This is the first frame after somebody typed their passphrase. They are watching the window, because they have just asked it for something. What they got was the window stopping, for a length of time set by how many records there were and how slow the disk is, and then a notice about whether anything had been tampered with. The one moment a privacy tool cannot afford to look broken is the moment it is proving it was not.

The comment twenty lines above the call says "Neither touches the disk on this thread". It is true of the two calls it is written about and it sat directly above the one that did.

The fix. VaultStore::start_unlocking spawns, VaultStore::poll collects without waiting, and the work itself is a free function, open_with, so the thread doing it holds nothing belonging to the window.

Moving it to a thread introduced something that had to be closed. The work now runs while the window carries on, which means there is an interval in which the passphrase has been accepted, the key exists on another thread, and the person locks the screen again. A key that arrived a moment later and let itself in would be a worse defect than the freeze. locked therefore drops the receiver as well as the key: the worker's send fails and the store, with the key inside it, is dropped on that thread. A test locks during an unlock and then watches for two seconds that nothing is ever installed.

The inline door is shut by the compiler rather than by a guard. The tests here are about what the store does with the files and not about which thread does it, so a synchronous unlocked remains for them, marked #[cfg(test)]. A shipped build cannot call it at all, which is a stronger statement than a check reading the source for it, and a test asserts the attribute is still there.

The last of item 167's freezing calls, exporting a take from the Studio tab, follows separately. It has the same shape and a different cost: it waits for ffmpeg to finish rendering a video.

F-216: the window asked this machine the same three questions sixty times a second

The freezing half of roadmap item 167, found by reading veilvoice-gui for what the drawing thread waits on rather than by anything failing.

A machine question written where it is shown runs once per frame. That is the whole finding. A panel needs a number only the computer can give, the line that gets it is one line, and the obvious place to write it is beside the label that displays it. That place is inside the function that draws, which runs at the refresh rate for as long as the panel is on screen.

Three of them were found.

The setup tour's last card. It is called "What this machine says" and it says four things: where recordings will go, how much room is free there, how many sound devices exist, and what the graphics driver answered. Each was read inline. veilvoice_setup::space::free_bytes spawns df on Unix and fsutil.exe on Windows, so the last card of the tour forked a process on every frame it was displayed, sixty a second, to print a number that changes about as often as somebody empties a bin. devices::list enumerated the audio hardware beside it, which on Windows is a COM call measured in tens of milliseconds, and which F-165 already records as a thing this program does exactly once because two enumerators running together killed the process.

The setup tab, on the frame a job reported back. detect_all runs a command per companion and install::status walks the install folder and the PATH. Both were called inline by poll when an install or an uninstall finished, so the window stopped at the moment it was supposed to be showing what had happened.

The Verify tab's GnuPG section. key.is_file(), to find out whether the release shipped a signing key beside the hash list, on every frame the tab was open. A stat is cheap on a warm local disk and is not cheap on a network share or a drive that has spun down, which is where somebody checking a download they were careful about is quite likely to have put it.

The guard that should have caught the second one read the function that had already been fixed. Pressing "look again" used to probe inline; that was found, fixed, and a test was written called looking_again_does_not_probe_on_the_paint_thread, which found fn companion_rows and asserted the worker was in it. poll is twenty lines up in the same file and went on calling both readings inline. This is the third crate this week where a guard proved a rule about the one function whose author was thinking about it: F-210 in veilvoice-setup, F-212 in the window's spawns, and now this. The shape is worth naming once more, because three independent discoveries of it in one week is not a coincidence: the scope a guard is written at is the scope of the fix that prompted it, and the defect is always somewhere else.

The fix. crate::offthread::Answer<T> holds one value that a worker works out: the drawing function asks once, draws whatever has arrived, and never waits. The worker asks for the repaint when it has something, which is the rule an untouched window costing nothing already depends on. A worker that dies leaves the last true answer on screen rather than replacing it with a zero, which is what setup's probe had already decided for itself and for the same reason.

The tour's card reads through it. The setup tab has one start_probe and both callers use it. The Verify tab asks once per chosen hash list. And the tour no longer enumerates the audio hardware at all: app does that once, at startup, and hands the count over, so the two counts cannot disagree and F-165's second enumerator cannot come back.

crate::dialog::Pending is the same shape and deliberately stays separate. On macOS it must run its work on the drawing thread, because NSOpenPanel can be driven from nowhere else, and a type whose whole promise is "not on the drawing thread" cannot have a platform where that is false.

And the guards are written about files rather than functions. nothing_reads_this_machine_on_the_paint_thread splits setup.rs into its functions and names the two that are allowed to read the machine, so the next one fails wherever it is written. The tour's card and the Verify section each have one that reads the drawing function for the calls that wait. All four are confirmed by breaking them: each names the function and the call when the defect is put back.

This is not the whole of roadmap item 167. Two heavier ones remain, both the same shape and neither a per-frame cost: opening the obfuscated program folder after an unlock, and exporting a take. They follow separately.

F-212: the guard that proved no spawn flashed a console read one file of thirty-four

The window's own half of the same defect veilvoice-setup had, found by reading veilvoice-gui for roadmap item 167 rather than by anything failing.

On Windows a Command for a console program creates a console, and a GUI process has none of its own, so Windows opens a window for it that appears and vanishes as the child runs. That is what "a cmd prompt flashing randomly" was, it was fixed in v0.1.10, and the fix was a wrapper that sets CREATE_NO_WINDOW.

The wrapper lived in reduced_motion.rs, as a private function called no_window, with a test beside it that read reduced_motion.rs and asserted every Command::new in that file went through it. The test was correct and it passed, and it could not have said anything about any other file, because a private helper is not reachable from one and include_str! was pointed at its own module. Meanwhile studio.rs and group.rs each spawned ffmpeg directly. Rendering a take to video, and rendering a group conversation, both flashed a console on Windows, for as long as either feature had existed.

The module that bothers to write a rule is the least likely one to break it. That is the whole finding, and it is worth stating as a shape rather than as an instance: a guard that reads the file it lives in proves something about the one file whose author was already thinking about the rule. The two files that broke this one are six hundred and a thousand lines away from the comment explaining why it matters, written by somebody solving a different problem.

veilvoice-setup reached the same conclusion independently and days apart, as F-210, where a hand-kept list of three modules claimed in its own comment to cover all six, and the two that were never read both spawned bare. Two crates, the same defect, the same week, neither found by the other's test.

The fix. crate::command in lib.rs, one wrapper the whole crate can reach, with hide_console split into a Windows half and an everywhere-else half as two signatures rather than one body with a cfg block inside it, for the reason veilvoice-setup records: the block version needs let mut on Windows and no mut elsewhere, which compiles on Windows and fails the Linux and macOS runners on unused_mut. The three spawns in reduced_motion.rs and the two ffmpeg spawns now go through it.

And the guard reads the whole crate, with the list checked rather than remembered. include_str! takes a literal, so the thirty-four entries cannot be produced by walking the directory. What they can be is checked against lib.rs's own mod declarations, so a module added later fails this test rather than silently going unscanned. Each file is cut at its first #[cfg(test)], because two guards in this crate name the forbidden call in order to forbid it and a check that trips over its own source is a check somebody deletes.

Proven by breaking both halves rather than only by passing: a bare spawn put back in studio.rs fails naming the file and the line, and studio.rs removed from the scan list fails naming the module.

This is the console half of roadmap item 167. The freezing half, every call that does its work on the thread that draws, is the larger part and follows separately.

F-211: nothing compared the pictures of the window against the window

Fifteen photographs of the running window are published: on the website, in the documentation, in the wiki, and as the whole of the demonstration for the edition that runs no scripts. tools/shots/gui.sh takes them by running the real program under a headless display.

Four checks guard them, and tools/verify.py runs all four on every push: no capture carries a border, none has empty space below its content, they all share one height, and the sizes written on the pages match the files.

Every one of those is about the pictures as pictures. A photograph of last month's window passes all four, because nothing in the set asks what the pictures are pictures of.

Two had gone stale on dev, and both were found by a person looking rather than by a build:

  • gui-about.png was 7.02% different from what the window draws. Roadmap item 165 added a release channel line to the About tab and the capture was never retaken.
  • The common height moved from 1550 to 1576, because roadmap item 164 made the Verify tab taller. tools/shots/fit.py fits every capture to one height, so that is the whole set out of date rather than one of them.

Neither failed anything. Both would have shipped in v0.1.23.

The obvious check is not available. Capturing again and comparing needs a build, a display and libxkbcommon-x11, and a fresh capture differs from a committed one by antialiasing even on the same machine at the same commit: thirteen of the fifteen reproduce to within 0.1% of bytes and two do not. A gate that is right most of the time about a difference nobody can act on is a gate people learn to pass rather than read.

So the check is the thing that can be known exactly. The captures carry the version they were taken from, in assets/screenshots/taken.txt, and tools/shots/taken.py --check fails when that is not the version in Cargo.toml. Retaking becomes an obligation once per release, which is what it actually is: the interface changes many times between releases and is published once. It is not a claim that the pictures are current on any given day. It is a claim that a release does not ship pictures of an older one, which is the promise being made to somebody reading the site.

The record is written by gui.sh at the end of a successful capture, and by nothing else. It is deliberately not a generator that tools/verify.py regenerates beside every other derived file: a record any run can rewrite records nothing, and the only way to move the version forward has to be taking the pictures. The record also names which captures it covers, so one added or removed outside a capture run fails too.

Two things found while in that file, neither a finding of its own:

gui.sh refuses to capture when JetBrains Mono is missing, because the fallback face would produce a set that does not match the others and nothing about the run would say so. It had no such check for libxkbcommon-x11, which the window loads at run time rather than linking, so ldd says nothing and a machine without it gets "Library libxkbcommon-x11.so could not be loaded" and an abort before anything is drawn. That reads as the program crashing. It is asked for now in the same place and for the same reason.

tools/verify.py stages what it writes, with git add -A, so the search index's walk sees files the step before has just created. That is right and it was silent: a run that rewrote forty files and a run that rewrote none printed the same last line. A commit made before the run therefore contains none of it, and git status shows nothing unstaged to say so. The run now names what it wrote, from git status --porcelain taken either side of the generators, and says plainly that those files are in the index rather than in a commit.

F-214: install put the programs in one directory and added a different one to the path

veilvoice install exists so that typing veilvoice in a terminal works. On Linux and macOS it could not do that, and had never been able to.

It copied the binaries into prefix(), which is ~/.local/share/veilvoice. It then added bin_dir(), which is ~/.local/bin, to the user's path. Those are different directories, and the second never receives a file. So an install reported success, told the reader to open a new terminal for the path change to take effect, and left them with a command that is not found.

status() then answered about a third place. Its on_path field was path_contains(prefix), and ~/.local/share/veilvoice is on nobody's path, so a correctly installed copy reported itself as not installed on the path whatever had happened. running_installed compared against prefix too, so somebody running the installed binary was told they were running a portable copy.

Two separate install commands, disagreeing. veilvoice verify install --from <DIR> copies into bin_dir(), which is the right place, while veilvoice install copied into prefix(). Each therefore reported the other's work as nothing installed, because both read the same status() and status() answered about prefix.

Windows was unaffected throughout, which is why this survived: there bin_dir() is prefix(), both are %LOCALAPPDATA%\Programs\VeilVoice, and every one of the three questions has the same answer. The platform the maintainer tests on is the one platform where the bug cannot appear.

The documentation was right the whole time. docs/INSTALL.md has a table headed "Where things get installed" giving ~/.local/bin for Linux and macOS, and install/install.sh puts the binaries there, at $PREFIX/bin with $PREFIX defaulting to $HOME/.local. So the shell installer, the manual and the Rust installer disagreed, and the two that agreed with each other were the two nobody had changed. There is a lesson in which artefact went wrong: the document is checked against the tree by a build step, and the shell script is what a reader follows step by step, while install() is a function whose result nobody had typed veilvoice after.

F-215: const fn was read as a constant called fn, on two published pages

tools/docs/generate.py finds the items in a source file with one regular expression, and the list of kinds it knows, fn|struct|enum|trait|mod|type| const|static|union, is also a list of words that can stand in front of a different kind. const is the one that does. Given const fn rgb(hex: u32), the expression matched const as the kind and then took the next identifier as the name, which is fn.

Two functions in the workspace are const fn, and both pages carried the result. theme.rs listed an item called fn, of kind const, linking to line 90, with an empty description, because rgb has no doc comment. update.rs listed an item called fn, of kind const, carrying this_platform's comment about why the download labels are written out one per row. So one page showed a reader a blank row and the other showed them a paragraph filed under a name that does not exist, and rgb and this_platform appeared on neither page at all.

Nothing noticed, and the reason is the one worth writing down: a page with a wrong row and a page with a right one are the same shape. Every check over these pages asked whether a row resolved, whether a link landed and whether the line count matched the file, and all of those passed, because the row was well formed. tools/audit/documented.py came closest: it reported fn as an item with nothing under it, in a list of eighty-one, where it read as one more function somebody had not got to.

The expression now takes const as an optional modifier before async, which is where Rust's own grammar puts it, as well as keeping it in the list of kinds. Order decides which: const fn rgb matches the modifier, then fn as the kind and rgb as the name; const MODE_HYBRID: u8 finds no kind keyword after the modifier, backtracks, and matches const as the kind. One expression still, because two would disagree.

The regression test asserts the shape rather than those two rows. No Rust keyword is the name of anything, so a keyword in the name column of a reference page means a modifier was read as an item, whichever modifier it was next time. It was run against the pages as they stood and failed on both of them before the parser was changed.

F-225: a test that knew only GNU tar's name for a format, and kept dev red for three days

a_tarball_holds_what_the_release_job_published builds a release tarball three times over, once for each of the ways a tar writes a path too long for a plain header: a long-name record, a pax extended header, and a path split across ustar's prefix and name. That is the right test to have. The verifier reads archives built on five machines by whichever tar each of them ships, and a reader that handles one of the three shapes refuses a sound release on the platforms that write the others, which looks to the reader exactly like a compromised download.

It built those three by passing --format=gnu, --format=pax and --format=ustar to whatever tar was on the machine. GNU tar accepts all three. The bsdtar that macOS and Windows both ship accepts two: it calls the long-name format gnutar, and answers gnu with Can't use format gnu: No such format 'gnu', naming no alternative.

The test had a branch for a tar that refuses to build an archive, because ustar genuinely cannot hold every path and refusing one it cannot hold is correct. That branch asserted the refusal was ustar's. So on macOS and Windows the run failed with left: "gnu", right: "ustar", which reads as a claim about path lengths and was in fact a claim about spelling.

What it cost. dev was red on macOS and Windows from 97ff0dc on 2026-09-23 until this, four commits and three days, while the Linux leg stayed green. Every thread working on this project develops on Linux and runs tools/verify.py --quick on Linux, so nothing any of them could run locally would have shown it. It was found by reading the workflow runs rather than by anything in the repository failing.

The fix is to ask rather than assume. The three shapes are now listed with the spellings a tar might use for each, and before a shape is built the test makes a one-file archive with each spelling in turn and keeps the first that this machine's tar accepts. A shape no spelling reaches is recorded and skipped rather than asserted about. The ustar branch survives unchanged and is now honest: the format was accepted moments earlier, so a failure there is about the path and nothing else.

Two of the three shapes are then required. A tar that can write neither a pax extended header nor a split path is not one this project has ever published with, and a run that quietly exercised nothing would otherwise report itself as coverage. The long-name record is deliberately not required: it is the one shape a tar may legitimately not offer, and the code that reads it is the same code on every platform, exercised by every Linux run.

Reproduced before it was fixed, not inferred from the log: libarchive-tools was installed and bsdtar put on the path under the name tar, which reproduced the failure character for character, including the two values in the assertion. The same run passes with the fix, and so does the run with GNU tar.

F-226: the one-host rule was a string prefix, and a prefix is not a host

Found while widening that rule for roadmap item 163, rather than by anything failing.

fetch::download refused any URL that did not begin with the compiled-in host, written as url.starts_with(HOST) with HOST being https://github.com. A host is not a prefix. https://github.com is a prefix of https://github.com.example.invalid/x, which is a machine somebody else owns and which that check accepted.

It was not reachable and is still worth fixing. Every caller builds its URL from the constants beside the check, and valid_tag and valid_asset refuse anything with a slash or a .. in it, so no string a user or a server supplies has ever reached that comparison. The comment above it said as much. But a guard that is sound only because of what its callers happen to do today is a guard the next caller breaks in silence, and roadmap item 163 is that next caller: it adds the origins that named companion builds are fetched from, which multiplies the number of prefixes a lookalike host could be built against.

The check is now at_a_known_origin, which requires the origin to be followed by / rather than by anything at all, and it is asked against a list rather than a single constant. The regression test names the lookalike case directly: https://github.com.example.invalid/x and https://github.community/x are both refused, https://github.com/tilas01/veilvoice is accepted, and the bare origin with no path is refused because it addresses no file.

The rule is also now stated as what it actually is. It was written as "the only host this will ever talk to", which roadmap item 163 makes false. What the project promises is narrower and stronger: no URL comes from outside the binary. Every address fetched is assembled from constants compiled in, so what the program can reach is a property of the build a reader can check, rather than of a configuration file, an argument, or a redirect somebody else controls. That sentence is now in the source where the list lives.

F-227: the weekly campaign compared itself against a baseline covering half the files it runs

.github/workflows/mutants.yml changes ten files a line at a time: eight of the cryptography crate and the two metadata readers. tools/mutants/survivors.txt is what its verdict step compares a campaign against, and a survivor missing from that list fails the build by design, because a survivor nobody has argued about is a claim about the tests that nobody has answered. The list answered for four of the ten.

The first run found the gap, and it is two mutants of one line. The campaign became weekly in F-186's round and fired for the first time on 22 September against main. A runner shutdown ended it thirty-six minutes in, before it reached the verdict step, so the comparison never ran. It had already printed these, and a campaign over kdf.rs reproduces both:

crates/veilvoice-crypto/src/kdf.rs: replace > with == in KdfParams::checked crates/veilvoice-crypto/src/kdf.rs: replace > with >= in KdfParams::checked

Both are unkillable, and that was established four rounds earlier. checked enforces Argon2's eight KiB per lane in widened arithmetic and caps m_cost at four gibibytes, so no p_cost above MAX_M_COST / 8, which is 524,288, reaches the lane ceiling at all; MAX_P_COST is 16,777,215. Every input that would tell the mutants from the original is rejected by a line below them. F-180 found this pair, proved it, and wrote the proof into the doc comment above checked, where it still stands under the heading "Why mutating the parallelism ceiling changes nothing". tools/mutants/check.py cites the same pair in its own docstring as its example of what a genuine entry looks like. The one place the argument was not written is the file the build reads.

Why the gap has exactly the shape it has. F-180 campaigned the AEAD, the key derivation, the container header and the hybrid combiner, and there was no committed list then, so its two unkillable survivors were recorded in prose. F-186 campaigned the other four, the app lock, the vault, the tape and the encodings, and built the list out of its own results: eighteen entries, every one of them from those four files. Nothing went back to F-180 to collect the two it had argued for, and nothing was in a position to notice. check.py --lint, which tools/verify.py runs on every push, establishes that every entry still points at a real line. It cannot miss an entry that was never written, and the half of the check that would have caught this needs the half-hour campaign.

The failure mode is the opposite of the one the list was built to prevent. check.py argues at length against a list that over-claims, because an entry for a mutant that no longer survives is how a real survivor hides in it. This is a list that under-claims. It hides nothing; it turns the weekly build red over two lines that are correct, which is the failure that gets ignored after the second week.

What the campaign over the whole set found, since it had to be run to say any of this. Ten files, 21 survivors. The AEAD, the container header, the hybrid combiner and both metadata readers have none at all. Two are the pair above. Eighteen were already argued for, though thirteen of those were recorded at line numbers the code had since moved out from under: weave.rs alone gained sixty-nine lines above one of them. They are corrected here, read off cargo mutants --list, which enumerates without testing and so answers in seconds rather than in the ninety minutes a campaign takes. The twenty-first is F-232 below.

Fourteen commits landed on dev while the campaign ran, three of them in the files being measured, which is what made the line numbers in the list stale a second time before the first correction could be written. A list keyed on absolute line numbers cannot hold still in a repository several people are pushing to hourly, and --lint cannot tell a stale number from a right one because it only asks whether the line exists. Keying each entry on the mutation rather than on where it sits would remove the whole class, and is not done here because it changes what check.py compares and belongs in a round of its own. F-250 is that round.

F-232: the base-91 encoder's last character was written by a decision nothing tested

base91_encode flushes whatever is left in its queue when the input runs out. It writes one character always, and a second only when the leftover will not fit in one, which it tests as bits > 7 || queue > 90. Changing that second > to a >= survived the whole suite.

The reason it survived is the reason it matters. The mutated encoder and the original both round trip. Where seven bits are left reading exactly 90, the original writes one trailing character and the mutant writes two, and the decoder rebuilds the same input from either: one trailing character is completed from pending, two are read as an ordinary pair, and both paths land on the same byte. So every round-trip test agrees with both, and the two forms differ only in the bytes on disk. This is F-186's finding in a place F-186 did not reach: a round trip tests the pair and not the encoder, and F-186 said so about this very file while leaving this one line of it resting on exactly that.

Nothing in the corpus reaches the state. The pattern, the counter walking every byte value, the all-ones run at every length to sixty-four, and both of the inputs already searched out for base-91's thirteen-or-fourteen bit decision all leave the queue somewhere else. The two searched inputs are the near miss worth naming: they were found for the bit-width test in the middle of the encoder, one reaching it on the way in and one on the way out, and neither touches the tail.

A third input was searched for, on the tail state directly, and one turned up within a few thousand tries: twenty-two bytes that leave exactly seven bits reading exactly 90. It is pinned on the encoded bytes rather than round-tripped, because a round trip is the thing that cannot see this, and the test says so where it stands. It also decodes the pinned form back to the input, so the vector cannot quietly become a fixed string that nothing produces.

Measured after. All 41 mutants of base91_encode are now caught, where the campaign had reported one surviving.

F-250: the baseline named each survivor by a line number, and nine of the twenty were pointing at the wrong line

F-227 promised this round and said why: tools/mutants/survivors.txt was copied straight out of cargo mutants, which names a mutant by where it is, <path>:<line>:<column>, and the comparison against a campaign was a string comparison of those names.

A line number is an address, not an identity. Insert a paragraph of doc comment three hundred lines higher and every entry below it names the wrong line, while nothing about any of the mutants has changed. What the comparison then does is worse than failing: it reports the same untouched mutant twice over, once as a survivor nobody has argued for and once as an argument that no longer holds. Both messages are false, and each asks for the opposite of the right thing to be done, one for a test to be written and one for the argument to be deleted.

Nine of the twenty entries were in that state when this round read them. Read off cargo mutants --list against the same tree the entries sat in:

the entry saidwhat is actually on that linewhere the mutant is now
lock.rs:871 every_copy_current}908
lock.rs:888 open_default, twicefn save(&self) -> Result<bool, Error> {925
lock.rs:1072 portable_dirp1109
lock.rs:1127 is_portable, twicefn choose_base(...), a different function1164
vault.rs:363 admin_dir, twice///418
vault.rs:147 Vault::at's match guarda comment two lines above the guard156

check.py --lint passed over all nine on every push, because the only thing it asked of a line number was whether the file had that many lines. A number in range said almost nothing, and said it confidently.

An entry now names the mutation. Two lines: the file and what the mutation does, then an indented on: line carrying the text of the line it does it to. None of the three moves when code above it moves, and all of them change when the mutated line is edited, which is exactly when the argument above the entry needs reading again. missed.txt still arrives in cargo-mutants' notation, so the line number in it is read once, to look the source line up, and then discarded.

The line text is not decoration, and KdfParams::checked is why. That function makes the same comparison three times, once per Argon2 cost, and cargo-mutants describes all three identically: replace > with == in KdfParams::checked. Only the parallelism one is unkillable, and the pair of entries for it is F-227's whole subject. Keyed on the file and the description alone, an entry for the lane ceiling would match a survivor in the passes ceiling and the comparison would pass while the argument above it was false. The on: line is what tells the three apart.

Entries are counted rather than matched, because two mutants can share all three parts of the key. sixbit_encode has one line with two | in it and both survive, so that entry appears twice, and killing one of the pair still fails the comparison.

--lint has a real job again. It asks whether the file still contains the line the entry is about, which is the question the old check was a weak proxy for, and whether the file is one .github/workflows/mutants.yml actually campaigns. The second is F-227's defect from the other side: a list and a campaign that name different files cannot be compared, and nothing noticed for two rounds.

Proved against planted faults rather than asserted. check.py --self-test builds nine lists and campaigns, one per fault, and tools/verify.py and ci.yml run it beside the lint. Eight are faults it must object to: an unargued survivor, an argument for a mutant that no longer survives, one of a same-line pair killed, the same mutation of a sibling line, a mutated line edited out from under its argument, an entry for a file the campaign does not run, an entry with no on: line, and an entry still carrying a line number. The ninth is the one it must accept, and it is this finding: a survivor ten lines further down the file, which under the old scheme failed twice over.

F-260: an update resealed the integrity record with a passphrase nobody had checked

update::perform refused to start when an app lock was set and no passphrase was given, which was right, and then never asked whether the passphrase it was given is the one the lock takes. The record is resealed at the end of the update with whatever was typed. So a typo bought a complete update, new binaries and all, and an integrity record sealed under a passphrase that does not exist. The next launch cannot open it, reports VeilVoice's own files as changed or damaged, and reports it again at every launch afterwards, with nothing actually wrong and nothing the reader can do about it from the window.

The passphrase is now checked against the app lock in perform, before the first byte is fetched, by the same LockStore::unlock every other unlock in the program goes through. Deliberately the same one: a wrong passphrase here counts toward the same failure count and waits out the same cooldown as one typed at the window, because an updater that could try passphrases without the rate limit would be a way around the rate limit.

Error::WrongPassword is its own variant beside Error::Locked, for the reason Locked is one: the answer to both is to ask again, and "you did not give one" and "that one is not right" are different sentences to somebody who has just typed one.

The regression test pins the order rather than the behaviour, because the real thing needs an app lock on the machine running the tests: the check has to happen before update_within is called at all, and a test that only asserted the check exists would pass with it at the end, which is the defect.

F-261: the name people run was briefly missing, and then briefly half a program

put_in_place renamed the old program to <name>.old and then copied the new one to the name it had left. Its doc comment said the opposite, at length: that the order "means that at no point is the name missing: a rename within a directory is atomic, so somebody starting VeilVoice during an update gets the old one or the new one and never a partial file."

Every clause of that is true about a rename and none of it is true about what the code did. Between the rename and the copy the name does not exist. For the length of the copy it exists and is incomplete. The window is a few milliseconds and it is precisely the window somebody hits by double-clicking the application they have just told to update itself, which is not an unlikely thing to do.

A failure partway through the copy was handled, and left its own mess: the old file was renamed back over a half-written new one, so a second failure there left one new program and one old one in a directory that is supposed to hold a matched pair.

The new program is now written to <name>.new beside the old one, given its permissions there, and moved to the real name by a rename, which is the atomic operation the comment was already describing. At every instant the name holds the old program whole, the new program whole, or nothing yet. Windows still moves the old file aside first, because a running program cannot be renamed over there, and that step is now explicitly the Windows one rather than something Unix pays for as well. On Unix nothing is moved aside at all: renaming over a running program is allowed and the running process keeps the inode it started from.

The regression test reads the source rather than racing a thread. The window is milliseconds wide, so a test that has to catch it is a test that passes on a fast machine whatever the code says.

F-262: an update forgot every recorded file it had not replaced

retake_record built the new integrity record with Manifest::of(&replaced), which records the paths it is handed and nothing else. The record covers more than the two programs an update replaces: the guard records the app lock beside them on its first run, and somebody can name files of their own. All of that was dropped at the first update, and the next check reported those files as unrecorded rather than as unchanged, which is a different and much weaker claim.

Manifest::refresh is the operation that was missing, and it is in veilvoice-guard beside of because it belongs to the type rather than to the updater: the same record, with the named paths measured again and every other entry kept.

Only the named paths are read from disk, and that is as much the point as the keeping is. A file altered while the old record was in force keeps its recorded digest and is still reported as Modified at the next check. Re-hashing everything would have written the alteration down as the new truth, on the authority of an update that never looked at it.

F-263: the path to restart was read after the program had been moved

update_within finished by asking std::env::current_exe() where to restart. By then put_in_place had already replaced the running program. On Unix current_exe follows the running process to wherever its file went, so the answer was <name>.old, or on Linux the literal <name>.old (deleted) once that file had been tidied up. Either would have failed to start.

Latent: nothing calls relaunch yet, so no user has met this. It is the kind of defect that is found by reading and not by running, and it would have been found by running on the day the window gained its update button.

The running program's path is now read at the top of the update, before anything moves, and the restart path is that file's name inside the directory the update wrote to. The name is what the caller wants to start again, and the name does not move.

F-264: the archive check claimed a per-file check it had not made

veilvoice verify archive ends by printing that the archive "is the published archive, and so is every file in it". Where the release published no separate contents list, report_inside compares each member against nothing and returns zero, and that sentence was printed anyway.

The claim is true, and it was still wrong to print. Reaching that line means the archive's own hash matched a signed list, so its bytes are the published bytes and everything inside follows from that whether or not anything inside was opened. What the sentence describes, though, is a per-file comparison, and no such comparison happened. A verifier describing a check it did not make is the one thing this program must never do, and being right by another route does not excuse it. This is recorded as a finding rather than as wording because the distinction it blurs is the one the whole command exists to draw.

There are two sentences now, one for each case. With a contents list: every file in it was checked one by one against the published list. Without one: the archive is the published archive byte for byte, that covers what is inside it because the hash that matched is a hash of the whole archive, and the files were not also checked one at a time.

F-265: one screen said the update installs nothing and, four lines up, how to install

veilvoice_setup::update::SCOPE is the paragraph shown beside a check, and it said "It does not download a release, install anything, or restart the program". True of the check. The paragraph is also printed by veilvoice update, on the two paths where nothing is installed, and there the unqualified "it" reads as a claim about the command, which does install: that is what the command is for.

veilvoice update --check printed both halves of the contradiction on one screen, four lines apart: "Run veilvoice update to fetch it, check it and install it", and then "It does not download a release, install anything".

Fixed in the paragraph rather than by splitting it in two, because there is only one set of facts and two copies of them would drift. Every sentence now names the check as its subject: "the check itself downloads no release, installs nothing and restarts nothing". The test that requires the paragraph to state its limits was looking for the old phrase and now looks for the new one, with the reason beside it.

F-266: verify install wrote through whatever was already at the name

command_install copied each binary into place with std::fs::copy, which opens the destination for writing and follows what is there. If ~/.local/bin/veilvoice is a symbolic link, the bytes go wherever it points. If it is a hard link, they go to the shared inode.

The ordinary version of this needs no attacker at all. Somebody keeps a portable copy in a folder of their own and points ~/.local/bin/veilvoice at it, which is a reasonable thing to do and is close to what the install instructions describe. They then run veilvoice verify install --from, which reports that it installed the binary, and what actually happened is that their portable copy was overwritten and the name still points at it. There is one file where they believe there are two, and the installed copy and the portable copy can never again differ, which defeats the point of having both.

The version with an attacker is narrower than it looks: writing into that directory already needs write access to it. What a link adds is reach out of it, to a path the person running the install can write and the person who planted the link cannot.

This is the same defect as F-237, which another thread found in veilvoice_setup::install during the same round, in a different command that writes to the same directory. That matters more than either finding on its own. veilvoice install and veilvoice verify install --from both put programs in bin_dir(), by two pieces of code written months apart, and the second one did not learn anything the first one had.

So the fix here is not a second staging routine. install::replace_with_copy, written for F-237, is now public and command_install calls it. It writes to .<name>.installing, created with create_new so that nothing already at that name is followed, syncs it, carries the source's permissions over before the rename rather than after, and renames it over the destination, which replaces a link instead of writing through it. A first draft of this fix added a place function next to command_install that did the same thing slightly differently, including a staged name without the leading dot. It was deleted: two implementations of this is how the defect got here.

update::put_in_place (F-261) is the third place that replaces a program somebody may be about to run, and it is still its own code, because it also moves the running program aside first on Windows, where a running file cannot be renamed over. Folding that one in means pushing the Windows branch down into replace_with_copy, which is worth doing and is not worth doing inside a finding about verify install. It is written down here instead.

The regression test is the ordinary case rather than the adversarial one: a link pointing at a file elsewhere, an install over it, and an assertion that the file elsewhere is untouched, that the binary landed at the name, and that the name is no longer a link. It was run against std::fs::copy first and fails there, naming the overwritten file. It lives in the verifier's tests rather than beside replace_with_copy's own, because what it is holding down is that command_install calls it at all.

The half that could have damaged a machine

uninstall() ended with std::fs::remove_dir_all(prefix).

That was safe, and safe by accident. ~/.local/share/veilvoice is VeilVoice's own directory and nothing else writes to it, so removing it whole took nothing that was not VeilVoice's. But the obvious fix for everything above is to move the binaries to where the path entry points, and the obvious way to write that fix is to change what prefix() returns. One line, and veilvoice uninstall becomes a command that recursively deletes ~/.local/bin, with every other program the user has installed in it, at the moment they are least inclined to look closely at the output.

The fix is therefore not only to correct the directory. uninstall now removes the programs it wrote by name, one file at a time, from the directory they live in, and never removes that directory. The recursive delete survives for exactly one thing, the directory VeilVoice made for itself, and it is guarded: removable_prefix() returns None unless the directory's final component names VeilVoice and, off Windows, is not the directory the binaries live in. Either test alone would have been enough. Both are there because the check costs nothing and being wrong costs somebody their ~/.local/bin.

A running program is reported rather than deleted, because Windows will not unlink a running executable, and the other programs are still removed rather than the whole operation stopping at the first one.

What is checked

Three regression tests, and the first is the one that matters. It stages a directory holding VeilVoice's programs, three files somebody else put there and a directory of their own, runs the removal, and asserts that the three files, the directory and the directory itself are all still there. Confirmed by putting a remove_dir_all back: the test fails naming the file that was taken.

The second asserts that the running program is left and named while the others still go. The third asserts that everything status() reports is about the one directory the binaries are actually copied into, which is the shape of the original defect rather than its symptom.

Found while landing roadmap item 179, whose updater needed one answer to "where is the installed copy" and found two. The updater does not depend on this: it replaces the files beside the running program, which is right for a folder somebody unzipped as well as for an install, and portable is this project's default.

F-217: the check that runs the program ran whichever build happened to be lying about

tools/shots/terminal.py --check is the one check in this repository that runs VeilVoice and compares what it printed against the committed captures. F-103 added it, for a good reason: a string had been edited in the interface, every check passed, and assets/screenshots/cli-help.txt went on showing the old wording on the website, in the README and in the gallery.

It found the binary like this:

for profile in ("release", "debug"): path = os.path.join(target, profile, name) if os.path.exists(path): return path

Whatever was in target/, preferring release. Nothing asked whether that build was a build of this tree, and its docstring said, as a statement of fact, that verify.py runs after cargo build on the machine where the strings were just edited. Nothing made that true.

The loud half is what was reported, by the thread landing roadmap item 171: a release build two days old printed an old help screen, this check called cli-help.txt wrong, and cli-help.txt was right. They deleted the binary and moved on, which is the correct thing to do about a false alarm and leaves the cause in place.

The quiet half is the defect. A build two days old printing a help screen two days old matches a capture two days old. So a string edited since is waved through, silently, by the check whose whole purpose is to say that it was not. The means of catching F-103 had been turned back into F-103.

Both halves were reproduced here before anything was changed. The release build in this container was from two days earlier, --check reported cli-help.txt is not what veilvoice --help prints, and a rebuild made it pass against the same committed file, which is the false alarm exactly. The quiet half follows from the same mechanism and needs no separate demonstration: if the binary decides the answer and the binary is old, the answer is about the old tree whichever way it comes out.

Preferring release is wrong on its own terms. cargo build without --release is what somebody editing a string runs, and it lands in target/debug. Two profiles present is not a preference, it is two answers, and the one to take is the one that was linked last.

What it does now

binary() takes the most recently built of the two. build_state() then asks whether that build can answer for this tree at all, and the check refuses rather than guessing when it cannot. Refusing is a failure and not a skip, because a check that goes quiet when it cannot see is the thing being fixed. --capture refuses too, and more firmly: capturing from a stale build writes down something that is not true and commits it.

The question that can be answered exactly, without reading cargo's internal fingerprints, is whether any source has been written since the binary was linked. That is strictly more cautious than asking whether the bytes differ: it can ask for a rebuild that would produce an identical binary, and it cannot miss one that would not.

The sources are the crates a veilvoice binary is built from, closed over the manifests rather than listed, plus the workspace manifest and the lockfile, because clap renders these screens and a version bump moves their spacing. Deriving the list rather than writing it down is what keeps veilvoice-gui out of it. A list would have included the window, it being a crate in this workspace, and every edit to the window would then have declared the command line's build out of date, which is the kind of false alarm that gets a check deleted.

The cost that remains is a rebuild after a rebase, which rewrites the files it carries. It is smaller than it looks: rebasing onto somebody else's Rust means the Rust in this tree changed, and the house rules already say to run the Rust gates before pushing when it has, so the build was owed anyway.

What is checked

tools/shots/terminal.py --self-test, run by tools/verify.py and by CI beside the check itself. It builds a throwaway workspace and arranges the cases rather than waiting for them: no build at all, a release build older than a debug build, a release build newer, a source written after the link, a touched veilvoice-gui that must not count, and a touched lockfile that must. Each was confirmed by inverting it.

That last pair is the part worth having. A staleness check is easy to get wrong in the direction that stays green, and a self-test that only proves it fires proves half of it.

F-213: the program told people it had no network code, next to a command that downloads

Two sentences shipped, in the two places somebody is most likely to read one.

veilvoice --help, the first paragraph of the first thing anybody types:

This command line talks to no servers, ever: the one thing in VeilVoice that reaches the network is the desktop app's check-for-updates button, and it is not here.

And the message the desktop application prints on a successful install:

VeilVoice never checks for updates and cannot tell you when one exists. it has no network code at all.

veilvoice verify release v0.1.22 veilvoice-v0.1.22-linux-x86_64.tar.gz downloads three files from github.com. It has done since v0.1.11, it is documented in veilvoice verify --help, and it is in docs/COMMANDS.md. So the first sentence was false when it was written and stayed false for eleven releases, and the second was false about the program it was printed by.

What makes this worth a finding rather than a typo is which claim it is. The front page's promise is that VeilVoice has no HTTP client anywhere in its dependency graph, that a reader can check that in ten seconds with cargo tree, and that CI fails the build if reqwest, hyper, curl, ureq, tungstenite, isahc or surf ever appears. That claim is true, it is enforced, and it is a large part of why this project is worth trusting.

"Talks to no servers, ever" is a different claim, and it is the one a reader takes away. Somebody who reads it, then watches veilvoice verify release open a connection, has been given every reason to stop believing the first claim too, and they would be right to: they cannot tell from the outside which of the two sentences was the careless one. An overclaim next to a true and carefully enforced claim costs the true one its credit. This project has a guard against exactly this shape in veilvoice_guard::SCOPE, which refuses the words "prevent", "unbreakable", "guarantee" and "protects against" in a test, and the lesson of that guard had not reached the one sentence at the top of --help.

Both are corrected to say what is actually true, which is the stronger statement and did not need the overclaim:

Nothing here reaches the network except when you ask it to by name: veilvoice update and veilvoice verify release fetch from the releases page, and no other command opens a connection for any reason.

"Nothing happens unless you ask" is the property that was worth having. "No network code at all" was never it, and was being used as a proxy for it.

Found while landing roadmap item 179, which adds veilvoice update and would have made both sentences worse. The rule that everything describing a change moves in the same commit is what turned it up: the sentences had to be read before they could be edited, and reading them was enough.

docs/UPDATING.md carried the same claim in its own words, along with a section headed "What is deliberately not here yet" describing the updater as planned, and is rewritten with them.

F-210: the test that proved every spawn was wrapped scanned half the crate

veilvoice-setup reaches the Windows registry, df, fsutil.exe, curl and the platform's own file manager as subprocesses, because #![forbid(unsafe_code)] holds in every crate here and the Win32 calls those would otherwise need are unsafe FFI. On Windows a Command for a console program creates a console, and when the caller is the desktop application that console flashes on screen. Three of those at startup were most of what "it flashes a command prompt and loads in an unusable state" meant in the v0.1.10 report, and the fix was crate::command, a wrapper that sets CREATE_NO_WINDOW, plus a test reading the crate's own source to catch a spawn that forgets it.

The test said, in its own doc comment, "It scans every module, not just this file, because the wrapper now lives in one place and the spawns do not." It then named lib.rs, install.rs and companions.rs. The crate declares five modules beside lib.rs. space.rs and update.rs were never read, and both spawn:

  • space.rs runs df -Pk and, on Windows, fsutil.exe volume diskfree. It is what the Storage tab shows a free-space figure from, so opening that tab flashed a console.
  • update.rs runs curl or wget. It is the check-for-updates button, which is the one thing in VeilVoice that touches the network at all and therefore the one button most likely to be pressed by somebody already wondering whether this program is what it says it is. Pressing it flashed a console.

Neither is cosmetic in the way the word suggests. The v0.1.10 report is the evidence for that, and this is the same defect in the same crate, shipped past the test written to prevent it, in code added after that test.

The general fault is the hand-kept list, not the two files. A list of sources that has to be extended whenever a module is added will be wrong from the first module nobody thought about, and its own comment claiming completeness makes it worse: a reader checking whether the rule is enforced reads the sentence rather than counting the entries. include_str! takes a literal, so the list genuinely cannot be built from the directory. What it can be is checked. The test now reads the mod declarations out of lib.rs and asserts that each one appears in the list, so a module added without a line beside it fails here rather than on somebody's desktop. That is the same move as F-204 and tools/audit/fixtures.py: ask the thing that knows, rather than restate what it knows and hope the restatement keeps up.

Both halves were confirmed by breaking them. Putting a bare Command::new back in space.rs fails with the file and line; removing space.rs from the list fails with the module name and what to do about it.

The module documentation at the top of lib.rs had the same shape of error and is corrected in the same commit: it said "Two modules" and described two, above five declarations. Nothing depended on it, which is exactly why it had been allowed to drift.

F-201: a recorded session that stopped matching the program it records

Found while running python tools/verify.py --quick before a push, which is what that command is for.

assets/screenshots/session-info.txt is a recording of veilvoice info, committed so the website and the README can show what the program prints without anybody retyping it. Two commits earlier, "Two channels, and a build that knows which one it came from" added a Release channel line to that output. The recording was not re-made, so the transcript on the website was one line short of what the program says, and had been since that commit landed.

The check that catches this already existed and already worked. tools/shots/sessions.py --check re-runs each session and compares, and tools/verify.py runs it. So this is not a missing guard: it is a guard that was not run before a push, and the thing it guards drifted in exactly the way it was written to notice. The fix is one line of re-recorded transcript, and it landed on dev in another change while this was being written. The entry is kept because that change carried no write-up, and the reason this survived is worth more than the one line it cost.

What is worth writing down is why it survived. The two other transcripts this tool records, session-anonymise and session-unencrypted, hold a measured speed and a randomly drawn seed range, neither of which can repeat. They are compared through steady(), which replaces those before the comparison, so they pass anywhere. --record, though, writes the literal values, so re-recording on any machine rewrites two files with that machine's numbers and nothing else. A maintainer who runs --record to fix one genuine drift is handed three changed files, two of them noise, and the habit that forms is to discard all three and move on.

So the asymmetry is the finding: this check is cheap to run and expensive to act on. It is left as it is for now, because the alternative -- recording the normalised text -- would publish a transcript with the interesting numbers blanked out, and these recordings exist to show a reader what the program actually prints. The note is here so the next person who sees three files where they expected one knows which of them to keep.

F-200: a branch policy that sent the upgrades to the wrong branch

The same shape as F-197, one file along, and found by reading the remote's branch list rather than by anything failing.

git branch -r showed three branches where the project says there are two: main, dev, and dependabot/cargo/minor-and-patch-722c7a5dc4 carrying pull request #22, clap 4.6.6 to 4.6.7. The third is not the defect: Dependabot pushes a branch per pull request and deletes it when that pull request is merged or closed, so it is a bot's working branch rather than a place anybody develops, and "never a third" was simply never written with that caveat. It is written with it now, in docs/CONTRIBUTING.md under the branch table.

The defect is where that pull request points. .github/dependabot.yml declares three ecosystems, cargo at /, cargo at /fuzz and github-actions at /, and not one of them set target-branch. Dependabot opens against the repository's default branch when nothing says otherwise, and the default branch here is main. Development moved to dev in roadmap item 125; this file did not move with it.

So every dependency bump this project has ever been offered was aimed at the released branch. Merging one there puts a commit on main that dev does not have. dev is then behind by exactly that change, and the next release merge either drops it, because the release is cut by merging dev into main and dev never had it, or stops on a conflict in a manifest and a lock file that two branches edited independently. Neither outcome announces itself at the time the mistake is made.

And nothing reported it, for the same reason nothing reported F-197. A pull request opened against main looks exactly like a pull request opened against anything else. GitHub shows the default branch as the base without comment, the diff is the one-line version bump you expected, CI runs and goes green because ci.yml builds main too. There is no failure anywhere to notice. The absence of a policy is invisible in a way its violation would not be, which is the property F-197's write-up named and which this is a third instance of: F-176 and F-177 were checks that existed and were not wired into CI, F-197 was CI wired to the wrong branch, F-199 was the wiki workflow that had never once run on the branch the work was on, and this is the upgrade robot pointed at the wrong branch.

Four times now a branch policy has been changed and something reading it has been left behind. The pattern is worth stating plainly: a branch policy is not a fact about branches, it is a fact several files depend on, and moving it means finding all of them. The ones that read it are ci.yml, pages.yml, wiki.yml, release.yml, dependabot.yml and the branch table in docs/CONTRIBUTING.md.

The fix, and why the guard does not simply say dev. All three ecosystems carry target-branch: dev now, with the reasoning at the top of the file rather than written out three times. tools/audit/dependabot.py is the guard for that file and fails the build on an entry with no target-branch, on one aimed at the released branch, and on one aimed at a branch ci.yml does not build on a push.

That last clause is the point. Writing dev into the guard would have put the branch name in a fourth file, which is the mechanism that produced all three findings. Instead the guard reads ci.yml's own push: branch list and requires the target to be one of them and not main: the file that decides which branches are built is also the file that decides where a bump may land, so the two cannot drift apart without one of them failing. The single name the guard does spell out is main, because the default branch is a repository setting rather than anything in the tree, and a tool that inferred it from the tree would be guessing.

How it is tested. python tools/audit/dependabot.py --self-test drives the branch check over six written-out configurations: one correct, one with no target-branch at all, one aimed at main, one aimed at a branch nothing builds, one with a single ecosystem quietly wrong among others that are right, and one whose ignore: list must not be misread as a second entry. It runs in tools/verify.py beside the guard itself, because a check proved only against the repository it guards is a check that has been seen to pass and never seen to fail: the reader in place before this stopped looking at an entry once it had found directory:, so it could not have seen a target-branch written after it, and would have reported a clean file either way.

This change touched pull request #22 itself not at all. Retargeting an existing pull request is Dependabot's own job on its next run, and whether to take a bump is a decision rather than a consequence of fixing the configuration it arrived through. The clap 4.6.7 bump that pull request carried was applied to dev separately, which is the shape every bump takes from here: it enters dev, and reaches main only when a release merges one into the other.

F-197: a branch policy that turned the checks off

Development moved off main onto dev, which is roadmap item 125 and is right: a public branch should hold what has been released rather than whatever is half-finished. ci.yml said:

on: push: branches: [main]

and nothing moved it. So from the moment development moved, every push of real work ran no continuous integration at all. What still ran was a pull request, and the merge that cuts a release, which is the last moment anybody wants to find out that Windows does not build or that a generated file is stale.

Nothing reported it, and nothing could. A workflow that does not run produces no failure, no red cross and no notification; the commit list simply has no checks beside it, which looks the same as a repository that has none. This is the second time this shape has been written up here, and it is worth naming as a shape rather than as an instance: F-176 and F-177 were checks that existed and were not wired into CI, and this is CI itself wired to the wrong branch. The common property is that the absence of a check is invisible, where the failure of one is loud.

The branch list is [main, dev] now, with the reason written beside it so the next person to change a branch policy sees what else has to change with it.

The two workflows that were right to leave alone are pages.yml and wiki.yml, which publish from main only: what is published describes what has been released, and the site also redeploys after a successful release run because a release changes the download page, the releases page and the verify page at once. That is deliberate, and it is now written in docs/CONTRIBUTING.md beside the branch policy rather than being a property somebody would have to infer from two workflow files.

F-196: two halves of one idea, at three different sizes

Reported by the person who uses the window, after F-178: the unlock button on the lock screen does not line up with the password field, and the lock button in the header still does not line up with the theme picker.

Half of that was already fixed and half of it was never looked at, and the useful part of this entry is which. Measured in a headless frame with this application's own theme installed, laying out each row exactly as it ships:

controlwidthheightmiddle
theme picker132.026.0021.00
lock button46.526.0021.00
password field260.019.1217.56
unlock button98.327.0021.50

So F-178 did what it said: the lock button is the picker's height, on the picker's middle, exactly. What it explicitly decided not to do was the width, on the reasoning that "a button as wide as the picker would be a different complaint". It was the same complaint. A 46-point button against a 132-point dropdown, sharing a middle and agreeing on nothing else, is what somebody looking at the header is describing when they say the two do not line up.

The lock screen had never been measured at all. Its field and its button differ by nearly eight points of height and their middles by four, and the button was sized by writing " unlock ": the word padded with two literal spaces at each end. That is the mistake crate::layout::column already exists to stop somebody making, in a proportional font, for the second time in this repository. A space is not a fixed fraction of a letter, egui gives trailing whitespace no reliable width, and the result is a control whose size depends on the typeface the reader has installed.

The repair is one number and one rule. crate::layout::LOCK_WIDTH is the width of the theme picker, the lock button and the unlock button, so the control that locks the window and the control that unlocks it are one control to a reader rather than two sizes. The rule is that each button takes its height from whatever it stands beside, because that differs by where it is drawn: the picker in the header, the password field on the lock screen. The field is grown to the button rather than the button squashed to the field, since a button at a text field's height reads as a link.

controlwidthheightmiddle
theme picker132.026.0021.00
lock button132.026.0021.00
password field260.027.1255.56
unlock button132.027.1255.56

Four tests hold it. Two measure the rows as they ship, one for each screen, and check height, middle and width. One draws the same controls with nothing made to match and fails if they agree anyway, so the first two cannot pass by accident. The fourth checks that layout::button_height, which is arithmetic over the style, is still what egui actually makes a button: it is the one piece of this that could go quietly wrong when the toolkit is upgraded.

The lock screen's row was lifted out of unlock_screen into a function of its own for the first two of those. A test that measures a replica of a row proves something about the replica, which is the same class of mistake as F-178's first measurement reading a photograph instead of a widget.

F-195: a generator that wrote what was current and never took away what was not

Found by doing something that had not been done before: deleting a crate.

tools/docs/generate.py writes the reference, the wiki, the per-file pages and the banners. Its --check had noticed for a long time that a file it no longer produces should not be in the tree, and said so. Its write did not act on that. So the page for a crate that stopped existing would be written once, never rewritten, and never removed: it would sit in website/reference/ describing something that is not there, be linked from the index, be walked into the search index, and be found by a reader.

Nothing had ever removed a crate, so nothing had ever exercised it. Folding fourteen of them into modules produced 218 such files in one run.

The sweep --check already had is now a function both halves call, and write removes what it finds before reporting. The report says how many, so a run that takes something away says so rather than doing it quietly:

wrote 1142 files for 14 crate(s), and removed 218 that are no longer produced

Empty directories go too, in the same pass, because a directory left behind is the same defect one level up.

This is the shape F-185 had, and it is worth naming the pattern rather than just the instance: a tool that only ever adds is a tool whose output is correct about the present and permanent about the past.

Every page carried <meta property="og:image" content="assets/banner.png">. That tag is read by crawlers, not by browsers, and a crawler does not resolve a relative URL against the page it came from. So every link to this site posted anywhere, in any chat application and on any social network, showed no picture at all, and had never shown one.

Nothing about it looked wrong. The tag was present, it was spelled correctly, and it named a file that exists. It could only be found by asking what reads it rather than by reading the page.

Three more things in the same place. There was no og:url and no canonical link, so a page reachable at more than one address is more than one page as far as an index is concerned; 404.html and wiki.html carried no tags of any kind; and the no-JavaScript page's preview title read VeilVoice &amp;middot; no-JavaScript edition, because the title it was copied from was already HTML and had been escaped a second time.

The cause is the same one this project has a rule about: the tags were typed into each page. They are built now, by tools/site/seo.py, from what the page already says. The title comes from its <title>, the description from its <meta name="description">, the address from where the file is, and the site's own address from the repository field of Cargo.toml, which is where this project already says where it lives. Every generator that writes a page calls the same function, so a page cannot be produced without them.

The site also said nothing at all to a crawler. There was no robots.txt and no sitemap, so the only way in was a link from somewhere else. Both are generated now: robots.txt allows everything and names the sitemap, and the sitemap is produced by walking the site, so a page that is added is listed and a page that is deleted stops being listed. All 398 pages are in it.

That is the whole of what a site can do from its own side, and it is worth being plain that it is not the same as being found. A sitemap asks to be read. Nothing in a repository can ask to be ranked.

Checked twice, on purpose. tools/site/seo.py --check asks whether each page is exactly what the generator would write. tools/site-tests/addresses.test.js asks whether what the generator writes is correct: one canonical address per page, every address absolute, every page in the sitemap. A generator that started emitting relative URLs again would pass the first and fail the second.

One test had to be narrowed to let the canonical link through, and the narrowing is an improvement rather than a concession. html.test.js refused any <script>, <link> or <img> pointing at an absolute URL, on the ground that a privacy tool's site loading a third-party asset would undercut its own argument. That rule is right, and a <link rel="canonical"> fetches nothing: it is a statement about this page's address, which has to be absolute to be a statement at all. The rule now applies to the values of rel that make a request, and still fails on a stylesheet from a CDN.

F-193: seventeen images with no size, and everything under them moving

Following on from F-191, and found by the same measurement: a landing that was correct the moment it was made was wrong a second later, and the offset was not what had changed.

Seventeen <img> elements on this site declared no width and height. Six of them are the drawings of the command-line help screens, high on the front page, and one is the screen photograph in the demonstration. An image with no declared size occupies nothing until it arrives, so everything below it moves down when it does, and the reader who followed a link to one of those sections arrives, reads a line, and finds the line somewhere else. The brand icon in the header was another, on every page of the site including the twelve hundred generated ones.

All seventeen now carry their size, taken from the file rather than typed: the help drawings and the banners from their own viewBox, the screen photograph from the size tools/site/demo.py already enforces for every capture, the icons and the banner image from the files themselves. The generators that write the reference and source pages read the banner they have just written rather than carrying a number, because a banner whose subtitle runs to a third line is taller than the rest.

anchors.test.js fails on an <img> without both, so the next one to be added without them fails a build rather than moving a paragraph under somebody.

F-192: three tables listing the crates, none of them listing the crates

The website's front page renders the README. The README lists the crates twice, in a Layout table and a table for somebody using them as libraries, and docs/USING_THE_CRATES.md lists them a third time. The three carried thirteen, twelve and thirteen rows. The workspace has twenty-seven crates.

So the public description of what this project is made of was short by fifteen crates, and had been for as long as those fifteen had existed. Among the missing were the verifier's two backends, the failsafe, the video renderer and the workspace store: not internal plumbing, but things the rest of the documentation talks about at length.

Nothing careless produced this. A crate is added in crates/, and the tables are in two other files. That is the shape this project already has a rule about, and the rule is that a fact in more than one place is derived or checked. Descriptions cannot be derived, because a sentence assembled from a crate name is padding. So the membership is checked: tools/audit/crate_tables.py reads the workspace and every table, and fails naming each crate a table has missed and each row that names a crate that is not there. The library tables are held to the crates with a src/lib.rs, the Layout table to every workspace member.

The check was written first, run against the tree to produce the list of fifteen, and the rows were then written by hand.

F-191: the offset that clears the sticky header was a number, and the number was wrong

The website's header is position: sticky, so whatever a fragment jump puts at the top of the viewport is underneath it. scroll-margin-top exists for that, and the stylesheet set it to a flat 90px.

The header is not 90px tall at any width. Driven in a browser it measures 133px at desktop widths, 171px where the navigation wraps to three rows, 115px on a phone, 143px at 320px and 81px on the reference pages. At the commonest width that is 43px in the direction that hides the heading, so following download from the navigation arrived at a page that appeared to begin mid-sentence.

The rule also named section, h2 and h3 and nothing else, so an h4 or a list item with an id got no offset at all and landed a full header height under the bar. That is every entry on the releases page and every entry on the roadmap.

Measured across both, 425 of 430 fragment links on the site landed wrong. The edition of the site that runs no scripts had none of this, because it has no sticky header, and it is the standard the rest of the site is now held to.

The offset is measured rather than written down. website/js/teleport.js reads the header's height, publishes it as --anchor-offset and keeps it current with a ResizeObserver, so a header that grows a row, a font that loads late and a phone turned sideways all correct themselves. The stylesheet applies it to [id] rather than to a list of tag names. The landing is then held for a second afterwards, because a fragment jump happens once and the page is not finished at that moment, and the holding stops the instant the reader scrolls. Where the reader landed is outlined briefly, which under prefers-reduced-motion is an outline that simply sits there rather than fading.

Navigation itself is left alone: no click is prevented and no history entry is written, because the full-size screenshot viewers open through :target, which follows a real fragment navigation and not a pushState.

One more thing was in the way, and it was the site's own stylesheet. scroll-behavior: smooth is set on html, so a fragment jump is an animation rather than an event. Over the height of a screen or two that animation is the thing that tells a reader they have gone down the page rather than sideways. Over twenty thousand pixels, which is what the front page's later sections are from the top, it is a second and a half of the whole page rushing past, and measured it was a second and a half during which the reader had not arrived anywhere. A hop longer than two screens now goes straight there, and the outline says where "there" is; a shorter one still glides.

tools/site-tests/anchors.test.js checks what can be read without a browser: that the offset comes from the variable rather than a constant, that it applies to every id, that the script measures the header, that every image declares its size, and that every page carrying the sticky header loads the script. The last of those found four more pages on its first run.

Measured again afterwards, at 1280px and at 390px: of 436 fragment links, 411 land with the heading exactly 14px below the header, within 50ms. The other 25 cannot land anywhere else. Twenty open the full-size screenshot viewers, which are fixed overlays that cover the page rather than places in it, and five name something at the very bottom of a page, where the document has no more room to scroll. The edition that runs no scripts has the same five.

F-190: a record length multiplied by eight, on a target where that wraps

Part 2.5 of the brief, which is integer width, and the reason this project builds i686 and armv7 in CI: everything in that section bites only on 32-bit.

The obfuscated store pads every record to a bucket so that its size says as little as possible about its contents. The bucket is chosen from the record's length multiplied by the worst-case expansion any of the reversible encodings can produce, which is eight. A record over about 512 MiB wraps that multiplication on a 32-bit target, and bucket_for would then size the buffer from a number smaller than the data it has to hold.

What actually happened next is worth stating, because it is not a breach. The line after it compares the encoded body against the padded length and refuses when the body is larger, so a wrapped size was caught and reported as an encryption failure rather than producing a short buffer. In a debug build the multiplication would have panicked first. So the outcome was a confusing error, not a corrupt record, and the check that saved it was written for a different reason: to catch a new encoding that expands further than the allowance.

That is still the wrong shape. This project's stated pattern for a length that came from a caller is checked or saturating arithmetic, and F-79 was this same class on the recorder. The multiplication and the addition are checked now, and bucket_for's own rounding saturates rather than wrapping to zero.

The store holds settings and measurements, a few kilobytes each, so nothing reachable today goes near the boundary. The test does the arithmetic directly rather than allocating half a gigabyte to prove it.

F-189: a bare program name is a search, and two of them were left

Part 2.1 of the round's brief: every place this workspace starts a process, checked against the rule the project already states, which is that a program is named by absolute path and never left to PATH to find.

The rule is enforced by a test in veilvoice-gui's reduced-motion probe, which reads its own source and fails on any spawn that does not go through the helper beside it. That test only reads one file in one crate, which is the gap: two other crates spawn processes and neither had anything watching them.

veilvoice-accel lists the machine's graphics adapters. Windows names PowerShell under %SystemRoot%, macOS names /usr/sbin/system_profiler, and Linux said lspci. Anything earlier on PATH under that name is what would have run, in a process that is already the desktop application.

veilvoice-verify's which asks where a program lives, and asked by spawning where on Windows and sh elsewhere, both bare. Asking PATH where something on PATH lives, by way of a program found on PATH, is a circle with an obvious way into it. The command-line half of this project already names where.exe absolutely; the verifier did not.

Both are named absolutely now, and veilvoice-accel has the same read-your-own-source test the interface crate has, proved by putting the bare name back and watching it fail.

Deliberately left alone. The reproducible-build path spawns rustc, cargo and git by bare name, and that is correct: it is checking a build against the toolchain the person running it has, so resolving through their PATH is the whole point. Naming those absolutely would break the thing they are for.

F-188: one launch in 65,536 drew a reseed range with no width in it

The de-identifier re-draws its scrambling seed on an interval, and that interval is itself drawn at launch from a range the program also draws. The reason is written in the function: a fixed ratchet period is a fixed thing to observe, and every copy of VeilVoice having the same one makes the period a property of the program rather than of the session.

The range came from two sixteen-bit draws, sorted. Two equal draws give a range of no width, which is a fixed interval: exactly the thing the drawing exists to prevent. checked accepts it, because it only refuses a range that is backwards. A front end showing it would show two identical numbers and nothing would look wrong.

How it surfaced, and why that is the interesting part. A verification run failed on a_drawn_range_is_always_valid, a test that had passed eleven times that day. Sixty-four draws a run against a one in 65,536 event is about one run in a thousand. Two hundred repeats of the test afterwards did not reproduce it, which is what a one in a thousand event looks like when you go looking for it.

The test was right and the code was wrong. That is worth saying plainly: the assertion encoded an invariant the function did not actually provide, and it had been sitting there being true by luck.

The fix, and why it is a separate function now. Waiting for a one in 65,536 event is not a test. The arithmetic that turns two draws into a range is now reseed_range_from, which takes the draws as arguments, so the collision can be handed to it directly at every value it can take rather than waited for. A collision is widened to one frame, centred on the draw so that a collision near the slow end stays near the slow end, and clamped to the available room. One frame because that is the resolution the engine has: reseed_range_is_finer_than_a_frame already exists to report a range that collapses onto a single interval, and a drawn range should never be one.

Removing the widening again makes the new test fail with draws 0 and 0 gave 21.3 to 21.3, which is the check that it checks anything.

F-187: a walker that reads past the end, and bland metadata that is not quite bland

The same tool over the two readers that parse somebody else's file. veilvoice-meta's WAV chunk walker and image stripper: 58 mutants, 53 caught, one that does not compile, and four the suite accepted. All four were in the walker, and they divide in a way worth naming.

One was a guard against reading past the end. An odd-sized chunk is followed by a pad byte, and the walker copies it after checking there is one; moving that < to a <= reaches one byte beyond the region it is allowed to read. Every existing test built its chunks with a helper that always pads, so no odd-sized chunk ever ended a file and the guard was never the thing that stopped anything. A truncated recording is exactly that shape.

The other three were in the bland metadata this crate writes in place of what it strips, and that is the part worth explaining. Stripping metadata is itself a signal: a file with no tags at all says something about how it was made. So a plausible, bland LIST/INFO chunk goes in instead, which only works if what goes in looks like what any other tool would write. One line word-aligns those entries, and three mutations of it turned the alignment off, inverted it, or applied it to two lengths in every however many. Nothing objected, because nothing had ever read back what that function writes. A generator whose output is never parsed is the encodings' gap in a second place.

All four are fixed and the re-run is 58 mutants, 57 caught, one unviable, nothing surviving. Each of the four was planted by hand afterwards to confirm the new tests fail on it. The weekly workflow covers this crate alongside the cryptography now.

The guard, which is roadmap item 151. .github/workflows/mutants.yml runs the campaign weekly over all eight cryptography files and can be dispatched before a release. Its verdict is not a number. tools/mutants/check.py compares the run against the committed list: a survivor that is not argued for fails the build and is named, as a diff somebody reads, and a survivor that has been killed fails it too, because the argument above that line would then be claiming something untrue about the code. A list that over-claims is how a real survivor hides in it.

Half an hour over eight files does not fit a per-push job, so what runs on every push is the half that does not need a campaign: --lint checks that every entry still points at a real file and a real line, since those move whenever the code above them moves. Both halves were proved able to fail before they were trusted.

F-185: fifteen gigabytes of build output inside the repository, that no tool could see

tools/measured/generate.py runs the test suite to count the tests, because a count of #[test] is a different number from the one a reader gets. It ran it with the build redirected:

environment.setdefault(
    "CARGO_TARGET_DIR",
    str(Path(os.environ.get("LOCALAPPDATA", ROOT)) / "veilvoice" / "target"),
)

On Windows that is deliberate and correct: the build goes under %LOCALAPPDATA%, away from a repository that may sit in a synced folder or deep enough to meet the path limit. On every other machine LOCALAPPDATA does not exist, the fallback is the repository root, and the build goes to <repo>/veilvoice/target: a second complete copy of the workspace build, inside the repository, rebuilt from nothing every time the measured numbers were regenerated.

Nothing could report it, and the reason is a rule that is correct. .gitignore carries a bare target/, which git matches at any depth. That is the right rule, since a build directory is certainly not source. It also means this one never appeared in git status, never appeared in a diff, was never cleaned, and could only be found by walking the tree with du.

What found it was several steps removed from it. A mutation-testing campaign died copying the tree, reporting no space on the device. The disk was not the finding; the campaign was not the finding; the fifteen gigabytes were. A defect whose only symptom is an unrelated tool failing for an unrelated reason is the kind this document exists to write down, because the next person to meet the symptom will debug the symptom.

And it came back. The directory was deleted mid-round, and the next regeneration recreated it, at 7.2 GB, because deleting output without fixing the line that writes it is not a fix. That is the whole argument for the guard rather than the sweep.

The fix and the guard. The redirect is now conditional on actually being on Windows; everywhere else the tool says nothing and cargo uses the target/ at the root, which is where every ignore rule and every other tool already expects it. tools/audit/build_output.py walks the tree for Cargo's own CACHEDIR.TAG signature, rather than for directories named target, and fails naming the path and its size if one turns up anywhere but the root and fuzz/. It is in tools/verify.py and in CI, and it was proved able to fail by planting a tagged directory under a crate and watching it report the path and the size.

The checks this round ran, and where each one lives now

The inventory is not a finding. It is here because the next round's reader needs to know what ran, and a check that found nothing is still worth listing: "we looked and there was nothing" is a result, and it is not the same as not having looked.

CheckRan beforeIn a workflowWhat it found
cargo audityesyesnothing new; one exception retired because the crate left the graph
cargo deny, licences and sourcesnonowevery licence compatible, every crate from crates.io
the two advisory policies agreenonowthey did; they cannot drift now
cargo clippy, workspace, all targetsyesyesclean
cargo fmtyesyesclean
forbid(unsafe_code) in every crateyesyespresent in all twenty-seven
warn(missing_docs) in every crateyesyespresent in every library; the two main.rs files do not carry it, which is right
the seven coverage-guided fuzz targetsby handnow, weeklyten minutes each, no crash, no hang, no out-of-memory
the deterministic parser campaignsyesyesclean
mutation testingnonow, weeklyfifteen survivors over four files (F-180), then eighty-one over four more (F-186); the baseline answered for only the second four (F-227)
a public item reached by nothingnonowfive; F-182
build output outside the root target/nonowone, at fifteen gigabytes, rebuilt on every run; F-185
a state file written one place and read anotherby handnownothing
the per-program guides against the user guideby handnownothing
the questions page against docs/FAQ.mdby handnownothing
the app-manifest generator's self-testby handnownothing
the local site serves every pageby handnownothing
the offline claim, on the built command lineyesyesno import, no syscall, works in an empty network namespace; each guard proved able to fail
Mirinonorun, first time: five crates, nothing found; veilvoice-crypto could not be run at all until F-183, and Argon2id and the transform stay out of reach
a reproducible-build rebuildyes, per releaseyes, per releasenot re-run here

Two checks stay out of a workflow on purpose and the reason is worth writing down rather than rediscovering. tools/shots/sessions.py --check runs the release binaries, and one of its sessions checks a published release, which needs the archive, the sums and the signature downloaded into one folder. tools/measured/generate.py --check runs the whole test suite a second time in order to count it. Both are in tools/verify.py, which is what somebody runs before a release; neither belongs in a job that should finish in minutes.

Miri, and what it could and could not say

V5 in the brief, and the first time this project has run it. cargo +nightly miri test interprets the program and reports undefined behaviour. In a workspace where every crate forbids unsafe, anything it found would belong to a dependency, which makes a hit here a supply-chain finding rather than a code one.

veilvoice-check, which holds the release-signature and contents-manifest readers: 29 tests, no failures, no undefined behaviour, in 273 seconds.

veilvoice-meta, which holds the WAV chunk walker and the metadata stripper: 20 of 24 passed with no undefined behaviour reported anywhere. The four that did not pass all fail the same way and it is worth being precise about what that does and does not mean. Each is a test that writes tags into a real file through lofty, and each fails with Malformed("failed to write to file"). Miri reported no undefined behaviour and no unsupported operation: what failed is a write through Miri's filesystem shim, and the same four tests pass in seconds outside it. So this is the interpreter's environment rather than a defect, and it is recorded as a limit on the coverage rather than as a result: the tag writer is the one part of this crate Miri did not get to examine.

veilvoice-conversation, which holds the speaker plan and the edit operations: 78 tests, no failures, no undefined behaviour, in 31 seconds, with its 24 render tests skipped.

Those render tests are why the first attempt produced nothing for this crate. They process audio, which under an interpreter is slow enough that one of them held a combined run for a quarter of an hour while the two crates behind it waited. Passing several crates to one Miri run lets the slowest test in the first of them decide what the rest get, which is an arrangement mistake rather than a result: run per crate, and a crate that takes thirty seconds takes thirty seconds. Written down here because the next person to reach for this tool will otherwise arrange it the same way.

veilvoice-core, the engine: 33 tests, no failures, no undefined behaviour, in 743 seconds, with 52 of its 85 skipped.

The 52 are every test that drives the short-time Fourier transform over more than a frame or two, and skipping them is not a preference. The first attempt ran the whole crate and reached two tests in twenty-nine minutes, with the second still running; at that rate the crate is days rather than hours, and the run was stopped rather than left to expire against its own timeout. What did run is the window function, the voice table, the reseed range arithmetic and the transform's own three tests, which exercise realfft and rustfft at a 512-point transform and are the part of this crate where a dependency's unsafe actually lives. So the interpreter did reach the numerical library; what it did not reach is the engine driven over seconds of audio, and there is no reason to expect those paths to differ in kind from the ones that passed.

The general shape, after four crates. Miri costs roughly a thousand times the wall clock, so what it can cover is decided by which tests process how much data rather than by which code is worth checking. Every crate here has been approached the same way: run it alone, and where a subset has to be skipped, say which subset and why, rather than reporting a clean run over an unnamed fraction of it.

veilvoice-crypto, once it could be run at all: 72 of 240 tests, no failures, no undefined behaviour, over the reversible encodings, the AEAD, the protected-memory type, the chunked tape, the shredder and the private-file helper. It could not be run at all before this round, which is F-183 above.

The honest summary is that Miri has been run here for the first time, it has found nothing anywhere, and it has now covered five crates in part or in whole. What it cannot reach is now a short and specific list rather than an open question: the conversation crate's render path, the engine driven over more than a frame or two, and everything in the cryptography that runs Argon2id. All three are the same cause, which is that an interpreter costs about a thousand times the wall clock and these are the parts written to be expensive.

What was read and found correct

Not findings, and listed because "we looked and there was nothing" is a result.

The three ways into a video now have to agree. ffmpeg::command builds the invocation that veilvoice conversation prints for a person to run by hand, under a line saying VeilVoice never runs it for them; concat_command builds the one the window actually runs; black_command builds the one that puts a recording behind a black frame. All three were correct and all three worked their encoder settings out separately, with only the frame size compared across two of them. If the printed one and the run one ever drifted, the instruction this program gives would stop being the thing this program does, and no build would say so. They agree today and now have to: a test compares the codec, the quality, the scale filter, the pixel format and the audio settings across them, and asserts that the black-frame command has no scale filter, which is right because there is nothing to scale.

ffmpeg::command is not the dead public item the brief expected. It was the candidate on the list, on the ground that its only caller prints it. Printing it is the feature: the command line's whole posture there is to hand somebody a command and not run it. Reached, argued, and staying.

Ten hand-typed numbers, checked but not written, now written. The functional line count, the test count, the crate count and the suite count are stated in the README, on the front page and in one row of this document: ten claims in all, and the website suite already compared every one of them against the tree. The comparison was right and it is untouched. The typing was the problem. Every change to any Rust file moves the line count, so a commit that touched code and not those ten places failed a check that had nothing to do with what the commit was about, four times in this round alone. That is a measurement rather than an impression, which is why it was worth acting on rather than noting.

tools/measured/generate.py already took all four numbers to write docs/MEASURED.md. It now writes the ten sentences from them as well, using the same regular expressions the suite checks with, so the tool that writes a claim and the suite that checks it cannot disagree about where the claim is. A pattern that stops matching fails the tool rather than letting it write nine of ten and report success. The one row it touches in this document is the "Test suite" row of the state-of-the-tree table, which describes now rather than recording the past, and the pattern is anchored to that row so no older number further up the page is within its reach. Roadmap item 152, done.

The reproducible-build machinery, read end to end. Cargo.lock is committed, every cargo build in the release workflow passes --locked, the toolchain is pinned in rust-toolchain.toml, SOURCE_DATE_EPOCH comes from the commit date, and --remap-path-prefix maps both the source tree and the Cargo home. The rebuild is not a thing this project intends to do: it already happens on every release, for every published binary, on every target including the three BSDs, building twice in different directories and comparing byte for byte. The verdict per target goes into the release notes.

It warns rather than failing the release, and that is a decision written into the top of the workflow rather than an oversight: a target that is not reproducible still ships and says which one it was, on the ground that quietly claiming reproducibility would be worse than publishing the gap. Read again this round and it still reads as the right call.

What is not established, and is the one thing that workflow cannot establish about itself, is a rebuild of a published release from its tag on a different machine, compared against the artefacts actually on the release page. That needs disk this round did not have and stays open.

The fuzz project's lock file. Ignored rather than committed, which is the opposite of the workspace's choice and had no sentence beside it in a file where every other entry has one. The reason is real and is now written where the rule is: nothing in fuzz/ is released, so nothing there needs rebuilding years later, and a campaign pinned to last year's dependencies is a campaign that cannot find a defect introduced since. The weekly workflow passes no --locked to match, and Dependabot watches the manifest so a version range that stops making sense is still raised.

The private-file helper. Creates owner-only with create_new, so a symlink planted at the path is refused rather than followed, and replaces by renaming inside the same directory, so the replacement is atomic and cannot cross a filesystem. Both already tested, including the symlink case.

The panic sites in the parsers. The WAV chunk walker's two expect("4 bytes") calls are on slices whose length the line above them fixed at four; the FFT's are on buffers the constructor sized; the conversation editor's are on a turn inserted two lines earlier. Each is an invariant established locally rather than assumed, which is the standard this document sets for them.

F-179: the window drew at twenty frames a second, by construction

Reported as "8 to 40 fps instead of a consistent 60". The cause was not a slow frame anywhere; it was three numbers.

soundbar.rs carried FRAMES_PER_SECOND = 20 and asked for its next frame fifty milliseconds out. The busy path in app.rs asked for one every fifty milliseconds. The veiling path asked for one every sixteen. Each was argued where it was written, and the arguments were about cost rather than about the display: twenty a second is indistinguishable from thirty for that animation in isolation, and it is plainly distinguishable from a hundred and forty-four when it is the only thing moving on a display running at that.

The sixteen is the one worth naming, because it looks correct. A display at sixty shows a frame every 16.67 ms, so a request for a repaint "no later than sixteen milliseconds from now" wakes the loop just before the frame it wanted and then misses it, and the drawing lands on the next one. That is thirty a second, asked for as sixty, which is the shape of every number in the report.

What replaces them is not a bigger constant. crate::pace asks for the next frame now while anything is animating, and vsync spaces it: a window that waits for the display cannot draw faster than the display shows, so this costs one frame per refresh and no more, at whatever rate the screen runs. The same fact is what makes the display measurable, which matters because neither egui 0.32 nor eframe exposes a refresh rate: the interval between frames paced this way is the display's, and the median of the last thirty-two is a figure one slow frame cannot move. Settings offers the fixed rates for somebody who wants fewer frames on a battery, and that is the only thing a timer is used for now.

Idle is unchanged and deliberately so: a window with nothing moving requests no frame and draws none, which is the finding from the twenty-third round and is the reason this file could say what an idle window costs.

Measured rather than assumed, both ways: the module's tests drive the measurement at 60, 120, 144, 165 and 240 and get each back; the soundbar's test asserts that on the display's rate it puts no timer in the way and that on a chosen rate it asks for that interval; a late frame is counted as late and an idle gap is not; and two seconds of late frames raises the notice while one, which is what every launch costs, does not.

F-180: the tests never stood at the edge of any boundary in the crypto

Mutation testing, run over aead.rs, kdf.rs, container.rs and hybrid.rs: 127 mutants, 91 caught, 21 that do not compile, and 15 that survived the whole suite. A surviving mutant is a change to the code that no test objects to, which is a claim about the tests rather than about the code, and the fifteen fell into three groups.

Five were boundaries in the container header's parser. bytes.len() < HEADER_LEN became <=, bytes.len() < end became <= and became ==, and both mode guards, the one that refuses a password header claiming an encapsulation and the one that refuses a hybrid header of the wrong length, became false. Every one of those is reachable from a file somebody sends you. The suite tested what the parser accepts and threw a great deal of rubbish at it, including a fuzzing campaign; what it never did was hand it a buffer of exactly the length in question. The test added here does each of the five from both sides: a header of exactly HEADER_LEN parses, one byte short is truncated, a hybrid header whose encapsulation is exactly as long as it says parses and one byte short does not, a password header claiming an encapsulation is refused, and a hybrid header is refused at one less, one more, and zero.

Four were the ceilings on what a header may ask the key derivation for. > became >= and == on the memory ceiling and on the unattended ceiling, and || became && in the parallelism test, which would have let a header declaring zero lanes through on its own. These are the numbers that stop a .veil file from choosing how much memory this program allocates, and they had been tested at values that are obviously fine and obviously absurd and never at the number itself. Each ceiling now accepts its own value and refuses one past it, and zero is refused on its own.

Three were the randomness adapter, and this is the one worth being blunt about. next_u32 and next_u64 were replaced by functions returning a constant, and try_fill_bytes by one returning Ok(()) without touching the buffer, and all three passed. Nothing in the crate checked that its only source of randomness emits anything. A key drawn from a buffer those mutants left untouched is a key an attacker already knows, and the suite would have been green. It is not a statistical test that was missing, which getrandom is not this crate's to assess; it is the question of whether bytes arrive at all. They are asked for now, in both forms, and two draws are required to differ.

Two of the fifteen are one line, and that line cannot be killed. Both are mutations of p_cost > MAX_P_COST, which can never be the only test that fires: Argon2 wants eight KiB per lane, checked enforces that in widened arithmetic, and the memory ceiling is four gibibytes, so nothing above MAX_M_COST / 8 reaches that line whatever it says. The guard stays, because it is the bound Argon2 documents and because the argument it belongs to is about the order these checks run in: a later change that moved the lane relation would leave this as the only thing between a header and an overflow. What changes is the doc comment, which now says all of that, so the next reader who mutates it and sees nothing happen finds the answer where they are standing rather than concluding the line is dead.

The campaign was run again against the new tests, which is the part that makes this a result rather than an intention: 127 mutants, 104 caught, 21 unviable, 2 missed, and both of those are the two mutations of that one unkillable line. Thirteen of the fifteen are dead; the other two are documented where they live.

The campaign is not yet part of any build. It takes twenty-three minutes over four files and there are twenty-seven crates; making it a check is the work, and roadmap item 151 carries it.

A fragment jump moves the page without moving anything the eye can follow, so js/teleport.js outlines where the reader landed and lets the outline fade. That is the cue, it is two seconds long, and it works.

It is drawn when a landing is cued, and the only thing that cued one was hashchange. That covers arriving at a page with a fragment already in the address bar, and it covers the first click on a link into the page, because that click writes a hash where there was none or a different one.

It does not cover a click on a link naming the fragment that is already there. No new hash is written, so the browser fires no hashchange, so fromHash never runs and nothing is marked. The link works. The page scrolls, because the stylesheet's scroll-margin-top is doing that and it is not involved. The reader simply gets no cue.

On a page with a contents list that is most of the clicks after the first one: pick an entry, read it, come back to the top, pick the same entry again, and the second time nothing is outlined. The wiki pages are contents lists, the roadmap is one, and the releases page is one.

The click handler already existed, for a different reason. It settles the target's reveal transition before the browser scrolls, so that an element held 18px below where it belongs is not measured there. It had the target element in hand and did not mark it, which is why this was easy to miss by reading: the code that needed to run was one line from code that was already running.

The handler now cues that one case itself, on the frame after the browser has done its own scrolling so the two are not correcting the same pixels at once. It is the only case it takes, because every other click writes a hash and cueing it here as well would draw the highlight twice. A click with a modifier held is excluded: that opens a new tab or saves the target, and this page is not going anywhere.

Four checks in tools/site-tests/anchors.test.js, each negative-tested by breaking the thing it watches. The cue is three things in three files and any one of them missing makes it silently absent, so the chain is checked end to end: .landed and its keyframes in the stylesheet, the call that applies the class, the click handler's treatment of the case above, and both files loaded by every page.

That last one is checked for every page rather than for pages that carry the sticky header, which is what the existing coverage check did. The header is why the offset exists. It is not why the cue exists, and a page without one would have lost the cue without failing anything. All 372 scripted pages carry both halves; the two pages of the no-JavaScript edition carry neither, which is what that edition is.

This is the same shape as F-176, F-177, F-197, F-199 and F-204, and it is the fifth entry to say so: a thing that works in the case somebody tested and does nothing in a case nobody did, with no failure anywhere to say which case you are in.

F-204: four of the six rules that let a file back in had never let anything back in

.gitignore excludes broadly and then names the exceptions, which is the right shape: a private key or a captured recording is the kind of thing that must not be committed by accident, and a blanket rule with named exceptions fails safe. The file had six exceptions. Two of them worked.

!*.pub nothing tracked here is a .pub file !*public*.asc never the deciding rule for any tracked path !assets/ # comment never matched a path at all !/public-key.asc never the deciding rule for any tracked path

The interesting one is the third. It read:

!assets/** # curated demo/test assets are opted back in explicitly

.gitignore has no inline comments. A # begins a comment only at the start of a line; anywhere else it is an ordinary character in the pattern. So that rule asks git to un-ignore a path named assets/** # curated demo/test assets are opted back in explicitly, and no such path will ever exist. git check-ignore -v assets/demo.wav answers .gitignore:14:*.wav: the blanket rule six lines above it, which the exception was written to hold back.

The other three are dead for a duller reason and the same one: nothing tracked matches them. !*public*.asc and !**/public-key.asc are two guesses at what !website/assets/veilvoice-signing-key.asc already does exactly, and the second could not have worked for the folder it appears to be aimed at, because a negation cannot reach inside an excluded directory and /gpg_secrets/ is excluded as a directory. !*.pub allows back a kind of file this repository does not hold: a .pub is a recipient's hybrid public key, made by whoever is to be sent a recording, and it belongs where they keep their keys.

None of this had a consequence, and that is the finding. Every one of those rules reads as protection. Somebody adding a demo recording under assets/ would have read line 18, believed the file was covered, run git add -A, and been told nothing: an excluded path is skipped in silence and a file git has never heard of is absent from git status in both directions. That is exactly what did happen one commit earlier with a test fixture under *.asc, and the crate that read it stopped compiling on every clone but the one that wrote it.

A rule that matches nothing is indistinguishable from a rule that works. The four were removed rather than repaired, because repairing a negation for a file that does not exist produces another untested rule. An exception is written when there is a file that needs it, at which point the file exercises it. The comment above each surviving rule now says that.

tools/audit/fixtures.py is the regression test, and it is a guard rather than a unit test because the thing being asserted is a property of the repository rather than of a function. Three checks: every path an include_str! or include_bytes! names is tracked, not merely present; no pattern line in any .gitignore carries a #, with a failure message that says what git actually does with one; and every negation is the deciding rule for at least one tracked file, which is asked of git with check-ignore --no-index, since without that flag git answers "tracked, so not ignored" and never says which rule it would have used. It runs in tools/verify.py as well as in CI, because the point is to catch this before a push rather than after one, and it carries a --self-test that builds four small repositories each broken in one of these ways and fails if it does not catch them, plus a sound one it must report clean.

It is the only check in this repository that asks git rather than the disk. Every other one reads the working tree, and the working tree is not what anybody else gets.

F-203: nothing compared the key that signs a release against the key its binaries accept

The release notes tell a reader to compare a fingerprint by eye, and say plainly that a "Good signature" from some other key proves nothing. That is correct advice and it was the only thing checking it.

The same forty characters exist in five places: the notes, README.md, docs/INSTALL.md, the website, and FINGERPRINT in crates/veilvoice-verify/src/check/mod.rs, which is the value compiled into every shipped binary and the one a verifier refuses to accept anything else over. The first four are compared against each other by the site suite. The fifth was compared against nothing.

So a release signed by a key other than the compiled-in one would have published normally. Every automated check would have passed: the signature is valid, the hash list is correct, the archives reproduce. And veilvoice verify, run by a reader on the release that contains it, would have rejected it, because the key it carries is not the key it was built to trust. A release its own verifier refuses is the worst shape this failure can take, since the program that says no is the program the reader downloaded to ask.

This has not happened. It could not be noticed if it did, until somebody tried to verify a download and was told the signing key was wrong, which reads to that person as evidence of exactly the attack the fingerprint exists to detect.

tools/release/notes.py now takes the fingerprint GnuPG reports for the key that actually signed the archives, compares it against the constant read out of the verifier's source, and fails the release if they differ. That is the right moment for it: after the signing, before the publish, in the step that was already writing the fingerprint into the notes for a person to compare.

The finding is the missing comparison rather than any divergence, and it is the same shape as F-176, F-177, F-197 and F-199: five copies of a value, four of them checked against each other, and the fifth, the one that decides, in nobody's list. F-71 made the point about two hand-typed numbers only ever compared with each other. This is the same argument with the copy that matters left out of the circle entirely.

F-202: a preference cleared on the first frame of every run that had no lock

Roadmap item 86 gave the window a setting for sealing every recording with the app-lock passphrase, and the window kept that setting in step with the live mode in one line of update:

self.preferences .set_seal_with_app_lock(self.security.seals_with_app_lock());

Once per frame, and set_ is a no-op when nothing changed, so it costs a comparison and almost never a write. That was the whole of the reasoning and it is right about cost and wrong about meaning.

seals_with_app_lock reports the mode the Security tab is in. Without an app lock there is nothing to seal with, so the mode is never the app-lock one, so the line wrote false into the preference. Not because anybody had turned it off. Because the thing it names did not exist yet.

The other half is prefer_app_lock_sealing, which read the preference once at startup and applied it only if on && self.store.is_some(). With no lock it dropped the answer on the floor. There was no path that offered it again when a lock appeared later.

Together those two make a preference that cannot survive not being usable yet. Set an app lock at any point after startup, which is exactly what the first-run cards ask somebody to do in the second card, and the preference had already been cleared several hundred frames earlier, before the first card was drawn. The reader got a locked window and unencrypted recordings and nothing anywhere said why.

Nothing could have noticed, and that is the part worth keeping. The preference defaulted to off, and the only way to turn it on was the Security tab, which is only reachable when a lock already exists. So in every state a test or a person could construct, the store was already there and both halves behaved. The defect was unreachable from the defaults and would have become reachable the moment the defaults changed, which is what roadmap item 170 does. A bug that is dormant because of a default is not a bug that is absent; it is one waiting for the default to move, and it moves without anybody looking at the code that depended on it.

The fix is in two places, because the defect is. Security now remembers the preference when it cannot apply it, and applies it the moment a lock appears, which is the one other point at which that becomes possible: poll is where a completed lock operation installs the store, so the offer is made there. Once, not every frame, so somebody who sets a lock and then deliberately chooses passphrase sealing is not overruled on the next lock event. And the window asks before it mirrors: app_lock_sealing_is_waiting is true while a preference is held with nowhere to go, and the write-back is skipped while it is.

Four regression tests, one of which drives the real thing end to end: prefer the mode with no lock, set a lock on a worker, and assert that sealing turned on and that the preference is no longer being held. The unguarded write-back is held by reading the source of update, because what is being asserted is that the write is not reachable in that state, and a rendered frame would only prove it for that frame.

F-199: the workflow that publishes the wiki had never once succeeded

wiki.yml was added to put the generated pages where a reader looks. It has run seven times, on every push to main that touched wiki/, and all seven failed, each after about six seconds, each at the same step and for the same reason:

Cloning into 'wiki-repo'... remote: Repository not found. fatal: repository 'https://github.com/tilas01/veilvoice.wiki.git/' not found

The workflow's own error message was right about the cause, which is the unusual part of this one. A GitHub wiki is a git repository at <repo>.wiki.git, and enabling the wiki in Settings does not create it; it is created when a first page is saved. has_wiki is true on this repository and has been, so the Wiki tab exists, the setting looks done, and the repository behind it does not exist. The workflow said so in eleven lines of prose, to a log nobody opened for four days.

So the whole wiki has never been published. Everything written up under roadmap item 178 about the wiki being the manual, everything tools/docs/wiki.py generates, and the two hundred and two pages behind it: none of it has ever been on the wiki. The website's copy is what readers have had, and the website is generated by a different tool in a different workflow, which is why nothing looked broken from outside.

Two things are wrong here and only one of them is the wiki repository.

The first is the missing repository, and it needs a person: this is a one-time action in the web interface, and it is now listed with the other maintainer-only steps. The workflow tries to create the repository itself before asking, by initialising one locally and pushing it, because a workflow that can fix itself should, and the attempt costs a second and loses nothing if GitHub refuses it.

The second is the one worth the finding number. wiki.yml ran on main only. So a wiki change pushed to dev, which is every wiki change, since dev is where development happens, got no result from this workflow at all, and dev's commit list showed no cross beside it. A branch with no result reads exactly like a branch that passed. The failure was therefore invisible twice over: on dev because nothing ran, and on main because the only pushes to main are release merges, which is the one moment nobody is looking for a documentation workflow to be red.

That is the fourth time this shape is written up here. F-176 and F-177 were checks that existed and were in no workflow; F-197 was CI itself wired to the branch development had left; this is a workflow wired to the branch nobody pushes to. The property they share is that the absence of a result is not a result, and no amount of reading a commit list will show it.

wiki.yml is two jobs now. check runs on both branches and on pull requests, and asserts what publish needs before publish is the thing that discovers it: the pages match their sources, every [[link]] resolves, and every file in wiki/ is something a wiki can hold. publish still runs from main alone, which was always right and is not what was broken: what is published describes what has been released.

The third of those checks is new, and it is the one this would have caught going the other way. unpublishable() refuses a subdirectory, a file that is not Markdown, and a page name outside what a flat wiki can hold. The publish step is cp wiki/*.md wiki-repo/, so a page written into a subdirectory by a generator deriving a name from a source path would have been silently left behind, on main, after a release merge.

F-198: the wiki's own contents page decided what a document was by counting lines

tools/docs/wiki.py writes the wiki's landing page and its sidebar from one list of documents. It grouped them by slicing that list:

for source, title, blurb in DOCUMENTS[:5]: # "Start here" ... for source, title, blurb in DOCUMENTS[5:11]: # "Checking it, building it" ... for source, title, blurb in DOCUMENTS[11:]: # "Working on it"

So which heading a page appeared under was a fact about where its line sat in a Python file, and the two failure modes are both silent.

Insert a document in the middle and every document after it moves down one, which pushes the last of one group into the next. Nothing fails: the page is still generated, still linked and still correct, and it is simply filed under the wrong heading. Append one past the end of the last slice and it is not dropped from the wiki, which would at least be visible; it is dropped from the landing page and the sidebar, which are the only two things that link to it. The page exists, on the wiki and on the website both, and nothing reaches it. dead_links() does not report it, because a page nobody links to is not a link to a page that does not exist; those are opposite problems and this repository only had a guard for the second.

Found while writing the three pages roadmap item 178 asked for, which is the first time in this file's life that a document has been added to the middle of that list rather than the end.

The group is named now, as a key on each row against a GROUPS table, so a document's heading is written down beside it rather than inferred from arithmetic. That removes the first failure. The second needed a guard of its own, because a document can now name a group that does not exist and be dropped just as quietly, so misgrouped() fails a build on one, and on a group with nothing in it.

And the coverage question underneath it got the same treatment. The claim roadmap item 178 makes is that the wiki is the whole manual, and that claim rested entirely on somebody remembering to add each new document to this list. unpublished() now walks docs/ and the repository root and fails on any document that is in neither DOCUMENTS nor NOT_A_WIKI_PAGE, the latter carrying the reason each deliberate omission is not a gap. Three documents are in it: two written into the wiki by tools/docs/guides.py under their own names, and docs/MEASURED.md, which is a table other pages quote rather than a page to read.

This is the same shape as F-176, F-177 and F-197, and that is now four times: the absence of a check is invisible where the failure of one is loud. A missing page and a page nobody wrote look identical from outside.

The thirty-second round: the guard that failed and the two behind it

The round after 0.1.20, covering the decoy vaults and everything they touched, and beginning where it should have begun the round before: with the build.

The build was red, and had been for five commits. The thirty-first round's largest finding was that eleven drift checks did not fail a build, and ten were wired into CI to fix it. What that round did not do was look at whether the build those checks were joining was passing. It was not, and one of the checks it was not passing is the one that runs before them.

F-160: the offline proof that never ran once

The offline-runtime job added in the thirty-first round proves the claim on the front page four ways: the dependency graph, the source, the built binary's imports, and the running program with no network at all.

The third of those runs the command line inside an empty network namespace:

unshare -rn target/release/veilvoice anonymise ...

unshare -r asks for a user namespace, so that an ordinary account may then make a network one. Ubuntu 24.04, which is what ubuntu-latest is, refuses unprivileged user namespaces by default through kernel.apparmor_restrict_unprivileged_userns. The step failed on its first run and on every run since:

unshare: write failed /proc/self/uid_map: Operation not permitted

The two steps after it were skipped, because a failed step ends the job. So the syscall trace never ran and the window's socket families were never read. For the whole of 0.1.20 the job existed, looked like it proved four things, and proved one: the import check, which is the step before the failure.

That is worse than the state it replaced. A missing guard is a known gap. A guard that fails for a reason unrelated to what it guards, in a job whose name says the program opens no network socket, is a gap that reads as coverage.

The namespace is now obtained whichever way the kernel allows: unprivileged through a user namespace where that is permitted, and otherwise made as root with the program dropped straight back to the ordinary account inside it, so what is measured is still VeilVoice as somebody runs it. If neither works the step fails and says the claim is unproved, rather than passing quietly.

F-161: a shell quote that would have failed the step behind it

The last line of the fourth step is

echo "... the window's sockets are local""

with one quotation mark too many, which is a syntax error bash reports before running any of it. It has never been executed, because F-160 skipped the step, and it would have failed the job the first time it was.

Two defects in one job, the second hidden by the first, in the job that carries the repository's strongest claim.

F-162: the desktop tests opened a real file dialog

test / macos-latest and test / windows-latest were both red, and for one cause. Two tests in the Studio drive the export path, which asks dialog for a folder, and dialog::Pending::start opened a platform panel.

On macOS rfd does not decline politely: it panics.

You are running RFD in NonWindowed environment, it is impossible to spawn dialog from thread different than main in this env.

On Windows every test passed and then the process died at exit with STATUS_ACCESS_VIOLATION, which is the dialog thread outliving the harness.

Both are the same mistake: opening a window's file panel where there is no window. start now asks whether a panel can be shown at all, and where it cannot the ask reads as open and then as cancelled, which is the truth about what happened. That covers a real case as well as the test one: on macOS the panel must come from the main thread, and asking from any other thread used to panic, which would take down the application in the middle of somebody's recording rather than declining to open a dialog.

F-163: a test that assumed the machine had no sound card

Windows stayed red after F-162, with the same signature and a different cause, and the step added to name it did its job on the first run.

test studio::tests::locking_the_window_stops_a_take_that_is_playing ...

and then nothing: the process died inside it. Serially the crash follows the test that causes it, which is what that step is for.

The test asserted that locking the window releases whatever is playing. It did so by playing a recording and then locking, under a comment that said in as many words:

No audio device in a test runner, so play will not start a stream.

On the Windows runner there is one. A stream started, and tearing it down took the whole test binary with it: every test in the crate passed and the process exited with an access violation anyway, which reads as a defect in VeilVoice and is a defect in the test.

A test whose correctness depends on the machine not having a sound card is not testing the thing it names. What it actually names is one line in close, and that is what it asserts now, by reading close's own source, the same way its sibling asserts the first line of play. No device is opened by any test in this crate.

The decoys that a folder listing would have identified

Not a defect in shipped behaviour, and recorded because the design decision is easy to get wrong and this nearly did.

veilvoice-crypto::studio shipped make_decoy and Shape::of in 0.1.20: documented, tested, and reached by nothing. Wiring them to a button is what roadmap item 134 asks for. Wiring only that would have produced decoys worth nothing.

The vault lived at a fixed name, studio, in the folder the decoys would have been made in. A decoy is indistinguishable from the real vault by size, by file count and by contents; it is told from it instantly by reading the name of the directory it is in. Every vault is now a directory with an opaque name and the real one is found by trying each until one opens, which only both passphrases do. A vault written the old way moves down into a directory of its own on the next unlock, index last, so an interrupted move finishes on the following one rather than splitting the vault in two.

One measurable tell survived the first implementation and is worth recording because a test caught it rather than a reading: a decoy's index was eighteen bytes smaller than the real one, because a real vault's recordings are called something and a decoy's were called nothing. The sizes were the one thing this was meant to make identical. The names are now padded to the length the real index measured, and the test builds decoys and adds up the real files.

The guard for F-163 and F-165, rather than a third one at a time

Both were fixed individually and neither fix stops the next one. So there is now a guard: no test in the desktop crate may open a device, a dialog or a window. It walks that crate's source, takes the test code, and fails naming any line that reaches devices::list, devices::open, playback::start, LiveSession::start, LiveSession::start_recording or rfd::FileDialog.

One deliberate exception, by test name rather than by call site: app::tests::building_the_app_with_real_device_enumeration_does_not_panic enumerates once, on purpose, because that is how the window's device pickers are known to survive a machine with no sound card. F-165 was a second test borrowing that, so the exception cannot be borrowed.

A needle is not a call. dialog.rs's own guard searches its crate's source for rfd::FileDialog, and the string it searches for is not an opened dialog, so a match inside a string literal is skipped. That was the guard's own first false positive and it is worth recording, because the check that caught it was running the guard rather than reading it.

Proved both ways, as this repository requires of a guard: it passes on the tree as it stands, and planting one line that enumerates a device in a Studio test makes it fail naming the file, the line and the test.

It is scoped to the desktop crate rather than the workspace. That binary is the one linking cpal, rfd, egui and winit together and it is where both crashes happened; a narrower guard that is exactly right is worth more than a wide one that has to be argued with. Widen it the day another binary does the same thing.

F-165: a second enumerator, and Windows red again

The same shape as F-163, a day later, in a test written to check that the new setup card could not fail.

Roadmap item 135's card counts the recording and playback devices this machine has. The test asked for that count twice and asserted the two agreed, on the ground that a build machine with no sound card, a sandbox that refuses to enumerate and an ordinary desktop all have to reach the card without an error.

The desktop crate's test binary already enumerates real devices, once, on purpose, in app::tests::building_the_app_with_real_device_enumeration_does_not_panic. A second enumerator running beside it on another thread killed the process on Windows with an access violation, exactly as F-163 did, and the two runs either side of the change say so: green without the test, red with it, crashing at the point in the listing where it sits.

The test is gone rather than made conditional. It was checking that a call the machine answers does not fail, which is a fact about the machine; what is worth checking is that the card asks the machine rather than carrying a number, and a test reads the card's own source for that.

One enumeration, in one place, is now written where the counting function is, so the next person to reach for a second one reads why there is not one.

F-164: a second recorder nobody drained

Found by re-reading the change that introduced it, before it was pushed, which is the only reason it is a paragraph rather than a bug report.

Roadmap item 131 gives the Studio two recorders: one for the veiled voice and one for the microphone. The panel that runs while a take is recording drained the first, every frame, because a recorder nobody drains fills its ring and starts dropping samples. It did not drain the second.

So keeping the microphone would have produced a take that was quietly short, which is the exact failure dropped exists to report, arrived at by not asking the question anywhere.

The same code read the clock from the veiled recorder alone. Keeping only the microphone leaves no veiled recorder at all, so the counter would have sat at 0:00 for the whole of a recording that was running, which reads as nothing being recorded.

Both come from the same missing idea, which is that there are now two of these and everything done to one has to be done to both. The panel drains every recorder that exists and takes the clock from whichever is running, and a test reads the panel's source for that.

F-166: the WAV header said 48 kHz because that is what was asked for

Found while reading the recording path for roadmap item 130, in code that has been in both front ends since the recorder existed.

veilvoice_audio::record::start takes the rate to write into the WAV header, and its own documentation says what that rate has to be:

sample_rate is the rate the device actually agreed to, not the one that was asked for: it is written into the WAV header, and a header that disagrees with the samples plays back at the wrong speed and the wrong pitch, which on a de-identified recording would be a second voice change nobody chose.

Both callers passed the other one. The command line's record and the Studio each built their recorder from config.sample_rate, which is the rate the engine was configured for and is 48 000 by default, and then handed the sinks to LiveSession::start_recording, whose first act is to overwrite that field with the rate the output device agreed to. On any machine whose output runs at 44 100, which is a great many of them, the take was written with a 48 000 header over 44 100 samples: about nine per cent fast and a semitone and a half sharp, on top of the veiling.

Nothing could have caught it by reading a call site, because each call site was self-consistent. The rate came from a field that was true when it was read and false a function call later.

So the caller no longer has a rate to get wrong. start_recording takes a Keeping, which is two named booleans saying which sides of the engine to keep, and returns a Kept, which is the recorders for them, built after the device has answered. Roadmap item 131's property survives the change and is the reason Keeping has named fields rather than being a pair of positional flags: no caller reaches a recording of somebody's real voice without writing the word plain next to it.

This is the shape roadmap item 126 asks for. A guard reading the two call sites would have worked and would have had to keep working; a signature with no rate in it cannot be got wrong by a third caller written next year.

Three dependencies nothing referred to

Roadmap item 126 asks for a dependency to be justified where it is declared. Writing that sentence for each of the 122 entries in this tree's manifests is what found the three that had no sentence to write.

veilvoice-verify declares sha2 and never mentions it: it hashes through veilvoice_check::sha256_file, which is the right way round, and the direct dependency is left over from when it did not. Its tests declare hex and never call it. The crypto crate's tests declare hex-literal and never call it.

Not a defect in what any of them does, which is why this has no finding number. What it is, is three crates compiled by every build on every platform, in a project whose whole argument about dependencies is that each one is code it ships and does not review. Nothing noticed, because a manifest full of bare names reads as a list rather than as a set of decisions.

They are gone, and the check that made them visible is now in CI: tools/audit/dependencies.py fails on a dependency with no reason beside it. It cannot tell whether a dependency is used, which is cargo udeps and needs nightly. What it can do is force somebody to answer the question that made these three obvious.

A second question was not being asked at all, and is now. Saying what a dependency is for does not make anything watch it, and until this pass nothing did: there was no .github/dependabot.yml, so no version update and no alert had ever been raised against this tree. There is one now, covering the workspace, fuzz/ (which is outside the workspace and would otherwise have been missed by an entry on the root) and the actions the workflows run.

The configuration is checked rather than remembered. tools/audit/dependabot.py reads it against the tree and fails on either direction: a manifest no entry covers, or an entry naming a directory that has gone. The first is the one that matters, because a manifest nothing watches is worse than a dependency with a known problem: there is no one looking at it.

The comments said no callback allocates, and nothing checked

The three audio callbacks in this tree each carry a comment saying its buffers are sized once so that the callback never allocates. They are true. They were also the only thing standing between this project and a per-frame allocation on the operating system's audio thread, and a comment is not a guard: F-159 and the two before it were all comments that had stopped being true.

no_audio_callback_allocates_or_blocks finds every closure handed to build_input_stream or build_output_stream, takes its body by matching braces, and fails naming any line that allocates, blocks or prints, with what that costs. try_lock and try_push, the non-blocking forms this code already uses, are matched on the call rather than on the name, so the guard does not object to the thing it is asking for.

Proved both ways, as a guard here has to be: it passes on the tree as it stands, and one planted data.to_vec() in the live input callback makes it fail naming the file, the line and the reason.

Read rather than measured, deliberately. A test that counted real allocations would need a global allocator hook and a running stream, which means a machine with a sound card, which is what F-163 and F-165 were about. This one finds the same mistake on a build machine with no audio at all.

A stream error printed to a console the window does not have

Found while building roadmap item 132, in code as old as the live path.

cpal reports trouble on a stream through an error callback, and the three in this tree were each move |e| eprintln!(...) and nothing else. On the command line that is right: there is a console and somebody watching it. In the desktop application it is not. A release build on Windows declares windows_subsystem = "windows" and has no console attached, which is the same fact F-119 turned on: println! there writes to nothing.

So the one case this feature exists for, a microphone unplugged or swapped in the middle of a call, produced no visible effect of any kind. The meters fell to zero, which is what a person who has stopped talking also looks like, and a take carried on being recorded.

Not given a finding number, because nothing computed a wrong answer: the program did exactly what it was written to do, and what it was written to do was insufficient on a platform it ships for. It is recorded because the shape is worth recognising. A diagnostic that goes to a stream the front end does not have is a diagnostic that does not exist, and this project has now found that twice.

The reports are now kept and shown: LiveStats::interfered counts them, which is Copy and is read every frame beside the meters, and LiveSession::interference returns the last one, which holds a string and is asked for only when the count moves. The device-is-gone case is named separately because it is the one that does not come back on its own. They are still printed, for the command line, where the console exists.

The check that would have compared a buffer with itself

Roadmap item 132 opened by asking for the samples reaching the recorder to be checked against what the engine produced. Reading the path to build that showed there is nothing to check: the veiled sink is written from inside the output callback, from the same scratch_out slice Deidentifier::process has just written into, and the microphone sink from the mono_scratch the downmix has just filled. A comparison would be a slice compared with itself.

The row is corrected rather than the check written. What the row wanted is a property, and the property is now read out of the source: two sinks, two writes, each from the one place in this process where its samples exist, and a third write would be a third copy of somebody's voice.

That is the third roadmap row this cycle whose opening sentence described something the code does not do, after roadmap item 139's video and roadmap item 133's live bars. All three were written before the code they describe.

A check that failed once and would not say why

The recorded-session check failed once, on a machine that had just finished a release build, and passed on the next run and on the twenty-one after it. It has not been reproduced and is not written up here as fixed.

What is written up is why that is unsatisfactory. The failure said:

assets/screenshots/session-anonymise.txt is not what the program prints now.
    Run: tools/shots/sessions.py --record

That is not enough to act on. The transcript holds two values that vary by their nature, the throughput and the randomised roll range, and both are normalised before the comparison, so the honest possibilities were "something in the output changed" and "the normalising missed something", with no way to tell them apart. A failure nobody can explain is a failure that gets re-run until it passes, which is exactly how a real change in a program's output would be dismissed as a flake.

The check now prints the differing lines, diffed on the same normalised text it compares, so the next occurrence explains itself. Proved by planting a changed line in a committed transcript and reading the diff it produced.

The candidate causes were narrowed and none of them held. getrandom failing would print the fixed roll description instead of a range, and would fail every time it happened rather than once; a roll range that quantises onto a single frame still prints as a range and still normalises; the throughput line normalises whatever it says. So this is recorded as an open question with a better instrument attached to it, rather than as a defect that was found.

F-167: two scripts in one release, disagreeing about the reader's machine

This repository publishes two shell scripts for checking a download. veilvoice-check's reproduces the build; veilvoice-gnupg's verifies the signature and the hashes with the reader's own GnuPG. A reader on one machine may run either.

The reproduce script knows four systems and gives each the hash tool it has: sha256sum on Linux, shasum -a 256 on macOS, sha256 on the BSDs, and certutil on Windows. It has a test asserting the BSD script never says sha256sum.

The verification script knew two, Linux and macOS, and every mapping onto it ended in a catch-all that meant Linux. So veilvoice verify --script on FreeBSD, OpenBSD or NetBSD wrote a script telling the reader to run

sha256sum -c SHA256SUMS --ignore-missing

which the same release's other script says is not the tool they have. Two mappings, in two places, both with a catch-all, and the enumeration they were mapping from had a Bsd variant the whole time.

The cause is a copy. Both modules answered "how does this system check a SHA256SUMS" and only one of them was kept current. The copy is gone: System::hash_check_command is public and the verification script asks it, so the two cannot disagree again, and the two catch-all matches are one exhaustive function that will not compile if a system is added to one enumeration and not the other.

The guard that would have caught it is not the one comparing the two functions, which is now a tautology. It is that no flavour's script may contain another system's hash command, which fails on the fall-through and fails loudly when two flavours are pointed at one system. Proved by pointing the BSD flavour at Linux and reading what came out.

What this does not claim. The BSD hash tool is sha256 because this repository already said so, in the reproduce script and its test, and that is a decision made by somebody who could run it. Nothing here was verified on a BSD: this environment has none. What was verified is that two parts of one release now say the same thing, which is a claim about the tree and is exactly what could be checked from here.

F-168: a microphone and an output that never compared their rates

Found while reading the live path to build roadmap item 147, and it is the same shape as F-166 one layer out: two numbers that have to agree, in two places, never compared.

LiveSession::start_recording took input.default_input_config() and output.default_output_config(). It built the engine and the ring between the callbacks from the output's rate, and the input stream from the microphone's. Nothing checked that they were the same number.

On a machine where they are not, and a laptop whose microphone defaults to 44.1 kHz with speakers at 48 kHz is an ordinary machine, the input callback pushes 44 100 samples a second into a ring the output callback empties 48 000 times a second. The ring starves continuously, which the session counts and reports; and the samples that do arrive are played 8.8 per cent fast, so the veiled voice is shifted up about a semitone and a half and stutters.

Two things made it invisible. The starvation counter reads as "this machine is too slow", which is what a person would conclude. And the pitch is supposed to change: this is a voice de-identifier, and a voice that comes out at the wrong pitch is what it is for.

The fix is to agree or to refuse. Nothing in this crate resamples, and adding a resampler to paper over a mismatch would be a quality and latency decision taken to avoid saying something. So the two devices are put on one rate: the one they are already on, or the output's if the microphone will take it, or the microphone's if the output will take it. If neither will move, the session refuses and says both rates and what to do about them, which is the honest end of that road.

The output's rate is preferred rather than the microphone's, deliberately. It is what the person hears through and what anything listening on a virtual cable expects, so moving it is the change more likely to surprise somebody.

The choosing is arithmetic over what the platform reported, in a function of its own, so it is tested without a sound card: five cases, including two microphones that cannot be run together, which is what roadmap item 147 will open. F-163 and F-165 are why nothing here opens a device to answer a question that does not need one.

F-169: the feature nine release jobs turn off, that nothing built

Found by dispatching the 0.1.21 release, which is the worst way this repository has ever found a compile error, and the finding is the reason it was found that way rather than the error itself.

veilvoice-audio has a live feature, on by default and off on nine of the twelve targets a release builds: cpal has no backend for FreeBSD, OpenBSD or NetBSD, cannot be linked into a musl build that must stay static, and has no cross-architecture ALSA to build against on the armv7 and arm64 cross targets. Those nine build -p veilvoice-cli --no-default-features.

Every cargo line in ci.yml takes the default features. Formatting, clippy, clippy again for platform-gated code, the tests, the release build, the 32-bit matrix: all of them, on all three platforms, with live on. So the configuration that nine release jobs use was compiled by nothing between releases.

The defect it hid is three lines long. Roadmap items 122 and 123 added a playback module, gated, and inserted it above record:

 #[cfg(feature = "live")]
 pub mod live;
+#[cfg(feature = "live")]
+pub mod playback;
 pub mod record;

record had carried #[cfg(feature = "live")] since it was written. The new declaration was inserted directly above it and took that attribute for itself, leaving record bare, and an attribute is attached to the item that follows it rather than to the one somebody meant. record uses ringbuf, an optional dependency of the feature, and two Error variants that are themselves gated, so with live off it is four compile errors: two unresolved imports and two missing variants.

Then it sat there. It was pushed on 8 September, four commits and two days before the release that found it, and in between it passed every check this repository has, twice, on three operating systems. The pub use record::{...} line eight lines below kept its own gate, so the crate's public surface was right and only the module body was reachable when it should not have been, which is why nothing reading the API noticed either.

This is the same shape as F-22, where a #[cfg(windows)] attached to the item above the one it was meant for, and the CI step written for that one (clippy on every platform, called out by name) cannot catch this one: it varies the platform and this varies the features. A guard that covers one axis reads as covering the other, which is how a gap survives having been thought about.

The fix is the guard, not the attribute. The attribute is restored in one line. tools/audit/features.py reads the CARGO_ARGS= lines out of release.yml and compiles each selection it finds, and CI runs it beside the release build. Reading the workflow rather than repeating its arguments is what makes a target added to that matrix built here without anybody remembering to add it, and the tool refuses to pass on fewer than two selections, because a workflow rewritten into a shape it cannot read would otherwise report success over an empty list. Proved by putting the missing attribute back and watching it fail naming the cause.

What this does not claim: the nine targets were not run, and this environment has no BSD and no 32-bit ARM. What is established is that the feature selection they build now compiles, checked on every push rather than at a release.

F-170: the tag did not name the commit that was built

Found by reading the release this round published, which is the first time anybody had looked at what the tag actually pointed at.

release.yml ends with softprops/action-gh-release, given a tag_name and nothing else. Creating a release for a tag that does not exist yet makes GitHub create the tag, and with no target_commitish it creates it at the default branch, not at the commit the run compiled.

So both of the last two releases are tagged at a commit they did not build:

  • v0.1.21 was built from the branch this round's work is on. Its tag landed on main, at a tree whose Cargo.toml still says 0.1.20. A reader checking out v0.1.21 gets a source tree that is not version 0.1.21.
  • v0.1.20 was dispatched from main and built 0aa9515b. Thirteen minutes later main moved to 39e4e09a and the tag was created there. The commit it names is, as it happens, the one that carries F-169, so a reader reproducing v0.1.20 on FreeBSD from its tag gets a compile error rather than a binary to compare.

This is the one defect in this repository that goes to the whole of what it claims. Every binary is built twice in different directories and compared byte for byte; the hashes are signed; docs/REPRODUCIBLE_BUILDS.md tells a reader to check out the tag and rebuild. All of that is machinery for one sentence, and the sentence is false when the tag names a different tree. The reader who does the work gets different bytes and correctly concludes the release does not reproduce, which is worse than never having made the claim.

Nothing was tampered with and nothing needs to be: the binaries are what the run built, and the run is public. What was wrong is the pointer.

The fix is target_commitish: ${{ github.sha }}, one line, and tools/audit/publishing.py, which reads the publishing step and fails if it stops naming the commit or names something other than github.sha. Proved by deleting the line and by pointing it at github.ref_name instead, and reading what each said.

The comment above that step already argued that "a tag is a commit somebody chose; a branch moves", and then the step did not say which commit. The reasoning was right and had not reached the configuration under it, which is its own thing to watch for: an argument written beside code is not the same as a guard over it.

F-171: a release published saying it had no release notes

v0.1.21's notes on GitHub read, in full:

No changelog section found for v0.1.21 in CHANGELOG.md.

release.yml reads a release's notes out of CHANGELOG.md by matching ## v<version> as a whole line. The 0.1.21 entry had been written ## 0.1.21 - 2026-09-10, in a shape no other entry in the file uses, so the match failed and seven hundred lines of release notes were dropped.

The workflow then published anyway, with a note saying the notes were missing. That is the defect. A note saying the notes are missing is not a smaller version of the notes; it is a published release whose contents nobody can tell, and docs/CONTRIBUTING.md says a release's notes live in CHANGELOG.md and everything else derives from it. Deriving nothing is a failure and now fails, on the path that publishes; a dry run publishes nothing and is still allowed to report the gap.

Two readers of one file disagreeing is F-167's shape again: tools/site/ releases.py builds the website's releases page from the same headings and tolerates both forms, so every local check passed while the workflow's reader found nothing. The one that mattered was the one nothing ran until a release was cut.

So the question is asked twice, and the cheap one comes first. tools/release/version.py --check now requires CHANGELOG.md to carry a heading the workflow's reader can find for the workspace version, with something under it, and says which heading is there when it is the wrong shape. That runs in CI and in tools/verify.py, before any release is dispatched. The refusal in the workflow stays as the last line of defence, and tools/audit/publishing.py fails if somebody deletes it.

Tested against all three ways to get it wrong: the dated heading that actually shipped, the same heading without the v, and no heading at all.

F-172: a doc comment moved to the wrong function, and the wiki repeated it

The same shape as F-169, in a different syntax, four commits later.

462ca8b3 factored unix_package out of three copies of the same loop. The block documenting the old audacity_offer was left behind, and the next item down inherited it, so detect_gnupg was published as:

The route to Audacity differs per platform, and on Linux per distribution.

with its own sentence, "GnuPG, which is on PATH or is not", stranded in the middle of the block. audacity_offer was left with nothing at all.

A doc comment attaches to the item that follows it. That is the same rule that took record's #[cfg] in F-169, and this is the second time in one release that an insertion has taken a block from the item it belonged to. The rule is not obscure and neither mistake was careless in the moment: both times the new item was written directly above an existing one and the block above it was read as belonging to the file rather than to the next function.

It reached the published wiki, which is the part that makes this worth more than a correction. wiki/File-veilvoice-setup-companions.md listed "the route to Audacity differs per platform" as the description of the function that looks for GnuPG, and listed nothing at all for the one that installs Audacity. Generated documentation cannot tell that a sentence is about the wrong thing; it repeats it faithfully. Every check in this repository passed, because every check compares the generated pages to the source, and the source said this.

The guard reads the file rather than the items, because these are private functions and carry no documentation rustdoc or missing_docs can see. It cannot judge whether a sentence is about the function it sits on, and it does not pretend to: what it catches is the mechanical half, a probe or an offer with nothing on it at all, which is what the losing item always ends up with. Proved by deleting the restored line and reading the failure, which names the function.

What this does not claim. A scan of the tree for the same signature, an undocumented function among documented siblings, returns thirty-five files. Nearly all of them are fmt, default and from, which are trait implementations that conventionally carry no documentation, and the rest are small private helpers that appear never to have had any. None of them was found to be a moved block. The heuristic finds candidates; this one was found by reading, and the honest summary is that the guard now covers the one module where the mistake actually happened rather than the whole tree.

A state location that had to be opted into rather than detected

Roadmap item 136 asks for a copy on a memory stick to keep its settings on the stick. The obvious implementation is to write beside the program when that directory is writable, and it is wrong in a way that is worth recording because it is the shape of several defects already in this document.

An ordinary installation unpacked somewhere writable would silently move its settings, its vaults and its app lock the next time it started. Everything would still be on the disk and the program would be looking in the other place, so the symptom would be an empty vault and a lock that had vanished, which is F-141 and F-143 again from a third cause.

So it is not detected. A folder called veilvoice-data beside the program turns it on and removing that folder turns it off, and both are things a person does deliberately and can see they have done. Neither switch moves anything.

The About tab says which of the two is in force and lists the exact folders in use, because a state location that can change is a state location somebody has to be able to see. The one thing it does not print is the app lock's file names, which veilvoice-crypto::vault derives rather than fixes: what that buys is a search of a disk for a known filename missing, and printing the names in a window hands it straight back to anybody standing behind the reader.

What the mechanical passes found

  • cargo clippy --workspace --all-targets: clean, after two findings in the new code. A .min(u64::MAX) that does nothing, where the intent was to saturate a conversion into usize and the correct spelling is try_from with a fallback: on a 32-bit build the as cast it was written beside would have given the low bits of the count rather than the largest one that fits. And a match on one pattern, which is an if let.
  • The interface-string guard caught three strings whose line continuations had been eaten in the editing, which would have rendered source indentation into the middle of a sentence in the window.
  • The counts: 1602 tests, 60415 functional lines. Both are measured and both are checked against the front page and the README by the site suite.

The thirty-first round: the guards that did not guard

The round before 0.1.20, covering everything the thirtieth round covered and the features added since it: the render settings, the plan corrections, the preview player, the Studio, the Browser and the export. Security and memory safety; the post-quantum surface; correctness; hostile input; dependency risk; optimisation; and documentation coverage.

The largest finding is not a defect in the program. It is that eleven of this repository's own drift checks were advisory. Every one has a --check, every one is run by hand before a release, and none of them failed a build.

docs/CONTRIBUTING.md states the rule they exist to enforce: a fact that appears twice is derived or checked, and "anything that cannot be derived is checked in CI, so drift fails a build rather than being noticed later by a reader". Eleven checks were the second half of that sentence and were not wired to it.

Three of them caught real staleness during this round, which is the only reason the gap was noticed:

  • tools/site/demo.py found the two new tabs with no screenshot and no caption, and would have shipped a walkthrough with a heading over nothing.
  • tools/docs/sources.py found generated source pages behind their source.
  • tools/shots/terminal.py found drawings disagreeing with the text they were drawn from.

Ten are now steps in the assets job. The eleventh, tools/shots/sessions.py, needs a downloaded release to check the verifier transcript against, so it stays a release-time check and this says so rather than leaving it looking forgotten.

F-159: a second, weaker copy of a sanitising rule

Studio::rename, written this round, cleaned a recording's name before storing it: newlines became spaces, so a name could not forge a second entry in the index.

render_index, which is the function that actually writes the index, already did that and also stripped tabs, which is what separates the fields.

So there were two rules for one job and the newer one was weaker. Nothing was exploitable, because the writer runs last and its rule is the strict one. What was wrong is the shape: a reader of rename would conclude the name is clean, and a later change trusting that conclusion would have been wrong. The renamer now stores what it was given and defers to the writer, which is the one place that knows the format. The regression test carries a tab as well as a newline.

What the mechanical passes found

  • cargo audit: 583 dependencies against 1242 advisories, no findings beyond the three argued exceptions in .cargo/audit.toml, each re-read this round and still true.
  • Panics: eleven expect/panic calls in non-test code, every one on a documented invariant. The WAV parser's two are inside a while pos + 8 <= end bound that makes the try_into infallible. The one in the KEM's RNG bridge is the rand_core trait's own contract, where the alternative is returning zeros from something a key is drawn from.
  • Hostile input: no allocation anywhere is sized from a parsed length. Every with_capacity and vec![0; n] takes a constant or an already-materialised length.
  • Timing: every secret comparison goes through subtle::ConstantTimeEq. The one == against exposed key bytes is a test asserting a key does not appear in a buffer.
  • Optimisation: clippy's perf, correctness, suspicious, complexity, redundant_clone and unnecessary_wraps over the workspace. Eleven redundant clones, ten of them in test code where the clone is clarity rather than cost. The one in shipped code is gone. The twenty-five needless_pass_by_value and twelve unnecessary_wraps findings are all deliberate: command handlers share one signature so main can dispatch over them, and the cfg-split add_to_path pair matches a Windows counterpart that genuinely can fail. Churning those would trade a real property for a lint.
  • Documentation: veilvoice-verify was the one crate without #![warn(missing_docs)]. Adding it produced zero warnings, so nothing was undocumented; the lint that keeps it that way simply was not there. It is now. Every other crate already had it, and the workspace builds with no missing-documentation warning anywhere.

Three defects the guards caught in the work of this round

Recorded because they were found by the repository's own tests rather than by reading, which is the outcome those tests exist for:

  • every_tab_has_a_stable_unique_name asserted the tab count was nine, which is a number typed beside a list. The test three lines below it forbids exactly that in the user guide, for exactly this reason. It failed the moment two tabs were added.
  • Five interface strings in the new Studio had their line continuations eaten and would have rendered with source indentation in the middle of a sentence.
  • tools/site/demo.py told a reader to run tools/shots/gui.py, a program that does not exist.

The offline claim, moved from a comment into a machine

The front page says VeilVoice never touches the network. The offline job checked the dependency graph for HTTP clients and pinned the set of socket-capable crates, and then a comment in that job said the source names no network API anywhere. True, and a sentence a reader was asked to believe, sitting inside a job whose whole purpose is to replace belief with a check.

A reader who does not trust the author should not have to trust the author's reading either. There are now four independent layers, each of which a stranger can re-run from the workflow file:

  1. The dependency graph. No HTTP or WebSocket client, and the five socket-capable crates are pinned by name, so a new one fails the job rather than joining a list quietly. Unchanged from before.
  2. The source. std::net, TcpStream, TcpListener, UdpSocket, SocketAddr, to_socket_addrs and getaddrinfo appear nowhere in crates/. The two files excepted are tests which forbid those very words. This is the comment, made executable.
  3. The built binary. veilvoice imports no network function at all. socketpair is the only thing that looks like one, and it is not: it makes a connected pair of AF_UNIX descriptors inside this process, takes no address, and cannot carry a byte off the machine.
  4. The running program. The command line de-identifies a recording inside an empty network namespace, with no interfaces and not even loopback, and strace records zero network syscalls across three invocations.

The window is claimed separately, because it is a different program and the honest statement about it is different. It talks to the display server and the desktop portal, and those are sockets. Traced under Xvfb it opens exactly two, both AF_UNIX, and asks for no internet socket at any point: AF_INET and AF_INET6 appear nowhere in the trace. That is the precise claim, and it is checked rather than asserted.

Each guard was tested against a case that should fail it. The source check catches an injected TcpStream; the syscall counter registers 146 network calls from curl. A guard that has never failed is a guard nobody has tested.

The cryptography, reviewed end to end

Every mechanism, and every place it is used.

  • Password hashing. Argon2id at 256 MiB, three passes, four lanes. Well above current OWASP guidance. Parameters read from a .veil header are bounded before use, and the bounds are argued in kdf.rs in terms of what they cost a person waiting versus what they cost an attacker.
  • The AEAD. XChaCha20-Poly1305, chosen over RFC 8439's 96-bit nonce so that nonces can be drawn at random with no practical collision risk. Every one of the four seal sites draws a fresh nonce from the OS CSPRNG; there is no code path that reuses one.
  • What is authenticated. The entire container header is the AEAD's associated data, so the Argon2 parameters, the salt, the nonce and the version cannot be edited without the open failing. A downgrade of the KDF cost is not available to an attacker holding the file.
  • The hybrid KEM. X25519 and ML-KEM-768. Both shared secrets are the HKDF input keying material, and the full transcript is the salt: the ephemeral X25519 public key, the ML-KEM ciphertext and the recipient's static public key. That binding is what stops an attacker who can replace one half of the exchange from influencing the derived key. Every field is fixed length, so the concatenation cannot be read two ways. Both raw secrets are zeroized after derivation, including the ML-KEM one, whose crate does not do it.
  • Domain separation. Ten distinct strings, all under a veilvoice/ namespace, so no two derivations of different purposes can collide. The studio vault additionally binds the length of its first secret, because there the two halves are variable and ("ab","c") would otherwise key the same vault as ("a","bc").
  • Constant time. Every comparison of secret material goes through subtle::ConstantTimeEq, including Secret's own equality. The single == against exposed key bytes is a test asserting a key does not appear in a buffer.
  • Memory. Secret allocates page-aligned, calls mlock/VirtualLock, reports rather than assumes success, zeroizes on drop, and wipes the buffer it was constructed from. No key material anywhere in the workspace lives in a plain Vec or array.
  • Randomness. One source, getrandom, everywhere. The RngCore bridge the KEM crates require panics on failure because the trait has no error return, and the alternative is handing predictable bytes to a key derivation. That is now written where the panic is, rather than left for a reader to work out.
  • Nothing home-rolled. No MD5, SHA-1, RC4, DES, ECB or CBC anywhere. No hardcoded key or password. The thirty-one storage encodings in weave.rs are obfuscation and say so in their own first paragraph: *"This adds no cryptographic strength."*

No finding. The construction is the one the literature recommends, the parameters are above guidance rather than at it, and the places where a shortcut would be tempting are the places with the longest comments explaining why it was not taken.

Verdict

Nothing found this round changes what VeilVoice is worth against an adversary. The one code finding is a shape problem in a week-old function, fixed before it had a chance to matter. The finding that will pay for itself is the eleventh: a check nobody runs is a check that does not exist, and eleven of them are now run by a machine that does not forget.

The thirtieth round: the full sweep, and what a repository forgets

The round the roadmap calls roadmap item 127: no part of this repository is signed off until every part of it has been. Security, memory safety and the post-quantum surface; correctness and QA over every crate; reproducibility of the build and of every generated artefact; the documentation, the website, the packaging and the scripts; and the optimisation pass, because bloat that nobody measured is a claim nobody checked.

Ten defects, and eight of them are the same defect. One is a real weakening of the Studio's central guarantee. One is a renderer that has been quietly flattening numbered lists since it was written. The other eight are a repository saying things that used to be true: a binary that no longer ships, counts that no longer match, a version that is no longer current, generated pages for a file that no longer exists. None of them is a bug in the ordinary sense. All of them would have been read by somebody as a statement of fact.

That is why the standing rule now lives in docs/CONTRIBUTING.md rather than in this document: a change is not finished until everything that describes it has changed with it, a fact appearing twice is derived or checked rather than repeated, and the only exception is a record of the past, which is CHANGELOG.md and this file and nothing else.

What the sweep found nothing in. All 27 workspace crates and the fuzz harnesses carry #![forbid(unsafe_code)], and the tree contains no unsafe block. There is no TODO, FIXME, XXX or dbg! anywhere in the crate sources. Outside test modules the tree holds nine expect calls and no unwrap, and each was read: the two FFT calls in stft.rs cannot fail because every buffer is sized once at construction, the two try_into calls in the RIFF walker are guarded by pos + 8 <= end <= bytes.len() before they run, and Tape::push pushes a chunk immediately above the last_mut it then unwraps. No production code creates a temporary file; every tempfile in the tree is a test. The 32-bit cast lints were read one by one, and the two that matter, shred.rs narrowing a file length and lock.rs converting a clock, are both already clamped in the wider type with the past defect that caused it named in a comment beside them.

Optimisation. Re-run rather than assumed from the twenty-ninth round. chain::process and Recorder::drain still allocate nothing. The release profile is still at its limit. The duplicate dependency versions are still mostly the window toolkit's, and rand is still pinned at 0.8 on purpose: the modulation stream comes from rand_chacha and changing it risks changing the bytes every recording is veiled with, which this pass forbids. The one thing this round did find is F-152, and it is a hundred and fifty-four GPU layers rather than a line of Rust.

F-149 -- a test that could not be compiled on a target this project ships

veilvoice-audio/src/record.rs. The recorder's boundary test asserted that thirteen hours of 48 kHz 16-bit mono exceeds what a WAV can address:

let per_second = 48_000 2; assert!(13 3600 * per_second > WAV_MAX_DATA);

Thirteen hours is 4,492,800,000 bytes. A 32-bit usize stops at 4,294,967,295, and because the multiplication is constant the compiler does not wait for the test to run: arithmetic_overflow is deny-by-default, so veilvoice-audio failed to build at all on i686-unknown-linux-gnu, which is precisely the job that exists to catch 32-bit arithmetic. CI had been red on every commit since the recorder was written.

The number is a property of the WAV format rather than of the machine reading it, so it is now computed in u64 and WAV_MAX_DATA is widened to compare against it, rather than the constant being narrowed to fit the machine, which is how the original defect this test guards against would be reintroduced inside the test itself. Nothing in the recorder changed: the guard already worked on 32-bit, because WAV_MAX_DATA is u32::MAX - 36 and no tape can be longer than the address space.

F-150 -- three lists named a binary that no release publishes

veilvoice-verify/src/builder.rs, veilvoice-verify/src/extracted.rs and veilvoice-setup/src/install.rs. A release stopped shipping a veilvoice-verify executable at 0.1.18, when the verifier became a library inside veilvoice and the desktop application. Three separate lists went on naming it:

  • builder::SHIPPED, which hashes what a build produced, so every reproducible-build report since 0.1.18 has carried a name in absent that no release publishes, which reads as a build that failed to produce something.
  • extracted::PROGRAMS, which checks the folder somebody unzipped.
  • the installer's own list, which looked beside the running binary for a third file that can only be a stale copy from an older install.

The reproducible-build scripts for Unix and Windows looped over it too, and tools/release/check-windows-icons.py looked for its resource section.

The lists are now read from the job that publishes the binaries. .github/workflows/release.yml sets BINARIES twice, once for the targets where the window cannot be built and once for the rest, and the test takes the union: a binary added or removed there fails on the same commit rather than being noticed a release later by somebody reading a report.

F-151 -- the front page told a reader to run it, and so did a recording

website/index.html, assets/screenshots/session-verify.txt, veilvoice-verify/src/fetch.rs and five other places. The same change as F-150, in the half a reader actually sees.

The front page said the verifier "ships in every archive and is a single small program with no installer" and told somebody to put it in their download folder and run it. The download-failure message printed veilvoice-verify file <ARCHIVE> --sums SHA256SUMS --sig SHA256SUMS.asc, which is a command that does not exist. And the recorded terminal session replayed on the front page opened with the prompt $ veilvoice-verify auto . while tools/shots/sessions.py, the recorder that produced it, had already been updated to veilvoice verify auto .: the transcript and its own generator had quietly parted company, and nothing compared them.

A test now reads the repository the way a reader does. veilvoice-verify followed by a flag or a subcommand, or with a path in front of it, is an instruction to run something; the crate name on its own is not. This file, CHANGELOG.md and the release notes generated from it are exempt by name and with the reason stated: they are records of what happened, and editing a record to match the present is how a project loses the ability to say when it changed.

F-152 -- 146 permanent GPU layers for a picture that had stopped moving

assets/roadmap.svg, via tools/site/roadmap.py. Reported as the roadmap film looking choppy. The film was not the problem, and measuring it first is the only reason the real cause was found.

Measured through Chromium's animation timeline, the scrolling list holds a steady 16.7ms frame and a constant 0.70px step, composited, with no dropped frames. It keeps that on a 390x844 viewport at three times the device pixel ratio with the main thread throttled to a sixth of speed: a screencast of what the reader actually sees shows a new frame every 16.7ms throughout.

The page it sits on was the problem. Every roadmap item square in the still picture beside it carries a transform-and-opacity reveal, and the reveal was declared animation-fill-mode: both. A filling animation never finishes as far as the compositor is concerned, and a transform animation earns its element a layer, so all 146 squares held one for as long as the page was open. Chromium's layer tree reported 162 composited layers, and the film was sharing a compositor with every one of them.

forwards was never needed: the reveal ends at opacity:1;transform:none, which is the square's own state, so holding it changes nothing on screen and costs a texture each. backwards keeps the half that matters, the state before the animation starts, so a delayed square does not flash at full size first.

162 layers to 8. tools/site-tests/images.test.js now fails on both or forwards in that animation, with the reasoning, so the next person to reach for a fill mode finds out why this one is what it is.

F-153 -- four counts had drifted, and the README was watched by nothing

README.md, website/index.html and this file. The README said 1,215 tests and 17 website suites; the tree measures 1389 and 18. The front page and this file said 1324 and 17. This file's own verdict said 145 defects across twenty-seven rounds while the document writes up 148 across twenty-nine, and the README repeated the 145.

This is F-71 again, in the one document it had never covered. The check written after F-71 compares the front page and this file against docs/MEASURED.md, which is generated by running the tests and reading Cargo.toml, so neither number is typed by anybody. The README was not in that check, and it is the document most readers actually open.

It is now, along with the functional line count added in the same pass. Four numbers rather than three, in three documents rather than two.

F-154 -- deleting a source file left seven pages describing it

docs/source/, website/reference/source/, assets/sources/ and wiki/. website/js/demo.js was deleted when the demonstration moved onto the page. tools/docs/sources.py was not re-run, so seven generated files stayed in the tree: a Markdown page, a website page, two drawings, two copies of those drawings and a wiki page, all describing a file that is gone.

The generator's --check says "no longer produced" for exactly this, and it is run by tools/verify.py and not by CI. Found by running the full sweep by hand, which is the argument for the sweep.

F-155 -- the Studio decrypted a recording into ordinary heap memory

veilvoice-crypto/src/studio.rs. The one defect this round that is a weakening rather than a staleness.

Studio::load returns a Secret, and its documentation says the vault exists so that a recording "is never anywhere unprotected". It called unseal, which calls aead::open, which asks the chacha20poly1305 crate for the plaintext and gets back a plain Vec<u8>. The whole recording was decrypted into ordinary pageable heap, and only then copied into a Secret and the vector wiped.

Between those two moments the entire recording sat in memory the kernel is free to write to swap. For a passphrase that window is small. For a recording it is the whole recording, for as long as it takes to allocate and copy several megabytes, in the one place in this project whose entire purpose is that this does not happen.

Every existing test passed, and they could not have failed: the bytes were right, the wrong key still opened nothing, and nothing readable was left on disk. The defect was in where the right bytes had been on the way, which no round trip can see.

aead::open_secret now decrypts in place inside a buffer that is a Secret from the moment it is allocated, so it is page-locked where the operating system allows and wiped on drop, and there is nothing to copy afterwards because there is nowhere else the plaintext has been. A failed tag check drops the buffer, so partially decrypted bytes are wiped rather than returned. open is kept for the callers whose plaintext is small and immediately parsed, where a Secret around four bytes of header would be theatre; the vault's index still goes that way and the audio does not.

The regression test reads the source, because "and it never went anywhere else on the way" is not a property a round trip can express.

Two callers were looked at and deliberately left on the Vec path, so that this is a decision rather than an omission. hoard.rs decrypts VeilVoice's own records, which are settings, measurements and an integrity list rather than a recording, and hands them straight to a decoder that allocates again; making that path protected end to end means changing the decoder too, which is a larger change than a release audit should carry. container.rs decrypts a .veil file for veilvoice decrypt, whose entire purpose is to write the plaintext to a file the person asked for, so protecting the buffer on the way there protects it for the length of one function and no longer. Both are worth doing and neither is what F-155 was: the Studio is the one place that claimed the plaintext never touched unprotected memory.

F-156 -- the sentence introducing the example named the previous release

docs/INSTALL.md. Four lines above a block that reads V=v0.1.18, the sentence introducing it said "Replace v0.1.17 and the archive name with the release and build you want". Somebody following the prose literally fetches a release that is not the current one.

tools/release/version.py exists precisely to stop this and checks eleven places, including the V= line in that very block. It watched the command and not the instruction above it. The sentence is now in the list, and breaking it deliberately makes the tool exit non-zero, which is how that was confirmed rather than assumed.

F-157 -- the documentation renderer silently flattened every numbered list

tools/docs/generate.py. doc_html renders headings, paragraphs, fenced code and lists, and it read - and * and nothing else. A line beginning 1. was not a list item to it, so it fell through to the paragraph accumulator and was joined to its neighbours with a space.

Every numbered list written anywhere this renderer reaches came out as one run-on paragraph with digits scattered through it: 28 lines of doc comment across the crates and four in docs/FAQ.md, on every generated page, for as long as the renderer has existed.

It is worse than an unrendered list. A reader cannot tell the author meant steps in an order, and the two worst-affected passages are the two where the order is the meaning. chain.rs describes what veiling does to a frame as five ordered steps, in the file that performs the irreversible transform. The questions page describes what verifying a download actually checks as four steps, each only worth anything if the one above it held, on the site whose argument is that a reader should not have to take anybody's word for anything.

Ordered lists now render as <ol>, and the number a reader sees is the browser's rather than the digits the author typed, so an item inserted above another does not leave a stale number behind it.

Found while adding the verification tutorial to the releases page, which needed one: a chain of links where each rests on the one before it is not a bulleted list, and writing it as digits produced a paragraph. Nine generated pages gained the list their source had always been written as.

F-158 -- two more places still counting three programs

veilvoice-cli/src/gui.rs, and the third was in ROADMAP.md. The same defect as F-150 and F-151 and found the same way, one round later, which is the argument for the check rather than the sweep.

The doc comment explaining where veilvoice gui looks for the desktop application said "a portable folder holds all three programs together", and the error message somebody sees when it is not found said "veilvoice install puts all three programs where your shell can find them". A release has published two since 0.1.18. The roadmap's summary of what v0.1.15 shipped said "a guide for each of the three programs" as a statement about now rather than about then, and now says which version it is about.

The test added for F-151 catches an instruction to run veilvoice-verify. It cannot catch a count of how many programs there are, which is a different sentence with the same wrong fact behind it. Recorded rather than guarded, because a check for "the number three near the word programs" would fire on three files, three steps and three answers, all of which this project says correctly and often.

The twenty-ninth round: an optimisation pass that found little, and says so

Read for the things that accumulate rather than the things that break: work repeated that could be done once, allocation in paths that run per sample or per frame, dependencies carried for one function, and anything the compiler is doing twice. Recorded including the parts that found nothing, because a pass that reports only what it changed is a pass nobody can tell apart from a pass that looked in the wrong places.

The realtime path does not allocate, and this checked rather than assumed it. chain::process, the function the audio callback runs 187 times a second, holds no vec!, no Vec::, no collect, no format! and no clone. Neither does Recorder::drain, which converts and moves samples on a preallocated scratch buffer and a stack array. That is the single highest-value place an optimisation pass could find something, and it is already clean, which is the result rather than an absence of one.

The release profile is already at its limit. opt-level = 3, lto = "fat", codegen-units = 1, panic = "abort", strip = true. There is no setting left to turn up, and every one of those was chosen rather than defaulted.

Duplicate dependency versions exist and are deliberately left alone. getrandom resolves to three major versions and rand, rand_chacha and rand_core to two each. Most of that is transitive, arriving through the window toolkit, and is not this project's to collapse. The part that is ours is the workspace pinning rand = "0.8" while newer code pulls 0.9.

It stays pinned, and the reason is the rule this pass was run under. The modulation stream is drawn from rand_chacha, and the seed schedule is what decides how far every frame's pitch and formants move. Changing that crate version risks changing the bytes that stream produces, which would change the veiled output of every recording. That is a behavioural change, and this pass allows none: the instruction was speed and size without altering functionality, and a smaller binary that veils differently is not the same program. It is recorded here as a known duplication with a stated reason rather than fixed quietly or left unmentioned.

What this round changed: nothing. No code was altered for performance, because nothing measured wanted altering. Writing a change to have something to show would be the failure this document exists to prevent.

The twenty-eighth round: the post-quantum surface, and two defects in the hour-old recorder

A sweep of the whole tree for the two questions that get asked most about a program like this: is any of the cryptography going to fall to a quantum computer, and does any secret outlive the code that was holding it. Both answers are mostly good, and the sweep is recorded here including the parts that found nothing, because "we looked and there was nothing" is a result.

Post-quantum. X25519 appears in exactly one file, hybrid.rs, and never without ML-KEM-768 beside it. There is no classical-only asymmetric path anywhere in the tree to be found and forgotten. The two shared secrets are mixed with HKDF-SHA256 salted by a transcript of the encapsulation and the recipient's public key rather than concatenated, so breaking the result requires breaking both. Symmetric keys are 256-bit throughout, which is 128-bit against Grover and is the reason no key length needed changing.

The one classical thing, said plainly. Release signatures are OpenPGP, and OpenPGP signatures are not post-quantum. That is a supply-chain signature rather than confidentiality: a quantum adversary could forge a release signature in some future, but cannot use it to read a recording sealed today. It stays classical because there is no post-quantum OpenPGP anybody can verify with the GnuPG they already have, and shipping a signature nobody can check would be worse than shipping one that is honest about its horizon.

Memory safety. All 27 crates carry #![forbid(unsafe_code)] and the tree contains no unsafe block at all, page locking included, which is what the region crate is for. Secrets compare in constant time, Secret renders as Secret(N bytes, redacted) so one cannot reach a log line through {:?}, and the container parser bounds-checks before indexing, uses checked_add for its one offset, constrains its only variable-length field to an exact expected size, and refuses a non-zero reserved byte rather than ignoring it. The memory-cost ceiling that stops a hostile container asking for gigabytes is applied before the derivation rather than after.

Both defects this round are in veilvoice-audio/src/record.rs, which was written an hour earlier. That is not a coincidence and it is the argument for sweeping after writing rather than only before releasing.

F-147 -- a recording past twelve hours would have been silently short

veilvoice-audio/src/record.rs.

A WAV header states its sizes in unsigned 32-bit fields. write_header cast the data length into one with as u32, and computed the RIFF size as 36 + data_len in the same width.

Past u32::MAX bytes of audio, about twelve hours and twenty minutes at 48 kHz 16-bit mono, both wrap. The file that comes out is not corrupt in any way a reader would reject: it opens, it plays, and it is a fraction of its real length, with the rest of the recording sitting in the file unreferenced. On a recording somebody made once and cannot make again, silently short is the worst shape a defect can take.

Fixed by naming the format's own limit as WAV_MAX_DATA and refusing past it with Error::TooLong, which says what the limit is and that the recording should be made in parts. The check runs before the allocation, because a recording that long is already several gigabytes and reserving it in order to reject it would be its own defect. write_header now converts with try_from(..).unwrap_or(u32::MAX) and adds with saturating_add, so if that guard is ever moved or lost the header is obviously wrong rather than plausibly short. Two regression tests: one asserts the limit and brackets it in hours, the other drives write_header with usize::MAX and checks the result saturates.

F-148 -- abandoning a recording left the last block of audio in freed memory

veilvoice-audio/src/record.rs.

The recording itself is a Tape, every chunk of which is a Secret, so it wipes itself. The drain scratch is not: it is an ordinary Vec<f32> holding up to one drain's worth of veiled audio, and it was cleared in wav and in discard and nowhere else.

Every other way out left it full. Ctrl-C during a recording, any error on the way to sealing, or simply dropping the recorder freed that buffer with the samples intact, after which the allocator is free to hand the same memory, contents unchanged, to anything else in the process. The module's own documentation claimed the recording never reaches unprotected memory it does not clean up, and for this buffer that was not true.

Fixed with a Drop implementation. The wipe now lives in one private wipe_scratch, called by wav, by discard and by the destructor, so there is no second copy of the operation to drift; the regression test calls that same function rather than a mirror of it, which is what makes it a test of what the destructor actually runs.

What this does not reach, and the documentation now says so. The lock-free ring between the audio callback and the recorder also holds veiled samples, up to eight seconds of them, and ringbuf exposes no way to clear its backing storage. Those bytes are freed unwiped and this module cannot prevent it. The exposure is veiled audio rather than key material, and it is the same audio the file holds, but it is not nothing, and a module claiming to wipe everything while leaving that would be making a false claim rather than an incomplete one.

The twenty-seventh round: the sentences with a hole in the middle

One class, found by reading every interface string in the tree rather than the one that had just been touched. A Rust string literal split across source lines joins those lines only where each one ends in a backslash. Drop the backslash and the literal still compiles, still passes every test that looks for a word inside it, and renders on screen with the file's own indentation sitting in the middle of the sentence: twenty spaces between "because it" and "needs". Eleven strings across the two programs were in that state, and nothing had failed.

F-146 -- interface text carried its own source indentation into the window

veilvoice-gui/src/security.rs, veilvoice-gui/src/app.rs, veilvoice-gui/src/settings.rs, veilvoice-gui/src/crashlog.rs, veilvoice-cli/src/main.rs, veilvoice-cli/src/install.rs (now veilvoice-setup), veilvoice-crypto/src/lock.rs and veilvoice-video/src/page.rs.

The security tab's own explanation of why VeilVoice cannot set an app lock for you rendered, on screen, as "because it" followed by twenty blank spaces and then "needs a passphrase", the gap being exactly where a line break had been meant and the source indentation that filled it. The crash-report advice, the live-monitor note, the settings caution about what a level meter can and cannot tell you, a PATH refusal, and several assertion messages were the same: a literal written across two or three source lines whose continuation backslashes were absent, so the leading whitespace of the second line became part of the text.

It is a quiet failure by construction. The string is still one string, still contains every word, so a test asserting contains("passphrase") passes and a reader skimming the source sees prose that looks wrapped. Only the rendered output, or a byte-level look at the literal, shows the hole.

Fixed by restoring the continuations and letting each literal reflow to one sentence. The regression test is no_interface_string_has_a_gap_where_a_line_continuation_belongs, in veilvoice-verify's tests: it walks every .rs file outside the test modules, and fails on any source line past rustfmt's own 100-character width that holds three or more spaces between two words. That width is the discriminator. rustfmt reflows code but never the inside of a string literal, so a wide line with an internal gap is one a person joined by hand and did not close; deliberate columns of help text are written short and every one in the tree fits inside 88 characters, so none of them trips it. The test found the last two, in files the first scan had skipped because their literals also contained a \n escape.

The twenty-sixth round: the file with more in it had the weaker permission

Thirteen defects (F-133 to F-145), found by running commands nobody had run here before, looking at what landed on disk, sweeping for the rest of the class rather than waiting to stumble on it, checking the claims this round's own new interface text -- and one of CI's own job names -- were making, and reading a Windows failure on a commit that changed none of the code it broke.

The round is short and the first finding is the most serious thing this audit has recorded in several rounds, so it goes first and without preamble.

F-133 -- everything group mode wrote was readable by every account on the machine

veilvoice-cli/src/conversation.rs, veilvoice-gui/src/group.rs, and veilvoice-gui/src/security.rs.

veilvoice anonymise writes its result readable only by the person who ran it. It does that even on the path where they have explicitly turned encryption off, and the warning printed there says so in as many words: the file will be created readable only by your account.

veilvoice conversation render wrote all four of its outputs 0644. So did the desktop application's group panel. So did the desktop application's file tab whenever somebody turned encryption off in the interface, which is the same decision the command line hardens.

Measured rather than reasoned about:

single speaker, encryption forced off: 600 solo.veiled.wav conversation render, no encryption available: 644 talk.veiled.wav 644 talk.veiled.vtt 644 talk.veiled.srt 644 talk.veiled.html

The direction is what makes this bad. A conversation's output carries strictly more than a single speaker's: the subtitle tracks hold the names somebody typed and the words they typed, in plain text, and the timings say who spoke when and for how long. The files with the most identifying material in them had the weakest protection, and the ones with the least had the strongest.

Nobody decided that. One path called write_owner_only and the other called std::fs::write, and there was nothing that would notice the difference. Three places, in two programs, all of them the same slip.

All of them go through one helper per front end now, and both front ends have a test that renders and asserts the mode on every file produced. Both tests were run against the old code first, and both fail on it, which is the only way to know a regression test regresses anything.

The user-facing text moved with the code rather than after it. The command line's note now says the files are owner-only and what that is worth; the window's warning said "another account on this machine" could read the file, which was true when it was written and would have become a lie the moment this was fixed.

What this is not. A file permission is a much weaker thing than encryption, and both programs say so where they say it. It does not survive a copy, a backup, or anyone who has the disk. The fix closes the gap between the two halves of the program; it does not turn the unencrypted path into a safe one, and nothing here pretends otherwise.

F-136 -- the same slip in three more files, found by sweeping instead of stumbling

veilvoice-workspace/src/lib.rs, veilvoice-conversation/src/plan.rs, veilvoice-gui/src/prefs.rs.

F-133 was found by running one command. That is a bad way to find a class of defect, so after fixing it every fs::write in the tree was listed and each one asked what it holds. Three more were the same mistake:

  • A saved project. The panel that writes these says what they hold: where your files are, who is in the recording, what you called them. It says it to reassure, and the reassurance is about audio and passwords rather than names. A file listing the names of the people in a recording is worth protecting on its own.
  • A saved plan. Every speaker's name and every word typed into it, which is precisely the content of the subtitle tracks a render produces from it. Those are now written owner-only. Writing the copy 0600 and the original 0644 would protect the wrong file.
  • The window's settings. Not merely a theme. It records vault_dir, which names an encrypted volume, and vault_hidden, the answer to whether that volume has a hidden one inside it. Somebody reading that file learns a hidden volume exists, which is the single thing a hidden volume conceals, and learns where to look.

F-137 -- the crash panel promised something the panic message cannot guarantee

veilvoice-gui/src/crashreport.rs.

The panel added earlier in this round lists what a crash report holds, so somebody can decide whether to paste it into a public issue tracker. It said, flatly, that the report contains no file names.

Most of a report is written in advance: the version, the operating system and processor, the time. The panic message is not. It is whatever the panicking code passed, and the hook catches panics from the whole process, VeilVoice's dependencies included.

Checked rather than assumed, and the check is now a test. No panic in any code that reaches a shipped binary formats a path into its message: the test walks every .rs file under crates/, skips tests/, benches/ and examples/ because a panic there is read by whoever ran it, and fails on any expect, panic! or assert! that also mentions display(). It was run against a deliberately planted offender and catches it.

So the claim is true of VeilVoice. It is not something VeilVoice can promise on a decoder's behalf, and the panel was doing exactly that. It now says which four things VeilVoice puts in, names the error message as the one part not written in advance, and points at the button that shows the whole text.

A promise that cannot be kept is worse than an accurate description with a button next to it, and this is a panel whose entire job is helping somebody decide what to publish.

F-138 -- the network guard's name was broader than its check

.github/workflows/ci.yml.

The job is called no network dependencies. It greps the dependency tree for seven HTTP and WebSocket clients, finds none, and prints no networking crates found.

Five socket-capable crates are in the graph and always have been: tokio, mio, socket2, polling and calloop-wayland-source. None of them is documented anywhere in this repository.

Every one arrives through the window rather than through anything VeilVoice does. The file dialog reaches the XDG desktop portal through ashpd and zbus, which speak D-Bus over a Unix socket, and tokio brings its socket primitives whether or not a TCP one is ever opened. polling is calloop's epoll wrapper under winit's Wayland event loop, and calloop-wayland-source is the Wayland display connection, also a Unix socket. The command line links no window and reaches none of them.

Nothing here is a network connection, and VeilVoice's own code names no network API at all: std::net, TcpStream, UdpSocket and SocketAddr appear nowhere under crates/. The README's careful sentence, there is still no HTTP client in the dependency graph, is true.

The defect is the gap between that and what the job's name and success message say. This project's argument is that a reader can check its claims in ten seconds. A reader who does the obvious thing here -- cargo tree | grep -i socket -- finds socket2, and finds a green job called "no network dependencies" next to it, and has no way to tell whether anybody looked.

The job now checks two things. HTTP and WebSocket clients, as before, with no exceptions. And the set of socket-capable crates, pinned rather than allowlisted: a new one arriving fails the job, and so does one of these five disappearing, because either is a change somebody should look at. The five are named in the job with what each is for and what it talks to, and the success message says what was actually checked.

Both halves were run against a tree with smol and reqwest planted in it, and both catch them. The first version of the pinned set was wrong -- it named three of the five, because two were found by reading rather than by running -- and the check caught that too, before it ever reached CI.

F-139 -- a bound that was a round number, and Windows was outside it

veilvoice-core/tests/hostile_audio.rs.

pathological_but_legal_audio_is_handled feeds the engine DC, a square wave, impulses and a Nyquist-rate alternating signal, and asserts the output does not run away. The bound was 4.0.

It failed on Windows, and only Windows, at 4.0456023.

Nothing was wrong with the engine. Measured here over twenty runs each on x86-64 Linux:

DC 1.38 square 2.13 impulses 0.09 alternating 3.58

4.0 is about ten percent above the worst of those. A different libm and different floating-point contraction move the last few percent, and the round number sat inside that margin. The bound was not chosen from a measurement; it was chosen because it is a round number, and nothing recorded which.

That the engine exceeds unity on a Nyquist square wave is expected and is contained where it matters: veilvoice_audio::io clamps to full scale rather than letting a sample wrap, and has had its own test for that for some time.

The bound is 8.0 now, with the measurements written into the test beside it so the next person can see where the number came from. That is more than twice the worst observed and still orders of magnitude below anything that has actually diverged in this engine, where runaway has always meant thousands or a non-finite value -- and the non-finite case is asserted separately on the line above.

Found by CI on a commit that changed none of this. The failure arrived on a push that touched interface text, a test and some documentation, which is what made it obvious the cause was not in the diff. A bound with ten percent of headroom on one platform is a test that will eventually fail on another for reasons that have nothing to do with the code, and the useful version of it says how much room it has and why.

F-140 -- a guard whose scope was narrower than the claim it enforced

.github/workflows/ci.yml.

CI's no RSA private-key operations job accepts RUSTSEC-2023-0071 on one ground: VeilVoice only ever verifies a signature against a public key compiled into it, so there is no secret for a timing oracle to leak. That is an argument about how a crate is used rather than about the crate, so the job enforces it by grepping for secret-key APIs.

It grepped crates/veilvoice-verify/src/.

The signature arithmetic moved into veilvoice-check some releases ago, so the desktop application's verify tab and the command line could share one implementation. The job never followed. Two crates reach pgp; one was checked.

It now derives the crate list from which manifests name pgp, checks every one of them, and fails if that list is ever empty -- a job that checks nothing must not be able to pass. Planting SignedSecretKey in veilvoice-check is caught; before, it was not.

A guard whose scope is narrower than the claim it enforces is worse than no guard, because it is green.

F-141 -- a lock set in the window was written where the window never looked

veilvoice-crypto/src/lock.rs, reported from Windows 11 as "could not write or read app lock file" when setting an app-lock password.

It reproduces on Linux in three lines, so it was never local to that machine, and it is not really a Windows defect at all:

1st set: ok, wrote .../applock.bin reload: NO LOCK FOUND (the one just set is invisible) 2nd set: FAILED -> could not read or write the app-lock file

The desktop application created locks with LockStore::create, which writes the single pre-vault file. It loads them with open_default, which reads the vault. Those are different files. The lock appears to be set, is gone on the next launch because nothing reads the file it went into, and the second attempt fails because create_new refuses -- applock.bin is already there from the first.

So the app lock had never worked from the window in any release that shipped this pairing. The Windows report was where it surfaced, not what caused it.

Three things were wrong and all three are fixed. Creation goes through the vault that loading reads. A pre-vault applock.bin is adopted on open rather than orphaned, because every user who set a lock in 0.1.17 has one under a passphrase they expect to keep working. And "a lock is already set" has its own error: it was reported as AppLockStore, whose message is "could not read or write the app-lock file", which is a refusal dressed in the words of a failure and is half of what made this so confusing to hit.

What the test had to be. A round trip through create and open passes even with the defect present, now that open adopts a pre-vault file -- the adoption papers over exactly the mistake that caused this. So the test that matters pins where creation writes, and was verified by putting the defect back.

create_in and open_in are split out of the _default pair so both halves can be driven against one directory a test owns. That missing half is precisely why this shipped: nothing could test creation and loading against each other.

F-142 -- three files migrated, one read back

veilvoice-gui/src/vault_store.rs. Self-inflicted, in this round's own new code, caught before release by looking for F-141's shape.

The obfuscated store listed three records to move into itself: measured.dat, integrity.manifest and last-crash.txt. Migration reads each plain file, stores it, and shreds the original. Only one of the three is ever read back out of the store.

So the first unlock after somebody set an app lock would have securely erased the integrity baseline veilvoice guard compares against and the crash log the next launch offers to report, with nothing reading either back. Both are still read by their plain paths, and the manifest is read from the command line, which has no unlocked session and therefore no key at all.

records::ALL is one entry now, and the reason the other two are not in it is written down rather than left looking like an oversight: moving the manifest in properly means prompting for the app-lock passphrase on every veilvoice guard run, which is a different feature with a different argument.

The finding that matters is not the list. It is that the same shape appeared twice in one round -- two spellings of where something lives, both correct alone, nothing comparing them -- and the second one would have destroyed data silently.

F-143 -- an empty APPDATA put the lock file in the working directory

veilvoice-crypto/src/lock.rs. Found by auditing the function F-141 was reported against, for the class F-141 belonged to.

default_path read three environment variables and filtered exactly one of them for emptiness. var_os returns Some("") for a variable set to nothing, and PathBuf::from("") joined with anything is a relative path:

HOME="" -> .config/veilvoice/applock.bin APPDATA="" -> veilvoice\applock.bin

Either scatters the lock into whatever directory the program was started in, and then silently fails to find it on the next launch from anywhere else. The same disappearing lock as F-141, from an unrelated cause -- and this function's own documentation already said it exists to prevent exactly that.

XDG_CONFIG_HOME was filtered for precisely this reason. The other two were not. An environment with an empty APPDATA is not exotic: services, stripped sandboxes and some installer contexts all produce one.

The path building is a pure function now, taking the platform and the three variables, so every branch is tested from any machine. That is the more useful half of the fix: the Windows answer is the one that went wrong, and until now it could not be checked anywhere except on Windows.

F-144 -- the verification instructions told you to download v0.1.9

docs/INSTALL.md.

The worked example a nervous user copies to check their download said

V=v0.1.9

while the workspace said 0.1.17. Eight releases stale, naming a real old tarball rather than an obvious placeholder, so following the instructions verbatim downloads and verifies the wrong release perfectly.

The surrounding prose does say "replace this with the release you want". That is exactly the sentence somebody in a hurry skips, and it is not much of a defence for a page whose entire job is to be followed literally.

tools/release/version.py already checks that every copy of the version agrees, across READMEs, packaging manifests and the roadmap. It did not cover this file. Five patterns in docs/INSTALL.md are on that list now, and putting the stale version back is caught.

F-145 -- the documented policy file did not parse

docs/USER_GUIDE.md, in this round's own new documentation.

The policy section written for 0.1.18 showed a file in the shape a configuration file looks like it should be:

note = Newsroom standard require = minimum-intensity 3

Three things wrong in six lines. The format wants two spaces rather than an equals sign, VEILPOLICY1 on the first line, and an intensity from 0 to 100 rather than 1 to 5. A reader following it would have had their policy rejected three times over, with no way to diagnose any of it from what they had been given.

Caught by running the parser against the example before committing it, which took one command and is the only reason it is a finding rather than a bug report.

The example is now extracted from the guide by a test and parsed, and a second test checks that every requirement the guide's table names is one the parser accepts. Restoring the = is caught with the parser's own error message.

A file format described in prose beside a parser that disagrees is a documentation defect with a working reproduction available at all times. There was no reason for this class to survive as long as it did.

A detector for the class, and what it cannot do

tools/audit/state_paths.py, in tools/verify.py.

F-141 and F-142 are one shape: two spellings of where something lives. So the sweep is now a check rather than a memory. It reads every crate, collects each state filename that more than one crate builds a path to, and fails when they are built different ways.

Its own first run reported integrity.manifest as built two ways, because it read line by line and rustfmt had wrapped one of the two across four lines. Both build it identically. It reads whole functions now, and the false positive is recorded in its docstring: a detector whose first finding is its own formatting is a detector nobody keeps.

What it cannot do is stated beside it. It reads text, so it sees spellings rather than behaviour: derivations that differ textually but agree at runtime are reported, and ones that agree textually while something underneath them disagrees are not. A net with a known mesh size, not a proof.

What the sweep decided to leave

Recorded because "we looked and it was fine" is a result, and because the next person to run this sweep should not have to re-derive it.

Ciphertext stays 0644. The sealed containers in atrest.rs, security.rs and guard.rs are encrypted; the permission adds nothing and pretending otherwise would be theatre.

Public keys stay 0644. That is what a public key is for.

Cleaning in place preserves what was there. veilvoice clean rewrites the file it is given, and fs::write on an existing file keeps its mode. Checked by cleaning a file set to 0600, which came back 0600. A metadata cleaner that loosened a file somebody had deliberately protected would be a bad defect, and it is not present.

Service state files in capture, drivers, sentry and guard's unsealed manifest are records of what this machine does rather than of who anybody is, and they live in the user's own configuration directory. Left as they are, deliberately, rather than tightened for the look of it.

Whether ordinary speech ever clips. The obvious question after reading output ran away to 4.05 in a CI log, and the one that would matter, since a recording that comes out above full scale is clamped by the writer and a person hears the distortion. Measured on speech-like input, ten runs at each level:

input peak 0.30 -> output peak 0.196, 0 samples over full scale input peak 0.70 -> output peak 0.466, 0 samples over full scale input peak 0.95 -> output peak 0.554, 0 samples over full scale input peak 1.00 -> output peak 0.621, 0 samples over full scale

Not one sample over unity in 1.9 million, and about four decibels of headroom at the worst. The overshoot in F-139 is confined to the Nyquist-rate square wave it was measured on, which is not a signal any recording contains. Nothing to fix, and worth writing down because the number in that failure message invites exactly the opposite conclusion.

Tamper detection, run rather than read. veilvoice guard was exercised end to end for the first time from here, on a copy of the binary so a real file could be modified:

  • An unsealed record detects a single appended byte, names the file, prints the hash it expected and the one it found, and exits 1.
  • A sealed record does the same, and refuses a wrong passphrase with the same message every other container failure gives.
  • Where it cannot answer, it says so rather than guessing: with ausearch absent it reports by: unknown - the audit tools are not installed and prints the two commands that would let it answer next time.

Nothing was found. The honesty of the last point is the part worth recording: the obvious failure mode for a feature like this is to name a plausible culprit rather than admit the system cannot tell, and it does not.

F-134 -- three commands reported a missing file without naming it

veilvoice-cli/src/main.rs.

$ veilvoice encrypt clip.wav --to nokey.pub ✗ No such file or directory (os error 2)

Which file? The command names two of them. veilvoice decrypt and veilvoice clean did the same.

std::io::Error carries no path, so e.to_string() on a missing file is that bare sentence. anonymise answered the question because atrest.rs formats the path in by hand, and these did not because they did not. The same defect as the verifier's unnamed verdict in the previous round, in a place where the person can at least re-read their own command line, which is the only reason it is smaller.

Two helpers, read_named and write_named, rather than a fourth hand-written copy of the format string. The copies getting out of step is how this happened.

F-135 -- the un-veiled original was left readable by everyone

veilvoice-cli/src/main.rs, veilvoice-crypto/src/privatefile.rs.

veilvoice import pulls the audio out of a video container. What it writes is the original recording: the voiceprint intact, untouched, exactly as it was spoken. It is the single most revealing file this program ever puts on a disk, and it is the file this program exists to make unnecessary.

It was left at whatever ffmpeg's umask produced, which is 0644 on a normal Linux account.

The writing genuinely is ffmpeg's job, so this is not the same slip as F-133: nothing here could have used write_owner_only, because nothing here does the writing. What was missing is the step after it. privatefile::tighten sets the mode on a file another program created, and run_ffmpeg calls it for both import and video.

What that does not fix, stated where the function is defined rather than implied away. There is a window between ffmpeg creating the file and this tightening it, and during that window the file is whatever the umask made it. That is inherent to handing the write to another program. Narrowing the exposure from permanent to the length of one transcode is worth having; calling it airtight would not be true, and the line the program prints afterwards says only what it did.

What was examined and found nothing

The encryption itself. A full round trip was run: key generation under a real terminal, sealing to that key, and opening it again. The result is byte for byte the input. The wrong passphrase and a container with one byte flipped in the middle both fail with decryption failed: wrong key, or the data was altered, which is the honest message: an AEAD cannot tell those two apart, and claiming to would be worse than saying so.

Partial output on failure. A decryption that fails writes nothing. The output path does not exist afterwards.

Key file modes. The private key is 0600 and the public key is 0644, which is correct for both.

The twenty-fifth round: what running the programs found

Five defects (F-128 to F-132), three of them from one change: the website's demonstration stopped inventing what the programs print and started replaying recordings of them.

Three of the five were found by reading a transcript, and the other two by running the window and looking at it. Not by reasoning about the code, not by a test, and not by a review: by running the command, writing down what came out, and looking at it. That is the fourth round in a row where the finding that mattered came from running the thing, and it is the reason those recordings now run on every build.

F-128 -- -o veiled.veil wrote veiled.veil.veil

veilvoice-crypto/src/container.rs.

veil_path appends .veil rather than substituting it, so recording.wav becomes recording.wav.veil and the original name survives decryption without being guessed at. That rule is right and it is documented.

It was applied to the output path the user chose. Asked for

veilvoice anonymise interview.wav -o veiled.veil --encrypt-to key.pub

the program wrote veiled.veil.veil, reported that name back in its result block, and left the person with no file at the name they typed.

Every test of that function passed a path that does not end in .veil, because that is the case the documented rule is about. The one case where the rule is wrong is the one nobody wrote a test for, and it is the case a person hits when they name the output themselves.

Fixed where the rule lives rather than at the call site, so every caller is covered: a path already ending in .veil is returned unchanged, matched case-insensitively because Windows and macOS are.

F-129 -- the website showed output the verifier has never printed

website/js/demo.js.

The demonstration's release-verifier mode played a list of lines, one a second, presented as the program running. The list was written by hand, and four of its six output lines are text veilvoice-verify does not produce. It announced

==> Checking the signing key's fingerprint ok fingerprint matches 8101FB...

where the program writes

ok embedded key fingerprint 8101FB...

This is the worst thing on the site rather than a cosmetic one, and the reason is the subject. The page's argument is that you should not take this project's word for anything and should check the download yourself. The part of the page demonstrating the checking was fabricated. Somebody who ran the real verifier after watching that would see different output and have no way to tell which of the two was the lie.

There is now no hand-written program output anywhere on the site. tools/shots/sessions.py records five real sessions, on a real pseudo-terminal with the passphrases typed at the real prompts, and tools/verify.py re-runs and compares them on every build. The demonstration replays those bytes. The only invented thing left is the pacing, and the overlay says so.

F-130 -- the verdict never said which file it was about

veilvoice-verify/src/main.rs.

On a pass the program printed:

INTACT. This file is byte-for-byte what was published, signed by 8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A.

"This file" is the archive it found. veilvoice-verify auto exists precisely so the person does not have to name it, so in the commonest way of running the program the name had never been typed and was never printed. The one line somebody quotes to somebody else, to say a download is genuine, named no download.

Noticed by recording that session and reading it back with no idea what had been checked, which is the position a reader of that transcript is in and, it turns out, the position the person who ran it was in too.

The verdict names the file. That also made the transcript checkable: the archive's name carries the version, so a stale recording of an older release now fails against the workspace version.

F-131 -- the crash report was only ever shown on the About tab

veilvoice-gui/src/app.rs.

A report of a crash has been written to disk since v0.1.10, and the interface mentioned it: one line on the About tab saying the previous run ended unexpectedly and naming the file.

About is where somebody goes to read version numbers. It is not where they land after a crash: they restart the application to get back to what they were doing, arrive on the tab they were using, and see nothing. So the report existed, was accurate, was written for a person to read, and there was no path by which a person would read it.

This is a feature that was finished and unreachable, which is a different failure from one that is broken, and harder to see, because every test of it passed and every screenshot of the About tab showed it working.

It is now offered above whichever tab you land on, using the panel the application already has for anything it needs somebody to see whatever they are looking at. With the whole report readable in place before any decision, a button to copy it, a link to the issue tracker, and one to dismiss and delete. Nothing is sent, and nothing there can send it: the module has a test that fails if a request appears in it.

Running it turned up a second thing worth recording, though not a separate finding. The crash panel and the first-run panel can be up together, and it is not a rare combination: the application crashed before it saved the first-run answers, so the next launch is both. Drawn together they were two unrelated demands for a decision on one screen, with the welcome underneath the wreckage. The two choices come first now, and the report is there when they are made.

F-132 -- the tab strip looked clickable and did nothing

veilvoice-gui/src/app.rs.

Two panels take over the whole tab body and return before it: the first-run choices, and now the tour. The tab strip above them stayed live throughout.

Clicking a tab moved the highlight and changed nothing underneath it. That is the exact appearance of a window that has stopped responding, offered to somebody in their first thirty seconds with the program, and it had been true of the first-run panel since it was written.

Found by running the tour and clicking a tab out of habit. Not by a test: every test of the first-run panel renders it and checks what it contains, and what it contains was right.

The strip is now disabled while either panel is up, which is the honest rendering of a state that already existed.

What was examined and found nothing

The other four recordings. The refusal when there is no terminal, the warning before writing unencrypted, info, and the key generation all print what they are documented to print. The refusal in particular is worth a note for being right: asked to veil a recording in a script, the program stops, explains that there is nobody to type a passphrase, offers the two ways round it, and writes nothing. It is now one of the five things the website shows, because a program declining to do something unsafe is a better demonstration than one succeeding.

The twenty-fourth round: the same symptom, and the cause this time

Six defects (F-122 to F-127). The round exists because the previous one declared the idle window fixed and it was not. That is worth stating plainly at the top rather than working up to: v0.1.16 removed a repaint timer, measured an improvement, and shipped a window still drawing sixty frames a second when nobody was touching it. The measurement was real and the conclusion drawn from it was wrong, because the thing measured was one cause among two and the smaller one.

What made the difference this time was not more care. It was that the window toolkit, upgraded for other reasons, can be asked why it was told to draw. The answer took ten seconds to obtain and named a file and a line number. Four of the five findings below follow from asking a program a question instead of reasoning about it.

veilvoice-gui/src/soundbar.rs.

Measured with egui::Context::repaint_causes over ten seconds of an untouched window on the file tab: 559 of 566 frames were requested by line 117 of that file. That is the animated mark in the header, the row of bars that rises and falls, asking for another frame every 33 milliseconds for as long as the program was open, on every tab, whether or not anybody could see it.

F-112 in the previous round found and removed a 500 ms repaint timer and recorded the idle window as costing nothing. It cost less. This was the rest of it, and it was four times larger.

Two of its costs are ones a person notices rather than ones a profiler does. A laptop left open at this screen never lets its processor idle. And the reported symptom this whole line of work started from was that dragging the window lags: egui has no partial repaint, so animating 46 by 22 pixels means redrawing 1400 by 1000, and every frame of a drag was competing with a full redraw nothing had asked for.

The mark now moves only while somebody could be watching it: not while the window is unfocused, not while it is being moved or resized, and at twenty frames a second rather than thirty. The drag case is detected from the window's own rectangle changing between frames, which is the only signal either egui or winit offers for it, and it resumes a quarter of a second after the window stops.

Pausing without resetting is deliberate and is a second, smaller defect avoided rather than introduced: the resting shape is every bar at the midpoint, so freezing there would make every click into another window snap the row flat. A paused mark holds the shape it had.

Measured after: no frames at all on an untouched window, and 0.1 percent of one processor.

F-123 -- a library the packaging could not know about

crates/veilvoice-gui/Cargo.toml, packaging/debian/control, packaging/rpm/veilvoice.spec.

Upgrading eframe from 0.29 to 0.32 added a runtime dependency on libxkbcommon-x11, which the toolkit opens by name at startup rather than linking against. Nothing that derives a package's dependencies from a binary's linkage can see that: dpkg-shlibdeps and the RPM dependency generator both read what a binary links, and this is not linked.

So the application compiled, packaged and installed perfectly and then aborted before drawing anything, on any machine without that library. It was found by running the built binary on this one, which did not have it.

This is the shape worth recording rather than the library. A dependency that only exists at run time is invisible to every check this project runs before shipping: the build passes, the tests pass, the packages build, the archives verify. The only thing that finds it is starting the program somewhere it has not been started before, which is now what happens after every toolkit upgrade.

Named explicitly in the .deb and the .rpm, installed in CI, and explained in the README's install block and in the guide.

F-124 -- every crash report named a cause it had not checked

veilvoice-gui/src/crashlog.rs.

Each report ended with the same paragraph: that the most likely cause is a machine that could not give the application an OpenGL context. That is a reasonable guess for a window that never appeared and it was printed under every panic regardless of what the panic said.

F-123 is what made it a defect rather than a wording preference. The report for that failure carried the real message two lines up, "Library libxkbcommon-x11.so could not be loaded", and then sent the reader to look at their graphics driver. A report that confidently names a cause it did not check is worse than one that names none: the reader believes it.

The note is now chosen from the panic message, and matched on the shape of a loader's complaint rather than on one library's name, so the next dependency of this kind is covered without an edit. Anything unrecognised keeps the graphics note, which remains the best guess when there is nothing else to go on.

F-125 -- the screenshot harness cut two tabs off unless you knew better

tools/shots/gui.sh.

The harness captured at 1400 by 1000 by default. Two tabs are taller than that: group needs 1315 and install needs 1095, and both came out with their bottoms missing.

The committed pictures were the right size, which is why this survived. They were right because whoever ran the script last passed a larger height by hand. A tool that produces correct output only for somebody who already knows the answer is not a tool, and the first person to run it without that knowledge was this round.

It now captures tall enough for the longest tab and lets fit.py trim each picture back to its own content, with the existing floor keeping the short ones at the size the window actually is. No per-tab table, which would go stale the next time a panel grows a paragraph.

F-126 -- one version, twelve hand-kept copies, nothing checking them

Cargo.toml and twelve other files.

The workspace version was repeated by hand in the README's four install blocks, the reproducible-build example in two documents, the WiX recipe, the Homebrew formula, the Flatpak manifest, the RPM spec and the packaging documentation. Nothing derived any of them from Cargo.toml, and no check compared them.

This document has recorded this shape more times than any other, most recently as F-121. What makes this instance worth its own number is where it lands. The README's install block is the first thing a new reader runs. A release that forgets to bump it hands them a command that downloads the previous version, and the verifier then confirms that download is genuine, because it is. The failure looks exactly like success.

tools/release/version.py reads Cargo.toml and moves or checks every copy, and the check runs in tools/verify.py with every other generator. The three files that keep a history are handled differently: only their newest entry is checked, and setting a version prepends rather than edits, because rewriting a changelog to match the present is vandalism.

F-127 -- the guard on the front page's defect count was reading a quotation

tools/site-tests/css.test.js.

The front page states how many defects the audit has found. A suite check compares that against docs/AUDIT.md so the two cannot drift, which is the right idea and is why the number is a digit rather than a word.

It matched the plain-text phrase audit rounds (F-1 to F-N). The audit contains that phrase twice. Once as its verdict, and once inside F-105's write-up, where the stale verdict F-105 exists to describe is quoted in full. The quotation is earlier in the file, so the check read it.

So the front page said "104 defects found and fixed across eighteen audit rounds" for six rounds, and this check passed every time, because it was comparing the page against a sentence that had been publicly identified as wrong and preserved as evidence. A guard reading the thing it was built to catch.

The check is now anchored on the verdict's bold markers, which a quotation of a sentence does not carry, and it compares the round count as well as the defect count, because those two drifted separately the last time. The page now says 126 and twenty-four.

Worth stating in general terms, because this is the third guard in this project found to be checking the wrong text rather than checking nothing: a pattern matched against a document has to be anchored on something that cannot appear in prose about the thing being matched. Documentation that quotes its own history is documentation a loose pattern will match twice.

What was examined and found nothing

The layout after the toolkit upgrade. Every tab was captured before and after and compared. The only difference is that the two links at the foot of the verify tab now render as links, which is an improvement the new version made on its own.

Hardware acceleration. Checked rather than assumed: the defaults did already request a GPU context. They are now named in the source with the reasoning beside them, because a default is a property of the version in Cargo.lock and an upgrade can move it without a line of this project changing. The About tab reports the context actually obtained, read from the driver, so the claim and the fact are separately visible.

The twenty-third round: what an idle window costs, measured for the first time

Nine defects (F-113 to F-121). The round is different from the ones before it in one way that matters: the desktop application can now be run on a machine with no screen, under Xvfb, so what it does when nobody is touching it is a number rather than a suspicion. Two of the seven were found that way and could not have been found any other way from here.

F-113 -- the verify tab said everything three times

veilvoice-gui/src/verify.rs.

The GnuPG section was the last statement of slot_row, and slot_row is called once for each of the three file slots. So the tab carried three copies of the heading "The same check, typed by you", three copies of the paragraph under it, and three copies of "choose a hash list and a signature above", threaded between the three file rows.

It is in every published screenshot of that tab, and has been since the section was written.

Nothing caught it because every piece of it was correct. The section draws what it should. The row draws what it should. Only the place one was called from was wrong, and no test looked at that, because tests here look at what functions produce rather than where they are invoked.

Found by reading a screenshot. Not by reading the code: the call is the last line of a forty-line function and looks exactly like the end of a panel.

The regression test reads the call site, which is the thing that was wrong, and asserts there is one of them and that it is not inside slot_row.

F-114 -- three buttons in a column, at three different x positions

Same file, same screenshot.

The three choose… buttons sat at three different places. The cause was

RichText::new(format!("{label:<16}"))

which pads a label with trailing spaces to fake a column. That aligns nothing outside a terminal: the interface font is proportional, so a space is not the width of a letter, and egui gives trailing whitespace no reliable width at all. the download, SHA256SUMS and SHA256SUMS.asc are three different widths on screen whatever they are padded to.

This is the second time this exact habit has been taken out of this application. The passphrase fields had it, were fixed, and the fix was written where the passphrase fields are. So when the same idea was needed on another tab it was written again from scratch, wrongly.

The fix now lives in layout::column and both call it, which is the only arrangement that stops a third copy appearing on the next tab somebody writes.

F-115 -- an untouched window redrew itself twice a second, for ever

veilvoice-gui/src/watchfeed.rs and app.rs.

With the animations off, on a tab with nothing on it, with nobody touching the machine:

frames per secondprocessor
Before2.17.1% to 9.0%
Afternone0.2%

Twenty seconds a tab, all nine tabs, frames counted by the program itself and processor time read from /proc. Every tab was 2.1, including the monitor tab, which draws two lines of text.

Two reasonable decisions met. The microphone monitor's thread sent an update on every poll, whether or not anything had changed. The window woke every 500 ms to ask the channel whether anything had arrived. Each half is the sort of thing that reads fine in review; the comment beside the second one even explains, correctly, why 500 ms is cheap. Together they are a program that never sleeps, on every tab, whether or not the monitor is the thing on screen.

The thread with the news now asks for the repaint, because it is the only thing that knows there is any, and it only speaks when something actually changed.

Worth stating plainly: the previous round could not have found this. The comment in app.rs said so at the time -- "this machine has no display and the frame time is not measurable from here" -- and that sentence was true when it was written. What changed is not the code but what can be run.

VEILVOICE_FRAME_LOG=1 now prints frames per second to stderr. The About tab already showed how long a frame took, which answers "is drawing slow" and is the wrong question: a window drawing sixty fast frames a second while idle looks healthiest of all by that measure.

F-116 -- the guide described a five-tab application that has nine

docs/USER_GUIDE.md.

It opened "veilvoice-gui. Five tabs." and documented five. There are nine. The four missing were group, verify, settings and install -- including the tab this project tells people to use before running a download it has just told them not to trust.

The fifth finding of one shape: a document describing the program, with nothing comparing the two. The remedy is the one used each time. Every tab now has a section named for the key it answers to, and a test walks Tab::ALL and fails the build for any tab without one.

The count is gone rather than corrected. A number typed beside a list is a copy of the list's length and goes stale the first time the list changes, which is exactly what happened; a second test refuses to let one back in.

F-117 -- the generated verification script printed a pass over a rejected signature

veilvoice-gnupg/src/script.rs. Written this round, and wrong within the hour.

veilvoice verify --script writes a short shell script that checks a release with GnuPG and the system hash tool and nothing from this project. The first version had:

gpg --verify SHA256SUMS.asc SHA256SUMS 2>&1 | sed 's/^/ /' say "signature SHA256SUMS is signed by a key in your keyring"

A pipeline's exit status is the status of its last command. That is sed, which succeeded. set -e never fired, and the script printed its pass line directly underneath GnuPG saying the signature could not be verified.

Found by running it against a deliberately tampered release, which is the only way this could have been found: every test in the file passed, the script looked right, and it is four lines long.

It now captures the output instead of piping it, and it does something the first version did not do at all: checks that the signature is by this project's fingerprint, not merely that GnuPG called it good. GnuPG reports a good signature for any key in your keyring, including one an attacker talked you into importing, and that is precisely what a substituted release looks like. Verified by generating a second key, signing a hash list with it, and confirming the script refuses while gpg --verify alone says "Good signature".

Five paths were then run against the published v0.1.15: genuine release passes; tampered hash refused; tampered signature refused; good signature by the wrong key refused; and a folder with none of the release in it reported as having nothing to check, rather than as a mismatch.

F-118 -- the window opened too small for its own longest panel

veilvoice-gui/src/main.rs, now window.rs.

It opened at 1100 by 720, always. The group panel is 1288 pixels of content, so the window opened on a panel with its bottom third missing and nothing saying so; a reader had to find the scrollbar to learn there was more.

The obvious repair breaks something else, which is presumably why it stood: a window 1400 by 1000 does not fit a 1366 by 768 laptop, and one that opens partly off the bottom of the screen looks like a broken program.

So the size is no longer a constant. It is a preference clamped to what the monitor can show, applied on the first frame, when the monitor size is known for the first time.

The clamp was wrong first, in a way worth recording. It reserved nine tenths of the screen, which on a 1920 by 1080 display -- the commonest desktop screen there is -- gives 972 and would have shrunk the window to avoid a task bar 40 pixels tall. What a window actually loses is a title bar and a task bar, and those are a fixed number of pixels whatever the screen is. The allowance is now in pixels and the test that caught it names 1080p specifically.

The floor for manual resizing is unchanged. Nothing here stops somebody dragging the window small; it stops the program from opening that way.

F-119 -- the chooser appeared only once it no longer mattered

veilvoice-gui/src/verify.rs. Also written this round.

The new section letting somebody choose which OpenPGP implementation does the checking was called at the end of gnupg_section, which returns early when the hash list and signature have not been chosen yet. Choosing a checker is a decision made before checking anything, so it appeared only after the point where it was any use.

Found by photographing the tab and looking at it, immediately after writing it. That is twice in this round that reading the picture caught what reading the patch did not, which is the same lesson as F-113 in the same afternoon.

Three programs, three guides, and the one that had none

Not a finding, and the gap is worth recording because of which program had it.

The user guide describes all three programs in one document, which is right for somebody reading the project and wrong for somebody holding one program. A release ships veilvoice, veilvoice-gui and veilvoice-verify, and the wiki carried no guide for any of them: 186 pages, all of them generated reference, and nothing a person would read to learn how to use the thing.

The one with no section at all was the verifier, which is the program this project tells people to run first, before trusting either of the others. It had a tab in the window and a page on the site and no guide.

The three guides are assembled from the user guide rather than written beside it, for the reason this document has recorded five times: three hand-maintained descriptions of one application go stale in one place and not the others. There is one source, and --check regenerates into memory and compares.

The assembly caught its own defect immediately. A guide sitting in docs/ links to its neighbours by bare file name, which resolves there and resolves to nothing in the wiki, where every page is a flat name. The link suite found two broken links in the generated pages before they were committed, and the fix is a rule about the namespace rather than a list of links to patch.

F-120 -- the guide credited a program the update check has never used

docs/USER_GUIDE.md, written earlier in this same round.

The new section explaining how VeilVoice reaches the network said the update check uses "PowerShell's web request on Windows". It does not, and never has. It looks for %SystemRoot%\System32\curl.exe, by absolute path.

Two things are worth separating here. The sentence was written from reasoning about what a program would plausibly do, beside a program that says exactly what it does, in a repository whose recurring finding is documents that describe the program without anything comparing the two. It was wrong on the day it was written, in a section added specifically to be accurate about this.

The absolute path is the part that matters and the part the guess lost. Windows searches the current directory before PATH, so a curl.exe sitting beside VeilVoice would be the program that ran; an earlier round recorded that exact attack against a different call. Describing the lookup as "the system's tool" hid the one property that makes it safe.

The test compares the two rather than trusting them to agree: it reads every absolute path out of find_tool and requires the guide to mention each.

It found a second error immediately. The first version of the guide mentioned only curl; the program falls back to wget at the same three paths, and the test failed on /bin/wget before the fix was a minute old.

F-121 -- the README said a release is built for nine targets, and it is eleven

README.md, and the platform table added to docs/USER_GUIDE.md earlier in this round, which said ten.

Counted against the published v0.1.15, which carries eleven archives. Neither number was ever right, and the guide's wrong one was written while looking at the workflow.

A number typed into prose beside a list is a copy of that list's length. This document has recorded that shape four times, and produced it twice more in one afternoon: once in the README, which had been wrong across at least two releases with nothing noticing, and once in a section written to correct the README.

The count now comes from release.yml, by counting the labels in the build matrix and the three BSD jobs that build in a VM. The only way to change the number in the README is to change what is actually built.

The roadmap picture said nothing about itself

Not a finding, and worth recording because it was published and looked finished. The roadmap page drew ninety-six squares, each carrying its item number, and the number is an index into ROADMAP.md, which is not where the reader is standing. The one question a reader has about a square is what it is, and that was the one thing it did not say.

The names were already in the drawing, in a <title> on each square, which is what a browser shows on hover and what a screen reader reads out. So the fix was to take the numbers away rather than to add anything: the square is now a colour with a name attached, and the picture reads as a state of the project instead of a list of references.

The squares fade in, staggered, and stop doing so for anybody whose system asks for less movement. The stylesheet is written inside the drawing rather than into main.css, because the same file is served on its own at assets/roadmap.svg where none of the site's stylesheets are loaded, and a picture that animates in one place and not the other is the kind of difference nobody notices until it looks broken.

Where the two programs run, written down

Also not a finding. The guide now carries the platform table, because "it runs everywhere" was doing work it could not support.

Eleven platforms get a signed archive. The desktop application ships for eight of them; the BSDs get the command line only, and the reason is specific rather than a gap waiting to be filled: the audio library has no backend for them, so live capture cannot work and a window built around it would have nothing to listen to. Everything that operates on a file runs there exactly as it does anywhere else.

The new code in this round was checked against armv7-unknown-linux-gnueabihf and i686-unknown-linux-gnu as well as the host, because two of the three new modules do arithmetic on sizes and one of them parses a header, and 32-bit is where that sort of thing has gone wrong here before.

The twenty-second round: the verify page that had no verifier

Two defects (F-111 and F-112), both found by driving the website in a real browser rather than reading it, and both on pages a generator writes.

F-111 -- the page for checking a download could not check a download

tools/site/split.py, and the five section pages it writes.

website/verify.html is where this project sends people when it tells them not to run a download until they have checked it. It has the drop zone, the field for the published hash, the progress bar and the verdict line. It did not load js/verify.js.

Dropping a file on it did nothing. The digest line sat at no file hashed yet, for ever, on the page whose whole subject is proving a download is genuine.

Found by driving Chromium over the DevTools protocol and using the page: a file was put in the picker, a hash typed in the field, and the change event dispatched. The front page answered

8bd6a58c7b2348ec0dac088c9a33ebf2a89ab64b0cfe3f89443c8b32760f24ab MATCH -- this file is byte-for-byte what the hash describes.

and verify.html, with identical markup, answered nothing at all. The page's own listener had never been attached, because the code that attaches it was never fetched.

The cause is a variable nobody read. The section pages are generated from index.html, and shell() collected the parts to reuse: the head, the header, the footer, and scripts -- a list of all nine <script src> tags on the front page. page() used the first three. Nothing ever used scripts. The six scripts index.html loads in its <head> arrived anyway, inside the copied head, so every generated page had theme, reveal, legal and the rest and looked entirely normal. The three loaded at the end of its body did not arrive, and js/verify.js is one of them.

That is why it survived: the pages worked. They were themed, they revealed on scroll, the legal notice appeared. One feature on one page was furniture, and furniture does not raise an error.

Which scripts a page needs is now read out of the scripts. A table here saying "verify.html needs verify.js" would be a second copy of a fact, which is the shape of a third of the findings in this document. Instead every module is read for the ids it will not start without, every page for the ids it has, and the two compared.

The distinction between the ids a module touches and the ids it needs is the whole of the difficulty, and getting it wrong in either direction is a real mistake. repo.js touches #asset-list, and download.html has an #asset-list; loading repo.js there on that evidence would put a third-party request on a page that cannot use it, on a site whose only third-party request is announced and opt-in. But repo.js returns immediately unless #load-repo is present, and that button is on the front page only. verify.js returns unless #drop and #file are both present, and verify.html has both.

Every module here is written that way: a DOMContentLoaded handler looks its elements up and returns early if the ones it cannot work without are missing. The generator now reads that guard. Where there is no guard to read it demands the module wherever any of its markup appears, which is the cautious answer rather than the precise one, and is the right way round.

tools/site-tests/scripts.test.js makes the same comparison against the committed pages, independently of the generator that wrote them, so a page edited by hand is covered as well as a page generated. Removing the script tag again fails it with the page and the ids named. It also checks that the website/nojs pages load no scripts at all, which is the one thing they exist not to do.

Both halves were then run in the browser rather than assumed. A correct hash gives MATCH -- this file is byte-for-byte what the hash describes., a wrong one gives NO MATCH -- do not run this file. with the failure class on the verdict, on verify.html, from a real Chromium.

The limit: this settles that the code a page's markup needs is fetched. It does not settle that the code works, and could not. That is what using the page is for, and using the page is what found this.

F-112 -- "below" survived being moved to another page

website/index.html, in three sentences.

Splitting a section onto its own page changes what the words in it mean. The download section said

The <a href="#verify">verifier below</a> does the first one in your browser.

which is true on the front page, where the verifier is below. On download.html the generator rewrites that link to index.html#verify, as it must, and the sentence now describes a link to a different page as being lower down this one.

Three sentences had gone false this way, all of them naming something that lives on the front page only: the live repository panel "below" on the download page and again on the security page, and the verifier "below" on the download page. All three now say what they mean without claiming a position, so they read correctly wherever the generator puts them.

The other three occurrences of "above" and "below" on the generated pages were checked and are correct: two refer to headings that are genuinely on the same page, and one is inside an HTML comment.

Only part of this is guarded, and it is worth saying which part. A link to another page described as "above" or "below" is a contradiction that can be read mechanically, and scripts.test.js now refuses it -- that is the check that found the verifier sentence, after the other two had been found by reading. Whether "the repository panel below" refers to anything is not mechanically decidable, and a check that guessed at it would produce false alarms on the sentences that are fine. So the crisp half is enforced and the rest is not, and this paragraph is here rather than a test that pretends otherwise.

The twenty-first round: the verifier where a person actually stands, and 2.19 billion inputs

Four defects (F-107 to F-110), every one of them found by using the programs rather than reading them, and a coverage-guided campaign at twice the length of any before it, which found nothing.

F-107 -- the verifier could not find the release it was standing in

veilvoice-verify/src/discover.rs.

Downloaded v0.1.15 from the release page, extracted it, opened the folder that appeared and ran ./veilvoice-verify with no arguments, which is what the program's own help tells people to do and what a double-click does. It said:

FAILED: no VeilVoice release was found to check

Every archive tool unpacks veilvoice-vX.Y.Z-linux-x86_64.tar.gz into a folder of that name, beside the archive. So the folder somebody opens contains the binaries and none of the things they are checked against: SHA256SUMS, its signature and the archive itself are all one level above. The search looked in the directory given, the current directory, the directory holding the program, Downloads and Desktop, and in the parent of none of them.

The comment above that code reads "Where somebody who unpacked the archive and ran the verifier inside it will be." The case was anticipated, named, and pointed one directory too low.

Fixed by searching one level up from the explicit directory, the current one and the program's own. One level, not more: two would start reading directories that have nothing to do with the download, and a verifier that wanders through a stranger's filesystem looking for something to check is a worse thing than one that asks for a directory. Both halves are tested, the finding and the bound.

Verified against the published release rather than a fixture: signature over the hash list good, archive hash matched, 341 of 341 extracted files as published, and the machine's own GnuPG asked, given the key, and agreeing. It also refused a binary that had been copied into the folder during the test, naming it as not part of the release, which is step 4 doing exactly what it is for.

What made this findable is that it was run, not read. The discovery code had been read in an earlier round and its tests pass; they build a directory and ask about that directory, which is the arrangement the code already handled. The arrangement it did not handle is the one nobody had typed out, because it is the one nobody thinks to describe: the folder you are already standing in. This is the third finding in four rounds whose cause was a check that had never been run in the shape a person meets it, after F-104 and the release notes.

F-108 -- a mistyped directory was answered with a result about a different one

veilvoice-verify/src/main.rs.

Found by running the other paths through the same program after F-107, on the grounds that one wrong answer about where to look is rarely the only one.

$ veilvoice-verify auto /no/such/place ... INTACT. This file is byte-for-byte what was published, signed by 8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A. $ echo $? 0

/no/such/place does not exist. The release it checked and pronounced intact was in the current directory, and the path that was actually typed appears nowhere in the output.

The search falls back through the current directory, the folder holding the program, Downloads and Desktop. That is right when nobody said where to look, and it is wrong the moment somebody does: a person who names a directory is asking about that directory, and an answer about a different one is an answer to a question they did not ask.

The exit status is the part that makes this more than a nuisance. veilvoice-verify auto "$DOWNLOAD_DIR" || exit 1 is the obvious way to put this in a script, and it passed. A typo in the variable, an unset variable expanding to something odd, a path that had not been created yet: each one produces a green result about whatever happened to be lying around, and the script goes on to install.

A named directory is now checked before anything is searched. If it is not a directory the program refuses, names the path, says nothing was checked and why, and points at the no-argument form for somebody who wanted the search. A file given instead of a folder is refused the same way.

The regression test reads command_auto and requires the existence check to come before the search, and requires the refusal to name the path. It is a source-level test on purpose: reproducing the failure needs a machine with a release lying around somewhere findable, which is precisely the condition that kept it invisible.

This is F-107's lesson a second time in one round, and the pair is the point. F-107 was the program not looking where the user was standing; F-108 is the program looking somewhere else than the user pointed. Both are about whose question is being answered, both were found by running it rather than reading it, and the second was found only because the first prompted a walk through every other way somebody invokes this.

F-109 -- no terminal was reported as an errno

veilvoice-cli/src/atrest.rs.

Found by running the main binary the way the verifier had just been run, on the same principle: try it the way somebody actually invokes it.

$ veilvoice anonymise recording.wav < /dev/null Choose a passphrase for this recording. It is separate from the app lock, and there is no way to recover it. ✗ No such device or address (os error 6)

That is ENXIO from opening the console. It names nothing that was wanted, nothing about why, and none of the ways on. It is also a different string on Windows, so nobody could search for it and get the same answer twice.

The situation is entirely ordinary: a script, a scheduled job, a CI step, or anything with its input redirected. VeilVoice encrypts at rest by default, so it wants a passphrase, and there is nowhere to ask.

confirm_plaintext, thirty lines further up the same file, already got this right: it checks stdin().is_terminal() and carries on rather than blocking on a prompt nobody is there to answer. The two prompt functions beside it did not. The same defect, in the same file, through a different door, which is the shape this project has recorded more often than any other.

Both prompts now check before asking, and refuse with what was wanted and the three ways on: --encrypt-to with a public key, which types nothing and is the one that works in a script; a terminal, if somebody is there; and --encrypt false --yes, described as what it is rather than as an option. Checking before rather than mapping the failure afterwards keeps the message the same on every platform.

The remedies were run rather than written down, and running them corrected the message twice. With stdin closed, --encrypt false --yes wrote a plain WAV and --encrypt-to me.pub wrote a sealed one at 84x realtime; the key came from veilvoice keygen under a pseudo-terminal, because keygen prompts too, so the wording now says the key is made once in a terminal rather than implying --encrypt-to is there for somebody who has never had one.

The second correction was a defect in the fix. Running veilvoice encrypt with no terminal produced the new message offering --encrypt-to and --encrypt false --yes, and encrypt has neither: it spells the same idea --to, and has no --encrypt at all. A dozen callers share these two prompts, among them lock, guard and policy, which have none of those flags. The message had been written while looking at one command and was then shown to all of them.

Every flag is now named beside the command that has it, all five were checked against --help, and veilvoice encrypt --to me.pub was run with stdin closed to confirm the second remedy works as well as the first. The test asserts the attribution rather than the mere presence of each flag, because presence is what was already true when it was wrong.

Worth naming for what it is: the fix reproduced the defect it was fixing. F-109 is a message that was right where it was written and wrong where it was read. The first repair was a message that was right for anonymise and wrong for encrypt, for the same reason, inside the hour. It was caught the same way the original was, by running the other command rather than re-reading the patch.

F-110 -- the plan printed in the user guide did not parse

veilvoice-conversation/src/plan.rs, and docs/USER_GUIDE.md.

Found by following the user guide to use conversation mode, which is the way somebody uses it for the first time. Copying the example plan it prints and running veilvoice conversation inspect gave:

✗ malformed plan: line 7: unknown keyword "turn 19.000"

The plan format separates its fields with two spaces, deliberately, so that a speaker's name and a turn's subtitle can contain single spaces without needing quotes. The guide's example lines its columns up by eye:

turn 0.000 4.200 0 So, how did it go? turn 4.100 19.050 1 turn 19.000 22.400 0 And after that?

The third line has one space after turn, because 19.000 is a digit wider than 4.100. The parser read turn 19.000 as the keyword and refused it.

Neither half was wrong on its own, which is why it survived. The example is what a person writes: columns lined up so the file can be read. The parser's two-space rule is a real requirement for the fields that can contain a space. It was applied to the fields that cannot: a keyword, a speaker index and a pair of timestamps have no spaces in them and never will. Nothing compared the guide to the parser, so both stayed as they were.

The three numbers on a turn and the index on a speaker now end at any run of whitespace, one space, several, or a tab. Two spaces still separate a name from a picture path and the numbers from the subtitle, so every plan that parsed before parses identically, and the 69 existing tests pass unchanged.

The regression test reads the example out of docs/USER_GUIDE.md rather than keeping a copy of it. A copy is the thing that drifts, which is the failure this is here to prevent: F-71 was two copies of a number and F-103 was a drawing compared against a file written by the same command. The test extracts every fenced block in the guide that begins VEILCONV1 and parses it, so a guide edited into something the program refuses fails the build, and so does a parser tightened past what the guide shows.

The rest of the command line, run rather than read

Four findings in this round came from running the programs, so the remaining commands were run too. This is the part of a round worth recording precisely because it found nothing: "we looked and there was nothing" is a result, and the standard at the top of this document says so.

Every subcommand was invoked with its input redirected, which is the condition that produced F-109, and each was given the arguments its own --help describes rather than the ones guessed at.

What was runWhat it did
guard init, guard checkWrote the record, then reported nothing changed. Says in its own output that the record is unsealed and that anything able to rewrite the files can rewrite it.
sentry plant, sentry checkPlanted a canary and reported it intact.
A canary rewrittenReported rewritten: 2971 bytes at 4.23 bits/byte, and exit 1. The entropy is the useful part: it is how encrypted rubbish looks.
A canary deletedReported gone -- deleted, or replaced by something written under another name, and exit 1.
video with no ffmpegPrinted the exact command it would have run, said nothing was run, pointed at the page that needs nothing installed, and exited 0. Nothing failed, so nothing is reported as failing.
capture status, list, callsEach reported, exit 0.
appctl check, logNo baseline yet, exit 0.
volumes, accel, input, privilege, companions, policy status, info, devices, cleanEach reported, exit 0.
Unknown subcommands and missing argumentsExit 2. Runtime failures exit 1. --help and --version exit 0.

Two things are worth drawing out of a table of successes.

The exit codes are already right, and that is not a small thing. F-108 was an exit code: a verifier answering 0 about a directory the caller never named. Every other command distinguishes a usage error from a runtime failure from success, so a script can tell the three apart.

video exiting 0 without ffmpeg is a decision, not an oversight. A missing optional tool is not a failure of the thing that was asked for: the page was written and plays everywhere. Reporting it as an error would teach a reader to ignore this program's errors, which is the same reasoning veilvoice-verify applies to a GnuPG that cannot run.

Closing F-110's class rather than its instance

F-110 is the fourth finding of one shape: a document describing the program, and nothing comparing the two. F-71 was two hand-typed copies of a number, F-101 a download page linking files that were never published, F-103 a screenshot compared against a file written by the same command.

Every command in README.md, docs/USER_GUIDE.md and docs/INSTALL.md is now checked against clap's own tree: the subcommand has to exist, and a long flag has to belong to the subcommand it is shown beside. Against the definition the program is built from, never a list kept next to it, which would be one more copy to drift.

The first version of this test was blind to half of what it claimed. It walked every occurrence of the word and skipped anything it could not resolve, so a made-up flag failed the build and a made-up subcommand did not: veilvoice frobnicate was added to the guide and the test passed. A test whose name is broader than its reach is worse than no test, because it answers the question nobody then asks again.

What it was missing is a way to tell a command from a sentence. "veilvoice" appears in these documents as prose, as sample output and as something to type, and only the last is checkable. An invocation is now taken to be what a reader could copy: the whole of an inline code span, or a line inside a fenced block, beginning with the program's name. That admits veilvoice anonymise ... and excludes ● veilvoice is now using your microphone, which sits in a fence and is output.

All three behaviours were checked by trying them: an invented subcommand fails, an invented flag fails, and the alert line does not.

The limit is worth stating, because the test's name invites more than it does. It settles whether a documented command exists. Whether it works is not checkable from the argument tree, and is what running it is for: F-110 itself would have passed this test, because turn is a real keyword and the plan file is not a command line.

Conversation mode, measured end to end

Not a finding, and worth recording because it is the first time this path has been run outside its own unit tests. A twenty-second recording of two synthesised voices at 110 Hz and 175 Hz, with a four-turn plan:

inputoutput
Me, first turn110.1 Hz93.8 Hz
Sam, first turn175.2 Hz234.1 Hz
Me, second turn110.1 Hz93.8 Hz
Sam, second turn175.2 Hz234.1 Hz

Each speaker lands on their own canonical register, the same one in both of their turns, and the two are far apart. --page wrote the audio, a WebVTT track, an SRT file and the player page. That is roadmap items 46 to 51 doing what they say, measured rather than asserted.

The campaign, at twenty minutes a target

All seven targets, -max_total_time=1200 -max_len=65536 -rss_limit_mb=6144, on x86-64 Linux. Twice the ten minutes of the eleventh round, and the first run to include release_contents.

TargetInputs in 20 minutesArtefacts
hybrid_keys896,300,257none
wav_preflight767,672,904none
wav_chunks207,840,598none
release_contents43,001,711none
guard_manifest12,712,943none
lock_file267,508one slow unit
container_header37,348none new

2,127,796,269 inputs. No crash, no hang, no out-of-memory on any target.

The one new artefact is a slow unit on lock_file, and it was opened rather than assumed. It declares 569 MiB of memory, ten passes and 127 lanes: legal on every axis, against ceilings of 4 GiB, sixteen passes and 0x00ffffff lanes. It is a lock file that is expensive to verify because it asks to be, which is the class F-91 bounded and the tenth round already recorded twice. Not a finding.

The two crypto targets again run four and five orders of magnitude fewer inputs than the rest, and again that is the campaign working: both parse a header carrying Argon2id costs, so an input that gets past the header checks buys a real key derivation. Everything else parses bytes and returns.

A null result at this length is worth stating plainly and worth not overstating. Doubling the time found nothing new, which is evidence that the five targets that have never found anything are converged on the structure they can reach, and is not evidence that the parsers are correct. Three of the seven have still never produced a finding, no corpus is committed for five of them, and nobody has run any of this on Windows or macOS. Those sentences are the same ones the eleventh round wrote, with a bigger number in front of them.

The twentieth round: a test that deleted another test's fixture

One defect (F-106), found by CI failing on macOS on a commit that changed no Rust at all.

F-106 -- two tests, one scratch directory, and whichever finished first won

crates/veilvoice-gnupg/src/lib.rs.

the_real_key_imports_into_a_real_gnupg_and_says_so_the_second_time failed on the macOS runner with GnuPG reporting that the keyring it had just written did not exist:

gpg: keyblock resource '/var/folders/.../T/vvg18d138f9134babc0/pubring.kbx': No such file or directory gpg: no writable keyring found: Not found

The first import had succeeded. Between it and the second, the directory holding the keyring was deleted.

Two tests in this file take a scratch GnuPG home, and each deletes it when it finishes. The helper named that directory after the clock and nothing else, and created it with create_dir_all. Cargo runs the two tests on threads at the same moment, so when both calls land in the same clock tick they are handed the same path, create_dir_all reports success for the second because the directory is already there, and the two tests then share one keyring. The faster test finished, removed the directory, and the slower one's second import found nothing.

It could not happen on Linux and it can on macOS, which is why it took until now. SystemTime::now() gives distinct nanoseconds on the Linux runners every time; the macOS clock is coarser, and two threads starting together get the same reading. The failing job is a commit that touched only Markdown, Python and JavaScript, which is the honest signature of a defect that was always there and needed a scheduling accident to show.

Two changes, because there were two faults. The name now carries a counter that is unique within the process whatever the clock does, so the clock only separates one run from the next. And create_dir_all is now create_dir, which fails when the directory exists: the collision could not be seen precisely because the call that should have objected to it was the one chosen for not objecting to anything.

scratch_homes_are_never_the_same_directory_twice asks for a hundred of them in a loop and fails if any path repeats. It was checked against the defect rather than assumed to cover it: with the old keying and the clock rounded to microseconds, as macOS has, it fails with "/tmp/vvg18d1393384078c00" was handed out twice.

Where else this decision is made. Every other place in the workspace that takes a scratch directory was read, because fixing the instance and moving on is this project's most reliable source of second defects. There are five, and all five are already correct, for two different reasons. contents.rs puts the thread id in the name, so two threads cannot collide whatever the clock says. palettes.rs and crashlog.rs use the process id and a per-test tag, and verify.rs's two tests use different prefixes. release_manifest.rs takes a label and is called once.

palettes.rs is worth quoting, because it had already written down the rule the GnuPG helper broke: "The process id keeps two cargo test runs from colliding, and the tag keeps the tests within one run apart." Two axes. The GnuPG helper had thought about the first, with a clock, and not about the second at all. The correct pattern was in the tree, in a comment, in a neighbouring crate.

One thing those helpers rely on and nothing checks: the tags have to be unique, because each clears its directory before using it, so two tests sharing a tag would reproduce this defect exactly. All eleven tags currently differ. That is a convention rather than a guarantee, and it is recorded here rather than enforced, because a test that checks a list of string literals for duplicates is more machinery than the risk earns.

The lesson is about what "flaky" is allowed to mean. A test that fails on one platform, on a commit that changed nothing it touches, is the most inviting possible candidate for a re-run, and a re-run would have passed. The failure was a real defect in the test suite: two tests sharing mutable state through the filesystem, which would have gone on failing at random on the platform where the clock is coarse, and would have been re-run each time.

The nineteenth round: the summary that stopped keeping up

One defect (F-105), in the paragraph a reader is most likely to quote.

F-105 -- the verdict had been current for seven rounds and stale for eleven

docs/AUDIT.md, the opening of §6.

The verdict began: "One hundred and four defects found and fixed across eighteen audit rounds (F-1 to F-104): eight in the first two, twenty-eight in the third, eleven in the fourth, twelve in the fifth, one in the sixth, five in the seventh."

Those figures sum to sixty-five. The sentence they are attached to says one hundred and four. A reader who adds them up finds the document's headline number contradicted by its own breakdown, one line below it.

The rest of the section was in the same state. "None of the seventh round's five had shipped, which is the first round that can say so" was written when seven rounds existed. "Of this round's twelve, two had shipped" refers to the fifth round, eleven rounds before "this" one. Every conclusion in the verdict was a seventh-round conclusion wearing the present tense.

The mechanism is the one this project has recorded before, and it is worth saying which part is new. F-71 was a hand-typed number drifting from a measured one, and the fix was to measure it. Here the headline number was maintained, round after round, and the breakdown underneath it was not: someone updating "one hundred and three" to "one hundred and four" reads the number they came to change and stops. The count and its explanation were two numbers with one of them being kept.

The fix is not a corrected breakdown, because a corrected breakdown would drift again for exactly the same reason, and because the document cannot support one: sixty of the findings sit in a shared §2 rather than under a round each, so there is nothing to derive the split from. The breakdown is gone, replaced by the total, the number of rounds, and a sentence saying why no split is kept. The seventh-round commentary is labelled as seventh-round commentary rather than rewritten, because it was accurate about the rounds it named and the only false thing about it was the tense.

What now catches it. tools/measured/generate.py reads the audit's own finding headings and records two numbers in docs/MEASURED.md: how many findings have an entry, and the highest number handed out. They are equal exactly when nothing has been skipped. tools/site-tests/audit.test.js then checks the README's count and range, and the verdict's own count and range, against those measured numbers rather than against each other, which is F-71's lesson applied to a different pair of claims. It also fails if a per-round breakdown reappears in §6.

All four failure modes were tested by reintroducing them: a deleted finding heading, a restored breakdown, and a drifted README count each fail the suite with a message naming what disagrees.

One thing the guard taught while being written, which is why it is worth recording. Its first version searched the whole document for a per-round breakdown, and failed on this entry, which quotes the breakdown it is about. A guard that cannot tell a quotation from a reintroduction fails honest edits, and a guard that fails honest edits gets worked around. It reads §6 alone now.

What would have caught it earlier: reading the verdict as a reader reaches it, which is last, rather than as an author edits it, which is one number at a time. It is the same as F-104 and the release-note sentences after it. Nothing in this project has been caught by a check that ran over a document a reader never sees; several have been caught by looking at the thing the reader is handed.

The eighteenth round: running the verifier against a real release

v0.1.15 was published, downloaded, extracted and checked with the verifier that ships inside it. Not a fixture, not a synthetic release: the artefacts on the release page.

One defect found and fixed (F-104), and it would have reached every reader who has GnuPG installed.

F-104 -- a genuine release, called unverified, in the loudest words available

veilvoice-gnupg/src/lib.rs.

The GnuPG half reported:

your GnuPG found a good signature by 83ABD67A93772B3FA15D2642BD752A144704C231,
which is NOT the VeilVoice key. Treat this download as unverified.

while GnuPG's own output, printed directly underneath it, said:

Primary key fingerprint: 8101 FB3B B28D 02FB 239E  0CDF 9CC1 C7E7 A9B5 833A
     Subkey fingerprint: 83AB D67A 9377 2B3F A15D  2642 BD75 2A14 4704 C231

The signature was made by the signing subkey of the VeilVoice key, which is how this project's release key has always signed, and how most signing keys work. VALIDSIG names the signing key in its first field and the primary key in its last, and only the first was read.

Why the tests could not see it. The key this was measured against while it was written was made with --quick-generate-key, which signs with the primary key itself, so the two fingerprints were the same string and the mistake was invisible in every assertion. The fixture was not wrong; it was the wrong shape, and no amount of testing against it would have said so.

The failure mode is the second worst a verifier has. Not a false accept, but a false refusal on a correct release, stated in the strongest language the program owns, to every reader with GnuPG on their machine. Somebody following the instructions exactly would have been told their genuine download was not genuine, and the reasonable response to that is to distrust the verifier.

Both fingerprints a VALIDSIG names are compared now, and the test carries the line GnuPG actually printed for v0.1.15 rather than one written by hand.

The lesson is the one this document keeps recording, in a new place. Every other round of it has been about fixing the instance rather than the class. This one is about measuring the wrong specimen: the code was checked against something built to be convenient rather than against the thing it exists to handle, and the difference between the two was the whole defect. The remedy was not more tests. It was downloading the release and running it.

What the same run proved, which is worth recording beside the defect: the signed contents list works. All 341 files in the extracted directory were checked against CONTENTS.sha256, all matched, and nothing else was in the folder.

The seventeenth round: what nothing was checking about the screenshots

Prompted by a sweep rather than by reading: taking the em dashes out of the interface text meant editing strings that ten committed screenshots show.

One defect found and fixed (F-103), and it is the one that had been sitting underneath a "still open" entry for several rounds without being seen as a defect in its own right.

F-103 -- nothing said when a committed screenshot had gone stale

tools/shots/terminal.py.

--check compared each drawing against the text file beside it. It compared that text file against nothing at all. The file is written by --capture, which is a separate command that tools/verify.py does not run and nobody runs by accident, so a string could be rewritten in veilvoice-cli and every check in this repository would pass while assets/screenshots/ went on showing the old wording, on the website, in the README and in the gallery.

Not hypothetical, and found the only way this kind of thing is found. The interface text was rewritten, the whole of verify.py passed, and cli-help.txt still contained an em dash the program no longer prints.

The audit had recorded the re-capture as a manual step. That was accurate and it was half the picture: the missing half is that nothing said when the manual step was due. A manual step nobody is told to take is not a step in the process, it is a hope.

--check now also runs the commands and compares what they print against what is committed, and every capture here is a --help screen, so its output is a function of the binary rather than of the machine and two people on the same commit get the same bytes. That is what makes it checkable, and it is why the list stays help screens: a capture of what is installed or what is plugged in could not be checked this way. It skips where there is no build, which is the CI job that runs the other checks in this file, and it does not skip in verify.py, which runs after cargo build on the machine where the strings were just edited.

Proved rather than assumed: a capture was edited by hand, the drawing regenerated from it so the existing check would pass, and the new one reported cli-clean.txt is not what veilvoice clean --help prints and failed the run.

The sixteenth round: the manifest generator, an hour after writing it

The same rule as the fourteenth round, applied to the other half of roadmap item 97. The generator that writes CONTENTS.sha256 is the writing end of the seam the verifier reads, and it had just been moved out of the release workflow into a script so that it could be tested at all.

One defect found and fixed (F-102), by measuring what a line of path handling actually does rather than what it reads as.

F-102 -- lstrip("./") strips characters, not a prefix

tools/release/contents.py.

Tar members sometimes carry a ./ prefix, so the generator normalised them with name.replace("\\", "/").lstrip("./"). str.lstrip takes a set of characters, not a prefix, and removes every leading character that is in it.

Measured, not reasoned about:

'./veilvoice/x'  ->  'veilvoice/x'      as intended
'.hidden/file'   ->  'hidden/file'      a file renamed
'../escape'      ->  'escape'           a path silently made acceptable
'./.config/y'    ->  'config/y'         both at once

The first of those is a correctness failure with an ugly shape: a release containing a dotfile would publish it under a name no file on disk has, so every verifier would report it missing on a release that is perfectly sound, and the owner would be told their download had been tampered with.

The second is worse and is the one worth the finding. A member that climbs out of the release directory was quietly rewritten into one that looks ordinary. The reader's own note says, in as many words, that such a path must be refused rather than sanitised, because a manifest containing one is not a manifest with a bad line in it: it is a file that did not come from this project's release job. The writer was doing the opposite, and the two ends of the seam had been written a few hours apart by the same hand.

Both ends state the same rule now, and the writer refuses -- naming the archive and the path, and failing the release job -- rather than publishing something every verifier would reject. The round-trip test builds a release with a dotfile in it, so the renaming half cannot come back.

Beside it, a wrong number: the generator reported the file count by subtracting twice the number of archives from the line count, which is off by one per archive. It said five files for six. Counted rather than derived now. Not a finding, and worth writing down anyway in a document that keeps telling itself numbers must be measured.

The fifteenth round: the page that says where to get it

The releases page, read after the verifier rather than before it, because a download nobody can reach is not made safer by a checker.

One defect found and fixed (F-101), and it is the oldest shape in this document: two hand-kept lists compared against each other and against nothing else.

F-101 -- the download page linked two files that had never existed

tools/site/releases.py.

The page listed five archives per release. The release workflow builds eleven. Two of the five names were wrong: the page said macos-aarch64 and linux-aarch64 where every release has ever published macos-arm64 and linux-arm64. So every release entry on the page carried two links that answer with a not-found, and six published platforms -- the Raspberry Pi build, the two static musl builds, FreeBSD, OpenBSD and NetBSD -- had no link at all.

Measured against a published release rather than argued: the names the page constructs for v0.1.14 were compared against the assets GitHub actually holds for that tag. Two linked and absent, six present and unlinked.

This is F-71's shape, which this document has already described once: two hand-typed things kept beside each other by attention, each only ever compared against the other. Correcting the five names would have restored the same arrangement with the same future.

release.yml is the file that decides what is built and what each archive is called, so the page reads it. A platform added to that matrix now appears on the page; a label renamed there cannot leave a dead link here. The generator refuses to write a page at all if it can read fewer than five archives out of the workflow, because a page with no downloads on it looks like a release that built nothing rather than like a broken generator, and packaging.test.js checks in CI that every label the workflow builds is linked.

Two smaller things went with it. The page's backlog began at v0.1.6, because CHANGELOG.md keeps one combined section for v0.1.5 and earlier and the parser matched ## vX.Y.Z only: six published releases with no entry, no summary and no files. They are listed now, each pointing at its own release page for notes, which is where those notes genuinely are. And the files moved to the end of each release's notes rather than the top, so opening a release shows what changed in it rather than a wall of links.

The fourteenth round: reading the verifier written an hour earlier

Roadmap item 97 rewrote what veilvoice-verify and the desktop verify tab do: a signed list of every file inside every archive, checked file by file against the extracted folder, and the reader's own GnuPG run over the same signature. New code in the one program whose entire job is not to be fooled is exactly the code an audit exists for, so it got a round of its own before anything else was built on it.

Three defects found and fixed (F-98, F-99 and F-100), all by reading the code written an hour earlier, and all three are the same mistake wearing different clothes: a check that could not see, answering as though it had seen.

F-98 -- a folder that could not be read was reported as holding nothing

veilvoice-check/src/contents.rs.

extras sweeps the extracted directory for files the release never published, because a folder holding every correct file plus one extra program passes every other check and is not the release. Its walk opened each directory and, on any error, returned. The caller got an empty list, and an empty list is drawn as "there is nothing else in the folder".

Measured rather than argued: a directory tree deep enough that its absolute path passes PATH_MAX stops read_dir at about 1988 levels on Linux, and a file below that point was reported as absent rather than as unreachable. A permission bit does the same thing in one line and is how it would actually happen: a folder extracted by another account, or one whose mode came out of the archive wrong.

The sweep now returns what it could not read alongside what it found, and both front ends withhold the pass and name the folder. Unknown is not empty.

The walk also stopped recursing while this was fixed. The measurement above says the recursion could not in fact have overflowed a stack, because PATH_MAX bounds the depth long before the stack does -- but that bound comes from the operating system rather than from this code, and a bound nobody here chose is not one this code can rely on.

veilvoice-check/src/contents.rs.

check asked whether the path exists and then hashed it. Both follow a symbolic link, so a link standing where a program should be, pointing at a copy of the genuine bytes, was reported as matching the signed list.

Two things are wrong with that. The release published a file, not a link. And a link is a name somebody else may be able to repoint after this has looked, which is precisely the substitution a hash check cannot notice.

It is caught by reading rather than by luck that the other half of the same module already knew this: the sweep for extra files deliberately does not walk through links. One function treated a link as a thing to refuse and the function beside it treated the same link as the file it pointed at.

check asks symlink_metadata now, and a link, a directory or anything else that is not an ordinary file is its own verdict and never a pass.

F-100 -- a genuine release signed twice would have been refused

veilvoice-gnupg/src/lib.rs.

GnuPG reports every signature on a file: a run over a doubly signed file prints several VALIDSIG lines. The reader took the first one and compared it against the expected fingerprint, so a release signed by the project key and by somebody else's, in that other order, was reported as signed by the wrong key and refused.

That is the safe direction and it is still a defect. A verifier that refuses genuine releases teaches people that verification is unreliable, and a check people learn to work around protects nobody. The question is whether the expected key signed this data, and it is now asked of every signature rather than of whichever one GnuPG happened to print first.

What the three have in common is worth naming, because it is the fourth time this project has recorded it. Each was a place where the code could not answer and answered anyway: an unreadable directory read as empty, a link read as the file it points at, one signature read as all of them. The rule the failsafe already states in as many words -- "could not tell, so refuse" -- is the rule all three were missing.

The thirteenth round: the three ways the release would not compile

The twelfth round read the code. This one read the build machines, because v0.1.15 was cut, merged, and then refused by continuous integration on four jobs at once. Three of those were real and none of them was in the shipped program: two were tests asserting something that is not true of every machine, one was a constant that only one platform reads, and the fourth was a generated file committed a few minutes before the file it is generated from changed.

Two defects found and fixed (F-96 and F-97), with two test defects and one process failure written down beside them, because a test that fails on somebody else's machine costs exactly as much as a bug until it is understood. F-97 was found by the fix for the fourth failure rather than by reading, which is the round's own small lesson: the first explanation for a stale generated file was true and was not the whole truth.

F-96 -- a just-started program is not yet wearing its own name

veilvoice-failsafe/src/act.rs.

still_named answers "does this process id still belong to this program", and the failsafe asks it immediately before closing anything. Its tests start a sleep of their own and act on it in the next few microseconds, and one CI run reported sleep is no longer process 7030 about a sleep that was still running when the job cleaned up after it.

Measured rather than guessed: four thousand spawns of /bin/sleep, each one followed on the next line by a read of /proc/<pid>/comm. One of them came back with the name of the parent. The kernel releases a vforked parent when the child's address space goes, which happens inside begin_new_exec and before the line that gives the new program its name, so there is a window in which the id is live, belongs to the program that is starting, and answers with somebody else's name.

The shipped code is right as it stands: it refuses during that window, and refusing is the direction that closes nothing on a doubtful answer. A scan never sees the window either, because a program holding a microphone has been running for rather longer than a microsecond. The tests are the only callers that can reach it, and they now wait for the child to appear under its own name before they assert anything about it, which is the precondition they always assumed.

Two tests that were measuring the machine

The real-time headroom test. stays_comfortably_realtime_with_accent_on asserted an absolute real-time factor below 0.5. On the armv7 job, where the test binaries run under emulation, it measured 0.557 and failed, while the same commit passed on every native target. There is no single number that is generous enough under an emulator and tight enough to catch anything on a real machine, so the number was the wrong shape of assertion.

The claim worth defending never needed one. Accent tracking is an addition to the spectral work rather than a multiple of it, and the regression the test exists to catch, a pitch search that stopped being decimated, is an order of magnitude. So the same audio is now run twice on the same machine in the same test, once with the neutraliser bypassed, and the two are compared. Measured under armv7 emulation: 0.352 seconds bypassed against 0.469 with accent tracking, a ratio of 1.3 against a bound of 4.

The dead constant. veilvoice-gui's USAGE is read only by the --help path, which is Unix only and says why: a Windows release build declares the windowed subsystem and has no console to print to. A constant nothing reads is dead code, -D warnings is on, and the Windows job was the only one that could see it. It is declared where it is read now. The test that checks the help text against the tab names reads the file rather than the constant, so it still runs on every platform.

F-97 -- a committed drawing that depended on which Python was installed

tools/docs/generate.py.

The fourth job was written off as the process failure below, and the process failure was real. Regenerating and committing did not fix it. The same job failed again on six files nobody had touched, and this time the explanation was not staleness.

tools/docs/generate.py lays out a call graph and writes the coordinates into an SVG. It summed box widths with the built-in sum, and CPython 3.12 gave sum compensated summation over floats. The same widths therefore add up to a value a fraction different from the one 3.11 produces, everything downstream is a centring calculation, and one box landed at x=40.1 under one interpreter and x=40.2 under the other. Six generated files, three drawings and their three pages, differed by a tenth of a pixel that no eye could see and that a byte comparison could not miss.

Measured: the committed files match under 3.11 and differ under 3.12, on this machine, with nothing else changed. That is the whole defect. This repository commits its generated output and compares it byte for byte precisely so that "generated from the source" is checkable rather than asserted, and a check that passes or fails on which interpreter a contributor happens to have is not a check.

The sum is math.fsum now, which is exactly rounded and therefore identical on every version and platform. Verified across 3.10, 3.11, 3.12 and 3.13: the same 1108 files, byte for byte.

And the check that would have caught it is now there. The assets job runs the generators under two Python versions rather than one. A single-interpreter check cannot see this class of defect at all, which is why it took a red build on somebody else's machine to find the first one.

The process failure, which is the one worth remembering

The fourth job failed because website/search-index.json did not match its generator. The difference was seven bytes in one file: ROADMAP.md was edited after tools/verify.py had regenerated everything from it, and the commit carried the older index. Every generated artefact in this repository has a --check wired into CI precisely so that this is caught rather than shipped, and it was caught. The rule it enforces is that verify.py is the last thing run before a commit and not merely a thing run before a commit.

The twelfth round: v0.1.15, and one defect that had already been fixed once

Everything built after the eleventh round, read before the release: the encrypted-volume work, the app lock as a key, the autolock, the releases page, the GnuPG commands and the ffmpeg pair.

One defect found and fixed (F-95), and it is the same defect as F-93 in the place that actually matters.

F-95 -- a vault locked after it was chosen still received the file

veilvoice-gui/src/storage.rs and app.rs.

F-93, found and fixed in this same cycle, was that the storage panel asked whether the destination folder existed when the question is whether anything is mounted on it: unmounting a volume leaves its mount point behind as an ordinary empty directory. That was fixed, tested, and written up.

It was fixed in the panel. The panel draws a warning. The file is written somewhere else, by Destination::place, and place never asked either question: it checked ready, which is about whether the hidden-volume question has been answered, and nothing else.

So the sequence that fails is the ordinary one. Somebody opens their VeraCrypt volume, chooses it, answers the hidden-volume question. Later they lock the volume. Nothing about the destination changes, because nothing about it has changed: the answer is still given, so ready is still true. The next veiled recording is written into the bare mount point, on the ordinary unencrypted disk, while its owner believes it went into the vault.

That is precisely the failure the whole feature exists to prevent, and it survived the fix aimed at it.

place now takes the mount list and consults it, and start_job reads that list at the moment of writing rather than using what the panel last saw. A job whose destination is no longer mounted is refused with a message naming the remedy, rather than quietly falling back to writing beside the source, which would leave the recording unencrypted somewhere else instead.

The lesson is the one already recorded twice, now three times. F-91 was written up as being about the app-lock file when it was about any file the program opens without being asked, and F-92 was the two other places. F-93 was written up as being about still_there when it was about every place that decides whether a vault is usable, and F-95 is the one that was missed. Fixing the instance in front of you and moving on is this project's most reliable source of second defects.

What would have caught it earlier: asking, for each fix, "where else is this decision made", and in particular "where is the value actually used", rather than "where was the symptom seen".

The round between: the code written an hour earlier

Two defects (F-93 and F-94), both found by re-reading the eleventh round's own output before it was released, and both in code that had been written, tested and documented that same afternoon.

This round is written up late. Both defects were found and fixed in their own commit, and both were described there in full, but neither was ever given an entry here. The audit is supposed to be the record of every finding, and for two of them the commit message was the only record. That is its own small finding, and it is why the twelfth round's account of F-95 refers back to an F-93 that this document never described.

F-93 -- an unmounted vault is still a directory

veilvoice-setup/src/volumes.rs and veilvoice-gui/src/storage.rs.

Destination::still_there asked whether the destination folder existed. A mount point is an ordinary directory with a filesystem grafted onto it, so unmounting takes the filesystem away and leaves the directory exactly where it was. A locked vault therefore looked fine.

The consequence is the one the feature exists to prevent: VeilVoice would have written a veiled recording onto the ordinary unencrypted disk while its owner believed it had gone inside an encrypted volume, and said nothing. The check that was meant to catch that failure was the thing that let it through.

It now asks whether the path is covered by something currently mounted, equal to or inside, so a folder chosen within a vault counts and a bare mount point does not.

F-95, in the next round, is this same defect in the place that actually writes the file. Fixing the panel did not fix the write.

F-94 -- a changed password did not change what was sealing new recordings

veilvoice-gui/src/security.rs.

Changing the app-lock password left the old passphrase sealing new recordings. The session copy taken at unlock is what encrypts each file, and changing the password replaced the verifier without replacing that copy. Somebody who changed their password and kept working would have produced a run of files that open only with the password they had just replaced, and been told nothing about it.

The session copy is now dropped on a change, and the message says both halves: lock and unlock to seal with the new password, and recordings already written still open with the old one. Saying only the first half is worse than saying nothing, because somebody who has been told their new password is now in use deletes the old one.

The lesson is about when to read rather than what to read. Both of these were in code written that same afternoon, by the same person, who had just finished testing it. Neither needed a tool, a campaign or a fresh pair of eyes: they needed the code to be read once more after the satisfaction of finishing had worn off.

The eleventh round: the code written after the tenth round

The tenth round was run last on purpose, on the grounds that an audit of code that is still moving is an audit of code that will not exist. Then roadmap items 74 to 79 were built, and three of them are security code: an authentication tag on the app lock, a second copy of it in a vault, and the integrity record moved into the window. New security code written after the audit is precisely the code an audit exists for, so it got its own round.

Eight defects found and fixed (F-85 to F-92), every one of them in code written in this cycle or reachable only because of it. Six were found by reading the diff; two came out of re-running the coverage-guided campaign, which the changed lock format made worth doing again.

Two of the six were worse than the thing they were added to improve, which is the pattern worth naming: hardening that fails open. A lock that could be orphaned by one refused read, and a spare copy that silently kept the previous password, are both worse than the plain single file they replaced.

The campaign, run again over all six targets

Ten minutes each rather than the tenth round's five, and all six rather than only the one whose format changed. 703,074,471 inputs. No crash, no hang, no out-of-memory on any target.

TargetInputs in 10 minutesArtefacts
container_header67,305one slow unit, which became F-92
lock_file1,280two slow units, both the class F-91 accepts
wav_chunks75,412,092none
wav_preflight291,305,857none
guard_manifest11,926,580none
hybrid_keys324,361,357none

The two crypto targets run four and five orders of magnitude fewer inputs than the rest, and that is the campaign working rather than failing. Both parse a header carrying Argon2id cost parameters, so an input that gets past the header checks costs a real key derivation: between one and nineteen seconds, measured under F-91. Everything else parses bytes and returns.

lock_file's 1,280 is the extreme, against 445,714 in the tenth round for the same target, and the reason is measurable rather than arguable. Thirty-six of the 53 corpus entries the campaign has kept now parse successfully, so most of what it runs reaches the derivation instead of being turned away. Fewer runs, deeper ones. The tenth round recorded the same relationship in reverse, when F-82 bounded an unbounded time cost and made this target 136 times more productive.

Three slow units, and the difference between filing them and reading them is this round's most useful lesson. libFuzzer flags any input taking over a second, and a deliberately slow key derivation taking over a second is the whole point of a deliberately slow key derivation, so the easy reading is that all three are noise. Two of them are: 518 MiB at sixteen passes, inside every bound, about five seconds. The third declared 640 MiB on the container target, and asking which callers reach that path without a person choosing the file turned a non-finding into F-92 and two real fixes.

What is still open, and it is the same sentence as before with better numbers behind it: ten minutes is not convergence either, no corpus is committed so every cold run rediscovers the structure, and nobody has run any of this on Windows or macOS.

F-85 -- one refused read would have orphaned the lock for ever

veilvoice-crypto/src/vault.rs.

The vault derives both file names from sixteen random bytes in an index file. Vault::at read that index and, on anything that was not a clean read of exactly sixteen bytes, drew a new value and wrote it. The comment beside it argued the case honestly enough: a damaged index has nothing to recover from, so there is nothing to lose by replacing it.

The argument is right and the code was still wrong, because the arm caught every other failure too. A read refused by permissions, a Windows sharing violation, an exhausted file-descriptor table: any one of them, once, and a new index would be written over a perfectly good one. The lock files would still be on disk, under names that nothing could ever compute again, and the user's app lock would simply be gone.

The fix is one match arm. Only ErrorKind::NotFound creates an index; every other outcome refuses and reports. A refusal costs a confusing session and loses nothing.

This is the class the whole round is about: a piece of hardening whose failure mode is worse than the thing it hardened. The plain file it replaced could not be orphaned, because its name was a constant.

F-86 -- the spare copy kept the previous password

veilvoice-crypto/src/vault.rs and lock.rs.

The second copy is written under /etc/veilvoice when VeilVoice is already running with enough privilege to put it there, which is the point: removing the lock then needs sudo. An ordinary run cannot write it, and store swallowed that failure deliberately, on the reasoning that the arrangement was working as designed.

It was, and the consequence was not designed. After veilvoice lock change from an ordinary run, the first copy holds the new password and the spare still holds the old one. Delete the first copy -- which anybody can, it is in the user's own directory -- and load restores from the spare. The lock reverts to the previous password. Somebody who knew the old password has a way back in, created by the feature that was supposed to make removal harder.

Three fixes, because one was not enough:

  • Vault::store returns whether the spare was written instead of discarding it.
  • LockStore::change_password returns Error::AppLockSpareStale when it was not, and both front ends print the one thing that finishes the change.
  • Vault::load compares the two copies' salt and verifier. When they differ it returns Found::Disagreed, prefers the copy the running program writes, and the disagreement is raised as a tamper report.

The third is what closes it rather than merely reporting it: reverting now requires the copies to agree, and they do not.

F-87 -- a spare that could never be written was reported as a deleted one

veilvoice-crypto/src/vault.rs.

load reported Found::Restored whenever one copy was missing, and the caller turns that into a standing tamper report that only the passphrase clears. On a machine where /etc/veilvoice exists but is not writable by the user -- created by a package, or by one earlier elevated run -- the spare is never written, so every launch found it missing, rebuilt nothing, and raised the alarm again.

An alarm that fires every time is an alarm nobody reads, which is the failure mode this project keeps writing tests against. Restored is now reported only when the rebuild actually reached the disk. A copy that cannot be written was never there; a copy that was there and went is evidence.

F-88 -- dismissing a warning cost three key derivations

veilvoice-crypto/src/lock.rs.

LockStore::acknowledge called unlock, which runs Argon2id at 256 MiB, and then AppLock::acknowledge, which calls verify, which runs it again -- and the store's own unlock inside that path made three. The better part of a minute on a slow machine to dismiss a message.

Functionality rather than cryptography, and it belongs in a security audit anyway: a control nobody will wait for is a control nobody uses, and the control here is the one that tells somebody their lock was interfered with. unlock has already proved the passphrase by the time the flag is cleared, so the second and third proofs are removed.

F-89 -- a power cut read as tampering

veilvoice-crypto/src/vault.rs and privatefile.rs.

Both copies were written by truncating and rewriting. A process that dies part-way through leaves a short file, a short file does not parse, and a copy that does not parse is treated as one somebody interfered with. A power cut during a save would have raised a tamper report, and the report cannot be cleared without the passphrase.

privatefile::replace_owner_only writes to a temporary file beside the destination and renames over it, which the operating system does as one step. The temporary is created owner-only and the rename carries that permission, so there is no moment at which the contents are readable by anybody else.

F-92 -- the same defect as F-91, in the two places it was not looked for

veilvoice-guard/src/manifest.rs and veilvoice-policy/src/policy.rs, found by decoding a slow unit the container_header target produced.

F-91 gave the app-lock file an unattended memory ceiling, on the argument that nobody chooses to open a file the program reads by itself at launch. The argument is general and it was applied to exactly one file.

Two others have the same shape. Manifest::open_sealed reads the integrity record, and this cycle's own roadmap item 75 made that automatic: it used to run only when somebody typed veilvoice guard check, and now the desktop application reads it at every unlock. Policy::open_sealed reads the sealed policy at a fixed path beside the plain one. Both used the generous four-gigabyte ceiling meant for a .veil somebody was sent and decided to open.

So anybody who can write the configuration directory can leave a sealed manifest declaring four gigabytes of Argon2 memory, and every unlock from then on allocates it. On a modest machine that is an allocation failure, and this workspace aborts on one, so the window dies immediately after a correct passphrase is entered. Both now pass UNATTENDED_MAX_M_COST, which is one gigabyte and four times what either ever writes.

The general lesson is the one this project keeps relearning and has now recorded three times: a fix applied to the instance that was found, rather than to the class, leaves an exclusion list that names the files somebody happened to think of. F-91 was written up as being about the app-lock file. It was about any file the program opens without being asked, and the sentence that would have found these two was already in container.rs, describing when to use open_with_password_within.

What made the difference was decoding the artefact rather than filing it. The campaign reported a slow unit on container_header, not a crash, and the easy reading is that a slow Argon2 is Argon2 working. Reading the actual cost out of it, and then asking which callers reach that path without a person choosing the file, is what turned a non-finding into two.

F-91 -- a lock file could ask for more memory than the machine has

veilvoice-crypto/src/lock.rs, found by the coverage-guided campaign after the format changed.

The parser validated the Argon2id costs with KdfParams::checked, which permits up to four gigabytes of memory. That ceiling is deliberate and right for a container: somebody chose to open that file, it is slow, and they can decide to stop waiting. KdfParams::within exists for the other case and its own documentation names it exactly: "a caller running without a human present, anything processing files it did not choose".

Nobody chooses to open an app-lock file. It is read at launch, before anything has been authenticated, and on a modest machine four gigabytes is not a wait, it is an allocation failure, and this build aborts on one. The window would fail to start with no way in.

The campaign produced a header declaring 1,664 MiB, with sixteen passes and thirty-seven lanes, and libFuzzer flagged the unit as slow. Nothing crashed, which is why this had gone unnoticed through two previous campaigns: the finding is a permitted value, not a bug in handling one.

Two things make it worth fixing now rather than accepting as before. The lock file is the only file this program parses before anybody has authenticated, so it is the only place where the attended argument does not apply at all. And the recovery is harder than it was last round, by this cycle's own doing: the vault derives its file names rather than using a fixed one, so "delete the lock file and start again" now needs the index read first. Hardening raised the cost of recovering from a hostile file, which is a reason to make the hostile file refusable rather than a reason to leave it.

The parser now uses within(UNATTENDED_MAX_M_COST), which is one gigabyte: four times what this program has ever written into one of these files.

Measured on this machine, in a release build, rather than reasoned about:

WhatCostTime
The default this program writes256 MiB, t=3, p=41.07 s
The worst a lock file may now declare1024 MiB, t=16, p=419.30 s
The unit libFuzzer flagged after the fix262 MiB, t=16, p=374.78 s

So the fix moves the worst case from an allocation this build aborts on to a wait, which is what within documents itself as buying and is the honest description of it. Nineteen seconds to be told the password is wrong is a hostile file doing real damage to somebody's day; it is not a lock-out, and the owner can still get in and change it.

The campaign flags the second slow unit as slow too, and that one is accepted: 262 MiB at the maximum sixteen passes is under five seconds and Argon2 taking seconds is the entire point of Argon2. A ceiling tight enough to catch it would be tight enough to catch a legitimate lock somebody deliberately made expensive. The number of passes is already bounded at sixteen by F-82.

F-90 -- setting an app lock never upgraded the integrity record

veilvoice-gui/src/integrity.rs.

The record of VeilVoice's own files is sealed under the app-lock passphrase when there is one and written in the clear when there is not. Somebody whose first launch had no lock got the plain record, and setting a lock afterwards never replaced it: the sealed path only ran when a sealed file already existed. They had done exactly the thing that earns the sealed record and kept the readable one, with the interface telling them which they had and nothing telling them how to change it.

The upgrade now happens on the first unlock that finds a plain record, and only after the check against it has come back clean. Sealing a record that no longer matches the files would seal somebody else's version of them and stamp it authoritative, which is the same failure as F-85 in a different place: the recovery path doing the attacker's work.

The tenth round: security, functionality, and what it costs to run

The round asked for before the next deploy, covering all three and run last on purpose: an audit of code that is still moving is an audit of code that will not exist.

One defect found and fixed (F-84), and one measured inefficiency removed.

The mechanical checks, all of them

Every claim this project makes that a machine can test, tested:

ClaimHow it was checkedResult
No unsafe, in any crateevery lib.rs and main.rs for #![forbid(unsafe_code)], then a sweep for the keyword26 of 26, none found
It talks to no serversthe whole dependency graph for an HTTP clientnone
veilvoice-priv only reportsthe guard test that names every subprocess the crate startstwo probes, both read-only
The parsers survive hostile inputthe coverage-guided campaign, six targets, five minutes each293 million inputs, nothing found
Every generated file matches its generatortools/verify.pyall fourteen checks pass
Every picture keeps its words insideimages.test.js4,958 pieces of text in 492 drawings
The tests hold where a pointer is 32 bitsi686 and armv7682 tests each, no failures

The campaign is the one worth dwelling on, because the number changed for a reason. Last round lock_file managed 3,274 inputs in five minutes; this round it managed 445,714, which is 136 times more. That is F-82's fix: with no ceiling on the number of Argon2 passes, most of that target's five minutes went into a handful of absurd derivations. Fixing a denial of service made the campaign that found it two orders of magnitude more productive, which is worth knowing the next time a bound looks like a formality.

F-84 -- the preview said "nowhere else" before it knew where

veilvoice-cli/src/main.rs and veilvoice-gui/src/app.rs, both in code written this cycle.

--preview exists so somebody can hear their own veiled voice before an interview rather than during one, and it printed:

Preview. The veiled voice goes to this machine's output and nowhere else.

It printed that before naming the device, and it is not always true. --preview --output <a cable> keeps the cable, because an explicit choice is honoured. And a machine whose default output is a virtual cable does the same thing without being asked, which is not a strange configuration: somebody who routes their audio through one may well have set it as the default. In either case whatever is listening on that cable hears the preview.

A false reassurance in the one place somebody is checking their setup is worse than none, because checking is exactly what they came there to do. The claim now comes after the device, names it rather than the machine, and when the device is a cable it says so outright and says what to do instead. The desktop application made the same claim in a notice and now makes the same check.

Not a confidentiality failure, and it is the same shape as one: a sentence that tells somebody a thing is private when the code has not established that.

The optimisation pass: 43.6 per cent of the search index was drawings

Measured rather than guessed. website/search-index.json was 4,779,645 bytes, of which 3,903,419 was excerpt text, of which 1,700,062 was generated SVG markup and copies of assets. Every byte of it is downloaded by every reader who uses the search.

It bought them nothing. All 536 SVGs in this repository are produced by a generator and carry a roadmap item saying so; not one is hand-written prose. The words inside a drawing are the words of the document it was drawn from, which is indexed at that document, and a search result pointing at an SVG file is a result nobody can use.

The argument is not new. It is written at the top of tools/search-index/generate.py about the crate documentation, in those words, and it was applied to the banners and not to the diagrams. That is how 43.6 per cent accumulated without anybody deciding on it: an exclusion list naming the files somebody thought of.

The index is now 2,532,102 bytes, 47 per cent smaller, and 749 KB rather than 918 KB over the wire. The rule is a property of the file rather than a list of paths: a .svg is a drawing, and drawings are not indexed. Search still returns 63 results for "voiceprint" and the first is a document.

What this round did not do

No outside review, which is the entry at the top of "still open" and remains the largest gap. No fuzzing on Windows or macOS. No profiling of the audio engine, which needs a machine with a microphone and is where an optimisation pass would find real numbers; the pass here measured what a reader downloads, because that is what this machine can measure honestly.

This round

Ten defects found and fixed (F-74 to F-83.) Three are in the security crates written since the eighth round and none of those has shipped: main carries them and they are not in v0.1.14. One is on the published front page and has been there for as long as the count has. One is in the test suite itself, where it had been passing four runs in five. Three shipped in the installer and the package definitions. And two are in the cryptography and the tamper record, both reachable from a file somebody sends you, both shipped, and both found by running the coverage-guided campaign that this document had listed as built and never run.

This round covers what was added after it: Failsafe, the application baseline, the privilege report, the hardware detection, the decoy passphrase, and the desktop application's file dialogs and notifications.

All four are the same failure in different clothes: trusting an answer that was never given. F-74 trusted a process id to still mean what it meant a moment ago, and then trusted an exit code that is returned unconditionally. F-75 trusted a file's default permissions to be appropriate for a security setting. F-76 trusted a name in the process table to mean the program is running. F-77 trusted one machine's measurement to be a fact about the tree. F-78 trusted a test that passes to mean a test that holds. F-79 trusted another program's error message to be readable in the middle of this one's output. F-80 trusted a recipe nobody had run. F-81 trusted six files to keep up with a number that had moved five times. F-82 trusted a number in a file to be a number of passes somebody would wait for. F-83 trusted a path in a record to be a path rather than a way of rewriting the report that prints it. None would have been found by reading the code. F-74 was found by writing a test that killed a real process and watching what it actually did; F-76, F-77 and F-78 by running that same suite on a second operating system, where one test failed, one number came out different, and one test failed only sometimes; F-79 by running the installer on that machine; and F-80 and F-81 by building a package, which are three things this document had listed as never done.

F-83 -- the tamper record refused to write what it was happy to read

veilvoice-guard/src/manifest.rs. Manifest::of refused to record a path containing a line break. Manifest::parse accepted one. So VeilVoice would not write a record it was perfectly willing to read from somebody else, and veilvoice guard check reads whichever file is at the path it is given. A record is exactly the kind of thing that gets handed to you.

Found by the coverage-guided campaign, which produced a manifest whose recorded path contained a carriage return.

What that costs is not theoretical, and it is not about parsing. The entire product of this module is a report somebody reads to decide whether their files have been altered, and that report is printed to a terminal. A carriage return returns the cursor to the start of the line, so everything already printed is overwritten by whatever follows it: a crafted path makes the report say something other than what is recorded. An escape character does more again, and can colour, move the cursor, or clear the screen. A tamper report that can be made to lie is the feature failing at the only thing it does.

Both ends now refuse the same thing, and they refuse the whole C0 and C1 control range rather than the two characters that were found, because listing the ones somebody thought of is how the next one gets in. Refusing rather than stripping is deliberate: a path this format cannot represent faithfully is one it must not claim to hold. Such a filename is legal on Unix and vanishingly rare, and being told so is better than a record that quietly describes a different file.

The asymmetry is the thing to hold rather than the character list, so the test asserts it directly: what of will not write, parse will not read.

F-82 -- a header could ask for four billion passes, and get them

veilvoice-crypto/src/kdf.rs. The Argon2 memory cost has had a documented ceiling since F-2 and F-3, with a long note explaining that m_cost arrives from the file, that Argon2 allocates it before doing anything else, and that a header claiming u32::MAX asks for four terabytes. The time cost had a test for zero and nothing else.

Nothing overflows and nothing allocates, so every check passed. The derivation simply did not finish.

Found by the coverage-guided campaign, which produced a header declaring m_cost 65535, t_cost 4,521,984 and p_cost 1280. Every existing test that header would meet says it is fine: the arithmetic is in range, the memory is under the ceiling, and m_cost >= p_cost * 8 holds. Measured in a release build: about 74 hours. That is not the worst case, only the one the fuzzer happened to reach; u32::MAX passes at the same memory is roughly eight years.

It matters in two places and the second is worse. A .veil file is something somebody sent you, and merely attempting to open it hangs the program. The app-lock file carries the same three numbers and is read before anyone has authenticated, so anything able to write it could stop VeilVoice from starting, for ever, with no error and nothing to see. That is precisely the argument the memory ceiling already makes, and nobody had made it about time. The campaign found it through both doors independently, producing a lock-file input declaring 1,279,870,294 passes.

MAX_T_COST is 16, enforced in checked, the single funnel every derivation passes through, so it holds for the container, for the app lock and for anything built against these crates. Chosen by measurement rather than by feel: RFC 9106's two recommended profiles use one pass and three, libsodium's most expensive preset uses four, and this crate's default is three, so 16 is four times the highest of them. At the memory ceiling it is 75 seconds and at the unattended ceiling 18. The most expensive header this build accepts is now a wait somebody can sit through.

One ceiling, not two. The first attempt also put a tighter one inside KdfParams::within, which is wrong: within is on the attended path as well, since open_with_password is the same call with a larger number, so it would have refused a container a person had deliberately chosen to open. Caught by noticing that the regression test still passed with MAX_T_COST raised to u32::MAX, which meant something else was doing the refusing.

The exact bytes are now a regression test in crates/veilvoice-crypto/tests/parser_fuzz.rs, where they run on every commit on every platform with no nightly toolchain. It is written with a deadline on a thread rather than a stopwatch around the call, because the defect is a hang: a test that times the call after it returns cannot fail, it can only never finish, and a test that hangs says less than one that fails in five seconds and names the reason.

F-81 -- every package definition was five releases behind

packaging/. Six files name a version. All six said 0.1.9 while the workspace was at 0.1.14.

What that meant, per file, rather than as a general complaint: brew install --build-from-source would have fetched and compiled the v0.1.9 tarball; flatpak-builder would have checked out the v0.1.9 tag; the AppStream metadata would have told a software centre that 0.1.9 is the newest release there is; and rpmbuild with no --define would have built a package stamped 0.1.9 from whatever source it was pointed at. Two of the commands printed in docs/PACKAGING.md for a reader to copy carried the same number.

Nobody had noticed because nobody was looking. This is the shape the repository keeps finding: F-41 was generated output drifting from its generator, F-61 and F-63 were comments that had stopped being true, F-71 was two hand-typed numbers agreeing with each other. Here it is six files agreeing with a number that had moved on without them, in the one directory this document had already recorded as never having been built or run.

All six are at the workspace version, and tools/site-tests/packaging.test.js compares nine version claims against [workspace.package] in Cargo.toml and fails the build when any of them disagrees. Verified by putting the old version back in one file and watching it fail, rather than by assuming a new test tests anything.

The AppStream file lists the newest release only. Listing every release means a date beside each one, and the dates between 0.1.9 and 0.1.14 are not recorded anywhere this file could be generated from. An invented date is the kind of unchecked claim this project refuses everywhere else.

F-80 -- the documented way to build the Debian package could not run

packaging/debian/, and the recipe in docs/PACKAGING.md. Two things, either of which stops it before any compilation begins.

There was no debian/changelog. dpkg-buildpackage reads the package's version out of that file and refuses to start without it: error: cannot open file debian/changelog. The recipe copies packaging/debian into place and runs the build, and nothing in either creates one.

And packaging/debian/rules was tracked as mode 100644. dpkg-buildpackage runs debian/rules directly, so it has to be executable, and the mode git records is the mode everybody who clones gets.

So the printed recipe failed on its first command for anybody who tried it, and docs/PACKAGING.md said "not built" without saying "and it cannot be". The first is honest about the outcome; it is not the same as knowing the route is broken.

Both are fixed and both are now checked, the mode through git ls-files -s rather than through the filesystem, because that is what other people clone.

With those two in place it builds, and the row in docs/PACKAGING.md moves from no to yes. veilvoice_0.1.14-1_amd64.deb and veilvoice-gui_0.1.14-1_amd64.deb, both installed with dpkg -i, the installed veilvoice --version reporting 0.1.14, veilvoice info and veilvoice-verify --help running, and both removing cleanly. The release build and cargo test --release --workspace ran as part of it, because that is what debian/rules does.

One machine, x86-64, Ubuntu 24.04, with a rustup toolchain rather than Debian's own cargo and rustc packages, which is why -d was needed to get past dpkg-checkbuilddeps. lintian has not been run and nothing has been uploaded anywhere. That is written into docs/PACKAGING.md beside the yes.

F-79 -- a security step that printed somebody else's error above its own "ok"

install/install.sh, and the same place in install/install.ps1. The signing key is fetched from the website, and from the repository if the website does not answer. A failure of the first is not a failure at all, which is the whole reason there are two addresses.

But fetch is curl -fsSL, and -S prints curl's own message on stderr even in silent mode. So on a machine where the first address does not answer, what a reader saw was:

==> Checking the signing key's fingerprint
curl: (22) The requested URL returned error: 403
  ok   fingerprint matches 8101FB3BB28D02FB239E0CDF9CC1C7E7A9B5833A

An error from another program, inside the step that anchors every other check in the script, immediately above the word ok, with nothing to say those two lines are about different things. The check had in fact passed. Somebody reading that output has to know how the script is written to know that.

Measured on a machine whose network refuses tilas01.github.io and allows raw.githubusercontent.com, which is an ordinary situation rather than a contrived one: a filtering proxy, a restricted network, or GitHub Pages being down for a few minutes.

The first attempt's own output is now suppressed and replaced with a line in the script's voice saying which copy it is falling back to. The final failure stays loud and still names both addresses. The PowerShell installer never printed the raw error, because its fetch swallows the exception, but it also never said it had fallen back; it says so now.

This one shipped. It is in v0.1.14 and in every release with an installer before it. It is not a verification failure, and that distinction is worth keeping: no check was skipped and nothing unverified was installed. What failed was the script's account of itself, in the one place where a reader is being asked to trust a chain of checks they cannot see.

F-78 -- four tests shared one global and could undo each other

veilvoice-gui/src/theme.rs. The active theme is a process-global AtomicUsize, which is right: it is read on every repaint and an atomic load is what that path can afford. Four tests in the module read and write it, and cargo test runs the tests of one crate on parallel threads in one process.

Nothing kept them apart. So switching_theme_changes_the_palette_and_the_visuals could set the theme to paper, and another test could put the index back to zero before the assertion that the palette had changed, and the palette had not. A third stores usize::MAX deliberately, to prove an impossible index saturates rather than panics, and any test reading the palette while that value was in place saw the last theme in the table instead of the first.

Measured: one failure in forty runs of that module alone, and it fired for real in a full-workspace run, where more threads are competing. The tests that touch the global now take a mutex in turn, and sixty runs after that produced no failures.

The reason this is written up rather than quietly fixed is what a flaky test does to everything else. A suite that fails one run in forty teaches the person running it that a red result means run it again, which is precisely the habit that lets a real failure through. This project's argument is that its claims are checkable; a check that answers differently on different runs is not one.

A sweep for the same shape across the tree found no second instance: this is the only test module in any crate that writes process-wide state.

F-77 -- a count the front page states was measured on one machine only

The front page says a number of tests, docs/AUDIT.md says the same number, and both are checked against docs/MEASURED.md, which is generated by actually running the suite. That arrangement was built to end F-71, where two hand-typed copies of a claim agreed with each other and both were wrong, and it does end it. What it does not do is make the number a fact about the tree.

Measured: the same commit reports 996 tests on Windows and 988 on Linux. Nine tests are compiled only on Windows and are simply not there elsewhere. So a reader on Linux who does the thing this project keeps inviting them to do, which is check the claim rather than believe it, runs cargo test --workspace, counts 988, and finds the front page saying 996.

The number is not wrong so much as unqualified, and an unqualified number reads as a property of the code. This is the same class as the findings above it: a claim that is true about the thing that produced it and is presented as true about something larger.

docs/MEASURED.md now carries the host triple the count was taken on, and says in its own header that the total differs by platform and by how much. The number itself stays measured rather than typed, and whoever regenerates it leaves their platform beside it.

What this does not fix. The count on the published page is still one platform's, and which platform depends on who last regenerated it. Wording it so that it is true wherever it is read is a change to the front page's own voice and is the maintainer's to make; it is listed under "still open" below rather than done quietly here.

F-76 -- a program that had died was reported as still running

veilvoice-failsafe/src/act.rs. F-74's fix asks the operating system, twice, whether a process id still belongs to the program it is about to close, and then asks again afterwards to find out whether the close worked. On Unix that question was asked by name, and the name is the wrong question.

A process that has exited keeps its id and its name until its parent collects its exit status. Measured on Linux, on a child this project's own test suite started: after kill -TERM, /proc/<pid>/comm still reads sleep, ps -p <pid> -o comm= still prints sleep and still exits 0, and the only field that has changed is the run state, which is now Z.

So the check answered "yes, still there" about a program that was already dead. close then waited out its whole retry loop, about two and three quarter seconds, and told the reader to go and close by hand a program that had closed itself at the start of it. That is F-74's false report in the other direction. F-74 said it had closed something it had not; this said it had failed to close something it had. Both are a safety catch describing an event that did not happen, and the second one sends somebody looking for a window that is not there while the real one, if there is one, goes unmentioned.

The state is now read first, from /proc/<pid>/stat where it exists and from ps -o state= where it does not, and a process that has ended counts as gone, because it has. A ps with no state column falls back to the name check rather than to a refusal, so a platform without it loses the extra check and not the feature.

This was found by running the suite on Linux, where it failed two tests that pass on Windows. That is the eighth round's F-72 happening again in the same place: a test whose result depends on the platform it is run on is only evidence about that platform. The Windows process table drops a terminated process at once and has no equivalent state to be caught by, so no amount of running it there would have shown this.

F-74 -- Failsafe could close the wrong program, and say so either way

veilvoice-failsafe/src/act.rs. Two defects in one path, and the second is the worse of them.

A process id is not a durable handle to a program. Between the scan that finds a program holding a microphone and the line that closes it, that program can exit and the operating system can hand its id to something else. Closing by number alone would terminate whatever inherited it. The window is small and it is not theoretical: this feature exists to fire while somebody is plugging things in and programs are starting and stopping, which is exactly when ids are being recycled.

And taskkill exits 0 whether or not it killed anything. Measured: given a filter that matches nothing it prints INFO: No tasks running with the specified criteria and returns success, indistinguishable from a real termination. The code checked status.success(), so Failsafe would have recorded "closed Discord (process 4812)" in its log while Discord carried on sending audio. That is the worst sentence a safety catch can produce: it is not a failure to act, it is a false report of having acted, and the whole feature exists for the case where nobody is watching the window.

The name now travels with the kill. On Windows taskkill is given /FI "IMAGENAME eq ..." as well as the id, so the check and the act are one operation rather than two with a gap; measured, a mismatched name leaves the process running. Elsewhere the name is checked immediately before, which narrows the window rather than closing it, and that is said rather than implied. Where the check cannot be answered at all, the answer is no: not closing something is recoverable and closing the wrong thing is not.

Afterwards the process is looked for again, with a short backoff, and a kill that did not kill reports so. The test that found this closes a real process it started; the version of it that passed a made-up name now correctly fails to close anything, which is how the fix was confirmed.

F-75 -- the application baseline was written world-readable

veilvoice-cli/src/appctl.rs. veilvoice appctl records what normally runs on this machine and writes it with std::fs::write, which takes the default permissions.

That file decides what counts as ordinary, which makes it a security setting rather than a convenience. Another local account could add a line and have a program of their choosing treated as unremarkable for ever, or simply read it to learn exactly what runs on this machine and when.

This project already has one place that gets file permissions right, and the part that matters is that it sets them as the file is created rather than afterwards: a file that exists for even a moment with the wrong permissions is a file somebody else's program may have read in that moment. The baseline now goes through it.

The eighth round

Eight defects found and fixed (F-66 to F-73.) Seven had not shipped. F-73 had: the randomised ratchet interval was implemented, documented as being used, and called by nothing, so every released copy rolled on the same fixed two-second period. It is the first defect in three rounds that was in a shipped release rather than in work in progress, and it was found by looking for a function's callers rather than by reading it.

Two of the seven were found by continuous integration rather than by anybody's judgement, and both had been watched to pass on the machine they failed on. That is the round's real lesson: the checks that matter most are the ones that run somewhere the author is not.

This round covers what was added after it: the measured voice limit and the one-voice-for-everybody mode, saved projects and application profiles, the table of communication programs, and the build-and-reproduce half of the verifier.

Both are the same shape as most of the last round, and it is worth naming: a piece of code answering from a default rather than from the state actually in force. F-66 wrote a value that had trimmed away to nothing and read it back as a different thing than was saved. F-67 computed a group render -- and the speaker limit shown beside it -- from DeidConfig::default() while the person had set the strength and the accent work somewhere else in the window.

F-67 is the serious one, and it is the kind this project's second rule exists for. Somebody who set the strength to its highest, turned accent neutralisation on, and then rendered a group conversation got a render at the default strength with the accent work off. Nothing in the window said so; the controls were on a different tab, and the group panel had never been given them. That is software quietly doing less than it says, which is the failure this whole tree is written against.

F-73 -- the randomised ratchet was written, documented, and never called

veilvoice-core/src/chain.rs, and both front ends. DeidConfig::reseed_range_ms replaces the fixed roll interval with one drawn fresh before every roll, so the ratchet has no period to observe. with_random_reseed_range draws that range from the OS CSPRNG. Both were implemented, both were tested, and the field's own documentation said:

Not part of DeidConfig::default, which stays deterministic so the test suite does. The front ends call DeidConfig::with_random_reseed_range at launch, which is what makes the shipped interval something other than a number compiled in.

Nothing called it. with_random_reseed_range appeared three times in the whole tree: its definition, that sentence, and one test of itself. So every shipped copy of VeilVoice rolled the modulation seed every two seconds exactly -- a number compiled into the binary, which is precisely what the sentence said was not happening.

What it is worth is small and real. The ratchet is forward secrecy, not irreversibility: the many-to-one mapping is what destroys the voiceprint, and it does not depend on the ratchet at all. A predictable roll period does not make a voice recoverable. What it gives an observer is a clean segment boundary every two seconds in every recording VeilVoice has ever produced, in every copy, which is a property of the program rather than of the session -- and removing that is the entire reason the feature was written.

What makes it worth an entry is the shape. This is the fourth defect in two rounds where a sentence was true about the design and false about the code, and the first where the sentence described work that had been finished and simply never wired up. Nothing was broken; a call was missing. Reading the module would not find it, reading the tests would not find it -- the feature had a passing test -- and it took looking for the callers of a function to notice there were none.

A comment cannot be tested, so the fix tests the code the comment is about: a test reads both front ends' source and fails the build if the call is not there.

Roadmap item 28 was completed alongside it, since the engine half already existed: the interval is now user-configurable, and anything that is not a usable range is refused with the reason rather than clamped. Six distinct refusals -- not two numbers, not a number, not positive, backwards, too short, too long -- each naming which end was wrong and what the bound is. Clamping would leave somebody running on a setting they did not choose and cannot see, which for a control whose whole purpose is unpredictability is the worst available failure.

F-72 -- three tests passed on this machine and failed on the same platform

veilvoice-verify, veilvoice-guard, veilvoice-gui, veilvoice-watch. Several tests read this project's own source with include_str! and search it -- for a forbidden call inside one function's body, for an ungated println!, for a probe that looks up a program by name. They locate a function's end by finding "\n}\n".

They passed locally and failed on GitHub's Windows runners. Not on a different platform: on the same one, minutes after being watched to pass. This machine has core.autocrlf=input, so its checkout uses LF; GitHub's Windows runners default to core.autocrlf=true, so theirs arrives with CRLF, the pattern matches nothing, and .expect("its end") panics.

There was no .gitattributes, so the line endings of a checkout were whatever each contributor's git happened to be set to.

The tests are the small half. The serious half is the generators. Every artefact here is regenerated and compared byte for byte by tools/verify.py, and every generator writes LF unconditionally. A contributor whose git converts text on checkout would find every --check failing on files they had never touched, with a diff that shows nothing, on their first run -- and the natural conclusion is that the repository is broken rather than that their git is configured differently. Nothing in the tree said otherwise.

So .gitattributes pins text to LF for everyone, names the binary formats explicitly rather than trusting detection to guess right on a .wav, and says in the file why. The source-reading tests normalise as well, because a test that depends on a git setting is a test somebody will trip over on a machine nobody here owns.

Three guards, and the second is the one worth having:

  • Every include_str! in a test file must be followed by the normalisation, or the suite fails and names the line.
  • The failure mode is a test of its own: a search for "\n}\n" is asserted to succeed against LF and to fail against CRLF, so it is on record as reachable rather than as a story about it.
  • .gitattributes is read from a test and must pin eol=lf, because nothing else in the build would notice it being deleted.

Written the first time, the first guard matched its own detection line and reported itself as the defect. Its needle is assembled at run time now.

F-71 -- the guard against stale claims compared one copy to another

tools/site-tests/css.test.js. The front page said 354 tests and "no unsafe code, in any of the nine crates". The tree held 890 tests across 19 crates. docs/AUDIT.md said "354 tests across 9 crates, plus doctests and 10 site-test suites"; the runner runs 11.

The part that makes this a defect rather than a stale line is that a guard existed and passed. It was written after an earlier round of exactly this drift, and its own comment says so:

It said "336 tests" and "47 defects across four audit rounds" while the tree had 354 and 59. [...] Everything else in this repository that makes a claim is generated and checked; this was the one place claims were hand-typed with nothing watching them.

And then it chained one hand-typed number to another: it compared the front page against docs/AUDIT.md and failed only if the two disagreed. Both were typed by the same hand at the same time, so both drifted together and the check reported success for four rounds. A check that compares one copy of a claim against another copy agrees with itself. That is the same defect as F-61 and F-63 -- a statement that was true when written, with nothing tied to the thing it describes -- arriving for the third time in two rounds, this time inside the control written to prevent it.

The numbers now come from the tree. tools/measured/generate.py writes docs/MEASURED.md: the test count by running the tests, the crate count from Cargo.toml, and the suite count from run.js's own list. Every claim in the page and in this document is compared against that file, and the generator runs inside tools/verify.py before the suites that read it.

Three details, each of which is a way this would have failed again:

  • The test count is measured, not counted. A static count of #[test] gives 903 against a measured 890: some tests sit behind features that are not on by default. Counting the attribute would have produced a new wrong number with a new reason to trust it.
  • **The suite count comes from the runner's list, not from a directory listing.** A suite file that exists and is not in SUITES does not run, and counting it would state a number nobody gets.
  • Spelled-out numbers are refused. "the nine crates" is exactly how this drifted with nothing noticing, because no check can compare a word. The suite now fails if the crate count is written as a word.

The guard was checked by breaking it: the page's test count was set back to 354 and the suite failed with "the front page's test count says 354, the tree measures 890", then passed again when restored. A control nobody has watched fail is a control nobody has tested.

F-70 -- the reproducibility checker would have said no to everybody

veilvoice-verify/src/builder.rs. The build ran cargo build --release --workspace --locked and nothing else. No --remap-path-prefix, no SOURCE_DATE_EPOCH, no per-linker determinism flag, and no --target.

Every one of those is set by .github/workflows/release.yml when the published binaries are built, and docs/REPRODUCIBLE_BUILDS.md has said since before this checker existed that reproducibility depends on the build environment setting them. So the comparison was decided before it ran: a user's build would differ from the published one every time, and the tool would tell them so.

Measured rather than reasoned about. Two builds of this tree, in two target directories on this machine, with the checker as first written: three binaries, three different hashes. The cause is the dull one the module's own documentation already listed -- the absolute path of the source tree is baked into panic messages and debug info, so a build in one directory and a build in another cannot be the same bytes.

The severity is not in the code. It is in what the tool would have taught the one reader who took the trouble to build from source: that the release does not match its source. A checker that always answers "not reproducible" is worse than no checker at all, because the next time it says so for a real reason, that reader has already learned to ignore it. This is the second rule of the project -- never overstate what the software does -- failing in the other direction, and it is worth recording that the other direction exists.

It now reproduces the release environment rather than approximating it: the same remapping for the source tree and for CARGO_HOME, the same SOURCE_DATE_EPOCH taken from the commit being built, /Brepro on MSVC and -no_uuid on ld64, and the same explicit --target -- which also moves the output down one level, so F-69's directory question had to be answered again.

Three details worth keeping:

  • The remapped path is the one the compiler is given. Not std::fs::canonicalize, which on Windows returns an extended-length path beginning \\?\. Cargo never hands rustc that form, so a remap built from it matches nothing and does nothing, silently, with every check still passing. The release workflow records the same failure on macOS, where /tmp canonicalises to /private/tmp; this is the same trap through the other platform's door.
  • RUSTFLAGS is set, not appended to. A value inherited from the terminal is a value the published build did not have.
  • Outside a git checkout there is no commit date, and it says so rather than substituting one. An invented timestamp would make the build differ from the published one for a brand new reason.

A third remap had to be added, and finding it needed the measurement. With the source tree and CARGO_HOME remapped, two builds gave two identical binaries and one that differed: veilvoice-gui. The cause is OUT_DIR, which lives under the target directory and reaches a binary through a build script. The release workflow never meets this, because it builds into target/ inside the source tree it is already remapping, so OUT_DIR is covered for free -- and a checker that compares two builds in two separate target directories does not get that for free. Without it the tool would have reported a difference caused entirely by where it chose to put its own build output: not a false negative it inherited, but one it manufactured.

Measured at each stage, on this machine, two builds in two target directories:

veilvoiceveilvoice-guiveilvoice-verify
As first writtendiffersdiffersdiffers
Source and CARGO_HOME remappedidenticaldiffersidentical
Target directory remapped as wellidenticalidenticalidentical

Every setting is printed before the build. A test compares the flags against release.yml itself, so changing one without the other fails the build.

F-69 -- the build succeeded, and then looked for it in the wrong place

veilvoice-verify/src/builder.rs. After running the release build, the tool hashed what came out of root/target/release -- a path it computed rather than asked for. CARGO_TARGET_DIR in the environment, build.target-dir in a .cargo/config.toml, and a target directory shared between checkouts all move it, and none of those are exotic. The machine this was written on has the first one set.

The shape of the failure is the interesting part. The build ran. It took several minutes and it succeeded. Then the run ended with

  ok    the build finished

FAILED: the build left nothing to hash
  .\target\release is not there

and exit status 3. Correct work, thrown away, reported with a message pointing at a directory that was never going to exist -- and reported as incomplete, which is at least honest, but only by accident: nothing in the code knew it had guessed.

It now asks cargo metadata, which is the only thing that knows. The JSON is read by hand rather than by taking a dependency for one field, and the escapes are undone properly, because the field is a Windows path and a value taken between the first two quotes yields C:\\Users\\... -- a path that looks almost right and does not open. Malformed input, an unterminated string and a non-string value all give None rather than something plausible.

The test is written against the environment rather than against a fixture: the suite itself runs with CARGO_TARGET_DIR set, and OUT_DIR is inside the real target directory whatever it is, so a function that went back to guessing would disagree with reality inside its own test run.

Three of this round's four are the same mistake, which is worth stating plainly. F-67 answered from a default configuration instead of the one in force. F-68 answered from a program that shared a name with the right one. F-69 answered from a path that is usually correct. None was a logic error and none would have been found by reading the code -- each was found by running it and looking at what it said. That is the same lesson as F-37 and the fifth round's install-script defects, arriving for the third time.

veilvoice-verify/src/deps.rs. The Windows probe for a C linker looked for link on PATH and reported whatever came back. On the machine it was first run on that was C:\Program Files\Git\usr\bin\link.exe -- GNU coreutils' hardlink utility, which shares a name with Microsoft's linker and has nothing whatever to do with building Rust.

So the dependency report said A C compiler and linker found and named a path that looked entirely convincing, on a machine where a build would then have stopped with a linker error. A probe that answers from the wrong program is worse than no probe: absence would have produced a useful answer, and this produced a confident wrong one.

It is in this document rather than in a commit message because of how it was found. It was found by running the command and reading the path it printed -- the same route as F-37 and as the three install-script defects in the fifth round, and not a route any test was going to take. Nothing was wrong with the code as written; which("link") did exactly what it says. The mistake was believing a name.

There is no honest probe here, and that is the fix. link.exe is only on PATH inside a Developer Command Prompt, cargo locates MSVC through the registry instead, and any link that is on PATH is more likely to be something else. It now returns "could not tell", in those words, with the reason -- and [Presence::Unknown] was already distinguished from [Presence::Missing] precisely so that an unanswerable probe does not become an offer to install something that is already there.

F-67 -- the group panel rendered with the default settings, not yours

veilvoice-gui/src/group.rs. Every question the panel answered about voices -- how many speakers it would allow, which mode it would let you switch to, what a profile could be applied to, and the render itself -- was computed from DeidConfig::default(). The application's own settings, which is what the rest of the window acts on, were never handed to it.

It is wrong twice over.

The render is the serious half: render_now built its Settings from the defaults and overrode only the sample rate, so the intensity, the accent configuration and the reseed interval that had been chosen were all discarded. A group render was weaker than the one that was asked for and reported success.

The limit is the quieter half. voices::clear_voices depends on the frame grid, because a coarser grid snaps destination pitches onto wider steps and collapses registers onto each other. Under a configuration where fewer than eight voices stay clearly apart, the panel still printed "8" and still let eight people be added -- and two of them would have shared a voice, discovered only by listening to the finished recording.

The panel now carries the configuration, copied from the application before anything is painted, and uses it for all four. The regression test moves the frame size to something that genuinely lowers the count and checks that the number the panel prints and the number it enforces both follow -- a test that would pass against the old code if it only checked the default.

F-66 -- a saved project could come back different from how it went out

veilvoice-workspace/src/lib.rs. A value that trimmed away to nothing was written as a key with an empty value: Some(" ") went out as title and came back as Some(""). Neither what was saved nor absent.

The reachable half is the reader's. A hand-edited or truncated project file carrying plan with nothing after it produced Some(PathBuf::from("")), which is a plan path that names no file and fails later with a message about a file called nothing, rather than being read as "no plan named" at the point where that is still a sentence somebody can act on.

Small, and it is here because of how it was found: the round-trip test only ever exercised one tidy project. The fix is the property rather than the case -- every shape a project can be in is now saved, read, saved and read again, including empty and whitespace values, no members, the maximum members, no outputs at all, and names containing the field separator and a line break.

Writer and reader are now symmetric in both directions: a value that trims to nothing is absent, and an empty value read back is None.

The seventh round

Five defects found and fixed (F-61 to F-65.) None had shipped: every one was in code written during this cycle, and main has not been released since v0.1.12.

This round covers what has been added since then: a manual update check, a shared release-checking library and the desktop verify tab that made it necessary, group mode in the window, a GIF encoder, video palettes, two generators for pictures of the application and the command line, and the website's own source documented for the first time.

The most useful finding is the least dramatic. F-61 was a comment that described the code correctly if you read only the comment: it said a dropped file was read "before anything is drawn", and the call sat at the bottom of update, after the panel that shows the result. A wrong thing that agrees with itself survives a reading, and this one had survived several. It was found by looking for the repaint that F-62 turned out to be missing.

Three of the four are the same shape: a claim that was true when written, or true of a simpler version, and never re-measured. F-63 is a stylesheet comment claiming a change was invisible on a desktop when it moves a table by forty pixels; F-61 is a comment describing a call that had moved. The project's rule about never overstating what the software does turns out to apply to comments about layout exactly as it does to claims about cryptography.

What was checked and found sound. The GIF encoder's dictionary-reset path had never been exercised by an independent decoder -- the banner's own frames may not reach 4096 codes. A 512x512 field of pseudo-random indices was built to force it, reset the dictionary 66 times, and was decoded by Windows' GDI+ with zero mismatched pixels in 262,144. The colour table refuses a 257th colour rather than truncating, the sub-block framing is exact at 255 and 256 bytes, and none of the encoder's paths falls over on empty input.

F-61 -- a dropped file was read a frame after the panel that shows it

veilvoice-gui/src/app.rs. Verify::take_dropped was called at the end of update, after CentralPanel had already been painted, so a file dropped on the window and the highlight under a hovering one were both one frame stale. The comment above the call said "read once a frame, before anything is drawn".

Moved to the top of update, before any panel. The comment is now true.

F-62 -- nothing woke the window while a file was hovering over it

veilvoice-gui/src/app.rs, verify.rs. An idle egui window repaints only when something asks it to, and the repaint condition listed every busy state and no hovering state. Dragging a file over an otherwise idle window therefore lit nothing up, and the dropped file did not appear until the mouse moved for some other reason -- the one moment in this application where the user is waiting for the window to react and the window has decided nothing is happening.

Verify::wants_repaint is busy or hovering, and the frame loop asks it.

F-63 -- a stylesheet comment claimed a change nothing could see

website/css/main.css. Making tables their own sideways scrollers stopped the reference pages scrolling on a phone, and the comment beside it said "nothing changes on a desktop". Measured: the security page's tables render at 820 px inside an 860 px column, so the row rules stop forty pixels short of the text above them. width: 100% does not restore it -- tried and measured -- because the shrink happens on the anonymous table box inside the block, not on the block.

The trade is still worth making. The comment now says what it costs.

F-65 -- two crates were invisible to the documentation generator

tools/docs/generate.py. veilvoice-check and veilvoice-update were added to the workspace this cycle and to neither CRATES nor ALL_CRATES, so they had no page, no banner, no diagram -- and no entry under "not yet covered" either.

That last part is what makes it a defect rather than a gap. ALL_CRATES exists precisely so this tool can say what it is not covering rather than quietly covering less than the tree contains; the audit's own section 4.5 describes a silent partial pass as the failure mode to avoid. A crate in neither list is invisible rather than uncovered, which is the one outcome those lists were written to prevent, and it was reached by the ordinary act of adding a crate.

The lists are still written out -- a generator that discovers its own inputs cannot tell you it is missing one -- but they are now checked against the workspace manifest, in both directions, and a mismatch stops the run with the names in it. Both crates are documented.

F-64 -- a nameless line in a SHA256SUMS could answer a lookup

veilvoice-check/src/lib.rs. A malformed line carrying a digest and no name -- aaaa -- was parsed as a name of "", and check_file derived its wanted name from Path::file_name, which is None for a directory, a root or .. and was turned into "" by unwrap_or_default. A path with no final component could therefore be answered with a digest belonging to nothing, and it would look exactly like a successful lookup.

Neither half is reachable from either front end today -- both pass a real file -- so this is a hole rather than a live defect. Both halves are closed: an empty name never matches, and a path that names no file is refused with a reason instead of being turned into an empty string.

The sixth round

Twelve defects found and fixed (F-48 to F-59.) Two had shipped -- both live on the published site, one of them the appearance of the default theme -- and ten were caught in code written during this round. Section 2.5 keeps those groups apart rather than counting them together.

This round covers what has been added since v0.1.9: a documentation generator that writes 366 files including HTML this site publishes, a parser for user-written colour palettes, a headless-browser driver, a cycling strip of claims on the front page, and a licence change touching 352 files.

Two findings are the reason to keep building the check before trusting the thing. F-49 -- the default theme's secondary text failing WCAG contrast on every surface this project has, including the licence line inside its own banner -- was found by writing a contrast rule for other people's palettes and then pointing it at this project's own. F-50 -- the generator silently overwriting the file recording that the fuzz targets have never been run to convergence -- was found by reading the diff of a successful run.

(The previous round: eleven defects, F-37 to F-47, three of which had shipped.)

The round covers what v0.1.9 adds: a search index over the whole repository and website, a portable release verifier that needs no GnuPG, install scripts, packaging definitions for six formats, and an animated banner.

One finding is the reason to keep looking at the page rather than at the tests. F-37 had the website rendering the text inside its own banner illegibly, on every viewport, for as long as the banner has existed. Every unit test passed throughout. It was found by rendering the page and reading it.

(The previous round: twenty-eight defects, F-9 to F-36, thirteen in the Rust and fifteen in the website.)

The uncomfortable pattern repeats, and is worth naming rather than burying: the previous round said the audit scope was finished. It was finished against the list that round had drawn up. Drawing up a wider list found, among other things, a four-kilobyte file that killed the process, a configuration value that made every output sample silently NaN, an erase operation that would destroy a file other than the one named, and a Markdown document that froze the reader's tab for eight seconds. None of those needed a new technique to find. They needed somebody to look at that particular thing.

Three of the new findings are the previous round's own recorded "open items" (a scheme check on repo.js, a KDF cost ceiling, a coverage-guided fuzzing setup). Those are now done or built. The rest were not on anybody's list.


1. Mechanical checks

CheckResult
unsafe codeNone. All 9 crates carry #![forbid(unsafe_code)], enforced at compile time.
Generated documentation366 files -- a page, banner and flowchart for every one of the 63 .rs files and every crate -- verified against the source by python tools/docs/generate.py --check in CI.
cargo clippy --workspace --all-targets0 warnings, both with and without the live feature.
cargo fmt --all --checkClean.
cargo audit1 vulnerability, accepted on a narrow and enforced ground -- see A-6. Two unmaintained advisories accepted with written reasoning in .cargo/audit.toml.
Test suite1965 tests across 13 crates, plus doctests and 21 site-test suites in tools/site-tests. These three numbers are measured into docs/MEASURED.md and written into this line from it by the same tool, because the previous guard compared them against the front page -- one hand-typed number against another -- and both drifted together (F-71). The site suite still checks this line independently, so the writer failing silently is not a way for the claim to go wrong (roadmap item 152). The test count is measured on one machine and is not the same on every platform: see F-77.
Coverage-guided fuzzing6 libFuzzer targets in fuzz/, one per parser that reads untrusted bytes. Built and type-checked; not run to convergence -- see section 5.2.
Networking crates in the graphNone. CI fails the build if reqwest/hyper/curl/ureq/tungstenite/isahc/surf appears.
TODO/FIXME/HACK markersNone.
Secrets in the repositoryNone. gpg_secrets/ is gitignored; *.asc ignored by default with only the public key allowed back explicitly.
Dependency licencesAll permissive (MIT / Apache-2.0 / BSD / ISC / BSL / CC0 / Zlib / Unicode-3.0). No copyleft conflict with GPL-3.0-or-later. Re-checked across the 155 packages rPGP adds.

2. Findings

2.1 Found and fixed in earlier rounds (F-1 to F-8)

Kept in full rather than summarised. A finding with the details filed off is not a finding, and several of these are the reason a later one was looked for at all.

F-1: Duplicate seeding path that panicked (veilvoice-core). Modulator::from_os_rng read the OS CSPRNG and .expect()-ed on failure. It was public API, never called, and duplicated Deidentifier::new, which does the same thing and returns a Result. Two paths for one job where the unused one aborts the process is a footgun in a security crate. Removed.

F-2: Argon2 parallelism overflow, reachable from any hostile file (veilvoice-crypto). Denial of service. argon2 0.5.3 validates in the wrong order: Params::new evaluates m_cost < p_cost * 8 before it checks p_cost > MAX_P_COST. A p_cost above u32::MAX / 8 therefore overflows the multiplication. p_cost is read verbatim from a .veil header, and from the app-lock file, which is parsed before anyone has authenticated. With overflow checks on (every debug build, and any project consuming these crates as libraries, which the README explicitly invites) that is a panic on attacker-controlled input.

VeilVoice's own release profile sets overflow-checks = false, where the multiplication wraps and the ceiling test then rejects it, so shipped binaries were not affected. "Our release profile happens to make the panic unreachable" is not a property to rely on and is not true for anyone building against these crates. Fixed by validating in KdfParams::checked(), the single funnel every derivation passes through, in arithmetic that cannot overflow. Found by tests/parser_fuzz.rs within seconds of the campaign first running.

F-3: Unbounded Argon2 memory cost (veilvoice-crypto). Denial of service, release builds included. m_cost is also read verbatim, and Argon2 allocates that many KiB before doing anything else. A header claiming u32::MAX asks for 4 TiB; the allocation fails, and a failed allocation in Rust aborts the process. Merely attempting to open a hostile container killed the program, in debug and release alike. For the app lock it is worse, because anything able to write that file could stop VeilVoice from starting at all.

Fixed with a documented ceiling of 4 GiB (KdfParams::MAX_M_COST), chosen to sit above RFC 9106's largest recommended profile (2 GiB) and this crate's own default (256 MiB) while refusing absurd values. Found by the same campaign, immediately after F-2 was fixed, which is the argument for running a fuzzer to exhaustion rather than until the first green run.

Residual, stated rather than fixed: a container may still declare a legitimate-but-expensive cost, so an attacker can make opening their file slow. That is inherent to shipping the cost with the file, which is what lets old files open after defaults rise. Slow is not crashing, the user chose to open that file, and they can stop waiting.

F-4: 32-bit overflow in the RIFF chunk walker (veilvoice-meta). clean_wav_bytes computed declared + 8 where declared is a u32 widened to usize. On a 64-bit host that cannot overflow, which is why no amount of fuzzing on this machine would ever have found it. VeilVoice ships an ARMv7 build, where u32::MAX + 8 overflows usize and panics under overflow checks. Fixed with saturating_add, which is also the correct semantics since the value is clamped to the real length on the next line. Found by reading, and recorded here as the counter-example to "the fuzzer is green, therefore the parser is fine".

F-5: One NaN sample permanently destroyed the engine (veilvoice-core). Silent, total, and reachable from an input file. The accent neutraliser's long-term spectrum is an exponential moving average, so anything folded into it never washes out. A single non-finite input sample reached it, and from then on every output sample was NaN for the rest of the session, with nothing reported to the user. Measured: after one NaN, 0 of 48,000 subsequent samples were finite.

A 32-bit-float WAV can legally contain NaN, and symphonia decodes it faithfully rather than sanitising. The realistic route is the ordinary one: somebody sends you a recording and you veil it before passing it on. The failure is silent, so the first sign is a recording that turned out to be silence.

Fixed at the single gate every sample passes through (StftEngine::process): non-finite samples become zero, and magnitudes are bounded at ±1e6, six orders of magnitude above real audio, low enough that squaring and summing cannot reach the float ceiling and produce a NaN by the other door.

Not a confidentiality failure: the output was garbage, not the original voice, so it failed in the safe direction. It was still a total loss of function with no error, and tests/hostile_audio.rs now covers it along with infinities, full-scale DC, square waves, impulse trains and digital silence.

F-6: The site's Markdown renderer emitted unfiltered image URLs (website/js/markdown.js). Links went through a scheme allowlist; images did not, so ![x](javascript:...) produced <img src="javascript:...">. js/repo.js assigns the rendered README straight to innerHTML, so this was on the path from a fetched file into the live page. No current browser executes a javascript: image source, which is why it survived unnoticed, but "no browser we tested still honours this" is not a security argument. Fixed: one safeUrl helper, applied in both places.

F-7: The renderer silently deleted every string literal on the page (website/js/markdown.js). Finished markup is parked while later passes run, and the placeholder was a NUL-delimited decimal index. The number highlighter (\b\d+\b) matched the index inside the placeholder and wrapped it in a span, after which the un-parking pass no longer recognised it and the parked content was discarded. Every string literal in every code block rendered as a stray highlighted digit: let s = "hello"; was published as let s = 0 ;. Adjacent placeholders shared a delimiter as well, so alternate items were dropped.

Not a security bug. Arguably worse in context: the site's whole argument is "go and read the source", and it was displaying source that was not the source. Fixed with single-character private-use placeholders, which no pass matches and which escapeHtml strips from the input so they cannot be forged.

F-8: The URL allowlist rejected ordinary relative links (same file). The scheme test was ^(?:https?:|[./#]), so any target not beginning with ., / or # was refused, which is most Markdown links. Every [whitepaper](https://github.com/tilas01/veilvoice/blob/main/docs/docs/WHITEPAPER.md) in the README rendered as plain text on the site, and js/repo.js's rewriting of repo-relative links could never fire. Safe, wrong, and quietly wrong. Fixed: a scheme is required to be http(s); no scheme means a relative path and is fine; protocol-relative //host and leading backslashes are refused explicitly, since both look relative and behave external.

2.2 Found and fixed in the third round -- the Rust

F-9 -- A four-kilobyte WAV killed the process (veilvoice-audio). Denial of service, reachable from a file somebody sends you.

A WAV whose fmt chunk declares a sample rate of zero makes symphonia panic inside Probe::format, at TimeBase::new -- before VeilVoice is handed anything it could inspect. VeilVoice's release profile sets panic = "abort", so that is not an error a caller can handle: it is the process ending. veilvoice anonymise on a file somebody sent you was the whole exploit.

Confirmed by construction, and the boundary is narrow: of the malformed headers tried -- zero channels, 65 535 channels, zero bits per sample, 65 535 bits per sample, a mismatched format tag -- every other one is already refused cleanly by symphonia itself. Only the zero rate crashes.

Fixed with a pre-flight check on the file's own bytes before the decoder is given the stream (io::preflight). It reads the head from the same handle that is then rewound and passed on, so the bytes checked are the bytes decoded rather than the result of a second open. It is deliberately narrow -- duplicating what the decoder already validates would be a second parser to keep in step, which is its own bug source.

Residual, stated rather than engineered around: this cannot protect against a panic in a decoder for a format VeilVoice does not itself parse. Under panic = "abort" no wrapper can, short of decoding in a separate process. The mitigations are this check, keeping symphonia current, and its being a widely-used pure-Rust decoder rather than a C library.

F-10 -- A configuration value made every output sample NaN, silently (veilvoice-core). This is F-5 arriving through a second door.

F-5 sanitised the samples. Nothing sanitised the configuration they were processed under. DeidConfig::checked() tested self.sample_rate < 8_000.0, and NaN compares false against every bound, so NaN passed validation. The engine then built happily and produced NaN for every output sample, for the whole session, with nothing reported -- the exact failure mode F-5 was written up as, reached without a single bad sample ever being read.

Three defects in one place, all confirmed by running them:

  • NaN: builds, and every output sample is NaN. Silent, total.
  • INFINITY: panics with an arithmetic overflow at pitch.rs:74 in every build with overflow checks on -- which is every debug build and any project consuming these crates as libraries, which the README explicitly invites.
  • A merely enormous value: sample_rate sizes the delay lines in effects.rs (Reverb's comb is 0.0297 x sample_rate samples, and the three chorus voices are similar). A WAV's fmt chunk carries a u32 sample rate and symphonia passes it straight through, so a four-kilobyte file declaring u32::MAX asks for roughly two gigabytes of buffers before a single sample is processed. A failed allocation aborts. This one is file-reachable, and was confirmed end to end through veilvoice anonymise.

frame_size had no upper bound at all, and it sizes every internal buffer and the FFT plan.

Fixed by validating the whole configuration rather than parts of it: every float is checked for finiteness first and then for range; sample_rate is bounded to 768 kHz (above every real converter -- professional hardware tops out at 384 kHz); frame_size to 65 536; and the remaining floats are clamped to values the DSP can act on, since each has a meaningful nearest legal value. tests/hostile_audio.rs covers all of it, including that every configuration which does build produces finite audio.

F-11 -- Secure erase never terminated on a 32-bit build (veilvoice-crypto). The file was left intact.

shred_file sized its write buffer with CHUNK.min(length.max(1) as usize). On a 32-bit target -- and VeilVoice ships an ARMv7 build -- a file of exactly 4 GiB truncates to 0, so the buffer was empty, take was always zero, remaining never decreased, and the loop ran for ever. veilvoice shred hung, and the file it was asked to destroy was still there.

The same 32-bit-only shape as F-4, and equally invisible to any campaign on an x86-64 host. Fixed by computing the length in u64 and only then narrowing (length.clamp(1, CHUNK as u64) as usize), with an explicit refusal if take is ever zero, so a loop that could reach that state fails instead of spinning. Found by reading.

F-12 -- Secure erase destroyed the wrong file (veilvoice-crypto). Data loss, and a report that said it had succeeded.

shred_file called fs::metadata (which follows symlinks), checked is_file(), then opened the path (also following). Erasing a symbolic link therefore filled its target with random data and unlinked only the link -- and reported removed: true about a file that was still there while an unrelated one had been destroyed. Point it at a link named recording.wav and whatever it referenced was gone.

The check was also a TOCTOU: the path could be replaced with a symlink between the metadata call and the open, so the object checked was not necessarily the object written.

Fixed on both counts: symlink_metadata first, refusing a link outright with a new Error::ShredSymlink that explains why; then open, and ask the open handle what it is, so no second lookup can disagree with the first. A caveat about hard links was added to the report as well, since those share the data without being links to the name. Regression tests confirm the target survives.

F-13 -- A planted executable in the working directory was run (veilvoice-guard, veilvoice-watch). Local code execution.

Command::new("reg"), Command::new("wevtutil") and Command::new("ausearch") do not name the system tool -- they name a search. Rust's Command resolves a bare program name through the platform's search order, and on Windows that order includes the current working directory ahead of most of PATH. Running veilvoice watch or veilvoice guard check from a directory that happens to contain a file called reg.exe executed it, as the user, with no prompt. A downloads folder is enough.

That this is in the monitor and the tamper detector is the sharp part: they are the two features somebody runs precisely because they suspect something is already wrong on the machine.

Fixed by resolving every system tool to an absolute path -- %SystemRoot%'s System32 (and Sysnative, for a 32-bit process on 64-bit Windows), and a fixed list of standard directories for ausearch -- and returning "I cannot tell you" when the tool is not where it should be. That is the right answer for these modules anyway: their whole design is to report honestly rather than guess, and running something else called wevtutil is the worst possible guess. Tested against a decoy.

F-14 -- The app-lock verifier was world-readable on every save (veilvoice-crypto).

LockStore::save used fs::write, which creates a file with the process umask -- ordinarily 0644 -- and only then chmod'd it to 0600. The stored Argon2id password verifier was therefore readable by every other local user for the window between the two calls. That window reopened on every save, and a save happens after every failed unlock attempt: an attacker who can cause failed attempts can cause the window to reopen at will.

LockStore::create additionally tested path.exists() and then wrote, which loses twice -- another process can win the race, and a symbolic link planted at the lock path would have been followed, so the write would land on whatever it pointed at.

Fixed with a new veilvoice_crypto::privatefile module that applies the permission at creation via OpenOptions::mode, and offers an exclusive form built on create_new so the refusal is one atomic answer from the kernel rather than a check followed by a hope. Tests assert the mode both at creation and after a save, and that a planted symlink is refused.

F-15 -- The private key and the decrypted plaintext were written world-readable (veilvoice-cli).

The same create-then-chmod pattern on veilvoice keygen's secret-key file (mitigated by the key itself being encrypted, but the window had no reason to exist), and no permission handling at all on the two outputs that most need it: veilvoice decrypt's plaintext, and anonymise --encrypt false's recording -- which the tool's own warning describes, correctly, as still containing everything that was said.

Fixed by routing all three through privatefile. The plaintext warning now also states what that permission is and is not worth, and a test fails the build if that sentence is ever softened -- a file permission must not start reading as a substitute for the encryption the user just declined.

F-16 -- Windows attribution gave a confidently wrong explanation (veilvoice-guard).

The Security-log query was built with path.replace('\'', "''"). Doubling a quote is the SQL and XQuery rule; XPath 1.0, which is what wevtutil speaks, has no escape for a quote inside a string literal at all. A path containing an apostrophe therefore produced a syntactically broken query, which failed, and the failure was reported to the user as "object-access auditing is off, or this needs to run elevated".

Not a code-execution route -- the query is an argument, not a shell string -- but for a module whose entire purpose is being honest about what it cannot see, telling somebody worried about surveillance the wrong reason is the specific failure it was written to avoid. Fixed by declining the query for such a path and saying exactly that, since the character genuinely cannot be expressed.

F-17 -- Decoding was unbounded (veilvoice-audio).

io::load grew its sample buffer with no ceiling. Compressed formats expand: a mono MP3 at 32 kbit/s decodes to 48 000 f32 per second, a forty-eight-fold expansion, so a hundred-megabyte download becomes some five gigabytes of samples. A failed allocation aborts. Fixed with a documented ceiling of about twelve hours at 48 kHz, refused with a message that names the limit rather than truncating the recording silently.

F-18 -- The post-quantum shared secret was not zeroized (veilvoice-crypto).

x25519_dalek::SharedSecret zeroizes itself on drop and the combined input keying material was wiped explicitly, but the ML-KEM half is a plain Array<u8, U32> and was simply dropped. In a crate whose stated design is that key material is page-locked and wiped, the post-quantum shared secret was the one piece left in freed memory. Fixed in both encapsulate and decapsulate.

F-19 -- The metadata cleaner could emit a corrupt file (veilvoice-meta).

clean_wav_bytes wrote its RIFF size as (body.len() + 4) as u32. For a body at or above 4 GiB that truncates, producing a size field that does not describe the file -- a WAV handed back to the user as clean that will not open. For a metadata cleaner that is the worst shape of bug: the user believes the file is safe. Only reachable past what RIFF can express in the first place, so fixed by refusing with Error::Malformed rather than by widening anything.

F-20 -- The app-lock file's KDF costs were validated too late (veilvoice-crypto). Hardening.

AppLock::parse accepted whatever costs the file declared and left them to be rejected at the first verification. They are attacker-controlled -- this file is read before anyone has authenticated -- and KdfParams::checked is the single funnel that bounds them (F-2, F-3). Fixed by validating at parse, so the failure is reported as "this lock file is broken", which is true and actionable, rather than as a password that never works.

F-21 -- A hand-written manifest reported every file as new (veilvoice-guard).

Manifest::of normalises paths to forward slashes; Manifest::parse did not. A manifest written by hand or by an older build with backslashes therefore keyed its entries differently from the ones check's extra argument is keyed by, so every recorded file was also reported as newly added. A tamper report full of false positives is one nobody reads, which defeats the only thing the module does. Fixed by normalising on the way in as well as on the way out.

2.3 Found and fixed in the third round -- the website

js/repo.js fetches README.md over the network and assigns the rendered result to innerHTML. That path is a security boundary and is audited as one.

F-22 -- The Markdown renderer could freeze the reader's tab. Quadratic backtracking, measured.

The link and image patterns were \(([^)\s]+)[^)]*\). Those two runs overlap -- a character that is neither ) nor whitespace can be taken by either -- so for a ( that never closes the engine tries every way of splitting the text between them:

![a]( followed bytime to render
16 000 characters0.13 s
32 0000.49 s
64 0001.96 s
128 0007.97 s

Four times the work for twice the input, exactly. Rendering happens on the main thread, on text the page fetched over the network, so a 400 KB document on one line is a minute and a half of a frozen tab.

Fixed by making the two runs disjoint -- the optional title must begin with whitespace, so there is only one way to split any input -- rather than by bounding the document. The grammar accepted is unchanged. 128 000 characters now renders in under a millisecond.

F-23 -- A second, independent quadratic in the same file.

Removing the ambiguity stops the engine trying every split of one attempt. It does not stop it making a great many attempts: for [[[[...](](..., every [ is a candidate start and an unbounded [^\]]+ scans forward from each one looking for a ].

[ repeated, then ]( repeatedtime
10 0000.23 s
20 0000.90 s
40 0003.61 s
80 00014.59 s

Fixed with repetition bounds -- 512 characters for a link label, 2 048 for a target, 4 096 for inline code -- which turn each scan into a constant and the whole pass linear. The limits are far past anything real, and a test asserts that ordinary Markdown still renders as links, because F-8 was exactly the mistake of being safe and quietly wrong.

F-24 -- A deeply nested blockquote crashed the render, and the reader was told the network had failed.

A blockquote strips one > and calls render again, so the document chose the recursion depth. Five thousand > characters overflowed the JavaScript stack and threw a RangeError. Because repo.js reports any rejection from the README fetch as "could not reach api.github.com", the reader was given a confident, wrong explanation for a page that had loaded fine and then broken while rendering. Fixed with a nesting limit of sixteen, past which the remaining roadmap items are shown as the text they are.

F-25 -- A code fence could reach Object.prototype.

The fence info string is matched with \w*, and both constructor and __proto__ are \w*. On a plain object literal, a fence language of constructor made KEYWORDS[lang] resolve through the prototype chain to Object, and __proto__ to Object.prototype.

Neither did any harm as the code stood -- String.replace stringifies a non-regex search value, so it looked for the literal text function Object() { [native code] } and found nothing. That is a description of a bug that has not gone off, not of a safe lookup. Fixed with a null-prototype object and an own-property check.

F-26 -- Download links were trusted by omission (js/repo.js). The previous round recorded this as open work; it is now closed.

link.href = asset.browser_download_url was assigned with no check, on the reasoning that GitHub's own API for this repository always returns a github.com URL. That reasoning is true and it is not a control. Fixed by requiring https: and reusing the renderer's own safeUrl -- deliberately shared rather than re-implemented, because two scheme checks on one page is two things to keep in step and the forgotten one is the one that matters. A refused asset is still named, so the reader learns the file exists; it is simply not clickable.

F-27 -- A malformed API response was reported as a network failure.

assets.sort called a.name.localeCompare(b.name), which throws if name is not a string; one bad entry rejected the whole promise and the panel told the reader it could not reach GitHub. The asset list and the README size were also unbounded. Fixed: every field is type-checked, the list is capped at a hundred entries, and a README above a megabyte is declined with a message saying so rather than rendered.

F-28 -- Repo-relative links resolved somewhere other than where they pointed.

The rewriting pasted strings together, leaving .. segments for the browser to normalise afterwards, so a link written as ../../../elsewhere produced a URL that resolved to a different part of github.com than the link appeared to name. The host was never in doubt, so this is misdirection rather than escape -- but a page asking people to click through and read the source should send them where the link says. Fixed by resolving through URL against a fixed base and refusing anything that climbs out of it.

F-29 -- The sticky header had no blur on every iPhone running iOS 17 or earlier (css/main.css).

backdrop-filter was used unprefixed. Safari did not support the unprefixed property until version 18. Fixed with -webkit-backdrop-filter alongside.

F-30 -- The legal gate was an invisible modal on pre-2023 engines.

color-mix() arrived in Chrome 111, Safari 16.2 and Firefox 113. An older engine discards the whole declaration -- and three of the four uses had no preceding fallback, so the element was left with no background at all. The worst was .legal-overlay: a fixed overlay shown together with body.legal-locked { overflow: hidden }. Without its background the reader got a page that had silently stopped scrolling, with nothing visible to explain why. Fixed: every color-mix now has a plain colour before it.

F-31 -- No focus ring at all on Safari before 15.4.

:focus-visible was the only focus rule. An unsupported pseudo-class makes the entire selector list invalid, so older Safari dropped the rule and the page became unnavigable by keyboard. Fixed with a plain :focus rule as the fallback and :focus:not(:focus-visible) to suppress it for pointer clicks -- kept in separate rules, so one invalid selector cannot take the other down.

F-32 -- Native controls rendered light on a near-black page.

No color-scheme was declared, so the theme <select>'s dropdown list, the verifier's <progress> bar and the file picker were drawn by the platform in its light styling. It is the one part of the page CSS cannot reach. Fixed per theme, beside the palette it has to agree with, with a test asserting the declared scheme matches the background's luminance.

F-33 -- The legal gate could not be dismissed on an iPhone.

.legal-box used max-height: 88vh. On iOS Safari vh is measured against the viewport with the browser chrome collapsed, which is taller than what is visible while the URL bar is expanded -- so the bottom of the box, which is where the continue button is, could sit below the visible area. The page behind is deliberately scroll-locked, so there was no way to reach it. The gate could not be dismissed, on a phone, on first load, which is when everyone meets it. Fixed with dvh and a vh fallback. Found by a check written for this round, not by inspection.

F-34 -- The sticky header took a fifth of a phone screen, and its links were too small to hit.

Nine navigation links at 375 px wrapped onto four rows; because the header is position: sticky that cost 165 px of an 812 px screen at every scroll position (measured, not estimated). The links were also 22 px tall, below the 24 px minimum of WCAG 2.5.8 -- and mis-tapping in a nine-item row means landing on the wrong section rather than on nothing.

Fixed with a two-row header on narrow viewports whose navigation is a single horizontally-scrolling row: 79 px, down from 165. Anchor targets also gained scroll-margin-top, so following a nav link no longer lands on a heading hidden underneath the header.

F-35 -- The in-browser verifier failed with an unusable message on an insecure origin (js/verify.js).

crypto.subtle is only defined in a secure context. Over plain http:// to a LAN address -- exactly how somebody serving this folder tests it from a phone -- it is undefined, and the code walked into "Cannot read properties of undefined (reading 'digest')". True, and useless. The published site is HTTPS and unaffected; this is about not lying to the person who self-hosts. Fixed with a feature check and a sentence explaining what to do.

F-36 -- The verifier used twice the memory it needed (js/verify.js).

Chunks were collected into an array and then copied into a second buffer, so peak memory was twice the file size before WebCrypto was handed anything -- and a release archive is tens of megabytes. On a phone that is the difference between checking a download and having the tab killed. Fixed by allocating the destination once and writing each chunk into it, and by refusing with a clear message, naming sha256sum and certutil, if the buffer cannot be allocated at all.

2.4 Found and fixed in this round -- the fourth (F-37 to F-46)

This round audited what v0.1.9 adds: a search index over the whole repository, a portable release verifier, install scripts, packaging definitions, and an animated banner. Ten defects, and they divide into two groups that are worth keeping apart rather than counting together.

Three were already shipped (F-37, F-41, F-42) -- they were live on the published site or in the published repository when this round began.

Seven were in code written during this round (F-38 to F-40, F-43 to F-46), caught before any of it was released. Recorded anyway, at the same length, because a defect found on the way to shipping is evidence about how the work is being done, and quietly omitting them would make this round look cleaner than it was. Two of them are the same mistake this document has already recorded twice.

F-37 -- The website destroyed the text in its own banner. Shipped, on every viewport, and only visible by looking.

Every image on the site carried image-rendering: pixelated. That property is for pixel art being enlarged, where it keeps edges crisp. Every image on this site is shrunk: banner.png is 1280 px wide and is never drawn wider than 860, and on a 375 px phone it is drawn at about 343 -- a 3.7x reduction. Nearest-neighbour sampling does not blend the rows it discards, it keeps roughly one in four and deletes the rest.

The banner's own text is drawn in one- and two-pixel strokes, so more than half of it disappeared. Measured by rendering the page and reading it:

IntendedAs published, at 375 px
THE VOICEPRINT IS DESTROYED. THE WORDS STAY READABLE.TIE VOICEPRIN IS DESTOYED. THE WORDS STAY EDGRE.
BY TILAS01 ON GITHUBBY ~I,FS01 CN GITHUB
SECURE AUDITED RUST CODEsliced horizontally, half the strokes gone

The first thing a phone reader saw was this project's own headline claims, illegible -- on a site whose entire argument is that you can go and read things for yourself. Not a security defect. It is the same family as F-7, where the site displayed source that was not the source: a page that undermines its own argument by being quietly wrong about what it shows.

Fixed by removing the property from all four places it appeared. Confirmed by a side-by-side render at 343 px before and after.

Found by rendering the page, which is the only way it could have been found: every unit test passed throughout, and the geometry checks that exist measure layout, not legibility. This is the third revision of this document to have to record that looking at the page found something no test did.

F-38 -- The search index covered about an eighth of what it claimed.

Sections were truncated to 240 characters rather than split, so for any file longer than a paragraph most of the text was simply absent from the index -- while the search page said it searched every file. A search box that silently does not look at most of the corpus answers "no results" with exactly the same confidence as one that does, which makes it worse than having none.

Found by a test asking whether searching for onerror -- a string this repository certainly contains, in its own hostile-markup fixtures -- returned anything. It did not.

Fixed by splitting rather than truncating: every character of every indexed file now lands in exactly one chunk, and the 240-character bound applies to how much a single result displays, not to how much is searched. Coverage is also now stated precisely rather than rounded up -- prose, the website, the build files and the licences are complete; Rust is indexed by item name and doc comment, not by function body, and both the generator and the page say so.

F-39 -- The search index indexed itself, and could never converge.

The generator's output is tracked and lives under website/, so it was walked like any other file. Each run's input therefore contained the previous run's output: the file grew on every regeneration and --check could never agree with a freshly built one.

The failure mode is what makes this worth writing up. It does not look like a bug, it looks like flaky CI -- a check that fails, passes after a regenerate, and fails again next time. Fixed by excluding the generated paths, and asserted by a test so it cannot come back as a mystery.

F-40 -- The no-JavaScript search page hid its own content from find-in-page.

The static index is the whole reason website/nojs/ remains a supported edition: the entire corpus is in the page so that the reader's own find-in-page searches it. Every entry was inside a collapsed <details>.

Text inside a closed <details> is only searchable on engines that auto-expand it -- Chromium since 102, later elsewhere. On an older Safari or Firefox the page would have answered every search with nothing, while looking perfectly fine. That is the exact shape of F-30, F-31 and F-33, and worse than any of them, because the page would have been confidently empty rather than visibly broken.

Fixed by expanding every entry, with a contents list to keep a long page navigable. Height is free; correctness on browsers a great many people run is not.

F-41 -- The website's artwork had drifted from its generator, and nothing checked it.

website/assets/ holds its own copies of the icons and banner, and they were kept in step by hand. assets/generate.py --check only ever looked at assets/. So the copy the site actually serves could differ from the script that is supposed to produce it, with nothing to notice -- and it did, the moment the banner changed.

For a project whose stated position is that the artwork is generated rather than a committed blob, "generated, and also a second copy somebody maintains by hand" is a materially weaker claim than the one being made. Fixed: the generator writes both copies and --check verifies both.

F-42 -- A documentation link pointed at a file that does not exist.

docs/INSTALL.md shipped a link to REPRODUCIBLE-BUILDS.md. The file is called REPRODUCIBLE_BUILDS.md. One character, written by somebody who had just read the real filename.

A dead link is not cosmetic here. The argument this project makes is "go and read it yourself", and a link that goes nowhere is that argument failing quietly. Fixed, and made mechanical: a tenth site-test suite resolves every local link in every tracked .md and .html file.

The first version of that checker reported two faults and both were the checker: docs/AUDIT.md quotes a README link to explain how it once rendered wrongly, and quotes src="a&quot;onerror=x" to explain why a naive scanner calls that an attack -- so the scanner called them broken links. Documentation describing a bug correctly, flagged as a bug. That is section 4.4 of this document happening again, where five of six "findings" were the checker rather than the code. Quoted code is now stripped before extraction, and the suite is verified to still detect a planted broken link.

F-43 -- A byte-order mark was written into a shipped script.

Set-Content -Encoding utf8 on Windows PowerShell 5.1 writes a BOM, and one landed at the head of install/install.ps1. Caught by tools/site-tests/characters.test.js, which is exactly what that suite exists for -- an invisible character causing an invisible fault. Recorded not because it was hard to fix but because the guard earned its place again, and because the same command will do the same thing to the next person who uses it.

F-44 -- The Windows installer could not use the GnuPG most Windows machines already have.

Git for Windows bundles an MSYS build of GnuPG, which a great many people have without knowing it. Given a Windows path it treats the whole thing as a relative POSIX path and resolves it against the working directory, producing /c/current/dir/C:\Users\... and failing with "directory does not exist".

Found by running the installer rather than reading it. Fixed by translating paths to /c/Users/... form when the resolved GnuPG is an MSYS build, which turns "install Gpg4win first" into "verified" for a large share of Windows users.

F-45 -- Then its agent would not start, and the error blamed the key.

With the paths fixed, the import failed with gpg: error running '/usr/bin/gpg-agent': exit status 2. GnuPG's agent puts a Unix-domain socket inside the home directory it is given, and such a path cannot exceed about 108 bytes. A GUID-named temporary directory produced a 90-character home directory, and the agent could not start.

Measured rather than guessed: a 37-character home directory worked, 90 did not. The user-visible symptom was "the downloaded public key could not be imported" -- true, and completely misleading, which is the failure mode this project keeps writing up (F-16 told somebody worried about surveillance the wrong reason). Fixed by keeping the temporary directory short, and by refusing with an explanation in the remaining case rather than leaving a puzzle.

F-46 -- Progress output on stderr terminated the Windows installer.

Under $ErrorActionPreference = "Stop", Windows PowerShell 5.1 turns anything a native program writes to stderr into a terminating error, whatever its exit code. GnuPG reports progress on stderr as a matter of course, so the script died on a successful verification. Fixed by relaxing the preference around native calls and judging them on their exit code, which is the thing that actually says whether they worked.

F-47 -- The page checks applied to a list of pages, not to every page. Found after v0.1.9 was tagged.

tools/site-tests/html.test.js opens with a comment saying it checks "the signing-key fingerprint on every page". It checked a hardcoded list of three files. search.html was added to the site in this release and was therefore checked for nothing: not balanced tags, not duplicate ids, not dangling anchors, not third-party assets, not inline event handlers, and not the fingerprint -- which it did not have.

The fingerprint is the one thing on these pages that lets a reader tell a real release from a forged one, and the page that shipped without it is the one about finding things in this project.

This is section 4.5 of this document happening to the tests themselves. The lesson recorded there -- a finished scope is only as wide as the list it was drawn from -- was written about audit scope, and the same failure was sitting in the test that enforces it. Enumerating from memory is the defect; enumerating from the directory is the fix.

Fixed by discovering every .html file under website/ rather than listing them, which immediately found the missing fingerprint and now covers any page added in future the moment it exists. Five pages checked, up from three.

Found while verifying the published release, by asking whether the live search page carried the fingerprint -- a check made because the release documentation claims CI enforces it. It said so, and it did not.

2.5 Found and fixed in the fifth round (F-48 to F-59)

This round covers what has been added since v0.1.9: a documentation generator that writes 366 files including HTML this site publishes, a parser for user-written colour palettes, a headless-browser driver, a cycling strip of claims on the front page, and a licence change touching 352 files.

Twelve defects. Two had shipped (F-48 and F-49, both live on the published site); ten were caught in code written during the round. That distinction is kept because a round counting just-written-and-immediately-fixed defects alongside ones a reader could have hit is flattering itself.

F-48 -- the repository panel rendered a README's own markup as text. Shipped.

The front page fetches this project's README and renders it. The README opened with a centred banner -- <p align="center"><picture>...</picture></p>, which is GitHub's own idiom -- and the panel displayed the source of those tags, as a paragraph of escaped tag soup, immediately above the word VeilVoice.

Neither half was broken. markdown.js escapes raw HTML on purpose: that is the property which makes its output safe to hand to innerHTML, and it has been through two rounds of hostile-input auditing. A README is entitled to contain presentational markup. The two correct behaviours met and produced garbage at the top of the page, live, for as long as the panel and that README coexisted.

Fixed by stripping block-level HTML from the fetched Markdown before rendering -- the renderer keeps escaping everything, unchanged -- and by switching the README to a plain Markdown image. Fenced code is left alone, so a document showing markup as an example still shows it. Regression test added, and confirmed to fail without the fix.

The lesson is F-37's again in a different medium: this was not findable from the tests, and was obvious the moment somebody looked at the page.

F-49 -- the default theme's secondary text failed WCAG contrast. Shipped.

Found by writing a contrast check for other people's palettes (see F-51) and then pointing it at this project's own themes:

Thememuted on bgRequired
tokyo-night2.76:13.0:1
solarized2.79:13.0:1

Below the floor for text of any size. --muted is not decoration here: it carries the hero tagline, the figure captions, the scope notes stating what the app lock is not, and the licence line inside the banner image. Tokyo Night is the default, so this was the shipped appearance of the website, the desktop app, the command line and the artwork.

Fixed with each palette's own upstream colour rather than an invented one -- Tokyo Night's dark5 (#737aa2, 4.10:1) and Solarized's base00 (#657b83, 3.37:1) -- so both themes stay recognisably themselves. Propagated through themes.css, the app's theme table, the CLI's escape codes, the no-JavaScript edition and assets/generate.py, and the artwork regenerated and looked at.

Lowering the threshold until the existing colours passed would have been fitting the rule to the defect. That is the move this document keeps catching in other people's reasoning and it would have been no better here.

F-50 -- the documentation generator overwrote a hand-written file.

Adding fuzz/ to the documented crates made the generator write fuzz/README.md -- over a hand-written one explaining how to run the targets and recording that they have not been run to convergence, a sentence section 5.2 of this document cites by name.

Nothing failed. The generator reported success, --check compared its output against the file it had just written and agreed, and the honesty note was gone. That is finding F-41 running in reverse: generated output silently replacing the thing it was meant to describe.

Fixed by refusing to overwrite any file that does not carry the generator's own roadmap item, naming every one, and writing nothing at all until every destination has been checked -- so a refusal leaves the tree as it was rather than half regenerated. Generated banners and wiki pages now carry the roadmap item too, which they should have anyway.

F-51 -- the theme drift test only ran in one direction.

The app's themes are asserted against website/css/themes.css so the two front-ends cannot drift. The test walked the app's THEMES and checked each against the stylesheet -- which catches a colour changed on either side, and misses a theme added to the website, because nothing walked the stylesheet looking for entries the app had never heard of.

Same shape as the hardcoded page list in html.test.js that let search.html ship unchecked: a check enumerating from a list is only ever as wide as the list. Fixed by enumerating from the stylesheet as well. Verified by adding a fake theme to the CSS and watching the test fail.

F-52 -- generated pages rendered links without a scheme check.

inline_html escapes everything before inserting markup, so <script> in a doc comment comes out as text. What it did not do is look at what a link points at:

[click](javascript:alert(1))  ->  <a href="javascript:alert(1">click</a>

website/js/markdown.js has had safeUrl for this since the third round, and website/js/repo.js states in a comment that the rule is "the renderer's own safeUrl, deliberately shared rather than copied". The 366 generated reference pages were the one part of this site rendering links outside that rule.

Only the maintainer writes these doc comments today, so this was not reachable by an outsider. That is a fact about who has commit access, not a property of the code, and this document's standard is explicitly about the code. Fixed by copying the rule exactly -- not improving on it, because two subtly different link rules on one site is worse than one strict rule in two places.

F-53 -- a palette file that is not a file hung the application at startup.

veilvoice-gui reads user-written .palette files during startup. The size bound was applied by calling metadata() on the path and then read_to_string(). A FIFO reports a length of zero, sails past the size check, and blocks the read for ever.

This runs before the window is created, so the symptom is an application that launches and never appears: no error, nothing on screen, and nothing pointing at the palettes directory. The same two lines were also a TOCTOU -- two operations on a path, with the bound applied to what the file was rather than to what gets read.

Fixed by bounding the read instead: open the handle, ask the handle whether it is a regular file, and take at most MAX_BYTES + 1 bytes so a file that grows between the check and the read cannot get past it. Same shape as the release verifier streaming an archive through SHA-256 in fixed chunks.

F-54 -- duplicate anchor ids in generated HTML.

veilvoice-meta/src/lib.rs has a doc-comment heading called "Items", and so does the generated section listing a file's items. Both slugged to items, so the browser jumped to whichever came first and the table of contents silently sent the reader to the wrong place. Caught by html.test.js, which is exactly the class of hand-written-HTML mistake it exists for. Fixed by allocating every anchor on a page from one place, in document order, using GitHub's own suffix rule so the Markdown and HTML renderings agree about where a link goes.

F-55 -- the Mermaid theme directive was emitted with its roadmap items halved.

The init directive %%{init: ...}%% is built with %-formatting, which turns %% into %. Every one of 366 diagrams shipped with %{init: ...}%, which Mermaid does not recognise -- so the Tokyo Night theme was silently ignored and every diagram on GitHub rendered in default colours.

F-56 -- derived call graphs contained calls that do not happen.

The per-file flowchart draws the calls between functions in a file, found by asking whether the callee's name appears followed by (. That drew an edge from SpectralState::transform to SpectralState::new because the body constructs a Complex::new(..).

An edge that is not a call is worse than a missing one: these diagrams are offered as derived from the source, so a reader has no reason to doubt one. Fixed by inspecting the qualifier before the name -- nothing, self., Self:: or the owning type is a call; anything else is somebody else's function that happens to share a name, which in Rust is most of new, len, from and default.

F-57 -- pub(crate) was reported as pub.

The item tables and the crate-level "public items" list treated any visibility modifier as public, so crate-internal helpers appeared in the published API surface of nine crates. A reader deciding what they may depend on was being shown items that are not there.

F-58 -- adding harmonics to the banner cost a fifth of its height.

Three sinusoids whose amplitudes sum to 1.0 only reach 1.0 if they all peak together, and the phase offsets exist precisely so they do not. The waveform's peak fell from 62 pixels to 49. The animation still worked, still looped, and simply looked smaller; no test could have noticed. Fixed by measuring the normalisation constant from the same expressions the function uses, at import, so editing an amplitude re-measures rather than leaving a stale number behind.

F-59 -- a component whose resting state is invisible, under a blanket reduced-motion rule.

The cycling strip of project facts animates from opacity: 0. The global rule at the top of main.css collapses every animation to 0.01ms for a reader who has asked for less motion -- which would have ended every message at its final keyframe, opacity 0, leaving the strip permanently blank with nothing to indicate anything was missing.

Caught before shipping by rendering the page with the preference emulated rather than by reasoning about it. Fixed explicitly: the cycle stops and the first fact stays. A blanket rule that neutralises motion has to be checked against components whose resting state is invisible, and that is now written down here because it will not be the last one.


2.6 Found and fixed in the sixth round (F-60)

A short round, covering the code added after v0.1.11: the release fetcher, the installer, and the crash log.

One defect, and it was in the function whose own comment describes it.

F-60 -- the installer could replace a user's entire PATH with one entry.

veilvoice install appends its directory to HKCU\Environment\PATH. It reads the existing value first and appends, precisely so that it never writes a PATH it did not read -- the module's documentation says so at the top, in those words.

read_user_path returned Ok(String::new()) on two different outcomes: the value genuinely not existing, and reg query failing for any other reason. add_to_path treats an empty result as "there is no PATH yet" and writes a fresh value containing only VeilVoice's directory.

So on a machine where that query failed -- a transient error, an unexpected locale, a policy restriction -- installing VeilVoice would have replaced the user's entire user PATH with a single entry. There is no undo, the damage is silent until something stops working, and uninstall would have made it worse by removing that entry and leaving the value empty.

Nothing was wrong with the reasoning; the code did not implement it. The comment describing the danger and the function creating it were forty lines apart. That is the shape this document keeps recording: the check that is believed rather than enforced.

Fixed by refusing to conflate "absent" with "unreadable". read_user_path now returns Value or Absent, and everything else is an error that refuses the write and says why. Only a value that was definitely read, or definitely absent, permits a change. Verified by round-tripping a real install: six entries, seven, six, and the one that left was the one that arrived.

Found by re-reading code written hours earlier, against the classes rather than against a list -- which is the only technique in this document that has worked every time.

2.6 The new code, audited against the classes

Untrusted input. Two new parsers. palettes.rs reads files a user writes by hand: every token validated, every colour required to be a full #rrggbb, every problem reported rather than the first, and nothing filled in from the default theme -- a palette that is mostly yours with a few colours from somewhere else and no indication which is worse than one that refuses. The id is constrained to what survives a round trip through the preferences file, and may not collide with a built-in theme's.

Allocation sized by untrusted input. The palette loader bounds the number of files (40), the bytes read from each (16 KiB, bounded at the read rather than by a stat -- F-53), and holds no file in memory beyond that. The documentation generator reads only tracked source files.

Panics reachable from input. palettes.rs has no unwrap on user data; the one unwrap_or is unreachable by construction and falls back to a colour rather than panicking, deliberately, because it sits on a path that leads to a paint loop.

Rendering untrusted text into a page. Covered by F-52. Everything reaches the generated pages through an escape-first path, and links now go through the same scheme rule as the rest of the site.

Resource exhaustion. The generated diagrams are bounded at 22 nodes; past that the item table is the better answer and the page says the diagram was bounded rather than silently showing a subset. No regular expression in the generator is built from file content.

Concurrency. The theme table is a OnceLock read through one relaxed atomic load. No lock was added to the paint path; custom palette strings are leaked once at startup, bounded, and the reasoning is written where it is done.

Error handling that degrades quietly. The class this round was most alert to, and where F-50 and F-53 both landed. The generator now refuses rather than overwrites; the palette loader refuses rather than reads; the fact strip fails visible rather than blank.

Dependency risk. No dependency was added. tools/render/shot.py implements a WebSocket client in sixty lines of standard library rather than taking a package, on the same reasoning as the rest of tools/: a repository whose argument is that its supply chain can be read should not add to it in order to take a screenshot.

Cryptography. Untouched this round. No primitive, parameter or construction changed.

Nothing further found in these classes. That is a result and is recorded as one.

2.7 The v0.1.9 code, audited against the classes

The standard at the top of this document is a walk of every vulnerability class across the whole tree. Applied to what this round adds:

Untrusted input rendered into a page. search.js reads an index built from every tracked file, which in this repository includes the hostile-markup fixtures -- <script>, onerror= and the rest are in search-index.json today, as ordinary text. A single innerHTML would turn this project's own test corpus into its payload. Every value reaches the page through textContent or createTextNode, and match highlighting builds <mark> elements rather than strings. Asserted by tests that ask the tree whether an element is a script, not whether a string contains one -- the section 4.4 distinction, applied deliberately this time.

Resource exhaustion in the renderer. F-22 and F-23 were quadratic blow-ups on text fetched over the network, and the same class applies here. The query is bounded to 128 characters and 8 terms, scoring is a linear pass with indexOf, results are capped at 200 scored and 60 rendered, and no regular expression is ever built from user input, so there is no pattern for a query to blow up. Measured: a 5,000-character query renders promptly.

Allocation sized by untrusted input. The verifier streams files through SHA-256 in 64 KiB chunks rather than reading them whole; a release archive is tens of megabytes. This is F-36 in the other direction, avoided on purpose.

Dependency and environment trust. The install scripts resolve GnuPG to absolute, enumerated paths rather than by bare name. Resolving gpg through Windows' search order would include the current working directory, so running the installer from a folder containing a file called gpg.exe would run that instead -- F-13, in the one place where it matters most, since this is the program that decides whether the download is genuine.

Order of verification. Every script and the verifier check the signature over SHA256SUMS before comparing any file against it, and refuse if it fails. Checking the hash first would prove only that a download matches a list that might itself have been replaced. There is no flag anywhere to skip verification: an installer with one is an installer whose verification is decorative.

Error handling that degrades to a weaker posture. The one class this round was most alert to, because an installer is full of opportunities for it. Without GnuPG the scripts stop rather than falling back to "the hash matched" -- a hash checked against an unverified list is not a security check. An unsigned release is refused outright. --sums without --sig is refused. The verifier refuses to run a signed-list check and a typed-hash check at once and report a single answer, because they prove different things.

Nothing found in these classes beyond the defects listed above. That is a result and is recorded as one.

2.8 Accepted, with reasoning

A-1: Remaining expect() sites (6). Each was reviewed:

SiteAssessment
stft.rs ×2, FFT expectInfallible given correct buffer sizes, which the engine owns and asserts on construction. A failure here is a programming error, not a runtime condition.
hybrid.rs, OsRng::fill_bytesrand_core::RngCore::fill_bytes has no error return. Panicking on CSPRNG failure is the only option and is what every RustCrypto consumer does. Continuing with weak randomness would be far worse.
hybrid.rs, NonZeroU32::new(1).unwrap()Compile-time constant, cannot fail.
wav.rs ×2, try_into().expect("4 bytes")Slices of statically known length 4, guarded by an explicit pos + 8 <= end bounds check immediately above.

A-2: paste and ttf-parser unmaintained advisories. Neither is a vulnerability. paste is a compile-time proc macro that emits no runtime code. ttf-parser does parse untrusted input, but the only fonts loaded are egui's own embedded face and, optionally, a JetBrains Mono the user already installed system-wide, so no attacker-supplied font reaches it. Reviewed each release.

A-3: FreeBSD builds are not reproducibility-verified. Built once in a VM rather than twice in separate directories. Reported as not-verified in the release notes rather than claimed.

A-4: veilvoice-watch on Linux sees only your own processes. /proc/<pid>/fd is readable by the owner and root. This is a kernel permission boundary, and support() states it rather than letting an empty list imply an empty machine.


A-6 -- rsa carries RUSTSEC-2023-0071, and it is accepted on a narrow ground.

The portable verifier uses rPGP so that checking a release needs no GnuPG. That brings in the rsa crate, which carries the Marvin attack advisory -- key recovery through a timing side channel, medium severity, no fixed version available.

This is a vulnerability, not an unmaintained notice, and .cargo/audit.toml previously stated that vulnerabilities always fail the build. That rule is being weakened, so it is written out here and in that file rather than folded into the list of unmaintained advisories where nobody would re-read it.

The ground: the advisory concerns operations performed with an RSA private key -- that is what "key recovery" means, and a timing oracle needs a secret to leak. veilvoice-verify performs signature verification and nothing else. It holds a public key compiled into the binary; there is no private key anywhere in this repository or in any released artefact, and no code path in the workspace signs or decrypts with RSA. VeilVoice's own cryptography is X25519 + ML-KEM-768, XChaCha20-Poly1305 and Argon2id.

That is an argument about how the crate is used, not about the crate, so it is enforced rather than believed: a CI job fails the build if a secret-key or decryption API appears in the verifier. If the argument stops being true, the build stops with it, rather than this paragraph quietly ageing.

The dependency itself was weighed rather than waved through. rPGP is by far the largest dependency in this project: 155 packages, every licence permissive, no networking crate. The alternative was hand-writing OpenPGP packet parsing and RSA PKCS#1 v1.5 verification, where a subtle mistake is a silent accept in the one tool whose entire job is not to silently accept. A widely used implementation that many people read is the better risk, and the size of it is the price.

A-7 -- crypto-bigint carries RUSTSEC-2026-0387, and it is accepted on the same ground as A-6.

The advisory, published on 23 October 2026, says several operations in crypto-bigint that were meant to run in constant time could branch on the values they were given, so a timing side channel could reveal a secret integer. The fix is in 0.7.6. The 0.5 line has no fixed release, and the version this project reaches, 0.5.5, comes in through the elliptic-curve arithmetic that pgp uses for ECDSA, Ed448 and the NIST curves. pgp 0.21, the newest release, still depends on it, so updating pgp does not remove it. That was tried before this was written.

The ground is A-6's. A timing leak matters when the number being worked on is a secret. Checking a signature works on a public key and a public signature, and the verifier does nothing else, so nothing on this path is secret. The same guard enforces it: tools/audit/rsa_usage.py fails the build if any crate reaching pgp gains a secret-key, signing or decryption path, which is the only way a secret could arrive at this arithmetic. The exception is in both .cargo/audit.toml and deny.toml, and tools/audit/dependencies.py fails if the two stop agreeing. It is reviewed at each release, and it goes when pgp moves to crypto-bigint 0.7.

3. Cryptography

3.1 Primitives

PurposeChoiceAssessment
Password → keyArgon2id, RFC 9106 profile (256 MiB, t=3, p=4)Current best practice. Memory-hard. Cost parameters travel with the file, so old files open after defaults rise.
Public-keyX25519 + ML-KEM-768 hybridCorrect construction. Breaking it requires breaking both.
PayloadXChaCha20-Poly1305192-bit nonce is randomly generated; collision risk negligible, and it removes the counter-management failure mode that sinks RFC 8439 ChaCha20 deployments.
KEM combinerHKDF-SHA256 over both secrets plus the full transcriptCorrect. Binding both ciphertexts and the recipient key prevents an attacker who substitutes one half from steering the derived key.
Header integrityAuthenticated as AEAD associated dataPrevents KDF-cost downgrade. Verified by test.
Modulation streamChaCha20, OS-seeded, ratcheted every 2 sForward-secure: ChaCha20 is not invertible, so a compromised current state cannot recover earlier segments.

3.2 The app lock

Reviewed as it was written, and the review is short because the design refuses to be clever:

PropertyAssessment
Verifier, not a keyCorrect choice. It encrypts nothing because there is nothing local it could usefully encrypt, and a key that protected nothing would only invite the belief that it did.
Domain separationArgon2id("veilvoice/app-lock/v1\0" ‖ password, salt). Asserted by test to differ from a container key over the same passphrase and salt.
ComparisonConstant time, through Secret's subtle::ConstantTimeEq.
Rate limitThree free attempts, then doubling from 5 s to a 15-minute cap. Persisted after every attempt, so a process restart does not reset it. The shift is guarded against overflow and asserted at u32::MAX.
Clock handlingA clock that moves backwards yields no credit against the wait rather than a negative elapsed time.
Lock fileUnauthenticated on purpose. Any key that could authenticate it would have to sit beside it in the same file; a MAC would look like tamper-proofing without being any. Parse errors are errors, never "no lock".
Failure modesA wrong password on remove reopens the store so the recorded failure is not lost with it.

The honest limit, recorded here as clearly as in the UI: this defends against casual access, not against an attacker with the disk. The file can be deleted, the counter edited, the clock moved, and the hash attacked offline. lock::SCOPE states all four, is shown on the unlock screen itself, and a test fails the build if it is ever softened into a boast.

3.3 Encryption at rest, by default

The anonymise path now encodes the WAV in memory and seals it there, so a recording that is going to be encrypted never lands on disk in the clear. That closes a real hole rather than a theoretical one: on flash storage, a plaintext file that is written and then deleted is not recoverable by the user and may well still be recoverable by someone else.

Both front-ends refuse to start a job with encryption on and no passphrase or recipient key set, rather than quietly falling back to plaintext. The GUI's Plan::Missing exists solely to make that fallback impossible to write by accident, and is tested.

Opting out is preserved and gated behind a warning that has to be answered. Tests assert both that the default is on and that the warning still contains the uncomfortable sentences.

3.4 Post-quantum posture

Sound. ML-KEM-768 (FIPS 203) is NIST-standardised and targets category 3. The hybrid is the right call: ML-KEM is young, lattice schemes have had implementation breaks, and a pure-PQ deployment would be a single point of failure. The harvest-now-decrypt-later threat is real for recordings, which is precisely why this is not deferred.

Honest gap: the signature on releases is RSA-4096, which is not post-quantum. This is deliberate and low-risk, because a signature only needs to resist forgery until the release is superseded, and no PQ signature scheme has the verifier tooling to make it practical today. It is recorded here so nobody mistakes "post-quantum encryption" for "post-quantum everything".

3.5 Key handling

Page-locked out of swap, zeroized on drop, constant-time comparison, Debug redacted. Each Secret owns whole pages exclusively, a bug found and fixed earlier, where two secrets sharing a page meant dropping one unlocked the other's memory.

Secret::is_locked() reports whether locking actually succeeded rather than assuming. Locking does not survive hibernation, which is stated in the docs.

A-5: Typed passphrases exist as ordinary bytes while being typed. Narrowed since first recorded; the residue is accepted.

An egui text field owns a String and rpassword returns one, so a passphrase is ordinary heap memory for as long as something is receiving keystrokes. That window cannot be removed without a custom text widget, which would be far more code and far less reviewed than the gap it closes.

What was fixed is the part that had no excuse: the GUI used to keep the confirmed session passphrase as a plain String for the entire session, and the CLI passed Vec<u8> and String copies around after the prompt. Both now move the passphrase into a page-locked, zeroizing Secret the moment it is confirmed, and wipe the buffer it came from. The window went from "until the app closes" to "while the user is typing".

The remainder is accepted and stated rather than papered over: for those moments the bytes are swappable, and none of this helps against an attacker who can read the process's memory, who has already won, as WHITEPAPER.md §7 says.


4. The work that was outstanding, and what it found

The previous revision listed five items. Four are now done; the fifth cannot be done from inside the project.

4.1 Adversarial read of spectral.rs and accent.rs: done

Read end to end against the irreversibility claim.

The central claim holds. transform reads c.norm() and nothing else from the incoming spectrum, and every bin of spec is overwritten before it returns, zeroed then rewritten on the comb path, assigned outright on the channel-vocoder path. There is no branch on which measured phase survives, and none on which a bin retains a previous frame's value.

Checked in detail, and correct:

  • box_smooth's edge arithmetic. The running sum seeds with radius copies of src[0] and slides with clamped indices; expanding the window by hand at i = 0 and i = 1 gives exactly the sums the code produces.
  • The comb's energy normalisation. amp is set so the sum of squares over the comb lines equals the original frame's, so replacing the excitation is level-neutral rather than approximately so.
  • Every accent correction is bounded and long-term. Prosody is clamped to [0.5, 2.0], VTLN to [0.72, 1.40], and the tilt curve to ±12 dB; the time constants are 3 s (VTLN) and 2 s (LTAS), which is the mechanism behind the "never derived from the current frame" claim that keeps vowels intact.
  • log_centroid refuses to produce a value it cannot stand behind, returning None on an empty band or a non-finite result rather than a number.

One defect found: F-5, above. Two observations kept rather than fixed:

  • resample_linear silently substitutes a ratio of 1.0 for a non-finite one, which would pass the envelope through unwarped, a weaker transform arriving quietly. With F-5 fixed and the accent ratios clamped, no input can reach it, so it is now defence in depth rather than a live path. Left as it is, and written down here so it is a known belt rather than a forgotten one.
  • With accent neutralisation switched off, voiced frames take the channel-vocoder path and pitch is randomised rather than normalised, strictly weaker, as WHITEPAPER.md §3.2 already says. Consistent, not a defect.

4.2 Parser campaigns: done, and they found F-2, F-3 and F-4

crates/veilvoice-crypto/tests/parser_fuzz.rs and crates/veilvoice-meta/tests/wav_fuzz.rs. Deterministic seeded PRNG with structure-aware mutation, meaning bit flips, truncation, splices, and 32-bit fields replaced with u32::MAX, i32::MAX, 0 and 1, plus every length around each boundary walked exhaustively.

Properties asserted, not just "it did not crash": a parsed header must re-serialise to exactly the bytes it came from, reported offsets must lie inside the buffer, and a cleaned WAV must itself be a valid WAV whose size field matches what was written.

Run at 1,000,000 rounds per target in debug (overflow checks on, which is the release profile disables them, and an overflow was one of the bugs) and 2,000,000 in release. Clean after the fixes. CI runs 1,000,000 per target.

This is not cargo fuzz and is not claimed to be. It is not coverage-guided, so it explores by construction rather than by feedback. It was chosen because cargo fuzz needs nightly and libFuzzer, and a check that only one person can run is a check that stops being run. A coverage-guided campaign remains worth doing. See §5.

4.3 Timing analysis: done, no leak found

crates/veilvoice-crypto/tests/timing.rs, #[ignore]d by default because a timing test on a shared runner measures the neighbours. Measured on an idle Windows desktop, release build, 2,000 samples per case, reporting the minimum, because timing noise is one-sided, so the fastest sample is the closest estimate of the work actually done.

ComparisonRatio
Container open: wrong at the first byte vs wrong at the last0.996
Container open: wrong vs right password0.996
App lock: wrong vs right password1.004
App lock: one-byte vs full-length password1.004

Within half a percent. No prefix correlation, which is the property that matters: an early-exit comparison turns the clock into a character-by-character oracle and would show as a large factor, not a fraction of a percent.

The rate-limited path is a deliberate exception. It returns before touching the KDF and is therefore at least 23,600× cheaper than a real attempt. That is the point of a rate limit, which is refusing to spend the CPU, and it leaks only the state the unlock screen displays on its face anyway.

(A first pass reported a 1.49 ratio for wrong-vs-right. That was the harness, not the code: it used medians on a noisy machine and, for the app lock, timed two derivations against one. Recorded because a timing result that is not reproducible is not a result.)

4.4 Website JavaScript review: done, and it found F-6, F-7 and F-8

js/repo.js fetches README.md over the network and assigns the rendered output to innerHTML. Everything on that path rests on one claim in js/markdown.js: escape first, emit only your own tags.

tools/site-tests/ now tests it: 39 hand-written hostile documents, each aimed at a specific escape route, plus a randomised campaign run to 200,000 generated documents. The check is an allowlist, so output may contain only tags and attributes the renderer is supposed to produce, because a blocklist of "no <script>" passes anything that finds another door.

The check parses attributes the way a browser does. An early version did not, and reported six findings of which five were false: &lt;script&gt; in the output is the renderer working, and src="a&quot;onerror=x" is one attribute whose value contains a quote, because entity references are decoded after the value is delimited. A naive scan calls both of those attacks and buries the real one in the noise.

After the fixes: clean at 200,000 rounds. The suite also covers rendering correctness (F-7 was a correctness bug with no security dimension, and would never have been caught by a security-only test), page structure, and the scroll-reveal effect's fallbacks.

Also reviewed by reading:

  • repo.js assigns link.href = asset.browser_download_url from the GitHub API without a scheme check. The value comes from GitHub's own release API for this repository and is always a github.com URL, so it is not currently reachable; it is the kind of assignment worth a guard anyway, and is listed in §5.
  • verify.js, theme.js, legal.js and reveal.js write through textContent, classList and typed DOM properties throughout. No innerHTML outside the two places noted, no eval, no new Function, no document.write.

4.5 The wider sweep, and what it cost to skip it

The previous revision closed this section by saying the remaining gap was an outside reviewer. That was true and it was also a way of not saying the other thing: the scope that round had set itself was narrower than the code.

This round set the scope from the vulnerability classes rather than from a list of things that seemed worth checking, and walked each class across the whole tree. Twenty-eight defects. None of them needed a technique the previous round lacked. Every one of them needed somebody to look at that particular thing:

  • The class "allocation sized by untrusted input" had been applied to the Argon2 cost parameters (F-3) and to nothing else. Applying it to the DSP configuration found F-10; to the decoder, F-17.
  • The class "panics reachable from untrusted input" had been applied to VeilVoice's own parsers and not to the boundary with symphonia, where F-9 was waiting -- and where, under panic = "abort", a panic is not an error but the end of the process.
  • The class "TOCTOU and path handling" had not been applied at all. It found F-12 (an erase that destroyed a file other than the one named), F-14 and F-15 (secrets created world-readable), and the check-then-write races behind all three.
  • The class "dependency and environment trust" had not been applied to how a subprocess is located, which is F-13: a planted reg.exe in the working directory, executed by the two features somebody runs when they already suspect their machine.
  • On the website, "resource exhaustion" had never been applied to the renderer at all, because the hostile-input suite asked only whether the output was safe. It was. It just took eight seconds to produce (F-22, F-23).

The lesson is recorded plainly because it will apply again: a finished audit scope is only as wide as the list it was drawn from. The defence is to enumerate the classes rather than the worries, which is what the standard at the top of this document now says.

5. Still open

  1. An outside reviewer. Not a task item -- see the standard at the top of this document -- but still worth having, and still absent. Everything here is the author checking the author's work. What that is worth is now a measured quantity three times over: three rounds of wider tools and wider scope have each found real defects in code a previous round had called clean. This round it was F-37, live on the published site the whole time.
  1. **The coverage-guided campaign has now been run twice, at five and then ten minutes per target, and that is still not convergence.** All six targets, on x86-64 Linux. The second run is 703 million inputs and is written up above; it found F-92. It found two defects in its first run: F-82, an unbounded Argon2 time cost reachable from a .veil file and from the app-lock file that is read before anyone authenticates; and F-83, a tamper record whose path could rewrite the report that prints it.

That is the strongest evidence in this document for what an unrun campaign is worth. Both defects had shipped. Both were in code that three audit rounds had read. Neither was reachable by the deterministic campaign, which generates inputs by construction rather than by coverage feedback, and both are now regression tests inside it.

A seed corpus is now committed for the two targets that need one. The gap it closes was measured rather than assumed, on lock_file, two minutes each way: a cold run starts at 25 code paths and reaches 460 after 64,309 inputs, while a seeded run starts at 625. The seeds give a campaign more coverage in its first second than two minutes of cold running achieves, because both crypto targets hide their interesting code behind a magic string, a version byte and three cost fields.

Only container_header and lock_file have seeds, and the other four are left deliberately: they manage between twelve and three hundred million inputs in ten minutes and find their own structure in seconds. guard_manifest's minimised corpus alone is 3.9 MB, which is a great many committed bytes to save a target no time at all.

Run again at twenty minutes a target, over all seven, in the twenty-first round: 2,127,796,269 inputs, no crash, no hang, no out-of-memory. The one new artefact was a slow unit on lock_file declaring 569 MiB, ten passes and 127 lanes, which is legal on every axis and is the class F-91 bounded.

What is still open, and doubling the time did not change any of it: twenty minutes is not convergence either, three of the seven targets have never found anything, five of them have no committed corpus, and nobody has run any of it on Windows or macOS. A null result at this length is evidence that the targets are converged on the structure they can reach, and is not evidence that the parsers are correct. fuzz/README.md carries the run counts and the seed measurement and says the same thing in its own words.

  1. **32-bit targets are now exercised in CI, and this entry says what that does and does not cover.** It had been open since the fifth round, named here as the single highest-value change available to CI, because two shipped defects came out of its absence: F-4 (an overflow) and F-11 (a non-terminating erase loop), both reachable only where a pointer is 32 bits wide, both found by reading, and neither reachable by any campaign on an x86-64 host.

The narrow job runs i686-unknown-linux-gnu on the runner's own kernel and armv7-unknown-linux-gnueabihf under qemu-user-static. Re-measured after the app lock gained its version 2 record, the vault and the integrity module: 716 tests pass on both targets, with no failures on either. The count moved from 682 because the new code brought its own tests with it, and running them here was the point: a keyed tag, a masked file and two filesystem paths are exactly the kind of code where a narrow pointer shows up, and none of it had been run anywhere but on x86-64 until this pass.

It is not the whole workspace, but it is two crates wider than it was. veilvoice-audio and veilvoice-video have joined the i686 list: they link ALSA and nothing else, and the multiarch sysroot that had been written off as an exercise turned out to be dpkg --add-architecture i386 and one package. That is 81 more tests on a 32-bit target, in the crates that walk RIFF chunks, which is where F-4 was. veilvoice-cli and veilvoice-gui are still out and GTK is why: its 32-bit development packages do not install cleanly here, and that one really is a sysroot exercise rather than a 32-bit correctness one. The arithmetic, the parsers and the erase loop are in the crates the job does run, which is why those are the ones it runs. Neither target has been exercised on Windows or macOS, and no 32-bit release build is published for any platform.

And a passing run is not the same as a campaign: this proves the existing tests hold where a pointer is narrow, not that a narrow pointer has been hunted for. F-4 and F-11 were found by reading, and reading is still what would find the next one.

  1. A hostile file in a format VeilVoice does not itself parse. F-9's pre-flight covers the one confirmed decoder crash. Under panic = "abort" nothing in-process can cover the next one, whatever format it is in; decoding in a separate process is the only complete answer and is not built.
  1. The privileged half of tamper detection, unchanged from the previous round and for the same reasons -- see ROADMAP.md. Detection logic is done; privilege and setup are not, and the obvious version of it is worse than nothing.
  1. **install.sh has now been run on Linux; macOS is still unrun, and nobody outside this project has run any of it.** On x86-64 Linux it was run end to end against the published v0.1.14 release: latest tag found, archive downloaded, key fingerprint compared, signature over SHA256SUMS verified, archive hash matched against the signed list, both binaries installed, and the installed veilvoice info ran. Its refusals were exercised on the same machine and both exited 1. That run found F-79.

What is still open is macOS, whose sh is not Linux's, and the larger point: every one of these runs is the project checking its own work. docs/INSTALL.md says so in its own words.

  1. Two of the six package definitions have been built; four have not. The Debian one builds, installs, runs and removes, on one x86-64 Ubuntu machine, and doing that found F-80 and F-81. The RPM now builds too, on the same machine: a source RPM from a git archive tarball, then two binary subpackages whose contents were checked against the spec. WiX, Flatpak, Homebrew and the Gentoo ebuild still only parse, and that is the whole of what is claimed for them. docs/PACKAGING.md carries a per-format table saying which is which.

The RPM build is weaker than the Debian one and the gap is named rather than glossed: it ran on Ubuntu rather than on any RPM distribution, it needed --nodeps because rpm cannot read dpkg's database (every build dependency was confirmed present by hand first), it needed --nocheck so the spec's own %check has never run, and rpmlint has not been run. What it did prove is the thing a parse cannot: %files and %install agree, in both subpackages, which is the classic spec defect.

lintian has now been run over both Debian packages: no errors, five warnings. Two concern uploading into Debian's own archive and do not apply. The other three were no-manual-page, one per binary, and that one was real: man veilvoice produced nothing. It is now fixed, in the packaging rather than by hand, and the fix is described in item 10.

rpmlint has now been run over both binary packages and the source RPM, and it found two real defects. Two %description lines were exactly 80 characters against a limit of 79, and rpmbuild separately warned bogus date in %changelog for Sun Aug 31 2026, which was a Monday. Both are fixed, both would have been bounced by a distribution's review, and neither was visible until the package was built and linted rather than parsed.

The wrong date was in the Debian changelog too, as Sun, 31 Aug 2026. One mistake, copied into two packaging files, sitting in both for as long as they had existed. Debian's tooling treats it as a defect as squarely as RPM's does: lintian carries debian-changelog-has-wrong-day-of-week. It was found only because the RPM was built, and it would not have been found by building the RPM alone.

So the weekday of every changelog date in both files is now checked by tools/site-tests/packaging.test.js, which runs on every commit rather than when somebody happens to build a package. It does not replace building them; it catches the one class of defect that a build found and that nothing else was looking for. Both spellings were tested by putting the wrong day back.

The other eighteen reports are rpmlint's default configuration disagreeing with how RPM packages are written now: it wants a Group: tag that Fedora dropped, a BuildRoot: unnecessary since RPM 4.6, a Packager: that identifies the builder rather than the software, and it calls GPL-3.0-or-later an invalid licence when that is the SPDX identifier Fedora requires. docs/PACKAGING.md lists all eighteen with the reason each stands, because a linter's output quoted selectively is worth nothing.

Still open: nothing has been uploaded anywhere, the Debian build used a rustup toolchain rather than Debian's own cargo and rustc packages, and four formats remain drafts. rpmlint reads a package rather than installing one, and it ran on Ubuntu against packages built on Ubuntu, so it is one more check than there was and it is not a Fedora build.

  1. rsa carries an unfixable advisory (A-6). Accepted on the ground that the verifier performs no private-key operation, and enforced by a CI job rather than left as a claim. If rPGP ever offers a backend that avoids the rsa crate for verification, that is worth taking.
  1. The stated test count belongs to whichever platform last measured it. F-77. docs/MEASURED.md now records the host it was taken on, so the number no longer pretends to be platform independent. What is still open is the wording on the front page, which states one platform's total with nothing beside it. Saying it in a way that stays true for a reader on any of the three is a change to the page's own voice rather than to a generator, so it waits for the maintainer.
  1. **Manual pages are generated from each binary, and the third one needed a --help to generate from.** lintian reported no-manual-page for all three binaries. A page written by hand would be a second description of the interface kept in step with the first by nothing but attention, which is the arrangement that produced F-71, so tools/release/manpage.py derives each page from the binary's own --help at package build time. Nothing is committed, so nothing can go stale.

help2man does this job and was tried first. It mangles the output: every em dash in VeilVoice's help came back as ???, at C, at C.utf8, and with LC_ALL set either way. A page that renders the program's own description as three question marks looks finished and is not, so the forty lines that get the encoding right were worth writing.

Two things fell out of doing it. veilvoice-gui had no --help at all: it opened a window instead, and on a machine with no display it answered a reasonable question with a winit error naming WAYLAND_DISPLAY. It now answers, on Unix, where a release build is guaranteed a console; on Windows windows_subsystem = "windows" means println! writes to nothing, so behaviour there is deliberately unchanged rather than silently made worse. And the first version of that help text named three tabs that do not exist (watch and security for what are really monitor and lock, and no install), which would have shipped inside the package. A test now compares the help text against Tab::ALL.

Confirmed rather than assumed: lintian over the rebuilt packages reports no errors and two warnings, both about uploading into Debian's own archive, and all three no-manual-page warnings are gone. dpkg -c shows each page in the right package, and each was installed and rendered with groff. That check took one detour worth recording, because it looked like a packaging bug and was not: this build machine is a minimized Ubuntu image, which carries path-exclude=/usr/share/man/* and discards manual pages as it installs them. The pages were in the packages all along, and believing the first ls would have produced a confident and wrong entry here.

Still open: read on Linux, with groff. Nobody has read them on macOS or through a different man implementation, and mandoc -Tlint has not been run.

  1. Closed: no em dash remains in any tracked file, in any encoding. The entry used to report the interface text clean with 349 left in doc comments. Those are gone, along with the rest of the tree: the Markdown, the workflows, the site tests, the build files, the generators, and the hand-written website pages.

The stated remainder had been measured with the wrong instrument. A grep for the character does not find &mdash; or &#8212;, and the website carried roughly 2,800 of them in those two encodings. "349 remain", offered here as measured rather than estimated, was measured accurately over the files a grep -r "—" reaches and silently excluded the largest population in the repository. A number is only as honest as the search that produced it, and this one was not wrong so much as unaware of its own scope.

Three sites keep the character deliberately, because all three read it as input rather than writing it: the roff translation table in tools/release/manpage.py, the empty-estimate spelling accepted by tools/site/roadmap.py, and the entity decoder in tools/docs/generate.py.

What the sweep itself cost is recorded rather than omitted. Removing a dash that was joining two independent clauses and leaving a comma produces a comma splice, and eight of those shipped into the working tree before being caught: seven in the website, found by reading the rendered pages, and one in docs/USING_THE_CRATES.md, found afterwards by grepping every added line for a comma followed by a new independent clause. The cheap mechanical check found what careful reading had missed, an hour after careful reading found what the passing site suites had missed.

6. Verdict

Three hundred and eight defects found and fixed (F-1 to F-308), across forty rounds. Sixty of them, from the earliest rounds, are written up together in §2 rather than each under a round of its own, which is why no per-round breakdown is kept here: the document's structure cannot support one, and the breakdown that used to stand in this place was written when there were seven rounds and was still saying so eleven rounds later (F-105).

The commentary in the rest of this section was written at the seventh round and is kept as it was. It is accurate about the rounds it names, and it is not a summary of the eleven rounds that followed; those are written up in their own sections above, newest first.

None of the seventh round's five had shipped, which was then the first round that could say so, and it is worth being careful about why: main has not been released since v0.1.12, so "had not shipped" and "was written this cycle" are the same sentence. It is not evidence that the code is getting better. The pattern that is worth noting is that three of the four were comments that had stopped being true -- about where a call sits, about what a stylesheet costs -- rather than logic that was wrong. A wrong thing that agrees with itself survives every reading.

Of the fifth round's twelve, two had shipped and ten were caught in code written during that round. Keeping those apart matters: a round that counts just-written-and-immediately-fixed defects alongside ones that were live on the published site is flattering itself.

Neither of that round's two shipped defects was a confidentiality failure either, and both are worth naming for what they were. One rendered this project's own README as tag soup at the top of its front page. The other made the secondary text of the default theme too low-contrast to meet the accessibility floor -- on the website, in the desktop application, in the terminal, and inside the banner image, where the affected line was the licence.

No finding in any round has been a confidentiality failure. Nothing has let an attacker recover a voiceprint, read a sealed recording, bypass a password, or weaken the cryptography. That distinction is real and it is worth drawing. It is not a reason to be pleased, because the failures that did occur are the ones a person relying on this would care about:

  • Two erased the wrong thing or nothing at all. F-12 filled an unrelated file with random data and reported success; F-11 hung for ever and left the target intact. Both in the feature whose entire promise is destroying a file.
  • Three killed the process from a file somebody sends you (F-3, F-9) or from the app-lock file read before anyone has authenticated (F-2).
  • Two produced silence and said nothing. F-5 from a sample, F-10 from a configuration value -- the same failure through two doors, the second found only because the first had been written up properly.
  • One ran a program the user did not choose (F-13), in the two features somebody runs precisely because they suspect their machine.
  • Three left secrets readable by other local accounts (F-14, F-15), or unwiped in freed memory (F-18).
  • Two wrote a recording outside the encrypted volume its owner had chosen (F-93, F-95). This is the closest any finding has come to the line above, and it is worth being exact about which side of it these fall on. Nothing read a sealed file or broke a password: the recording was voice-de-identified as promised, and no attacker was given anything they could not already reach on that disk. What failed is the disposition. A person who had opened a vault, chosen it, and locked it again would have gone on producing files that landed on the ordinary unencrypted disk, believing each one had gone inside. The at-rest promise was not broken cryptographically; it was simply not applied, silently, to files its owner had asked it to cover.
  • On the website, two froze the reader's tab for seconds at a time on text fetched over the network (F-22, F-23), and three made the page unusable on engines a great many people are still running -- including a legal gate that was an invisible modal on pre-2023 browsers (F-30) and one that could not be dismissed at all on an iPhone (F-33).
  • And one made the site illegible about itself (F-37): the banner carrying this project's own claims, its licence and its authorship was rendered with more than half its pixel rows deleted, on every viewport, for as long as the banner has existed. Every test passed the whole time.

The cryptography itself continues to stand up. The primitives are standard and well reviewed, and the composition -- the hybrid combiner, the authenticated container header, the domain-separated app-lock verifier -- is done properly rather than approximately. Not one defect in three rounds has been in the cryptographic construction.

This round adds a boundary the previous three did not have: the point where a user decides whether to trust a download. The install scripts and the verifier are that boundary, and they are written to refuse rather than continue, to name the check that failed, and to have no flag that skips verification. Three of this round's defects (F-44, F-45, F-46) were in that code and were found by running it rather than reading it -- which is the same lesson as F-37, in a different medium.

Every defect has instead been at a boundary, and the list of boundaries has grown each round: parameters read from a file and handed to a library without a bound; samples folded into persistent state without a check; configuration folded into the same state without a check; a decoder handed a file before anyone looked at it; a path used without asking what it actually points at; a subprocess named without saying where it lives; a file created before its permissions were set; text read from the network and rendered without a bound on the work. That is where the next one will be too.

The app lock adds a control whose value is real but bounded, and the bound is stated everywhere it appears rather than only here. A lock a user over-trusts makes them less safe, not more; that is the failure mode this design was written to avoid, and the one to keep watching in any future change to it.

The project's main security asset is not any single control but the fact that every claim it makes is checkable: no unsafe, no network, reproducible builds, generated artwork, and documentation that states limits rather than hiding them. This document is part of that, and it is the third revision in a row to have to record that the previous one was more confident than the code deserved. The honest response is to say so here rather than to quietly improve the score -- and to keep the standard at the top of this document pointed at classes of defect rather than at a list of things that felt worth checking, because the list is what was wrong both times.

This page is also Doc-AUDIT in the GitHub wiki, and both are generated from the same document in the repository.