Repository navigation
Bench: guard reconnect and interlock; prompts on screen and spoken; Child Lock during sittings - #30
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hild Lock during sittings Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Bench tools only; nothing under
firmware/changes. Predictions:tools/regression-gate/predictions/2026-11-bench-guard-prompts.md(registered before the code). Lands before the TP-1 sitting and session 1a.What
open_guard.py): when its connection drops (a flash, a power cut, a reboot) the guard records it, alerts Daniel, keeps trying, checks the MAC again and resumes watching.bench_common.py): the guard writes a heartbeat about twice a second. No bench script sends a move (Open, Close, Set position, Auto-Calibrate, the bench presses that start motion) unless the heartbeat is under 2 s old and says connected and watching; if it goes stale mid-move, the script sends STOP itself.tp1_run.pyuses it now;pc_run.py(Firmware 2.3.0: the limit switches decide the ends; position after a power cut #27) will when Firmware 2.3.0: the limit switches decide the ends; position after a power cut #27 merges.bench_prompt.py): prompts that ask him to act, and the guard's alerts, open in a window that stays on top of his screen and are spoken by Windows' built-in voice; the countdown helper speaks "three, two, one" and the call.bench_session.py start/end): records the sitting (carriage, window) and Child Lock's setting, turns Child Lock on, and restores it at the end.tp1_run.pyturns it off just before its Button 1 step and on right after. The guard doesn't start if its carriage flag disagrees with the sitting.Checks
startturns Child Lock on and records the original; TP-1 turns it off just before the Button 1 step and on right after;endrestores it. Sabotage: anendthat doesn't restore is caught🤖 Generated with Claude Code