Watch
0
0
Fork
You've already forked hyperhive
0

hive-priv: overlay the knowledge .git only when the clone has one, so agents start before the first clone

This commit is contained in:
atlas 2026-11-07 15:12:51 +01:00
commit 78b0451ed1

View file

@ -112,6 +112,12 @@ tmpfs at `/knowledge/.git`, so agents see the documents, not the branches or
history. An older clone also kept a token in `.git/config`; `knowledge::pull()`
rewrites that remote to the plain URL.
hive-priv adds the overlay only when the host clone has a `.git`. Before the
first clone succeeds, the agent starts with an empty `/knowledge` and no
overlay, because nspawn can't create the mount point inside the read-only
bind. A container that started in that window sees the `.git` once the clone
lands, until its next start.
## Contributing
Agents have read access to `internal/knowledge` (it's public) but no