Pipeliner is Bitcode’s pipeline appliance container image for AssetPack deposit and read synthesis.
| VCR repository | vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner |
| Purpose | Run the AssetPack SDIVF pipeline inside a Vercel Sandbox (or local Docker) with Bitcode packages and runners preinstalled |
| Not for | LocalHost-on-serverless (illegal). LocalHost remains laptop-only without Docker unless you explicitly run Pipeliner via Docker for parity |
| Consumers | BITCODE_PIPELINE_HOST → sandbox + BITCODE_PIPELINE_SANDBOX_IMAGE → Sandbox.create({ image }) |
On serverless, synthesis always spawns a Sandbox microVM. Stock node24
runtimes force cold install of the monorepo (slow/fragile). Pipeliner bakes
Bitcode’s host runners + workspace packages into an OCI image so each run:
- Creates a sandbox from Pipeliner (
image, not stockruntime) — nosource: giton create (create-time customer clone is outside the pipeline and failed production withbad_request: git clone failed) - Writes only the run manifest (+ host env including
BITCODE_HOST_CLONE_*) - Runs
node /opt/bitcode/pipeline/run-pipeline.mjs - Setup clone-repository agent multi-step clones the customer repo inside the box (branch shallow + optional pin commit) using the install token — never in the serverless function process
- Streams telemetry / writes evidence, then stop + delete (ephemeral)
Host law: serverless dispatches only; Pipeliner is the program; customer source is Setup’s job inside the sandbox.
| Path | Role |
|---|---|
/opt/bitcode |
Bitcode monorepo root (BITCODE_MONOREPO_ROOT) |
/opt/bitcode/pipeline/run-pipeline.mjs |
Dispatcher (host_smoke | asset_pack_pipeline) |
/opt/bitcode/.proofs/pipeline-host/*.mjs |
Host-smoke + live runners |
/vercel/sandbox |
Customer git checkout + run artifacts |
/usr/local/bin/* |
Native language servers (gopls, rust-analyzer, clangd, …) |
Pipeliner must support language-intelligence for customer checkouts:
- npm-bundled with
@bitcode/lsp(installed viapnpmin the image): TypeScript/JS, Python (pyright), bash, YAML, Dockerfile, HTML/CSS/JSON, Vue, Svelte, GraphQL, PHP, TOML, … - Native binaries installed by
scripts/install-language-servers.sh.
| Value | Contents |
|---|---|
full (default) |
default natives + OpenJDK, jdtls, kotlin-language-server, .NET, OmniSharp |
default |
gopls, rust-analyzer, clangd, marksman, terraform-ls, lua-language-server, sqls |
Build with a lean image:
docker build \
-f containers/images/pipeliner/Dockerfile \
--build-arg BITCODE_PIPELINE_LSP_PROFILE=default \
-t vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner:lean \
.Setup primes every resolvable server for languages present in the checkout; Discovery
uses lsp-* tools against those live sessions. PATH is last-resort for unmapped hosts.
# Serverless always uses sandbox (VERCEL=1). Image selects Pipeliner:
BITCODE_PIPELINE_SANDBOX_IMAGE=vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner:latest
# Prefer sha tags after CI push:
# BITCODE_PIPELINE_SANDBOX_IMAGE=vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner:v48-<sha>
# Optional override:
# BITCODE_PIPELINE_IMAGE_ENTRY=/opt/bitcode/pipeline/run-pipeline.mjs
# Sandbox create auth (one of):
# VERCEL_OIDC_TOKEN (auto on Vercel deploys)
# or VERCEL_TOKEN + VERCEL_TEAM_ID + VERCEL_PROJECT_ID# From linked Bitcode project root:
vercel link
vercel env pull .env.local
source .env.local
printf '%s' "$VERCEL_OIDC_TOKEN" | docker login vcr.vercel.com \
--username oidc \
--password-stdinToken auth alternative:
printf '%s' "$VERCEL_TOKEN" | docker login vcr.vercel.com \
--username "$VERCEL_TEAM_ID" \
--password-stdinpnpm --filter @bitcode/pipeline-image run materialize
GIT_SHA=$(git rev-parse --short HEAD)
IMAGE=vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner
docker build \
-f containers/images/pipeliner/Dockerfile \
-t "${IMAGE}:latest" \
-t "${IMAGE}:v48-${GIT_SHA}" \
.
docker push --all-tags "${IMAGE}"Buildx + zstd (recommended by Vercel):
docker buildx build \
--platform linux/amd64 \
-f containers/images/pipeliner/Dockerfile \
--output "type=image,name=${IMAGE}:latest,push=true,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true" \
--output "type=image,name=${IMAGE}:v48-${GIT_SHA},push=true,oci-mediatypes=true,compression=zstd,compression-level=3,force-compression=true" \
.From monorepo root — Path A LocalHost runner, Path B Pipeliner Docker:
# Real LLM required for measured options:
export BITCODE_ASSET_PACK_REAL_INFERENCE=1
# ANTHROPIC_API_KEY / OPENAI_API_KEY / …
pnpm run accept:deposit-synthesis # Path A (default)
pnpm run accept:deposit-synthesis:docker # Path B (needs Docker)
pnpm run accept:deposit-synthesis:all # A then BAcceptance requires worthy_deposit_candidates (or recovered options), full
absolute measurement catalog per option, and inspectable patch/fileChanges.
Reports land under .tmp/accept-deposit-a|b/ and .tmp/accept-deposit-summary/.
Fixture: fixtures/deposit-manifest.template.json.
# After build:
docker run --rm \
-e BITCODE_PIPELINE_HOST_MODE=host_smoke \
-e BITCODE_MONOREPO_ROOT=/opt/bitcode \
-e BITCODE_PIPELINE_HOST_MANIFEST=/tmp/manifest.json \
-e BITCODE_PIPELINE_HOST_ARTIFACT_DIR=/tmp/artifacts \
-v "$PWD/containers/images/pipeliner/fixtures/smoke-manifest.json:/tmp/manifest.json:ro" \
vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner:latestOr run host-smoke without a full customer clone to verify the entrypoint.
When BITCODE_PIPELINE_SANDBOX_IMAGE is set (or sandboxImage option):
createOptions.imageis set; no stockruntimewriteFiles: manifest only (+ optional source overlay)- Commands:
node $BITCODE_PIPELINE_IMAGE_ENTRY(default Pipeliner entry) - Skips in-box monorepo
pnpm install
BITCODE_PIPELINE_HOST_MODE |
Runner |
|---|---|
host_smoke |
run-host-smoke.mjs |
asset_pack_pipeline |
run-live-asset-pack-pipeline.mjs (synthesizeMode deposit | read in manifest) |
.github/workflows/pipeline-image.yml materializes runners and docker builds.
Optional VCR push on workflow_dispatch with secrets + BITCODE_PIPELINE_VCR_IMAGE
set to vcr.vercel.com/gerald-davis-projects/bitcode/pipeliner.