Decisions
Decisions in force, one line each. Numbers are stable and quoted elsewhere; a gap in the numbers is a decision that was replaced or concerns only private tooling. A new decision takes the next free number and states the rule and its reason. Discussion happens in an issue labeled decision.
Foundation
- D-00 Rust, Cargo workspace, Iced (wgpu), clap; one binary for the window and the command line, no WebView.
- D-02 crates/bonk is the only binary; the interfaces are libraries.
- D-04 NTFS and ext4 through the host’s tool; the feature is reported unavailable when the tool is missing.
- D-05 install.wim split into .swm by Rust code written from the format; pieces under 2^32 minus 1 bytes, a resource never cut.
- D-79 As few libraries, host tools and third-party binaries as possible, even if it means rewriting them.
- D-80 Comments: none by default; one technical English sentence when the code cannot carry the information.
- D-136 Everything in the repositories is in English: branches, commits, pull requests, issues, identifiers, files, workflows, jobs, data branches. Only user-facing translations stay French. Reason: an outside contributor reads one language (maintainer, 2026-11-28).
Access and tooling
- D-19 MIT license for Bonk, holder FantasmaGlad.
- D-22 main is protected, administrators included: pull request required, force push and deletion blocked. Required checks on Bonk: the Linux quality job, CodeQL and zizmor, which run on every pull request.
- D-74 Allowed commit co-authors: dependabot[bot] and github-actions[bot] only.
- D-121 Rust compiler pinned in rust-toolchain.toml, each new stable proposed by Dependabot after 7 days: a release is built with its CI’s compiler. Dependabot in every repository.
- D-122 Proof levels: P0 unit tests and tables of cases; P1 fuzzing of every reader of outside data; P2 end to end on an image or a simulated disk; P3 QEMU boot in CI on the serial console; P4 real hardware by the maintainer. Each step names its level; a lower level never stands in for a higher one; anything that writes a boot sector, a partition table or a signature needs P3 before merge and P4 before it is announced.
Core, disks, command line
- D-23 BlockDevice in bonk-core (aligned access, typed errors, MemoryDevice); FileDevice in bonk-hal.
- D-24 Pure safety filter in bonk-hal: Offered, Hidden or Excluded, with every reason.
- D-25 Linux enumeration through /sys/block, mountinfo, /proc/swaps and the udev database, without privilege.
- D-27 Everything is available from the command line; logging through log; bonk diagnose and bonk debug are read-only.
- D-28 Error codes Exxxx by hundreds (0 usage, 1 disks, 2 safety, 3 image, 4 write, 5 configuration, 6 service, 7 format), bonk explain; exit codes 0 to 6; option over BONK_ variable over file over default; versioned JSON schemas.
- D-29 Raw write in bonk-core: 4 MiB blocks, cancel between blocks, SHA-256 read back, backup GPT repair.
- D-30 Capture and replay: serial numbers and user name masked, no read of the real system.
- D-31 bonk serve: JSON lines, PROTOCOL = 1, the command line’s safeguards, one write at a time, closed input means cancel.
- D-32 The window writes through a bonk write subprocess with JSON progress, never elevated.
- D-33 wgpu panic: restart once with the tiny-skia backend.
- D-34 Transitive RustSec advisories from Iced with no effect on Bonk: exceptions in deny.toml, repeated in osv-scanner.toml, each with its reason and its removal criterion.
- D-35 Command line and errors in English; window, application and site translated; an engine message appears under a technical detail heading.
- D-36 Never elevated at launch: successive openers (caller, UDisks2 or authopen, elevated helper), identity checked on the descriptor received.
- D-37 Windows and macOS enumeration: thin collection, pure normalization tested on captures.
- D-38 verify after GPT repair neutralizes only the rewritten ranges.
- D-39 GPT repair keeps the image’s table address.
- D-40 Cache dropped before reading back.
- D-50 bonk-ops holds the write and its errors; Platform::current() is the single choice of system.
- D-51 MBR, GPT, FAT32 and exFAT written by Bonk on BlockDevice: same bytes on every host.
- D-53 Internal disk: a confirmation whose keyboard can only cancel.
- D-54 Own FAT32 writer rather than the fatfs crate.
- D-55 Format: GPT; FAT32 up to 32 GiB, exFAT above.
- D-57 Data after a compressed stream is refused (E3004); a local compressed image without –sha256 is decompressed in a dry run before erasing.
- D-58 System paths behind LinuxRoots or Platform; Android without paths or signals.
- D-59 HTTPS: ureq 3, rustls and ring, rustls-platform-verifier.
- D-60 bonk write takes a key and an address or a path: an address requires its checksum; cache keyed by checksum, never emptied by itself, checked again on each use, resumed downloads, bonk cache clean.
- D-64 Building without default features gives bonk-cli without Iced.
- D-65 Windows: the elevated helper filters, locks, opens and duplicates the handle; decoders never run elevated.
- D-66 macOS: diskutil rather than DiskArbitration.
- D-69 Window translations next to the code, lang.pick(english, french).
Images and writing
- D-61 Windows key by extraction: Bonk’s table and FAT32, the ISO’s files copied, boot by its own loader.
- D-62 Windows copy in one pass, contiguous files read back one by one, install.wim as .swm, 1980 dates, label BONK-WIN.
- D-67 Without a published checksum: SHA-256 computed once per address and size, stated in the note.
- D-68 An image that does not boot from a key is listed, never written (E3006), unless a route is proved (D-112, D-117).
- D-73 BIOS boot code written by Bonk under MIT, assembled by the Rust toolchain.
- D-75 Windows key in MBR by default (BIOS and UEFI); GPT on request, required above 2 TiB.
- D-112 DVD-only ISOs: vault for AlmaLinux and Rocky Linux, hybrid write for NixOS; hybrid only when the catalog says so, after a proved boot.
- D-117 Every image has a proved route or a refusal that names the alternative; hybrid extended to proved x86_64 ISOs, UEFI only stated in the note. BIOS for DVD-only ISOs: the BIOS vault first, a second stage only on a measured need.
Vault
- D-06 The vault boots with Secure Boot disabled; no third-party shim.
- D-76 GRUB 2 built by CI from source, as separate files; later a UEFI loader in Rust (package 20).
- D-77 exFAT partition written by Bonk.
- D-81 MBR by default, exFAT first, ESP at the end; GPT with –table gpt.
- D-82 GRUB checked by its GPG signature, published by the signed catalog, weekly watch.
- D-83 One GRUB per architecture, menu filtered by grub_cpu; Bonk ships for Linux RISC-V 64.
- D-85 Ubuntu: Bonk’s iso-scan script injected into the initrd (casper does not read exFAT); to review at each casper version.
- D-92 No arm64 CI job (no KVM runner): aarch64 QEMU boot run locally before a release that touches the vault.
- D-110 Vault Secure Boot postponed. When it comes: Bonk’s loader signed by its own key, which starts each ISO’s signed chain; key kept offline by the maintainer; reproducible loader built and attested by CI, signed offline, signature and identity checked again by CI before publishing; no online key.
- D-119 Vault families as data (detected files, label prefix, kernel, initrd, options with placeholders, location); the GRUB menu is written from them; served by the signed catalog, default list in Bonk; any value that would escape a menu string or the kernel line is refused.
- D-120 BIOS vault: GRUB 2.14 i386-pc built by bonk-catalog and published in the signed entry; Bonk writes boot.img in the MBR and core.img in the free sectors before the first partition, and links the block list like grub-bios-setup. Vault partition active in MBR; 512-byte sectors only.
- D-124 Vault recognition measured by the published Bonk: bonk info on an address reads the image by range requests, bonk-ops stays without network.
- D-125 Recognition published per image: field vault_family, absent when no family boots the ISO.
- D-126 A vault family is proved before it is served: –families replaces the catalog’s families with a file checked by the same rules.
- D-127 Windows installs with a solid install.esd above 4 GiB are removed from the catalog; the refusal names the alternative.
- D-128 A vault family that needs new Bonk code is served only after the release that carries that code.
- D-129 Independence from GitHub: every repository and every Bonk release copied to gitlab.com; each release there carries SHA256SUMS signed by a dedicated release key, checkable without GitHub. GitHub stays the source.
- D-130 Install scripts check SHA256SUMS against the release key signature when gpg is present, and the Sigstore attestation through gh or cosign; a missing tool gives a warning that says what is still checked, never a silent failure.
- D-131 Vault family paths may hold one wildcard in the file name, for a kernel named by its version; it must match exactly one file.
- D-132 Downloads counted without telemetry, one total: GitHub release files and the packages served by packages.bonk-os.app through the Cloudflare proxy without cache; daily count in bonk-packages, the only source of the site’s badge and of api/downloads.json. GitHub releases are never deleted.
- D-133 Catalog keys, one source: trusted-keys.txt in Bonk, read at compile time; the site reads it from Bonk’s main at build time.
- D-134 Vault GRUB assembled once, in bonk-catalog over a pure GrubInfo in bonk-core; bonk-ops stays without network.
- D-135 Vulnerability exceptions in two files, one per tool (deny.toml, osv-scanner.toml); an unused cargo deny exception fails CI.
- D-137 Catalog hardening: catalog key in a signing job that runs no repository code and receives only catalog.json, in an environment limited to main; package and release keys in their own environments. Data branches: no deletion nor force push. Freshness alarm outside GitHub.
- D-138 Vault families served by the catalog are read in Bonk at the tag of the latest release; no copy in bonk-catalog.
- D-139 Release name: Bonk X.Y.Z (YYYY-MM-DD), UTC day of the release; tag vX.Y.Z and package versions unchanged.
- D-140 Two boot benches, no overlap: Bonk’s tests the code before each release, bonk-catalog’s proves the published binary and feeds the catalog’s boot fields; both take their images from the signed catalog.
- D-141 Catalog key delegation: only offline roots in trusted-keys.txt, a 90-day publication key certificate with an alarm 14 days before expiry, the direct root path kept as last resort; older Bonk served by the current key for three months after the delegation release, then cut; the site checks the chain too.
- D-142 Images from the 2026-11-27 survey: betas in a v3 catalog next to an unchanged v2, beta channel added to Bonk by a release; one source expands into variants; latest version per edition and architecture, plus lts and archive the publisher serves; mirrors only when the publisher names them.
- D-143 Virtual machine and container images are never in the catalog nor written: they are not bootable media, or are made for a hypervisor and boot badly on a real PC, while the publisher almost always serves a raw image for hardware.
- D-144 Archives and compressions: Bonk reads any wrapper that carries a single bootable image, as a stream, without a temporary file: gzip, xz, zstd already; zip, 7z, lzma, lzip, bzip2 and tar to add, one module per format, bzip2 decoder written in Bonk. An image in a format published Bonk cannot read is served only in v3.
Platforms and distribution
- D-41 A tool missing in CI is a failure; CI packages listed in one file.
- D-42 Bonk on every system it writes drives for: Linux glibc 2.17 and later (x86_64, aarch64, i686) and musl, Windows (x86_64, ARM64, x86), macOS (ARM64, Intel).
- D-43 Public repository, binaries attested by Sigstore, draft releases, actionlint and zizmor.
- D-44 Android: minSdk 26, targetSdk 36, compileSdk 37.2; USB without root, raw write.
- D-45 No paid certificate, neither Authenticode nor Developer ID; provenance by Sigstore, SHA-256 and sums signed by the release key.
- D-48 Image links in a signed Ed25519 manifest that expires, never an API.
- D-49 One binary per architecture and libc, never per distribution.
- D-70 Android: native Compose over bonk-ui logic, jni 0.22.
- D-71 Android: one APK per CPU, ARM64 and x86_64.
- D-72 Android: serializable messages, contract produced by Rust and read by the JVM.
- D-84 bonk://install/id: a catalog identifier only, never a write.
- D-86 Economical CI: Linux on each pull request; Windows and macOS when system code changes; full matrix on Monday and on demand; binaries at tags and on Monday.
- D-102 Windows notifications through Shell_NotifyIconW; nothing on macOS while unsigned.
- D-107 Termux through pkg; stable download links without version; AUR bonkos-bin and bonkos-cli-bin.
- D-109 Mac: Windows key for Intel Macs, macOS installer from a Mac, then from Windows or Linux; Apple’s license is the user’s responsibility.
- D-111 Portable drives as an option: Windows To Go and Linux with persistence.
- D-123 macOS: the .dmg carries only the graphical application; the bonk command comes from Homebrew or the install script.
Interface
- D-26 Outlines at 21:1, selection by a thicker outline, palette shared with the site.
- D-91 Fira Sans and Fira Mono embedded (OFL).
- D-97 Offline mode: the interface never reads the network, only a local image is written.
- D-98 Language and theme resolved before the window opens, one theme family per run.
- D-99 Tor is never installed by Bonk; without Tor, a link to torproject.org.
- D-100 Android: downloaded image saved in Download through MediaStore (10 and later), no storage permission.
- D-103 Incognito through a Tor client already running; an unreachable Tor never falls back to direct.
- D-104 Incognito at startup only with a Tor that answers; –no-verify never in the window.
- D-106 File drop under Wayland waits for Iced on winit 0.31.
Catalog and sites
- D-88 v2 catalog only, until v3 (D-142).
- D-89 Consumer Windows: official page only, no relay.
- D-93 Desktop, type, medium and published memory fields; one page per system; a writable image before a DVD.
- D-94 Prerendered site, factual metadata only, sitemap.xml, robots.txt, llms.txt.
- D-95 exFAT written by Bonk on every platform.
- D-96 Taxonomy published by the catalog, fallback copy in each client.
- D-101 Catalog open to any bootable system, non-affiliation notice for third-party builds; an image behind an account gets its official page only.
- D-105 A failing source keeps its last entry for 30 days.
- D-108 One search rule in bonk-catalog for the window, the application and the command line; the site replays it through a shared table of cases.
- D-113 End-of-life and development releases admitted, with a channel and a note that say so.
- D-114 Official logo only, its source recorded.
- D-115 Date and logo read from the publisher; without a published date, out of the catalog.
- D-116 READMEs carry no decorative symbol.
- D-118 Boot proofs written by bonk-catalog’s weekly bench on its proofs data branch, read by publishing; published Bonk, checksum and attestation checked; last successful boot kept, a failure opens an issue.