test: add TDD bug-capture test for #992 — DI container audit cache failure #1164

Closed
brent.edwards wants to merge 1 commits from tdd/m6-di-audit-cache-failure into master

1 Commits

Author SHA1 Message Date
brent.edwards c55ee7e68d test: add TDD bug-capture test for #992 — DI container audit cache failure
CI / lint (pull_request) Failing after 5s
CI / typecheck (pull_request) Failing after 5s
CI / coverage (pull_request) Has been skipped
CI / security (pull_request) Failing after 5s
CI / quality (pull_request) Failing after 2s
CI / unit_tests (pull_request) Failing after 2s
CI / docker (pull_request) Has been skipped
CI / integration_tests (pull_request) Failing after 2s
CI / e2e_tests (pull_request) Failing after 2s
CI / build (pull_request) Failing after 4s
CI / helm (pull_request) Failing after 4s
CI / status-check (pull_request) Failing after 1s
CI / benchmark-publish (pull_request) Has been skipped
CI / benchmark-regression (pull_request) Has been skipped
Add a dedicated Behave bug-capture scenario that reproduces the get_container() audit subscriber initialization caching defect from #992. The steps patch container construction so audit subscriber initialization fails once then succeeds, call get_container() twice, and assert a retry should occur on the second access.

The assertion intentionally fails against current behavior (only one initialization attempt), and the @tdd_expected_fail + @tdd_bug + @tdd_bug_992 tags invert that failure to a CI pass until the production fix lands. This creates a precise regression guard that will only pass without inversion when retry semantics are implemented.

ISSUES CLOSED: #1096
2026-04-02 07:02:13 +00:00