Manifest Reference (fastci.json)

Every field, type, default, and hard parser limit verified directly against src/pipeline/manifest.c and include/fastci/types.h.

IDE Autocomplete & Validation

Add "$schema": "https://seregonwar.github.io/FastCi/schema/fastci.schema.json" at the top of fastci.json for instant hover docs and schema checks in VS Code, JetBrains, and CI.

Top-Level Properties

FieldTypeDefault / LimitsDescription
$schemastringOptionalJSON Schema URL for editor & AI validation.
namestring"default"Human-readable pipeline name.
versionstring"1"Manifest schema version string.
cache_dirstring.fastci-cacheDefault local CAS directory (overridden by FASTCI_CACHE_DIR or -c).
verify_inputsenum"fast""fast" | "sample" | "strict". Inherited by jobs unless overridden.
remote_cachestringOptionalHTTP/HTTPS Remote CAS base URL (e.g. https://cas.internal:8080).
remote_read_onlybooleanfalseDisable remote uploads; read-only cache lookups (ideal for untrusted PRs).
workersintegerCPU count (1..256)Maximum concurrent jobs executed by the DAG scheduler.
max_ram_mbintegerAuto (0 = auto)Total RAM budget in MiB enforced across jobs declaring mem_mb.
envobjectMax 128 keysPipeline-wide environment variables (string → string).
jobsarrayRequired (1..1024)Array of job definitions. Matrix-expanded total cannot exceed 1024.

Job Properties

FieldTypeDefault / LimitsDescription
idstringRequiredUnique identifier (ASCII alphanumeric, -, _, .).
namestringEquals idDisplay label for logs, plans, and trace events.
cwdstringRepo rootWorking directory relative to the manifest directory.
cmdstring[]1..512 argsDirect-spawn executable and arguments (no shell). Provide cmd or shell.
shellstringOptionalShell command string (sh -c / cmd /c). Use only when shell features are required.
toolchain_cmdstring[]OptionalVersion probe argv (e.g. ["cc", "--version"]) hashed into the job's CAS key.
needsstring[]Max 64Upstream job IDs that must succeed first. Referencing a matrix parent depends on all expanded variants.
inputsstring[]Max 128File paths or globs (*, ?, **). Prefix with ! to exclude paths.
critical_inputsstring[]Max 128High-priority inputs always verified strictly, even under verify_inputs: "sample".
outputsstring[]Max 64Files or directories stored in CAS on success and restored on cache hit.
scan_depsstring[]Max 128Entry-point files for FastCi's SIMD transitive dependency scanner. Alias: scan_c_deps.
langenum"auto"auto, c, asm, rust, go, zig, python, js, java, csharp, swift.
include_dirsstring[]Max 64Search roots for scan_deps. Alias: search_dirs.
verify_inputsenumInheritedPer-job override: "fast" | "sample" | "strict".
envobjectMax 128 keysJob-level env overrides (merged over pipeline env).
cpu_slotsinteger1Worker slots reserved while this job executes.
mem_mbinteger0Estimated RAM footprint in MiB for memory-aware scheduling. Alias: ram_mb.
retriesinteger0 (0..10)Automatic retry count on non-zero exit code.
timeout_msinteger0 (none)Hard per-job timeout in milliseconds.
weightinteger10 (1..1000000)Critical-path priority weight. Higher values run earlier.
cachebooleantrueEnable/disable CAS lookup and storage for this job.
allow_failurebooleanfalseAllow pipeline to continue if this job fails.
matrixobjectMax 256 combosCartesian expansion map: { "axis": ["v1", "v2"] }.

Matrix Expansion

Declaring a matrix object expands the job into the Cartesian product of all axes (up to 256 combinations per job). Substitute variables anywhere in cmd, shell, outputs, inputs, env, or cwd using ${{ matrix.KEY }}:

{
  "id": "build",
  "matrix": {
    "arch": ["x86_64", "arm64"],
    "mode": ["debug", "release"]
  },
  "cmd": ["cmake", "--build", "build-${{ matrix.arch }}-${{ matrix.mode }}"],
  "outputs": ["build-${{ matrix.arch }}-${{ matrix.mode }}/app"],
  "weight": 100
}

Expanded IDs become build[arch=x86_64,mode=debug], etc. A downstream job listing "needs": ["build"] automatically waits for every expanded variant.

Glob & Exclusion Rules

Complete Polyglot Example

{
  "$schema": "https://seregonwar.github.io/FastCi/schema/fastci.schema.json",
  "name": "acme-platform",
  "version": "1",
  "verify_inputs": "sample",
  "max_ram_mb": 6144,
  "env": {
    "SOURCE_DATE_EPOCH": "1700000000"
  },
  "jobs": [
    {
      "id": "lint-c",
      "cmd": ["clang-format", "--dry-run", "--Werror", "src/main.c"],
      "inputs": ["src/**/*.c", "include/**/*.h", ".clang-format"],
      "cache": true,
      "weight": 20
    },
    {
      "id": "build-core",
      "cmd": ["cmake", "--build", "build", "--target", "core", "--parallel"],
      "toolchain_cmd": ["cc", "--version"],
      "critical_inputs": ["CMakeLists.txt"],
      "scan_deps": ["src/main.c"],
      "lang": "c",
      "include_dirs": ["include"],
      "outputs": ["build/libcore.a"],
      "cpu_slots": 2,
      "mem_mb": 2048,
      "weight": 120
    },
    {
      "id": "test-core",
      "needs": ["build-core"],
      "cmd": ["ctest", "--test-dir", "build", "--output-on-failure"],
      "inputs": ["build/libcore.a", "tests/**/*.c"],
      "retries": 1,
      "timeout_ms": 60000,
      "weight": 40
    }
  ]
}