refactor(directives): strip metadata header from v1.md (27-35 of 51; meta extracted to meta.md)

This commit is contained in:
ed
2026-07-02 23:46:41 -04:00
parent 831499622d
commit 68352ee206
18 changed files with 91 additions and 82 deletions
@@ -0,0 +1,11 @@
# nil_sentinel_pattern
## v1
**Why this iteration:** Lifted verbatim from `conductor/code_styleguides/error_handling.md` §"The 5 Patterns" #1 (lines 23-47).
This is the baseline encoding — the convention-style description with code example currently in production.
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
**Source:** `conductor/code_styleguides/error_handling.md:23-47`
---
**Lifted:** 2026-07-02 (Phase 1 harvest by Tier 3 worker; user directive 2026-07-02 moved the header into this meta file)
@@ -1,13 +1,3 @@
# nil_sentinel_pattern — v1
**Why this iteration:** Lifted verbatim from `conductor/code_styleguides/error_handling.md` §"The 5 Patterns" #1 (lines 23-47).
This is the baseline encoding — the convention-style description with code example currently in production.
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
**Source:** `conductor/code_styleguides/error_handling.md:23-47`
---
### 1. Nil-Sentinel Dataclasses (replaces `None`)
When a function would "return None" in conventional Python, return a