Skip to content

RFC: Netherframe As A Universal Convergence Runtime

Status: Draft

Date: 2026-04-15

Owners: nf.core, nf.cli, future runtime maintainers

Summary

This RFC proposes a stricter and more ambitious architectural foundation for Netherframe.

Netherframe should not evolve into:

  • a Terraform-first framework with a few extra runtime modes
  • a collection of separate engines for Terraform-like, Kubernetes-like, Puppet-like, Nix-like, or Compose-like behavior
  • a framework that wraps existing domains one by one and inherits their conceptual boundaries

Netherframe should instead become:

  • one universal convergence runtime
  • built on one universal managed-object model
  • driven by frameshots, not ad hoc refresh state
  • using capability adapters, not domain-locked drivers
  • using live logic as a first-class programmable layer
  • operating in instant mode or daemon mode
  • producing plans with explicit guarantees relative to a frameshot

The end goal is not to imitate existing engines.

The end goal is to define a runtime model strong enough to subsume the useful properties of current domains while exposing one coherent surface for:

  • planning
  • remediation
  • settlement
  • drift handling
  • approval
  • automation
  • cross-domain composition

Why This RFC Exists

Netherframe already contains several important building blocks:

  • a graph authoring model built around App, Stack, Resource, providers, and runtime values
  • dependency analysis and phase planning
  • a state engine and orchestrator
  • discovery concepts
  • a direct execution path that already escapes Terraform Core while still using Terraform providers

However, the active runtime still inherits a Terraform-shaped center of gravity.

Today, the implementation is still fundamentally organized around:

  • provider clients and provider registration
  • CRUD-like resource operations
  • plan/apply/read/delete flows
  • state blobs centered on resource attributes
  • refresh as a specialized helper rather than a universal observation model

That architecture can be stretched, but it does not cleanly support the stated long-term goal:

  • a single runtime that can create inspectable plans
  • run once or run forever
  • remediate drift continuously
  • support custom live logic
  • work across infrastructure, workloads, hosts, artifacts, and future substrates

This RFC replaces the earlier "multiple engine families" framing with a stricter claim:

  • there should be one runtime
  • there should be one universal state/change model
  • specialization should happen in object semantics, live logic, and capability adapters
  • not in the architecture's engine count

Core Thesis

The correct architectural center for Netherframe is not:

  • providers
  • CRUD
  • domain-specific drivers
  • separate execution engines per domain

It is:

  • a universal convergence loop
  • a universal managed-object model
  • a frameshot model
  • a plan model tied to frameshots
  • a capability-based adapter surface
  • live logic for programmable semantics
  • two runtime schedules:
  • instant
  • daemon

Everything else should be expressed in those terms.

Strategic Goal

Netherframe should become a runtime for desired-state convergence under inspectable frameshots.

In practical terms, that means Netherframe should eventually support, under one theory:

  • one-shot plan and apply behavior
  • long-lived drift remediation daemons
  • controller-style reconciliation
  • host configuration compliance and remediation
  • immutable realization and activation flows
  • custom programmable transition logic
  • strong plan guarantees when the world is inspected at a particular frameshot

The runtime should not ask:

  • "what engine are we using?"

It should ask:

  • "what objects exist?"
  • "what capabilities do we have to observe and act on them?"
  • "what live logic governs convergence?"
  • "are we running one cycle or an ongoing loop?"

Non-Goals

This RFC does not propose:

  • immediate replacement of Kubernetes, Terraform, Puppet, or Nix internals
  • building a native distributed cluster control plane in this phase
  • preserving every Terraform-era abstraction as a first-class permanent concept
  • pretending that all substrates can offer the same guarantees
  • hiding capability gaps behind vague "best effort" language

The runtime should be universal in model, not dishonest about capabilities.

Foundational Theory

The proposed runtime is a generalized convergence system.

Each managed object exists within a graph and is evaluated repeatedly against a coherent runtime snapshot.

Core Entities

For an object o during runtime cycle n, define:

  • D(o, n) as the normalized desired state
  • O(o, n) as the normalized observed state
  • F(o, n) as the relevant observed facts
  • C(o, n) as the available capabilities
  • P(o, n) as policy and approval context
  • R(o, n) as graph relations and dependencies
  • L(o) as the live-logic program associated with the object
  • H(o, n) as history and prior runtime knowledge

The runtime captures a frameshot:

  • Phi(n) = {D, O, F, C, P, R, H, mode, time, sequence markers}

From that frameshot, the runtime derives a plan:

  • Pi(n) = plan(Phi(n), L)

The runtime then executes transitions and evaluates settlement:

  • Sigma(n) = settle(Phi(n), Pi(n), execution_results, follow_up_observation)

This is intentionally broader than CRUD and broader than controller loops alone.

Because H(o, n) is part of Phi(n), live logic is allowed to make planning decisions based on persisted history.

That includes inputs such as:

  • prior attempts
  • retry counts
  • previous failures
  • prior settlement results
  • escalation state

It should not require hidden in-memory daemon state to be semantically correct.

History As A Semantic Input

History is not only an audit trail.

For daemonized convergence, history is a first-class input to planning, settlement, and safety policy.

The intended rule is:

  • stateful live logic must derive its statefulness from persisted history in the frameshot
  • not from process-local memory that would be lost on restart or failover

This is necessary for:

  • replayable planning
  • daemon handoff
  • retry and escalation semantics
  • falsification-oriented testing

Managed Object

A managed object is the unit of convergence.

It may represent:

  • a cloud resource
  • a process or container
  • a host package, file, or service
  • an API object
  • an immutable artifact or realization target
  • any other thing that can be expressed in desired and observed terms

Frameshot

A frameshot is the runtime's coherent planning snapshot.

It captures, at a point in logical time:

  • the desired object graph
  • the observed object graph
  • facts and inventory
  • capabilities available for each object and target
  • policy overlays and approval state
  • dependency and ownership relations
  • time, version, freshness, and sequence markers

The frameshot is the central planning primitive.

Without frameshots, plans in a live or partially observed system become ambiguous.

With frameshots, Netherframe can say:

  • this plan was derived from frameshot F
  • these assumptions were true at F
  • the plan remains valid only while the relevant assumptions hold

That is the correct basis for strong plan guarantees in a live runtime.

Plan

A plan is a frameshot-relative transition proposal.

It is not merely a human preview and not merely an internal diff.

A plan should contain at least:

  • the frameshot identifier
  • the object subset and graph scope it covers
  • the assumptions used during planning
  • the proposed transitions and ordering
  • policy and approval context
  • explicit invalidation conditions
  • expected settlement criteria
  • recovery and compensation posture for partial failure
  • plan strength metadata

The runtime should distinguish three related artifacts:

  • reconciliation frontier
  • cycle plan
  • forecast

The reconciliation frontier is the full set of changes that appear relevant from the current frameshot.

The cycle plan is the exact subset the runtime is authorized to attempt now.

The forecast is the contingent future graph of follow-up actions that may occur in later cycles if specific conditions hold.

The cycle plan is the object that should be treated as definite.

Settlement

Convergence alone is not enough.

A system may have accepted transitions but still not be operationally settled.

Settlement should mean:

  • required transitions completed
  • required conditions satisfied
  • no mandatory corrective transition remains queued
  • no finalization barrier remains pending
  • policy-mandated post-transition checks passed
  • the object or graph is acceptable for the current runtime mode

Settlement is a first-class runtime result, not an implementation detail.

Capability Adapter

A capability adapter is the runtime boundary to a substrate.

It should be defined by supported capabilities, not by domain branding.

Examples of capability families:

  • observe one object
  • list objects
  • watch or stream changes
  • probe health
  • gather facts or inventory
  • invoke transitions
  • realize outputs
  • activate a realization
  • roll back a prior realization
  • finalize deletion or cleanup

Some adapters may support only a narrow subset. Some may support many.

That is acceptable. The runtime should reason about declared capabilities explicitly.

Canonical Schema Versus Adapter Contract

The canonical managed-object schema is not the same thing as the substrate authoring interface.

This distinction is critical.

The canonical schema should be rich because Netherframe needs a complete and normalized internal model for planning, settlement, history, telemetry, and cross-domain reasoning.

The adapter contract should stay narrow.

Substrate authors should not be required to populate every canonical field by hand.

Instead, the runtime should aggressively derive and normalize fields such as:

  • status
  • default conditions
  • history
  • events
  • default ownership
  • baseline conflict domains
  • absent or empty version_markers where the substrate has none

Minimal Adapter Contract

The minimum adapter-facing contract should focus on substrate truth, not on the entire canonical object model.

At minimum, an adapter should provide:

  • object identity mapping
  • observed state or observation functions
  • supported capabilities
  • action execution for the actions it claims to support
  • any native version markers if the substrate exposes them
  • any additional shared mutable resources or conflict domains the adapter knows about better than the runtime

Everything else should be normalized or synthesized by Netherframe unless the adapter opts into richer support.

Adapter Maturity Tiers

To keep extension approachable, Netherframe should support progressive adapter richness.

Tier 1: Minimal Adapter

Provides:

  • identity
  • observation
  • mutation
  • basic capability declarations

Netherframe synthesizes most higher-level fields.

Tier 2: Structured Adapter

Adds:

  • native version markers
  • native condition or phase mapping
  • richer reason and message metadata
  • extra conflict-domain declarations

Tier 3: First-Class Adapter

Adds:

  • watch support
  • rollback or compensation hints
  • richer ownership semantics
  • substrate-specific diagnostics and optimization hooks

This tiering should reduce adoption burden without weakening the canonical runtime model.

Live Logic

Live logic is the programmable layer that tells the runtime how to interpret and drive convergence.

It should govern:

  • normalization rules
  • convergence predicates
  • settlement predicates
  • transition selection
  • health derivation
  • remediation policy
  • escalation and approval behavior
  • invalidation rules for strong plans

This is where Netherframe becomes more than a wrapper around existing tools.

Runtime Schedule

The runtime should expose two primary schedules.

Instant Mode

One frameshot, one planning cycle, one execution attempt, one settlement pass, then exit.

Daemon Mode

Repeated frameshots and repeated convergence cycles under a long-lived runtime.

Daemon mode is not a different engine. It is the same runtime operated continuously.

Universal Runtime Loop

The runtime loop should be described as:

observe -> normalize -> frameshot -> plan -> approve -> act -> settle -> persist -> repeat or stop

Observe

Gather current reality from capability adapters:

  • current object state
  • facts and inventory
  • health or probe data
  • event streams where available
  • freshness and confidence metadata

Normalize

Transform desired and observed data into a stable object model that live logic can reason about.

Frameshot

Capture a coherent planning frame:

  • object state
  • facts
  • capabilities
  • policy
  • dependencies
  • runtime mode
  • time and version markers

Plan

Compute candidate transitions from:

  • desired state
  • observed state
  • graph relations
  • capabilities
  • policy
  • live logic

Approve

Apply approval policy before action.

This step may be:

  • automatic
  • conditional
  • human-gated
  • maintenance-window-gated

Act

Invoke transitions through capability adapters.

Settle

Re-observe as needed and decide whether the object or graph is:

  • settled
  • converged but not yet settled
  • blocked
  • degraded
  • failed
  • unknown

Persist

Persist:

  • the frameshot
  • the plan artifact
  • action results
  • settlement results
  • cycle history

Repeat Or Stop

  • stop in instant mode
  • continue in daemon mode

Concurrency, Parallelism, And Cycle Isolation

The runtime loop is conceptually staged, but execution inside a cycle does not need to be globally serial.

Intra-Cycle Parallelism

The planner should produce an execution graph for the current cycle plan.

That graph should include:

  • dependency edges
  • exclusion edges
  • conflict or lock domains
  • concurrency limits from policy

Actions may execute in parallel only when:

  • their dependency ordering allows it
  • their conflict domains are disjoint
  • policy permits the parallelism

If independence cannot be established confidently, the runtime should fall back to serialization.

Conflict Domains

Each action should be associated with one or more conflict domains derived from:

  • object identity
  • target identity
  • adapter-declared shared mutable resources
  • explicit policy constraints

Two actions that share a conflict domain must not mutate concurrently unless an adapter can provide a stronger correctness guarantee.

Conflict Domain Declaration And Inference

Conflict domains should not be left entirely implicit.

The initial rule should be:

  • the runtime always derives conservative baseline domains from object identity and target identity
  • mutate-capable adapters may declare additional shared mutable resources per action or object kind
  • runtime inference may supplement explicit declarations, but should not replace them when stronger adapter knowledge exists

Phase 1 should define the adapter-facing declaration format for these domains.

acquire_distributed_lease Semantics

The previous shorthand acquire_lock is too broad.

The distributed coordination capability should be modeled as acquire_distributed_lease.

It is intended for coordination across runtime boundaries, not as the only in-process safety mechanism.

In early phases, Netherframe should still maintain local conflict-domain serialization even when no distributed lock capability exists.

Where acquire_distributed_lease is available, it should be used to protect:

  • cross-process mutation of the same conflict domain
  • daemon handoff
  • future sharded ownership boundaries

Cycle Overlap

Daemon mode must not silently allow overlapping mutating cycles over the same conflict domain.

The minimum rule should be:

  • a later cycle may observe while an earlier cycle settles
  • a later cycle may not commit new mutations for a conflict domain still owned by an earlier cycle
  • to supersede an earlier cycle, the runtime must invalidate it explicitly and establish a new ownership epoch

This keeps daemon mode from degenerating into concurrent unsound replanning.

Failure, Recovery, And Rollback Semantics

Cycle plans should not assume global atomicity.

Partial execution is a first-class outcome.

Cycle Execution Record

Every cycle result should persist at least:

  • planned actions
  • attempted actions
  • succeeded actions
  • failed actions
  • skipped or canceled actions
  • compensation or rollback actions attempted
  • residual obligations after the cycle

Compensation Versus Rollback

Rollback should not be treated as universally available.

Some adapters may support:

  • no rollback
  • best-effort compensation
  • strong rollback of a limited action class

The runtime should model recovery posture explicitly per plan and per action set.

Suggested recovery policies:

  • none
  • best_effort_compensate
  • rollback_if_possible
  • rollback_required_or_block
  • operator_resume

Source Of Recovery Posture

Recovery posture should be derived during planning from:

  • object policy
  • live logic
  • adapter capabilities
  • runtime mode and approval policy

It should then be persisted in the resulting plan artifact and cycle record.

This avoids requiring a separate permanent top-level managed-object field while still making recovery posture explicit and inspectable.

Automatic Recovery

Automatic compensation or rollback should run only when:

  • the plan declares the recovery posture
  • the relevant actions advertise the needed capability
  • policy permits automatic recovery

Otherwise the cycle should settle into blocked or degraded with explicit residual state for operator action.

Safe Partial State

A safe partial state is not "everything rolled back."

It is:

  • the observed post-failure world captured explicitly
  • no hidden in-flight actions remain
  • the residual obligations are represented in state
  • the next cycle can replan from the persisted truth

Strong plans therefore require not only explicit current actions, but also an explicit recovery posture if execution fails partway through.

Graph Cycles And Fixed-Point Planning

Managed-object graphs will not always be acyclic.

The runtime should distinguish:

  • acyclic relations
  • supported cyclic strongly connected components
  • unsupported cycles that must fail planning

Required Planner Behavior

At planning time, the runtime should:

  • detect strongly connected components
  • reduce the object graph to a DAG of components
  • plan across the reduced DAG
  • apply special handling to cyclic components

Supported Cyclic Components

Supported cycles require explicit semantics, such as:

  • placeholder values
  • phased convergence
  • fixed-point iteration
  • existing Netherframe phase-planning mechanisms

Unsupported Cycles

If the runtime cannot justify a cyclic component with explicit semantics, it should fail planning with an explanation of:

  • the cycle
  • the objects involved
  • why the current live logic and capabilities cannot break it safely

This prevents silent dependence on accidental evaluation order.

Universal Managed-Object Model

Netherframe should standardize on one canonical managed-object shape.

Each object should eventually include fields equivalent to:

  • object_id
  • kind
  • identity
  • target
  • desired
  • observed
  • facts
  • version_markers
  • ownership
  • capabilities
  • relations
  • policy
  • status
  • conditions
  • events
  • history
  • live_logic
  • allowed_actions
  • finalization
  • runtime_metadata

Field Meanings

object_id

Stable Netherframe logical identifier inside the authoring graph.

kind

Semantic type identifier for the object.

This is not merely a provider type string. It identifies which normalization, transition, convergence, and settlement semantics apply.

identity

Stable substrate-facing identity.

Examples:

  • provider resource identity
  • host identity plus path or service name
  • API tuple such as namespace and name
  • immutable artifact identity

target

Where the object should be realized or managed.

Examples:

  • account and region
  • host or host group
  • local runtime
  • cluster and namespace
  • build host and activation target

desired

Normalized intended state.

observed

Normalized observed state plus freshness metadata.

observed should mean:

  • mutable state of the object or target that live logic actively reasons about as a convergence target or obstacle

facts

Observed environmental characteristics that influence convergence.

Examples:

  • operating system family
  • package manager
  • API versions
  • runtime features
  • realization backends

facts should mean:

  • contextual properties that live logic reads to decide how to converge
  • but that Netherframe does not treat as the direct desired state of this object unless they are reified as separate managed objects

In short:

  • observed is what the runtime is trying to move or account for directly
  • facts are the contextual truths used to choose and justify that movement

version_markers

Per-object revision or generation metadata used for staleness detection, optimistic concurrency, revision-aware planning, and replay safety.

Examples:

  • Kubernetes resourceVersion
  • Kubernetes generation or observedGeneration
  • Nix generation identity
  • Terraform state lineage or serial-like revision markers
  • Nomad job or deployment version

This field should represent object-level version semantics, not only frameshot-level sequence metadata.

ownership

Explicit declaration of what this runtime owns, ignores, shares, or merely observes about the object.

Examples:

  • fully managed object
  • partially managed fields or paths
  • externally managed subfields
  • ignored drift regions
  • shared-management or multi-actor coordination metadata

This field is necessary for domains where the runtime must distinguish:

  • desired state it is responsible for enforcing
  • desired state it tolerates but does not own
  • observed state that is informative but not actionable

capabilities

What the target and adapters can actually do.

Examples:

  • can_watch
  • can_push
  • can_pull
  • can_realize
  • can_activate
  • can_rollback
  • can_probe
  • can_partial_update

relations

Dependencies, references, placement, grouping, and topology edges.

policy

Execution, remediation, approval, and safety rules.

Examples:

  • report-only
  • auto-remediate
  • approval required
  • maintenance window only
  • default recovery posture
  • replacement required
  • canary size
  • maximum parallelism
  • remediation rate limits
  • retry budgets
  • circuit-break thresholds
  • maintenance-window expiry behavior

status

Operator-facing runtime summary.

The schema should standardize at least:

  • phase
  • reason
  • message
  • observed_at
  • optional summarized progress counters or readiness aggregates

This field should stay compact and human-readable.

conditions

Machine-readable health, progress, and settlement markers.

Suggested base vocabulary:

  • Ready
  • Progressing
  • Healthy
  • Succeeded
  • Failed
  • Reconciling
  • Drifted
  • Blocked
  • StaleObservation

Each condition should eventually carry fields equivalent to:

  • type
  • status
  • reason
  • message
  • last_transition_time
  • optional observed_at

This gives the schema enough structure to model systems such as Kubernetes, Nomad, ECS, and systemd without inventing per-domain condition formats.

events

Fine-grained event and diagnostic records associated with the object.

Examples:

  • observed transition events
  • remediation events
  • action failures
  • old and new value records
  • health-check failures
  • operator-facing explanations

Each event record should support fields equivalent to:

  • timestamp
  • source
  • level
  • reason
  • message
  • optional action_ref
  • optional cycle_ref
  • optional old_value
  • optional new_value

history

Prior realizations, remediations, generations, settlement outcomes, and rollback points.

history should remain the durable coarse-grained record of prior cycles, plans, realizations, and rollback points.

events should cover the fine-grained diagnostic trail.

live_logic

The logic used to interpret convergence and settlement for this object.

This may be:

  • built-in
  • configured
  • user-supplied

allowed_actions

The transition vocabulary supported for this object on this target.

Examples:

  • create
  • update
  • replace
  • delete
  • start
  • stop
  • restart
  • remediate
  • build
  • activate
  • rollback
  • finalize

finalization

Cleanup and post-delete semantics.

runtime_metadata

Internal runtime data that should not distort the conceptual model.

Frameshot Contract

The frameshot is the core contract between observation, planning, execution, and inspection.

A frameshot should include:

  • desired managed objects
  • observed managed objects
  • graph relations
  • facts and inventory
  • capabilities
  • policy overlays
  • runtime schedule
  • time and sequence metadata
  • freshness and confidence metadata
  • optional external event offsets or resource versions

Frameshot Properties

A valid frameshot should be:

  • coherent enough for planning
  • serializable
  • inspectable
  • referentially stable
  • explicit about unknown or stale observations

The runtime should not imply stronger coherence than it can actually guarantee.

When coherence is partial, the frameshot must say so.

Schema, Artifact, And State Versioning

Versioning must be designed before state vNext lands.

The runtime should version independently:

  • the state envelope
  • the managed-object schema
  • kind-specific schema semantics
  • the frameshot artifact format
  • the plan artifact format
  • the settlement and cycle-history record format

Versioning Rules

The minimum rules should be:

  • every persisted artifact carries an explicit schema version
  • kind-specific schema versions are not assumed to match the global runtime version
  • migration code is explicit and testable
  • additive evolution is preferred where possible
  • breaking semantic changes require an upconverter or a compatibility boundary

Migration Posture

Phase 3 should not invent this ad hoc.

By the time state vNext lands, Netherframe should already know:

  • where versions are declared
  • how readers dispatch by version
  • how old frameshots and plans are upgraded
  • how kind-specific schema evolution is recorded

Without this, backward compatibility will become accidental rather than designed.

Plan Guarantees

Plans should be modeled as frameshot-relative artifacts.

That means every plan should be explicit about:

  • which frameshot it was derived from
  • what assumptions it depends on
  • what would invalidate it
  • what level of guarantee it offers

Strong Plan

A strong plan means:

  • the transition set is explicit
  • the relevant assumptions are explicit
  • execution can verify those assumptions before or during action
  • invalidation rules are explicit

Strong does not mean "the world is frozen forever."

It means:

  • "this plan is valid relative to frameshot F while assumptions A hold"

Weak Plan

A weak plan still has value, but the runtime must say so clearly.

A weak plan means:

  • the intended transitions are explicit
  • final convergence may require additional follow-up cycles
  • observation or action uncertainty prevents a stronger claim

This distinction should be surfaced consistently across all domains.

Definite Present Plan Versus Contingent Future Graph

The runtime should not pretend that one linear artifact can represent both:

  • the exact actions that will be attempted now
  • the entire future web of possible later actions in a live, partially observed system

Those are different objects.

Reconciliation Frontier

The reconciliation frontier is the broad answer to:

  • "what changes appear relevant from this frameshot?"

It may be larger than what policy, capabilities, health gates, canaries, approvals, or live logic allow in the current cycle.

Cycle Plan

The cycle plan is the strict answer to:

  • "what changes will the runtime attempt in this cycle?"

This must be definite.

The runtime should be able to tell the user:

  • these actions are in scope now
  • these actions are out of scope now
  • these actions were deferred or blocked and why
  • these assumptions must hold for the cycle plan to remain valid

Forecast

The forecast is the answer to:

  • "if this cycle succeeds and certain future conditions hold, what follow-up changes might happen later?"

The forecast should be shown as a contingent graph or policy, not as a committed linear plan.

Architectural Rule

The runtime should enforce the following rule:

  • nothing executes unless it is in the current cycle plan
  • anything outside the current cycle plan requires a new frameshot and a new plan

This is how Netherframe can provide definite plans for "now" without making dishonest claims about an open future.

Implication Of Partial Observation And Rich Live Logic

Once the runtime admits:

  • partial observation
  • contingent approvals
  • health gates
  • canaries
  • event-driven requeues
  • user-supplied live logic

it should not assume that there is always one unique, maximally permissive, globally definite full future execution graph.

In constrained cases, Netherframe may be able to produce a very rich forecast, possibly even an exhaustive contingent graph relative to the current model.

But in the general case, what it can promise rigorously is:

  • a definite current cycle plan
  • an explicit contingent forecast relative to stated assumptions
  • replanning when the relevant world changes

Partial, Stale, And Event-Driven Observation

The runtime must assume observation may be:

  • partial
  • stale
  • delayed
  • expensive
  • eventually consistent
  • event-driven rather than poll-driven

Therefore the universal model must support:

  • exact values
  • partial values
  • unknown values
  • freshness metadata
  • confidence metadata
  • event offsets when available

This is necessary to unify:

  • provider refresh
  • long-lived daemons
  • host fact gathering
  • local health checks
  • external control planes
  • realization systems

Capability Adapter Model

The architecture should move from domain drivers to capability adapters.

At the architecture level, Netherframe should not care whether an adapter is "for Terraform" or "for Kubernetes."

It should care that an adapter can, or cannot:

  • observe
  • list
  • watch
  • probe
  • mutate
  • realize
  • activate
  • roll back
  • finalize

Suggested Capability Families

Observation

  • observe_object
  • list_objects
  • watch_objects
  • gather_facts
  • probe_object

Transition

  • propose_transition_support
  • execute_action
  • finalize_object

Realization

  • evaluate_definition
  • realize_output
  • activate_output
  • rollback_output

Coordination

  • acquire_distributed_lease
  • emit_event
  • acknowledge_plan

The concrete interface names can change. The architectural rule should not.

The same applies to adapter burden:

  • the canonical object model may be rich
  • the adapter authoring surface should remain intentionally smaller
  • Netherframe should complete the canonical model from partial adapter data

Live Logic Model

Live logic should be a first-class extension point, not a hidden pile of special cases.

The runtime should allow live logic to define:

  • normalization rules
  • equivalence and convergence tests
  • settlement tests
  • health derivation
  • transition scoring and selection
  • remediation rules
  • approval rules
  • stale-plan invalidation rules

Desired Properties Of Live Logic

Live logic should be:

  • inspectable
  • testable
  • composable
  • deterministic where possible
  • explicit about side effects

Live logic should not require runtime forks to express domain semantics.

Arbitrary Python As The Primary Live-Logic Surface

This RFC assumes arbitrary Python remains the first-class authoring surface for live logic.

Netherframe should therefore avoid making AST extraction, CFG recovery, or intermediate representation lowering the semantic foundation of planning.

The semantic foundation should instead be:

  • a frozen frameshot
  • execution of live logic against that frameshot
  • capture of plan-relevant effects at Netherframe-owned runtime boundaries

Static analysis may still be useful for linting, debugging, or optimization. It should not be the primary source of truth for what a plan means.

Observational Purity Contract

Strong plans for arbitrary Python require a trusted contract.

The relevant contract is not merely "no side effects."

It is:

  • during planning, live logic is observationally pure with respect to the frameshot and declared inputs

In practice, that means the logic should not:

  • mutate the relevant world in ways that change planning facts
  • depend on hidden inputs outside the frameshot
  • introduce nondeterminism that changes the emitted cycle plan

Examples of hidden or destabilizing inputs include:

  • current time
  • randomness
  • mutable ambient environment
  • uncaptured external reads
  • hidden caches

When this contract holds, planning-by-execution can yield a definite current cycle plan relative to the frameshot.

When the contract does not hold, the runtime should degrade plan guarantees rather than pretending the plan is stronger than it is.

Observational Purity Testing And Falsification

Netherframe should not depend solely on user discipline to preserve the observational purity contract.

For arbitrary Python, the realistic verification strategy is falsification, not proof.

The runtime should eventually support an observational purity test harness for live logic.

That harness should:

  • execute the same live logic repeatedly against the same frameshot
  • perturb ambient inputs that should be irrelevant
  • record emitted cycle plans and runtime-observable effects
  • fail when the same frameshot produces incompatible planning behavior

Examples of perturbations:

  • environment variables
  • current working directory
  • timezone or locale
  • time and random seeds
  • temporary paths
  • network availability

Examples of observations:

  • plan trace and cycle plan contents
  • file, subprocess, and network activity where observable
  • runtime audit events

The intended property is:

  • same frameshot plus same declared inputs should produce the same plan trace

This harness should be treated as a practical detector of purity violations, not as a proof that arbitrary Python is universally pure.

Practical Implication

The runtime should combine:

  • trusted observational-purity contracts
  • best-effort runtime interception and tracing
  • falsification-oriented purity testing
  • explicit degradation of plan strength when purity is doubtful

That is the most practical way to support arbitrary Python without forcing a restricted DSL or an intermediate representation.

Daemon Safety Requirements

Daemon mode must include explicit blast-radius controls from the beginning.

These are not optional implementation polish.

At minimum, daemon policy should include:

  • maximum actions per cycle
  • maximum concurrently mutated objects per conflict domain set
  • maximum remediation rate over time
  • retry budgets
  • drift escalation thresholds
  • circuit-break conditions
  • maintenance-window behavior
  • pause or quarantine behavior for repeatedly unstable objects

Required Daemon Safety Behavior

The minimum expected behavior should be:

  • repeated drift increments retry and escalation counters
  • remediation loops can trigger a circuit breaker
  • circuit breaking pauses further automatic mutation until policy allows resumption
  • if a maintenance window closes mid-cycle, no new actions start after expiry
  • in-flight actions either finish, pause, or compensate according to policy

Daemon mode without these controls is too dangerous to treat as a general feature.

Distributed Coordination, HA, And Sharding

This RFC does not require high-availability runtime coordination in phases 1-5.

The initial operational assumption should be:

  • one active mutating runtime per shard or ownership domain

However, the architecture should not dead-end future HA.

Minimum Forward-Compatible Requirements

Even before HA is implemented, persisted cycle records should carry enough data to support future handoff:

  • cycle identifier
  • frameshot identifier
  • plan identifier
  • ownership token or epoch
  • lock ownership metadata where applicable
  • final persisted cycle outcome

Explicit Deferral

Leader election, shard balancing, and multi-writer coordination should be treated as a follow-on design effort, likely requiring a separate RFC.

That work should not block the core runtime model, but the state model should leave room for it.

Performance And Scale Framing

This RFC is not a benchmark document, but it should still declare intended scale boundaries.

The initial architecture should target:

  • roughly 10^2 to 10^4 managed objects per runtime shard or frameshot
  • dependency graphs of similar order to the object count
  • graph algorithms that remain near-linear in objects plus edges, excluding adapter latency

Higher scale should be expected to require:

  • sharding
  • hierarchical composition
  • or both

Back-Pressure Expectations

Daemon mode should not allow an unbounded backlog of cycles.

If observe, act, or settle takes longer than the target cadence, the runtime should:

  • coalesce observations where possible
  • avoid starting overlapping mutating cycles for the same ownership domain
  • surface explicit back-pressure in operator telemetry

Telemetry, Audit, And Runtime Observability

The runtime must provide enough visibility for operators to trust plans and understand convergence behavior.

At minimum, each cycle should emit or persist:

  • frameshot identifier
  • plan identifier
  • cycle identifier
  • frontier size
  • executed, deferred, blocked, and failed counts
  • invalidation reasons
  • conflict-domain waits
  • compensation or rollback attempts
  • daemon safety events such as retries, escalation, or circuit breaking

This should be treated as part of the runtime contract, not optional observability work added later.

Testing And Verification Strategy

The runtime core itself needs an explicit testing strategy, not only live-logic falsification tests.

At minimum, Netherframe should maintain:

  • a deterministic fake-adapter harness for planning, action execution, and settlement behavior
  • concurrency and conflict-domain tests that verify no invalid parallel mutation occurs
  • cycle-isolation tests that verify later cycles cannot mutate owned domains prematurely
  • daemon safety tests covering retry budgets, escalation, and circuit breaking
  • state migration tests using golden artifacts and version-upgrade fixtures
  • restart and handoff tests that verify persisted history is sufficient to resume correctly

Testing Posture By Phase

The intended minimum posture should be:

  • Phase 2: stage-by-stage tests for the wrapped hybrid runtime
  • Phase 3: migration and compatibility corpus tests for persisted artifacts
  • Phase 4: plan-strength and invalidation tests
  • Phase 5: daemon simulation tests with conflict, drift, and failure injection

The runtime should not depend on production substrates to validate its core correctness properties.

Runtime Consumers And Compatibility Surfaces

This architecture is internal in shape but external in consequence.

The RFC should explicitly recognize at least four runtime consumers:

  • application authors using Netherframe's Python API
  • operators using CLI plan, apply, drift, and future daemon surfaces
  • automation systems consuming machine-readable plan and state artifacts
  • future daemon or control-plane operators responsible for remediation policy

Compatibility Posture During Transition

Phases 1-3 should preserve existing user workflows wherever possible while the runtime model is being wrapped and expanded.

The intended compatibility posture should be:

  • existing Terraform-oriented authoring remains valid where supported today
  • existing CLI workflows continue to function while new frameshot and plan surfaces are introduced additively
  • artifact versioning, not silent breakage, is the mechanism for changing persisted semantics

This should remain true unless a later RFC explicitly authorizes a breaking compatibility boundary.

Domain Mappings Under One Runtime

The point of this model is not to erase domain differences. The point is to place them in the correct layer.

Domain behavior should emerge from:

  • object kinds
  • capability availability
  • live logic
  • policy
  • runtime schedule

not from separate engines.

Terraform-Like Behavior

Typical mapping:

  • desired: normalized infrastructure object spec
  • observed: remote resource state
  • capabilities: observe, mutate, sometimes import-like discovery
  • live logic: structural or provider-backed diff, replacement rules, ordering
  • common schedule: instant

Possible daemon interpretation:

  • repeated frameshots
  • drift detection
  • optional automatic remediation

Kubernetes-Plane-Like Behavior

Typical mapping:

  • desired: normalized object spec and ownership policy
  • observed: live object, conditions, generation state
  • capabilities: observe, list, watch, mutate, probe
  • live logic: condition-based settlement, ownership, finalization
  • common schedule: daemon

Strong-plan interpretation:

  • the plan is strong relative to the frameshot and its assumptions
  • not relative to an impossible globally frozen cluster

Puppet-Like Host Management

Typical mapping:

  • desired: host policy for packages, files, services, users, timers, sysctls
  • observed: host facts and current configuration
  • capabilities: gather facts, observe, mutate, probe
  • live logic: compliance predicates, remediation rules, reboot semantics
  • common schedule: instant or daemon

Nix-Like Realization And Activation

Typical mapping:

  • desired: evaluated configuration plus pinned inputs
  • observed: realized output, active generation, activation state
  • capabilities: evaluate, realize, activate, rollback, observe
  • live logic: realization validity, activation policy, rollback rules
  • common schedule: instant or daemon

Compose-Like Local Supervision

Typical mapping:

  • desired: local service graph, restart policy, health policy, local topology
  • observed: runtime status and probe results
  • capabilities: observe, mutate, probe, sometimes watch
  • live logic: liveness, recreation, restart, dependency gating
  • common schedule: daemon

These are mappings under one runtime, not separate engines.

Implications For The Current Repository

This proposal implies several concrete shifts inside the current codebase.

1. Provider-Centric Runtime Assumptions Must Stop Being Foundational

Current provider protocol code should become one adapter family inside the runtime, not the runtime's architectural center.

Primary touchpoints:

  • libs/netherframe.core/netherframe/core/providers/provider_registry.py
  • libs/netherframe.core/netherframe/core/providers/provider_protocol.py
  • libs/netherframe.core/netherframe/core/providers/provider_resource_operations.py

2. hybrid.py Should Be Refactored Into Runtime Stages

The existing hybrid execution path is the best starting point, but it should be split into explicit stages:

  • observe
  • normalize
  • frameshot
  • plan
  • approve
  • act
  • settle

Primary touchpoint:

  • libs/netherframe.core/netherframe/core/execution/hybrid.py

3. State Must Evolve Beyond attributes

The state engine should persist:

  • managed objects
  • frameshots
  • plans
  • settlement results
  • cycle history

Primary touchpoints:

  • libs/netherframe.core/netherframe/core/backends/state_models.py
  • libs/netherframe.core/netherframe/core/backends/state_engine_runtime.py

4. Discovery Should Become Universal Observation And Inventory

Discovery should be generalized from import-oriented helpers into a broader inventory and fact-gathering capability.

Primary touchpoint:

  • libs/netherframe.core/netherframe/core/infrastructure/discovery.py

5. Runtime Checks Should Become Conditions And Settlement Logic

Runtime checks are a useful precursor, but they are too narrow as the long-term abstraction.

They should evolve into:

  • conditions
  • probes
  • settlement rules
  • remediation gates

Primary touchpoint:

  • libs/netherframe.core/netherframe/core/orchestration/hybrid_runtime_checks.py

6. CLI Surfaces Must Expand

The CLI will eventually need first-class commands for:

  • frameshot inspection
  • plan inspection
  • plan strength reporting
  • instant runs
  • daemon runs
  • cycle history inspection

Primary touchpoint:

  • tools/netherframe.cli

Detailed Implementation Roadmap

The phases below are intentionally ordered so the theory can be proven against current code rather than becoming detached architecture prose.

Phase 1: Define Runtime Vocabulary And Canonical Types

Objective:

  • make the universal model explicit in code and docs before changing behavior

Tasks:

  • define canonical managed-object types
  • define frameshot and plan artifact types
  • define settlement result types
  • define a capability declaration model
  • define live-logic extension points
  • define instant and daemon runtime schedules
  • define observed versus facts semantics explicitly
  • define version_markers, ownership, and events semantics explicitly
  • define concurrency and conflict-domain vocabulary
  • define artifact and schema version boundaries
  • define the minimal adapter contract separately from the canonical object model

Instructions:

  • place new model types in nf.core, not in provider-specific packages
  • keep them serializable and versioned from the start
  • do not couple canonical types to tfplugin terminology

Acceptance criteria:

  • the shared runtime theory is explicit in code and docs
  • no user-visible behavior change is required yet

Phase 2: Wrap The Existing Hybrid Runtime In The New Model

Objective:

  • prove the model against the most important existing execution path

Tasks:

  • map current resource execution into managed objects
  • wrap current provider RPC flows in capability adapters
  • produce a real frameshot for instant runs
  • derive a plan artifact from that frameshot
  • preserve current behavior while making stages explicit

Instructions:

  • do not rewrite all provider interactions at once
  • first prove the model on the current tfplugin-backed path
  • keep compatibility shims where necessary, but make the new runtime stages visible

Acceptance criteria:

  • current Terraform-oriented workflows still execute
  • plans become frameshot-relative artifacts
  • the runtime pipeline is visible in code and testable stage by stage

Phase 3: Introduce State Model vNext

Objective:

  • persist the new runtime artifacts without breaking existing users

Tasks:

  • add a versioned state envelope
  • persist managed objects
  • persist frameshots
  • persist plans and settlement results
  • persist event and diagnostic records
  • add compatibility readers for prior state
  • add explicit version dispatch and upconverters per persisted artifact class

Instructions:

  • treat backward compatibility as a hard requirement
  • make stale or partial observation explicit in stored state
  • preserve room for daemon-cycle history

Acceptance criteria:

  • older state remains readable
  • new state can represent non-CRUD domains

Phase 4: Add Approval, Plan Strength, And Invalidity Semantics

Objective:

  • make plan guarantees explicit and inspectable before daemon mode arrives

Tasks:

  • classify plans by strength
  • encode assumptions and invalidation rules
  • add pre-action assumption checks
  • add approval and maintenance-window gating
  • define recovery posture and partial-failure semantics for plan artifacts

Instructions:

  • avoid vague "best effort" labels
  • tell the operator exactly why a plan is strong, weak, or invalid

Acceptance criteria:

  • every plan artifact reports its guarantee level
  • assumption checks can invalidate stale plans cleanly

Phase 5: Add Daemon Mode Without Creating A Second Architecture

Objective:

  • make the same runtime run continuously

Tasks:

  • implement repeated frameshot cycles
  • implement requeue and retry logic
  • persist cycle history
  • add daemon safety policies
  • add operator surfaces for inspecting daemon cycles
  • add cycle isolation and back-pressure behavior
  • add circuit-breaking and escalation behavior

Instructions:

  • daemon mode must reuse the same canonical object, frameshot, and plan types
  • do not fork a second planning model for daemon use

Acceptance criteria:

  • Netherframe can run repeated convergence cycles with inspectable frameshots and plans
  • instant and daemon runs share the same core runtime model

Phase 6: Add Rich Live Logic

Objective:

  • make custom convergence semantics a first-class extensibility point

Tasks:

  • support programmable convergence predicates
  • support programmable settlement logic
  • support programmable remediation rules
  • support programmable approval and escalation policy

Instructions:

  • keep live logic testable in isolation
  • prefer explicit contracts over arbitrary hidden hooks

Acceptance criteria:

  • users can define domain semantics without forking the runtime core

Phase 7: Expand Capability Adapters And Object Kinds

Objective:

  • prove the architecture outside the existing tfplugin domain

Tasks:

  • add at least one non-tfplugin capability adapter
  • add at least one daemon-oriented proof case
  • add at least one realization-oriented proof case

Examples:

  • local process or container supervision
  • host observation and remediation
  • API-object reconciliation
  • realization and activation flows

Instructions:

  • treat these as proofs of the universal model
  • do not introduce new engine families to land them

Acceptance criteria:

  • at least one non-tfplugin domain works under the same runtime theory

Phase 8: Reassess Native Control-Plane Ambitions

Objective:

  • decide whether Netherframe should remain a universal runtime over substrates or also become a substrate itself

This phase should require a separate RFC.

Completion condition:

  • Netherframe can already demonstrate one shared runtime model across at least one strong instant workflow and one daemonized workflow, with explicit plan, safety, recovery, and state semantics
  • any further move toward native substrate responsibilities is either accepted by a separate RFC or explicitly deferred

Overall End-State For This RFC

The overall program described by this RFC should be considered complete when Netherframe can demonstrate:

  • one shared runtime model for instant and daemon execution
  • frameshot-relative plans with explicit strength, invalidation, and recovery posture
  • persisted state, plan, and history artifacts with explicit versioning
  • conflict-domain-aware execution and cycle isolation
  • daemon safety controls, telemetry, and restart-safe history semantics
  • the model proven across at least two materially different domains without introducing separate engine families

Workstream Guidance

Workstream A: Canonical Runtime Types

Deliver:

  • managed-object schema
  • frameshot schema
  • plan schema
  • settlement result schema
  • version declarations and migration boundaries
  • status, conditions, ownership, and event-record substructure

Workstream B: Runtime Core

Deliver:

  • observation pipeline
  • normalization pipeline
  • frameshot builder
  • planner
  • execution DAG and conflict-domain handling
  • approval stage
  • action runner
  • rollback or compensation coordinator
  • settlement evaluator
  • instant and daemon scheduler
  • deterministic fake-adapter and simulator harness

Workstream C: Adapter Layer

Deliver:

  • capability declaration model
  • adapter registry
  • tfplugin-backed adapter family first
  • compatibility shims for current provider flows
  • minimal adapter contract and normalization boundaries

Workstream D: Live Logic

Deliver:

  • built-in logic for current infrastructure behavior
  • programmable logic for future domains
  • test harnesses for custom logic
  • explicit contracts for history-sensitive live logic

Workstream E: State And History

Deliver:

  • state envelope vNext
  • frameshot persistence
  • plan persistence
  • event persistence
  • settlement history
  • daemon cycle history
  • version dispatch and upconverters
  • cycle journal with ownership metadata

Workstream F: CLI And Operator Surfaces

Deliver:

  • inspect frameshots
  • inspect plans
  • inspect reconciliation frontiers
  • inspect contingent forecasts
  • surface plan guarantees
  • surface recovery posture and partial-failure records
  • surface daemon safety and back-pressure telemetry
  • run instant mode
  • run daemon mode
  • inspect cycle history

Most Relevant Formal Foundations

The RFC should stay anchored to a small set of directly relevant foundations.

1. Distributed Snapshots

Use distributed snapshot theory as the conceptual basis for frameshots:

  • a snapshot can be meaningful even while the system keeps running
  • the snapshot is a coherent basis for later reasoning

Primary reference:

  • Chandy and Lamport, "Distributed Snapshots: Determining Global States of a Distributed System"

2. Supervisory Control Of Discrete-Event Systems

Use supervisory control as the basis for admissible action selection under controllability and observation limits:

  • the runtime does not force an arbitrary future
  • it enables the subset of legal actions admissible under the current state and observation model

Primary reference:

  • Ramadge and Wonham, "Supervisory Control of a Class of Discrete Event Processes"

3. Receding-Horizon / Model Predictive Control

Use receding-horizon control as the basis for the difference between broader lookahead and current commitment:

  • optimize or reason over a wider horizon
  • commit only the present action slice
  • replan after new observation

Primary reference:

  • Mattingley, Wang, and Boyd, "Receding Horizon Control: Automatic Generation of High-Speed Solvers"

4. Assume-Guarantee Contracts

Use contract theory as the basis for assumptions, guarantees, invalidation, and composition:

  • plans are valid under stated assumptions
  • guarantees are meaningful only relative to those assumptions

Primary reference:

  • Nuzzo, "Compositional Design of Cyber-Physical Systems Using Contracts"

Design Guardrails

The following rules should be treated as architectural guardrails.

Guardrail 1: One Runtime

Do not solve new domains by adding new runtime architectures unless the current model has been proven insufficient.

Guardrail 2: Frameshots First

If a change adds planning behavior, it should explain what frameshot it is relative to and how staleness is handled.

Guardrail 3: Explicit Capability Modeling

Do not hide missing capabilities behind informal driver behavior.

If an adapter cannot watch, roll back, or probe, the runtime should know that explicitly.

Guardrail 4: Settlement Matters

Do not treat "action succeeded" as equivalent to "object is done."

Guardrail 5: Live Logic Must Be Visible

If the runtime is making convergence or remediation decisions, the logic that controls those decisions should be inspectable and testable.

Guardrail 6: Daemon Mode Is Not A Fork

Instant mode and daemon mode must share the same object, frameshot, plan, and settlement model.

Risks

Risk 1: The Model Is Still Too Narrow

If managed objects, frameshots, or plans are underspecified, the runtime will collapse back into domain-specific special cases.

Mitigation:

  • validate the model against infrastructure, API objects, host remediation, local supervision, and realization use cases

Risk 2: The Model Is Too Abstract To Land

If the theory is elegant but detached from the current codebase, it will stall.

Mitigation:

  • adapt the current hybrid path first
  • keep every phase grounded in concrete nf.core touchpoints

Risk 3: Daemon Mode Arrives Too Late

If daemon mode is postponed until after the model hardens around instant runs, the architecture will remain batch-first in practice.

Mitigation:

  • define instant and daemon schedules from phase 1
  • make frameshot persistence and settlement history part of the base model

Risk 4: Capability Adapters Regress Into Domain Drivers

If adapters are defined by domain labels rather than capabilities, the architecture will drift back toward engine families.

Mitigation:

  • standardize capability contracts before adding more domains

Risk 5: Live Logic Becomes Hidden Behavior

If live logic exists but is not inspectable, the runtime will become difficult to trust and harder to reason about than the systems it replaces.

Mitigation:

  • require explicit contracts, tests, and inspection surfaces for live logic

Risk 6: Policy And Safety Become Fragmented

Continuous remediation and cross-domain automation raise strong trust, audit, and approval concerns.

Mitigation:

  • make approval, remediation, maintenance windows, and plan invalidation first-class policy concepts

Risk 7: Purity Assumptions Become Implicit And Unverifiable

If strong plans rely on arbitrary Python behaving observationally purely, but the runtime provides no systematic way to detect violations, operators will overtrust plans.

Mitigation:

  • document the observational-purity contract explicitly
  • add best-effort effect tracing during planning
  • add falsification-oriented purity testing
  • degrade plan guarantees when the contract cannot be trusted

Risk 8: Concurrency Semantics Stay Implicit

If the runtime adds parallel execution before conflict domains, cycle isolation, and overlap rules are explicit, correctness bugs will be hard to diagnose and harder to undo.

Mitigation:

  • define execution DAG semantics early
  • model conflict domains explicitly
  • keep the default fallback conservative

Risk 9: Version Drift Becomes Architectural Debt

If artifact versioning is postponed until after state vNext lands, migration cost and compatibility breakage will compound quickly.

Mitigation:

  • define version boundaries in phase 1
  • require explicit readers and upconverters

Risk 10: Daemon Automation Exceeds Its Safety Envelope

If daemon remediation ships before blast-radius controls, retry budgets, and circuit breaking are explicit, the runtime can oscillate or cause repeated harm.

Mitigation:

  • treat daemon safety as a first-class design requirement
  • surface safety state in telemetry and policy

Risk 11: HA Assumptions Leak Into The Wrong Layers

If the single-writer assumption is left implicit, later HA or sharding work may require disruptive state and coordination changes.

Mitigation:

  • declare the single-writer assumption explicitly now
  • preserve ownership metadata in cycle records for future handoff

Open Questions

  • What exact frameshot schema should be serialized in state?
  • How much of live logic must be serializable versus merely referential?
  • Which plan guarantee levels should Netherframe standardize publicly?
  • What is the minimum capability surface for the first adapter contract?
  • How should daemon cycles be exposed in CLI and state history?
  • How should stale observation be surfaced to users and to live logic?
  • What should the first non-tfplugin proof case be after the model is landed?
  • What minimum automatic tracing should Netherframe provide for detecting observational-purity violations in arbitrary Python?
  • How should conflict domains be declared or inferred across adapters?
  • What recovery posture should be the default when partial failure occurs?
  • What exact versioning layout should be used across objects, frameshots, plans, and cycle history?
  • What exact ownership and managed-scope syntax should be standardized for partially managed objects?
  • What is the intended shard size and back-pressure policy for early daemon deployments?
  • Which future HA handoff fields should be mandatory in cycle records from the start?
  • What exact fake-adapter surface is needed to test concurrency, daemon safety, and recovery semantics without real substrates?

Acceptance Criteria For This RFC

This RFC should be considered successful if it provides a coherent theoretical and implementation foundation for Netherframe's next architecture.

That means:

  • one runtime, not many engines
  • frameshots are first-class
  • plans are explicitly frameshot-relative
  • instant and daemon modes are explicit
  • capability adapters replace domain-centric drivers
  • live logic is first-class
  • settlement is first-class
  • current and future domains map into the same model cleanly

Recommendation

Proceed with this direction only if Netherframe intends to become a universal convergence runtime rather than a Terraform-oriented framework with extensions.

If that is the strategic goal, this RFC should replace the earlier multi-engine framing and become the new architectural foundation for runtime, state, CLI, and future adapter work.