Skip to content

Apps

Last updated November 7, 2026

On this page

An app is one part of the company's work, packaged: the records it keeps, the agents that do the work, the tools they call, and the triggers that start them. Each app brings:

  • collections: the kinds of records it keeps, such as tickets or leads (see The brain);
  • agent templates, from which the company's agents are made, and the tools they call on outside systems (see Templates and copies);
  • triggers that start its agents on their own;
  • rules that limit what its agents may do;
  • pages people use in the sidebar.

A company switches an app on from the catalog, binds it to its own teams and tool connections, and can pause it, change it or roll a change back at any time. Its data stays when it is paused.

Each enabled app has one versioned record: its teams, connections, triggers and pages as the company set them. When an admin saves a change, OrchKernel applies the record at once. It installs the app, routes its tools and shows its pages. That step is called reconciling, and every app page shows what the last one did. The app's agents are copies of its templates, each with its own settings: whom it works for, its limits, its state (Templates and copies).

This guide describes apps as they work today on the master branch. What is not possible yet is listed at the end.

Only admins (Ada in the demo) see Manage apps and change an app. People who hold manage agents (Manage agents) see Manage agents instead, which opens Apps with two tabs, Enabled (read-only) and Agents I manage, and on each app Overview, Templates and Agents. Anyone else who opens the page reads "Only admins and people who manage agents open Apps. Your agents are on My agents."

The steps below were run in the demo company with no model configured. The demo's stub planner then answers in place of a model (see Quickstart). Steps that need a real model say so.

What the demo has#

The demo company has every bundled app enabled already: Context, CRM, Founder, Marketing, Product, Product operations, Sales, Support, Support operations and Tech. Every trigger starts off, so nothing runs on its own until you turn one on.

The Apps page#

Sign in as ada and choose Manage apps, at the end of the Apps section of the sidebar (above Company). The page is Apps, at /apps: "An app brings collections, agent templates, tools and pages for one part of the company. Enable one, bind it to your teams and tools, and pause it when it is not needed; its data stays." It has four tabs.

Tab What it shows
Catalog Every app the company can enable, one card each: its name, source (bundled or uploaded), trust (Official for bundled ones, Reviewed by your company for the company's own), what it brings ("2 collections · 4 agents · servers apollo, google · 4 pages · requires crm"), and either Enable, or its state (enabled, paused) with Open.
Enabled The enabled apps, each with its state (enabled or paused) and health (ok or degraded). The line under the name is the version and source ("v1 · bundled"), or what needs attention ("Paused", "degraded: support paused").
Agents "All agents: every agent made from an app's templates": each copy with what it is made from, whom it works for, its state and this month's spending, and Open, Update, Pause, Settings. See Templates and copies.
Connections The tool servers apps call. See Connections and integrations.

Describe an app and Upload an app, at the top, add the company's own app to the catalog (below).

Some apps build on others. Sales and Marketing require CRM, Product operations requires Product, Support operations requires Support. An app cannot be enabled until what it requires is enabled.

Enabling an app#

Enable on a catalog card opens the Enable sheet. Most fields start filled, so for a bundled app enabling is usually one click.

Section What it holds Default
Teams Each team the app names (team:support), bound to one of your teams. A bundled app's team is matched to yours by id, then by name; if none matches, the sheet offers to create one ("Create team Marketing"). A company app's teams start empty ("Pick a team…").
Agents One line per agent: who it acts for, its budget, its trust, on or off. Open a line to change it. These become each template's company copy: who it works for (required for them), its monthly limit, its trust and state. Acts for the team it sits on; the app's budget; trust standard (sandboxed for a company app); on.
Connections Each tool server, bound to a connection. For a bundled app: a connection named after the server, or the one another app already uses for it ("as sales binds it"). A company app starts Not connected. "Not connected never blocks enabling: its tools are refused until a connection is bound."
Automation Each trigger, with a checkbox and, for a schedule, its schedule. As the app ships them.
Pages Each page, shown or not, and its sidebar section. Shown, in a section named after the app.
Reads from other apps Which of its skills read another app's collections ("field-notes-digest reads tickets, owned by support"). Information only.

Once a team is picked, the sheet says what the binding means: "field-notes-scribe joins Support and can read incidents, qa_reviews, tickets, field_notes." Enable stays grayed out until every team is bound ("Bind team:support to enable."), while a schedule is invalid, and while a required app is missing ("Field notes needs these enabled first: support").

After Enable a note says "Field notes is enabled" and you land on the app's page. If reconciling hit a problem, the Overview lists it under Needs attention ("1 tool on helpdesk needs a connection").

Who an agent acts for decides who may ask it and whose authority it uses (see Delegations). A team stands for its members. Admins are left out of a team unless you name them, so an admin's authority is never lent to an agent by default.

In the demo every bundled app is enabled already. To walk the Enable sheet, add an app of your own first (below).

The app page#

Open an app from Enabled or with Open on its catalog card. The head shows its name, state, health and version ("v1"), Update to v2 when a newer version waits (Updating an app), and All apps goes back. The tabs:

Tab What you do there
Overview See state, health, the app's own version, who set it up, what it requires and what requires it. Pause or Resume. Needs attention lists problems. Last reconcile says what the last change applied ("1 setting applied · 16 already in place · no errors"); open applied for the list. Under Advanced: the app id, the record version, the source and Reconcile now (apply the record again).
Teams Which of your teams each app team stands for, and what it can read. Change teams.
Templates The app's agent templates, with Make a copy and Preview. See Templates and copies.
Agents The copies made from its templates: whom each works for, its state, this month's spending, Settings, Update, Pause.
Connections Each tool server, its tools, its connection and last test. Add a connection, Change connections, Test. Also lists collections kept in another system.
Automation Each trigger: its kind, when it fires, on or off. Change automation; for a webhook, its address and signing secret.
Pages Each page: shown or hidden, its sidebar section and order. Change pages.
History Every version of the app's record, with Roll back to vN.

Each Change button opens a sheet, and Save writes a new version of the record. A note confirms it ("Saved teams"). If another admin changed the app since you opened it, the save is refused, the page reloads, and you make the change again; nobody's change is overwritten.

Rebinding a team#

The Support app has two teams: its Support team, where its agents sit, and a Product team that may read tickets. In the demo both are bound to your teams of the same name. To let Engineering read tickets instead of Product:

  1. As ada, open Apps > Manage apps, tab Enabled, then Support, tab Teams. The table shows Product team bound to Product, which can read Tickets.
  2. Choose Change teams. Set team:product to Engineering (team:eng). The line under it previews what the binding means.
  3. Choose Save. A note says "Saved teams". The table now shows Engineering, which can read "Dependencies, Incidents, Pull requests, Tickets".
  4. Sign in as erin (Engineering) and open Brain, Tickets: she sees the tickets ("5 rows you can read"). As pat (Product) the same page says "You cannot read this collection."

The Overview's Last reconcile lists "tickets: teams rebound". Undo it with History.

Whom an app's agents work for#

An app's agents are copies, and each has its own works for: in the demo, Support Agent works for the Support team. Change it in the copy's settings (Templates and copies):

  1. As ada, in Support, tab Agents, open the menu on Support Agent and choose Settings.
  2. Under Who it works for choose People, find Maya Patel, and choose Save. The row reads "Maya Patel · 1 person".
  3. Sign in as tom. His inbox reads "Support Agent no longer works for you (Ada Park, 9 Oct)", and under Talk to an agent Support Agent is gone. Maya still sees it.

A person who joins or leaves a team the copy works for gains or loses it at once (see Delegations). The delegations belong to the app: when Maya chooses Revoke on one herself (Governance, Delegations), she is refused with "delegation ... is set by the support app; change it on /apps/support". The app's triggers and tool routes also change on the app page only. An admin's own kill switch on an agent is separate and always works (see Policy, rules and kill switches).

Across apps. Marketing's lead agents write CRM's leads and contacts, and CRM's rules decide who may. A Marketing agent that acts for nobody on the team CRM is bound to cannot write them. One app never widens another's rules.

Automation: triggers#

A trigger starts one of the app's agents on its own. The Automation tab lists them; all are off in the demo.

Kind Fires Shown as
Schedule On a schedule, in the company's time zone "Weekdays at 08:30", and while it is on, its next time ("Next Fri 9 Oct, 08:30 UTC")
Webhook When another system posts to the app's address POST /api/webhooks/helpdesk and the state of its signing secret
Data change When a record in one of the app's collections changes "a change to tickets"

Turning on a schedule#

  1. As ada, open Support operations, tab Automation. The row Churn sweep (support-ops-churn-sweep under it) reads Schedule, "Weekdays at 08:30" and off.
  2. Choose Change automation. The sheet lists each trigger by its id. Tick support-ops-churn-sweep. Its schedule is in the box next to it.
  3. Choose Save. A note says "Saved automation", the row reads on, and under the schedule its next time appears ("Next Fri 9 Oct, 08:30 UTC", with your own time beside it when your zone differs).
  4. Open Work, then All. If 08:30 in the company's time zone has passed today, a task "Sweep open tickets for accounts at risk" for the Churn-risk watcher is already there, created by the trigger, and has run (Done; with no model, the stub planner answers it).

The schedule box takes the same forms as a repeat (see Repeats): daily@08:00, weekdays@08:00, weekends@10:00, mon,thu@17:30, monthly:1@09:00, monthly:last@09:00, monthly:first-mon@09:00, hourly and every:2h. Unlike a repeat, an app's trigger may also run every few minutes (every:30m). Anything else is refused as you type, with the list of forms, and Save stays grayed out. Two things to know:

  • Times are read in the company's time zone, UTC until an admin sets one on Setup (see Setting up a company). Changing the zone moves every app schedule to the new local times.
  • A schedule that has never fired fires on the next clock tick if its time today has already passed. Turning on Churn sweep at 10:26 UTC on a Thursday ran it at once, not the next morning. An every:7d trigger runs right after it is turned on.

Below the triggers, an app that suggests repeats lists them under Suggested repeats, each with Set up for me: Marketing's Marketing weekly review, for example. Setting one up makes it a repeat of your own; see Repeats.

Webhooks#

Each webhook trigger has an address, shown on the Automation tab, that another system posts to. Every delivery must be signed.

Before the app has a secret of its own, the tab reads "No signing secret of its own yet: deliveries are checked with the source's OK_WEBHOOK_SECRETS entry, else the shared secret." Create secret issues one and shows it once ("Copy it now: it is not shown again"), with how to sign: HMAC-SHA256 of <timestamp>.<raw body>, sent as x-ok-signature: sha256=<hex> with x-ok-timestamp: <unix seconds>. The tab then reads "Signing secret issued 5:43 PM by Ada Park. It was shown once; rotate it if it is lost." Rotate asks "Rotate this signing secret? The current one stops working at once; senders need the new one." and shows the new one once.

Delivery Answer
Signed with the secret 202, with the tasks it created
Same x-ok-delivery id sent again, or the same signed request again (with any id or none) 202, replayed: true, the same task, no new one
Bad signature, or signed with a secret that was rotated away 401 "bad webhook signature"
To a source with no secret at all 401 "no webhook secret is configured for this source"
To a paused app, or a trigger turned off 409 trigger_disabled; nothing is remembered, so the same delivery sent again after resume goes through

A bundled app's source with no secret of its own falls back to the server's webhook secrets (OK_WEBHOOK_SECRETS, then OK_WEBHOOK_SECRET); a company app's never does.

In the demo: no source has a secret at first, so every delivery is refused with 401. The demo keeps a secrets key of its own (orchkernel-demo/secrets.key), so Create secret works: on Tech, tab Automation, it issues one for tech.github, and deliveries signed with it are accepted. A delivery with no signature at all is refused with 401 "missing x-ok-signature".

Pages#

The Pages tab sets where an app's pages sit in the sidebar's Apps section: each section name is a heading there. Detail pages (one lead, one proposal) open from a list and never sit there.

  1. As ada, in Support operations, tab Pages, choose Change pages.
  2. Change the section of Support operations from Support to Customers, and choose Save. A note says "Saved pages".
  3. Sign in as maya: in her sidebar's Apps section, a Customers heading now holds Support operations.

Untick a page to hide it. Edits people made to a page stay when it is hidden or the app is paused.

Pausing and resuming#

Pause an app when it is not needed for a while. Its data, records, delegations and settings stay.

  1. As ada, open Support, tab Overview, and choose Pause. Confirm "Pause Support? Its agents, tools and triggers stop and its pages hide; data and settings stay."
  2. A note says "Support is paused". The head reads Paused. On Enabled, Support reads paused, and Support operations, which requires it, reads "degraded: support paused" with a degraded badge. Support operations stays enabled.
  3. Sign in as maya. Under Talk to an agent, Support Agent and Triage are grayed out with "paused"; hovering says "Paused by an admin". (In a thread's agent picker they carry a lock and "Paused by an admin"; see Threads.)
  4. Back as ada, choose Resume (no confirmation). A note says "Support is running again", and Support operations is ok again.

While an app is paused:

  • Its agents do not run. An ask through the API is refused: "kill switch engaged: support is paused". The ask's task is still created, though, and runs as soon as the app is resumed (see Known problems).
  • Its triggers are off and its tools are held.
  • Its pages are hidden from the sidebar.

Resume brings back exactly the app's settings, triggers included: a trigger that was on before the pause is on again. An admin's own kill switch on one of its agents stays until the admin lifts it.

History and rollback#

Every change to an app (enable, a sheet's save, pause, resume) is a new version of its record. The History tab lists them newest first: version, who, how (direct or rollback), when, and the record itself under record.

If you followed this page in order, Support now has four versions: v1 as the demo set it up, v2 the team change, v3 the pause and v4 the resume. The change to Support Agent is not among them: it is a version of the agent's own record.

  1. In Support, tab History, choose Roll back to v1 and confirm "Roll Support back to version 1?".
  2. A note says "Rolled back to v1". A new version, v5, appears marked rollback; nothing is erased.
  3. Teams shows Product team bound to Product again (Pat can read tickets, Erin cannot).

A rollback restores the whole record, including whether the app was paused: rolling back to v3 pauses Support again. It never changes the agents: their settings live on each agent, and a version that still names them (from before agents became copies) applies the rest, with a note saying so. Nor does it change the app's installed version: after an update, rolling back to a version from before it is refused ("crm version 1 is not the installed version 2"). The History tab shows each version's record but not what changed between two of them.

Updating an app#

When a newer version of an app is available (a binary that carries a newer bundled app, or a newer version of a company app promoted to the catalog), its page shows Update to v2 (the newest version) to admins. The demo starts on CRM version 1 and the binary carries version 3, so CRM offers Update to v3. Support, Support operations, Founder, Context and Goals are at version 2 too, and Sales at version 5: a company that enabled one of them earlier is offered the update. The button opens the update card: what gets looser (an update that loosens anything waits for a second admin), what is new, what changes for the app, the templates changed, added or retired, and the copies concerned. Updating installs the app's new parts (in a collection it already has: the new fields, the values and indexes the new version adds to a field, and search when the new version turns it on) and records its new templates, and changes no agent: each copy then shows "v2 available" to whoever manages it, who chooses what to take. See Template updates.

Records kept in another system#

An app can keep its records here (native, the default) or in a system the company already runs, such as Salesforce. Then the collection is read and written live through the connection's adapter and nothing is copied here.

  • On the Enable sheet, once a tool server is bound to an adapter connection that maps one of the app's collections, a box offers "Keep records in salesforce: leads as Lead, read live and never copied here".
  • The app's Connections tab then lists the collection under Records kept in the other system.
  • Reads ask the other system for the reader's rows and filter where its adapter can, stop at 5,000 rows and say so; such records cannot be deleted or rolled back here. Change them in the other system.
  • Where a collection is kept can change only while nothing is stored for it here. In the demo CRM already holds leads, so moving them is refused: "leads has 7 record(s) stored here; where its records are kept can change only while it has none".

The demo has no adapter connection, so only the last point can be tried there. See Connections and integrations for adapter connections.

Adding your company's own app#

A company app enters the catalog only after a second admin reviews it. Enabling it is a separate step after that. A company app is written as a pack.yaml file; Writing packs and skills explains how.

By upload#

The demo has only one admin, and the admin who uploads an app cannot review it ("ada proposed this app; another admin reviews and promotes it"). So invite a second admin first:

  1. As ada, open People and choose Invite people. Enter Email dana@orchkernel-demo.example, Name Dana Lee, Role admin, and choose Invite. The demo sends no email, so the sheet shows the link once: choose Copy.
  2. Open the link in a private window and choose a password (at least 12 characters). Dana lands in the workspace, signed in. From then on she is also under Demo people on the sign-in page.

See Inviting someone.

To follow along, save this small app as field-notes.yaml. It keeps call notes for the support team and has one agent, the Field-notes scribe, with a weekly digest:

yaml
id: field-notes
name: Field notes
version: 1
description: Notes from customer calls, kept by the support team, with a scribe that writes a weekly digest.
requires: [support]
collections:
  - name: field_notes
    storage: native
    data_class: { label: internal, sensitivity: internal }
    schema:
      base: document
      fields:
        - { name: title, type: string, required: true }
        - { name: body, type: string }
    policy:
      read_teams: ["team:support"]
      write_teams: ["team:support"]
    semantics: { description: Notes from customer calls }
tools:
  - id: field-notes.helpdesk.tickets
    name: List helpdesk tickets
    provider: { type: mcp, server: helpdesk, tool: tickets }
    risk_tier: low
skills:
  - id: field-notes-digest
    name: Weekly digest
    tools: [field-notes.helpdesk.tickets]
    permissions:
      read_collections: [field_notes, tickets]
      write_collections: [field_notes]
    code: { type: declarative }
agents:
  - id: field-notes-scribe
    name: Field-notes scribe
    kind: agent
    role: field_notes_scribe
    skills: [field-notes-digest]
    tools: [field-notes.helpdesk.tickets]
    team: "team:support"
triggers:
  - id: trigger:field-notes-weekly
    name: field-notes-weekly
    kind: cron
    schedule: "every:7d"
    template:
      title: Write this week's field-notes digest
      owner: field-notes-scribe
      assignment: { to: actor, id: field-notes-scribe }
      priority: normal
      skill_hint: field-notes-digest
  1. As ada, on Apps, choose Upload an app. Paste the file's contents or choose the file, and choose Upload for review.
  2. The sheet says "Filed app field-notes v1 (uploaded): 1 collections, 1 agents, 1 tools as proposal ... Another admin reviews the card below and promotes it from Governance › Changes; enabling it is a separate step.", and shows the review card.
  3. Sign in as dana and open Governance, tab Changes. Under Proposed the card lists every collection and how sensitive it is, every tool and its risk (with Lower to lower it), what each skill reads and writes (naming collections other apps own: "reads field_notes, tickets (owned by Support)"), each agent's team, every trigger, rule and page, what it requires, and the content hash.
  4. Choose Approve, add an optional note, and choose Approve again. A note says "Reviewed" and the change moves to Reviewed. Choose Promote: a note says "Promoted".
  5. As ada, the Catalog shows Field notes, uploaded, Reviewed by your company, with Enable.
  6. Choose Enable. Set team:support to Support (team:support). Leave helpdesk on Not connected (or pick demo helpdesk), and choose Enable. A note says "Field notes is enabled". The Overview's applied list reads "installed field-notes v1", "field-notes-scribe acts for maya", "field-notes-scribe acts for tom", and, left unconnected, Needs attention says "1 tool on helpdesk needs a connection".

A company app's triggers start as the file declares them, so a trigger the file does not turn off is on at once. An every:7d trigger in the file above ran as soon as the app was enabled.

An upload is refused, with every problem listed, when it breaks the catalog's rules:

  • More than 256 KB, or an id that is a bundled app's ("app id crm is a bundled app's id") or another app's.
  • An id that reuses an existing collection, tool, skill, rule, agent, trigger, thread template or page ("collection field_notes already exists").
  • Skills that are not declarative; tools that are not MCP tools (each is treated as external and at least high risk unless the reviewer lowers it).
  • Agents that are admins, act for someone in the file, or are not on a team the app names ("agent field-notes-scribe is on team team:nobody, which none of the app's collections or rules name"). Its agents start sandboxed.
  • Webhook sources not named <app id>.<source>; data-change triggers on another app's collections.
  • Rules that loosen anything: a company app may only deny or require approval, on its own objects.
  • A re-upload that is not a higher version ("field-notes v1 is not higher than the catalog's v1").

By describing it#

Describe an app takes a sentence ("Track customer contracts and renewals for the sales team, with an agent that reminds reps 60 days before a renewal") and, with Draft it, the Architect drafts the app and files it for review. As the Architect is the proposer, any admin, the one who asked included, may review and promote it. This needs a real model.

The demo's stub planner cannot draft an app, so try it with a model connected (see Models).

Retiring a company app#

ok catalog retire <id> removes an unused company app from the catalog. One that is enabled is refused ("an enabled app uses field-notes; pause the app instead"); a bundled one cannot be retired ("bundled apps ship with OrchKernel and cannot be retired").

Who can change an app#

Only a human admin, on every path: the app page, the CLI, the API, a rollback. Anyone else is refused ("only human admins change an app"). An app record is never deleted; pause the app instead.

A save is checked before anything changes, and every problem is listed at once, for example: "teams.team:product: team:nope does not exist; agents.triage-agent.acts_for: pr-reviewer is not a human or a team; connections.helpdesk: conn:nope is neither a connection nor an mcp.yaml server". Other refusals: a negative budget ("must be a non-negative integer"), a schedule that is not one of the forms above ("mon@08:00 is not a schedule"), or a schedule on a trigger that is not a schedule ("is not a cron trigger, so it takes no schedule").

Not possible yet#

  • Removing an app. Pause it instead.
  • Seeing what changed between two versions on the History tab.
  • A time zone for one schedule: every app schedule runs in the company's time zone.
  • Rolling back from the CLI; use the History tab or the API.
  • Describing an app to the Architect in the demo without a model (see above).

Known problems on this page#

  • A refused ask runs later. Asking an agent of a paused app is refused, but its task is kept and runs as soon as the app is resumed. Maya's ask of Triage while Support was paused showed Done on her Work page a few seconds after Ada chose Resume.
  • A huge budget for an agent with none. An agent whose app file sets no budget shows "$23,058,430,092,136,940.00" on the Enable sheet. It means no limit.
  • Phone width. On a phone the app page's Connections table is wider than the screen, so the page pans sideways and Test sits off-screen. (The Agents tab becomes a list on a phone.)
  • Raw names. The Change automation sheet and the Enable sheet list triggers by id (support-ops-churn-sweep) while the table says "Churn sweep"; and the upload note says "1 collections, 1 agents". The applied list opens as raw JSON.
  • Change teams preview. For an app team with no agents, such as Support's Product team, the preview still says "Its agents would sit on Engineering and read dependencies, incidents, pull_requests", and leaves out tickets, which the binding grants.

For developers#

CLI#

ok app, ok catalog, ok tick and ok webhook work on the state file (--state, or OK_STATE), as a human admin (--as ada). While the server runs, a command that changes the file is refused with exit status 75 ("The server is running on ..."): stop the demo first, or use the pages or the API. Even ok app list needs an admin; anyone else is refused with "only human admins change an app". ok module is an older name for ok app and still works.

sh
S="--state orchkernel-demo/state.db --as ada"
ok $S app list                       # each app: state, health, source, name
ok $S app show support               # the app in full, as JSON
ok $S copy set triage-agent '{"limits":{"month_cents":3000}}'   # an agent's settings: see Templates and copies
ok $S app set tech '{"triggers":{"trigger:tech-daily-dependency-audit":{"on":true,"schedule":"daily@06:00"}}}'
ok $S app pause tech
ok $S app resume tech
ok $S app reconcile support          # apply the record again
ok $S app update crm                 # the update card; --to 2 updates it
ok $S app enable <pack> --team team:sales=team:revenue --create-team team:revenue=Revenue --connection google=conn:acme-google
ok $S app adopt <pack>               # a pack installed before apps
ok $S catalog list
ok $S catalog upload field-notes.yaml
ok $S catalog retire field-notes
ok $S tick                              # advance the clock: due schedules fire
ok $S tick --now 2026-10-07T06:01:00Z   # as if it were that moment (an instant in UTC)
ok $S webhook tech.github --payload '{"pr":7}'

ok app set takes an RFC 7396 merge patch applied to the record as just read; every set, pause and resume prints the record, its new version and the reconcile report. ok tick prints a line such as fired=1 escalated=0 stalled=2 expired_knowledge=0 ran=1. ok webhook delivers without a signature and prints "created 1 task(s)", or "created 0 task(s)" when the trigger is off or the app paused. Outside ok demo serve there is no stub planner, so runs the CLI starts fail without a model.

API#

All under /api, with Authorization: Bearer <token>, for human admins only. Every /apps route is also served at its older /modules path, and error codes and the modules collection keep the names they had before modules were renamed apps.

Method and path Purpose
GET /catalog The catalog: id, source, trust, state, health, installed_version, newer_version_available, summary
POST /catalog/uploads { yaml } File an upload; returns proposal and the review card
POST /catalog/drafts { text } Ask the Architect to draft one
GET /catalog/proposals/:id/card A proposal's review card
DELETE /catalog/:id Retire a company app
GET /apps Apps with state, health, last report, attention
GET /apps/:pack/defaults The Enable sheet's values
POST /apps/:pack/enable { record, create_teams } Enable
GET /apps/:pack record, effective (with defaults filled in), agents, servers, triggers, pages, delegations, team_reads, version
PUT /apps/:pack { record, version } Replace the record at the version read
POST /apps/:pack/pause, /resume { version } Pause, resume; version is optional here
POST /apps/:pack/reconcile Apply the record again
POST /apps/:pack/adopt Adopt a legacy install
POST /apps/:pack/webhooks/:source/secret Issue or rotate a webhook signing secret; the answer is the only place it is shown
GET /apps/:pack/update, POST /apps/:pack/update { to, version } The update card; update (Template updates)
GET /brain/collections/modules/records/:pack/history Versions
POST /brain/collections/modules/records/:pack/rollback { to_version } Roll back
POST /webhooks/:source A signed delivery (see Webhooks)

Errors: 422 invalid with problems; 428 version_required; 409 version_conflict, already_enabled, adopt_required, requires_missing, managed_by_module, storage_change, catalog_in_use, version_not_higher, trigger_disabled; 403 denied; 401 unauthorized (webhooks); 413 too_large; 503 secrets_key_missing.

The record#

Field Example
pack, version, source, state support, 1, bundled, enabled
teams {"team:product": "team:product", "team:support": "team:support"} (every app team must be bound)
agents Only on the Enable sheet: {"support-agent": {"acts_for": ["maya"], "budget": 5000, "trust": "standard", "on": true}} (budget in cents), which becomes each company copy's record. Afterwards a record naming agents is refused: "agents.support-agent: agent settings moved: change them on the agent (PATCH /copies/support-agent)"
connections {"helpdesk": "conn:demo-helpdesk"}
triggers {"trigger:support-ops-churn-sweep": {"on": true, "schedule": "weekdays@08:30"}}
pages {"support-ops.dashboard": {"show": true, "section": "Customers", "order": 30}}
storage {"leads": {"server": "crm", "object": "Lead"}}
owner ada: who set it up; grants nothing

A key left out takes the app's default, so the pages save only what you changed. Reconciling applies, in order: install, team rebinding, the copies (their delegations, one per person each works for, with the purpose module:<app id>; their limits, trust and state), triggers, tool routes, pages. Reconciling twice changes nothing the second time. The full specification is docs/apps.md in the source.