The image seat's published and refused reach one instance of the module, not necessarily the one whose copy waits, so an outcome held only in memory was dropped. The instance that hears it now writes it into the copy's key, and the copy reads it there, woken by its watch of the state; build_image_mirror_waits reads the state. Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
22 lines
783 B
Go
22 lines
783 B
Go
package main
|
|
|
|
// What this module keeps on the bus, announced from its code (novox/hq ADR 0495 §2 §5; issue 1790): every state it
|
|
// keeps, each readable by others, since another module reads each today (the builder reads steps; gitea reads keys). A state of its own that it
|
|
// did not name here is refused at the call (stdio.Keeps).
|
|
|
|
import (
|
|
stdio "git.novox.be/novox/mesh-sdk/go"
|
|
"git.novox.be/novox/mesh-sdk/go/announce"
|
|
)
|
|
|
|
// Kept are the states the module keeps.
|
|
var Kept = []announce.State{
|
|
{Name: "keys", Readable: true},
|
|
{Name: "steps", Readable: true},
|
|
{Name: "pauses", Readable: true},
|
|
{Name: MirrorWaitsState},
|
|
}
|
|
|
|
// keepStates announces Kept as this module's (stdio.Keeps): main calls it before it serves.
|
|
func keepStates() error { return stdio.Keeps(Kept...) }
|