Record a module's act on the operator's warrant from the router's own record (hq ADR 0274)
A module that asks the operator acts with its own grants, and the hand-act log is where a person's decisions are read back. The new verb warranted records who chose, how and with which proofs from the router's record, never the caller's word, once per ask however many instances ask.
This commit is contained in:
@@ -536,6 +536,11 @@ func (a *verbArguments) commandLine() ([]string, error) {
|
||||
argv = append(argv, "--condition", c)
|
||||
}
|
||||
return argv, nil
|
||||
case "warranted":
|
||||
if err := need("asker", "ask", "what"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return []string{"hand-act", "warrant", "--asker", str("asker"), "--ask", str("ask"), str("what")}, nil
|
||||
case "hand-acts":
|
||||
argv := []string{"hand-acts", "--json"}
|
||||
if d := str("days"); d != "" {
|
||||
@@ -935,6 +940,8 @@ func repairingCommand(argv []string) string {
|
||||
return "plans " + argv[1]
|
||||
case argv[0] == "broker" && len(argv) > 1 && argv[1] == "consumer-reset":
|
||||
return "broker consumer-reset"
|
||||
case argv[0] == "hand-act" && len(argv) > 1 && argv[1] == "warrant":
|
||||
return "" // the router's record of a person's answer, never a repair (novox/hq ADR 0274)
|
||||
case argv[0] == "hand-act" && len(argv) > 1 && argv[1] == "drill":
|
||||
return "hand-act drill"
|
||||
case argv[0] == "hand-act":
|
||||
|
||||
Reference in New Issue
Block a user