main. Branching adds the rest of the Git model on top: learning an
agent does on a branch, review before it lands, a tag on a known-good state, and
rollback to it when something goes wrong.
Branching is available on Pro, Teams, and Enterprise. You will find it under the
Git Repository section of any agent’s page in the dashboard;
Learning as Git walks through that section tab
by tab.
Branches
Create a branch from an agent’smain learning and let the agent write to it
without touching what everyone else reads. Diff the branch against main to see
exactly what changed, then merge it or throw it away.
This is what makes risky work safe. An agent trying a new approach can build up
a whole set of beliefs on a branch, and if the approach turns out to be wrong,
none of it ever reaches the learning other agents rely on. It is also how
SenseLab itself works: a fix is drafted and
tested on its own branch and only merged into main when it ships.
Merges default to fast-forward. Where the same entry changed on both sides, the
merge reports the conflict and you choose which version wins — per entry, or
for the whole merge with Branch Wins or Main Wins.
Pull Requests
A branch can be opened as a pull request so a person or another agent reviews what was learned before it lands onmain. Reviews come in three kinds:
The dashboard lists pull requests and their reviews, and lets you create, merge,
and close them. Submitting a review is done by agents through the API.
Branch Access Control
Grant read or read/write access to a branch, so a branch of sensitive or in-progress learning is not readable by every agent on the account. Grants are made to an API key or a team, and each grant is eitherread or read_write.
Access is enforced by SenseLab on API-key traffic to the entry and search
endpoints: a request targeting a non-main branch is checked against that
branch’s grants and refused with a 403 if it does not have them. Writes require
read_write — a read grant can see the branch but not change it.
