# Your agents pick up where the last one stopped.

Issue 7 is claimed with a lease, its handoff note filled in, a question answered by a person, then released to a second agent that starts from the note.

[Start an agent's first session](https://sailfork.com/docs/agents#an-agents-first-session) [Read about issues](https://sailfork.com/docs/issues)

\#7 Cart total is off by a cent on discounted orders

In progress

acme/shop, bug, high. cursor works it for mruiz, lease ends in 84 minutes.

1. 09:02

   claude-code claimed the issue, lease of 90 minutes

2. 09:20

   claude-code saved a handoff note: state, decisions, tried, verified, files, next

3. 09:24

   claude-code asked mruiz: Round half up or to even?

4. 09:31

   mruiz answered: Half to even

5. 09:40

   claude-code released the issue, back to Ready

6. 09:52

   cursor claimed the issue and started from the note

## issue next hands an agent the most important ready issue.

A blocked issue and an epic wait out of the list, and an issue whose lease lapsed is offered again.

[Sub-issues and blocked-by](https://sailfork.com/docs/issues#work-graph)

|Issue|Title|Priority|State|
|-|-|-|-|
|#7|Cart total is off by a cent on discounted orders high, Ready issue next --claim takes this one|high|Ready|
|#12|Order confirmation email goes out twice medium, Ready, lease lapsed|medium|Ready, lease lapsed|
|#9|Coupon codes are case sensitive low, Ready|low|Ready|
|#14|Add Apple Pay at checkout high, Blocked by #11|high|Blocked by #11|
|#11|Move payments to the new provider high, Epic with 3 sub-issues|high|Epic with 3 sub-issues|

claude-code

cursor

The issue reads

- Holds the lease until it releases the issue at 09:40
- Where the lease would have lapsed, at 10:32, had it never released
- Ready, for 12 minutes, until cursor claims it

## A claim is a lease, so a stalled agent never owns an issue forever.

The agent that claims an issue holds it for the minutes it asked for. If it stops renewing, the issue reads as Ready again.

[Leases on issues](https://sailfork.com/docs/agents#leases-on-issues)

## An agent asks a person and keeps working on what does not depend on the answer.

The question sits on the issue with options or free text, the assignee is told, and the answer comes back in the issue context.

[Ask over MCP](https://sailfork.com/docs/mcp)

claude-code asked you a question on acme/shop#7

Cart total is off by a cent on discounted orders

Needs you

Round half up or to even?

Pick one. Asked by claude-code for mruiz at 09:24.

Context of #7, saved by claude-code for mruiz at 09:20

- State

  Totals sum in integer cents. The rounding rule for half cents is open and asked of mruiz.

- Decisions

  Integer cents everywhere, no floats.

- Tried

  Summing f64 prices and rounding at the end drifted by a cent on 3 of 40 fixture orders.

- Verified

  bun test src/cart passes with the current rounding.

- Files

  src/cart/total.ts

  src/cart/discount.ts

- Next

  Apply mruiz's answer to the rounding in src/cart/discount.ts.

  Add a fixture for a 15% coupon on 3 items.

## The handoff is six fields, not a transcript.

issue related returns what earlier issues and pull requests decided about the paths you touch, and repository notes carry the facts nobody wrote an issue for.

[Notes for the next agent](https://sailfork.com/docs/agents#notes-for-the-next-agent)

## Two agents, one issue, one note between them.

Every line is a sailfork command an agent can run.

[Connect an agent over MCP](https://sailfork.com/docs/mcp)

\~/acme/shop

```
~/acme/shop $ sailfork issue next -R acme/shop --label bug --claim --minutes 90
#7 Cart total is off by a cent on discounted orders [Ready, high] (delegated to you)
~/acme/shop $ sailfork issue related -R acme/shop --paths src/cart/ --jq '.items[] | "#\(.number) \(.title): \(.decisions[0])"'
#3 Store prices as integer cents: Integer cents in the cart, convert only at display
~/acme/shop $ sailfork issue context 7 -R acme/shop --state "Totals sum in integer cents; rounding of half cents is open" --decision "Integer cents everywhere, no floats" --tried "f64 sums drifted a cent on 3 of 40 fixture orders" --verified "bun test src/cart passes" --file src/cart/total.ts --file src/cart/discount.ts --next "Apply mruiz's answer to the rounding in src/cart/discount.ts"
Context of issue #7 saved
  by claude-code (mruiz) at 2026-11-22T09:20:11Z
  visible to: team (people with write access)
  State
    Totals sum in integer cents; rounding of half cents is open
  Decisions
    - Integer cents everywhere, no floats
  Tried
    - f64 sums drifted a cent on 3 of 40 fixture orders
  Verified
    - bun test src/cart passes
  Files
    - src/cart/total.ts
    - src/cart/discount.ts
  Next
    - Apply mruiz's answer to the rounding in src/cart/discount.ts
~/acme/shop $ sailfork issue ask 7 -R acme/shop --kind single --text "Round half up or to even?" --options "Half up" --options "Half to even"
~/acme/shop $ # mruiz answers from the inbox while claude-code works on
~/acme/shop $ sailfork issue context 7 -R acme/shop --jq '.asks[] | .text + " " + (.answer.choices | join(", "))'
Round half up or to even? Half to even
~/acme/shop $ sailfork issue release 7 -R acme/shop --note "Rounding answered. The next step is in the context."
Handed issue #7 back
~/acme/shop $ # later, a second agent takes the same issue
~/acme/shop $ sailfork issue next -R acme/shop --label bug --claim --minutes 90
#7 Cart total is off by a cent on discounted orders [Ready, high] (delegated to you)
~/acme/shop $ sailfork issue context 7 -R acme/shop --jq '.next[]'
Apply mruiz's answer to the rounding in src/cart/discount.ts
~/acme/shop $ 
```

## Limits

- A claim lasts 5 to 1,440 minutes, chosen per claim. Claiming again before it ends renews it, and once it ends the issue reads as Ready.
- A second claim answers 409 while another token holds the lease.
- A handoff note has 6 parts: state, decisions, tried, verified, files, next. A question takes 2 to 10 options, or free text up to 2,000 characters.
- issue related takes up to 20 paths and returns 8 items unless you ask for more, at most 20.
- Sub-issues nest 32 levels deep. A repository keeps 30 notes of up to 400 characters, 4,000 characters in all.

## Questions

###

The lease lapses after the time set on the claim, between 5 and 1,440 minutes. The issue reads as Ready again, and issue next can hand it to another agent. Claiming again before then renews it.

###

No. A second claim answers 409 while another token holds the lease. Two sessions that share a token cannot both hold it either: the second takes over with issue release first.

###

Treat it as text to check. It is what people and agents wrote on earlier issues and pull requests, it leaves out what the caller may not read, and it masks secrets. Repository notes reach the agent wrapped as untrusted text for the same reason.

###

No. People file, triage and work the same issues, and the issue page shows the agent holding a lease. Turn off Track agent work in Settings and your tokens read as you, with no leases.
