Skip to content

fix(pipeline): subscribe to TaskSettled (not TaskResolved) - #63

Merged
MarouaBoud merged 1 commit into
mainfrom
claude/pipeline-events
Sep 1, 2026
Merged

MarouaBoud merged 1 commit into
mainfrom
claude/pipeline-events

Conversation

@MarouaBoud

Copy link
Copy Markdown
Member

Last consistency item from the external review's ABI/events finding.

CairnCore never emits TaskResolved, so the pipeline's event filter would never fire. It emits TaskSettled(taskId, resolutionType, primaryPayout, fallbackPayout, protocolFee) on every settlement path (success / dispute ruling / timeout refund). The listener now subscribes to TaskSettled and enriches the agent addresses + checkpoint counts (not carried by the event) from getTask(taskId), best-effort. Docstrings/README updated; the address was already fixed in #60.

py_compile clean.

CairnCore never emits TaskResolved (the pipeline's event filter would never fire).
It emits TaskSettled(taskId, resolutionType, primaryPayout, fallbackPayout,
protocolFee) on every settlement path. Subscribe to TaskSettled and enrich the
agent addresses + checkpoint counts (which TaskSettled doesn't carry) from
getTask(taskId), best-effort. Updated docstrings/README event references; kept the
adapter's on_task_resolved semantic name and Bonfires episode labels.

Co-Authored-By: Lagartha <ionanova22@gmail.com>
@MarouaBoud
MarouaBoud merged commit 3103d0b into main Sep 1, 2026
1 check passed
MarouaBoud added a commit that referenced this pull request Sep 1, 2026
… open item (#64)

Co-authored-by: Lagartha <ionanova22@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant