Token Economics
70–100× Fewer Tokens. Here’s the Math.
Every time an LLM generates a D365 artifact from scratch, it pays three hidden costs — and the retry loop alone costs more than everything else combined.
Schema Context 5–15K tokens/call
D365 XML schema refs, folder conventions, namespace rules — injected into the prompt every single call. generate_fo_artifacts: zero. 23,732 lines of encoded knowledge built into the engine.
Raw XML Output 15–25K tokens
The LLM generates full XML text token by token — often structurally wrong on the first attempt. generate_fo_artifacts: server-side generation, ~200 token response summary.
Retry Loops 3–10 cycles × 8–22K each
Build → read error log → re-prompt with error context → re-generate → build again. This cycle consumes 60–80% of the total token budget. generate_fo_artifacts: zero retries needed.