diff --git a/OKF/INDEX.md b/OKF/INDEX.md index 1da0f9d..412d7fe 100644 --- a/OKF/INDEX.md +++ b/OKF/INDEX.md @@ -19,3 +19,4 @@ your task needs. Humans welcome too. ## Specs - [001](specs/001-add-write-readme-r.md) — add write-readme-r skill — draft +- [ferry-python-siblings](specs/ferry-python-siblings/MAP.md) — Python siblings for bdd/diagnose — 3 open decisions diff --git a/OKF/specs/ferry-python-siblings/D-1-mirror-or-redesign.md b/OKF/specs/ferry-python-siblings/D-1-mirror-or-redesign.md new file mode 100644 index 0000000..249c591 --- /dev/null +++ b/OKF/specs/ferry-python-siblings/D-1-mirror-or-redesign.md @@ -0,0 +1,23 @@ +--- +status: open +blocked-by: [] +--- + +# D-1 — mirror the R sibling structure, or redesign for Python? + +## Why it must be decided +Every sibling file's outline depends on it; deciding late means +rewriting all six files. + +## Options +- **A — mirror**: same file names and section shapes as the R set; + cheapest, symmetrical cross-links from bdd/diagnose already half-exist. +- **B — redesign**: Python-first outline (typing, fixtures-as-DI, + pytest idioms) where the R shape doesn't fit; better fit, more work, + asymmetric maintenance. + +## Recommendation +A, with per-file deviations allowed when a section would be a no-op in +Python — mirror is reversible per file, redesign is not. + +## Resolution diff --git a/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md b/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md new file mode 100644 index 0000000..2779bc7 --- /dev/null +++ b/OKF/specs/ferry-python-siblings/D-2-mocking-doctrine.md @@ -0,0 +1,21 @@ +--- +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 codebase-design. +- **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 diff --git a/OKF/specs/ferry-python-siblings/D-3-diagnose-content-split.md b/OKF/specs/ferry-python-siblings/D-3-diagnose-content-split.md new file mode 100644 index 0000000..fcdd362 --- /dev/null +++ b/OKF/specs/ferry-python-siblings/D-3-diagnose-content-split.md @@ -0,0 +1,21 @@ +--- +status: open +blocked-by: [D-1] +--- + +# D-3 — feedback-loops-py vs instrumentation-py: where does the split fall? + +## Why it must be decided +diagnose links both; overlapping content (pdb in both?) would violate +one-fact-one-home. + +## Options +- **A — R-parallel split**: loops = constructing red-capable commands; + instrumentation = interactive inspection (breakpoint, --pdb, cProfile). +- **B — merge into one file**: fewer files, but breaks the R symmetry + and the diagnose phase-1/phase-4 pointer split. + +## Recommendation +A — the two diagnose phases consume them separately. + +## Resolution diff --git a/OKF/specs/ferry-python-siblings/MAP.md b/OKF/specs/ferry-python-siblings/MAP.md new file mode 100644 index 0000000..88e1137 --- /dev/null +++ b/OKF/specs/ferry-python-siblings/MAP.md @@ -0,0 +1,12 @@ +# ferry — python-siblings + +Destination: bdd and diagnose carry Python reference siblings of the +same depth as their R ones (tests-py, mocking-py, interface-design-py, +docstrings-py, feedback-loops-py, instrumentation-py), so /dev-python +stops pointing at acknowledged gaps. + +| id | decision | status | blocked-by | spec | +|---|---|---|---|---| +| D-1 | mirror R sibling structure or redesign for Python? | open | — | | +| D-2 | mocking doctrine: facade+DI only, or bless pytest monkeypatch? | open | D-1 | | +| D-3 | split of feedback-loop vs instrumentation content for diagnose? | open | D-1 | |