Watch
0
0
Fork
You've already forked hyperhive
0
hyperhive/hive-c0re/src/dashboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
iris 27bed74d42 hive-c0re: accept friendly MemoryMax size spellings, normalize for systemd
mara hit this directly: setting an agent's memory cap to "16GB"
fails with 'invalid MemoryMax "16GB": expected a size such as
"8G"...'. Confirmed directly against a running systemd 260
(systemd-run -p MemoryMax=<value>): systemd's own parser accepts a
bare byte count, <digits>B, or <digits> plus exactly one uppercase
K/M/G/T, and rejects both "16GB" (redundant B after a multiplier)
and "16g" (lowercase) with "Invalid argument". So the prior
rejection of "16GB" matched systemd, but is bad UX for input a
human reasonably expects to work.

validate_memory_max now returns the value to store (not just an
ok/err verdict): it accepts 8gb/8Gb/8GB/8g/8G interchangeably and
normalizes all of them to systemd's own 8G form before it is ever
persisted or passed downstream. Also fixes the adjacent bug the same
investigation turned up: the old validator incorrectly accepted
lowercase (8g) even though systemd itself rejects it.

Updated both call sites (server.rs, dashboard/lifecycle_ops.rs) to
use the normalized return value. New test
friendly_size_spellings_normalize_to_systemds_own_form; flipped the
old "8GB should be rejected" assertion, which encoded the
human-hostile behavior this fixes.
2026-09-19 15:07:52 +02:00
..
approvals.rs refactor(hive-c0re): drop the request_init_config tool and InitConfig approval 2026-09-14 19:03:44 +02:00
build_logs.rs docs: stop asserting DagView/NodeView after their deletion 2026-08-03 21:47:58 +02:00
extra_forges.rs hive-c0re: drop redundant METHOD/path prefixes from OpenAPI summaries 2026-08-02 21:35:17 +02:00
health.rs refactor(hive-c0re): one producer for the readiness verdict 2026-08-16 13:12:59 +02:00
journal.rs nix: wire the independent hive-subagent-daemon systemd unit and MCP server 2026-09-09 23:45:12 +02:00
lifecycle_ops.rs hive-c0re: accept friendly MemoryMax size spellings, normalize for systemd 2026-09-19 15:07:52 +02:00
matrix_accounts.rs hive-c0re: drop redundant METHOD/path prefixes from OpenAPI summaries 2026-08-02 21:35:17 +02:00
meta_inputs.rs wip(#3001): catch the multi-line .insert( chains the grep missed 2026-08-04 19:57:32 +02:00
misc_api.rs remove the 1NFR4 dashboard panel and the now-writer-less audit log 2026-08-31 00:18:21 +02:00
mod.rs docs: restructure into topic subdirectories, collapse duplicated index 2026-09-02 01:55:37 +02:00
permissions.rs remove as_str() legacy wrappers, callers use .into() directly 2026-09-12 00:06:31 +02:00
schedules.rs remove operator as target for scheduled prompts 2026-09-11 23:32:45 +02:00
state_files.rs docs: restructure into topic subdirectories, collapse duplicated index 2026-09-02 01:55:37 +02:00
state_snapshot.rs refactor(hive-c0re): drop the request_init_config tool and InitConfig approval 2026-09-14 19:03:44 +02:00
tombstones.rs fix(#3020): K3PT ST4T3 says what it shows, and stops reading the job graph 2026-08-03 18:07:04 +02:00
topology.rs wip(#3001): catch the multi-line .insert( chains the grep missed 2026-08-04 19:57:32 +02:00
webhook.rs feat(#3255): hives stop owning the knowledge webhook, and clean up their own 2026-08-19 21:05:52 +02:00