sea-lite

v0.7.1
io.github.rafe-walker/sea-lite Checked 1 day ago Published 23 days ago

Work queue for parallel coding agents: leased path-scoped claims, typed links, hash-chained history

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sea_create Create a ticket

Create one ticket (status idea, or triaged = dispatchable now). Returns it plus `possible_duplicates` (similar titles; the create still happens, you decide). `claim_seconds` also claims it and returns a claim_token.

ParameterTypeDescription
title *string
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
assigneestring
bodystring
claim_secondsintegerAlso claim the new ticket for this many seconds and return the token.
dry_runbooleanValidate only; write nothing.
idempotency_keystringReplay-safe: a repeat with the same key returns the first result, writes nothing.
kindstring
prioritystring
statusstringInitial status. `triaged` skips the inbox so sea_next can hand the ticket out immediately.
tagsarray

sea_apply Create tickets and links in one batch

Create up to 50 tickets and 100 links in one all-or-nothing write. Each ticket has a batch-local `ref`; links join refs and/or existing ids. `templates` repeat one ticket per `for_each` value, e.g. a 20-step chain: {for_each: 20, ref: "s{i}", ticket: {title: "Step {i}"}, links: [{from_ref: "{ref}", to_ref: "{prev}", link_type: "depends_on"}]}. Rejected as a whole, every problem listed, on bad or duplicate refs, unknown ids, self-loops, duplicate links or a cycle. Returns {created: {ref: id}, links, idempotent_replay}; verbose: true echoes every id.

ParameterTypeDescription
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
claimsarrayTokens for existing tickets used as from_id.
dry_runbooleanValidate only; the result shows the expanded plan.
idempotency_keystringReplay-safe: a repeat with the same key returns the first result, writes nothing.
linksarray
templatesarray
ticketsarray
verbosebooleantrue: return every ticket and link id in full instead of {created, links, idempotent_replay}.

sea_update Edit a claimed ticket

Edit a ticket you hold (claim_token): title/body/kind/priority/assignee, tags, and/or append a note. Notes are the hand-off channel. expected_version (row_version from sea_get / sea_list) rejects a write on a ticket changed since.

ParameterTypeDescription
claim_token *stringFrom sea_claim / sea_next.
ticket_id *stringId or unique ≥8-char prefix.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
add_tagsarray
assigneeSet the assignee; null clears it.
bodystring
dry_runbooleanValidate only; write nothing.
expected_versionintegerFail with version_conflict unless row_version equals this.
idempotency_keystringReplay-safe: a repeat with the same key returns the first result, writes nothing.
kindstring
notestringAppend a note (progress, findings, hand-off).
prioritystring
remove_tagsarray
titlestring

sea_transition Change a ticket's status

Set status (claim_token). Work track idea → triaged → in_progress → resolved; any active ticket may enter parked | blocked | needs_decision (resume to idea / triaged / in_progress) or a terminal state resolved | wont_fix | duplicate | dropped | merged (no exit; releases the claim; needs confirm: true or the client's confirmation). to=duplicate needs duplicate_of (records a `duplicates` link). `note` appends a note in the same write; `tickets` moves several at once, all or nothing. Rejections carry legal_next.

ParameterTypeDescription
to *string
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
claim_tokenstringFrom sea_claim / sea_next.
confirmbooleantrue: enter a terminal state now (else the client is asked, or gets confirmation_required).
dry_runbooleanValidate only; write nothing.
duplicate_ofstringRequired when to = duplicate; also creates a `duplicates` link.
expected_versionintegerFail with version_conflict unless row_version equals this.
idempotency_keystringReplay-safe: a repeat with the same key returns the first result, writes nothing.
notestringAlso append this note (hand-off) in the same write.
reasonstring
ticket_idstringId or unique ≥8-char prefix.
ticketsarraySeveral tickets (each with its own token) instead of ticket_id + claim_token; all or none.

sea_finish Finish tickets

End your work on a ticket in one write: `outcome` done (→ resolved) | blocked (→ blocked, resumable) | abandoned (→ dropped), a required `note` (what shipped / why), optional `commit` sha; your claim is released and all of it is chained. `tickets` finishes several (each with its own claim_token; all or none). No confirmation prompt.

ParameterTypeDescription
note *stringWhat shipped, or why not.
outcome *stringdone → resolved; blocked → blocked (resumable); abandoned → dropped.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
claim_tokenstringFrom sea_claim / sea_next.
commitstringCommit sha.
dry_runbooleanValidate only; write nothing.
idempotency_keystringReplay-safe: a repeat with the same key returns the first result, writes nothing.
ticket_idstringId or unique ≥8-char prefix.
ticketsarraySeveral tickets (each with its own token) instead of ticket_id + claim_token; all or none.

sea_claim Claim tickets

Lease tickets, all or nothing. Returns one claim_token per ticket (shown once; every write needs it). Leases (default 900 s, max 3600) renew while you call sea-lite tools. already_claimed names the holder and expiry; re-claiming your own rotates the token. `scope.paths` locks the files you will edit (scope_conflict names the holder, ticket, overlap and expiry). `wait_seconds` waits for a held ticket or scope to free up instead (≤ 300 s; wait_timeout names who still holds it).

ParameterTypeDescription
ticket_ids *array
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
lease_secondsintegerLease seconds (default 900, max 3600); renewed while you keep calling sea-lite tools.
scopeobjectWhat you will edit; scope_conflict if someone else holds an overlapping scope.
wait_secondsintegerIf held by someone else, wait up to this many seconds (≤ 300) for it to free up.

sea_refresh Extend a claim lease

Extend your lease to now + extend_by_seconds (default: its lease; max 3600; never shortens). Any sea-lite call renews your claims anyway.

ParameterTypeDescription
claim_token *stringFrom sea_claim / sea_next.
ticket_id *stringId or unique ≥8-char prefix.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
extend_by_secondsintegerExpiry = now + this (default: the claim's lease); never shortens.

sea_release Release a claim

Give a ticket back to the queue (claim_token; leave a `note` saying where you stopped). A release with a note is a hand-off: sea_next gives it to another agent before you (to you only if no other agent is around). Operator role: force: true releases any holder, recorded with your reason.

ParameterTypeDescription
ticket_id *stringId or unique ≥8-char prefix.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
claim_tokenstringRequired unless force is set.
forcebooleanOperator only (--role operator): release regardless of holder.
notestringHand-off note appended to the ticket on release.
reasonstringWhy (force releases should say).

sea_next Claim the next ticket

Atomically pick and claim the next ticket: unclaimed, triaged or in_progress, assigned to you or nobody, not priority parked, all predecessors (blocks / depends_on) terminal, not an epic (kind epic or parent_of an open child); highest priority, in_progress before triaged, then oldest. A ticket you handed off (sea_release with a note) goes to another agent first. Returns ticket + claim_token, or ticket: null with reason nothing_eligible | held | held_by_stale_claim (held[]: holder, claim age, silence, expiry) | handed_off. This project only. `scope.paths` locks the files you will edit. `wait_se…

ParameterTypeDescription
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
include_unassignedbooleanConsider unassigned tickets as well as ones assigned to me.
kindarrayOnly these kinds.
lease_secondsintegerLease seconds (default 900, max 3600); renewed while you keep calling sea-lite tools.
scopeobjectWhat you will edit; scope_conflict if someone else holds an overlapping scope.
tagstringOnly tickets carrying this tag.
wait_secondsintegerIf held by someone else, wait up to this many seconds (≤ 300) for it to free up.

sea_get Read one ticket

One ticket by id or ≥8-char prefix: fields, row_version, claim holder and expiry (never the token), links with the peer's title/status, recent notes, legal_next.

ParameterTypeDescription
id *stringId or unique ≥8-char prefix.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.

sea_list List and search tickets

Filter by status (default: non-terminal), kind, priority, assignee ("me" / "none"), tag, claim state and/or full-text `query`. This project unless `project` says otherwise. Cursor-paginated; view compact (default) omits bodies.

ParameterTypeDescription
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
assigneestringExact assignee; "me" means the calling actor; "none" means unassigned.
claimedstring
cursorstringOpaque cursor from a previous page.
include_terminalbooleanWhen no status filter is given, also return terminal tickets.
kindarray
limitinteger
priorityarray
projectstringDefault: this server's project (plus legacy tickets without one). Another project key, or "*" for every project.
querystringFull-text search over title and body (FTS5; words are OR-ed).
statusarrayOnly these statuses. Default: every non-terminal status.
tagstringOnly tickets carrying this tag.
viewstring

sea_history Chain history for a ticket, or a feed

With ticket_id: its chain events (and links touching it), oldest first. Without: every sea event after since_seq — poll it to watch the queue. `verify` (default true) rechecks every hash.

ParameterTypeDescription
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
limitinteger
since_seqintegerFeed mode: every sea event with seq greater than this.
ticket_idstringEvents for one ticket (its own events and links touching it).
verifybooleanAlso recompute every hash in the chain and report the result.

sea_scope_check Check paths against claim scopes

Would editing these paths collide with a live scope someone else holds (another actor, or you in another session)? Returns {ok, conflicts} naming holder, ticket, overlap and expiry. Needs no claim; your own scopes never conflict.

ParameterTypeDescription
paths *arrayFiles or globs you are about to edit (repo-relative).
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.

sea_stats Per-actor claim accounting

Per actor, from the chain: claims taken / rotated / released / expired / force-released, lease-seconds held, transitions, tickets created, live claims. `since`: 24h, 7d or ISO time. scope_conflict refusals are not counted.

ParameterTypeDescription
actorstringOnly this actor.
actor_idstringActing actor (default: the server --actor). Subagents sharing one server pass their own.
sincestringWindow start: a duration back from now (`24h`, `7d`, `2w`) or an ISO-8601 timestamp. Default: the whole chain.