bus5 B5 (A-107): the keeper's process answers mesh-broker's snapshot verbs itself through AnswerSeat
snapshot-get, snapshot-restore, snapshot-restore-cancel and snapshot-remove are answered by the keeper's process with the proved caller; it publishes snapshot-get's chunks and hears their acks on its own subscription, and acts at once with no hand-over through requests (the record of a running restore is written before it runs). The tools bundle keeps its tools, nats_snapshots among them. The protected refusal and the whole test's case (send, restore in place, removal) stay. Builds: design 47 G A-107 (G-20-lead-answers), §681 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
|
||||
stdio "git.novox.be/novox/mesh-sdk/go"
|
||||
"nats-tools/internal/busarchive"
|
||||
"nats-tools/internal/keeper"
|
||||
)
|
||||
|
||||
func str(description string) map[string]any {
|
||||
@@ -168,8 +169,8 @@ func main() {
|
||||
// them.
|
||||
var ReadingVerbs = []string{"list", "show", "check", "orphans"}
|
||||
|
||||
// SnapshotVerbs are the verbs this bundle serves for the keeper's snapshots (design 47 G §681, A-45): the bus module answers them
|
||||
// and hands the work that needs the bus and the files to the keeper through the state requests (snapshots.go).
|
||||
// SnapshotVerbs are the verbs of the seat mesh-broker the keeper's process answers (design 47 G §681, A-107), over the bus through
|
||||
// process.Conn.AnswerSeat (snapshots.go); the tools bundle serves none of them.
|
||||
var SnapshotVerbs = []string{"snapshot-get", "snapshot-restore", "snapshot-restore-cancel", "snapshot-remove"}
|
||||
|
||||
// Events are the seat mesh-broker's events (ADR 0595 §6, ADR 0620 §2): said on the seat's subjects on the shared events stream
|
||||
@@ -195,6 +196,6 @@ func allTools() []stdio.Tool {
|
||||
out = append(out, keeperHealthTool(StatusInState, HeldInState, jsz))
|
||||
out = append(out, readTools(jsz, LiveMsgGet(LiveBus()))...)
|
||||
rs := RequestsInState()
|
||||
out = append(out, snapshotTools(rs, liveSnapshots())...)
|
||||
out = append(out, snapshotListTool(rs, int(number(os.Getenv, "MESH_NATS_SNAPSHOT_KEEP_DAYS", keeper.DefaultSnapshotKeepDays)))...)
|
||||
return append(out, requestTools(rs)...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user