Skip to content

AI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary

fix(render): remove LAW N framing from model-visible output (#1293)

Bhumika Gurav3b6da76c8cdd
diff --git a/changelog.d/1082.fixed.md b/changelog.d/1082.fixed.md
new file mode 100644
index 00000000..b127e2ed
--- /dev/null
+++ b/changelog.d/1082.fixed.md
@@ -0,0 +1 @@
+Remove "LAW N" framing from model-visible render output: the SYNTHESIS CONTRACT, EVIDENCE FOR SYNTHESIS envelope, and DEGRADED RUN WARNING now use plain descriptive guidance instead of numbered law references.
diff --git a/skills/last30days/scripts/lib/render.py b/skills/last30days/scripts/lib/render.py
index 9575c9f3..abf50894 100644
--- a/skills/last30days/scripts/lib/render.py
+++ b/skills/last30days/scripts/lib/render.py
@@ -851,7 +851,7 @@ def render_compact(
# unambiguous scope for "pass through verbatim" (the fenced footer block
# below) vs "synthesize from" (this block).
lines.append(
- "<!-- EVIDENCE FOR SYNTHESIS: read this, do not emit verbatim. Transform into `What I learned:` prose per LAW 2. -->"
+ "<!-- EVIDENCE FOR SYNTHESIS: read this, do not emit verbatim. Transform into `What I learned:` prose. -->"
)
lines.append("")
# Echo the synthesis contract early so it survives tail truncation (#726).
@@ -1205,8 +1205,8 @@ def _render_synthesis_directive() -> list[str]:
return [
"> **SYNTHESIS CONTRACT — read before emitting anything.** Everything below this",
"> line, up to where this evidence envelope closes, is raw evidence for you to",
- "> READ, not text to emit. Transform it into `What I learned:` prose paragraphs",
- "> per LAW 2. Do NOT pass the `### N.` evidence clusters or the stats and",
+ "> READ, not text to emit. Transform it into `What I learned:` prose paragraphs.",
+ "> Do NOT pass the `### N.` evidence clusters or the stats and",
"> source-coverage blocks through verbatim. The ONLY block you emit verbatim is",
"> the fenced `text` footer block (the emoji tree) lower down. The full contract repeats",
"> at the end-of-output boundary near the bottom; if your captured output was",
@@ -1240,14 +1240,14 @@ def _render_canonical_boundary() -> list[str]:
"Keep the code fence, so Markdown does not turn `---` into horizontal",
"rules or distort the tree.",
"The EVIDENCE FOR SYNTHESIS block above it is raw evidence for your synthesis,",
- "not output. Transform it into `What I learned:` prose paragraphs per LAW 2.",
+ "not output. Transform it into `What I learned:` prose paragraphs.",
"",
"If your response contains the literal string `### 1.` followed by a score",
"tuple like `(score N, M items, sources: ...)`, you dumped evidence instead",
"of synthesizing - STOP and regenerate. This is the 2026-04-19 Hermes Agent",
- "Use Cases failure mode (LAW 6).",
+ "Use Cases failure mode (evidence-dump).",
"",
- "Cite web pages inline next to the claims they support (LAW 1), then end at",
+ "Cite web pages inline next to the claims they support, then end at",
"the invitation, counting web pages in its link line. The emoji-tree footer",
"above already summarizes the sources, so do not add a `Sources:` list.",
]
@@ -1351,7 +1351,7 @@ def _render_degraded_run_warning(report: schema.Report) -> list[str]:
return []
return [
- "<!-- USER-VISIBLE BANNER: emit verbatim before synthesis per LAW 5 / LAW 7. -->",
+ "<!-- USER-VISIBLE BANNER: emit verbatim before synthesis. -->",
"## DEGRADED RUN WARNING",
"",
f'⚠️ This run was called BARE on a named-entity topic ("{report.topic}"):',
@@ -1367,12 +1367,12 @@ def _render_degraded_run_warning(report: schema.Report) -> list[str]:
"generates its own JSON plan upstream and passes it in. That is you.",
"Generate a plan with `intent` / `freshness_mode` / 3-5 paraphrased",
"subqueries and re-run with `--plan '$JSON'`. This is not a",
- "missing-credentials problem; this is a skipped-LAW-7 problem.",
+ "missing-credentials problem; this is a skipped planning step.",
"",
"What went wrong: on a named-entity topic, the full contract is",
"(a) resolve X handles / GitHub repos / subreddits via your runtime's",
"web-search tool (Step 0.55) and (b) generate a JSON `--plan` yourself",
- "and pass it via `--plan '$JSON'` (Step 0.75 / LAW 7). Both were skipped.",
+ "and pass it via `--plan '$JSON'` (Step 0.75). Both were skipped.",
"",
"**If you are a user reading this:** the assistant skipped its own",
"planning step. Ask it to regenerate following Step 0.55 and Step 0.75",
@@ -1499,7 +1499,7 @@ def render_comparison_multi(
lines.append(
"<!-- EVIDENCE FOR SYNTHESIS: read this, do not emit verbatim. Transform into "
- "`What I learned:` prose per LAW 2. Each entity has its own evidence subsection. -->"
+ "`What I learned:` prose. Each entity has its own evidence subsection. -->"
)
lines.append("")
# Echo the synthesis contract early so it survives tail truncation (#726).
diff --git a/tests/test_registers.py b/tests/test_registers.py
index 8a92f6e7..eaee0630 100644
--- a/tests/test_registers.py
+++ b/tests/test_registers.py
@@ -212,8 +212,9 @@ def test_default_register_is_byte_identical_when_omitted(monkeypatch):
# floor-clearing cluster, and the canonical boundary's inline-citation
# wording (no tool-contract override claim), and HN cluster-evidence
# comment lines carrying the comment's own link, and #706's fenced
- # text footer.
- "6c61772d662e1214b3fed20d6371ed14f61773b6af9c072225d9a2ede139878a"
+ # text footer, and #1082's removal of LAW N framing from model-visible
+ # contract text.
+ "7f59fe51a42de2983cc5ef863c03090f7c73d2a2e5adcea236883f14fe550ef5"
)
diff --git a/tests/test_render_v3.py b/tests/test_render_v3.py
index 4c189393..049751c9 100644
--- a/tests/test_render_v3.py
+++ b/tests/test_render_v3.py
@@ -464,7 +464,7 @@ class OutputEnvelopeTests(unittest.TestCase):
self.assertIn("Pass through ONLY the fenced `text` footer block above", text)
# Self-check string is present so the model has a concrete failure signal.
self.assertIn("### 1.", text)
- self.assertIn("LAW 6", text)
+ self.assertIn("evidence-dump", text)
# The prior ambiguous phrasing is gone.
self.assertNotIn("Pass through the lines ABOVE this boundary verbatim", text)
@@ -979,9 +979,9 @@ class DegradedRunBannerTests(unittest.TestCase):
text = render.render_compact(report)
self.assertNotIn("## DEGRADED RUN WARNING", text)
- def test_banner_mentions_law_7_and_plan_flag(self):
+ def test_banner_mentions_planning_step_and_plan_flag(self):
text = render.render_compact(self._bare_named_entity_report())
- self.assertIn("LAW 7", text)
+ self.assertIn("Step 0.75", text)
self.assertIn("--plan", text)