strip-protocol: records' client half moves in from agent-tools #1

Merged
merge-queue merged 1 commit from strip-protocol-moves-in into main 2026-11-29 23:25:59 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/AHT-271

agent-tools' records package is split in two, as AGT-85 settled with the agent-tools session: this repo takes the protocol half, still package records, so a program moving off agent-tools changes only its import path. Its store half (the SQLite store and the server) is strip-store's PR, next.

What is here: the message and state types (Note, Target, Delivery, Timing, the Check states, CIJob/CILoad/QueuedPR, stages and steps, every request type), the notices, Hold, Base/Dir, Level/OwnLevel and Process, and the client (Call/CallFor, SocketPath, Start/StartBeside). Its only requirement is golang.org/x/sys v0.49.0; no SQLite.

What changed, and only where the cut forces it (behaviour is the same):

  • The in-process hook: UseLocal takes a Local interface (Dispatch, Hold) instead of *Server, so strip-owner's server, now in strip-store, still answers its own Call and Hold without the socket.
  • Helpers strip-store needs are exported: Request, Response, CallTimeout, ClockAt, Delivery.Carried, TableCell, PRLink, HeadTitle, HoldHeading, RemoteHolding, HeadedHoldPost, and a new NoticeHeaded. StepsToCome is the pure tail of the store's toCome, moved here unchanged. No struct field or JSON name changes, so the socket's methods and messages are byte-identical and old and new programs talk over the same socket (AHT-255 relies on it).
  • The package comment says the store and server are strip-store's.
  • Tests sit with what they exercise; unkeyed struct literals in them got field names, which vet requires across packages. The Low-integrity helper test has its own scenario here.

Verified: built with agent-tools' consumers (pr, owner, strip, spawn, cmd/*) rewritten onto the two packages; vet clean on Windows, Linux and macOS; records' 76 tests split across the two pass with the same outcomes as on agent-tools' main, as do pr's. This repo's own go test -p 1 ./... passes here.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/AHT-271 agent-tools' `records` package is split in two, as AGT-85 settled with the agent-tools session: this repo takes the protocol half, still package `records`, so a program moving off agent-tools changes only its import path. Its store half (the SQLite store and the server) is strip-store's PR, next. What is here: the message and state types (Note, Target, Delivery, Timing, the Check states, CIJob/CILoad/QueuedPR, stages and steps, every request type), the notices, Hold, Base/Dir, Level/OwnLevel and Process, and the client (Call/CallFor, SocketPath, Start/StartBeside). Its only requirement is `golang.org/x/sys` v0.49.0; no SQLite. What changed, and only where the cut forces it (behaviour is the same): - The in-process hook: `UseLocal` takes a `Local` interface (`Dispatch`, `Hold`) instead of `*Server`, so strip-owner's server, now in strip-store, still answers its own `Call` and `Hold` without the socket. - Helpers strip-store needs are exported: `Request`, `Response`, `CallTimeout`, `ClockAt`, `Delivery.Carried`, `TableCell`, `PRLink`, `HeadTitle`, `HoldHeading`, `RemoteHolding`, `HeadedHoldPost`, and a new `NoticeHeaded`. `StepsToCome` is the pure tail of the store's `toCome`, moved here unchanged. No struct field or JSON name changes, so the socket's methods and messages are byte-identical and old and new programs talk over the same socket (AHT-255 relies on it). - The package comment says the store and server are strip-store's. - Tests sit with what they exercise; unkeyed struct literals in them got field names, which vet requires across packages. The Low-integrity helper test has its own scenario here. Verified: built with agent-tools' consumers (pr, owner, strip, spawn, cmd/*) rewritten onto the two packages; vet clean on Windows, Linux and macOS; records' 76 tests split across the two pass with the same outcomes as on agent-tools' main, as do pr's. This repo's own `go test -p 1 ./...` passes here. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
strip-protocol: records' client half moves in from agent-tools, split from its store (AHT-271)
All checks were successful
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 24s
Suite default / check-rules (pull_request) Successful in 26s
Suite go / check-services (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite go / scope (pull_request) Successful in 34s
Suite release / scope (pull_request) Successful in 36s
Suite default / scope (pull_request) Successful in 28s
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 25s
Suite default / reused-checks (pull_request) Successful in 22s
Suite go / check-test-windows (pull_request) Successful in 1m10s
merge-queue landed on main
Suite go / reused-checks (pull_request) Successful in 21s
06f226d69a
merge-queue deleted branch strip-protocol-moves-in 2026-11-29 23:26:00 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/strip-protocol!1
No description provided.