The steering repo
How a workspace's steering repo is created, what it holds, how a steering PR becomes a published version, and how Oxagen keeps its settings healthy.
Overview
An agent run follows instructions someone wrote down: a rule about refunds, a skill, an MCP server's tool list. When those instructions live in a chat window or a code repository nobody reviews, a run can follow text that no one approved. The steering repo moves them to one private repository per workspace. Every change arrives as a pull request, and a run reads only the published version.
A steering record is one Markdown file that holds one rule for agents. A steering PR is a pull request on the steering repo (a merge request on GitLab) that adds or changes steering. A published version is the numbered copy of the repo that runs read. Nothing in a steering PR steers an agent until it merges.
Create the steering repo
Creating a workspace creates its steering repo, named oxagen-<slug>. Creating an organization creates <org>/oxagen-config, which holds records every workspace in the organization inherits. Oxagen creates the repo in the GitHub organization or GitLab group the workspace chose. When none is chosen, it uses the organization's stored connection.
Creation runs these steps, and each is safe to repeat:
- Pick the GitHub organization or GitLab group.
- Create the private repository.
- On GitHub, add it to the Oxagen GitHub App installation.
- Commit the first files to
main. - Write the repository settings and read them back. On GitHub, also write a ruleset that makes
maintake changes only through a pull request. GitHub Free refuses a ruleset on a private repository, so Oxagen records the refusal and goes on. - On GitLab, register a webhook that sends push and merge request events.
- Publish version 1.
- Bind the repo to the workspace.
The job stops and waits for a person in two cases. An organization whose owner token reaches more than one GitHub organization or GitLab group stops until someone picks one. A workspace still steered by .oxagen/ in a code repository stops until an owner runs the import, described in Import old steering.
What the repo holds
| Path | Holds |
|---|---|
steering/ | Steering records and skills. Folders under it carry no meaning. |
steering/skills/ | One folder per skill. |
steering/memory/ | Memories a memory PR promoted. |
steering/people/ | One folder per person. A record there steers only the runs that person starts, and no published version carries it. |
steering/governance.toml | Governance mode, reviewers, and memory settings. |
steering/promotions/ | The ledger of promotions. Oxagen writes it. |
agents/ | One TOML file per agent. |
tools/ | MCP servers and toolbelts. |
policy/ | Cedar policies and their tests. |
workspace.toml | The code repositories the workspace links. A workspace repo only. |
README.md, AGENTS.md, and CLAUDE.md each hold a managed block: text Oxagen writes between two marker lines. The first marker carries a hash, a short code made from the text. Write anything you like outside the block. A steering PR that changes text inside it fails the owned check.
Oxagen generates the Cedar schema when it compiles policies. The repo keeps no copy, so a policy/schema.cedarschema file is ignored, and the owned check warns about a steering PR that adds or changes one. The PR still passes. Run oxagen steering schema to print the schema Oxagen generates.
Steering PRs and checks
A steering PR opens from the Oxagen app, from an agent's MCP tool, or from a clone you push. Oxagen runs the record checks on each head commit and reports one required check named Oxagen steering. The record checks are:
- Schema.
- Unique record ID.
record_hashrecomputation.- Secret and PII scan.
- Conflict against active records.
constraint_effectisrequireorforbid.
oxagen check runs the same rules on your machine before you push.
Who may merge comes from the governance mode in steering/governance.toml.
- Solo. One person publishes alone. Oxagen merges a steering PR once its checks pass, so nobody opens GitHub to press Merge. Set
merge.agent_proposalsto also merge what an agent proposed or remembered. - Team and regulated. A reviewer the mode allows must approve at the head commit before the PR merges.
If someone edits a managed block on a PR branch, select Restore block to commit the original text back to the branch.
Publish and versions
Oxagen merges one steering PR at a time per repository. It brings the branch up to date, checks again, stamps a ledger line, and squash-merges with trailers that name the approver, the checks, and the version. A merge Oxagen confirmed then publishes the records, appends to the ledger, and records a deployment to the steering environment.
The Oxagen-Version trailer on the merge commit holds the version number. Oxagen takes each number from one version store under a lock, so two merges cannot take the same one. A version whose Cedar policies do not compile, or whose policy tests fail, is refused.
Runs read the published version. A merge that did not publish leaves runs on the version before it.
Settings health
After creation, you own the repository. Oxagen reads only the settings it cannot merge without. On GitHub that is squash merging. On GitLab it is any squash option except never. It does not compare a ruleset, branch protection, a required check, or visibility. It does not undo a push you make straight to main: Oxagen serves the tip of main.
A read lands in one of three states:
- Healthy. Every setting Oxagen needs matches.
- Drifted. A setting differs, and Oxagen can still write it.
- Disconnected. Oxagen lost access to the repository.
Oxagen reads settings when a settings webhook arrives, when a steering PR opens or changes, and every hour. The hourly sweep matters most on GitLab, which sends no event for most setting changes.
While the repo is not healthy, Oxagen merges nothing. Every open steering PR shows the Oxagen steering check as failed with the differences, and workspace admins get one notification per state change. Runs keep the published version. A workspace Owner or Admin selects Repair settings to write back each differing setting and read health again. Repair never writes a protection rule and never touches main.
GitHub Free
GitHub Free does not enforce a required check or limit merging to Oxagen on a private repository. Oxagen still publishes only what it merged, and it serves the tip of main whether a PR or a direct push put it there. GitHub permissions decide who can push or merge on the host.
Link code repositories
workspace.toml lists each linked code repository as a [[repositories]] entry with a url, the main repository first. When you link a repository from the app, Oxagen opens a steering PR that adds it. Oxagen posts a check named Oxagen on pull requests in a linked code repository. Oxagen never commits a file of its own to your code repository. Import agent configuration covers importing a repository's CLAUDE.md, AGENTS.md, rules, and skills.
Import old steering
A workspace may still keep steering in .oxagen/ in a code repository. An owner runs import_workspace_steering once per workspace. It moves that steering into the steering repo and opens steering PRs for a person to merge. Until the owner runs it, provisioning stops with steering_import_required and creates no steering repo.
Memory
Oxagen suggests memories from runs. Promote to steering turns selected memories into draft records. A memory PR collects them on a daily memory branch, and promoted memories land under steering/memory/. In solo mode Oxagen merges the memory PR by itself, as it merges other steering PRs. Oxagen does not recall a memory that is still waiting for review.
Related
- GitHub connection lists the permissions Oxagen's app holds on the steering repo.
- MCP Studio opens a steering PR for a server's tools.