Docs corrections: host_capabilities, APS scopes, and a few things that cost me a day

Following up on my two earlier threads — engineering confirmed several doc/runtime mismatches and invited me to write up the corrections. Here they are.

I couldn’t find a public repo for the developer hub (the FAQ points platform issues at the forum), so this is the corrected text rather than a PR. Happy to reformat it however is most useful.

Everything below is verified against runtime v1.1.0-beta.135 and CLI v0.1.49, and confirmed by engineering in the linked threads unless marked otherwise.


1. storage.tool is a dead string

Page: Persistent Storage (APS) → Three pre-conditions

Currently says:

{ "host_capabilities": ["storage.tool"] }

Problem: the runtime never accepts this. It fails with:

-32603: manifest does not declare 'aps.scope.tool.read'

anna_app_core/acl.py matches only:

  • aps.scope.admin — grants everything
  • aps.scope.<scope>.<action> — exact match
  • aps.kv — legacy alias for self-owned scope=app read + write

Suggested replacement:

Declare the capability your plugin actually needs. The accepted values are:

Capability Grants
aps.kv self-owned scope=app read + write (legacy alias, not deprecated)
aps.scope.user.read / .write read/write APS keys in scope=user
aps.scope.tool.read / .write read/write scope=tool (per-executa cache)
aps.scope.app.read / .write read/write another app’s scope=app (requires owner)
aps.scope.admin full (scope, owner) matrix — system apps only
aps.files APS object/file API

storage.tool is not a valid value.


2. host_capabilities belongs in two places, and is missing from the AppManifest field table

Pages: App Manifest reference, and Persistent Storage → Three pre-conditions

Two problems.

a) The App Manifest field table lists schema, required_executas, optional_executas, permissions, system_prompt_addendum, user_message_prefix_template, tags, ui, and dev — and notes that parsing uses extra="forbid". host_capabilities is absent, which reads as “this field is invalid.” It isn’t: dispatcher.py:36 reads it from the top level of manifest.json, and anna-app validate --strict accepts it.

b) The storage page shows it only in the plugin’s describe manifest, so it’s easy to declare it there alone and get -32021 with no obvious cause.

Suggested addition to the field table:

| host_capabilities | array of string | no | Scope-capability declarations (aps.*, llm.sample). Drives app-side validation and packaging. |

Suggested note on the storage page:

Declare host_capabilities in both places. The top-level entry in manifest.json drives app-side validation and packaging; the entry in the Executa’s describe manifest drives server-side storage-token issuance. For a standalone Executa published outside an App, only the describe manifest applies.

Note that ui.host_api uses additionalProperties: false — capabilities declared there will fail schema validation.


3. scope='app' is rejected for plugin-side storage tokens

Page: Persistent Storage (APS)

Not previously reported — found during Marketplace review.

The docs describe scope as taking app, user, or tool. In practice the host does not issue plugin-side storage tokens for scope='app':

-32029: storage_token does not permit scope='app'; allowed=['tool', 'user']

This is confusing in combination with correction 1, because aps.kv is documented as the alias for self-owned scope=app — so declaring the recommended capability and using the scope it maps to produces an error.

Suggested note:

Plugin-side storage tokens are issued for scope='user' and scope='tool' only. For per-user app data, use scope='user' with aps.scope.user.read + aps.scope.user.write.

I may be misreading the intended relationship between aps.kv and the scopes here — if so, a clarifying sentence would still help.


4. executa.json requires tool_id and type

Page: Local Development / Multi-language executas

The reference example shows:

{ "tool_id": "...", "type": "python", "enabled": true }

but the fields aren’t called out as required, and omitting either produces a warning that’s easy to miss in the startup output:

⚠ skipping executa error-journal: executa.json missing required `tool_id`
⚠ skipping executa error-journal: executa.json missing required `type`

The executa is then silently not spawned, and every tools.invoke fails with not_implemented: tools.invoke is not available in this runtime — which points nowhere near the real cause.

Suggested: mark both as required, and note that type accepts python | node | go | binary.


5. bundled_executas is an object, not an array

Page: App Manifest / Bundling

resolveBundledHandles() in the CLI iterates Object.entries(bundled), treating keys as handles. Passing an array produces:

⚠ bundled handle "0" → executas/error-journal: no executa discovered at that path

The "0" is the array index being read as a handle name. An explicit example would prevent this:

{
  "bundled_executas": {
    "error-journal": { "path": "executas/error-journal" }
  }
}


6. anna-app dev --storage aps deserves more prominence

Page: Local Development

I spent a long time concluding that plugin-side APS couldn’t be tested locally — I read store.py, saw no KV backend, and generalised from the default mode. The flag exists and works:

storage backend   aps (real nexus APS via /api/v1/storage/*)

The Local Development page mentions the in-memory store prominently and --storage aps much less so. Given that testing storage locally is the difference between finding a scope bug in an afternoon and finding it in Marketplace review, it would be worth a callout:

By default anna-app dev keeps storage in memory for offline parity. To exercise real APS — same wire path as production — run anna-app dev --storage aps while logged in.


7. Minor: editing an Executa in the Hub resets its visibility

Not a docs issue, possibly a bug.

Editing an Executa through the Hub UI appears to reset visibility to private. This produced two apps submit-review precheck failures for me, and may have caused the “bundle relationship is inconsistent” finding in my own Marketplace review — the reviewer may have looked while it was private.

Worth either preserving visibility across edits, or warning in the edit dialog.


Offer

Happy to turn any of this into whatever format suits — a PR if there’s a repo I’ve missed, or individual issues. Item 3 is the one I’d prioritise, since it produced a failed review round and the error message and the recommended capability point in different directions.

Hi @sadi! :waving_hand:

This is one of the best community write-ups we’ve received — seven precise findings, each verified against actual runtime behavior, with suggested replacement text ready to go. Thank you so much for taking the time (and sorry it cost you a day :yellow_heart:). We verified all seven items and every single one was accurate.

Here’s what we did with them:

:books: Docs corrections (items 1–6) — merged! :white_check_mark:

  • storage.tool / storage.user / storage.app are now explicitly called out as invalid, with the full accepted aps.* capability allow-list on both the Persistent Storage and Executa Lifecycle pages
  • host_capabilities added to the App Manifest field table, with the “declare it in both places” note you suggested
  • Plugin-side storage tokens documented as scope='user' / scope='tool' only, with the aps.kv relationship clarified (your item 3 priority call was right — this one was the most misleading)
  • executa.json: tool_id and type now marked required, with the accepted type values listed
  • bundled_executas documented as an object keyed by handle, with an explicit example (goodbye, mysterious "0" handle :waving_hand:)
  • anna-app dev --storage aps now has a proper callout on the Local Development page

These are live on the developer hub — much of the corrected text is adapted straight from your post. :memo:

:bug: Item 7 (Hub edit resetting visibility) — confirmed as a real bug, and fixed!
You were right: editing an Executa through the Hub could silently reset its visibility to private. The edit dialog now preserves the current visibility, and visibility changes go through the same guarded path as the visibility toggle. This very plausibly explains your review-round friction — apologies for that! :person_bowing:

Rollout: the Hub fix ships in v1.1.0-beta.144, scheduled to roll out this Friday. :rocket:

:tada: Big news (and a direct answer to your “is there a repo I’ve missed?”): the developer docs are now maintained in a public repo — github.com/Anna-Partners/anna-developer-docs! Your corrections landed there as PR #3. Contributions are very welcome — issues and PRs alike — so next time you can send the fix straight in (though write-ups like this one are always appreciated too!). We’ll be featuring the public repo in this week’s release notes, and the Developer page has already been updated to point to it. :glowing_star:

On your offer: yes please, keep these coming! Reports at this level of rigor directly improve the docs and the platform for every builder. If you spot anything else, the forum or a GitHub issue/PR are both great homes for it. :green_heart:

Thanks again — happy building! :sparkles:

Thank you — glad all seven held up, and good to know item 7 explains the review friction rather than something I did.