Repository navigation
Cross-platform runtime parity across Linux, macOS, and Windows, CLI ergonomics for pinning and external inputs, a typed Python SDK and PyPI binary wheels, and correctness, integrity, and durability hardening across the entire workspace.
- Cross-platform execution and
verirun-platform. The runner and scheduler execute natively on Linux, macOS, and Windows, with full CI gates across all three platforms. Process control, no-follow handle-relative path traversal, and atomicrename_replacefile replacement live behind safe APIs in the newverirun-platformcrate. On UnixProcessGroupsignals-piddirectly vialibc::killwithSIGKILLon timeout and on drop, matching Windows job objectJOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSEcleanup parity. Handle traversal mapsELOOP, FreeBSDEMLINK, and NetBSDEFTYPEuniformly toTraversalError::Link. - CLI
pin,unpin,run --pin, andrun --input.verirun pinverifies a manifest in full before recording its pin,verirun unpinremoves a pin unconditionally so damaged pins can always be cleared,verirun run --pinpins the produced manifest atomically, andverirun run --input <rel>=<file>validates and stages external host files into the store before scheduling (INV-LAT-4). - Artifact byte-length integrity (
VerifyError::ArtifactSizeMismatch, breaking). Output collection streams throughCas::put_stream_sizedsoArtifactRecord.bytescommits to the exact byte count hashed into the store rather than a separate metadata read.verirun verifyandverirun showcheck every verified blob's byte length againstArtifactRecord.bytesand reject tampered sizes with exit code2even when the Merkle root was recomputed. Scheduler cache lookup likewise verifies cached artifact byte lengths before accepting a cache hit. - Environment and timeout hardening. Run validation rejects
"TMPDIR"inTaskSpec.envalongsideLC_ALL,SOURCE_DATE_EPOCH, andTZso a declaredTMPDIRcannot enterexec_digestand be overwritten at spawn (INV-DAG-6,INV-RUN-1). Task supervision computes deadlines withInstant::checked_addso large schema-validtimeout_msvalues up toMAX_SAFE_INTEGERnever panic worker threads. - Pinned manifest verification in garbage collection.
gc::collectverifies canonical encoding andManifest::recompute_rooton every pinned manifest before planning a sweep, aborting withGcError::InvalidPinnedManifestif a pinned manifest's root or encoding is corrupt. - CLI
--jsonerror parity (INV-CLI-2). Malformed digest arguments onverify,show,diff,pin, andunpin, malformed--inputbindings, and invalidSIM_SEEDenvironment values emit structurederror_jsonon standard output whenever--jsonis passed. - Per-process temporary nonces and
create_newcache publication. Store temporary file names andby-execcache temporary files carry a per-process nonce minted once from the clock and open exclusively withFile::create_newso crash debris after PID reuse cannot collide or overwrite (temp_file_name_knownandtemp_file_name_streamtakenonceas a parameter, breaking). - Handle-relative output collection without a check-then-open window. Output collection opens each path component relative to held directory handles (
openatwithO_NOFOLLOWon Unix andNtCreateFilewith reparse inspection on Windows), closing audit finding F11 (INV-SBX-3). - Sandbox freshness and work-root locking. Each task sandbox is cleared before execution (
INV-SBX-6), andscheduler::runholdsrun.lockexclusively in the work root (RunError::WorkLocked, exit code3,INV-RUN-8). - Cache path validation (
INV-RUN-7). Storedby-execrecords are honoured only when their artifact paths match the task's declared outputs. - Verification streaming and access taxonomy (breaking). Manifest verification streams referenced blobs in bounded 64 KiB chunks (
INV-CAS-8) and distinguishes unreadable manifests and blobs from missing ones viaVerifyError::ManifestUnreadableandVerifyError::BlobUnreadable. - Stream capture and read resilience. Pipe read errors abort the run rather than finalizing a truncated stream (
StoreStep::ReadSource, breaking), and interruptedEINTRstore reads retry automatically. - Parser, encoder, and builder strictness (breaking). Canonical encoding enforces the 128-level depth cap (
CanonicalErrorKind::DepthLimitExceeded), parser duplicate-key detection switches to a membership set above 16 keys,ManifestandTaskRecordreject duplicate task ids and duplicate artifact paths (ManifestError::DuplicateTaskId,ManifestError::DuplicateArtifactPath), DAG validation rejects duplicate task inputs (DagError::DuplicateInput), andDigest::from_hexcounts and reports full UTF-8 characters accurately. - Store durability and stale lock recovery. Presence-hit and race-discard puts sync destination directories before reporting durability, and
gc::collectbreaks leftovergc.lockfiles older than 24 hours (INV-GC-6). - Public documentation, Python SDK, and release automation. Added
docs/README.md, light and dark SVG lockups, architecture and Merkle tamper-conviction diagrams, a1200x630social preview card, a real-outputdocs/media/money-shot.gifwalkthrough, a typed Python SDK and precompiledverirunPyPI wheels (pyproject.toml,python/verirun), and GitHub Actions OIDC release workflows for crates.io, PyPI, and five-platform GitHub Releases.