How the Pipeline Works
Execution flow in Pipeline:apply:
- Seed random generator (
Seedor generated seed) - Parse source to AST
- Apply configured steps in order
- Rename variables
- Unparse AST to Lua code
Seeding details
- If
Seed > 0: uses that fixed seed. - Else Prometheus attempts
openssl rand -hex 12for entropy. - If OpenSSL is unavailable, it falls back to
os.time()and logs a warning.
Variable renaming
After all steps finish, Prometheus renames identifiers using:
- selected
NameGenerator - configured
VarNamePrefix - language keyword table for selected
LuaVersion
Logging
Pipeline emits informational logs for each phase and step timing, including output size relative to source.