dislop 0.9.1 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/.claude-plugin/marketplace.json +3 -3
  2. package/.claude-plugin/plugin.json +2 -2
  3. package/.codex-plugin/plugin.json +7 -8
  4. package/.cursor-plugin/plugin.json +2 -3
  5. package/.pre-commit-hooks.yaml +5 -12
  6. package/PRODUCT.md +19 -63
  7. package/README.md +360 -252
  8. package/README.zh-CN.md +390 -240
  9. package/action.yml +30 -39
  10. package/bin/dislop-mcp.mjs +3 -4
  11. package/bin/dislop.mjs +4 -4594
  12. package/gemini-extension.json +2 -2
  13. package/llms-install.md +68 -0
  14. package/package.json +17 -63
  15. package/packs/common/artifact-qa/pack.json +5 -0
  16. package/packs/common/artifact-qa/prompts/rules.md +11 -0
  17. package/packs/common/artifact-qa/scripts/index.mjs +173 -0
  18. package/packs/common/slide-deck/pack.json +6 -0
  19. package/packs/common/slide-deck/prompts/rules.md +11 -0
  20. package/packs/common/slide-deck/scripts/index.mjs +62 -0
  21. package/packs/common/web-ui/pack.json +6 -0
  22. package/packs/common/web-ui/prompts/rules.md +11 -0
  23. package/packs/common/web-ui/scripts/index.mjs +80 -0
  24. package/packs/en/artifact-qa/pack.json +6 -0
  25. package/packs/en/artifact-qa/prompts/rules.md +14 -0
  26. package/packs/en/artifact-qa/scripts/index.mjs +90 -0
  27. package/packs/en/prose/pack.json +7 -0
  28. package/packs/en/prose/prompts/rules.md +26 -0
  29. package/packs/en/prose/scripts/index.mjs +290 -0
  30. package/packs/en/slide-deck/pack.json +7 -0
  31. package/packs/en/slide-deck/prompts/rules.md +17 -0
  32. package/packs/en/slide-deck/scripts/index.mjs +81 -0
  33. package/packs/en/web-ui/pack.json +7 -0
  34. package/packs/en/web-ui/prompts/rules.md +20 -0
  35. package/packs/en/web-ui/scripts/index.mjs +103 -0
  36. package/packs/zh/artifact-qa/pack.json +6 -0
  37. package/packs/zh/artifact-qa/prompts/rules.md +14 -0
  38. package/packs/zh/artifact-qa/scripts/index.mjs +89 -0
  39. package/packs/zh/prose/pack.json +7 -0
  40. package/packs/zh/prose/prompts/rules.md +26 -0
  41. package/packs/zh/prose/scripts/index.mjs +305 -0
  42. package/packs/zh/slide-deck/pack.json +7 -0
  43. package/packs/zh/slide-deck/prompts/rules.md +17 -0
  44. package/packs/zh/slide-deck/scripts/index.mjs +75 -0
  45. package/packs/zh/web-ui/pack.json +7 -0
  46. package/packs/zh/web-ui/prompts/rules.md +20 -0
  47. package/packs/zh/web-ui/scripts/index.mjs +98 -0
  48. package/plugin.json +5 -6
  49. package/server.json +2 -2
  50. package/skills/deslop-docs/SKILL.md +10 -8
  51. package/skills/deslop-slides-docx/SKILL.md +7 -8
  52. package/skills/deslop-verify/SKILL.md +7 -8
  53. package/skills/deslop-web-ui/SKILL.md +7 -8
  54. package/skills/dislop/SKILL.md +16 -28
  55. package/skills/dislop/references/essay.md +1 -1
  56. package/skills/dislop/references/essay.zh-CN.md +1 -1
  57. package/skills/dislop/references/office.md +1 -1
  58. package/skills/dislop/references/office.zh-CN.md +1 -1
  59. package/skills/dislop/references/web-ui.md +1 -1
  60. package/skills/dislop/references/web-ui.zh-CN.md +1 -1
  61. package/skills/dislop/references/work-docs.md +1 -1
  62. package/skills/dislop/references/work-docs.zh-CN.md +1 -1
  63. package/src/cli-main.mjs +210 -0
  64. package/src/commands/check-fix.mjs +169 -0
  65. package/src/commands/doctor.mjs +110 -0
  66. package/src/commands/init.mjs +49 -0
  67. package/src/commands/login.mjs +82 -0
  68. package/src/commands/model.mjs +130 -0
  69. package/src/commands/packs.mjs +44 -0
  70. package/src/commands/verify.mjs +133 -0
  71. package/src/commands/voice.mjs +84 -0
  72. package/src/kernel/config.mjs +232 -0
  73. package/src/kernel/document-model.mjs +1412 -0
  74. package/src/kernel/fact-gate.mjs +615 -0
  75. package/src/kernel/file-discovery.mjs +139 -0
  76. package/src/{binary-node.mjs → kernel/ooxml-binary.mjs} +532 -893
  77. package/src/kernel/pack-loader.mjs +715 -0
  78. package/src/kernel/patcher.mjs +341 -0
  79. package/src/kernel/pipeline.mjs +267 -0
  80. package/src/kernel/prompt-assembler.mjs +307 -0
  81. package/src/kernel/voice-profile.mjs +177 -0
  82. package/src/mcp/stdio-server.mjs +372 -0
  83. package/src/runners/auto-fix.mjs +59 -0
  84. package/src/runners/interactive-tty.mjs +461 -0
  85. package/src/runners/reporters.mjs +256 -0
  86. package/src/runtime/chunker.mjs +87 -0
  87. package/src/runtime/json-extract.mjs +144 -0
  88. package/src/runtime/privacy-gate.mjs +97 -0
  89. package/src/runtime/providers/anthropic.mjs +65 -0
  90. package/src/runtime/providers/cloud.mjs +136 -0
  91. package/src/runtime/providers/gemini.mjs +91 -0
  92. package/src/runtime/providers/local-model.mjs +139 -0
  93. package/src/runtime/providers/openai-compat.mjs +130 -0
  94. package/src/runtime/router.mjs +315 -0
  95. package/src/sdk/index.mjs +137 -0
  96. package/models/manifest.json +0 -90
  97. package/models/pocket-slop-v1.json +0 -1
  98. package/packs/business-brief/pack.json +0 -937
  99. package/packs/core/pack.json +0 -209
  100. package/packs/deck-and-ui/pack.json +0 -539
  101. package/packs/engineering-spec/pack.json +0 -144
  102. package/packs/executive-deck/pack.json +0 -98
  103. package/packs/literary-essay/pack.json +0 -344
  104. package/packs/regulated-comms/pack.json +0 -99
  105. package/patterns/ai-tic-rubric.json +0 -252
  106. package/patterns/banks/composite-fusion.json +0 -48
  107. package/patterns/banks/discourse-rhythm.json +0 -95
  108. package/patterns/banks/lexical-signals.json +0 -92
  109. package/patterns/banks/syntactic-frames.json +0 -52
  110. package/patterns/banks/visual-deck.json +0 -44
  111. package/patterns/dimensions/artifacts.json +0 -121
  112. package/patterns/dimensions/discourse.json +0 -438
  113. package/patterns/dimensions/lexical.json +0 -198
  114. package/patterns/dimensions/rhythm.json +0 -258
  115. package/patterns/dimensions/syntactic.json +0 -285
  116. package/patterns/dimensions/visual-and-deck.json +0 -530
  117. package/patterns/taxonomy.json +0 -112
  118. package/src/core.mjs +0 -5497
  119. package/src/dislop/review-picker.vim +0 -114
  120. package/src/local-model.mjs +0 -997
  121. package/src/pattern-engine.mjs +0 -1003
  122. package/src/pocket-model.mjs +0 -729
  123. package/src/review-apply.mjs +0 -151
  124. package/src/review-client.mjs +0 -1073
@@ -1,44 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-bank/1",
3
- "id": "visual-deck",
4
- "version": "1.0.0",
5
- "description": {
6
- "en": "Declarative structural thresholds and regexes for Web UI glassmorphism overuse, thick accent-stripe card stacks, and PowerPoint cross-slide layout monotony.",
7
- "zh": "网页毛玻璃面板滥用、侧边粗彩条卡片堆叠与 PPT 跨页版式单调的声明式检测配置。"
8
- },
9
- "glassmorphismOveruse": {
10
- "ruleId": "ui-glassmorphism-overuse",
11
- "dimension": "visual-and-deck",
12
- "detectionAngle": "visual-markup-ooxml",
13
- "severity": "warning",
14
- "minOccurrences": 3,
15
- "pattern": "\\bbackdrop-blur(?:-[a-z0-9]+)?\\b|backdrop-filter\\s*:\\s*blur\\("
16
- },
17
- "accentStripeCard": {
18
- "ruleId": "ui-accent-stripe-card",
19
- "dimension": "visual-and-deck",
20
- "detectionAngle": "visual-markup-ooxml",
21
- "severity": "warning",
22
- "minOccurrences": 3,
23
- "pattern": "\\bborder-l-(?:4|8)\\b|border-left\\s*:\\s*(?:[4-9]|\\d{2,})px\\s+solid\\b",
24
- "exemptLookbehindChars": 48,
25
- "exemptPattern": "\\bblockquote\\b"
26
- },
27
- "pptxLayoutMonotony": {
28
- "ruleId": "pptx-layout-monotony",
29
- "dimension": "visual-and-deck",
30
- "detectionAngle": "visual-markup-ooxml",
31
- "severity": "info",
32
- "minContentSlides": 5,
33
- "minConsecutivePlainBulletSlides": 4,
34
- "minSlideLatinWords": 12,
35
- "minSlideCjkChars": 25
36
- },
37
- "gen2TastefulSlop": {
38
- "ruleId": "ui-gen2-tasteful-slop",
39
- "dimension": "visual-and-deck",
40
- "detectionAngle": "visual-markup-ooxml",
41
- "severity": "info",
42
- "minSignals": 2
43
- }
44
- }
@@ -1,121 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-library/1",
3
- "dimension": "artifacts",
4
- "version": "1.0.0",
5
- "patterns": [
6
- {
7
- "id": "pat-unfilled-placeholder",
8
- "ruleId": "unfilled-placeholder",
9
- "packId": "core",
10
- "category": "delivery-hygiene",
11
- "detectionAngle": "regex-invariant",
12
- "status": "active",
13
- "severityDefault": "error",
14
- "languages": ["en", "zh"],
15
- "modalities": ["markdown", "text", "html", "jsx", "svg", "docx", "pptx"],
16
- "evidenceLevel": "objective-invariant",
17
- "name": { "en": "Unfilled Template Placeholder", "zh": "未填写模板占位符" },
18
- "mechanism": {
19
- "en": "Models emit bracketed or Mustache template slots (`[insert ...]`, `{{var}}`, `【待补充】`) when source facts are missing.",
20
- "zh": "缺少事实时模型会顺手输出括号或双花括号占位槽(如 `[insert ...]`、`{{var}}`、`【待补充】`),漏改即成硬伤。"
21
- },
22
- "tags": ["placeholder", "template", "lorem", "tbd", "占位符", "待补充", "待填写"],
23
- "falsePositiveGuards": [
24
- "Code blocks, inline code, and URLs are masked in `prose`.",
25
- "Numeric array subscripts (`items[0]`) and standard section numbers do not match."
26
- ],
27
- "modelTendencies": ["general-llm"],
28
- "exemplar": {
29
- "bad": "Q3 settlement ran across 14 gateways; p95 latency was [insert p95 latency].",
30
- "trap": "Q3 settlement improved dramatically across 14 gateways.",
31
- "good": "Q3 settlement ran across 14 gateways (p95 latency pending load-test sign-off).",
32
- "source": "original"
33
- }
34
- },
35
- {
36
- "id": "pat-chatbot-artifact",
37
- "ruleId": "chatbot-artifact",
38
- "packId": "core",
39
- "category": "delivery-hygiene",
40
- "detectionAngle": "regex-invariant",
41
- "status": "active",
42
- "severityDefault": "error",
43
- "languages": ["en", "zh"],
44
- "modalities": ["markdown", "text", "html", "jsx", "docx", "pptx"],
45
- "evidenceLevel": "objective-invariant",
46
- "name": { "en": "Chatbot Conversational Wrapper & Citation Residue", "zh": "对话寒暄壳与检索残迹" },
47
- "mechanism": {
48
- "en": "Copy-pasting model responses leaves assistant greetings, sign-offs, or internal citation tokens (`[oaicite:...]`, `【4†source】`, `utm_source=chatgpt.com`).",
49
- "zh": "直接粘贴模型输出时残留“好的,以下是……”“希望这对你有帮助”或内部检索引用标记。"
50
- },
51
- "tags": ["chatbot", "wrapper", "greeting", "oaicite", "寒暄", "以下是", "希望这对你有帮助"],
52
- "falsePositiveGuards": [
53
- "Plain document intros like `以下是本周进展:` without conversational lead-ins (`好的`/`当然可以`) stay exempt.",
54
- "Natural idioms like `Sure enough` stay exempt."
55
- ],
56
- "modelTendencies": ["general-llm", "web-chat-ui"],
57
- "exemplar": {
58
- "bad": "Certainly! Here is the revised rollout note: Cluster B migrates on November 24 at 02:00 UTC.",
59
- "trap": "Cluster B isn't just migrating — it's entering a new chapter on November 24 at 02:00 UTC.",
60
- "good": "Cluster B migrates on November 24 at 02:00 UTC.",
61
- "source": "original"
62
- }
63
- },
64
- {
65
- "id": "pat-markdown-leak",
66
- "ruleId": "markdown-leak",
67
- "packId": "core",
68
- "category": "office-structure",
69
- "detectionAngle": "visual-markup-ooxml",
70
- "status": "active",
71
- "severityDefault": "error",
72
- "languages": ["en", "zh"],
73
- "modalities": ["docx", "pptx"],
74
- "evidenceLevel": "objective-invariant",
75
- "name": { "en": "Unrendered Markdown Syntax in Office Documents", "zh": "Office 文档裸露 Markdown 符号" },
76
- "mechanism": {
77
- "en": "LLM markdown output pasted into DOCX/PPTX preserves literal `**bold**` asterisks or `## ` headings inside OOXML text runs.",
78
- "zh": "将大模型生成的 Markdown 直接贴进 Word/PPT,导致 `**加粗**` 或 `## 标题` 原样暴露在正文里。"
79
- },
80
- "tags": ["markdown", "docx", "pptx", "asterisks", "裸符号", "星号"],
81
- "falsePositiveGuards": [
82
- "Evaluated only inside extracted DOCX `<w:t>` and PPTX `<a:t>` text runs, excluding deleted revisions `<w:del>`."
83
- ],
84
- "modelTendencies": ["general-llm"],
85
- "exemplar": {
86
- "bad": "**Key Milestone**: Ship v0.2 parser before Friday.",
87
- "trap": "Key Milestone — a game-changing v0.2 parser ships Friday.",
88
- "good": "Key Milestone: Ship v0.2 parser before Friday.",
89
- "source": "original"
90
- }
91
- },
92
- {
93
- "id": "pat-ui-dead-control",
94
- "ruleId": "ui-dead-control",
95
- "packId": "core",
96
- "category": "ui-design",
97
- "detectionAngle": "visual-markup-ooxml",
98
- "status": "active",
99
- "severityDefault": "error",
100
- "languages": ["en", "zh"],
101
- "modalities": ["html", "jsx"],
102
- "evidenceLevel": "objective-invariant",
103
- "name": { "en": "Dead Placeholder Link or Button", "zh": "空链接与占位假按钮" },
104
- "mechanism": {
105
- "en": "Generated HTML mockups routinely leave `href=\"#\"`, `javascript:void(0)`, empty buttons, or unexplained static `disabled` buttons.",
106
- "zh": "AI 生成的界面原型常留下 `href=\"#\"`、`javascript:void(0)`、无标签空按钮或未解释原因的禁用按钮。"
107
- },
108
- "tags": ["dead-link", "href", "button", "disabled", "空链接", "假按钮"],
109
- "falsePositiveGuards": [
110
- "Real fragment anchors (`href=\"#pricing\"`), click-handled anchors (`onClick`/`hx-get`), and disabled buttons with `title` or `aria-describedby` are exempt."
111
- ],
112
- "modelTendencies": ["frontend-codegen"],
113
- "exemplar": {
114
- "bad": "<a href=\"#\" class=\"btn\">Download report</a>",
115
- "trap": "<button disabled class=\"btn\">Download AI-Powered Insights</button>",
116
- "good": "<a href=\"./reports/q3-audit.pdf\" class=\"btn\">Download Q3 audit (PDF)</a>",
117
- "source": "original"
118
- }
119
- }
120
- ]
121
- }
@@ -1,438 +0,0 @@
1
- {
2
- "schema": "dislop.pattern-library/1",
3
- "dimension": "discourse",
4
- "version": "1.0.0",
5
- "patterns": [
6
- {
7
- "id": "pat-en-throat-clearing-opener",
8
- "ruleId": "en-throat-clearing-opener",
9
- "packId": "business-brief",
10
- "category": "language-template",
11
- "detectionAngle": "discourse-structure",
12
- "status": "active",
13
- "severityDefault": "warning",
14
- "languages": ["en"],
15
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
16
- "evidenceLevel": "editorial-consensus",
17
- "name": { "en": "English Throat-Clearing Opener", "zh": "英文铺垫开场白" },
18
- "mechanism": {
19
- "en": "Filler sentence openers (`It is worth noting that`, `In today's fast-paced`, `Let's dive right into`) stall before stating the actual fact.",
20
- "zh": "英文段首或句首习惯加一层无信息铺垫壳(如 `It is worth noting that`、`In today's fast-paced`)。"
21
- },
22
- "tags": ["opener", "throat-clearing", "filler", "en", "铺垫开场"],
23
- "falsePositiveGuards": [
24
- "Matches only at sentence/paragraph boundaries."
25
- ],
26
- "modelTendencies": ["gpt-family", "general-llm"],
27
- "exemplar": {
28
- "bad": "It is worth noting that CSV exports take up to 12 minutes for workspaces above 500,000 rows.",
29
- "trap": "CSV exports aren't instant — they're built for precision, taking up to 12 minutes.",
30
- "good": "CSV exports take up to 12 minutes for workspaces above 500,000 rows.",
31
- "source": "original"
32
- }
33
- },
34
- {
35
- "id": "pat-unsourced-attribution",
36
- "ruleId": "unsourced-attribution",
37
- "packId": "business-brief",
38
- "category": "evidence-rigor",
39
- "detectionAngle": "discourse-structure",
40
- "status": "active",
41
- "severityDefault": "warning",
42
- "languages": ["en", "zh"],
43
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
44
- "evidenceLevel": "editorial-consensus",
45
- "name": { "en": "Unsourced Authority Attribution", "zh": "无出处权威背书" },
46
- "mechanism": {
47
- "en": "Models fabricate authority by writing `Studies show` / `研究表明` / `业内人士指出` without naming a dataset, year, footnote, or link.",
48
- "zh": "用“研究表明/数据显示/业内人士指出”制造权威感,但附近没有具体机构、年份、链接或脚注。"
49
- },
50
- "tags": ["attribution", "citation", "evidence", "weasel", "研究表明", "数据显示", "无出处"],
51
- "falsePositiveGuards": [
52
- "Inspects surrounding 210-character window for footnotes (`[1]`), links (`](...)`), URLs, `(Author, 2024)`, or `《报告》`."
53
- ],
54
- "modelTendencies": ["general-llm"],
55
- "exemplar": {
56
- "bad": "Industry research shows that 70% of enterprise decks fail basic accessibility checks.",
57
- "trap": "Everyone knows most enterprise decks fail basic accessibility checks.",
58
- "good": "In our audit of 48 internal Q3 review decks, 31 contained at least one low-contrast caption (< 4.5:1).",
59
- "source": "original"
60
- }
61
- },
62
- {
63
- "id": "pat-bold-lead-list-wall",
64
- "ruleId": "bold-lead-list-wall",
65
- "packId": "business-brief",
66
- "category": "language-template",
67
- "detectionAngle": "discourse-structure",
68
- "status": "active",
69
- "severityDefault": "info",
70
- "languages": ["en", "zh"],
71
- "modalities": ["markdown", "text"],
72
- "evidenceLevel": "editorial-consensus",
73
- "name": { "en": "Bold-Lead Bullet List Wall", "zh": "加粗小标题列表墙" },
74
- "mechanism": {
75
- "en": "Instruction tuning strongly biases assistants to answer with 4+ consecutive `- **Keyword**: explanation` bullets even for simple narrative points.",
76
- "zh": "指令微调使模型动辄输出 4 条以上 `- **小标题**:说明` 列表墙,把本来两句话能讲清的事拆碎平铺。"
77
- },
78
- "tags": ["list-wall", "bullets", "bold-lead", "列表墙", "加粗清单"],
79
- "falsePositiveGuards": [
80
- "Exempts code-flagged reference lists ('- `--pack`: ...') and short 1–3 item lists."
81
- ],
82
- "modelTendencies": ["gpt-family", "gemini-family"],
83
- "exemplar": {
84
- "bad": "- **Speed**: Runs fast locally.\n- **Privacy**: Keeps files offline.\n- **Modularity**: Uses JSON packs.\n- **Clarity**: Prints line numbers.",
85
- "trap": "Speed. Privacy. Modularity. Clarity.",
86
- "good": "`dislop` runs locally with no network calls, loads rules from plain JSON packs, and prints exact file and line coordinates.",
87
- "source": "original"
88
- }
89
- },
90
- {
91
- "id": "pat-zh-essay-moralizing-ending",
92
- "ruleId": "zh-essay-moralizing-ending",
93
- "packId": "literary-essay",
94
- "category": "language-template",
95
- "detectionAngle": "discourse-structure",
96
- "status": "active",
97
- "severityDefault": "warning",
98
- "languages": ["zh"],
99
- "modalities": ["markdown", "text", "html", "docx"],
100
- "evidenceLevel": "editorial-consensus",
101
- "name": { "en": "Chinese Moralizing Ending Formula", "zh": "中文段尾说教升华套句" },
102
- "mechanism": {
103
- "en": "Chinese AI essays routinely bolt on a moralizing summary (`这或许就是……的意义所在`, `唯有……方能……`, `总而言之`) that flattens concrete endings.",
104
- "zh": "中文散文与评论结尾常被强行加上“这正是……的意义所在”“唯有……才能……”“愿我们……”等说教总结。"
105
- },
106
- "tags": ["ending", "moralizing", "essay", "zh", "升华", "说教结尾", "意义所在"],
107
- "falsePositiveGuards": [
108
- "Concrete physical scene endings without summary formulas never match."
109
- ],
110
- "modelTendencies": ["claude-family", "deepseek-family", "qwen-family"],
111
- "exemplar": {
112
- "bad": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。这或许就是慢工出细活在喧嚣时代真正的意义所在。",
113
- "trap": "傍晚六点半,三枚铜齿轮泡进煤油皿。这不是修表,而是与时间的对话。",
114
- "good": "傍晚六点半,修表匠把拆下的三枚铜齿轮泡进煤油皿里,关掉台灯。",
115
- "source": "original"
116
- }
117
- },
118
- {
119
- "id": "pat-en-essay-moralizing-ending",
120
- "ruleId": "en-essay-moralizing-ending",
121
- "packId": "literary-essay",
122
- "category": "language-template",
123
- "detectionAngle": "discourse-structure",
124
- "status": "active",
125
- "severityDefault": "warning",
126
- "languages": ["en"],
127
- "modalities": ["markdown", "text", "html", "docx"],
128
- "evidenceLevel": "editorial-consensus",
129
- "name": { "en": "English Wistful Moralizing Conclusion", "zh": "英文感伤说教结语" },
130
- "mechanism": {
131
- "en": "English narrative generations close with stock wistful takeaways (`Ultimately, this reminds us that...`, `And maybe, just maybe,`) instead of stopping on the concrete scene.",
132
- "zh": "英文非虚构或散文结尾高频出现 `Ultimately, this reminds us that...`、`And maybe, just maybe,` 等替读者总结情绪的套话。"
133
- },
134
- "tags": ["ending", "moralizing", "essay", "en", "wistful", "英文升华结尾"],
135
- "falsePositiveGuards": [
136
- "Anchored to sentence boundaries and multi-word moralizing frames."
137
- ],
138
- "modelTendencies": ["claude-family", "gpt-family"],
139
- "exemplar": {
140
- "bad": "At 6:15 a.m., the ferry deck smelled of wet rope and diesel. Ultimately, this reminds us that departures are always quieter than arrivals.",
141
- "trap": "Wet rope. Cold diesel. Quiet departures at 6:15 a.m.",
142
- "good": "At 6:15 a.m., the ferry deck smelled of wet rope and diesel.",
143
- "source": "original"
144
- }
145
- },
146
- {
147
- "id": "pat-narrative-sandwich-frame",
148
- "ruleId": "narrative-sandwich-frame",
149
- "packId": "business-brief",
150
- "category": "language-template",
151
- "detectionAngle": "discourse-structure",
152
- "status": "active",
153
- "severityDefault": "warning",
154
- "languages": ["en", "zh"],
155
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
156
- "evidenceLevel": "editorial-consensus",
157
- "name": { "en": "Era-Opener + Future-Outlook Sandwich Frame", "zh": "时代宏大开篇 + 未来展望夹心壳" },
158
- "mechanism": {
159
- "en": "LLM briefs wrap ordinary facts in a sweeping era opener (`In an era defined by...`, `在当今信息爆炸的时代`) paired with a future-outlook closer (`Moving forward...`, `展望未来……`).",
160
- "zh": "用宏大时代背景开篇再配一段“展望未来/必将迎来广阔空间”收尾,把具体内容包进模板夹心。"
161
- },
162
- "tags": ["sandwich-frame", "era-opener", "future-closer", "时代背景", "展望未来"],
163
- "falsePositiveGuards": ["Concrete date/project openings stay exempt."],
164
- "modelTendencies": ["gpt-family", "qwen-family"],
165
- "exemplar": {
166
- "bad": "在当今信息爆炸的时代,自动化审校已成为不可逆转的趋势。展望未来,它必将迎来更广阔的应用空间。",
167
- "trap": "审校变快。质量变稳。未来已来。",
168
- "good": "我们在 CI 里接入了离线文档检查,上周拦下了 6 处未填占位符和 2 个失效链接。",
169
- "source": "original"
170
- }
171
- },
172
- {
173
- "id": "pat-literary-narrative-frame",
174
- "ruleId": "literary-narrative-frame",
175
- "packId": "literary-essay",
176
- "category": "language-template",
177
- "detectionAngle": "discourse-structure",
178
- "status": "active",
179
- "severityDefault": "warning",
180
- "languages": ["en", "zh"],
181
- "modalities": ["markdown", "text", "html", "docx"],
182
- "evidenceLevel": "editorial-consensus",
183
- "name": { "en": "Literary Era-Backdrop & Takeaway Frame", "zh": "散文时代背景与鸡汤收尾壳" },
184
- "mechanism": {
185
- "en": "Personal essays framed with grand era generalizations and uplifting takeaways lose their concrete time and place.",
186
- "zh": "随笔戴上“在快节奏都市生活中……”的宏大帽子和鸡汤收尾,稀释了真实场景。"
187
- },
188
- "tags": ["essay", "era-opener", "takeaway", "随笔模板"],
189
- "falsePositiveGuards": ["Concrete time/place openings stay clean."],
190
- "modelTendencies": ["claude-family", "deepseek-family"],
191
- "exemplar": {
192
- "bad": "In an era defined by relentless notifications, a quiet morning routine offers calm. Moving forward, protecting stillness remains essential.",
193
- "trap": "Notifications beep. Coffee cools. Stillness stays.",
194
- "good": "Before seven the street stays quiet except for the milk truck reversing down the alley.",
195
- "source": "original"
196
- }
197
- },
198
- {
199
- "id": "pat-template-skeleton-echo",
200
- "ruleId": "template-skeleton-echo",
201
- "packId": "business-brief",
202
- "category": "language-template",
203
- "detectionAngle": "discourse-structure",
204
- "status": "active",
205
- "severityDefault": "warning",
206
- "languages": ["en", "zh"],
207
- "modalities": ["markdown", "text", "html", "docx"],
208
- "evidenceLevel": "empirical-corpus",
209
- "name": { "en": "Repeated Structural Skeleton Echo", "zh": "跨段结构骨架机械复用" },
210
- "mechanism": {
211
- "en": "Multi-section drafts stamp out identical rhetorical skeletons (`First... Second... Finally...` or repeated `一方面……另一方面……` / `不仅……而且……` shells) across consecutive blocks.",
212
- "zh": "连续段落或小节反复套用同一种逻辑骨架与过渡句壳,呈现流水线填空感。"
213
- },
214
- "tags": ["skeleton", "template", "discourse", "结构复用", "骨架模板"],
215
- "falsePositiveGuards": ["Short natural docs and varied section structures stay exempt."],
216
- "modelTendencies": ["gpt-family", "gemini-family", "qwen-family"],
217
- "exemplar": {
218
- "bad": "一方面,系统提升了吞吐;另一方面,系统降低了延迟。与此同时,系统优化了配置;此外,系统增强了监控。",
219
- "trap": "吞吐升。延迟降。监控全。",
220
- "good": "升级后网关峰值吞吐提高到 8,000 QPS,p99 延迟降到 42 ms,告警配置统一收进单个 YAML 文件。",
221
- "source": "original"
222
- }
223
- },
224
- {
225
- "id": "pat-discourse-marker-cluster",
226
- "ruleId": "discourse-marker-cluster",
227
- "packId": "pattern-bank",
228
- "category": "language-rhythm",
229
- "detectionAngle": "discourse-structure",
230
- "status": "active-bank",
231
- "severityDefault": "warning",
232
- "languages": ["en", "zh"],
233
- "modalities": ["markdown", "text", "html", "docx"],
234
- "evidenceLevel": "empirical-corpus",
235
- "name": { "en": "Mechanical Discourse Transition Cluster", "zh": "机械过渡路标簇" },
236
- "mechanism": {
237
- "en": "Stacking 3+ consecutive paragraphs or 3+ sentences in one paragraph with stock transition signposts (`首先/其次/此外/最后`, `Furthermore/Moreover/Additionally/Consequently`) reveals template outlining.",
238
- "zh": "连续 3 个自然段或单段内连续 3 句堆砌机械路标词(“首先/其次/此外/最后/综上所述”或 “Furthermore/Moreover/Additionally”),呈现明显大纲填空感。"
239
- },
240
- "tags": ["discourse", "transition", "signpost", "cluster", "首先其次", "此外", "furthermore", "moreover", "过渡词"],
241
- "falsePositiveGuards": [
242
- "Single or paired transitions (1–2 occurrences) stay exempt; skips headings, lists, and tables."
243
- ],
244
- "modelTendencies": ["gpt-family", "qwen-family", "general-llm"],
245
- "exemplar": {
246
- "bad": "首先,我们需要统一数据采集口径。\n\n其次,研发团队要补齐自动化测试脚本。\n\n最后,运营侧同步更新交付检查清单。",
247
- "trap": "口径统一。脚本补齐。清单更新。",
248
- "good": "上线前要完成三件事:先统一采集口径,再补齐自动化测试脚本,最后由运营更新检查清单。",
249
- "source": "original"
250
- }
251
- },
252
- {
253
- "id": "pat-composite-multi-signal",
254
- "ruleId": "composite-multi-signal",
255
- "packId": "pattern-bank",
256
- "category": "composite-signal",
257
- "detectionAngle": "composite-cooccurrence",
258
- "status": "active-bank",
259
- "severityDefault": "info",
260
- "languages": ["en", "zh"],
261
- "modalities": ["markdown", "text", "html", "docx"],
262
- "evidenceLevel": "empirical-corpus",
263
- "name": { "en": "Multi-Dimension Sub-Threshold Composite AI Cadence", "zh": "跨维度弱信号复合 AI 腔" },
264
- "mechanism": {
265
- "en": "Stealth AI drafts stay just below each individual single-rule threshold (e.g., 1 excess phrase + 1 mild concession frame + 2 discourse transitions + low concrete specificity), yet the cross-dimension co-occurrence is unmistakable.",
266
- "zh": "经过简单规避的 AI 稿件往往把每个单维度指标压到刚好不触发单条规则(如 1 处弱词 + 1 处温和让步 + 2 处过渡词 + 低具体度),但跨维度共现得分依然显著高于人写稿。"
267
- },
268
- "tags": ["composite", "stealth-slop", "multi-angle", "cooccurrence", "复合信号", "隐蔽AI味"],
269
- "falsePositiveGuards": [
270
- "Requires >= 2 distinct orthogonal weak dimensions firing inside the same low-specificity passage AND concrete fact density below threshold.",
271
- "High concrete-evidence density (numbers, timestamps, file paths, code blocks) strongly suppresses composite score."
272
- ],
273
- "modelTendencies": ["claude-family", "gpt-family", "gemini-family"],
274
- "exemplar": {
275
- "bad": "Notably, the redesign plays a crucial role in modern workflows. Furthermore, while migration involves certain hurdles, it ultimately delivers meaningful value across teams.",
276
- "trap": "Migration isn't a hurdle — it's modern workflow value.",
277
- "good": "Migrating from v1 to v2 took two days of schema backfills and cut nightly export time from 48 minutes to 11 minutes.",
278
- "source": "original"
279
- }
280
- },
281
- {
282
- "id": "pat-eng-pr-diff-parrot",
283
- "ruleId": "eng-pr-diff-parrot",
284
- "packId": "engineering-spec",
285
- "category": "language-template",
286
- "detectionAngle": "discourse-structure",
287
- "status": "active",
288
- "severityDefault": "warning",
289
- "languages": ["en", "zh"],
290
- "modalities": ["markdown", "text"],
291
- "evidenceLevel": "editorial-consensus",
292
- "name": { "en": "AI PR Diff-Parrot Summary", "zh": "空泛 AI 提交摘要壳" },
293
- "mechanism": {
294
- "en": "Generated PR summaries restate 'This PR updates X to ensure a seamless/maintainable experience' without naming the bug, ticket, or failure mode.",
295
- "zh": "代码提交说明只套用“本次 PR 旨在通过优化……提升可维护性”,不交代问题单、触发分支与验证结果。"
296
- },
297
- "tags": ["engineering", "pr", "commit", "summary", "研发文档", "PR摘要"],
298
- "falsePositiveGuards": ["Matches only explicit 'This PR/commit ... to ensure seamless/robust...' and Chinese equivalents lacking concrete bug context."],
299
- "modelTendencies": ["copilot-pr", "general-llm"],
300
- "exemplar": {
301
- "bad": "本次 PR 旨在通过重构连接池管理逻辑进一步提升系统的稳定性与可维护性。",
302
- "trap": "这不是一次普通的代码重构,而是连接池稳定性的底层重塑。",
303
- "good": "修复 Redis 重连分支未释放旧句柄导致的连接泄漏(#412),压测 2 小时常驻连接数稳定在 64 以内。",
304
- "source": "original"
305
- }
306
- },
307
- {
308
- "id": "pat-eng-shallow-root-cause",
309
- "ruleId": "eng-shallow-root-cause",
310
- "packId": "engineering-spec",
311
- "category": "evidence-rigor",
312
- "detectionAngle": "discourse-structure",
313
- "status": "active",
314
- "severityDefault": "warning",
315
- "languages": ["en", "zh"],
316
- "modalities": ["markdown", "text", "docx"],
317
- "evidenceLevel": "editorial-consensus",
318
- "name": { "en": "Stop-Thinking 'Human Error' Root Cause", "zh": "止步于“人为失误”的浅层归因" },
319
- "mechanism": {
320
- "en": "Incident postmortems stop at 'Root cause: human error / operator oversight' instead of naming the missing automated guardrail.",
321
- "zh": "故障复盘把根因简单写成“人为失误/操作不当”,掩盖了脚本缺失校验或发布缺少自动熔断的真问题。"
322
- },
323
- "tags": ["postmortem", "incident", "root-cause", "engineering", "故障复盘", "人为失误"],
324
- "falsePositiveGuards": ["Triggers only when 'Root cause / 根本原因:' ends immediately on a bare human-error label."],
325
- "modelTendencies": ["general-llm"],
326
- "exemplar": {
327
- "bad": "根本原因:人为失误。",
328
- "trap": "根本原因:值班人员风险意识有待进一步强化。",
329
- "good": "根本原因:生产迁移脚本缺少库名白名单与行数上限预检,未拦截误指向主库的删除语句。",
330
- "source": "original"
331
- }
332
- },
333
- {
334
- "id": "pat-eng-vague-action-item",
335
- "ruleId": "eng-vague-action-item",
336
- "packId": "engineering-spec",
337
- "category": "evidence-rigor",
338
- "detectionAngle": "discourse-structure",
339
- "status": "active",
340
- "severityDefault": "info",
341
- "languages": ["en", "zh"],
342
- "modalities": ["markdown", "text", "docx"],
343
- "evidenceLevel": "editorial-consensus",
344
- "name": { "en": "Unowned Wishful Action Item", "zh": "无指标无负责人的许愿式改进项" },
345
- "mechanism": {
346
- "en": "Action lists end with unverifiable wishes ('Add more monitoring', '加强监控与告警') with no service, threshold, owner, or date.",
347
- "zh": "复盘或方案待办只写“加强监控”“后续持续关注”,没有服务名、告警阈值、负责人与截止日期。"
348
- },
349
- "tags": ["postmortem", "todo", "action-item", "engineering", "改进项", "加强监控"],
350
- "falsePositiveGuards": ["Matches only standalone list items that end right after the vague verb phrase without metrics, @owners, or dates."],
351
- "modelTendencies": ["general-llm"],
352
- "exemplar": {
353
- "bad": "- [ ] 加强监控与告警。",
354
- "trap": "- [ ] 全面排查并持续跟进线上隐患。",
355
- "good": "- [ ] 给 `checkout-api` 增加 P99 > 400ms 持续 3 分钟告警并接入值班群(负责人:李工,11 月 30 日前完成)。",
356
- "source": "original"
357
- }
358
- },
359
- {
360
- "id": "pat-reg-unsubstantiated-superlative",
361
- "ruleId": "reg-unsubstantiated-superlative",
362
- "packId": "regulated-comms",
363
- "category": "evidence-rigor",
364
- "detectionAngle": "regex-invariant",
365
- "status": "active",
366
- "severityDefault": "warning",
367
- "languages": ["en", "zh"],
368
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
369
- "evidenceLevel": "objective-invariant",
370
- "name": { "en": "Unsubstantiated Absolute or Superlative Claim", "zh": "绝对化承诺与极限合规禁词" },
371
- "mechanism": {
372
- "en": "External copy promises '100% secure', 'zero-risk guarantee', or '绝对安全 / 全网第一', creating regulatory and contractual liability.",
373
- "zh": "对外材料出现“绝对安全”“零风险承诺”“全网第一”等无边界极限表述,易触发广告合规与合同履约风险。"
374
- },
375
- "tags": ["compliance", "legal", "superlative", "ad-law", "绝对安全", "零风险", "极限词"],
376
- "falsePositiveGuards": ["Targets explicit absolute guarantees ('100% secure', '永久零故障') while allowing scoped SLA percentages like '99.95% uptime'."],
377
- "modelTendencies": ["marketing-llm", "general-llm"],
378
- "exemplar": {
379
- "bad": "新备份方案提供绝对安全与永久零故障保障,客户迁移零风险承诺。",
380
- "trap": "新备份方案打造坚不可摧的行业标杆级防线。",
381
- "good": "新备份方案默认启用同城双活与每日离线快照,企业版合同承诺月度可用性 99.95%(RPO <= 15 分钟)。",
382
- "source": "original"
383
- }
384
- },
385
- {
386
- "id": "pat-reg-unanchored-multiplier",
387
- "ruleId": "reg-unanchored-multiplier",
388
- "packId": "regulated-comms",
389
- "category": "evidence-rigor",
390
- "detectionAngle": "discourse-structure",
391
- "status": "active",
392
- "severityDefault": "warning",
393
- "languages": ["en", "zh"],
394
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
395
- "evidenceLevel": "editorial-consensus",
396
- "name": { "en": "Floating Multiplier Claim Without Baseline", "zh": "无基线悬空倍数夸大" },
397
- "mechanism": {
398
- "en": "Claims like '10x faster' or '效率提升数倍' sound quantitative while hiding both the prior baseline and the workload size.",
399
- "zh": "写出“10x faster”“效率提升数倍”制造量化错觉,却不交代原耗时、现耗时与测试样本规模。"
400
- },
401
- "tags": ["metrics", "baseline", "multiplier", "10x", "效率提升数倍", "合规"],
402
- "falsePositiveGuards": ["Automatically exempts sentences that include a 'from X to Y' / '从 X 到 Y' baseline or >= 2 measured unit values."],
403
- "modelTendencies": ["marketing-llm", "general-llm"],
404
- "exemplar": {
405
- "bad": "接入新版批处理引擎后,报表导出效率提升数倍。",
406
- "trap": "接入新版批处理引擎后,报表导出迎来质的飞跃。",
407
- "good": "接入新版批处理引擎后,50 万行月度对账单导出耗时从 14 分钟缩短至 95 秒。",
408
- "source": "original"
409
- }
410
- },
411
- {
412
- "id": "pat-unsourced-statistic",
413
- "ruleId": "unsourced-statistic",
414
- "packId": "business-brief",
415
- "category": "evidence-rigor",
416
- "detectionAngle": "discourse-structure",
417
- "status": "active",
418
- "severityDefault": "warning",
419
- "languages": ["en", "zh"],
420
- "modalities": ["markdown", "text", "html", "docx", "pptx"],
421
- "evidenceLevel": "editorial-consensus",
422
- "name": { "en": "Unsourced Percentage Lift Claim", "zh": "无出处百分比成效宣称" },
423
- "mechanism": {
424
- "en": "Claims like 'boosts efficiency by up to 45%' or '提升 45%' fabricate quantitative authority without a baseline, sample count, or source citation.",
425
- "zh": "使用“效率提升 45%”“高达 80%”“up to 60%”等看似量化的比例宣称,但附近未附带实验样本、基线对照或出处引用。"
426
- },
427
- "tags": ["unsourced", "percentage", "metrics", "evidence", "无出处数字", "百分比"],
428
- "falsePositiveGuards": ["Exempts claims near from/to baselines (`from 12% to 4%`), `n=...` / benchmark terms, or citation links."],
429
- "modelTendencies": ["marketing-llm", "general-llm"],
430
- "exemplar": {
431
- "bad": "Switching to the automated workflow boosts team delivery efficiency by up to 45%.",
432
- "trap": "Workflows improve. Delivery speeds up.",
433
- "good": "Across 112 audit samples (`n=112`), median triage time dropped from 18 min to 10 min (measured on CI logs).",
434
- "source": "original"
435
- }
436
- }
437
- ]
438
- }