Forkspan

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 with ghp_ or github_pat_, Forkspan suggests the name GITHUB_TOKEN.

Create a profile

Open Repository profiles in the Configuration section, then All profiles.
Select New profile. The wizard opens. It has five steps:
StepFieldsNotes
RepositoryRepository, RefA 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 & workdirName, WorkdirThe name is the profile id and the image tag, sandbox-<name>. Workdir is the checkout path inside the sandbox.
ResourcesCPU, Memory, Base imageCPU is in decimal cores. You can change the limits later under Config.
Prep & testsPrep steps, Test commandPrep 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.
ReviewA summary of your choices.
Fill in each step of the wizard.

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:

SectionUse it for
EnvironmentEnvironment variables for the sandbox.
MCP serversMCP servers that agents can use.
BuildBuild settings for the image.
SecretsThe names of secrets that the build or the sandbox reads. Values stay in Credentials.
Knowledge baseReference material for agents.
Sandbox resourcesCPU, memory and Node heap for each sandbox.
Prep stepsCommands that run before each attempt.
RuntimeHow to reach a running app: app URL, database, login and login path.
Smoke stepsCommands that check a new image.
Test commandsCommands 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

StateMeaning
DraftCreated, never built.
BuildingA build is running.
SmokingThe smoke steps are checking the new image.
ReadyThe image is built and passed its smoke steps.
StaleThe image no longer matches the repository or the profile. Build again.
Build failedThe build failed. Open the build to read its log.
Smoke failedThe image was built, but a smoke step failed.
DisabledThe profile cannot be used.

Independent runs can use a profile only when it is Ready or Stale.

On this page