Atalaia

The test server and its live demo (tests.atalaia-project.link and demo.atalaia-project.link) are offline until about 3 December 2026 while the maintainer is travelling. This page, the code and the releases on GitHub stay available.

Roadmap

Six phases, each closed by a real field test: its gate. The software is ahead of the hardware: phases 1 to 3 are done in software (real boards play whole games on the bench, and the iOS app has passed its checklist on an iPhone); phases 4 and 5 are built in software. The gates wait for built boxes, field tests, a real server and the project's registry key. The newest release is v0.11.0 (7 November 2026): at check-in the player's app proves it is the phone that registered, and staff see whether a check-in is bound or unbound; the hardened Field Box image's burn procedure is prepared, and by the maintainer's decision no board gets it for now. Nothing has to be updated together. v0.10.0 (7 November 2026) brought review fixes that harden the stuck-box recovery, failover and the ticket check-in, and a release APK signed offline; v0.9.0 (6 November 2026) the stuck-box recovery (one bench test so far) and the first Android app signed with the project's key.

How the parts talk to each other: the architecture diagrams →

  1. Done

    0 · Foundations

    Shared core, Lua sandbox, Skirmesh-RF codec and browser simulator. Gate met.

    What is done

    • Shared core, the game logic every platform runs.
    • Lua sandbox, where the game modes' scripts run.
    • Skirmesh-RF codec, the radio messages' format.
    • Browser simulator, which runs Domination and Bomb.

    Gate: the simulator runs Domination and Bomb from Lua scripts. Met.

  2. Software done

    1 · Single box

    Field Box firmware and a build manual; a real board plays whole games on the bench, now with its screen, keypad and buttons wired up on loose wires (photo and clip on the build page). Leaving an ended game at the box came with v0.9.0, not yet tried on a real box. From v0.10.0 the box's admin menu opens during a game only while the game is paused or waiting, and the hardened release image builds; v0.11.0 prepares its burn procedure, and no board gets it for now. Still waiting for an assembled box.

    What is done

    • ESP32 firmware for the Field Box, with presets on the device, running in an emulator.
    • The box's small screen shows the hold bar, points and held time, in four languages.
    • A build manual with wiring diagrams.
    • The first board (Heltec V4.3, 20 October 2026) on the bench: it boots, powers the radio, reads its buttons and plays whole games, Bomb included (arming, defusing, the timer running out), on its own small screen.
    • The game-timer bar: while a timed game runs, a strip along the bottom of the small screen shows how much of it is left, and the OLED shows a clock. In software, not yet seen on a real panel.
    • The setup a scenario sends to the boxes is sent again until each box confirms it, and the box now sends that confirmation. In software and host tests only, not on a real board.
    • Change field in the box's admin menu moves an adopted box to another field, by its code. Host tests only, not on a real board.
    • No field logo on the box any more: it shows the Atalaia tower as its boot splash, a file a builder can replace when building (release images always carry the tower, and the release build checks it). The logo download was what ran out of the box's memory on the bench. A box that kept an old logo removes it at its first boot (host tests).
    • A bigger partition table: the box's two firmware slots are 4 MB each (the image filled 93 % of 2 MB), with the settings and keys kept where they were. In host tests and builds only, not flashed on a board. A box on the old table needs one USB flash; after that, over-the-air updates work as before.
    • The Field Box as an iBeacon: from its join to the end of the game, a box advertises a Bluetooth beacon (every 500 ms, never while its Wi-Fi is in use), so a phone near it can place a player on a floor or in a room. The field's own identifier is derived from its join key, and the GM can switch the boxes off as beacons, per field or per box. The box's internal memory was reworked after the bench ran out of it at a game's join (the Wi-Fi failed, then a watchdog reset): measured on the bench, 241 KB are free at boot and 102 KB at the lowest in a game with the beacon on, and CI fails the build if the budget shrinks too far. Not yet checked that a phone hears a real box's beacon.
    • After an update's or a mode fetch's refusal or failure, the box's screen goes back to the state's screen after 8 seconds (on the bench a refusal stayed on the screen until someone looked). Host tests only.
    • The serial console commands that give a box its join key or start an update (@joinkey, @update) ask for the admin PIN in a release build and refuse while none is set; a bench build keeps them open for the bench scripts. Host tests only, not on a real board.
    • The Field Box's first bench build (31 October 2026): a Heltec V4 board with the 2.8" TFT, the OLED, a 4×3 keypad and team buttons, on loose wires with no enclosure, playing Domination with the bench controller. There is a photo and a clip.
    • The big screen now matches the small one: a hold bar, the held time counting up from the capture and each team's points in a corner, in Domination, Master and Satellites (MASTER / SATELLITE headers; the master shows the team total), Progressive Domination and VIP Payload. Seen on the bench in Domination (clip on the build page); the other three modes in firmware reference images and tests only.
    • The big screen shows a boot splash, the tower and the firmware version as the small screen does, instead of staying blank until the first game screen. Host tests and a reference image, not yet checked on more than the first bench board.
    • A flaky I2C bus no longer reboots a box: the keypad, small screen, NFC reader and battery gauge use the newer ESP-IDF driver with time-outs, a bus reset and a back-off that sets a failing part aside, so a bad keypad reads as no key and the game runs on. A restart now reports its real reason (power, brownout, software, crash, watchdog) instead of always "power", and the GM console says "A box crashed and restarted". Found on the bench: a keypad with bad solder joints rebooted a board six times in three minutes. Host tests only; the bench test of the fix is still to do.
    • A screen text that does not fit is refused when a mode is checked, and a text that fails to draw shows a "?" instead of a blank (a long text in four languages used to go silently empty on a box). Tests on a computer.
    • A count of one takes the singular ("1 ponto", not "1 pontos") on the box's screens, in the app, the GM console and the staff pages. Tests in software.
    • A box left in a game that ended while it was off can leave it at the box: hold * for 3 seconds, type the admin PIN, then Leave the game (or @leave on its USB console). It keeps its field, Wi-Fi and modes. In v0.9.0 (6 November 2026); not yet tried at a real box.
    • The box's admin menu opens during a field game only while the game takes no keys from players: before the start, while it is paused, or 5 minutes after the game's controller went silent (a box stuck in an ended game). To take a box out of a running game, pause the game first. In v0.10.0 (7 November 2026); host tests only.
    • The hardened release image (secure boot v2, flash encryption, NVS encryption, anti-rollback) builds, and CI signs it with a throw-away key. Nothing has been burned into a board, and the released images do not change. In v0.10.0 (7 November 2026).
    • The hardened image's burn procedure is written as a script that only prints its plan unless it is given the board's port and an explicit, per-board confirmation; the hardened build alone can revoke a secure boot key digest with an instruction signed by the project's root release key; and an emulator test runs the burn with throw-away keys. By the maintainer's decision of 7 November 2026 no board, bench or field, gets the hardened image or any eFuse burn for now; the plain and bench images are unchanged. In v0.11.0 (7 November 2026).

    Next, and what it waits for

    • A built box that runs a 2-hour club game with no restarts.
    • Seeing the timer bar on a real panel.
    • Trying the setup re-send and Change field on a real board.
    • Hearing a Field Box's beacon with a real phone, and starting the Wi-Fi at a game's join with the new memory budget.
    • Flashing the new partition table on a real board (one USB flash, no erase, for a box on the old one).
    • The hardened release image on a board: it builds from v0.10.0 and its burn procedure is ready from v0.11.0, but by the maintainer's decision of 7 November 2026 no board gets it for now.
    • Trying the I2C fault handling on a board with a bad keypad connection, and the boot splash and the new screens on more than the first bench board.
    • Trying Leave the game on a real box.

    Gate: one box runs a 2-hour club game with no restarts. Open until a built box does.

  3. Software done

    2 · Field network

    Skirmesh-RF over LoRa, field controller, API, GM console and a mode pack, tested in software; on the bench, real boards play whole games with the controller over the radio, and what the bench found is fixed in software. Freeing boxes left in an ended game came with v0.9.0 and passed its first bench test. v0.10.0 hardens it: a box ignores a field-wide release on another channel or while it still hears its game, and the automatic resends keep to one air budget. Waiting for 5 built boxes on a field.

    What is done

    • The encrypted Skirmesh-RF radio protocol, and the USB radio modem.
    • The field controller with its API.
    • The organisers' console, with a scoreboard.
    • Joining a game with an NFC card or a QR code.
    • The boxes' firmware talking to the controller.
    • A mode pack: Hold-All Domination (score only while holding every box), Last Stand (a countdown to defeat while holding one of three), per-team arming codes on Bomb, and the Codes modifier (keypad codes that grant points, hints or unlocks, with the GM told who used them).
    • All of it tested in the simulator, the emulator and on a computer, whole games included; on the bench, real boards play whole games with the controller over the radio: invites, captures, pairing by code, updates over the air, a missing mode fetched.
    • Boxes listen before they talk: a box checks the channel is free before it sends, so fewer messages collide. In the simulator, a 20-box field hears 89 % of updates instead of 65 %.
    • The GM can set or free a box's owner in Domination too, as in the other modes.
    • The controller can send its own radio frames one at a time, spaced out. Built, and off until the field test decides.
    • The Pi controller fails a firmware update at once when the radio refuses the offer.
    • A box that was set up can go back into Wi-Fi setup, from a menu entry behind the admin PIN or a command on the USB console. The setup page is in English, Portuguese, German and Traditional Chinese, and phones open it by themselves.
    • The console's Game tab shows a QR code of the scoreboard for players.
    • Scenarios can be in German and Traditional Chinese, objective names included.
    • Sabotage, a new mode: Bomb in rounds until the game time runs out. The attackers arm, the defenders defuse; an explosion is a point for the attackers, a defuse a point for the defenders, then the box rests and the next round starts. The team with more points wins, equal points are a draw. In the simulator and in tests, and among the Field Box's presets; not yet on a real board.
    • The USB radio modem's small screen speaks Portuguese, English, German and Traditional Chinese, like the box's. Host tests only, not on a real board.
    • The GM console's forms keep what the organiser has typed until it is saved: a player checking in, or the console's clock, no longer puts the saved values back.
    • A change of the field's channel no longer strands the free boxes: the controller tells them where it went (a new sealed radio message, MOVE, said three times on the old channel), and Find boxes can sweep the last four channels for boxes that missed it. Found on the bench, where a radio scan moved the channel and an idle box heard nothing more. Built in both controllers, the simulator and the box's code; the check on two boards is still to do.
    • A start, pause or resume reaches the boxes in about a second, not up to 30: the controller repeats the state as a TIME message 1, 2.5, 5 and 10 seconds later (on the bench a box learned of a start 21 seconds late). The check on two boards is still to do. In the air-time model, the repeats, MOVE and a sweep cost the controller about 2 seconds of air in a typical hour on the default sub-band.
    • The GM console says what a channel change does to the free boxes (how many of the three MOVEs have been said, then that the controller has moved), and Settings has a Look for boxes button that shows a sweep's result. A sweep is capped per hour on sub-bands under 10 % duty (5 % of the sub-band's budget), and the console says so when it refuses and when the next one is possible. In software, on both controllers.
    • The projected score follows a capture: between two STATE messages of a box, the controller keeps counting for the team a capture event named, until the box's next STATE. On the bench the projection failed when a STATE was lost right after a capture; with this change the same bench setting passed, and a box penalty was checked on the bench too.
    • A box's game end ends the game: in a mode with no field logic on the controller (Sabotage's time limit, Bomb), the first game.end from a box of the game ends it, with the box's winner or as a draw. In Bomb / Rush an explosion now ends the game, the team that armed the bomb winning; a defuse does not. Found on the bench with Sabotage, and Bomb's explosion was checked there too.
    • A recorded radio command can no longer be played back later: every receiver (the box, the USB modem and both controllers) keeps a replay window per sender, and a box refuses a start, pause, resume, end or TIME older than the last it applied. A box that lost its epoch store draws a fresh epoch instead of reusing nonces. Nothing changes on the air: older boxes keep working, but stay exposed until updated. Tested in the simulator and on a computer, with shared vectors in C, Python and Dart; no radio replay has been tried on real boards.
    • The field controllers' hardening from the security review: request size limits, the GM and player tokens refused over plain HTTP when HTTPS is on (the console opens at https://<controller>:8443/console/), the field's MQTT on TLS (port 8883; plain 1883 on the Pi's loopback only), TLS for the staff ATAK feed, HSTS, a hardened service unit on the Pi, and signed-mode revocation that fails closed (a missing or unreadable list installs nothing; an offline controller keeps the last list for 30 days). Tested on a computer, not on a real Pi or phone at a field.
    • A box that lost its epoch store, and so came back at a random high epoch, is found again: a receiver that cannot open a HELLO or TIME searches the rest of the epoch range (a slice per search, within the existing budget), and a controller that hears such a box names its epoch to the others in a new CMD message, which can only raise an epoch. A resumed game with no record starts at a random controller epoch too, so a nonce is never repeated. Older boxes ignore the new message. Tested in the simulator and on a computer; not tried on real boards.
    • A second loss of the epoch store cannot draw a lower epoch: a box, the Pi and the phone controller keep the highest epoch they ever used apart from the per-key record, and a draw starts above it; a controller that has been on the air in a game is never re-invited under its old node id (it gets a new one); and a Wi-Fi prop is now told the CMD that names a controller's epoch, which it passes to its pod (both controllers). RFC 0001 Amendment 25. Tested in the simulator and on a computer; not tried on real boards.
    • A mode's rand() is seeded from the game's key as well as the game seed and the node id, so what the API shows players no longer predicts it (the Hacking Terminal's codes, the Target Windows' teams), and the game seed is no longer shown to players or the scoreboard. The same game replays identically, but a game recorded before this replays to other random values: do not update boxes in the middle of a game. Shared test vectors in C, Python and Dart; not tried on boards.
    • The Lua sandbox closed the holes a memory-checker review found: the table functions, coroutines and long chains of callbacks are metered, the C stack depth is limited for the ESP32, and a node id or a timer past its range no longer wraps. The stack figures are computed, not yet measured on a board.
    • The antenna's gain is a build option (--antenna-dbi, 0 to 20 dBi, 2 by default): a box with a stronger antenna lowers its conducted power by that gain, rounded down, so the radiated power stays within the sub-band's limit. Host tests only.
    • The live stream's access code is no longer in the web address: the console sends it in a header and the app in an Authorization header, and the controllers' and the site server's logs blank code-like values in addresses (the old address still works for one transition). A field whose logs were shared should change its GM and read-only codes.
    • Team results without player ids are kept 365 days on both controllers too (game history 90 days), and the GM can read them, read-only. Tested on a computer.
    • One guide to set up the radio modem, from the parts to a box joining a game: a ready-made release or a build, flashing on Windows, Linux and macOS, the port, the checks and a troubleshooting table (Set up the radio modem). Tried on the bench with the controller in Docker on WSL2; not on a Raspberry Pi or macOS, and not in a field.
    • A controller that lost its epoch store draws a new epoch from the lower half of the room above its floor, with a margin (a wider one if its epoch file is missing), so repeated losses, fourteen or more in a row, cannot use up the range. It began as a flaky test and was a product bug. Tests on a computer; the Field Box now draws the same way (host tests).
    • The field controller survives a wrong clock (a Raspberry Pi 4 has no clock of its own and can start at 1970): game times and timeouts no longer depend on it, the console warns the GM, who sets the time from the console (forward only), its certificates stay valid for phones with the right time, and the data purge waits. Tests on a computer, not yet on a real Pi.
    • Short-lived access tokens: the GM can give a referee's phone, a test run or a spectator screen a token that only reads, runs the game or manages marshals, for one game or all, for 8 hours by default (at most 7 days), and revoke it at once. Tests on a computer.
    • Updates over the air for the bench's own builds: a bench release key, trusted on the bench beside the project's keys, signs daily builds; on 2 November 2026 a box went from one build to the next from the console in about 22 seconds, confirmed after its self-test.
    • The controller frees a box left in a game that ended while it was off: the USB modem reports it, the controller sends that game's end again, and the GM console lists such boxes under Stuck in an ended game, with a Release button. A controller that lost its game (reinstalled, or its data lost) can release every box not in the live game. In v0.9.0 (6 November 2026). One bench test passed on 6 November 2026: a Heltec V4.3 box switched off mid-game, the game ended, powered back on: freed by the controller within seconds. The modem needs the v0.9.0 firmware, flashed over USB.
    • The box's Wi-Fi setup: @wifi takes a Wi-Fi name and password with spaces, in double quotes, and the setup page refuses what the box cannot use: a name over 32 bytes, or a password that is not empty, 8–63 characters or 64 hex digits. In v0.9.0 (6 November 2026).
    • The review fixes of v0.10.0 (7 November 2026): Release every box not in this game names its channel, and a box that still hears its game's controller ignores it, so a release heard again cannot free a box in a live game; the controller's automatic resends to stuck boxes wait while a game is started and keep to one burst a minute; a standby controller counts only the recognised leader's beacons for failover. Controllers and boxes are updated together, and the modem is reflashed over USB. In software and host tests, not yet on the bench.

    Next, and what it waits for

    • The radio boards, and 5 built boxes for the field test.
    • A 20-box field test with listen-before-talk on and off.
    • Whether to turn the controller's pacing on, decided from the 20-box field test.
    • Checking on two boards that a channel change keeps an idle box and that a start reaches it in about a second (the runbook is written).
    • Trying the replay window and the hardened controllers on real boards and a real Pi (a recorded command played back on the bench).
    • Wiping a box's epoch store on two bench boards to see it found again, twice in a row and with a former leader rejoined (the runbook is written).
    • Setting the clock and using access tokens on a real Raspberry Pi on a field with no internet.
    • Trying the stuck-box recovery and the Wi-Fi rules on more boards (the stuck-box recovery passed one bench test on 6 November 2026).
    • Trying the v0.10.0 release and resend rules on the bench boards.

    Gate: 5 boxes on a CQB site and an outdoor field, zero lost captures. Open.

  4. Software done

    3 · Android and players

    Android props, the I/O pod, the player app and the modes that need phones: done in software, iOS included (checked on an iPhone). The field test waits for real phones and pods.

    What is done

    • The app for players, marshals and the GM, in Portuguese and English, on Android and iOS (the iOS version has passed its checklist on an iPhone).
    • An Android phone acts as a box, with any mode and the mode's own screens, and joins a game by QR code, NFC card or text.
    • The phone as the field controller, done in software and waiting for a real phone: it runs the game and the field's services on its own.
    • The I/O pod: firmware that lends a phone a Heltec board's buttons, keypad, lights, siren, NFC reader and LoRa radio.
    • Modes that use phones and tags: Kill Confirmed, Respawn and Lives, Player Check-in, the Medic Kit and Money Factory.
    Everything else that is done, by topic

    Modes and screens

    • Kill Confirmed, Respawn and Lives and Player Check-in read players' signed NFC tags.
    • The Medic Kit: a hit player scans their tag and holds a button to be healed, with a limited number of heals.
    • Money Factory: factories make money while a team holds them; players collect it with their tag and bank it at another box, and the controller keeps what each one carries.
    • Mode screens described in YAML, drawn alike by the Field Box and the app.

    Players and marshals

    • Players check in at the field by scanning a printed poster (no account, no internet), say which replicas they will use and see whether they have passed the chrono.
    • Chrono check-in: energy, limits per class, spot checks, readings signed by the marshal. Marshals work from a "replicas to chrono" list, and their signed readings mark each replica passed or refused; they also have the replica registry and players' tags.
    • Players can share their position during a game, and the controller decides who sees it.
    • A field or club that runs its own controller can show its logo, wallpaper and colour in the app, on the scoreboard and on the poster, and give its teams names and crests.
    • The GM console tells when the check-in poster changed after it was printed.
    • The marshal and chrono screens say what the app really does, and the limit lists are translated.
    • The app keeps more of its secrets sealed with the Android Keystore: the site key, players' secrets and the site login.
    • Players' NFC tags are signed by the field controller and written from the GM console, the phone controller or the marshal's app. Marshals no longer hold the field key for them.
    • Replica labels: the app shows, shares or prints each replica's QR sticker, and the GM console prints them for everyone checked in. The marshal's queue scans them.
    • Indoor positions: the GM places BLE beacons on the plan, and a phone that hears one reports its room instead of GPS. On Android, in software and with fakes, not tried with real beacons. On an iPhone a plugin over Apple's CoreLocation does the same while the app is on the screen (otherwise GPS and the last floor); it is built and compiled on CI, and has not been tried on an iPhone.
    • The app follows a game from the scoreboard's QR code, also when the phone controller serves HTTPS with its own field CA. In software, not tried on a real phone.
    • A player says which floor they are on and sees the field plan with the positions they may see.
    • Game history in the app: the games a player took part in, newest first.
    • Login with Google, Microsoft, Apple or a passkey in the app, with an account screen. Android, and on iOS in Swift (the social-login browser as an ASWebAuthenticationSession, passkeys through Apple's platform credentials; passkeys on iOS are opt-in at build time and need the paid Apple program). The iOS part is compiled on CI and has not been run on an iPhone; the app's login has not been tried on a real phone (the site server's side was tried against Google and Microsoft, see phase 4).
    • The player's field plan can show the field's grid and the player's own cell.
    • A marshal can bind an NFC sticker to a replica when registering it.
    • A marshal's phone no longer keeps the field join key: only a prop (its join card) and the phone controller do, and an upgrade clears it from a marshal's phone.
    • Scoreboard links that pin the field's own CA are remembered per field, and forgotten when the CA changes.
    • While a live game is open in the player view, an Android foreground service with a notification keeps the app running, so the buzzes still play with the app closed or the screen off. Not on iOS. Not tried on a real phone.
    • The Field Boxes count as beacons: a placed box registers itself as a beacon beside the GM's own, and a phone that is already sharing picks up changes to the registry during the game. In software, not tried with a phone and a real box.
    • The privacy notice in the app: a Read and confirm prompt when the account was last shown another version, the notice in the app's language, nothing blocked. The app can make an account (password or social) after showing the notice, with an "I am 16 or older" box; younger players check in at the field without an account. A social sign-up carries the notice version the person saw, and a login still works against an older self-hosted server. The chrono link between a hosted hub's fields (a one-time code) shows only in hosted mode. In software.
    • The card check at check-in: when the field checks membership, a check-in stays pending until a marshal or the GM ticks "card seen, matches" with the physical card in hand; the membership number is then erased from the controller (the verdict and the expiry stay), and a marshal can pass someone without the card, with the reason logged and never the number. In the console, the app's marshal queue and both controllers. Software only.
    • Sharing the position is a separate, unticked choice at check-in (in the app and at the console's hand check-in), with who sees it; declining blocks neither the check-in nor the game, and a player can switch it on or off at any time. Without it the controller refuses the positions. Software only.
    • The app's security review: a pinned field CA is exactly one certificate, no app-wide cleartext HTTP on Android (only the loopback, the emulator's host, 192.168.4.1 and atalaia.local), a release APK that is never signed with the debug key by accident, and a social login ticket bound to the app instance. Not tried on a real phone; the release signing key is still for the maintainer to make.
    • The player's event list and game history leave out housekeeping events that have no text for players (a box confirming its setup, nodes online or offline, tag scans, target hits) instead of showing raw type names.
    • A marshal's or the GM's scan of a printed ticket no longer confirms a check-in made in the player's app on its own: both names show, and the marshal confirms it or discards it. In v0.10.0 (7 November 2026); not tried on a real phone.
    • The registering phone proves itself at check-in: when the app registers for a game (or asks for a new ticket) it gives the registration a key that stays on that phone, and signs the field controller's challenge when it checks in. Marshals and the GM see whether an app check-in is bound (the phone that registered) or unbound (a copy of the ticket, an older app, a registration made on the web) in the marshal app, the console's check-in list and its printed ticket card. Nothing is refused for it, and older apps, rosters and controllers keep working. In v0.11.0 (7 November 2026); tested on a computer, not yet on a real phone.

    Props and the I/O pod

    • An Android prop takes part in the controller's game over the field's Wi-Fi, or over its radio through an I/O pod.
    • The pod's firmware lends the phone a Heltec board's team buttons, keypad, lights, siren, NFC reader, enclosure switch and LoRa radio, over USB or Bluetooth.
    • The app reconnects to a lost I/O pod by itself; when it cannot, or a different pod answers, the prop's admin links the same pod again from the game's menu, without restarting the game. Not tried with a real pod.
    • Android props fetch signed mode packages from their controller, as boxes do. In software.
    • The GM console can push an I/O pod's settings over the radio: the four buttons' colours, the LED ring's brightness, the volume and whether the enclosure switch reports. The pod authenticates the command like any other, keeps the settings in its flash and answers; the controller sends it again until it hears back. Before, they were set when the firmware was built. In software and against the pod's code on a computer, not tried with a real pod.
    • Pairing a phone with an I/O pod over Bluetooth asks for a 6-digit code that the pod shows on its small screen, so nobody can sit between the two; a phone paired the old way is asked once to pair again, and the pod's PRG button forgets every phone. In software and in tests on a computer, not tried with a real pod.
    • An Android prop's box penalty now reaches the controller, over its Wi-Fi link and its radio link. In software.
    • The I/O pod lends the phone its simple outputs (a siren or a smoke machine's remote through an RC relay switch, on GPIO 33, then 1) and its expansion port: a target addon's hits, and an output module's relays on a pod built to lend them. The game on the phone switches them with a box's rules, the pod turns them off when the phone goes, and the GM console shows a prop's outputs and modules. In the firmware and against the pod's code on a computer, not tried with a real pod.

    The phone as the field controller

    • The game engine, with a mode's field.lua on the shared core, an MQTT broker and a position filter; the REST API, the live stream and the MQTT topics; games kept across a restart; join payloads.
    • Android props on its Wi-Fi, an I/O pod as its radio, field check-in with player tokens, the "replicas to chrono" list and players' positions. Checked by the same contract cases as the Pi controller, and run with the pod's and the Field Box's own code on a computer.
    • Its screen: the role on the app's home screen, kept running with the screen off, the GM console served from the app, and HTTPS with a field CA made on the phone.
    • The field plan (a plan per level, its map position, map features with the field boundary, the field loaded from a map, so the out-of-bounds warning works there too) and the radio channel, with a search for a quiet channel through the I/O pod.
    • The boxes over the radio: sealed invites into the next game; the end of a game told to its boxes even after the phone restarted without the game's key; new boxes adopted by the code they show or by a field card the phone writes by NFC; firmware updates between games, through the I/O pod or the Pi's USB radio modem, and the phone says why when its radio cannot carry them.
    • Presets, mode uploads and signed mode packages sent to the boxes that lack them, scenarios compiled on the phone, role packages in a game, team names and crests.
    • What the Pi controller does, too: failover (a phone and a Pi can each be the other's standby), the site server sync (games, logs and scores sent when the internet is there; rosters, branding and the scenario library from it), the remote GM and the ATAK feed.
    • The GM console fits a phone: its check-in and marshal tables stack, with no sideways scrolling.
    • The phone controller's own screen imports a registration list (a CSV or JSON file chosen with Android's file chooser), with no GM console needed.
    • A standby controller takes the box-beacon choices (the field switch, the boxes disabled, the rooms) and the boxes' places from its join, so after a failover phones get the same beacon registry; a console already open on the standby moves the boxes' markers at once, with no reload. In software, in both controllers; the marker move is tested in a headless browser.
    • The phone controller catches up with the Pi's security review: signed-mode revocation that fails closed (with a floor per mode and an age limit for an offline phone, both on the Mode packages screen), and the staff ATAK feed over TLS with a pinned certificate authority. Tested in software; not on a phone at a field.
    • The Android controller frees boxes left in an ended game as the Raspberry Pi does, with a USB radio modem (an I/O pod cannot report such boxes), and has the Pi's clock guard. In v0.9.0 (6 November 2026); not yet on a real phone.

    iOS

    • The project is in the repository, CI builds it on a Mac, and it has run on an iPhone.
    • On 2026-10-26 its on-device checklist passed on an iPhone: 12 automated checks and, by hand, QR scanning with the camera, check-in with the field's poster over HTTPS, position sharing while the app is on the screen, the out-of-bounds warning and its vibration, and atalaia:// links.
    • Indoor beacons: a Swift plugin over CoreLocation, on the same channels as Android's, needs only the location permission and works while the app is on the screen. It compiles on CI; nobody has run it on an iPhone yet.

    Next, and what it waits for

    • The field test with real phones and pods (plan phase G) waits for the hardware. So far the app has run on Android emulators and on an iPhone against the bench's controller, and the pod firmware only as its own code on a computer.
    • The phone as the field controller waits for a real phone.
    • On iOS, NFC needs a paid Apple account; the prop and the phone as the field controller stay Android only.
    • Trying the iPhone beacon plugin on an iPhone (built on a Mac), and the beacons with real ones, on Android too.
    • Trying the iOS site login (social-login browser and passkeys) on an iPhone.
    • Trying the scoreboard QR code, the floor picker, the game history and the pod reconnect on a real phone and pod.
    • Trying the app's login on a real phone.
    • Trying the card check, the position choice at check-in, the pinned CA and the app's sign-up at a field and on real phones.

    Gate: one game mixes ESP32 and Android props without issues.

  5. Software done

    4 · Site server and advanced play

    Site server, game scheduling and registration, custom scenarios, advanced modes, ATAK. Every software step is built; Google and Microsoft login have been tried for real on a test server. A real server, the hosted go-live conditions and the hardware tests are next.

    What is done

    • Advanced modes: Master and Satellites, the Hacking Terminal, VIP / Payload, and the logic of Target Windows.
    • Custom scenarios: their runtime on the field controller, a compiler for YAML scenarios, an editor in the GM console and the objectives in the app.
    • The ATAK feed: boxes and zones on ATAK maps, on the field and, through the site server, for staff away from it.
    • The site server: accounts with two-factor codes, personal data rights, controller sync, the chrono registry, game history and the scenario library.
    • Game scheduling and registration, in the app or on the field's web pages with no app, with public field pages, calendar feeds and club profiles.
    • Hosted mode: many fields on one server, each kept apart, with its deployment.
    Everything else that is done, by topic

    Modes

    • Master and Satellites: satellites held with the master raise its points; the master changing hands frees them.
    • The Hacking Terminal: a puzzle on the keypad that reveals a code or captures the terminal.
    • VIP / Payload: a team escorts its VIP, or a phone with GPS, to an extraction zone; checkpoint boxes score while held; positions stay on the field controller and the phone.
    • The rules of Target Windows: a hit while the target shows a team's colour scores for that team. The target addon's firmware is written; no target has been built yet.
    • Geo utilities in the core: distances and zones for every script, identical on every platform.

    Custom scenarios

    • The runtime: a scenario runs on the field controller and tells the boxes of the built-in objectives package what to be (a point to capture, a code, tags or cards to scan, a bomb site); they report, the scenario scores.
    • The compiler: a YAML scenario of seven objective types, with dependencies, reveals and time windows, checked with every problem located and explained, and compiled from the command line.
    • In the GM console: an editor that lists every problem as the organiser types and installs the scenario; the boxes get the scenario's names when they join.
    • In the app: players see the objectives meant for them, with their names and how each stands, a hidden one only once it is revealed; each squad can have its own chain, one objective at a time, told to the whole squad or to the squad leader alone.

    ATAK and the field map

    • The ATAK feed: boxes and zones on ATAK maps over the field Wi-Fi, in their owners' colours, placed by giving two corners of the field image their map position.
    • The GM marks safe zones, each team's respawn and HQ, the car park, first aid and objectives on the field's plan, as a pin, a circle or an area, each shown to everyone, to one team or only to the organisers, in the console and on ATAK.
    • The field can be loaded from a map: the GM finds it from where they stand or by a place's name and traces its outline on OpenStreetMap, and the browser draws the field image from OpenStreetMap's data over the country's open aerial imagery (mainland Portugal, Spain, France with its overseas territories, the Netherlands, Belgium, Luxembourg, Switzerland, Liechtenstein, twelve German states, Poland, Czechia and Austria). The outline becomes the field boundary, the outside dimmed.
    • Players' phones warn them with a banner and a vibration when they leave the boundary, from their own GPS, sending nothing.
    • Player positions never go to everyone, only to staff devices when the field turns it on. Staff away from the field get the same through the site server, over an encrypted connection with a certificate per device that the field issues and can revoke at once, positions only to a GM or a marshal.
    • Multi-storey fields in the console: a floor plan per level and each box on its level.
    • Not yet tried with a real ATAK phone, nor at a real field.
    • A box that Progressive Domination has made the active one says so on ATAK.
    • The field map page works on the phone as the field controller too.
    • ATAK shows an indoor player at their beacon's place, with the room in the remarks.
    • The grid in ATAK, and a printable grid map.
    • The remote GM sees players' positions when they share them.
    • ATAK device certificates last 90 days (they were 7), and the staff ATAK page warns when one expires within 14 days.
    • The field can turn the console's map fetching off (Settings, Map fetching): then "Load the field from a map" reaches none of OpenStreetMap, Overpass, Nominatim or the aerial imagery. On by default.

    Site server, accounts and data

    • Its skeleton: database, migrations and a health check, in its own container.
    • Accounts: passwords, two-factor codes required for organisers and marshals, sessions and roles per field.
    • Personal data rights: access, export, correction, erasure, consent records and a daily retention purge.
    • Controller sync: field controllers push their games, logs and scores, offline first and safe to replay. Not yet over a real 4G link.
    • The chrono registry: signed readings verified and kept as signed, public keys only, sharing between fields with consent. Not yet with a real chronograph.
    • reset-totp: the operator resets the two-factor code of an account that lost its authenticator.
    • Field controllers pull other fields' chrono records for the players on their roster, only with each player's consent. They keep them apart from their own readings and never judge them.
    • Controllers take the field's settings and branding from the site server, and a change reaches the Pi and the phone controller at once. In software.
    • Login with Google, Microsoft or Apple, and with passkeys. Passwords are optional; staff still need a second factor. Google and Microsoft have been tried against the real providers on the test server (tests.atalaia-project.link and demo.atalaia-project.link); Apple has not been tried yet.
    • A staff account page where each person manages their own logins: passkeys, linked accounts, password and two-factor code.
    • Scenario, preset and schedule changes reach the controllers at once.
    • How long a field keeps data is a field setting: game history and chrono records each have a retention period, set on the controller, in the GM console or on the site server's staff settings page: game history 90 days by default (team results without player ids 365), chrono records 365. The daily purge deletes an ended game that old, never before the site server has all of it. The unused per-account retention field is gone.
    • A player's erasure at a field controller reaches the site server by itself with the next sync (never a name), and erases the player's chrono records there too.
    • Templates for the privacy notice, the data processing agreement and the cross-field sharing terms, in Portuguese and English (the agreement also in pt-PT), and a data protection impact assessment template: they state the positions the maintainer's lawyer approved on 30 October 2026 (accounts on the contract with a minimum age of 16, the membership card checked at check-in with the number erased, violations on legitimate interests, position sharing by consent, no data protection officer). Still templates each field fills in, not legal advice for a particular field.
    • The site server publishes the privacy notice the operator provides, as a page and over the API in four languages, and shows it to accounts again when its version changes (an account rests on the contract, not on consent). Nothing is blocked: export and erasure stay available. Tested on a computer.
    • A social account chooses its username on the Account page right after it is made (skippable; the provider's own name only if the person asks for it). Any account can rename itself with its own login method, and two accounts of one person can be merged once the person has proved both (never into or from an account with a staff role). The error for a missing consent shows at the checkbox. Tested on a computer; the username step and the merge are still to be tried on the test server.
    • A social sign-up records the privacy-notice version the person actually saw: the server refuses a stale one and checks again before it makes the account. Tested on a computer.
    • The daily retention purge also deletes anonymised accounts (what an erasure or a merge leaves) once nothing refers to them any more. Tested on a computer.
    • Changing how an account logs in needs a second factor: adding, renaming or removing a passkey, setting up or turning off two-factor codes, changing the password, linking a social login and confirming a merge are refused unless the session passed a TOTP or passkey step-up (a social login alone does not count); a merge never carries passkeys into a staff account. The staff account page and the app ask for the step-up first. Tested on a computer, not against the real providers.
    • The site server's own security review: request bodies capped (413 past 1 MiB, 4 MiB for uploads), the same answer for "no such account" and a refused grant, the field export holding only the field's audit rows, the public-page switch honoured by the app's field lookup, a required public URL, a social login's issuer stored with its subject, plain-HTTP requests behind a proxy redirected to HTTPS, and a health check that says only ok. Partly found on the preview server.
    • Accounts rest on the contract, not on consent: sign-up records which version of the privacy notice was shown, with an "I am 16 or older" box (on the staff page and in the app); no date of birth is kept; with no notice published, sign-up is closed. Old consents became notice records. Tested on a computer.
    • The privacy review's code: an audit entry's network address is erased after 180 days (a setting); an account unused for 24 months is warned and anonymised 30 days later; a person's erasure, or a withdrawn chrono-sharing consent, reaches other fields' controllers, which drop their copies; erasures are kept as hashes in a ledger outside the database and applied again after a restore; a new staff page marks repeat offenders as an advisory only (a plain warning never counts) and a ban ends after 12 months by default; game history is kept 90 days with player ids, and team results without them 365. Tested on a computer.
    • A field accepts the cross-field sharing terms (its administrator, on the settings page) before it shares chrono readings; the version, the date and the account are recorded, and when the terms change, sharing is suspended until they are accepted. The field is the controller of its players' data, the hub operator its processor, and the fields that share are joint controllers for that step only. Tested on a computer.
    • An operator can set a password on an existing account from the command line (set-password, asked twice without echo, never in the command line): the way out for a staff account that has no second factor and so cannot change its login methods from the site.

    Games, clubs and staff pages

    • Game scheduling, with a public page per field and open iCalendar and JSON feeds of its games (no personal data on them).
    • Registration for those games, with pre-declared replicas and a check-in ticket: the field controller pulls the list and reports who came. Registering from the app; importing a registration list (CSV or JSON) exported from another platform.
    • Club profiles: name, colour, logo and crest, members, a public page off by default with a report button and moderation. A field's branding and saved teams sync to its controllers, so a club's crest reaches every field that saved its team.
    • Game history: each game's score timeline and event log; players and spectators see a live game a minute behind, without secrets or player ids. A public scoreboard per field (off by default).
    • The field's scenario library with its game presets, checked as the field controller checks them and installed by every controller of the field, a standby included.
    • Web pages for the field's staff, in Portuguese and English and on a phone: login with the two-factor code, game history, the scenario library (every problem shown before saving, revisions and presets), device health, and the remote GM's live view and commands. Tested in a headless browser, not on a real server.
    • Controllers drop a scenario or preset the site archived or deleted, unless a game still uses it.
    • Staff pages for the schedule: list, create, edit, publish and cancel games, with times in the field's time zone.
    • Staff pages for registrations: who registered, changing a name, team or federation number, withdrawing a registration, and the CSV export and import.
    • A printable game-day roster page, with when a controller last pulled it.
    • Staff actions on a registration: paid or unpaid (the server takes no payment), no-show, move to another game, restore, edit the replicas. Tested in a headless browser, not on a real server.
    • Staff pages for roles, sync keys, branding, clubs, platform links, firmware and administration.
    • The remote GM page updates live, with no reload.
    • Association membership is checked at registration and at check-in: APDs for fields in Portugal, any association or federation elsewhere.
    • A staff page for the field's settings: the public page, the check-in rules, membership, chrono sharing and the country.
    • Chrono records show by how much a replica was over the limit, and flag repeat offenders.
    • A staff page for the field's data export and its use of the quotas.
    • Score timelines in game time.
    • A club's page lists the fields it plays at, the staff page too.
    • The controller imports a registration CSV on its own, with no site server needed.
    • The console warns when a name has letters the boxes cannot draw: team names, the game's name, a scenario's and its objectives' names.
    • Registration lists carry an association ID and the membership's expiry date as optional columns, and the registration export imports back as it is.

    Boxes and the field

    • Device health: each box's battery, link and firmware from what the controllers send; the field controller reports a box that goes silent or comes back and a low battery, which a box with a battery gauge also reports itself. Not yet on real boards.
    • A firmware catalogue that lists only releases signed with a trusted key, and over-the-air updates for the Field Box: the GM uploads a signed release to the field controller and updates the boxes between games, never during one; each box downloads it over the field Wi-Fi, checks the signature with keys built into its firmware, installs it in its spare slot and goes back to the old firmware if the new one does not start. In software, not yet on a real board.
    • Adopting boxes to the field with an NFC field card, the controller's USB cable or the 6-digit code the box shows, paired over the radio. In software, not yet on a real board.
    • Inviting boxes into the next game over the radio, with no card or QR code (the join travels encrypted under a key derived from the field join key), and a start that waits for every role to have a box, unless the GM chooses "Start anyway". Tested on two bench boards with the field controller.
    • Boxes heard in every new game (the radio's nonce counter is now per game, a fix found on the bench) and box screens that follow the game (Ready, Waiting, Neutral) in the field's language, English or Portuguese. Tested on two bench boards.
    • A controller restarted mid-game takes the game up again; one that lost the game's key still tells its boxes over the field radio that the game is over; wrong admin PINs wait longer and longer, counted across restarts, with no default PIN on a real box. In software, not yet on the bench boards.
    • The remote GM: an organiser with the GM role, logged in with a two-factor code, sees the live game and starts, pauses, resumes or ends it, or sends a message or a mode command, over a connection the field controller opens itself, only when the field turns it on, with every command logged on both sides.
    • The console's Controller tab lists the remote GM's state and every command it got.

    Deployment and hosted mode

    • The deployment: HTTPS through Caddy with an automatic certificate, a setup script that makes every secret, encrypted daily backups and a restore into a fresh database. Tested in Docker on a computer, not on a real server with a real domain.
    • Hosted mode: one server for many fields, each in a database schema of its own at its own address, with row-level security underneath so that no field ever sees another's data, and the operator's commands to export a field's data or delete it. Tested against PostgreSQL in Docker.
    • Its deployment: a setup script that makes the hub's database roles, each field at its own address with a certificate that only an active field's name can get, and encrypted backups restored with every field kept apart. Tested in Docker, not on a real hosted server with a real domain.
    • Hosted mode: a quota for each field, a data export a field's administrator can download, and a deleted field's open connections close at once.
    • Hosted mode: a storage quota, and custom domains per field.
    • Hosted mode: every field has a database role of its own, so a SQL injection can no longer switch to another field's data by changing the setting that row-level security used. One gap that needs a second SQL statement stays open and is written down. Tested against PostgreSQL in Docker.
    • Hosted mode: fields that share chrono records now do so across a hub's fields, through a read-only view that needs consent; a person links their accounts at two fields with a one-time code, and nothing is matched by e-mail or name. Tested against PostgreSQL in Docker.
    • A read-only live demo for the preview server: the real field controller with three simulated Field Boxes plays games forever, alternating an open field and an invented three-storey building (a plan per floor, fifteen beacons, twelve simulated players: six placed by beacon, five by GPS with a floor picked, one unsure), and visitors see the GM console, the scoreboard and a player's view, with nothing to change and no personal data. Online since 29 October 2026 at demo.atalaia-project.link; its player's view is tested in a headless browser.
    • Hosted mode: one social login callback for the whole hub (opt-in): the operator registers one redirect address per provider; the hub signs the state, checks the field in its registry and hands over to the field's own callback. Tested in Docker, not against the real providers.
    • A go-live checklist for the operator: six conditions before any field is offered hosted mode (a signed DPA per field, the sharing terms, every sub-processor in the annex and in the EU, a filled-in privacy notice, the operator's own papers if it is a natural person, and a proof on a real server).
    • The preview server (tests.atalaia-project.link and demo.atalaia-project.link) has run all of this since 30 October and has a privacy notice of its own (version preview-2026-10-31: accounts on the contract, 16 or older, no data protection officer).
    • The preview server installs its privacy notice itself on every start and update (and stops if a version's files are missing), the live demo sends HSTS, and a disposable test stack (a hosted hub, a fake login provider and a field controller, on 127.0.0.1 only) lets an authorised security test run against today's code.

    Next, and what it waits for

    • A real server with its domain.
    • The hosted go-live conditions (a signed DPA for each field, the sharing terms, a filled-in notice) and each field filling in its own notice and impact assessment. The maintainer's lawyer approved the legal positions on 30 October 2026; hosted mode is still not offered. None of the security, radio and legal work of 30 October has been tried on a real board or phone: it runs in software and on the preview server.
    • The tests on hardware: real boards, a real ATAK phone, a real 4G link, a real chronograph.
    • The target addon on a real plate (its firmware is written), after which Target Windows becomes a Field Box preset.
    • Trying Apple's login against the real provider, and the username step and the account merge on the test server.
    • jogarairsoft.pt: the maintainer wrote to them on 28 October 2026 proposing an integration (their events, teams and APDs to us; our games feed, field profiles, public clubs and results to them). Waiting for their answer; nothing is promised.

    Gate: a weekend milsim runs on Atalaia end to end.

  6. Software done

    5 · Community

    Visual mode editor, signed mode packages, the mode registry as a template, German and Traditional Chinese, build guides, the expansion port's target and output modules. Every software step is built. The newest release, v0.11.0, is signed with the project's release key and carries the Android app, built without its key and signed with the project's Android key in a separate offline step.

    What is done

    • The visual mode editor: a page of the simulator where a mode is put together from blocks (what happens when a team holds the button, timers, points, screens and sounds, zones on the map, GM commands, several roles, the settings a GM can change and the field controller's logic across boxes). It writes the mode's Lua scripts and manifest as you go, in Portuguese and English, works offline, and a button tries the mode in the simulator at once. Its three examples pass the same tests as the hand-written modes.
    • Signed mode packages: one archive, signed like a firmware release. The editor makes the package itself and shows what the mode key will sign and the command that signs it; signing stays on the author's own computer, offline.
    • The field controller installs signed modes only with its own trusted keys, and shows who signed each one and whether the project reviewed it.
    • A battery of sandbox-escape attempts runs on every change; it closed two ways for a script to run past its time limit.
    • Send missing modes in the GM console: a box that lacks a game's mode fetches the signed package from the field controller over the field Wi-Fi, only between games, while the game waits for it; it checks the package with keys built into its firmware and keeps it. Tested on a computer, not on a real box.
    • Scenarios built from blocks in the GM console: the boxes, the objectives and who sees them, when they open, what completes them and what they give, by mouse, touch or keyboard, even on a phone. The field controller checks and installs them as if they were written by hand.
    • The mode registry, ready as a template: a pull request with a signed mode is checked automatically (its signature, that its source is what was signed, its licence, its tests in the simulator), and a mode the project has reviewed gets the verified badge, the project's own signature, which is what lets it reach the boxes. How to submit a mode, the review checklist, keys and moderation are written down.
    • German and Traditional Chinese (as written in Taiwan) on this page, the GM console, the mode editor, the app, the Field Box's screens, the built-in modes and the site server's pages: AI drafts, not yet reviewed by players who speak them.
    • The registry's repository exists (created 2026-10-26), and its page lists the modes, with no modes in it yet.
    • Build guides for the Satellite, the I/O pod, the expansion port, the target addon and the simple output (a siren or smoke through an RC relay switch), as text. No box has been built from them yet.
    • The expansion port in the firmware: a box finds a module plugged into its port within 2 s and passes each hit to the mode's script, and the target module has its own firmware, with UF2 files in the releases. Tested on a computer against a simulated module, not yet on a real port or plate.
    • The I2C output module: up to four relays or MOSFETs on a box's port, behind an isolator and from a supply of its own, with its firmware (a UF2 file in the releases) and its build guide. Its firmware is tested on a computer only, never on a board.
    • User manuals for players, game masters, marshals and Field Box operators, in English and Portuguese.
    • Build manuals with a pin table for each board, a firmware guide (download a release or build it) and a controller setup guide, in English and Portuguese.
    • The simulator's web view has every input a mode uses: tags, keypad, hits and GM commands, with an event-log download.
    • The GM console's scenario blocks have a language list with all four languages.
    • The project's mode keys: an offline root key and a key the registry uses to sign the verified badge. Boxes, the app and the controllers trust both by default.
    • The firmware guide and the build manuals explain the one USB flash that a box on the old partition table needs, and that settings and keys survive it.
    • CI and release hardening from the security review: every action pinned by commit, the build image by digest, every pip install from a hash-pinned file, the signing job in a protected environment that refuses a tag not on main, and weekly dependency updates. Since the key change of November 2026 the release signing key lives only in that protected environment.
    • Lua string patterns and string.rep are metered in the sandbox (a hostile pattern could hang a box until the watchdog), skipping nested CBOR data is depth-limited, and the CBOR decoders have tests with hostile input.
    • Release keys: the project's CI release key was changed over the air. v0.7.0 trusted the old and the new key; v0.8.0 (4 November 2026) is signed with the new one, and the old one is retired. A box on v0.6.1 or older installs v0.7.0 first, then v0.8.0.

    Next, and what it waits for

    • The review of the German and the Chinese: if you play in German or in Chinese, help us review them. Translations into other languages start at docs/translations.
    • The hardware: the bench tests of the expansion port and the target module, the carrier PCB (a ready-made circuit board that makes builds easier) after the first built boxes, build photos, community content from a field.

    Ongoing after the first release.