Commit Graph
234 Commits
Author SHA1 Message Date
kyleandornith-1.5-35b-a3b d488910351 brokerd: consult tool name, parse, grants
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 22:20:39 -07:00
kyleandornith-1.5-35b-a3b 00d9ea9967 brokerd: consult config, secrets, loopback URL
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 22:13:57 -07:00
kyleandornith-1.5-35b-a3b 45eb16a30a loopd: consult waits one hundred and eighty seconds
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 21:47:20 -07:00
kyleandornith-1.5-35b-a3b 658bc7d1e8 loopd: consult in the M5c registry, not core
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 21:43:39 -07:00
kyleandornith-1.5-35b-a3b 1afa7397dc brokerd: inherit parent taint for a new subagent
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 20:06:04 -07:00
kyleandornith-1.5-35b-a3b 79735b21e4 loopd: scheduler yields to a held subagent
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 20:03:13 -07:00
kyleandornith-1.5-35b-a3b 4491e1b80d loopd: subagent spawn on the background slot
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 19:59:25 -07:00
kyleandornith-1.5-35b-a3b fe145fb83a loopd: dispatch subagent, not the port
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 19:50:13 -07:00
kyleandornith-1.5-35b-a3b bab22bb4c8 loopd: subagent in the M5c registry, not core
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 19:44:25 -07:00
kyleandornith-1.5-35b-a3b 30608995ca loopd: a failed heartbeat still advances last_heartbeat
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 18:24:18 -07:00
kyleandornith-1.5-35b-a3b 3bea6c24c9 memoryd: Tiers listing; bxctl memory tiers
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 17:54:18 -07:00
kyleandornith-1.5-35b-a3b 0386c343f2 memoryd: index ToolSummary as kind summary
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 17:26:14 -07:00
kyleandornith-1.5-35b-a3b 57d9aad2d6 loopd: background ToolSummary for opted-in results
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 17:11:40 -07:00
kyleandornith-1.5-35b-a3b 5adb6a2cc0 loopd: cron tick, new session per run
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 17:04:59 -07:00
kyleandornith-1.5-35b-a3b ea0708e305 loopd: heartbeat tick on the background slot
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 16:48:23 -07:00
kyleandornith-1.5-35b-a3b 670b5bbabe loopd: job files, run ledger, jobs-invalid
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 14:20:19 -07:00
kyleandornith-1.5-35b-a3b 587b3924d7 loopd: five-field UTC cron matcher
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 14:07:36 -07:00
kyleandornith-1.5-35b-a3b 6b7912399c loopd: [heartbeat] table and summarise name check
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 14:00:57 -07:00
kyleandornith-1.5-35b-a3b ab4fb65ccc bxcore: ToolSummary log record; messages ignore it
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 13:51:03 -07:00
kyleandornith-1.5-35b-a3b b018b3dc0a loopd: live turns use the session's slot
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 13:47:51 -07:00
kyleandornith-1.5-35b-a3b b274fa7d62 loopd: compact after a full turn and retry SessionFull once
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 00:38:35 -07:00
kyleandornith-1.5-35b-a3b fe8e3e9354 loopd: write the next epoch from a compaction summary
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 00:25:04 -07:00
kyleandornith-1.5-35b-a3b c8b0a01c41 loopd: compact summary on the background slot
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 00:14:03 -07:00
kyleandornith-1.5-35b-a3b 32e81b51fb loopd: compaction threshold and the fallback summary
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-03 00:04:03 -07:00
kyleandornith-1.5-35b-a3b 3716595950 memoryd: Honcho concatenates every epoch of a session
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-02 23:54:38 -07:00
kyleandornith-1.5-35b-a3b 45984b45be loopd: replay a carried summary as an unlogged user message
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-02 23:46:06 -07:00
kyleandornith-1.5-35b-a3b 18039fa2e4 loopd: open the highest epoch and carry its summary
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-02 23:38:10 -07:00
kyleandornith-1.5-35b-a3b 518d6ec416 loopd: [compact] threshold, summary_chars and summarise
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-10-02 23:25:47 -07:00
kyleandGrok 4.6 f80842640c review: a secret session's recall and ask_memory still query Honcho
Spec 13 requires that a secret session's query is sent unless the query
itself holds a known-prefix secret. serve.rs already ignores MemoryCall
taint on both read tools; the serve tests always sent Private. A skip of
Honcho for Secret would not have failed. Each suite now has one call at
class secret that asserts the fake received the search or chat.

Co-Authored-By: Grok 4.6 <noreply@x.ai>
2026-10-02 20:11:01 -07:00
kyleandornith-1.5-35b-a3b e0f0057ac8 memoryd: ask_memory served beside recall and memory, outside the lock
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 10:01:39 -07:00
kyleandornith-1.5-35b-a3b 165145edb5 memoryd: the admin socket's requests move to serve/admin.rs
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:54:14 -07:00
kyleandornith-1.5-35b-a3b 132e816322 memoryd: ask_memory, each workspace's chat at once with its own limit
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:47:08 -07:00
kyleandornith-1.5-35b-a3b 18bafbd2a0 memoryd: recall asks Honcho after the local index, outside the state lock
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:36:43 -07:00
kyleandornith-1.5-35b-a3b 6e3e713298 memoryd: recall's Honcho part, every source at once with its own limit
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:28:12 -07:00
kyleandornith-1.5-35b-a3b a73d49c609 memoryd: recall's local items on one indented line, as Honcho's
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:17:05 -07:00
kyleandornith-1.5-35b-a3b d8c396e691 memoryd: Honcho's results as recall items, kept, labelled and interleaved
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 09:11:11 -07:00
kyleandornith-1.5-35b-a3b b370c60bd4 memoryd: the Honcho workspaces it reads, with their clients and labels
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-29 08:56:50 -07:00
kyleandornith-1.5-35b-a3b b33341c53a loopd: ask_memory as a core tool, and a wait of its own on brokerd
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-28 22:41:37 -07:00
kyleandornith-1.5-35b-a3b 7ac7e8094a brokerd: a wait of its own for ask_memory, 170 s
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-28 22:34:49 -07:00
kyleandornith-1.5-35b-a3b e9f103dfdd brokerd: ask_memory, a built-in memory tool that memoryd runs
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-28 22:28:41 -07:00
kyleandornith-1.5-35b-a3b 3c54096704 bxcore: ask_memory's arguments and their shape checks
Co-Authored-By: ornith-1.5-35b-a3b <agent@wntrmute.dev>
2026-09-28 22:20:27 -07:00
kyleandClaude Opus 5.5 484804c00a bxctl: chat_approvals' helper accepts a broken pipe on stdin
json_prints_only_json_and_never_asks_brokerd failed once under load: the helper wrote the typed
input to a `bxctl chat --json` that never reads stdin and had already exited, and unwrapped the
broken pipe. A broken pipe on that write is now accepted; any other error still fails the test,
and a test whose input must be read checks the output.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 18:49:56 -07:00
kyleandClaude Opus 5.5 718e66d3f6 memoryd: Honcho responses for M5c-2's read path, recorded from rift (M5c-2 task 00)
Workspace search with a limit and with no match, conclusion queries for the owner's and another
agent's peer, and what a workspace that does not exist answers to search, query, chat and delete.
Recorded through roncho 1.0.0's blocking client in the throwaway workspace boxmaker-plan-probe,
deleted afterwards.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 16:20:42 -07:00
kyleandClaude Opus 5.5 e83b53b8b6 review: loopd prints every startup notice before it binds; tests wait for "serving on"
The serve tests waited for the socket file, then killed `loopd` and read its stderr, but the
socket is bound before its mode is set and before "serving on" and the broker notice are printed,
so a kill in between lost those lines (`pointers` failed once under load in M5c-1 task 15). The
broker notice now comes before the bind, so "serving on" is the last startup line, and the tests
wait for it (`tests/support/serving.rs`).

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:26:37 -07:00
kyleandClaude Opus 5.5 45be83b891 review: gatewayd drops an approval's answer receiver before it says the approval ended
Every path that told the loop `Ended` did so while the handler still held the receiver of the
approver's answer; it was dropped only when the handler returned. An answer sent in between was
taken, reported to the approver as sent, and lost. `end` now takes the receiver and drops it
first. `brokerd_closing_first_ends_it_as_no_longer_pending` failed 10 of 60 runs under load
before, and 0 of 100 after.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:26:37 -07:00
kyleandClaude Opus 5.5 5e57cd69a3 review: a session log that cannot be read now is waited out
The worker marked a turn failed on any error reading its log. A missing log,
a damaged line or a turn not found still fail it; any other I/O error is now
waited out with the outage's doubling wait, logged once when it starts and
once when the log reads again (pointer session-log-damaged, whose runbook
entry now covers it), shown by bxctl memory sync, and the turn stays waiting.

read_records tells an unreadable file from a damaged line (read_log is
unchanged). The message helpers move from worker.rs to honcho/messages.rs,
re-exported, to keep worker.rs under 500 lines.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:15:04 -07:00
kyleandClaude Opus 5.5 bd4cf9fb7f review: a key split by an invisible character is still a secret
has_secret masked each character a character rule matches to a space, so one
zero-width space inside a key cut it into two runs too short to match. The
secret rules now also run on the text with those characters deleted, and the
text is a secret if either matches.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:12:12 -07:00
kyleandClaude Opus 5.5 3d266df9de review: bxctl memory sync shows what the Honcho side waits on
A shared status, kept by the worker and the walk and read by the report under
its own leaf lock, holds the workspaces whose key was refused, when an outage
of Honcho began, and when brokerd stopped answering. The report adds a line
for each while it lasts, and is unchanged when all is well. The runbook's
Honcho entries and broker-state-unavailable now say what sync shows.

Tuning and Wake move to honcho/wake.rs (re-exported from worker) to keep
worker.rs under 500 lines. honcho_sync.rs's serve test now allows the outage
line: the write wakes the worker, which finds Honcho unreachable.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:11:31 -07:00
kyleandClaude Opus 5.5 3dd95c5791 review: a memory write wakes the Honcho worker
A write, an undo or an accepted write decided into the ledger waited out the
worker's 30 s idle sleep. Mirror::journalled now says whether it added a line,
and memoryd wakes the worker when it did. The Wake lock is a leaf, taken under
the index lock as before.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:07:38 -07:00
kyleandClaude Opus 5.5 7c207f6ec6 review: an undo concludes again only what it had deleted
Undoing a consolidate concluded its moved entries a second time, and a later
removal deleted only the newer conclusion. An undo's added entry is now
concluded only when the ledger decided a Conclude for it and then an
Unconclude: an entry still concluded, or never concluded (a secret session's,
one from before sync), gets nothing. Ledger::concluded and unconcluded answer
from the decisions, in a module of their own to keep ledger.rs under 500 lines.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 14:06:28 -07:00