Manual contents

Keep your workspace in a repository

Keep your automations, apps, policy and networks as files in your own GitHub repository, reviewed the way you review code, and release only what was merged, through the same gate and stages.

On this page
  1. How change control works
  2. Connect a repository
  3. Protect the default branch
  4. Lay out the folder
  5. Propose changes from Boundlane
  6. Release a candidate from a merge
  7. Apply a merged policy or network change
  8. Read the card’s drift list
  9. Give a pipeline its own identity
  10. Disconnect the repository
  11. What the trail records

How change control works

With a repository connected, the repository is the record of what each package is, and Boundlane is the record of what is in force. Changes go both ways, and each way is governed.

  • From Boundlane to the repository. A change made in Boundlane is proposed as a pull request on a branch named boundlane/. Boundlane never writes to your default branch, a tag or any other branch, and never merges or closes a pull request.
  • From the repository to Boundlane. When a change is merged to the default branch, Boundlane reads the commit itself and makes a release candidate of each package that changed. Nothing merged is live by being merged: a person, or a pipeline you make for it, releases the candidate through the same gate and stages as any release.
  • Policy and networks. A merged change to the workspace’s policy or networks waits in Settings until a person applies it. A merge never lifts the network restriction.
  • Secrets stay out. Connection secrets never go in the repository. A file that holds one refuses the whole commit.
Note: A merge is a review of the files, not an approval in Boundlane. Approvals still wait for a person in Boundlane, and the release gate decides each release as it does without a repository.

Connect a repository

You need a role that may configure the workspace, and a GitHub account that administers the repository. Writing to it is not enough: connecting a workspace is a decision about the repository. Boundlane’s App must be installed on the repository’s account. If it isn’t, click Install Boundlane’s GitHub App under Connect GitHub, or ask the account’s owner to install it.

  1. In Boundlane, open Settings, then Connections & notifications, and find Repository.
  2. Click Connect GitHub. GitHub asks you to authorize Boundlane’s App. Authorize it. You install nothing in this step, so it works the same for a second workspace, for connecting again, and when somebody else installed the App.
  3. GitHub sends you back to Boundlane. Choose the repository and the folder Boundlane owns, boundlane unless you name another. Boundlane lists the repositories you administer that the App reaches, and no others.
  4. Click Connect this repository. Boundlane opens a pull request in the repository that adds one file, connection.json, under the folder. It names the workspace, who asked and when.
  5. Merge that pull request the way you merge any change. The connection takes effect when the file is on the default branch: Boundlane then reads the folder, and Repository shows it as connected.

So the repository’s own review decides whether a workspace is attached, and its history shows every workspace that is. Until the pull request is merged, Boundlane reads nothing from the repository and writes nothing else to it, and the workspace releases from Studio as before. To refuse the connection, close the pull request. To take your request back, click Withdraw the request.

If two workspaces ask for the same folder, the file names one of them, and only that one is connected.

When a connection is held

Nothing that happens in the repository or at GitHub disconnects a workspace. It holds the connection, and Repository says what happened. More than one hold can stand at once: each ends on its own terms, and the connection stays held until every one has ended. While a connection is held, Boundlane proposes nothing to the repository, releases nothing by any route, and applies no merged setting. Released versions keep running, and you can still move one between stages. Boundlane emails the workspace’s administrators when a hold begins, at most once a day for each reason; the audit trail keeps every hold and every lift. Only a person who may configure the workspace disconnects, in Settings.

What happenedWhat ends the hold
connection.json was removed from the default branch, emptied, can’t be read, or names another workspacePut the file back on the default branch. Boundlane lifts the hold the next time it looks at the repository, for any reason. To have it look now, click Check the repository now in Repository.
Boundlane’s App was uninstalled, or the repository was taken out of its installationInstall the App again, or add the repository back. Then an administrator proves access, as below.
The administrator whose access the connection stood on left the workspace, may no longer configure it, or lost their access to the companyAnother administrator proves access, as below. Giving the first one their role back does not end the hold.
The workspace’s single sign-on changed since access was provedAn administrator proves access again, as below. The single sign-on settings say so before you change them.

Suspending the workspace or its company sets no hold. Boundlane refuses everything in a suspended workspace anyway, and the connection is as it was when the workspace comes back.

To prove access:

  1. As an administrator of the workspace who administers the repository, open Settings, Connections & notifications, Repository.
  2. Click Authorize with GitHub to prove access, and authorize Boundlane’s App.
  3. Back in Boundlane, click Prove access with this GitHub account. The connection stands on your access from then on, and the audit trail records it.

The App asks for the repository’s contents and pull requests, to read and to write, and its metadata, to read. It writes only branches named boundlane/. A workspace connects one repository. A folder in a repository belongs to one workspace, and so does every folder inside it and around it.

GitHub comes back to the browser that started, within ten minutes. What doesn’t match is refused, and you start again. Boundlane asks GitHub which repositories you administer, then ends its access to your account at once: it keeps no token of yours.

Protect the default branch

Protect the default branch in GitHub with a rule that requires a pull request and a review before a merge. Boundlane writes only to its own branches, so the review on the default branch is where your people decide what a package is.

The repository card says when the default branch is not protected. It is a warning: Boundlane connects either way.

Lay out the folder

Everything Boundlane reads and writes is in the folder you chose when you connected:

Path in the folderWhat it holds
packages/<slug>/One package as files: boundlane.json, its tools’ code and its test cases, as a coding agent pulls and pushes them. The directory’s name is the package’s slug. Schema: https://boundlane.com/schemas/package.json.
workspace/policy.jsonThe workspace policy: forbidden actions, approval rules and limits, what new apps require, and app reviews. Schema: https://boundlane.com/schemas/workspace-policy.json.
workspace/network.jsonThe networks the workspace is open from, and whether they cover assistants, apps and pipelines. Schema: https://boundlane.com/schemas/workspace-network.json.
README.mdWhat the folder is, written by Boundlane when it first proposes a change.

A field the policy file leaves out is unchanged: it is never read as off or empty, so a file that says nothing changes nothing. To turn something off, say so in the file: false, an empty list, or null. The file Boundlane proposes states every field. What a connected assistant, app or coding agent may hold stays in Settings, and is never in the repository.

Boundlane reads at most 2,000 files, 1 MB a file and 20 MB in all. A file it doesn’t know is listed on the card and otherwise left alone.

Secrets

Keep secrets in Boundlane: a connection’s secret is set in Boundlane and referred to, never written in a file. A file of any type that holds one refuses the whole commit: nothing in it is read as a package or a setting. The trail names the file and the line, never what was in them. Boundlane checks what it proposes the same way, so it never writes a secret to your repository. Boundlane looks for:

  • a private key, a token or a signing secret in its own format, a notification address for Slack or Teams, and an address with a password in it;
  • a value under a key that names a secret, however the key is written: password, signingSecret, bot_token, X-Api-Key, Authorization;
  • a credentialRef or another credential reference that is not a vault:// reference.

A placeholder, a variable such as ${API_TOKEN} or $API_TOKEN, or an empty value is not a secret, and a key that only describes one, such as tokenUrl, is not read as one. Write a variable in braces or in capitals: a lower-case word after a dollar sign, such as $db_password in a settings file, is read as a password and refuses the commit, and ${db_password} does not.

Propose changes from Boundlane

  • A draft in Studio. With a repository connected, Studio offers Propose to the repository in place of the release button. It writes the draft’s files to the package’s branch, boundlane/<connection>/packages/<slug>, and opens a pull request, or updates the open one, with Update the pull request.
  • A coding agent. A coding agent pushes with propose set, and the answer links the pull request. See pull, validate and push.
  • Policy and networks. A change to the policy or the networks made in Boundlane is in force at once, as before. Boundlane then proposes it on the branch boundlane/<connection>/workspace, so the repository can say what is in force.
  • Branch names. <connection> is the id of this workspace’s connection to the repository. Two workspaces that keep their folders in one repository each have their own branches and pull requests, and neither changes the other’s.

A pull request names who changed what in Boundlane and why. Nothing is proposed when the repository already holds it. Boundlane never merges or closes the pull request: your review does.

Release a candidate from a merge

When GitHub tells Boundlane that the default branch moved, Boundlane reads the branch’s latest commit itself: the delivery is only a notice, and nothing it says is taken as a fact. Boundlane reads one repository at a time and in order, so an older read never finishes over a newer one. It also reads the branch again just before a release is published, when you open the card, and once a day, so a delivery that never arrived is caught.

The default branch is the one GitHub names when Boundlane reads. When you make another branch the default, or rename the branch or the repository, Boundlane follows on its next read, and the audit trail records the change.

  • Each package that changed becomes a candidate: a draft made from the commit’s files, validated as a push is, and marked with the commit and its pull request.
  • A package whose files don’t validate makes no candidate, and the trail says which file and why.
  • A package whose content is what the standing candidate or the released version holds makes none.
  • A newer candidate of a package replaces the older one.

A candidate is released only while the default branch holds its content. Each time Boundlane reads the branch, it withdraws a candidate whose content is no longer there:

  • a later commit put back what is released, as a revert does;
  • the package was removed, or its files no longer validate;
  • the latest commit holds a secret, so Boundlane reads nothing from it;
  • the workspace was connected again, and the candidate was read through the earlier connection.

A withdrawn candidate isn’t released by a person or a pipeline, and the refusal says why. Studio says so on the draft, and the card and the package’s page stop offering it. When the default branch holds the content again, a candidate stands again.

A version that was already released is checked too. When you advance it past Rehearsal, Boundlane reads the default branch. If the commit the version was released from was reverted, the package was removed, or its files no longer validate, the package’s page says so on a card, and the version moves on only once a person who may release ticks the card. The audit trail records who did. A later merge that only waits for release is not a revert, and asks for nothing. An assistant, a coding agent and the automatic advance never tick the card.

Open the candidate in Studio from the card or the package’s page, and release it through the gate. It starts in Rehearsal, and moves through the stages as any release does. See advance a version.

A candidate isn’t changed in Boundlane: it is the repository’s own commit. Studio offers Start a draft from it, which makes a draft you can change and propose. When the repository changes a package after your draft of it started, Studio says so on the draft and offers Start again from the repository; your draft stays as it is.

Releases come from the repository

With a repository connected, Studio’s release controls and a coding agent’s release_package release only a package’s standing candidate: the latest one, not withdrawn. A draft that isn’t one is refused with a sentence that links its open pull request, or offers to propose it; a candidate that was replaced or withdrawn is refused with why. The answer’s code is not_a_candidate.

Apply a merged policy or network change

When the merged workspace/policy.json or workspace/network.json differs from what is in force, the repository card lists it. A person who may configure the workspace clicks Apply, which applies the file as it was at the commit they saw, or Set aside, which leaves what is in force as it is. Both are recorded.

The card shows what applying changes: each field as it is now and as it would be. A change that loosens the workspace’s rules says what it lets through, and you tick each one before Apply turns on. These loosen the rules:

  • an action taken off the list of forbidden actions;
  • the second approver turned off;
  • an approval limit raised or removed;
  • the role that approves over a limit changed or removed;
  • a requirement of new apps removed;
  • app reviews turned off, made less often, or no longer holding an overdue app;
  • a network added to a restricted workspace.

Boundlane refuses to apply a loosening that isn’t ticked, and the audit trail keeps what changed and which loosenings were ticked.

A merged network change that would remove the restriction, or take assistants, apps and pipelines out of it, is shown and never offered to apply. A person does that in Boundlane, in the browser. See network access.

Read the card’s drift list

The repository card compares the default branch with what is in force, and lists what isn’t in step:

StateWhat it meansWhat to do
Repository aheadMerged, and not released or not applied.Release the candidate, or apply or set aside the merged file.
Changed in BoundlaneChanged here and in force, with its pull request open, or with none open because proposing failed or the pull request was closed.Merge the pull request, or close it to keep the repository as it is. With none open, click Propose again.
Both changedMerged in the repository and changed in Boundlane.Release the candidate and update or close the pull request, or start the draft again from the repository.
Not in the repositoryA package Boundlane holds that the folder doesn’t.Propose it from Studio, or stop or retire it if removing it was meant.
Doesn’t validateThe folder’s files for a package make no candidate.Fix them in the repository: the problems are listed.

Nothing is overwritten when both sides change: Boundlane shows both, and a person decides. A package’s page says the same in a line: released from a commit, a candidate waiting, or a change waiting to be merged.

Give a pipeline its own identity

A pipeline that releases after a merge acts as itself, never as a person. Make it a pipeline identity in Settings, Connections & notifications, Pipelines, in the browser.

  1. Name it, so the trail and the inventory say which pipeline acted.
  2. Choose how many days it lasts, at most 365.
  3. Tick It may release a candidate when the pipeline releases. Leave it off for one that only checks.
  4. Click Make a pipeline identity, and copy the token into your pipeline’s secret store as BOUNDLANE_TOKEN. Boundlane shows it once and keeps only its hash.

A pipeline identity:

  • Reads packages, validates, pushes and tests drafts, and, when made with release, releases a package’s latest candidate into Rehearsal through the gate.
  • Never moves a version past Rehearsal, where a change to a business system is recorded and not performed. Advancing a stage, narrowing, stopping, starting, approving and configuring need a person, and each is refused to a pipeline with a sentence that says so.
  • Is never advanced out of Rehearsal automatically. A person moves a version a pipeline released to its next stage.
  • Never changes a setting or a member, and never reaches a business system.
  • Holds no more than the workspace lets a connection hold: it releases only when Settings, Policy lets connections hold Release, and the list in Settings says when it doesn’t.
  • Is honoured only on the HTTP routes under /api/v1/, and never at /mcp.
  • Is covered by the network list when the list covers assistants and apps: run the pipeline from a listed network.
  • Is named as the actor on everything it does, as pipeline:<id>, with its name.

Release from a pipeline

After a merge, list the packages: each one with a candidate names its draft and the commit it was read from. Release that draft when the commit is your merge. Boundlane reads a merge seconds after GitHub tells it; when the candidate is not there yet, wait and list again.

curl -s -H "Authorization: Bearer $BOUNDLANE_TOKEN" https://boundlane.com/api/v1/packages
# packages[].candidate: { "draft": "<draft id>", "commit": "<sha>" }
curl -s -X POST -H "Authorization: Bearer $BOUNDLANE_TOKEN" https://boundlane.com/api/v1/drafts/<draft id>/release

Expiry, rotation and revoking

  • Its creator and the workspace’s administrators are emailed 14 days before it expires. When it expires, it stops, and the trail records that.
  • Rotate issues a new token. The old one keeps working for 24 hours, while you put the new one in the secret store, then ends.
  • Revoke ends the token, and a rotated one still in its 24 hours, at once.
  • Its last use shows in Settings and in the inventory on the Apps page.

Disconnect the repository

On the repository card, click Disconnect, read what it does, and confirm. Disconnecting returns the workspace to Studio’s own release path at once: drafts are released from Studio again. Every candidate and its history are kept, nothing in the repository is changed, and no pull request is closed. It is recorded in the trail.

Uninstalling Boundlane’s App in GitHub, removing the repository from it, or removing the connection file does not disconnect the workspace: it holds the connection. See when a connection is held.

What the trail records

The audit trail records connecting and disconnecting, each pull request Boundlane opens, each candidate it makes or refuses and why, each delivery it refuses, each merged setting a person applies or sets aside, and each pipeline identity made, rotated, revoked or expired. It never records a file’s content. A release from a candidate is recorded as any release is, with the person or the pipeline that released it. See the record export reference for each entry’s fields.

Something missing or wrong on this page? Tell us.