Repository profiles
Tell Forkspan how to prepare a sandbox for a repository, then build its image on a sandbox server.
A repository profile says how Forkspan prepares a sandbox for one repository. It holds the clone URL, the Dockerfile for the image, the setup steps, the test command and the resource limits. Forkspan builds an image from the profile on a sandbox server. Runs and reviews then start from that image.
A repository profile is not a review profile. The review profile says how agents examine a pull request. See Run your first review.
Before you start
- A registered sandbox server that you can use. See Register a sandbox server.
- For a repository on GitHub, a GitHub token saved as a workspace secret named
GITHUB_TOKEN. Builds use it to clone the repository. An Owner or Admin adds it under Credentials, in Other secrets, with Add secret. When you paste a token that starts withghp_orgithub_pat_, Forkspan suggests the nameGITHUB_TOKEN.
Create a profile
| Step | Fields | Notes |
|---|---|---|
| Repository | Repository, Ref | A Git clone URL, such as https://github.com/owner/repository.git. Ref is a branch, a tag or a commit. Leave it blank to track the default branch. |
| Name & workdir | Name, Workdir | The name is the profile id and the image tag, sandbox-<name>. Workdir is the checkout path inside the sandbox. |
| Resources | CPU, Memory, Base image | CPU is in decimal cores. You can change the limits later under Config. |
| Prep & tests | Prep steps, Test command | Prep steps run before each attempt. Add at least one. In the test command, {paths} is where the flow writes the files it wants to run. |
| Review | A summary of your choices. |
Select Create draft. Forkspan creates the profile as a draft with a starter Dockerfile.
Base image is not saved yet
The wizard does not send the Base image choice. To change the base image, edit the FROM line
on the Dockerfile tab after you create the draft.
Configure the profile
Open the profile to see its tabs: Overview, Config, Dockerfile, Prompts and Smoke.
The Config tab has these sections:
| Section | Use it for |
|---|---|
| Environment | Environment variables for the sandbox. |
| MCP servers | MCP servers that agents can use. |
| Build | Build settings for the image. |
| Secrets | The names of secrets that the build or the sandbox reads. Values stay in Credentials. |
| Knowledge base | Reference material for agents. |
| Sandbox resources | CPU, memory and Node heap for each sandbox. |
| Prep steps | Commands that run before each attempt. |
| Runtime | How to reach a running app: app URL, database, login and login path. |
| Smoke steps | Commands that check a new image. |
| Test commands | Commands that run tests. |
Save your changes before you build. Build image is not available while the profile has unsaved edits.
Build the image
Select Build image on the profile. After the first build, the button is Rebuild image.
Choose the sandbox server that runs your reviews. That server builds the image, and a review waits until its server holds the image.
Confirm with Rebuild. If the server is offline, the build waits in the queue and shows why.
Forkspan opens Builds, where you can follow the build.
Profile states
| State | Meaning |
|---|---|
| Draft | Created, never built. |
| Building | A build is running. |
| Smoking | The smoke steps are checking the new image. |
| Ready | The image is built and passed its smoke steps. |
| Stale | The image no longer matches the repository or the profile. Build again. |
| Build failed | The build failed. Open the build to read its log. |
| Smoke failed | The image was built, but a smoke step failed. |
| Disabled | The profile cannot be used. |
Independent runs can use a profile only when it is Ready or Stale.