hero_osis: drop hero_osis_seed binary + --seed-dir startup hook (hero_rpc#117) #65

Merged
timur merged 1 commit from issue-117-osis-cleanup into development 2026-05-21 16:14:06 +00:00
Owner

This is the hero_osis side of hero_rpc#117 — the typed-SDK seeder (seed::{blank, random, from_dir} emitted into each <service>_sdk crate) is now the only blessed seeding path. The standalone hero_osis_seed binary and the server's --seed-dir startup hook both bypassed the typed SDK and seeded via raw JSON-RPC; this PR removes both.

Deletions

  • crates/hero_osis_server/src/bin/seed.rs — the standalone seeder binary
  • docs/SEEDING.md — the TOML format reference moves into the SDK seed::from_dir doc comments
  • [[binaries]] hero_osis_seed entry from crates/hero_osis_server/service.toml
  • [[bin]] hero_osis_seed from crates/hero_osis_server/Cargo.toml (and its .hero_builder_backup snapshot)
  • hero_osis_seed from scripts/{run,build,install}.rhai
  • HERO_OSIS_SEED_DIR env-var docs from README.md + docs/SOCKETS.md
  • --seed-dir from tests/e2e/run.sh launch command (with a marker comment pointing at hero_rpc#117)
  • GETTING_STARTED.md seeding walkthrough replaced with a TODO pointing at hero_rpc#117 / hero_rpc#115

Rewrites

  • tests/e2e_seed.rs is now a single #[ignore]-tagged stub. Seed E2E coverage belongs in the workspace-root tests/ crate that hero_rpc#115 will land, exercising the typed SDK seeder.

Not touched (on purpose)

  • crates/hero_osis_server/src/bin/hero_osis.rs is regenerated from hero_rpc's generator on every build. Its --seed-dir plumbing follows the upstream template and will fall away automatically when the matching hero_rpc#117 patch lands and we bump the hero_rpc branch ref.

Test plan

  • cargo check --workspace passes locally
  • cargo test --workspace --no-run compiles locally
  • grep -rn 'hero_osis_seed\|--seed-dir' crates scripts docs tests Cargo.toml *.md returns only the explanatory marker lines listed above (zero functional references)
  • Forgejo CI green
  • Re-run after hero_rpc#117 lands to confirm the regenerated hero_osis.rs drops the cli.seed_dir / DomainService.seed_dir references on its own

Refs: hero_rpc#117, hero_rpc#115

This is the hero_osis side of [hero_rpc#117](https://forge.ourworld.tf/lhumina_code/hero_rpc/issues/117) — the typed-SDK seeder (`seed::{blank, random, from_dir}` emitted into each `<service>_sdk` crate) is now the only blessed seeding path. The standalone `hero_osis_seed` binary and the server's `--seed-dir` startup hook both bypassed the typed SDK and seeded via raw JSON-RPC; this PR removes both. ## Deletions - `crates/hero_osis_server/src/bin/seed.rs` — the standalone seeder binary - `docs/SEEDING.md` — the TOML format reference moves into the SDK `seed::from_dir` doc comments - `[[binaries]] hero_osis_seed` entry from `crates/hero_osis_server/service.toml` - `[[bin]] hero_osis_seed` from `crates/hero_osis_server/Cargo.toml` (and its `.hero_builder_backup` snapshot) - `hero_osis_seed` from `scripts/{run,build,install}.rhai` - `HERO_OSIS_SEED_DIR` env-var docs from `README.md` + `docs/SOCKETS.md` - `--seed-dir` from `tests/e2e/run.sh` launch command (with a marker comment pointing at hero_rpc#117) - `GETTING_STARTED.md` seeding walkthrough replaced with a TODO pointing at hero_rpc#117 / hero_rpc#115 ## Rewrites - `tests/e2e_seed.rs` is now a single `#[ignore]`-tagged stub. Seed E2E coverage belongs in the workspace-root `tests/` crate that [hero_rpc#115](https://forge.ourworld.tf/lhumina_code/hero_rpc/issues/115) will land, exercising the typed SDK seeder. ## Not touched (on purpose) - `crates/hero_osis_server/src/bin/hero_osis.rs` is regenerated from hero_rpc's generator on every build. Its `--seed-dir` plumbing follows the upstream template and will fall away automatically when the matching hero_rpc#117 patch lands and we bump the hero_rpc branch ref. ## Test plan - [x] `cargo check --workspace` passes locally - [x] `cargo test --workspace --no-run` compiles locally - [x] `grep -rn 'hero_osis_seed\|--seed-dir' crates scripts docs tests Cargo.toml *.md` returns only the explanatory marker lines listed above (zero functional references) - [ ] Forgejo CI green - [ ] Re-run after hero_rpc#117 lands to confirm the regenerated `hero_osis.rs` drops the `cli.seed_dir` / `DomainService.seed_dir` references on its own Refs: hero_rpc#117, hero_rpc#115
hero_osis: drop hero_osis_seed binary + --seed-dir startup hook (hero_rpc#117)
All checks were successful
Build and Test / build (push) Successful in 6m24s
Build and Test / build (pull_request) Successful in 6m46s
f2d78f5857
The typed-SDK seeder (hero_rpc#117 — seed::{blank, random, from_dir}
emitted into each <service>_sdk crate) is now the only blessed seeding
path. The standalone hero_osis_seed binary and the server's
--seed-dir startup hook both bypassed the typed SDK and seeded via raw
JSON-RPC; this commit removes both.

- delete crates/hero_osis_server/src/bin/seed.rs
- drop [[binaries]] hero_osis_seed entry from service.toml
- drop [[bin]] hero_osis_seed from Cargo.toml (and hero_builder backup)
- remove HERO_OSIS_SEED_DIR / SEEDING docs from README + SOCKETS
- delete docs/SEEDING.md (TOML format reference moves into the SDK
  seed::from_dir doc comments)
- replace the GETTING_STARTED.md seeding walkthrough with a TODO
  pointing at hero_rpc#117 / hero_rpc#115
- drop hero_osis_seed from scripts/{run,build,install}.rhai
- drop --seed-dir from tests/e2e/run.sh launch command and leave a
  comment-out marker pointing at hero_rpc#117
- mark tests/e2e_seed.rs as #[ignore] pending hero_rpc#115's
  workspace-root tests crate

The server main binary (crates/hero_osis_server/src/bin/hero_osis.rs)
is regenerated from hero_rpc's generator on every build; its --seed-dir
plumbing follows the upstream template and will fall away when the
matching hero_rpc#117 patch lands.

Refs: hero_rpc#117
timur merged commit 3cfe8887e5 into development 2026-05-21 16:14:06 +00:00
timur deleted branch issue-117-osis-cleanup 2026-05-21 16:14:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_osis!65
No description provided.