Skip to content

Add ResolverPolicy model and derivation from BoundaryPolicy#170

Merged
aidankhogg merged 1 commit into
dev/alphafrom
codex/add-resolverpolicy-model-and-helper-function
Jun 30, 2026
Merged

Add ResolverPolicy model and derivation from BoundaryPolicy#170
aidankhogg merged 1 commit into
dev/alphafrom
codex/add-resolverpolicy-model-and-helper-function

Conversation

@aidankhogg

Copy link
Copy Markdown
Contributor

Motivation

  • Provide a small, explicit model of resolver capabilities derived from boundary posture to centralize resolver-related reasoning.
  • Offer a helper to convert existing BoundaryPolicy values into a minimal, well-documented set of resolver semantics for downstream consumers.

Description

  • Add ResolverPolicy to netengine/spec/authority.py with fields local_root, upstream, mirror_table, peer_suffix_delegation, imported_trust_bundle, and notes to model resolver capabilities.
  • Implement resolver_policy_from_boundary(policy: BoundaryPolicy) -> ResolverPolicy in netengine/spec/authority.py that maps BoundaryPolicy to minimum semantics for isolated, shadowed, mirrored, peered, and federated modes and records human-readable precedence notes.
  • Export ResolverPolicy and resolver_policy_from_boundary via netengine/spec/__init__.py for package-level consumption.
  • Add unit tests in tests/test_authority_spec.py that cover default ResolverPolicy values and derivation behavior for isolated, shadowed, mirrored, peered, and federated boundary configurations.

Testing

  • Ran pytest tests/test_authority_spec.py and the new authority/resolver tests passed.
  • Ran the full test suite with pytest and observed all tests passing in this environment (618 passed, 10 skipped).

Codex Task

@aidankhogg aidankhogg self-assigned this Jun 30, 2026
@aidankhogg aidankhogg added the enhancement New feature or request label Jun 30, 2026
@aidankhogg aidankhogg merged commit 91d72a8 into dev/alpha Jun 30, 2026
@aidankhogg aidankhogg deleted the codex/add-resolverpolicy-model-and-helper-function branch June 30, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

codex enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant