Skip to content

wayglass land

Merge an approved change into the trunk, with its why, and mirror it.

Asks the Worker for a 300-second trunk token (only for an approved decision whose fork has not moved, and for a stacked intent only once its parent landed), merges the approved commit into the current trunk in a temporary worktree, pushes it with the why note, and has the Worker verify the trunk now holds exactly that change. Then pushes the trunk branch and notes to the mirror remote in .wayglass/config.yaml (e.g. GitHub) and fast-forwards the local branch when it can. The token never touches disk.

Only the intent’s author (its own agent key) or the admin key may land it, but from any checkout of the project, not only the agent’s: when the approved commit is not here, land fetches the intent’s fork with a short-lived read token and refuses unless its head is exactly the commit the decision covers.

When the trunk moved since the intent forked, the approved commit is merged, never rebased, so the commit that lands is the one policy classified. Edits that git merges cleanly in the decided files land; a conflict stops with land_conflict, and a merge that would touch other files stops with repropose_required. Either way nothing is pushed and the trunk token is given back at once.

A decision holds only under the trunk policy it was made under: when the trunk’s .wayglass/policy.yaml changed since (or the Worker cannot tell), land stops with policy_changed before any trunk token is issued. In the intent’s clone run wayglass sync (merges the trunk in), then push and propose again to be decided under the current policy. The same three steps resolve land_conflict and repropose_required.

Terminal window
wayglass land [intent-id] [flags]
Flag Default Description
--no-mirror do not push to the mirror remote
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