Local-First AI Builder Stack: Zero-Popup Harnesses, Eval Contracts, and Dual-Site Publishing

#ai-builder#developer-tooling#eval-engineering#langfuse

As LLM-assisted coding and multi-agent workflows move from throwaway demos into daily engineering, two failure modes show up fast: noisy developer ergonomics (permission popups, ephemeral chat state, unisolated branches) and subjective release decisions (shipping prompt or tool-schema edits on vibes instead of auditable contracts).

This rebuilt personal site (gengzongyuan.github.io) serves as my English-first builder portfolio and bilingual (EN / 中文) engineering log, pairing with treeeval.github.io where I publish deep-dive monographs dedicated strictly to AI agent evaluation and OpenTelemetry observability.

1. Three-Layer Daily Builder Loop

Rather than building one monolithic platform, my daily workflow relies on three composable open-source layers with strict boundaries:

Layer Repository Core Responsibility
Workspace Harness gemini-folderbus Filesystem-as-IPC macOS harness driving tmux, isolated Git worktrees, AST/LSP diagnostics, and a Chrome MCP bridge without modal popups.
CI Release Contracts agent-eval-engineering-kit Deterministic task contracts, four-state evaluation vouchers (PASS, FAIL, UNSCORABLE, UNOBSERVED), reusable GitHub CI gates, and streaming load tests.
Observability & Calibration treeeval-workbench Zero-fork sidecar on unmodified Langfuse OSS v4 for judge bias calibration, trace triage, and four-ledger release readiness.

2. Filesystem-as-IPC Over Fragile Glue

In gemini-folderbus, every task executes inside an isolated Git worktree paired with a persistent tmux session. Instead of brittle clipboard scraping, structured command envelopes and exit receipts flow through deterministic workspace directories:

# Isolated worktree + deterministic verification gate before merge
git worktree add ../wt-feat-gate -b feat/eval-gate
pnpm --prefix ../wt-feat-gate run build

When an agent edits TypeScript or Python code, static AST/LSP checks and build-time leak guards run automatically before any artifact reaches a public branch.

3. Auditable Release Gates Over Raw Average Scores

A recurring trap in agent evaluation is collapsing missing telemetry and judge timeouts into the same denominator as genuine task failures. In agent-eval-engineering-kit and treeeval-workbench, online trace health and offline paired benchmarks keep separate denominators, and judge pass-rate estimates are calibrated against human-labeled golden slices using the Rogan-Gladen correction for sensitivity q1q_1 and specificity q0q_0:

θ^=clip[0,1] ⁣(p^+q0−1q1+q0−1)\hat{\theta} = \text{clip}_{[0, 1]}\!\left(\frac{\hat{p} + q_0 - 1}{q_1 + q_0 - 1}\right)

Whenever q1+q0≤1q_1 + q_0 \le 1 or the UNSCORABLE voucher ratio breaches budget, the CI gate halts promotion instead of emitting a misleading green check.

4. Dual-Repository Static Publishing Architecture

This site itself follows the same local-first philosophy:

  • Zero runtime bloat: Compiled statically with Astro 5, Shiki, KaTeX, and offline Pagefind search—no third-party analytics scripts or external font CDNs.
  • Physical draft & privacy isolation: Authoring happens in a private source repository (blog-source), while scripts/verify-no-draft-leak.mjs inspects every generated file in dist/ (HTML, RSS, Sitemap, llms.txt, and Pagefind chunks) before github-actions[bot] publishes static artifacts to gengzongyuan.github.io.