← negaresh@0.4.1

Propose a patch

A fix the maintainer can act on, with the evidence attached. It opens under your GitHub account in your browser; KillerSkills holds no token and never modifies the package. The fix is verified the only way we verify anything: the next crawl re-runs the new version in the honeypot. 78 · Caution

Evidence

The sandbox observed nothing beyond the static findings; the proposal cites those.

Diff · removes 52 caught lines

Download .patch
diff --git a/corpus/lexicon/structure_patterns.json b/corpus/lexicon/structure_patterns.json
--- a/corpus/lexicon/structure_patterns.json
+++ b/corpus/lexicon/structure_patterns.json
@@ -6,1 +6,0 @@
-"pattern": "مورد(?:_(?!مورد)[^\\s.،؛:!؟]+){1,3}_قرار_(?:گرفت|گرفتند|گرفته|گیرد|گیرند|می‌گیرد|می‌گیرند|داد|دادند|داده|دهد|دهند|می‌دهد|می‌دهند)",
@@ -13,1 +12,0 @@
-"pattern": "(?<!باز )(?<!باز‌)(?:گردید|گردیدند|گردیده|گردد|گردند)",
diff --git a/corpus/lexicon/variant_notes.json b/corpus/lexicon/variant_notes.json
--- a/corpus/lexicon/variant_notes.json
+++ b/corpus/lexicon/variant_notes.json
@@ -2,1 +2,0 @@
-"آزوقه": "سمیعی صورت «آزوقه» را مرجّح می‌داند.",
@@ -3,1 +2,0 @@
-"بغچه": "سمیعی صورت «بغچه» را مرجّح می‌داند.",
@@ -4,1 +2,0 @@
-"تاس‌کباب": "سمیعی صورت «تاس‌کباب» (و «تاس») را مرجّح می‌داند.",
diff --git a/corpus/rules/style.json b/corpus/rules/style.json
--- a/corpus/rules/style.json
+++ b/corpus/rules/style.json
@@ -2,1 +2,0 @@
-[ {"id": "STY-001", "title_fa": "حشو: واژه‌ای که چیزی نمی‌افزاید", "title_en": "Redundancy: cut words that add nothing", "c…
diff --git a/corpus/lexicon/usage_replacements.json b/corpus/lexicon/usage_replacements.json
--- a/corpus/lexicon/usage_replacements.json
+++ b/corpus/lexicon/usage_replacements.json
@@ -95,1 +95,0 @@
-"avoid": "مورد استفاده قرار می‌گیرد",
@@ -97,1 +96,0 @@
-"استفاده می‌شود"
@@ -101,1 +99,0 @@
-"note": "با «از»: «از ... استفاده می‌شود»",
@@ -130,1 +127,0 @@
-"avoid": "مورد بررسی قرار می‌گیرد",
@@ -132,1 +128,0 @@
-"بررسی می‌شود"
diff --git a/corpus/lexicon/variant_spellings.json b/corpus/lexicon/variant_spellings.json
--- a/corpus/lexicon/variant_spellings.json
+++ b/corpus/lexicon/variant_spellings.json
@@ -91,1 +91,0 @@
-"بخت‌النصر": [
@@ -103,1 +102,0 @@
-"تاراغ‌وتوروغ": [
@@ -104,1 +102,0 @@
-"ترق‌وتوروق"
@@ -106,1 +103,0 @@
-"تاس‌کباب": [
@@ -107,1 +103,0 @@
-"طاس‌کباب"
diff --git a/corpus/rules/usage.json b/corpus/rules/usage.json
--- a/corpus/rules/usage.json
+++ b/corpus/rules/usage.json
@@ -2,1 +2,0 @@
-[ {"id": "USG-001", "title_fa": "تنوین بر واژهٔ غیرعربی نمی‌آید", "title_en": "No tanvin on Persian or other non-Arabic words", "category": …
diff --git a/GEMINI.md b/GEMINI.md
--- a/GEMINI.md
+++ b/GEMINI.md
@@ -3,1 +3,0 @@
-# negaresh When the user asks you to write, edit, proofread, naturalize (روان‌سازی) or check Persian (Farsi) text, or asks whether a Persian form is correct, …
diff --git a/corpus/rules/grammar.json b/corpus/rules/grammar.json
--- a/corpus/rules/grammar.json
+++ b/corpus/rules/grammar.json
@@ -2,1 +2,0 @@
-…rofiles": ["all"], "guidance": "اگر نهاد جاندار است، فعل در شمار با آن مطابقت می‌کند: نهاد مفرد فعل مفرد می‌گیرد و نهاد جمع، یا چند نهاد که با «و» به هم پیوسته‌ا…
@@ -4,1 +3,0 @@
-…: "page images, 2026-11-15"}, {"id": "GRM-002", "title_fa": "فعلِ نهادِ جمعِ بی‌جان: مفرد یا جمع", "title_en": "Inanimate plural subject: singular or plural ver…
diff --git a/corpus/rules/orthography-2.json b/corpus/rules/orthography-2.json
--- a/corpus/rules/orthography-2.json
+++ b/corpus/rules/orthography-2.json
@@ -2,1 +2,0 @@
-[ {"id": "ORT-023", "title_fa": "«ة» در واژه‌های برگرفته از عربی", "title_en": "Arabic ta marbuta: t, silent h, or kept in Ar…
diff --git a/corpus/rules/discourse.json b/corpus/rules/discourse.json
--- a/corpus/rules/discourse.json
+++ b/corpus/rules/discourse.json
@@ -2,1 +2,0 @@
-[ {"id": "DSC-001", "title_fa": "رفع ابهام: جابه‌جایی، ویرگول، نقل مستقیم", "title_en": "Removing ambiguity: move a phrase, paire…
diff --git a/corpus/profiles.json b/corpus/profiles.json
--- a/corpus/profiles.json
+++ b/corpus/profiles.json
@@ -7,1 +7,0 @@
-"preserve": ["قیدهای احتیاط (ممکن است، احتمالاً، به نظر می‌رسد)", "ارجاع و انتساب", "عدد، واحد، نماد و فرمول", "اصطلاح تخصصی و واژه‌نامهٔ نویسنده", "جملهٔ مجهول وقتی کنشگر نامعلوم یا بی‌اهمیت است"],
@@ -8,1 +7,0 @@
-"notes": "ادعا را قوی‌تر یا ضعیف‌تر نکنید. کنشگری را که متن نگفته است نیفزایید."
diff --git a/corpus/rules/punctuation.json b/corpus/rules/punctuation.json
--- a/corpus/rules/punctuation.json
+++ b/corpus/rules/punctuation.json
@@ -2,1 +2,0 @@
-[ {"id": "PUN-001", "title_fa": "فاصله‌گذاری نشانه‌ها", "title_en": "Spacing around punctuation marks", "category": "pu…
diff --git a/corpus/rules/terminology.json b/corpus/rules/terminology.json
--- a/corpus/rules/terminology.json
+++ b/corpus/rules/terminology.json
@@ -2,1 +2,0 @@
-… گفتهٔ سمیعی در متن ریاضی، و هرجا عدد جنبهٔ ریاضی دارد، رقم بنویسید. در دیگر متن‌ها: با حروف: عددی که نامش «و» ندارد (یک تا نوزده؛ بیست، سی … نود؛ صد، دویست … نه…
diff --git a/corpus/rules/orthography-1.json b/corpus/rules/orthography-1.json
--- a/corpus/rules/orthography-1.json
+++ b/corpus/rules/orthography-1.json
@@ -2,1 +2,0 @@
-[ {"id": "ORT-001", "title_fa": "سه نوع فاصله: کامل، نیم‌فاصله، بی‌فاصله", "title_en": "Three kinds of spacing: full space, half-space, n…
diff --git a/corpus/rules/integrity.json b/corpus/rules/integrity.json
--- a/corpus/rules/integrity.json
+++ b/corpus/rules/integrity.json
@@ -2,1 +2,0 @@
-…on": "flag", "profiles": ["all"], "guidance": "ویرایش زبانی صورتِ متن را بهتر می‌کند، نه محتوای آن را. ادعا را قوی‌تر یا ضعیف‌تر نکنید؛ قید احتیاط (شاید، احتمالا…
diff --git a/src/negaresh/textutil.py b/src/negaresh/textutil.py
--- a/src/negaresh/textutil.py
+++ b/src/negaresh/textutil.py
@@ -13,1 +13,0 @@
-ZWNJ = "‌"
@@ -52,1 +51,0 @@
-joined form is kept too, so «می‌رود», «می رود» and «میرود» can meet."""
diff --git a/corpus/sources.json b/corpus/sources.json
--- a/corpus/sources.json
+++ b/corpus/sources.json
@@ -37,1 +37,0 @@
-"citation": "احمد سمیعی (گیلانی)، نگارش و ویرایش، تهران: سازمان مطالعه و تدوین کتب علوم انسانی دانشگاه‌ها (سمت)، چاپ هشتم ۱۳۸۶ (چاپ اول ۱۳۷۸).",
@@ -45,1 +44,0 @@
-…ی و بهزاد رهبر، «کاربرد ضمیر فاعلی در گونهٔ فارسی گفتاری و نوشتاری معیار؛ مقایسه‌ای پیکره‌بنیاد»، مطالعات زبان‌ها و گویش‌های غرب ایران ۱۱(۳)، ۲۰۲۳، ص ۸۷–۱۰۹، doi…
diff --git a/src/negaresh/mechanics.py b/src/negaresh/mechanics.py
--- a/src/negaresh/mechanics.py
+++ b/src/negaresh/mechanics.py
@@ -58,1 +58,0 @@
-"⁩": "PDI", "": "BYTE ORDER MARK", "­": "SOFT HYPHEN", " ": "NO-BREAK SPACE",
@@ -59,1 +58,0 @@
-"‍": "ZERO WIDTH JOINER", "​": "ZERO WIDTH SPACE", "\u061C": "ARABIC LETTER MARK",
@@ -178,1 +176,0 @@
-f"حرف عربی «{ch}» در عبارتی که عربی به نظر می‌رسد یا نقل شده است؛ اگر نقل عربی است تغییر ندهید",
diff --git a/tests/test_precision.py b/tests/test_precision.py
--- a/tests/test_precision.py
+++ b/tests/test_precision.py
@@ -11,1 +11,0 @@
-Z = "‌"
@@ -24,1 +23,0 @@
-"فایل‌های با پسوند .py را در پوشهٔ src بگذارید.",
@@ -45,1 +43,0 @@
-"Persian ZWNJ in Hindi: क्‌ष",
@@ -140,1 +137,0 @@
-"نشانه‌های «، ؟!» را ببینید.",
@@ -158,1 +154,0 @@
-"درمان طولانی‌مدت لازم بود.",
diff --git a/skills/negaresh/SKILL.md b/skills/negaresh/SKILL.md
--- a/skills/negaresh/SKILL.md
+++ b/skills/negaresh/SKILL.md
@@ -4,1 +4,0 @@
-…hine-like (AI) Persian, paragraph flow, grammar, usage, Academy orthography (نیم‌فاصله / ZWNJ), punctuation and meaning preservation. Use when the user asks to و…
diff --git a/tests/test_cross_rules.py b/tests/test_cross_rules.py
--- a/tests/test_cross_rules.py
+++ b/tests/test_cross_rules.py
@@ -46,1 +46,0 @@
-("INT-006", "ORT-002", "M08", "«می روم» ← «می‌روم» (ORT-002)"),
@@ -47,1 +46,0 @@
-("INT-006", "ORT-003", "M08", "«می روم» ← «می‌روم» (ORT-002)"),
@@ -48,1 +46,0 @@
-("INT-006", "ORT-004", "M08", "«می روم» ← «می‌روم» (ORT-002)"),
diff --git a/tests/test_negaresh.py b/tests/test_negaresh.py
--- a/tests/test_negaresh.py
+++ b/tests/test_negaresh.py
@@ -42,1 +42,0 @@
-text = "من کتاب‌ها را می‌خوانم و او گزارش را نوشته است."
@@ -75,1 +74,0 @@
-env, is_error = api.call("search_rules", {"query": "نیم‌فاصله", "bogus": 1})
@@ -98,1 +96,0 @@
-assert env2["data"]["revised_text"] == "من کتاب‌ها را می‌خوانم."
diff --git a/src/negaresh/api.py b/src/negaresh/api.py
--- a/src/negaresh/api.py
+++ b/src/negaresh/api.py
@@ -146,1 +146,0 @@
-"coverage_note": "قاعده‌ای که بازیابی شده لزوماً بر متن شما صدق نمی‌کند؛ شرایط و استثناها را بخوانید. "
diff --git a/tools/build.py b/tools/build.py
--- a/tools/build.py
+++ b/tools/build.py
@@ -22,1 +22,0 @@
-"orthography": "املا و فاصله‌گذاری",
@@ -23,1 +22,0 @@
-"punctuation": "نشانه‌گذاری و نویسه‌ها",
@@ -28,1 +26,0 @@
-"terminology": "اصطلاح‌ها",
@@ -99,1 +96,0 @@
-meta = f"{SEVERITY[r['severity']]} · {'منبع‌دار' if r['evidence_class'] == 'sourced' else 'جمع‌بندی ویراستاری (بدون منبع کتابی)'}"

Zero-context hunks: apply with git apply --unidiff-zero fix.patch on the tagged source of 0.4.1. If the behavior is intended, declare it (host under permissions.network, a line in the README) instead of removing it; the next crawl scores declarations.

Issue / PR body

Title: negaresh: Hidden zero-width characters detected (KillerSkills verdict caution 78)

## What the honeypot observed
KillerSkills ran **[email protected]** in an isolated sandbox (decoy credentials, recording proxy, syscall trace; engine 1.9.2) and scored it **CAUTION 78/100**. Summary: no network, touches nothing outside the project, writes no memory.

- See the findings below.

Full trace and findings: https://killerskills.ai/skills/glama/negaresh/0.4.1

## Findings with a location
- `corpus/lexicon/structure_patterns.json:13` · Hidden zero-width characters detected — corpus/lexicon/structure_patterns.json:13 · Hidden zero-width characters detected — may conceal content
- `corpus/lexicon/variant_notes.json:4` · Hidden zero-width characters detected — corpus/lexicon/variant_notes.json:4 · Hidden zero-width characters detected — may conceal content
- `corpus/rules/style.json:2` · Hidden zero-width characters detected — corpus/rules/style.json:2 · Hidden zero-width characters detected — may conceal content
- `corpus/lexicon/usage_replacements.json:130` · Hidden zero-width characters detected — corpus/lexicon/usage_replacements.json:130 · Hidden zero-width characters detected — may conceal content
- `corpus/lexicon/variant_spellings.json:104` · Hidden zero-width characters detected — corpus/lexicon/variant_spellings.json:104 · Hidden zero-width characters detected — may conceal content
- `corpus/rules/usage.json:2` · Hidden zero-width characters detected — corpus/rules/usage.json:2 · Hidden zero-width characters detected — may conceal content
- `GEMINI.md:3` · Hidden zero-width characters detected — GEMINI.md:3 · Hidden zero-width characters detected — may conceal content
- `corpus/rules/grammar.json:4` · Hidden zero-width characters detected — corpus/rules/grammar.json:4 · Hidden zero-width characters detected — may conceal content
- `corpus/lexicon/usage_replacements.json:97` · Hidden zero-width characters detected — corpus/lexicon/usage_replacements.json:97 · Hidden zero-width characters detected — may conceal content
- `corpus/rules/orthography-2.json:2` · Hidden zero-width characters detected — corpus/rules/orthography-2.json:2 · Hidden zero-width characters detected — may conceal content
- `corpus/rules/discourse.json:2` · Hidden zero-width characters detected — corpus/rules/discourse.json:2 · Hidden zero-width characters detected — may conceal content
- `corpus/profiles.json:7` · Hidden zero-width characters detected — corpus/profiles.json:7 · Hidden zero-width characters detected — may conceal content

## Proposed change
The attached patch removes the 52 lines above. If the behavior is intended, the fix is to declare it instead: list the host under `permissions.network` (or the MCP manifest) and say in the README why the package needs it; the next crawl will re-score it with the declaration taken into account.

## How this will be verified
Nothing is "verified safe" by assertion. When a new version is published, KillerSkills re-runs it in the honeypot and the verdict page updates; you can trigger it early from the verdict page ("Re-scan after I publish a fix"). Reply here or at [email protected] if you believe the verdict is wrong; disputes are reviewed by a person and the outcome is published on the verdict page.

_Proposed through killerskills.ai/threats by a user of the package, under their own GitHub account. The evidence is public; the package was never modified by KillerSkills._
# or from a terminal, under your own account:
gh repo fork Aricept094/negaresh --clone && cd negaresh
curl -s https://killerskills.ai/skills/glama/negaresh/0.4.1/patch.diff | git apply --unidiff-zero
git checkout -b killerskills/0.4.1 && git commit -am "negaresh: Hidden zero-width characters detected"
gh pr create --fill --body-file <(curl -s https://killerskills.ai/skills/glama/negaresh/0.4.1/patch.md)

We count proposals opened, not merged: a merge shows up as a new version that the crawl re-runs. Disputes: the maintainer can contest the verdict from its page; a person reviews it and the outcome is published.