Commit d2579a9790

d2579a979020bb43491a374b68d5f38c13e9c10a

parent: a80c294814

Unsigned ci/accessibility: success

cmc <hello@cleberg.net> · 2026-11-16 21:29 UTC

Convert plain-text docs to Markdown; refresh README (!15)

Two commits.

**Renames.** SCOPE, ROADMAP, SECURITY, `Docs/StoreKit`, `Docs/API_CACHE` and
`Hutch/API_REFERENCE` go from `.txt` to `.md`. All six already held Markdown.
Cross-references updated in ROADMAP, SCOPE, README and `project.pbxproj`, where
SECURITY sits in the app's Resources build phase.

**README.** The feature list was about a release behind. Adds multiple accounts,
the on-disk API cache, work queue, project discovery and writes, lookup profiles
with contribution graphs, man page browser, system status, repo and tracker
ACLs, deploy keys, build retry/cancel/resubmit, avatar management, inbox
read/unread, widgets, App Intents, the Safari extension and theming. Also notes
the iOS 17.6 minimum, points into `Docs/`, and describes what CI actually runs.

Two fixes: the clone URL pointed at GitHub, which is the push mirror — gitbay is
canonical, so "issues or patches on either" was wrong. And `xcodebuild test
-scheme Hutch` needs no `-testPlan`, since `HutchTests.xctestplan` is the
scheme's default.

Left as-is: README stays `.org`, and ROADMAP's reference to a
`.github/workflows/test.yml` that no longer exists is history, not current docs.

Layout: unified · split

Docs/API_CACHE.txt → Docs/API_CACHE.md renamed
Docs/StoreKit.txt → Docs/StoreKit.md renamed
Hutch.xcodeproj/project.pbxproj +4 −4
@@ -11,7 +11,7 @@
11 85EF08B88008A7861BC573CD /* AccessibilityUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36512CB22293FDA01F42B239 /* AccessibilityUITests.swift */; }; 11 85EF08B88008A7861BC573CD /* AccessibilityUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 36512CB22293FDA01F42B239 /* AccessibilityUITests.swift */; };
12 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89632F69DEB900FC0253 /* LICENSE */; }; 12 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89632F69DEB900FC0253 /* LICENSE */; };
13 8B2F89672F69DEB900FC0253 /* README.org in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89642F69DEB900FC0253 /* README.org */; }; 13 8B2F89672F69DEB900FC0253 /* README.org in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89642F69DEB900FC0253 /* README.org */; };
14 8B2F89682F69DEB900FC0253 /* SECURITY.txt in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89652F69DEB900FC0253 /* SECURITY.txt */; }; 14 8B2F89682F69DEB900FC0253 /* SECURITY.md in Resources */ = {isa = PBXBuildFile; fileRef = 8B2F89652F69DEB900FC0253 /* SECURITY.md */; };
15 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C82F7E211800E609E2 /* meta.json */; }; 15 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C82F7E211800E609E2 /* meta.json */; };
16 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C62F7E211800E609E2 /* hg.json */; }; 16 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C62F7E211800E609E2 /* hg.json */; };
17 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C42F7E211800E609E2 /* builds.json */; }; 17 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */ = {isa = PBXBuildFile; fileRef = 8B2FA9C42F7E211800E609E2 /* builds.json */; };
@@ -79,7 +79,7 @@
79 8B01C8012F955ACC00FCFB9A /* SyncedProducts.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = SyncedProducts.storekit; sourceTree = "<group>"; }; 79 8B01C8012F955ACC00FCFB9A /* SyncedProducts.storekit */ = {isa = PBXFileReference; lastKnownFileType = text; path = SyncedProducts.storekit; sourceTree = "<group>"; };
80 8B2F89632F69DEB900FC0253 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; }; 80 8B2F89632F69DEB900FC0253 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
81 8B2F89642F69DEB900FC0253 /* README.org */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.org; sourceTree = "<group>"; }; 81 8B2F89642F69DEB900FC0253 /* README.org */ = {isa = PBXFileReference; lastKnownFileType = text; path = README.org; sourceTree = "<group>"; };
82 8B2F89652F69DEB900FC0253 /* SECURITY.txt */ = {isa = PBXFileReference; lastKnownFileType = text; path = SECURITY.txt; sourceTree = "<group>"; }; 82 8B2F89652F69DEB900FC0253 /* SECURITY.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = SECURITY.md; sourceTree = "<group>"; };
83 8B2FA9C42F7E211800E609E2 /* builds.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = builds.json; sourceTree = "<group>"; }; 83 8B2FA9C42F7E211800E609E2 /* builds.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = builds.json; sourceTree = "<group>"; };
84 8B2FA9C52F7E211800E609E2 /* git.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = git.json; sourceTree = "<group>"; }; 84 8B2FA9C52F7E211800E609E2 /* git.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = git.json; sourceTree = "<group>"; };
85 8B2FA9C62F7E211800E609E2 /* hg.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = hg.json; sourceTree = "<group>"; }; 85 8B2FA9C62F7E211800E609E2 /* hg.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = hg.json; sourceTree = "<group>"; };
@@ -252,7 +252,7 @@
252 8B8182C22F6B742B000AE049 /* HutchTests */, 252 8B8182C22F6B742B000AE049 /* HutchTests */,
253 8B2F89632F69DEB900FC0253 /* LICENSE */, 253 8B2F89632F69DEB900FC0253 /* LICENSE */,
254 8B2F89642F69DEB900FC0253 /* README.org */, 254 8B2F89642F69DEB900FC0253 /* README.org */,
255 8B2F89652F69DEB900FC0253 /* SECURITY.txt */, 255 8B2F89652F69DEB900FC0253 /* SECURITY.md */,
256 8B4B28D32F6704280045FA19 /* Hutch */, 256 8B4B28D32F6704280045FA19 /* Hutch */,
257 8BE081F42F80000100000001 /* Shared */, 257 8BE081F42F80000100000001 /* Shared */,
258 8BE081F52F80000100000001 /* HutchWidgetExtension */, 258 8BE081F52F80000100000001 /* HutchWidgetExtension */,
@@ -462,7 +462,7 @@
462 files = ( 462 files = (
463 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */, 463 8B2F89662F69DEB900FC0253 /* LICENSE in Resources */,
464 8B2F89672F69DEB900FC0253 /* README.org in Resources */, 464 8B2F89672F69DEB900FC0253 /* README.org in Resources */,
465 8B2F89682F69DEB900FC0253 /* SECURITY.txt in Resources */, 465 8B2F89682F69DEB900FC0253 /* SECURITY.md in Resources */,
466 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */, 466 8B2FA9CD2F7E211800E609E2 /* meta.json in Resources */,
467 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */, 467 8B2FA9CE2F7E211800E609E2 /* hg.json in Resources */,
468 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */, 468 8B2FA9CF2F7E211800E609E2 /* builds.json in Resources */,
Hutch/API_REFERENCE.txt → Hutch/API_REFERENCE.md renamed
README.org +67 −25
@@ -3,62 +3,104 @@
3support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]]. 3support hutch with a tip in the app (more → about) or through [[https://github.com/sponsors/ccleberg][github sponsors]].
4 4
5* what 5* what
6ios client for sourcehut. native swiftui, iphone and ipad. uses 6ios client for sourcehut. native swiftui, iphone and ipad, built on
7sourcehut's graphql apis. stores your personal access token in the 7sourcehut's graphql apis.
8ios keychain. 8
9several accounts can be signed in at once. each keeps its own personal
10access token in the ios keychain and its own caches and preferences.
11read-only api responses are cached on disk per account, so most screens
12open without a round trip.
9 13
10* does 14* does
11- home dashboard: assigned tickets, recent builds, projects 15** repos
12- git and mercurial repo browsing 16- git and mercurial repo browsing
13- repo details: readme, refs, commits, diffs, files, artifacts, 17- repo details: readme, refs, commits, diffs, files, artifacts,
14 settings 18 settings, acls, deploy keys
15- artifact upload and deletion on release tags 19- artifact upload and deletion on release tags
20
21** tickets and builds
16- trackers and tickets: browse, create, edit, delete, subscribe 22- trackers and tickets: browse, create, edit, delete, subscribe
17- builds: browse, detail, submit 23- tracker management: settings, acls, labels
18- inbox and mailing list reading 24- builds: browse, detail, logs, submit, retry, cancel, resubmit
25
26** mail
27- inbox and mailing list reading, with read and unread state
19- patchset review: cover letters, per-patch diffs, checks, version 28- patchset review: cover letters, per-patch diffs, checks, version
20 chains, status changes 29 chains, status changes
21- mailing list create, settings, delete 30- mailing lists: create, subscribe, settings, delete
31
32** the rest
33- home dashboard and work queue: what is assigned, unread or failing,
34 plus pinned projects and repos
35- projects: public discovery, create, edit, link and unlink resources
36- lookup: any user's profile, repos, trackers, contribution graph
22- pastes: browse, create, detail 37- pastes: browse, create, detail
23- profile and account settings: ssh keys, pgp keys, token 38- man.sr.ht browser over a bundled catalog, synced weekly by ci
39- status.sr.ht summary
40- profile and account settings: ssh keys, pgp keys, avatar, token
24 management, audit log 41 management, audit log
25- email preferences for todo.sr.ht and lists.sr.ht 42- email preferences for todo.sr.ht and lists.sr.ht
26- deep links for repos, tickets, build jobs
27 43
28some sr.ht services are still browser-only and open in safari. 44** system integration
45- widgets: contribution graph, needs attention, system status
46- app intents for shortcuts and spotlight: work queue, recent
47 activity, failed builds, assigned tickets, system status, pinned
48 resources, search
49- =hutch://= deep links for repos, tickets, builds, lists, profiles,
50 projects, status and search
51- safari web extension that offers to open a supported sr.ht page in
52 the app
53- themes including amoled, compact density, optional swipe actions
54
55some sr.ht services are still browser-only and open in safari. see
56SCOPE.md for what is deliberately left out and why, and ROADMAP.md for
57what is planned.
29 58
30* requires 59* requires
31xcode with a current ios sdk, a simulator or device, a sourcehut 60xcode with a current ios sdk, a simulator or device on ios 17.6 or
32account, and a personal access token. 61later, a sourcehut account, and a personal access token.
33 62
34* build 63* build
35#+begin_src sh 64#+begin_src sh
36git clone https://github.com/krazywarez/hutch 65git clone https://gitbay.org/krz/hutch
37#+end_src 66#+end_src
38 67
39open in xcode, build and run. on first launch paste a token. create 68open =Hutch.xcodeproj= in xcode, build and run. on first launch paste a
40one at https://meta.sr.ht/oauth2/personal-token. 69token. create one at https://meta.sr.ht/oauth2/personal-token.
41 70
42the token is validated against meta.sr.ht before saving and stored 71the token is validated against meta.sr.ht before saving and stored in
43in the keychain. Reset App Data clears the token, caches, cookies, 72the keychain. Reset App Data clears the token, caches, cookies, and
44and local web data. 73local web data.
45 74
46* develop 75* develop
47xcode app with tests under HutchTests. run the test plan in 76tests live under =HutchTests=. =HutchTests.xctestplan= is the default
48HutchTests.xctestplan. 77plan for the =Hutch= scheme, so =xcodebuild test -scheme Hutch= runs
78it.
79
80notes on the internals are in =Docs=: =API_CACHE.md= for the caching
81layer, =StoreKit.md= for the tip products, =Hutch/API_REFERENCE.md= for
82sourcehut's endpoints and token scopes, and =Docs/API= for schema dumps
83(partial — see the api traps in ROADMAP.md before trusting them).
84
85ci runs on the gitbay instance from =.gitbay/ci.yml=: an accessibility
86check over the view files and the weekly man-page sync. the xcodebuild
87test plan is not in ci; there is no macos runner.
49 88
50* mirrors 89* mirrors
51#+begin_example 90#+begin_example
52github: https://github.com/krazywarez/hutch 91krz.sh: https://gitbay.org/krz/hutch canonical
53krz.sh: https://gitbay.org/krz/hutch 92github: https://github.com/krazywarez/hutch push mirror
54kept in sync. issues or patches on either.
55#+end_example 93#+end_example
56 94
95issues and merge requests go to gitbay. pushes to github are
96overwritten by the mirror.
97
57* security 98* security
58see SECURITY.txt. 99see SECURITY.md.
59 100
60* license 101* license
610bsd. see LICENSE. 1020bsd. see LICENSE.
62 103
63* contact 104* contact
64- root@krz.sh 105- root@krz.sh
106- https://krz.sh/apps/hutch/
ROADMAP.txt → ROADMAP.md renamed +8 −8
@@ -4,7 +4,7 @@ Planned work for Hutch, ordered by dependency. Feature gaps below were
4identified by diffing the GraphQL schema dumps in `Docs/API` against actual 4identified by diffing the GraphQL schema dumps in `Docs/API` against actual
5call sites in the Swift source. 5call sites in the Swift source.
6 6
7See [SCOPE.txt](SCOPE.txt) for features that are intentionally out of scope. 7See [SCOPE.md](SCOPE.md) for features that are intentionally out of scope.
8 8
9## SourceHut API traps 9## SourceHut API traps
10 10
@@ -166,7 +166,7 @@ and deploy keys — once slated for 3.9.0 — move to 3.10.0, and the hub.sr.ht
166writes that were provisionally 3.10.0 landed early, because the SDL, once 166writes that were provisionally 3.10.0 landed early, because the SDL, once
167actually read, turned out to have the mutations (it was not the empty bucket the 167actually read, turned out to have the mutations (it was not the empty bucket the
168sequencing had guarded against). The ingest still leads 3.10.0: its real output 168sequencing had guarded against). The ingest still leads 3.10.0: its real output
169is a `SCOPE.txt` that is true. 169is a `SCOPE.md` that is true.
170 170
171`KeychainHelper` is deliberately unbucketed; see the SonarCloud hotspots below. 171`KeychainHelper` is deliberately unbucketed; see the SonarCloud hotspots below.
172 172
@@ -183,9 +183,9 @@ Three of the six planned. The other three did not survive contact:
183- The `events` feed was built, then removed: todo.sr.ht's root `events` resolver 183- The `events` feed was built, then removed: todo.sr.ht's root `events` resolver
184 joins `event.participant_id` against `participant.user_id`, which are 184 joins `event.participant_id` against `participant.user_id`, which are
185 different id spaces, so it returns an empty list for everyone. See 185 different id spaces, so it returns an empty list for everyone. See
186 [SCOPE.txt](SCOPE.txt). 186 [SCOPE.md](SCOPE.md).
187- Webhook management, `shareSecret`, and build groups are reachable but declined 187- Webhook management, `shareSecret`, and build groups are reachable but declined
188 on judgement — see [SCOPE.txt](SCOPE.txt) for the reasoning, so they do not get 188 on judgement — see [SCOPE.md](SCOPE.md) for the reasoning, so they do not get
189 re-proposed. 189 re-proposed.
190 190
191### Localization — v4.0.0, and only with translations 191### Localization — v4.0.0, and only with translations
@@ -334,9 +334,9 @@ not just a green suite.
334sr.ht posts a quarterly update to `~sircmpwn/sr.ht-announce`, mirrored at 334sr.ht posts a quarterly update to `~sircmpwn/sr.ht-announce`, mirrored at
335<https://sourcehut.org/blog/>. Nothing in Hutch tracks it, so the API grows and 335<https://sourcehut.org/blog/>. Nothing in Hutch tracks it, so the API grows and
336this repo's assumptions quietly rot. Read each quarter's post, diff it against 336this repo's assumptions quietly rot. Read each quarter's post, diff it against
337`Docs/API`, `SCOPE.txt`, and the call sites, and file what changed. 337`Docs/API`, `SCOPE.md`, and the call sites, and file what changed.
338 338
339That this is worth doing is already proven: **`SCOPE.txt` claims pronouns are 339That this is worth doing is already proven: **`SCOPE.md` claims pronouns are
340"not in GraphQL schema", while `AppState` queries `pronouns` and 340"not in GraphQL schema", while `AppState` queries `pronouns` and
341`UserProfileView` displays them.** sr.ht shipped it, the doc never caught up, 341`UserProfileView` displays them.** sr.ht shipped it, the doc never caught up,
342and it has been discouraging work that is in fact already done. 342and it has been discouraging work that is in fact already done.
@@ -347,7 +347,7 @@ flags two openings:
347- **hub.sr.ht gained a writable GraphQL API** for managing projects and project 347- **hub.sr.ht gained a writable GraphQL API** for managing projects and project
348 resources. ~~Rechecked and shipped~~: project create/edit, resource 348 resources. ~~Rechecked and shipped~~: project create/edit, resource
349 link/unlink, and public discovery landed (#12–#15) — see "hub.sr.ht writes" 349 link/unlink, and public discovery landed (#12–#15) — see "hub.sr.ht writes"
350 below. `SCOPE.txt`'s "hub has no public API / no discovery" claim has since 350 below. `SCOPE.md`'s "hub has no public API / no discovery" claim has since
351 been corrected. 351 been corrected.
352- ~~git.sr.ht deploy keys are complete~~ — **shipped** (v3.10.0). 352- ~~git.sr.ht deploy keys are complete~~ — **shipped** (v3.10.0).
353 `createDeployKey` / `deleteDeployKey` (and `Repository.deployKeys`) are wired 353 `createDeployKey` / `deleteDeployKey` (and `Repository.deployKeys`) are wired
@@ -403,7 +403,7 @@ Verify on a signed-in device.
403 403
404`mailingListSubscribe` is now buildable: the ingest found `MailingList` gained a 404`mailingListSubscribe` is now buildable: the ingest found `MailingList` gained a
405`subscription` field, so per-list state is readable and the subscribe/unsubscribe 405`subscription` field, so per-list state is readable and the subscribe/unsubscribe
406toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.txt` 406toggle can reflect it — see the "mailing list subscribe" bucket below. `SCOPE.md`
407has since had its "hub has no public API / no discovery" claim corrected. 407has since had its "hub has no public API / no discovery" claim corrected.
408 408
409### App Intent gaps — unscheduled 409### App Intent gaps — unscheduled
SCOPE.txt → SCOPE.md renamed +3 −3
@@ -7,12 +7,12 @@
7- ~~Explore / search (hub.sr.ht) (no public discovery API)~~ — **stale**. 7- ~~Explore / search (hub.sr.ht) (no public discovery API)~~ — **stale**.
8 hub.sr.ht added a public `projects` query ("List all public projects"), and 8 hub.sr.ht added a public `projects` query ("List all public projects"), and
9 Hutch ships it as project discovery (#12, `DiscoverProjectsView`). Left struck 9 Hutch ships it as project discovery (#12, `DiscoverProjectsView`). Left struck
10 through as more evidence for the ingestion task in ROADMAP.txt: this entry ruled 10 through as more evidence for the ingestion task in ROADMAP.md: this entry ruled
11 out a feature the API had come to support. 11 out a feature the API had come to support.
12- ~~Pronouns on profile (not in GraphQL schema)~~ — **stale**. sr.ht added 12- ~~Pronouns on profile (not in GraphQL schema)~~ — **stale**. sr.ht added
13 pronouns (see the Q1 2026 "What's cooking"), and Hutch already queries them in 13 pronouns (see the Q1 2026 "What's cooking"), and Hutch already queries them in
14 `AppState` and shows them in `UserProfileView`. Left here struck through as 14 `AppState` and shows them in `UserProfileView`. Left here struck through as
15 evidence for the ingestion task in ROADMAP.txt: this entry spent months telling 15 evidence for the ingestion task in ROADMAP.md: this entry spent months telling
16 people not to build something that was already built. 16 people not to build something that was already built.
17- Revoke personal access tokens (`@internal` in schema, inaccessible) 17- Revoke personal access tokens (`@internal` in schema, inaccessible)
18- Archive a message to a list (`archiveMessage` is `@internal`, inaccessible) 18- Archive a message to a list (`archiveMessage` is `@internal`, inaccessible)
@@ -34,7 +34,7 @@
34- ~~Subscribe to a mailing list~~ — **shipped** (v3.11.0). A subscribe/unsubscribe 34- ~~Subscribe to a mailing list~~ — **shipped** (v3.11.0). A subscribe/unsubscribe
35 toggle on the mailing-list detail view. State comes from the `subscriptions` 35 toggle on the mailing-list detail view. State comes from the `subscriptions`
36 query (`MailingList.subscription` is a trap — it never reports your state; see 36 query (`MailingList.subscription` is a trap — it never reports your state; see
37 ROADMAP.txt API traps), and a list is reachable to subscribe to via Lookup or a 37 ROADMAP.md API traps), and a list is reachable to subscribe to via Lookup or a
38 project's lists — no discovery API needed. 38 project's lists — no discovery API needed.
39- Submitting patches (a `git send-email` flow, not a GraphQL mutation; Hutch 39- Submitting patches (a `git send-email` flow, not a GraphQL mutation; Hutch
40 reviews patchsets but cannot send them) 40 reviews patchsets but cannot send them)
SECURITY.txt → SECURITY.md renamed