Repository navigation
Bootstrap agentic development workflow - #150
Merged
Merged
Conversation
Adds shared guidance so humans and AI coding agents can work on botui with a reliable build-and-verify loop, as in Wombat-Firmware: - AGENTS.md: what botui is, build, verification, architecture, the paths and scripts shared with wombat-os and libwallaby, and gotchas. CLAUDE.md and GEMINI.md import it so every tool reads the same instructions. - CONTRIBUTING.md: the same guidelines as Wombat-Firmware; only its last section is specific to this repository. - Docker build: Ubuntu 24.04 with Qt 6.4 builds libkar, pcompiler, and libwallaby from source at the versions wombat-os ships, then botui. It checks that botui compiles; the binary doesn't run on a Wombat, whose packages are cross-compiled against a separate Qt 6 build. libwallaby's bundled libav is built without assembly, because its x86 inline assembly doesn't assemble with current binutils. - scripts/screenshot.sh runs botui on a virtual 800x480 display in the image, taps the screen, and saves screenshots, so UI changes can be checked without a Wombat. - CI builds every pull request with the same image and fails if botui crashes at startup. It replaces action.yml, which is invalid YAML and fails on every push, and bob.yml, which waits 24 hours for a self-hosted runner and is cancelled on every push. - README: current requirements, the Docker build, the new CI badge, and a link to CONTRIBUTING.md. - A devcontainer target, as in Wombat-Firmware. No botui source changes.
From review of the first commit: - The image now provides the stub wombat-os mode file, writable by any user, so screenshot.sh also works as the devcontainer's non-root user. - The devcontainer mounts the repository at /home/dev/botui, the same path as docker compose, so the two can share build/. - screenshot.sh validates X,Y taps, waits for Xvfb to answer instead of sleeping, fails when a tap fails, and accepts Podman as well as Docker. - build.sh works from any directory. - CI cancels superseded runs. - Each dependency ref is declared above its own layer, so bumping one doesn't rebuild the others. - AGENTS.md: how to delete root-owned build output on Linux, and the startup crash signal on x86_64.
objorkman
marked this pull request as ready for review
October 4, 2026 04:56
- Fix possible screenshot hanging - Run build as non-root user - Fix small mismatches from copied contribution guide - Take advantage of devcontainer UID mapping - Screenshot doesn't fail silently
twells46
force-pushed
the
oscar/agent-scaffolding
branch
from
October 12, 2026 18:39
7e1d846 to
a54143b
Compare
twells46
approved these changes
Oct 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Bootstraps agentic development for botui the same way as Wombat-Firmware (kipr/Wombat-Firmware#9): shared instructions for contributors and the AI coding agents many of them now use, plus a build-and-verify loop that works without a Wombat. There are no botui source changes.
Needs maintainer sign-off: contribution process
CONTRIBUTING.mdmatches Wombat-Firmware's except for its last section, so it sets the same process here: owner-named branches (<name>/<topic>), a reviewed plan before anything beyond a small fix, focused changes with no drive-by reformatting, comments only where the code can't speak for itself, documentation updated in the same PR, and PRs that say plainly what wasn't tested. The botui-specific section says CI only checks that botui compiles, that behavior on a Wombat needs testing on a Wombat, and that changing a file shared with wombat-os or libwallaby needs a paired PR there.Changes
AGENTS.md: what botui is, the build, how to verify a change, architecture (screen stack, device layer, running programs, NetworkManager over D-Bus), a table of the paths and scripts shared with wombat-os and libwallaby, which classes are dead Kovan-era code, and gotchas (mixed formatting, string-basedconnect()failing at runtime, a UI thread that blocks on system commands).CLAUDE.mdandGEMINI.mdimport it, so each tool reads the same instructions.Dockerfile,docker-compose.yml,build.sh): Ubuntu 24.04 with its Qt 6.4 packages. It builds libkar v1.0.0, pcompiler v1.0.0, and libwallaby v1.2.1 from source (the versions wombat-os lists), then botui intodeploy/botui. Run it withdocker compose build && docker compose run --rm build-botui. libwallaby's bundled libav is built with--disable-asm(a one-line patch in theDockerfile), because its x86 inline assembly doesn't assemble with Ubuntu 24.04's binutils.scripts/screenshot.sh: runs the built botui on a virtual 800×480 display inside the image, taps given coordinates, and saves a screenshot after each tap. Agents (and people) can check UI changes without a Wombat..github/workflows/build.yml): builds every PR with the same image, launches botui, fails if it crashes at startup, and uploads the home-screen screenshot and log.action.ymlandbob.yml:action.ymlis invalid YAML and fails on every push;bob.ymlwaits 24 hours for a self-hosted runner and is cancelled on every push. The README badge now points at the new workflow.README.md: current requirements (it listed Qt 4.7 and CMake 2.6), the Docker build, and a link toCONTRIBUTING.md.What the Docker build is, and isn't
It's a compile check and a way to run botui off-device. Its binary doesn't run on a Wombat, because the Wombat has its own Qt 6 build and older system libraries. The botui.deb that wombat-os ships was built with GCC 9.4 against a Qt 6 tree at
/home/qtpi/qt-raspiand packaged with CPack. That environment isn't in this repository or wombat-os, and this PR doesn't try to recreate it (#149 started on a cross-compiled build).Found while writing this, not changed here
/home/kipr/wombat-os/configFiles/wifiConnectionMode.txtis missing.NetworkManager::eventModeState()and similar functions fall off the end without returning; these are the-Wreturn-typewarnings. It doesn't happen on a Wombat, where the file exists; the screenshot script creates it.configFiles/botui.servicehas a stray merge-conflict marker (>>>>>>> harrogate_lts) and noUser=, so botui runs as root.libavcodec/x86/mathops.h(operand type mismatch for 'shr'). Its own release build cross-compiles to arm64, so it doesn't hit this.debian/(a Qt 4 armhf package, including a 2020 binary),src/.RootController.cpp.swp,ui/*.ui.autosave, andobj-x86_64-linux-gnu/.Testing
--disable-asmconfigures, builds, and installs on emulated x86_64 (it failed without the flag). The full x86_64 build is CI on this PR.screenshot.sh: the home, About, Settings, Motors and Sensors, and Programs screens render; a stub program runs and its output appears in the console. It exits 1 when botui crashes at startup and refuses to run outside Docker.