Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Merge pull request #2383 from atomantic/claim/issue-2371

[._.]/ Adam Eivy08b9087a0689
diff --cc .changelog/NEXT.md
index 65840accd7,e48b0b9178..97620dc070
--- a/.changelog/NEXT.md
+++ b/.changelog/NEXT.md
@@@ -1,9 -1,9 +1,11 @@@
# Unreleased
- ## Accessibility
+ ## Security
+
+ - **[issue-2371] The autonomous Autofixer now repairs crashed apps in an isolated sandbox behind an explicit promotion gate — untrusted crash logs can no longer drive a credentialed agent against your live checkout.** The autofixer built a file-editing CLI prompt straight from raw PM2 stderr/stdout and ran it every 15 minutes in the managed repo with the full host environment inherited, so a payload reflected into a crashing process's log could become instructions to an agent with shell + file access and every ambient credential. It now: cuts a disposable, detached git worktree at HEAD and runs the agent there (a hard rollback boundary — no git checkout means no autonomous repair at all); hands the agent an allowlisted environment stripped of unrelated secrets (DB passwords, cloud keys, GitHub tokens, filesystem-backed service-account creds — only the direct AI-provider API-key vars the CLI reads survive); fences the logs as clearly-labelled UNTRUSTED evidence with a per-session, forge-resistant delimiter and "data, not instructions" framing; for the default Claude provider denies the shell/network toolset so the agent can only read/edit files; validates the resulting diff (size cap, rejects absolute/traversal paths and edits to `.env`/`.git`/`.github`/secrets, and blocks any diff that writes a credential — matched by pattern or by a live env secret value — into the repo, closing the read-then-promote exfil path); optionally runs a user-configured `verifyCommand` in the worktree; and only promotes the change to the live checkout + restarts the process when the user has explicitly enabled `settings.autofixer.autoPromote` (default **off** — otherwise the validated patch is staged beside the session for manual review), rolling the patch back if the post-apply restart fails. Adversarial tests cover fenced prompt-injection payloads and credential-access attempts. (Non-Claude CLI providers retain their own provider key in-env with network access, since PortOS can't portably constrain their toolset — the worktree + promotion gate + diff secret-scan still contain file changes; hardening that residual — e.g. hard-gating to constrainable providers or a network namespace — is a documented known limitation.)
+- **[issue-2376] The CoS Schedule "Global Pause" help is now reachable by keyboard and touch.** Its explanation used to live in a CSS-only `group-hover` popover on a non-focusable info icon, so keyboard and touch users could never read what pausing does before toggling it. It now uses a new reusable, accessible `InfoTooltip` (`client/src/components/ui/InfoTooltip.jsx`): a focusable `<button>` trigger that reveals the help on hover, keyboard focus, OR click/tap, dismisses on Escape or outside click, and links the panel to the trigger via `role="tooltip"` + `aria-describedby` (the ARIA tooltip pattern). The compact inline layout and existing pause toggle are unchanged.
+
- **The reference-audio waveform is now keyboard-operable and two hand-rolled modals gained real dialog semantics.** The Songs "reference analysis" waveform scrubber was a mouse-only `<div onClick>` (`role="presentation"`) — keyboard and screen-reader users could not seek at all. It is now a proper `role="slider"` with `aria-valuemin/max/now/valuetext`, focusable, and scrubbable with the arrow keys (±1s, ±5s with Shift) plus Home/End (WCAG 2.1.1). Separately, the CyberCity photo-mode "postcard preview" overlay and the Catalog "pick from media gallery" picker were hand-rolled `fixed inset-0` backdrops with no `role="dialog"`, no `aria-modal`, no Escape-to-close, and no focus trap; both now render through the shared `Modal` (focus trap + Esc stack + labelled dialog), with the postcard preview portaled so it escapes the WebGL HUD's stacking/pointer-events context.
- **Modals and drawers now trap and restore keyboard focus, and toasts are announced to screen readers.** Opening any shared `Modal` or `Drawer` (which back the great majority of the app's dialogs, config drawers, and lightboxes) now moves focus into the dialog, keeps Tab/Shift+Tab cycling inside it instead of leaking to the page behind, and returns focus to the control that opened it on close (WCAG 2.4.3 / 2.1.2) — implemented once in a reusable `useFocusTrap` hook. The toast stack is now a labelled ARIA notification region: default toasts announce politely (`role="status"`) and error toasts assertively (`role="alert"`), with the decorative status glyphs hidden from assistive tech, so screen-reader users hear notifications (including error toasts) as they arrive.