Skip to content

feat(project): add local working-source Project MVP - #732

Closed
jhrozek wants to merge 51 commits into
mainfrom
acc/project-working-mvp
Closed

jhrozek wants to merge 51 commits into
mainfrom
acc/project-working-mvp

Conversation

@jhrozek

@jhrozek jhrozek commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds the ownerless local working-source Project MVP: bounded source discovery, revisioned Project lifecycle, captured Project Session binding, restart/fork persistence, generated gRPC/HTTP transport, and path-free contract.
  • Adds the local mecated --store-dir Mecatui /projects surface with capability bootstrap, source-backed create, Project-session navigation, explicit conflict recovery, and non-cascading delete.
  • Keeps Kubernetes/Redis/remote ownership and source-resolution work explicitly deferred as fast-follow adapters; no second Project design or mecak8s implementation.

Acceptance status

All repository tasks and Scenario 1–4, 5.1–5.3/5.5, and Scenario 6 code/test work are present. The plan intentionally remains in-progress: AC5.4 requires an external Studio repository commit plus a green Studio journey workflow URL, neither of which is available from this repository. No evidence was fabricated.

Verification

  • task lint ✅
  • focused project UI/server/app tests ✅
  • task api:check ✅ (before final review repairs; no exported engine surface in repairs)
  • task site:build ✅
  • go run ./cmd/mecademo ✅
  • task test was run twice; its go test -race ./... root phase exceeded this harness's 120s wall-clock limit on the aggregate rerun, with no test failure emitted before timeout. Earlier complete task-level runs were green.

Panel review repairs

Addressed the panel's repository findings: nanosecond-stable pagination cursor, complete fresh/restart/fork Project environment runner parity, session-free Mecatui capability bootstrap, real composed UI journey, malformed UTF-8 HTTP rejection, and capability disablement for empty source registries.

Plan: docs/acceptance/project-working-mvp.md

jhrozek and others added 30 commits August 20, 2026 17:05
jhrozek and others added 21 commits August 20, 2026 23:32
Preserve nanosecond cursor precision, bind hardened project shell runners consistently, and bootstrap TUI project discovery through the session-free capability RPC.

Co-Authored-By: mecatl <[email protected]>
@JAORMX

JAORMX commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Net-new panel review of this draft.

The draft is not ready for approval yet.

Merge blockers

  • AC5.4 remains explicitly incomplete: it requires the external Studio commit and green journey workflow before landing (docs/acceptance/project-working-mvp.md:209-210).
  • AC1.8's durable local-store proof is incomplete. The current suite does not demonstrate cross-process flock contention, interrupted atomic writes, corrupt/truncated records, or reopen behavior after replace/delete (internal/adapter/projectstore/local_test.go, project_acceptance_test.go:164-172).
  • Project creation rollback coverage omits project lookup, source resolution, registration, and resource cleanup failures (AC2.5; project_transaction_test.go:43).
  • The project session UI drops the returned per-session input capabilities and installs server-wide/default capabilities instead. Projects using a non-default model can therefore offer/reject image/audio incorrectly (cmd/mecatui/client/projects.go:177-183, cmd/mecatui/ui/update.go:367-378).
  • The plan/ADR remains in-progress/Proposed despite this Architectural, cross-surface implementation, and records no merged Plan/Interface contract. The documented Split workflow must be completed before shipping. (docs/development-process.md:76-96.)

Important follow-ups

  • Cache the Build-time source capability rather than querying ListWorking for each operation: transient registry faults currently flap projects off (AC1.1; project_service.go:217-224).
  • Add restart-level source-revocation recovery coverage, full HTTP lifecycle parity, and a real UI journey that sends a prompt after adopting the Project Session.
  • Remove committed .claude/plans/project-working-mvp/ orchestration state; the repository contract requires it under ignored .scratch/orchestrate/.

Two panel agents (security and reuse) were unavailable/partial due provider failures, so those axes should be rerun when this is brought out of draft. No CI checks are currently attached.

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.

2 participants