Take over a flight
Use this guide when a flight needs a person rather than another attempt by the agent: the agent ran out of time and handed the work over, it is stuck on something a person can resolve quickly, or the work is easier to finish by hand. To take over a flight is to hold it exclusively, continue the work, and then hand it back with an outcome. The guide also covers stopping a flight that should not continue at all.
Prerequisites
Section titled “Prerequisites”- gg is signed in to the organisation’s control plane. A takeover is recorded against the signed-in person, so it cannot be done from a machine’s own credentials.
- The flight’s number, such as
GG-42.gg flightsandgg gateslist them.
1. Take the flight
Section titled “1. Take the flight”Run gg take with the flight:
gg take GG-42gg first claims the flight for the signed-in person, then prints what the flight tried and ruled out so far, so the work can continue from where it stopped. After that, gg adds three notes:
- the time the hold lasts until, in UTC;
- how soon before that it must be renewed, or the flight is released and someone else may take it;
- the exact command for handing it back, with the list of outcomes.
Exactly one person holds a flight at a time, which stops two people working on the same thing. If someone else already holds it, gg refuses and names who holds it, since when and until when. Ask that person, or try again after the hold ends. Nothing is changed by a refused takeover.
gg take fetches no code. It grants the hold and prints the record of the flight so far.
2. Keep the hold
Section titled “2. Keep the hold”To renew the hold, run gg take GG-42 again before it lapses. The same person taking a flight they already hold continues the same hold, and only its end time moves.
A hold expires on the clock, never on a judgement about whether the person is still working. A hold that lapses returns the flight, and another person may take it.
3. Hand it back
Section titled “3. Hand it back”When the work is done, or the person is stopping, hand the flight back with --return and one of three outcomes:
| Outcome | Meaning |
|---|---|
completed |
The person finished the work. |
abandoned |
The person stopped, and the work stands where they left it. |
handing-back |
The person wants the agent to carry on. |
Add --note to say something about it for whoever reads the flight next:
gg take GG-42 --return completed --note "Fixed the expiry check and added a test for it."gg records the outcome and prints the flight’s log, where the handback appears as an entry naming the person. The entry can take a moment to appear; run gg log GG-42 again if it is not there yet.
If the hold moved on to someone else before the handback, gg refuses and records nothing, because a decision recorded against another person’s hold would attribute their work to the wrong person. An outcome other than the three above is refused by name.
Stop a flight instead
Section titled “Stop a flight instead”When the flight should not continue at all, ground it. A grounded flight is one a person stopped while it could still have been done:
gg ground GG-42 "The fleet cannot serve this environment yet."The reason is required, because it is what tells a later reader why work that could have been done was not. gg prints the flight in its ending.
Grounding is not withdrawing. A flight is withdrawn when the question it was answering stopped mattering, such as a work item that was closed. gg has no command that withdraws a flight; when a flight will not move and the question is still real, grounding is the accurate record.
The same steps in the console
Section titled “The same steps in the console”Run gg with no arguments, then:
- Taking over and handing back are not yet offered in the console. Use
gg takein a terminal. - On an open flight,
xgrounds it. The console asks first:ygrounds it, andescleaves it flying. yon the main screen flies a new flight by hand: the person does the work themselves, on their own machine, under the same rules as any other flight.
Related
Section titled “Related”- Answer a gate: approving or rejecting the work instead of taking it over.
- Anatomy of a flight: how a flight ends, and which endings belong to people.
- The envelope: loops:
on-exhaustion, which decides who takes over when the agent’s time runs out.