hyperhive/hive-c0re/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
atlas 629f08a113 feat(audit): live-append event for the dashboard audit view
Follow-up to the audit-log backend + surface. Emits a DashboardEvent on
each agent-initiated privileged action so the audit view live-appends off
/dashboard/stream instead of polling.

- new DashboardEvent::AuditEntryAdded { seq, <flattened AuditEntry> } —
  serde tag `audit_entry_added`; the AuditEntry fields flatten to the top
  level so the wire shape matches one /api/audit-log `entries` row exactly.
- Coordinator::emit_audit_entry helper (stamps seq like the others).
- audit_log::record now returns the canonical inserted AuditEntry (id + ts
  assigned) so the streamed event is the same row that was stored — no
  drift. Best-effort unchanged (None on a sqlite blip).
- handle_restart_infra records + emits for every attempt (ok/err/denied),
  threading the coordinator through.

Tests: kind_tag round-trip now covers the new variant; added a flatten
test pinning the top-level wire shape (kind/seq/id/…/detail, no nesting).

Pairs with iris's audit view (the /dashboard/stream listener half).
2026-06-13 17:17:00 +02:00
..
bin feat: group host-side /var/lib/hyperhive state into db/ forge/ matrix/ run/ subdirs with startup migration 2026-06-05 23:01:47 +02:00
dashboard fix(#1643): filter destroyed-agent targets from dashboard schedule view 2026-06-13 15:58:44 +02:00
actions.rs fix(#1643): filter destroyed-agent targets from dashboard schedule view 2026-06-13 15:58:44 +02:00
agent_ports.rs feat: group host-side /var/lib/hyperhive state into db/ forge/ matrix/ run/ subdirs with startup migration 2026-06-05 23:01:47 +02:00
agent_server.rs feat(audit): live-append event for the dashboard audit view 2026-06-13 17:17:00 +02:00
agent_sockets.rs feat: group host-side /var/lib/hyperhive state into db/ forge/ matrix/ run/ subdirs with startup migration 2026-06-05 23:01:47 +02:00
approvals.rs refactor(#1474): replace approvals lookup 7-tuple with named struct, drop type_complexity allow 2026-06-08 19:56:32 +02:00
audit_log.rs feat(audit): live-append event for the dashboard audit view 2026-06-13 17:17:00 +02:00
auto_update.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00
bash_tasks_vacuum.rs feat: type-scope events vacuum to prune only stream rows (14d) + drop turn-stats vacuum 2026-06-06 07:57:27 +02:00
broker.rs ci(#1555): prose-ify legacy tracker tags; add lint:allow escape hatch 2026-06-10 13:14:42 +02:00
build_logs.rs feat: type-scope events vacuum to prune only stream rows (14d) + drop turn-stats vacuum 2026-06-06 07:57:27 +02:00
capabilities.rs fix: update stale doc comment example root→ruth in capabilities.rs 2026-06-02 18:18:06 +02:00
client.rs hive-c0re: admin socket server + client (stub dispatch) 2026-05-14 20:49:11 +02:00
container_stats.rs fix(dashboard): correct container-load cgroup path (always-empty LOAD tab) 2026-06-10 22:33:49 +02:00
container_view.rs chore: drop two more stale clippy allows (ContainerView bools, journal too_many_lines) 2026-06-08 08:17:33 +02:00
coordinator.rs feat(audit): live-append event for the dashboard audit view 2026-06-13 17:17:00 +02:00
crash_watch.rs feat(#1591): surface pending-login + crashing-agent banner warnings 2026-06-10 13:19:32 +02:00
dashboard.rs audit-log: expose total count in /api/audit-log response 2026-06-13 13:49:54 +02:00
dashboard_events.rs feat(audit): live-append event for the dashboard audit view 2026-06-13 17:17:00 +02:00
events_vacuum.rs feat: type-scope events vacuum to prune only stream rows (14d) + drop turn-stats vacuum 2026-06-06 07:57:27 +02:00
flake_check.rs feat(gateway): hivectl gateway user management + fix htpasswdFile assertion 2026-06-01 23:25:28 +02:00
forge.rs forge: revalidate the core token against the live forge before trusting it 2026-06-06 11:26:59 +02:00
gateway_nginx.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00
hive_stats.rs feat(stats): hive-wide "favorite tools" rollup on ST4TS 2026-06-08 20:46:19 +02:00
host_stats.rs style(#1591): wrap over-long assert line to satisfy rustfmt 2026-06-10 13:19:32 +02:00
knowledge.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00
lib.rs feat(audit): persistent audit log of agent-initiated privileged actions 2026-06-13 13:45:02 +02:00
lifecycle.rs fix(network): wire default route + bridge DNS for isolated containers 2026-06-10 20:59:12 +02:00
limits.rs fix(#1164,#1171): harness writes status file, c0re just rescans 2026-06-03 18:33:07 +02:00
loose_ends.rs feat(gateway): hivectl gateway user management + fix htpasswdFile assertion 2026-06-01 23:25:28 +02:00
main.rs feat(audit): persistent audit log of agent-initiated privileged actions 2026-06-13 13:45:02 +02:00
manager_server.rs fix(#1643): filter destroyed-agent targets from dashboard schedule view 2026-06-13 15:58:44 +02:00
matrix.rs matrix: skip room invite when the user is already invited or joined 2026-06-13 12:17:16 +02:00
meta.rs chore: drop stale dead_code allows + the unused operator_questions get method 2026-06-06 11:14:35 +02:00
migrate.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00
operator_questions.rs chore: drop the stale doc_markdown allow on OpQuestion (#1474) 2026-06-07 23:17:57 +02:00
paths.rs feat(matrix): auto-create a hive chat room as a child of the hive Space 2026-06-06 07:59:24 +02:00
priv_client.rs feat(#1636): infra_admin capability — restart hive-ci/gateway/forge via restart tool 2026-06-13 12:19:56 +02:00
questions.rs refactor(#1474): replace too_many_arguments allows on pub fns with param structs 2026-06-09 11:25:38 +02:00
rebuild_queue.rs ci(#1555): prose-ify legacy tracker tags; add lint:allow escape hatch 2026-06-10 13:14:42 +02:00
reminder_scheduler.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00
scheduled_prompts.rs feat: group host-side /var/lib/hyperhive state into db/ forge/ matrix/ run/ subdirs with startup migration 2026-06-05 23:01:47 +02:00
scheduled_prompts_worker.rs feat: live SSE updates for the SCH3DUL3S tab 2026-06-05 12:06:32 +02:00
server.rs refactor(#1474): extract dispatch arm logic into helpers (server + agent_server) 2026-06-09 12:19:48 +02:00
tool_groups.rs fix: address argus+mara review on #1243 — stale docs, MANAGER_DEFAULT refs, ruth migration 2026-06-04 12:15:03 +02:00
topology.rs fix(#1375): clean up pedantic warnings and re-enable -D warnings without pedantic bypass 2026-06-05 16:55:09 +02:00