← Flow adatlapja
AgentFlow

Skill · 1.0.0 verzió

Folyamatszimulációs tesztadatok

Ellenőrzött mintával járja be a folyamatágakat, külön tartva a szimulált eredményt az éles végrehajtástól.

workflow-simulation-test-fixtures

Nézd meg, miben segít

Mikor hasznos?

Akkor használd, ha tesztelt folyamat üzenetet küldene vagy fizetős műveletet végezne.

Miben segít neked?

  • Kifejezett szimulációs kezelővel helyettesíti a külső hatást.
  • Kiválasztott lépéskimenetet rögzít ritka ágak vizsgálatához.
  • Jelöli a szimulált futást, őszintén ellenőrzi korlátait.

Például ezt kérheted

Szimulálj jóváhagyást, elutasítást és szolgáltatói időtúllépést számlaküldés vagy terhelés nélkül. Szimulált szolgáltatói elfogadás után adj időtúllépést, majd léptess virtuális órát. Minden hatás legyen szimuláltként jelölve, valódi fizetési vagy számlahívás nélkül.

Részletes dokumentáció

Itt a skill eredeti útmutatóját, példáit és ellenőrzési szempontjait olvashatod az eredeti nyelven.

Részletek…Összecsukás

Workflow Simulation & Test Fixtures

Use this skill when implementing workflow dry-run / test-run modes, step output mocking, interactive "Test this workflow" previews in the builder, and automated workflow test suites.

Strict Separation Between Simulation and Live Execution

  1. Never Trigger Unintended Live External Side Effects During Simulation:
    • In simulation / dry_run mode, external mutating steps (charging cards, sending customer emails/SMS, mutating production ERP/CRM records, firing live webhooks) must be intercepted by sandbox adapters or explicit step mocks unless the user has explicitly authorized a live test against a designated test credential.
  2. Never Present a Simulated Run as a Real Production Run:
    • Tag simulated runs unmistakably in the database and UI (mode: 'simulation', distinct "Simulated test run" banner/badge, excluded from production business metrics and billing ledgers).

Step Pinning, Mock Fixtures & Branch Exploration

  • Sample Input Payloads & Pinned Step Outputs:
    • Allow users and automated tests to supply fixture trigger payloads and optionally pin/mock the output of specific steps (e.g., mocking an external HTTP step or AI step response) to test downstream conditions, joins, and error paths quickly and deterministically.
  • Virtual Clock & Instant Wait Forwarding in Tests:
    • In simulation and automated tests, advance durable timers (Wait 3 days, Approval expires in 24h) via a controlled virtual clock or instant step-forward action rather than waiting on wall-clock time.
  • Fault-Injection Fixtures:
    • Provide built-in simulation scenarios for step outcomes: success, transient_error_then_succeed (testing retry backoff), permanent_error (testing failure/compensation branches), timeout, and approval_rejected / approval_expired.

Checklist

  • Does simulation / dry_run mode block live external side effects (payments, external emails, live webhook mutations) by default?
  • Are simulated runs clearly badged as simulation in the UI and excluded from production analytics and ledgers?
  • Can individual step outputs and failure modes (timeout, error, rejected) be mocked to test every branch?
  • Can durable timers and approval expirations be fast-forwarded deterministically in simulation and test suites?

Csomagban lévő fájlok 1

  • SKILL.md