[codex] add zeroclaw preflight loop for RTC hardware #19
Reference in New Issue
Block a user
Delete Branch "codex/rtc-zeroclaw-orchestration-issue-18"
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?
Context
RTC issue #18 asks for a stable ZeroClaw-assisted hardware loop with clear preflight checks before any upload/flash action.
Current risk was operational: hardware commands could run without explicit USB verification, and local ZeroClaw runtime artifacts were polluting git status.
Root Cause
The repository had no dedicated ZeroClaw preflight script and no focused operator guide for RTC-side orchestration.
Changes
scripts/zeroclaw_hw_preflight.pyzeroclaw hardware discoverSLAB,usbserial,usbmodem)--require-port)docs/zeroclaw_orchestration.mdopenai-codex/openrouter)README.mdwith a dedicated ZeroClaw orchestration section..gitignoreto ignore local ZeroClaw runtime files:/.zeroclaw/,/config.toml,/workspace/Validation
python3 -m py_compile scripts/zeroclaw_hw_preflight.pypython3 scripts/zeroclaw_hw_preflight.py --helppython3 scripts/zeroclaw_hw_preflight.py --zeroclaw-bin /Users/cils/Documents/Lelectron_rare/Kill_LIFE/zeroclaw/target/release/zeroclawUser impact
Operators now have a deterministic preflight gate before hardware actions, reducing wrong-port and no-device mistakes during RTC runs.
Closes #18.
Codex review summary:
python3 -m py_compile,--help, real USB discover/introspect).💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit:
3016ffb504ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@@ -0,0 +39,4 @@def run_command(cmd: list[str]) -> int:print(f"$ {' '.join(cmd)}")proc = subprocess.run(cmd, check=False)If
--zeroclaw-binpoints to an existing file that is not executable (for example/etc/hostsor a stale build artifact),subprocess.runraisesPermissionErrorhere and the script exits with a traceback instead of returning a controlled preflight failure code. This breaks the intended "deterministic gate" behavior for automation because callers cannot rely on the documented exit-code flow when the binary path is invalid-but-existing.Useful? React with 👍 / 👎.