pages / example / strategy_tradingagents
canister coord://offchain/genie/program/strategy_tradingagents@v1/ba0168d38437702b · v1 · artifact root 0xba0168d38437702b44454b8ea6812c33dd2a2cf2fdc0564ab4aa63b988ba9b84 · previous none (first version) · superroot at publish not sealed yet
sealed cases that reached it: 0 — sealed cases that reached this word (the store counts, never reads)
strategy tradingagents (a .genie program) in the studio: 7 symptoms, 8 fixes
// _GENIE_CUBICLE_STRATEGY_v1_ — TradingAgents (TauricResearch/TradingAgents, the multi-agent LLM desk) rebuilt as one genie program of two // strategies, each graded alone by the reader gate. The analyst is the market analyst's indicator reading turned into bar maths: the // cubicle.script market_analyst.cubicle.yaml beside this file (its runner hash below; 4685b858 on cubicle-script 0.1.0, here and on 116). // The desk is the LLM graph (analysts, bull and bear, the trader, the risk debate, the portfolio manager): the models write a word, code // turns the word into an action (taifoon.trading.decision.v1) and the agent's own calls are the answers the gate grades. Grading both // is the ablation the original never runs: the desk must beat its own indicator reading, not only a timing null. Both proposals compile // to shadow / not_proven; only the gate's verdict lets a desk trade either. genie strategy_tradingagents v1 about "TradingAgents on NQ as two strategies the reader gate grades alone: the indicator reading as a script, the LLM desk as its own calls" use product taifoon.gpu market.price agent analyst is "the market analyst's indicators as bar maths: the fast average over the slow, strength between its bounds, out on the cross" states written replayed graded proven not_proven ungradeable start written final proven not_proven ungradeable failed not_proven ungradeable on cron "10 7 * * *" move written -> replayed runs sha256:4685b8582d0bec3dd9907107fa5ce26ef3f076f1ca8c8f2e5f89610968acacc6 market NQ bars 1h reads script needs ema needs sma needs rsi needs atr meter market.price hop offer_in move replayed -> graded desk fest-nq graded_by reader_gate holdout 0.3 cost 8 broken complement broken time_shift_24h broken week_shuffle mode shadow hop graded move graded -> proven when gate.verdict == "PROVEN" draws by_verdict hop graded move graded -> not_proven when gate.verdict == "NOT_PROVEN" hop graded move graded -> ungradeable when gate.verdict == "UNGRADEABLE" hop graded refuse self_proven "a program never declares its desk live or proven: only the reader gate's verdict lets the desk trade" say replayed "The script ran over the gate's window, bar by bar, the same frames on every replay" next written replayed "Run the indicator reading over the gate's window" agent llm_desk is "the LLM desk: analysts, bull and bear, the trader, the risk debate and the manager write a word; code turns it into an action" states dated analysed debated planned risked decided answered graded proven not_proven ungradeable start dated final proven not_proven ungradeable failed not_proven ungradeable on cron "0 22 * * 1-5" move dated -> analysed market NQ verb market.candles compress 1h 1 proves causality meter taifoon.gpu hop offer_in move analysed -> debated meter taifoon.gpu hop classify move debated -> planned meter taifoon.gpu hop classify move planned -> risked meter taifoon.gpu hop classify move risked -> decided when decision.schema == "taifoon.trading.decision.v1" meter taifoon.gpu hop delivered move decided -> answered reads answers desk fest-nq graded_by reader_gate holdout 0.3 cost 8 broken complement broken time_shift_24h broken week_shuffle mode shadow hop delivered move answered -> graded hop graded move graded -> proven when gate.verdict == "PROVEN" draws by_verdict hop graded move graded -> not_proven when gate.verdict == "NOT_PROVEN" hop graded move graded -> ungradeable when gate.verdict == "UNGRADEABLE" hop graded refuse self_proven "a program never declares its desk live or proven: only the reader gate's verdict lets the desk trade" refuse word_is_not_an_order "a model writes BUY, SELL or HOLD; the action (enter, exit, stand aside) is code, from the word and the position" say analysed "The analysts read the market's candles up to the session close and nothing after it" say decided "The manager's word became an action by code: a long entry answers BUY, anything else answers HOLD" say answered "The day's call holds until the next one, and the gate grades the calls on windows it never tuned on" next dated analysed "Read the day's candles and run the analysts" next graded proven "Only a PROVEN verdict draws the layer and lets the desk trade" knowledge symptom "the desk is proven but the analyst is too" caused_by "the LLM may only be repeating its indicators" fixed_by "compare the two records: the desk earns its model cost only where it beats the analyst on the same holdout" symptom "the desk is ungradeable" caused_by "the agent stopped filing decisions: a turn no decision covers is dropped" fixed_by "file one decision per session day; the gate drops a turn no call covers" fix "compare the two records: the desk earns its model cost only where it beats the analyst on the same holdout" opens graded fix "file one decision per session day; the gate drops a turn no call covers" opens delivered rule "the bar maths lives in the cubicle.script; the models write words; code writes the action" term "ablation" is "grading the indicator reading alone beside the LLM desk, so the desk is measured against what it reads"