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

This commit is contained in:
ed
2026-07-02 23:46:16 -04:00
parent e9a19523d6
commit 71e01dfee7
18 changed files with 91 additions and 82 deletions
@@ -0,0 +1,10 @@
# ban_local_imports
## v1
**Why this iteration:** Lifted verbatim from `.opencode/commands/mma-tier3-worker.md:42-46` (the current canonical source). The plan referenced `conductor/code_styleguides/python.md` §17.9a (lines 364-443) but that section no longer exists in python.md after a 2026-06-27 refactor — the §17.9 content was moved into the agent role prompts (this file). This v1 is the baseline encoding — the imperative-ban style currently in production.
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
**Source:** `.opencode/commands/mma-tier3-worker.md:42-46` (originally `conductor/code_styleguides/python.md` §17.9a, drift-corrected)
---
**Lifted:** 2026-07-02 (Phase 1 harvest by Tier 3 worker; user directive 2026-07-02 moved the header into this meta file)
@@ -1,12 +1,3 @@
# ban_local_imports — v1
**Why this iteration:** Lifted verbatim from `.opencode/commands/mma-tier3-worker.md:42-46` (the current canonical source). The plan referenced `conductor/code_styleguides/python.md` §17.9a (lines 364-443) but that section no longer exists in python.md after a 2026-06-27 refactor — the §17.9 content was moved into the agent role prompts (this file). This v1 is the baseline encoding — the imperative-ban style currently in production.
Future variants will test alternative encodings (rationale-first, before/after, tabular) against this baseline.
**Source:** `.opencode/commands/mma-tier3-worker.md:42-46` (originally `conductor/code_styleguides/python.md` §17.9a, drift-corrected)
---
- Local imports inside functions (top-of-module imports only)
**The one exception:** the literal wire boundary (TOML/JSON parse functions) may use `dict[str, Any]` + `Metadata.from_dict(...)`.