Skip to content

Commit bc14c31

Browse files
ZhiXiao-Linclaude
andauthored
docs(code): neutralize host product name to role-based wording (#62)
Replace the specific host-platform product name with neutral role wording (the host / a host platform / host-side / a cluster runtime) across framework doc comments, tests, README, and CHANGELOG. An open-source framework should not name a specific downstream consumer, and the repo's English-only policy disallows non-English identifiers in doc comments. Comment-only change; cargo fmt --check passes. Co-authored-by: Claude <claude@anthropic.com>
1 parent 1d8ba47 commit bc14c31

15 files changed

Lines changed: 26 additions & 26 deletions

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
Programmable, deterministic multi-agent orchestration — a grammar for
1111
expressing fan-out, pipelines, and resumable workflows in code (not only via
12-
model-driven delegation), drawn along the framework / host (书安OS) boundary:
12+
model-driven delegation), drawn along the framework / host boundary:
1313
the framework owns the grammar + serializable contracts; the host owns
1414
placement, transport, and scheduling. All additions are backward compatible
1515
(new types/methods, new optional fields, new `SessionStore` methods with
@@ -80,7 +80,7 @@ default no-op impls).
8080

8181
## [3.3.0] - 2026-05-29
8282

83-
Cluster-grade runtime: everything needed for a host platform (e.g. 书安OS)
83+
Cluster-grade runtime: everything needed for a host platform
8484
to run long-lived agent sessions across many nodes — graceful shutdown,
8585
multi-tenant identity, cost governance, deterministic replay, crash-tolerant
8686
runs, and bounded in-memory state — plus an adversarial-review hardening

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ session2.setBudgetGuard({
576576
Beyond *model-driven* delegation (the agent calling `task`/`parallel_task`), a
577577
session exposes a **deterministic, programmable** orchestration grammar: you
578578
decide the fan-out, chaining, and resume in code. Steps run through the
579-
session's `AgentExecutor`; a host (书安OS) can substitute its own executor to
579+
session's `AgentExecutor`; a host can substitute its own executor to
580580
place steps across a cluster — the grammar is identical either way.
581581

582582
A **step** is `{ task_id, agent, description, prompt, max_steps?,

core/src/agent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ pub enum AgentEvent {
592592
// ========================================================================
593593
// Cluster / platform events
594594
//
595-
// These variants are emitted by the host platform (e.g. 书安OS) via
595+
// These variants are emitted by the host platform via
596596
// `HookExecutor` and are not produced by the agent loop itself. They
597597
// give in-session code a uniform way to observe platform-level
598598
// decisions (budget exhaustion, scheduled passivation, peer

core/src/agent_api.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ pub struct SessionOptions {
164164
/// Explicit session ID (auto-generated if not set)
165165
pub session_id: Option<String>,
166166
/// Multi-tenant identifier. Framework only transports this string;
167-
/// the host (e.g. 书安OS) decides what "tenant" means and how to
167+
/// the host decides what "tenant" means and how to
168168
/// aggregate/bill on it. Emitted to hooks/traces, persisted in
169169
/// `SessionData`, never interpreted by core.
170170
pub tenant_id: Option<String>,
@@ -717,7 +717,7 @@ impl AgentSession {
717717
/// stored under `checkpoint_run_id` and replays the agent loop from
718718
/// that boundary state. A **new** run id is allocated for the
719719
/// resumed work; the relationship between the old and new run is
720-
/// host-tracked (e.g. by 书安OS) — the framework does not interpret
720+
/// host-tracked — the framework does not interpret
721721
/// it.
722722
///
723723
/// Returns an error when no `SessionStore` is configured on this

core/src/agent_api/conversation_runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ pub(super) async fn stream(
9494
/// for `checkpoint_run_id` from the session's `SessionStore` and replays
9595
/// the agent loop from that boundary state. A **new** run id is
9696
/// generated for the resumed work — the relationship between the old
97-
/// and new run is metadata 书安OS tracks externally.
97+
/// and new run is metadata the host tracks externally.
9898
///
9999
/// Returns an error when the session has no store configured, or when
100100
/// no checkpoint exists for `checkpoint_run_id`.

core/src/agent_api/session_options.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ impl SessionOptions {
314314
/// Install a host-provided [`HostEnv`](crate::host_env::HostEnv) for
315315
/// deterministic ID generation and time. Replaces the framework
316316
/// default of `uuid::Uuid::new_v4()` + wall clock — used by
317-
/// 书安OS replay infrastructure to recreate a run bit-identical on
317+
/// host replay infrastructure to recreate a run bit-identical on
318318
/// another node.
319319
pub fn with_host_env(mut self, env: Arc<crate::host_env::HostEnv>) -> Self {
320320
self.host_env = Some(env);

core/src/agent_api/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,7 @@ async fn test_budget_guard_deny_aborts_llm_call() {
13141314
#[test]
13151315
fn test_cluster_agent_events_serialize_with_expected_tags() {
13161316
// Lock the wire schema for cluster-event variants — these are
1317-
// emitted by the host (书安OS) through HookExecutor and need
1317+
// emitted by the host through HookExecutor and need
13181318
// stable JSON tags so external producers can target them.
13191319
let budget = AgentEvent::BudgetThresholdHit {
13201320
resource: "llm_tokens".to_string(),
@@ -2245,7 +2245,7 @@ async fn test_completed_run_clears_its_loop_checkpoint() {
22452245
/// resumed run is allocated a **fresh** run id (not the
22462246
/// checkpoint's).
22472247
///
2248-
/// This exercises the contract surface 书安OS will sit on: write a
2248+
/// This exercises the contract surface the host will sit on: write a
22492249
/// checkpoint on node A, hand the run id to node B which builds a
22502250
/// session against the shared store and calls `resume_run`. Crash
22512251
/// simulation is reduced to a manual checkpoint seed because the

core/src/budget.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Budget / cost / quota contract for cluster-grade hosts.
22
//!
33
//! The framework does not enforce budgets itself — it only defines the
4-
//! decision points and emits structured events. The host (e.g. 书安OS)
4+
//! decision points and emits structured events. The host
55
//! implements [`BudgetGuard`] with whatever backend it likes
66
//! (per-tenant counters in Redis, per-day USD caps in Postgres, etc.)
77
//! and plugs it into [`SessionOptions::with_budget_guard`].

core/src/host_env.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ impl Clock for SystemClock {
121121
/// Deterministic ID generator that yields a configured prefix followed
122122
/// by a monotonic counter (`<prefix>-0`, `<prefix>-1`, …).
123123
///
124-
/// Public so external host crates (e.g. 书安OS replay tooling) can use it
124+
/// Public so external host crates (e.g. replay tooling) can use it
125125
/// without re-implementing the pattern.
126126
#[derive(Debug, Default)]
127127
pub struct SequentialIdGenerator {

core/src/loop_checkpoint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
//! The agent loop persists a [`LoopCheckpoint`] after each completed tool
44
//! round. The checkpoint captures the minimum state needed to recreate
55
//! the loop's position so a future process — typically on a different
6-
//! node, dispatched by 书安OS after a crash or planned migration — can
6+
//! node, dispatched by the host after a crash or planned migration — can
77
//! resume from the last consistent boundary.
88
//!
99
//! Boundary policy: checkpoints are taken **only** between tool rounds,

0 commit comments

Comments
 (0)