Explanation
Understanding-oriented discussions of architecture, design choices, and in-detail workings.
Explanation pages step back from specific tasks to clarify how Netherframe works under the hood and why it is designed the way it is. Read these when you want a deep mental model rather than a step-by-step recipe.
Start with the big picture
| Topic | What it explains |
|---|---|
| What is Netherframe? | The core idea, how a run works, and what belongs in your app versus state |
| Why Netherframe | Concrete failure modes in infrastructure delivery and how Netherframe compares with Terraform, OpenTofu, and Pulumi |
| Coming from another IaC tool | Stack-specific mental-model bridges for Terraform/OpenTofu, CloudFormation, AWS CDK, CDKTF, Pulumi, Ansible, Crossplane, Bicep, and SDKs |
| Choose your workflow | Hybrid execution versus legacy Terraform/OpenTofu compatibility, command routing, and state boundaries |
| Feature matrix | Side-by-side capabilities of hybrid execution and legacy synthesis |
Architecture and in-detail workings
A recommended reading order for understanding the engine from Python source down to provider RPCs and durable state:
- How Netherframe works (Architecture) — End-to-end pipeline: construct graph,
nf_autoid, runtime values, dependency-ordered planner,tfplugin6gRPC clients, orchestrator, state engines, and safety layers. - Apps, stacks, resources, and providers — Ownership, scopes, addressing (
<stack>.<type>.<id>), and why resource IDs must stay stable. - Providers & Runtime values and expressions — Deferred tokens, unknown values, f-string interpolation, Python-to-Terraform expression semantics, and what belongs in immediate Python versus the runtime graph.
- Cross-stack references & Dependencies and phases — Whole-app dependency graphs, cross-stack value flow, and how circular dependencies are broken by the phases system.
- Hybrid execution semantics — Exact default guarantees: planning order, unknown-value propagation, final-plan consistency, replacement ordering, state durability, retention invariants, deferred rounds, and explicit fail-closed boundaries.
- Security and trust model — Provider OpenPGP/hash verification, tamper-evident saved plans, configuration integrity, fail-closed defaults, and the trusted-Python execution boundary.
- Provider protocol (tfplugin5 / tfplugin6) — Subprocess handshake, gRPC stubs,
DynamicValue/go-ctyMessagePack encoding, private data, resource identities, and binary verification. - Backends and state — How document state prevents lost updates (locks, lineage/serial conditional writes, periodic persistence, checkpoints) and how PostgreSQL graph state enables row-level commits, fenced operations, and concurrent applies.
- Configuration and precedence model — Why Netherframe reads no
NF_*environment variables, how the five precedence layers interact, and how typed app inputs differ from settings. - Synthesis and output layout — How legacy export serializes constructs to Terraform JSON and schema-aware HCL.