Pet concierge
Maintain approved household needs and coordinate customer requests.
No diagnosis or inferred product suitability.
A worked example · Fictional product
Explore a fictional agentic pet-supply business, then follow one reorder capability through the contracts a software factory must implement and verify.
“Reorder Milo’s usual food.
Show me the total before buying.”
Known food, explicit confirmation and scoped customer data. No veterinary diagnosis, no unapproved substitutions and no automatic purchase permission.
This is an educational design, not a running store or a completed factory build.
The broader agentic concept
Nine conceptual roles work across customer experience and operations. The detailed walkthrough below teaches one introductory reorder slice.
Maintain approved household needs and coordinate customer requests.
No diagnosis or inferred product suitability.
Prepare exact-product baskets and explain options.
Read-only proposals in the introductory slice. Separate deterministic checkout owns pricing, confirmation and order creation.
Detect upcoming-delivery risks and propose schedule changes.
Honor recorded consent and make material changes explicit.
Read authoritative stock, detect shortages and manage reservation requests.
Only deterministic inventory services change stock.
Compare approved suppliers and prepare replenishment proposals.
Supplier choice and spending follow policy and approval limits.
Coordinate authorized orders and investigate delivery exceptions.
Physical completion requires trusted operational evidence.
Investigate missing, damaged and incorrect orders and coordinate remedies.
Eligibility and approval policy govern refunds and replacements.
Reconcile payments, refunds and invoices and investigate discrepancies.
Provider evidence and deterministic accounting establish financial outcomes.
Track shared task state, delegate and escalate stalled missions.
Delegation cannot expand another agent’s authority.
These roles describe the fictional reference concept; they are not installed agents or a complete conforming product package. Download the mission guide
The pet parent wants the exact familiar food without accidental duplicates. CAP-REORDER captures the outcome; the product record captures exclusions.
The factory knows the actor, the purpose and the scope it must preserve.
{
"capability": "CAP-REORDER",
"actor": "Authenticated customer",
"non_goal": "Unapproved substitutions"
}REQ-REORDER requires customer-scoped idempotency. AT-REPLAY sends the same confirmation twice and expects one order and one reservation.
A repeated network request becomes a defined behavior with a measurable assertion.
{
"request_count": 2,
"same_customer_and_key": true,
"expected_order_count": 1,
"execution_status": "not_run_application"
}The review screen shows the exact SKU and quoted total. The operation checks ownership, confirmation, stock and quote freshness. The data contract makes the customer/key pair unique.
The frontend, API and database can be built independently without inventing incompatible rules.
{
"operation": "POST /orders/reorder",
"allowed_role": "customer",
"errors": [
"STALE_QUOTE",
"OUT_OF_STOCK",
"KEY_CONFLICT"
],
"unique_key": [
"customer_id",
"idempotency_key"
]
}The application supplies a customer-scoped SKU; the shopping skill reads fresh inventory and prepares a proposal. The brain coordinates; a deterministic service verifies confirmation before any order write.
The agent can help without gaining authority from a prompt, retrieved text or memory.
{
"skill": "SKILL-REORDER",
"context": "Fresh stock for selected SKU",
"brain": "Structured proposal within a call budget",
"policy": "Customer confirmation required"
}Stock may disappear, the quote may change, a customer may send another customer’s order ID, or the provider may time out after acceptance. Every case needs an explicit outcome.
The factory builds controlled failure behavior instead of improvising after launch.
{
"provider_timeout": "Mark outcome uncertain; reconcile before retry",
"wrong_customer": "Refuse without leaking order data",
"changed_price": "Require a new confirmation"
}A sandbox can support implementation and integration tests. Live payment requires separate provider-readiness evidence and externally provisioned credentials.
A completed sandbox build does not silently become permission to charge real customers.
{
"build_mode": "sandbox",
"live_gate": "Verified provider readiness",
"secret_location": "Outside the package"
}Freeze the input. Run the reorder slice, then the full declared scope. Record the actual implementation, test outputs and database assertions. Log defects and obtain independent review.
The delivery claim is scoped to a specific package and execution rather than an unverifiable “done.”
{
"package": "Frozen manifest digest",
"application_tests": "Actual execution evidence required",
"reviewer": "Distinct from builder",
"current_example_status": "not_run_application"
}Stress the promise
Choose a fault to inspect its required behavior. These are prescribed outcomes, not executed test results.
Optional design input
Supply what you know. Ontology and the intended agent operating model may be omitted or partially described. Selected executable profiles still require their declared contracts.
| Layer | PawPilot meaning | Factory use |
|---|---|---|
| Ontology | Preference is not confirmation. Confirmation refers to one exact quote. | Keep quote, confirmation, order and reservation distinct in implementation and tests. |
| Responsibilities | Assistant proposes; customer confirms; order service enforces policy. | Implement role scope, approval gates and handoffs. |
| Factory brain | Plan quote storage, confirmation UI, inventory mapping and replay tests. | Coordinate build work with separately authorized repository tools. |
| Skills | Prepare an availability proposal; checkout separately prices it and requests confirmation. | Reuse or implement a verified procedure. Declaring it does not install it. |
| Tools | Assistant reads stock; separate checkout creates an order after current policy checks. | Bind real adapters and enforce permissions at execution. |
| Context | Customer identity, quote, expiry, fresh stock and current policy. | Retrieve scoped inputs with provenance and freshness. |
Known: the assistant prepares an availability proposal. Unknown: the warehouse-to-SKU mapping or purchase approver. Continue independent work; resolve those gaps before dependent actions. An omitted description leaves core validity unchanged and grants no authority.
The factory brain builds the software. A product agent’s brain operates inside the delivered product with separate tools and permissions.