deploy-gate: move deployed MES alarm scripts from ScriptAlarm.Severity to ScriptAlarm.Priority before deploying #129 #131
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up from #129 (
dd4f1c2a). Since #129,ScriptAlarm.Severityis banded and runs higher = more urgent: MxAccess and computed rows read only 250/500/750/1000. The raw value, i.e. the pre-#129Severity, is now onScriptAlarm.Priority.Gate: before any deploy that includes
dd4f1c2a(DEV vd03, QA vq03/vq04), switch every deployed MES site script that readsa.Severityover toa.Priorityin the same deploy. Otherwise the native 900–999 MES band selects nothing, and the MESSeverity/MinSeverity/MaxSeverityvalues change.Known scripts:
CvdReactor.SimpleAlarmStatusandCvdReactor.AlarmStatus: the band predicate,IsFlaggedForMES, andSeverity = a.Severity. The pattern is indocs/plans/2026-06-30-mes-alarm-status-api.md§5.3, which is already updated.AlarmStatussite script: re-rundocker/seed-mes-test-machine.sh(updated indd4f1c2a), or replacea.Severitywitha.Priorityin its three places.Alarms.CurrentAsync/MesReportableAsyncconsumer that reads.Severity.Verify:
docker/verify-mes-test-machine.sh-style calls return the sameSeverityvalues and band selection as before the deploy.Deploy prep done, not applied (commit
a92a418donmain). Plan, original and fixed bodies, andapply.sh check|apply|rollback 131:docs/deployment/deploy-prep/2026-11-12-gates-52-131/.Inventory. From a read-only export on 2026-11-12. I searched every template script and inbound method for
.Severityon a ScriptAlarm and forAlarms.*calls.instance diffshows no stale instance, so the deployed scripts are these template bodies.TestMesMachine.AlarmStatus(template 30, script 42; SBTEST01/02) readsa.Severityin exactly the 3 known places. Its body is byte-identical to the pre-dd4f1c2aseed-mes-test-machine.sh.AlarmStatusorSimpleAlarmStatusscript. The §5.3 pattern was never deployed.CvdReactor.AlarmStatus(script 39) is a stub returningAlarms = [].SimpleAlarmStatusRequestandAlarmStatusRequestmethods only pass MinSeverity and MaxSeverity through as arguments, so neither env needs a change there.Correction to the premise. The old body does not stop compiling on
main:ScriptAlarm.Severitystill exists. It keeps running and returns banded values with inverted filters. The direction that fails to compile is the reverse: the fixed body usesa.Priority, and the deployed DEV build424db155doesn't have it. On the rig, a body with an unknown ScriptAlarm member saves fine, and its deploy is refused withPre-deployment validation failed: … ScriptCompilation.Order. DEV only. Deploy the
dd4f1c2a+ binary to central and site, then runapply.sh apply 131in the same window.rollback 131 --no-deployto put the template back.Rig evidence. Main binary; the rig's TestMesMachine AlarmStatus started byte-identical to DEV script 42. I tripped HighVacuumFault (priority 800), DoorOpenAlarm (300) and SensorFault (700) with
flow-debug run-script.verify-mes-test-machine.sh(C3, C7, C9).apply.shrefused with an unknown live body.rollbackthenapplyreturned the same revision hashes.Verify on DEV after applying:
docker/verify-mes-test-machine.sh, groups C and D. Not closing: applying this is a deploy.Applied and verified on DEV vd03, 2026-11-13, in the same window as the
8e32f353binary (which containsdd4f1c2a).verify-mes-test-machine.shgroups C+D gave PASS 13/13. C13 was skipped because SAPID 103559 routes to Z28061.apply.sh apply 131:TestMesMachine.AlarmStatus(template 30, script 42) went from ORIGINAL to FIXED (a.Severity→a.Priority, 3 places).Severity == 800, C7 (MinSeverity 500) and C9 (MaxSeverity 750) select the same alarms as on the pre-#129 binary. Alarm sources were reset (D1).Record:
docs/deployment/deployment-records/2026-11-13-wonder-app-vd03-8e32f353.md(581e25ca). Closing.https://claude.ai/code/session_01GT67ACmpMR7b9LGRPLijMi
QA vq03/vq04 is on
8e32f353(2026-11-13, record8ba5d5d7). No #131 step was needed there, as found in the pack (re-checked 07:05): QA has noTestMesMachine,CvdReactor.AlarmStatusis a stub that doesn't read.Severity, and no API method reads alarms.