Dependencies¶
robotsix-auto-mail consumes several first-party packages from git
(robotsix-agent-comm, robotsix-board, robotsix-llmio,
robotsix-config, robotsix-modules) alongside its PyPI
dependencies. robotsix-agent-comm backs the calendar / broker
extras. To keep builds reproducible and prevent silent breakage, we
follow a pin + bump model.
The pin + bump model¶
uv.lockis committed and is the single source of truth for the resolved dependency tree.- Most git sources in
[tool.uv.sources]stay atrev = "main", but the lock pins the exact resolved commit for each one, e.g.robotsix-board.git?rev=main#<sha>. One source is the exception:robotsix-llmiois pinned directly inpyproject.tomlto a specific commit (rev = "28b23a848003") rather than trackingmain. - Nothing installs
@mainat build/run time. Every install path honors the committed lock, so the resolved revisions only move whenuv.lockis updated and committed.
How installs honor the lock¶
- CI (
.github/workflows/ci.yml, both theverifyandsecurityjobs) installs viauv sync --frozen --extra dev.--frozenusesuv.lockas-is and fails ifpyproject.tomldrifted from the lock — guaranteeing the committed lock is authoritative. - The Docker build (
Dockerfile, builder stage) installs the exported frozen lock rather than re-resolving@main:
RUN uv export --frozen --no-emit-project --no-hashes --extra llm --extra microsoft --extra calendar -o /tmp/requirements.txt && \
uv pip install --system --no-cache-dir -r /tmp/requirements.txt && \
uv pip install --system --no-cache-dir --no-deps .
uv export --frozen reads uv.lock as-is (no re-resolution) and emits
the pinned git URLs (...?rev=main#<sha>); --no-emit-project drops
the local project from the requirements file so it is installed
separately with --no-deps (its deps are not re-resolved);
--no-hashes avoids the hash/VCS conflict (uv cannot hash a git
checkout). The result: two builds with no repo change install
identical revisions — no @main drift.
Plain
uv pip install ".[llm]"performs a fresh resolution and does not readuv.lock, so it must not be used in the build.
How updates land¶
Dependency-revision movement arrives through one CI-gated path, never via
silent @main drift:
- Manifest change (
.github/workflows/lockfile.yml): whenpyproject.tomlchanges onmain, the lockfile is re-resolved and committed back so the lock never goes stale.
Motivating incident — 2026-06-10 board outage¶
A production outage on 2026-06-10 was caused by an auto-mail container
build pulling shared git dependencies unpinned at @main at
image-build time. robotsix-board #40 changed the BoardAdapter
Protocol; the 13:15 auto-mail rebuild silently pulled it, and the
container crash-looped on the import-time Protocol assert
(MailBoardAdapter does not satisfy BoardAdapter) until an operator
hotfix (board #41) plus a manual --no-cache rebuild.
A committed lock plus CI-gated bumps would have prevented this:
- The Docker build installs the frozen lock, so the rebuild would
have used the previously-pinned
robotsix-boardcommit — not whatever@mainpointed to at 13:15. No silent pull, no crash loop. - The board #40 change would instead reach auto-mail through a deliberate
lock update (re-resolved and committed via
lockfile.yml), whose CI runs the full suite — includingtests/server/test_board_adapter.py::test_mailboardadapter_satisfies_protocol, which assertsMailBoardAdaptersatisfies theBoardAdapterProtocol. The Protocol break would have failed CI and been caught before merge, never reaching production.