ontologies/<name>/. An environment is an isolated place where one version of it runs, such as staging or production, with its own data, connections, and secrets. A version is an immutable build of one commit. Deploying rolls a version out to an environment.
Ontologies run only on Tilde Cloud. There is no local ontology runtime: you build and check locally or in CI, and run on Tilde Cloud.
For a first deploy, start with Deploy the project. This page covers environments, bindings, and rollbacks in more depth.
Create a project and an environment
1
Create the project
In Foundry, select Create project. Use the ontology’s folder name: lowercase letters, digits, and dashes, such as
crm for ontologies/crm/. Choose the team that owns it, or the whole organisation.2
Create an environment
Open the project, select Environments, then Create environment, and name it, such as
production. Switch on Serve its spaces in Live if people should open its spaces.3
Declare it in tilde.config.ts
List the ontology and its environments in
defineProject, with what each environment binds. See Bind connections and secrets.Deploy
tilde deploy at the repository’s root builds every ontology in tilde.config.ts on your machine or in CI, uploads it as a version, binds each environment, and rolls it out, one environment at a time. Tilde never builds your code: it validates what you upload, and deploys it. Install @trytilde/ontology in each ontology’s package and @trytilde/spaces in its spaces package, and pin them in your lockfile.
See Deploy the project for the steps, --dry-run, --check, CI, and every option.
Bind connections and secrets
Each environment binds the ontology’s connections to your organisation’s connections, and its secrets to your team’s secrets. Declare both intilde.config.ts:
tilde.config.ts
ontology<typeof connections>types each binding by its connection’s provider, so bindinglinearto a GitHub connection does not compile. The import is type-only.- Connections and secrets are only referenced. Create them in Tilde. A missing one blocks the deploy, with a link that creates it.
- Tilde checks that the version declares exactly the connections and secrets each environment binds: an unbound one blocks the deploy.
- Unbinding a connection cuts off access within minutes. Different environments can bind the same connection to different accounts.
Settings
Settings are plain values handlers read, declared withsetting(default) in the ontology’s env. They keep their defaults unless the environment overrides them through the management API.
An ontology has two kinds of secret. Pipeline secrets, declared with defineSecrets, are bound to your team’s secrets in tilde.config.ts, as above. Handler secrets, declared with secret() in env and read from ctx.secrets, are set in the environment’s Secrets section. Values are write-only.
Roll back
The environment’s page lists its deployments. Select Roll back to deploy the previous version again, or Roll back to this on any earlier deployment. A rollback reuses the stored version, so nothing is built.Give an agent the ontology
The Tilde Foundry tool provider gives agents an environment’s reads and actions as tools. The connection holds only the environment’s ID, and no key: Tilde issues a short-lived token for each call, and the ontology’s policies decide it.1
Connect the environment
In Connections, choose Tilde Foundry, name the connection, and enter the environment’s ID.
2
Add it to the agent
In the agent’s spec, select the tools from that connection, such as
connection.ref("tilde_ontology/crm").tools("listCustomers"). See Agents as code. You can also add them on the agent’s Tools tab. See Manage tools.3
Grant the capability
Allow the tools in the agent’s
tools.invoke capability.4
Permit the agent in policies
Write policies for
principal.type == "agent", or for the specific agent.Who can do what
Ontology projects have their own access actions. Environments and spaces follow their project.viewlets a person see the project and open its spaces in Live.editlets them change environments, connections, and secrets.deploylets them deploy and roll back.sharelets them change the project’s visibility, ownership, and grants.write_streamslets a management API key write to the project’s custom streams.