User and operator guide · Developer

Atlas Vector Language

Status: currentReviewed: 2026-07-15Audience: developers, identity engineers, security operators, deployment engineers
On this pageWhat It IsArchitectureThe LanguageContext PacksConsistent Universal Directory ExposureVector Studio (the control plane)Demonstration WalkthroughIntegration StatusTesting And Validation

What It Is

Atlas Vector Language (AVL) is the platform’s common declarative logic layer. It answers four classes of questions — transformation (what value should be produced), qualification (does this identity satisfy a condition), selection (which identities/reviewers/resources should be returned), and decision (what security or governance decision Atlas should make) — and it never acts on them. The governing principle is:

AVL computes; Atlas services act.

Before AVL, Atlas subsystems carried separate rule semantics. The shared AVL core now drives every enforcement surface — dynamic-group membership, profile mastering, federation claims and attributes, application assignment, reviewer selection, the authentication and authorization decisions, and workflow conditions — through one compiler, IR, and runtime. See Integration Status for the per-pack enforcement points.

The implementation lives in Atlas service (the language core, no Atlas dependencies), with the gateway control plane in API gateway and the operator UI in Atlas interface.

Architecture

AVL follows the three-plane model of its specification (ATLAS_VECTOR_LANGUAGE.md):

Plane Responsibility

Control plane

Authoring, validation, compilation, testing, simulation, versioning, and activation. Vector Studio and the Vector API are the Policy Administration Point. Source compiles to a canonical intermediate representation (IR); an activated version is immutable.

Data plane

Bounded evaluation of compiled IR against an input snapshot, producing a typed result and a decision trace. The data plane is embedded in the gateway; on activation each compiled artifact is also signed into an immutable bundle, and every enforcement load verifies that bundle’s signature before it caches or uses the artifact (see Integration Status).

Integration plane

Atlas services construct the snapshot, call the runtime, and act on the typed result. They are the Policy Enforcement Points. An integration is complete only when its owning service uses this path and implements the context pack’s explicit failure behavior.

Core invariants the implementation enforces: expression versions are immutable; every expression compiles against a declared context pack that fixes its available roots, input classifications, permitted functions, required result type, and resource limits; expressions are side-effect free; and evaluation is bounded by time, operations, value depth/count, collection/string size, and aggregate snapshot/result bytes. Advanced group commits pin an exact registry version and stored compilation, and evaluate one directory and membership snapshot for the batch. Every activation signs the compiled artifact into an immutable bundle; enforcement verifies that signature before use when the signed-bundle path is enabled.

The Language

AVL is written by identity administrators, not only programmers, so the surface is deliberately forgiving while compiling to one canonical form. To learn it by example — building from a one-line group rule up to a full authorization decision — follow the Atlas Vector Language Tutorial.

// Dynamic group membership (Boolean result)
user.department == "Engineering" and user.status == ACTIVE

// Profile mapping (derived attribute value)
lower(source.givenName + "." + source.surname)

// An authentication decision envelope
if user.status == ACTIVE and device.managed == true
then decision { effect: ALLOW, requiredAssurance: AAL2 }
else decision {
    effect: DENY,
    reason: "unmanaged device",
    obligations: [REQUIRE_MANAGED_DEVICE],
}

Friendly-syntax affordances (all canonicalize to identical IR):

  • = is accepted as ==; &&, ||, ! as and, or, not.

  • x is null / x is not null read naturally.

  • Infix words desugar to function calls: user.email endsWith "@corp.co" is endsWith(user.email, "@corp.co").

  • Trailing commas are allowed in lists and constructors.

  • UPPER_SNAKE identifiers (ACTIVE, ALLOW, AAL3, REQUIRE_MFA) are enum symbols whose enum is inferred from the expected type.

  • Unknown attribute, function, and enum names produce "did you mean …" diagnostics.

Traversal is null-safe (user.clearance.level == "TS" is false, not an error, when clearance is absent). AVL excludes recursion, loops, arbitrary I/O, and user-supplied native code. Every wired surface executes the exact stored IR pinned to its activated registry version rather than recompiling source at enforcement time.

Context Packs

A context pack is the per-use-case contract. The built-in packs (Vector Language engine) define the following contracts, each backed by a wired enforcement point (see Integration Status):

Pack Result Failure mode

PROFILE_MAPPING

attribute value

reject the mapped update

GROUP_MEMBERSHIP

Boolean

preserve prior membership, flag the error

APP_ASSIGNMENT

assignment intent

mark indeterminate, exclude from automation

OIDC_CLAIM / SAML_ATTRIBUTE

typed claim value

omit the optional claim

AUTHENTICATION_POLICY

decision envelope

deny / require step-up (fail closed)

AUTHORIZATION_POLICY

decision envelope

deny (fail closed)

WORKFLOW_CONDITION

Boolean

route to the error branch

REVIEWER_SELECTION

identity list

mark indeterminate

A pack fixes the roots an expression may read, the function groups it may call, its result type, and its resource budget, so the same compiler serves every surface without hard-coded language variants.

Consistent Universal Directory Exposure

The gateway’s AVL schema adapter (API gateway) is the shared typed exposure of the Universal Directory for implemented gateway integrations. Core identity fields are strongly typed (status is the UserStatus enum); governed profile-schema attributes are exposed as nullable values under the appropriate user and source roots. Secret-classified names and aliases are omitted globally, whole-root reads are forbidden, and snapshots contain only compiler-declared paths. PROFILE_MAPPING v1.1 further allowlists only public/internal input: its readable user/source roots have an explicitly empty intersection with controlled or secret-classified attributes. Runtime projection enforces the same policy before resolving a field, and rejects secret-bearing values before toString, concatenation, or another function can transform them.

Vector Studio (the control plane)

Vector Studio is the operator surface at /security/vector-studio, gated on the vector.authoring capability. Its Vector API is /api/v1/vector/*:

GET  /api/v1/vector/context-packs      # packs + their contracts
GET  /api/v1/vector/functions          # the function library + known attributes
GET  /api/v1/vector/authoring-metadata # typed roots, enums, syntax, and functions
POST /api/v1/vector/completions        # cursor-aware UTF-16 completion ranges
POST /api/v1/vector/validate           # compile -> diagnostics, canonical form, cost, dependencies
POST /api/v1/vector/simulate           # evaluate against real directory subjects
GET  /api/v1/vector/expressions        # authored expressions
POST /api/v1/vector/expressions        # create (compile-gated)
POST /api/v1/vector/expressions/{id}/versions   # add an immutable version
POST /api/v1/vector/expressions/{id}/activate   # activate an immutable version for its owning surface

Authored expressions, immutable versions, compilation artifacts, bundle records, evaluation records, and the dependency index have tenant-scoped Vector Registry persistence contracts. The gateway uses PostgreSQL through migration 024_avl_vector_registry.sql when ATLAS_API_GATEWAY_IDENTITY_DATABASE_URL is configured. Production and clustered deployments must set ATLAS_VECTOR_REQUIRE_DURABLE_REGISTRY=true; control-plane and group-rule mutations then fail closed if only the in-memory development store is available.

The reusable editor consumes server-owned authoring metadata rather than duplicating the language schema in TypeScript. Completion covers syntax, roots, properties, functions, methods, constructors, and enum values; validation results are discarded when they no longer match the current source and context.

Demonstration Walkthrough

This proves the thesis — one language driving what used to be private per-subsystem logic.

  1. Author. Open /security/vector-studio. Choose the GROUP_MEMBERSHIP context pack. In the editor type:

    user.department == "Engineering" and user.status == ACTIVE

    Live validation shows the canonical form, the Boolean result type, the static cost, and the dependency chips user.department, user.status. Misspell department and the diagnostic suggests the correction.

  2. Simulate. Click Simulate. The expression evaluates against the real directory population; the results table shows each subject and whether they matched, with the summary N evaluated · M matched · E errors. This is the same expression, run over real users, before anything is committed.

  3. Bind to a group. Open Groups, select a group, and use Membership rule → Advanced. The type-ahead editor uses the GROUP_MEMBERSHIP schema. Save creates a draft without changing the last committed definition. Preview computes Adds / Removes / Unchanged against an authoritative snapshot and returns evidence for that exact definition and rule revision. Commit recomputes the preview, rejects stale evidence or revisions, applies the membership batch, promotes the draft, and records the required audit event. Protected groups, nested loops, peer ownership, and indeterminate evaluation remain blockers or fail-preserve conditions.

  4. Derive a mastered attribute. Choose PROFILE_MAPPING and author lower(source.givenName + "." + source.surname). Simulate it: the result is a derived username the single-value transform engine cannot produce, because it concatenates two public/internal attributes. Controlled and secret-classified inputs are absent from type-ahead and compilation. The mastering apply path consumes this same evaluation to write the mastered value.

  5. Author a typed decision. Choose AUTHENTICATION_POLICY and validate a decision { effect: ALLOW, requiredAssurance: AAL3, obligations: [REQUIRE_MANAGED_DEVICE] }. Bound as the session policy, this decision raises the required assurance at the sign-in gate (it can only strengthen, never weaken it).

Every one of these examples runs through the same compiler, IR, and runtime — and every context pack is wired to a product enforcement service.

Integration Status

Every context pack is a wired enforcement point. Each surface authors, pins, and activates its expression through one shared lifecycle — compile, pin to an immutable registry version with a stored compiled artifact, activate under a stable management key — and enforcement loads that exact stored artifact rather than recompiling source. Every surface applies its pack’s declared failure mode.

Pack Enforcement point Failure mode

GROUP_MEMBERSHIP

Advanced group membership (preview/commit lifecycle)

preserve membership

PROFILE_MAPPING

Universal Directory attribute mastering apply path

reject the update

SAML_ATTRIBUTE

SAML identity-provider assertion attributes

omit the attribute

OIDC_CLAIM

OIDC identity-provider id_token claims

omit the claim

APP_ASSIGNMENT

Application assignment rules (Vector scope)

exclude from automation

REVIEWER_SELECTION

Workflow approval reviewer selection

hold the step

AUTHENTICATION_POLICY

Sign-in assurance gate (strengthen-only)

deny / require step-up

AUTHORIZATION_POLICY

Policy Decision Point overlay (further-restrict only)

deny

WORKFLOW_CONDITION

Workflow routing step conditions

retain the step

Group membership retains the deepest lifecycle — tenant-scoped revisioned rule state, exact-preview evidence, transactional membership batches, and required durable audit — and the other surfaces reuse the same pin/activate/load kit. The two decision packs never grant: AUTHENTICATION_POLICY can only raise the required assurance, and AUTHORIZATION_POLICY overlays the Policy Decision Point to deny or strengthen, never to allow what the PDP denied.

Three lifecycle subsystems support membership and the data plane. All three are always-on wherever a durable registry is present — there is no observe-only mode to enable:

  • Attribute-change reconciliation — an attribute write enqueues a durable reconciliation intent; a single-leader worker re-evaluates the affected GROUP_MEMBERSHIP rules for that subject and reconciles rule-owned membership (add newly-matching, remove no-longer-matching, never touching manually-added members).

  • Temporal rules — a single-leader scheduler periodically re-evaluates temporal GROUP_MEMBERSHIP rules, whose membership tracks the wall clock; its tick cadence is tunable via ATLAS_AVL_TEMPORAL_SCHEDULER_INTERVAL_SECONDS. Temporal rules enforce normally.

  • Signed bundles — activation signs the compiled artifact into an immutable bundle with frozen limits and activation metadata, using a host-persisted key shared across replicas. Every enforcement load verifies the bundle signature before it caches or uses the artifact; a not-yet-published bundle is backfilled and the load falls through to the pinned compilation.

The formal language contract is the Atlas Vector Language Specification; Vector Language engine is the authoritative implementation-status record.

Testing And Validation

Internal implementation checks are omitted from this public guide.

The conformance suite (Vector Language engine) is the language contract: it verifies operator typing, three-valued null propagation, canonicalization, the builtin function library, each pack’s result-type and failure contract, resource limits, and diagnostics against the normative specification — and re-extracts every fenced example from that spec to prove the documentation and the implementation agree. A schema-isolated integration suite (internal release validation, run in CI against Postgres) exercises the full registry lifecycle, every enforcement pack, the signed-bundle verified path, and the reconciliation worker on a real database. The per-surface enforcement wiring is recorded in Vector Language engine.