Skip to content

fix(netops): fail closed on unobserved Ansible health role facts (PLU-43) - #153

Draft
kayodebristol wants to merge 7 commits into
review/plu-43-health-facts-20261105from
review/plu-43-ansible-role-fail-closed-20261106
Draft

kayodebristol wants to merge 7 commits into
review/plu-43-health-facts-20261105from
review/plu-43-ansible-role-fail-closed-20261106

Conversation

@kayodebristol

Copy link
Copy Markdown
Contributor

Scope

Stacked review-only proposal on #152 (CPU/memory parser evidence). Replaces invalid cpu/memory/ospf gather choices and empty selectors with supported facts health, interfaces, bgp. Reads observed nested CPU/memory values and evidence rather than flat missing values defaulted to zero. UNKNOWN/unsupported/critical measurements fail when strict mode is enabled; OSPF is rejected explicitly. Does not claim interface/BGP inventory as health proof.

Compatibility

Default interface/BGP health checks were unsafe and are now disabled until observation coverage is proven; users seeking inventory may opt in with netops_health_fail_on_critical: false (not health-certified). Strict mode rejects those checks. CPU and memory remain the default strict checks. Existing Molecule mock fixture is incompatible with actual production return shape; do not consider it passing or production verification. Further work must repair Molecule and verify Cisco/Nokia fixtures.

Verification

Synthetic Jinja/PyYAML expression/role contract tests are added for gather selectors, observed zero, high CPU/memory, UNKNOWN, unsupported, default policy, OSPF rejection and no-check failure. GitHub CI/Docs must be checked on final PR head before claiming a pass; no device testing has occurred.

Gates

No merge/deployment/live tests without peer review, final SHA CI, corrected Molecule integration and real-device lab fixtures. No M1 physical/economic construction credit. Related: PLU-43, #151, #152.

@kayodebristol
kayodebristol changed the base branch from review/plu-43-health-facts-20261105 to main November 6, 2026 11:32
@kayodebristol
kayodebristol changed the base branch from main to review/plu-43-health-facts-20261105 November 6, 2026 11:34

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant