Repository navigation
refactor(flow): extract Stedi 270/271 eligibility client into optional connector package - #2488
Conversation
…l connector package
Independent adversarial review: REQUEST CHANGESFrom: Grok The move itself is a package-boundary extract: the Flow P1. The new package is not on the monorepo CI path, so the moved fail-closed tests no longer run on this PR. There is no |
Independent adversarial review: APPROVEFrom: Grok Delta versus my REQUEST CHANGES at The unique work is CI and lock wiring for the already-moved connector. Residual: |
Summary
Extracts the Stedi 270/271 healthcare payer eligibility subpackage (
openadapt_flow/eligibility/, 48 engine-generality baseline hits, zero engine importers) out ofopenadapt-flowcore into a standalone optional connector package underpackages/connectors/eligibility/(openadapt-eligibility):packages/connectors/eligibility/):openadapt_flow/eligibility/{__init__.py, artifact.py, client.py, payer_routes.yaml, waterfall.py}->packages/connectors/eligibility/openadapt_eligibility/(preserving git rename history).test_eligibility_api.py,test_eligibility_artifact.py,test_eligibility_live_stedi.py,test_eligibility_waterfall.py) ->packages/connectors/eligibility/tests/and updated imports toopenadapt_eligibility.pyproject.toml(openadapt-eligibility, MIT, depending onopenadapt-flow) andREADME.md.packages/flow/):openadapt_flow/eligibility/payer_routes.yamlfrompackages/flow/public-artifacts.json.packages/flow/tests/test_binary_file_descriptors.pyto test flow's ownitem_approval._write_exclusiveand addedtest_write_exclusive_preserves_exact_bytes_and_refuses_overwriteinpackages/connectors/eligibility/tests/test_eligibility_artifact.pyso zero binary-preservation coverage is lost.packages/flow/scripts/generality_baseline.jsonstrictly downward from 301 to 253 (-48hits; independent of refactor(flow): generalize Execute seeding, reward bundles, and identity chrome #2486, so both PRs can merge in any order).Generality Gate
openadapt_flow/no longer ships the Stedi 270/271 vendor client, payer route YAML, or healthcare eligibility waterfall (48 -> 0stedihits inopenadapt_flow/).packages/connectors/as the clean optional connector boundary outsideopenadapt-flowcore, depending only on publicopenadapt_flowprimitives (AuthRef,DocumentHashVerifier,Effect,open_binary).3 skippedwithoutSTEDI_API_KEY) were not run against production credentials.Verification
python3 scripts/check_engine_generality.py->Engine generality OK (253 baseline hits left)(down from 301)python3 scripts/check_release_consistency.py->Release version 3.4.0 is synchronized across project, module, and lock.ruff check&ruff format --check-> clean across all 10 filesmypy --follow-imports=silent --ignore-missing-imports packages/connectors/eligibility/openadapt_eligibility/->Success: no issues found in 4 source filespytest(packages/connectors/eligibility/tests,packages/flow/tests/test_binary_file_descriptors.py,packages/flow/tests/test_openimis_eligibility.py) -> 140 passed, 3 skipped (live Stedi API tests)