docs(adr): tests that start containers run in the audit container (ADR-WULF-004, ADR-WULF-010) #20

Merged
neerdoc merged 42 commits from docs/adr-container-tests-in-audit into main 2026-11-23 11:52:52 +00:00
Owner

Decides where tests that need a container runtime run, as amendments to ADR-WULF-004 and ADR-WULF-010, and closes issue 0080.

  • ADR-WULF-004: every test of the audit runs inside the audit container, including tests that start containers, with rootless Podman nested in it. The audit runs none of its tests on the host; the runner's own tests are not stage tests.
  • ADR-WULF-004: the host's Podman socket is never mounted. The audit container gets only a non-root user, /dev/fuse and label=disable, and the reason and the accepted risk are stated.
  • ADR-WULF-004: the audit builds the image under test from src/. A test that cannot run (runtime cannot start, tool missing) is a skip that verifies nothing and gets an issue; a build that runs and fails is a failure.
  • ADR-WULF-004: the loop names the tooling as a fifth place of a fault; the stages the fault touched are re-run, and the audit always is.
  • ADR-WULF-004: Verification records two spikes of nested rootless Podman (2026-11-23) with what worked, what failed and what was not tested.
  • ADR-WULF-010: new optional container-options key per stage, limited to a non-root --user, --device /dev/fuse and --security-opt label=disable; the container gets only the options its stage declares besides what the runner sets; the home temporary filesystem is writable by the container's user.
  • company/AGENTS.md: the triage loop names the tooling as a place of a fault.
  • Issues: 0080 moved to done.
  • Review records: three rounds under docs/reviews/adr-container-tests-in-audit/. Round 001 found 4 Medium and 3 Low, round 002 found 5 Medium and 2 Low, round 003 is clean (3 Low, all resolved). Latest round: docs/reviews/adr-container-tests-in-audit/review-003/

No roadmap checklist item is completed.

🤖 Generated with Claude Code

Decides where tests that need a container runtime run, as amendments to ADR-WULF-004 and ADR-WULF-010, and closes issue 0080. - ADR-WULF-004: every test of the audit runs inside the audit container, including tests that start containers, with rootless Podman nested in it. The audit runs none of its tests on the host; the runner's own tests are not stage tests. - ADR-WULF-004: the host's Podman socket is never mounted. The audit container gets only a non-root user, `/dev/fuse` and `label=disable`, and the reason and the accepted risk are stated. - ADR-WULF-004: the audit builds the image under test from `src/`. A test that cannot run (runtime cannot start, tool missing) is a skip that verifies nothing and gets an issue; a build that runs and fails is a failure. - ADR-WULF-004: the loop names the tooling as a fifth place of a fault; the stages the fault touched are re-run, and the audit always is. - ADR-WULF-004: Verification records two spikes of nested rootless Podman (2026-11-23) with what worked, what failed and what was not tested. - ADR-WULF-010: new optional `container-options` key per stage, limited to a non-root `--user`, `--device /dev/fuse` and `--security-opt label=disable`; the container gets only the options its stage declares besides what the runner sets; the home temporary filesystem is writable by the container's user. - company/AGENTS.md: the triage loop names the tooling as a place of a fault. - Issues: 0080 moved to done. - Review records: three rounds under docs/reviews/adr-container-tests-in-audit/. Round 001 found 4 Medium and 3 Low, round 002 found 5 Medium and 2 Low, round 003 is clean (3 Low, all resolved). Latest round: docs/reviews/adr-container-tests-in-audit/review-003/ No roadmap checklist item is completed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 004 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 003 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 001 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 002 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 005 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 006 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 007 of review 001 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 001 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 002 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 003 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 004 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 005 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 006 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 007 of review 002 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 001 of review 003 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 002 of review 003 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Resolves 003 of review 003 of adr-container-tests-in-audit.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
WulfScience-FOSS/wulf-dev!20
No description provided.