Skip to content

About

Quality policy, exact-SHA release engine and shared node admission toolkit for Bun and TypeScript projects.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

StitchDevKit — green felt plush toolbox mascot with a white-check shield

StitchDevKit

One repository passport. Zero drift across quality, queues and exact-SHA releases.
Built for Bun, TypeScript and autonomous coding agents.

MIT license Bun 1.4.5 Node >= 24 TypeScript strict AI-Ready llms.txt 33 package entrypoints

One .passport.json drives quality policy, shared node queue, exact-SHA releases and live typed observation

One .passport.json binds Biome & GritQL quality gates, a single-slot shared node queue, and immutable exact-SHA releases with probes and rollback.


Hand it to your coding agent

Built to be adopted straight from an AI session (Claude Code, Codex, Cursor, Antigravity). Paste this once into your agent:

Adopt StitchDevKit in this repository: read https://raw.githubusercontent.com/max-listov/stitchdevkit/main/llms.txt, create .passport.json, route heavy scripts through devkit-run --kind <kind>, and verify with devkit-doctor --run-queue .

Tip

LLM-native by design: llms.txt maps all 33 entrypoints, 9 CLIs and 38 architecture specs · AGENTS.md & CLAUDE.md encode every invariant · devkit-doctor --json returns machine-readable diagnostics.


The Stitch ecosystem

The Stitch Family: StitchKit (API Contracts), StitchWire (Node Mesh), StitchMux (Agent Sessions), and DevKit (Gates & Releases)

StitchKit
StitchKit

Contract-first SDK
StitchWire
StitchWire

Private node mesh
StitchMux
StitchMux

Agent control plane
StitchDevKit
StitchDevKit

Quality & release engine
One API contract → HTTP, MCP, AI tools, CLI and client. Link build and runtime hosts over a private mesh. Run and coordinate coding-agent sessions across repos. Quality gates, shared node queues and exact-SHA releases.

Architecture boundary: docs/VISION.md


Docs, backlog & releases

Docs & backlog lifecycle

Docs & Backlog Lifecycle: 1. Inbox → 2. Planned → 3. In Progress → 4. Done with verified proof

Tasks move through inbox/ → planned/ → in-progress/ → done/ as Markdown cards with typed frontmatter, append-only participants stamps and checked local links. devkit-quality backlog refuses any closed card with open acceptance items, missing verification proof or a directory/status mismatch (backlog contract).

Exact-SHA release lifecycle

Exact-SHA Release Lifecycle: 1. Build SHA → 2. Pre-Check → 3. Probe → 4. Cutover → 5. Receipt

Production never mutates a live checkout in place: DevKit builds an immutable artifact pinned to an exact Git SHA, runs type and migration safety pre-checks, verifies HTTP/MCP health probes before atomic cutover, and writes a durable rollback-ready receipt (release engine).

What StitchDevKit enforces

Area What StitchDevKit enforces
Policy & lint One .passport.json + Biome 2.6 & GritQL rules across every repo
Backlog & docs Typed inbox → planned → in-progress → done contracts, authorship stamps & link checks
Shared queue One bounded node slot (devkit-run) + cgroup v2 so parallel runs never OOM-crash
Exact-SHA releases Immutable SHA builds, migration safety, HTTP/MCP probes, atomic cutover & rollback
Browser bundles Dedicated zero-node: /browser & /primitives subpaths
Live observation Typed run-progress/v1 (%, stage, ETA) & durable verifiable receipts
flowchart LR
  P[".passport.json<br/>Identity &amp; Policy"] --> Q["Quality Gates<br/>Biome · GritQL · Backlog"]
  Q --> A["Shared Node Queue<br/>One slot · cgroup v2 · Priority"]
  A --> R["Exact-SHA Release<br/>Probes · Atomic Cutover · Rollback"]
  R --> O["Live Observation<br/>Progress · Receipts · Epochs"]
Loading

Install

bun add -D stitchdevkit
# or with npm / Node >= 24:
npm install --save-dev stitchdevkit

For verified standalone host tarball installation (verifies the Ed25519 signature on SHA256SUMS against the embedded public key and checks SHA-256 before extraction; pass --pubkey <file> to override the key):

curl -fsSL https://raw.githubusercontent.com/max-listov/stitchdevkit/main/contrib/install.sh \
  | bash -s -- --prefix /usr/local/lib/stitchdevkit --version v0.294.0

Release signing key

GitHub Release SHA256SUMS files are signed with Ed25519 (SHA256SUMS.sig) using the pinned release key (keyId: stitchdevkit-release-2026-ed25519):

-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAOVrFh/nmG6zF3h77cA9CNVjP3Y96frJxSjaG4L5qd4w=
-----END PUBLIC KEY-----
  • Rotation policy: Dual-signed overlap across at least one minor release before retiring a keyId; public key pins are published in README.md and signed manifest.json.
  • Offline root key ring (stitch-release-keys/v1): Releases can also ship a paired release-keys.json + release-keys.json.sig signed by an offline Ed25519 root key. Pass --root-pubkey <file> to contrib/install.sh or --root-public-key <file> to devkit source --github-releases to verify key expiry, revocation, repository binding and (on devkit update apply) an anti-rollback floor; see docs/architecture/publication.md for the full contract.

Quick Start

1. Declare .passport.json

{
  "schemaVersion": 1,
  "identity": {
    "repositoryId": "acme/my-app",
    "project": "my-app",
    "productName": "My App"
  },
  "rules": {
    "biomeProfile": "strict"
  }
}

2. Queue heavy scripts with devkit-run

{
  "scripts": {
    "gate": "devkit-run --label my-app-gate --kind gate -- bun run gate:raw",
    "test": "devkit-run --label my-app-test --kind test -- bun test",
    "build": "devkit-run --label my-app-build --kind build -- bun run build:raw"
  }
}
devkit-doctor --run-queue .   # verify queue wiring and .passport.json alignment
devkit-quality check .        # run Biome, boundary and semantic checks

Note

devkit-run reads identity.project straight from .passport.json — pass --label and --kind, and skip redundant --project flags.

3. Compose in TypeScript

import { evaluateQuality } from 'stitchdevkit/quality';
import { createHttpProbe } from 'stitchdevkit/release';
import { readNodeQueue, readNodeRunProgress } from 'stitchdevkit/release/run-observation';

const verdict = await evaluateQuality({ root: process.cwd() });
const probe = createHttpProbe({
  id: 'health',
  url: 'http://127.0.0.1:3000/health',
  expectedStatus: 200,
  phase: 'post-activation',
});
const [queue, progress] = await Promise.all([readNodeQueue(), readNodeRunProgress()]);

Runnable examples: quality-check.ts · release-project.ts · run-admission.ts


Package surface

Compiled .js + strict .d.ts (Bundler & NodeNext, skipLibCheck: false). Applications pick their own StitchKit version independently.

Entrypoint Runtime Role
stitchdevkit Node / Bun Core accountability, finite command runner, suite manifests & receipts
stitchdevkit/quality Node / Bun Quality verdict, Biome 2.6 presets, GritQL plugins, passport, backlog & policy
stitchdevkit/release Node / Bun Exact-SHA release engine, probes, migration safety, supervisors & run admission
stitchdevkit/runtime Node / Bun Zero-weight application runtime heartbeat & release identity binding
stitchdevkit/fs Pure node:* Exact-mode filesystem helpers (zero external dependencies)
stitchdevkit/primitives Browser-safe Wire primitives, semantic versions, passport identity & epoch parser
stitchdevkit/release-transition Browser-safe Zod-only release transitions, incident cards & transition journal
stitchdevkit/release/artifacts/browser Browser-safe Release content contracts & changelog parser (zero node: / oxc-parser)
stitchdevkit/quality/backlog/browser Browser-safe Backlog, participant, relation, research, passport & waiting-on contracts
stitchdevkit/quality/requirements Browser-safe Release requirements, conformance corpus & task-result proof contracts
stitchdevkit/release/run-observation Node / Bun Live node queue, named runs, progress, memory pauses & workload runner
stitchdevkit/release/read-only Node / Bun Lightweight read-only node observation contracts, client & local delivery
stitchdevkit/release/node-control Node / Bun Revision publication, route fragments/logging, node jobs & runtime plans
stitchdevkit/release/artifacts Node / Bun Changelog, release content, task-result builds, consumer updates & maintenance
All 33 subpaths and 9 CLI binaries

Remaining subpaths: stitchdevkit/canonical-json-web, stitchdevkit/program-stitchkit, stitchdevkit/darwin-native-packaging, stitchdevkit/vendored-archives, stitchdevkit/pm2-predecessor-maintenance, stitchdevkit/release/adapters, stitchdevkit/release/epochs, stitchdevkit/release/read-only/wire-client, stitchdevkit/release/probes/mcp, stitchdevkit/release/library, stitchdevkit/release/npm, stitchdevkit/release/publication, stitchdevkit/quality/biome, stitchdevkit/quality/biome-core, stitchdevkit/quality/biome-tailwind, stitchdevkit/quality/plugins/*, stitchdevkit/quality/passport, stitchdevkit/quality/backlog, stitchdevkit/quality/policy.

CLI binaries: devkit-doctor, devkit-verify, devkit-quality, devkit-update, devkit-vendored, devkit-run, devkit-apps-install, devkit-release, devkit-artifact-gate.

Platform support

Capability Linux x64 macOS arm64 Notes
Quality (biome, GritQL, passport, backlog) Supported Supported Bun & Node 24+
Release engine, probes, static sites, PM2 Supported Supported Exact-SHA immutable releases
Shared node run admission & cgroup v2 Supported Limited cgroup v2 scopes require Linux systemd
macOS desktop signing & notarization — Supported Requires codesign & notarytool

Developing & publishing

Requires Bun 1.4.5 and Git (no root privileges or fleet config needed):

bun install --frozen-lockfile
bun run check                                         # cold tsc across packages, scripts, tests & examples
bun run lint                                          # Biome format, imports & project rules
bun test --isolate packages/sdk/test/doctor.test.ts   # single test file in isolation
bun run gates                                         # full snapshot gate with coverage floors
Release suite, consumer updates & publication safeguards

Source manifests keep "private": true so accidental npm publish from source fails with EPRIVATE; publishable artifacts are assembled strictly inside dist/.

bun run release <version> --message <file>                  # publish DevKit: prove, tag, sign, GitHub Release, npm
bun run pack:release dist/release v<version>                 # pack clean tree into archive + manifests
devkit consumer-update /path/to/consumer --issuer <origin>   # update an adopted consumer checkout
bun run publication:snapshot --out /tmp/devkit-snapshot      # deterministic history-free source snapshot
bun run publication:snapshot --verify /tmp/devkit-snapshot   # verify SOURCE_MANIFEST.json digests & modes
bun run publication:notices:check                            # verify THIRD_PARTY_NOTICES.txt
bun run publication:stage-npm                                # assemble publishable dist/npm-package
bun run publication:assemble                                 # build dist/public-release/{release,rollback}
bun run publication:guard                                    # verify npm metadata & source private guard
bun run gen:llms:check                                       # verify llms.txt is current

Signed host tarball install: contrib/install.sh · docs/architecture/publication.md


Documentation

Path Start here
Adopting in a repo .passport.json · Quality · Run Queue · Releases · Breaking Changes · llms.txt
Operating & hacking Vision · Boundaries · Release Engine · Control Plane · CONTRIBUTING.md · CLAUDE.md
Full architecture & decision reference (38 architecture docs + ADR)

Quality, passports & repository contracts

Shared runs, observation & node operations

  • shared-run-admission.md — One node slot, workload lifetime and enforcement envelope for all launchers
  • project-runs.md — Node-owned lifecycle for project runs, system services, native apps, open targets and simulators
  • host-apps-operator.md — Interactive apps operator surface, commands and exact restarts
  • dev-stands.md — Parking and waking dev stands across hot, idle, cold and pinned states
  • node-control-plane.md — Node-local releases, immutable serving, environment placement, routing inventory and federated actions
  • node-owned-logging.md — Route declarations, effective-context verification, writer receipts and scanner migration
  • node-update.md — devkit update, automatic Linux/macOS schedules, progress, JSON and preview
  • dev-delivery.md — Fast reversible working-tree dev delivery (dev:deliver, dev:restore, dev:status) kept to inner nodes by the shared zone mark
  • release-observation.md — Stable identity, durable journal, lifecycle events, verdicts and external availability evidence
  • application-lifecycle-evidence.md — Correlated stop-to-ready attestations independent of supervisor timing

Release engine & delivery targets

Packaging, adoption & publication


Contributing · Security · AGENTS.md · CLAUDE.md · MIT License · Third-Party Notices

About

Quality policy, exact-SHA release engine and shared node admission toolkit for Bun and TypeScript projects.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages