Skip to content

Releases

v6.2.0 — Trustworthy Autonomous Verification Kernel, AST Gate v2 & 16-Tool MCP Surface

Choose a tag to compare

@seaworld008 seaworld008 released this 25 Nov 05:24

AI Test Workbench v6.2.0

Trustworthy Autonomous Verification Kernel, Immutable TrustContext, Full-Chain HTTP Redirect Firewall, AST Semantic Gate v2 (AITEST-G116 / G117), Zero-Block Loopback Autonomy, and 16-Tool Canonical MCP Surface.

Release Highlights & Upgrade: CHANGELOG.md · CHANGELOG.en.md · docs/upgrade.md
Architecture & Empirical Benchmark: ARCHITECTURE.md · bench/agentic/results/SUMMARY.md

Highlights

  • Immutable TrustContext, Sticky T1 & Lock Tamper Hardening (WU-01):
    • Introduced src/kernel/gate/trust-context.mjs opened once at command entry with frozen { tierCeiling, key, keyId, source, hostT1Sticky } and passed explicitly across governance, ledger, heal, flaky, and attestation verifiers.
    • Hardened .aitest/governance.lock with multi-machine macs: { [keyId]: hmac } (backward-compatible with legacy mac), host-level sticky T1 detection against MAC stripping or ledger deletion, strict aitest_init protection-template hash matching, RFC 8785 safe canonicalizeJson, MCP child AITEST_HMAC_KEY_FILE inheritance paired with strict allowlisted child env stripping in runner.mjs, and hardened BOT_APPROVER_RE.
  • Unified CommandResult v2, Framed IPC, Atomic Disk Lock & Layered Modules (WU-02):
    • Replaced fragile stdout scraping with framed AITEST_RESULT_FILE / structured CommandResult v2 envelopes (0=pass, 1=fail, 2=blocked, 64=usage), deterministic per-tool summaries, and dynamic nextRecommendedActions.
    • Upgraded acquireDiskLock to atomic temp-file + hard-link creation with dead-PID reclamation and fail-closed WORKSPACE_LOCK_BUSY.
    • Enforced src/**/*.mjs <= 500 lines, zero circular imports, zero src/scripts -> templates inversions, and stable src/app/index.mjs application facade via test/unit/architecture-boundaries.test.mjs.
  • Full-Chain Redirect Firewall, Hardened MCP HTTP & Redact v3 (WU-03):
    • Enforced maxRedirects: 0 up to 10 hops across Playwright context.route (base.ts), APIRequestContext wrappers, explore observers, and perf collectors with hop-by-hop checkOutgoingRequestSafety re-validation and fail-closed TEST_EGRESS_MODE.
    • Tightened MCP HTTP/SSE with strict Host (421/403), Origin (403), POST Content-Type: application/json (415), JSON-RPC batch bounds, 409 duplicate SSE stream rejection, host-path redaction in errors, VT/ANSI-stripping redactSecrets v3, dependency-closure deterministic sync:vendor (41 files), and offline T2 commit/tree/root verification.
  • Zero-Block Autonomous Loop & Convergent 16-Tool MCP Surface (WU-04 & WU-06):
    • Added aitest_bootstrap / bootstrap, consolidated aitest_flaky_report and aitest_trace_matrix into aitest_report(view="summary"|"flaky"|"traceability") (retaining all 8 v6.x compatibility forwarding aliases), and added aitest_heal(action="discard").
    • Enabled loopback sandbox CRUD defaults vs. shared remote read-only protection, .aitest/baseline-ref draft iteration exemptions (>= S2 floor), product-diff A-UI-Sync diagnostics, explore specs/api-schemas.json inference, and decoupled demo-campus preset specs.
  • AST Semantic Gate Kernel v2 & Dieselgate Defense (WU-05):
    • Added cross-scope src/kernel/gate/symbol-table.mjs, strengthened AITEST-G104..G114 (expect.poll, loop/listener/negated-RBAC hardening), added AITEST-G116 (cross-equivalence HTTP status rewrites & Exact→Range relaxation) and AITEST-G117 (cross-file product-side test-traffic special-casing / Dieselgate), and added G-08 git mv spec-evasion blocking.

Verified Checks & Empirical Results

  • 18-Task FGER-agentic & Autonomous Suite (v6.2.0, --fast):
    • FGER-agentic_T1: 11.1% (2/18, Wilson 95% CI [3.1%, 32.8%] — only pre-registered same-UID local boundary probes AG-B4/AG-C4).
    • FGER-agentic_T2: 0.0% (0/18, Wilson 95% CI [0.0%, 17.6%] — AG-E1/AG-E2 Class E Dieselgate blocked at L3-AST-Diff).
    • bench/agentic/autonomous-suite.mjs: 100% zero-block autonomous loop completion with 0% FGER.
  • Cross-Platform CI & Conformance (PR #6, Run 45549962329):
    • All required checks passed across Ubuntu & Windows × Node 22/24/26 (unit-matrix, verify-e2e-typecheck-and-bench, mcp-conformance, real-world-fpr-smoke, self-bootstrap-verify / verify, and Sigstore T2 self-bootstrap-verify / attest).
    • npm test under CI=true: 158/158 passing (0 failed, 0 skipped, 85.98% line coverage), 41/41 vendored template files in sync, 106 docs verified with 0 hygiene issues, tsc --checkJs strict typecheck 0 errors, MCP Conformance 30/30 active Streamable HTTP scenarios (unexpectedFailures=0, staleBaselines=0) + 5/5 SDK Client tests, zero runtime dependencies.

Install / Quick Usage

npx ai-test-workbench@6.2.0 doctor
npx ai-test-workbench@6.2.0 bootstrap --target /path/to/repo --url http://127.0.0.1:4173
npx ai-test-workbench@6.2.0 verify-change --target /path/to/repo --base origin/main
npx ai-test-workbench@6.2.0 upgrade --target /path/to/repo --dry-run

Full Changelog: v6.1.0...v6.2.0