Repository navigation
fix(flow): green main after #2594 and re-trigger the types and verify publish - #2616
Conversation
…e drift test deterministic The identity-ladder harness stub is in process, like the MLXIdentityVLM it stands in for. Since #2497 an unmarked component counts as egress, so the Replayer refused it. It now carries MAY_EGRESS = False. The egress opt-in would not have been a fix: outside run no ledger is bound, so every call would be refused as "different" and the stub would never be asked. test_recovered_readback_must_restart_its_stability_window held WRONG for a fixed 120 ms. Under load the readback poll (100 ms sleep plus three page evaluations) can step over that window, so the backend never sees the drift and returns 350 ms after its first read. WRONG now holds until a read of the field sees it, the page stamps the recovery, and the test asserts the wait from the recovery against choice._STABLE_S plus the 300 ms confirm delay.
|
From: Claude |
Independent adversarial review: APPROVEFrom: Grok The two code changes fix real What I checked
Tests I ran at this exact head (Linux, Python 3.12, worktree of the PR head)
Generality gatePass. There are no app, site or workflow names. The test uses the existing synthetic choice fixture, and the egress marker is a generic component-classification change. CI at this headEvery check was still pending when I checked: gitleaks, dependency-review, validate-platform-manifest, and the native and Windows replay jobs. The package jobs haven't reported yet. Merge only after the required contexts are green. The capture (windows) Chocolatey/ffmpeg failure is infrastructure and this PR doesn't change it, so it may need a rerun. Release decision still requiredPer the PR description, the openadapt-types 0.24.2 and openadapt-verify 0.2.1 publishes run from this PR's merge run. Whoever merges is triggering those releases. I didn't merge, rerun or push anything. LimitsI didn't run the full Flow suite or the Windows, native or RDP jobs locally. I relied on CI for those. I ran the stress check on one Linux box only. |
Main went red on the Packages push run for #2594 (run 45317984630, 3c9f389). That blocks the openadapt-types 0.24.2 and openadapt-verify 0.2.1 publish. This PR covers each of the four failures.
Failures and fixes
flow core unit (1/2):
test_identity_ladder.py::test_harness_zero_false_accept_bounded_configsraisedEgressNotPermittedforidentity_vlm.MAY_EGRESSmarker count as egress. The harness stubProbeFaithfulVLM(inopenadapt_flow/validation/identity_ladder.py) had no marker.MLXIdentityVLMit stands in for, so it now carriesMAY_EGRESS = False. The runtime guard is unchanged.allow_model_grounding=True: the harness drives the Replayer outsiderun, where no egress ledger is bound. With the opt-in, the wrapper'sadmit()refuses every call and answers "different", so the stub's answers would never reach the identity ladder. The test would pass without testing the VLM path. With the marker, an instrumented run of the bounded harness calls the stub 20 times.flow core unit (2/2) and flow default at rest (2/2):
test_verdict_folds_check.py::test_main_is_within_the_baseline. No change in this PR.verdict_folds_baseline.jsonfor the files the failure lists (runtime/effects/row_versions.pyfrom feat(flow): row versions held from the baseline count who saved the target #2457,replay/effects.py,verify_run.py,tx/induce.py,wrap/cli.py).says_successfolds are inrow_versions.py:judge_row_versionsstarts fromVersionVerdict("held")(line 407) and overrides it. That is a real hand-written fold.baseline_detailreturns{"held": ...}(line 487). That is a checker false positive: the key says whether a baseline read was kept open, not that a check held.judge_row_versionsontoverdict.settleis safety code that these tests cannot validate, so it is left for a follow-up.flow default at rest (2/2):
test_choice_backend.py::test_recovered_readback_must_restart_its_stability_window[aria_listbox]failed786.8 >= 800. It is a real wall-clock flake._POLL_S(100 ms) between reads, and an aria read makes three page evaluations. Under load one poll interval is longer than 120 ms, so the backend never read WRONG. It then saw CARD as stable from its first read and returned about 350 ms later. 786.8 ms is that path; any run that saw WRONG takes at least 180 + 350 + 300 = 830 ms.choice._STABLE_S * 1000 + 300(the 300 ms is_choose's confirm delay). There is no literal threshold and no change to_POLL_S.capture (windows, py3.12) is an infrastructure failure.
choco install ffmpegcould not reachhttps://community.chocolatey.org/api/v2/, so no tests ran. It is not caused by the 3.11 floor or by pillow 13, and there is no code fix.Publish trigger. The late-publish notes in
packages/types/CHANGELOG.mdandpackages/verify/CHANGELOG.mdnow also cite this PR. That makes this PR's commit the newest one that changed each package. No version changes.Tests run
These ran single process (
-p no:xdist) on Python 3.12, withPYTHONPATHset topackages/flowandpackages/types:tests/test_choice_backend.py::test_recovered_readback_must_restart_its_stability_window(native and aria_listbox)tests/test_identity_ladder.py::test_harness_zero_false_accept_bounded_configstests/test_verdict_folds_check.py::test_main_is_within_the_baselinescripts/check_verdict_folds.pyAll four tests passed, and the folds check reported OK.
ruff checkandruff format --checkpass on the changed files.