# Known limits

[中文](limits.zh-CN.md)

After reading this you know what does not work yet, what was not tested, and what to do meanwhile. Each item says where
it shows.

## Pages

| Limit | Meanwhile |
| --- | --- |
| A Shell served by a site (a published artifact opened at its site address) cannot read the daemon's declared origins, so it treats every host as undeclared: `new_session` comes with an empty prompt, `comment_summon` with empty text, and there is no `open_external`, `saved_file` or destinations. | Embed the local view URL (`viewUrl`), not the site address. |
| A page loaded from `file://` has the origin `null` and cannot be declared. | Serve your UI from a custom scheme, or use a top-level view. |
| `caps.switcher` hides only the title menu's Switch artifact and All artifacts. Duplicate still opens the copy in the same view, and the view then shows the copy's place and `saved`. | Watch `onPlace`'s `artifact` and treat a change as the view moving to another artifact. |
| An artifact a newer type release wrote is read-only on this computer, including the page's comment box. | The page and the tools' `newer_release` error tell the person to update; the agent's tools may still reply to comments. |

## Examples

| Limit | Meanwhile |
| --- | --- |
| `examples/harness-electron` was written against Electron's APIs but not run in Electron. Its shared modules are tested through `examples/harness-node`. | Treat it as a reference for the webview checklist, and test your own app. |

## Runtime

| Limit | Meanwhile |
| --- | --- |
| Update provenance attestations are recorded, not verified. The tarball is verified against the registry's sha512 digest. | Use `bundled` and ship runtimes with your app when you need more. |
| The single executable for apps with no Node is not published; each app builds its own, on each platform, with an official Node 25.5 or later. | Build it with `node scripts/build.mjs --only sea`, or require Node 22.18 or later on the computer. |
| In PowerShell, a command the single executable's daemon gives the agent starts with a quoted program path, which must be called with `&`; the daemon's text does not add it. | Have the agent add `&`, or run the command in another shell. |
| The single executable has been built and tested on macOS arm64 only. | Test it on every platform you ship before you rely on it. |

## Wakes

| Limit | Meanwhile |
| --- | --- |
| On Windows a nudge, and a profile's `start`, runs only an `.exe`; a `.cmd` or `.bat` is skipped and logged, because Node runs those only through a shell. | Point the command at the `.exe`, or rely on the inbox and hooks. |
| HTTP polling adapters get no events and cannot show pages. | Use the WebSocket or the stdio bridge. |
| An artifact with no owner (made by a call with no caller, or by the person on the home page) keeps its wakes until a session owns it. | Always pass a caller; the session that adopts or writes it, or the one the person picks, gets them. |

## Model calls and connectors

| Limit | Meanwhile |
| --- | --- |
| An app answering by MCP sampling sends its answer in one piece (no streaming), and its usage counts calls only unless the client reports tokens. This way has been tested with a fake MCP client only, not with a real app's client. | Answer `sample.create` from an adapter ([sampling](https://github.com/openartifactsai/open-artifacts/blob/main/docs/integrating/sampling.md)) when your app can. |
| A command-line source (a profile's `generate`) takes no page tools natively (the daemon describes them in the text), `codex-jsonl` does not stream, and with `isolation: "read-only"` (the shipped Cursor and Codex entries) the program can still read files on the computer while it writes; the consent dialog says so, such a source is allowed for one artifact at a time only, and it is never picked first while another source can answer. Its failures reach the page as a code and fixed words only. Each shipped entry was checked against one captured run of the real command line; a later release of that command line may change its output. | Prefer an adapter or MCP sampling; `open-artifacts doctor --harness <name>` says which way your app answers by. |
| The `sample.create` answers of the Pi, OMP, DSH and Hermes plugins were tested against the kit's fake daemon with the app's own model call faked, not against those apps' real models. | Try a round in the real app before you rely on it. |
| Connectors (`use("mcp")`) are not served to pages on a site, and `host:<name>` servers are lent only over a WebSocket connection: an adapter that polls is never asked. | Connect over the WebSocket or the stdio bridge; on a site, a page works without its connectors. |
| A site's model calls (the viewer's own key, kept and called in the browser) on the Cloudflare deployment are covered by unit tests only. | Try a call on your site before you rely on it. |

## Checking

| Limit | Meanwhile |
| --- | --- |
| The conformance run (`doctor --session`) cannot see what needs a person or a real browser: it says `n/a` for those parts. | Click through the page once yourself ([testing](testing.md#a-conformance-run)). |
| The `harness-compat` end-to-end suite does not yet run against earlier releases of the kit: the kit is not published. | Run your tests against the oldest daemon version you support. |

## DeepSeek Harness (DSH)

The DSH plugin is a level-3 integration. For want of a DSH API, three things are not wired: cards of the artifacts a turn
made, the person's selection on the page as context, and `agent.wrote` for files DSH's own tools write.

A request from a page shows in DSH's chat as the person typed it, with a chip of what was selected
([`userText` and `selectionSnapshot`](wake.md#what-the-person-typed-and-selected-usertext-and-selectionsnapshot)).
DSH has no separate display text for a user message: the agent and the chat share one text, the daemon's. The plugin's
browser half draws the card from the message's source instead, so a DSH view that does not load it shows that full
text, fenced selection included.

## Security

Session permissions and person-only commands keep an honest agent on its path; they do not stop code that runs as the
person ([security](security.md#what-it-does-not-do)).

A restricted type's page (installed, or in a project not trusted yet) cannot reach another origin from its frame, but
it can still put text before the agent through the paths every page has: a comment sent to the agent
(`comments.sendToAgent`), a message to the agent's session (`room.sendToAgentSession`, `/api/frame/agent`) and a
title it proposes (`proposeTitle`). Those reach the agent as the page's, never as the person's words, and what the
agent reads back from such an artifact carries a page-content `third_party_notice` ([security](security.md#type-packages)).
The page's address opened on its own in a tab has the page's policy but not its frame's sandbox.
