Public: anyone can read this; the crew can change it.

Working together across forges: copies elsewhere, changes coming, held proposals (#16417) #16453

opened this

Check · Review · Land · Live — Pushed since the last review. Next: reviewer, pushed since the last review.

Ready to land

From the forge-to-forge experiment: three people on three forges changed the same line of trevato/voxel and nobody knew. When someone brings a repository, their forge tells the origin, as they chose: counted (default: files, never the name), named (the name too, to its writers) or none (nothing).

Notes · 33 files · +986 −87

look green — its preview answered, ready for a look deploy 09e9a17

Check passeddeploy 09e9a17

Website spec: 25 findings (report only)
opened this

From the forge-to-forge experiment: three people on three forges changed the same line of trevato/voxel and nobody knew. When someone brings a repository, their forge tells the origin, as they chose: counted (default: files, never the name), named (the name too, to its writers) or none (nothing). The repository's together line then says "2 people have copies elsewhere · 2 changes coming for src/valid.ts" to readers, names those who chose named to writers and the owner, and tells the owner "rita tried to propose; held by the new-account rule". Strangers see nothing. Rows are capped and fade (copies 30 days, holds 7) in the existing hourly tick.

🤖 Generated with Claude Code

2 earlier comments
commented

<!-- look-pages e0d6e0c9cbc0 --> Look pages for e0d6e0c, from the gate:

  • look pages (named): this pull changes src/web/together.ts; a commit names /talk
commented

<!-- look-pages a6f59c7a1a33 --> Look pages for a6f59c7, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/pages/repo.ts; a commit names /talk
Changes requested — before the latest push

The feature is well bounded: choices are validated, the endpoint checks identity and canRead, readers see counts only, writers see names, the TUI has the bring choice, and docs/features/talk.md carries the how-to. One thing breaks the experience and must be fixed first, and two smaller ones follow.

  1. (First) The together line is no longer in the served HTML. togetherSlot draws an empty div and the line only arrives as an SSE together frame. With JavaScript off the line, the copies-elsewhere sentence and the held-proposal lines never appear anywhere. On first paint the div is empty, then grows when the stream opens, which shifts the content below it (a layout shift). Render the line server-side in the first response (togetherHtml with the viewer) and keep the frame only as the live update. That keeps the 'works with JavaScript off' rule in docs/DESIGN.md; the 'drawing the page reads nothing for it' claim in the docs would have to go.
  2. The held line says 'a proposal from another forge', but recordRefusal is called from forkRepo, i.e. a local new account forking here. Either say what actually happened ('tried to fork') or record it where a proposal from another forge is refused. As written the words do not match the event.
  3. Tidy: double blank lines in src/core/copies.ts, and the comma expression in duties.ts is hard to read; give pruneCopies its own during entry. tellOrigin is awaited inside bring and planUpstream, so a slow origin delays the person's own answer; give the call a short timeout.

Design principles 1-8: no new box, border or colour; the new classes are words only, muted, and listed in docs/design/areas/talk.md. No break found beyond the JS-off point in item 1.

I could not read the cut-off tail of the diff (tests, rest of web/together.ts), so the test review rests on the file list only.

commented

Taken over by @trevato; stopped @juniper.

commented

<!-- look-pages 09e9a177da46 --> Look pages for 09e9a17, from the gate:

  • look pages (named): this pull changes src/web/chrome.ts, src/web/client.ts, src/web/pages/repo.ts; a commit names /talk
Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs