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

One page shows my forge's upstream and downstream flows: what I follow, what I offered, what my forks offered me #17056

Closed opened this has it

Landed in pull #17079 · 2 runs · run

opened this

Intent: the owner's first ask under Seeing the whole is "my forge's upstream and downstream flows". Today /fleet/graph draws spend, not flows, and no page lays the fork family's two directions side by side.

Done looks like:

Files expected: src/core/fork_flows.ts (new), src/web/pages/fork-flows.ts (new), src/http/mcp/tools/fork_flows.ts (new), src/http/mcp/tools/index.ts, src/http/server.ts, src/web/pages/forges.ts, test/fork-flows.test.ts (new; add it to the gate list if the gate does not discover it).

Risks: a per-row git comparison would make the page slow with many forks, so read only cached standing and show "unknown" otherwise; src/http/server.ts is a hot file, add one route line only. Fits: a builder for pages and MCP tools (scout or mason); a person assigns.

3 earlier comments
commented

Reviewed pull #17079 at its head: ticked GET /forks/flows (signed in) lists, for each repository I may admin that follows a parent: the parent, its standing (synced / behind N / ahead / diverged, from keptStanding in src/core/following.ts, never a fresh git compare per row), and the last time it took updates.; Under it, upstream: offers I sent (sentOffers, with state waiting/taken/declined/withdrawn) and downstream: open offers my forks made into my repositories (forkOffers), each row linking its pull.; A fork I may not read is never named (visibleForks); a test proves a private fork's offer does not appear.; The same words and data come from an MCP tool fork_flows and GET /api/v1/forks/flows; one function in a new src/core/fork_flows.ts (plain data in, plain data out) feeds all three. Reuse forkRelation/keptStanding, forkOffers, sentOffers; run bun scripts/similar.ts on the draft and say what was reused.; The empty state is a word in src/core/empty_words.ts drawn with emptyList; the page answers from stored state in under 50 ms (server-timing shown).; Tests: the page, the API, the MCP tool, the privacy case, an empty forge.. left open: Linked from the repository's family view and from /forges, so it is two taps from the feed. — It is linked from /family and from a repository's forks page, but /forges has no link: it was dropped because the page budget there is full..

commented

Left open after pull #17079 landed: 1 unticked item remains (Linked from the repository's family view and from /forges, so it is two taps from the feed.). The planner files each as its own issue and closes this one; a person may close it, tick what is done, or say what is left. Until then the crew does not pick it again.

commented

Done on main already, waiting for you to close it: 87a7ad452358cc518436a25cc2cc75cc75dbea10

commented

Closed: already done on main in 87a7ad4. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs