Skip to content

Implement Mission Control Phase 1 web runtime#39

Draft
Dodhon wants to merge 6 commits into
mainfrom
codex/mission-control-phase1-implementation-plan
Draft

Implement Mission Control Phase 1 web runtime#39
Dodhon wants to merge 6 commits into
mainfrom
codex/mission-control-phase1-implementation-plan

Conversation

@Dodhon

@Dodhon Dodhon commented Feb 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Implements Phase 1 Mission Control web runtime in web/ using Next.js + TypeScript.
  • Adds Convex schema and function modules for tasks, scheduler, memory, and activity contracts.
  • Adds Next API routes and UI screens for:
    • /tasks
    • /scheduler
    • /memory
    • /activity
  • Preserves existing legacy Express ops board and adds root wrapper scripts for web/* checks.
  • Implements testing/validation gates from the plan:
    • contract tests (test:tasks, test:scheduler)
    • memory citation coverage (test:memory)
    • Playwright e2e (test:e2e)
    • browser automation smoke (test:browser:smoke)
    • schema presence check (convex:schema:check)

Plan Docs

  • dev_plans/agentdeck-mission-control-phase1-implementation.md
  • dev_plans/agentdeck-mission-control-nextjs-convex-v1.md

Verification (executed)

  • Root legacy checks:
    • npm run test:e2e
    • npm run test:browser:smoke
  • Web checks:
    • npm run web:lint
    • npm run web:convex:schema:check
    • npm run web:test:tasks
    • npm run web:test:scheduler
    • npm run web:test:memory ✅ (100% citation coverage in generated report)
    • npm run web:test:e2e
    • npm run web:test:browser:smoke
    • cd web && npm run build

Notes

  • web/ API routes automatically fall back to deterministic mock mode when Convex is not configured or unavailable.
  • Browser smoke screenshots are generated during verification in:
    • reports/browser-smoke/ops-board-smoke.png
    • web/reports/browser-smoke/mission-control-smoke.png

@Dodhon

Dodhon commented Feb 18, 2026

Copy link
Copy Markdown
Owner Author

Addressed reviewer feedback in the plan doc:

  1. Actor auth contract is now concrete (Convex ctx.auth.getUserIdentity() derivation, unauthenticated mutation rejection, internal mutation actor stamping, and client actor spoof ignore rule).
  2. Idempotency contract is now concrete (key formats, storage fields jobRuns.idempotencyKey and memoryDocs.ingestKey, duplicate-key behavior).
  3. Memory quality artifacts are now pinned (query set: web/tests/acceptance/memory-query-set.json; coverage report: web/reports/memory/citation-coverage.json; summary: web/reports/memory/citation-coverage.md).
  4. Cutover gate is now objective (V1–V5 green on two consecutive runs for the same commit SHA, plus explicit criteria C1–C5).

Updated file: dev_plans/agentdeck-mission-control-phase1-implementation.md.

@Dodhon

Dodhon commented Feb 18, 2026

Copy link
Copy Markdown
Owner Author

Updated testing clarity in the plan:

  • Added an explicit ordered execution protocol (preconditions, Run A/Run B sequence, failure policy).
  • Added a required test evidence bundle section with artifact paths and PR reporting format.
  • Added pass/fail interpretation rules per validation block (V1-V5).
  • Added Cutover Gate C6 requiring the evidence bundle to be present in the PR.

File updated: dev_plans/agentdeck-mission-control-phase1-implementation.md.

@Dodhon Dodhon changed the title Plan: Mission Control Phase 1 implementation Implement Mission Control Phase 1 web runtime Feb 18, 2026
@Dodhon

Dodhon commented Feb 18, 2026

Copy link
Copy Markdown
Owner Author

Convex setup update completed on this branch:

  • Ran npx convex dev --once in web/ and initialized a local deployment.
  • Generated Convex API/types in web/convex/_generated/*.
  • Resolved Convex runtime errors by removing Node built-ins from query/mutation files and adding runtime-safe helpers in web/convex/utils.ts.
  • Confirmed schema push/index creation succeeded.
  • Kept lint clean by excluding generated Convex files in web/eslint.config.mjs.

Current local config in web/.env.local:

  • CONVEX_DEPLOYMENT=anonymous:anonymous-web
  • NEXT_PUBLIC_CONVEX_URL=http://127.0.0.1:3210
  • NEXT_PUBLIC_CONVEX_SITE_URL=http://127.0.0.1:3211

Browser automation status:

  • Opened Convex auth/device flow via browser automation.
  • Cloud account linking requires interactive credential consent; local setup is complete and usable now.

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