feat: expose bounded workflow activation and signal history

This commit is contained in:
2026-09-18 07:56:18 +08:00
parent ae0d08584a
commit 17a8e0126c
35 changed files with 1756 additions and 59 deletions

View File

@@ -61,8 +61,8 @@ func decodeHistoryCursorKind(value string, ns, task, attempt core.ID, kind strin
if d.Decode(&c) != nil || c.Version != 1 || c.Namespace != ns || c.Task != task || c.Attempt != attempt {
return c, fault.Invalid("cursor does not match this history query")
}
if kind == "attempts" {
if c.Kind != "attempts" || c.Epoch == 0 || c.ID != "" || c.Created != nil {
if kind == "attempts" || kind == "workflow-activations" || kind == "workflow-rounds" {
if c.Kind != kind || c.Epoch == 0 || kind != "attempts" && c.Epoch > 1<<32-1 || c.ID != "" || c.Created != nil {
return c, fault.Invalid("invalid attempts cursor")
}
} else {