The strip's protocol: its message and state types, notices, holds, and the client that reaches strip-owner over its socket (records' client half, from agent-tools, AGT-85)
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nelson 6e023dfde5
All checks were successful
Suite release / scope (push) Successful in 5s
Suite release / reserve (push) Has been skipped
Suite release / check-manifest (push) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / check-package (push) Has been skipped
Suite release / deliver (push) Has been skipped
Suite release / deploy-image (push) Has been skipped
Suite release / deliver-prune (push) Has been skipped
Suite release / module (push) Successful in 17s
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (push) Has been skipped
Suite release / finalize (push) Has been skipped
Suite release / reused-checks (push) Has been skipped
Suite release / publish (push) Has been skipped
account-reading retries on a dropped connection (ATC-252) (#7)
2026-12-02 09:31:39 -08:00
account.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
apply.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
approval.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
approval_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
ask.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
ciline.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
ciline_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
ciload.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
client.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
commit_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
deliver.go A take-up on the suites says merge-queue bumps its main, from Target.QueueBumps (MQ-8) (#6) 2026-12-01 00:51:27 -08:00
deliver_test.go A take-up on the suites says merge-queue bumps its main, from Target.QueueBumps (MQ-8) (#6) 2026-12-01 00:51:27 -08:00
detach_unix.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
detach_windows.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
drop_other.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
drop_windows.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
drop_windows_test.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
events.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
find.go Find: the app named for a program comes first, over a shared app still shipping it (AGT-87) (#4) 2026-11-30 00:39:47 -08:00
go.mod strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
go.sum strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
hold.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
hold_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
holdpost.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
integrity_other.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
integrity_windows.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
integrity_windows_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
land.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
lowpeer.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
note.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
notice.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
notice_test.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
own.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
README.md A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
redial.go account-reading retries on a dropped connection (ATC-252) (#7) 2026-12-02 09:31:39 -08:00
redial_test.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00
server.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
start_test.go Find: the app named for a program comes first, over a shared app still shipping it (AGT-87) (#4) 2026-11-30 00:39:47 -08:00
timing.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
wait.go strip-protocol: records' client half moves in from agent-tools (#1) 2026-11-29 23:25:57 -08:00
wakehook.go A call whose connection drops is asked again of the strip-owner that comes back (AGT-88) (#5) 2026-11-30 01:14:06 -08:00

strip-protocol

The strip's protocol: what every program that talks to strip-owner shares. strip-owner holds the strip's records (which conversation owns which PR, each PR's state and delivery, each conversation's work packages) and answers over its socket; tmux-strip, work-item-management, claude-pane, the PR engine and the rest reach it with Call.

  • The message and state types: Note, Target, Delivery, Timing, the Check states, CIJob/CILoad/QueuedPR, the stages and steps, and every request (WaitRequest, OwnRequest, GiveRequest, ApprovalRequest, RerunRequest...).
  • Notices: Notice, NewNotice, Code, WithClaude, Link, the form every strip message takes.
  • The client: Call/CallFor over the socket at SocketPath(), Hold for a live hold, Start to start strip-owner when none answers, Find/StartProgram to find and start any house program where at-update installed it (its records in %LOCALAPPDATA%\at-update\registered, the app named for the program first, then PATH), never beside the caller, and Level/OwnLevel for the integrity a caller runs at.
  • Restarts: a call whose connection drops before its answer, as when strip-owner restarts under it, dials again (starting strip-owner where the caller may) and asks again, for up to RestartWithin (2 minutes) after the drop. Reads, waits (wait, WaitWake), holds and the keyed writes (note, land, own, remote-wait, account, changed, check-hold) are asked again; give, save, ask, approval, rerun and stop fail instead, saying whether they happened is unknown. A wait asked again ends with the new strip-owner's count, so its caller reads and waits again. An answer, an error answer included, is never asked again.
  • The in-process hook: inside strip-owner, UseLocal hands Call and Hold to its own server (any Local), so it answers itself without the socket.

The package is named records, so a program moving off agent-tools changes only its import path. The SQLite store and the server are strip-store, which only strip-owner and claude-pane need. The two were agent-tools' records package until the split (AGT-85, AHT-258); the socket's methods and JSON are unchanged by it, so old and new programs talk over the same socket.

Using it

require forgejo.romaine.life/romaine-life/strip-protocol v0.1.0
import "forgejo.romaine.life/romaine-life/strip-protocol"

var m records.Mark
err := records.Call("wait", records.WaitRequest{Repo: "romaine-life/pr"}, &m)

Testing

go test ./.... The client tests start no strip-owner and never reach the live socket; the integrity tests run a copy of the test binary at Low integrity on Windows.

Shipping

A library: the release-module topic in pipeline-templates' fleet.json tags each merge that changes the code, and every fleet repository whose go.mod requires it gets a take-up. Forgejo pushes it to its public GitHub copy, which proxy.golang.org serves to builds outside CI.