Repository navigation
Closed
Labels
area:cliCLIarea:parserParserarea:qaQAarea:storageStoragephase:migrationIncremental migration toward target architecturetheme:semantic-proofSemantic, structural, trace, and provider proof obligationstheme:verifiabilitySchema-native proof and evidence architecturetype:testTests
Description
Problem
Polylogue has broad property, snapshot, benchmark, validation-lane, and mutation-campaign infrastructure. The remaining gap is not generic test volume; it is focused law coverage for mutation fronts that historically expose weak semantics.
The highest-value fronts are:
- provider semantics;
- repository/query agreement;
- filter algebra;
- source detection;
- drive-client behavior;
- UI/core rendering contracts.
Scope
Add focused law and metamorphic suites that target surviving or historically weak mutation fronts.
Candidate suites:
- Retrieval laws: provider-filter subset behavior, list/count/search agreement, and equivalent filter-order stability.
- Ranking differential laws: hybrid/FTS/fusion ordering against explicit fixtures.
- Source detection adversaries: misleading names, mixed ZIPs, grouped/individual ambiguity, and foreign-provider blobs.
- Provider semantic oracles: content blocks, metadata extraction, reasoning/tool/token/cost extraction, and viewport shaping.
- Foreign-provider rejection laws: wrong-provider payloads never crash and are not silently adopted.
Acceptance criteria
- At least two mutation-front suites land with focused tests and clear semantic oracles.
- The suites target named mutation campaigns rather than broad coverage percentages.
- Reusable helpers live under
tests/infra/and do not create a new isolated testing silo. - Relevant mutation campaign commands are recorded in the PR verification notes.
devtools verifypasses before merge.
Metadata
Metadata
Assignees
Labels
area:cliCLIarea:parserParserarea:qaQAarea:storageStoragephase:migrationIncremental migration toward target architecturetheme:semantic-proofSemantic, structural, trace, and provider proof obligationstheme:verifiabilitySchema-native proof and evidence architecturetype:testTests
Activity
Sinity commentedon Apr 22, 2026
Checkpoint from
feature/test/mutation-law-frontiersatbad1dc12.Implemented two named mutation-front suites:
filters: added list/count/first semantic oracles for provider + title filtering, preserving base order and verifying equivalent filter order.source-detection: added grouped-stream adversary coverage whereclaude-code/codexhints wrap ChatGPT-shaped JSONL payloads and payload shape must win.Local verification:
pytest tests/unit/core/test_filters_props.py -q -k "provider_filter_list_count_subset_and_order_law or equivalent_filter_order_list_count_and_first_law"— 2 passedpytest tests/unit/sources/test_source_laws.py -q -k "entry_payload_detection_overrides_misleading_grouped_fallback_law"— 2 passedpytest tests/unit/core/test_filters_props.py -q— 92 passedpytest tests/unit/sources/test_source_laws.py -q— 110 passedruff format tests/unit/core/test_filters_props.py tests/unit/sources/test_source_laws.pyruff check tests/unit/core/test_filters_props.py tests/unit/sources/test_source_laws.pydevtools verify— all checks passedCampaign commands relevant to this slice, not run locally here:
devtools mutmut-campaign run filtersdevtools mutmut-campaign run source-detectiontest: add mutation law frontier suites
Sinity commentedon Apr 22, 2026
Completed in PR #348, merged as
bcb5cc3692bdf02ac33d2ed1154fef6141f809fd.What landed:
filtersmutation front: provider/title semantic laws now check list/count/first agreement, base-order preservation, and equivalent filter-order behavior.source-detectionmutation front: grouped-provider fallback/path hints no longer have untested authority over ChatGPT-shaped JSONL payload entries.Verification before merge:
tests/unit/core/test_filters_props.pyandtests/unit/sources/test_source_laws.pydevtools verifypassed locallydevtools verify --quickpassedtest: add mutation law frontier suites (#348)
test: add mutation law frontier suites (#348)
test: add mutation law frontier suites (#348)
test: add mutation law frontier suites (#348)