Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions docs/log.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,29 @@ Append-only. Newest entries at the bottom.
A trap: a new target or scheme in `project.yml` is as stale-making as a new Swift file,
because the committed project holds `xcshareddata/xcschemes/`
- workbench-shell: unchanged. Its hover-at-opacity-0 trap is linked, not copied
## [2026-11-21] sync after 0.6.0: citations, the held tab, CI's seventh job

Run after the v0.6.0 release. Code had moved under eight pages since each was last checked
(#102, #103, #104, #107, #109).

- Citations: about 65 `file:line` references pointed at the wrong line and were re-pointed, most of
them in `Sources/App/Workbench.swift`, which had gained about 60 lines. Checked by reading
the line each one names against the symbol the sentence is about
- workbench-shell: the Seal trap named `sealHeldFrontTab`, which #107 removed. Rewritten, and
a trap added for what replaced it: the held picture is an animation anchor only, and the
address row, the lock and the selection follow `benchTab` (manifest v2.1.1)
- accessibility: the held-tab trap says the same in a sentence and links there
- building-without-a-mac: CI runs seven things, not six. A trap: `ui-tests` has no
`needs:`/`if:` pair, so a docs-only pull request still takes an `xcode-27` runner for it
- zest-sound: two traps were wrong. The suites allow no outside host now (fonts and
libraries are vendored), and the kit does ship in the Mac app since ADR 0033
- zest-window: the two menu routes the accessibility pass added stand down with the rest.
Its `verified_at` named a commit that isn't in the repository; it names one that is now
- releasing-a-preview: where the run says Pro is unlocked, and a trap from this release:
notes and a changelog date written three days early were wrong by the day of the tag
- privacy-and-sandbox: the fixture's Debug-only `UserDefaults` suite, noted as not shipped
- rearranging: citations only
- Not done: no new pages. The commit hook asks for one covering
`Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift`; [[accessibility]]
already describes that test in its fixture trap, so it is added there as a source

35 changes: 21 additions & 14 deletions docs/operations/building-without-a-mac.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Building without a Mac — CI is the compiler
type: operation
created: 2026-11-13
updated: 2026-11-18
updated: 2026-11-21
sources:
- code: .github/workflows/ci.yml
- code: .github/workflows/codeql.yml
Expand All @@ -16,7 +16,7 @@ sources:
- code: design/NetRelish.json
- code: Resources/PrivacyInfo.xcprivacy
- code: Sources/ShareExtension/PrivacyInfo.xcprivacy
verified_at: def9940
verified_at: 0d45775
---

# Building without a Mac
Expand All @@ -35,22 +35,22 @@ CI is the compiler and the test runner. This page is the routine, and what goes
| If a Swift file was added, removed or moved: regenerate the Xcode project | `.github/workflows/regen-project.yml`, started by hand with the branch name (`.github/workflows/regen-project.yml:19`) |
| Read the result of each job and fix | `.github/workflows/ci.yml` |

`.github/workflows/ci.yml` runs six things. Three are free: "What changed"
(`.github/workflows/ci.yml:47`), "Generated files match their sources"
(`.github/workflows/ci.yml:152`) and the CodeQL gate self-test
(`.github/workflows/ci.yml:334`). The two builds (`.github/workflows/ci.yml:194`), the tests
(`.github/workflows/ci.yml:260`) and the PantryKit package
(`.github/workflows/ci.yml:296`) run on `xcode-27`, the only image with the macOS 27 SDK,
and can sit in the queue for a long time.
`.github/workflows/ci.yml` runs seven things. Three are free: "What changed"
(`.github/workflows/ci.yml:48`), "Generated files match their sources"
(`.github/workflows/ci.yml:153`) and the CodeQL gate self-test
(`.github/workflows/ci.yml:390`). The two builds (`.github/workflows/ci.yml:195`), the tests
(`.github/workflows/ci.yml:261`), the UI tests (`.github/workflows/ci.yml:297`) and the
PantryKit package (`.github/workflows/ci.yml:352`) run on `xcode-27`, the only image with
the macOS 27 SDK, and can sit in the queue for a long time.

**Those four paid `xcode-27` jobs now run only when the commit can change what they
compile** (ADR 0037). "What changed" diffs against the base and sets one output the four
**The builds, the tests and the PantryKit package run only when the commit can change what
they compile** (ADR 0037). "What changed" diffs against the base and sets one output they
depend on, through the `needs:`/`if:` pair on each of them
(`.github/workflows/ci.yml:200`); a commit touching nothing but `docs/`, `zest/`,
(`.github/workflows/ci.yml:201`, `:210`); a commit touching nothing but `docs/`, `zest/`,
`.claude/`, a root `*.md` or the other workflows skips them, and the three free jobs still
run. CodeQL skips the same kind of commit through its own `paths-ignore`
(`.github/workflows/codeql.yml:241`), analyzes one flavour on a pull request and both on
`main` and in the weekly scan, and CI (`.github/workflows/ci.yml:31`), CodeQL
`main` and in the weekly scan, and CI (`.github/workflows/ci.yml:32`), CodeQL
(`.github/workflows/codeql.yml:273`), the Zest suites
(`.github/workflows/zest-tests.yml:24`) and the disk-image preview
(`.github/workflows/dmg-preview.yml:36`) each cancel a superseded pull-request run.
Expand All @@ -76,6 +76,13 @@ suites do run in the session.
> accepts. The CodeQL workflow does use `paths-ignore`, so **the day `Analyze (swift)` is made a
> required check, that filter has to become a job-level gate too** (ADR 0037).

> ⚠️ **`ui-tests` is not behind the gate.** It has no `needs:`/`if:` pair
> (`.github/workflows/ci.yml:297`), so it takes an `xcode-27` runner on every pull request,
> a docs-only one included: it ran on the release-notes pull request for 0.6.0 while the
> builds and the tests were skipped. The gate was written on one branch and the job on
> another, and ADR 0037 says the job takes the same pair when it lands. It hasn't yet.
> Giving it the pair is a change to CI, and Ryan's to approve.

> ⚠️ **"What changed" must fail open.** Every path through its filter either names the files
> it found or sets `code=true`: no usable base, a diff that will not run, a bad regex. Being
> wrong there costs minutes; being wrong the other way skips the compiler on a commit that
Expand Down Expand Up @@ -110,7 +117,7 @@ suites do run in the session.
> not tell you.

> ⚠️ **Only the app's privacy manifest goes in `Resources/`.** Everything in `Resources/` is
> copied flat into the app's Contents/Resources (`project.yml:84`), so a second
> copied flat into the app's Contents/Resources (`project.yml:85`), so a second
> `PrivacyInfo.xcprivacy` anywhere in the app's folders fails the build with "Multiple
> commands produce". XcodeGen treats a `.xcprivacy` it doesn't know as a resource of the
> target whose folder holds it: the Share extension's sits in `Sources/ShareExtension`, the
Expand Down
16 changes: 13 additions & 3 deletions docs/operations/releasing-a-preview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
title: Releasing a preview — the Direct build as a disk image
type: operation
created: 2026-11-13
updated: 2026-11-18
updated: 2026-11-21
sources:
- code: .github/workflows/release.yml
- code: scripts/release_notes.py
- code: Config/Base.xcconfig
- code: Sources/App/License.swift
- code: Sources/App/NetRelishApp.swift
- code: CHANGELOG.md
verified_at: 2c4c510
verified_at: 0d45775
---

# Releasing a preview
Expand Down Expand Up @@ -47,7 +47,10 @@ launch (`Sources/App/License.swift:153`, `Sources/App/NetRelishApp.swift:43`):

The workflow's **Leave Pro unlocked** switch builds that one release with an empty address
(ADR 0031). It then reads the built app and fails the run if the app does not match the
switch.
switch. When they match it says so as a notice on the build job, "Pro is unlocked in this
build: it has no license address" (`.github/workflows/release.yml:217`). The notice is in
the job's annotations, which can be read without signing in, so a release can be checked
for it afterward.

> ⚠️ **`main` has the license address set.** A release started without the switch locks
> Pro for everyone who installs it. Until the Creem store issues keys (ADR 0027's last
Expand All @@ -73,6 +76,13 @@ switch.
> next section. The first changelog left #78 to #90 under Unreleased although `v0.5.0`
> already contained them, because the 0.5.0 notes named only its headline features.

> ⚠️ **Notes and a changelog date written early are wrong by the time of the tag.** The
> 0.6.0 notes and its changelog section were merged on 2026-11-18, three days and four
> commits before the release: they left out the accessibility pass and dated the release
> the 18th. A second pull request brought both up to `main` on the 21st. Write them last,
> or check both against `git log <previous tag>..main` and today's date on the day the
> run starts.

> ⚠️ **A job that fails in seconds with no runner and no log never ran.** It says nothing
> about the commit. Every workflow failed that way on 2026-11-18, on every runner image at
> once, while `main` had passed on the same commit that morning. GitHub's reason is in the
Expand Down
14 changes: 9 additions & 5 deletions docs/reference/privacy-and-sandbox.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Privacy and sandbox — what each bundle declares
type: reference
created: 2026-11-13
updated: 2026-11-18
updated: 2026-11-21
sources:
- code: Resources/PrivacyInfo.xcprivacy
- code: Sources/ShareExtension/PrivacyInfo.xcprivacy
Expand All @@ -14,7 +14,7 @@ sources:
- code: Sources/App/Workbench.swift
- code: scripts/tests/test_privacy_manifests.py
- code: .github/workflows/ci.yml
verified_at: 38edcae
verified_at: 0d45775
---

# Privacy and sandbox
Expand All @@ -27,7 +27,7 @@ How the files get into the bundles is [[building-without-a-mac]].

| Bundle | Manifest | UserDefaults reasons | Why |
|---|---|---|---|
| NetRelish.app | `Resources/PrivacyInfo.xcprivacy` | `CA92.1`, `1C8F.1` | Tab icons (`Sources/App/Workbench.swift:962`), the Panel's open or closed (`Sources/App/Workbench.swift:1386`), the Brine pill's last-seen date, `brine.seenAt` (`Sources/App/Workbench.swift:1042`), the Direct build's revoked activations (`Sources/App/License.swift:102`); the App Group suite through Pantry |
| NetRelish.app | `Resources/PrivacyInfo.xcprivacy` | `CA92.1`, `1C8F.1` | Tab icons (`Sources/App/Workbench.swift:998`), the Panel's open or closed (`Sources/App/Workbench.swift:1445`), the Brine pill's last-seen date, `brine.seenAt` (`Sources/App/Workbench.swift:1096`), the Direct build's revoked activations (`Sources/App/License.swift:102`); the App Group suite through Pantry |
| NetRelishShare.appex | `Sources/ShareExtension/PrivacyInfo.xcprivacy` | `1C8F.1` | Leaves shared pages in the App Group suite (`Sources/Pantry/Store/ShareInbox.swift:33`) |
| Pantry.framework, PantryKit | `Sources/Pantry/PrivacyInfo.xcprivacy` | `1C8F.1` | ShareInbox, compiled into the framework; the package lists it as a resource (`Package.swift`) |

Expand All @@ -37,6 +37,10 @@ How the files get into the bundles is [[building-without-a-mac]].
> for that reason (`Sources/Bench/WindowChrome.swift:139`). A read of a system key needs a
> reason the manifest declares, or it doesn't ship.

One more `UserDefaults` use is in Debug builds only: the UI test's fixture empties and opens
a suite of its own (`Sources/App/UITestFixture.swift:87`). The whole file is inside
`#if DEBUG`, so no released build has it ([[accessibility]]).

All three: no tracking, no tracking domains, nothing collected. No other required-reason API
is used. `scripts/tests/test_privacy_manifests.py` sweeps each bundle's Swift for them.

Expand All @@ -56,7 +60,7 @@ is used. `scripts/tests/test_privacy_manifests.py` sweeps each bundle's Swift fo
|---|---|
| `app-sandbox` | Everything. The Pantry, saved copies and each jar's website data live in the container |
| `network.client` | Page loads, StoreKit, the timestamp authority, the Direct build's license relay |
| `files.user-selected.read-write` | Export Proof's save panel (`Sources/App/Workbench.swift:467`) |
| `files.user-selected.read-write` | Export Proof's save panel (`Sources/App/Workbench.swift:488`) |
| `print` | File › Print… for the Zest tool in front: Zest MD's Print and Save as PDF (ADR 0033) |
| `personal-information.addressbook` | Import from my card, once (ADR 0006); paired with `NSContactsUsageDescription` |
| `application-groups` | The Share extension's hand-off (ShareInbox) |
Expand All @@ -77,7 +81,7 @@ The Share extension has the sandbox and the App Group only. Both builds use the

| Request | 1.0 |
|---|---|
| Camera, microphone | Refused in the app before macOS is asked (`Sources/Bench/WebView.swift:205`) |
| Camera, microphone | Refused in the app before macOS is asked (`Sources/Bench/WebView.swift:211`) |
| Location | Refused: no entitlement |
| Passkeys, security keys | Fail until Apple grants the browser passkey entitlement (ADR 0032, open item 1) |
| Local network devices | macOS asks, with the line above |
Expand Down
21 changes: 12 additions & 9 deletions docs/subsystems/accessibility.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ sources:
- code: Sources/Shelf/ShelfView.swift
- code: Sources/App/UITestFixture.swift
- code: Tests/NetRelishUITests/CaptureJarSealUITests.swift
verified_at: def9940
- code: Tests/NetRelishTests/Accessibility/UITestFixtureAccessibilityTests.swift
verified_at: 0d45775
---

# Accessibility
Expand All @@ -32,21 +33,21 @@ forced, are in ADR 0036. This page is how it is put together. The window it sits

| Piece | Where | What it does |
|---|---|---|
| `NRAnnounce.post(_:priority:)` | `Sources/UI/Accessibility.swift:13` | Speaks a result nothing on screen announces. Posts `.announcementRequested` against the key window, so it is silent when no window is up. |
| `NRAnnounce.post(_:priority:)` | `Sources/UI/Accessibility.swift:15` | Speaks a result nothing on screen announces. Posts `.announcementRequested` against the key window, so it is silent when no window is up. |
| `nrSystemAccessibility()` | `Sources/UI/Accessibility.swift:40` | Hands SwiftUI's live `accessibilityReduceMotion` to the design system's `\.nrReduceMotion`. Applied once per window root (`Sources/App/NetRelishApp.swift:93`, `:215`, `:222`). |
| `nrFocusRing(cornerRadius:inset:)` | `Sources/UI/Components.swift:114` | The one `--nr-focus` ring (manifest §4, placement 7), with its own `@FocusState` and `focusEffectDisabled()`. `NRFocusRing` (`:82`) is the same ring where the caller already tracks focus. |

## What gets spoken, and by whom

Spoken lines are user-facing copy and live as named statics beside the code that fires
them, so a test pins each one: `Workbench.capturedLine` (`Sources/App/Workbench.swift:1611`),
them, so a test pins each one: `Workbench.capturedLine` (`Sources/App/Workbench.swift:1586`),
`sealedLine(jarName:)` (`:1210`), `sankLine(titles:)` (`:1074`),
`ShelfView.boardLine(jarName:)`, `JarTile.movedLine(jarName:)`,
`SmartJarRowView.restoreAnnouncement(jarName:)` (`Sources/Bench/BrineView.swift:207`),
`CommandSpeech` (`Sources/App/NetRelishApp.swift:324`).

> ⚠️ **A result is spoken once, by one owner.** The address row's status line speaks every
> `fillStatus` change itself (`Sources/Bench/ShellRows.swift:157`), so nothing may also
> `fillStatus` change itself (`Sources/Bench/ShellRows.swift:156`), so nothing may also
> announce what `Workbench.report(_:)` already showed. A second announcement is not a
> duplicate word on screen — VoiceOver says the whole sentence twice.

Expand Down Expand Up @@ -74,7 +75,9 @@ hint says what pressing it does.
> ⚠️ **The held sealed tab is hidden from VoiceOver.** During Seal's phase B the strip draws
> a copy of the sealed tab (`Workbench.sealHeldTab`). It is `accessibilityHidden(true)` as
> well as hit-test-free, or VoiceOver finds two tabs with one title and offers actions on a
> tab that is already gone.
> tab that is already gone. The copy is a picture and nothing else: since the v2.1.1
> security correction the address row, its spoken connection hint and the selected tab all
> follow the page in front, never the copy ([[workbench-shell]]).

> ⚠️ **The address field's real `TextField` must stay in the tree and keep the click.** The
> styled host and path are an overlay that takes no hits. At opacity 0 VoiceOver loses
Expand All @@ -99,20 +102,20 @@ at both ends rather than wrapping. The tab strip has the same shape with
`focusSection()` so focus arrives as a whole.

New keys and menu items are the table in ADR 0036. ⌘L goes through
`Workbench.focusAddress()` (`Sources/App/Workbench.swift:1583`), a counter the address row
watches (`Sources/Bench/ShellRows.swift:161`), because the field is in another view.
`Workbench.focusAddress()` (`Sources/App/Workbench.swift:1558`), a counter the address row
watches (`Sources/Bench/ShellRows.swift:160`), because the field is in another view.

> ⚠️ **Every menu route into a jar must play the jar fill.** Tab › Move Tab to Jar
> (`Sources/App/NetRelishApp.swift:186`), the tab's own Move to Jar
> (`Sources/Bench/TabStrip.swift:270`) and Brine's Restore all take the drop's path so
> (`Sources/Bench/TabStrip.swift:269`) and Brine's Restore all take the drop's path so
> `fillJar(_:)` runs exactly once. A plain `moveTab` is silent and leaves the jar unfilled.
> The same trap, from the drag side, is in [[rearranging]].

## The Mac's settings

Reduce Motion, Reduce Transparency, Increase Contrast and Differentiate Without Color each
change something; the table is in ADR 0036. The alternates are picked per surface —
`ShellInk` (`Sources/Bench/ShellRows.swift:618`) is the shared pair for hairlines and edges
`ShellInk` (`Sources/Bench/ShellRows.swift:609`) is the shared pair for hairlines and edges
— because `tokens.css` carries no contrast set yet.

> ⚠️ **Read the settings from SwiftUI's environment, not once at launch.**
Expand Down
Loading
Loading