Skip to content

Architecture Overview

Hennie Francis edited this page Nov 5, 2026 · 6 revisions

For architects: what re:Invent Compass is made of, where each part runs, which token goes where, and where to read more.

re:Invent Compass is an independent community project. It is not affiliated with AWS, and its Boarding Passes are unofficial: the badge is the ticket.

What the system is

Compass scans the code an attendee of AWS re:Invent 2026 works on (local projects and, if they allow it, their GitHub repositories, read-only), learns their AWS services and the rest of their stack, and finds the sessions that match, with a reason for each. It then helps them book the week safely and carry it on their phone. It has four parts:

Part What it is Page
Kiro Power A Kiro Power: a manifest, three skills and an optional hook template that tell the agent how to use Compass. Kiro Power
MCP server A local MCP server (reinvent-compass, TypeScript on Node 24) with 24 tools. It talks to the AWS Events API, scans code, runs the guardrail and drives the pass service. MCP server
Pass service The Compass API: two Lambda functions behind CloudFront, WAF and API Gateway that issue, update and void Boarding Passes for Apple Wallet and Google Wallet. Pass service
Showcase site A static Angular site at reinvent-compass.vegas with a click-through demo and the /board page that hands passes to a phone. Showcase site

The code lives in one repository: the Power in power/, the server and its shared library in packages/, the site in site/ and all infrastructure as Terraform in infra/.

Three places it runs

  1. Your computer. The MCP client (Kiro, or any client that speaks MCP) starts the Compass server on stdio with npx --yes reinvent-compass@0.1.3. Sign-in tokens, the catalog cache, your schedule snapshot, your tech list and your pass record stay here. Scans of your code run here, and only service and technology names, depth and counts leave the scanner.
  2. AWS. The Compass API and the showcase site run in one AWS account in us-east-1, behind one CloudFront distribution on the custom domain reinvent-compass.vegas. The API stores only what a pass needs, keyed by a hash of your Builder ID subject, and deletes it 24 hours after the session ends.
  3. Your phone. The /board page opens in your phone's browser from a 15 minute hand-off link or QR code. From there you add passes to Apple Wallet or Google Wallet, and the wallet keeps them up to date through Apple's PassKit web service and Google's Wallet API.

Context diagram

flowchart LR
  attendee(["Attendee"])
  subgraph computer["Your computer"]
    client["MCP client and Kiro Power"]
    server["Compass MCP server"]
  end
  subgraph events["AWS Events"]
    signin["Builder ID sign-in<br/>oauth.awsevents.com"]
    eventsApi["AWS Events API<br/>api.awsevents.com"]
  end
  github["Compass GitHub App<br/>optional, read-only"]
  subgraph aws["AWS us-east-1"]
    compassApi["Compass API<br/>CloudFront, WAF, API Gateway,<br/>Lambda, DynamoDB"]
    site["Showcase site and /board"]
  end
  apns["Apple APNs"]
  google["Google Wallet API"]
  subgraph phone["Your phone"]
    browser["Browser on /board"]
    wallet["Apple Wallet or Google Wallet"]
  end

  attendee --> client
  client -- "MCP over stdio" --> server
  server -- "PKCE sign-in, refresh token" --> signin
  server -- "access token" --> eventsApi
  server -- "GitHub token, read only" --> github
  server -- "ID token and pass fields" --> compassApi
  attendee --> browser
  browser -- "page" --> site
  browser -- "hand-off id" --> compassApi
  browser -- "add pass" --> wallet
  wallet -- "PassKit web service" --> compassApi
  compassApi -- "update push" --> apns
  apns --> wallet
  compassApi -- "generic objects" --> google
  google --> wallet
Loading

The AWS architecture page shows the AWS side in detail.

Trust boundaries

Each credential has one audience. The code enforces it in one place per credential, and every HTTP client refuses redirects so a token can never follow one to another host.

Credential Created by Goes only to Kept where
Events API access token Builder ID sign-in (PKCE) api.awsevents.com OS keychain on your computer, or memory only
Refresh token Builder ID sign-in oauth.awsevents.com (token and revoke endpoints) OS keychain, or memory only
ID token Builder ID sign-in The Compass API host built into the server (https://reinvent-compass.vegas) OS keychain. The pass service verifies it and keeps only a keyed hash of its subject.
GitHub token The GitHub App device flow api.github.com only, never the archive host OS keychain, or memory only
Hand-off id The Compass API The /board page, in the URL fragment Only its SHA-256 is stored, for 15 minutes
Apple authentication token Derived per pass from a server secret Inside the pass, back to the PassKit web service Never stored, only its SHA-256
Origin-verify value and API key The owner CloudFront to API Gateway only AWS Secrets Manager and sensitive HCP Terraform variables

The access token check is in credential-provider.ts. The Compass API host is a build-time constant in compass-api.ts: COMPASS_API_URL can replace it only when COMPASS_ALLOW_API_OVERRIDE=1 is also set, and only with an https URL. See Security for the full threat model.

A short tour

  • Kiro Power: the manifest, the skills that set the order of the tools, and the optional hooks.
  • MCP server: the 24 tools, their classes, the command line, the settings and the shared @compass/core library.
  • Pass service: the two Lambdas, the 16 routes, the limits, Apple signing, APNs and Google Wallet.
  • Showcase site: the 16 prerendered routes, the strict Content Security Policy, the board page and the demo.
  • Flows: plan, issue, board and fly, each as a sequence diagram.
  • AWS architecture: every AWS service with its real settings from Terraform.
  • Security: the threat model and how each threat is handled.
  • Data and privacy: every data item, where it lives, its key, its lifetime and how it is deleted.
  • Quality: the test strategy, the measured numbers and the CI gates.

The reasoning behind the shape is on the decision pages, for example why the pass API sits behind CloudFront and why the contract came first.

Related pages

Clone this wiki locally