# Waysayer Architecture & Capabilities Reference (For Agents & Engineers)

> Schema version: `2026.11-v3.0` · Snapshot: `2026-11-23` · Canonical URL: `https://waysayer.com/agent/architecture.md`
> Vendor: Fastpath AS (Norway, Org. no. 920 497 837) · Data Residency: EU
> Full single-file overview: `https://waysayer.com/llms-full.txt`

## 1. Core Overview

**Waysayer is a modular business platform for Norwegian and Nordic SMBs: reliable system integrations, Customers & Sales (CRM for B2B and B2C), customer and partner portals, a workspace-wide page builder, processes and mobile checklists, and pilot/upcoming Surveys, Agreements & Billing and Booking modules — governed by one server-enforced permission engine.**

Three ways to use the same platform:
1. **Waysayer built-in portals, workspace page builder & modules:** Request a workspace through Fastpath and build internal pages or tailored branded portals with the workspace page builder, custom templates, forms, custom domains, and live workspace data.
2. **Optional Fastpath assistance & hosting:** Fastpath reviews workspace requests and is available for setup reviews, fixed-scope configuration/migration, or building and hosting dedicated front-ends.
3. **External Portals / dedicated front-ends via SDK or API (guided pilot):** Custom Next.js, Astro, React, Node or direct API front-ends backed by the same auth, tenant isolation, data and integrations are offered in a guided pilot with Fastpath. Request participation at `https://waysayer.com/en/developers#pilot` (or `https://waysayer.com/utviklere#pilot`), separate from Agreements & Billing.

## 2. Layered Platform Model

```
┌─────────────────────────────────────────────────────────────────────────┐
│ Presentation & Channels (All governed by the same permission engine)    │
│  [1] Waysayer Built-in Portals   [2] Dedicated Front-Ends (SDK)         │
│      & Page Builder (Primary)        (Specific task or full replacement)│
│  [3] Delegated AI Agents via MCP (OAuth 2.1, scoped & audited)          │
├─────────────────────────────────────────────────────────────────────────┤
│ Four-Part Order-Independent Catalogue (Shared Pools SUM, SLA = BEST)    │
│  1. Waysayer Workspace (390 NOK/mo annual: 1u, 10k rec/wr, 50k API, 2GB)│
│  2. Core Modules: Integrations (+300/+900/+2600) · CRM (+400/+800/+1800)│
│                   Portals (+400/+1100/+2600)                            │
│  3. Dependent & workspace add-ons (separate from pilots)                │
│  4. Single-Axis Capacity Packs (+25u 250, +100k rec 99, +50k wr 190...) │
├─────────────────────────────────────────────────────────────────────────┤
│ Governed Platform Core (workspaces with their own data, users and keys) │
│  Workspace Isolation & Hierarchy · Unified Customer Model (B2B & B2C)   │
│  Structured Records & Governed Reporting · Field Classification · Files │
└─────────────────────────────────────────────────────────────────────────┘
```

## 3. Unified Customer & Commercial Model

- **Customer identity (`Party` in API):** Durable identity supporting both `person` and `organization` (companies, associations, public bodies).
- **Native B2B & B2C:** A person can buy directly (B2C) and also hold Contact/Buyer roles for one or more Organizations (B2B) under one stable identity, with strictly separate access scopes.
- **Workspace-defined roles:** Many-to-many relationships between people and organizations plus workspace-defined roles on deals (one person or organization can hold several roles on a deal without double-counting totals; agreement payers belong to Agreements & Billing).
- **Connected lifecycle:** The same customer identity connects across portals, delivered assets (`ProductInstance`), service work and checklists (`Process` / `Case`), and (in pilot) `Agreement` & `Subscription` billing preparation (your accounting system issues the legal invoice).

## 4. Integrations Engine (Paths, Ways, Gates)

- **Path:** Workspace-scoped connection to external systems (industry systems, online stores, CRMs, accounting software, REST/SOAP/GraphQL/SFTP — including Tripletex, PowerOffice Go, and Salesforce) with encrypted stored credentials.
- **Way:** Declarative, versioned data processing flow with validation, mapping, loops, draft testing, and lookup/reference tables (counted under the workspace's shared `Poster` records and writes allowance) for cross-system ID pairs, references, and deduplication.
- **Gate:** Authenticated inbound HTTPS endpoint (API key, Basic, Bearer, HMAC, OAuth 2.0 Client Credentials) with direct or queued delivery triggering a target Way.
- **High-volume agent tip:** Route high-volume or recurring agent updates through **batched Ways via a Gate** (or batched Direct Path Calls) instead of thousands of singular one-by-one API calls.

## 5. Structured Querying, Reporting & MCP Availability

- **No raw query interface:** Waysayer uses multiple underlying data stores and exposes no raw query interface or direct database access to agents or portal users.
- **API structured querying (`RecordQuery`):** Closed, typed query & reporting contract over structured record types (`Poster`) supporting declared scalar filters (`eq/gt/gte/lt/lte`), sorting, prefix search, cursor pagination, 2-hop declared link traversal, and grouped numeric summaries (`count/sum/min/max/avg`, up to 100 groups) — inside read-only transactions with field-disclosure checks and concurrency ceilings.
- **MCP availability:** Workspace-authorized MCP tools are available across Integrations, Processes, External Workspaces & Pages, Structured Records & Lookups, Orientation, and Parties. See `/agent/mcp.json` for current domain coverage. Today MCP `record_search` supports exact-match filters on permitted fields; exposing the API's full structured `RecordQuery` through `record_list` is the planned next increment.
- **Secret & approval boundaries:** Secrets are stored encrypted and never returned in plaintext via MCP. Agents configure Paths, non-secret auth settings, Ways, Processes, and Gate drafts within delegated permissions, while entering secrets, activating Gates, billing-basis approvals, custom domain DNS wiring, and workspace role grants follow portal governance.

## 6. Machine-Readable Endpoints (No Auth Required)

- `https://waysayer.com/llms-full.txt` — full overview (single Markdown file)
- `https://waysayer.com/llms.txt` — concise endpoint index & claim boundaries
- `https://waysayer.com/agent/catalog.json` — modules, system adapters & protocols, solutions, `notBuiltFor`
- `https://waysayer.com/agent/pricing.json` — 4-part order-independent catalogue, shared pools, add-ons & capacity packs
- `https://waysayer.com/agent/mcp.json` — MCP tool domains, structured query limits & governance boundaries
- `https://waysayer.com/agent/starters.json` — dedicated front-end starter repos & scaffolding prompts
- `https://waysayer.com/agent/tco.json` — worked price examples & comparison guidance
- `https://waysayer.com/agent/glossary.json` — Norwegian commercial terms ↔ English technical/API keys
