strip-store: records' store half moves in from agent-tools, on strip-protocol #1

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

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

The store half of agent-tools' records package, split as AGT-85 settled with the agent-tools session; its protocol half is strip-protocol v0.1.0, which this requires. Package stripstore: store would clash with the local variable strip-owner and pr already use.

What is here: Open and Store (the SQLite records and their schema), NewServer/Server with Dispatch, Serve, holds and wakes, Listen and LabelSocket, TakeLock, Import, and the approval, run, cursor, ticket and landing records only strip-owner reads. go.mod requires strip-protocol v0.1.0, golang.org/x/sys v0.49.0 and modernc.org/sqlite v1.61.1, agent-tools' versions.

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

  • Server.dispatch and Server.hold are exported as Dispatch and Hold, so the server satisfies strip-protocol's Local and strip-owner still answers its own calls in process.
  • Code that used the protocol's unexported helpers uses their exported names (ClockAt, Request, Response, PRLink, ...). Store.toCome keeps its search for the last delivered PR and hands the rest to strip-protocol's StepsToCome, the same code moved.
  • TakeLock lives in lock_*.go and Listen/LabelSocket in listen.go; a doc.go carries the package comment.
  • Tests sit with what they exercise; unkeyed protocol literals in them got field names (vet requires it across packages), the quiet-landing test's records helper is ticketRecords (it clashed with the import), and the Low-integrity helper test has its own scenario here.

The socket's methods and JSON are unchanged, so old and new programs talk over the same socket. Verified as strip-protocol's PR says; this repo's own go test -p 1 ./... passes here against strip-protocol v0.1.0.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/AHT-271 The store half of agent-tools' `records` package, split as AGT-85 settled with the agent-tools session; its protocol half is [strip-protocol](https://forgejo.romaine.life/romaine-life/strip-protocol) v0.1.0, which this requires. Package `stripstore`: `store` would clash with the local variable strip-owner and pr already use. What is here: `Open` and `Store` (the SQLite records and their schema), `NewServer`/`Server` with `Dispatch`, `Serve`, holds and wakes, `Listen` and `LabelSocket`, `TakeLock`, `Import`, and the approval, run, cursor, ticket and landing records only strip-owner reads. `go.mod` requires strip-protocol v0.1.0, `golang.org/x/sys` v0.49.0 and `modernc.org/sqlite` v1.61.1, agent-tools' versions. What changed, only where the cut forces it (behaviour is the same): - `Server.dispatch` and `Server.hold` are exported as `Dispatch` and `Hold`, so the server satisfies strip-protocol's `Local` and strip-owner still answers its own calls in process. - Code that used the protocol's unexported helpers uses their exported names (`ClockAt`, `Request`, `Response`, `PRLink`, ...). `Store.toCome` keeps its search for the last delivered PR and hands the rest to strip-protocol's `StepsToCome`, the same code moved. - `TakeLock` lives in `lock_*.go` and `Listen`/`LabelSocket` in `listen.go`; a `doc.go` carries the package comment. - Tests sit with what they exercise; unkeyed protocol literals in them got field names (vet requires it across packages), the quiet-landing test's `records` helper is `ticketRecords` (it clashed with the import), and the Low-integrity helper test has its own scenario here. The socket's methods and JSON are unchanged, so old and new programs talk over the same socket. Verified as strip-protocol's PR says; this repo's own `go test -p 1 ./...` passes here against strip-protocol v0.1.0. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
strip-store: records' store half moves in from agent-tools, on strip-protocol (AHT-271)
All checks were successful
Suite go / check-test-linux (pull_request) Has been skipped
Suite release / scope (pull_request) Successful in 36s
Suite release / finalize (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 32s
Suite default / check-rules (pull_request) Successful in 40s
Suite release / reused-checks (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 38s
Suite go / scope (pull_request) Successful in 34s
Suite release / reserve (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 40s
Suite default / scope (pull_request) Successful in 38s
Suite default / check-fetches (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Successful in 3m55s
Suite go / reused-checks (pull_request) Successful in 13s
merge-queue landed on main
5d37bf9c2b
merge-queue deleted branch strip-store-moves-in 2026-11-29 23:37:29 -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-store!1
No description provided.