Skip to main content

Module workflow

Module workflow 

Source
Expand description

Workflow contracts for tasks, events, reviews, and recommended actions. Workflow events and outcomes for reviewable resort operations.

Workflows connect source-derived facts to staff-visible tasks, customer-message drafts, policy context, and recommended next actions. They preserve evidence and review reasons so AI agents can reduce manual triage while keeping live care, labor, payment, and customer communications inside explicit approval boundaries.

Modules§

external
External workflow-provider vocabulary retained before promotion into domain tasks or messages.
message
Provider message fields used before normalization into customer-message workflows.
status_update
Provider status-update fields used to reconcile external task or message progress.
task
Provider task fields used to create staff work without losing source evidence.

Structs§

Event
Workflow event that records what changed, who/what it concerns, and what evidence/risk came with it.
EventId
Stable identifier for a workflow event emitted by an agent, adapter, or staff-facing process.
PolicyContext
Policy context attached to a workflow so reviewers can see allowed actions and required gates.
Result
Workflow result carrying status, summary, recommended action, and verification notes for staff review.
ReviewReason
Review explanation recorded when automation must stop at a manager, medical, or customer-message gate.
RiskFlag
Risk marker surfaced when a workflow may affect pet safety, labor cost, payment, or customer trust.
Summary
VerificationNote
Evidence note proving what source fact, review, or staff action verified a workflow outcome.

Enums§

AllowedAction
Action an automation policy permits for a workflow outcome.
EventType
Event category emitted by triage, policy, review, external sync, or source ingestion.
RecommendedAction
Recommended next action for staff, managers, or automation after evaluating a workflow.
ReviewReasonError
RiskFlagError
Status
Normalized lifecycle states used to reconcile source-system data with domain workflows.
Subject
Subject of a workflow event or recommendation.
SummaryError
VerificationNoteError