Skip to content

Open-source skills for designing and reviewing software with AI agents

docs(style): calibrate caveats and add file boundary handoff (#256)

Ravomi6efc127defc5
diff --git a/agents/style.md b/agents/style.md
index 2040c77..230cc3d 100644
--- a/agents/style.md
+++ b/agents/style.md
@@ -35,7 +35,7 @@ Evaluate the raw feature concept for objective framing, clarity of terminology,
Audit the target document file and line range specified by the caller:
1. **Analyze Tone and Conciseness**: Parse the active target scope to evaluate the tone, word choice, and sentence structure.
-2. **Verify Objectivity**: Ensure all claims are factual, measurable, and verifiable. Flag any subjective evaluations of code quality or system performance.
+2. **Verify Objectivity & Claim Calibration**: Ensure all claims are factual, measurable, and verifiable. Flag subjective evaluations of code quality or system performance, require every caveat to name a concrete reader/operator decision, and require every claim about existing or tested behavior to match its evidence.
3. **Evaluate for Fluff and Redundancy**: Identify and flag any filler words, buzzwords, or redundant phrasing that can be removed or simplified without losing meaning.
4. **Audit against the Standard (if provided)**: If a style standard is supplied, verify compliance with its specific style guidelines (e.g., active voice requirements, terminology constraints).
@@ -45,6 +45,7 @@ Audit the target document file and line range specified by the caller:
* **Filler Words & Wordiness**: Phrases that add noise instead of signal (e.g., "essentially," "simply run the command," "it is important to note that").
* **Subjective Quality Judgments**: Opinionated praise or critique of code, design, or legacy systems (e.g., "beautifully structured class," "terrible legacy parser").
* **Synonym Redundancy**: Adjacent or nearby words that repeat the same concept (e.g., "quick and rapid," "clean and elegant").
+* **Defensive Caveats & Uncalibrated Claims (`DROP | CALIBRATE | RELOCATE | KEEP`)**: Blanket disclaimers for inactive failure modes, speculative hedging with no reachable operator decision, or capability claims about existing or tested behavior that outrun actual verification evidence. Classify each flagged sentence as `DROP` (no concrete reader decision), `CALIBRATE` (narrow claim to verified scope/evidence), `RELOCATE` (move operational caveat to the exact step where a user makes a choice), or `KEEP` (backed by concrete evidence; do not report it as a finding).
---
@@ -56,7 +57,7 @@ Report your findings back to the orchestrator in plain, natural language.
For each finding, include:
1. **Severity**: [Blocker | Major | Nit]
2. **Affected Scope**: Section heading or line numbers.
-3. **Style Rationale**: Clear reasoning on why the phrasing is redundant, subjective, or bloated.
+3. **Style Rationale**: Clear reasoning on why the phrasing is redundant, subjective, uncalibrated, or bloated. For a Defensive Caveats finding, add the recommended editorial action (`DROP`, `CALIBRATE`, or `RELOCATE`).
#### IF Mode: BRAINSTORM
For each framing or scope ambiguity, include:
diff --git a/distributions/claude/agents/style.md b/distributions/claude/agents/style.md
index 2040c77..230cc3d 100644
--- a/distributions/claude/agents/style.md
+++ b/distributions/claude/agents/style.md
@@ -35,7 +35,7 @@ Evaluate the raw feature concept for objective framing, clarity of terminology,
Audit the target document file and line range specified by the caller:
1. **Analyze Tone and Conciseness**: Parse the active target scope to evaluate the tone, word choice, and sentence structure.
-2. **Verify Objectivity**: Ensure all claims are factual, measurable, and verifiable. Flag any subjective evaluations of code quality or system performance.
+2. **Verify Objectivity & Claim Calibration**: Ensure all claims are factual, measurable, and verifiable. Flag subjective evaluations of code quality or system performance, require every caveat to name a concrete reader/operator decision, and require every claim about existing or tested behavior to match its evidence.
3. **Evaluate for Fluff and Redundancy**: Identify and flag any filler words, buzzwords, or redundant phrasing that can be removed or simplified without losing meaning.
4. **Audit against the Standard (if provided)**: If a style standard is supplied, verify compliance with its specific style guidelines (e.g., active voice requirements, terminology constraints).
@@ -45,6 +45,7 @@ Audit the target document file and line range specified by the caller:
* **Filler Words & Wordiness**: Phrases that add noise instead of signal (e.g., "essentially," "simply run the command," "it is important to note that").
* **Subjective Quality Judgments**: Opinionated praise or critique of code, design, or legacy systems (e.g., "beautifully structured class," "terrible legacy parser").
* **Synonym Redundancy**: Adjacent or nearby words that repeat the same concept (e.g., "quick and rapid," "clean and elegant").
+* **Defensive Caveats & Uncalibrated Claims (`DROP | CALIBRATE | RELOCATE | KEEP`)**: Blanket disclaimers for inactive failure modes, speculative hedging with no reachable operator decision, or capability claims about existing or tested behavior that outrun actual verification evidence. Classify each flagged sentence as `DROP` (no concrete reader decision), `CALIBRATE` (narrow claim to verified scope/evidence), `RELOCATE` (move operational caveat to the exact step where a user makes a choice), or `KEEP` (backed by concrete evidence; do not report it as a finding).
---
@@ -56,7 +57,7 @@ Report your findings back to the orchestrator in plain, natural language.
For each finding, include:
1. **Severity**: [Blocker | Major | Nit]
2. **Affected Scope**: Section heading or line numbers.
-3. **Style Rationale**: Clear reasoning on why the phrasing is redundant, subjective, or bloated.
+3. **Style Rationale**: Clear reasoning on why the phrasing is redundant, subjective, uncalibrated, or bloated. For a Defensive Caveats finding, add the recommended editorial action (`DROP`, `CALIBRATE`, or `RELOCATE`).
#### IF Mode: BRAINSTORM
For each framing or scope ambiguity, include:
diff --git a/distributions/claude/resources/document_standards/implementation-readiness-standard.md b/distributions/claude/resources/document_standards/implementation-readiness-standard.md
index 371dccf..d883d34 100644
--- a/distributions/claude/resources/document_standards/implementation-readiness-standard.md
+++ b/distributions/claude/resources/document_standards/implementation-readiness-standard.md
@@ -26,8 +26,11 @@ must leave the codebase in a stable, buildable, and testable state.
The plan must detail these areas if applicable to the proposed changes:
-* **Target Scope**: Explicit list of files to be created, modified, or
- deleted.
+* **Target Scope & File Boundary**: Explicit list of exact repository-relative
+ file paths to be created, modified, or deleted, suitable for enforcing a
+ Phase 5 write allowlist without unapproved adjacent refactors or
+ opportunistic dependency additions. Use a directory glob only for generated
+ output whose filenames can't be known in advance.
* **Actionable Steps**: Precise logic changes, data transformations, and API
updates for each file.
* **Test Plan**: Specific test cases (happy path and edge cases) that must be
diff --git a/docs/designs/architecture.md b/docs/designs/architecture.md
index 7d9af04..1ffd005 100644
--- a/docs/designs/architecture.md
+++ b/docs/designs/architecture.md
@@ -157,6 +157,14 @@ sequenceDiagram
* **Execution**: Coding agents implement code strictly adhering to the
approved design document. (No Skill.md is required here because the design
document is complete and detailed.)
+* **Phase Write Boundaries**: Phases 1–4 (`/egm-brainstorm`, `/egm-draft`,
+ `/egm-review`, and `/egm-resolve`) should write only specification and
+ review artifacts: `concepts_brief.md`, `design_draft.md`, the review
+ reports, the design doc, and `SITEMAP.md` if it exists. They should not
+ change production source code or dependencies. This is a convention, and
+ nothing enforces it. Once Step 9 (Implementation Readiness Test) passes,
+ the plan's `Target Scope & File Boundary` list is the set of files Phase 5
+ implementation may write.
* **Maintenance**: `/egm-drift-report` is run periodically (e.g. weekly) to
detect divergence between codebase implementations and checked-in design docs.
diff --git a/docs/designs/review.md b/docs/designs/review.md
index ebe4961..52661fa 100644
--- a/docs/designs/review.md
+++ b/docs/designs/review.md
@@ -96,8 +96,9 @@ flowchart TD
* *Personas*: [`implementation_readiness`](../../agents/implementation_readiness.md),
[`codebase_details`](../../agents/codebase_details.md), [`style`](../../agents/style.md).
* *Standards*: `implementation-readiness-standard.md`, `re-implementation-standard.md`.
- * *Focus*: Verifies that every file touched is listed with rationale, API
- signatures match current codebase reality, and step-by-step test plans exist.
+ * *Focus*: Verifies that every file touched is listed as an explicit
+ repository-relative write boundary with rationale, API signatures match
+ current codebase reality, and step-by-step test plans exist.
--------------------------------------------------------------------------------
@@ -113,7 +114,7 @@ All reviewer persona prompts reside under [`agents/`](../../agents/):
| [`agents/implementation_readiness.md`](../../agents/implementation_readiness.md) | Tech Lead Auditor | Ensures implementation plans contain unambiguous, deterministic instructions, complete file lists, and verification steps. |
| [`agents/codebase_details.md`](../../agents/codebase_details.md) | Codebase Auditor | Cross-references referenced paths, classes, and function signatures against live source code to prevent drift and hallucinated APIs. |
| [`agents/structural.md`](../../agents/structural.md) | Layout Validator | Enforces standard heading hierarchy, table formatting, and document template conformance. |
-| [`agents/style.md`](../../agents/style.md) | Technical Copy Editor | Strips conversational filler, enforces factual, objective tone, and ensures adherence to concise technical writing standards. |
+| [`agents/style.md`](../../agents/style.md) | Technical Copy Editor | Strips conversational filler, enforces factual, objective tone, calibrates defensive caveats (`DROP` / `CALIBRATE` / `RELOCATE` / `KEEP`), and ensures adherence to concise technical writing standards. |
| [`agents/synthesizer.md`](../../agents/synthesizer.md) | Review Synthesizer | Spawns reviewers in parallel, deduplicates findings, formats file links, and writes consolidated report artifacts. |
--------------------------------------------------------------------------------
diff --git a/resources/document_standards/implementation-readiness-standard.md b/resources/document_standards/implementation-readiness-standard.md
index 371dccf..d883d34 100644
--- a/resources/document_standards/implementation-readiness-standard.md
+++ b/resources/document_standards/implementation-readiness-standard.md
@@ -26,8 +26,11 @@ must leave the codebase in a stable, buildable, and testable state.
The plan must detail these areas if applicable to the proposed changes:
-* **Target Scope**: Explicit list of files to be created, modified, or
- deleted.
+* **Target Scope & File Boundary**: Explicit list of exact repository-relative
+ file paths to be created, modified, or deleted, suitable for enforcing a
+ Phase 5 write allowlist without unapproved adjacent refactors or
+ opportunistic dependency additions. Use a directory glob only for generated
+ output whose filenames can't be known in advance.
* **Actionable Steps**: Precise logic changes, data transformations, and API
updates for each file.
* **Test Plan**: Specific test cases (happy path and edge cases) that must be
diff --git a/tests/unit/test_style_and_boundaries.py b/tests/unit/test_style_and_boundaries.py
new file mode 100644
index 0000000..5eaa955
--- /dev/null
+++ b/tests/unit/test_style_and_boundaries.py
@@ -0,0 +1,42 @@
+# Copyright 2026 Google LLC
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+"""Unit tests for Style Goldfish calibration and Phase 5 boundary handoffs."""
+
+import pathlib
+
+ROOT = pathlib.Path(__file__).resolve().parents[2]
+
+
+def test_style_goldfish_defines_defensive_prose_calibration_actions() -> None:
+ """Verifies Style Goldfish audits defensive caveats using DROP/CALIBRATE/RELOCATE/KEEP."""
+ style_text = (ROOT / "agents" / "style.md").read_text(encoding="utf-8")
+ for action in ("DROP", "CALIBRATE", "RELOCATE", "KEEP"):
+ assert f"`{action}`" in style_text, (
+ f"Missing editorial calibration action {action} in agents/style.md"
+ )
+ assert "Defensive Caveats & Uncalibrated Claims" in style_text
+
+
+def test_implementation_readiness_standard_defines_file_boundary_handoff() -> None:
+ """Verifies Implementation Readiness standard defines a Phase 5 file boundary."""
+ standard_text = (
+ ROOT
+ / "resources"
+ / "document_standards"
+ / "implementation-readiness-standard.md"
+ ).read_text(encoding="utf-8")
+ assert "Target Scope & File Boundary" in standard_text
+ assert "repository-relative" in standard_text
+ assert "Phase 5 write allowlist" in standard_text