Skip to content

docs(standards): an I/O test exercises one adapter; its isolation is a choice, not a tier - #46

Merged
systemfsoftware-bot merged 3 commits into
mainfrom
fix/io-tests-target-coupling-not-a-runtime
Dec 3, 2026
Merged

systemfsoftware-bot merged 3 commits into
mainfrom
fix/io-tests-target-coupling-not-a-runtime

Conversation

@systemfsoftware-bot

@systemfsoftware-bot systemfsoftware-bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Describes head f0edaec918c.

Intent

Test isolation is chosen per adapter, not fixed as a tier. SF-IMP-5 and SF-WRK-4 named "microVM" runs as a test tier of their own, which led repositories to require a virtual machine for every integration resource. The failure the rules should prevent is a test that drives the subject's own logic through real I/O.

Non-goals: this change does not rule out virtual machines, containers or in-process engines; each stays available where an adapter needs it.

Changes

  • SF-IMP-5: drops "or microVM" from the list of test kinds.
  • SF-WRK-4: replaces "microVM runs" with "tests that boot a container or virtual machine", so the shared-host limit now applies to any heavy isolation, not one named runtime.
  • SF-IMP-5: "lightest tier" becomes "lightest isolation".
  • SF-TST-6: an adapter suite exercises one adapter against a real resource and asserts what that resource stored or returned. The subject's own logic is tested behind its ports, never driven through real I/O. The resource's isolation is chosen by what the adapter needs. This is a merge into the existing rule's "put I/O tests in adapter suites", not a new ID.

Review: one outside review, at 11077b6

  • P1, SF-TST-6 grew to four sentences against the one-or-two-sentence rule shape: fixed. It is two sentences again.
  • P1, "asserts what that resource stored or returned" left out adapter suites that check error mapping, outbound effects or round trips through the port: fixed. It now says "exercising one adapter through its port against its backing resource or a compatible engine".
  • P1, dropping "microVM runs" from SF-WRK-4 loosened the shared-host limit (WORKING.md says local rules narrow, never loosen): fixed. It now names tests that boot a container or virtual machine.
  • P2, "lightest tier" in SF-IMP-5: fixed.

Rejected

  • A new SF-TST-8: CONTRIBUTING.md says merge before adding, and SF-TST-6 already owns where I/O tests live.
  • Naming one allowed runtime (in-process engines only, or containers only): that replaces one fixed tier with another.

Verification

  • deno task check: "Checked 12 files".

Rollback

Revert this PR. Consumers pick it up on their next subtree update.

Second review round (head f0edaec918c)

  • P1, no docs/solutions record of the cause: fixed. Added docs/solutions/architecture-patterns/an-io-test-isolates-one-adapter-and-its-runtime-is-a-choice.md, which names SF-IMP-5 and SF-WRK-4 as the cause. deno task check passes.
  • Policy verdict on the rule text: ship. The verdict was given on 07c0bbf024e; the only commit since then adds the solution record.

…a choice, not a tier

SF-IMP-5 and SF-WRK-4 named microVM runs as a test tier of their own.
Isolation is chosen per adapter (in-process engine, container or virtual
machine). The failure to prevent is a test that drives the subject's own
logic through real I/O, so SF-TST-6 now says an adapter suite exercises one
adapter and asserts what its real resource stored or returned.
@mergify

mergify Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

This pull request is merged.

@systemfsoftware-bot
systemfsoftware-bot merged commit ac1ab83 into main Dec 3, 2026
4 checks passed
@systemfsoftware-bot
systemfsoftware-bot deleted the fix/io-tests-target-coupling-not-a-runtime branch December 3, 2026 16:05
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