Skip to content

docs: architecture and v2 plan for MCP + REST agent layer#36

Open
vishwakt wants to merge 2 commits into
mainfrom
docs/architecture-and-mcp-plan
Open

docs: architecture and v2 plan for MCP + REST agent layer#36
vishwakt wants to merge 2 commits into
mainfrom
docs/architecture-and-mcp-plan

Conversation

@vishwakt

@vishwakt vishwakt commented May 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds docs/MCP-ARCHITECTURE.md — design for an agent-native trading lab on top of the existing Lambda core: stdio MCP server, FastAPI REST, and a bundled local UI all sharing one typed Pydantic service layer. Includes the v2/v3/v4 roadmap (with semver mapping 0.2.0/0.3.0/0.4.0), security model, and the launch-tweet draft.
  • Adds docs/PLAN.md — 7-branch implementation plan for v2 (service layer → auth → MCP stdio → REST → backtest jobs → UI → CLI packaging). Each phase has a file list, test list, and explicit acceptance criteria.
  • Locks three architectural decisions:
    • Local-only for v2, self-host bundle for v3. Avoids the compliance surface of hosted SaaS while still unlocking the "works with ChatGPT/Gemini" launch story shortly after.
    • One API key + confirmation gates (MCP requiresConfirmation annotations + REST 409→token flow) instead of three-tier RBAC. RBAC adds zero protection in single-user-local mode; gates handle prompt-injection and accidental destructive calls. RBAC reintroduced in v3 when multi-user is real.
    • Release strategy: all 7 phases land on main as [Unreleased] changelog entries; once Phase 7 ships, cut a single semver 0.2.0 release. No per-phase tags, no patch versions in between — one launch moment.

No code changes in this PR — pure documentation. Implementation begins on v2/service-layer after this lands.

Naming convention going forward

  • Codenames v2/v3/v4 track the agent-layer initiative
  • Semver 0.2.0/0.3.0/0.4.0 track project releases (current shipped: 0.1.0)
  • Branch prefix v2/<feature> for v2 work; existing docs/, ci/, fix/, chore/ prefixes retained for non-feature work

Test plan

  • Both docs render correctly on GitHub (ASCII diagrams aligned, tables readable)
  • Internal cross-links between MCP-ARCHITECTURE.md and PLAN.md resolve
  • File path links in PLAN.md resolve to existing source files where referenced
  • No stale v1.0/v1.1/v1.2 references remain (verified via grep -nE 'v1\.[012]|v1/' docs/)

vishwakt and others added 2 commits May 10, 2026 20:21
Captures the agent-native trading lab design: stdio MCP server + FastAPI
REST + bundled local UI sharing a single typed service layer. Includes
the v1.0/v1.1/v1.2 roadmap, security model (one API key + confirmation
gates), tool inventory, and a 7-branch implementation plan with file
lists and acceptance criteria per phase.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Resolves the naming clash between the agent-layer initiative's
internal milestones ("v1.0/v1.1/v1.2") and the project's semver
release line (v0.1.0 already shipped). Codenames now map cleanly
onto semver releases:

  v2 → 0.2.0 (local-only agent layer, this initiative)
  v3 → 0.3.0 (self-host bundle on user's AWS)
  v4 → 0.4.0 (native Tauri wrapper)

Branch prefix updated from `v1/<feature>` to `v2/<feature>` to match
the milestone vocabulary. Adds a release-strategy note to PLAN.md
(all seven phases land as `[Unreleased]` entries, cut as a single
0.2.0 release at the end — no per-phase tags) and a codename/semver
mapping table at the top of MCP-ARCHITECTURE.md's Roadmap section.
@vishwakt vishwakt changed the title docs: architecture and v1.0 plan for MCP + REST agent layer docs: architecture and v2 plan for MCP + REST agent layer May 11, 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