Repository navigation
Release v0.125.0: names the lights menu could not reach, a web terminal that needs a login, a pinned cordless tool - #151
Merged
Conversation
- Lights menu: "Unassigned" (lights with no area, key '') doubled as the cancel sentinel, so choosing it hung up. pick_area now returns a distinct CANCELLED object; tests drive main() end to end. - The standalone web terminal idles unless console_users has a valid entry (fails closed on any count that is not a positive integer). Under host_network its 127.0.0.1:8100 listener was reachable by every host process and host-network add-on with no login. - tools/wp826.mjs: every request runs on a connection whose certificate was checked against WP826_CERT_SHA256 first (no agent: `agent: false` would open its own unchecked socket); the password file is read only when logging in, so `fingerprint` works without one; WP826_PORT for tests. A local stand-in handset that swaps certificates after the first connection pins the fix. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ing, the tool's pin Lights menu: a room or light whose whole name is what the caller said is chosen before the cancel and list words are checked, so "Top Floor" (close to "stop"), "Exit Sign" and "All Lights" can be reached; the words alone still cancel or list. Every word counts there, filler included, so "all" alone stays the list request. A real area named "Unassigned" (any case) takes the lights with no area. The light and action steps return the cancel sentinel too, so cancel and two mishearings each get their own goodbye. Web terminal: the "Starting ... on" line moved below the login gate, the notice says "no valid entry" (it fires for unusable rows too), and the option help, README, security page, SECURITY.md and code comments no longer say an empty console_users means an open terminal. A test runs the run script's real count lines against the source tree's parser. tools/wp826.mjs: an invalid WP826_PORT is refused at start; pinned requests send Host without :443 again, as the unpinned ones do; a mismatch names the refused request instead of saying nothing was sent. Tests swap the certificate after login, for a read and for the ringtone upload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… users Lights: a no-area light named like one already in a real "Unassigned" area stays out of it, so the two no longer tie and the area's own light stays reachable (lights_match.same_name, the same comparison said_whole_name uses). The docs say what the menu does: a name that IS a command word wins, two same-named lights in a room cannot be told apart, and the two-miss limit is per step, not "in a row". Web terminal and SSH: parse_users counts a row only when both fields are text or a whole number, so null/false/[] no longer become the password "None" etc. A test runs the whole console-web run script in strict mode, so nothing between the count and the gate can start an unauthenticated terminal. The overlay note in configuration.md names its one exception (console_users), and SECURITY.md, webauth.py, consoleproto.py, switchboard-opt and the run script no longer describe the removed open mode. tools/wp826.mjs: the check connection is destroyed rather than half-closed, so a handset that never closes its side cannot keep the tool from exiting; the WP826_PORT comment states the rule, not a history no release had. Test names no longer claim more than they assert. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… names The end-to-end run-script test now counts, with the server's own parser, the users the server would inherit, and requires that count to equal the logged one: deleting or clearing the CONSOLE_WEB_USERS export used to log "login gate ACTIVE (1 user(s))" over a terminal serving with no login, with every test green. fold_unassigned keeps a no-area light out of a real "Unassigned" area when its words match a light already there once filler is set aside (lights_match.would_tie): "Porch Lights" beside "Porch Light" tied for every reply but the exact names, so "porch" no longer reached the area's own light. 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.
Fixes found by the documentation accuracy review, plus what two review rounds of those fixes turned up.
Lights menu (dial 43)
''doubled aspick_area's cancel answer, so saying "Unassigned" hung up. Each step now returns aCANCELLEDsentinel for a cancel andNonewhen the tries run out.match_intentran first, so "Top Floor" (fuzzytop~stop), "Exit Sign" and "All Lights" were taken as cancel or list. A newlights_match.said_whole_nameis checked first and compares every word, filler included (FILLERholds "lights"/"lamp", sonormalize()would make "All Lights" equal "all"). A lone "left" still lists beside "Left Hallway".lights_match.same_name), so nothing that was reachable becomes a tie.Standalone web terminal (
:8100)console_usersrow it idles with a NOTICE; underhost_networkits old no-login loopback bind was reachable by every program on the host and every host-network add-on. The Ingress console is unaffected.webauth.parse_users(shared with the SSH console) counts a row only when both fields are text or a whole number, sonull/false/[]no longer become the password"None"etc.translations/en.yaml), README,docs/reference/security.md, SECURITY.md,configuration.md(the overlay's one start/stop exception) and code comments no longer describe the removed open mode.tools/wp826.mjs(not in the image)send()now runs each request on a checked socket (delete opts.agentpluscreateConnection;agent: falsewould make a new agent that ignorescreateConnection), withdefaultPort = 443soHoststays<ip>as before.fingerprintworks without a password file;WP826_PORTis new and validated; a mismatch names the refused request; the check connection is destroyed, so a peer that never closes cannot hang the tool.js/disabling-certificate-validationalerts on the changedrejectUnauthorized: falselines in this file (same accepted risk as the four already dismissed; a self-signed handset certificate cannot chain).Tests
test_automation_agi.py(new, drivesmain()end to end),test_lights_match.py,test_run_gates.py(the run script's real count lines, and the whole script in strict mode),test_webauth.py,test_wp826_tool.py(new: a local HTTPS stand-in that swaps certificates per connection, including after login and before the upload, and one that never closes).test_console_ssh.pywith asyncssh 2.18 in a venv: 35 passed, same as main.console_web_bindcrash-loopsserver.py, which binds AF_INET only;wp826.mjs loginprints the first 10 characters of the session id).Deploy check (this install)
No change to
switchboard-config, soextensions.conf/pjsip.confmust hash the same after the restart. This install has a validconsole_usersrow, so the web terminal keeps running behind its sign-in.🤖 Generated with Claude Code