Skip to content

Review-only: runtime integration review fixes - #18

Draft
angelol wants to merge 11 commits into
angelol/external-call-06-runtime-integration-redesignfrom
angelol/external-call-06-runtime-integration-review-fixes
Draft

Review-only: runtime integration review fixes#18
angelol wants to merge 11 commits into
angelol/external-call-06-runtime-integration-redesignfrom
angelol/external-call-06-runtime-integration-review-fixes

Conversation

@angelol

@angelol angelol commented Jun 28, 2026

Copy link
Copy Markdown

Summary

Review-only PR for the runtime-integration review-fixes branch.

This PR contains the follow-up changes addressing upstream review feedback on the branch-06 external-call runtime integration, stacked on top of angelol/external-call-06-runtime-integration-redesign.

Key changes:

  • splits external-call replay from local validation responsibility
  • keeps prepared/external-signing hash-version handling explicit with V4 coverage
  • routes recorded external-call disagreements through party/view-scoped responses and alarms
  • cleans up DAMLe replay helper plumbing and disagreement diagnostics
  • avoids unnecessary hex-string allocation when ordering external-call disagreement outputs
  • removes temporary implementation-plan artifacts from the branch

Validation

Focused validation was run while addressing the review findings, including:

  • community-participant/Test/testOnly com.digitalasset.canton.participant.protocol.validation.ExternalCallConsistencyCheckerTest com.digitalasset.canton.participant.protocol.validation.TransactionConfirmationResponsesFactoryExternalCallTest
  • community-participant/scalafmtCheck; community-participant/Test/scalafmtCheck
  • git diff --check

This is an internal review PR and is not intended to be merged directly.

angelol and others added 11 commits June 22, 2026 15:11
Add external-call runtime execution through configured extension services, including submission dispatch, validation replay, prepared-transaction result propagation, error reporting, and protocol-version gating.

This completes the Canton runtime side of external-call support on top of the extension-service branch.
Style cleanups in the external-call validation path, no behavior change:

- Move the MonadUtil import to the top of TransactionConfirmationResponsesFactory.
- Sort parties via the implicit Ordering[LfPartyId] instead of .sortBy(_.toString).
- Order abstains via a dedicated Ordering using ViewPosition.orderViewPosition
  instead of viewPosition.toString, dropping a redundant intermediate sort.
- Replace the string-concatenation tiebreaker in orderInconsistency with a
  proper Ordering[Seq[ExternalCallOccurrence]].
- Replace Eval.later + .value with a lazy val in ModelConformanceChecker.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The (extensionId, functionId, config, input) sort tuple was rebuilt inline in
three places. Define a single implicit Ordering[ExternalCallKey] on the companion
and reuse it from orderInconsistency, orderRecordedResultDisagreement, and the
validation key sort. No behavior change: Ordering.by over the same field tuple
produces identical lexicographic ordering.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@angelol
angelol force-pushed the angelol/external-call-06-runtime-integration-redesign branch 2 times, most recently from 1bf7552 to 506e532 Compare June 29, 2026 13:47
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