From 4ad63615991495ab4465565215d057aa9494b024 Mon Sep 17 00:00:00 2001 From: Mac Anderson Date: Thu, 6 Aug 2026 20:00:28 -0700 Subject: [PATCH] =?UTF-8?q?fix(stella-protocol):=20unbreak=20main=20?= =?UTF-8?q?=E2=80=94=20resolve=20the=20CompactionRewrite=20doc=20link?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `RUSTDOCFLAGS=-D warnings cargo doc --workspace --no-deps` (the gate's `doc-warnings` step) fails on main: the `rewrites` field's doc comment links `[`CompactionRewrite`]`, but the type reaches this scope only through its `crate`-level re-export, so the bare name resolves to nothing. The field's own type annotation two lines below already spells the working path. Layered masking is why this surfaced only now (#1965 records the shape): rustdoc stops at the first crate that fails to document, so each fix reveals the next layer down. `stella-protocol` is the deepest one. Same-line edit: `event.rs` is a grandfathered god file closed to growth. --- crates/stella-protocol/src/event.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/stella-protocol/src/event.rs b/crates/stella-protocol/src/event.rs index 13deb1aa..d91b0bda 100644 --- a/crates/stella-protocol/src/event.rs +++ b/crates/stella-protocol/src/event.rs @@ -542,7 +542,7 @@ pub enum AgentEvent { /// The replacement bytes each in-place rewrite left behind, one entry /// per digest — what lets reconstruction resolve a compacted block to /// the bytes the model received rather than the pre-compaction output - /// under the same `call_id` (#1667); see [`CompactionRewrite`]. + /// under the same `call_id` (#1667); see [`crate::CompactionRewrite`]. /// `serde(default)` — absent on journals written before rewrites were /// journaled, whose compacted blocks surface as digest mismatches. #[serde(default, skip_serializing_if = "Vec::is_empty")]