Skip to content

The record shows as a dot on the mark, and the Record switches have an API - #1

Merged
jonastemplestein merged 1 commit into
mainfrom
record-dot-and-api
Nov 21, 2026
Merged

jonastemplestein merged 1 commit into
mainfrom
record-dot-and-api

Conversation

@jonastemplestein

Copy link
Copy Markdown
Contributor

What

  • A record dot on the menu-bar mark. A small red dot at the mark's lower right: filled while the Mac records, a ring while the record is paused (locked, displays asleep), none while it is off. Recording no longer turns the mark orange, so orange again means only "the microphone or a camera is on", and a camera turned on during an all-day record still shows. The tooltip and the accessibility label say "recording 4 tracks" or "recording paused: locked".
  • The Record switches through the endpoint, on the local socket and through the lend:
    • record.state() answers the switches, whether it records or is paused, the state line, the tracks, the waiting slots and the mind and device. Reading it is no use of the Mac's powers.
    • record.set({ screens?, cameras?, mics?, speakers?, windowText? }) answers the new state. Turning a source off is always allowed. Turning a source on is a use of that power under its existing switch, as a snapshot or a listen is: Off refuses, Ask asks the person, Shared does it, and it shows in Activity. Screens and Speakers go by the screen's switch, Camera by the camera's, Microphone by the microphone's, Window text by the accessibility switch.
    • state() includes record: { recording, paused, line }.

Why

Jonas, 21 Nov 2026: "the mac app should show in menu bar when it's recording also". And the iterate mind's rule that every operation has an API for the member's own agent: the Record switches were in the panel only.

Proof

  • swift build, swift test (74 tests, 8 new: the mark's states and the rule for turning a source on), node --check on the bridge's scripts.
  • The marks rendered with --render-icons on a light and a dark bar, for every ink with and without each dot, and looked at.

Not proven yet (needs the installed app): where the dot sits on the real button, and record.set under Off, Ask and Shared.

Risk map

  1. AppModel.use now decides through the pure rule UseGate.decide (Sources/VoiceMeetCore/RecordRule.swift). It must answer exactly as before for every existing method: Off refuses, a missing macOS permission refuses, Ask without an approval asks. The tests cover the rule; the wiring is read, not tested.
  2. record.set lets a mind turn a recording on. It can do so only where the owner's switch for that power allows a use, and each time shows in Activity.
  3. The dot is a small view on the status button, placed from the button's centre.

Session: claude b0eec5e0-9c0a-43e6-bf1b-01b7e83c523c on jonas-macbook-pro

🤖 Generated with Claude Code

…n API

A red dot at the mark's lower right: filled while the Mac records, a ring while the record is
paused, none while it is off. Recording no longer turns the mark orange, so a camera turned on
during an all-day record still shows.

`record.state()` and `record.set({…})` on the local socket and through the lend. Turning a
source off is always allowed; turning one on is a use of that power under its existing switch
(Off refuses, Ask asks, Shared does it) and shows in Activity. `AppModel.use` now decides
through the pure rule `UseGate.decide`, which has tests.

Session: claude b0eec5e0-9c0a-43e6-bf1b-01b7e83c523c on jonas-macbook-pro
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@jonastemplestein
jonastemplestein merged commit 4262ee2 into main Nov 21, 2026
1 check 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.

1 participant