Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat(genome): add PER2 and CRY1 chronotype markers and cross-project links
Adam Eivye1c8d28f7b2f
diff --git a/.changelog/v0.12.x.md b/.changelog/v0.12.x.mdindex cedae06b43..e2f2aeb305 100644--- a/.changelog/v0.12.x.md+++ b/.changelog/v0.12.x.md@@ -694,6 +694,13 @@ This release adds branch management and automated release workflow capabilities- `client/src/components/digital-twin/tabs/GenomeTab.jsx` — Integrated EpigeneticTracker component between curated markers and ClinVar sections- `client/src/services/api.js` — Added 7 epigenetic API functions+### Digital Twin — Chronotype Gene Markers & Cross-Project Linking+- **2 new chronotype SNP markers** added to the Sleep & Circadian category in the curated genome marker set:+ - **PER2 (rs35333999)**: Core circadian clock gene driving the negative feedback loop; variants affect morning/evening preference and are linked to Familial Advanced Sleep Phase Syndrome+ - **CRY1 (rs2287161)**: Circadian feedback loop repressor; gain-of-function variant lengthens circadian period and is strongly associated with Delayed Sleep Phase Disorder+- **Brain project cross-links**: Genome Section project now documents connections to Chronotype Trait idea (chronotype markers feed chronotype derivation) and Goal Tracker project (longevity/cardiovascular markers feed life-expectancy estimates)+- **Goal Tracker upstream dependency**: Goal Tracker project notes now reference specific genome longevity and cardiovascular markers that will feed adjusted life-expectancy modeling+### Digital Twin — CLI Provider Support for All AI Functions- **Unified provider dispatch**: Refactored 8 functions in `digital-twin.js` that had direct `fetch()` calls to `provider.endpoint` (API-only) to use the existing `callProviderAI()` helper which supports both API and CLI providers- **Affected functions**: `runSingleTest`, `scoreTestResponse`, `generateEnrichmentQuestion`, `analyzeEnrichmentList`, `detectContradictions`, `generateDynamicTests`, `analyzeWritingSamples`, `extractTraits`, `calculateConfidence`, `analyzeWithPrompt`diff --git a/server/lib/curatedGenomeMarkers.js b/server/lib/curatedGenomeMarkers.jsindex 72baab8ab9..dccde612e5 100644--- a/server/lib/curatedGenomeMarkers.js+++ b/server/lib/curatedGenomeMarkers.js@@ -752,6 +752,40 @@ export const CURATED_MARKERS = [{ genotypes: ['A/A'], status: 'beneficial' }]},+ {+ rsid: 'rs35333999',+ gene: 'PER2',+ name: 'Period Circadian Clock 2',+ category: 'sleep',+ description: 'PER2 is a core circadian clock gene that drives the negative feedback loop controlling ~24-hour rhythms. Variants affect morning/evening preference and sleep timing. PER2 mutations cause Familial Advanced Sleep Phase Syndrome (FASPS) in severe cases.',+ implications: {+ beneficial: 'C/C — standard PER2 function. Normal circadian period length.',+ typical: 'C/T — mildly shifted circadian timing. May trend toward earlier or later sleep phase depending on other clock genes.',+ concern: 'T/T — altered PER2 function. More pronounced chronotype shift. May benefit from timed light exposure and consistent sleep-wake scheduling.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/T', 'T/C'], status: 'typical' },+ { genotypes: ['T/T'], status: 'concern' }+ ]+ },+ {+ rsid: 'rs2287161',+ gene: 'CRY1',+ name: 'Cryptochrome Circadian Clock 1',+ category: 'sleep',+ description: 'CRY1 is a key repressor in the circadian feedback loop. A gain-of-function variant lengthens the circadian period, strongly associated with Delayed Sleep Phase Disorder (DSPD). Carriers naturally drift toward later sleep-wake times.',+ implications: {+ beneficial: 'C/C — standard CRY1 function. Normal circadian period (~24 hours).',+ typical: 'C/G — one variant allele. Mildly extended circadian period. Slight evening tendency.',+ concern: 'G/G — extended circadian period. Strong evening chronotype and delayed sleep onset. Associated with DSPD. Timed morning light exposure and evening light restriction are particularly effective.'+ },+ rules: [+ { genotypes: ['C/C'], status: 'beneficial' },+ { genotypes: ['C/G', 'G/C'], status: 'typical' },+ { genotypes: ['G/G'], status: 'concern' }+ ]+ },// === ATHLETIC PERFORMANCE ==={