Drop the keeper's and config's take-over verbs with the controller's sources
mesh-sdk drops compare, take-over and hand-back from the keeper's and config's seats (ADR 0590): there is no controller to compare with or hand back to. mesh-conditions loses those verbs, its take-over key and asks; mesh-config reads its own sources always and pull-declares is gone; and mesh-hand-acts no longer names the controller's log (issue 1126). Claude-Session: https://claude.ai/code/session_01NcbgfJ9Gum47zkFKWRaovL
This commit is contained in:
@@ -30,11 +30,10 @@ import (
|
||||
|
||||
// The seat, the log, the states and the event, as mesh-sdk's handacts names them.
|
||||
const (
|
||||
Module = handacts.Module
|
||||
Seat = handacts.Seat
|
||||
ActsLog = handacts.ActsLog
|
||||
WarrantsState = handacts.WarrantsState
|
||||
ControllerActs = handacts.ControllerActs
|
||||
Module = handacts.Module
|
||||
Seat = handacts.Seat
|
||||
ActsLog = handacts.ActsLog
|
||||
WarrantsState = handacts.WarrantsState
|
||||
// RouterRecords is the router's record of every ask, `<asker>.<ask>` (ADR 0259): the warrant is read there.
|
||||
RouterRecords = "messenger.asks"
|
||||
RecordedEvent = handacts.EventRecorded
|
||||
|
||||
@@ -248,8 +248,8 @@ func TestHandActsReadsItsOwnLogAlone(t *testing.T) {
|
||||
put(ActsLog, VerbWarrant, CauseOperatorAnswer, "the operator", time.Hour)
|
||||
put(ActsLog, VerbWarrant, CauseOperatorAnswer, "the operator", 2*time.Hour)
|
||||
put(ActsLog, VerbRecord, "config", "ace.mesh-config", 30*24*time.Hour)
|
||||
put(ControllerActs, VerbRecord, "never-read", "ace.old", time.Hour)
|
||||
store.keysErr[ControllerActs] = errors.New("the controller's bucket must not be read")
|
||||
put(controllerActs, VerbRecord, "never-read", "ace.old", time.Hour)
|
||||
store.keysErr[controllerActs] = errors.New("the controller's bucket must not be read")
|
||||
cases := []struct {
|
||||
name string
|
||||
days int
|
||||
@@ -291,12 +291,12 @@ func TestHandActsReadsItsOwnLogAlone(t *testing.T) {
|
||||
// read and write nothing of the controller's bucket nor of the log (774/S10; research 072 row 26).
|
||||
func TestTheCopyOfTheControllersHandActsIsOver(t *testing.T) {
|
||||
l, store, _, now := newLog()
|
||||
store.keysErr[ControllerActs] = errors.New("the controller's bucket must not be read")
|
||||
store.keysErr[controllerActs] = errors.New("the controller's bucket must not be read")
|
||||
st, err := l.Copy("test", true)
|
||||
if err != nil || st.Done || !strings.Contains(st.Said, "no longer read") {
|
||||
t.Errorf("without a marker: %+v, %v", st, err)
|
||||
}
|
||||
_ = store.Put(CopiedState, CopyKey, CopyMarker{At: *now, By: "start", Source: ControllerActs, Found: 606, Copied: 606})
|
||||
_ = store.Put(CopiedState, CopyKey, CopyMarker{At: *now, By: "start", Source: controllerActs, Found: 606, Copied: 606})
|
||||
st, err = l.Copy("test", false)
|
||||
if err != nil || !st.Done || st.Marker.Copied != 606 || !strings.Contains(st.Said, "no longer read") || len(store.logKeys(ActsLog)) != 0 {
|
||||
t.Errorf("with a marker: %+v, %v", st, err)
|
||||
@@ -305,3 +305,6 @@ func TestTheCopyOfTheControllersHandActsIsOver(t *testing.T) {
|
||||
t.Errorf("copied says %+v, %v", s, err)
|
||||
}
|
||||
}
|
||||
|
||||
// controllerActs is the controller's hand-act log as it was named: a test reads it never.
|
||||
const controllerActs = "mesh-controller.hand-acts"
|
||||
|
||||
Reference in New Issue
Block a user