main
md 38 lines 1.74 KB
Rendered Raw
1 # faiss_monkey_patch.py DOX
2
3 ## Purpose
4
5 - Own the `faiss_monkey_patch.py` helper module.
6 - This module applies compatibility patches for FAISS behavior.
7 - Keep this file-level DOX profile synchronized with `faiss_monkey_patch.py` because this directory is intentionally flat.
8
9 ## Ownership
10
11 - `faiss_monkey_patch.py` owns the runtime implementation.
12 - `faiss_monkey_patch.py.dox.md` owns durable notes about responsibilities, contracts, side effects, and verification for that implementation.
13
14 ## Runtime Contracts
15
16 - Helper modules own reusable framework APIs and must preserve public callers unless all callers, tests, and docs are updated together.
17 - Update this file whenever public functions, classes, persistence behavior, path/security assumptions, side effects, or cross-module contracts change.
18 - Imported dependency areas include: `numpy`, `sys`, `types`, `warnings`.
19
20 ## Key Concepts
21
22 - Important called helpers/classes observed in the source: `types.ModuleType`, `SimpleNamespace`, `warnings.catch_warnings`, `warnings.simplefilter`.
23 - Keep request/response, tool, or helper semantics documented here at the same time as source changes.
24
25 ## Work Guidance
26
27 - Preserve public helper APIs used by core code and plugins unless every caller is updated.
28 - Keep path, auth, secret, persistence, network, and subprocess behavior explicit and bounded.
29 - Prefer adding cohesive helper functions here only when behavior is reused across modules.
30
31 ## Verification
32
33 - Run targeted tests for changed helper behavior; run security regressions for auth, filesystem, WebSocket, tunnel, upload, or secret-handling helpers.
34 - No direct test reference was found by name search; choose the nearest behavioral test or perform a focused smoke check.
35
36 ## Child DOX Index
37
38 No child DOX files.