chore: align hero_books with hero_sockets and simplify the README #97
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_books!97
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "development_align_hero_sockets_and_readme"
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?
Summary
Broader cleanup pass after auditing
hero_booksagainst twelve Hero skills (hero_sockets,naming_convention,hero_crates_best_practices_check,hero_proc_service_selfstart,makefile_helper,makefile_helper_ci,testing_suite,hero_ui_whitelists,hero_ui_openrpc_proxy,hero_web_prefix,cargo_deps,rust_toolchain). Code is already largely compliant — most drift was in docs and a handful of typos.This PR supersedes #96 (
docs: call out hero_embedder as a prerequisite). The rewrittenREADME.mdhere incorporates the Prerequisites / Troubleshooting content from #96 in a more compact form. #96 can be closed once this lands.Changes
Documentation
README.md— rewritten in the hero_compute / hero_whiteboard style: short landing page, explicit Sockets table pointing at the real per-service layout under$HERO_SOCKET_DIR/hero_books/, and a Documentation section linking todocs/manual/. Prerequisites + Troubleshooting kept (condensed).docs/manual/README.md— replaced obsoletehero_books --port 8883/hero_books_clientquick-start with the currenthero_books --start+ hero_router URL layout.deploy/single-vm/README.md— refreshed topology diagram: hero_router fronting UDS-based services instead of per-service TCP ports..env.example— dropped staleHERO_BOOKS_PORT/HERO_REDIS_PORT/HERO_EMBEDDER_PORT; pointed atHERO_SOCKET_DIRinstead.New per-crate READMEs (previously missing — flagged by
hero_crates_best_practices_check)crates/hero_books_lib/README.mdcrates/hero_books_ui/README.mdcrates/hero_books_admin/README.mdcrates/hero_books_app/README.mdcrates/hero_books_lib_rhai/README.mdcrates/hero_books_examples/README.mdFixes
crates/hero_books_admin/Makefile— copy-paste bug fixed. Every target used-p hero_books_uiinstead of-p hero_books_admin;make testfrom inside the admin crate was silently testing the UI.cargo_depsalignment —hero_embedder_sdkswitched from a pinnedrevtobranch = "development"in bothhero_books_server/Cargo.tomlandhero_books_lib/Cargo.toml, matching the rest of the Hero deps.Makefiletest-smoke— no longer swallows cargo failures behind|| echo. Detects whethersmoke.rsexists and runs cargo only when it does.Cleanup
crates/hero_books_lib_rhai/buildenv.sh— the rootbuildenv.shis the single source of truth.Test Results
cargo build --workspace— ok.cargo test -p hero_books_server --lib— 16/16 passed.cargo fmt --check— clean.Follow-up issues to open
Out of scope for this PR; each is a distinct concern worth its own ticket:
hero_books_adminhas no/rpcproxy route, but its templates callBASE_PATH + "/rpc"— 404 today (hero_ui_openrpc_proxyviolation).hero_ui_whitelists).baseURL: http://localhost:8883broken against the UDS-only server — needs a UDS bridge or rewrite.specs/startup_flow.mdandspecs/schemas/openrpc_spec.mdstill carry TCP-era examples.testing_suitenon-compliance). Smoke tests exist; per-crate unit tests need to be added.Related