Reconcile production source and release provenance - #3
Merged
Merged
Conversation
added 3 commits
August 28, 2026 14:38
Keep autosave, batch, and submit probes aligned with Go SXB protected paths.
Document the current student hot-path data plane, FastAPI control plane, and classified production source divergence.
Add a deterministic source fingerprint, full vs delta provenance metadata, and OCI labels for future image builds.
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.
Why production diverged
/opt/siab1is a file-based release, not a Git checkout. The 2026-08-28 delta deploy of72aa010copied five PR #2 files correctly, then generated a full-tree checksum over mixed runtime files. That labeled a delta as full commit identity.Compared against
origin/main@72aa0107727309c528bf5be825b07fbe5a2b1eb0there were 57 source divergences and 0 unexplained after classification.Legitimate production change reconstructed
scripts/go_remaining_stage0.pynow sends SEB headers for autosave, batch, and submit, matching Go SXB protected paths.Intentional runtime differences (not copied into Git)
Keep Git FastAPI N=4 admission, singleflight, telemetry, and query hardening. Production still runs older control-plane Python bind-mounted under
/opt/siab1/appbecause student traffic is Go 100%. Reverse-copying those files would regress the FastAPI fallback.Git-only control-plane modules remain:
app/core/singleflight.py,app/core/start_db_admission.py,app/middleware/start_admission_bind.py, plus local parity/fingerprint probes.Operational artifacts excluded
Nginx
.bak/.pre-*files, generated JS bundles, liveruntime_control/maps, logs, uploads, backups, and secrets are excluded from source identity.Stale drift left in Git as canonical
CRLF-only frontend/CSS/template drift and older
bin/restore.shstay Git-canonical. Do not reverse-copy production bytes.Runtime
No production deploy, restart, rebuild, or routing change was performed. Public critical smoke remains 9/9.
Future release identity
scripts/source_release_fingerprint.shis the deterministic source snapshot.scripts/generate_release_manifest.shnow recordsrelease_mode=full|deltaand will not treat a delta as full-tree commit identity.