The adapters package imported under another name is an import of the writer's adapter, and record 0215 says which aliased harness.apply records (#876)

Merged
DO
6d ago
+12-5

Fixes #876

This follows #875 (record 0215), on the Factory Builder's ruling of 2026-11-14.

  • Importing the adapters package under another name. import adapters as api is ordinary style, so good-faith code may write it. In tools/check_authority.py _calls_a_recorder, a step that imports, under any name, a package holding the writer's adapter is now refused as one that imports the writer's adapter. A step that does that cannot call api.opening.open_pull_request itself beside the recorder it reaches. A step that imports adapters.github as gh, or from adapters import github, is unaffected. A plain import adapters was already refused.
  • Record 0215 states which aliased harness.apply records the opening. A new Boundaries row says that import harness.apply as a; a.opened(...) records the opening. What records nothing is harness.apply.opened spelt out when only that alias is bound. #875's row meant this, but its wording said otherwise. No existing row changes.

Recorder calls in nested or dead code are still declined, under 0215's good-faith row, as ruled.

Held by

  • tests/test_tools.py::test_a_role_named_to_open_pull_requests_waits_on_its_writer gains the import adapters as api case, which is refused.
  • The new mutant, "the adapters package imported under another name is no import of the writer's adapter", is killed by that case.
  • All 154 mutants of check_authority.py and check_examples.py are killed.
  • make checks passes.

Second readers

ReaderHeadResult
Kimi77775e66no findings
Astra77775e66no findings
Claude + security77775e66One low, taken: the new row read as if the import were refused only beside a direct call; the code refuses the import itself. Reworded in c40e223d. It ran the new mutant alone (killed), tried good-faith job and step imports (none newly refused), and confirmed that no existing row changed
Carbon—not run: this week's quota goes to the S3 stack. Owed
Muse—not run (quota: the window resets 2026-11-16). Owed

šŸ¤– Generated with Claude Code