← Platform Basement

FEAT-API-FOUNDATION

API Foundation

The machinery every actor's API door stands on — one authentication model, one scope vocabulary, one front door.

The promise

Every API door jengu offers — healthcare, management, and the actor doors to come — stands on one shared foundation rather than each reinventing its own. One machine-to-machine authentication model (client credentials, with just-in-time and SCIM provisioning where a customer organisation's directory drives identity). One canonical scope vocabulary, declared once, from which every door's permissions are composed — a scope that appears nowhere in the canon cannot be granted anywhere. One front door pipeline that resolves the customer organisation, enforces the scopes, and serves each surface dynamically from what is actually enabled.

Contracts are modules with versions of their own: an integration compiles against a published contract artefact, and contract changes are versioned deliberately rather than leaking through a release.

Why this exists as its own capability

Shared machinery that lives inside one door's capability gets bent toward that door's needs; shared machinery that lives nowhere drifts into inconsistency — three doors, three subtly different token validations, which in an API surface is a security bug factory. Naming the foundation makes the sharing a contract: a new actor door starts from the same authentication, the same scope canon and the same front door, and its differences from other doors are limited to what it serves, never to how callers get in.

What it does not promise

The foundation authenticates and scopes; it does not decide who may do what — that is each door's declared contract and each customer organisation's configuration. It is deliberately invisible on the public poster: a customer experiences it only as the consistency between jengu's doors.

What it rests on
0 / 7 passing 5 without a result yet
  • kept by its basis its basis has no result Access to the API is granted in the standard healthcare scope language, and its description is generated from what it actually serves. REQ-API-SPEAKS-THE-STANDARD
    Based on 2 promises
    • not cited Authorization vocabulary is the SMART system-scope grammar, so finer service permissions and the future read-only public capability need no new language. REQ-DBO-AUTH-SMART-SHAPED-SCOPES
    • not cited The CapabilityStatement is generated from what the server actually serves — the configured types, the interactions their declared handling permits, the conditional writes their identity class allows, the history their durability keeps, the search parameters accepted, and the operations registered by the facades that were wired. An operation is declared because it is routable: the router and the statement read one list, so neither a served-but-undeclared operation nor a declared-but-unanswered one is expressible. REQ-DBO-SRCH-HONEST-CAPABILITY
  • kept by its basis its basis has no result An API client reaches only its own organisation's data, and another organisation's credentials are refused. REQ-API-A-CLIENT-REACHES-ONLY-ITS-OWN-ORGANISATION
    Based on 1 promise
    • not cited An application embedding the store accepts a bearer token on its own API exactly where the addressed tenant's doors would: checked in-process by that tenant's authority, with no call to the application itself and no list of issuers to keep current. A tenant that comes up while the application runs is accepted on its next request and one that is retracted is refused on its next; a partner's token is accepted where the managed tenant declared the relation; and an unknown tenant, a retracted one, another tenant's keys and an expired token are refused alike. REQ-DBO-AUTH-AN-APPLICATIONS-API-ACCEPTS-WHAT-ITS-TENANTS-DOORS-ACCEPT
  • kept by its basis its basis has no result No customer's door is served without working sign-in behind it, and turning sign-in off is never a default. REQ-APF-NO-DOOR-WITHOUT-SIGN-IN
    Based on 1 promise
    • not cited A serving deployment without a working authority refuses to serve tenant endpoints; disabling auth is an explicit embedded/test flag, never a default. REQ-DBO-AUTH-DENY-BY-DEFAULT
  • kept by its basis its basis has no result A customer's own staff directory provisions its users through the standard directory protocol only where the customer has declared it; otherwise that door does not exist. REQ-APF-DIRECTORY-PROVISIONING-ONLY-WHERE-DECLARED
    Based on 1 promise
    • not cited A tenant serves SCIM 2.0 only when its spec declares it (the block naming the externalId system); absent the block, the endpoints do not exist. REQ-DBO-SCIM-DECLARED-PER-TENANT
  • kept by its basis its basis has no result There is no back door to the data behind the API: every caller goes through the same public doors. REQ-API-HAS-NO-BACK-DOOR
    Based on 1 promise
    • not cited Planned — The raw store surface is never publicly routed; public interaction with dbo-held data goes through process-based surfaces. The authority exists so authorized services reach the private surface with tenant-rooted trust. REQ-DBO-AUTH-PRIVATE-SURFACE
  • gap: not yet stated A scope that appears nowhere in the canonical vocabulary cannot be granted. FEAT-GAP-dac01353
  • gap: not yet stated API contracts are published as versioned artefacts. FEAT-GAP-b72ee7c7