[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-107573":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":14,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":14,"compositeScore":17,"rankGlobal":10,"rankLanguage":10,"license":18,"archived":19,"fork":19,"defaultBranch":20,"hasWiki":21,"hasPages":19,"topics":22,"createdAt":10,"pushedAt":30,"updatedAt":31,"readmeContent":32,"aiSummary":33,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":34,"discoverSource":35},107573,"skein","Balanov\u002Fskein","Balanov","Fail-closed swarm orchestration with epoch-fenced work and late-completion rejection.","",null,"Go",27,2,1,0,11,43.03,"MIT License",false,"main",true,[23,24,25,26,27,28,29],"agent-orchestration","ai-agents","fail-closed","fencing-token","security","swarm","workflow-orchestration","2026-11-15 01:00:36","2026-11-21 09:05:07","# Skein\n\n**Fail-closed orchestration for local agent swarms.**\n\nSkein executes explicit task graphs with bounded concurrency and a persistent **epoch fence**. An emergency stop invalidates queued work and rejects late completions from the old epoch instead of merely labeling a task canceled.\n\nIndependent open-source project by [Paritet](https:\u002F\u002Fparitet.dev\u002F). Skein is an execution control plane, not an agent framework or a model runtime. Version 0.2.0 is an early release: exercise the stop proof against your own workloads before relying on it operationally.\n\n[Architecture](docs\u002FARCHITECTURE.md) · [Security boundary](SECURITY.md) · [Integration](docs\u002FINTEGRATION.md) · [Benchmarks](BENCHMARKS.md) · [Landing source](site\u002F)\n\n## Install\n\nLinux and macOS:\n\n```sh\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002FBalanov\u002Fskein\u002Fmain\u002Finstall.sh | sh\n```\n\nWindows PowerShell:\n\n```powershell\nirm https:\u002F\u002Fraw.githubusercontent.com\u002FBalanov\u002Fskein\u002Fmain\u002Finstall.ps1 | iex\n```\n\nBoth scripts pick the binary for the current OS and architecture (Linux, macOS, Windows × amd64, arm64), verify it against `SHA256SUMS` and install into a user directory. Set `SKEIN_INSTALL_DIR` to override. Alternatively, download binaries from [releases](https:\u002F\u002Fgithub.com\u002FBalanov\u002Fskein\u002Freleases\u002Flatest) or build from source with Go 1.26+:\n\n```sh\ngo build -trimpath -o bin\u002Fskein .\u002Fcmd\u002Fskein\n```\n\nThe binary is static, needs no daemon, database or runtime dependencies.\n\n## Run\n\n```sh\nskein run --state .skein --workers 2 --include-tasks examples\u002Ffanout.json\nskein stop --state .skein --reason \"manual emergency stop\"\nskein status --state .skein   # {\"stopped\":true,\"epoch\":2}\nskein reset --state .skein    # inspect first; epoch is never reused\n```\n\nA run stores `report.json`, `events.jsonl`, leases and payload data under `.skein\u002Fruns\u002F\u003Crun-id>\u002F`. Exit codes: `0` success, `3` a task failed, `4` the run was stopped, `1` operational error, `2` usage error.\n\nManifests are JSON: argv arrays without an implicit shell, dependency graphs, reusable multi-pass blocks, worker and pass limits, per-pass timeouts. See [docs\u002FINTEGRATION.md](docs\u002FINTEGRATION.md) for the full contract and the Go embedding API (`import skein \"github.com\u002FBalanov\u002Fskein\"`, runnable example in `examples\u002Fembed-go\u002F`).\n\n## What the stop does — and what it does not\n\n**Covered:** scheduling within one local run; a persistent idempotent stop latch; epoch-fenced queued work; rejection of late completions; termination of tracked local process trees on Linux, macOS and Windows.\n\n**Not covered:** sandboxing arbitrary commands; authentication or signed leases; semantic validation of agent output; exactly-once external side effects; automatic crash recovery; distributed consensus; remote or detached work, and side effects that already crossed an external boundary.\n\nA lease is a fencing token, not a credential — external systems honor it only through a gateway that checks it. Manifest commands keep the OS user's permissions; use an OS sandbox for untrusted workloads. See [SECURITY.md](SECURITY.md).\n\n## Measurements\n\nRecorded on Windows 11 \u002F Ryzen 9 5950X; each warm result is the median of 15 interleaved samples on identical graphs.\n\n| 1,000-node graph | Skein | Python asyncio | LangGraph |\n| --- | ---: | ---: | ---: |\n| Independent | **1.580 ms** | 3.530 ms | 876.910 ms |\n| Serial chain | **3.272 ms** | 4.479 ms | 534.907 ms |\n| Fan-out \u002F join | **2.080 ms** | 3.795 ms | 892.522 ms |\n\nA separate cold-process test launched 24 real Python SHA-256 workers per run. Over 15 fresh-process runs, Skein's median was **156.463 ms** versus **288.644 ms** for asyncio and **998.010 ms** for LangGraph, with **360 \u002F 360 results verified for every candidate**. The stop proof terminated **160 \u002F 160 real parent\u002Fchild trees** and froze **160 \u002F 160 child heartbeats** in **141.663 ms** median over 20 runs.\n\nSkein is not ahead everywhere: at 100 independent tasks asyncio had a lower median (**0.740 ms versus 1.040 ms**). These are local observations, not universal rankings or model-quality results. Full methodology, p95, scaling and reproduction commands: [BENCHMARKS.md](BENCHMARKS.md).\n\n## Checks\n\n```sh\ngo test -count=1 .\u002F...\ngo vet .\u002F...\ngo test -race -count=1 .\u002F... # requires CGO and a C compiler\n```\n\nCI runs formatting, tests, vet, the Linux race detector, six cross-compile targets, the frontend build, and real functional plus parent\u002Fchild stop proofs on six native runners (Linux, Windows, macOS × amd64, arm64). Tagged releases build each binary on its native platform and re-run both proofs per binary before publishing.\n\n## License\n\nMIT © 2026 Balanov. Machine-readable citation: [CITATION.cff](CITATION.cff).\n","Skein 是一个面向本地智能体集群（agent swarm）的故障关闭型编排系统，专注于强安全边界下的任务执行控制。其核心功能包括基于纪元（epoch）的围栏机制（fencing token），确保紧急停止后已排队任务被即时失效、迟到完成被明确拒绝；支持显式任务图、并发限制、多阶段工作流及本地进程树终止。系统无依赖、静态二进制、不需守护进程或数据库，适用于对执行确定性与停机语义有严格要求的本地AI智能体协作场景，如敏感数据处理、可审计自动化流水线或安全关键型代理调度。","2026-11-24 04:32:17","CREATED_QUERY"]