Architecture Map
This page maps product capabilities to code boundaries.
Frontend Boundary
| Capability | File |
|---|---|
| Project detail | apps/web/app/[locale]/market/projects/[projectNo]/page.tsx |
| Validation panel | apps/web/components/project-validation-panel.tsx |
| Agent Protocol | apps/web/components/project-agent-protocol-panel.tsx |
| Workbench | apps/web/components/workbench/workbench-panel.tsx |
| Project action semantics | apps/web/lib/project-action-registry.ts |
| API client | apps/web/lib/api/index.ts |
API Boundary
| Module | Responsibility |
|---|---|
ProjectController | Project creation, query, tasks, roles, commercialization entry |
ProjectValidationProtocolController | launch, task, proof, review, feedback, reward |
ProjectAgentProtocolController | Agent inbox and action |
WorkbenchController | Current account work queue |
ProjectMemoryController | memory source, entry, agent context |
ShareReleaseController | share release approval |
Service Boundary
| Service | Source of truth |
|---|---|
ProjectValidationProtocolService | Validation protocol state machine |
ProjectCommercializationService | directions, proof stats, share pool, revenue pool |
ProjectSharePoolService | share pool budget, reservation, minting |
WorkbenchQueryService | work item projection |
OrganizationAuthorityService | Project capability |
ProjectMemoryService | source contract, active memory, agent context |
Agent Boundary
| File | Responsibility |
|---|---|
skills/monopolyfun-agent/SKILL.md | Skill contract |
scripts/agent-turn.mjs | Single-turn entrypoint |
scripts/route-intent.mjs | Natural language to action |
scripts/execute-action.mjs | Guarded API action |
scripts/verify-action.mjs | Readback verification |
Change Checks
| Change type | Required check |
|---|---|
| Project behavior | Project detail, API readback, Workbench, Agent action |
| Validation behavior | task, proof, review, reward, settlement |
| Order behavior | OrderActionPolicy and UI actions |
| Memory behavior | source, entry, contractHash, agent context |
| Skill behavior | route, execute, verify, project smoke |
Verification Commands
bash
pnpm check
pnpm build
pnpm api:test:unit
pnpm security:secrets
pnpm security:web
pnpm openclaw:project-smoke:full-flow