Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Bonk team documentation

Bonk

bonk-collaboration

Documentation and work tracking shared by the Bonk team.

Status, Roadmap, Decisions, Rules

Read online: docs.bonk-os.app

GitLab Backup copy: gitlab.com/FantasmaGlad/bonk-collaboration

Start here

Read docs/overview.md, then docs/status.md. The roadmap lists the work left; the log says what changed lately. COLLABORATION.md holds the rules every change follows, in every repository.

Contents

PathContent
docs/overview.mdwhat Bonk is, how it is built, the rules that do not change
docs/repositories.mdevery repository, what it holds, how it is protected
docs/status.mdcurrent state, known problems, what is not verified
docs/roadmap.mdwork left, by work package
docs/decisions.mddecisions in force, one line each
docs/log.mdwhat was done and learned, newest first
docs/maintainer.mdwhat only the maintainer can do
docs/work/plans of the work packages in progress
docs/procedures/how to do one task, one file each
docs/reference/lasting technical facts, one file per subject
notes/meeting notes

Working together

Ask, propose or report through an issue. Change a document through a pull request, one subject each. See CONTRIBUTING.md.

Repositories

RepositoryContent
Bonk Bonkapplication
BonkWeb BonkWebwebsite, bonk-os.app
bonk-catalog bonk-catalogimage catalog, catalog.bonk-os.app
bonk-packages bonk-packagespackage repositories, packages.bonk-os.app
homebrew-bonk homebrew-bonkHomebrew tap
bonk-security bonk-securitysecurity contact page, security.bonk-os.app

License

MIT: LICENSE. Report a vulnerability as described in SECURITY.md.

Overview

Bonk writes bootable drives (USB keys, SD cards, external disks) from Linux, Windows, macOS, Android and ChromeOS. One binary holds the window and the command line; a command-line-only build serves servers and terminals; an Android application covers phones. The command line is the common base: nothing exists only in the window.

Priorities, in this order: fast, convenient, reliable. 64-bit first.

Principles

  • Disk safety. A system disk is never offered nor written. Every write goes through a single gate that checks the target’s identity again just before writing.
  • Nothing more to install. One binary, no runtime, no WebView. As few third-party libraries as possible.
  • Verified end to end. The image is checked before writing; the drive is read back and compared after.
  • No telemetry. The network is used only for the catalog and the downloads the user asks for. Bonk never hosts an image.
  • Host and target parity. Bonk runs on every system it writes drives for, in every architecture it targets, or the gap is stated.
  • Plain interface, no emoji anywhere, minimal documentation.

Stack

  • Rust, Cargo workspace, edition 2024. The compiler version is pinned in rust-toolchain.toml and raised by Dependabot.
  • Window: Iced, wgpu rendering with a mandatory tiny-skia software fallback, light or dark theme.
  • Command line: clap.
  • Android: Kotlin and Compose over the Rust core.

Workspace

CrateRole
bonkthe only binary: window without a command, command line otherwise
bonk-corepure code over a BlockDevice trait: partition tables, FAT32, exFAT, BIOS boot code, ISO 9660, UDF, WIM, write, read back, GPT repair, image analysis, route choice, vault
bonk-halsafety filter and the Platform trait: enumeration, raw access, unmount, privileges; all system-specific code
bonk-opsthe single write gate and the stable error codes; no network
bonk-catalogresumable downloads, proxy, Tor, signed catalog, vault GRUB assembly
bonk-clicommands, text and JSON output, the bonk serve service, the elevated helper
bonk-uiscreen state and rules, shared by the window and Android
bonk-guithe Iced window; writes through a bonk write subprocess
bonk-androidnative library of the Android application

bonk-core depends on nothing in the workspace and on no system API. bonk-cli and bonk-gui do not know each other. These rules are enforced by a test. Details: reference/architecture.md.

Invariants

These do not change without a decision in decisions.md.

  1. A host system disk is never listed nor writable. The target’s identity is checked again just before the write. Command line: –yes is required, –dry-run exists, the target is named by a stable identifier.
  2. The interface never runs as root or administrator. Only disk operations are elevated: UDisks2 and polkit, a UAC helper, authopen.
  3. No write to a real device during development or tests without the maintainer’s agreement: image files, loop devices, QEMU.
  4. The image is checked before writing and the drive read back after.
  5. No telemetry.
  6. No image is ever hosted or redistributed: official addresses and checksums only.
  7. No emoji: interface, command output, logs, documentation, code, commits.
  8. No secret in a repository.
  9. Everything is available from the command line and logged locally; nothing is sent.
  10. One write gate, in bonk-ops. The command line, the service and the window all go through it.
  11. Stable contracts: error codes Exxxx, exit codes 0 to 6, versioned JSON schemas, service protocol version. An incompatible change needs a decision and a version bump.
  12. Bonk ships for every system it writes drives for; binaries are built and attested at each tag, every week and on demand.

Hosts

HostElevationStatus
LinuxUDisks2, polkitpublished
WindowsUAC helperpublished
macOSauthopenpublished
AndroidUSB without rootpublished, ARM64 and x86_64
ChromeOSCrostini and the Android applicationpublished; window in Crostini not done

Platform detail: reference/platforms.md.

Status

Last update: 2026-12-03.

Bonk 0.1.7 was released on 2026-11-28. Packages, the Homebrew tap, the website and the GitLab copies follow it; SHA256SUMS is signed. The vault boots in UEFI and in BIOS. Signing keys live in protected CI environments.

Next

  1. Work package 42: images from the survey of 2026-11-27. Steps 1 and 2 done; step 4 in progress, family by family. See work/42-survey-images.md.
  2. Work package 41: catalog key delegation, decided, to code. It ships with the beta channel of package 42 in the same release if both are ready. See work/41-key-delegation.md.
  3. After the next release: bonk-catalog checks its sources with the published bonk catalog check and drops its own conformance script; its QEMU bench calls the boot script of Bonk with the English option names.
  4. OpenSSF Best Practices questionnaire (maintainer).
  5. Work package 40, step 6: i686 ISOs of known vault families, to design; then the order of the roadmap.

Pending decisions

  • Fedora 44: the catalog serves 43 as stable and 45. Add 44, or move 43 to archive.
  • openEuler, seven aarch64 images served as USB images: they have no partition table, so Bonk refuses them in automatic mode. Either mark them optical and unbootable from USB now, or prove a hybrid route under QEMU first.

Hosts

HostWriteProof
Linuxpublishedreal key, QEMU, real boots
Windowspublished, UAC helperVHD in CI (x86_64, ARM64); real x86_64 tests
macOSpublished, authopenRAM disk in CI; real Mac tested on 2026-11-29
Androidpublished, ARM64 and x86_64five phones; Termux tested with 0.1.7
ChromeOScommand line in Crostini, applicationtested; window not tried

Online

  • Releases on GitHub: v0.1.7, and v0.1.0 kept as the website’s test release. GitLab: v0.1.7. Releases and tags are never deleted any more.
  • Catalog: 135 systems, 451 images before package 42; GRUB 2.14 for the vault.
  • winget: the pull request to microsoft/winget-pkgs waits for a moderator. AUR: ready, registration closed.
  • The Pages certificate of packages.bonk-os.app is to watch from 2026-12-29.

CI

  • All workflows green on main; Dependabot in every repository.
  • Scheduled runs: GitHub starts only part of them (14 of about 110 between November 29 and December 3).
  • Four OpenSSF Scorecard alerts open, no vulnerability.

Known defects

  • Window: no file drop under Wayland until Iced moves to winit 0.31.
  • macOS: the descriptor returned by authopen is tied to the disk by its size only. The block crate pulled by Iced triggers a future-incompatibility warning upstream.
  • Vault, Ubuntu: the iso-scan script injected into the initrd must be checked at each casper version.
  • Vault: an i686 ISO of a known family is taken for x86_64 and offered to the 64-bit UEFI GRUB, which cannot boot it.
  • Links under packages.bonk-os.app/download/ are HTML redirect pages; curl -L receives the page.
  • Some workflow, job, script and required check names are still French. They are renamed in the pull request that touches them, readers first.
  • Length: one file and a few functions of 52 to 73 lines are accepted exceptions.

Not verified

  • Linux x86 (glibc), Windows x86 and ARM64, macOS outside CI runners; exFAT read by Windows, macOS and Android.
  • Real boot of a hybrid key on a real PC; vault in BIOS (CSM) on real hardware.
  • Image analysis: CA 2023 boot loader, install.esd, a PC that revoked PCA 2011.
  • Linux write to an internal disk; format above 32 GiB and with 4 KiB sectors.
  • bonk:// links outside Xvfb; Homebrew, Scoop and install.ps1 outside CI; Gpg4win; Tor with a whole image.

Roadmap

The only list of work left, for every repository. Package numbers are stable. A package ships through one or more pull requests, each step reaches the proof level it names (P0 to P4, see COLLABORATION.md), and a file in work/ follows it while it runs. A finished package leaves this file; its remaining hardware tests go to maintainer.md.

Order: 42 and 41, then 40, 29, then 34 to 36, 38, 39, 11, 13, 14 and 17 to 20. 37 is postponed until after 20. 6, 4 and 7 come last: they wait on hardware.

At a glance

PackageSubjectState
42Images from the survey of 2026-11-27in progress, step 4
41Catalog, bench and counter hardeningin progress, delegation to code
40Every image coveredin progress, steps 6 and 7
29Catalog open to allin progress
34Command-line progress and notificationsplanned
35Optical disc burningplanned, needs a burner
36Archives and compressed imagesplanned
37Vault Secure Bootpostponed after 20
38Macplanned, needs an Intel Mac
39Portable drivesplanned
11RISC-Vplanned
13bonk:// links and anonymityplanned
14Windows customizationplanned
17Version 1 featuresplanned
18Fewer libraries (on need)on measured need
19Channels and trustwaiting on accounts
20Bonk UEFI loaderplanned
6Chromebookwaiting on hardware
4macOS on a real machineone item left
7Command line on rooted Androidblocked, no rooted device

42. Images from the survey of 2026-11-27

Serve every image of the survey that Bonk can write, through catalog rules, checked and signed; no address written by hand. Beta images go to a new v3 catalog next to v2; one source expands into variants. Plan: work/42-survey-images.md.

41. Catalog, bench and counter hardening

No online key exposed to outside content, no unprotected data in the signed catalog, no duplicate between repositories. Left: catalog checked by the published Bonk, key delegation (work/41-key-delegation.md), English names.

40. Every image covered

One bonk write writes any bootable image by the route that boots it, chosen automatically, proved and explained, or refuses it and names the alternative. Left: vault families beyond the sixteen (Debian installer, Kali, Devuan, Alpine, openSUSE DVD, Mageia DVD), i686 ISOs of known families, DVD-only ISOs booted in BIOS from the vault. Plan: work/40-image-coverage.md.

29. Catalog open to all

Any bootable system, modified Windows builds included, with a clear non-affiliation notice. Left: Parabola, official pages of commercial systems, site descriptions of the newer families.

34. Command-line progress and notifications

–notify on every long command, the notify setting applied by default, an activity indicator for steps without a known size.

35. Optical disc burning

Burn CD and DVD for systems only a disc boots and DVD-only images: xorriso on Linux, IMAPI2 on Windows, hdiutil on macOS, behind one Burner trait. Needs a burner and discs.

36. Archives and compressed images

Read an image inside an archive or a compressed stream without a temporary file: zip, 7z, lzma, lzip, bzip2, tar. One module per format, each fuzzed and boot tested. Virtual machine disks stay out of the catalog.

37. Vault Secure Boot (postponed)

Boot the vault with Secure Boot on, each ISO by its own signed chain, through the loader of package 20 signed by an offline Bonk key. Waits for package 20 and a maintainer decision on enrollment.

38. Mac

Windows key for Intel Macs with Boot Camp drivers; macOS installer from a Mac; then from Windows or Linux if an Intel Mac boots it.

39. Portable drives

Linux live with persistence and Windows To Go, one extra choice for the user: Install or Portable.

11. RISC-V

RISC-V 64 as a vault target and as a host: GRUB riscv64-efi under QEMU, bonk and bonk-cli built, tested under qemu-riscv64 and packaged.

Links proved outside Xvfb on Linux, Windows and phones; Tor usable without the command line.

14. Windows customization

bonk customize windows: autounattend.xml with a local account and requirement checks; unattended install booted in CI.

17. Version 1 features

One pull request each: usbfs transport tested in CI, disk eject on every host, persistent operation log, faster writes measured against dd, bonk dos, backup and clone, several keys at once, bad block and fake capacity check, bonk hash.

18. Fewer libraries (on need)

Replace a library only when the gain is measured: direct unmount calls, minimal ext4 and NTFS, polkit without zbus. Fuzzing required.

19. Channels and trust

Winget and AUR packages updated automatically and install tested in CI; signed release tags. Google Play, Microsoft Store and Apple notarization are maintainer accounts.

20. Bonk UEFI loader

A UEFI loader written in Rust under MIT, in place of GRUB on UEFI for x86_64 and ARM64. Shares the exFAT and ISO 9660 readers with bonk-core. Every vault family booted by it in CI, then on real hardware.

6. Chromebook

Left: the window inside Crostini (software rendering, shader refusal).

4. macOS on a real machine

Left: tie the authopen descriptor to the disk by more than its size.

7. Command line on rooted Android

Enumeration through /sys/block without udev, internal storage excluded. No rooted device available.

Set aside

UEFI:NTFS and GPL drivers on the Windows key; UEFI validation at boot, covered by bonk verify; file copy mode for hybrid ISOs unless a real need appears; Linux x86 32-bit beyond the archive and the bonk-cli deb.

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.

Log

What was done and learned, newest first. One dated entry per working day, with the checks run. A lasting fact moves to reference/, a decision to decisions.md, the state to status.md; old entries are removed once they no longer help.

2026-12-03

  • The documentation is published at docs.bonk-os.app: mdBook 0.5.4 pinned by checksum, built on every pull request, deployed from main. The site build is a required check.
  • No scrollbar on bonk-os.app and docs.bonk-os.app; scrolling is unchanged.
  • Every README and the footer of bonk-os.app link the team documentation.
  • bonk-collaboration created: public team documentation, MIT, mirrored to GitLab.
  • Download counter on the site lagged behind the README badge: the daily rebuild ran only when a scheduled run fell at 05:00 UTC, and GitHub started 14 of about 110 scheduled runs since November 29. The site now rebuilds whenever the counted date changes (BonkWeb 121).
  • Dependabot: cargo-deny 0.22 limits unmaintained checks to the workspace by default, which left two Iced exceptions unused and failed CI; fixed by unmaintained = “all” (Bonk 353). Compose BOM 2026.11.01 needs compileSdk 37.1; moved to 37.2 (Bonk 354).
  • Repository descriptions cut to one sentence, on GitHub and GitLab.
  • Work package 42 opened: the survey holds 2,707 links over 108 families, all already in the catalog; no address already served; no checksum. The catalog format has no beta channel and reading is strict. Decisions D-142 to D-144.
  • Package 42, step 1: survey sorted, 1,251 images kept in 482 draft sources; 45 archives to read first. Correction: Bonk recognizes bzip2 and zip but does not read them.
  • Package 42, step 2: variants (bonk-catalog 150), one read per list and checksum file per run (151), per-host limits and a budget of computed checksums (152).
  • Package 42, step 4: Fedora 45, Ubuntu, Debian, Rocky, AlmaLinux, CentOS, Ultramarine, OpenMandriva, Mageia, openEuler, Devuan, Kali, Linux Mint, xubuntu minimal, KDE neon, Proxmox, Clonezilla, Raspberry Pi Desktop and Zorin merged (bonk-catalog 153 to 171). Each ISO header is read: an image without a partition table waits for a vault proof.
  • Pages deployments: each published repository now keeps three deployments per environment (prune job).
  • English renames: bonk-catalog modules, scripts, workflows and the proofs data branch (169); mirror and workflow-security in every repository; Bonk QEMU tooling (357).

2026-11-29

  • Hardware checklist of 0.1.7 passed on the maintainer’s hardware; Termux and a real Mac validated.
  • Deleting the v0.1.6 release removed 1,046 downloads from GitHub’s counter. The daily count keeps the highest count per file; releases are never deleted any more.
  • Catalog key delegation designed and decided (D-141).
  • bonk catalog check added to Bonk (348); bonk-catalog reads its trusted keys from Bonk’s release tag (147).
  • Catalog publishing blocked after 0.1.7: a vault family path with a wildcard was refused by the Python copy of Bonk’s rules. Fixed (bonk-catalog 146); checking with the published Bonk will remove that copy.
  • Bonk 0.1.7 released.

Repositories

Seven public repositories on GitHub, each copied to GitLab by its mirror workflow. GitHub is the source; the GitLab copies have no issues nor merge requests, and a push made there is overwritten.

Every main branch is protected, administrators included: force push and deletion are blocked, and a pull request is required except on homebrew-bonk, where a bot pushes the formulas. Each repository runs zizmor and actionlint on its workflows, and Dependabot every Monday with a seven-day cooldown.

Bonk

The application: window, command line, Android application, boot code, vault.

  • github.com/FantasmaGlad/Bonk, MIT.
  • Required checks: Linux quality job, CodeQL, zizmor.
  • Other workflows: native and cross builds, fuzzing, QEMU boot tests, BIOS boot code, dependencies (cargo deny), Android, binaries and release, packages, SBOM, distribution.

BonkWeb

The website bonk-os.app: downloads, the catalog of systems, install guides, commands.

  • github.com/FantasmaGlad/BonkWeb, view-only license.
  • React, TypeScript, Vite, pnpm. Static files on GitHub Pages behind Cloudflare.
  • Required check: the site build and tests.

bonk-catalog

The signed catalog of the system images Bonk writes, catalog.bonk-os.app. No image is hosted.

  • github.com/FantasmaGlad/bonk-catalog, view-only license.
  • Python standard library only. Signed and published every six hours.
  • Required check: sources and generator. A weekly bench boots images under QEMU and writes its results to the proofs data branch.

bonk-packages

Signed APT, DNF, zypper, pacman and Termux repositories, install scripts and the Scoop manifest, packages.bonk-os.app.

  • github.com/FantasmaGlad/bonk-packages, view-only license.
  • No binary is versioned: everything is rebuilt from the latest releases of Bonk.
  • Required check: the build. The publish workflow installs the packages for real in six Linux images and on Windows. A daily job counts downloads on a data branch.

homebrew-bonk

The Homebrew tap: brew install fantasmaglad/bonk/bonk.

bonk-security

The security contact page security.bonk-os.app: policy, public key, signed security.txt.

bonk-collaboration

This repository: team documentation and work tracking, published at docs.bonk-os.app.

  • github.com/FantasmaGlad/bonk-collaboration, MIT.
  • mdBook, built on every pull request and deployed to GitHub Pages from main.
  • Required check: the site build, which also fails when a page is missing from SUMMARY.md.

GitLab copies

gitlab.com/FantasmaGlad holds a copy of each repository, refreshed on every push and every six hours. Each Bonk release is copied there too, with SHA256SUMS signed by the release key, so a download can be checked without GitHub. See procedures/gitlab-mirror.md.

Maintainer

What only the maintainer can do: tests on real hardware, decisions, accounts, keys. A finished line leaves this file and its result goes to the log. For each test, note what is shown, the boot mode, the exit code and the log. Tests use the dedicated test key only.

Hardware tests

Android phone, APK of the latest release

  • Unplug the key during a write: clear failure, no crash.
  • Key written by the phone, checked on a PC with bonk verify.
  • Launcher icon; touching the notification during a write reopens Bonk.
  • Wi-Fi cut during a download: E3008 within a minute.
  • Tor through Orbot in incognito mode: without Orbot, Bonk waits and reads nothing; with Orbot, catalog, logos and an image downloaded, written and read back, no direct connection; Orbot stopped, Bonk says Tor does not answer.
  • Offline mode: no system menu, bonk:// ignored, vault without GRUB update; disabled, everything comes back.
  • Every screen in light and dark themes.
  • Vault from the application, then boot the key on a PC.

Other devices

  • A tablet and a device on Android 8, the announced minimum: install, write, check.
  • Chromebook: does the window open in Crostini (software rendering)?
  • Linux from a package, Wayland session: Bonk’s icon in the dock while the window is open.

Windows

  • Memory refusal and the helper script run by CI.
  • bonk format to NTFS then exFAT through UAC: key readable in Explorer.
  • bonk write –notify: one notification replaced until the end (done on GNOME; Windows and KDE left).

Real boot

  • Key written by Bonk: UEFI, BIOS (CSM) and Secure Boot on a real PC.
  • Secure Boot on: Debian 13 boots through shim; an unsigned ISO is refused by the PC, as bonk info announces.
  • Hybrid key in UEFI.
  • Vault in BIOS: menu shown, each system up to its prompt.
  • Windows 11 key in legacy BIOS: Windows Setup reached on a CSM PC and on a PC without UEFI.

Other

  • Linux, bonk format to NTFS, Ctrl+C while waiting for the file system: stops within a second, exit code 5, key formattable again.
  • bonk –fixture with a capture: gui refused with E5005, list works.
  • Raspberry Pi OS written to an SD card boots on a Raspberry Pi.

Accounts and decisions

  • AUR: registration closed; packages bonkos-bin and bonkos-cli-bin ready.
  • Winget: pull request open on microsoft/winget-pkgs, waiting for a moderator; later versions go in the same folder.
  • OpenSSF Best Practices questionnaire; it closes a Scorecard alert.
  • Other Scorecard alerts: Maintained closes by itself after 90 days; Code-Review needs a second reviewer; Binary-Artifacts concerns the Gradle wrapper, checked against Gradle’s checksum in CI.
  • Google Play; targetSdk 37 needs an Android 17 device or emulator.
  • Contact address for licenses; sorting of platforms.

Keys and dates

  • Report key: change its passphrase and redo the private backup.
  • October 2027: sign security.txt again. July 2028: extend the report key. October 2030: extend the package key.

Documentation map

One fact lives in one file. Before you add a fact, find the file that owns it; the others link to it.

FileOwns
overview.mdwhat Bonk is, how it is built, invariants
repositories.mdevery repository, its content and protection
status.mdstate today, pending decisions, defects, what is not verified
roadmap.mdwork left, by work package, in order
decisions.mddecisions in force, one line each
log.mdwhat was done and learned, newest first
maintainer.mdhardware tests, accounts and keys only the maintainer handles
work/one file per work package in progress
procedures/how to do one task, one file each
reference/lasting technical facts, one file per subject

Meeting notes live in notes/.

A work package keeps its number from the roadmap. When it is finished, its file leaves work/, its line leaves the roadmap, and what remains to test goes to maintainer.md.

Work in progress

One file per work package that is running, named after its roadmap number: template.md. It holds the goal, the completion checks, the steps and the progress. It leaves this folder when the package is finished.

FilePackage
42-survey-images.mdimages from the survey of 2026-11-27
41-key-delegation.mdcatalog key delegation
40-image-coverage.mdevery image covered

Work package 42: images from the survey of 2026-11-27

Status: in progress, step 4. Branches: one per step and repository. Started: 2026-12-03. Decisions: D-142 to D-144.

Goal

Every image of the survey that Bonk can write is harvested by a rule in bonk-catalog/sources, checked, signed and served to Bonk, the application and the site. No address is written by hand, no admission rule is relaxed. Adding an image needs only data.

Done when

  • Every writable line of the survey is served, or listed in the catalog rules with its reason (source not named by the publisher, no checksum nor stable address, format not read).
  • Catalog publishing green, duration measured; no existing image turned stale by the change.
  • Bonk, the application and the site show the whole catalog without a measured regression.

Out of scope

Virtual machine and container images (D-143).

Facts

  • Before the package: 135 families, 451 images.
  • Survey: 2,707 links over 108 families, all already in the catalog; no address already served; no checksum.
  • The catalog format has no beta channel and published Bonk reads strictly: an unknown value makes it reject the whole catalog.

Steps

  1. Sort the survey: writable, not writable, already covered, older, mirror to check; group by family and file name pattern; look for a checksum file next to each image. Done.
  2. Generator at scale: variants in a source, one read per list and checksum file per run, per-host concurrency limit, a budget of checksums computed by full download per run. Done; duration still to measure.
  3. Beta channel and v3 catalog: Channel::Beta in Bonk, hidden by default, release; bonk-catalog publishes v3 and keeps v2 without betas; site and application read v3.
  4. Add families, one pull request per family or publisher, drafts with listed checksums first, then GitHub releases, then the rest. In progress.
  5. Archives: Bonk reads zip, 7z, lzma, lzip, bzip2 and tar, one module per format in bonk-core codec, release; such images served in v3 only.
  6. Interfaces at scale (about 2,000 images): window list and search, Android, site pages; measured with a test catalog first.
  7. Proofs: new images enter unproved; one image per family and type goes through the QEMU bench.

Progress

  • Step 1: 1,251 images kept in 482 draft sources; 781 with a checksum file next to them, 259 behind a folder without a listing, 211 without a checksum found; 45 archives to read first.
  • Step 2: bonk-catalog 150, 151, 152.
  • Step 4, merged: Fedora 45 (153), Ubuntu (154), Debian (155), Rocky (156), AlmaLinux (157), CentOS (158), Ultramarine (159), OpenMandriva (160), Mageia (161), openEuler (162), Devuan (164), Kali (165), Linux Mint (166), xubuntu minimal (167), KDE neon (168), Proxmox, Clonezilla, Raspberry Pi Desktop (170), Zorin (171).
  • Set aside: deepin riscv64 (faulty checksum file), Trisquel 11 (maintenance not stated). Waiting for a vault proof: images without a partition table (Rocky riscv64, AlmaLinux live aarch64, openEuler aarch64).
  • Open questions: Fedora 44, openEuler aarch64 (see status.md).

Work package 41: catalog key delegation

Status: designed and decided (D-141), to code. Branches: one per repository. Started: 2026-11-29.

Goal

A key stolen from CI can no longer sign the catalog beyond a bounded time, without a release. No trusted key of Bonk is ever online.

Design

  1. Roots: only the keys of trusted-keys.txt, all offline. They sign certificates only; as a last resort, the catalog itself.
  2. Publication key: an Ed25519 pair made by the maintainer, private in the catalog environment, public in a certificate.
  3. Certificate: catalog.cert, canonical JSON with schema_version, key, not_before and not_after, and catalog.cert.sig, signed by a root. Published next to the catalog and versioned in bonk-catalog.
  4. Check in Bonk, one implementation for every interface: catalog.json.sig signed by a root is accepted; otherwise catalog.json.dsig signed by the publication key is accepted when the certificate is signed by a root, valid now, and at most 90 days long. Expiry, sequence and entries are checked as today.
  5. Publishing signs with the publication key, checks the whole chain, and raises an alarm 14 days before the certificate expires.
  6. Renewal: an offline script makes the new key and signs its certificate with a root read from offline media; the maintainer types the passphrase.
  7. Leak of the publication key: new key and certificate at once. The stolen key stays valid until its certificate expires; the lifetime is the exposure window.

Transition

  • Release N: Bonk understands delegation; trusted-keys.txt holds the backup root and a new offline root; the current online key is no longer trusted by Bonk N.
  • For three months, two signatures: the old key for older Bonk, the publication key for Bonk N.
  • Cut date: CI stops signing with the old key. Older Bonk stop reading the catalog at most 14 days later and must be updated; the release notes and the download page say so.

Cost

Chain check in Rust, on the site (JavaScript, same test vectors) and in bonk-catalog; one maintainer action per renewal; one release and a cut for older Bonk.

Done when

The catalog is accepted by Bonk N through the delegated key, refused with an expired or unsigned certificate (tests), and the site checks the same chain.

Work package 40: every image covered

Status: in progress, steps 6 and 7. Branches: one per step. Started: 2026-11-21. Decisions: D-117 to D-120, D-122, D-124 to D-128, D-131.

Goal

One bonk write writes any image by the route that boots it, proved and explained, or refuses it and names the alternative.

Adding a vault family

The family goes into bonk-core vault families.json, is proved in CI with –families (QEMU, login prompt on the serial console, P3), and is served by the catalog only after the release that carries its initrd code, if any (D-128). Read the family’s initramfs by range requests before coding: iso-scan, exFAT, losetup, udev. Sixteen families in Bonk.

Left

  • Step 6, i686 ISOs of a known family: taken for x86_64 and offered to the 64-bit UEFI GRUB, which cannot boot a 32-bit kernel. To design before coding: read the CPU from the ISO, widen IsoArch, limit the menu entry to the firmware that boots it, refuse otherwise; one rule in the core.
  • Step 6, families not covered yet:
    • Debian installer, Kali and Devuan: the CD initrd has neither iso-scan nor losetup; the hd-media initrd is published outside the ISO;
    • Alpine: initramfs without exFAT, udev nor an ISO option; needs Bonk code in the initramfs;
    • openSUSE DVD and NET (linuxrc), Mageia DVD and netinstall (drakx), Q4OS CD installer;
    • Ubuntu riscv64: package 11.
  • Step 7: DVD-only ISOs booted in BIOS from the vault, by family (P3), then on real hardware (P4).

Work package N: title

Status: planned, in progress, or blocked by what. Branches: one per step and repository, type/short-topic. Started: YYYY-MM-DD.

Goal

What is true once it is done.

Done when

Checks anyone can run.

Out of scope

Steps

Each step ships on its own, works end to end and names its proof level.

Progress

Dated lines: what merged (repository and pull request), what was measured, what blocks.

Procedures

How to do one task, one file each. A procedure gives the commands and the checks, not the reasons: reasons live in decisions.md.

FileTask
validation.mdrun the checks of Bonk before a pull request
ci.mdadd, update or read a workflow
release.mdprepare and publish a Bonk release
catalog-image.mdadd an image to the catalog
gitlab-mirror.mdthe GitLab copies and checking a release without GitHub

Validation

Run in the Bonk repository before opening a pull request. Every line must pass; CI runs the same checks.

cargo fmt --all --check
cargo clippy --workspace --all-targets --locked \
  -- -D warnings
cargo test --workspace --locked
cargo deny check
cargo build --workspace --release --locked

Cross lint, with a neutral C compiler for ring:

rustup target add x86_64-pc-windows-gnu \
  i686-pc-windows-gnu x86_64-apple-darwin \
  aarch64-linux-android
CC_x86_64_pc_windows_gnu=true \
AR_x86_64_pc_windows_gnu=true \
cargo clippy --workspace --all-targets --locked \
  --target x86_64-pc-windows-gnu -- -D warnings

Repeat the last command for i686-pc-windows-gnu and x86_64-apple-darwin. For Android, lint bonk-core, bonk-ops, bonk-cli, bonk-android and bonk-ui only.

Workflows: actionlint and zizmor on .github, no finding.

Boot code: after a change under crates/bonk-core/src/boot, run boot/assemble.sh and check that git diff shows nothing; the BIOS boot workflow must pass.

Image analysis: a change to the analysis code is replayed on the test image corpus; the classification stays the same or the change is explained in the pull request.

Tests never open a real disk and never depend on the clock.

CI

Add a workflow

  • ASCII English name, minimal permissions, a concurrency group, timeout-minutes.
  • Actions pinned by commit SHA, with the tag in a comment.
  • actionlint and zizmor clean.
  • A line in the repository’s list of workflows, saying why it exists.

Update a pinned action

Dependabot proposes it every Monday after a seven-day cooldown. By hand:

gh api repos/OWNER/REPO/releases/latest --jq .tag_name
gh api repos/OWNER/REPO/commits/TAG --jq .sha

Read a failure

gh pr checks NUMBER
gh run view RUN_ID --log-failed

Read the log before running again. A flaky outside service (package mirror, Gradle portal) is named in the pull request when a rerun is used.

Economy

Linux runs on every pull request; Windows and macOS when system code changes; the full matrix on Monday and on demand; binaries at tags and on Monday.

Release

Name: Bonk X.Y.Z (YYYY-MM-DD), UTC day of the release. The tag is vX.Y.Z and every package version is X.Y.Z; the date never enters a version number.

Release notes: English, for the people who use Bonk. What changes for them, in short direct sentences; an instruction when they have something to do. No internal detail (CI, refactoring, tooling). Then the verification block added by the binaries workflow.

Steps

  1. Raise the version in the workspace Cargo.toml, Cargo.lock and fuzz/Cargo.lock; pull request; CI green; merge.
  2. Run the QEMU boot workflow on main by hand: it does not run on every merge.
  3. With the maintainer’s agreement, push the tag vX.Y.Z on the merged commit. The binaries workflow checks the tagged commit first (format, lint, tests, CodeQL); a failure stops everything. It then builds every target, the packages and the SBOM, and creates a draft release with SHA256SUMS.
  4. Check the draft: same file list as the previous release apart from the version; attestations with gh attestation verify.
  5. Write the release notes from the pull requests merged since the previous tag. Never a generic text.
  6. Publishing is the maintainer’s decision. It starts the distribution workflow: Scoop, Homebrew, AUR and winget manifests attached, then the signed copy on GitLab.
  7. Package repositories, the tap and the site follow within the hour.
  8. Check online: packages.bonk-os.app/version.txt, the tap formulas, the site’s version and links, the GitLab release and its signature.

GitHub releases and tags are never deleted: they tie each version to its source, attestations and download counts.

Hardware checklist

Done by the maintainer before publishing. A failure blocks the release or becomes a limit written in the release notes.

CheckExpected
Debian netinst written by bonk writeboots in UEFI, UEFI with Secure Boot, BIOS
Windows 11 key, automatic mode, MBRinstaller reached in UEFI with Secure Boot and in BIOS
Vault with a Debian live ISOGRUB menu, Debian live boots
Window: list, write, cancel on Linux and Windowsno system disk, key offered, clean cancel
Android application writes an imageread back identical on a PC with bonk verify
bonk format FAT32 and exFATreadable by each host tried
Key unplugged during a writeclear failure E4001, no crash

Add an image to the catalog

  1. Check the admission rules: reference/catalog-rules.md.
  2. Add or extend a source in bonk-catalog/sources/images, in the file of its family: the publisher’s folder, its checksum file and a file name pattern. Use variants for editions and architectures. Never write an image address by hand.
  3. Read the image header (MBR, GPT) by a range request: an image without a partition table does not enter until a vault route is proved.
  4. Run the tests and a source check:
python3 -m unittest discover -s scripts
  1. Open a pull request. The build check resolves every source and finds every checksum. Merging publishes the signed catalog.
  2. Check in Bonk with bonk catalog list, and a simulated write:
bonk write --simulate drive.img \
  --image IMAGE_ID --size BYTES --yes

A new image enters without a boot proof; the weekly bench proves one image per family and type.

GitLab mirror

Every repository is copied to gitlab.com/FantasmaGlad by its mirror workflow: a fresh clone of GitHub, then a push of every branch and tag with prune, on each push and every six hours. Pushes made with the workflow token (bench proofs, formulas) start no workflow and are caught by the next scheduled run. GitLab issues and merge requests are disabled; work stays on GitHub.

Releases

After the maintainer publishes a release, the distribution workflow downloads it, checks SHA256SUMS and each file’s attestation, signs the sums with the release key, and creates the same release on GitLab. If that job fails, run it again for the tag:

gh workflow run distribution -f tag=vX.Y.Z

Check a download without GitHub

Release key fingerprint: 9F67 B758 03CE 7526 0FB0 D895 2F20 472E 7865 EDF1.

gpg --import bonk-release-key.asc
gpg --verify SHA256SUMS.asc SHA256SUMS
sha256sum --check --ignore-missing SHA256SUMS

The key and the signature are attached to each GitLab release, and to the GitHub release.

Reference

Lasting technical facts, one file per subject. A fact here is checked against the code or the service before it is written, with its date when it can change.

FileSubject
architecture.mdcrates, dependency rules, path of a write
platforms.mdhosts, targets, build principle
catalog-rules.mdwhich images enter the catalog, and why some do not
packages.mdpackage repositories, tap, keys and what they sign
downloads.mdhow downloads are counted without telemetry
hosts-contacted.mdthe only network hosts Bonk contacts

Architecture

Eight libraries and one binary. The dependency rules are checked by a test in crates/bonk/tests.

Dependency rules

  • bonk-core depends on no other crate of the workspace and on no system API.
  • bonk-catalog depends on bonk-core only.
  • bonk-ops depends on bonk-core and bonk-hal, never on bonk-catalog: it has no network.
  • bonk-cli and bonk-gui do not know each other.
  • System-specific code lives in bonk-hal, behind the Platform trait. Two known exceptions: display variables in bonk-gui, accepted by the test, and bonk-android.
  • bonk-gui and bonk-android both build on bonk-ui, which holds screen state and rules without drawing.

Path of a write

  1. With –image, the signed catalog gives the address and the checksum.
  2. An address is downloaded into the cache, after the target and the confirmation are checked.
  3. The write job opens the image once, analyzes it, chooses the route (raw, Windows extraction, hybrid, or a refusal that names the alternative), and checks the checksum.
  4. The target is opened with the right elevation (UDisks2, UAC helper, authopen), unmounted, its identity checked again.
  5. Write in 4 MiB blocks, flush, read back with the cache dropped, GPT repair, read the table again.

Contracts

  • Error codes Exxxx by hundreds: 0 usage, 1 disks, 2 safety, 3 image, 4 write, 5 configuration, 6 service, 7 format. bonk explain gives the text.
  • Exit codes 0 to 6.
  • JSON output versioned; bonk schema prints the schemas.
  • bonk serve speaks JSON lines with a protocol version.

Outside the Bonk repository

bonk-catalog publishes the signed manifest; bonk-packages, homebrew-bonk, BonkWeb and bonk-security serve packages and pages. See repositories.md.

Platforms

Two questions not to mix. A host is the system Bonk runs on: it needs a binary. A target is the image Bonk writes: it needs a bootable image and the right write mode, no binary.

Build principle

One binary per architecture and libc, never per distribution. The package is only a wrapper: the same aarch64 glibc binary works in a deb, an rpm or an archive on any distribution with an equal or newer glibc.

  • glibc is only forward compatible: the floor is fixed at build time and checked.
  • A static musl binary runs on any libc but has no window: it is built without the gui feature.
  • Never target-cpu=native nor AVX2.

Hosts

HostBuildsFloor
Linuxx86_64, aarch64, i686 (glibc), musl, riscv64 plannedglibc 2.17
Windowsx86_64, ARM64, x86Windows 10
macOSARM64, Intel, universal .dmgmacOS 12
AndroidARM64, x86_64 APK; TermuxAndroid 8
ChromeOSAndroid application; Linux build in Crostini

The command line is the common base on every host; the window is added where it is possible. A host counts as covered when list, write and verify work there.

Targets

  • x86_64 in BIOS and UEFI; Secure Boot depends on the image’s loader.
  • The vault in BIOS and UEFI, ARM64 in UEFI; RISC-V 64 with package 11.
  • No Windows and no BIOS on RISC-V.
  • An architecture is offered for a system only if its publisher ships an official image for it.

Support levels of images: N1 boot checked at each release (Debian, Ubuntu LTS, Fedora, Arch); N2 compatible through raw write; N3 no guarantee.

Non-functional requirements

Write speed at least 90 percent of dd with 4 MiB blocks; a smooth window during a write; a binary of 25 MB at most; update of Bonk by notification only.

Catalog rules

The catalog format is defined by the reader in Bonk (crates/bonk-catalog/src/manifest) and the writer in bonk-catalog (scripts/generate.py). The systems admitted are those of bonk-catalog/sources.

Admission

  1. Any bootable system: a distribution, a modified build of another system, a rescue compilation, a paid system. A third-party build carries a non-affiliation notice shown by Bonk, the site and the application.
  2. Source of the author: a file served by its author or by a mirror the author names. Published checksum, or one computed once and stated as such. No third-party relay. An image behind an account or a payment gets its official page only, never written.
  3. Bootable from a key: otherwise listed, never written, unless a route is proved under QEMU (vault, hybrid).
  4. Logo: always the official logo, its source recorded, a 96 px square PNG. Without a square logo, the icon of the official installer. Never invented.
  5. Desktop confirmed at the source or left empty, never guessed; minimum memory only when the publisher states it.
  6. A page behind an anti-robot check is not crossed: the source is read from an address the publisher gives elsewhere, or the system waits.
  7. End of life included: an old, abandoned or development release enters with the channel that says so and a note. Only a technical or source block keeps a system out.

Refused

ReasonExamples
tools, not systemsRufus, Ventoy, Easy2Boot, netboot.xyz, image builders
phone systems, not written to a key for a PCLineageOS, GrapheneOS, postmarketOS
stopped, or the SD card of a single deviceAndroid-x86, Bliss OS, RetroPie
virtual machine and container imagesqcow2, vhd, vmdk, ova, wsl, OCI; the raw image of the same publisher is admitted

Waiting

SystemWhat is missing
Parabolaits server closes the connection
Rocky Linux 10 riscv64, AlmaLinux live aarch64no partition table; vault to prove under QEMU
deepin riscv64a correct checksum file from the publisher
Trisquel 11a published end-of-maintenance date

Packages

Where each piece lives

RepositoryContentServed at
Bonkbinaries, packages and manifests attached to each releaseGitHub releases, GitLab copy
bonk-packagesstateless scripts, rebuilt from the two latest releasespackages.bonk-os.app
bonk-catalogimage sources, logos, generator, public keyscatalog.bonk-os.app
homebrew-bonkformulas for bonk and bonk-clitap fantasmaglad/bonk

Published tree

PathFor
debian/APT, amd64 and arm64, signed InRelease
rpm/ and rpm/bonk.repoDNF and zypper, x86_64 and aarch64
arch/x86_64pacman
termux/pkg under Termux, aarch64 and x86_64
scoop/bonk.jsonScoop
download/stable address of each file of the latest release
install.sh, install.ps1command line without a window, checksum and signature checked
bonk.gpg, bonk.ascpublic package key

Two products

bonk carries the window and the command line; bonk-cli carries the command line only. Both install the same command and conflict with each other.

Keys

KeySignsFingerprint
package key, RSA 4096APT, DNF, pacman and Termux repositories8DE680FFBE475B663E8B019A757866E34D67014B
release key, ed25519SHA256SUMS of each release9F67B75803CE75260FB0D8952F20472E7865EDF1
report key, ed25519security.txt; encrypted reportsA782AC57321A862C2ED8F0FB34F15332E2A07A30
catalog keys, Ed25519catalog.json; listed in trusted-keys.txt in Bonksee Bonk’s source

Private keys live only in protected CI environments or offline with the maintainer. Changing the package key forces every user to import it again: never renew it without a reason.

Not automated yet

AUR (bonkos-bin and bonkos-cli-bin, ready, registration closed) and winget (pull request waiting for a moderator). See maintainer.md.

Downloads

Downloads are counted without telemetry: nothing is sent by Bonk. One total, computed once a day by bonk-packages and read by the site, the badges and bonk-os.app/api/downloads.json.

What is counted

SourceCounted byContent
GitHub releasesGitHub APIprogram files only, no sums, signatures, keys nor manifests
packages.bonk-os.app repositoriesCloudflare, by pathdeb, rpm, pacman and Termux packages
redirected channelsCloudflare, by pathHomebrew, install scripts, Scoop, site buttons

The highest count seen per file is kept, so a deleted release keeps its downloads. An update counts as a download: nothing tells it apart from a first install. CI installs from the public address count too.

Paths

packages.bonk-os.app/dl/CHANNEL/TAG/FILE answers with a 302 redirect to the GitHub release file. Channels: site, readme, homebrew, script, scoop. AUR and winget keep the GitHub address.

Daily count

A workflow of bonk-packages reads every finished day of the last 30 not yet counted, and the GitHub releases, then writes the results to a data branch. A missed day is caught on the next run; a counted day is never counted again. The site rebuilds when the counted date changes.

Privacy

Cloudflare sees the address, agent and path of requests, as for the site. The count reads only the path and the status, and keeps only numbers per day and per channel. Integrity is unchanged: packages are signed, formulas and manifests carry checksums, the install scripts check signature and attestation whatever the path.

Hosts contacted

Bonk writes only two hosts in its production code. A test reads the production Rust and the Android Kotlin and refuses any http or https address whose host is not in the known list.

HostUse
catalog.bonk-os.appcatalog, signature, logos, vault GRUB; BONK_CATALOG_URL replaces it
www.torproject.orga link shown to the user, never downloaded

Everything else comes from data: the image address in the signed catalog or given by the user, HTTPS required including redirects, except on the local machine and onion services; the user’s proxy or a local Tor client on ports 9050 and 9150.

Nothing else: no telemetry, no update check, no remote font or resource. The catalog generator reads publishers’ sites in CI only, never on a user’s machine.

Notes

One file per meeting, named YYYY-MM-DD-topic.md: who attended, what was decided, who does what. A decision taken in a meeting also gets its line in docs/decisions.md.

Collaboration rules

These rules apply to every Bonk repository. A rule here wins over habit; the maintainer’s explicit decision wins over a rule here.

Language and writing

Everything written in a repository is in English: branch names, commits, pull requests, issues, identifiers, files, workflows, jobs, comments, logs and documentation. Translations meant for users are the only exception (interface texts, French README and site pages). An existing French name is renamed in the pull request that touches it, or in a pull request of its own; a name another repository reads or that is published is renamed readers first, without a break.

Write short, factual sentences. No filler, no superlatives, no marketing words. No emoji anywhere: code, interface, logs, command output, documentation, commits. A state is said in words (OK, ERROR, WARNING); interface pictograms are vector icons. No decorative symbols in documentation: no arrows, no dashes as punctuation; use a comma, a colon or a new sentence. A README has no horizontal scrolling: long commands are cut over several lines, tables have three columns at most.

Git

One working branch at a time, named type/short-topic. Everything goes through a pull request to main; nobody commits to main directly, and nobody force pushes it.

Commits follow Conventional Commits, lowercase, with a scope, in the imperative: fix(parser): reject truncated headers. Types: feat, fix, refactor, perf, test, docs, build, ci, chore, revert. The body lists the root causes fixed, the mechanisms added and the checks run. One commit is one coherent change: a refactor and a behavior change never share a commit.

After a merge, the branch is deleted on the server and locally, and the local main is brought up to date. A branch is never deleted before its pull request is merged, and unpushed work is never thrown away, without the maintainer’s agreement.

Pull requests

A pull request is merged only when every check of the repository passes on it: formatting, lint, tests, CodeQL, zizmor and actionlint, fuzzing of the format readers it touches, and the QEMU boot tests when it touches what a drive boots. Never disable, skip or relax a test, a lint rule or a threshold to get a pull request through. A failing test reveals a bug or a wrong test: prove which before touching the test.

Every fixed bug gets a regression test that failed before the fix. Every new reader of a format that comes from outside (image, archive, partition table, catalog) gets a fuzz target.

Each step names the proof it reaches. A lower level never stands in for a higher one:

  • P0: unit tests and tables of cases.
  • P1: fuzzing of every reader of outside data, corpus kept.
  • P2: end to end on an image file or a simulated disk.
  • P3: boot under QEMU, seen on the serial console.
  • P4: real hardware, by the maintainer.

Anything that writes a boot sector, a partition table or a signature needs P3 before merge and P4 before it is announced as supported.

Code hygiene

Small functions: about 50 lines at most, one responsibility each. Split to lower complexity (nesting, local variables, mixed levels of abstraction), never to reach a line count. A flat exhaustive match or a straight sequence that already delegates each step may be longer. A long test becomes a table of cases.

No god files. Split files by function and by category. Usual traps: a main that does everything, a global stylesheet that carries component styles, a utils, helpers or common module that keeps growing.

A clean tree: folders organized by domain, so the code grows and stays easy to maintain.

One rule, one implementation. A business rule is written once, in the core, and every interface (command line, window, mobile, site) uses it. The core knows no interface; an interface holds no business rule.

Data drives. Lists, choices, filters and labels that depend on content come from the data (catalog, configuration); adding an item does not require a code change. A hard-coded value exists only for an invariant.

No dead code: no unused function, module, style, script or dependency, and no versioned duplicate (v1, v2, legacy, old, new). The pull request that replaces code removes the old code. A name that designates an outside format or standard is fine.

A touched file or function that breaks these rules is split in the same pull request, or recorded as debt in docs/status.md if the split is out of scope.

Comments

The code speaks for itself through its names, types and tests. By default there is no comment. A comment exists only for what the code cannot carry: an invariant, a hardware or platform constraint, the reason for a choice that is not obvious, a reference to a public standard. One technical English sentence, no bold, list or emphasis, for example: // MBR signature, offset 510.

Not allowed: paraphrase of the code, descriptive file headers, banners or separators, numbered steps, history, commented-out code, TODO without an issue, doc comments on a function whose name and signature already say it all. Kept: SAFETY comments and the Safety and Errors sections the lints require, license headers, the reason a lint is disabled, tool directives. Comments never point to an internal document; they state the reason itself.

Engineering

No claim without proof. A diagnosis rests on facts anyone can check: logs, source code, real requests, command output, official documentation. Say what is verified, what is deduced and what is assumed. Versions, platform APIs and vendor policies change: check them at the source.

Fix the root cause. No patch that hides an error: no silent catch, no unwrap or ignore to quiet the compiler, no disabled test. When the real fix is out of scope, make the minimal fix and record the root cause as debt in docs/status.md.

Readable, decoupled, strongly typed code. Simplicity before generality: no abstraction without two real uses. As few third-party libraries and tools as possible; every new dependency is justified in the pull request (need, alternatives, maintenance, license, weight).

Validate at the boundaries (user input, network, files, system calls) and handle each failure with an explicit, logged fallback; inside, trust the types. A failed environment detection never crashes the program: it falls back to an explicit default. Detect features rather than identities (operating system, browser, user agent) whenever possible.

Platforms

Bonk runs on Linux, Windows, macOS, Android and ChromeOS. Any change that touches the system (files, disks, processes, privileges, network, hardware, windowing) is checked and implemented for every host, or the host left out is named in the pull request and in docs/status.md. Platform code lives behind a common interface.

Security

No secret in code, commits, logs or documentation: keys, tokens, passwords, certificates, real environment files. Secrets come from environment variables or a dedicated store; a versioned example file shows their names. Read the staged diff before every commit.

No destructive or irreversible action without the maintainer’s explicit agreement: deleting data, writing to a real disk or device, force pushing main, rewriting published history, an irreversible migration, publishing a release. Prefer the reversible or simulated way: image files, virtual devices, dry runs. Tests never use real data or real devices.

Report a vulnerability privately, as described in SECURITY.md, never in a public issue.

Working with the maintainer

Ask before a decision that is costly to undo: architecture, a major dependency, a data format, a public API, a deletion, a write to real hardware. Act directly on what is clear and reversible. Stay in scope; write improvements you notice along the way in docs/status.md. Say at once anything that changes the plan: a major bug, a wrong assumption, an underestimated cost, a legal or license constraint.

A requirement that is ambiguous, contradictory or impossible as written is raised in docs/status.md, under pending decisions, with the options and their cost. It is never settled silently.

A piece of work starts with a goal, checkable completion criteria, what is out of scope, and a plan in steps that each ship on their own. Ship vertically: a step works end to end, tested, before the scope grows.

A short final report says what changed, how it was checked, and what remains or blocks. No narrative of the steps.

Keeping this documentation current

Work is finished only when its documentation is. Before handing over: the work file in docs/work/ says what is done, what is left and what blocks; docs/status.md is current; a structural decision has its line in docs/decisions.md; docs/log.md has a dated entry with the checks run.

Contributing

Anyone may read this repository. Members of the Bonk team change it through pull requests to main; others propose changes through an issue first. Every change follows COLLABORATION.md.

  • One subject per pull request. Branch name: docs/short-topic.
  • Commit messages: docs(scope): what changed. The scope is the file or folder: status, roadmap, decisions, log, procedures, reference, work.
  • Plain English, short sentences, short sections. No bold in running text, no decoration.
  • One fact lives in one file; the others link to it. The documentation map says which file holds what.
  • A new page gets its line in SUMMARY.md, or the site build fails. Link to a folder, not to its README.md.
  • A decision gets one line in docs/decisions.md: its number, the rule, the reason, who decided and when. The discussion stays in its issue.
  • A meeting gets one file in notes/, named YYYY-MM-DD-topic.md: who attended, what was decided, who does what.
  • No secrets, passwords, tokens, local paths or personal data. See SECURITY.md.

The site docs.bonk-os.app is built by mdBook from main after each merge. To preview it, with mdBook installed:

site/build.sh /tmp/bonk-docs

Code changes go to the repository that holds the code. Its own CONTRIBUTING file says how, for example Bonk.

Security

Bonk writes to entire disks: a flaw can destroy data. This policy covers every Bonk repository and service.

Report a vulnerability

Report it privately, never in a public issue, a pull request or a discussion:

  • through a GitHub private report on the affected repository, for example Bonk;
  • or by an encrypted mail to security@bonk-os.app.

Fetch the key and check its fingerprint before encrypting:

gpg --locate-keys security@bonk-os.app
gpg --fingerprint security@bonk-os.app

A782 AC57 321A 862C 2ED8 F0FB 34F1 5332 E2A0 7A30

The same key is published at security.bonk-os.app and named by its signed security.txt (RFC 9116).

What to include

The version of Bonk, the system and its version, the steps to reproduce, the effect, and what you expected instead. The output of bonk diagnose helps: it masks serial numbers and the user name by default. Never send a disk image that holds personal data.

What happens next

The goals are an acknowledgment within 7 days, a first assessment within 30 days, and disclosure with the fix within 90 days. They are goals, not promises: the project has a single maintainer. You are told when the fix is released and credited in the advisory unless you ask not to be.

Scope

  • the latest release of Bonk: window, command line, Android application;
  • the image catalog and its signature, catalog.bonk-os.app;
  • the package repositories and install scripts, packages.bonk-os.app;
  • the websites, bonk-os.app and security.bonk-os.app;
  • the Homebrew tap;
  • the workflows of every repository, and their secrets.

Out of scope: older releases, systems Bonk writes (report those to their publishers), denial of service against the hosting providers, social engineering, and findings from automated scanners with no demonstrated effect.

Good faith

Good-faith research is welcome. Test only on images, virtual machines and drives you own, never on someone else’s data or devices. Do not access, change or delete data that is not yours, and stop at the first proof of a flaw. Research that follows these rules will not be pursued.

This repository

This repository is public documentation. It never holds a secret, a password, a token, a private key, a local path of a contributor’s machine or personal data. If you find one, report it privately as above: it is revoked first, then removed from the history.