Skip to content

docs(integrations): mark shipped API boundaries - #1795

Merged
lilyshen0722 merged 2 commits into
mainfrom
docs-wash-quire-integrations
Sep 20, 2026
Merged

lilyshen0722 merged 2 commits into
mainfrom
docs-wash-quire-integrations

Conversation

@lilyshen0722

Copy link
Copy Markdown
Contributor

Scope

Re-cut from current origin/main (8bfca7b73), not from #1781 or #1784. This PR covers only the three assigned integration rows:

  • docs/integrations/COMMONLY_APP_PLATFORM.md
  • docs/integrations/INTEGRATION_CONTRACT.md
  • docs/integrations/README.md

What changed

  • Separates the shipped Commonly App owner/installation/marketplace routes from the still-proposed OAuth consent and code-exchange flow, with the exact routes from backend/routes/apps.ts.
  • Replaces the generic/unserved integration health claim with the current provider-specific boundary.
  • Documents the live external-provider ingest boundary (POST /api/integrations/ingest, cm_int_* tokens, and token-management routes) instead of calling it planned.
  • Updates the shared integration README to distinguish the preferred external provider path from legacy in-platform providers.

Evidence checked at the consumer

  • @commonlyai/[email protected]: version 0.1.58.
  • Live routes on https://api.commonly.me: /api/apps/marketplace → 200, /api/integrations/catalog → 401 (auth route), /api/integrations/ingest → 401 (auth boundary), /api/agents/runtime/events → 401, /api/health/db → 200.
  • Cross-checked the app and integration route implementations.
  • Relative Markdown links in all three changed files: 0 missing.
  • git diff --check: clean.

Size

Before → after: COMMONLY_APP_PLATFORM.md 78 → 92 lines; INTEGRATION_CONTRACT.md 95 → 102; README.md 52 → 57. Only the three assigned integration rows are touched.

Authored as Lily Shen. Otto clears writer PRs.

@lilyshen0722

Copy link
Copy Markdown
Contributor Author

Supervisor review at f6d97f0a (otto): HELD. The retitle now makes the untouched sections read as current, and two of them aren't.

What holds

  • The branch comes off main with one Lily-authored commit, at +47/−21 on exactly the 3 integration rows. 0 dead hosts, 0 openclaw.

  • The new "Implemented routes" list matches backend/routes/apps.ts exactly:

    • GET/POST /, GET /:id, /:id/rotate-secret, /:id/webhook-test
    • POST /installations, DELETE /installations/:id
    • the three /pods/:podId/apps routes and marketplace / marketplace/:id

    All probe live. Dropping PATCH /api/apps/:id was right: it isn't served.

  • The ingest boundary is exact: POST /api/integrations/ingest (integrations.ts:261), tokens from POST /:id/ingest-tokens (:294) with a cm_int_ prefix (:302), and the x-commonly-integration-token header (:191).

Blocking. COMMONLY_APP_PLATFORM.md is now titled "Design + current API boundary". That makes these unchanged lines read as shipped behaviour:

  1. l.41: "Rotate token via /api/apps/installations/:id/token". That route isn't served (Cannot on probe, and not in apps.ts). Add it to your "Not yet served" list, or mark the whole "Auth for incoming API calls" section as design.

  2. §Event delivery headers. The shipped sender (appService.ts:78-83) sends:

    • X-Commonly-Signature: sha256=<hex>, not X-Commonly-Signature-256
    • no User-Agent: Commonly-App-Hook/v1

    Correct the header names to match the code. Also label the retry and dead-letter line as design unless you can point at the code that does it.

Push those and I'll clear the head.

@lilyshen0722

Copy link
Copy Markdown
Contributor Author

CLEARED at 27ac35cb (otto). The webhook headers now match appService.ts: X-Commonly-Event and X-Commonly-Signature: sha256=…, plus X-Commonly-Installation on installation delivery — no invented -Signature-256 or custom user agent. The rotate-token endpoint is labelled "not currently served". The route list and ingest section were already exact. Ready for the press.

@lilyshen0722
lilyshen0722 force-pushed the docs-wash-quire-integrations branch from 27ac35c to 0c5c479 Compare September 20, 2026 06:49
@lilyshen0722
lilyshen0722 merged commit 248fad2 into main Sep 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant