Skip to main content
← Back to list
01Issue
FeatureShippedSwamp ClubPublic
Assigneesstack72

Relationships

#1687 Document model.method() support in assert expressions

Opened by stack72 · 8/17/2026· Shipped 8/18/2026

Feature

Update the public documentation at https://swamp-club.com/manual/how-to/verify-infrastructure-with-assert-steps to document the newly added model.method() support in assert step expressions.

Context

PR #2166 added the ability for assert step expr fields to invoke model methods via model.method(), using the same syntax and semantics as guard expressions. This enables assertions that check external state by running a lightweight probe method.

Example

steps:
  - name: verify-instance-running
    task:
      type: assert
      expr: 'model.method("infra", "check-status", {"name": inputs.instanceName}).exitCode == 0'
      message: "Instance is not running"
      severity: high

What needs documenting

  • The expr field now supports model.method(modelName, methodName) and model.method(modelName, methodName, inputs) calls
  • Return value is the parsed data output content (for command/shell models: {exitCode, stdout, stderr, ...})
  • Same syntax as guard expressions — link to/reference guard docs
  • Note that model.method() is also available in assert message interpolation via ${{ }}
02Bog Flow
OPENTRIAGEDIN PROGRESSSHIPPED+ 1 MOREASSIGNED+ 2 MOREREVIEW+ 4 MOREPR_MERGED+ 2 MORESESSION_SUMMARIZED

Shipped

8/18/2026, 1:40:37 AM

Click a lifecycle step above to view its details.

03Sludge Pulse
stack72 assigned stack728/18/2026, 1:10:07 AM

Sign in to post a ripple.