dev, and you add more (staging, prod, preview, a per-tenant env) as you need them. Environments never read each other’s data.
This page explains the model: what makes dev special, and what isolation between environments buys you. For the steps to create an environment, see Environments.
Why dev is different
dev is the one environment every app has from creation, and it plays a role no other environment can:
- It’s the live mirror of your branch. On every push to your connected branch, context-sync mirrors your app’s
.outerlayer/context directory into the Dashboard and advancesdev’s commit pointer, sodevalways reflects what’s on HEAD. - You can’t delete it. AgentMark locks the default environment for the life of the app.
Other environments
Environments beyonddev (staging, prod, preview, or whatever names fit your workflow) give you isolated infrastructure to point at your own deployments:
- Their own API keys, scoped so a
stagingkey can’t readprod’s traces or vice versa. - Their own environment variables, so the same key can hold a different value per environment.
- Their own Webhook URL, so you can register a different hosted client per environment (for example, pointing
stagingat a preview deployment andprodat your production service).
Isolation between environments
Each environment has its own:- Traces, evals, and metrics: data captured against one environment stays scoped to it.
- Environment variables: the same key can hold a different value per environment, with no app-level fallback. The environment’s registered client reads only its own variables at runtime.
- API keys: AgentMark scopes keys per environment. A
prodkey can’t readstaging’s traces or scores, and vice versa.
dev, staging, and prod. When you instead have two genuinely unrelated projects, use separate apps, which sit isolated at a higher level.
How this relates to apps and branches
Environments live one level below apps in AgentMark’s hierarchy:- An app is a single project, backed by one default branch in a connected Git repository. It owns the context, the client code, and the set of environments.
- A branch is where context-sync mirrors your source from.
devfollows that branch’s HEAD. - An environment is one isolated slice of that app’s API keys, environment variables, and telemetry.
Where to go next
Environments
Create an environment and configure its API keys and variables.
Webhooks
Register the hosted client an environment dispatches to.
API keys
Mint a key scoped to a single environment.
Regression gates
Fail a CI build when scores regress against a baseline.
Have questions?
Reach out any time:
- Email the team at hello@agentmark.co for support
- Schedule an Enterprise Demo to learn about AgentMark’s business solutions