Skip to content
Myr

Say a fork's tags are no one's, not the platform's

Before adoption: this commit came in with the history the project adopted, so no landing records it.

- Review of 1103: parse.ts' directPush doc comment and parse.test.ts' row comment said tags are written by the platform, and custody's header said the platform writes "those refs", tags included. The platform writes a fork's verdict notes and merge refs; no one writes its tags. The comments now say so, matching branchesOnly's own comment. - No behaviour change; bun run fix and bun run verify pass.

authored by oscabriel · committed by oscabriel · parent d219b92 · Browse files · 3 files+6 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+6 added−5 removed

  • tests:+1 added−1 removed
  • other:+5 added−4 removed

3 files+6 added−5 removed

modified:apps/platform/src/adapters/custody.ts+3 added-2 removed
7 unmodified lines
8 * (`firstPusher`); a claim's fork takes its claimant's pushes while the claim9 * is live, and a decider's commits on top when they finish its answer; a10 * working fork takes its owner's. A fork takes branches only: a push of its11 * notes, a tag or the platform's own refs is `DirectPush`, whoever makes it,12 * and refuses the whole push. The platform writes those refs straight to13 * the store (`RepoHost.push`, the Lander), never through the gateway.12 * and refuses the whole push. The platform writes its notes and merge refs13 * straight to the store (`RepoHost.push`, the Lander), never through the14 * gateway; no one writes a fork's tags.15 * `ProjectApi` has no read of the push facts the gate's parse stage takes16 * (the policy, the ask, the claim), so `admit` asks the claimant's own17 * `status` and leaves the full parse to `review`, where `recordPush` runs it.18 *
414 unmodified lines
modified:packages/gate/src/stages/parse.ts+2 added-2 removed
modified:packages/gate/test/parse.test.ts+1 added-1 removed
223 unmodified lines
224 }),225 name: "a push to a layer's repo, which W6 opens to its writers",226 refusals: [new DirectPush({ ref: main })],227 },228 // A fork takes branches only: every other ref is the platform's to write.228 // A fork takes branches only: every other ref is the platform's or no one's.229 {230 facts: testFacts({ ref: tag }),231 name: "the claimant's push of a tag to their claim's fork",232 refusals: [new DirectPush({ ref: tag })],
34 unmodified lines