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

Propose upstream says why the origin held it; an invited contributor may fork that repository (#16416) #16417

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

Found by the forge-to-forge experiment: every proposal from a new account answered an opaque originrefused. The origin's own refusal words now reach Talk and the terminal (new-account hold: "…holds forks by accounts newer than 7 days; ask the owner to invite you, then propose again").

Notes

shipped production is serving it deploy 3fede26

opened this

Found by the forge-to-forge experiment: every proposal from a new account answered an opaque origin_refused. The origin's own refusal words now reach Talk and the terminal (new-account hold: "…holds forks by accounts newer than 7 days; ask the owner to invite you, then propose again"). An account invited to a repository as a contributor may fork that one repository; strangers' new accounts, other forks and new repositories stay held; contributors still cannot write. No setting changed.

🤖 Generated with Claude Code

Changes requested — before the latest push

The behaviour looks right. A held fork is named with its invite in one sentence, and the plan asks the origin first. The contributor exemption is scoped to the one parent repository. A test covers the held, invited, other-repo and stranger cases. I found no security problems: the origin's words are control-stripped and capped at 300 characters, and permissions.fork only reveals the caller's own standing. I did not fetch the preview.

One change is needed:

  1. src/origins/providers/http.ts: refusalSaid was inserted between the existing doc comment on rate-limit handling ("Either way what matters is one thing: when to come back.") and the code it described, so that comment now sits on the wrong function. Put refusalSaid and its doc comment above that block, or give it a different home, so the original comment goes back next to the code it describes.

Optional, not required: forkHeldWords computes the "7 days" from this forge's own NEW_FOR_MS, but the sentence is about the origin's forge. A future setting on the origin that differs would make it wrong.

Approved

Clean. The exemption is scoped to forking the repository the contributor was invited to, and the test shows other repos, createRepo and strangers are still held. The origin's refusal text is stripped of control characters and capped at 300 characters before it is shown. permissions.fork reports only the viewer's own state. The plan step now refuses before the yes, and the test covers both the plan-time and yes-time paths. Docs are in docs/features/contributors.md, not README. No new dependency. Nothing blocking.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs