Agent: native nft named-set references instead of inlining members #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem. The agent currently inlines named-set members as concrete
addresses when translating the rendered model (noted as a tracked follow-up in
e0f54ef). This inverts the design's critical property (DESIGN.md §7.3:"membership is the only thing that churns; rules are stable"):
set-element op — rule churn, generation churn, larger atomic applies.
rule multiplies ruleset size and diff cost.
Proposal. Materialize each address group as a real nft named set
(
flags intervalfor CIDRs; inet family or parallel v4/v6 sets per §8.3) andcompile rules as set lookups. Element deltas travel on the lighter set feed and
never bump the rule generation.
Acceptance. Changing a dns/asn group's membership produces zero rule
operations in the differential apply — only
add/delete element. Rule count isindependent of group cardinality.
Suggest treating this as blocking for any multi-device rollout: the control
plane doesn't deliver its design until sets are native.