feat(experimental): Experimental Features window (Help → curated AUTOPTZ_* flags, persisted)#132
Open
TCVinNYC wants to merge 8 commits into
Open
feat(experimental): Experimental Features window (Help → curated AUTOPTZ_* flags, persisted)#132TCVinNYC wants to merge 8 commits into
TCVinNYC wants to merge 8 commits into
Conversation
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…viron at start Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…on apply) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The supervisor's experimental-env apply previously popped EVERY managed key when the experimental_features dict lacked it, which clobbered env vars set directly outside the experimental system (e.g. an operator export, or a test's monkeypatch.setenv of AUTOPTZ_PROCESS_PER_CAMERA). Now only keys present in the persisted dict are set/popped; un-persisted keys are left untouched, which is a stronger 'feature-inactive == unchanged behaviour' guarantee. Fixes a regression in test_process_worker.py::TestIdentityRelay introduced by the env-apply step. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <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.
Summary
Adds an Experimental Features dialog (Help menu) exposing the curated experimental
AUTOPTZ_*flags + the 4 experimentalTrackingConfigfields — each with a plain description, default, and "Restart required" badge — persisted viaConfigStoreand applied toos.environat engine start so they take effect on the next start.The dialog look/UX wants your eyes (the dev app isn't screenshottable). Open Help → Experimental Features… and confirm the rows/badges/combos read well. Not merged.
What's included
autoptz/engine/runtime/experimental_flags.py— single typed source of truth (EXPERIMENTAL_FLAGS+TRACKING_DEFAULT_FIELDS): unified_pose, async_appearance, ptz_pump, process_per_camera, reid_device, coreml_units (incl.CPUAndNeuralEngine), ndi_color_format, ptz_serial_autoprobe, + the 4 tracking fields.ExperimentalFeaturesDialog(ui/widgets/dialogs/experimental.py): checkbox/combo rows + badges; Apply persists + notes "some changes need a restart"; Restore defaults. Never mutatesos.environor restarts.os.environin_apply_hardware_envbefore spawning workers — and only manages keys you actually persisted (does not clobber an operator-exportedAUTOPTZ_*var).Notes
cyndilib/NDI etc. unaffected.Verification
Gates green locally (
.venv, offscreen): ruff, ruff format, mypy (engine/runtime + config — flag module fully typed),--selftest, and 1459 tests pass (run per-file on macOS — a pre-existing environmental offscreen-Qt teardown segfault prevents a single-process full run; it reproduces onmainand not on Linux CI; every file passes in isolation).Plan:
docs/superpowers/plans/2026-06-26-experimental-features-window.md🤖 Generated with Claude Code