app/lib.rs
1//! Shared application/workflow orchestration for the pet-resort agent platform.
2//!
3//! # Operator framing
4//!
5//! Use this crate page when you want the app-level map of how domain facts become
6//! reviewable workflow packets, tool-port calls, smoke fixtures, and shell-facing
7//! orchestration. It matters to operators because this layer is where safe drafts
8//! and evidence bundles are assembled before an API, worker, or CLI presents them
9//! for review.
10//!
11//! The next step is to open `agents` for agent safety rules, then the
12//! workflow module that matches the queue being reviewed, such as manager daily
13//! brief, booking triage, checkout completion, CRM retention, daily update, or
14//! data-quality hygiene. The Rustdoc items below remain implementer API detail;
15//! this overview explains which operational page to read first.
16//!
17//! This crate composes semantic domain rules from `domain` into executable
18//! workflow packets, agent prompts, tool-port rules, and MVP orchestration
19//! previews shared by API, worker, and CLI shells.
20//!
21//! Crosswalk navigation: app modules are the workflow-use step in the entity
22//! path. Use `docs/entity-atlas/contract-crosswalk/workflow-packets.md` to
23//! move from an operator workflow to consumed/produced entities, then follow
24//! `storage-persistence.md`, `runtime-exposure.md`, and the listed tests for
25//! persistence, API/worker/CLI exposure, and executable proof.
26
27pub mod agents;
28pub mod booking_triage;
29/// Checkout-closeout packets, gates, and safe handoff drafts.
30pub mod checkout_completion;
31/// Source-grounded retention follow-up packets and review-only customer drafts.
32pub mod crm_retention;
33/// Daily operational update packets built from deterministic source context.
34pub mod daily_update;
35/// Duplicate/stale-record hygiene workflows that stop before provider mutation.
36pub mod data_quality_hygiene;
37/// Local deterministic fixtures that exercise agent and tool gates.
38pub mod local_smoke;
39pub mod manager_daily_brief;
40pub mod tools;
41
42/// Common app rules for shells that need agent specs and tool catalogs.
43pub mod prelude {
44 pub use crate::agents::{AgentPromptPacket, WorkflowAgent, baseline_agent_specs};
45 pub use crate::tools::{availability, draft_update};
46}