PRD 0042: smolmachines cross-backend parity tests #145

Merged
didericis merged 3 commits from prd-0042-smolmachines-parity-tests into main 2026-06-02 11:48:14 -04:00
Collaborator

Closes #139.

PRD: https://gitea.dideric.is/didericis/bot-bottle/src/branch/prd-0042-smolmachines-parity-tests/docs/prds/0042-smolmachines-parity-tests.md

Summary

  • Add parameterised parity tests covering secret env injection, forwarded env, resume, and remediation dispatch across Docker and smolmachines backends
  • Run against mock/stub backends so tests require no live VM or Docker daemon
  • Depends on PRDs 0038–0040; env and resume scenarios can be finalised once those land

Changes (1 commit)

  • docs/prds/0042-smolmachines-parity-tests.md — add PRD 0042 (Draft)
Closes #139. PRD: https://gitea.dideric.is/didericis/bot-bottle/src/branch/prd-0042-smolmachines-parity-tests/docs/prds/0042-smolmachines-parity-tests.md ## Summary - Add parameterised parity tests covering secret env injection, forwarded env, resume, and remediation dispatch across Docker and smolmachines backends - Run against mock/stub backends so tests require no live VM or Docker daemon - Depends on PRDs 0038–0040; env and resume scenarios can be finalised once those land ## Changes (1 commit) - `docs/prds/0042-smolmachines-parity-tests.md` — add PRD 0042 (Draft)
didericis added 3 commits 2026-06-02 11:31:03 -04:00
Closes #139. Adds tests/unit/test_backend_parity.py which verifies that
DockerBottle and SmolmachinesBottle expose identical observable contracts
for agent_argv shape, env injection, exec user-switching, ExecResult
fields, and close() idempotency. All assertions use mock subprocess
layers — no live Docker daemon or VM required.
docs: mark PRD 0042 Active
test / unit (pull_request) Successful in 40s
test / integration (pull_request) Successful in 55s
test / unit (push) Successful in 40s
test / integration (push) Successful in 46s
2c061d9cd9
didericis force-pushed prd-0042-smolmachines-parity-tests from 8b8ccf26cc to 2c061d9cd9 2026-06-02 11:31:03 -04:00 Compare
didericis merged commit 2c061d9cd9 into main 2026-06-02 11:48:14 -04:00
didericis deleted branch prd-0042-smolmachines-parity-tests 2026-06-02 11:48:15 -04:00
Sign in to join this conversation.