Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 89a5d65119 agents: persistent /agents/<n>/work dir outside state/
Agents keep git worktrees and cargo target dirs under /home/<agent>,
which lives in the container rootfs and is deleted on destroy. They
can't move them under state/, because a claude started there walks up
into state/CLAUDE.md and takes on the agent's identity.

Add a per-agent work/ dir next to state/ on the host
(/var/lib/hyperhive/agents/<n>/work), bind-mounted RW at
/agents/<n>/work. hive-c0re creates it in ensure_state_dir and in
set_nspawn_flags (the rebuild path reaches only the latter), the
agent's activation chowns it to the agent user like state/ and
harness/, and measure_agent_disk counts it. destroy never touches the
agent root, so work/ survives it; purge removes the whole root, so
work/ goes with it.

Closes #4977
2026-10-05 12:56:02 +02:00
..
agent_config hive-c0re: fail on an unparseable resource-limits or topology file, write both atomically 2026-09-27 02:41:38 +02:00
dashboard hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
forge hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
job_queue hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
lifecycle agents: persistent /agents/<n>/work dir outside state/ 2026-10-05 12:56:02 +02:00
socket_server hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
stats agents: persistent /agents/<n>/work dir outside state/ 2026-10-05 12:56:02 +02:00
stores hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
workers hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
actions.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
container_view.rs hive-c0re: fail on a malformed agent name and on an unreadable container list 2026-09-27 05:13:21 +02:00
coordinator.rs agents: persistent /agents/<n>/work dir outside state/ 2026-10-05 12:56:02 +02:00
dashboard_events.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
gateway_nginx.rs gateway: $connection_upgrade does not come from recommendedProxySettings 2026-09-02 09:04:24 +02:00
loose_ends.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
main.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
matrix.rs matrix: drop the per-hive appservice and its unused token 2026-10-05 07:48:17 +02:00
meta.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
migrate.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
paths.rs hive-c0re: drop the spawn-time forge user-email, repo-creation and config-repo passes 2026-10-04 20:50:50 +02:00
priv_client.rs github: PATs live in swarm bao; the agent fetches them itself 2026-10-02 17:48:27 +02:00
server.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
snapshot_push.rs refactor(#2862): one snapshot store per swarm, not one per peer 2026-07-31 22:15:37 +02:00
swarm_agent_status.rs swarm: present tense + no-queue-coordinates wording 2026-09-13 12:01:58 +02:00
swarm_notices.rs swarm: present tense + no-queue-coordinates wording 2026-09-13 12:01:58 +02:00
swarm_queue.rs swarm-queue-based lifecycle notices, replacing push_todo(MANAGER_AGENT) 2026-08-24 14:34:37 +02:00
swarm_status.rs hive-c0re: remove the approvals subsystem 2026-10-04 23:55:32 +02:00
test_env.rs test(hive-c0re): one crate-wide lock for env-mutating tests 2026-08-19 01:38:54 +02:00