Use delegated approvals

As a delegatee, I want an approval certificate to name my exact event and be consumed by the corresponding model operation.

These executable statement-model calls preserve the source boundary. Lifecycle synchronization actions do not bypass Checkpoint funding or evidence guards. The theorem statements remain unproved.

Examples below are model fixtures. Their oracle fields describe synthetic verification outcomes; they are not evidence accepted from production callers. The input shown includes common fixture context as well as the call.

flowchart LR
  Caller[Caller] -->|Supplied published evidence| Assessment[Evidence assessment]
  Assessment -->|Missing required evidence| Unknown[unknown]
  Assessment -->|Complete model inputs| Model[Model operation]
  Model -->|Predicate fails| Refused[Named refusal]
  Model -->|Predicate holds| Result[State, flow or verdict]

Advance Delegated

As a caller, I want to consume approval for a later delegated establishment event.

Operation: delegation.advanceDelegated. The corpus contains 2 observations.

Named refusals:

  • delegation.advanceDelegated-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.advanceDelegated",
    "child": 3,
    "ev": {
      "nonce": 2,
      "sn": 10,
      "toad": 2
    }
  },
  "state": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20002,
        "childSn": 10,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 1,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            }
          ],
          "latest": 10,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.advanceDelegated",
    "child": 3,
    "ev": {
      "nonce": 2,
      "sn": 10,
      "toad": 2
    }
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.advanceDelegated-refused"
}

Advance Plain

As a caller, I want to advance a plain identity's recorded history.

Operation: delegation.advancePlain. The corpus contains 2 observations.

Named refusals:

  • delegation.advancePlain-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.advancePlain",
    "aid": 1,
    "sn": 30,
    "toad": 2
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 3,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            },
            {
              "leaf": {
                "epoch": 3,
                "prev": 20,
                "toad": 2
              },
              "sn": 30
            }
          ],
          "latest": 30,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.advancePlain",
    "aid": 3,
    "sn": 10,
    "toad": 2
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.advancePlain-refused"
}

Ancestor Within

As a caller, I want to check ancestry within a bounded number of parent links.

Operation: delegation.ancestorWithin. The corpus contains 2 observations.

This query returns a Boolean. False is an evaluated result, not a refusal.

Evaluated true example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.ancestorWithin",
    "child": 3,
    "depth": 1,
    "root": 1
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": true
}

Evaluated false example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.ancestorWithin",
    "child": 3,
    "depth": 0,
    "root": 1
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": false
}

Issuer Walk

As a caller, I want to check an issuer's TEL seal against its own checkpoint.

Operation: delegation.issuerWalk. The corpus contains 2 observations.

Named refusals:

  • delegation.issuerWalk-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.issuerWalk",
    "aid": 1,
    "rid": 10,
    "w": {
      "core": {
        "e": 10,
        "idx": 1,
        "kel": {
          "establishment": false,
          "seals": [
            {
              "d": 0,
              "i": 99,
              "s": 0
            },
            {
              "d": 10010,
              "i": 10,
              "s": 0
            }
          ],
          "sn": 15
        },
        "succ": 20
      },
      "tel": {
        "i": 10,
        "kind": "vcp",
        "ri": 10,
        "s": 0
      }
    }
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": "final"
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.issuerWalk",
    "aid": 1,
    "rid": 10,
    "w": {
      "core": {
        "e": 10,
        "idx": 1,
        "kel": {
          "establishment": false,
          "seals": [
            {
              "d": 0,
              "i": 99,
              "s": 0
            },
            {
              "d": 10010,
              "i": 10,
              "s": 0
            }
          ],
          "sn": 15
        },
        "succ": 20
      },
      "tel": {
        "i": 10,
        "kind": "vcp",
        "ri": 10,
        "s": 0
      }
    }
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.issuerWalk-refused"
}

Leave

As a caller, I want to remove a model checkpoint while preserving its known parent category.

Operation: delegation.leave. The corpus contains 2 observations.

Named refusals:

  • delegation.leave-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.leave",
    "aid": 1
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.leave",
    "aid": 9
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.leave-refused"
}

Mint

As a caller, I want to record a delegator approval naming the exact child event.

Operation: delegation.mint. The corpus contains 5 observations.

Named refusals:

  • delegation.mint-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.mint",
    "child": 3,
    "ev": {
      "nonce": 1,
      "sn": 0,
      "toad": 2
    },
    "parent": 1,
    "w": {
      "e": 10,
      "idx": 1,
      "kel": {
        "establishment": false,
        "seals": [
          {
            "d": 0,
            "i": 99,
            "s": 0
          },
          {
            "d": 20001,
            "i": 3,
            "s": 0
          }
        ],
        "sn": 15
      },
      "succ": 20
    }
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20001,
        "childSn": 0,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.mint",
    "child": 3,
    "ev": {
      "nonce": 1,
      "sn": 0,
      "toad": 2
    },
    "parent": 1,
    "w": {
      "e": 10,
      "idx": 1,
      "kel": {
        "establishment": false,
        "seals": [
          {
            "d": 0,
            "i": 99,
            "s": 0
          },
          {
            "d": 20001,
            "i": 3,
            "s": 0
          }
        ],
        "sn": 15
      },
      "succ": 20
    }
  },
  "state": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20001,
        "childSn": 0,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.mint-refused"
}

Register Delegated

As a caller, I want to consume an inception approval to register a delegated identity.

Operation: delegation.registerDelegated. The corpus contains 3 observations.

Named refusals:

  • delegation.registerDelegated-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.registerDelegated",
    "child": 3,
    "ev": {
      "nonce": 1,
      "sn": 0,
      "toad": 2
    },
    "parent": 1
  },
  "state": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20001,
        "childSn": 0,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.registerDelegated",
    "child": 3,
    "ev": {
      "nonce": 1,
      "sn": 0,
      "toad": 2
    },
    "parent": 1
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.registerDelegated-refused"
}

Register Plain

As a caller, I want to register a plain identity without changing its known parent category.

Operation: delegation.registerPlain. The corpus contains 2 observations.

Named refusals:

  • delegation.registerPlain-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.registerPlain",
    "aid": 4,
    "epoch": 0,
    "toad": 2
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 4,
        "checkpoint": {
          "aid": 4,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 4,
        "value": {
          "kind": "plain"
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.registerPlain",
    "aid": 1,
    "epoch": 0,
    "toad": 2
  },
  "state": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.registerPlain-refused"
}

Supersede Delegated

As a caller, I want to consume approval to replace the latest delegated establishment event.

Operation: delegation.supersedeDelegated. The corpus contains 2 observations.

Named refusals:

  • delegation.supersedeDelegated-refused: The named executable source operation returns none.

Accepted example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.supersedeDelegated",
    "child": 3,
    "ev": {
      "nonce": 3,
      "sn": 10,
      "toad": 2
    }
  },
  "state": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20003,
        "childSn": 10,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 1,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            }
          ],
          "latest": 10,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "accepted",
  "value": {
    "certs": [],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            }
          ],
          "latest": 10,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  }
}

Refused example

Caller supplies this model fixture:

{
  "params": {
    "toadFloor": 2
  },
  "action": {
    "action": "delegation.supersedeDelegated",
    "child": 3,
    "ev": {
      "nonce": 2,
      "sn": 10,
      "toad": 2
    }
  },
  "state": {
    "certs": [
      {
        "child": 3,
        "childSaid": 20002,
        "childSn": 10,
        "parent": 1,
        "parentSn": 15,
        "sealIdx": 1,
        "verdict": "final"
      }
    ],
    "ckpt": [
      {
        "aid": 1,
        "checkpoint": {
          "aid": 1,
          "cur": 2,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            },
            {
              "leaf": {
                "epoch": 1,
                "prev": 0,
                "toad": 2
              },
              "sn": 10
            },
            {
              "leaf": {
                "epoch": 2,
                "prev": 10,
                "toad": 2
              },
              "sn": 20
            }
          ],
          "latest": 20,
          "parent": null
        }
      },
      {
        "aid": 3,
        "checkpoint": {
          "aid": 3,
          "cur": 0,
          "hist": [
            {
              "leaf": {
                "epoch": 0,
                "prev": null,
                "toad": 2
              },
              "sn": 0
            }
          ],
          "latest": 0,
          "parent": 1
        }
      }
    ],
    "known": [
      {
        "aid": 1,
        "value": {
          "kind": "plain"
        }
      },
      {
        "aid": 3,
        "value": {
          "kind": "delegated",
          "parent": 1
        }
      }
    ]
  },
  "oracle": {
    "receipted": true,
    "signatureEpoch": null,
    "signed": true
  }
}

Caller obtains:

{
  "status": "refused",
  "refusal": "delegation.supersedeDelegated-refused"
}

Download every example · Read the complete shape · Read semantics and limits