sim_publish_app
Publish the generated application for a model you own — the single-file HTML a generator produced from the model's view prompt. Served at /app/ in a sandboxed opaque origin (no cookies, no session; only the CORS-open public API is reachable). START FROM THE RUNTIME, not from scratch: /lib/app-template.html is a working console that imports /lib/sim-console.js and composes , , , , and — the same components the generic console at /whatif/ runs. Composing them is how an app inherits role derivation, the fungible-set collapse, the influence ranking that never filters, the contention ledger and the verbatim caveats, none of which the checks below can verify you reimplemented correctly. Root-relative /lib/ imports are allowed. Off-origin loading is stopped in two places: the upload checks refuse an off-origin or , and the app is served under a Content-Security-Policy that confines scripts, styles, fetches, images and fonts to this origin — which is what stops the forms the checks do not parse (an inline module's import "https://…", a dynamic import(), a CSS @import). Checks refuse an app that is empty, oversized, never references its model id, or carries an off-origin /; behavioral correctness (does the app actually do what the view says) is on the generator and any browser gate you run.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | model id the app presents | |
| html | Yes | the complete self-contained HTML document |