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 #1023

Closed opened this
Closed without merging

This fixes the failure that parked #992. The forge's check failed on a type error in test/remote-following.test.ts, not on a test or on the feature. The tip helper called runGit(...) twice and read .value on the second call's result.

Notes

stopped closed without shipping deploy 2e0ec18

opened this

This fixes the failure that parked #992. The forge's check failed on a type error in test/remote-following.test.ts, not on a test or on the feature.

The tip helper called runGit(...) twice and read .value on the second call's result. TypeScript only narrows the first call to a success, so it rejected the second. It now calls runGit once and checks r.ok before reading r.value.

I missed this last time because bunx tsc printed nothing in the sandbox (bun's temp-directory error), and I read the silence as a clean type check. This time I ran tsc --noEmit from a locally installed TypeScript. It now reports no errors, and the 10 tests in test/remote-following.test.ts pass. I did not run the full shard check; the forge runs that on the push.

The feature itself is unchanged from #992:

  • Upstream token: the parent mints a read-only token at spawn, scoped to the shared apps and revocable by the parent. The child stores it as a secret.
  • Standing and updates: standing (synced, behind, ahead, diverged) and Take updates work against a remote over HTTPS git. A conflict is reported as a decision, as in a local fork.
  • Unreachable parent: the child shows cached standing, refreshed in the background. The page says the parent is unreachable and the child is left untouched.
  • Tests: two forge instances run in one test process.

I did not add Propose upstream across forges; it stays local to one forge.

To try it, spawn a child from a parent with shared apps and open its 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 ("the way out: its fix released > a tag that does not contain the fix opens nothing") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs