Skip to content

Remove cross-module imports of test fns and test modules - #11496

Merged
briansrls merged 3 commits into
mainfrom
snappy-pike-153-testfn-imports-f
Sep 17, 2026
Merged

briansrls merged 3 commits into
mainfrom
snappy-pike-153-testfn-imports-f

Conversation

@gunbai-bot

@gunbai-bot gunbai-bot Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Remove cross-module imports of test fns

  • dag/test/parsecheck.dag (a plain module) imported a test fn from
    test.claim.installed_bom_reconcile_witness_test and conjoined it into
    memory_model_holds; the conjunct and the import are dropped. That test
    fn is enrolled and runs on its own.

  • src/v2/test/claim/long/no_dual_representation_test_test.dag only
    re-called the two test fns of v2.lens.no_dual_representation_test,
    which the floor already runs under their own identities (see
    floor_cost_debt); the wrapper sat in witness_deferral_freeze and
    executed nowhere. Module and freeze row deleted.

  • dag/test/probe/self_authored_map_probe.dag imported fx_map from a test module as the refusal under test. Its third function now calls sealed_fixture_map from the new ordinary fixture module test.fixture.data_handling_map_fixture, which is admit_callers-sealed to a caller in its own module and returns the public empty map (no second admitted route to the sealed DataHandlingMap mint). The probe still yields the ConstructorCallAdmissionRefused that data_class_refusal_probe_witness counts (>= 2). product.data_class and the admission witness are unchanged.

Sibling PRs: #11488 #11489 #11490 #11494 #11495.

🤖 Generated with Claude Code

Brian Searls and others added 2 commits September 17, 2026 01:08
- dag/test/parsecheck.dag (a plain module) imported a test fn from
  test.claim.installed_bom_reconcile_witness_test and conjoined it into
  memory_model_holds; the conjunct and the import are dropped. That test
  fn is enrolled and runs on its own.
- src/v2/test/claim/long/no_dual_representation_test_test.dag only
  re-called the two test fns of v2.lens.no_dual_representation_test,
  which the floor already runs under their own identities (see
  floor_cost_debt); the wrapper sat in witness_deferral_freeze and
  executed nowhere. Module and freeze row deleted.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
test.probe.self_authored_map_probe imported fx_map from a test module to
show an unadmitted call refuses. fx_map now lives in
test.fixture.data_handling_map_fixture (no test items), with the same
admit_callers list and authority; product.data_class admits it at the new
path, and both the admission witness and the probe import it from there.
The probe keeps its ConstructorCallAdmissionRefused, so
data_class_refusal_probe_witness keeps its red (DESIGN §4b(4)).

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@gunbai-bot gunbai-bot Bot changed the title Remove cross-module imports of test fns (parsecheck, no_dual_representation wrapper) Remove cross-module imports of test fns and test modules Sep 17, 2026
The previous move of fx_map into the fixture module failed the floor twice:
its authority decl_ref cited a declaration the witness module does not
declare (CITED-DECLARATION-ABSENT), and rebinding fx_map in seven sites
produced unadjudicated TargetChanged namespace deltas.

Instead, leave the admission witness and product.data_class untouched and
give the probe its own caller-sealed builder in
test.fixture.data_handling_map_fixture (sealed to a caller in that module,
returning the public empty map, so no second route to the DataHandlingMap
mint is admitted). The probe's third function still refuses as
ConstructorCallAdmissionRefused, so data_class_refusal_probe_witness keeps
its >= 2 count, and the probe no longer imports a test module.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@briansrls
briansrls added this pull request to the merge queue Sep 17, 2026
Merged via the queue into main with commit 1626a8b Sep 17, 2026
4 checks passed
@briansrls
briansrls deleted the snappy-pike-153-testfn-imports-f branch September 17, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant