Skip to content

Fix Home 2.1 sensor shutdown before signal replay - #52

Merged
chrissyrocket merged 3 commits into
mainfrom
feature/ai-setup-2.1
Oct 2, 2026
Merged

chrissyrocket merged 3 commits into
mainfrom
feature/ai-setup-2.1

Conversation

@mattmacrocket

Copy link
Copy Markdown
Collaborator

Change

Complete sensor runtime cleanup inside Uvicorn's signal-capture scope, before
SIGTERM/SIGINT replay can skip or interrupt teardown. Retain the outer startup
cleanup fallback and idempotent resource teardown.

Real subprocess tests failed for both signals before the fix and pass afterward.
Additional tests cover startup failure, cancellation, cleanup errors, exception
precedence, and one-time cleanup. One existing test now explicitly narrows its
nullable diagnostic reason, resolving its type-check error without runtime changes.

No attacker-visible decoy behavior, PF rules, UID guards, credentials, or network
filter configuration changed. Development instructions, release notes, and the
September 29 verification record are updated.

Verification

  • Sensor: 2,356 passed, one skipped; Ruff passed.
  • Pyright: zero errors for source and tests; existing warnings remain.
  • Native app: 400 passed; helper: 121 passed; guest runtime: 23 passed.
  • ARM64 local-test installer rebuilt with Swift 6.4/macOS 27 SDK.
  • Both signal regressions passed against its extracted isolated Python/sensor.
  • Extracted sensor source matches the checkout; guest bundle verification and
    deep/strict ad-hoc code-signature verification passed.

Local package SHA-256:
541fc783c41fd2f9a6baba1fe8edae93078a0a24089b8e6d4ede77ba051b7fb1

Release boundary

This is not release approval. The mini's earlier SSH/SMB/HTTP acceptance run
still failed despite successful TCP handshakes, and the shared flow stall has
not been attributed to a particular filter or component. The shutdown fix is
separate from that failure. Cleanup is complete and the app remains closed.

The package is unsigned/unnotarized and was not installed. Live protocol tests,
the separately scoped A5 matrix, independent review, green exact-commit CI and
the protected signing/publication workflow remain required. No release tag or
workflow has been dispatched.

Pin guest-local hostname and resolver files, verify their archive contents, and preserve bounded internal relay diagnostics. Give launchd and package lifecycle checks sufficient time for ordered sensor cleanup.

Record Apple Silicon support, the completed Mini protocol and alert acceptance, reproducible regression fixtures, and the remaining publication gates. Stabilize the closed-peer helper test and keep private evidence outside Git.
@chrissyrocket
chrissyrocket merged commit d3ec67f into main Oct 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants