deploy.yml runs compose up -d before the health check with no rollback - blocks unattended pushes to the AI pipeline #65
Closed
opened 2026-08-24 23:41:26 -04:00 by logan
·
1 comment
No Branch/Tag Specified
Labels
Clear labels
area/ai-pipeline
area/auth
area/billing
area/correlation
area/discord
area/frontend
area/governance
area/growth
area/infra-deploy
area/legal
area/map
area/mqtt
area/node-ota
area/osint
area/recording-audio
area/sdr-radio
area/transcription
board
board:agenda
minutes:draft
minutes:final
role:ceo
role:cfo
role:cio
role:ciso
role:cmo
role:coo
role:cto
Scene/entity extraction, summarizer, AI providers, embeddings
AuthN/Z, roles, tenancy/org scoping, API keys, credentials
Plans, entitlements, AI spend accounting and caps
Incident correlation, linking, lifecycle, severity, corr_debug
Discord bot, radio bots, voice streams, bot tokens, webhooks
Web UI: Next.js app and the edge-node local dashboard
Board process, minutes, unattended runner, agent tooling
Go-to-market, outreach, cold email, discovery conversations
CI/CD, VM, registry, Firestore rules/indexes deploy, Terraform/Caddy
ToS, retention, licences/DAAs, CAN-SPAM, E&O, name suppression
Live map: pins, paths, tiles, legend, geocoding
Node-C2 MQTT, checkins, commands, node sweeper, dynsec
Node install, enrollment, OTA updater, image skew
External feeds: cameras, 511, ADS-B, AIS, outages, and their licences
Call capture, boundaries, PulseAudio, ring buffer, trimming, attribution
OP25 decode, SDR hardware/tuning, conventional, second SDR, mesh radio
STT, transcript correction, place verification, name accuracy
Board process: minutes and board-filed items
Needs board scoping at the next sitting; CEO removes the label once scoped
One exec pre-read, closed by CEO
CEO ruling; open until enacted
Filed by the CEO
Filed by the CFO
Filed by the CIO
Filed by the CISO
Filed by the CMO
Filed by the COO
Filed by the CTO
kind
behavior-bug
Wrong product behavior; the instrument reads it correctly
kind
measurement-bug
Corrupts the recording/instrument (debug data, evals, health checks), not behavior
priority
p0
Drop everything: prod broken, live exposure, or owner-ruled P0
priority
p1
Next up: blocks a gate, a customer, or core incident quality
priority
p2
Normal: real defect or planned work, schedule in turn
priority
p3
Low: minor, cosmetic, or someday
status
blocked
Waiting on an external party, spend, or another issue
status
in-progress
Branch or PR open against it
status
needs-decision
Waiting on an owner or board ruling before work
status
needs-info
Root cause or repro unknown; needs a reading first
type
bug
Something built is wrong: code, data, or a measurement
type
chore
Maintenance, refactor, tests, pinning, cleanup: no user-visible change
type
decision
A ruling to make or record: board minutes, owner calls, legal reviews
type
docs
Docs, runbooks, CLAUDE.md, skills, SOPs
type
feature
New capability or an extension of an existing one
type
security
Security, privacy, credential or tenant-isolation exposure
type
tracking
Tracker, checklist, initiative or punch-list spanning several changes
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: logan/server-26#65
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Decision 3, board minutes #62 (2026-08-24). Owner: CTO. Due 2026-08-31. From CTO draft #60 finding 3.
Server/.gitea/workflows/deploy.yml:120runsdocker compose ... up -dbefore the health check. If/healthreturns the rightgit_shabut the new code has a live logic bug - exactly the class of bug the correlator instrumentation exists to catch - nothing reverts.notify-failure(lines 152-181) only posts to Discord, and its own message text, that production is still running the previous build, is false in this scenario; it is true only if the pull or restart itself failed.This is the precise failure mode an autonomously-pushing agent introduces: a commit that passes tests, returns 200, and silently corrupts incidents on live public-safety traffic for 12+ hours before a human looks.
Work
up -d, health-check with retries, and on failure bring the previous tags back up automatically.notify-failuretext so it states what actually happened.In force until this lands (#62 Decision 3)
The unattended runner may push to
mainautonomously in general, but may not push, unattended, any change touchingincident_correlator.py,llm_correlator.py,intelligence.py, orrouters/upload.py. That work is staged on a branch and reported instead.Interim mechanism, authorised by #62: after any pipeline-touching deploy the runner tails
c2-corelogs for about 10 minutes and doesgit revertplus push on a clear exception spike, rather than only reporting to Telegram.Refs #62, #60, #57.
Fixed in commit
5fc4e2c57bon main.deploy.yml now captures the previously-verified tag from /opt/drb/.last_good_tag before switching (written only after a prior health check confirmed its SHA live), health-checks the new deploy with the existing bounded 20x5s retry, and on any failure (pull, restart, or SHA mismatch) runs a new Rollback step that redeploys the previous tag and re-verifies via the same git_sha check rather than trusting mere liveness. The job still fails loudly either way. notify-failure now reports what actually happened (rollback succeeded/failed/skipped and to which SHA) instead of the old unconditional "still running the previous build" claim, which was false whenever a bad build passed the SHA check but had a live logic bug.
Verified: c2-core pytest 250 passed, edge-node pytest 185 passed, edge-node flake8 clean, frontend tsc clean, YAML parses. Pushed to main, watched Gitea Actions run 561 (Build/Deploy/notify-failure all completed success/success/skipped), and confirmed prod /health now reports git_sha
5fc4e2c57b-- the deploy actually landed, not just green CI.This unblocks #62 decision 9 (autonomous pushes to incident_correlator.py, llm_correlator.py, intelligence.py, routers/upload.py were frozen pending this).