Skip to content

wayglass sync

Merge the current trunk into the intent’s checkout, before pushing and proposing again.

Run in the intent’s own clone (the checkout that declared it, or one whose HEAD contains the intent’s pushed head). Asks the Worker for a 60-second read-only trunk token, fetches the trunk head into refs/wayglass/trunk and the trunk’s why-notes into refs/notes/wayglass-trunk, then merges the trunk into the current branch. It merges, never rebases, so commits already pushed to the fork keep their ids. The token reaches git through its environment, never argv, a URL or disk, and sync checks .git afterwards.

This is the recovery when land refuses with policy_changed (the trunk’s policy moved after the decision) or land_conflict (the change no longer merges into the trunk). A conflict stops with sync_conflict, lists the files and leaves the merge in progress: resolve them, git add, git commit –no-edit. Then run wayglass push and wayglass propose, so the change is decided again against the current trunk and its policy. The proposal covers only what landing would add to the trunk: merged trunk files do not count, edits made while resolving the merge do.

A stacked intent takes the trunk through its parent: sync refuses until the parent has landed.

Terminal window
wayglass sync [intent-id]
Terminal window
wayglass sync
wayglass sync i83f41dd279 --json
Flag Default Description
--json print a JSON envelope for agents (no colour, prompts or spinners)

Exit codes and the --json envelope are the same for every command; see For agents.

  • wayglass: Zero Trust for agentic development