A-8 pending: an acted, unrecorded ask is pending in the runner's findings-stated until warranted is made again
At each start (and when the hand-act seat's holder is heard again) the gate pends each acted, unrecorded ask's call-unanswered key in its held writer, bound five minutes, and ends the pending once its warranted is made again, so a restart neither clears nor raises the condition of a run still unrecorded. Builds: design 46 7-approval-mark §16; design 47 G §384; lead answer A-154 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
This commit is contained in:
@@ -7,6 +7,7 @@ import (
|
||||
|
||||
condseat "git.novox.be/novox/mesh-contracts/health-and-repair/go/seats/meshconditions"
|
||||
"git.novox.be/novox/mesh-sdk/go/keys"
|
||||
"git.novox.be/novox/mesh-sdk/go/views"
|
||||
|
||||
catalogseat "git.novox.be/novox/mesh-delivery/contracts/go/seats/meshcatalog"
|
||||
"git.novox.be/novox/mesh-sdk/go/seatdef"
|
||||
@@ -128,7 +129,21 @@ func TestTheMarks(t *testing.T) {
|
||||
}
|
||||
|
||||
// findings is the runner's held writer as a fixture: each finding raised now, by id.
|
||||
type findings struct{ raised map[string]string }
|
||||
type findings struct {
|
||||
raised map[string]string
|
||||
// pends are the keys pending in the held writer's statement; pended every key ever pended.
|
||||
pends map[string]views.PendingKey
|
||||
pended []string
|
||||
}
|
||||
|
||||
func (f *findings) Pend(p views.PendingKey) {
|
||||
if f.pends == nil {
|
||||
f.pends = map[string]views.PendingKey{}
|
||||
}
|
||||
f.pends[p.Key] = p
|
||||
f.pended = append(f.pended, p.Key)
|
||||
}
|
||||
func (f *findings) Judged(key string) { delete(f.pends, key) }
|
||||
|
||||
func (f *findings) Write(_ context.Context, x condseat.Finding) error {
|
||||
if f.raised == nil {
|
||||
|
||||
Reference in New Issue
Block a user