Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.coreflux.org/llms.txt

Use this file to discover all available pages before exploring further.

Common LoT mistakes

These are the most frequent mistakes in LoT development. Avoid them whether you’re writing new code or reviewing existing output.
Anti-PatternWhy It’s BadDo This Instead
Omitting type casts in mathImplicit type handling leads to silent errorsAlways cast: PAYLOAD AS DOUBLE, GET TOPIC ... AS DOUBLE — see Operations
Triggering models on timestampsTimestamps update every tick — model fires constantlyTrigger on the primary data field: AS TRIGGER on value, not timestamp — see Schema definition
Inconsistent naming across modelssensorID in one model, sensor_id in anotherStandardize on snake_case for all field names — see Naming conventions
Using Python for native LoT tasksPython adds overhead for simple publish/get/if operationsUse Python only for math libraries, ML, API calls, or complex parsing
Leaving $SYS/# topics unrestrictedSystem topics contain broker commands and sensitive dataCreate a priority-10 Rule restricting PublishSys and SubscribeSys — see Rules syntax
Generic entity namesAction1, Rule1, MyRoute are meaningless in a system with 50 entitiesName by purpose: MonitorPressure, ProtectSysTopics, SensorDatabase
PUBLISH for internal stateBroadcasts data that only your own Actions needUse KEEP TOPIC for internal state; PUBLISH for external subscribers — see Writing reusable logic
Monolithic ActionsOne Action doing 15 things is hard to test and debugSplit into callable Actions with INPUT/OUTPUT — see One Action, One Job

Next Steps

Naming conventions

Entity, variable, and topic naming standards.

Writing reusable logic

Callables, wildcards, and KEEP vs PUBLISH patterns.
Last modified on May 20, 2026