Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): re-anchor style-section assertions to the renamed STYLE.md heading\n\nThe prompt style section heading was renamed from "## Output style" to\n"# Writing style" (it now lives in agent/prompts/STYLE.md, pulled in as\nGLOBAL_STYLE_SUFFIX via include_str!). 4d8908797 updated the two in-tree\ncallers under src/, but three assertions in tests/raw_coverage/ still\nreferenced the old heading.\n\nOnly one of the three had surfaced: the Rust Core Coverage lane runs\nchanged modules only, so agent_harness_leftovers was the module that got\npicked up and turned main red with\n\n assertion failed: json_prompt.contains("## Output style")\n\nThe other two were latent and would have fired the moment their module\nwas touched.\n\nEach assertion is re-anchored to "# Writing style" rather than removed:\nthe section still exists and each test is still checking the same\nproperty, that the built prompt carries the global style suffix.\n

M3gA-Mindf8d8b3ed22e5
diff --git a/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs b/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
index 1de7bdc191..38da4f6bdf 100644
--- a/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_harness_leftovers_raw_coverage_e2e.rs
@@ -690,7 +690,7 @@ fn subagent_prompt_renderer_handles_formats_caps_and_stale_tool_indices() -> Res
assert!(json_prompt.contains("extra"));
assert!(json_prompt.contains("truncated at 2000 chars"));
assert!(json_prompt.contains("## Safety"));
- assert!(json_prompt.contains("## Output style"));
+ assert!(json_prompt.contains("# Writing style"));
let native_prompt = render_subagent_system_prompt(
tmp.path(),
diff --git a/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs b/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
index 990fab326e..c2de787128 100644
--- a/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/agent_prompts_subagent_raw_coverage_e2e.rs
@@ -391,7 +391,7 @@ fn prompt_sections_render_files_identity_memory_tools_and_ambient_blocks() -> Re
assert!(rendered.contains("curated user body"));
assert!(rendered.contains("### work (last updated 2026-05-29)"));
assert!(rendered.contains("Call as: `echo[a|b]`"));
- assert!(rendered.contains("## Output style"));
+ assert!(rendered.contains("# Writing style"));
let user_files = render_user_files(&ctx)?;
assert!(user_files.contains("curated memory body"));
diff --git a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
index d8b0c29dc1..577c0b578b 100644
--- a/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
+++ b/tests/raw_coverage/inference_agent_raw_coverage_e2e.rs
@@ -2922,7 +2922,7 @@ fn agent_pformat_and_prompt_renderers_cover_public_paths() {
.expect("subagent builder");
assert!(built.contains("coverage soul"));
assert!(built.contains("coverage profile"));
- assert!(built.contains("Output style"));
+ assert!(built.contains("# Writing style"));
let narrow = render_subagent_system_prompt(
workspace.path(),