2.5 KiB
2.5 KiB
n8n Thesis Builder Debug Checkpoint (2026-01-04)
Summary
- Workflow:
Options recommendation Engine Core LOCAL v2(idNupt4vBG82JKFoGc). - Primary issue:
AI - Thesis Builderreturns garbled output even when workflow succeeds. - Confirmed execution with garbled output: execution
7890(statussuccess).
What changed in the workflow
Only this workflow was modified:
Code in JavaScript9now pullssymbolfromCode7(trigger) instead of AI output.HTTP Request13query forced to the stock symbol to avoid NewsAPI query-length errors.Trim Thesis Datanode inserted betweenAggregate2->AI - Thesis Builder.AI - Thesis Builderprompt simplified to only: symbol, price, news, technicals.Code10now caps news items and string length.
Last successful run details (execution 7890)
AI - Thesis Builderoutput is garbled (examplesymbolandthesisfields full of junk tokens).AI - Technicals Auditoroutput looks valid JSON (see sample below).Aggregate2payload size ~6.7KB;news~859 chars;tech~1231 chars;thesis_prompt~4448 chars.- Garbling persists despite trimming input size; likely model/wrapper settings or response format handling.
Sample AI - Thesis Builder output (garbled)
- symbol:
6097ig5ear18etymac3ofy4ppystugamp2llcashackicset0ovagates-hstt.20t*6fthm--offate9noptooth(2ccods+5ing, or 7ACYntat?9ur);8ot1ut - thesis: (junk tokens, mostly non-words)
- confidence:
0
Sample AI - Technicals Auditor output (valid JSON)
{
"output": {
"timeframes": [
{ "interval": "1m", "valid": true, "features": { "trend": "BEARISH" } },
{ "interval": "5m", "valid": true, "features": { "trend": "BEARISH" } },
{ "interval": "15m", "valid": true, "features": { "trend": "BEARISH" } },
{ "interval": "1h", "valid": true, "features": { "trend": "BULLISH" } }
],
"optionsRegime": { "priceRegime": "TRENDING", "volRegime": "EXPANDING", "nearTermSensitivity": "HIGH" },
"dataQualityScore": 0.5,
"error": "INSUFFICIENT_DATA"
}
}
Open issues
- Thesis Builder garbling persists even with small prompt; likely model/wrapper output issue.
- Need to confirm whether llama.cpp wrapper is corrupting output or model is misconfigured for JSON-only output.
Useful commands
- Last runs:
SELECT id, status, finished, "startedAt" FROM execution_entity WHERE "workflowId"='Nupt4vBG82JKFoGc' ORDER BY "startedAt" DESC LIMIT 5; - Export workflow:
sudo docker exec ix-n8n-n8n-1 n8n export:workflow --id Nupt4vBG82JKFoGc --output /tmp/n8n_local_v2.json