chore(hero_aibroker): D-10 sweep — canonical service.toml + cargo update + dep audit #142
No reviewers
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_aibroker!142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_mik"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes part of hero_proc#102 (T1 #4 deps-first; s99 in the workspace multi-session sweep).
D-10 acceptance — 5/5 met
lab infocheckexits 011 crate(s) clean, 0 finding(s) total(4 main + 7 MCP sub-binaries)main.rswiring on all 4 main binariesservice_base!()+validate_service_toml+handle_info_flag+ daemons banner)cargo updatecleanhero_proc_sdk432348c0 → a436a20f (s97 PR #103 merge),herolib_cored0d74a3b → 9b5912bf (s96 cascade),hero_rpc32f41dc1 → f17dcd71,hero_archipelagos265c0da1 → 18c2f928Cargo.tomldeps audited, AI-cruft strippedlab service <bin> --install --start+ smokehero_aibroker_serversmoke 44/44 passed (10 per-domain RPC sockets × 4 probes each + REST × 2 + web × 2);hero_aibroker_adminsmoke 2/2 passed — no 10s timeout (s95-flagged admin runtime issue resolved via cascade)What
Canonical 4-binary service.toml pattern
Rewrote all 4 main
service.tomlfiles (hero_aibroker_server,hero_aibroker_admin,hero_aibroker,hero_aibroker_services) to the canonical multi-binary pattern: each file lists all 4 sibling binaries (cli + server + admin + services/cmdline) with their sockets/deps/env. Only[service].crate+[service].displaydiffer per crate. Reference impl:hero_db @ a08a1c4(canonical 3-binary; same pattern extends to 4 here becausehero_aibroker_servicesis a 4th sibling cmdline binary underservice.name = "hero_aibroker").Before: each
service.tomllisted only its own binary → brokelab servicemulti-binary discovery (same anti-pattern as hero_proc#103 fixed in s97).The 7 MCP sub-binaries under
crates/mcp/*/(mcp_ping, mcp_exa, mcp_hero, mcp_scraperapi, mcp_scrapfly, mcp_serpapi, mcp_serper) declare distinctservice.name = "mcp_<x>"and stand alone — not folded into the canonical 4 (correct: they are independent service registrations under hero_aibroker_services supervision).cargo update — s97 + s98 cascade
Conservative dep audit (6 deps stripped)
Only deps with 0
use <dep>::|<dep>::matches undersrc/were stripped:hero_aibroker_adminfutures,tower-http,serde,dirshero_aibroker(CLI)serde,serde_jsonNothing safely strippable on
hero_aibroker_server(all deps in use) orhero_aibroker_services(lean dep list, all in use).Test impact
cargo test --workspace --release --no-fail-fast: 123 passed, 24 failed.The 24 failures are pre-existing on origin/development @
00197f6— verified by stash-and-rerun (identical failure list before my changes were applied). They are all in thefake_servertest fixture suite + 2 cascade tests:cascade_two_brokers(90s timeout) andmother_calls_each_configured_provider(20s timeout) — multi-broker fixtures.hero_aibroker_server --fakeis launched withHERO_PROC_SOCKET=/dev/null/nonexistentto suppress hero_proc lookup, buthero_rpc/crates/openrpc/src/transport.rs:33-40— added bycaa028ffix(transport): die with clear error message when socket is missing or unconnectable— now exits the process on unreachable hero_proc socket paths. Test fixture relies on stale soft-fail behavior of the broker pre-caa028f.This is an upstream
hero_rpccascade affecting the fake-server fixture inhero_aibroker_test/tests/fake_server.rsandhero_aibroker_examples/tests/{cascade,mother_providers}.rs. Out of D-10 scope for this PR (acceptance islab servicelive smoke, which passes 44/44 + 2/2). Recommended follow-up: either (a) fix the fixture to provide a real hero_proc UDS, or (b) make--fakemode skip hero_proc lookup entirely. Filed as latent issue for the next aibroker-touching session.No new failures introduced by my changes.
Signed-off-by: mik-tf
mik-tf referenced this pull request from lhumina_code/hero_demo2026-05-16 03:16:07 +00:00