Commit graph

72 commits

Author SHA1 Message Date
wangzhuc
45c020727b feat: add content enhancement strategies and 2 new frameworks
- Add content-enhance.md with 4 strategies matched by framework type:
  angle discovery (hot-take/opinion), density boost (pain-point/list),
  detail anchoring (story/retro), real-feel injection (comparison)
- Add 2 new frameworks: pure-opinion (F) and retrospective (G), now 7 total
- Integrate Step 3.3 content enhancement into SKILL.md pipeline
- Remove parameter optimization loop (low ROI, deprioritized)
- Update README: reframe from anti-AI detection to content quality

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 16:20:17 +08:00
github-actions[bot]
f9722fb93b chore: rebuild dist/openclaw from source 2026-03-30 16:55:01 +00:00
wangzhuc
a92d453856 chore: bump VERSION to 1.3.3
Session summary (12 commits):
- SICO exemplar extraction system with seeds fallback
- Closing diversity (content-driven, not persona-fixed)
- Pipeline performance (Step 4.6 self-check, Step 5 tighter rewrites)
- Scoring calibration (bell-curve + over-optimization penalty)
- Word list expansion (neg 26→51, temp bands 29→76)
- 朱雀 A/B validation (exemplar injection: 100% AI → 59% AI)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 00:54:40 +08:00
wangzhuc
85efd10fa8 fix: sync README and SKILL.md after session changes
- README: remove hardcoded line count, add Step 4.6 快速自检 to workflow,
  update humanness_score description with calibration layer
- SKILL.md: fix closing_style → closing_tendency in diagnostic check,
  fix error handling table to match Step 5's 2-round limit

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 00:14:31 +08:00
wangzhuc
02f5e6d93b fix: calibrate humanness_score with bell-curve and over-optimization penalty
Problem: AI articles scored MORE human (avg 26.2) than actual human
articles (avg 44.0) — opposite of 朱雀's judgment. AI was gaming the
linear scoring by over-optimizing broken sentences, self-correction,
paragraph variance, etc.

Fix: Two calibration layers added after raw scoring:

1. Bell-curve scoring for 5 over-optimizable dimensions (broken_sentences,
   self_correction, sentence_length_range, paragraph_length_variance,
   banned_words). Score peaks at human article average, penalizes both
   too-low AND too-high values.

2. Over-optimization penalty: 15% global penalty when 60%+ of checks
   score above 0.8, indicating suspiciously "perfect" articles.

Results:
  Before: Human avg=44.0, AI avg=26.2 (WRONG direction)
  After:  Human avg=42.5, AI avg=44.0 (CORRECT direction)
  A/B test now agrees with 朱雀 (exemplar version scores better)

Baselines derived from 15 human articles tested on 2026-03-30.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-31 00:09:14 +08:00
wangzhuc
792aec4101 refine: optimize exemplar seeds with data-driven segment selection
Replace 5 seed segments sourced from weaker articles (score 47-57)
with segments from the highest-scoring articles (score 32-37):

- Opening: add 国内+日本留学 label-contrast opening (stddev 45.7)
- Opening: add 长期主义骗局 belief-then-shatter opening
- Emotional: add 国内+日本留学 温水煮青蛙 stagnation segment
- Closing: replace 人夫约会指南 (57.1) with 庞氏骗局 (36.7)
- Closing: replace 天才在左 (51.7) with 穷人没教育 (33.0)

All replacements maintain pattern diversity while upgrading to
segments from data-proven most-human articles.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:32:10 +08:00
wangzhuc
f7fe44c152 fix: expand negative markers and vocabulary temperature word lists
NEGATIVE_MARKERS: 26 → 51 words
  Added: despair (绝望/迷茫/心累), deception (骗/忽悠/割韭菜/套路),
  failure (白费/黄了/凉了), self-deprecation (傻/天真/自嗨),
  sarcasm (呵呵/行吧/真服了), complaint (受够了/苦哈哈)

COLD_WORDS: 7 → 25 (技术栈/标准化/护城河/飞轮/底层逻辑/PMF/ROI...)
WARM_WORDS: 7 → 15 (老实说/这么说吧/你想啊/有意思的是...)
HOT_WORDS: 8 → 19 (凡尔赛/标题党/躺平/摆烂/破防/上头/内耗...)
WILD_WORDS: 7 → 17 (苦哈哈/傻乎乎/交学费/踩坑/翻车...)

Impact on 15 exemplar articles:
  neg score avg: 0.15 → 0.27 (+80%)
  temp_mix: still low on short segments, but full articles now
  score 0.33-1.00 vs previously 0.00

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:23:51 +08:00
wangzhuc
d9b87f806f perf: reduce pipeline latency with pre-check and tighter rewrite loops
- Step 4.6: add quick self-check after writing (banned words, sentence
  variance, negative emotion) to fix obvious issues before Step 5
- Step 5.2: tighten rewrite scope to specific sentences only, max 3
  fixes per round, reduce max rounds from 3 to 2
- Step 5.3: reduce scoring rewrite from 3 rounds to 2, mark
  DONE_WITH_CONCERNS instead of infinite loops when score stays >50

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:14:24 +08:00
wangzhuc
79edadd72e fix: make closing style content-driven instead of persona-fixed
- Rename closing_style → closing_tendency in all 5 personas, making it
  a soft preference rather than a hard constraint
- Add closing variation rule + 6 closing patterns table to writing-guide.md
- Step 4.5: LLM judges best closing from content; checks history.yaml
  last 3 articles to avoid repeating the same closing_type
- Step 8.1: record closing_type in history.yaml for dedup

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:07:09 +08:00
wangzhuc
15a5adbd48 chore: update README with exemplar system docs, bump VERSION to 1.3.2
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:59:14 +08:00
wangzhuc
7a4f345bb1 fix: align exemplar injection across user/seed paths, clarify priority
- Add transition segment to user exemplar injection (was 3 segments,
  now 4 to match seeds path)
- Clarify priority chain: playbook > persona > exemplar > writing-guide
- Add exemplar fallback row to error handling table

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:57:19 +08:00
wangzhuc
d2b87c489c feat: add universal exemplar seeds for users without articles
Seeds demonstrate anti-AI structural patterns (sentence variance, real
negative emotion, self-correction, abrupt closings) without imposing a
specific writing style. Step 4.4 falls back to seeds when the user's
exemplar library is empty.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:53:37 +08:00
wangzhuc
fbe2709bb5 feat: add exemplar library check to Step 1 environment scan
Prompts users to import articles when exemplar library is empty,
without blocking the pipeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:49:57 +08:00
wangzhuc
83c963527c fix: use filename as fallback source when article has no H1 title
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:42:23 +08:00
wangzhuc
885cae8e7d feat: add SICO-style exemplar extraction system for few-shot writing
- New script: scripts/extract_exemplar.py
  Extracts style fingerprints from human-written articles (opening hook,
  emotional peak, transition/self-correction, closing) with statistical
  analysis (sentence stddev, vocab temperature, negative ratio, paragraph CV).
  Auto-detects category, supports batch import.

- SKILL.md: Add Step 4.4 exemplar injection
  Loads matching exemplars by category before writing, injects segments
  as few-shot style examples in the prompt.

- learn_edits.py: Auto-grow exemplar library
  After user edits, auto-extracts the final version into the exemplar
  library if humanness_score <= 50.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 22:32:02 +08:00
wangzhuc
e54137ce3e chore: bump VERSION to 1.3.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:53:33 +08:00
wangzhuc
4c09df31b3 chore: gitignore CLAUDE.md, remove from tracking
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:51:25 +08:00
wangzhuc
f38cfb3dfd docs: update CLAUDE.md with anti-AI system, self-learning flywheel, new commands
Add: anti-AI detection 3-tier architecture, self-learning flywheel
(scoring feedback + edit learning + param optimization), diagnose
and scoring commands, X.Y numbering convention, VERSION tracking.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:49:41 +08:00
github-actions[bot]
a49dc98273 chore: rebuild dist/openclaw from source 2026-03-30 12:30:08 +00:00
wangzhuc
65cba3ccf1 refactor: clean up SKILL.md numbering, add TaskCreate progress tracking
- Renumber all sub-steps to consistent X.Y format (1a-2→1.2, 4a-0→4.1, 5b-2→5.3)
- Add TaskCreate directive: create 8 tasks at pipeline start, update status per step
- Clean up internal references (Step 3b→3.2, Step 4b→4.3, etc.)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:29:57 +08:00
github-actions[bot]
023bf26af9 chore: rebuild dist/openclaw from source 2026-03-30 12:25:57 +00:00
wangzhuc
3443ef371f fix: update stale references in SKILL.md (7层 → 3层)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:25:48 +08:00
github-actions[bot]
333e7c46b1 chore: rebuild dist/openclaw from source 2026-03-30 12:23:43 +00:00
wangzhuc
344f7509f1 feat: structured edit learning with typed patterns and confidence scoring
learn_edits.py: patterns now have type/key/description/rule fields,
confidence auto-computed from occurrences + recency with 30-day decay.
--summarize --json outputs aggregated patterns sorted by confidence.

learn-edits.md: playbook.md format changed from free text to structured
YAML rules with confidence levels. Rules with confidence ≥ 5 become
hard constraints in Step 4, < 5 are soft references, < 2 get pruned.

SKILL.md Step 4: playbook priority now confidence-gated.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:23:34 +08:00
github-actions[bot]
2d3d8e5f54 chore: rebuild dist/openclaw from source 2026-03-30 12:20:09 +00:00
wangzhuc
a98a99e773 feat: close the scoring feedback loop in pipeline
Step 8a: write composite_score + writing_config_snapshot to history.yaml,
recording which parameters produced which anti-AI score.

Step 4a-0: before writing, read history for the best-scoring article's
parameter combination and use it as reference for the current article.

This closes the feedback loop: write → score → record → learn → write better.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:19:57 +08:00
wangzhuc
70bfca61b0 docs: sync README with restructured writing-guide and new features
Update references from "7层去AI" to "3层反检测", "9项自检" to "14项",
add diagnose.py to directory tree, add "优化参数" to quick start.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 20:11:01 +08:00
github-actions[bot]
ed73813d03 chore: rebuild dist/openclaw from source 2026-03-30 11:59:47 +00:00
wangzhuc
bd85fc5c6b chore: bump VERSION to 1.3.0
Scoring rewrite (11 checks, continuous scores, param mapping) +
agent-driven optimization replacing optimize_loop.py.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:58:40 +08:00
wangzhuc
5fb20083af refactor: remove optimize_loop.py, replace with agent-driven optimization
optimize_loop.py was framework-only (needed external LLM API). The
optimization is now an auxiliary function in SKILL.md driven by the
already-running agent. All references updated across README, CLAUDE.md,
diagnose.py, and writing-config.example.yaml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:58:20 +08:00
wangzhuc
c7d618a0d1 feat: add optimization auxiliary function to SKILL.md, integrate scoring into Step 5
- New auxiliary: "优化写作参数" triggers agent-driven optimization loop
  (write test article → score → adjust lowest params → repeat N rounds)
- Step 5b-2: call humanness_score.py --json --tier3 after manual checklist
- Composite thresholds: <30 pass, 30-50 targeted fix, >50 major rewrite
- Step 8c: add optimization trigger to post-publishing actions table

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:55:44 +08:00
wangzhuc
df72e51ea1 feat: rewrite humanness_score.py with continuous scoring and param mapping
- 11 checks across 2 tiers (6 statistical + 5 pattern), up from 6
- Continuous 0-1 scores instead of pass/fail booleans
- Each check maps to a writing-config parameter via param field
- New checks: negative emotion ratio, adverb density, vocabulary richness,
  sentence length range, self-correction patterns
- New --tier3 flag for agent to pass LLM structural analysis score
- param_scores in JSON output: flat param→score map for optimization
- Standalone mode redistributes weights (T1=62.5%, T2=37.5%)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:54:11 +08:00
wangzhuc
b9ead663ac chore: bump VERSION to 1.2.1
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 19:01:17 +08:00
github-actions[bot]
7a41f6fcc0 chore: rebuild dist/openclaw from source 2026-03-30 10:48:54 +00:00
wangzhuc
4fbbd185ca refactor: restructure writing-guide from action-based to detection-signal-based
Reorganize anti-AI rules into 3 tiers mapped to detector signals:
- Tier 1 (Statistical): sentence variance, vocab temperature, paragraph
  rhythm, emotion polarity, adverb density, style drift
- Tier 2 (Linguistic): banned words, broken sentences, unexpected words,
  coherence breaking
- Tier 3 (Content): real data anchoring, specificity, density waves,
  dimension randomization

New rules added: emotion polarity distribution (1.4), adverb density
control (1.5), inter-paragraph style drift (1.6), unexpected word
usage (2.3). Each rule now references the detection signal it counters.

writing-config.example.yaml updated with corresponding new parameters.
SKILL.md Step 5 checklist aligned to new structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 18:48:44 +08:00
github-actions[bot]
4ba26b2f0f chore: rebuild dist/openclaw from source 2026-03-30 07:20:55 +00:00
wangzhuc
f1e9c084d9 feat: add version tracking and update mechanism
- Add VERSION file (1.2.0)
- SKILL.md Step 1: auto-check for updates on each run
- SKILL.md: add "更新" auxiliary function (git pull)
- README: install via git clone instead of cp/ln
- build_openclaw.py: include VERSION in dist

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 15:20:44 +08:00
github-actions[bot]
1e4a74f930 chore: rebuild dist/openclaw from source 2026-03-30 07:02:06 +00:00
wangzhuc
350fec3c49 chore: add workflow_dispatch trigger to build-openclaw CI
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 15:01:48 +08:00
wangzhuc
639a6e78bb fix: grant write permission to build-openclaw CI workflow
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 15:00:26 +08:00
wangzhuc
b7d91523cc chore: gitignore docs/, remove internal dev docs from tracking
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:56:37 +08:00
wangzhuc
c7701a8733 docs: add diagnose command to README 2026-03-30 14:46:59 +08:00
wangzhuc
219941f08f feat: add diagnose auxiliary function to SKILL.md 2026-03-30 14:45:24 +08:00
wangzhuc
5fcceb7c72 feat: add anti-AI diagnostic command (scripts/diagnose.py)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-30 14:43:55 +08:00
wangzhuc
b0df62f3bc docs: add anti-AI diagnostic implementation plan
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:36:01 +08:00
wangzhuc
ea6b9924f8 docs: add anti-AI diagnostic command design spec
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 14:32:33 +08:00
wangzhuc
ca502cf6d3 fix: build_openclaw 排除 __pycache__,清理 dist 运行时残留
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:35:29 +08:00
wangzhuc
4c842c4a08 README 更新:OpenClaw 安装方式 + 目录结构补充 build_openclaw
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:07:48 +08:00
wangzhuc
e1a0d6ef47 新增 OpenClaw 兼容:build 脚本 + CI + 首次产物
- scripts/build_openclaw.py:SKILL.md 转换({skill_dir}→{baseDir}、WebSearch→web_search、移除 allowed-tools)
- .github/workflows/build-openclaw.yml:push to main 时自动构建 dist/openclaw/
- dist/openclaw/:首次构建产物入库,OpenClaw 用户可直接使用

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 13:00:07 +08:00
wangzhuc
7c2dc4adc9 README 更新:新增小绿书、预检、image-post 命令
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 01:36:10 +08:00