Nexara Connect docs0.1.0

How an app works

A developer note on the app manifest format, for the first-party apps shipped in this repo today and for the marketplace spec this lays the ground for later. There is no third-party submission flow yet; this is the shape to design against.

The manifest

An app ships as apps/<id>/manifest.json in this repo. <id> is the app's folder name and must match the manifest's own id.

{
  "id": "meeting-notes",
  "name": "Meeting Notes",
  "publisher": "Nexara",
  "description": "Turns a meeting transcript into a page with the summary, decisions and action items.",
  "icon": "📝",
  "reads": ["Meetings/**"],
  "writes": ["Meetings/**"],
  "max_lock": "confidential",
  "scopes": ["read", "write", "propose"],
  "webhook_hosts": [],
  "triggers": [
    {
      "name": "New transcript in Meetings",
      "folder": "Meetings",
      "on_event": "created",
      "action": { "kind": "skill", "slug": "meeting-to-tasks" }
    }
  ]
}
FieldMeaning
idLowercase letters, digits and dashes; must match the folder name
name, publisher, descriptionShown on the consent screen and in the gallery
iconOptional, a short emoji or glyph
readsProjects (and, with a trailing /**, folders inside them) the app's agent may read
writesProjects (and folders) the app's agent may write; a write entry also grants read there
max_lockThe ceiling the agent's reads and writes never go above: public, internal, confidential or secret
scopesOptional, informational: the actions the app is designed to use
webhook_hostsOptional, informational: outbound hosts a webhook-action trigger of this app may call
triggersOptional: triggers created automatically on install, each with name, folder (project first, for example "Meetings" or "Meetings/External"), tag, node_type, on_event (created, changed or any), debounce_minutes, and one action

An action is one of:

{ "kind": "skill", "slug": "meeting-to-tasks" }
{ "kind": "notify", "to": ["<principal id>"] }
{ "kind": "webhook", "webhook_id": "<id of a webhook already registered in the workspace>" }

What install does

POST /api/v1/apps/<id>/install (owner or admin, with a fresh step-up) does the following in one database transaction, so a failure partway through leaves nothing behind:

  1. Loads the manifest and refuses if it is already installed (conflict).
  2. For every writes and reads entry, computes the grant it would give the app's agent, clamped to the lower of max_lock and the level the installing person can themselves read at that location. A scope the installer cannot reach at all gets no grant. If nothing is left to grant anywhere the app asks for, install refuses with app_unreachable (422) rather than install a powerless agent silently.
  3. Creates the agent (always on Suggest trust: its first changes wait for a person, the same rule a skill's own output agent and an OAuth-connected agent already follow).
  4. Creates every trigger the manifest lists, owned by the installing person (triggers always run with their own creator's current reads, never the app's).

DELETE /api/v1/apps/installs/<id> (uninstall) reverses all three in one transaction: every trigger the install made is removed, the agent (and its key) is deleted, and the install record is marked removed. There is no partial uninstall.

Manual trigger management outside an app install (POST /api/v1/admin/triggers, owner/admin only) uses the same rules and the same trigger_fires history; see "Apps and triggers" for the person-facing rules (debounce, loop guard, the daily cap, auto-disable after 5 failures).

Scopes and the marketplace to come

scopes and webhook_hosts are carried through today mainly so a manifest is self-documenting; the real ceiling is reads/writes/max_lock, enforced the same way for every app regardless of what it claims to need. When an open marketplace for other companies' apps ships, this manifest format, the install transaction and the consent screen are the spec it builds on: a submitted app still never gets more than its manifest says, and never more than the installer could already read.