- Go 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
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.go | ||
| apply.go | ||
| approval.go | ||
| approval_test.go | ||
| ask.go | ||
| ciline.go | ||
| ciline_test.go | ||
| ciload.go | ||
| client.go | ||
| commit_test.go | ||
| deliver.go | ||
| deliver_test.go | ||
| detach_unix.go | ||
| detach_windows.go | ||
| drop_other.go | ||
| drop_windows.go | ||
| drop_windows_test.go | ||
| events.go | ||
| find.go | ||
| go.mod | ||
| go.sum | ||
| hold.go | ||
| hold_test.go | ||
| holdpost.go | ||
| integrity_other.go | ||
| integrity_windows.go | ||
| integrity_windows_test.go | ||
| land.go | ||
| lowpeer.go | ||
| note.go | ||
| notice.go | ||
| notice_test.go | ||
| own.go | ||
| README.md | ||
| redial.go | ||
| redial_test.go | ||
| server.go | ||
| start_test.go | ||
| timing.go | ||
| wait.go | ||
| wakehook.go | ||
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, theCheckstates,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/CallForover the socket atSocketPath(),Holdfor a live hold,Startto start strip-owner when none answers,Find/StartProgramto 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, andLevel/OwnLevelfor 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,rerunandstopfail 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,
UseLocalhandsCallandHoldto its own server (anyLocal), 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.