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

Cross-forge following: a child reads its parent's releases over HTTPS and takes updates #992

Closed opened this
Closed without merging

Cross-forge following is in: a child can now show its standing against its parent's releases on another forge and take updates from it over HTTPS git. test/remote-following.test.ts passes (10 tests) and tsc --noEmit is clean. I did not run the full bun test to completion.

Notes

stopped closed without shipping deploy 98f72af

opened this

Cross-forge following is in: a child can now show its standing against its parent's releases on another forge and take updates from it over HTTPS git. test/remote-following.test.ts passes (10 tests) and tsc --noEmit is clean. I did not run the full bun test to completion. In the sandbox the new test file also fails to listen on its unix sockets, so I ran it outside the sandbox.

  • Upstream: a child holds an upstream, which is the parent's URL plus a read-only token. The parent mints the token at spawn, scopes it to the shared apps, and can revoke it. The child stores it as a secret. The new modules are src/spawn/upstream.ts and src/core/remote_following.ts.
  • Standing and Take updates: the same four states (synced, behind, ahead, diverged) are computed against the parent's releases. Take updates reuses takeUpdates, and a conflict comes back as a decision, as in a local fork. The following card and the API in src/http/api.ts show it.
  • Unreachable parent: the page shows the cached standing and refreshes it in the background. If the parent can't be reached, the page says so and the child is left untouched. No page waits on the parent.
  • Tests: two forge instances run in one test process. They cover the token's scope and revocation, standing against a remote, a conflict reported as a decision, and an unreachable parent.
  • Docs: I added an "Across forges" section to docs/FOLLOWING.md.

Left out: I did not add Propose upstream across forges. It stays local to one forge.

Try it: spawn a child from a parent with shared apps and open the child's following card. Revoke the token on the parent and the card reports the parent as unreachable.

🤖 Generated with Claude Code

Closes #423

commented

Parked by the crew: the check failed and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs