graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs
Python
chore: keep publication-gate edits under the 600-line ceiling
Rach0dc0eaf715eb
diff --git a/src/main.zig b/src/main.zigindex 7b265089..3afdc814 100644--- a/src/main.zig+++ b/src/main.zig@@ -571,11 +571,6 @@ test { // ── Unit tests (`zig build test`): pull in tests from imported modu_ = @import("agent_empty_completion.zig"); // #745: plain-final reconciliation_ = @import("agent_model_loop.zig");_ = @import("publication_policy_tests.zig");- _ = @import("artifact_claim.zig");- _ = @import("pr_publish.zig");- _ = @import("publish_gate.zig");- _ = @import("goal_verify.zig");- _ = @import("goal_verify_kind.zig");_ = @import("jobs_completion_tests.zig");_ = @import("test_hooks.zig"); // unreached modules; their tests were silently skipped_ = @import("list_dir_nearmiss.zig");diff --git a/src/prompt_snapshot_tests.zig b/src/prompt_snapshot_tests.zigindex ea9fb44d..25684026 100644--- a/src/prompt_snapshot_tests.zig+++ b/src/prompt_snapshot_tests.zig@@ -1,17 +1,7 @@-//! #421 + #410: prompt-snapshot tests. The root system prompt is now assembled-//! from capability-scoped segments (prompts.zig), which makes two things-//! testable that never were:-//!-//! 1. an absent capability contributes ZERO instruction text — not "less"-//! text, none, asserted by exact length AND by the dropped segment's own-//! bytes being unfindable in the result;-//! 2. the full-capability prompt is pinned to an inline golden below, so the-//! next person who changes the wording has to change this file too. Prompt-//! drift becomes a conscious choice instead of a diff nobody reviewed.-//!-//! The golden is the WHOLE prompt on purpose. A hash would catch drift just as-//! well and teach a reviewer nothing; this way the diff of a prompt change is-//! readable in review, right next to the assertion that it was intended.+//! #421 + #410: prompt-snapshot tests. Absent capabilities contribute zero+//! instruction text (exact length + dropped-segment bytes unfindable). The+//! full-capability prompt is the inline golden below so wording drift is a+//! reviewed choice, not a hash nobody reads.const std = @import("std");const prompts = @import("prompts.zig");diff --git a/src/prompts.zig b/src/prompts.zigindex 5d7b75a5..4bcf787e 100644--- a/src/prompts.zig+++ b/src/prompts.zig@@ -9,7 +9,6 @@//! variants are pre-built strings exactly like sys_normal/sys_strict, so//! this is the one place that derives all four from a base, next to the//! constants it composes them from.-//!//! #421: the root prompt is no longer one frozen wall of text. It is a list of//! capability-scoped SEGMENTS whose full-capability concatenation is still the//! comptime `main_system_prompt` (an Agent struct default, so it has to staydiff --git a/src/publication_policy_tests.zig b/src/publication_policy_tests.zigindex 15906d02..45d4769c 100644--- a/src/publication_policy_tests.zig+++ b/src/publication_policy_tests.zig@@ -1,5 +1,13 @@//! Policy reachability, not a claim that a scripted model exercises judgment.const std = @import("std");++test {+ _ = @import("artifact_claim.zig");+ _ = @import("pr_publish.zig");+ _ = @import("publish_gate.zig");+ _ = @import("goal_verify.zig");+ _ = @import("goal_verify_kind.zig");+}const prompts = @import("prompts.zig");const text = @import("prompt_text.zig");const no_local = @import("no_local_tools.zig");