Download Latest Version openadapt-flow 4.1.0 source code.zip (202.4 MB)
Home / openadapt-types-v0.24.3
Name Modified Size InfoDownloads / Week
Parent folder
openadapt_types-0.24.3-py3-none-any.whl 2026-12-02 278.3 kB
openadapt_types-0.24.3.tar.gz 2026-12-02 442.9 kB
openadapt-types 0.24.3 source code.tar.gz 2026-12-02 189.4 MB
openadapt-types 0.24.3 source code.zip 2026-12-02 202.5 MB
README.md 2026-12-02 5.5 kB
Totals: 5 Items   392.6 MB 0

Compatibility: for every input 0.24.2 accepts, outcome_word and build_evidence_scope return the same word except for a confirmed level 1 or level 2 check with no basis. That check was SHOWN and is now RECORDED, or ATTESTED when an operator attested it. Both words were already valid at those levels in 0.24.2, and they are consistent with the same record/run/v1 outcomes as SHOWN. No word becomes stronger and no call that worked now raises. SHOWN blocks written earlier still validate. openadapt-flow 4.1.0, which accepts >=0.24.2,<0.25.0, needs this release to name the post_save_screen and reopened_record bases on its receipts; with 0.24.2 it names none.

  • check_level: the post-save screen check earns VERIFIED. New bases post_save_screen (level 1) and reopened_record (level 2) are handed out only by post_save_screen_basis, from a ScreenCheck that says every intended value was read on the screen field by field and matched, the form left edit mode, and no error is shown. A banner or toast alone, a field not read, or a flag nobody observed earns no basis, and the word is RECORDED. outcome_word and build_evidence_scope now default minimum to same_screen and no longer clamp it to separate_session; a regulated caller passes separate_session. VERIFIED_LEVELS now lists levels 1 to 4 (the levels the word may name); the new INDEPENDENT_LEVELS lists levels 3 and 4. outcome_word never returns SHOWN any more. ScreenCheck refuses a value that is not a count or a flag (a boolean count, a string flag), and from_mapping refuses a mapping with any other key. screen_basis_for(level, checks) is the one rule for a result with one check per save: every check complete and reaching level. build_evidence_scope refuses a screen basis unless screen_checks earns it.
  • evidence_scope: VERIFIED is valid at levels 1 to 4 with a basis that reaches that level. SHOWN is kept in OutcomeWord and still validates at levels 1 and 2 so older receipts verify; it may not name a basis. legacy_word and LEGACY_WORDS let tools label it as the older format. A block that names a screen basis and lists fields_not_read does not validate, whatever its word. A record/run/v1 receipt with a screen basis is refused unless every line is confirmed and none lists field_values as not checked. A block with a new basis does not validate under openadapt-types 0.24.2 or earlier.
  • Test vectors: valid-evidence-scope-post-save-screen (a signed VERIFIED receipt with basis post_save_screen) and older-evidence-scope-shown (an older SHOWN receipt that still verifies), evidence-scope-screen-with-unread-fields and evidence-scope-screen-with-unchecked-write (both refused), plus vectors/screen-check/cases.json, shared by the types, Flow, kernel and launcher tests.
  • evidence: one strict matcher for deciding whether text on a screen or page proves a value or a commit. match_field returns MATCH, MISMATCH or AMBIGUOUS, and only MATCH may pass. A value bound to its label is tried before the whole text. A value merely found in longer text is AMBIGUOUS, and a token never ends at joining punctuation, so 2026-11 is not in 2026-11-29. A label binds only at the start of a line or after |, ; or a tab, with only punctuation between, so Previous Patient ID:, Error: Claim ID: and Name: Jane Doe Previous MRN: don't bind, and neither does DOB in a single-line Patient: X DOB: Y. A bound value may hold only unit words beside the value: CLM-1 not found, Dose: <5, 250.00 CR and Jane Sample (not this patient) are AMBIGUOUS. Numbers compare as whole numeric tokens by value, so 250 never matches $1,250.00 and 5 never matches 50 mg. One label with two values is AMBIGUOUS. phrase_affirmed checks a commit confirmation across two frames. It refuses a phrase already present before, a question, a modal or future form, a negation, or a control label next to it, and a failure word (Error, rolled back, draft, 0 records) on any line new since the first frame. has_negation_or_modal exposes the word check. The module is standard library only. The launcher and the kernel carry byte-identical copies, and a test fails when the copies drift. tests/evidence_corpus.json pins the verdicts on adversarial cases and true positives. docs/evidence-migration.md lists which callers use it.
  • check_level: a fresh_reload basis at level 3. It is a new navigation in the acting session that is proven to have fetched from the server (cache bypassed, the request kept as evidence). With it a level 3 check is VERIFIED; a reopen without that proof stays level 2, RECORDED.
  • evidence_scope: optional agent_used and verifier_adapter labels name the agent or compiled plan that produced a run and the verifier stack that checked it (#2650). Each is a short label and may not contain a URL. A block that carries either does not validate under openadapt-types 0.24.2.
  • Test vectors only, no code change: six record/run/v1 vectors (evidence-scope-null, evidence-scope-null-basis, evidence-scope-null-read-back-at, evidence-scope-null-recheck-window, evidence-scope-protocols-null, evidence-scope-protocols-missing) sign an evidence_scope with a null or missing field. Each payload is not canonical, so every verifier must refuse it as malformed.
Source: README.md, updated 2026-12-02