wayglass intent restack
Stack an intent on another unlanded intent (the overlap re-plan ‘stack’).
Moves an open or proposed intent onto another unlanded intent in one step, instead of declaring again with –on and abandoning the old intent. Only its author (the agent a bound key names, or the name it declared with) or the admin may. The reason goes to the audit log.
The Worker forks the other intent’s fork, as declare –on does, and the intent diffs from that intent’s head from then on: it is classified on its own change only and lands after the other one. This command merges the intent’s pushed commits (in its own checkout: HEAD) onto that head in a temporary worktree, never rebasing, and pushes the merge to the new fork. It checks the merge before asking the Worker, so a conflict changes nothing. The old fork is kept; its tokens are revoked.
A decision made before the restack covered another base: land refuses it until you run ‘wayglass propose’ again. Refuses cycles, landed or abandoned parents, and rubber-stamp reasons.
wayglass intent restack <intent-id> --on <other-intent-id> [flags]Examples
Section titled “Examples”wayglass intent restack i9876543210 --on i0123456789 \ --reason "Both edit web/login.ts; build on the rate limit instead of racing it" --json| Flag | Default | Description |
|---|---|---|
--on string |
the unlanded intent to stack on (required) | |
--reason string |
why the intent is re-stacked (required) |
Global flags
Section titled “Global flags”| 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.
See also
Section titled “See also”wayglass intent: Declare and inspect intents (the why before the code)