Multi-Harness Home Workbench Guide & Offline Checker
Running one AI coding tab is easy. Running multiple harnesses and production agents without colliding git branches, roasted CPUs, amnesia-ridden notes, poisoned MCP tools, runaway vendor spend, or one model rubber-stamping its own bugs—is a real craft. You won't copy-paste someone else's script here: build your own Machine Steward, memory bus, six-layer control plane, and verification gates across the eight stations below, pass local Shop Inspection (workbench-verify).
Concise Root Map & Disk-Backed Context (AGENTS.md)
Keep one canonical AGENTS.md map (<= 180 lines—a map, not a 1,000-line manual!) read by every local harness. Link deeper docs, name the exact "done" verification commands, include why non-obvious rules exist, persist handoff progress to disk instead of cramming stale transcripts, and prune old model-era scaffolding.
Push-Pointer Cross-Harness Memory, Poison Quarantine & Clean-Context Reviews (memory/)
Passive memory stores gather dust—agents rarely query them unprompted. Push concise one-line rule pointers (<= 250 chars) at prompt/subagent boundaries from plain Markdown notes with append-only lifecycle (active, conditional, superseded with superseded_by). Scrub keys and local paths before disk writes, quarantine untrusted external inputs against memory poisoning (OWASP ASI06), hold out a causal shadow-control slice to measure real prevented incidents, and enforce a hard memory: off toggle for independent reviewers.
OS-Agnostic Machine Steward, Kernel Leases & Worktree Isolation (steward-contract.json)
Build your own lightweight Machine Steward in any language for macOS, Linux, or Windows/WSL—never copy a hardcoded script from another box. Your steward must meet strict behavioral requirements before passing inspection:
- Always-On Live Status & Honest Absence: Emit a low-overhead status snapshot (CPU/GPU/memory pressure, active leases, bottleneck headline). Missing OS counters report
unknown—never fabricate a green reading. - OS-Kernel Leases + Advisory Declarations (No Double-Counting): Separate lightweight
--until-pid/TTL work declarations from hardcpu/gpu/ioleases backed by OS kernel locks (flock/mutex—auto-released onSIGKILL; when metadata and kernel lock disagree, the kernel lock wins). - Reentrancy, Canonical Ordering & Post-Queue Re-Checks: Propagate a
HELDenv token to children, acquire multi-pool locks in one canonical order (io -> gpu -> cpu), queue loudly naming the holder, and re-check pressure + pause after waiting in queue. - Hard-Protected Process Watch & Zero Throttled Tests: Never auto-kill processes—keep a code-enforced hard-protect list (editors, lease holders, declared PIDs & children), redact command lines/paths before any adviser, require human approval +
SIGTERMgrace wait + PID/start-time re-check beforeSIGKILL, and never low-QoS throttle test suites (creates phantom timeouts). - Dedicated Git Worktrees & Verified Peer Identity: One git worktree per active agent; never gate concurrently with a reviewer; derive repo identity from
git rev-parse --show-toplevel, never from session or folder names.
Independent Review, Hash-Pinned Repairs, Hook Guards & Non-Vacuous Gates
Replace polite prompt reminders with mechanical sensors:
- Hash-Pinned Repair & Elevated-Action Gates: Elevated local repairs unlock only while an independent review proof matches the SHA-256 of every installed helper; any edit auto-closes the gate and retires the stale proof. Local MCP may propose one-use TTL actions, never self-approve them.
- Asymmetric Binary-Anchored PreToolUse Hooks: Hooks exit before commands run—deny unleased heavy ops and print the leased replacement. Parse invoked binaries (block
git -C dir pushandgit pullwhile allowinggit merge-baseandecho "git push"). Fail closed on heavy/mutating ops when lock state breaks (with one logged bypass), fail open on ordinary commands. - Non-Vacuous Mutation & Gate Discipline: Partial gate runs MUST exit non-zero; include the real compiler/build in the gate; verify unique mutation anchors and compile-check every mutant; ask independent cross-family reviewers to invent their own mutations; assert both deny and allow polarities.
- Outgoing-Commit Pre-Push Hook (
.githooks/pre-push.sample): Scan actual outgoing commit blobs (git rev-list+diff-tree), never just the working tree.
OWASP Agentic Security: Pin Tool Manifests & Contain Filesystem Roots
Every third-party or local MCP server is part of your attack surface (OWASP Agentic Top 10 ASI02 / ASI03). Pin canonical SHA-256 hashes of MCP tool manifests to fail closed on silent post-approval "rug pulls," scan tool descriptions, schemas, and annotations for hidden prompt-injection directives or zero-width Unicode smuggling, validate all arguments in server code, and enforce strict realpath MCP Roots containment (blocking .. traversal, prefix confusion like /repo-evil, and symlink escapes).
Beyond the Model: The Six Production Layers That Actually Keep Agents Running
Most teams spend their time debating which model to pick. In production, the model sits inside a larger operating system—and almost every real failure happens in the six layers wrapped around it:
- Layer 1 — Experience & Trigger: Stop defaulting to a chat box. Trigger agents on real events (file arrivals, invoices, ticket state changes, schedules) and route human escalations to a structured exception queue / inbox—never dump raw transcripts onto ops teams.
- Layer 2 — Orchestration & Durable State: Version agent definitions like code (bounded, with rollback) and persist execution checkpoints & idempotency keys in durable storage so interrupted runs resume cleanly instead of restarting from scratch or double-firing side effects.
- Layer 3 — Tools & Deterministic Logic: Guarantees live in plain, unit-tested code behind stable named tools—not in prompts. Let deterministic rules handle fixed steps and invoke the model only where judgment is actually required.
- Layer 4 — Trusted, Permission-Aware Context: Never dump a whole wiki into a giant prompt. Give each domain an authoritative, tenant/role-scoped catalog queried mid-run as a tool—rejecting stale or drifted docs before they cause hallucinations.
- Layer 5 — Evaluation & Human Control: Before touching customers or money, build a golden set of real past cases verified on every change (deterministic checks + judge evals) and keep a hard human approval gate on every high-impact or irreversible action.
- Layer 6 — Runtime & Control Plane: Route every model call through one unified LLM gateway inside your perimeter (direct vendor API calls are a production defect). Enforce per-service virtual keys, hard spend caps, prompt-injection guardrails, structured traces, and internal model aliases so swapping providers is a config change, not a rewrite.
Share Artifacts With Other People's AI — Without Opening a Website Attack Surface
Most people spin up a throwaway website just to hand a tool, dataset, or family/team guide to someone else's AI—inheriting DNS, servers, auth bugs, XSS risk, and unverified scraping. With AICertSys Controlled AI Share Drops, your local agent uses your existing Ed25519 key to pass tightly scoped artifacts straight across a locked counter:
- Signed & SHA-256 Pinned: Every drop is Ed25519-signed by your key; a recipient that pins the manifest hash gets HTTP
409if the stored manifest changes. - Separate Sandbox Origin (
https://apps.aicertsys.com): Drop pages are served under a sandbox CSP withdefault-src 'none'andconnect-src 'none', so they cannot make network requests or read registry cookies. No publisher code runs on the server. - End-to-End Encrypted Lockboxes: For private shares, AES-256-GCM + X25519 key wrapping happens on your machine; the registry stores ciphertext and routing metadata, and only invited keys can decrypt.
- Revocation & Limits: Revoke a published drop or lockbox (
app-kill <slug>/capsule-kill <slug>), or disconnect as a recipient (kill <slug>). Includes 1,000 free monthly pulls out of the box, with planned low-cost prepaid overflow once metered billing opens—deliberately capped to safe static sizes (32 KiBsandboxed HTML,16 KiBMCP tool schema,96 KiBE2EE capsule,20active static drops /5active E2EE capsules; no custom backend code).
Scaffold Locally and Run the Offline Checker
Generate a local workbench and steward contract on your machine (no network writes, symlink-safe), adapt the steward helper to your OS, then run workbench-verify. No account or key is needed for this step.
curl -fsSL https://aicertsys.org/cli.mjs -o ~/.aicertsys-cli.mjs
node ~/.aicertsys-cli.mjs workbench-init ./my-workbench
# Customize steward-contract.json with your own OS-native steward statusCommand, then inspect:
node ~/.aicertsys-cli.mjs workbench-verify ./my-workbench --run-probes
workbench-verify checks structure and policy files; passing it does not mean a setup is secure. To publish signed drops or lockboxes, see /play.
workbench-init and workbench-verify read and write only local files and make no network calls. Your files, keys, steward scripts, and notes are not uploaded.Home · /try · /pricing · /play · /llms.txt · /terms · /privacy · /contact