312 Commits
Author SHA1 Message Date
Greg ShuflinandClaude Opus 5.5 65853ed80f gui: Stop leaves the podcast player; paused media is dismissed from the rail
The desktop podcast player's Stop sat alone at the right of the action row.
It was a carry-over from the bar ADR 0045 replaced, and nothing recorded a
reason to keep it. Android never had one, and neither did Music, on the
grounds that pausing is all anyone wants. That is just as true of an episode,
whose position is remembered, and none of the major podcast apps has a Stop.

What it did was end the session: release the app-wide transport and empty
the sidebar's Media row. That is a dismiss, so it now lives where dismissing
does. The Media row shows a ✕ while its media is paused, which asks the
owning player to end its session (MediaSessionEvent::EndRequested, the
sibling of ToggleRequested). Music gets this too; it had no way to end a
session. The ✕ sits left of play/pause, so it appearing on pause doesn't
move the button just pressed.

SecondaryAction is the rate pill alone, copy::player::STOP goes, and the
speed pill keeps its height under a name of its own. ADR 0046 records it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 02:17:28 -08:00
Greg ShuflinandClaude Opus 5.5 8245a4392e music: import FLAC, Ogg, M4A and WAV, and say what an import passed over
Importing a folder of Rush albums created documents for one of twenty. That
was the only MP3 album: MUSIC_FILE_TYPES took .mp3 alone, so every FLAC was
skipped without a word. The progress bar ran through all ~6 GB anyway,
because the walk counted and ticked files it was going to skip.

Formats: MUSIC_FILE_TYPES now takes mp3, flac, ogg/oga, m4a (AAC or ALAC)
and wav. Tags already came from lofty, which sniffs every one of these. The
decoders needed features: rodio gains ALAC (its defaults cover the rest),
and the direct symphonia, which reads the sample-rate/duration line, gains
isomp4/aac/alac. import_mp3_file is import_track_file, and FileType is the
file's own extension rather than a hardcoded "mp3".

FileTypeFilter's MIME types are now (mime, extension) pairs.
extension_for_mime used to hand back a type's *first* extension for any of
its MIME types, which would have staged a FLAC picked through Android's file
picker as .mp3 (and already staged every PNG as .jpg). url_import's own
image MIME table goes, as a duplicate.

Skips: import_directory_tree takes a 'wanted' filter. Files it rejects are
passed over unread, left out of the pre-counted totals and the ticks, and
counted in ImportWalkStats::unwanted. The library screens' file and folder
imports report them: a finished import that passed anything over says
'Imported 10 files. Skipped 196 files in formats this library doesn't
read.' on a dismissable line under the running-imports strip, on all five
library screens. Documents' folder import uses is_supported_path as its
filter, so its progress no longer counts files it won't import either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 02:17:28 -08:00
Greg ShuflinandClaude Opus 5.5 3a102d8d61 gui: the player's transport is centered, between flanks that can't move it
The desktop anchored back/play/next at the left of the action row so an
optional control appearing on the right couldn't move the play button. With
Music's secondary cluster empty, that just looked shoved aside. The action
row is now three slots: two flex_1 flanks that split the leftover width
equally, with the transport between them. The play button sits dead center
under the scrubber and still doesn't move when a secondary control comes or
goes.

ADR 0046 and the design-principles doc are updated to match, and the ADR's
open question (a left flank beside the artwork) is closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 02:17:28 -08:00
Greg ShuflinandClaude Opus 5.5 5fcc9bb7a4 artifacts: a singleton keeps its id across edits
A singleton artifact's id names its lineage, not its version. Every save
used to mint a fresh v4 id (Artifact::new), and the singleton upsert
adopted it. Peers address the value by that id: their stub, their holder
evidence and their artifact-sync fetch. A peer that stubbed a note body
before an edit landed in the same wall-clock second never had its stub
replaced, since stamps cross the wire in whole seconds. It then fetched
an id that no longer existed, marked the seed as not holding it, and
showed the note as on no node at all. That is the TODO.md 'note body
written after creation' bug that just seed-node reproduces.

- ArtifactStore::set_singleton is the local-edit entry point. It reuses
  the held id, else the id a peer announced, else a fresh one. It refuses
  a CRDT value held here only as a stub.
- Every singleton writer goes through it: notes, humans, clippings,
  reading position, listen progress, latest-read child, thumbnails and
  primary content.
- crdt_merged merges only within one lineage. Another id is a separate
  CRDT document, and the newer one replaces the older by LWW, the same
  rule tombstones follow.
- abandon_absent_body remains the one place that starts a new lineage.
- list_artifact_stubs and list_all_artifact_stubs no longer drop a stub
  whose id matches a held value. That filter only worked while each
  version had its own id; with stable ids it would hide every peer's
  newer version from the fetcher. A stub is outstanding by construction:
  it is recorded only when not redundant and cleared when a value lands.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-12 04:04:48 -08:00
Greg ShuflinandClaude Fable 5.2 45d53130e8 docs: the rest of peer reachability moves to the long-term list
The symptom that put it in TODO.md — a small sync taking minutes — is
fixed. What remains is the algorithm for nodes learning whom they can
reach, which is deliberately not being designed yet. It absorbs the
long-term list's own "Sequential vs. parallel peer fetch" entry, which
was the same subject.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 17:38:48 -08:00
Greg ShuflinandClaude Fable 5.2 e708f6218b scheduler: dial every peer at once, work with whoever answers
The catalog pass walked the ensemble's peers in series, and the peer list
is every node gossip has ever heard from, so a pass paid each dead node's
budget in turn. The content pass was worse: it walks its peers once per
document, so a dead node ranked ahead of a live one cost a dial timeout
for every document with something to fetch.

The catalog pass now runs every peer's exchange concurrently, and the
catalog-fetch and content passes walk only the peers that answered it.
A peer is left out only when the network never reached it
(DocSyncError::is_unreachable) — one that stalled or sent something
unusable can still serve bytes. Nothing is remembered: the next pass
dials everybody again, so a node that wakes up is simply back.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-11 17:16:27 -08:00
Greg ShuflinandClaude Opus 5.5 8d1766f013 stores: writes a rollback would contradict commit durably
synchronous = NORMAL lets an OS crash or power loss roll back the last few
commits. Before the connection pool, nearly every write closed the last
connection and so checkpointed; since then nothing was durable until the
auto-checkpoint. For most writes that is harmless — recovery keeps a prefix,
and peers send the lost suffix back. Not for the node secret, its cert and
vault key, the epoch and deny-list, or linkage grants.

Those methods now take a DurableTx, which only write_durable hands out: it
sets synchronous = FULL on its pooled connection for the one transaction,
so the commit fsyncs the WAL before returning. The pool resets the
connection to NORMAL when it comes back, or closes it if it can't. ADR 0058.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 03:32:56 -08:00
Greg ShuflinandClaude Opus 5.5 800e50d7e6 podcast: content policy stops at saved episodes, by design
An unsaved episode has no artifact and is not ensemble data; its source is
the publisher. Record that beside the code that already acts on it, and
retire the TODO item that treated it as an open question.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 02:38:10 -08:00
Greg ShuflinandClaude Opus 5.5 6e4a5441b1 daemon: stream syn docs import's results path by path
An import through a running daemon collected every path's result and
answered once the whole batch was in, so a large import printed nothing
until it finished. It now goes to its own route on the Unix socket,
/import, which answers with newline-delimited ImportLines: an event per path
as it lands, then the totals (or why the run couldn't start). The CLI prints
each as it arrives, and its no-daemon fallback prints as it goes as well.

ImportFiles is no longer a DaemonCommand, because its answer is no longer
one reply; its arguments are ImportFilesArgs. That keeps it off the loopback
listener the same way the LocalFiles capability did — the route simply
isn't there — and the linked-client refusal test now checks
MaterializeDocument for that capability instead. The import also runs on a
blocking thread now rather than inside the request's async task.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 00:09:29 -08:00
Greg ShuflinandClaude Opus 5.5 d46a858f3e humans: interactions are events, in the code as on screen
The Humans screen's second tab is Events, and the thing it lists is an event
everywhere: DocumentType::Event, Event/EventSummary, log_event, events_with,
the FFI's EventItem/EventDetail, HumansCmd::Events, syn humans events, the
desktop's EventsView/EventForm and the copy ("Log an event", "an event only
you were at"). "Event" fits a walk taken alone, which "interaction" never
did, and one name in the code and on screen is one less translation.

EdgeKind::Attendee and PropertyKind::OccurredOn keep their names: an event
has attendees and occurs. Documents' tag for the type is EVT now, not MET.

DocumentType rides bare on the sync wire, so the rename is a wire change and
SYNC_PROTOCOL_VERSION is bumped. A store holding interactions doesn't read
them as events; delete and recreate it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 23:55:28 -08:00
Greg ShuflinandClaude Opus 5.5 751802b2d7 ADR 0057: writes take a WriteTx from an IMMEDIATE transaction
Records the decision, why the deferred read-then-write failed with
SQLITE_BUSY_SNAPSHOT however long BUSY_TIMEOUT was, and the two alternatives
set aside. ADR 0019 is superseded in part; TODO.md keeps only what's left
(retiring the per-screen retries, the unexplained 5 s stalls, and the
backstop's reach outside the lib's own tests).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 03:41:00 -08:00
Greg ShuflinandClaude Opus 5.5 554a87cd45 ADR 0056: keep synchronicity-lib one crate; hot loops get their own optimized crate
Build Debug APK / build (push) Successful in 5m38s
Records the rebuild timings behind the decision: opt-level, the host cdylib
and mold each buy little or nothing on an incremental rebuild, and the core
module cycle means no split spares a frontend a rebuild.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 23:26:08 -08:00
Greg ShuflinandClaude Opus 5.5 bc6404547d Move the macOS daemon-socket path limit to the long-term TODO
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 23:26:08 -08:00
Greg ShuflinandClaude Opus 5.5 ab895ffc73 android: edit a document's properties from its detail screen
The Properties section gains an Edit mode: every editable property at once
(text by shape, a switch, tag chips with an entry box), immutable ones listed
with why they can't change, and nothing written until Save. PropertyForm holds
the form against the properties it was opened on:

- Save writes only the fields whose staged edit differs from its seed, in one
  save_properties call, so an untouched field never overwrites a newer value
  from another node. A tag typed but not yet added is part of the edit.
- A re-read that differs is held, not applied: the incoming-change strip
  (Subject::DocumentProperties) pauses Save, each moved field says what it
  moved to, and Use theirs reopens the form on the new values.

Back while editing is Cancel, as on the other record screens. A re-read that
fails mid-edit no longer replaces the screen with an error. ADR 0031 gains an
amendment recording this as the first form to take its designed answer; the
action labels gain Add and Remove for the tag chips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 18:44:53 -08:00
Greg ShuflinandClaude Opus 5.5 7d72c579e5 docs: what a podcast speed pick writes; drop the playback-rate TODO
Build Debug APK / build (push) Successful in 7m31s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:41:37 -08:00
Greg ShuflinandClaude Opus 5.5 a686e0ec8d TODO: drop 'Android repository unit tests'; ADR 0022 records why no dispatcher
The item assumed repository tests needed an injected dispatcher. They
didn't. The obstacle was NativeLib and the Android stubs, and the Kotlin
logic the repositories own is now extracted and tested (FeedMoves,
retryOnBusy). detekt.yml's InjectDispatcher comment points at the update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 11:29:31 -08:00
Greg ShuflinandClaude Opus 5.5 8b9c55f3b7 podcasts: follow a moved feed, refresh subscriptions in the background, keep cover art current
Build Debug APK / build (push) Successful in 6m31s
A feed that moves takes its subscription with it. fetch() now follows
redirects through a policy that notes a temporary one, and reports a move
(FetchOutcome::moved_to) only when every hop was a 301 or 308. refresh_feed
keeps the copy under the new address, and follows <itunes:new-feed-url> one
hop per refresh, only once the new address reads as a feed. The snapshot
names where the feed now lives; adopt_snapshot (was adopt_show) writes it to
PodcastFeedRssUrl on the same document, so episodes, listen state and the
queue carry over. Screens that opened on the old address follow it: the
desktop detail screen resolves its subscription by document id
(podcast::resolve_feed) and takes the snapshot's address; Android's
repository remembers moves and every by-address lookup follows them.

Subscriptions refresh with nobody looking. podcast::background::
refresh_due_feeds refreshes each subscription whose copy here is over an
hour old, one at a time, as a FeedRefresh job. scheduler::tick runs it for
the desktop and the daemon, P2P or not; Android's SchedulerWorker runs it
through PodcastFfi::refresh_due_feeds. adopt_snapshot now brings the newest
episode's date onto the subscription, so the list learns of a new episode
by itself. PodcastFeedLastFetchedAt, which never held a fetch time, is
renamed PodcastFeedUpdatedAt, and Android reads it instead of stamping each
row with when it was loaded.

Cover art follows the feed's. The download moves from Kotlin into the lib
(podcast::cover_art), which records the address the Thumbnail came from
(PodcastFeedCoverArtSource). Art whose source differs from the feed's art
URL is fetched again by the background pass, so a changed or previously
failed download heals. PodcastItem carries a cover_key, and Android re-reads
the bytes when it changes rather than when the URL does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 04:46:10 -08:00
Greg ShuflinandClaude Opus 5.5 c92f52ad9b android: cards, segmented buttons and sliders through ui/; ADR 0055 accepted
The last stock components a screen reached for directly. The keyphrase
word tiles and the revoked-node notice are RecordCards, and ErrorCard is
built on one with its text in the error color. Notes' view switcher is
SegmentedIconChoice, beside SegmentedChoice. The PDF page scrubber and the
custom-rate slider join MediaSlider on ScrubSlider, so every slider has
one thumb and one slim, gapless track. detekt bans Card and its variants,
SegmentedButton and Slider outside their wrappers (each proven against a
probe), which completes ADR 0055: Accepted.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M7mmwdd4TcVj5CG3aYu8Ut
2026-11-03 01:14:03 -08:00
Greg ShuflinandClaude Opus 5.5 f6eee8aea7 android: text and outlined buttons carry a role; dialogs confirm with a filled button
Material draws TextButton and OutlinedButton in `primary`, so every idle
Save, Cancel, Copy, Edit and "+ Queue" in the app was cobalt — ADR 0032
§4 says no cobalt while nothing is happening. All 70 sites move onto
TextAction/OutlinedAction with a TextRole: Neutral (text_primary, as the
desktop's Secondary buttons), Destructive (the error color, replacing
seven hand-rolled red overrides), or Link (the accent, for navigation —
the job widget's "Jobs"). A dialog's affirmative action becomes a
FilledButton, Primary or Destructive, with Cancel a quiet TextAction, as
the desktop's dialog footer has it. detekt bans both stock composables
outside their wrapper (proven against a probe).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:57:20 -08:00
Greg ShuflinandClaude Opus 5.5 9658cb7faf android: every screen on AgentScreen/RecordScreen/ViewerScreen, actions as data
HeaderAction makes a header action a value with a kind — Primary (a word:
Import), Daily (an icon: Add, Refresh, with a busy spinner for a running
job), Menu (the overflow ⋮, named by the new copy::action::MORE_ACTIONS)
and Toggle (the comic reader's direction chip) — and the scaffolds draw
them, so ADR 0032 §5's icon rule is applied in one place. Every remaining
SubAppScreen call site moves onto the scaffold for its role: fifteen
agent screens, five records, three viewers. Along the way: Notes settings
and Podcast info become menu items; Clippings' hand-built scrapbook menu
becomes menu actions, its Delete marked destructive; Podcasts, Clippings,
Jobs and Document detail take their tabs as ScreenTabs; Music's rebuild
keeps its job-bound spinner as a busy Daily action.

detekt now bans SubAppScreen, filled Button and the TabRow family outside
their one wrapper each (each matcher proven against a deliberate probe).
ADR 0055 records the Toggle kind, the scrapbook exception and the bans.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 00:28:51 -08:00
Greg ShuflinandClaude Opus 5.5 130aadb290 android: Settings is one header with its tabs beneath, via AgentScreen
Each Settings section drew its own SubAppScreen under the tab row, so the
tabs sat above the title and the title changed per tab. AgentScreen fixes
the order (title, tabs, search, content) and takes the tabs as data
(ScreenTabs): words only, scrollable past three, no row for fewer than
two. Each section draws the shared Settings header with the tabs handed
to it, so Ensemble's refresh stays beside its state and the node drill-in
replaces the tabbed frame instead of nesting in it. SettingsSection loses
its tab icons.

ADR 0055: its open questions settled in review (destructive actions at
the foot, icons only for daily actions, no back arrow), and its order
corrected to tabs above search, as Podcasts already had it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:36:26 -08:00
Greg ShuflinandClaude Opus 5.5 453e85610f ADR 0055 (proposed): Android screens are assembled from roles
Three scaffolds own placement, actions and tabs are data, system back is
the only back, controls carry their role, and detekt bans the raw
Material composables outside ui/. A draft for review before any code
depends on it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:11:51 -08:00
Greg ShuflinandClaude Opus 5.5 2a8094f36a ADR 0032: containers are quiet, the ground runs under the system bars
Two amendments from the Android visual review, plus a correction to
Implementation status: Command Palette is still a rail row, and whether
it stays is open.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:11:51 -08:00
Greg ShuflinandClaude Opus 5.5 780abf87c0 fonts: vendor Inter Bold and Source Serif 4 Bold
Seventeen desktop call sites (and eight on Android) ask for weight 700,
but only Regular/Medium/SemiBold were vendored, so the text system
thickened a lighter face: the selected tab label read as smeared, and
markdown **strong** in prose was synthetic too. Both faces come from the
release archives the script already fetches; everything else re-vendored
byte-identical. Which roles take Bold rather than SemiBold is still
undecided, and is now a TODO.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 23:11:51 -08:00
Greg ShuflinandClaude Opus 5.5 82e9e44378 podcast: retire the keyed Podcast Index API, and ServiceId::PodcastIndex with it
Build Debug APK / build (push) Failing after 19s
docs/podcasts-from-rss.md phase G. Nothing called search_podcasts or
get_podcast_episodes after phases D–F, so they go, with index_get, the SHA-1
request signing (and the sha1 dependency), PodcastSearchResult,
PodcastIndexEpisode, PodcastIndexError and the live-API test. The search-term
encoding test moves to podcast::directory, now against the real request
builder (search_request) rather than reqwest alone.

ServiceId loses its only variant, as decided. The credentials mechanism stays
(ADR 0051, amended): the tests run on a #[cfg(test)] service, and the desktop
and Android Credentials screens say "Nothing this app talks to needs a key
right now" (copy::credentials::NO_SERVICES). ServiceId is no longer a uniffi
enum — uniffi's Kotlin for an empty enum doesn't compile — so the FFI names a
service by its stored name, and ServiceCredential carries its own clear
warning.

TODO.md: the rotation item now says nothing in the tree uses the key, and the
podcast section loses its retire-the-keyed-code item. docs/rss-reader.md no
longer describes the podcast agent as it was before this plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 17:12:50 -08:00
Greg ShuflinandClaude Opus 5.5 4d7b40bba7 android podcasts: a rich episode screen — show notes, chapters, transcript, people
docs/podcasts-from-rss.md phase F. The episode screen keeps its header and
player and, between them, gains the desktop's tabs (SectionTabs), each shown
only when the feed has something for it: show notes whose links open in the
browser (LinkAnnotation), the episode's page and any video as links out;
chapters, the playing one marked; a transcript in a LazyColumn with speakers;
and people with their pictures and roles. Read through PodcastFfi's
episode_detail, episode_chapters and episode_transcript — chapters when the
screen opens, the transcript when its tab is first chosen.

Tapping a chapter or a transcript line seeks there and plays. The transcript
follows the line being spoken until the user drags it, and Follow along
brings it back. chapterAt and cueAt restate the lib's chapter_at and cue_at
so a position tick doesn't carry the lists across the FFI, and a test holds
them to the lib's cases.

The screen's words come from copy: the tab names and loading/follow labels
join PodcastsCopy, and the failure, role and video sentences are exported
functions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 16:04:10 -08:00
Greg ShuflinandClaude Opus 5.5 1560362df4 desktop podcasts: a rich episode screen — show notes, chapters, transcript, people
docs/podcasts-from-rss.md phase E, desktop. Below the episode's header, tabs
for what the feed says about it, each shown only when there is something:
show notes with clickable links (components::rich_text), the episode's page
and any video as links out; chapters, the playing one marked; a transcript,
virtualized as gpui's list, with speakers; and people with their pictures
and roles. [ and ] step through them.

A chapter or a transcript line is a place in the episode: clicking one seeks
there, or starts the episode from there. PlayerControls gains seek_to (held
until a loading stream opens rather than dropped), play_from, position_in,
and streaming, which recognizes an episode of an unsubscribed feed by its
enclosure since it has no document. While the episode plays, the transcript
follows the line being spoken until the user scrolls it out of view; Follow
along brings it back.

Chapters are fetched when the screen opens, the transcript when its tab is
first chosen.

Also the plan and TODO.md mark phase E built.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 15:53:50 -08:00
Greg ShuflinandClaude Opus 5.5 eccdb6316e android podcasts: episode lists from the cached feed, keyless search, open by feed address
docs/podcasts-from-rss.md phase D, Android and its FFI. PodcastFfi gains
cached_feed and refresh_feed (a FeedRefresh job), search moves to the keyless
directory, fetch_episodes is gone, and podcast_feed_url canonicalizes a
pasted address with the error said in copy's words.

The detail screen opens on the cached copy and refreshes behind it when it
is stale; a refresh that lands on its own goes through IncomingEpisodes, and
the new Refresh action replaces the list outright. Paging is gone — the
whole feed is local. A first fetch that fails falls back to the episodes
this node holds documents for. What the feed says about the show (title,
description, artwork) becomes the in-memory podcast, so a podcast opened by
its address fills in once read; the info screen holds Subscribe until then.

Search rows show the author and an episode count; the feed-address field
sits under the search box.

Also: TODO.md loses the moot "load more" item and gains the follow-ups
phase D leaves — moved feeds, background refresh, refreshed cover art.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 14:42:35 -08:00
Greg ShuflinandClaude Opus 5.5 bc2f57501a podcast: identify feeds by URL and episodes by guid, not by Podcast Index ids
docs/podcasts-from-rss.md phase C. A subscription is found by its canonical
feed URL (feeds::canonical_feed_url: case, default port, fragment and an
empty path's slash normalized; the query left alone), and an episode's
document id derives from (feed document, item guid). PodcastIndexFeedId is
gone, PodcastEpisodeApiId is PodcastEpisodeGuid, and PodcastFeedGuid holds
<podcast:guid>. SYNC_PROTOCOL_VERSION moves for the renamed variants; stores
are recreated, with no conversion.

Both frontends navigate by feed URL: the lib canonicalizes search results'
URLs, so a result and a subscription match by plain comparison in Kotlin as
on the desktop. Episodes are still listed by the keyed API, now asked by
URL (episodes/byfeedurl), and the directory echoes the feed's own <guid> —
so a document written today keeps its id when phase D reads the feed itself.
A directory episode with no guid falls back to its link, as feeds::parse does.

Android keys an episode by feed and guid together (PodcastEpisode.id), since
a guid is only reliably unique within its feed; the FFI still speaks guids.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 04:27:49 -08:00
Greg ShuflinandClaude Opus 5.5 810d25d19a docs: the feed layer is built, on the rss crate
docs/rss-reader.md §2 now describes the phase 0 that landed rather than the
feed-rs one it proposed, and puts Atom and JSON Feed in phase 1.
docs/podcasts-from-rss.md marks phases A and B built, records why the parser
changed and the second podcast: namespace URI, and points §3.3 at the
fixtures' README.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 03:23:55 -08:00
Greg ShuflinandClaude Opus 5.5 25507b8b33 docs: plan podcasts from RSS — rich episodes, no API key
Build Debug APK / build (push) Failing after 18s
docs/podcasts-from-rss.md: the chapters, transcripts, people, show notes
and video a rich episode screen needs are all in the feed, which Podcast
Index only partly re-serves (checked against Linux Unplugged 691). Search
has a keyless endpoint, and Podcast Index's terms forbid embedding a key in
an open-source project, so the plan reads feeds directly, rekeys feeds and
episodes on URL/podcast:guid and <guid>, and retires the keyed path.

TODO.md and rss-reader.md's phase 6 point at it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 01:40:44 -08:00
Greg ShuflinandClaude Opus 5.5 5f52ac3044 TODO: correct items that work since has overtaken
Build Debug APK / build (push) Failing after 10s
From an audit of every item against the code and history:
- Capability scoping is done (8d9b6a65); the bullet goes.
- A saved podcast episode is already governed by content policy; what
  is open is the back catalog nobody saved.
- Comics dedup on re-import (ADR 0054); the other importers don't.
- Title search is text_match(), not LIKE — also in ADR 0034, whose
  FTS5 option now notes that a trigram index folds differently.
- The peer walk skips revoked peers; its asset-sync pointer is fixed,
  here and in the scheduler's doc comment.
- Document-detail pulls show bytes and a percentage; the desktop just
  draws no bar.
- Syncs are jobs and the nav rail shows them running; the open gap is
  an ambient succeeded/failed signal. The TUI has an error popup; Video
  and Music also toast.
- Android already has the foreground service and network-constrained
  worker the slow-sync suspect asked for; the question is why it was
  blocked anyway.
- Command names, and a screenshots/ folder that never existed.
- "Queue a sync directive" moves to Core Functionality, which also
  puts the Documents bullets it had split back together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:38:34 -08:00
Greg ShuflinandClaude Opus 5.5 22a6286033 docs: ADR 0039 — deleting clippings and scrapbooks is a purge, and asks first
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:37:29 -08:00
Greg ShuflinandClaude Opus 5.5 80513750c2 revocation: stop promising that ensemble register re-admits a node
It never did: it refused any node already in an ensemble, and a revoked
node still is. Say what is true — re-admission needs only a fresh cert,
nothing mints one for a node holding its revoked cert yet — and track the
gap in TODO.md, replacing the resolved item about first-run shapes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:17:22 -08:00
Greg ShuflinandClaude Opus 5.5 7dc0f80626 cli: syn init --new-ensemble makes the ensemble and the node in one step
`syn ensemble init` minted a keyphrase without a node and `syn init`
then needed it back; `ensemble register` joined a store that had a node
and no membership, which nothing ordinary makes any more. Both are gone:
`syn init --new-ensemble [--format-a]` sets the node up in a new
ensemble and prints its phrase once, and `syn init --keyphrase` (or the
prompt) joins one. The two are parser alternatives, so contradictory
flags are a usage error.

`syn init` now also finishes an existing store whose node is in no
ensemble, as the TUI's first run does, which gives NOT_IN_ENSEMBLE a
recourse that exists. NO_REGISTRY_NODES no longer suggests `register`,
which never worked on a node that already had a membership.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:17:13 -08:00
Greg ShuflinandClaude Opus 5.5 801a2a709a docs: clippings are done — ADR 0039 records rename/delete/move, TODO drops the section
Build Debug APK / build (push) Failing after 19s
Nothing is left open under Clippings: the rename guard, delete's
default-scrapbook refusal and move's stamped parent change are recorded
in ADR 0039's scrapbooks amendment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 20:46:13 -08:00
Greg ShuflinandClaude Opus 5.5 943bac11a8 docs: scrapbooks — ADR 0039 amendment, data model, TODO
The second clippings tree is built and recorded. Android linkages
folds into Mobile pairing: a phone cannot grant a linkage until
pairing runs there, so a list-and-revoke screen built ahead of it
would only ever show its empty state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 19:56:50 -08:00
Greg ShuflinandClaude Opus 5.5 14d60fa515 docs: post uri canonicalization is built; handle resolution is open
Build Debug APK / build (push) Failing after 19s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M7mmwfd5GfVr63BxhhcNHm
2026-11-01 17:07:22 -08:00
Greg ShuflinandClaude Opus 5.5 5fbb0beec5 pdf-render: move the desktop's PDF render thread into its own crate
The thread that owns a parsed mupdf::Document, its page cache, prefetch and
tile rendering moves out of gui-app's pdf_viewer.rs into rust/pdf-render, so
the TUI's PDF viewer can share it. gui-app keeps RenderDispatch (getting the
bytes to the thread from the store or another node).

The crate is generic over the frontend's image type, through a PageImage
trait: the frontend names its pixel order, mupdf renders straight into it,
and the thread wraps the bytes. That keeps what the desktop already had,
pages built as gpui images on the render thread with no pixel pass on the
UI thread, without the crate knowing about gpui. AtlasImage implements it
for the desktop (BGRA); Arc<RgbaImage> is provided for everyone else.

Other API changes made along the way: RenderPurpose::Thumbnail { max_edge }
replaces recognizing a thumbnail by its magic scale, and errors are a
thiserror RenderError rather than String. The thread is started with
thread::Builder, so a failed spawn surfaces as a disconnected sender rather
than a panic.

pdf-render stays out of default-members, like gui-app, because it builds
MuPDF's C source; unit-tests-gui now runs its tests too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:10:47 -08:00
Greg ShuflinandClaude Opus 5.5 f3fab6f234 android: every list filter matches by text_match
Music, Comics, the PDF and podcast libraries, Pictures, Video, Humans
(name and subtitle) and the timezone picker each filtered with
contains(ignoreCase = true), which folds case and nothing else. They call
the lib's textMatches instead, so on Android as everywhere else 'cafe'
finds 'Café' and an uppercase letter demands its case.

The search design doc's Android section no longer describes Kotlin
matching as its own substring test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:18:56 -08:00
Greg ShuflinandClaude Opus 5.5 f5730f1904 docs(search): the matcher is text_match and fuzzy::rank, not nucleo
The design doc said not to write the matcher by hand and to take nucleo.
Records why that stopped holding once matching had to work in every script,
what is taken from crates (ICU4X's Unicode data, frizbee's scoring) and what
is ours (the comparison), and that both search regimes share the character
rule even though they keep separate matchers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:18:56 -08:00
Greg ShuflinandClaude Opus 5.5 3cc4ce5668 comics: re-importing a file updates the comic already standing for it
Build Debug APK / build (push) Failing after 18s
Every import used to mint a new Comic, so a second look at a file duplicated it,
and a corrected ComicInfo.xml had no existing issue to reach. A comic is now
matched among its import parent's children by SourceName (the file or folder
name, a new generic property), or, for a file renamed on disk, by
ComicPagesHash when the old name is gone from the folder. Series and volume
Collections match by name. A match is rewritten only where it differs
(DocumentStore::set_or_clear_if_changed), cleared where the file dropped a
field, and keeps a title the user changed and a reading direction they chose.
Pages match by position: unchanged ones keep their document (and get their
bytes stored if this node only had them remotely), changed ones are replaced.

Re-importing the ~/Manga sample (256 comics, 6433 pages) now writes nothing
and takes ~6s instead of duplicating every document. ADR 0054 records the
identity rules and why derived ids and paths were rejected.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:17:07 -07:00
Greg ShuflinandClaude Opus 5.5 d38a18321e comics: fractional chapters sort in reading order
A chapter number's digits after the dot are a sub-chapter, so Order is now
chapter*1000 + part: "Chapter 10.5" reads between 10 and 11 and "Ch.8.10"
after "Ch.8.9", instead of every fractional chapter being left unordered at
the end of the series. ComicNumber keeps the digits as written ("51.10",
which the old f64 path printed as "51.1"), and unordered siblings fall back
to a natural title sort rather than a lexical one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 23:17:07 -07:00
Greg ShuflinandClaude Opus 5.5 1485b19bf6 rust: bump pkarr 8, rusqlite 0.41, zip 9, rodio 0.23, lru 0.19, rstest 0.28
Also iroh-mainline-address-lookup 0.6, which needed no code changes.

pkarr 8 replaces resolve_most_recent (an Option) with
resolve(key, ResolvePolicy::NetworkOnly) returning a Result, and drops the
compare-and-swap argument from publish — the DHT client no longer offers
one at all. The registry's read-then-write therefore loses its race guard:
two nodes registering at once can each publish a packet lacking the other.
BOOTSTRAPPING.md and publish_membership's docs now say so.

A resolve that fails for a reason other than NotFound used to be
indistinguishable from an empty registry. It is now
EnsembleError::PkarrResolve, and publish_membership aborts on it rather than
publishing a packet that would drop every sibling's entry.

zip 9's ZipFile::name() is fallible (its CP437 fallback can in principle
fail); extract_cbz propagates it like any other bad-archive error.

hayro-syntax stays at 0.7, matching typst per ADR 0035.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 21:46:10 -07:00
Greg ShuflinandClaude Opus 5.5 b00cd3cb82 docs: ADR 0053 covers commands and desktop sub-tabs
Build Debug APK / build (push) Failing after 28s
The keymap ADR and the AGENTS.md rule now say a key is a keymap::Action
(navigation or command, one meaning program-wide) and how desktop
sub-tabs reach a screen. The two finished TODO follow-ups are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 13:42:57 -07:00
Greg ShuflinandClaude Opus 5.5 e1aade7f9e docs: ADR 0053, one keymap for every modality
Records the keyboard convention and the choices behind it — Left is out one
level, sub-tabs and agents share a shifted key family, a text field keeps its
keys — adds the rule to AGENTS.md, and replaces the TODO it closes with the
follow-ups it leaves: desktop tabs on screens that never take focus, screen
commands into the keymap, and a shared TUI list/detail shape.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 05:47:32 -07:00
Greg ShuflinandClaude Opus 5.5 389cfa6d86 docs: autistic mode, and what leaving it doesn't do yet
docs/autistic-mode.md says what the mode is, why it isn't called offline,
every way to turn it on, where it is enforced, and that leaving it doesn't
publish a registry entry. TODO.md drops the offline-mode item and records,
under the DHT bootstrap item, a mode that holds a re-entered ensemble key in
memory only as long as it is needed: the way to close that gap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 04:04:14 -07:00
Greg ShuflinandClaude Opus 5.5 a0887488f2 copy: one "Ensemble key" label everywhere; name the two "Created"s by modality
The CLI said "Ensemble pubkey" only so its integration tests could find the
value by prefix without matching "Ensemble key generated (…)". The tests'
parser now matches the label from copy plus its colon, so the CLI uses the
same label as the desktop and Android. CREATED/CERT_ISSUED become
CREATED_DESKTOP/CREATED_CLI, saying in the name which one each modality uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-24 13:39:15 -07:00
Greg ShuflinandClaude Opus 5.5 3a08adea65 android: build the Rust library for the device's ABI, x86_64 included
Build Debug APK / build (push) Failing after 3m48s
The x86_64 emulator was running the arm64 .so through the native bridge,
which returns JNI jbooleans with junk in the register's upper bits. Since
jni-sys 0.4 reads jboolean as a Rust bool, every ExceptionCheck reported a
pending exception, so rustls-platform-verifier could neither initialize
nor verify a certificate on the emulator.

Still one Rust cross-compile per build: -PrustAbi wins, else the ABI
Android Studio injects for the device it deploys to, else arm64-v8a. The
.so is now synced into build/rustJniLibs rather than src/main/jniLibs, so
clean removes it and a previously built ABI can't ride along in the APK.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-04 02:29:29 -07:00
Greg ShuflinandClaude Opus 5.5 3820d4e81b podcasts: the Podcast Index id is PodcastIndexFeedId, and the RSS URL is kept
A subscription stored the feed's Podcast Index id in a property named
PodcastFeedRssUrl, and the search result's real RSS URL was dropped. The
id now lives in PodcastIndexFeedId, named for what it holds, and
PodcastFeedRssUrl holds the URL — written at subscribe on desktop and
Android from the search result, and read back as PodcastFeed::rss_url /
PodcastItem.rss_url. Nothing fetches from it yet; it is the publisher's
own address for the feed, which reading feeds without the directory
(docs/rss-reader.md phase 6) would need.

Not converted in place: a store holding feeds from before this change
reads their old id as an RSS URL, and is recreated rather than migrated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 20:07:12 -07:00