Expand description
§universal-exports
Universal Exports is AI6’s public front: the authenticated HTTP and WebSocket API that the
Outer Office app and ai6ctl reach instead of a Station. M retains authority
over Operation access; the gateway enforces the scoped grants M issues. See the
crate API header.
§Features
| Feature | Adds | Default |
|---|---|---|
| (none) | Authenticated Station channel, Operation/Mission/Run binding, bounded replay/fanout, write leases, HTTPS origin checks and loopback serving. | Yes |
cli | The universal-exports service command. | No |
Terminal bytes remain binary and are redacted from debug output.
§Installation
This crate is part of the AI6 workspace and is not published separately. From the repository root, add it as a path dependency:
cargo add universal-exports --path crates/universal-exportsThe library has no default features. Enable cli to build the universal-exports
service command.
§Quick start
use std::sync::Arc;
use std::time::Duration;
use universal_exports::{Gateway, GatewayConfig, GatewayLimits};
use ai6::FileRegistry;
let config = GatewayConfig::new(
"https://localhost",
"a-long-random-token-loaded-from-the-Q-credential-lease",
GatewayLimits::default(),
Duration::from_secs(60),
Duration::from_secs(30),
)?;
let registry = FileRegistry::open("/var/lib/ai6/registry");
let _app = Gateway::with_registry(config, Arc::new(registry)).router();For a deployed listener, run universal-exports behind an HTTPS reverse proxy. It binds
to loopback, and the proxy must remove client-supplied X-Forwarded-Proto and set
it to https; browser endpoints require that marker and an exact Origin match.
The Station credential is accepted only through its environment variable, never as an
argument.
§Command line
universal-exports runs the gateway; the operator command-line client is the separate
ai6ctl crate.
universal-exports --config /etc/ai6/ai6.cfgWhat it needs before it reaches the configuration provider is in the bootstrap file,
ai6.cfg (Configuration): its loopback listener, the public
origin, the Stations’ token and the reverse proxy’s secret as secret references, and the
provider, Registry and provider libraries. Everything else is a record of the provider the
Stations read: the unex record holds sign-in, login limits, the access cache and the
assistant, and the access record the role policy, which applies without a restart.
User access requires a Directory and an authorization policy. Login can use a Guatiao
Authenticator or an identity asserted by the trusted reverse proxy. Providers are the
loadable libraries of coqui-access
(--plugin-path or [unex.plugins] paths names the directory they are in), checked against the
provider’s plugin records as a Station checks its own. Each provider’s configuration is a
JSON object in the unex record, validated against its Guatiao schema; password accounts use
the same configuration for both provider kinds:
# unex.toml, the unex record of a configuration directory
authenticators = [
{ provider = "coqui_access_password", config = { source = { file = { path = "accounts.toml", format = "toml" } } } },
]
directory = "coqui_access_password"
directory_config = { source = { file = { path = "accounts.toml", format = "toml" } } }authenticators is ordered: a name and a password go to each people’s provider in turn, and a bearer key to the key provider (coqui_access_key), which people can make their own keys with (ai6ctl keys). A configuration is limited to 64 nested values. A credential written inline in one is
reported as a weakening: name a file instead.
For an existing authenticated reverse proxy, configure the same identity header it already asserts upstream:
# unex.toml
directory = "coqui_access_password"
directory_config = { source = { file = { path = "C:/secure/accounts.toml", format = "toml" } } }
proxy_user_header = "X-Forwarded-User"
proxy_lookup_by = "name"The reverse proxy must overwrite X-Forwarded-User after authenticating the browser and
remove any client-supplied value, and set X-AI6-Proxy-Secret to [unex] proxy_secret on every request it forwards: an asserted identity without that secret is
refused, since anything reaching the loopback port directly (another local process) can set
the identity header too. The Directory maps that asserted name to the authoritative person
record; authorization still comes from the access policy.
§API overview
| Item | Purpose |
|---|---|
GatewayConfig, GatewayLimits | HTTPS origin, Station credential, TTLs and bounded resource policy. |
Gateway | M registration, typed lifecycle/terminal publication, board snapshots, shared access-token issue/verify/revoke, raw guatiao ingress, browser attach and input queue. |
AttachGrant, AttachMode | Station/Mission/Run-scoped read or write authorization. |
Attachment, AgentInput | Bounded viewer replay/live stream and queued terminal input or resize. |
GatewayError | Refusals for auth, scope, bounds, malformed frames and backpressure. |
ControlStatus | One operator control (cancel, retry, resume, interrupt) and what the Station did with it. |
TimelinePage, TimelineItem | One page of an Operation’s correlated, metadata-only activity timeline. |
Gateway::router | Axum routes for the Station channel, attach token exchange and WebSocket runs. |
Gateway::serve_loopback(port, shutdown) | Loopback listener with caller-owned graceful shutdown; then flushes Moneypenny’s conversation log. |
§HTTP routes
All /v1/station/ paths require the Station bearer credential.
| Method | Path | Purpose |
|---|---|---|
GET | /health | Return 204 No Content while the gateway is serving. |
GET | /v1/board | Return Runs for Operations permitted by the user’s mission.read policy. |
GET | /v1/stations | Return authorized Station health, hosted Operations, the Theaters each Station reaches (with the transport’s capabilities and the Theater’s declared facts), and the current Headquarters Station. |
GET | /v1/user/operations/{operation_id}/placement-preview | Require mission.read; return where a Mission for the Operation would run (Station, Theater, Agent, best first) and a reason for every place ruled out. Optional agent, role, stations and tags narrow it. |
GET | /v1/missions/search | Find Missions in the Registry by Operation, Agent, state, handle, ticket and words in the brief or outcome, newest first, limited to what the bearer may read (mission.read, or a compartment on the Mission, audited). Bounded by [search]. |
GET | /v1/missions | Group registered Runs by Mission and apply mission.read to each Operation; Missions queued, waiting, retrying or failed before a start are listed with pending. |
GET | /v1/operations/{operation_id}/missions/{mission_id} | Return one authorized Mission and its AI6-published brief and sanitized launch manifest. |
GET | /v1/auth/session | Validate the bearer access token against the shared Registry and return its person and expiry. |
POST | /v1/station/access-tokens | Issue a person-bound access token after M authenticates the user; the raw token is returned once. Body: {"person_id":"…","ttl_seconds":600}. |
DELETE | /v1/station/access-tokens/{token_id} | Revoke a token across gateway replicas sharing the Registry. |
POST | /v1/station/runs | Register an Operation, Mission ID and provider ID, optionally with the authoritative Mission brief and sanitized launch manifest; returns {"next_sequence": N}. |
POST | /v1/station/runs/{run_id}/lifecycle/{sequence} | Publish JSON lifecycle state; the gateway encodes the guatiao event. |
POST | /v1/station/runs/{run_id}/terminal/{sequence} | Publish raw terminal bytes; the gateway encodes the guatiao event. |
POST | /v1/station/runs/{run_id}/events/{sequence} | Ingest one guatiao frame. Schema/close frames use cursor 0; values use a positive event sequence. |
POST | /v1/station/attach-grants | Issue a read or write token within M’s Station grant. |
GET | /v1/auth/methods | Say what /v1/auth/login accepts here, with no token: {"methods": [...]}, password for a name and a secret, proxy for an identity the reverse proxy asserts. |
POST | /v1/auth/login | Resolve the trusted proxy identity, or verify credentials with the configured Authenticator; returns one user access token with expires_at and ends_at (when renewing it stops, null with no bound). |
POST | /v1/auth/logout | Revoke the presented user token across gateways sharing the Registry, and the session cookie sent from the public origin. A token or cookie of a browser’s sign-in ends that whole sign-in. |
POST | /v1/auth/resume | Take the ai6_session cookie a browser’s login got and return a new access token, as login does, within the same sign-in’s session_max. 403 from another origin; 401 when refused. See [gateway] session_cookie. |
POST | /v1/auth/renew | Move the presented token’s expiry on by [gateway] access_token_ttl, up to session_max after it was issued; the token’s value does not change. 200 {token_id, expires_at, ends_at}, no secret; 401 when it is not active or the person has left the directory. |
GET | /v1/user/attention?operation_id=<id> | Return what needs the person, as one list for the Overview page and Moneypenny: each item current, historical or unverified, with its entity link, the scope checked and when, and the sources that could not be read. |
GET | /v1/user/profile | Return directory identity and the actions the person holds by authorized Operation (of ai6::OPERATION_ACTIONS) and Station (of ai6::STATION_ACTIONS), and moneypenny: whether this gateway serves her. |
GET | /v1/user/operations/{operation_id}/green-ink | Require approval.decide; list the steps Agents wait to take, oldest first. |
POST | /v1/user/operations/{operation_id}/green-ink/{request_id}/approve | Require approval.decide; sign the step as the caller for expires_in_secs (default one hour) with an optional note. |
POST | /v1/user/operations/{operation_id}/green-ink/{request_id}/reject | Require approval.decide; refuse the step, with an optional reason the Agent is told. |
POST | /v1/user/operations/{operation_id}/green-ink/{request_id}/revoke | Require approval.decide; withdraw an approval before it expires, with an optional reason kept on the record. |
GET | /v1/user/operations/{operation_id}/green-ink/expired | Require approval.decide; list the requests that expired undecided, the newest first. |
GET | /v1/user/operations/{operation_id}/green-ink/rejected | Require approval.decide; list the requests a person rejected, the newest first; the rearm route reopens one. |
POST | /v1/user/operations/{operation_id}/green-ink/{request_id}/rearm | Require approval.decide; open an expired, undecided request again. |
GET | /v1/user/operations/{operation_id}/green-ink/sources | Require approval.decide; where the Operation’s Sources are read on the web. |
POST | /v1/user/operations/{operation_id}/missions/{mission_id}/verdict | Require mission.verify; say what you found when you checked the Mission’s outcome. |
POST | /v1/user/operations/{operation_id}/missions/{mission_id}/probe | Require mission.verify; ask the Station to read back what a verifying Mission was to deliver. |
POST | /v1/user/operations/{operation_id}/missions/{mission_id}/verify | Require mission.verify; decide a verifying Mission: done, redispatch (its next run) or failed, with a reason. |
GET, POST | /v1/user/operations/{operation_id}/class-authorizations | Require approval.class; list, or grant as the caller, standing approvals of a kind of step on a target glob for named Agents or roles. |
DELETE | /v1/user/operations/{operation_id}/class-authorizations/{id} | Require approval.class; revoke one. |
POST | /v1/user/operations/{operation_id}/missions/{mission_id}/actions | Require mission.control; audit and queue a cancel, retry, resume or interrupt for the Station holding the Mission. Body: {"action":"retry","agent":"008","idempotency_key":"…"} (agent only with retry, message only with resume, optional run_id). Returns 202 and a ControlStatus, or 200 and the first one for a repeated key. |
GET | /v1/user/operations/{operation_id}/missions/{mission_id}/actions/{control_id} | Require mission.read; return the control’s status: queued, delivered, applied, rejected or expired, with the Mission state and reason the Station reported. |
GET | /v1/user/audit?operation_id=<id>&limit=<n> | Return up to 500 newest metadata-only audit records authorized by audit.read for each Operation. |
GET | /v1/user/operations/{operation_id}/timeline?cursor=<c>&mission=<id>&limit=<n> | Require audit.read; return one newest-first page (default 50, at most 200) of the Operation’s lifecycle transitions, control outcomes, Cables sent, Sleeper authorizations and audit records, correlated by Station, Mission and Run, with next_cursor for the older page. |
GET | /v1/user/operations/{operation_id}/pools | Require pool.read; return the pool accounts the Operation may draw from, with the Runs using each, quota windows, limited-until and tokens today; never a credential. |
POST | /v1/user/operations/{operation_id}/pools/{pool}/{account}/login/stations | Requires pool.manage; lets one more Station hold the account’s sealed login (queued for a Station that holds it; audited first). |
DELETE | /v1/user/operations/{operation_id}/pools/{pool}/{account}/login/stations/{station} | Requires pool.manage; stops sealing the login to a Station (queued; audited first). |
DELETE | /v1/user/operations/{operation_id}/pools/{pool}/{account}/login | Requires pool.manage; forgets the login, or with ?sign_out=true has a Station holding it sign it out at the provider first (audited first). |
POST | /v1/user/operations/{operation_id}/pools/{pool}/{account}/usage | Require pool.read; ask a Station holding the account to read its usage now (200 once answered, 202 while it waits). |
POST | /v1/user/operations/{operation_id}/pools/{pool}/{account}/clear-limit | Require pool.manage; lift an account’s provider limit, audited. |
GET | /v1/user/roster/{kind} | Require roster.read on config:roster; list the roster’s operations, agents, roles, covers or assistant (Moneypenny’s settings, one record keyed assistant) with the revision and whether it takes edits. |
PUT, DELETE | /v1/user/roster/{kind}/{key} | Require roster.manage on config:roster; store (a JSON object) or remove one record through the roster source. The whole roster is checked first: 422 with the reason when it would not be acceptable, 409 for a read-only source. An accepted assistant record answers with the settings it loosens (weakened). Accepted and refused edits are audited. |
GET | /v1/user/operations/{operation_id}/agent-roles | Require agent.read; return the Headquarters Station role catalog merged with this Operation’s validated overrides. Each role has operation_override to identify whether it replaces the Station definition. |
PUT | /v1/user/operations/{operation_id}/agent-roles/{role_id} | Require agent.configure; validate and store a role purpose and policy in the shared Registry. |
DELETE | /v1/user/operations/{operation_id}/agent-roles/{role_id} | Require agent.configure; remove the Operation override, fall back to the Station definition and record a metadata-only audit event. |
POST | /v1/user/attach-grants | Issue a Run attach token only when run.read or run.input is allowed at that Station. |
GET | /v1/socket/attach | WebSocket: attach to a charge’s Run (charge.converse on its scope) or a Mission’s (mission.control on its Operation); history, live stream, prompts, answers and interrupts, audited. |
GET | /v1/station/hub/next | Station bearer; long poll for what attached people asked of the Station’s Runs. |
POST | /v1/station/hub/frames | Station bearer; what a Run shows, for the people attached to it. |
POST | /v1/user/operations/{operation_id}/missions | Require mission.create for the Operation and atomically enqueue the bounded title and explicit brief in the shared Registry. |
GET | /v1/user/operations/{operation_id}/mission-proposals | Require mission.create; list bounded pending Agent proposals for review in that Operation, each with its vetting once M has vetted it. |
POST | /v1/user/operations/{operation_id}/mission-proposals/{proposal_id}/approve | Require mission.create; record the approving operator and promote the proposal into scheduler-visible intake, cleared of every vetting finding but malformed. |
POST | /v1/user/operations/{operation_id}/mission-proposals/{proposal_id}/reject | Require mission.create; record the rejecting operator and file the proposal outside runnable intake. |
GET | /v1/user/operations/{operation_id}/held-briefs | Require mission.create; list the briefs vetting held, with what it found. |
POST | /v1/user/operations/{operation_id}/held-briefs/{key}/release | Require mission.create; return the brief to the queue, cleared of the kinds it was held for. |
POST | /v1/user/operations/{operation_id}/held-briefs/{key}/refuse | Require mission.create; file the brief as refused, with an optional reason for the record. |
GET | /v1/auth/session | Validate a user bearer token and return its token ID, person ID and expiry. |
GET | /v1/station/inputs/next?wait_ms=<n> | Wait up to wait_ms (default 1000, at most 25000) for one bounded binary terminal input or resize frame for M; 204 when none came. |
GET | /v1/station/controls/next?station=<id>&wait_ms=<n> | Wait up to wait_ms (default 1000, at most 25000) for the next control queued for that Station; 200 with one DipTel control value frame (channel 4) or 204. |
POST | /v1/station/controls/{control_id}/result | Report a taken control’s outcome: {"station":"…","outcome":"applied"|"rejected","state":"…","reason":"…"}; 403 from another Station, 409 once finished. |
POST | /v1/attach | Exchange a token in the request body for a one-connection cookie. |
GET | /v1/socket/{run_id}?after={sequence} | Replay and stream events for one Run. |
Gateway::with_access injects identity and authorization providers. Configure
--directory and --proxy-user-header to accept identity from the existing
authenticated reverse proxy without a second password prompt. The proxy must
remove any client-supplied value for that header and set it only after successful
authentication. The gateway resolves its value through the configured Directory
using --proxy-lookup-by (default name), then applies the same authorization
policy as password login. A comma-separated identity, unknown Directory identity,
or absent proxy identity is rejected. For local desktop sign-in, an Authenticator
can be configured alongside the proxy identity or used on its own. Browser
/v1/auth/login requests must pass through the configured same-origin HTTPS proxy;
the native desktop client can reach the loopback listener without an Origin header.
Password and key tries are limited: before an Authenticator is asked, a try is counted against
the client address and against the account name, and one past either count is refused with
429 and a Retry-After, whether or not its secret is right. The defaults are 5 a minute
per address and 10 in ten minutes per name; the unex record’s login_tries_per_address,
login_tries_per_name and client_address_header change them. Behind the reverse proxy
every connection comes from the proxy, so name the header it fills with the client address
(x-forwarded-for or x-real-ip) or every client shares one count.
Successful login returns a short-lived user bearer token. Password secrets are
never logged or persisted. /v1/auth/logout
revokes that token in the shared Registry. The Registry stores only a domain-separated
SHA-256 digest, person ID, issue/expiry times, and revocation time. Token secrets are
returned only once. /v1/board and /v1/missions apply mission.read per Operation;
user attach grants apply run.read or run.input to the exact registered Operation and
Run tuple. A missing policy rule denies access. Provider calls run on Tokio’s
blocking pool. Gateway::with_registry enables M-issued access tokens but leaves
user login and authorization endpoints unavailable. The universal-exports command accepts
provider IDs and an access-policy path to enable user access; it uses the Registry
ai6.cfg names: a directory, sqlite:PATH or a postgres:// URL
(ai6::directorates::registry::backend::open_with).
A control goes to the Station holding the Mission’s latest Run record, else the one
holding its brief’s lease, else the Headquarters Station, passing over Stations gone dark;
with none, the request is refused with 503 and Retry-After. The Station decides
whether the Mission can take it. Controls live in gateway memory: at most 1,024 are kept
(the oldest finished go first), 64 may wait per Station, and one no Station finishes
within two minutes is expired. A resume’s message reaches only the Station; it is not in
the status or the audit record.
The timeline merges two durable Registry sources: activity events (the lifecycle
transitions and control outcomes this gateway records, Cables and Sleeper approvals the
Stations record) and audit records, including the records of each Station hosting the
Operation when the caller also has audit.read on that Station. Items hold identities,
names and states only: never prompts, resume messages, Cable bodies or targets, terminal
bytes or secrets. A Cable appears only in its sender’s Operation. The cursor is opaque;
newer activity arriving between pages does not shift or repeat older items.
The gateway refuses request bodies and websocket frames above the configured
limit. Its configured history, fanout, input queue and per-viewer socket buffers
cannot exceed a combined budget ([gateway] buffer_budget_bytes, 512 MiB).
GET /v1/board returns sorted BoardRun records. GET /v1/missions returns
sorted BoardMission records with their registered Runs and published Mission
briefs; GET /v1/operations/{operation_id}/missions/{mission_id} returns one authorized
Mission. All require a user bearer and filter by mission.read for each Operation.
GET /v1/stations derives Station check-ins and hosted Operations from the shared I
Registry; stale Stations remain visible as offline after 45 seconds, and the Headquarters
marker follows only an unexpired elected lease. Host and process metadata are omitted.
The brief includes the exact prompt and launch metadata, but only environment variable
names; secret values and initial context are never sent to the gateway. Newly registered Runs
have a null state and sequence zero until M publishes their first lifecycle event.
Queued Missions without a registered Run are not included; creation requires
mission.create on the Operation and returns only the queued Mission ID. These endpoints do
not expose terminal data or credentials. Put the public gateway behind the deployment’s HTTPS reverse proxy;
it must remove client-supplied X-Forwarded-Proto and set it to https.
§Bootstrap file
The command reads the one bootstrap file every program reads, ai6.cfg: --config PATH, else
the file AI6_CONFIG names, else ai6.cfg in the user’s then the system’s configuration directory
(ai6::bootstrap::Bootstrap). Unknown keys are refused; relative paths are relative to the file; a
secret is { provider = "file", key = "PATH" }, { provider = "env", key = "NAME" } or
{ provider = "inline", value = "…" } (the built-in secret providers, the only ones this file can
name), and the last two are printed as a warning at start.
| Key | Effect | Default |
|---|---|---|
[unex] listen | Loopback address behind the HTTPS reverse proxy (127.0.0.1 only); --listen. | 127.0.0.1:7082 |
[unex] public_origin | Required browser HTTPS origin; --public-origin. | None |
[unex] station_token | Required secret: the Stations’ channel bearer credential. | None |
[unex] proxy_secret | Secret the reverse proxy sends in X-AI6-Proxy-Secret; required with a proxy identity header, at least 32 characters. | None |
[unex] state_dir | Where verified provider libraries, and a default Registry, are kept. | The platform’s state directory |
[provider] location, password, poll | The configuration provider Stations read; its roster is served under /v1/user/roster (a directory read-only, SQL editable); --provider. | The file’s directory |
[registry] location, password, headquarters_lease | Shared Registry for issued access-token records; --registry. | The provider’s database when SQL, else registry in [unex] state_dir |
[unex.plugins] paths, profile, keep_verified | Provider libraries, how they are checked, and which old verified copies stay; --plugin-path adds, --plugin-profile overrides. | None; strict with a pin set, report without; the newest 8 |
§Environment variables
| Variable | Purpose | Default |
|---|---|---|
AI6_CONFIG | The bootstrap file; must exist when set. | ai6.cfg in the user’s, then the system’s configuration directory |
A secret reference in ai6.cfg may name an environment variable ({ provider = "env", key = "NAME" }), which is reported as a weakening. The unex record’s keys are listed in Configuration.
§Exit status
universal-exports stops gracefully at Ctrl-C and, on unix, at SIGTERM (a service manager’s
stop), and returns 0 after graceful shutdown, 1 when configuration or listener startup fails,
and 2 for invalid command-line arguments.
§Development
From the repository root, run:
cargo fmt --all --check
cargo test -p universal-exports --all-features
cargo clippy -p universal-exports --all-targets --all-features -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc -p universal-exports --no-deps --all-features
cargo run -p universal-exports --features cli -- --helpGateway integration tests bind only to loopback.
§Releasing
universal-exports is an internal workspace crate (publish = false). Update
its version with the workspace package when an AI6 release requires it.
§License
MPL-2.0. See LICENSE.
Modules§
- liaison
- Liaison: A2A 1.0 at AI6’s boundary, as the wire format of Cables.
Structs§
- Access
Providers - User identity providers used to authenticate and authorize Universal Exports requests.
- Agent
Input - A queued terminal input frame sent by an attached viewer.
- Agent
Route - One way an Agent’s roster record says it reaches its model.
- Agent
View - One Agent of an Operation and its record there.
- Assistant
Config - Moneypenny’s settings: which Agent she is and how much the gateway keeps.
- Attach
Grant - An authorization grant scoped to one Station, Mission, Run and mode.
- Attachment
- A successfully consumed viewer attachment.
- Board
Account - One pool account on the board.
- Board
Claim - One Run using an account.
- Board
Login - What the board shows of a login kept sealed in the Registry: never the login.
- Board
Login Request - A change to a login waiting for a Station that holds it.
- Board
Mission - One registered Mission with the Runs known to Universal Exports.
- Board
Operation - One Operation on the board and where it sits in the tree as the person sees it.
- Board
Pending - Where a Mission with no Run stands, as the Registry last said.
- Board
Queue Entry - One entry of a Station’s own queue.
- Board
Run - One Run entry returned by the public board API.
- Board
Station - One daemon Station and the Operations it hosts for this user.
- Board
Theater - One Theater a Station reaches, as the Station published it at check-in.
- Board
Usage Read - The last time a person asked for an account’s usage to be read now, and how it went.
- Board
Window - One quota window as the board shows it.
- Browser
WebTransport - The browser WebTransport listener, while its gateway serves.
- Control
Status - One operator control and what became of it.
- Effective
Operation - One Operation as its Stations resolve it: its definition with its ancestors’ keys layered in, and which Operation wrote each key.
- Either
Authorizer - Allows what either allows: the chief and Operation tiers of the gateway, or an authorizer plugin.
- Entry
View - One write to a tracker, without its text.
- Factor
Sealer - The key that seals one-time code secrets, or none.
- Gateway
- Gateway state shared by the HTTP handler and the Station channel.
- Gateway
Config - Limits and trusted origin for one gateway instance.
- Gateway
Limits - Finite state, payload, fanout and input limits for one gateway.
- Held
Brief Decision - What became of a held brief.
- Held
Brief Entry - One held brief as the gateway lists it: its Registry key beside the record.
- Issue
View - A linked issue and what the Mission said on it.
- Issue
Write - What a write came to.
- KeyProvider
- The key provider as the gateway uses it: it recognizes a key, finds the account a key belongs to, and makes and removes the accounts behind personal keys.
- Launch
Manifest - Mission instructions and non-secret launch metadata published by AI6.
- Live
Access - The policy in force, and the way back to the provider that stores it.
- Live
Sign In - The sign-in policy in force, and the way back to the record that stores it.
- Login
Limits - How many password or key tries the login route allows, and where it finds the address a try came from. Every field has a default that is safe for a gateway on the public internet; raise a count for an office behind one address.
- Mission
Issues GET .../missions/{mission}/issues.- Mission
Run - One run at a Mission: which Station ran it on which Theater, and how it stands.
- Pages
Config - Where pages are served from: a directory, and optionally their own origin and listener.
- Placement
Preview - Where a Mission for the Operation would run, and why each other place would not.
- Pool
Board - The board for one Operation.
- Question
View - A question waiting for an answer.
- Reply
Counts - How many comments came in, and what became of them.
- Retirement
Notice - An Agent whose
retire_ondate is near or has come. - Roster
Change - An accepted edit.
- Roster
Record - One roster record as its source holds it.
- Roster
Records - The records of one kind.
- Station
Board - AI6 Station overview derived from the shared check-in Registry.
- Timeline
Item - One entry of an Operation’s activity timeline: metadata only.
- Timeline
Page - One page of a timeline, newest first.
- View
Limits - The bounds a view is held to; each is at least 1. The app is sent them with a conversation and checks views against the same values.
Enums§
- Attach
Mode - Whether an attachment may only charge or may send terminal input.
- Gateway
Error - Failures returned by gateway policy and bounded-state operations.
- Seal
Error - Why a secret could not be sealed or opened. Never holds a secret.
- Shared
Station Token - Whether the shared Station token is accepted, set by
AI6_EXPORTS_SHARED_STATION_TOKEN.
Constants§
- DEFAULT_
REPLAY_ ENTRIES - How many proof nonces are kept by default; each stays for twice the clock skew.
- PROXY_
SECRET_ HEADER - The header in which the trusted reverse proxy proves it sent a request that asserts an identity: anything that reaches the gateway’s port directly can set the identity header too.
- TOTP_
PROVIDER - The ID the one-time code provider is listed under in
authenticatorsand in a policy.
Traits§
- Sign
InLoader - Builds a sign-in policy provider from the
unexrecord’ssign_in_policy: the provider’s configuration checked against the provider’s own schema, so a policy that does not build is refused before it is stored or put in force.
Functions§
- nothing_
offered - What the gateway says when the policy in force offers no sign-in; with no key provider configured, there is nothing left that works but an edit to the database.
- published_
source_ facts - The hook that reads Source facts from the Stations’ latest check-ins in
registry. - tls_
server_ config - The TLS configuration of a gateway that presents the certificate chain and key in the PEM
texts
chainandkey, and asks for a client certificate it does not require. - totp_
builder - The one-time code provider over the Registry’s tables, configured by
config, ready to build. - totp_
provider - The one-time code provider over the Registry’s tables, configured by
config.
Type Aliases§
- Source
Facts Fn - What is known of a Source instance, from its Operation ID, its name, its provider ID and its
settings;
Nonewhen nothing is, and the gateway falls back to the instance’s ownlabels.