Skip to main content
Your code names what the program reaches. The installation says who operates it. Bijection operates many capabilities out of the box: the target sandbox, Lake SQL, Flink, change capture, the Iceberg catalog and its storage, file storage, encryption keys, model accounts, the partner sync relay, an inbound mail address and telemetry export. You can operate any of them yourself instead, over the same protocol. There is one way to choose, the bindings file you pass to bijection deploy --bindings <file>. One way to inspect the choice, bijection placement; one way to change it, bijection deploy; and one usage record to pay for it.

Slots

A slot is one declaration your program reaches but does not fill. Its name is its path in the app tree: a handler target at scoring.score, a pipeline named counts at etl.counts, a Datasets catalog at lake.catalogs.lake. Every target, pipeline, catalog, capture replica, model provider pack, worker pool and mail address is its own slot. Libraries declare their slots; you mount the library and the slots appear under its path. Run bijection placement to list every slot of your app. Each slot speaks a named, versioned protocol, such as lake-sql@1 or object-store@1. Bijection’s provider and yours speak the same protocol, so your code and its results do not depend on who operates the slot. A choice that can change the answer, such as a pipeline’s SQL engine, a document analysis engine or a model, is code: deploy refuses a provider that does not serve it. The host itself reaches three slots at reserved paths: The platform root of every program is reserved. It holds these host slots and the platform’s own mounts (the placement reconciler at platform.placement and the telemetry export); deploy refuses anything else your code declares under platform. A target or receiver that names its own endpoint in code, such as http("https://api.crm.example"), has made its choice and is not a slot.

The bindings file

The installation’s operator keeps one TypeScript file per installation, or per kind of installation, that default-exports placement.bindings([...]). It holds provider bindings, bind(slot, provider), and resource entries, which choose which thing a slot reads: a replica’s capture source and the sync destinations of syncDestinations({...}). Each slot and each named selection appears at most once. Share choices across installations by importing ordinary lists.
ops/bindings/production.ts
A deploy with --bindings replaces the installation’s accepted map. Omit --bindings to reuse that map, including for hosted builds. Passing a file with bindings([]) returns every slot to Bijection’s managed provider. An installation that never passed a file runs every slot managed. Deploy never reads a bindings file you do not pass; bijection.bindings.ts names only a component package’s own manifest. Choose a provider through its protocol’s constructor:
  • placement.managed(params?) is Bijection’s provider, and omitting a slot means the same. Its parameters are exactly the ones the slot’s protocol declares. When Bijection’s driver operates your own account or store, that account is a typed resource parameter: a catalog’s or Files’ storage (placement.managed({ storage: placement.aws.s3Bucket({ … }) })), the key root (root: placement.aws.kms(...)), and an account for Textract or Transcribe (placement.aws.account), partner sync (fivetran.account, airbyte.workspace) or inbound mail (placement.aws.ses). Your account’s region and custodian are the label’s evidence; the driver’s tenancy is the offer’s; release never deletes bytes in your account. A missing required parameter refuses the deploy with InputMissing, including on a host whose driver has no default account of its own.
  • endpoint({ url, hosts, credential, network? }) reaches any provider that speaks Bijection’s HTTPS target wire: a handler on Lambda or Cloud Run, your own Lake SQL runner or Flink provider, a Debezium capture provider. url may be placement.env("NAME"), an installation input; hosts are the hosts it may connect to, required when url comes from the environment. credential is the path of a secret you set with bijection secret set.
  • Typed constructors build customer providers that speak a foreign-wire protocol themselves: placement.otlp, and from the owning library’s package root icebergRest, selfHostedGateway, anthropicAccount or openaiAccount (an OpenAI-compatible server binds with openaiAccount({ url, credential })).
A protocol names its credential roles. A provider of a one-role protocol takes credential; a provider of a protocol with several roles takes credentials naming every role, such as a catalog’s credentials: { writer: "lake.rw", reader: "lake.ro" }. Bindings carry secret references, never values. placement.env("NAME") stays a reference in the build. At deploy, the host reads NAME from the installation’s environment variables (bijection env set NAME …), for a deploy from your machine and a hosted build alike. A variable with no value refuses the deploy with InputMissing on that slot. What a provider reaches is a parameter of that provider. The bucket a managed catalog writes to, a provider’s private network attachment and a vendor account are arguments of the provider, not slots of their own, and changing one is a move of the slot.

Typed slots in an operations repository

bijection placement --types prints typed slot references for a program, so an operations repository can bind slots without the app’s source:
To pin a deployment to the choices you reviewed, add --write-plan placement.plan to the trial and deploy with --apply-plan placement.plan for the same installation. Apply checks the release, intent, serving generations, provider identities and offered terms against the review. If any of those changed, rerun the trial.

Reach a provider through a network relay

network names the network relay group a provider on a private network is reached through. The installation sends to the relay target named after the slot: its path in lowercase, with . replaced by -. The slot etl.counts is reached at the relay target etl-counts, so the relay’s target file lists etl-counts at your provider’s host and port. A relay carries only a fixed HTTPS url.

Every capability

Requirements and offers

A label states what its data requires of every provider that handles it, one property at a time: executionTenancy, processingRegions, storageRegions, custodians and maximumRetentionMs.
bijection/labels.ts
Deployment and task admission check every property on its own. When the evidence is absent or does not meet the requirement, the slot reports RequirementUnmet, and the trial shows the known properties and where each claim came from. A label accepts host controls and vendor terms by default. When its author includes "installationOperator" in evidenceSources, the deployment operator may attest properties of the exact customer provider with placement.attest(provider, { ..., validUntilMs }). A required claim’s expiry bounds admission and the task’s send window. An account binding alone does not establish single-organization execution. A host publishes what it operates as offers, at most one per protocol major version, stating its properties, meters and price. bijection placement offers lists them. A binding never asks for more isolation: to meet a stricter requirement, run the installation on a one-tenant cell or a private host, or bind your own provider whose evidence meets it. Every managed offer signs each delivery for your installation and derives the tenant from that signature; keys everything it holds by installation and slot; bounds each slot’s admission on its own; reaches your data only through installation-scoped grants such as read leases; and attributes every metered unit to the installation and slot. On a Bijection hosting cell, a managed slot is the cell’s service. A private installation offers nothing unless its operator publishes offers, so on one you bind every slot your app mounts, or unmount the capability. File storage is the one host-wide exception: a standalone host that mounts label partitions (BIJECTION_LOCAL_FILE_PARTITIONS) serves them as its managed object-store@1 store, and one that mounts none refuses an unbound platform.files with NotOffered. A missing offer is refused at deploy, never replaced by a silent fallback. When no host offers a protocol yet, such as worker@1 for worker pools, an unbound slot is refused NotOffered; the day a host offers it, unbound slots become managed with no code or configuration change. bijection dev runs a local host that offers only handler@1 (the runtime’s target sandbox provider), connector-gateway@1 (the runtime’s gateway provider), object-store@1 (dev-grade label partitions, one directory per label with no capacity isolation), key-root@1, send-mail@1 (which writes each message to the backend log) and otlp@1 (which keeps telemetry in sys.logs). A runtime installed before these providers shipped is refused as incompatible, so install the runtime again with the CLI. A local deploy of a program that reaches another slot unbound, such as a Lake SQL slot, is refused NotOffered.

When placement is refused

Every placement failure, at deploy or while a move is blocked, is one refusal:
offered lists what the host does offer for the slot’s protocol, and fix names the next step. Every reason is generic: no capability adds its own. A move that is waiting (writes draining at its fence, read leases at release) shows its phase, not a reason.

Switch providers

Change the binding and deploy. There is no move command.
Deploy prepares the new provider first: protocol version, probe, reach, credential, trust and requirements. A failure refuses the deploy and changes nothing. Deploy then records a pending placement generation for the slot and activates your program at once; the slot keeps serving at the old generation until the cut. The one exception is a slot whose provider in force does not serve the protocol version your new program needs: deploy follows the move and activates the program at the slot’s cut, so the slot’s work waits only during the final stretch. With --detach, deploy prints the command that resumes it. The installation’s placement reconciler runs the move, as the protocol’s state class defines: A task runs and settles at the generation it was submitted under; it is never redirected. After the cut, Bijection keeps its copy for a retention window (7 days) so that binding back is cheap, then deletes its own copy with disposal evidence. A move never deletes bytes in a provider you operate; it reports them as releasable. Erasure reaches every retained generation. Run deploy again to resume a move. Bind back before the cut to cancel it. A stored source keeps serving even when the move’s fence sealed it: the seal is lifted, writes resume and nothing is copied back. After the cut, moving back is another move. Once a running move has stopped the old run, the old generation never serves again. Binding back then records a fresh generation that continues from the same stop. When the old provider keeps no resumable point, or the new one cannot continue from another provider’s point, deploy refuses the running move with CannotResume before anything stops. A managed offer states this for its driver, and a customer provider’s read-only probe answers it ({ "points": "portable" | "none", "seeds": true | false }). Today’s Fivetran and Airbyte providers are in that case (partner sync). If a provider stops without a point it did not predict (a lost replication slot), the move holds at its fence with the same CannotResume. To accept a new history, deploy again with your consent:
The new provider then starts as a first placement does: capture takes a snapshot, partner sync runs a full resync, and streaming Flink starts without provider state. The consent applies to this move only. It is part of the reviewed plan, so --write-plan and --apply-plan carry it, and it never goes in your bindings file. Without it, --trial predicts the hold. Stored moves never restart. Removing a slot from your code withdraws its generations the same way for every class.

Inspect placement

placement show checks a fixed customer endpoint when the caller can deploy. It shows protocolReady when the declared read-only probe succeeds, reachable when a request with no body confirms only the route, blocked with the reason, or unchecked when the host has no authorized check for that provider. Withdrawn slots remain visible until their retained generations finish retiring. Use deploy --trial to see the trust for a candidate binding, including its first deploy. placement trust looks up a slot’s recorded pending, current or most recent retained provider. bijection.lock records the program’s slot declarations. Update it with bijection check --write-lock when those declarations change.

Usage and spend

Managed usage is one record per installation, slot, placement generation, protocol, meter and quantity. bijection placement usage reads this UTC month’s recorded usage. Its price comes from the offer the generation pinned, which you reviewed when you deployed it. A managed model answer, document analysis or transcription run records its vendor list price in millionths of a US dollar as the costMicros meter, which the offer prices like any other; a managed telemetry export records the records and bytes the hosted store accepted; mail reports messages; managed partner sync reports pages. Shared state, such as one capture source serving several installations, is charged to the installation that enrolled it. Spend is not placement. Limit units in code with budget() over a protocol’s meters; a budget holds whoever operates the slot. Set a money ceiling on your Bijection bill as a billing-account limit. Set one for a slot with bijection installation spend-limit --slot <slot> --usd <amount> (--clear removes it, and with neither flag the command lists the limits) or the dashboard’s billing page; the account-wide limit is the billing account’s. When a slot’s managed usage reaches its ceiling, new work for that slot is refused while running work finishes. A slot served by your own provider is never stopped by a Bijection ceiling.

What placement does not choose

  • Who may sign in. Identity providers are trusted issuers, changed by an audited trust act, never by a deploy. See switching providers.
  • Which source, connection, mailbox or dataset. These are resource entries or the application’s own choices. Gmail, Microsoft Graph and IMAP read a mailbox you choose; they are not placement.
  • Which engine or model. They change the answer, so they are code. Placement chooses only who runs them.
  • The installation itself. Its storage and log are the installation; run them yourself with a private installation.
  • Secret values. Bindings carry references; bijection secret set is unchanged.