Skip to content

feat: initial implementation — server, daemon, shell#1

Open
atou42 wants to merge 85 commits intomainfrom
feat/initial-implementation
Open

feat: initial implementation — server, daemon, shell#1
atou42 wants to merge 85 commits intomainfrom
feat/initial-implementation

Conversation

@atou42
Copy link
Copy Markdown
Collaborator

@atou42 atou42 commented Apr 6, 2026

Summary

  • First implementation commit — 12,751 lines across 41 files now in version control
  • Previously all code lived as untracked files across 3+ agent workspaces with zero commits
  • This branch establishes the baseline so real PR review and QA gates can run

What's included

apps/server/ — Node.js coordination core

  • coordinator.js (2,364 lines) — Topic truth, message routing, human gates, delivery state
  • http-server.js (676 lines) — Full /v1/ REST API surface (topics, runs, debug, inbox, PRs, compatibility)
  • protocol.js, errors.js, utils.js — Shared utilities
  • Tests: 26/26 pass (coordinator + runtime integration)

daemon/ — Go execution engine

  • Lane/run lifecycle, worktree management, durable ack, failure recovery
  • Server bridge for coordination with Node.js server
  • Tests: 6 test files, ~2,382 lines

apps/shell/ — Web shell

  • Topic overview, agent status, approval/intervention points

docs/

  • Architecture docs: single-machine runtime, daemon design

Next steps

  • Reviewer: Run adversarial review on this code against Phase 2 contract (#31)
  • QA: Run integrated loop tests (deterministic loop, 10/30 min cold start, recovery)
  • Subsequent commits will iterate on top of this baseline

阿头 added 30 commits April 6, 2026 16:42
First implementation commit bringing Phase 1 and Phase 2 batch1-batch6
code into version control. Previously all implementation lived as
untracked files across multiple agent workspaces with zero commits.

- apps/server/: Node.js coordination core, HTTP API surface, tests
  (coordinator.js, http-server.js, protocol.js, 26/26 tests pass)
- apps/shell/: Thin web shell (overview, status, approval points)
- daemon/: Go daemon execution engine (lanes, runs, worktree, recovery)
  (6 test files, ~2,382 lines of tests)
- docs/: Architecture and runtime docs
- runtime/: Shared runtime config and daemon state

This is a baseline commit to enable real PR review and QA gates.
Subsequent commits will iterate on top of this foundation.
…onflict/merge evidence anchors

- Add DELIVERY_STATE_GRAPH and PR_WRITEBACK_STATE_GRAPH to coordinator
- Add normalizeGate helper for delivery state transitions
- Update http-server.js for closeout/debug endpoints
- Update coordinator tests and runtime-http tests (26/26 pass)
- Add control-plane API surface gap analysis draft
…ty surfaces

Previous #83 commit accidentally overwrote the baseline server code that
contained the #85 integration test and explanation_projection logic.

Restored from baseline (285b0bd):
- coordinator.js: explanation_projection, buildRunExplanationProjection, batch6 truth
- http-server.js: all /v1/ routes including run-history, replay, debug, compatibility
- test: batch6 integration replay/debug test (139 lines)
阿头 added 27 commits April 8, 2026 05:38
Larkspur-Wang added a commit that referenced this pull request Apr 8, 2026
feat: land realtime path and release gate tooling
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