Smartstack: add lifecycle telemetry and the final architecture guide - #477
Draft
timbeccue wants to merge 3 commits into
Draft
Smartstack: add lifecycle telemetry and the final architecture guide#477timbeccue wants to merge 3 commits into
timbeccue wants to merge 3 commits into
Conversation
This was referenced Aug 6, 2026
timbeccue
force-pushed
the
feature/smartstack-pr8-logs
branch
from
August 7, 2026 07:15
c11a83e to
6e12685
Compare
timbeccue
force-pushed
the
feature/smartstack-pr7-e2e
branch
from
August 7, 2026 07:15
462544a to
78f2fd0
Compare
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
This is PR 8 of 8 completing the v1 banzai implementation of Smartstacking at site.
PR1 (#469): combine math
PR2 (#470): JPEG utilities
PR3 (#471): DB updates
PR4 (#473): shipper contract
PR5 (#474): smartstack data products
PR6 (#475): stack worker polling
PR7 (#476): e2e tests, compose cleanup
PR8 (#477): logging <-- you are here
PRs 1–4 provide the independent foundations for combining images, rendering JPEGs, storing stack state, and shipper integration (this PR). PR5 builds the data products, this PR adds the polling worker, crash-only supervisor, and site deployment configuration. PR7 adds E2E and recovery proof; PR8 (this one) adds structured lifecycle telemetry and final documentation.
Structured lifecycle events
Smartstack logs now use a consistent
smartstack_*namespace and can be grouped bysmartstack_moluid:createdframe_reducedfinalize_failedterminalcomplete,timeout, or exhausted-attempterrorframe_ignoredEvents include the relevant camera, stack number or filepath, lifecycle status, target status, and claimed attempt number. Successful previews remain debug-level messages rather than lifecycle events.
Unit tests pin the complete structured tag dictionaries for creation, accepted and ignored members, successful terminal transitions, failed attempts, and exhausted-attempt errors.
Site log shipping
The three Smartstack services opt into the existing site log pipeline:
banzai-stackframe-listenerbanzai-stackframe-workerbanzai-stacking-supervisorEach receives the
gtn.lco.logstash: "yes"label andTZ=UTC.Documentation
docs/smartstacking_architecture.mdis rewritten as the final code-oriented system map, covering: