seamlock 0.3.3__py3-none-win_amd64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -0,0 +1,445 @@
1
+ Metadata-Version: 2.1
2
+ Name: seamlock
3
+ Version: 0.3.3
4
+ Summary: Contract-level coherence and smart merging for parallel AI coding agents
5
+ Home-page: https://github.com/lucas-rus/seamlock
6
+ Author: Lucas-Michael Rus-Gheorghiu
7
+ License: MIT OR Apache-2.0
8
+ Project-URL: Homepage, https://github.com/lucas-rus/seamlock
9
+ Project-URL: Repository, https://github.com/lucas-rus/seamlock
10
+ Project-URL: Issues, https://github.com/lucas-rus/seamlock/issues
11
+ Keywords: ai,agents,git,mcp,merge,parallel,coherence
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: License :: OSI Approved :: Apache Software License
17
+ Classifier: Topic :: Software Development :: Version Control :: Git
18
+ Description-Content-Type: text/markdown
19
+
20
+ <p align="center">
21
+ <img src="docs/assets/banner.png" alt="Seamlock — Contract-level coherence and smart merging for parallel AI coding agents" width="100%" />
22
+ </p>
23
+
24
+ <p align="center">
25
+ <a href="https://github.com/lucas-rus/seamlock/actions/workflows/ci.yml"><img src="https://github.com/lucas-rus/seamlock/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
26
+ <a href="https://github.com/lucas-rus/seamlock/releases/latest"><img src="https://img.shields.io/github/v/release/lucas-rus/seamlock?color=38bdf8&label=release" alt="Latest Release" /></a>
27
+ <a href="https://www.npmjs.com/package/seamlock"><img src="https://img.shields.io/npm/v/seamlock?color=38bdf8&label=npm" alt="npm" /></a>
28
+ <a href="https://pypi.org/project/seamlock/"><img src="https://img.shields.io/pypi/v/seamlock?color=34d399&label=PyPI" alt="PyPI" /></a>
29
+ <a href="https://crates.io/crates/seamlock-cli"><img src="https://img.shields.io/crates/v/seamlock-cli?color=f59e0b&label=crates.io" alt="crates.io" /></a>
30
+ <a href="#license"><img src="https://img.shields.io/badge/license-MIT%20%7C%20Apache--2.0-818cf8.svg" alt="License" /></a>
31
+ </p>
32
+
33
+ <p align="center">
34
+ <a href="#quick-start">Quick Start</a> ·
35
+ <a href="#why-seamlock">Why Seamlock</a> ·
36
+ <a href="#benchmarks">Benchmarks</a> ·
37
+ <a href="#mcp-integration">MCP Server</a> ·
38
+ <a href="#cli-reference">CLI</a> ·
39
+ <a href="#architecture">Architecture</a> ·
40
+ <a href="#comparison">Comparison</a> ·
41
+ <a href="CHANGELOG.md">Changelog</a>
42
+ </p>
43
+
44
+ ---
45
+
46
+ **Seamlock** is a local Rust orchestration engine and [MCP](https://modelcontextprotocol.io) server for running multiple AI coding agents (**Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, Gemini CLI, VS Code / Copilot, Antigravity, or any MCP client**) **in parallel on the same repository** without merge conflicts or silent cross-file breakage.
47
+
48
+ Instead of locking whole files or relying on a slow post-hoc merge agent, Seamlock tracks **symbol contracts** (signatures, types, exports, schemas, HTTP routes) and **live edit regions** across git worktrees, sending surgical notices only to affected agents and verifying every merge before it lands.
49
+
50
+ ---
51
+
52
+ ## Quick Start
53
+
54
+ Install Seamlock and auto-connect it to your coding agents (macOS, Linux, and Windows):
55
+
56
+ ```bash
57
+ # Homebrew (macOS & Linux)
58
+ brew install lucas-rus/tap/seamlock && seamlock setup
59
+
60
+ # npm / npx (macOS, Linux, Windows)
61
+ npm install -g seamlock && seamlock setup
62
+
63
+ # PyPI (uvx / pipx — macOS, Linux, Windows)
64
+ pipx install seamlock && seamlock setup
65
+
66
+ # crates.io (prebuilt via cargo-binstall, or cargo install seamlock-cli)
67
+ cargo binstall seamlock-cli && seamlock setup
68
+
69
+ # Shell installer (macOS / Linux) or PowerShell (Windows)
70
+ curl -fsSL https://raw.githubusercontent.com/lucas-rus/seamlock/main/install.sh | sh -s -- --setup
71
+ # irm https://raw.githubusercontent.com/lucas-rus/seamlock/main/install.ps1 | iex
72
+ ```
73
+
74
+ *(From source with Rust >= 1.90: `cargo install seamlock-cli && seamlock setup`.)*
75
+
76
+ Run a parallel team on any repository:
77
+
78
+ ```bash
79
+ # 1. Inspect existing worktrees or plan parallel ticket clusters
80
+ seamlock worktrees --base main
81
+ seamlock plan --rev HEAD
82
+
83
+ # 2. Launch coordinated parallel agents with live contract + region coherence
84
+ seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test"
85
+
86
+ # 3. Watch live coordination in another terminal
87
+ seamlock watch .seamlock/runs/
88
+ ```
89
+
90
+ ---
91
+
92
+ ## Why Seamlock
93
+
94
+ Git worktrees isolate parallel agents from overwriting each other's files, but they do not prevent agents from **breaking each other's code**:
95
+
96
+ - 28% of AI-agent pull requests on GitHub hit merge conflicts ([AgenticFlict](https://arxiv.org/abs/2604.03551)).
97
+ - Two cooperating agents succeed ~30% less often than one agent doing both tasks ([CooperBench](https://arxiv.org/abs/2601.13295)).
98
+ - The hardest bugs are invisible to git: patches that ["pass alone but fail together"](https://arxiv.org/abs/2609.25396).
99
+
100
+ ```python
101
+ # notify/email.py (agent A: rate-limit e-mails) # auth/reset.py (agent B: password reset)
102
+ -def send_email(to, body): +def request_reset(user):
103
+ +def send_email(to, body, *, user_id): + token = tokens.issue(user)
104
+ ... + send_email(user.email, reset_msg(token))
105
+ ```
106
+
107
+ Both branches touch different files, merge cleanly in git, and pass their own tests—then crash at runtime with `TypeError: send_email() missing 1 required keyword-only argument: 'user_id'`. Meanwhile, a third agent rewriting only the *body* of another function in `notify/email.py` would be blocked unnecessarily by a file lock.
108
+
109
+ ### How It Works
110
+
111
+ Seamlock treats each agent's worktree like a CPU cache and each symbol like a cache line:
112
+
113
+ 1. **Inferred footprints.** Hooks and worktree diffs map what each agent actually reads, writes, and calls onto a live symbol graph—no manual file claims required.
114
+ 2. **Contract vs. body.** Every symbol is split into its public contract (signature, type, schema, route) and its body. Body edits never block anyone. Contract edits are classified as **compatible** (informational notice) or **breaking** (short lease + targeted notice).
115
+ 3. **Live region coherence and finish gate.** Overlapping edits in the same file are resolved live—pure two-sided insertions via AST-verified union, genuine collisions via region ownership and hand-offs. An agent cannot finish while it depends on a stale contract or unresolved conflict.
116
+ 4. **Speculative integration and verification.** Branches are merged in finish order, checked with Tier-2 type checkers (`tsc`, `pyright`, `cargo check`, `go vet`) and your test command, with $O(\log k)$ bisection on regressions and an auditable Merge-Readiness Pack (`mrp.md` / `mrp.json`).
117
+
118
+ ### Capabilities
119
+
120
+ <table>
121
+ <tr>
122
+ <td width="50%">
123
+ <strong>Contract-Level Coherence</strong><br/>
124
+ Separates symbol <em>contracts</em> from <em>bodies</em>. Body edits never block; breaking contract edits deliver exact before/after signatures and affected call sites only to impacted agents.
125
+ </td>
126
+ <td width="50%">
127
+ <strong>Region Coherence &amp; Verified Union</strong><br/>
128
+ Detects overlapping edits live, combines pure two-sided insertions with patience/diff3 + AST verification, and blocks duplicate symbol definitions before merge.
129
+ </td>
130
+ </tr>
131
+ <tr>
132
+ <td width="50%">
133
+ <strong>Polyglot &amp; Full-Stack Contracts</strong><br/>
134
+ Python, TypeScript/JS (incl. <code>@/</code> aliases), Rust, Go, C/C++, SQL/Prisma/Protobuf/OpenAPI schemas, and cross-language HTTP routes (FastAPI/Flask/Express/Next.js ↔ <code>fetch</code>/<code>axios</code>).
135
+ </td>
136
+ <td width="50%">
137
+ <strong>12-Tool MCP Server &amp; One-Line Setup</strong><br/>
138
+ Connects to OpenCode, Claude Code, Cursor, and Antigravity via <code>seamlock setup</code>. Exposes planning, symbol summaries, worktree inspection, smart merge, and team orchestration.
139
+ </td>
140
+ </tr>
141
+ <tr>
142
+ <td width="50%">
143
+ <strong>Merge-Readiness Packs &amp; Tier-2 Checks</strong><br/>
144
+ Generates <code>mrp.md</code> / <code>mrp.json</code> reports, runs <code>tsc</code>/<code>pyright</code>/<code>cargo check</code>/<code>go vet</code> via <code>--type-check</code>, and bisects test regressions in <em>O</em>(log <em>k</em>).
145
+ </td>
146
+ <td width="50%">
147
+ <strong>Formally Verified Protocol</strong><br/>
148
+ Bounded exhaustive BFS model checking proves Lease Exclusivity, Finish-Gate Soundness, Duplicate-Symbol Safety, and Deadlock-Freedom across reachable agent interleavings.
149
+ </td>
150
+ </tr>
151
+ </table>
152
+
153
+ ---
154
+
155
+ ## Benchmarks
156
+
157
+ <p align="center">
158
+ <img src="docs/assets/benchmarks.png" alt="Seamlock v0.3.2 vs AI Merge Integrator across 4 multi-agent suites" width="100%" />
159
+ </p>
160
+
161
+ Evaluated in [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench). On 12-agent CommonMark (652 official spec examples), **uncoordinated parallel agents (`parallel-off`) collapse to 199/652** (~9 merge conflicts, ~302 integration-loss regressions), while a **single sequential agent takes 65.1 min** (`3.1×` slower than Seamlock, 651.2/652). Rather than comparing against sequential, the table below benchmarks Seamlock head-to-head against the strongest baseline: **`parallel-integrator`** (the same parallel agents in isolated worktrees, followed by an extra AI Integrator agent that resolves all merge conflicts and fixes regressions).
162
+
163
+ ### Current Release (`v0.3.2`, DeepSeek V4.1 Flash + Pre-Registered Baselines)
164
+
165
+ All DeepSeek runs use `opencode-go/deepseek-v4.1-flash` with default Seamlock (`--mode enforce --regions --trim-outputs`) and list-price API cost ([protocol](https://github.com/lucas-rus/seamlock-bench/blob/main/PROTOCOL.md)). Across every suite, Seamlock achieved **0 merge conflicts** where the integrator had to resolve 1–10 conflicts per run:
166
+
167
+ | Benchmark Suite | Condition | Tests Passed | Conflicts | Wall Time | Total Tokens | List Cost |
168
+ |---|---|---:|---:|---:|---:|---:|
169
+ | **12-agent Python CommonMark** (652 official spec examples) | **Seamlock v0.3.2** | **652/652** | **0** | **20.0 min** | **34.0M** | **$0.99** |
170
+ | | `parallel-integrator` (n=4) | 652/652 | ~9 resolved | 31.7 min | 43.8M | $1.15 |
171
+ | | `sequential` (1 agent, `hy4` n=5) | 651.2/652 | 0 | 65.1 min *(3.1× slower)* | 34.0M | — |
172
+ | | `parallel-off` (uncoordinated, `hy4` n=5) | 199/652 *(broken)* | ~9 unresolved | 13.7 min | 48.0M | — |
173
+ | **6-agent Polyglot Full-Stack** (SQL + Python + TS `@/`, 30 live E2E) | **Seamlock v0.3.1** (n=2) | **30/30** | **0** | **8.8 min** | **7.7M** | $0.40 |
174
+ | | `parallel-integrator` (n=3) | 30/30 | 5–6 resolved | 13.8 min | 8.2M | **$0.33** |
175
+ | **5-agent Product Sprint** (Next.js + Postgres app) | **Seamlock** (n=2) | Matched | **0** | **16.7 min** | **31.5M** | **$0.69** |
176
+ | | `parallel-integrator` (n=3) | Matched | 1–3 resolved | 19.1 min | 33.6M | $0.76 |
177
+ | **6-agent TypeScript Dispatch App** (48 integration tests) | **Seamlock** (n=2) | **48/48** | **0** | **3.7 min** | **2.1M** | **$0.16** |
178
+ | | `parallel-integrator` (n=2) | 48/48 | 2–3 resolved | 6.8 min | 4.0M | $0.21 |
179
+
180
+ On 12-agent CommonMark, `v0.3.1` is **37% faster**, uses **22% fewer tokens**, and costs **14% less** than an AI merge integrator. On the 6-agent polyglot full-stack suite, `v0.3.1` cuts wall time by **34%** and total tokens by **31%** compared to `v0.3.0` (`8.8 min` vs `13.3 min`, `7.7M` vs `11.1M`), running faster and using fewer total tokens than the integrator.
181
+
182
+ ### Release & Benchmark History
183
+
184
+ <details>
185
+ <summary><strong>Version-by-version progression (v0.1 → v0.3.1)</strong></summary>
186
+
187
+ Each milestone was validated empirically on [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench) before shipping as default:
188
+
189
+ | Release | Key Changes | CommonMark (12 agents) | Polyglot Full-Stack (6 agents) |
190
+ |---|---|---|---|
191
+ | **v0.1.x** | Initial contract coherence, peer merge, region coherence, 12-tool MCP server, 6 language front-ends + schemas + HTTP routes. | `652/652`, `0` conflicts, `20.8 min` (`hy4-flash-free`, n=5, pre-lean gate) | — |
192
+ | **v0.2.0 – v0.2.4** | Lean finish gate by default (`--no-lean` to opt out), `--trim-outputs` (8,000-char head/tail), finish-order integration, silent waits for OpenCode, base-failure filtering, process-group check timeouts. | `652/652`, `0` conflicts, `20.6 min`, `61.2M` tok, `$0.41` (`hy4`, n=3) · `20.6 min`, `34.6M` tok, `$1.00` (DeepSeek) | — |
193
+ | **v0.3.0** | Renamed from Concord to Seamlock; added public polyglot full-stack benchmark (`projects/fullstack`, SQL + Python + TS `@/`, 30 live E2E tests). | `652/652`, `0` conflicts, `22.3 min`, `39.8M` tok, `$1.09` (DeepSeek) | `30/30`, `0` conflicts, `13.3 min`, `11.1M` tok, `$0.44` (n=3; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/ds-fullstack-030/report.md)) |
194
+ | **v0.3.1** *(current)* | Fixed OpenCode 2.x `shell`/`execute` hook mapping, blocked cross-worktree/log snooping, compact region-conflict notices (rules once in system note), fixed `silent_wait` livelock on rank-broken wait cycles. | `652/652`, `0` conflicts, **`20.0 min`**, **`34.0M` tok**, **`$0.99`** (DeepSeek) | `30/30`, `0` conflicts, **`8.8 min`**, **`7.7M` tok**, **`$0.40`** (n=2) |
195
+
196
+ </details>
197
+
198
+ <details>
199
+ <summary><strong>Pre-registered statistical studies (hy4-flash-free, n = 3 and n = 5)</strong></summary>
200
+
201
+ All pre-registered protocols, raw logs, bootstrap CIs, and Mann–Whitney U / Cliff's δ tests live in [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench).
202
+
203
+ **1. Lean Seamlock vs. AI Integrator (`opencode-go/hy4-flash-free`, n = 3 interleaved; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/hy4-eff3/report.md)):**
204
+
205
+ | Condition | Spec examples passed | Merge conflicts | Wall-clock time | Coordination tokens | Total tokens | Cost per run |
206
+ |---|---:|---|---:|---:|---:|---:|
207
+ | `parallel-integrator` (12 agents + integrator) | 652 in every run | 8.7 ± 1.5 resolved | 35.5 ± 9.5 min | 27.6 ± 7.4M | 68.8 ± 14.6M | $0.48 ± 0.07 |
208
+ | **Seamlock (`--regions --trim-outputs`)** | **652 in every run** | **0** | **20.6 ± 6.3 min** | **17.5 ± 2.5M** | **61.2 ± 1.7M** | **$0.41 ± 0.01** |
209
+
210
+ Seamlock was faster, used fewer coordination tokens, and cost less in all nine pairings (Cliff's δ = −1.00, p = 0.10, the minimum possible with n = 3).
211
+
212
+ **2. Main baseline study vs. Sequential & Uncoordinated Parallel (`opencode-go/hy4-flash-free`, n = 5 interleaved, pre-lean gate; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/hy4m/report/report.md)):**
213
+
214
+ | Condition | n | Spec examples (of 652) | Integration loss | Merge conflicts (of 12) | Wall-clock time |
215
+ |---|---:|---:|---:|---|---:|
216
+ | `sequential` (1 agent, ticket by ticket) | 5 | 651.2 ± 0.8 (650–652) | 0 | 0 | 65.1 ± 5.9 min (1.0×) |
217
+ | `parallel-off` (12 agents, uncoordinated) | 5 | 199.0 ± 30.1 (161–236) | 301.8 ± 45.8 | 9.0 ± 1.4 | 13.7 ± 1.9 min |
218
+ | `parallel-integrator` (12 agents + integrator) | 5 | 652 in every run | 0 | 9.4 ± 1.1 resolved | 34.2 ± 4.8 min (1.9×) |
219
+ | Seamlock, peer merge (v0.1 build) | 3 | 652 in every run | 0 | 0 | 27.1 ± 3.5 min (2.4×) |
220
+ | **Seamlock, region coherence (v0.1 pre-lean)** | **5** | **652 in every run** | **0** | **0** | **20.8 ± 1.9 min (3.1×)** |
221
+
222
+ Pre-registered tests (Mann–Whitney U, Holm-corrected): region coherence vs. `parallel-off` on examples passed (H1) and integration loss (H2), and vs. `sequential` on wall time (H3) all reached Cliff's δ = ±1.00, p = 0.03.
223
+
224
+ </details>
225
+
226
+ <details>
227
+ <summary><strong>Static evaluation: CooperBench 560 gold patch pairs (RQ1)</strong></summary>
228
+
229
+ On all **560** Python feature pairs of [CooperBench](https://github.com/cooperbench/CooperBench), Seamlock's textual merge results agree with CooperBench's own gold conflict report on **560/560** pairs:
230
+
231
+ - **24%** of pairs share files but touch disjoint symbols, so a file lock would serialize them needlessly.
232
+ - **12%** are contract-coupled, and only **1%** have call sites that violate the updated contract.
233
+ - Interference between *gold* human patches is rare (0 of 48 evaluable jinja pairs fail together); live coordination shows its impact on *agent* patches (see the live suites above).
234
+
235
+ Details: [eval/rq1/results.md](eval/rq1/results.md).
236
+
237
+ </details>
238
+
239
+ ---
240
+
241
+ ## MCP Integration
242
+
243
+ Seamlock runs locally next to your repository as a 12-tool [MCP](https://modelcontextprotocol.io) server.
244
+
245
+ ### Connect Your Client
246
+
247
+ - **Automatic (auto-detects OpenCode, Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, VS Code / Copilot, Antigravity):**
248
+ ```bash
249
+ seamlock setup
250
+ ```
251
+ - **Any other MCP client (Cline, Roo Code, Zed, Continue, etc.):**
252
+ Add a standard stdio MCP server running `seamlock mcp` (or `npx -y seamlock mcp`).
253
+ - **OpenAI Codex CLI (`~/.codex/config.toml`):**
254
+ ```bash
255
+ seamlock setup --client codex
256
+ ```
257
+ - **OpenCode (CLI):**
258
+ ```bash
259
+ opencode mcp add --global seamlock -- seamlock mcp --agent-cli opencode
260
+ ```
261
+ - **Claude Code (plugin with MCP server + `seamlock-team` skill):**
262
+ ```text
263
+ /plugin marketplace add lucas-rus/seamlock
264
+ /plugin install seamlock@lucas-rus-seamlock
265
+ ```
266
+ - **Antigravity (`~/.gemini/config/mcp_config.json`, then restart):**
267
+ ```bash
268
+ seamlock setup --client antigravity
269
+ ```
270
+ All planning, inspection, and merge tools run directly inside Antigravity. `seamlock_run` launches parallel workers via OpenCode or Claude Code (`--agent-cli opencode|claude`).
271
+
272
+ ### MCP Tools (12)
273
+
274
+ | Category | Tool | Purpose |
275
+ |---|---|---|
276
+ | **Planning & Inspection** | `seamlock_plan` | Partition the repository symbol graph into shared contract hubs and producer-first ticket clusters |
277
+ | | `seamlock_symbols` | List symbol contracts and line spans without bodies (~10× fewer tokens than reading whole files) |
278
+ | | `seamlock_diff_contracts` | Contract-level diff between revisions or working tree, with impacted callers |
279
+ | | `seamlock_worktrees` | Zero-mutation live check across all active `git worktree` checkouts |
280
+ | | `seamlock_analyze` | Check concurrent branches for cross-file contract breaks, duplicate symbols, and overlaps |
281
+ | **Merging & Protocol** | `seamlock_smart_merge` | Producer-first merge with AST-verified insertion union, call conformance, `--type-check`, and $O(\log k)$ bisection |
282
+ | | `seamlock_negotiate` | Propose a signature adjustment to a symbol's live owner |
283
+ | | `seamlock_ack` | Acknowledge a peer's contract change |
284
+ | **Team Orchestration** | `seamlock_run` | Launch a coordinated parallel agent run (`tasks.json` or multi-wave `--milestones`) |
285
+ | | `seamlock_status` | Poll live agent progress, holds, and coordination events |
286
+ | | `seamlock_result` | Fetch final summary and SASE Merge-Readiness Pack (`mrp.md` / `mrp.json`) |
287
+ | | `seamlock_cancel` | Stop an active run and clean up worktrees |
288
+
289
+ ---
290
+
291
+ ## CLI Reference
292
+
293
+ Requires Rust >= 1.90 (if building from source) and git >= 2.38 (2.44+ recommended for `git merge-file --diff-algorithm`; Seamlock warns and falls back cleanly on older git).
294
+
295
+ ```bash
296
+ seamlock setup # auto-connect OpenCode, Claude Code, Cursor, Antigravity
297
+ seamlock plan --rev HEAD # identify shared hubs & producer-first parallel clusters
298
+ seamlock symbols src/ # symbol contracts & spans (Py, TS/JS, Rust, Go, C/C++, Schemas)
299
+ seamlock diff old.py new.py # contract vs. body changes between two versions
300
+ seamlock worktrees --base main # inspect all active git worktrees (incl. uncommitted edits)
301
+ seamlock analyze --base main b1 b2 --json # check branches for silent contract breaks (for CI & scripts)
302
+ seamlock typecheck --repo . # auto-detect & run Tier-2 checker (tsc, pyright/ty, cargo, go vet)
303
+ seamlock merge --base main b1 b2 --type-check # contract-ordered smart merge + verified union + type check
304
+ seamlock mrp .seamlock/runs/<run-id> # render SASE Merge-Readiness Pack (markdown or --json)
305
+ seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test"
306
+ seamlock run --milestones waves.json --mode enforce --regions --test-cmd "npm test"
307
+ ```
308
+
309
+ > [!NOTE]
310
+ > **Zero-config acceptance gating:** `tasks.json` only needs `[{"name": "...", "prompt": "..."}]`. When per-ticket `check` commands are omitted, Seamlock automatically uses `--test-cmd` for finish-gate verification, regression checks, and $O(\log k)$ post-merge failure bisection.
311
+
312
+ ### Try the Built-In Demo
313
+
314
+ ```bash
315
+ git clone https://github.com/lucas-rus/seamlock && cd seamlock
316
+ cargo build --release
317
+
318
+ examples/running-example/setup.sh /tmp/seamlock-demo
319
+ ./target/release/seamlock analyze --repo /tmp/seamlock-demo --base main agent-a agent-b agent-c --notices
320
+ ```
321
+
322
+ <details>
323
+ <summary><strong>View demo output (cross-file breaking parameter detection)</strong></summary>
324
+
325
+ ```text
326
+ Findings
327
+ BREAKING agent-a -> agent-b: notify.email.send_email (no shared files: invisible to textual merge and file locks)
328
+ now: def send_email(to, body, *, user_id)
329
+ what: new required parameter `user_id`
330
+ auth/reset.py:11 request_reset: send_email(user.email, reset_msg(token))
331
+ FILE agent-a & agent-c: notify/email.py disjoint symbols (a file lock would serialise this needlessly)
332
+
333
+ Textual merge (git merge-tree)
334
+ agent-a & agent-b: clean
335
+ agent-a & agent-c: clean
336
+ agent-b & agent-c: clean
337
+
338
+ Protocol simulation (notices each agent would receive)
339
+ -> to agent-b
340
+ [seamlock] BREAKING contract change: notify.email.send_email v0 -> v1 (by agent-a)
341
+ before: def send_email(to, body)
342
+ after : def send_email(to, body, *, user_id)
343
+ what : new required parameter `user_id`
344
+ your code that depends on it:
345
+ auth/reset.py:11 request_reset: send_email(user.email, reset_msg(token))
346
+ Finish gates:
347
+ agent-a: open
348
+ agent-b: BLOCKED (1 unresolved)
349
+ agent-c: open
350
+ ```
351
+
352
+ </details>
353
+
354
+ ### Watch a Team Live
355
+
356
+ <p align="center">
357
+ <img src="docs/assets/seamlock-watch-demo.gif" alt="seamlock watch live terminal dashboard coordinating 12 parallel agents" width="100%" />
358
+ </p>
359
+
360
+ ```bash
361
+ seamlock watch .seamlock/runs/ # follow the latest run in a live terminal dashboard
362
+ seamlock watch .seamlock/runs/ --web # open live coordination graph in the browser
363
+ seamlock watch .seamlock/runs/ --once # print one snapshot (useful for logs)
364
+ ```
365
+
366
+ ```text
367
+ seamlock 1795518603-enforce-463d82 1/12 finished 03:07 · running
368
+
369
+ agent state edits notices blocks hand-off combined merges
370
+ code-spans finished 4 0 0 0 0 0
371
+ emphasis working 8 0 0 0 0 0
372
+ images-autolinks working 2 0 0 0 1 0
373
+ lists working 5 0 0 0 1 0
374
+ ...
375
+
376
+ coordination
377
+ 02:26 region raw-html-breaks yields src/cmark/inlines.py to code-spans
378
+ 02:36 combine lists + headings add at the same place in src/cmark/blocks.py
379
+ 02:59 done code-spans finished
380
+ ```
381
+
382
+ ### GitHub Cross-PR CI Action
383
+
384
+ Drop [`action.yml`](action.yml) into any GitHub Actions workflow to cross-check concurrently open pull requests for silent contract breaks:
385
+
386
+ ```yaml
387
+ - uses: lucas-rus/seamlock@main
388
+ with:
389
+ base: main
390
+ ```
391
+
392
+ ---
393
+
394
+ ## Architecture
395
+
396
+ ```mermaid
397
+ flowchart LR
398
+ subgraph Agents
399
+ A1["Agent 1 (worktree w1)"]
400
+ A2["Agent 2 (worktree w2)"]
401
+ An["Agent n (worktree wn)"]
402
+ end
403
+ subgraph Coherence layer
404
+ FT["Footprint tracker"]
405
+ SG["Symbol graph (contracts / bodies / uses)"]
406
+ CD["Coherence directory (leases, versions, notices)"]
407
+ end
408
+ SI["Speculative integrator (merge-tree, type-check, tests)"]
409
+ IQ["Integration queue"]
410
+ A1 & A2 & An -- "hook events, diffs" --> FT --> SG --> CD
411
+ CD -. "notices, finish gate" .-> A1 & A2 & An
412
+ FT --> SI --> CD
413
+ CD --> IQ --> main[("main")]
414
+ ```
415
+
416
+ | Crate | Role | Coverage |
417
+ |---|---|---|
418
+ | [`seamlock-core`](crates/seamlock-core) | Symbols, contract/body change classification, coherence protocol (leases, duplicate-symbol guard, negotiation, finish gate), pairwise analysis, exhaustive BFS model checker | Complete |
419
+ | [`seamlock-lang`](crates/seamlock-lang) | Tree-sitter and schema front-ends: normalized contracts, body digests, imports, reference resolution, HTTP route linking, affected-test graph | Python, TS/JS, Rust, Go, C/C++, Schemas |
420
+ | [`seamlock-git`](crates/seamlock-git) | Git plumbing: tree reading, in-memory `merge-tree`, patience/diff3 verified insertion-union, worktree snapshots and listing | Complete |
421
+ | [`seamlock-cli`](crates/seamlock-cli) | `seamlock` binary: `setup`, `plan`, `symbols`, `diff`, `analyze`, `worktrees`, `typecheck`, `merge`, `mrp`, `run`, `watch`, `mcp` (12 MCP tools + authenticated TCP daemon) | Complete |
422
+
423
+ **Supported languages:** Python (`.py`, `.pyi`), TypeScript/JavaScript (`.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs`, including `@/...` and `~/...` tsconfig root aliases), Rust (`.rs`), Go (`.go`), C/C++ (`.c`, `.h`, `.cc`, `.cpp`, `.cxx`, `.hh`, `.hpp`, `.hxx`), schema/API contracts (`.sql`, `.prisma`, `.proto`, OpenAPI `.json`/`.yaml`), and cross-language HTTP routes (FastAPI/Flask/Express/Next.js App Router ↔ `fetch`/`axios`). Other file types still participate in textual/structural merge checks and file-existence guards.
424
+
425
+ Docs: [Design](docs/design.md) · [Tech Stack](docs/tech-stack.md) · [Roadmap](docs/roadmap.md) · [Related Work](docs/research/related-work.md) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md)
426
+
427
+ ---
428
+
429
+ ## Comparison
430
+
431
+ | Tool | Unit of coordination | Footprint | Cross-file contract dependencies | Proactive, targeted feedback |
432
+ |---|---|---|---|---|
433
+ | Claude Code agent teams | Tasks; files by convention | Declared by lead | No | Free-form messages |
434
+ | [Clash](https://github.com/clash-sh/clash) | File (textual merge) | Observed diffs | No | Pre-edit warning |
435
+ | [Grove](https://github.com/NathanDrake2406/grove) | File, hunk, symbol, import | Observed diffs | Imports/exports | Advisory score |
436
+ | [Weave](https://github.com/Ataraxy-Labs/weave) / [Aura](https://github.com/Naridon-Inc/aura) | AST entities | Declared MCP claims | No (same-file entity merge) | Entity claim conflict |
437
+ | [Claim Plane](https://github.com/SkeinRank/claim-plane) | Declared intents/regions | Declared by planner | Partially | Admission (96.7% serialized) |
438
+ | [Gas Town](https://github.com/gastownhall/gastown) Refinery | Merge queue | — | At merge time | No |
439
+ | **Seamlock** | **Symbols (contract vs. body) + regions** | **Inferred at runtime** | **Yes (live + post-merge + HTTP/schema)** | **Surgical notices + finish gate + MRP** |
440
+
441
+ ---
442
+
443
+ ## License
444
+
445
+ Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT license](LICENSE-MIT) at your option.
@@ -0,0 +1,4 @@
1
+ seamlock-0.3.3.data/scripts/seamlock.exe,sha256=g6h7CjwbIAP3dQQKnH7qqOkDIBVzGPuU7dSFO4WQo4g,13332480
2
+ seamlock-0.3.3.dist-info/METADATA,sha256=b-2VbveRmYfIWP0GkLj1aI7n3uvooDeuQf4ljIz9KbI,26807
3
+ seamlock-0.3.3.dist-info/WHEEL,sha256=i4XntLcHSR697ti2K64H63Lr1I5viqDLAwn0n1SZ62U,94
4
+ seamlock-0.3.3.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: seamlock-release
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64