Commit ccc856f
committed
Remove the OpenHuman framing from core (#18 §C4)
Deletes `default_openhuman_dir()` and its one caller,
`MemoryClient::new_local()`.
`new_local` is the constructor that produced openhuman#5570: it resolved
`~/.openhuman/workspace` from the home directory and never consulted the
host's workspace scoping, so on any scoped host the write landed in a
store nothing else reads -- it failed by succeeding. openhuman#5575
removed the last caller; the reviewer there noted no lint on the host
side can hold this line (a scanner needle for a dead function fails the
liveness check), so the deletion has to happen here.
`default_openhuman_dir` existed for `new_local` alone. With it gone,
core no longer knows the host's directory layout at all: every
construction path takes an explicit workspace directory.
What deliberately stays:
- `global::init_default()` -- `#[cfg(test)]`, and its doc already warns
it must never run in production.
- The `"openhuman"` provider slug in the embedder resolution ladder --
host config vocabulary, not directory framing; removing it breaks
existing configs for no containment gain.
- `OPENHUMAN_OLLAMA_BASE_URL` in `TestEmbeddingHost` -- `#[cfg(test)]`.
- Test fixture prose mentioning OpenHuman.
`dirs` stays a normal dependency: `engine/persona.rs` still resolves the
home directory for persona files.
cargo test -p tinymemory-core: 804 passed, 0 failed
cargo clippy -p tinymemory-core --all-targets: clean
cargo fmt --all -- --check: clean1 parent dd6fd33 commit ccc856f
2 files changed
Lines changed: 0 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | 82 | | |
99 | 83 | | |
100 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | 131 | | |
145 | 132 | | |
146 | 133 | | |
| |||
0 commit comments