Skip to content

content: how an app builds features on the Platform API - #7

Merged
reoring merged 1 commit into
mainfrom
content/build-on-platform-api
Nov 25, 2026
Merged

reoring merged 1 commit into
mainfrom
content/build-on-platform-api

Conversation

@reoring

@reoring reoring commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Why

The guide taught an agent to operate a Project with apth, but said nothing about code inside an app that uses the platform: identifying the signed-in user, authorizing them with app roles, or calling the Platform API on their behalf. That holds for a developer's own Application and for a marketplace app.

What

A new section, Build on the Platform API (build, between apth and apthctl), in English and Japanese:

Document Covers
build/overview Own Application versus marketplace app, what the platform hands an app at runtime, the two authority planes, a credential-free probe for whether this installation serves the exchange
build/platform-connection apth component-connections create --destination-platform, the PLATFORM_* variables, apth publishes access set --mode Authenticated, the forwarded user token
build/app-permissions Access model, acceptance, bindings, the POST /api/v1/access/user-token exchange and Assertion verification, @appthrust/app-access
build/call-platform-api The appthrust-platform-api audience, calling as the signed-in user, the error envelope, idempotent mutations
build/marketplace-app The catalog definition, env and HTTP contract, appserver-go, Access Keys, publication authority

Plus the appthrust-platform-api-app skill, a link from Start here, and the section's wiring in the server (sections, llms.txt lead) and the SPA label.

Sources pin platform e4df1169d00ac084a11874b5298b1c175e044074.

Checks

  • bun hack/check-sources.ts --platform /workspace/platform: all sources exist at their pinned revisions
  • go test ./cmd/..., go vet ./cmd/...
  • web: bun run typecheck, bun test src, bun run build:image
  • Local server with the real content tree: /readyz 200, /llms.txt lists the section; SPA shows the section, the five documents and the skill in both languages
  • English and Japanese variants compared mechanically: identical code fences, frontmatter keys, links, placeholders and heading structure

The guide covered operating a Project with apth, but not code inside an app
that uses the platform. A new section, Build on the Platform API, adds:

- overview: your own Application versus a marketplace app, what the platform
  hands an app at runtime, and the two authority planes
- platform-connection: the platform connection env, publish sign-in, and the
  forwarded user token
- app-permissions: access model, acceptance, bindings, the user-token exchange
  and the signed Assertion, with @appthrust/app-access
- call-platform-api: the Platform API audience, calling as the signed-in user,
  the error envelope, and mutations
- marketplace-app: the catalog definition, env and HTTP contract, appserver-go,
  Access Keys, and what publishing requires

plus the appthrust-platform-api-app skill and Japanese variants of all of them.
Sources pin platform e4df1169d0.
@reoring
reoring merged commit 31ed007 into main Nov 25, 2026
3 checks passed
@reoring
reoring deleted the content/build-on-platform-api branch November 25, 2026 05:30
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