[D-10] Test/demo binaries in 4 crates need canonical service infra or removal #139
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_lib#139
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Context
lab infocheckonlhumina_code/hero_libreports 21 findings across 4 binary-bearing crates, all caused by the workspace shipping demo/test binaries without the canonicalherolib_core::service_base!()+service.tomlinfrastructure that the D-10 service.toml sweep enforces for every Hero service binary.This issue was opened during hero_proc#102 T1 #1 (
hero_lib) and deliberately deferred from the primary cascade-fix PR to keep the load-bearing dep-update unblock small and reviewable. See the linked hero_lib PR for the cascade fix; this issue tracks the follow-up.Scope — 4 crates, 21 findings
crates/aimodeltest(src/bin/modeltest.rs)crates/ai_directimage_gen_test,nemotron_super,ttstest,modeltest_direct)crates/aicrates/clientsopencode_tester,opencode_demoherolib_corealready a dep)crates/webherolib_webprint_info_jsonto delete + hand-rolledprint_startup_infoto rewrite or deleteTotal: 4 new
service.tomlfiles + 4main.rsreworks + 3Cargo.tomlherolib_coreadds + 2 hand-rolledprint_*cleanups incrates/web.Why this was deferred (not "N/A")
hero_lib/CLAUDE.mddeclares the repo "library-only" withBINARIES=""inbuildenv.sh— meaning none of these binaries are installed to~/hero/bin/or supervised byhero_proc. They exist for local development testing. The literal D-10 acceptance criterion 1 ("service.toml present") and 4 ("lab service … --startsmoke gate green") therefore have nothing to do in production — butlab infocheck's discovery rule (anysrc/main.rsor[[bin]]⇒ canonical infra required) still flags them.Two ways to close:
lab infocheck. Estimated ~150-200 LOC + 4 newservice.tomlfiles.AiClient(e.g.AiClient::from_env,AiClient::direct,AiClient::get), so they're already broken.Recommend a quick triage pass to choose per-binary: either bring them up to canonical infra, or delete them. Mixed outcome is fine.
Acceptance
~/hero/bin/lab infocheckonlhumina_code/hero_libreports0 crate(s) with issues, 0 finding(s) total.cargo build --workspace --releasestays clean.--info,--help, service.toml, and service_base!() infra. No partials.References
hero_service_toml_info— service.toml spec + canonical patternherolib_base—service_base!()macro +handle_info_flagAPIBINARIES=""declarationmik-tf referenced this issue from lhumina_code/hero_demo2026-05-16 00:33:48 +00:00
lab build+lab infocheckdriven workflow #105