FAQ
Short answers to common questions about Netherframe. For deeper rationale, see Explanation.
Should I use hybrid execution or legacy synthesis?
Use hybrid execution (the default) for all new projects—it runs Terraform provider
binaries directly over gRPC with no Terraform or OpenTofu CLI needed. Use legacy
compatibility (nf synth) only when an existing pipeline requires exported Terraform
JSON. See Choose your workflow and the
feature matrix.
What is the difference between [tool.nf] and [tool.nf.config]?
[tool.nf] tells the CLI which apps exist (apps / hybrid_apps, terraform_apps /
legacy_apps) and which Python interpreter to invoke. [tool.nf.config] sets project-wide
execution and backend settings (concurrency, recovery strategy, state backend). See
Configuration reference.
Can one repository contain both hybrid and Terraform synthesis apps?
Yes. Register hybrid apps under [tool.nf].apps (or hybrid_apps) and synthesis apps
under [tool.nf].terraform_apps (or legacy_apps) in the same pyproject.toml.
Why does Netherframe not read NF_* environment variables?
Implicit environment variables can silently retarget a run or alter safety settings.
Every setting comes from a CLI flag, [tool.nf.config], code, or scoped machine-local
user config (~/.config/nf/config.toml), and app parameters come from typed ++ inputs.
See Configuration and precedence model.
Do I need generated provider packages?
No—generic Provider(nf_type=...) and Resource(nf_type=...) work with any provider
binary. Generated provider packages (nf generate providers) are recommended for real
projects because they provide typed constructors, keyword-only nested block dataclasses,
and editor completion.
Why does if resource.output.id: raise TypeError?
Because resource attributes are unknown while Python builds the construct tree, evaluating
an Expression or RuntimeValue as a boolean would silently branch the wrong way. Use
typed app inputs (++env=prod) for Python branching and @hybrid_runtime for logic that
runs during apply. See Providers and runtime values.
When should I use PostgreSQL graph state instead of S3/local document state?
Start with local state for learning and S3 (or GCS/Azure/document PostgreSQL) for standard
shared environments. Move to PostgreSQLGraphBackend when multiple teams apply disjoint
changes to one app concurrently (--concurrent-applies), or when you want row-level
fenced operation recovery and affected-scope planning. See
Backends and state.
Why did nf plan --expect-no-changes or nf apply exit with 3 or 4?
Netherframe uses disambiguated exit codes: 0 = ok, 1 = runtime error, 2 = CLI usage
error, 3 = changes or drift detected, 4 = incomplete apply with deferred changes
remaining. See Exit codes.