Concurrent sessions
Why arks exists: many concurrent sessions hitting one Git revision system at the same time.
What hurts
Multi-agent orchestration routinely opens tens to hundreds of sessions against shared repositories. Those sessions commit, merge, check out, rebase, and add or move worktrees simultaneously. Stock Git serializes heavily under that load, making revision contention the throughput bottleneck regardless of how fast the orchestrator is.
Session 1 ─┐ ┌─ Product leases & batch-apply
Session 2 ─┼─▶ Stock Git: lock contention │
... │ vs. ├─▶ Worktree / ref-shard mode
Session N ─┘ arks: coordinated writes ────┴─▶ Shared-index N-way support
│
▼
Standard .git on disk
arks is built for that revision layer. It is not an agent framework, scheduler, or IDE.
# Typical multi-session drop-in setup:
arks shim install
arks doctor
What arks does about it
Native Rust engine
Owns hot paths in-process so allocator and concurrency policy evolve without spawning git subprocesses.
Standard .git
Stays interchangeable with stock Git for verified workflows, keeping the ordinary filesystem .git object store.
Symmetric CLI + alias
Adopt without retraining every session on a new command name. See Alias git → arks.
Product leases
Default coordination surface for multi-session and agent-oriented writers.
High-concurrency shape
Optional selectable mode combining leases, batch-apply, and worktree/ref-sharding.
Shared-index N-way
Separate clean-room verified bar for shared-index contention, tracked independently from the lease shape.
Multi-agent local forge verification
Clean-room Docker soak runs with 6 and 12 concurrent agent accounts exercising issues, PRs, reviews, conflict resolution, releases, token isolation, and all 171 forge v1 commands (multi-agent receipt).
- Concurrent storage & lease durability: 32-thread concurrent
DurableLeaseStore::save, 32-thread identical-OID loose-object writes, 16-thread identical-OID LFSPUTs, and 256-concurrent cachedForgeStorereads with 16 interleaved writes all pass in Docker clean-room with zero errors, zero corruption, and zero leftover.tmpfiles (Round 1 receipt · Round 2 receipt). - 100-agent overload contention (6/6 stress suites PASS · 0 open findings): In a cgroup-capped Docker storm (
--cpus=1.5,--memory=512m),arkscoordinated worktrees + leases achieved 100.0% commit success (100/100,71.00 commits/s,0lock errors) versus 4.0% (4/100,12.47 commits/s,95lock errors) on a shared stock Git worktree, withgit fsck --full --strictOK across all 9 waves. Full charts, 10k-monorepo, endurance soak, and chaos receipts: Stress & resilience (final receipt).
| Run | Passed Scenarios | Failed Scenarios |
|---|---|---|
| 6 Concurrent Agents (2 soak rounds) | 10 | 0 |
| 12 Concurrent Agents (3 soak rounds) | 10 | 0 |
Honesty (no invented Verified)
Verified vs host-only
Verified high-concurrency, lease, and shared-index shapes cite clean-room Docker receipts in .spec/evidence/. Host-only runs are advisory.
Live forge journeys
Live forge functional journeys are claimed only with receipts. Harnesses that require secrets report an honest SKIP when secrets are absent.
Timing bars
All 19/19 measured clean-room journeys meet the ≤0.8× median wall-clock target, and the sole Docker hardlink run reaches 19/19 at ≤0.5×. Charts and receipts: Performance.
Index sidecar
Optional index sidecars may sit beside .git; the Git object store remains standard filesystem .git.
Maintainer ledgers
Detailed verification matrices and residual registers live under .spec/ and verify/ for maintainers. Scope exclusions: Limits.
Next
Stress & resilience Alias git → arks Completeness Getting started Performance