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
| Field | Type | Default / Limits | Description |
|---|---|---|---|
$schema | string | Optional | JSON Schema URL for editor & AI validation. |
name | string | "default" | Human-readable pipeline name. |
version | string | "1" | Manifest schema version string. |
cache_dir | string | .fastci-cache | Default local CAS directory (overridden by FASTCI_CACHE_DIR or -c). |
verify_inputs | enum | "fast" | "fast" | "sample" | "strict". Inherited by jobs unless overridden. |
remote_cache | string | Optional | HTTP/HTTPS Remote CAS base URL (e.g. https://cas.internal:8080). |
remote_read_only | boolean | false | Disable remote uploads; read-only cache lookups (ideal for untrusted PRs). |
workers | integer | CPU count (1..256) | Maximum concurrent jobs executed by the DAG scheduler. |
max_ram_mb | integer | Auto (0 = auto) | Total RAM budget in MiB enforced across jobs declaring mem_mb. |
env | object | Max 128 keys | Pipeline-wide environment variables (string → string). |
jobs | array | Required (1..1024) | Array of job definitions. Matrix-expanded total cannot exceed 1024. |
Job Properties
| Field | Type | Default / Limits | Description |
|---|---|---|---|
id | string | Required | Unique identifier (ASCII alphanumeric, -, _, .). |
name | string | Equals id | Display label for logs, plans, and trace events. |
cwd | string | Repo root | Working directory relative to the manifest directory. |
cmd | string[] | 1..512 args | Direct-spawn executable and arguments (no shell). Provide cmd or shell. |
shell | string | Optional | Shell command string (sh -c / cmd /c). Use only when shell features are required. |
toolchain_cmd | string[] | Optional | Version probe argv (e.g. ["cc", "--version"]) hashed into the job's CAS key. |
needs | string[] | Max 64 | Upstream job IDs that must succeed first. Referencing a matrix parent depends on all expanded variants. |
inputs | string[] | Max 128 | File paths or globs (*, ?, **). Prefix with ! to exclude paths. |
critical_inputs | string[] | Max 128 | High-priority inputs always verified strictly, even under verify_inputs: "sample". |
outputs | string[] | Max 64 | Files or directories stored in CAS on success and restored on cache hit. |
scan_deps | string[] | Max 128 | Entry-point files for FastCi's SIMD transitive dependency scanner. Alias: scan_c_deps. |
lang | enum | "auto" | auto, c, asm, rust, go, zig, python, js, java, csharp, swift. |
include_dirs | string[] | Max 64 | Search roots for scan_deps. Alias: search_dirs. |
verify_inputs | enum | Inherited | Per-job override: "fast" | "sample" | "strict". |
env | object | Max 128 keys | Job-level env overrides (merged over pipeline env). |
cpu_slots | integer | 1 | Worker slots reserved while this job executes. |
mem_mb | integer | 0 | Estimated RAM footprint in MiB for memory-aware scheduling. Alias: ram_mb. |
retries | integer | 0 (0..10) | Automatic retry count on non-zero exit code. |
timeout_ms | integer | 0 (none) | Hard per-job timeout in milliseconds. |
weight | integer | 10 (1..1000000) | Critical-path priority weight. Higher values run earlier. |
cache | boolean | true | Enable/disable CAS lookup and storage for this job. |
allow_failure | boolean | false | Allow pipeline to continue if this job fails. |
matrix | object | Max 256 combos | Cartesian 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
*matches any sequence within a single path segment (never crosses/).**matches zero or more directory levels (e.g.src/**/*.c).?matches any single non-separator character.!patternremoves matching files from the expanded input set (e.g.["src/**/*.c", "!src/**/bench_*.c"]).- Always use forward slashes
/in manifests — FastCi normalizes paths across Windows and POSIX automatically.
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
}
]
}