arks-oid 0.1.2

Git object ID (OID) newtype: parse, format, compare
Documentation

arks for Git

arks — Agent Revision Kinetic System — is a Git-compatible revision CLI and infra, written in Rust, for environments where many concurrent sessions (agents, orchestrators, humans) hit the same repositories.

When tens to hundreds of sessions commit, check out, merge, or move worktrees at once, stock Git’s revision contention becomes the bottleneck. arks keeps the same .git on disk and a symmetric CLI, so you can adopt with alias git=arks (or alias gh=arks) and keep muscle memory while the engine addresses diverse contention scenarios.

Compatibility with documented Git formats and commands comes first. Clean-room timings exist as evidence (Performance); this README does not market a blanket “faster than Git” slogan.

Runtime vs verification: End users run native arks. Docker clean-room compose is for maintainer verification of compatibility and timing claims — not the product install path.

Honesty: Design intent and CLI shells are not automatic Claimed. Surfaces marked Partial / Missing fail closed or document stubs — this README does not invent PASS.

Why arks

Pain Response
Multi-agent / multi-session orchestration piles onto one revision system Native Rust engine + product leases and optional high-concurrency shapes aimed at that load
Switching tools breaks habits Git-symmetric CLI; forge client leaves flattened beside porcelain; adopt via alias or PATH shim
Parallel proprietary stores break Git tooling Same filesystem .git in Git-compatible mode — stock Git remains a peer

arks is not an agent framework. It is the revision layer those environments share. Optional arks agent … is an explicit extension on the same binary — not the core product story.

More narrative: docs/ — especially Concurrent sessions, Completeness, and Overview.

Install / build

Requirements: a recent Rust toolchain (edition 2024 / rust-version 1.85+).

git clone https://github.com/modootoday/arks.git
cd arks
cargo build -p arks --release

The published binary is arks only (debug: target/debug/arks, release: target/release/arks). Put it on your PATH, or invoke it with cargo run -p arks -- ….

cargo run -p arks -- --help

There is no separate arks-hub / arks-daemon / arks-agent product binary.

Quick start

arks init my-repo
cd my-repo
echo "hello" > README.md
arks add README.md
arks commit -m "Initial commit"
arks status
arks log

Remote day-to-day (smart HTTP):

arks clone https://example.com/repo.git
arks fetch
arks pull
arks push

Same repository as Git: you can inspect the tree with stock git anytime — arks does not invent a separate object store for Git-compatible mode.

Personalities (git | gh | arks)

One binary; three muscle memories (design / Partial — not Claimed drop-in proof):

How you invoke Personality Expectation
alias git=arks / basename git / ARKS_PERSONALITY=git git Peer-pure Git argv, stdout, exit codes
alias gh=arks / basename gh / ARKS_PERSONALITY=gh gh Peer-pure forge-client argv, stdout, exit codes
Bare arks (default) arks Git-first merged surface; flat forge leaves (pr, issue, …); unified overlap where designed

CI that today calls git / gh should prefer the peer personalities. Details: CLI personality.

Alias sketch

alias git=arks
# optional forge peer:
alias gh=arks

Honesty:

  • Treat aliases as the adoption path for claimed commands — not as a promise that every Git/gh subcommand and flag is covered today.
  • Unimplemented or out-of-scope commands exit non-zero and must not mutate the repository.
  • Shell aliases do not apply inside many scripts; use a PATH shim named git / gh when you need non-interactive drop-in behavior.

More detail: docs/alias-git-arks.md.

Self-host (arks serve)

Product hosting umbrella — one process intended for Git HTTP + SSH + forge API (independent self-hosted forge). arks serve ≠ forge client. Flat client leaves (arks pr, arks issue, …) talk to a forge base URL; they do not start the host.

# Narrow Claimed HTTP git wire path (opt out of SSH/forge modules):
arks serve --no-ssh --no-forge /path/to/repos

# Product default shape (HTTP+SSH+forge) — B1/B2/B9 + IW-FORGE-SERVE hosting e2e Claimed:
# arks serve /path/to/repos
Surface Role Tip honesty
arks serve Host umbrella (--no-http / --no-ssh / --no-forge) HTTP git wire Claimed where evidenced; SSH B1/B2 Claimed; TLS B9 Claimed; forge-in-serve hosting e2e Claimed (20261111011425-self-host-forge-e2e); push rulesets enforced (3-OS CI)
arks serve config … Server config store B7 Claimed (HTTP+SSH+forge) zero-downtime rebind; Windows file-mtime reload Claimed by CI (≠ hub)
arks serve ssh-smoke Local SSH banner smoke Claimed (diagnostic) (smoke ≠ B1/B2 Claimed e2e)
arks daemon git:// peer (git-daemon symmetry) 37/37 Parity + 2 arks-only, Missing=0 in Docker clean-room (git 2.39.5; Windows behaviour CI-tested); archive B5 Claimed; B5+ Claimed syslog facility/priority
Flat arks pr / issue / auth / … Forge client 171/171 v1 rows Claimed, Missing=0, Deferred=0 (Docker re-receipt + 6/12-agent local forge multi-agent receipt); B3 HTTPS remote Claimed; OUT groups refuse exit 2; never spawns gh
Personality git/gh Drop-in + argv/corpus symmetry 1,852/1,852 pin-2.39.5 options accepted, 4,446/4,549 flag-corpus lines SAME (77 post-pin + 26 design, 0 timing/open/unreasoned, 20261128052500-final-pre-release-receipt); CLI survey 128 Verified / 36 reasoned Partial; drop-in + expand + named exit rows Claimed (20261111020515-personality-expand, 20261111025151-personality-exit-tables)
arks agent … Optional review / CEV extension B4 Claimed fixture e2e; plain-HTTP smokes Claimed (diagnostic); HTTPS TLS client + live vendor smoke (host-advisory); not git-alias DoD

Ports: prefer 22 / 80 / 443 / 9418; label 2222 / 8080 as demo/alternate — Ports, Self-host.

Symmetry DoD pillars

Public clean-room Definition of Done is three peer-symmetry pillars (plus adjacent self-host e2e — not a fourth Claimed pillar):

Pillar Stock peer Product entry
1. CLI git arks <cmd> / personality git
2. Daemon git-daemon arks daemon
3. Forge client gh flat arks pr / issue / … (transitional arks hub …)

Completion milestone for this docs pass means: owning design SoTs + CLI shell are coherent, all three pillars pass pin pre-release symmetry (Missing=0, untracked=0), and honesty matches Spec residual rows (B1–B5 / B5+ / B7(HTTP+SSH+forge) / B9 Claimed; 171/171 hub v1 Claimed; 37/37 daemon Parity; 4,446/4,549 flag-corpus SAME with 0 unreasoned DIFFs) — while keeping non-goals and owner-policy holds explicit. See Completeness.

Product paths never spawn git or gh. Stock peers are oracles for clean-room only.

Common workflows

You want to… Try
Create a repo arks init
Stage / commit arks add, arks commit -m "…"
Inspect history arks status, arks log, arks show, arks diff
Branches arks branch, arks checkout / arks switch, arks merge
Remotes arks remote, arks fetch, arks pull, arks push, arks clone
Sign / verify (SSH) arks commit -S with gpg.format=ssh; arks verify-commit
Self-host (HTTP git) arks serve --no-ssh --no-forge <dir>
Forge client arks pr list, arks issue list, arks auth status

Fuller tables: docs/workflows.md. For a command list, run arks --help.

Concurrent sessions (honest bar)

arks ships product leases and a claimed high-concurrency shape (lease + batch-apply + worktree/ref-shard), plus shared-index N-way work under clean-room receipts. Public copy treats these as claimed / verified only where receipts exist — not as “all races fixed.”

Plain-language overview: docs/concurrent-sessions.md.

Performance (evidence, not slogans)

Clean-room Docker verification compared stock Git 2.39.5 to release arks on the journey allow-list. Prefer reading timings as parallelism / wall-clock evidence for contended workflows, not as empty speed marketing:

Bar Result Evidence
≤0.8× median wall-clock on all journeys 19/19 G19 remeasure c1b0b24 · historical M17
Aggressive ≤0.5× 19/19 sole Docker G19 (20261111032000-eng-hard-alias-hardlink-g19); prior U-ladder (20261111003444-u-ladder-partial-gap-close) and historical 8/8 at 79fc9bf archival PF5 19/19 · tip matrix · PF5 8/8 historical

Charts and honesty labels: docs/performance.md. Prefer ratios over absolute ms across receipts (seeds change). Host-only timings are advisory only.

Limits (what is not claimed)

Short and honest — see docs/limits.md and Git vs arks:

  • Not a GUI embed (gitk/git-gui handoff only), scalar product, agent orchestrator, or “WAN-safe by default” host.
  • The Git object store remains ordinary filesystem .git. CELIR was not adopted and is withdrawn from the Cargo graph; arks does not replace .git objects in Git-compatible mode.
  • Forge client leaves (171/171 v1 rows) and self-host forge-in-serve e2e are Claimed in clean-room receipts; GitHub-platform-only groups (such as Actions/Codespaces/Copilot) fail closed with exit 2.
  • In-process SSH under arks serve is B1/B2 Claimed (20261110235116-claimed-ssh); product TLS B9 Claimed; HTTP+SSH+forge rebind B7 Claimed. Ops SSHD + stdio pack remains valid.
  • Claimed (with receipts): pin-2.39.5 argv/flag-corpus symmetry (1,852/1,852 options, 4,446/4,549 SAME, 0 unreasoned DIFFs); --depth shallow; partial-clone filter subset (blob:none, tree:0); OpenPGP / X.509 / tag -s / verify-tag; credential helper / askpass / TTY / first-party OS wallets; smart HTTP server wire (G15 / G29–G32 / G36 Basic); residual B1/B2/B3/B4/B5/B5+/B7/B9 per arks-claimed-residual-gates.
  • Advisory / Impossible / blocked: absolute SHA-1 collision immunity Impossible (detect+refuse Claimed); full multi-device sync safety Impossible; live G8 latency SLO needs secrets + receipt (never invent PASS); crates.io timing (L9) owner policy; trimmed over-design (arks host-env product path, in-process LFS, CELIR).

Documentation

Human-facing site (GitHub Pages): docs/

Page Topic
Home Motive + product intro
Overview What arks is (and is not)
Completeness Completion milestone — what “done” means (honest Partial)
Getting started Native build and first commands
CLI personality git / gh / arks dispatch
Alias git → arks Drop-in adoption path
Workflows Everyday command map
Self-host arks serve self-hosted forge
Ports Normative 22/80/443/9418 vs demo 2222/8080
Forge client Flat arks pr / … (≠ host)
Daemon arks daemon ↔ git-daemon
Agent Optional arks agent … Partial
Concurrent sessions Contention motive and concurrency honesty
Git vs arks Honest feature comparison
Performance Clean-room git vs arks timings
Limits What is not claimed
Contribute Bugs, docs, maintainer pointers

Design specs, verification matrices, and agent routing live under .spec/, verify/, and AGENTS.md — they are for maintainers, not the default product read.

Contributing

Bug reports and pull requests are welcome on modootoday/arks. Keep product docs in English. See docs/contribute.md. Maintainers: start from AGENTS.md.

License and security

  • License: Apache-2.0 OR MIT (LICENSE, LICENSE-APACHE, LICENSE-MIT)
  • Vulnerability reports: SECURITY.md (private GitHub Security Advisories)