Skip to content

feat(cli): land and watch through the remote - #135

Open
PiquelChips wants to merge 1 commit into
feat/sync-commandsfrom
feat/sync-remote-landing
Open

PiquelChips wants to merge 1 commit into
feat/sync-commandsfrom
feat/sync-remote-landing

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

What and why

A remote's targets are copies of the remote's chains, which only the remote extends, even when this node is their authority. So landing on them here would fork them.

  • land, land --from and target new go to the remote's queue for every target the remote has. land pushes the stack first, and each fetches the target's chain and the landed records after. Targets only this repository has still land here.
  • targets and land --status show the remote's targets and waiting landings with this repository's own.
  • watch long-polls the remote's events, or this node's with --local.

One thing to know: a landing is decided on the evidence the remote holds. A statement and the statement it supersedes must be sent together, as push does.

Review fix: the watch test reads from --since 0 instead of sleeping.

It follows the engineering standard, which the stack below it adopts: it drops or turns into docs and markers its own plain comments; keeps its docs within 10 lines, with the formats and rules in docs/design.md.

Testing

CI runs just lint, just test and just standard on this commit. Rebuilding the stack checked just standard and just lint on every commit, and just test on the top.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 987e7c3c-ec74-4780-99e4-3a1af84bc8de
Commits

Reviewing files that changed from the base of the PR and between ac474a7 and 5ca0953.

Files selected for processing: 11

  • AGENTS.md
  • README.md
  • apps/origin-src/src/cli.rs
  • apps/origin-src/src/service.rs
  • apps/origin-src/src/targets/mod.rs
  • apps/origin-src/src/workspace/land.rs
  • apps/origin-src/src/workspace/ops.rs
  • apps/origin-src/tests/sync.rs
  • crates/origin-shared/src/landing.rs
  • docs/design.md
  • standard.toml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@PiquelChips
PiquelChips added this pull request to stack #165 November 22, 2026 14:59
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch from c1285c8 to bae7bea Compare November 22, 2026 15:04
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch 3 times, most recently from 2443897 to 1ad5196 Compare November 22, 2026 19:20
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch 4 times, most recently from f683bb8 to a5c0e79 Compare November 23, 2026 15:01
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch 4 times, most recently from a323afb to 08cdd0b Compare November 24, 2026 22:47
@PiquelChips
PiquelChips removed this pull request from stack #165 November 24, 2026 22:57
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch from 08cdd0b to cc2fe2e Compare November 24, 2026 22:58
@PiquelChips
PiquelChips added this pull request to stack #192 November 24, 2026 23:00
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch from cc2fe2e to 553afa1 Compare November 25, 2026 16:21
@PiquelChips
PiquelChips removed this pull request from stack #192 November 25, 2026 17:31
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch from 553afa1 to 986e84e Compare November 25, 2026 17:32
@PiquelChips
PiquelChips added this pull request to stack #199 November 25, 2026 17:35
The chains of a remote's targets are copies of the remote's, which only
the remote extends, even when this node is their authority. So `land`,
`land --from` and `target new` go to the remote's queue for every target
the remote has: `land` pushes the stack first, and each fetches the
target's chain and the landed records after. Targets only this
repository has still land here. A change with no `--onto` lands on the
target its stack is on, which `Store::stack_target` finds.

`targets` and `land --status` show the remote's targets and waiting
landings with this repository's own, and `watch` long-polls the remote's
events, or with `--local`, this node's. A landing is decided on the
evidence the remote holds when it's tried: send a statement together
with the one it supersedes, as `push` does.
@PiquelChips
PiquelChips force-pushed the feat/sync-remote-landing branch from 986e84e to 5ca0953 Compare November 25, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant