Split each burst across the autopilot's destinations #316

Merged
spark merged 1 commits from task/autopilot-fair-split into main 2026-11-29 16:07:14 +00:00
Owner

Summary

  • The autopilot takes one different frame of each sequence for every destination that is still under its total.
  • A short sequence rotates, so the frames that exist are shared and each total can still be met.
  • A destination can send that same frame to a second place (Cofina Direto and Arquivo) and can ask for the camera original instead of the edit.

Test plan

  • On a match, add three exports (Direto also to Arquivo, ZZ, A Bola), with different totals.
  • A full sequence sends three different photos; Direto and Arquivo get the same one.
  • A sequence with one usable frame rotates which destination receives it.
  • A destination marked originals receives the camera file.
## Summary - The autopilot takes one different frame of each sequence for every destination that is still under its total. - A short sequence rotates, so the frames that exist are shared and each total can still be met. - A destination can send that same frame to a second place (Cofina Direto and Arquivo) and can ask for the camera original instead of the edit. ## Test plan - [ ] On a match, add three exports (Direto also to Arquivo, ZZ, A Bola), with different totals. - [ ] A full sequence sends three different photos; Direto and Arquivo get the same one. - [ ] A sequence with one usable frame rotates which destination receives it. - [ ] A destination marked originals receives the camera file.
spark added 1 commit 2026-11-29 15:55:52 +00:00
Let the autopilot split each burst across every configured destination.
ci / rust (pull_request) Successful in 3m59s
ci / typescript (pull_request) Successful in 9m54s
c8949c690d
One different frame goes to each export, a short burst rotates so every total can still be met, and a destination can share that same frame or take the camera original.
spark merged commit d165996046 into main 2026-11-29 16:07:14 +00:00
Author
Owner

Merged to main as d165996. CI on the pull request and on the main push is green (TypeScript and Rust).

The assignment tests cover three destinations on a full burst, rotation when a burst has one frame, a destination that has already reached its total, and a second destination that shares the same frame.

At 17:00 UTC the live API health was still version 690b353. Both deploy webhooks (api and app) were touched at 16:07 UTC, when this landed on main, and the public version has not changed. I did not open the containers to read the deploy log.

Merged to main as d165996. CI on the pull request and on the main push is green (TypeScript and Rust). The assignment tests cover three destinations on a full burst, rotation when a burst has one frame, a destination that has already reached its total, and a second destination that shares the same frame. At 17:00 UTC the live API health was still version 690b353. Both deploy webhooks (api and app) were touched at 16:07 UTC, when this landed on main, and the public version has not changed. I did not open the containers to read the deploy log.
Author
Owner

Deploy did not finish.

At 16:07 the API webhook returned 202, so that container accepted the deploy. At 17:18 /health was still 690b353.
At 16:07 the app webhook was closed by Gitea with no response (HTTP 499). That deploy did not start. The app files on disk are still dated 27 Nov.
The code page stays blank because the compressed app script stops at 124249 bytes and never finishes, so the browser does not run it.

Deploy did not finish. At 16:07 the API webhook returned 202, so that container accepted the deploy. At 17:18 /health was still 690b353. At 16:07 the app webhook was closed by Gitea with no response (HTTP 499). That deploy did not start. The app files on disk are still dated 27 Nov. The code page stays blank because the compressed app script stops at 124249 bytes and never finishes, so the browser does not run it.
Sign in to join this conversation.