This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is an implemented interactive CV/résumé system (in–midst–my-life) built around the Inverted Interview paradigm: an employer visits the candidate’s link, answers questions about their role and culture, and the system assembles a role-curated CV view from the candidate’s identity ledger. See docs/INVERTED-INTERVIEW.md for the full paradigm design.
The project has progressed from design documents to a working monorepo implementation with:
life-my--midst--in/
├── apps/
│ ├── web/ Next.js 16 UI dashboard (3000)
│ ├── api/ Fastify REST API (3001) - Profile CRUD, narrative endpoints, taxonomy
│ └── orchestrator/ Node.js worker service (3002) - Task queue, GitHub webhooks, agent execution
├── packages/
│ ├── schema/ Zod schemas & TypeScript types (identity, profiles, masks, epochs, stages)
│ ├── core/ Business logic (mask matching, crypto, job handling, VCs)
│ ├── content-model/ Narrative generation & JSON-LD transforms
│ └── design-system/ Shared UI primitives
├── infra/ Docker Compose, Helm charts, Dockerfiles, PaaS configs
├── scripts/ Dev utilities (dev-up.sh, dev-shell.sh, migrations)
└── docs/ Architecture docs and security guidelines
# Install all dependencies (monorepo)
pnpm install
# Update a single package (e.g., Next.js)
pnpm update next
# Check workspace structure
pnpm list --depth=0
# Build all packages (respects Turbo dependency graph)
pnpm build
# Run all dev servers (web, API, orchestrator) in parallel
pnpm dev
# Watch-mode TypeScript checks
pnpm typecheck
# Lint entire monorepo
pnpm lint
# Spin up PostgreSQL + Redis via Docker Compose
scripts/dev-up.sh
# Open psql/redis-cli shell to dev services
scripts/dev-shell.sh
# Run API migrations (idempotent)
pnpm --filter @in-midst-my-life/api migrate
# Run orchestrator migrations (idempotent)
pnpm --filter @in-midst-my-life/orchestrator migrate
# Seed demo data into both services
pnpm --filter @in-midst-my-life/api seed
pnpm --filter @in-midst-my-life/orchestrator seed
# Run all unit tests
pnpm test
# Watch mode (auto-rerun on changes)
pnpm test:watch
# Run integration tests (requires INTEGRATION_POSTGRES_URL set)
pnpm integration
# Integration tests for specific service
pnpm --filter @in-midst-my-life/api integration
pnpm --filter @in-midst-my-life/orchestrator integration
# Generate coverage report (runs on CI only)
CI=true pnpm test
# Run command in specific workspace
pnpm --filter @in-midst-my-life/schema build
pnpm --filter @in-midst-my-life/api dev
pnpm --filter @in-midst-my-life/web test
# Shorthand (if app name is unique)
pnpm --filter web dev
pnpm --filter api test
pnpm --filter orchestrator test:watch
All data models are defined in packages/schema/ using Zod. This is the single source of truth:
identity.ts - Identity & personal thesisprofile.ts - Complete user profilemask.ts - Identity masks (15+ types)epoch.ts - Temporal periodsstage.ts - Career stagesnarrative.ts - Narrative block structureverification.ts - DID/VC related schemasConsuming packages import types and validators from here.
API (apps/api) follows hexagonal architecture:
src/validation/ - Input validators (request contracts)src/services/ - Core business logic (no framework dependencies)src/routes/ - Fastify route handlers (thin orchestration layer)src/db/ - Repository pattern (abstracts Postgres)packages/content-model/ transforms profiles into different outputs:
Core matching logic in packages/core/maskMatching.ts:
# .env.local or environment variables
DATABASE_URL=postgresql://user:pass@localhost:5432/midst_dev
POSTGRES_URL=postgresql://user:pass@localhost:5432/midst_dev # API specific
REDIS_URL=redis://localhost:6379
NODE_ENV=development
# Use separate databases to avoid touching dev data
INTEGRATION_POSTGRES_URL=postgresql://user:pass@localhost:5432/midst_test
INTEGRATION_REDIS_URL=redis://localhost:6379/1
Keep distinct databases per environment:
midst_dev - Developmentmidst_test - Unit/integration testingmidst_integration - CI environmentmidst_prod - ProductionMigrations are idempotent and safe to re-run across environments.
TypeScript: Strict mode enforced (tsconfig.json):
Linting: ESLint + Prettier (monorepo root config)
@typescript-eslint rules including strict async/await enforcementeslint.config.mjs (ESLint 9 flat config), .prettierrcTesting: Vitest with coverage thresholds (vitest.config.ts)
CI=true)File Size Limits (from docs/seed.yaml):
packages/*packages/content-model, packages/core can import from packages/schemaindex.ts exports)packages/schema cannot import from packages/content-model or packages/coreGET /health - Returns { status: "ok" } JSONGET /ready - Returns 200 if dependencies healthyGET /metrics - Prometheus-format metrics (plain text)GET /taxonomy/masks - List all identity masksGET /taxonomy/epochs - List all temporal epochsGET /taxonomy/stages - List all career stagesGET /profiles/:id - Fetch complete profilePOST /profiles/:id/masks/select - Select mask contextPOST /profiles/:id/narrative - Generate narrative blocksGET /profiles/:id/export/jsonld - Semantic exportGET /profiles/:id/export/vc - Verifiable credential exportGET /profiles/:id/export/pdf - PDF resumeSee apps/api/openapi.yaml for full contract.
Worker service at :3002:
GET /tasks - List queued tasksGET /tasks/:id/history - Task execution historyPOST /webhooks/github - GitHub webhook ingestionFull local development with infra/docker-compose.yml:
# Bring up all services (with migrations/seeds)
docker-compose -f infra/docker-compose.yml --profile init up
# Or step by step
docker-compose -f infra/docker-compose.yml up postgres redis
docker-compose -f infra/docker-compose.yml up api orchestrator
docker-compose -f infra/docker-compose.yml up web
Services:
pnpm dev separately)Tests that touch real DB/Redis require INTEGRATION_* env vars:
Example:
# In CI/CD, either:
# 1. Skip integration (don't set INTEGRATION_* vars)
# 2. Run against test databases (set vars, use separate DBs)
INTEGRATION_POSTGRES_URL=postgresql://localhost/midst_test \
INTEGRATION_REDIS_URL=redis://localhost/1 \
pnpm integration
Modular monorepo with these principles:
The project is feature-complete (65+ commits on master, zero open issues/PRs). All roadmap phases (0–7) plus API hardening, polish sprints, and dependency upgrades are done. See docs/CHANGELOG.md for full history.
packages/schema/apps/api/src/services/apps/api/src/routes/apps/api/test/apps/api/openapi.yamlpackages/schema/src/profile.tspackages/content-model/src/narrative.tsapps/api/src/scripts/seed.tspnpm test (unit) + pnpm integration (with live DB)# From monorepo root
pnpm --filter @in-midst-my-life/api test -- src/services/maskMatching.test.ts
# From within app/package directory
cd apps/api && pnpm test -- src/services/maskMatching.test.ts
# Open interactive psql to dev database
scripts/dev-shell.sh
# View migration history
\d schema_migrations;
# Check current state
SELECT COUNT(*) FROM profiles;
SELECT * FROM masks LIMIT 5;
| Organ: ORGAN-III (Commerce) | Tier: standard | Status: GRADUATED |
Org: organvm-iii-ergon |
Repo: life-my--midst--in |
ORGAN-IV: product-artifactorganvm-vi-koinonia/community-hub: community_signalorganvm-vii-kerygma/social-automation: distribution_signalORGAN-IV: governance-rulesclassroom-rpg-aetheria, gamified-coach-interface, trade-perpetual-future, fetch-familiar-friends, sovereign-ecosystem--real-estate-luxury, public-record-data-scrapper, search-local--happy-hour, multi-camera--livestream--framework, universal-mail--automation, mirror-mirror, the-invisible-ledger, enterprise-plugin, virgil-training-overlay, tab-bookmark-manager, a-i-chat--exporter … and 16 more
Last synced: 2026-04-14T21:31:55Z
If .conductor/active-handoff.md exists, READ IT FIRST before doing any work.
It contains constraints, locked files, conventions, and completed work from the
originating agent. You MUST honor all constraints listed there.
If the handoff says “CROSS-VERIFICATION REQUIRED”, your self-assessment will NOT be trusted. A different agent will verify your output against these constraints.
At the end of each session that produces or modifies files:
organvm session review --latest to get a session summaryorganvm session plans --project .organvm session export <id> --slug <slug>organvm prompts distill --dry-run to detect uncovered operational patternsTranscripts are on-demand (never committed):
organvm session transcript <id> — conversation summaryorganvm session transcript <id> --unabridged — full audit trailorganvm session prompts <id> — human prompts onlyPlans: 269 indexed | Chains: 5 available | SOPs: 121 active
Discover: organvm plans search <query> | organvm chains list | organvm sop lifecycle
Library: meta-organvm/praxis-perpetua/library/
| Scope | Phase | Name | Description |
|---|---|---|---|
| system | any | atomic-clock | The Atomic Clock |
| system | any | execution-sequence | Execution Sequence |
| system | any | multi-agent-dispatch | Multi-Agent Dispatch |
| system | any | session-handoff-avalanche | Session Handoff Avalanche |
| system | any | system-loops | System Loops |
| system | any | prompting-standards | Prompting Standards |
| system | any | research-standards-bibliography | APPENDIX: Research Standards Bibliography |
| system | any | phase-closing-and-forward-plan | METADOC: Phase-Closing Commemoration & Forward Attack Plan |
| system | any | research-standards | METADOC: Architectural Typology & Research Standards |
| system | any | sop-ecosystem | METADOC: SOP Ecosystem — Taxonomy, Inventory & Coverage |
| system | any | autonomous-content-syndication | SOP: Autonomous Content Syndication (The Broadcast Protocol) |
| system | any | autopoietic-systems-diagnostics | SOP: Autopoietic Systems Diagnostics (The Mirror of Eternity) |
| system | any | background-task-resilience | background-task-resilience |
| system | any | cicd-resilience-and-recovery | SOP: CI/CD Pipeline Resilience & Recovery |
| system | any | community-event-facilitation | SOP: Community Event Facilitation (The Dialectic Crucible) |
| system | any | context-window-conservation | context-window-conservation |
| system | any | conversation-to-content-pipeline | SOP — Conversation-to-Content Pipeline |
| system | any | cross-agent-handoff | SOP: Cross-Agent Session Handoff |
| system | any | cross-channel-publishing-metrics | SOP: Cross-Channel Publishing Metrics (The Echo Protocol) |
| system | any | data-migration-and-backup | SOP: Data Migration and Backup Protocol (The Memory Vault) |
| system | any | document-audit-feature-extraction | SOP: Document Audit & Feature Extraction |
| system | any | dynamic-lens-assembly | SOP: Dynamic Lens Assembly |
| system | any | essay-publishing-and-distribution | SOP: Essay Publishing & Distribution |
| system | any | formal-methods-applied-protocols | SOP: Formal Methods Applied Protocols |
| system | any | formal-methods-master-taxonomy | SOP: Formal Methods Master Taxonomy (The Blueprint of Proof) |
| system | any | formal-methods-tla-pluscal | SOP: Formal Methods — TLA+ and PlusCal Verification (The Blueprint Verifier) |
| system | any | generative-art-deployment | SOP: Generative Art Deployment (The Gallery Protocol) |
| system | any | market-gap-analysis | SOP: Full-Breath Market-Gap Analysis & Defensive Parrying |
| system | any | mcp-server-fleet-management | SOP: MCP Server Fleet Management (The Server Protocol) |
| system | any | multi-agent-swarm-orchestration | SOP: Multi-Agent Swarm Orchestration (The Polymorphic Swarm) |
| system | any | network-testament-protocol | SOP: Network Testament Protocol (The Mirror Protocol) |
| system | any | open-source-licensing-and-ip | SOP: Open Source Licensing and IP (The Commons Protocol) |
| system | any | performance-interface-design | SOP: Performance Interface Design (The Stage Protocol) |
| system | any | pitch-deck-rollout | SOP: Pitch Deck Generation & Rollout |
| system | any | polymorphic-agent-testing | SOP: Polymorphic Agent Testing (The Adversarial Protocol) |
| system | any | promotion-and-state-transitions | SOP: Promotion & State Transitions |
| system | any | recursive-study-feedback | SOP: Recursive Study & Feedback Loop (The Ouroboros) |
| system | any | repo-onboarding-and-habitat-creation | SOP: Repo Onboarding & Habitat Creation |
| system | any | research-to-implementation-pipeline | SOP: Research-to-Implementation Pipeline (The Gold Path) |
| system | any | security-and-accessibility-audit | SOP: Security & Accessibility Audit |
| system | any | session-self-critique | session-self-critique |
| system | any | smart-contract-audit-and-legal-wrap | SOP: Smart Contract Audit and Legal Wrap (The Ledger Protocol) |
| system | any | source-evaluation-and-bibliography | SOP: Source Evaluation & Annotated Bibliography (The Refinery) |
| system | any | stranger-test-protocol | SOP: Stranger Test Protocol |
| system | any | strategic-foresight-and-futures | SOP: Strategic Foresight & Futures (The Telescope) |
| system | any | styx-pipeline-traversal | SOP: Styx Pipeline Traversal (The 7-Organ Transmutation) |
| system | any | system-dashboard-telemetry | SOP: System Dashboard Telemetry (The Panopticon Protocol) |
| system | any | the-descent-protocol | the-descent-protocol |
| system | any | the-membrane-protocol | the-membrane-protocol |
| system | any | theoretical-concept-versioning | SOP: Theoretical Concept Versioning (The Epistemic Protocol) |
| system | any | theory-to-concrete-gate | theory-to-concrete-gate |
| system | any | typological-hermeneutic-analysis | SOP: Typological & Hermeneutic Analysis (The Archaeology) |
| unknown | any | SOP-SS-ATM-001_001-atomic-decomposition | SOP-SS-ATM-001_001: Atomic Decomposition & Coverage Proof |
| unknown | any | SOP-SS-CLT-001_001-ontology_client_decisions | SOP-SS-CLT-001_001-ontology_client_decisions |
| unknown | any | SOP-SS-CNT-001_001-content-extraction-and-node-injection | SOP-SS-CNT-001_001: Content Extraction & Node Injection |
| unknown | any | SOP-SS-ISS-001-001-ontology-issue-specification | SOP-SS-ISS-001-001-ontology-issue-specification |
| unknown | any | SOP-SS-PRC-001_001-ontology_meta_process | SOP-SS-PRC-001-001-ontology-meta-process |
| unknown | any | SOP-SS-QAB-001_001-project-board-qa | SOP-SS-QAB-001_001-project-board-qa |
| unknown | any | SOP-SS-TRK-001_001-ontology_issue_tracking | SOP-SS-TRK-001_001-ontology_issue_tracking |
| unknown | any | registry | SOP Registry — Sovereign Systems |
Linked skills: cicd-resilience-and-recovery, continuous-learning-agent, evaluation-to-growth, genesis-dna, multi-agent-workforce-planner, promotion-and-state-transitions, quality-gate-baseline-calibration, repo-onboarding-and-habitat-creation, structural-integrity-audit
Prompting (Anthropic): context 200K tokens, format: XML tags, thinking: extended thinking (budget_tokens)
Run: organvm ecosystem show life-my--midst--in |
organvm ecosystem validate --organ III |
| Convergences: 20 | Run: organvm network map --repo life-my--midst--in |
organvm network suggest |
UID: ent_repo_01KKKX3RVNV2N0RS3YQ1XPSMZ0 |
Matched by: primary_name |
Resolve: organvm ontologia resolve life-my--midst--in |
History: organvm ontologia history ent_repo_01KKKX3RVNV2N0RS3YQ1XPSMZ0 |
| Variable | Value | Scope | Updated |
|---|---|---|---|
active_repos |
89 | global | 2026-04-14 |
archived_repos |
54 | global | 2026-04-14 |
ci_workflows |
107 | global | 2026-04-14 |
code_files |
0 | global | 2026-04-14 |
dependency_edges |
60 | global | 2026-04-14 |
operational_organs |
10 | global | 2026-04-14 |
published_essays |
29 | global | 2026-04-14 |
repos_with_tests |
0 | global | 2026-04-14 |
sprints_completed |
33 | global | 2026-04-14 |
test_files |
0 | global | 2026-04-14 |
total_organs |
10 | global | 2026-04-14 |
total_repos |
145 | global | 2026-04-14 |
total_words_formatted |
0 | global | 2026-04-14 |
total_words_numeric |
0 | global | 2026-04-14 |
total_words_short |
0K+ | global | 2026-04-14 |
| Metrics: 9 registered | Observations: 32128 recorded |
Resolve: organvm ontologia status |
Refresh: organvm refresh |
| AMMOI: 58% | Edges: 42 | Tensions: 33 | Clusters: 5 | Adv: 23 | Events(24h): 32336 |
| Structure: 8 organs / 145 repos / 1654 components (depth 17) | Inference: 98% | Organs: META-ORGANVM:65%, ORGAN-I:53%, ORGAN-II:48%, ORGAN-III:54% +5 more | |||
| Last pulse: 2026-04-14T21:31:36 | Δ24h: -1.0% | Δ7d: n/a |
| Dialect: EXECUTABLE_ALGORITHM | Classical Parallel: Arithmetic | Translation Role: The Engineering — proves that proofs compute |
Strongest translations: I (formal), II (structural), VII (structural)
Scan: organvm trivium scan III <OTHER> |
Matrix: organvm trivium matrix |
Synthesize: organvm trivium synthesize |
| Status: MISSING | Symmetry: 0.0 (VACUUM) |
Nature demands a documentation counterpart. This formation maintains its narrative record in docs/logos/.
Compliance: Formation is currently void.
This repository is a managed component of the ORGANVM meta-workspace.
conductor patch for system status and work queue.FRAME -> SHAPE -> BUILD -> PROVE workflow.conductor wip promote.