Production Boundaries
Plan authorization, privacy, retention, and external effects in the host application.
After reading this guide, you will know:
- Place business authority in the host.
- Plan retention and safe diagnostics.
- Understand current database and integration limits.
Keep Authority in the Host
Resolve actor and tenant from authenticated server state. Check both component read policy and action policy against current domain records. Props and UI state describe a view; neither can grant permission or prove approval. A private repository and passing tests are not substitutes for application security review.
Use one database transaction for host writes that must commit with the Surface. Use a durable outbox for external effects. The gem owns UI records, not customer, ticket, artifact, or billing records.
Plan Data Retention
Four Engine models persist Surfaces, presentations, action receipts, and agent interactions. They do not expire automatically. Close finished views with a retention deadline, then preview and apply purge_closed from your own job, as Surface Lifecycle explains. Do not delete receipts by hand while clients can still retry an old action. There is no built-in retention scheduler.
Inspect Failures Safely
Engine request/SQL/inspect logging masks sensitive Engine values. Notifications contain metadata. Host parameters called state, result, or arguments are not globally filtered by the gem, so the host must configure its own privacy rules. Exceptions raised by host renderers or adapters are reported to Rails and may contain host-supplied sensitive text; sanitize those exception messages.
Keep translations under rails_tool_views.errors, rails_tool_views.surface, and rails_tool_views.components. Provide labeled controls and accessible field feedback in your component. Turbo enhances updates; a non-Turbo rejected action displays a complete correction page.
Choose a Database and Integration
SQLite and PostgreSQL are supported and run in release CI. MySQL is not supported in 1.0. The bundled migration bounds every indexed identifier column to 150 bytes, so the five-column presentation index needs 3000 bytes, inside utf8mb4’s 3072-byte limit. The runtime also bounds identifiers in bytes, requires valid UTF-8 and matches stored identities byte for byte, so a case-insensitive collation cannot resolve another actor’s or tenant’s row. These measures do not replace a real MySQL migration and concurrency run, so MySQL stays outside the supported versions. On any database, run your own migration and concurrency checks before production.
Host examples and local integration work do not establish production adoption. OddlyDock is not a runtime dependency. There are no built-in ActionCable subscriptions, remote UI protocols, billing, or hosted services. RubyLLM remains optional, and its adapter is experimental. The gem is published under MIT; publication does not establish independent security review, live-provider qualification or external adoption.
Next Steps
- Configuration sets limits.
-
Upgrading preserves existing records.
- Operational Diagnostics explains metadata-only outcome events.