Manual for operators and administrators: commissioning and hardening, users and roles, tenants and budgets, adapter governance, policy-as-code, compliance profiles, attestation and audit export, supply chain, operations.
As of version 0.66.0. Deutsche Version: Administrationshandbuch. The end-user manual is the user manual.
Contents
- Who this manual is for
- Commissioning and hardening
- Users and roles
- Tenants
- Adapter and model governance
- Approvals and segregation of duties 6a. Guardrails: global, tenant, project
- Policy-as-code
- Compliance profiles 8a. Isolation proofs (canary) 8b. MCP gateway
- Attestation and chain verification
- Why-trace and audit export
- Supply chain: SBOM and dependency scan
- Cost and budgets
- Skill and plugin library 13a. Parallel workflows (feature flag) 13b. Specs (spec-driven development, feature flag) 13c. Control artifacts (artifact evolution) 13d. Ansehen: pictures after the build 13e. MonoGame: content, shaders and Wine 13f. Creating your own project profiles 13g. Maven: your own settings.xml, mirror, offline 13h. Vulkan: shaders, Vulkan SDK and lavapipe
- Operations: monitoring, backup, air-gap
- Settings reference
- Troubleshooting for administrators
- Known limits
1. Who this manual is for
This manual addresses operators (installation, hardening, backup) and administrators (users, tenants, rules, evidence). It assumes the user manual, which covers project creation, runs and the quality gate from an end-user perspective.
Supported operating modes:
| Mode | Description |
|---|---|
| Single seat | One person, one machine, usually a coding CLI in subscription mode |
| Team | Several users on one instance, RBAC active |
| Multi-tenant | Several mutually isolated tenants on one instance |
| Air-gap | No network: local model, network-less sandbox, licence without callback |
Not covered: public SaaS with self-registration (see docs/production-scope.md).
2. Commissioning and hardening
2.1 Mandatory values before the first start
| Variable | Requirement |
|---|---|
SOFTWAREFABRIK_DB_PASSWORD |
≥ 16 chars recommended, random (openssl rand -base64 16); enforced in the container/prod profile: set, not a known default value, at least 16 chars (from 0.41.5; previously 12) |
SOFTWAREFABRIK_COOKIE_SECURE |
true behind HTTPS: session cookie with Secure flag (from 0.41.5; default false so that http://localhost works). SameSite=Lax always applies |
SOFTWAREFABRIK_SECRETS_MASTER_KEY |
≥ 32 chars, random (openssl rand -base64 48) |
SOFTWAREFABRIK_ADMIN_USER / _PASSWORD |
Bootstrap admin; without a password no admin is created; in the container and prod profiles startup then aborts, as it does for a known default or too-short password |
SOFTWAREFABRIK_WORKSPACES_ROOT |
Directory for project workspaces |
SF_WORKSPACES_UMZUG_VON |
Starter package only, set by uebernehmen.sh or uebernehmen.ps1: previous workspace root(s), separator : (Windows ;). On start the factory rewrites stored workspace paths from there to SOFTWAREFABRIK_WORKSPACES_ROOT (idempotent, audit WORKSPACES_UMGEZOGEN) |
The application deliberately fails fast:
- Docker Compose aborts without
.env(${VAR:?…}). - In the
containerprofileSecretsEncryptorhard-rejects known demo values and keys that are too short. DbCredentialsValidatorchecks database credentials at startup.- In the Compose stack PostgreSQL is bound to
127.0.0.1.
2.2 Attestation key
SOFTWAREFABRIK_ATTESTATION_SIGNING_ENABLED=true
SOFTWAREFABRIK_ATTESTATION_KEY_ID=<meaningful-id>
SOFTWAREFABRIK_ATTESTATION_PRIVATE_KEY=/path/to/ed25519-key.pem
# optional: SOFTWAREFABRIK_ATTESTATION_KEYRING_PATH for key rotation
Development and test use an ephemeral key. In the container/prod profiles, enabled without a key is a startup error. Running without signatures must be declared explicitly (…SIGNING_ENABLED=false). Security should be a decision, not an oversight.
The key must go into the backup. Without it the audit chain can no longer be verified later.
2.3 Remote hardening
SOFTWAREFABRIK_GIT_ALLOWED_HOSTS=github.com,git.company.com # allowlist
SOFTWAREFABRIK_GIT_PR_FEEDBACK_ENABLED=false # default
The factory uses the GitHub token and issues API calls only for hosts on the allowlist. Without that boundary a manipulated remote URL could exfiltrate the factory-wide token (SSRF). GIT_ALLOW_PROTOCOL is set as well, to rule out attacks via the git ext:: remote helper.
The PR/CI poller is deliberately opt-in: unattended periodic remote contact should be a conscious operational decision.
An administrator can also add Git hosts in the interface under Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts (import folders and Git hosts, section 2.6). The hosts from the environment still apply.
Repo import from a local path (from 0.40.1):
SOFTWAREFABRIK_IMPORT_ALLOWED_ROOTS=/home/team/repos # default: empty = off
An import project with a local path copies the directory into the workspace on the first run, where the agent reads it. Only sources below the listed directories are allowed (comma-separated; the real path is compared, so a symlink pointing outside is rejected too). If the value is empty, the run rejects the local import with a hint; Git URLs are not affected. On multi-user servers leave it empty or restrict it to a dedicated directory — otherwise anyone who can create a project can have any directory readable by the service copied. Symlinks and special files in the source are never copied; the run log lists them as a warning.
An administrator can also add import folders in the interface: Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts (section 2.6). They extend the environment rather than replace it, and apply immediately. The page rejects system directories, the root and home directory and folders containing the factory installation.
2.4 Sandbox
softwarefabrik.execution.sandbox.variant = local | container (SOFTWAREFABRIK_EXECUTION_SANDBOX_VARIANT)
softwarefabrik.execution.sandbox.docker-binary = docker (e.g. podman)
softwarefabrik.execution.sandbox.host-user = true (SOFTWAREFABRIK_EXECUTION_SANDBOX_HOST_USER)
softwarefabrik.build.sandbox-image = maven:3.9-eclipse-temurin-21
softwarefabrik.build.dotnet-sandbox-image = (empty = automatic) (SOFTWAREFABRIK_DOTNET_SANDBOX_IMAGE)
softwarefabrik.sbom.sandbox-image = aquasec/trivy:latest
These values live in YAML or the environment; the Settings page does not offer them. An administrator can also set the variant on the Leitplanken page (/leitplanken): with the level „Vorsichtig“ (careful) or as the single value „Sandbox“ in the „Experte“ view (applies to all projects, section 6a). The guardrail is called „Sandbox für Build, Tests und Scans“ (sandbox for build, tests and scans; until 0.60 it was wrongly labelled „Sandbox des Agenten“, agent sandbox). Tenant (ADMIN) and project (MAINTAINER or higher, on /projects/{id}/leitplanken) can tighten it to container when local applies above; the page rejects local below a container. Every change creates LEITPLANKE_GESETZT or LEITPLANKE_ENTFERNT. A MAINTAINER can also delete the project's own setting again (then the level above applies): the project setting is only as strong as the MAINTAINER role. To prevent that, set the container globally or for the tenant. The variant is re-read for every build, docker-binary and the images only at startup. The Maven build runs in the image softwarefabrik.build.sandbox-image, the .NET build (since 0.42) in the image softwarefabrik.build.dotnet-sandbox-image — the choice follows the detected tool; a project build command uses the .NET image if the build directory contains a .NET project. If the .NET image is not set (default), the factory picks it per project: the SDK version from global.json in the build root, otherwise the highest netX.Y from TargetFramework/TargetFrameworks (project files and Directory.Build.props), otherwise the newest supported .NET version — each as mcr.microsoft.com/dotnet/sdk:X.0. The first line of the build summary names the image and the reason. A set value applies to all projects (e.g. a custom image with workloads).
Automatically detected build directory (since 0.52.0): if a workspace root holds no build file and the project sets neither build directory, build command nor project profile, the gate builds the direct subfolder backend/ or the only subfolder with a build file — also during the trial run after an import. That is code execution of the (possibly third-party) project: without the container sandbox locally on the factory host (without the factory's secrets), with the container sandbox inside the container. Previously nothing ran in this case. Every such build writes a WARN line to the run log, shows the box „Nur ein Teil gebaut“ (only part built) on the run page (with „lokal“ or „im Container“) and records the audit event BUILD_VERZEICHNIS_AUTOMATISCH. To turn it off per project: set a build directory or build command, confirm a project profile, or use the build gate mode „Projekt hat bewusst keinen Build“. Anyone importing third-party repositories should use the container sandbox (guardrail level „Vorsichtig“).
As long as softwarefabrik.build.sandbox-image is at its default, the factory picks the Maven image per project from 0.45: if pom.xml requires a JDK above 21 (e.g. maven.compiler.release 25), it builds in maven:3.9-eclipse-temurin-<JDK>; a set value applies to all projects. The other project profiles build in the image from their profile file:
| Profile | Image |
|---|---|
| Gradle | gradle:9-jdk25 |
| Gradle (wrapper) | eclipse-temurin:21-jdk (level A since Java package, step 2) |
| Python (pip) | python:3.13-slim |
| Python (uv) | ghcr.io/astral-sh/uv:python3.13-bookworm-slim |
| Node.js (npm, pnpm, Yarn) | node:22 |
| Go | golang:1 |
| Rust | rust:1 |
| Python (Poetry), CMake | none — "not checked" with the container sandbox until the project sets an image |
Java projects (Java package): the factory reads the Java version in this order: .java-version → .sdkmanrc (java=21.0.2-tem) → .tool-versions (java temurin-21.0.1) → pom.xml → Gradle file (JavaLanguageVersion.of(N), jvmToolchain(N), sourceCompatibility). If one of the three version files pins the JDK, Maven builds in the matching LTS image (also downwards, e.g. maven:3.9-eclipse-temurin-17); from pom.xml alone the old rule "only upwards above 21" applies. The Gradle profiles pick their image the same way: gradle:9-jdk17|21|25 or eclipse-temurin:17|21|25-jdk (rounded up; without a detected version the values from the table). If the build directory contains a Maven wrapper (mvnw plus .mvn/wrapper/maven-wrapper.properties, regular files, no symlink), the gate builds with sh mvnw -B verify (via sh, so the factory does not change file permissions in the project; success only with evidence such as „BUILD SUCCESS“ or new files under target/) — only while softwarefabrik.build.maven-command is mvn; a custom Maven command takes precedence. In the container the Maven download and repository live in .sandbox-m2; the build container has network access as before (network-none only applies to the agent). If the wrapper does not start Maven at all (known patterns: exit 126/127, download errors), the gate falls back to mvn if at least 30 seconds of the time limit remain, and says so in the first line of the summary. Without an installed Maven no fallback is possible. A red Maven build of the wrapper is never replaced by a fallback. For air-gapped operation: set a custom Maven command or use an image with a Maven mirror. Under Einrichtung → Werkzeuge JDK 17 can be installed next to 21 and 25 (checksum from the Adoptium API, as for 21/25).
A build container image set on the project takes precedence over all automatically chosen images (Maven, .NET, profile, build command). SBOM and dependency scan run in the image softwarefabrik.sbom.sandbox-image. The former settings key execution.sandbox.image never had an effect on build and scans; from 0.46 it is removed (migration V77).
Factory tools (from 0.45): under Einrichtung → Werkzeuge (ADMIN) the factory installs JDK, Maven, Gradle, .NET SDK, Node.js, Go and uv into softwarefabrik.werkzeuge.verzeichnis (default ~/.softwarefabrik/werkzeuge, environment variable SOFTWAREFABRIK_WERKZEUGE_VERZEICHNIS). Sources and hosts: api.adoptium.net and GitHub (JDK, uv), archive.apache.org (Maven), services.gradle.org redirecting to GitHub (Gradle), builds.dotnet.microsoft.com (.NET), nodejs.org, go.dev/dl.google.com (Go). https only; every redirect is checked against the allowlist. The checksum comes from the vendor's metadata (JDK from the Adoptium API, Go from go.dev — separate from the download server); for Maven and Gradle it is pinned (together with the version) in the factory; for Node, .NET and uv it comes from the same vendor as the archive. It protects against corrupted or redirected downloads, not against a compromised source. Disable (demo, air gap): softwarefabrik.werkzeuge.installation-erlaubt=false (environment variable SOFTWAREFABRIK_WERKZEUGE_INSTALLATION_ERLAUBT, default true); the page then only shows the current state. Without internet (air gap), install the tools by hand or use the container sandbox with internal images. A download that delivers no data for two minutes is aborted. Installation, failure and removal are audited (WERKZEUG_INSTALLIERT, WERKZEUG_INSTALLATION_FEHLGESCHLAGEN, WERKZEUG_ENTFERNT). The tools apply to all projects on this host; agent and local build gate find them at the front of PATH. That is why, on shared instances (softwarefabrik.plattform.betreiber set), only operator accounts can open the page, not tenant ADMINs (chapter 3).
Container deployment: docker-compose.yml puts only the workspaces on a volume. The tools directory lives in the factory user's home inside the container and is gone after the container is recreated. Either put SOFTWAREFABRIK_WERKZEUGE_VERZEICHNIS on a volume of its own, or disable installation with SOFTWAREFABRIK_WERKZEUGE_INSTALLATION_ERLAUBT=false and provide tools via the image or the container sandbox.
Project build containers (from 0.45): projects can set the image, CPUs, memory and time limit of their build container (MAINTAINER+). The operator bounds this:
| Setting | Default | Meaning |
|---|---|---|
softwarefabrik.build.erlaubte-images |
official toolchain images (maven:, gradle:, eclipse-temurin:, mcr.microsoft.com/dotnet/, python:, ghcr.io/astral-sh/uv:, node:, golang:, rust:, gcc:, ubuntu:, debian:) |
allowed prefixes, comma-separated; * = all |
softwarefabrik.build.max-cpus |
8 |
upper limit per build container |
softwarefabrik.build.max-speicher |
16g |
upper limit per build container |
softwarefabrik.build.max-timeout-minuten |
240 |
upper limit for the time limit |
Without the allowlist a project could use local images of the host or private registries via the Docker daemon's credentials. The limits apply when saving and when building.
Container user (since 0.42.2): build and scan containers run as the owner of the workspace directory (--user uid:gid, HOME=/tmp and a read-only mounted passwd/group with home /tmp, which the .NET SDK needs for named mutexes). Up to 0.42.1 they ran as root, and bin/, obj/ and target/ were then owned by root. Excluded are Windows hosts, Podman, rootless Docker (where root in the container already is the host user) and a factory that itself runs as root. If anything in the workspace still belongs to another user (left over from earlier runs), a one-off root container without network resets the ownership (find -xdev … -links 1 … -exec chown -h, without network and with minimal capabilities; hardlinks are left alone; one attempt per workspace and process start; with fs.protected_hardlinks=0 only a log hint instead of a repair). host-user=false restores the old behaviour.
Container mode encapsulates the build and scans of the generated project (build gate of all profiles, build command, trial run, trivy) in an ephemeral container with --pids-limit 512 --read-only, a bind mount restricted to the workspace. CPUs and memory default to --cpus 2 --memory 4g; changeable per project under Build-Container up to softwarefabrik.build.max-cpus and max-speicher. Hardening: --security-opt no-new-privileges always; additionally --cap-drop ALL when the container runs as the workspace owner (--user, see container user). Network access is allowed because Maven, NuGet, pip, npm etc. have to fetch the dependencies and trivy its database (--network=none is only the sandbox class default, build and scans switch it off). „Ansehen“ (preview) of the kind „Programm“ also runs in the container; the factory skips the kind „Web“ with the container sandbox (no browser in the image).
Without a container engine: if container is set only globally and Docker is missing from the PATH, the platform falls back to the local process sandbox with a log warning as before; the box „Voraussetzungen“ (prerequisites) warns. If a tenant or project has tightened to container, the factory does not silently run the steps on the machine: „Voraussetzungen“ reports „Es fehlt: Container-Engine“ before a build run and blocks the start (can be overridden with „trotzdem starten“, start anyway); the build gate reports „Build NICHT GEPRÜFT: Container nicht verfügbar“, and then the project setting „Wenn nichts geprüft wurde“ (if nothing was checked) applies (default: hold before the merge until approval; „blockiert“: the run fails); the trial run reports „not checked“; SBOM, dependency scan and „Ansehen“ are skipped with a reason; the run log contains a warning. Run page, project page and the start buttons show where the build runs (e.g. „Build, Tests und Scans: im Container (Projekteinstellung)“).
Caches live in the workspace because the root FS is read-only: .sandbox-m2 (Maven), .sandbox-nuget (NuGet, NUGET_PACKAGES), .sandbox-trivy-cache. The dotnet CLI home lives in the tmpfs /tmp; since 0.42 /root (the image user's HOME) is an ephemeral tmpfs as well, without which .NET cannot create named mutexes (NuGet migrations, coverlet). The factory adds the build caches and TestResults/ to the workspace's .git/info/exclude so they do not end up in the run commit. Only with host-user=false (or in the exceptions listed above) does the container run with the image's user (root for the default images); on Linux hosts with rootful Docker generated directories such as bin/, obj/ or target/ are then owned by root.
The agent CLIs themselves (Claude Code, Codex, Gemini, Aider, Kimi, also gateways and local-llm) run as host processes in both modes — since v0.31 with an empty, ephemeral HOME into which only the respective adapter's credentials are copied (ADR-0017), with a filtered environment and the list of allowed tools/commands. This protects against foreign configuration (MCP servers, plugins, hooks, the operator's Git/SSH/cloud credentials), not against targeted reads via absolute paths.
What the container protects and what it does not: it protects the machine from the code that the factory itself builds, tests and scans (read-only root FS, only the project folder mounted, resource limits, network only where needed). It does not protect against the agent: the agent and the commands it may run (e.g. mvn, npm, dotnet per the list of allowed commands) run on the machine — even in a project with container.
Recommendation: build runs execute agent-generated code. Run them on a host without sensitive access and enable container mode.
Per-project build command (since 0.42): without the container sandbox, the right to set it (MAINTAINER and above) amounts to code execution on the factory host as the factory user. The build gate does strip secrets from the environment, but only via a block list (SOFTWAREFABRIK_*, SPRING_DATASOURCE_*, names containing password/token/secret/API key …); files the factory user can read (configuration, keys, other projects' workspaces) stay readable. If MAINTAINERs are not fully trusted, enable container mode. Values in the command that look like credentials (-p, -k, --password, --api-key, --token, *Password*=, *Token*= …) are masked in the audit and in the run summary; credentials still do not belong in the command but in NuGet.Config or the project's environment.
2.4a Agent in a container
By default the agent CLI runs as a process on the factory's machine — with the rights of the service user. Everything it starts through allowed commands (mvn, npm, dotnet, npx, install scripts of third-party packages) can then read whatever that user can read. The guardrail „Sandbox für den Agenten“ (sandbox for the agent; execution.agent-sandbox, values local and container, default local) moves the CLI of a project into a throwaway container. Like the build sandbox it can be set on three levels (global and tenant: ADMIN; project: MAINTAINER or higher), tightening only, and every change is audited. Setting it to container also sets the build container on the same level; if that no longer applies later, the agent does not start.
Prerequisites. Linux or WSL (macOS and Windows without WSL: the agent does not start and says so); Docker (no Podman, no rootless Docker in this version); the service user may call Docker and owns the project folders; the agent's CLI is installed and logged in on the machine. Docker must be able to see the factory's temporary directory (the throwaway HOME lives there): a systemd service with PrivateTmp=true prevents that — the CLI then does not find its login in the container. The project folder needs a .git (not a symbolic link), its path must not contain a comma, and the factory must not have root or docker as its primary group — otherwise the agent does not start. In the container it runs with the factory's group, not the project folder's.
What the container looks like. docker run --rm --init with the name sf-agent-<run>-<random> and the labels softwarefabrik.agent, softwarefabrik.agent.instanz, softwarefabrik.agent.lauf; --user <uid>:<gid> of the project folder's owner (never root), --read-only with --tmpfs /tmp, --cap-drop ALL, --security-opt no-new-privileges, --pids-limit 1024, the project's CPU and memory limits (otherwise 2 CPUs, 4 GB). Mounted are exactly: the project folder at /workspace, its .git read-only, the throwaway HOME of this one call at /home/agent and a passwd/group with the user. No Docker socket, no namespace of the machine, no tool directory. The network is Docker's default network — open. Through it the container also reaches services of this machine that listen on 0.0.0.0 (the factory's UI, a database, a Docker daemon exposed over TCP) and the local network — bind such services to 127.0.0.1 or put them behind a firewall. The run time is limited from the inside as well (timeout: the adapter's time limit plus two minutes): a container left behind by a hard stop of the factory ends by itself. Mounts use --mount, not -v.
Login and environment. Exactly as on the machine, nothing added: in subscription mode the copy of the login file (Claude .credentials.json, Codex auth.json, Gemini oauth_creds.json) lies in the throwaway HOME; after the run the factory writes back from the container only a verified renewal: valid JSON with the same keys in which only token and expiry fields changed (and, where a token names the account, the same account). It discards anything else — warning in the run log, audit AGENT_ANMELDUNG_VERWORFEN; a new login may then be necessary. Not every login file carries an account marker: that a renewed token belongs to the same account cannot be proven for every CLI. In API key mode the key enters the container as an environment variable — the command line carries only the name (-e ANTHROPIC_API_KEY), the value appears neither in ps nor in logs. Apart from that only the keys of this one CLI (never those of other vendors) and proxy and locale variables come from the factory's environment; PATH, HOME, CA file paths and the allowance SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN do not. Honestly: the agent can read its own login in the container and send it over the open network — as on the machine today. What is new is that it reaches nothing else of the machine.
Agent image. The factory ships no ready-made image and uploads none. On /projects/{id}/leitplanken, box „Agent im Container“, „Agent-Image bauen“ (MAINTAINER or higher, audited as AGENT_IMAGE_GEBAUT) builds softwarefabrik-agent:<profile>-<cli>-<version>-<hash> locally: the build image the build gate uses for the project, plus Node.js from node:22 (if the image has none), plus the CLI's npm package in the version of the CLI on the machine. The hash covers Dockerfile, base image, package and version; if one of them changes (CLI update, another JDK in the project) it is a different image and the agent starts only after a new build. Remove old images by hand: docker image ls softwarefabrik-agent and docker image rm …. The build needs network access (base image, npm). The tags of the base images are floating (maven:3.9-eclipse-temurin-21, node:22 …): before the build the factory pulls both, builds with their digest and includes it in the hash — if different content later sits under the same tag on the machine, it requires a new build. Codex and Gemini are installed with npm install --ignore-scripts; Claude Code needs its install script and does not run without it. The CLI packages themselves come from npm and are fixed by version number, not by a hash.
Which CLI. Available: Claude Code (@anthropic-ai/claude-code), Codex (@openai/codex), Gemini (@google/gemini-cli). Locked with a note: Aider — and with it Bedrock, Vertex, Azure OpenAI and local LLM — and Kimi; the repository holds no evidence of how their CLI gets into an image. The factory does not guess.
Fail-closed, no exception. Unlike the build sandbox there is no silent fallback, not even with a global-only setting: if Docker, the image, Linux/WSL or the build container is missing, if the CLI is locked, if a run with the MCP gateway lacks the way to it (gateway door: proxy image, Docker 28 or newer) or if the setting cannot be read, the agent does not start. The run fails with „Agent nicht gestartet: …“, the event RUN_AGENT_CONTAINER records image, network, level and reason. The operator switch softwarefabrik.voraussetzungen.sperre=warnen does not downgrade the finding in the box „Voraussetzungen“.
Cancel and restart. Cancelling and the time limit end the container with docker kill; --rm removes it. After a hard stop of the factory the next start removes the containers carrying the label softwarefabrik.agent and this factory's identifier (identifier from working directory and port — other factories on the same machine stay untouched).
Limits. No protection for the content of the project folder, for the agent's login, or — as long as the network is open (section 2.4b narrows it) — against exfiltration over the network (including the local network); no VM-grade isolation. Whoever may control Docker practically has root on the machine — that is the factory, not the agent. Tools of the machine (Wine, Blender, GPU) and company CA files do not exist in the container; the agent reaches the MCP gateway and the operator's own MCP servers through the gateway door (next paragraphs). AI reviews (read-only), the AI merge of control artefacts (without tools) and the isolation proof (canary) still run on the machine; regulated profiles therefore do not use the agent container yet. The level „Vorsichtig“ does not set it. Plan: docs/roadmap/agent-im-container.md.
MCP gateway from the container (gateway door). If a run gets allowed MCP servers through the MCP gateway (chapter „MCP gateway“), the agent in the container reaches exactly the MCP endpoint of this run — with the open network as well as with the list from 2.4b. The gateway stays unchanged on 127.0.0.1 of the machine. For every agent call the factory opens a Unix socket on the machine and starts a small door container in the agent's internal network (from the proxy image, user 65534, read-only, no capabilities, no way out) that passes connections to this socket only. Behind the socket the factory lets only POST /mcp with the run's token through; everything else (another path such as /admin, another method, no or a wrong token) it rejects itself. The token exists only in the MCP file of the throwaway HOME — not in the project folder, not in command lines or logs. Which tools are allowed is still decided by the gateway (policy, pins, MCP_TOOL_AUFRUF per call). Prerequisites: the proxy image („Proxy-Image bauen“; „Agent-Image bauen“ builds it along) and Docker 28 or newer — also with the open network. If something is missing or the way cannot be set up, the agent does not start; the guardrails page names a missing prerequisite beforehand. RUN_AGENT_CONTAINER carries AGENT_MCP_GATEWAY=verlangt before the start; if the way was actually open, AGENT_MCP_GATEWAY_TOR records after the call how many requests were passed to the gateway and how many were rejected. The factory passes the gateway's response through up to 16 MiB (beyond that 502); the request must be complete within 10 s, the whole connection ends after 180 s. Claude Code only (like the gateway itself).
Own MCP servers from the container. If you as the operator have approved your own MCP servers (single-user only, section 8c — Blender, for example), an agent in the container can use them too. The servers keep running on your machine: the factory starts them for exactly one agent call (stdio, in an empty folder of its own — never in the project folder, which the agent writes to) and ends them afterwards including their descendants. The agent reaches them the same way as the gateway — door container, Unix socket, behind it only POST /mcp with this call's token —, except that the way does not end at a port but at a bridge inside the factory's process. It shows and forwards only the approved tools (as mcp__softwarefabrik__<server>__<tool>); it rejects everything else without the server seeing it. All conditions of 8c apply unchanged; if one is violated the run does not start. Prerequisites as for the gateway: the proxy image and Docker 28 or newer, also with the open network. If a server does not start (90 s) or the file names an http or sse server, the agent does not start. Audit: RUN_AGENT_CONTAINER with AGENT_MCP_EIGENE_SERVER=verlangt, AGENT_MCP_GATEWAY_TOR with ZIEL=eigene-server, MCP_EIGENE_SERVER_AUFRUF per tool call and MCP_EIGENE_SERVER_BRUECKE at the end. The container does not protect against the approved tool itself — it runs with your rights on the machine. Setup and details: section 8c, "Own MCP servers and the agent in the container".
2.4b Network of the agent container (allowed addresses)
With the agent container from 2.4a the network is open by default: the agent reaches every address on the internet, the local network and services of this machine that listen on 0.0.0.0. The guardrail „Netz des Agent-Containers“ (network of the agent container; execution.agent-netz, values offen and allowlist, default offen) narrows that per project: the agent container then sits in an internal Docker network with no way out; it reaches the outside only through a proxy of the factory, and that proxy lets only allowed host names through. Three levels as in 2.4a (global and tenant: ADMIN; project: MAINTAINER or higher), tightening only, every change audited. Setting allowlist also sets „Sandbox für den Agenten = container“ — and with it the build container — on the same level. If allowlist applies while the agent container is not required (removed later), the agent does not start.
Prerequisites. Everything from 2.4a, plus Docker 28 or newer (internal network without an address of the machine, gateway mode isolated) and the proxy image: /projects/{id}/leitplanken, box „Netz des Agenten“, „Proxy-Image bauen“ (build proxy image; MAINTAINER or higher, audited as AGENT_IMAGE_GEBAUT with art=netzproxy). It is called softwarefabrik-netzproxy:<hash> and consists of eclipse-temurin:<Java version>-jre plus the proxy from the factory itself — no package manager, no further download; during the build the proxy starts once as a check. The Java runtime is pulled by its tag (floating) and then built with the digest of the pulled image; the audit records it. One image for all projects. After a factory update the hash may change; then a new build is needed. The proxy needs a Docker network with a way out — the default is bridge (softwarefabrik.execution.agent-netz.ausgang).
How an agent call runs.
docker network create --internalwith gateway modeisolated(sf-netz-<run>-<random>): no way out and — unlike an ordinary internal network — no address of the machine in the network.- Proxy container
sf-proxy-<run>-<random>in this network only: non-root (65534),--read-only,--cap-drop ALL,no-new-privileges, 256 processes, 256 MB, nothing mounted. It binds its port to its address in the internal network; only then does the factory connect it to the way out. It cannot be reached from the outbound network. - The agent container starts with
--network <internal network>and--dns <proxy>(no DNS answers there): only the proxy resolves names. - After the call the factory reads the proxy's log and removes proxy and network.
One network and one proxy per call: parallel runs see neither each other nor another project's list. Left-over networks and proxies are removed at the factory's next start (label and identifier as in 2.4a); the proxy also ends by itself after the call's time limit.
What the proxy lets through. Only CONNECT to a host name on the list on the allowed port (default 443), and inside the tunnel only TLS with exactly that server name. The proxy reads the name from the first packet; it does not break TLS open and sees no content. Rejected: IP addresses as a target in any notation, other ports, other protocols inside the tunnel, unencrypted HTTP (except for entries explicitly allowed as http://…) and every name that resolves to this machine, to a link-local address (metadata services) or — except for entries of the operator — to a private network. The proxy resolves by itself and connects to exactly the address it checked (IPv4 only). Also rejected: all addresses of this machine (public ones too; the factory passes them to the proxy) — except for entries of the operator, who may deliberately allow a service on the same machine —, benchmarking and documentation networks, a TLS start with several server names and, for http:// entries, any second request on the same connection as well as ambiguous header lines. The request has an overall deadline of ten seconds.
The list is shown with the origin of each entry on /projects/{id}/leitplanken, box „Netz des Agenten“:
| Origin | Content |
|---|---|
| Agent CLI („Agent-CLI“) | Model API and login of the one CLI of the run. Claude Code: api.anthropic.com, platform.claude.com (token renewal; a real run with subscription login needed only api.anthropic.com). Codex: api.openai.com, plus chatgpt.com and auth.openai.com (assumption, no run with login verified). Gemini: generativelanguage.googleapis.com, plus oauth2.googleapis.com and cloudcode-pa.googleapis.com (assumption) |
| Project profile („Projektprofil“) | Package sources of the confirmed project profile (field netzQuellen; an add-on inherits those of its base profile). What is detected in the project folder does not count — the agent writes it; the page then says „Profil erkannt: … — erst nach der Bestätigung freigegeben“ (detected, allowed only after confirmation). Maven: repo.maven.apache.org, repo1.maven.org. Gradle: plus plugins.gradle.org (wrapper: services.gradle.org). Node: registry.npmjs.org (Yarn: registry.yarnpkg.com, Berry plus repo.yarnpkg.com). .NET: api.nuget.org. Python: pypi.org, files.pythonhosted.org. Go: none by default (the module proxy forwards to arbitrary origins, see limits). Rust: crates.io, index.crates.io, static.crates.io |
| Operator („Betreiber“) | for all projects: page /leitplanken (expert view), box „Netz des Agenten“, or softwarefabrik.execution.agent-netz.zusaetzlich. Only these entries may lie in the local network or on this machine (your own mirror) and use a port other than 443 |
| Operator (Maven settings.xml) | the addresses of the <mirror> entries from softwarefabrik.build.maven.settings (without credentials and path) — automatically |
| Project („Projekt“) | additional addresses of this project (MAINTAINER or higher); never targets in the local network or on this machine, port 443 only (or 80 with http://) |
Notation: host, host:port, *.domain.tld (applies only below the domain, at least two labels after the asterisk) and http://host[:port] for a service without TLS. No IP addresses, no paths; the factory keeps internationalised domain names as Punycode. An invalid stored entry does not apply and is shown as a note on the page. Every change is audited with old and new value.
Settings inside the container. The factory sets HTTPS_PROXY/HTTP_PROXY (also lower-case), NO_PROXY=localhost,127.0.0.1,::1, npm_config_proxy/npm_config_https_proxy, JAVA_TOOL_OPTIONS with -Dhttps.proxyHost/-Dhttp.proxyHost (applies to every JVM: Gradle including daemon and wrapper, tests) and appends -gs /home/agent/.softwarefabrik-netz/maven-settings.xml to MAVEN_ARGS — Maven reads proxies only from a settings file (needs Maven 3.9 or newer). Proxy variables of the machine then do not reach the container. For Claude Code the factory additionally sets CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 (the CLI's switch for traffic it does not need for its work), so that usage reporting does not show up as a rejected connection in every run. Verified with real downloads: curl, Maven, npm, dotnet/NuGet and a JVM; pip and Gradle follow the same settings but were not verified with a run of their own.
Log and audit. RUN_AGENT_CONTAINER carries AGENT_NETZ=allowlist, AGENT_NETZ_HERKUNFT (level), AGENT_NETZ_LISTE=sha256:<16 hex> (fingerprint of the list) and AGENT_NETZ_EINTRAEGE. After every agent call the run log has one warning per rejected target („Netz des Agent-Containers: Verbindung zu example.com:443 abgelehnt (3-mal, nicht freigegeben).“) and one line with the addresses that were reached. The proxy counts per target and writes only the first occurrence and, at the end, the totals (its log is limited to 5 MB); with more than 200 different targets or a log that could not be read completely, „unvollständig“ (incomplete) appears in the run log, in the audit (UNVOLLSTAENDIG=ja) and on the run page. Rejected targets are recorded in the event AGENT_NETZ_ABGELEHNT; the run page shows them together with the way to allow them. If a build output contains the proxy's rejection („SoftwareFabrik Netz-Allowlist“), this counts as the environment case „Adresse nicht freigegeben“ (address not allowed) — without a correction loop.
Fail-closed. Docker too old, proxy image missing, network cannot be created or is not sealed off, proxy does not start or does not become ready, way out cannot be connected, list empty or unreadable: the agent does not start („Agent nicht gestartet: …“) — never with an open network instead. Anything half set up is removed.
Limits. The list prevents direct connections to other addresses and access to this machine and the local network. It does not prevent data from leaving through an allowed service that itself forwards or publishes: (1) the model API — vendor tools such as web fetch or web search run with the agent's login on the vendor's servers and reach arbitrary addresses from there; (2) package sources that accept uploads (npm, PyPI, crates.io, NuGet, Maven repositories — with an account of one's own something can be published there); (3) services that themselves forward to arbitrary origins — the Go module proxy proxy.golang.org fetches a requested module from its origin server and is therefore not allowed by default (allow it only if that is acceptable, or point GOPROXY to a mirror of your own); the same applies to services such as jitpack.io; (4) another service behind the same address: the Host header inside the TLS connection cannot be checked (domain fronting on shared CDNs), and with an encrypted server name (ECH) the proxy sees only the outer name. General-purpose stores (github.com, storage.googleapis.com …) are therefore not allowed by default; consequence: the Gradle wrapper cannot download its distribution (it is served via github.com), nor can anything that fetches tools from there — allow such addresses only deliberately. The build container is not bound to the list: with softwarefabrik.execution.sandbox.network-none=false, code written by the agent reaches any address while building and testing (the page warns) — keep the build container's network off. The agent reaches the MCP gateway not through the proxy (which never lets the machine through) but through the gateway door from 2.4a: only the MCP endpoint of the run, with its token. Not supported: a machine that itself reaches the internet only through a proxy (no proxy chaining), IPv6 targets, company CA files. AI reviews and the AI merge keep running on the machine — without this boundary.
2.5 Demo profile
The demo profile installs an auto-login filter that treats every visitor as a shared demo user, plus a demo banner. It is meant exclusively for a public demo instance, never for production.
Since 0.50.1 first-time setup (/einrichtung/**) is blocked on the demo. Since 0.50.2 the operator areas are additionally read-only there: settings, integrations, users, license, tenants, policy-as-code, compliance profiles, guardrails, skills, agents and teams can be viewed but not changed. The factory answers a blocked action with the page „In der öffentlichen Demo nur lesbar“ (read-only in the public demo, HTTP 403). Projects and runs remain usable for visitors.
2.6 First-time setup, system check and setup area
First-time setup („Ersteinrichtung“, /einrichtung/start, ADMIN only). Until it is finished, the dashboard shows administrators the box „Willkommen — richte die Fabrik in drei Schritten ein“ (welcome — set up the factory in three steps). The three steps:
- AI access („KI-Zugang“) — pick an installed agent (Claude Code, OpenAI Codex, Google Gemini, Kimi Code, Aider) and the sign-in: subscription (one-time sign-in in the CLI) or API key. An entered key is stored encrypted and checked with the provider right away. The factory saves the default adapter (
execution.adapter.default) and the sign-in type (execution.<adapter>.auth-mode). Aider has no subscription mode. - System — only the system-check items that are not OK, each with a button for the next step.
- Get going („Loslegen“) — marks the first-time setup as done and opens the quick start (new or existing project).
The first-time setup has no license step. Import the license under Einrichtung → Lizenz („Lizenz importieren“, see section 14).
System check („Systemprüfung“, /einrichtung/systempruefung, ADMIN only). One page with four groups: „KI-Zugang“ (agent CLIs with version, sign-in via subscription or API key, active adapter), „System“ (git, Git author, Docker and container sandbox, writable workspace directory, license), „Build-Werkzeuge“ (build tools) and „Projekte holen und abgeben“ (import folders, Git hosts). Each row gives the finding (ok, warning, missing), an explanation and the next step. Keys are only checked for presence, never shown. Rows that can only be changed via the environment point to the operator; restart the factory afterwards. The „Mock-Adapter aktiv“ notice in the header leads administrators here.
Import folders and Git hosts („Import-Ordner, Git-Hosts und Quellen-Hosts“, /einrichtung/freigaben, ADMIN only). Extends the allowlists from section 2.3 in the interface, without a restart: „Zusätzliche Ordner“ (additional folders) and „Zusätzliche Hosts“ (additional hosts), one per line. The values from the environment (SOFTWAREFABRIK_IMPORT_ALLOWED_ROOTS, SOFTWAREFABRIK_GIT_ALLOWED_HOSTS) still apply and are listed above; the page only adds to them. Rejected are relative paths, folders that do not exist, system directories (e.g. /etc, /usr, /var), the root directory and any folder that contains the factory user's home directory or the factory installation — credentials live there (~/.claude, ~/.ssh, .env). If the input contains an invalid entry, the page saves nothing. The values are stored in the settings import.allowed-roots.zusatz and git.allowed-hosts.zusatz; every change is attested with old and new value.
Rules for all projects („Vorgaben für alle Projekte“, /einrichtung/vorgaben, since 0.59.0, ADMIN only, like a tenant's guardrails; locked on the public demo). A text the factory writes before every run into the file PROJECT_NOTES.md in the project folder (not into the task; the task then points explicitly to the file) — after the project's own rules and with the sentence „Vorgaben des Projekts gehen den Vorgaben für alle Projekte vor.“ (project rules take precedence). Stored as the setting vorgaben.alle-projekte, strictly per tenant: an administrator with a tenant maintains TENANT:<id>, without a tenant (single user) GLOBAL. A run reads exactly the level of its project's tenant — a project with a tenant never gets the global text or another tenant's. At most 8,000 characters (otherwise „Nicht gespeichert: Die Vorgaben für alle Projekte sind zu lang …“, not saved: too long); saving it empty removes the text; the general settings page does not accept the key. Every change emits SETTING_* and VORGABEN_ALLE_PROJEKTE_GEAENDERT with an excerpt of the old and new text (secrets masked). Applies from the next run. Do not enter credentials: the text goes to every agent. A single project's rules („Vorgaben für alle Läufe“, field freeText, role DEVELOPER and up under Projekt bearbeiten) take precedence. Usage with an example: user manual, 7.1.
Status file per project (since 0.59.0, user manual, 7.1). On the project page, role DEVELOPER and up switches „Statusdatei führen“ (keep a status file) on and sets the path (columns project_definition.statusdatei_aktiv and statusdatei_pfad, migration V88; existing projects off, new ones on). Every change emits PROJEKT_STATUSDATEI_GEAENDERT with the old and new state. The factory only creates the file if it is missing and, for display, never reads it through a symbolic link or a file with several hard links.
GitHub issues as input (since 0.58.0). If a project's remote is on a host from softwarefabrik.git.allowed-hosts, maintainers can fetch the open issues on the roadmap and import them as suggestions (user manual, 7.1). The factory uses the GitHub token under Integrations for this (without a token anonymously, public repositories only; for private repositories it needs Issues: Read), sends it only to this host and follows no redirects. Fetching happens only on click, never on a schedule. Switch off: SOFTWAREFABRIK_GITHUB_ISSUES_ERLAUBT=false (property softwarefabrik.github.issues.erlaubt); entries already imported stay. Audit: GITHUB_ISSUES_ABGERUFEN, GITHUB_ISSUES_UEBERNOMMEN (with issue numbers).
GitHub mirror (roadmap in GitHub issues, preview). Not enabled out of the box: the write path has been verified against a test server but not yet tried in operation against GitHub. With SOFTWAREFABRIK_GITHUB_SPIEGEL_ERLAUBT=true maintainers may switch it on per project on the roadmap (off by default). The token under Integrations needs Issues: Read and write (fine-grained, restricted to the repositories; classic: scope repo or public_repo) and at least the "Triage" permission in the repository. On switching on, the factory checks this with GET /repos/{o}/{r}; whether a fine-grained token may write issues only shows on the first write. For a public repository switching on requires a confirmation, stored with user and time. What goes to GitHub: title and text of accepted entries (local paths removed; this text may come from an agent; if the secret check fires, no issue is created), own labels fabrik:* and short comments made of fixed sentences (phase, role, model, result, correction reason, pull-request link) — never prompts, agent output, logs or cost. HTTP 401/403 (without rate limit) pauses the project's mirror, as does a repository that became public after switching on; 404, 410 and 422 are not retried. The factory writes only through the outbox (table github_ausgang), worked off by its own scheduler (at most one write per second, Retry-After/X-RateLimit-Reset respected, exponential waiting up to one hour, given up after 24 hours). A run never fails because of GitHub.
| Property | Environment | Default | Meaning |
|---|---|---|---|
softwarefabrik.github.issues.erlaubt |
SOFTWAREFABRIK_GITHUB_ISSUES_ERLAUBT |
true |
kill switch for fetching and the mirror |
softwarefabrik.github.spiegel.erlaubt |
SOFTWAREFABRIK_GITHUB_SPIEGEL_ERLAUBT |
false |
mirror only, off by default; true = projects may switch it on; back to false later = nothing is written any more (jobs wait, given up after 24 h) |
softwarefabrik.github.spiegel.oeffentliche-basis-url |
SOFTWAREFABRIK_GITHUB_SPIEGEL_BASIS_URL |
empty | https://… of the factory for links to the run page; empty = no link |
softwarefabrik.github.spiegel.abarbeiter-aktiv |
SOFTWAREFABRIK_GITHUB_SPIEGEL_ABARBEITER |
true |
outbox scheduler |
softwarefabrik.github.spiegel.intervall-ms |
SOFTWAREFABRIK_GITHUB_SPIEGEL_INTERVALL_MS |
5000 |
interval between runs of the scheduler |
Audit: GITHUB_SPIEGEL_EINGESCHALTET, GITHUB_SPIEGEL_AUSGESCHALTET, GITHUB_ISSUE_ANGELEGT, GITHUB_ISSUE_UNTERDRUECKT and GITHUB_KOMMENTAR_UNTERDRUECKT (secret check fired), GITHUB_SPIEGEL_ANGEHALTEN, GITHUB_AUSGANG_AUFGEGEBEN. Individual comments are not attested. Only the factory-wide token applies; GitHub Enterprise Server works via softwarefabrik.git.allowed-hosts (API base https://HOST/api/v3).
Setup instead of administration. The area /verwaltung is called „Einrichtung“ (setup) in the interface. In the „Einfach“ view it shows five cards (KI-Zugang, API-Schlüssel, Werkzeuge & System, Sicherheit, Kosten), for administrators a sixth one, „Vorgaben für alle Projekte“ (rules for all projects; not on the public demo), and sits in the user menu. In „Experte“ it is grouped into „Start“ (system check, first-time setup), „KI und Werkzeuge“ (settings, integrations, tools, import folders and Git hosts, rules for all projects, agents, teams, skill library) and „Sicherheit und Kosten“ (guardrails, budgets, users, license). Tenants, policy-as-code and compliance, attestation, isolation proofs, MCP gateway and audit export are collapsed under „Betrieb und Nachweise“ (operations and evidence; ADMIN only). The view changes no rights; which card someone sees follows their role.
3. Users and roles
UI: /admin/nutzer (ADMIN only)
Create accounts, assign tenant and role, activate/deactivate accounts and reset passwords. A lockout guard prevents the last active administrator from being demoted or deactivated. There is no account lockout after failed sign-in attempts.
Role model
VIEWER < DEVELOPER < MAINTAINER < OWNER < ADMIN
| Capability | from role |
|---|---|
| read | VIEWER |
| execute runs | DEVELOPER |
| set the project's build directory | DEVELOPER |
| approve runs | MAINTAINER |
manage integrations/secrets (/integrations; below that read-only from 0.47) |
MAINTAINER |
approval option and level of the global guardrails (/leitplanken, from 0.49; everyone may read) |
ADMIN |
| project build settings: build command, build container, "Wenn kein Build erkannt wird" (build-gate mode), confirm profile, trial run | MAINTAINER |
set the project's guardrails (/projects/{id}/leitplanken, from 0.46) |
MAINTAINER |
manage agents and teams (/agents, /teams, from 0.46; previously ADMIN) |
MAINTAINER; on shared instances operator accounts only |
| set the tenant's guardrails (from 0.46) | ADMIN |
global guardrails and settings (/einstellungen) |
ADMIN; on shared instances operator accounts only (from 0.46) |
tenant administration (/mandanten), user management (/admin/nutzer) |
ADMIN |
tools (/admin/werkzeuge) |
ADMIN; on shared instances operator accounts only |
first-time setup, system check, import folders and Git hosts (/einrichtung/**) |
ADMIN |
OWNER exists as a level but currently has no rights of its own beyond MAINTAINER; tenant and user management are reserved for ADMIN.
Important: ADMIN is not a data super-admin. Administrators remain tenant-scoped for projects, runs, logs and cost. Only account management and project assignment are isolation-free. A genuine operator view goes through the operator endpoints, not through an elevated data role.
Operator accounts (softwarefabrik.plattform.betreiber). On instances with several tenants, set the operator accounts as a comma-separated list. Then only these accounts may change /mandanten, the project assignment and the tenant budget and open Einrichtung → Werkzeuge (/admin/werkzeuge, from 0.45) (everyone else gets 403; tools apply to the whole host). From 0.46 the same applies to /einstellungen, global guardrails, and agents and teams (/agents, /teams) — they affect all tenants. On /attestierung, /export, /policy-as-code, /compliance-profile, /skills and the cost views, accounts with a tenant see only their own tenant, accounts without a tenant are rejected. Therefore do not assign operator accounts to a tenant. Empty (default) means: every ADMIN, as in single-tenant operation.
SSO (OIDC)
Optional and config-gated (see docs/sso-oidc.md). JIT-provisioned users deliberately get VIEWER without a tenant — an SSO connection must never widen access by accident. Assigning tenant and role stays an administrative act.
4. Tenants
UI: /mandanten (ADMIN only)
- Create tenants and assign projects.
- A user belongs to one tenant (
app_user.tenant_id);nullmeans single-tenant operation. - Projects, runs and all derived data are tenant-scoped. Access via a foreign ID fails (covered by an IDOR test).
- Policy, audit, cost and export are separated per tenant.
For hard separation: tenants are sufficient in most cases. Where maximum separation is required (e.g. VS-NfD), one instance per tenant remains the most conservative option.
5. Adapter and model governance
Three levels, from wide to narrow:
- Global:
execution.adapter.defaultin Settings and the capability routing (run.routing.*, see below). A default model per adapter exists only for Kimi and Aider: the "default model" field on the Settings page (effective from 0.41.3) takes precedence oversoftwarefabrik.execution.kimi.model(defaultkimi-k3) orsoftwarefabrik.execution.aider.modelin YAML/environment. Codex and Gemini start without a model flag (model from their own CLI configuration). - Project: the model policy is the list of allowed adapters per project (
project_allowed_adapters, from 0.46 via checkboxes on the project page under Leitplanken → „Erlaubte Adapter dieses Projekts“, up to 0.45 a text field on/projects/{id}; changeable from roleMAINTAINER; none selected = all adapters allowed). It is enforced when a run is created; a violation aborts and is audited asRUN_POLICY_DENIED. The model actually resolved for a run is attested separately asRUN_MODELL_AUFGELOEST. - Tenant: policy-as-code (chapter 7) can restrict allowed adapters tenant-wide; a tenant policy can only tighten the global one, never undercut it (global policy floor).
Capability routing: run.routing.plan-model, run.routing.build-model and run.routing.spec-model (spec runs, from 0.39.0) separate model choice for planning and implementation. Planning may get a stronger, more expensive model than mechanical implementation — without hard-wiring a model name anywhere.
Precedence of model choice per run (attested as RUN_MODELL_AUFGELOEST with quelle=override|team|rollen-default|adapter-default):
- routing override
run.routing.plan-model/.build-model; - the model of the responsible agent (from 0.46: BUILD → Developer, PLAN/SPEC → Architect, otherwise the first active agent; runs without a team use the default team). If that agent has no model, precedence continues with rank 3, not with another agent. If there is no responsible active agent, the previous team model applies (
preferredModelof the developer agent, otherwise of the first agent with a model); - role default from the price table, only for the
claudeadapter: plan → Opus (claude-opus-5-5), build → Sonnet (claude-sonnet-5-5); reviews default to Haiku (claude-haiku-5-5, see below). Fable (claude-fable-5-2) is never a default because of its price and is only available via team setting or override; - otherwise no
--modelflag — the CLI chooses itself.
Other adapters (Aider, Bedrock/Vertex/Azure, local LLM, Kimi) do not receive the Claude role default, because they pass --model unchanged to their own CLI.
Operating mode: betrieb.modus distinguishes single-seat subscription from a team API pool. EINZELPLATZ_ABO is intended for personal use: the subscription holder runs the factory themselves on their own machine with their own Claude subscription on the unmodified Claude Code CLI. As soon as several people use one instance, TEAM_API_POOL with an API key or gateway is the intended mode. TEAM_API_POOL disables the subscription login and enforces API key mode; the factory does not check whether a key is actually present. For Claude Code, the CLI reads ANTHROPIC_API_KEY from the environment of the app process; if it is missing there, the factory (from 0.41.1) injects the key stored under /integrations.
Subscription modes (execution.<adapter>.auth-mode = api-key | subscription) for Claude, Codex, Gemini and Kimi. In subscription mode the factory actively strips the corresponding API key from the subprocess — otherwise the CLI would silently take the paid path.
Claude Code permission contract (YAML/env only, not in the UI): build and plan runs start the CLI with --permission-mode acceptEdits plus an --allowedTools list — without the flag, headless Claude Code writes no files and asks for permission in its text output instead. softwarefabrik.execution.claudecode.permission-mode (SOFTWAREFABRIK_CLAUDECODE_PERMISSION_MODE, default acceptEdits; empty = no flag, the escape hatch for older CLI versions) and softwarefabrik.execution.claudecode.allowed-tools (SOFTWAREFABRIK_CLAUDECODE_ALLOWED_TOOLS, comma list in permission rule syntax, e.g. Bash(mvn *); empty = safe default: Read, Glob, Grep, build/test tools, read-only git, ls — no git commit/push, no curl/wget, no rm). bypassPermissions and --dangerously-skip-permissions are rejected at startup (the CLI runs on the host, not in a throwaway VM). Reviews run with --permission-mode dontAsk and --disallowedTools for Edit/Write/Bash (softwarefabrik.review.claudecode.permission-mode, default dontAsk) and are therefore technically read-only. The review model is controlled by softwarefabrik.review.claudecode.model (SOFTWAREFABRIK_REVIEW_CLAUDECODE_MODEL, default claude-haiku-5-5; empty = no --model flag, the CLI chooses). The flags depend on the CLI version; the canary (isolation proof) exercises the production invocation including them. Note: the default contains Bash(npx *) and Bash(node *) — both execute arbitrary code (npx also fetches packages from the registry). If you do not want that, set softwarefabrik.execution.claudecode.allowed-tools explicitly to a list without these entries, e.g. Read,Glob,Grep,Bash(mvn *),Bash(git status),Bash(git diff *). Since 0.42.1 the default also contains Bash(dotnet *), so the agent can build and test C# projects (e.g. MonoGame) itself instead of learning about failures only through the build gate and the correction loop. Like mvn, dotnet build runs the project's build logic (MSBuild targets, tools from the tool manifest).
Additional environment variables for agents (since 0.57.1). Agent processes receive only a fixed list from the factory's environment (PATH, locale, proxy/CA, vendor keys) and an empty, short-lived HOME. If a build needs a tool outside the workspace — example: MonoGame compiles shaders on Linux through Wine and locates the prefix via MGFXC_WINE_PATH — you release the variable: softwarefabrik.execution.agent-env-durchreichen (SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN), a comma list of names, e.g. MGFXC_WINE_PATH,WINEPREFIX. The values come from the environment of the factory process (single-user package: export before ./start.sh, or a line of its own in .env). YAML/env only, not via the UI, a project or an agent. Blocked: HOME/USERPROFILE/APPDATA, SOFTWAREFABRIK_*, LICENSE_*, SPRING_*, GIT_*, DOCKER_*, CLAUDE_*, CODEX_*, LD_*, DYLD_* as well as NODE_OPTIONS, BASH_ENV, JAVA_TOOL_OPTIONS and similar; a blocked or invalid name aborts startup with a message („Die Variable '…' darf nicht an Agenten durchgereicht werden (softwarefabrik.execution.agent-env-durchreichen): …“ — the variable may not be passed to agents — or „Ungültiger Variablenname '…' …“, invalid variable name). The released names are logged at startup („Agent-Umgebung: Betreiber reicht zusätzlich durch: […] …“). A released variable that is missing from the factory's environment simply does not reach the agent. Applies to the agent processes of all adapters — they always run on the machine, also with the container sandbox (guardrail level „Vorsichtig“). The variables do not reach the build and scan steps in the container. The release only extends the environment: the commands the agent itself may call remain those of the allowed-tools list — but a released build command (dotnet build) may in turn start Wine. The agent and the code it builds can read the values: do not pass credentials. The factory's build gate is unaffected; locally it runs with the factory's environment minus its secrets anyway.
Example single-user package (WSL/Linux), MonoGame shaders via Wine:
# in the .env of the starter package
SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN=MGFXC_WINE_PATH,WINEPREFIX
MGFXC_WINE_PATH=/home/you/.winemonogame
WINEPREFIX=/home/you/.winemonogame
Then restart the factory (./start.sh loads the .env and passes all lines on to the factory process). The paths are examples — use the values with which the shader build works in your terminal.
The factory's git calls in the project folder (since 0.57.2). git executes what .git/config and .git/hooks of the folder it runs in tell it to — an agent, built code or an imported repository can prepare both. The factory therefore applies fixed overrides to every git call (no project hooks, no core.fsmonitor, no signing, no automatic maintenance, no external diff programs, no secrets in git's environment) and checks the repository-local configuration first: entries outside the allowlist (core.sshCommand, credential.helper, merge drivers, uploadpack/receivepack, include.path, url.*.insteadOf, http.* …) are removed and logged as GIT_KONFIG_BEREINIGT in the audit log (keys only). In these cases it runs no git in the folder and states the reason in the run: a custom filter driver (filter.<name>.*, e.g. git-crypt), a partial clone or another unknown repository format extension, .git as a symbolic link, .git present while git uses a different directory, a copied worktree folder. It never changes a repository in a directory above. It does not look into submodules (--ignore-submodules=dirty, --no-recurse-submodules). What you need to know as operator: project hooks do not run (no pre-commit either), the factory's commits and tags are unsigned, GITHUB_TOKEN/GH_TOKEN from the environment do not reach git (credentials belong under Einrichtung → Integrationen), a wanted filter driver, a core.sshCommand or a credential helper belong in the global git configuration of the operating user, Git must be 2.31 or newer, and git no longer tidies the workspace repositories on its own (git gc by hand is safe). In the build container .git is read-only; a build that wants to write to .git there fails. Importing a local folder leaves .git/hooks behind. Limit: between check and call a process of the same user can change the file; only in the build container is .git protected against that. Details and limits: docs/security.md, section 5.1.
Permissions per agent (from 0.46). Under /agents/{id}/steuerung (from MAINTAINER) you choose per agent the model, tool groups (read — always included —, Git read, build and test, change files) and policy (Voll/full or Nur lesen/read only). For the responsible agent of a run the factory narrows the --allowedTools list: the intersection of the configured list, the agent's groups and — once its tools have been explicitly selected — the agent commands of the project profile (./mvnw/./gradlew count as Maven/Gradle). "Git read" covers only git status|diff|log|show; other git entries count as build commands. Without "change files" or with "read only", --disallowedTools=Edit,Write,MultiEdit,NotebookEdit is added; "read only" leaves only read and Git read. The factory can thus only restrict, never extend. This is enforced only with the claude adapter and a permission mode set; otherwise the run writes a warning to its log. Attested as RUN_AGENT (team, agent, rolle, werkzeuge, nurLesen, durchgesetzt, modell). The preview /teams/{id}/vorschau?art=BUILD|PLAN|SPEC shows the allow list and flags before the run. From 0.46 AGENTS.md contains the active agents of the default team (without a default team, all active agents).
6. Approvals and segregation of duties
There are two possible approval points per build run:
| Point | Effect | When active |
|---|---|---|
before EXECUTION |
The agent only runs after approval | per the active approval policy; without an active approval policy via run.approval-vor-merge (on by default) |
before the merge (in VALIDATION) |
The validated state is merged or turned into a PR only after approval | only when an approval policy requires VALIDATION manually or policy-as-code lists it in pflichtFreigabePhasen (e.g. regulated compliance profiles) |
The second point is decisive for regulated profiles: without it the signed assurance would be a façade — the code would already be on the base branch before anyone agreed.
Controls:
run.approval-vor-merge— despite its name: mandatory approval beforeEXECUTION, effective only without an active approval policy; it does not create an approval before the mergerun.approval-segregation— segregation of duties: whoever triggered the run (run.triggered_by) cannot approve it- Approval option under Leitplanken (
/leitplanken, from 0.49; ADMIN only, see below);/policiesredirects there
Three options (from 0.49, UX-16). The phase checkboxes of the approval policy are replaced by three options on the Leitplanken page (/leitplanken): before execution (stops before EXECUTION), before the merge (stops in VALIDATION) or never. They are still stored in the active approval policy (without one, the first existing policy is activated or a „Standardpolicy“ is created); every choice emits FREIGABE_OPTION_GESETZT. An existing policy is mapped by its effect at the two stop points; the shipped default policy is before execution. If a policy stops at both points, the page shows „Eigene Einstellung (Freigabe-Policy)“ and leaves it unchanged — also when a level is chosen; before the merge is likewise kept when a level is chosen. LEITPLANKEN_STUFE_GEWAEHLT records the previous values and freigabeVorher. Per-phase rules exist only in policy-as-code (pflichtFreigabePhasen).
From 0.46 run.approval-vor-merge (on the Leitplanken page „Freigabe vor der Ausführung“, up to 0.48 „Freigabe vor dem Merge“) and run.approval-segregation („Vier-Augen-Prinzip“) are evaluated per project and tenant (section 6a). If a tenant or project has switched the approval on, it also applies against an active approval policy.
Approving requires role MAINTAINER or higher. Every decision is recorded as an approval_decision and as an attested audit event.
Approval at start („Starten und gleich freigeben“, start and approve right away; since 0.59.0). Whoever may approve can give the approval before EXECUTION already at start (run page „Starten und gleich freigeben“, form „Neuer Lauf“ „Starten und gleich freigeben“, project page „Bauen und gleich freigeben“). The button appears, and the server accepts the request, only if the run would stop at this point at all, the person has role MAINTAINER or higher, the project belongs to their tenant, and neither run.approval-segregation (four eyes, project/tenant/global) nor an effective policy-as-code with EXECUTION in pflichtFreigabePhasen applies — policy-as-code requires the approval at the stop itself. Otherwise the server refuses (missing role: 403; foreign project: 404; rule: „Starten und gleich freigeben geht hier nicht: …“ with the reason) and nothing starts. At start RUN_STARTED and RUN_VORAB_FREIGABE_ERTEILT (phase=EXECUTION;zeitpunkt=start) are written; at the stop the run checks four eyes and policy-as-code again and then gives the approval on behalf of that person as a normal approval_decision with the reason „Vorab beim Start erteilt (date time)“ and APPROVAL_APPROVED. At the stop the run also re-checks the person without a signed-in user: account exists and is active, stored role MAINTAINER or higher, the account's tenant equals the project's. If a rule applies by then, or the role was revoked or the account deactivated, the approval at start does not apply; the run waits as usual and the run page names the reason. Who and when is also stored on the run (run.vorab_freigabe_durch, run.vorab_freigabe_am, migration V88). The second point before the merge, the approval for „Build nicht geprüft“ (build not checked) and „Erneut versuchen“ (try again; a new run without these values) are unaffected.
Important for operators: an approval before execution switched on globally, by the tenant or by the project is the normal stop — whoever may approve can clear it at start with this button, also for their own run. If you want to prevent a person from approving their own run, you need the four-eyes principle (run.approval-segregation); then the button does not exist.
6a. Guardrails: global, tenant, project (from 0.46)
UI: project page → Leitplanken (/projects/{id}/leitplanken; anyone who can see the project may read it), per run „Leitplanken dieses Laufs“ (/runs/{id}/leitplanken).
The page shows what applies to the project's next run — quality gate, approvals, four-eyes, guardrails, mandatory approvals of the policy, sandbox, network, permission mode, allowed commands, allowed adapters, model routing, MCP, budgets, build gate and build container, signed policy — each value with its origin (Standard, global, Mandant, Projekt, Policy, Profil, Konfiguration). User view: user manual, section 9.8.
Six guardrails can be set on three levels (global → tenant → project):
| Guardrail | Key | Values (loose → strict) | Default |
|---|---|---|---|
| Quality gate mode | run.quality-gate.mode |
off, advisory, blocking |
advisory |
| Quality gate strictness | run.quality-gate.policy |
lenient, strict |
lenient |
| Approval before execution (up to 0.48 „before the merge“) | run.approval-vor-merge |
false, true |
true |
| Four-eyes principle | run.approval-segregation |
false, true |
false |
Guardrails in AGENTS.md |
run.guardrails.mode |
off, on |
on |
| Sandbox for build, tests and scans (until 0.60 „agent sandbox“ and global only) | execution.sandbox.variant |
local, container |
local |
| Sandbox for the agent (section 2.4a; never falls back to the machine) | execution.agent-sandbox |
local, container |
local |
| Network of the agent container (section 2.4b; only effective in the agent container, never falls back to the open network) | execution.agent-netz |
offen, allowlist |
offen |
| Additional allowed addresses for the network of the agent container (global and per project; host names, comma-separated) | execution.agent-netz.zusaetzlich |
host names | empty |
The sandbox only covers the steps the factory itself runs (build gate, trial run, SBOM, dependency scan, „Ansehen“ of the kind „Programm“), not the agent — details, behaviour without Docker and limits in section 2.4.
Rules:
- A lower level can only tighten. The page rejects a looser value; a looser value already stored has no effect and is marked. The signed policy-as-code remains the upper bound (for the gate mode).
- Permissions: project from
MAINTAINER, tenantADMIN, globalADMIN— on shared instances (softwarefabrik.plattform.betreiberset) operator accounts only./einstellungenis likewise reserved for operator accounts there. - Every change is audited as
LEITPLANKE_GESETZT, removing a value asLEITPLANKE_ENTFERNT. - Behaviour change: up to 0.45 quality gate, approval and four-eyes were global only, and a project could switch off the guardrails. From 0.46 all five are evaluated per project and tenant; the guardrails can only be switched off globally. The sandbox (global only until 0.60) now also applies per tenant and project (tightening to
containeronly).
Global levels. On the Leitplanken page (/leitplanken; in the setup area the card „Sicherheit“ or „Leitplanken“) an ADMIN sets the global values with one of three levels at once:
| Level | Approval | Quality gate | Sandbox |
|---|---|---|---|
| Vorsichtig (careful) | before execution | blocking, strict |
container |
| Ausgewogen (balanced, default) | before execution | advisory, lenient |
unchanged |
| Schnell (fast) | never | advisory, lenient |
unchanged |
If the values match no level, the page shows „Angepasst“ (custom). In the „Experte“ view the approval option (section 6) and the single values follow. Every level choice is audited as LEITPLANKEN_STUFE_GEWAEHLT. Everyone may read; only ADMIN changes (on shared instances only operator accounts).
Every execution attests its guardrails as RUN_LEITPLANKEN (values with origin, plus sandbox, network, permission mode, MCP gateway, build gate and adapter). The sandbox appears there as SANDBOX=<value>@<origin>, plus SANDBOX_RUNTIME=fehlt if the container engine was missing; from this the run page shows later where the build ran back then. Runs before 0.46 have no snapshot.
7. Policy-as-code
UI: /policy-as-code (ADMIN only)
Rules are not configuration state but a versioned, signed document:
| Field | Meaning |
|---|---|
erlaubteAdapter |
vendor restriction (empty = unrestricted) |
gateModus |
off / advisory / blocking |
pflichtFreigabePhasen |
e.g. EXECUTION, VALIDATION |
pflichtAttestierung |
signing mandatory |
erlaubtePlugins |
Claude Code plugins the conductor may enable (empty = none). Recorded (.claude/settings.local.json) but without effect in agent runs: Claude does not read that file there, and no plugins are installed in the empty HOME |
mcpStandardverbot |
agent CLIs only with an isolation proof; MCP configuration written by the agent blocks the quality gate |
erlaubteMcpServer |
servers reachable via the MCP gateway, with pins (empty = none); maintained on /admin/mcp-gateway, see 8b |
pflichtSpecFreigabe |
SDD governance (Enterprise): build runs start only with a spec reference to an approved version, workflow plans with writing tasks are approved only with such a reference — the policy overrides the project's spec mode (even AUS). Rejection as RUN_POLICY_DENIED (pflichtSpecFreigabe=true;grund=…;zeitpunkt=start) or WORKFLOW_PLAN_DENIED |
minAcAbdeckung |
SDD governance (Enterprise): minimum share (0–1) of bound acceptance criteria covered by tests according to spec-conformance; below it the quality gate blocks even in advisory mode (with the gate switched off, mode off, no check runs — set gateModus in the policy as well) (RUN_POLICY_DENIED … zeitpunkt=quality-gate). Applies only to runs with a spec binding; without a reviewer result nothing counts as covered |
Both governance fields appear in the signed canonical form only when they deviate from the default — older signed policy documents stay valid. They take effect only when the FeatureGate SPEC_GOVERNANCE enables them (tier Enterprise or no active license system); otherwise the page shows a hint and the fields are stored but not enforced (section 13b).
Properties:
- Exactly one active version per tenant — technically enforced.
- Ed25519-signed over the canonical text.
- Enforced twice: when a run is created and again at execution time. Otherwise a run created before activation could bypass the policy; besides, why-trace and export must report the version that was actually enforced.
Workflow: edit content → publish (creates a new signed version and deactivates the previous one) → verify checks the signature.
Rejected runs produce RUN_POLICY_DENIED — the rejection is evidence too.
8. Compliance profiles
UI: /policy-as-code, section „Compliance-Profile“ (ADMIN only; from 0.49 on one page with policy-as-code, /compliance-profile redirects)
Applying a profile publishes a matching signed policy version and emits COMPLIANCE_PROFILE_APPLIED.
| Profile | Gate | Mandatory approvals | Attestation | MCP default ban | Spec approval mandatory |
|---|---|---|---|---|---|
| Baseline | advisory | — | no | no | no |
| EU AI Act | blocking | EXECUTION | yes | no | yes |
| BAIT / MaRisk / DORA | blocking | EXECUTION, VALIDATION | yes | yes | yes |
| BSI Grundschutz / VS-NfD | blocking | EXECUTION, VALIDATION | yes | yes | no (project-specific via the policy) |
The mandatory spec approval (SPEC-005) is enforced only in tier Enterprise or without an active license system; otherwise the profile page states the reason.
Regulatory reference: EU AI Act = Regulation (EU) 2024/1689, Art. 12 (record-keeping) and Art. 14 (human oversight); BAIT/MaRisk (BaFin) and DORA (EU 2022/2554) = ICT and third-party risk, evidence duties; BSI IT-Grundschutz and VS-NfD for the public sector.
Honest framing: the profiles enforce the technically enforceable parts. They do not replace legal advice and do not cover organisational duties. For VS-NfD the adapter choice must additionally be restricted to local/sovereign backends per project — regional data residency is enforced through gateway configuration, not through the profile.
8a. Isolation proofs (canary)
UI: /admin/isolationsnachweise (ADMIN only) · background: ADR-0017, ADR-0022
Under the MCP default ban, an adapter or reviewer with an agent CLI only runs if a passed isolation proof exists for the installed CLI version. The check happens when a run is created, right before execution and in the quality gate; a rejection emits RUN_POLICY_DENIED with adapter and version.
The proof comes exclusively from the canary:
- It builds a simulated host environment with marker servers in every known source (user configuration, workspace, leftovers from earlier runs, plugins). The operator's real configuration is left untouched.
- Control run: the adapter's production invocation without isolation. The expected markers must appear — otherwise the run proved nothing.
- Null-state run: through the real adapter path. No marker may appear.
| Verdict | Meaning |
|---|---|
| BESTANDEN (passed) | control effective, no marker in the null state, no system-wide server configuration |
| NICHT_BESTANDEN (failed) | marker in the null state or system-wide configuration with servers found |
| UNGUELTIG (invalid) | control run failed (usually sign-in), expected source not effective, run failed technically or CLI version changed during the run |
Operational notes:
- Cost: two short CLI calls per version, via the configured login or API key.
- Signing is mandatory: results are signed with the attestation key and recorded as
ISOLATIONSNACHWEIS_ERSTELLTin the chain. Without active signing no proof counts. - Only the latest entry counts — a later
NICHT_BESTANDENrevokes an earlier proof. - After every CLI update a new run is needed; until then the block applies automatically.
- If a CLI reads configuration from the workspace (Codex, Gemini, Kimi), the canary reports
NICHT_BESTANDEN— the residual risk is documented rather than hidden.
8b. MCP gateway
UI: /admin/mcp-gateway (ADMIN only) · Background: ADR-0018
Without the gateway no agent run reaches an MCP server (null state). The gateway gives agents targeted access to the read-only tools of approved servers — for now only during execution with Claude Code; all other adapters and the reviewers stay in the null state.
Operating modes (softwarefabrik.mcp-gateway.*):
| Setting | Meaning |
|---|---|
modus=aus |
Default. No gateway, all runs in the null state |
modus=lokal, jar=<path> |
The factory starts softwarefabrik-gateway.jar itself on 127.0.0.1 and a free port; the admin secret is passed via stdin, not the environment |
modus=extern, url=…, geheimnis=… |
Separate service (container, team, air-gap). Without https:// only with tls-extern=true behind a TLS proxy |
ttl-sekunden |
Maximum lifetime of a run binding (default 14400) |
fabrik-url |
Where the gateway reports events (default http://127.0.0.1:<server.port>) |
Approving a server:
- On
/admin/mcp-gatewayenter name, transport (stdio or Streamable HTTP), command/arguments or URL and credentials. Credentials only as a reference${secret:NAME}; the value comes from the factory's environment variableSF_MCP_SECRET_NAME. Plain text is rejected. - Measure: the gateway starts the server, reads its tools and shows each tool's risk class and pinned definition (description and input schema, verbatim as the agent sees them). Only tools with
readOnlyHint=trueand nodestructiveHint=trueare reachable. - Adopt into policy: creates a new signed policy version containing the server and its two pins (
serverDigestover start command/URL,toolsDigestover the tool list). The measurement itself is recorded asMCP_SERVER_VERMESSEN.
Across the global and the tenant policy the intersection of identical entries applies: a server is allowed only if every effective policy contains it with the same details and pins.
During a run: before execution the factory registers the run with the allowed servers and projects exactly one MCP server into Claude Code — the gateway, with a run token. If a server no longer matches its pins, the run is not bound but aborted (MCP_PIN_ABWEICHUNG, RUN_POLICY_DENIED). After execution the token is revoked.
In the chain (target: the run):
| Event | Content |
|---|---|
MCP_SERVER_VERBUNDEN |
server, protocol version, both pins, number of approved tools |
MCP_TOOL_AUFRUF |
server, tool, decision (ERLAUBT/ABGEWIESEN, reason), outcome, duration, SHA-256 of arguments and result — never the content |
MCP_PIN_ABWEICHUNG |
server, kind (server/tools), expected and actual pin |
MCP_RUN_BEENDET |
calls, events reported and received here, reason, lock reason if any |
Logging is fail-closed: if the gateway cannot deliver an event, it withholds the result and locks the run against further calls. Further limits per run: at most 8 concurrent calls, lock after 50 rejected calls, deadline per call (120 s), TTL.
Honest assessment: the read-only classification relies on the server's own annotations — review them when measuring.
serverDigestpins command and arguments, not the binary: put versions into the arguments (package@1.2.3). Without an agent container the gateway is the only MCP path, not the only network path. With the agent container the agent reaches it through the gateway door (section 2.4a); with the network allowlist (2.4b) the gateway and the allowed addresses are then the only paths.
9. Attestation and chain verification
UI: /attestierung (ADMIN only)
Every audit event carries seq, prev_hash, entry_hash, signature and key_id. Verification distinguishes five failure modes:
| Finding | Meaning |
|---|---|
HASH_MISMATCH |
an entry was modified after the fact |
CHAIN_BREAK |
an entry was removed or inserted |
BAD_SIGNATURE |
the entry does not come from the expected key |
TAIL_TRUNCATION |
the newest entries are missing (checked against the signed chain head) |
UNKNOWN_KEY |
signed with a key ID whose public key is not (or no longer) in the key ring |
Legacy entries without a signature are reported transparently as such instead of failing the check.
Attested events (selection): run lifecycle, model resolution, policy application and denial, guardrails application, quality-gate result, SBOM creation, artifact signature, policy publication, profile application, approvals.
Operational advice: run the chain check after every restore and on a regular schedule. An incomplete backup shows up as CHAIN_BREAK or TAIL_TRUNCATION — the evidence structure doubles as an integrity check of the backup.
10. Why-trace and audit export
Why-trace: /runs/{id}/trace answers, for a single run, why the code came about the way it did: which model, which policy version, which approvals by whom, which gate result, which plan origin, which cost.
Audit export: /export (ADMIN only) produces an auditable bundle per project or run — JSON and HTML — from why-trace, chain verification, the governing policy state and the public key.
The bundle is deliberately serialized deterministically (strings, primitives and UUIDs only, timestamps as ISO-8601). Evidence that looks different depending on the library version is not evidence.
Offline verifier (from schema 2.0, ADR-0023): the export contains a verifiable evidence section — full entries of the runs, content-free hash placeholders for all other entries up to the signed chain head, the policy versions applied in the runs and the keys with fingerprints. The standalone tool softwarefabrik-verifier.jar (JDK only, download at softwarefabrik.io/verifier.html) checks completeness, integrity and run evidence without access to the factory. Guide and check steps: docs/verifier.md.
Schema 2.1 — bound spec versions (SPEC-005, from 0.39.0, Enterprise): with SDD governance enabled the export carries under nachweis.specVersionen every spec version a run in scope bound via RUN_SPEC_GEBUNDEN — content, contentHash, a signature created at export time with the attestation key, key ID and approval (who, when). Only versions of the own project/tenant; without a spec reference the list stays empty. The verifier (from 1.1.0) checks hash and signature of every version and matches every binding against them; a 2.0 export remains verifiable with the new verifier, the old verifier accepts 2.1 exports. Without the feature (Professional) the export stays at schema 2.0. The HTML view shows the versions as a card of their own.
Typical audit case: the auditor asks about a specific change → find the run → the why-trace shows model, rule, approval → export produces the bundle → the admin sends the fingerprint from /attestierung via a second channel → the auditor runs java -jar softwarefabrik-verifier.jar <export> --schluessel <fingerprint> (exit 0 = proven). Taking the public key from the export alone proves nothing — whoever forges entries replaces it too.
11. Supply chain: SBOM and dependency scan
| Building block | Control |
|---|---|
| SBOM per build | run.sbom.mode (default off); requires Trivy on the PATH (in container mode the image softwarefabrik.sbom.sandbox-image instead), degrades gracefully otherwise |
| Artifact signature | Ed25519 over the SBOM digest, event ARTEFAKT_SIGNIERT |
| Dependency/licence scan | Reviewer dependency-scan in the quality gate; CVE findings in the SECURITY category block the merge |
For regulated environments: set SBOM to on and the quality gate to blocking; then every delivered state can be shown to have declared and checked its dependencies.
.NET/NuGet (checked with trivy 0.70): trivy fs detects NuGet packages from packages.lock.json, packages.config, Directory.Packages.props (central versions) and, after the build, from bin/**/*.deps.json; vulnerabilities are reported (e.g. CVE-2024-21907 for Newtonsoft.Json 12.0.1). It does not detect PackageReference entries in a .csproj without a lock file, nor obj/project.assets.json. For a reliable SBOM before the build, set <RestorePackagesWithLockFile>true</RestorePackagesWithLockFile> in the project and commit packages.lock.json.
12. Cost and budgets
Views:
| Route | Content |
|---|---|
/analytics |
cost per project, run, provider, comparison; each as CSV |
/mandanten/kosten |
consumption per tenant (+ .csv) |
/mandanten/seat-kosten |
consumption per seat — the triggering user, derived from run.triggered_by (+ .csv) |
What is counted (from 0.42, WP-3): besides the agent's consumption per run (run_metrics), the factory records two further sources as cost items in kosten_ereignis (migration V72), one row per model call:
- AI merge of the control artefacts (artefact evolution) — via the direct API or the Claude CLI; attributed to the project, seat = triggering user.
- Reviews in the quality gate — the Claude reviewer runs with
--output-format jsonfor this; the cost is attached to the gate's run (pipeline and manual gate), seat = the run's seat.
Both count towards project and tenant consumption, hard cap, seat report, dashboard, /analytics (table and CSV "cost by source", /analytics/quellen/csv) and the licence euro limit. Before the AI merge the factory additionally checks the same hard budgets as at run start (project budget with enforce, tenant hard cap); if one is exceeded, no request goes to the model and the conflict is escalated to a human. Rule-based reviewers (security, architecture, dependencies) cause no model cost; older Claude CLIs without a JSON result report no usage (then no cost item).
From 0.42 the manually triggered quality gate (/runs/{id}/quality-gate) requires at least the DEVELOPER role and checks project budget, tenant hard cap and euro limit first; if one is reached, no review runs. Reviewers with an AI CLI (claude-review, aider-review) only run in the manual gate if the licence allows real AI agents now (valid licence, daily and euro limit not reached, trial not expired) — regardless of when the run was created; otherwise they are skipped with a reason. On a mock run they never run, not even when selected explicitly. Reviews of the pipeline gate inside a running run do not check the budget – as for the agent, "budgets apply before the start". Usage of a model missing from the price table is valued at €0 but reported as a warning in the run log and as audit event KOSTEN_UNBEWERTET.
Runs in Claude subscription mode are flagged in these views: a run's why-trace shows "estimate (API rates), not billed" next to the cost, the tenant and seat views report the share in the column "of which estimate (EUR)", and the CSV exports in Davon-Schaetzung-Abo-EUR. The share still counts towards consumption and therefore towards budget/hard cap (it reflects the load generated). Runs from before this version and runs without an auth flag (e.g. mock) carry no marker.
Setting limits:
mandant_budget— monthly EUR budget per tenant, either observing only or as a hard cap (enforce). Exceeding it prevents new runs.- Project budget (
/analytics/budget, from role DEVELOPER) — monthly EUR budget per project with an alert threshold (default 80 %) and optionalenforce: exceeding it prevents new runs of the project. - Workflow budget — EUR cap per workflow (section 13a); once exhausted, no further child run starts.
- The capacity guard limits the number of concurrent runs (
softwarefabrik.runs.max-parallel, default 16). - Licence euro limit (from 0.42,
features.max_eur_per_monthin the licence JWT, optional) — cap across all projects of the instance. The factory checks it before every run start and before the AI merge against the monthly costs recorded so far (subscription estimates included) and blocks new runs with real AI agents witheur_limit_reached(runs with the mock cost nothing and remain possible); running runs are not stopped./license/v1shows consumption and limit. Honest limit: the check runs on the user's machine,softwarefabrik.license.v1.enabled=falseswitches it off in the dev build (the distribution build ignores the setting), and it only counts what the factory records itself (agent runs, AI merge, reviews) — a guard rail, not a protection of the API key (for that: the workspace spending limit in the Claude Console).
The former "daily/weekly token cap" fields (budget.daily.tokens, budget.weekly.tokens) were never evaluated and were removed from the Settings page in 0.41.3; from 0.46 migration V77 deletes existing entries. Budgets work in EUR (above).
Prices: the model price table lives in application.yml (softwarefabrik.models; input/output/cached per 1M tokens). The Claude entries follow the official model overview and pricing page (platform.claude.com, check date in the YAML comment; last checked 2026-11-11: Fable 5.2, Opus 5.5, Sonnet 5.5, Haiku 5.5 plus the still-available legacy models Fable 5.1, Fable 5, Opus 5, Sonnet 5, Opus 4.8, Haiku 4.5). Since 0.42 the Claude entries are stored as USD list prices (*-usd-per-million) and converted with the USD→EUR factor. It is a visible setting: /einstellungen → "Kosten" (kosten.usd-eur-faktor, allowed 0.5–2.0, changes audited with old and new value), otherwise SOFTWAREFABRIK_USD_EUR_FAKTOR, default 0.92 (approximation, no daily rate). Haiku 5.5 has tiered prices; the table carries the rate for prompts ≤ 100k tokens. Checking against the official pages is a fixed step of the release routine (docs/runbooks/release.md). Unknown models are valued at €0 — deliberately conservative. Subscription models (k3, kimi-for-coding) are also at €0 because a flat rate incurs no token cost; the cost view therefore reflects marginal cost, not licence cost. Runs in Claude subscription mode, by contrast, are valued like API runs (tokens × price table): in subscription mode the EUR values shown are an estimate at API rates and are not billed. The per-tenant and per-seat views serve internal cost allocation and budget control.
13. Skill and plugin library
UI: /skills (ADMIN only)
Entries are tenant-scoped and versioned; origin is typed: CATALOG (curated), INSTALLED (adopted), FORKED (adapted). Before each run the platform materializes them into the workspace:
<workspace>/.claude/skills/<name>/SKILL.md
<workspace>/.claude/agents/<role>.md
<workspace>/.claude/settings.local.json
This makes it answerable which extension, in which version, was in the workspace at the time of a run — the question every reproducibility discussion otherwise founders on. Claude Code loads skills and subagents under .claude/ only when the Claude Code project context is enabled on the project (--setting-sources=user,project, from 0.41.5); Claude never reads settings.local.json in factory runs. The generated files carry a marker — the factory does not overwrite project files of the same name without the marker — and are listed in the workspace's .git/info/exclude so they are not committed to the repository.
Engineering guardrails (run.guardrails.mode) are separate: a vendor-neutral behavioural policy projected into the repo as AGENTS.md (plus a minimal CLAUDE.md that imports it via @AGENTS.md, and .gemini/settings.json, which points the Gemini CLI at AGENTS.md). Its version is a SHA-256 short hash of the content and is recorded as RUN_GUARDRAILS_ANGEWENDET.
13a. Parallel workflows (feature flag)
UI: /workflows · Switch: softwarefabrik.workflow.enabled (default off)
A workflow sits above the run: it splits a goal into tasks that execute as independent child runs in parallel — each in its own git worktree, at most three at a time per workflow. With the flag off, the platform behaves exactly as before.
What an administrator needs to know:
- Ownership instead of trust. A writing task must declare its write areas (
OWNED), read areas (READ_ONLY) and protected zones (PROTECTED). If they overlap with those of an active task, it never starts — the check happens before execution, not after. Build configuration (pom.xml,build.gradle) and the migration directory always count as exclusive, even when not declared: two concurrent changes there almost certainly collide. - Leases expire. An ownership claim has a lifetime (
softwarefabrik.workflow.lease-laufzeit-minuten, default 120) and is extended by heartbeat. A crashed agent process therefore does not block the workflow permanently — its lease counts as orphaned and is released on the next acquisition. - Integration is its own, verified step. Successful branches are merged sequentially and in plan order into an integration branch (
wf/<id>/integration); only the combined state passes through the integration gate. A workflow reachesCOMPLETEDonly via that verdict. - A merge conflict pauses, it does not fail. The workflow moves to
WAITING_FOR_APPROVALand shows the conflicting files. The decision is retry (at most two attempts) or discard branch. A discarded branch makes the gateFAILED— a workflow whose work was partly left behind does not count as successful. - Automatic start (dispatcher). Without the dispatcher, ready tasks start only on a button press.
softwarefabrik.workflow.dispatcher.enabled=true(default off, interval…dispatcher.intervall-sekunden, default 30) starts ready tasks on its own and resumes running work after a restart. That costs tokens without a click — a deliberate operating decision. - Disk space. Each child run occupies a worktree under
<workspace.root>/worktrees/. They are removed on completion; after a hard abort,git worktree prunein the project workspace may be required.
13b. Specs (spec-driven development, feature flag)
UI: /projects/{id}/specs · Switch: softwarefabrik.spec.enabled (default off) · License: Professional or Enterprise
A product spec is the versioned, approvable requirements layer (ADR-0027): Markdown with YAML front matter, mandatory sections Goal, Non-goals and Acceptance criteria with IDs AC-<nnn>-<nn>. With the flag off there is no spec UI and the platform behaves exactly as before.
What an administrator needs to know:
- Enabled through the central FeatureGate. Flag and license tier: without an active license system (
softwarefabrik.license.v1.enabled=false) the flag alone decides; with the license system, specs require Professional or Enterprise. Community sees no spec UI. When the license expires, specs stay readable; creating, editing and approving are locked. - Roles. Reading for every role, creating and editing from DEVELOPER, approval from MAINTAINER (
requireCanApproveSpec, the same level as run approval). Foreign tenants get "not found". - Approval is its own audited gate. It validates mandatory sections, ID schema and uniqueness (errors appear as a validation message), supersedes the previously approved version, keeps the history in
spec_approvaland writesSPEC_APPROVEDwithspec=…;version=…;hash=…into the signed audit chain. Approved versions are immutable; every change is a new draft. - Database leads, file is a projection. In spec mode
LEICHT/STRENGevery run writesspecs/SPEC-<nnn>-<slug>/spec.md(approved version, otherwise the latest draft; a newer draft sits next to it asspec.draft.md) into the workspace. Whatever an agent changes there is taken over after the build as a new draft — never as an approval. A deleted file is restored from the database on the next run. - Spec mode per project (
project_definition.spec_modus, migration V61):AUS(default, today's behaviour),LEICHT(projection and take-over),STRENG(additionally an approved spec is a precondition for backlog activation). Set on the spec overview from DEVELOPER; every change is audited (PROJECT_SPEC_MODUS_SET). - Backlog and quality gate. In mode
LEICHT/STRENGthe plan directive requires the linesSpec: SPEC-<nnn>andAC: AC-<nnn>-<nn>, …per plan; the factory keeps spec and AC IDs on the plan item (plan_item.spec_id,plan_item.ac_ids, migration V62). The backlog shows hints (no spec, no approved version, unknown AC IDs); inSTRENGactivation of such items is rejected. A build run from a plan item with a spec reference hands all reviewers the acceptance criteria (ID + text) of the approved version inReviewRequest.acceptanceCriteria. - Traceability (SPEC-002, from 0.36.0). In mode
LEICHT/STRENGa run with a spec reference binds the version approved at that moment when it starts and attests it asRUN_SPEC_GEBUNDEN(spec=…;version=…;hash=…;ac=…); the why-trace (/runs/{id}/trace) shows spec, version, hash and AC IDs from exactly that event. The factory commit and the PR body carry the trailersSpec: SPEC-<nnn>andImplements: AC-…. Every adapter receives the bound criteria (ID + text) in the objective header behind the guardrails — the guardrails text and its hash (RUN_GUARDRAILS_ANGEWENDET) do not change — andAGENTS.mdgets a marked spec index (ID, title, status, path). Without an approved version the run starts unbound (hint in the run log). Spec approval locks the spec row in the database; even concurrent approvals leave at most oneAPPROVEDversion. - Conformance reviewer (SPEC-003, from 0.38.0). For runs with a bound spec version the rule-based reviewer
spec-conformanceruns (categoryREQUIREMENTS, no agent CLI, no isolation evidence needed): every bound AC ID must appear in a test file (test name, file name,@Spec("AC-…")or comment); unknown AC IDs in tests and changed production files without an AC assignment (Implements:trailer or path hint in the spec) are hints. Test-file and reference patterns plus scan limits live undersoftwarefabrik.spec.conformance.*(defaults for Java, TypeScript/JavaScript, Python). InLEICHTeverything is advisory; inSTRENGthe reviewer is mandatory, missing coverage isCRITICAL, and the pipeline gate runs blocking — even if the global gate mode isadvisoryoroff(hint in the run log,QUALITY_GATE_EVALUATEDcarriesmodus=blocking). - Spec run (SPEC-004, from 0.38.0). Run kind
SPEC, started from the spec UI from DEVELOPER (from an idea or to sharpen an existing spec). The only prerequisite is the FeatureGate; the project's spec mode may beAUS(explicit order, not a side effect). The run gets its own directive (onlyspecs/, AC IDs per template, negative and boundary cases per criterion, section "Offene Fragen"); the rule "no questions back" inINSTRUCTIONS.mdis replaced only for this run kind. On completion onlyspecs/is committed, everything else is discarded (paths in the run log); every changed spec file becomes a newDRAFTversion — including one the parser rejects (findings on the version and in the run log). No build, no branch, no merge. Routing roleSPECwith its own overriderun.routing.spec-model(default like PLAN: architect), attested asRUN_MODELL_AUFGELOESTwithrolle=SPEC. Audit:RUN_CREATEDcarrieskind=SPEC;spec=SPEC-<nnn>. - Questions back and reverse spec (SPEC-004, from 0.38.0). If a spec run leaves questions in
## Offene Fragen, the factory stores them one by one inspec_frage(migration V65,SPEC_FRAGEN_ERFASST) and ends the run in the new statusWAITING_FOR_INPUT(RUN_WAITING_FOR_INPUT; non-terminal; deliberately occupies no capacity or workspace slot). Answering and "not relevant" from DEVELOPER, tenant-checked, with who/when (SPEC_FRAGE_BEANTWORTET,SPEC_FRAGE_NICHT_RELEVANT). Continuing only once no question is open: a new, linked SPEC run with the answers as input (RUN_CREATED … vorgaenger=<id>); the waiting run becomesCOMPLETED(RUN_FORTGESETZT). Cancelling stays possible. Reverse spec only for projects withimportSource: spec "Reverse-Spec: <project>" from the template plus a SPEC run with the import directive (marker lineModus: REVERSE-SPECin the objective;RUN_CREATED … modus=reverse); without an import source the start is rejected with a hint. - Spec drift (SPEC-003, from 0.38.0). Approving a new version compares it with the previously approved one at AC level and writes
SPEC_DRIFT(spec=…;von=…;nach=…;neu=…;entfernt=…;geaendert=…) into the chain (first approval: no comparison). Open plan items bound to a removed or changed criterion get a reason (plan_item.veraltet_grund, migration V64,PLAN_ITEM_VERALTET) and showVERALTETin the backlog; bound workflow tasks move toWAITING_FOR_REPLAN(WORKFLOW_TASK_VERALTET). The mirrored contractSPEC-<nnn>-acis structurally checkable: a removed criterion is a break (HIGH) in the contract registry. A spec that names a broken contract undercontracts:is flagged "prüfbedürftig" in the overview. - SDD governance (SPEC-005, from 0.39.0, tier Enterprise). Policy-as-code can make spec approval mandatory tenant-wide (
pflichtSpecFreigabe) and demand a minimum AC coverage (minAcAbdeckung), see section 7; the compliance profiles EU AI Act and BAIT/MaRisk/DORA set the obligation (section 8). Enforced when a build run starts (only with a binding to an approved version — the policy overrides the project's spec mode, evenAUS), at workflow plan approval (every writing task) and in the quality gate (share of covered bound ACs fromspec-conformancebelow the target → blocks even in advisory mode, not withoff). Rejections appear asRUN_POLICY_DENIEDorWORKFLOW_PLAN_DENIEDwith a reason in the chain;QUALITY_GATE_EVALUATEDcarriesacAbgedeckt=…;acGebunden=…. Enabled viaFeature.SPEC_GOVERNANCEin the central FeatureGate: the same flagsoftwarefabrik.spec.enabled, minimum tier Enterprise; without an active license system it is enabled. Professional keeps the functions of 0.35–0.38; there the governance fields are stored and signed but not enforced — the/policy-as-codepage (with the compliance profiles) shows the reason. - Evidence and metrics (SPEC-005, from 0.39.0, tier Enterprise). The audit export delivers the bound spec versions signed in schema 2.1 (section 10). The page
/kennzahlen?projectId=…shows — independent of the workflow flag — the project's SDD metrics: share of starts with an approved spec, AC coverage (final state fromspec-conformance), number ofSPEC_DRIFTevents, spec changes per released milestone and since the last release; per workflow the same for its child runs. Everything is derived from the chain, no migration; empty samples show as "—" and the measurement gaps are listed next to them. Without the feature the page states the reason. - Workflow layer (SPEC-002, from 0.36.0). A workflow task declares spec and AC IDs (from DEVELOPER, tenant-checked); when the child run starts, the approved version is bound to the task (
workflow_task.spec_bindung_*, migration V63, auditWORKFLOW_TASK_SPEC_GEBUNDEN). All child runs of a workflow work against the same version — even if the spec was re-approved in between. In modeSTRENGplan approval is rejected when a writing task has no spec reference to an approved version. Every spec approval mirrors the AC block as contractSPEC-<nnn>-ac(ACCEPTANCE_CRITERIA) into the contract registry; unchanged blocks create no new contract version. The project wizard offers the spec mode in step 5 as soon as the FeatureGate enables SDD. - Spec Kit bridge (SPEC-006, from 0.40.0). Import and export of GitHub Spec Kit specs (template
spec-template.mdv1.2.2), rule-based without agent CLI or language model; gated byFeature.SPEClike every spec function (without it nothing is detected and preview/import/export are rejected with a hint). Onlyspecs/<NNN>-<slug>/spec.mdbelowproject_definition.workspace_pathis read; the path is checked against the schema and the workspace, files above 2 MB are skipped. Roles: detection and export from VIEWER, preview and import from DEVELOPER (requireCanModifyProject); foreign tenants get "not found". The import creates a new spec (next free number; if it was taken in the meantime the import is rejected rather than renumbered) or a newDRAFTversion of the recognised spec — recognised by the source path in the front matter of the latest version (quelle: spec-kit:<path>@<sha256>) or by the header comment of the factory's own export, whose hash must belong to a version of that spec. Never an approval, no migration. Audit:SPEC_IMPORTIERT(spec=…;version=…;quelle=…;sha256=…;format=spec-kit@v1.2.2;kriterien=…) after the usualSPEC_VERSION_CREATED;SPEC_EXPORTIERT(spec=…;version=…;hash=<SHA-256 of the export file>;quelle=<contentHash of the version>;format=…). The export never writes to the workspace. Aliases ([FR-003],[US1-AS2],[SC-001]) sit at the start of the criterion text; the reviewerspec-conformancereceives them as metadataspec.ac.aliaseand counts a test reference to the alias like one to the AC ID (the finding names both IDs, metadataac.ueberAlias). Schema limit: at most 99 criteria per spec, above that rejection with a hint. - Spec format per project (SPEC-007, from 0.40.0). Column
project_definition.spec_format(FABRIKdefault,SPEC_KIT; migration V66), independent of the spec mode. Chosen in the wizard (step 5, only when enabled; a hand-crafted parameter sets nothing without the feature) and on the spec overview from MAINTAINER (requireCanModifyProject+requireMinimumRole(MAINTAINER); foreign tenant "not found"). A change → auditPROJEKT_SPEC_FORMAT_GEAENDERT(alt=…;neu=…;akteur=…), effective from the next run. In formatSPEC_KITthe workspace preparation writes, after the guardrails projection, the scaffold:.specify/templates/{spec,plan,checklist}-template.mdbyte-identical from the classpath resourcesspeckit/v1.2.2/(GitHub Spec Kit v1.2.2, MIT; provenance, SHA-256 and licence text in theREADME.mdnext to them) — missing or deviating files are written back and named in the run log — and.specify/memory/constitution.mdfromGuardrailsService(header comment<!-- SoftwareFabrik: constitution; guardrails=sha256:… -->, principles = guardrails text, section "Governance", version line). Withrun.guardrails.mode=offno constitution (hint, existing file untouched);AGENTS.md/CLAUDE.mdandRUN_GUARDRAILS_ANGEWENDETstay unchanged. Projection per spec tospecs/<NNN>-<slug>/spec.md(SPEC-006 renderer, regardless of the spec mode; newer draft asspec.draft.md), no files belowspecs/SPEC-<nnn>-…/. Changed projections are taken over (spec run, build run in modeLEICHT/STRENG) via the bridge asDRAFTof the same spec; a file counts as projection when its header comment points to a version of the spec with the directory's number or — without comment — when it sits in the exact projection directory; the same file state (SHA-256 in the front matterquelle:) is taken over only once. Foreign files, duplicate numbers and rejections per AC-006-08 only appear in the run log. Spec-run directive followsspec-template.mdwith[NEEDS CLARIFICATION]→ open questions →WAITING_FOR_INPUT; the plan run keepsplans/and, per spec directory,plan.md,research.md,data-model.md,quickstart.md,contracts/(GitService.committePfadeVerwirfRest); everything else is discarded and named. Workspace check:.specifyis an additional baseline root;.specify/scripts/**,.specify/extensions.ymland.claude/commands/**count as executable agent configuration (AGENT_KONFIG_AUSFUEHRBAR_VORGEFUNDEN) and, undermcpStandardverbot, are a blocking SECURITY finding (mcp-nullzustand) even when pre-existing; the factory does not delete them. After a format change the next preparation removes projection files of the old format only if they match a stored version (or the constitution matches the generated content); templates below.specify/templates/stay. The why-trace shows the spec format;RUN_SPEC_GEBUNDENadditionally carriespfad=specs/<NNN>-<slug>/spec.mdin formatSPEC_KIT. No installation and no execution of Spec Kit; notasks.md. - Symlinks and workspace check (security review SPEC-007). The factory never writes or reads through a symlink in the workspace (
WorkspacePfade: real root, every componentNOFOLLOW_LINKS). Write side: a symlink in the path aborts the workspace preparation, auditWORKSPACE_PFAD_ABGELEHNT, runFAILED("Lauf abgelehnt (Security, Phase …): …") — for every write of the factory (artefacts, guardrails/spec projection, conductor files below.claude/, adapter input artefacts, releaseCHANGELOG.md); remedy: replace the link in the workspace with a regular entry. Read side: specs, Spec Kit files and plans behind symlinks are skipped (log or run log), a Spec Kit import via a symlink is rejected. Workspace check: Spec Kit paths and roots case-insensitive (.specify/extensions.*); a capped collection (> 5000 files) →MCP_KONFIG_ERFASSUNG_GEKAPPT, a blocking finding undermcpStandardverbot. Spec and plan runs check executable Spec Kit parts at completion: under the default banRUN_POLICY_DENIED(zeitpunkt=abschluss) andFAILEDwithout take-over, otherwise attestation plus a hint.
13c. Control artifacts (artifact evolution)
The factory versions PROJECT.md, INSTRUCTIONS.md, AGENTS.md, WORKFLOW.md, DEFINITION_OF_DONE.md and README.md in prompt_artifact (since V68 with SHA-256, origin, status, generator version and tenant_id). Every version written to the workspace is recorded in artifact_materialization (project, run, kind, version, hash) — the latest row per kind is the comparison base, the rows of one run form a restorable set.
Enable:
artifact-evolution.mode=protectglobally (Settings → Control artifacts) or via envSOFTWAREFABRIK_ARTIFACT_EVOLUTION_MODE. The settings hierarchy also knows a project value, but there is currently no UI to set it. Defaultoff= previous behaviour. A project's artifact updates are under/projects/{id}/artefakt-evolution.Effect: a control file changed in the workspace is saved (
SNAPSHOT) instead of overwritten. Audit events:ARTEFAKT_DRIFT_ERKANNT,ARTEFAKT_ZIEL_UNSICHER(symlink/special file, neither read nor written),ARTEFAKT_WIEDERHERGESTELLT.Deliberately not protected:
.gemini/settings.jsonis still written on every run — it is part of the isolation (MCP null state, ADR-0017), not project knowledge..claude/settings.local.jsonis written only while the file is missing or was created by the factory.Own
CLAUDE.md: the factory never replaces aCLAUDE.mdthat it did not create, in any mode (from 0.41.5; previously on every run in modeoff).Backup: snapshots and versions live in the database; the regular database backup (section 14) covers them.
Modes:
off·protect(drift protection only) ·approval(a run creates an artifact update on drift) ·auto-safe(the run applies unambiguous updates without conflicts directly).Artifact updates (
artifact_update, V69): statusPREVIEW,APPLYING,APPLIED,REJECTED,FAILED,ROLLED_BACK,VERALTET. Approve and reject require MAINTAINER+. Applying locks the row, checks the workspace hashes against the analysis, writes via temp file and atomic move and commits only the affected files. While a run is active for the project, applying is rejected (the update stays open and can be approved again afterwards); while an update is being applied, no run starts.Recovery: on startup the factory checks updates in
APPLYING: fully written →APPLIED, otherwise back to the previous state →ROLLED_BACK(auditARTEFAKT_UPDATE_RECOVERY).AI:
artifact-evolution.model(defaultclaude-opus-5-5). Access in this order: (1) Anthropic API with key via the official Java SDK, as soon as anANTHROPIC_API_KEYis available (Integrations or environment) — no tools, JSON-schema response, server-side fallback model on a refusal; optional custom base URL viasoftwarefabrik.artifact-evolution.api-base-url(e.g. proxy/gateway); (2) Claude CLI (plan or key, depending on the Claude auth mode), read-only in an empty directory. Tokens and model are recorded on the update and in the audit trail (ARTEFAKT_KI_ZUSAMMENFUEHRUNG). Sections with a suspected secret never go to a model.Further audit events:
ARTEFAKT_UPDATE_ANALYSIERT,ARTEFAKT_UPDATE_UEBERNOMMEN,ARTEFAKT_UPDATE_ABGELEHNT,ARTEFAKT_UPDATE_VERALTET,ARTEFAKT_UPDATE_FEHLGESCHLAGEN.Self-development (the factory as target project): import the repo as a normal project (Git URL or allowed local path), set build directory
appand modeapproval. The first run creates an "adopt existing" update; after approval the repo files are the baseline, and later template changes arrive only as a delta. The running instance stays separate: own workspace, own branch, no deploy, no migration of the production database from the SDLC loop. The build gate runs without the factory's secrets and refuses a workspace that contains the instance's working directory. Releasing a new factory version remains a separate, human-approved step (runbookdocs/runbooks/deploy-demo.md, rollback via the.prevJAR).
Concept: ADR-0028 (docs/adr/0028-artifact-evolution.md).
13d. Ansehen: pictures after the build
UI: project page → build settings → „Ansehen: Bilder nach dem Build“ (/projects/{id}/ansehen, off by default) · run page → „So sieht es aus“ · Switch: softwarefabrik.ansehen.erlaubt (default true) · Spec: docs/roadmap/ansehen.md
After a build run whose build gate passed (or is deliberately not applicable) the factory takes pictures of what the result looks like and stores them with the run — triggered when the run is completed or has opened its pull request. The pictures are judged only on a click or when switched on per project (A3, below). The step runs in its own threads, never inside the run: the run does not wait for the pictures and never fails because of them. At most one step runs per project, at most softwarefabrik.ansehen.max-gleichzeitig (default 2) in total. When a new run of the project starts, it aborts the step (processes stopped, step „abgebrochen“) and waits for that at most 15 seconds.
Working tree instead of the project folder: every step works in its own git worktree --detach on the run's commit (merge commit, otherwise the tip of the run branch, otherwise the last recorded state) below softwarefabrik.ansehen.arbeitsordner (default <tmp>/softwarefabrik-ansehen, never inside the workspaces root). So there are pictures for pull-request runs and runs without a licence too, „Jetzt ansehen“ on an old run shows that run's state, and the run page names the commit. If the commit no longer exists (branch deleted): skipped with a reason. Because the working tree only holds versioned files, the "prepare" and "build" steps of the project profile or the project's build command run first (e.g. npm ci, npm run build; Maven and .NET build on start themselves), time limit vorbereiten-zeitgrenze-sekunden. Afterwards the working tree is removed (git worktree remove, prune); on start the factory removes leftovers.
Setting up web (e.g. Node or Spring Boot): start command one argument per line (npm / start), port, paths, window sizes, waiting time. The factory reserves the port inside its JVM (a second step with the same port is skipped), checks that it is free, starts the command with PORT=<port>, HOST=127.0.0.1 and SERVER_ADDRESS=127.0.0.1 — the project should honour these variables (Spring Boot does by itself, Node servers via process.env.PORT/HOST) — and waits until 127.0.0.1:<port> answers. Before every picture it checks that the start command is still running and (on Linux, via /proc/net/tcp) that the listening socket belongs to its process tree; otherwise there are no pictures. Where that cannot be determined (Windows, macOS), web steps run one after another. Per path it fetches HTTP status and page title (no redirects, no proxy) and calls the browser per path and window size: --headless=new --disable-gpu --hide-scrollbars --no-first-run --no-default-browser-check --disable-extensions --disable-background-networking --disable-component-update --disable-sync --disable-breakpad --mute-audio --no-proxy-server --password-store=basic --use-mock-keychain --user-data-dir=<fresh folder> --window-size=W,H --screenshot=<file> http://127.0.0.1:<port><path>. The profile folder is deleted afterwards.
Setting up a program (desktop, game, e.g. MonoGame): picture command one argument per line (dotnet / run / -- / --bildschirmfotos) and time limit. The command gets FABRIK_BILDER_ORDNER=<fresh folder in the temp directory>, writes PNG there and exits. The agent builds the demo mode: while this kind is on, the task of every build run contains a short paragraph about it (without the setting the task stays unchanged). A suggestion for MonoGame is in the user manual, section 2.8.
What the factory's machine needs:
| Kind | Without container sandbox | With container sandbox |
|---|---|---|
| Web | Google Chrome, Chromium or Microsoft Edge (in PATH, on Windows/macOS at the standard locations, or softwarefabrik.ansehen.browser); the tools of the start command (Node, Maven …) | skipped (no browser in the build image) |
| Program | the program's runtime; on Linux without a display xvfb-run (prepended if present) and software rendering (Mesa) | preparation and picture command in the build container (image and CPU/memory as for the build, only if the operator policy allows them; picture command without network). The working directory inside the working tree is mounted; no xvfb-run |
Settings (YAML/env):
| Key | Meaning |
|---|---|
softwarefabrik.ansehen.erlaubt | kill switch (env SOFTWAREFABRIK_ANSEHEN_ERLAUBT, default true); false = no looking, settings and pictures stay |
softwarefabrik.ansehen.browser | path of the browser (env SOFTWAREFABRIK_ANSEHEN_BROWSER); empty = search |
softwarefabrik.ansehen.browser-suchen | false = only the configured path (test profile) |
softwarefabrik.ansehen.arbeitsordner | folder of the working trees (env SOFTWAREFABRIK_ANSEHEN_ARBEITSORDNER, default <tmp>/softwarefabrik-ansehen; never inside the workspaces root) |
softwarefabrik.ansehen.vorbereiten-zeitgrenze-sekunden | time limit of the preparation in the working tree (default 900) |
softwarefabrik.ansehen.bild-zeitgrenze-sekunden | time limit per browser call (default 60) |
softwarefabrik.ansehen.max-wartezeit-sekunden, .max-zeitgrenze-sekunden | upper bounds for the project values (default 300 and 900) |
softwarefabrik.ansehen.max-gleichzeitig | steps at the same time, 1–8 (default 2) |
softwarefabrik.ansehen.max-mb-je-projekt | space for pictures per project (default 200 MB) |
softwarefabrik.ansehen.bild-adapter | adapters whose agent can look at a picture (default claude) |
Pictures: only real PNG (signature, header, end checked, 8 bits per channel), at most 8000 pixels per side, 16.7 million pixels and 5 MB, at most 12 per run; symlinks, hard links and subfolders are not collected; the factory assigns the file names. Storage: <workspaces-root>/<project>/ansehen/<run>/ (outside the git working tree), metadata in ansehen_schritt / ansehen_bild (migration V89). Space: a new step on the same run replaces its earlier pictures; if a project exceeds max-mb-je-projekt, the pictures of the oldest runs go — never those of the current run and of the last earlier run (comparison). On start the factory deletes picture folders without an entry. Database rows go with the run and the project; there is no delete function for runs yet. They are served only via /runs/{run}/ansehen/bilder/{id} with the tenant gate, image/png, nosniff, inline and a private cache.
Audit: ANSEHEN_EINSTELLUNG_GEAENDERT (no commands in the text), ANSEHEN_AUSGEFUEHRT (with commit), ANSEHEN_UEBERSPRUNGEN (with reason), ANSEHEN_BEWERTET (A3: status, model, access, number of pictures, cost).
Judgement by a model (A3): run page → „Bilder bewerten lassen“ (have the pictures judged; same role as „start run“, form POST with CSRF) or the setting „Nach jedem Ansehen die Bilder automatisch bewerten lassen“ (judge automatically after every look; off by default, column projekt_ansehen.bewertung_auto, migration V90). Advisory, no gate: the judgement never fails a run and never starts a correction loop; a finding becomes a run only by clicking „Als Folgeauftrag“ (as a follow-up task, A2; the finding text is marked there as foreign text).
- Call: one single-shot call through the same access as the AI tip and the AI roadmap revision (API key before Claude CLI; subscription and API-key mode of the CLI as there). The pictures go to the model as content of the message — via the Messages API as base64 image blocks, via the CLI with
--input-format stream-jsonand--tools ""(no tools at all, not even reading files), MCP null state,--permission-mode dontAskwith write/execute tools denied, an empty working directory and an ephemeral HOME. There is no bash, network, write or MCP access. This is checked at run time: if the CLI'ssystem/initline names tools or MCP servers (or is missing), the factory discards the answer (the consumption is booked). - Checked before: kill switch, mock run, Claude allowed for the project (model policy) and the tenant (policy as code), licence, trial, an access that can pass pictures, project budget, tenant hard cap and euro limit (
ProjektBudgetPruefung, again right before the call), at most 3 attempts per set of pictures and a daily limit per project (tageslimit, default 20; counted are the day's paid judgements — the cost items „Bewertung der Bilder“, paid failures included —, not calls without consumption). When it is reached, „Nicht bewertet: …“ shows on the run and the automatic judgement pauses until the next day. Without a budget only this limit caps the cost. Before the click the run page shows the estimate (pictures × about one token per 28×28 pixels, at most 4800 per picture, plus prompt; price from the price table) and the access. - Pictures: the current ones (at most 12), for web also the comparison picture from the last run while the total stays at most 12 pictures and 20 MB; each at most 3.75 MB and 8000 pixels per side. Time limit
softwarefabrik.ansehen.bewertung.zeitgrenze-sekunden(default 180). - Answer: JSON with findings is requested (kind from a fixed list, picture, description, severity). The factory takes only this schema: other fields are dropped, unknown kinds become „sonstiges“ (other), picture numbers outside the pictures become „no picture“, text at most 300 characters, one line, without control and bidi characters, secrets masked, at most 20 findings; text after the JSON object or an answer over 20,000 characters is discarded. Shown only via
th:textas „Einschätzung eines Modells, beratend“ (a model's assessment, advisory). - Storage and cost: on the step in
ansehen_schritt.bewertung(factory JSON, V90, at most 40,000 characters). Cost as the cost item „Bewertung der Bilder“ on the run (with a subscription as an estimate at API prices), also for a paid failure. Errors show as „Nicht bewertet: …“ (not judged) on the run; a judgement running at shutdown counts as not judged after the start.
| Key | Meaning |
|---|---|
softwarefabrik.ansehen.bewertung.erlaubt | kill switch of the judgement (default true) |
softwarefabrik.ansehen.bewertung.modell | model (default claude-sonnet-5-5; only models in the price table, otherwise the default) |
softwarefabrik.ansehen.bewertung.zeitgrenze-sekunden | time limit of the call, 20–900 (default 180) |
softwarefabrik.ansehen.bewertung.tageslimit | paid judgements per project and day (default 20, 0 = none) |
Security: while looking, project code runs as a process on the factory's machine — as in the build without a container: as an argument list without a shell, without the factory's secrets in the environment, with a time limit, in the working tree. The factory stops the process including its child processes after the pictures, on error, on timeout, when a new run starts and on shutdown (on Linux additionally via its own process group using setsid; background services of MSBuild and Gradle are switched off via the environment). After a hard end of the factory it stops the remembered process and its group on the next start — only if the start time matches. macOS and Windows have no setsid: there only the process tree counts; a process that detaches from its parent (or, on Linux, creates its own session) can stay behind. If you do not want that, leave „Ansehen“ off or use the container sandbox (then only the kind „Programm“). Details: docs/security.md, section 5.2.
13e. MonoGame: content, shaders and Wine
A .NET project counts as a MonoGame game when a .csproj references a package MonoGame.Framework.<platform> (DesktopGL, WindowsDX, DesktopVK, Android, iOS) or MonoGame.Content.Builder.Task, or when a .mgcb file lies in the project (searched up to six folders deep, without bin/, obj/, hidden folders and sample, test and docs folders such as samples/, examples/, tests/, docs/). The monogame profile is an add-on (German: Aufsatz) to the .NET profile (see section 13f): the gate builds like any .NET project, the add-on extends the build gate and the prerequisite check.
What the factory checks
| Check | When | Result |
|---|---|---|
Build content (dotnet mgcb /@:<file>.mgcb in the folder of the .mgcb) | .mgcb and dotnet-mgcb in the tool manifest, without MonoGame.Content.Builder.Task | own step [CONTENT] before dotnet build |
| Content in the normal build | MonoGame.Content.Builder.Task or a content builder project of its own | [CONTENT] line from the output of dotnet build |
Shaders (.fx) outside Windows | project has .fx files | "Prerequisites" box: is Wine there? Gate: without Wine "not checked" instead of red |
| WindowsDX | platform package MonoGame.Framework.WindowsDX, factory not on Windows | "Prerequisites" box: needs a Windows machine; gate: build fails only because of the Windows target (NETSDK1100 or DirectX/Wine) = "not checked" |
The build summary starts with MonoGame: MonoGame (DesktopGL) erkannt — Content: … and lists every step with its result. The factory keeps the outputs of the content pipeline (bin/, obj/ next to every .mgcb) out of the run commit. The error catalogue explains the typical cases in plain German: Wine missing (MGFXC0001, WineHelper), d3dcompiler_47.dll missing, mgcb not found (tool manifest or dotnet tool restore), WindowsDX outside Windows (NETSDK1100) and real shader errors in the effect. Wine missing, d3dcompiler missing and WindowsDX do not trigger an automatic correction as long as no C# error appears next to them — the agent could not fix them.
Assumption: The factory recognises a content builder program of its own (newer MonoGame templates) by a project file with
MonoGame.Framework.Content.PipelineorMonoGame.Content.Builder, or by source code withWildcardRule/ContentBuilder. It does not run it itself (its arguments are not fixed) but assumes thatdotnet buildbuilds the content, and recognises content errors in its output.
Setting up Wine (Ubuntu and WSL)
MonoGame's shader compiler mgfxc runs through Wine on Linux and macOS and looks for the Wine prefix in MGFXC_WINE_PATH, otherwise in ~/.winemonogame. The prefix must contain drive_c/windows/system32/d3dcompiler_47.dll.
- Install Wine and the helpers of the setup:
sudo apt update && sudo apt install -y wine64 p7zip-full curl(the same on WSL, inside the Ubuntu distribution). - Run MonoGame's Wine setup. The script is in the MonoGame documentation under "Setting up your development environment for Ubuntu"; its exact address depends on the MonoGame version — use the one from the docs of your version. It creates
~/.winemonogameand sets upd3dcompiler_47.dll. - Check, as the user the factory runs as:
which wine64 || which wineandls ~/.winemonogame/drive_c/windows/system32/d3dcompiler_47.dll. Set the prefix explicitly for the agents — they work with an empty home directory and do not find
~/.winemonogameotherwise. In the.envof the start package (or export before starting):MGFXC_WINE_PATH=/home/you/.winemonogame WINEPREFIX=/home/you/.winemonogame SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN=MGFXC_WINE_PATH,WINEPREFIX
- Restart the factory and reload the project page: the "Prerequisites" box no longer shows a Wine warning.
The build gate itself does not need step 4: it runs with the factory's environment (without its secrets) and sets MGFXC_WINE_PATH to the prefix it found if the variable is not set yet.
What happens without Wine: The "Prerequisites" box warns (monogame-wine) and names what is missing — it does not block the start, because shaders are a part of the game, not the whole. In the content step of its own the result is "not checked: shaders need Wine, which is missing here …", the code is still built and tested; the gate result is then "not checked" and needs an approval before the merge (or fails the run if the project demands a checked build). If the content is built by the normal build and fails only because of Wine, the same applies. If Wine is set up but not passed to the agent, the box warns with monogame-wine-agent.
With the container sandbox: The standard SDK image (mcr.microsoft.com/dotnet/sdk) has no Wine. The gate does not even run the content step with shaders there and reports it as "not checked: shaders need Wine, the build image has none"; the "Prerequisites" box says so in advance (monogame-shader-container). Enter an image with Wine on the project under Build container; the operator allows its prefix (softwarefabrik.build.erlaubte-images). It could look like this (a description only; the factory does not build an image and has not tested this route):
FROM mcr.microsoft.com/dotnet/sdk:10.0
RUN apt-get update && apt-get install -y --no-install-recommends wine64 p7zip-full curl \
&& rm -rf /var/lib/apt/lists/*
# Run MonoGame's Wine setup (script from the MonoGame docs) with a fixed prefix:
ENV HOME=/opt/monogame MGFXC_WINE_PATH=/opt/monogame/.winemonogame
RUN mkdir -p /opt/monogame && curl -fsSL <script address from the docs> | bash \
&& chmod -R a+rX /opt/monogame
Note: the build container has a read-only file system except for the workspace and /tmp. Wine writes into its prefix on start; if that fails, a start script of your own in the image has to copy the prefix to /tmp and point MGFXC_WINE_PATH there.
WindowsDX: Projects with MonoGame.Framework.WindowsDX only build on Windows (DirectX). If the factory runs on Linux/WSL or builds in the container, the "Prerequisites" box shows "needs a Windows machine" (monogame-windowsdx, warning), and if the build fails only because of the Windows target (NETSDK1100 or DirectX shaders through Wine), it is "not checked" instead of red; red tests and every other error stay red. For real checks, run the factory natively on Windows (single-user package for Windows, without container sandbox) or also create the game for DesktopGL.
13f. Creating your own project profiles
A project profile describes a stack as data: how it is recognised, which steps the build gate runs, which commands the agent needs for it. The bundled profiles live in the factory under app/src/main/resources/softwarefabrik/profile/*.yml. As an operator you put your own profiles into a directory:
SOFTWAREFABRIK_PROFILE_VERZEICHNIS=/path/to/profiles(environment variable; single-user package: a line in the.env) or the system property-Dsoftwarefabrik.profile.verzeichnis=….- On first use after the start, all
*.ymlin it are read (at most 200, no symlinks). Changes take effect after a restart. - Own profiles are always level C and are checked like the bundled ones. An invalid profile, an ID that is already taken or a forbidden command (
curl,rm,git, shells,docker…) is skipped with an error in the log ("Eigenes Projektprofil … übersprungen: …"); loaded ones appear as "Eigenes Projektprofil geladen: …".
What a profile can do
| Field | Meaning |
|---|---|
id, name | identifier (a-z, 0-9, -) and display name |
erkennung | file name patterns (*, ?) in the build directory; one match is enough |
schritte | ordered steps (art: vorbereiten, bauen, testen, pruefen; befehl as a list without shell; optional wennDatei, wennMuster, im, umgebung, leerCodes) |
image | container image for the steps with the container sandbox |
agentBefehle | commands the agent may run, e.g. Bash(npx *) |
testMuster, buildDateien, sperrDateien | test files, build configuration and lock files (leases, conflicts, reviewers) |
importAusschluesse, commitAusschluesse | folders not copied on import or never committed |
umgebungsvariablen, werkzeuge | environment of the steps; tools the factory can install |
ersetzt | more general profiles this one replaces (like python-uv → python) |
basis | add-on: ID of the base profile this profile builds on |
erkennungInhalt | add-ons only: regular expression that must occur in the content of a matching file |
netzQuellen | host names of the stack's package sources (repo.maven.apache.org …) for the network of the agent container (section 2.4b); names only, without https://, path or port; an add-on inherits those of its base profile |
An add-on never stands alone. It takes effect when the gate builds its base profile and the add-on's detection matches — searched up to six folders deep. Its steps line up per kind behind those of the base profile (prepare, build, test, check), its image and environment variables take precedence, lists are merged. An add-on to node also applies to the more specific Node profiles that replace node (npm ci, pnpm, Yarn). Limits: steps and image only extend base profiles with steps (Node, Python, Go, Rust, Gradle, CMake). Maven and .NET are built by Java logic of the factory; there an add-on of your own can only contribute detection, agent commands, test patterns and exclusions. The MonoGame add-on brings its logic with the factory (aufloeser: monogame); a profile cannot load Java logic of its own.
Worked example: an add-on for the (made-up) framework "Kolibri"
Kolibri projects are Node projects with a kolibri.config.json; the framework brings a check of its own, npx kolibri check, which the gate shall run as well.
Create a directory, e.g.
/home/you/sf-profile, and in itkolibri.yml:id: kolibri name: Kolibri basis: node erkennung: [kolibri.config.json] schritte: - art: pruefen befehl: [npx, kolibri, check] agentBefehle: [Bash(npx *)] testMuster: ["**/*.kolibri.test.js"] commitAusschluesse: [.kolibri-cache/]
- Add the line
SOFTWAREFABRIK_PROFILE_VERZEICHNIS=/home/you/sf-profileto the.envand restart the factory. The log says "Eigenes Projektprofil geladen: kolibri (kolibri.yml)". - Import a Kolibri project (with
package-lock.json). Under "Erkannte Projektprofile" the preview shows "Node.js (npm ci) + Aufsatz Kolibri (Stufe B)" — you confirm the base profilenode-npm. - Trial build or run: the build summary starts with "Profil node-npm (Node.js (npm ci) + Kolibri)" and, after the Node steps, contains the line
[PRUEFEN] SUCCESS: npx kolibri check. If the check fails, the gate is red and the agent gets the output for the correction. - A typo (say
art: kochen) lets the factory start normally; the log says "Eigenes Projektprofil kolibri.yml übersprungen: …".
A stand-alone profile (without basis) needs at least erkennung and schritte; the bundled YAML files serve as templates.
13g. Maven: your own settings.xml, mirror, offline
Since Java package, step 2 the build gate can use an operator settings.xml — for a company mirror (Nexus, Artifactory), private repositories and their credentials. Pure operating configuration: it cannot be set through the UI, a project or an agent.
SOFTWAREFABRIK_BUILD_MAVEN_SETTINGS(softwarefabrik.build.maven.settings): absolute path of the file; empty (default) = as before.SOFTWAREFABRIK_BUILD_MAVEN_OFFLINE=true(softwarefabrik.build.maven.offline): Maven with-o(local repository or.sandbox-m2only).
Setting it up, step by step:
- Create a folder outside all workspaces and project folders:
mkdir -p ~/.softwarefabrik/maven && chmod 700 ~/.softwarefabrik/maven. - Create
~/.softwarefabrik/maven/settings.xmlwith<mirrors>and<servers>— using an account that may only read. No DTD, at most 1 MiB, no symlink. chmod 600 ~/.softwarefabrik/maven/settings.xml; readable by the factory's user.- Add to the
.env:SOFTWAREFABRIK_BUILD_MAVEN_SETTINGS=/home/<you>/.softwarefabrik/maven/settings.xml(absolute, no~). - Restart the factory; the log names the file (on a problem a WARN line with the reason, without content).
- Start a run: locally
mvn -B -s <path> verify(also withmvnw), with the container sandbox mounted read-only at/etc/softwarefabrik/maven-settings.xmland-spointing there.
Checked before every build: a real file, absolute path, at most 1 MiB, XML without DTD, not in the run's workspace, under the workspace root or in a project folder (also resolved). Otherwise the gate does not build and reports „not checked“ with the reason. The file is never copied into the workspace, never logged and never given to agents; passwords, passphrases, header values and credentials in URLs become *** in the stored build output (also in the test report), the path becomes <settings-des-Betreibers>. Not supported (gate reports „not checked“): placeholders ${env.…} (enter values in plain text) and encrypted passwords (settings-security.xml is not mounted).
Caution: the project's plugins and tests run during the build and can read the file — use read-only credentials only, preferably with the container sandbox. If the agent itself needs the mirror, do not solve it via SOFTWAREFABRIK_AGENT_ENV_DURCHREICHEN (e.g. MAVEN_ARGS=-s …): every agent would get the credentials. The file does not apply to a build command on the project, to Gradle or to „Ansehen“.
13h. Vulkan: shaders, Vulkan SDK and lavapipe
A CMake project counts as a Vulkan project when the factory finds (up to six folders deep, without build/, hidden folders and sample, test, docs and library folders such as examples/, tests/, third_party/, external/, vendor/, libs/, lib/, include/, extern/, imgui/, glfw/) one of these markers: find_package(Vulkan, a Vulkan::… target or glslc/glslangValidator in a CMake file, #include <vulkan/vulkan.h> or <vulkan/vulkan.hpp> or GLFW_INCLUDE_VULKAN in a source file (.c, .cpp …; headers do not count — bundled GLFW and imgui headers mention Vulkan in OpenGL projects too), Vulkan GLSL in a shader (gl_VertexIndex, gl_InstanceIndex, layout(set = …), push_constant, GL_KHR_vulkan_glsl) or a SPIR-V file (.spv). GLSL files without a Vulkan marker deliberately do not count — an OpenGL project has them too. The vulkan profile is an add-on (German: Aufsatz) to the CMake profile (section 13f): the gate still builds with cmake and ctest, the add-on extends the build gate and the prerequisite check.
What the factory checks
| Check | When | Result |
|---|---|---|
Check shaders ([SHADER]) | GLSL shaders in the project (.vert .frag .comp .geom .tesc .tese, .glsl with a recognisable stage) | each shader compiled on its own with glslc --target-env=vulkan1.2 (otherwise glslangValidator -V), output into a temporary folder outside the project; errors with file:line |
| Tests without a GPU | ctest, lavapipe installed | for the test step the gate sets VK_ICD_FILENAMES and VK_DRIVER_FILES to lvp_icd*.json — only if neither is set already |
| Prerequisite check | before the run | “Prerequisites” box: vulkan-glslc, vulkan-sdk, vulkan-lavapipe, vulkan-container — warnings with a remedy, never a block |
The build summary starts with Vulkan: 3 Shader erkannt — Shader prüfen mit glslc; Tests ohne GPU: lavapipe (…) and lists every step ([VORBEREITEN] = cmake -S . -B build-fabrik, [BAUEN], [SHADER], [TESTEN] = ctest). The shader check also runs when the build fails — the agent then gets both errors. Every shader error appears as [Shaderprüfung der Fabrik] Fehler: shaders/light.frag:4: … in the summary (foreign text cleaned and shortened; the same marker inside tool output is neutralised) and so reaches the correction loop. A .glsl without a recognisable stage (neither light.frag.glsl nor #pragma shader_stage(fragment)) is treated as an include file and not compiled on its own. The search goes up to eight folders deep, without hidden folders, build output and third-party code (build/, build-fabrik/, cmake-build-*, out/, third_party/, external/, vendor/, _deps/ …); shaders under tests/ or examples/ are compiled too. At most 200 shaders per run; file names reach the compiler only as absolute paths, never through a shell. A shader whose #include points outside the project (absolute or via ..) is not compiled and is named in the [SHADER] line, as are symlinks; glslc itself cannot restrict includes to a folder, and nested includes are not checked.
Honest instead of red: the result is “not checked” only when every error is clearly caused by the environment and the factory confirms it itself: CMake cannot find Vulkan or vulkan/vulkan.h is missing — and the factory finds no Vulkan SDK itself; the build calls a missing glslc — and the factory finds no shader compiler itself; or every red test (***Failed or “Child aborted”) names only the missing Vulkan device (vkCreateInstance … -9, VK_ERROR_INCOMPATIBLE_DRIVER, “failed to find GPUs with Vulkan support” …) — and there is no driver at all in the ICD folders (not even a real GPU such as nvidia_icd.json) and VK_ICD_FILENAMES/VK_DRIVER_FILES are empty. A message from the project's code alone never downgrades. With the container sandbox the factory has no findings of its own; these cases stay red there (only a tool missing from the image, exit 125–127, is “not checked”). A C/C++ compiler error, a shader error, another red test, a crash (SegFault …), a timeout or a linker error (undefined reference to …) stay red — also next to a gap in the environment. The error catalogue explains the cases in plain German: shader error (the agent corrects it), glslc missing, Vulkan headers/loader missing, no Vulkan device (these three do not trigger an automatic correction as long as no compiler or shader error appears next to them; the catalogue checks them only in output of the Vulkan gate). A missing system header (fatal error: zlib.h: No such file or directory) is called “header missing — install the library or ship it with the project” in every C/C++ project; the correction runs there as before.
Setting it up on Ubuntu and WSL
# Ubuntu 24.04 (also under WSL):
sudo apt update && sudo apt install -y glslc libvulkan-dev mesa-vulkan-drivers vulkan-tools
# Ubuntu 22.04 has no glslc package — use glslangValidator there:
sudo apt install -y glslang-tools libvulkan-dev mesa-vulkan-drivers vulkan-tools
Verified (2026-11-29): 24.04 has glslc (shaderc 2023.8), glslang-tools, libvulkan-dev and mesa-vulkan-drivers (lavapipe at /usr/share/vulkan/icd.d/lvp_icd.json); 22.04 has glslang-tools 11.8, libvulkan-dev 1.3.204, vulkan-tools and mesa-vulkan-drivers (lvp_icd.x86_64.json), but no glslc. The gate does not need vulkan-tools (vulkaninfo); it only helps with troubleshooting. Check as the factory's user: which glslc || which glslangValidator, pkg-config --modversion vulkan and ls /usr/share/vulkan/icd.d/lvp_icd*.json. The LunarG Vulkan SDK works as well; then set VULKAN_SDK and put its bin/ on the factory's PATH. Restart the factory and reload the project page: the “Prerequisites” box shows no Vulkan warning any more.
The agent gets no permission of its own for glslc: the agent commands of the profiles currently apply to all projects, not per project. If the project compiles its shaders in the CMake build, the agent reaches glslc through cmake --build; otherwise the gate checks them in the shader-check step.
With the container sandbox: the factory ships no standard image for CMake (there is no official one with compiler, CMake and Vulkan SDK). Without your own image, build, shader check and tests are “not checked: build image without Vulkan SDK”; the “Prerequisites” box says so beforehand (vulkan-container). Enter your own image on the project under Build container; the operator allows its prefix (softwarefabrik.build.erlaubte-images). In the container the gate first tries glslc, then glslangValidator; if both are missing the shader check is “not checked”. The gate sets no ICD variables there — the Vulkan loader finds lavapipe in the image by itself. It could look like this (a description only; the package list ran green on 2026-11-29 in an ubuntu:24.04 container with cmake, ctest and lavapipe, the factory did not build this image itself):
FROM ubuntu:24.04
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake g++ make pkg-config glslc libvulkan-dev mesa-vulkan-drivers \
&& rm -rf /var/lib/apt/lists/*
# optional: always use the software renderer, even if other ICDs are in the image
ENV VK_DRIVER_FILES=/usr/share/vulkan/icd.d/lvp_icd.json
The factory does not suggest an official image with glslc: the image khronosgroup/vulkan-samples exists (verified with docker manifest inspect), but its contents are not checked.
Limit: the factory does not do real GPU or image-comparison tests. It checks the build, the shaders and everything that runs without a graphics card — with lavapipe also tests that need a Vulkan device. glslc in Vulkan mode does not compile OpenGL shaders (for example uniforms outside a block); if such shaders sit in a Vulkan project, the shader check reports them as errors.
14. Operations: monitoring, backup, air-gap
Monitoring
| Endpoint | Content |
|---|---|
/actuator/health |
incl. secrets health indicator |
/actuator/info |
version and build number |
/actuator/prometheus |
metrics (ROLE_ADMIN only) |
Logback writes correlationId, userId, projectId, runId and phase into the MDC.
Backup
Three things must be backed up:
- the PostgreSQL database,
- the workspace directory (contains the projects' Git repositories),
- the attestation key and the secrets master key.
The tools directory (softwarefabrik.werkzeuge.verzeichnis) is optional: it can be reinstalled at any time under Einrichtung → Werkzeuge.
Procedure: docs/backup-restore.md. After a restore, run the chain check under /attestierung.
Air-gap
| Requirement | Implementation |
|---|---|
| No vendor cloud access | adapter local-llm (Ollama/vLLM/LM Studio) |
| No network for the agent | at host/network level (firewall, egress rules) — the agent CLIs run as host processes, the container sandbox only encapsulates build and scans |
| No licence callback | ADR-0009 (refresh-required=false) |
| No remote coupling | PR poller off, allowlist empty or internal |
| No tool downloads | softwarefabrik.werkzeuge.installation-erlaubt=false; provide tools by hand or via internal images |
Delivery: docs/runbooks/airgap-auslieferung.md.
Requesting a Community licence (from 0.51)
Without a purchased licence the factory fetches the free Community licence itself: Einrichtung → Lizenz → „Community-Lizenz anfordern“, enter an email address. The factory sends email and device fingerprint to the licence server (POST /api/v1/lease/issue, stored there only as a hash) and installs the returned lease bound to this machine. Scope: 10 runs a day, 3 agents at once, up to 3 machines per email; 30-day term, renewed online as with Professional. Requesting again with the same email on the same machine renews the licence. If the machine is already bound to a Professional or Enterprise licence under this email, the server refuses. On the public demo the licence area is read-only.
Licence file (Professional/Enterprise, from 0.42)
The licence admin issues a .license file with license-infra/issue-license.sh (tier from the customer record, optional euro and device limits). Without a fingerprint this is an activation file (14 days): the user imports it under Einrichtung → Lizenz (/license/v1, section „Lizenz importieren“), the factory binds it to the device via the licence server on import and receives the regular 30-day lease. If the server is unreachable, the file is valid until it expires and the next start retries. A second device is rejected with "device limit reached" (default 1 device). For enterprise or air-gap licences that are to be bound in advance, /license/v1 shows the device fingerprint with a copy button. Details: docs/license-service.md §6a.
Licence enforcement in the distribution build (from 0.42)
There are two builds of the factory. The dev build (mvn package; demo, CI, development) behaves as before: SOFTWAREFABRIK_LICENSE_V1_ENABLED switches the licence module and all licence settings apply. The distribution build (mvn -Pdistribution package → softwarefabrik-app-distribution.jar) requires a licence: the mode is fixed in the JAR at build time, the licence module is always active, and the settings to disable it, a custom public key, issuer/audience and foreign server URLs are ignored — startup logs every ignored setting as WARN, and /license/v1 shows the mode ("Lizenzpflicht: Server" / "Standalone-Zertifikat bis …" / "Dev-Build") together with the list.
The licence requirement applies to real AI agents (vendor CLIs, local models, gateways): without a licence (or once grace and emergency grace have expired) no new run with a real AI agent starts; runs with the mock remain possible. Mock runs need no licence, do not count against the runs per day and cost nothing. The check happens when the run is created, where its adapter is fixed; the run keeps that adapter, a later change of the default adapter does not alter it. Reviewers with an AI CLI (claude-review, aider-review) never run in a mock run — neither in the pipeline nor in the manual quality gate; they appear as “skipped” with a reason, because the mock calls no AI model. The gate is then decided by the rule-based reviewers (security, architecture, spec conformance where bound); they cover the required categories of “strict” (SECURITY, ARCHITECTURE).
A delivered factory runs in one of two ways only: via the licence server (activation file or bound licence, online refresh, grace per tier, revocation on the next refresh) or via a standalone certificate (issue-license.sh --fingerprint … --standalone --valid-days 90; fixed validity, no refresh, no rebinding, no revocation before expiry — keep it short).
Since 0.42 the device fingerprint is bound to the machine (machine characteristic machine-id / MachineGuid / IOPlatformUUID plus the installation UUID): a copied licence store does not work on another machine, and WSL and Windows count as different machines. If the characteristic cannot be determined, the distribution build reports "Kein Geräte-Fingerabdruck" and allows no run with a real AI agent. Existing installations (licence issued before 0.42) are rebound to the new fingerprint exactly once on the first start (/api/v1/lease/rebind, licence server must be reachable; new runs with real AI agents are blocked until then). Standalone certificates from before need a new file. If a licence was bound by an old client only after the server update, the licence admin releases the rebinding once (issue-license.sh --allow-rebind <license-id>).
The distribution build reads the mode statically from the JAR, pins the public key in code, aborts startup if Spring override levers are set (spring.main.sources, spring.main.allow-bean-definition-overriding, context.initializer.classes, loader.path), and verifies the actually wired licence beans against the expected state at startup. The machine characteristic is read only via fixed system paths (reg.exe, ioreg, machine-id); a forged os.name results in "Kein Geräte-Fingerabdruck". Containers without /etc/machine-id are not intended for the distribution build.
Honest limit: the JAR is on the user's machine; bytecode can be patched. The goal is that circumvention requires deliberate manipulation instead of an environment variable. It does not protect API costs (section 12, euro limit). Details: docs/license-service.md §6b.
15. Settings reference
All settings follow the scope hierarchy PROJECT > USER > GLOBAL > YAML and take effect without a restart (max. 5 minutes of caching). The Settings page /einstellungen (ADMIN only; from 0.46 operator accounts only on shared instances) sets GLOBAL values only, and only for some of the keys; the five guardrails from section 6a can also be set per tenant and project on the Leitplanken page — there, instead of the scope hierarchy, lower levels can only tighten; those marked "YAML/env" are set in application.yml or as an environment variable (e.g. softwarefabrik.run.sbom.mode → SOFTWAREFABRIK_RUN_SBOM_MODE), and a change there needs a restart.
The settings page is split: at the top „KI-Zugang“ (AI access) as a table (adapter, subscription or API key, sign-in directory), operating mode, and workspace and Git author; under „Erweitert“ (advanced, collapsed) models, control artifacts, cost and runs. Quality gate, approvals and sandbox are no longer there but on the Leitplanken page.
Feature switches („Funktionsschalter“). The page also shows, read-only, the state of the switches that take effect at startup: workflows (SOFTWAREFABRIK_WORKFLOW_ENABLED), specifications (SOFTWAREFABRIK_SPEC_ENABLED), feedback from pull requests (SOFTWAREFABRIK_GIT_PR_FEEDBACK_ENABLED), license check (SOFTWAREFABRIK_LICENSE_V1_ENABLED) and signed audit chain (SOFTWAREFABRIK_ATTESTATION_SIGNING_ENABLED). To change one, set the environment variable (e.g. in the single-seat .env) and restart the factory.
| Key | Meaning |
|---|---|
betrieb.modus |
single-seat subscription or team API pool |
execution.adapter.default |
default adapter |
execution.<adapter>.model |
Default model for Kimi and Aider (effective on the Settings page from 0.41.3; empty = YAML default softwarefabrik.execution.kimi.model or .aider.model). Codex and Gemini start without a model flag (model from their CLI configuration); their fields were removed in 0.41.3. Otherwise the model comes from the capability routing (run.routing.*), the model of the responsible agent in the team (from 0.46, section 5) and — for Claude Code only — the role default of the price table (plan → Opus, build → Sonnet) |
execution.<adapter>.auth-mode |
api-key or subscription (claudecode, codex, kimi, gemini) |
execution.<adapter>.subscription.config-dir |
alternate credential directory |
execution.sandbox.variant |
local or container (YAML/env; globally also on the Leitplanken page, level „Vorsichtig“ or single value) |
softwarefabrik.execution.sandbox.docker-binary, softwarefabrik.build.sandbox-image, softwarefabrik.sbom.sandbox-image |
container sandbox details (YAML/env, section 2.4) |
softwarefabrik.build.timeout-seconds |
build gate time limit in seconds for all stacks (env SOFTWAREFABRIK_MAVEN_TIMEOUT, default 1800); applies when the project sets no time limit (YAML/env) |
softwarefabrik.build.erlaubte-images, .max-cpus, .max-speicher, .max-timeout-minuten |
limits for project build containers (defaults: official toolchain prefixes, 8, 16g, 240; YAML/env, section 2.4) |
softwarefabrik.werkzeuge.verzeichnis |
target directory of Einrichtung → Werkzeuge (env SOFTWAREFABRIK_WERKZEUGE_VERZEICHNIS, default ~/.softwarefabrik/werkzeuge; YAML/env) |
softwarefabrik.werkzeuge.installation-erlaubt |
kill switch for tool downloads (env SOFTWAREFABRIK_WERKZEUGE_INSTALLATION_ERLAUBT, default true; YAML/env) |
softwarefabrik.build.maven.settings | operator settings.xml for the Maven gate (env SOFTWAREFABRIK_BUILD_MAVEN_SETTINGS, absolute path outside all workspaces; empty = off; section 13g) |
softwarefabrik.build.maven.offline | Maven gate with -o (env SOFTWAREFABRIK_BUILD_MAVEN_OFFLINE, default false; section 13g) |
softwarefabrik.profile.verzeichnis | directory with your own project profiles (*.yml, level C; env SOFTWAREFABRIK_PROFILE_VERZEICHNIS, empty = bundled ones only; system property or env, restart; section 13f) |
run.quality-gate.mode |
off / advisory / blocking (globally on the Leitplanken page instead of the settings; from 0.46 also per tenant/project, section 6a) |
run.quality-gate.policy |
strict or lenient (globally on the Leitplanken page; from 0.46 also per tenant/project) |
run.approval-vor-merge |
mandatory approval before EXECUTION (without an active approval policy; despite its name not before the merge; YAML/env, default on; from 0.46 also per tenant/project, there also against an approval policy) |
run.approval-segregation |
segregation of duties (YAML/env, default off; from 0.46 also per tenant/project). When on, there is no approval at start (section 6) |
vorgaben.alle-projekte |
rules for all projects (text, per tenant TENANT:<id>, without tenant GLOBAL; only via Einrichtung → Vorgaben für alle Projekte, section 2.6) |
run.auto-followup-plan |
follow-up plan run after a successful build |
run.guardrails.mode |
guardrails projection (YAML/env, default on; from 0.46 can only be switched off globally, section 6a) |
artifact-evolution.mode |
off (default), protect, approval, auto-safe — drift protection and artifact evolution |
artifact-evolution.model |
model for AI merging (default claude-opus-5-5; YAML/env) |
run.sbom.mode |
SBOM creation per build (YAML/env, default off) |
run.routing.plan-model / .build-model / .spec-model |
capability routing (YAML/env) |
workspace.git.user.name / .email |
author of the commits the factory creates itself (workspace init, checkpoints, merges, tags); effective from 0.41.3, empty = "Software Factory" / agent@softwarefabrik.local |
git.pr-feedback.enabled |
PR/CI poller (YAML/env, default off) |
import.allowed-roots.zusatz, git.allowed-hosts.zusatz |
additional import folders or Git hosts from Einrichtung → Import-Ordner, Git-Hosts und Quellen-Hosts (one entry per line; extend SOFTWAREFABRIK_IMPORT_ALLOWED_ROOTS and SOFTWAREFABRIK_GIT_ALLOWED_HOSTS, section 2.6) |
workspace.root |
workspace root |
softwarefabrik.runs.max-parallel |
maximum number of concurrently active runs on the instance (YAML/env, default 16) |
softwarefabrik.plattform.betreiber |
operator accounts for multi-tenant instances (YAML/env, section 3) |
softwarefabrik.routines.enabled |
trigger scheduled routines (/projects/{id}/routines) (YAML/env, default off) |
softwarefabrik.workflow.enabled / .dispatcher.enabled |
workflows and their automatic start (YAML/env, default off; section 13a) |
softwarefabrik.license.v1.enabled, .public-key-path, .public-key-resource, .expected-issuer, .expected-audience, .default-server-url |
licence module (YAML/env). Effective in the dev build only; the distribution build (-Pdistribution) ignores them and reports that at startup and on /license/v1 (section 14). .primary-store-path / .secondary-store-path apply in both builds |
Removed (from 0.46): seven keys without effect — execution.claudecode.model, execution.codex.model, execution.gemini.model, budget.daily.tokens, budget.weekly.tokens, execution.sandbox.image and execution.sandbox.docker-binary (as a setting; the YAML property softwarefabrik.execution.sandbox.docker-binary remains). Migration V77 deletes existing entries.
Vendor keys are not managed here but under /integrations (AES-GCM encrypted, with provider validation for Anthropic, OpenAI, Gemini, Kimi, GitHub and NVD). In API-key mode the agent adapters inject a key stored here when the app process environment has none (the environment takes precedence): Claude (ANTHROPIC_API_KEY, from 0.41.1), Codex (OPENAI_API_KEY), Gemini (GEMINI_API_KEY), Kimi (KIMI_API_KEY) and Aider (all three depending on the model), each from 0.41.2. In subscription mode the keys are still removed.
16. Troubleshooting for administrators
- Application won't start, message about master key / demo value — the
containerprofile deliberately forbids demo values and short keys. Set a random value. - Startup aborts with an attestation error — signing is enabled but no key is configured. Either provide a key or set
…SIGNING_ENABLED=falseexplicitly. - Chain check reports
BAD_SIGNATUREafter a key rotation — keep the old key available via the keyring path; otherwise older entries can no longer be verified. - A user (even ADMIN) does not see foreign projects — correct:
ADMINis not a data super-admin. Work through tenant assignment. - Run rejected with
RUN_POLICY_DENIED— most common cause: the project's model policy (allowed adapters) or the active policy-as-code does not allow the chosen adapter. Check the policy or switch adapters; the rejection is documented in the audit trail. - Run stuck in
WAITING_FOR_APPROVAL— mandatory approval is active. Check who may approve (MAINTAINERand above) and whether segregation of duties excludes the triggering user. Where the approval comes from (global, tenant, project, policy) is shown on the project page under Leitplanken. - Run reports „Werkzeug-Auswahl … nicht durchgesetzt“ (tool selection not enforced, from 0.46) — the responsible agent has a tool selection, but the run does not use the
claudeadapter or the permission mode is empty. Only Claude Code enforces the selection. - Quality gate reports
ERROR— a reviewer crashed, timed out or returned unreadable output, or a mandatory policy requirement is not met. Deliberately not a silent pass. A missing reviewer CLI only yieldsSKIPPEDfor that reviewer. The mandatory requirements of thestrictpolicy are the categories SECURITY and ARCHITECTURE: they count as met when a reviewer that checks them has run (e.g.security-reviewer,architecture-reviewer,claude-review) — even without findings. If such a reviewer was skipped or crashed, the result staysERROR. For non-Java projects (nopom.xml/Gradle file at the root, no.java/.ktin the diff) thearchitecture-reviewerreturnsPASSEDwithout confidence: the mandatory ARCHITECTURE category then counts as met although the layer rules did not apply. - No SBOM produced —
run.sbom.modeisoffor Trivy is missing from the PATH. - Startup aborts with „Die Variable '…' darf nicht an Agenten durchgereicht werden …“ (the variable may not be passed to agents) —
SOFTWAREFABRIK_AGENT_ENV_DURCHREICHENcontains a blocked name (e.g.HOME,GIT_*,SOFTWAREFABRIK_*). Remove the entry (section 5). - A run reports „git-Wächter: …“, a custom filter driver or „Das installierte Git ist älter als 2.31 …“ — the factory runs no git in this project folder (section 5, the factory's git calls in the project folder). Move a wanted filter driver,
core.sshCommandor credential helper into the global git configuration of the operating user and remove it from the project folder's.git/config; update Git; re-import a partial clone as a full clone. - Cost shows €0 — either a subscription model (flat rate, correct) or a model without an entry in the price table.
17. Known limits
| Limit | Meaning |
|---|---|
Maven settings.xml for the gate only |
Applies to mvn/mvnw in the build gate, not to the agent, a build command on the project, Gradle or „Ansehen“; the project's plugins and tests can read it during the build — use read-only credentials only (section 13g) |
| One active run per project | Different projects run in parallel; runs of the same project run sequentially (exception: child runs of a workflow, section 13a) |
| Budget caps per tenant, project and workflow | The seat view reports but does not constrain |
| PR/CI feedback for GitHub only | GitLab/Bitbucket/Azure DevOps not connected; the local merge applies there |
| Cloud gateways experimental | Bedrock/Vertex/Azure OpenAI not verified end-to-end |
| Sandbox default is local | Container mode is available but not the default |
| Agent CLIs as host processes by default | By default isolation via ephemeral HOME and flags; the factory provides the build tools itself (Einrichtung → Werkzeuge, from 0.45). Per project the agent runs in a container (section 2.4a): Linux and WSL only, Claude Code, Codex and Gemini only, open network, no protection for the project folder and the agent's login (the MCP gateway and the operator's own MCP servers work through the gateway door) |
| Regulated profiles need isolation proofs | Without a canary run for the installed CLI version only the mock is usable there |
| Vulkan without a GPU | The factory checks build, shaders (glslc) and tests without a graphics card (lavapipe); no real GPU or image-comparison tests. There is no standard build image for CMake — with the container sandbox you need your own (section 13h) |
| Licence enforcement is not copy protection | The distribution build ignores environment variables, but the JAR is on the user's machine: patching bytecode or replacing the embedded public key remains possible (deliberate manipulation = licence breach). It does not protect API costs |
Current version: docs/production-scope.md. Technical depth: docs/governance-compliance.md.