feat: Scaffold Chief MOG Officer framework and core architecture - #1
Open
gpsanant wants to merge 2 commits into
Open
feat: Scaffold Chief MOG Officer framework and core architecture#1gpsanant wants to merge 2 commits into
gpsanant wants to merge 2 commits into
Conversation
- Monorepo: pnpm workspaces + Turborepo with apps/web, apps/api, apps/worker - Shared packages: types, config, db, agents, ui, lib - Domain model: 10 entity types with full Drizzle ORM schema - Backend: Express API with health, project CRUD, analysis trigger stubs - Worker: Background job processor with polling, retry, agent execution - Agents: Common interface with 5 stub agents (SearchMog, Geo, RedditMog, CompetitorIntel, ContentFoundry) - Frontend: React + Vite with routing, layout, design tokens, 3 page shells - Database: Drizzle ORM + PostgreSQL via Docker, migration flow, seed script - Dev experience: ESLint, Prettier, TypeScript strict mode, env validation (Zod) - Docs: architecture.md, domain-model.md, agent-interface.md, dev-setup.md - CI: GitHub Actions for lint, typecheck, test Co-Authored-By: bot_apk <apk@cognition.ai>
Co-Authored-By: bot_apk <apk@cognition.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Scaffold Chief MOG Officer Framework and Core Architecture
Sets up the complete base framework for the Chief MOG Officer MVP. This is foundational scaffolding only — no full product logic yet.
What is included
Monorepo Structure (pnpm workspaces + Turborepo)
apps/web— React + Vite frontend with routing, layout, design tokensapps/api— Express backend with typed routes and middlewareapps/worker— Background job processor with polling and retryShared Packages
packages/types— Domain model type definitions (Project, CompanyProfile, Opportunity, etc.)packages/config— Environment validation with Zodpackages/db— Drizzle ORM schema, migrations, seed scriptpackages/agents— Agent interface + 5 stub agentspackages/ui— Reusable React components (Button, Card, StatusBadge)packages/lib— Logger and utilitiesDomain Model — 10 entity types with full Drizzle ORM schema:
Project, CompanyProfile, NarrativeModel, CompetitorProfile, Opportunity, Asset, Campaign, AgentRun, DailyDigest, User
Backend (API)
GET /api/health— Health check endpointGET /api/projects— List all projectsPOST /api/projects— Create project with company profileGET /api/projects/:id— Get single projectPOST /api/analysis/trigger— Trigger analysis runGET /api/analysis/opportunities— List opportunitiesWorker
Agents — Common interface with 5 stub implementations:
Frontend
Database
pnpm db:migrate)pnpm db:seed)Developer Experience
Documentation
docs/architecture.md— System architecture overviewdocs/domain-model.md— Entity relationship detailsdocs/agent-interface.md— Agent contract specificationdocs/dev-setup.md— Local development setup guideVerification
pnpm typecheck— All 9 packages passpnpm lint— All 9 packages passpnpm install— 309 packages installed successfullyNote on CI
The pre-existing CI workflow checks for a Dockerfile. The GitHub token does not have
workflowscope to update.github/workflows/ci.yml, so the original workflow was preserved. The CI failure is from the pre-existing check, not from this scaffolding code.