Skip to content

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

fix(digital-twin): add missing stage config entries for 9 soul/twin prompt templates

Adam Eivyd1f6abbae348
diff --git a/.changelog/v0.12.x.md b/.changelog/v0.12.x.md
index 63c75cbd2a..e68bef8cac 100644
--- a/.changelog/v0.12.x.md
+++ b/.changelog/v0.12.x.md
@@ -616,6 +616,10 @@ This release adds branch management and automated release workflow capabilities
- `client/src/pages/DigitalTwin.jsx` — Imported and rendered TasteTab
- `client/src/services/api.js` — Added 7 taste questionnaire API functions
+### Digital Twin — Missing Stage Config for Soul/Twin Prompt Templates
+- **Fix**: 9 prompt templates (`soul-contradiction-detector`, `soul-enrichment`, `soul-enrichment-process`, `soul-test-generator`, `soul-test-scorer`, `soul-writing-analyzer`, `twin-trait-extractor`, `twin-confidence-analyzer`, `twin-import-analyzer`) had `.md` template files in `data/prompts/stages/` but were missing entries in `stage-config.json`. The toolkit's `buildPrompt()` requires both a config entry and a template file — without the config entry, all calls returned "not found" errors.
+- **Solution**: Added all 9 missing stage entries to both `data/prompts/stage-config.json` and `data.sample/prompts/stage-config.json`
+
### 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/data.sample/prompts/stage-config.json b/data.sample/prompts/stage-config.json
index e28c017430..e9c42aa339 100644
--- a/data.sample/prompts/stage-config.json
+++ b/data.sample/prompts/stage-config.json
@@ -66,6 +66,69 @@
"provider": "lmstudio",
"returnsJson": true,
"variables": []
+ },
+ "soul-contradiction-detector": {
+ "name": "Soul Contradiction Detector",
+ "description": "Analyze soul documents for internal contradictions and inconsistencies",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "soul-enrichment": {
+ "name": "Soul Enrichment",
+ "description": "Generate follow-up questions to enrich soul documents",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "soul-enrichment-process": {
+ "name": "Soul Enrichment Processor",
+ "description": "Process enrichment answers for inclusion in soul documents",
+ "model": "default",
+ "returnsJson": false,
+ "variables": []
+ },
+ "soul-test-generator": {
+ "name": "Soul Test Generator",
+ "description": "Generate behavioral tests from soul content",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "soul-test-scorer": {
+ "name": "Soul Test Scorer",
+ "description": "Score AI responses against expected soul behavioral patterns",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "soul-writing-analyzer": {
+ "name": "Soul Writing Analyzer",
+ "description": "Extract communication patterns from writing samples",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "twin-trait-extractor": {
+ "name": "Twin Trait Extractor",
+ "description": "Extract quantitative personality traits from twin documents",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "twin-confidence-analyzer": {
+ "name": "Twin Confidence Analyzer",
+ "description": "Analyze completeness and confidence of twin personality definition",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
+ },
+ "twin-import-analyzer": {
+ "name": "Twin Import Analyzer",
+ "description": "Extract personality insights from imported external data",
+ "model": "default",
+ "returnsJson": true,
+ "variables": []
}
}
}