Skip to content

Phase 9c: Filter/skip/observe consistency tests (U-4.3)#555

Merged
Muizzkolapo merged 3 commits into
integration/batch-online-unificationfrom
unify/phase-9c-filter-skip-observe
May 17, 2026
Merged

Phase 9c: Filter/skip/observe consistency tests (U-4.3)#555
Muizzkolapo merged 3 commits into
integration/batch-online-unificationfrom
unify/phase-9c-filter-skip-observe

Conversation

@Muizzkolapo
Copy link
Copy Markdown
Owner

Summary

Test classes

  • TestFilteredNamespaceObserve — TDD contract: observe/wildcard/fan-in on filtered namespace
  • TestFilterSkipObserveSymmetry — filter and skip produce identical observe/passthrough/drop results; absent namespace still errors
  • TestFanInFilterInteractions — 3-way fan-in, mixed observe+passthrough on filtered, all-filtered scenario

Verification

  • pytest tests/unit/unification/test_phase9c_filter_skip_observe.py -v — 11 passed
  • ruff format --check — clean
  • ruff check — clean
  • pytest — 6932 passed (3 pre-existing failures unrelated)

TDD contract class TestFilteredNamespaceObserve plus filter/skip
symmetry and fan-in interaction tests.  11 new tests verify that
filtered and skipped namespaces produce identical null-safe observe
behavior — all fields resolve to None instead of crashing.

The behavioral implementation was completed in earlier work (PR #538
fan-in guard-filter null namespace + Phase 9a PR #554).  These tests
formalize the contract and lock the invariant: filter = skip for
observe/passthrough resolution.
- Replace tautological test_filtered_and_skipped_resolve_identically
  (identical inputs proving f(x)==f(x)) with test_all_directives_null_safe
  that exercises observe+passthrough+drop on a filtered namespace
- Replace tautological isinstance(dict) assertion in drop test with
  meaningful checks on prompt_context content
- Fix invalid changie timestamp (09:c0 → 09:30)
- Remove comments that restate assertions
Already covered by test_all_directives_null_safe_on_filtered
(observe+passthrough+drop) and test_three_way_fan_in_one_filtered
(fan-in layout). 10 tests remain.
@Muizzkolapo Muizzkolapo merged commit 7bf5f3b into integration/batch-online-unification May 17, 2026
1 check passed
@github-actions github-actions Bot locked and limited conversation to collaborators May 17, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant