Operate an agent beyond the request lifecycle
Use persisted state, bounded work and scheduled recovery as a practical release acceptance path.
A request is shorter than an operation
A browser refresh, process restart or provider outage can interrupt an agent’s work. If its only state lives in the request handler, the next request cannot reliably explain what happened.
FoundryLayer stores threads, messages, plans, steps, versioned definitions, leases and budgets in PostgreSQL. The interface can inspect persisted state rather than treating a transient loading indicator as the execution record.
Bound the work before delegating
Signal is a fixed reference graph with bounded specialists. It is not an arbitrary workflow builder, and its broad strategy advantage over General remains unproven. Start with a direct General task you can inspect before evaluating a larger graph.
Delegated calls share graph limits. Current permissions, credit reservations and validated provider output can stop work. Preserve those boundaries when you replace Signal with your own application; removing them to get a demonstration to finish changes the operational contract.
Recover with leases and evidence
Scheduled recovery claims fenced leases and stores bounded job results. That prevents a stale worker from casually reclaiming authority over work. External mutations still need their own durable intent and outcome classification.
A lost response is not a failed action to replay. Read the lost-response walkthrough and preserve reconciliation_required until evidence supports a different outcome.
Prove the schedule ran
Configuration is a hypothesis. Observe a real schedule-triggered workflow in your own repository and inspect the corresponding persisted result in the authorized operations view. Keep origin and bearer secret server-owned.
The encrypted transactional email outbox also needs draining during idle periods. A successful request-time follow-up does not prove email will leave the queue when no one is using the application.
Label your evidence
Use a small acceptance record with distinct categories:
- Fixture: deterministic failure and state tests. Useful contract proof, not actual provider behavior.
- Sandbox: a provider’s test environment. Real integration, limited to that mode.
- Local-live: actual provider calls and persisted state on a local installation.
- Hosted-live: actual provider behavior and persistence on your independently deployed environment.
A build does not prove the database, email domain, recovery schedule, backups or integration identity. Record the revision, account, environment and observed outcome for each check.
The operations guide gives the practical checklist. The architecture guide explains the boundaries. The recorded demonstrations show the existing evidence with its limitations intact.
FoundryLayer