refactor(okf): OKF/specs/ becomes flat OKF/blueprints/ (NNN files only); ferry dirs move to OKF/ferries/<topic>/ so numbering and status greps need no exclusions docs(okf): INDEX.md gains Blueprints (NNN — title — status) and Ferries (<topic> — n/m resolved → MAP.md) sections; decisions stay in MAP.md only docs(okf): CONTEXT.md supersedes spec with blueprint and records the Contract section; loop pages updated for renamed skills
22 lines
603 B
Markdown
22 lines
603 B
Markdown
---
|
|
status: open
|
|
blocked-by: [D-1]
|
|
---
|
|
|
|
# D-2 — mocking doctrine: facade + DI only, or bless monkeypatch?
|
|
|
|
## Why it must be decided
|
|
mocking-py.md is the normative file bdd points at before any `patch`
|
|
call; its stance decides what reviews flag.
|
|
|
|
## Options
|
|
- **A — facade + DI only**: monkeypatch/patch treated like mockery::stub
|
|
in R — a smell needing justification. Consistent with design-codebase.
|
|
- **B — bless monkeypatch at seams**: pragmatic pytest idiom, weaker
|
|
seam discipline.
|
|
|
|
## Recommendation
|
|
A — matches the R doctrine and the existing bdd "seams only" rule.
|
|
|
|
## Resolution
|