Skip to content

feat: cut over to the seven-package four-layer v2 harness - #987

Closed
chughtapan wants to merge 198 commits into
mainfrom
cutover/four-layer-v2
Closed

feat: cut over to the seven-package four-layer v2 harness#987
chughtapan wants to merge 198 commits into
mainfrom
cutover/four-layer-v2

Conversation

@chughtapan

@chughtapan chughtapan commented Aug 14, 2026

Copy link
Copy Markdown
Owner

Summary

Cuts MoltZap over to the four-layer v2 architecture. The reviewed source candidate is aba6dc1ad1ac4f47e75ad03c38020ca25af37c9d; the branch tip 7c2d7aa3 adds only blind-review evidence plus an ancestry-only merge of main; its tree is byte-identical to 75e75846.

  • Establishes the final seven-package graph: Identity, Router, Client, Simulator, Evals, OpenClaw, and NanoClaw. Retires the v1 protocol/server stack and obsolete v2 scaffolds.
  • Builds Client around endpoint-replicated certified history, durability quorum, catch-up, Router-restart re-anchoring, and multi-engine recovery. Adds the one-agent moltzapd daemon, loopback Streamable HTTP /mcp, state-dependent tools, management operations, and subscriptions.
  • Moves Simulator's network, ledger, and agents public barrels into their owning domains while preserving its four-entry-point API census and packed-consumer contract. Adds controller-owned endpoints backed by real daemons and HarnessClient, plus private post-Router fault transport for directed drop, delay, hold, and reorder while preserving unfaulted bytes and order.
  • Preserves the 16-case Evals catalog and adds non-vacuous acceptance across both OpenClaw and NanoClaw conditions: 16 × 2 = 32 controller cells, without Client- or Simulator-injected cross-conversation context.
  • Updates package exports, Nx/TypeScript dependency graphs, architecture constraints, CI, generated module docs, ADR/spec authority, and user documentation to the final cutover shape.

Validation

  • Static, package, and unit validation is green, including the exact seven-package architecture floor, Client/OpenClaw/Simulator package probes, Simulator API census, local/GKE profile checks, formatting, lint, type checks, generated-doc checks, links, Mermaid, and documentation gates.
  • The exact replacement candidate passed the required fresh six-question blind decision review with no blockers; maintainer acceptance remains explicitly pending in the evidence record.
  • Built the pinned Simulator controller image as moltzap-simulator-controller@sha256:dd9bac7540f36a1d0deb08f032a09a644e809b088bcb9b5d19a2205ba064e372.
  • Real live local qualification was attempted twice. Both runs failed during kind node readiness, before MoltZap code executed, with:
    could not find a log line that matches "Reached target .*Multi-User System.*|detected cgroup v1"
  • Live E2E has therefore not passed, and this PR does not claim that it has.

Release

npm/release publication is deferred. The publish workflow remains disabled pending a separate decision on package closure, version policy, and public artifacts.

chughtapan and others added 30 commits July 31, 2026 09:17
Establish v2 identity foundation and package gates
…tics-v2

Merge main TypeScript 7 and Effect diagnostics into v2
chore: merge main into v2 (endpoint migration)
chore(v2): merge main forward into v2
Define the Harness boundary and rename v2 endpoint
…rity

docs: align simulator handoff with v2 authority
…spatch leases, at-rest encryption removed; programmable simulator links)
# Conflicts:
#	AGENTS.md
#	docs/decisions/20260728-gate-1-architecture-freeze.md
#	docs/decisions/README.md
#	packages/protocol/scripts/docs/__tests__/module-exports.test.ts
@mintlify

mintlify Bot commented Aug 14, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
moltzap 🟢 Ready View Preview Aug 14, 2026, 7:20 AM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@chughtapan

Copy link
Copy Markdown
Owner Author

Superseded by #988. The replacement is a single landing commit on current main, preserving the cutover tree while avoiding the prohibited second main-to-cutover merge found by the fresh blind review.

@chughtapan chughtapan closed this Aug 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant