Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
79d0030
Keep examples to their source facts and leave clean sentences alone
claude Sep 28, 2026
2b0379c
Limit the colon check to mechanical dash swaps
claude Sep 28, 2026
02fe80d
Merge pull request #1 from DeputyFifeofMayberry/claude/determined-mcc…
DeputyFifeofMayberry Sep 28, 2026
99efb20
Add eval harness: rhythm metrics, corpus, protocol, investigation bas…
DeputyFifeofMayberry Oct 10, 2026
1be92d8
v3.3.0: rhythm check pass against the tells a rewrite grows
DeputyFifeofMayberry Oct 10, 2026
3cea335
v3.4.0: voice profiles, reusable writing samples
DeputyFifeofMayberry Oct 10, 2026
756c65d
evals: blinded pair pipeline + first smoke judging run
DeputyFifeofMayberry Oct 10, 2026
3a7bee1
profiles: prior-art survey (16 examples) + adopted lessons
DeputyFifeofMayberry Oct 10, 2026
c06559d
evals: human blind judging picks v3.1.0 3/0 over v3.3.0; correct emai…
DeputyFifeofMayberry Oct 11, 2026
c841263
changelog: document eval pipeline, profile prior-art, and human judgi…
DeputyFifeofMayberry Oct 11, 2026
79f8c30
evals: complete six-register rewrite sets (marketing, review, technic…
DeputyFifeofMayberry Oct 11, 2026
7a86c08
evals: six-register human judging, v3.1.0 6/0 (9/0 cumulative) over v…
DeputyFifeofMayberry Oct 11, 2026
fab1930
v3.5.0: gate the rhythm check off (human gate preferred v3.1.0 9/0)
DeputyFifeofMayberry Oct 11, 2026
aad3a65
evals: human-prose sweep of rhythm metrics over 24 verified-human tex…
DeputyFifeofMayberry Oct 11, 2026
e93df97
prior-art: add avoid-ai-writing (17th example) and its independent ev…
DeputyFifeofMayberry Oct 11, 2026
d12660f
v3.6.0: rewrite-side injection bans, no-op rule, machine artifacts in…
DeputyFifeofMayberry Oct 11, 2026
2745db5
evals: external detector cross-check baseline; add validate CI workflow
DeputyFifeofMayberry Oct 11, 2026
5e6023a
add .gitignore (python caches, OS cruft)
DeputyFifeofMayberry Oct 11, 2026
96a35a8
cross-check follow-up: optimize swept over human corpus, rejected (te…
DeputyFifeofMayberry Oct 11, 2026
25396eb
evals: OANC 11.5M-word FP sweep (revised gate floors), JFLEG restrain…
DeputyFifeofMayberry Oct 11, 2026
d4c3660
evals: run 3 gate - v3.6.0 splits 3-3 with v3.1.0, wins all prior-def…
DeputyFifeofMayberry Oct 11, 2026
9b70248
evals: corpus2 (36 AI drafts), MASC human baseline, profile fixture w…
DeputyFifeofMayberry Oct 11, 2026
ee0c1c1
corpus2 wave 2: 18 cliche-register drafts; word ratios now measure de…
DeputyFifeofMayberry Oct 11, 2026
ff49859
fix audit phase 1: pairs key records actual shuffle, profile checker …
DeputyFifeofMayberry Oct 11, 2026
c4f08b5
fix audit phase 2: unified watch-word matcher, comprehensive measured…
DeputyFifeofMayberry Oct 11, 2026
27a59b3
fix audit phase 3: correct tallies and records to reconstructed keys …
DeputyFifeofMayberry Oct 11, 2026
edf53e7
v3.6.1: SKILL.md consistency (supported reactions only, artifact-clea…
DeputyFifeofMayberry Oct 11, 2026
7eed31e
CI: pin actions to SHAs, add read-only permissions, restore skill dis…
DeputyFifeofMayberry Oct 11, 2026
38cb572
fix audit round 2: correct tally arithmetic (runs 1-2 7-2, run 3 5-1 …
DeputyFifeofMayberry Oct 11, 2026
022670c
Merge branch 'blader:main' into main
DeputyFifeofMayberry Oct 18, 2026
c80a173
Merge branch 'blader:main' into main
DeputyFifeofMayberry Nov 2, 2026
bac56bc
Merge branch 'main' into merge-v4.0.0
DeputyFifeofMayberry Nov 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 19 additions & 17 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,31 @@
name: Check package
name: validate

on:
pull_request:
push:
branches: [main]
on: [push, pull_request]

permissions:
contents: read

jobs:
check:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 22
# actions pinned to commit SHAs (tags are mutable)
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
- name: Check package files
run: python3 scripts/validate-package.py
- name: Check skill discovery
run: npx --yes skills@1.5.20 add . --list
- name: Check Claude marketplace
- name: Package checks (version sync across manifests, pattern numbering, word budget)
run: python scripts/validate-package.py
- name: Rhythm metrics self-check
run: python evals/test_rhythm_metrics.py
- name: Eval tooling self-tests
run: |
npm install --global @anthropic-ai/claude-code@2.1.237
claude plugin validate .
python evals/make_pairs.py --selftest
python evals/check_profile.py --selftest
python evals/jfleg_restraint.py --selftest
- name: Frozen run-3 manifest verification
run: python evals/freeze_run.py --verify evals/results/manifests/run3.json
- name: Skill discovery (agentskills CLI)
run: npx --yes skills add . --list
# `claude plugin validate .` needs the Claude CLI and runs as a local
# pre-release check, not in CI — see CONTRIBUTING notes in AGENTS.md.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
__pycache__/
*.pyc
.DS_Store
Thumbs.db
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,44 @@
- Added a pi package manifest, so `pi install git:github.com/blader/humanizer` installs the skill (#315).
- Removed the `$schema` key from the Claude plugin manifest, which caused a sync warning (#307).

## 3.6.1

- Corrected the blind-test keys: `evals/make_pairs.py` had recorded every key as {"A": old, "B": new} regardless of the shuffle, so the committed keys for all three judged runs were wrong whenever a pair was shuffled. The true mappings were reconstructed from the archived pair texts (`evals/reconstruct_keys.py`, `evals/results/key-reconstruction.json`). Corrected outcomes: runs 1–2 (v3.1.0 vs v3.3.0) were **7–2 for v3.1.0**, not 9–0; run 3 (v3.1.0 vs v3.6.0) was **5–1 for v3.1.0**, not 3–3. The direction of every release decision is unchanged — the gate still preferred the pre-rhythm-check version, and v3.6.0's changes still did not beat the baseline — but the magnitudes in earlier entries were wrong.
- Gate disposition for v3.6.0: with the corrected keys, v3.6.0's behavior changes lost the run-3 gate 5–1. The changes remain in the skill as candidate improvements, but they are gate-pending: a clean re-judge (fixed keys, frozen run artifacts, judge not previously exposed to tallies) decides whether they stay. The related claims "v3.6.0 wins all prior-defying comparisons" and the 9/0 figure are withdrawn.
- Consistency fixes in `SKILL.md` from the audit: reactions and opinions are allowed only when the source or user supports them (creative writing the user requests stays exempt); §22 now states precedence for artifact cleanup — file-mode link targets stay untouched, citation markup converts to plain attribution or is flagged, and cleanup never erases an attribution it cannot resolve. `references/profiles/README.md` no longer contradicts itself: verbatim exemplars are authorized by the writer, and the rule is that their facts never travel into rewrites of other text.
- JFLEG restraint medians corrected (even-sample median): humans 14.3%, v3.1.0 47.7%, v3.3.0 73.1% — see `evals/results/jfleg-restraint.md`.
- Watch-word study corrected (shared matcher, every candidate measured in both baselines): "comprehensive" was measured, not absent — 5.2/100k in human prose, 12× ratio — and is demoted from discovery to §12 candidate. Tapestry-tier ratios revised from 291× to 178×. See `evals/results/word-ratios.md`.
- Second audit pass. The corrected tallies themselves mis-stated the arithmetic: runs 1–2 sum to **7–2** (2–1 plus 5–1), and run 3's technical pair (A=v3.1.0, pick A) is a fifth v3.1.0 win, so run 3 was **5–1**, with email v3.6.0's only win. Eval tooling hardened: `check_profile.py` now compares complete numeric tokens on both sides ("23.5" no longer passes for "23", "$400,000.50" for "$400,000", and a moved sentence period no longer fails) and tokenizes rewrites and exemplars identically, so verbatim hyphenated copies are caught; `rhythm_metrics.py` fence stripping tracks the opening delimiter, so four-backtick blocks containing triple backticks no longer leak code into prose metrics; `freeze_run.py` hashes LF-normalized content (checkout line endings no longer cause false drift), rejects missing inputs and empty manifests, and `run3.json` now freezes source corpus, rewrites, pairs, keys, judgments, and metrics together, verified in CI; `make_pairs.py` writes each run to its own `evals/blind/<name>/` directory and refuses to overwrite one, and its self-test forces both shuffle outcomes; the profile-fixture command now carries the `--claims` its report describes. Step 2 now reads "unsupported factual claims are never allowed" — the earlier wording also banned the supported claims step 2 says to keep.

## 3.6.0

- Added "What the rewrite must never add" after the workflow steps: the rewrite-side failure mode where the editor strips machine tells and installs a stock "human" voice instead. Bans inserting a speaker perspective the source does not record, manufactured stakes, a foil the source never argues with, performed candor, dramatic dashes and manufactured fragments, and any specific the source does not supply. Adapted from conorbronsdon/avoid-ai-writing's editing contract (which credits an independent stress test of `blader/humanizer` and isatimur/de-slop); the human gate's preference for the pre-rhythm-check versions (corrected to 7–2 in 3.6.1) independently supports it — the performed looseness the gate rejected is this failure mode seen from the reader's side.
- Step 1 gained a paragraph-order test: if two body paragraphs could swap without breaking the piece, the order is decorative. "What to return" gained the no-op rule: text with no justified tells comes back unchanged. §22 now covers shipped machine artifacts (unfilled placeholders, chatbot citation markup, AI tracking parameters). §12 notes that delve, tapestry, and garner are near-machine-only markers while the rest of the list weighs as wordiness fixes, not authorship evidence. No change to the 26 patterns.
- Evals: added the external detector cross-check (`avoid-ai-writing-detector`) over the corpus and all twelve rewrites — raw drafts score 3–18, rewrites 0–5 once the header-line artifact is discounted, with one Tier-1 word ("optimize") their list catches and ours does not, flagged as a §12 candidate pending the false-positive sweep. Cross-check only; its authors' own paragraph-level ROC-AUC of 0.501 keeps it out of the gate role.
- CI: added a `validate` workflow running the package validator and the metrics self-check on every push. It does not gate prose — report-only stands.

## 3.5.0

- Removed the rhythm check pass added in 3.3.0. Blind judging by a human over all six eval registers preferred the pre-rhythm-check v3.1.0 rewrites in most pairs across two runs — reconstructed as 7–2 after the key bug fix recorded in 3.6.1, originally recorded as 9/0 (see `evals/blind/JUDGMENTS-human.md`, `JUDGMENTS-human-2.md`): the unevenness and performed looseness the check adds is what the gate reader discounts, and the repo's rule is that a change ships only when it beats the previous version here. The mechanical metrics, `references/rhythm.md` inventory, and eval protocol stay — uniformity remains worth measuring; the skill just no longer varies shape on its own. Step 4's "vary sentence length where the content calls for it, not by formula" guard is unchanged. No change to the 26 patterns.
- Evals: added a blinded pair pipeline (`evals/make_pairs.py`, hidden key in `evals/blind/key.json`) and ran a smoke judging pass. The smoke run was self-judged — the same model wrote the rewrites and picked the winner, knowing the key — so it validates the plumbing, not the skill.
- Voice profiles: surveyed 16 prior-art voice/style systems in `references/profiles/PRIOR-ART.md` and folded the adopted lessons into `references/profiles/README.md`: a sample pasted into the request outranks a saved profile, measured bands belong in the profile format, exemplars stay verbatim, only prose the writer owns or published gets profiled, and a grown corpus means rebuilding the profile, not appending.

## 3.4.0

- Voice profiles: writing samples can now be saved under `references/profiles/` and reused across rewrites instead of pasted per request. A profile counts as a writing sample at the same strength, with two limits that always hold: style carries over, facts do not, and the profile never outranks the no-fabrication rule. Building and maintenance rules in `references/profiles/README.md`; corrections the user makes to a rewrite update the profile in the same session. Includes an illustrative example profile. No change to the 26 patterns.

## 3.3.0

- Added a rhythm check between draft and final version. Blind judging of the rewrite pass found the tells it removes go to zero while the ones it does not touch grow: uniform beat rate 60 → 101 citations, aphoristic closers 38 → 61, contraction uniformity 21 → 43. A subtractive rewrite leaves prose more uniformly well-shaped, and uniform good shape is itself a tell.
- The check covers paragraph beat rate, section endings that tighten into quotable lines, contraction rate flattened in either direction, and paragraph openings repeating the same move. It varies shape only where the content allows it, never for its own sake.
- Added `references/rhythm.md` with the full rhythmic-tell inventory, the measured evidence, and the constructions that must not be encoded (performed hedging 0.89, self-answered question 0.00, typography 0.61 — all misfire on human prose). Added `evals/` with mechanical rhythm metrics, a six-register corpus, and the blind pairwise protocol. No change to the 26 patterns.

## 3.2.0

- Rewrote the "After" examples that added facts missing from their "Before" (§2, §3, §4, §6, §12, §18, §19, §20, §25, §26), so every example follows the no-invention rule. §26 also no longer ends with chatbot residue.
- Step 4 now rewrites only the sentences that carry a tell and leaves the rest as the writer wrote them. "When not to act" moved ahead of the patterns.
- Step 3 now checks for tells the rewrite added: colons swapped in for dashes by rule and sentence length varied by formula. §8 prefers a period or comma over a colon. No change to the 26 patterns.

## 3.1.0

- Added pattern #26 and section F for replies that re-explain context the reader already has (#269). It acts on replies, not standalone writing. 26 patterns total.
Expand Down
81 changes: 81 additions & 0 deletions INVESTIGATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Investigation: baseline evidence for humanizer_fife improvements

Compiled 2026-10-10. Sources: upstream repo + issue #229, itsryanlenk/humanist (eval
studies, full docs in `Y:\_refs\humanist`), jooray/humanizer fork (54 patterns),
Matt-Payne/content-humanizer fork (progressive disclosure architecture).

## Fork starting point

- `DeputyFifeofMayberry/humanizer` = upstream `blader/humanizer` v3.1.0 + 2 local
commits (merged as PR #1), released as **v3.2.0**. Package validates.
- Local commits already implement part of improvement #4 (selective editing):
"Rewrite the sentences that carry a tell. Leave the rest as the writer wrote
them", the colon-swap check, and "vary sentence length where the content calls
for it, not by formula."

## The measured baseline (issue #229 / humanist studies, ~750 blind judgments)

| contrast | result |
| --- | --- |
| raw AI vs upstream rewrite pass, quality-only blind pairwise | 16/16 preferred rewrite (p≈3.1e-5) |
| raw AI vs rewrite + checker | 22/22 |
| rewrite vs rewrite + checker | 12/21 = chance (checker added nothing) |
| processed machine prose vs genuine human prose, quality | 18/18 machine wins |
| same human prose, authorship detection | 143/143 called human |

Tell-citation counts before → after the rewrite pass (judges, blind):

| tell class | raw | rewritten | encoded by skill? |
| --- | --- | --- | --- |
| AI vocabulary | 70 | 0 (1 mid-pass) | yes |
| typography | 114 | 68 | yes |
| negative parallelism | 80 | 58 | yes |
| **uniform beat rate** | 60 | 95 | **no — grows** |
| **aphoristic closer** | 38 | 59 | **no — grows** |
| **contraction uniformity** | 21 | 36 | **no — grows** |

Core finding: *"The pipeline crushes every tell it encodes and grows the ones it
does not."* Ten named tells have no rule at all; all rhythmic/structural.

Vetted safe-to-encode (discrimination ratio ≥ 3): announced thesis (64.6),
tricolon/triads (35.8), uniform beat rate (13.9), aphoristic closer (10.3),
too-complete-no-friction (11.2). **Do not encode:** performed hedging (0.89),
self-answered question (0.00), typography-as-tell (0.61).

Caveats that travel with every number: single model family as judges; quality
study ran 77/144 planned trials; human control matched on register/length, not
subject; detection arm at ceiling.

## Feature baselines (adopt / adapt / reject)

| Planned feature | Existing baseline | Evidence | Disposition |
| --- | --- | --- | --- |
| 1. Voice profiles | humanist `--calibrate` (measured voice bands from published writing, per register); Matt-Payne `references/examples.md` (static exemplar bank); upstream voice-sample section (per-request only) | prototype-level, no eval | **adapt**: persistent per-context profiles, lazy-loaded |
| 2. Rhythm pass | humanist "rhythm tells" read-aloud inventory (10 tells, ratios); jooray #41 structural uniformity + paragraph reshuffle test; user's v3.2.0 formula-variation guard | strongest data (60→101, 38→61, 21→43) | **build first** |
| 3. Audience awareness | upstream §26 wrong-reader (reply-scoped); Matt-Payne marketing/reference routing | plausible, unproven | **adapt** routing shape, add reader/purpose/expected-action |
| 4. Selective editing | user's v3.2.0 commits; humanist registers/`--lenient` + rule demotion against false-positive corpus (24 human docs, 0.07 FAIL/1k words) | proven direction | **finish**: preserve-list + intensities |
| 5. Eval system | humanist `docs/evals/` (4 study designs, corpora, tally scripts, `fp_guard.py` CI gate) | proven, reproducible | **adapt, don't rebuild** |

## Corrections to the original improvement plan

1. **Eval harness is not priority #5 — it is #0.** "Measured improvements" is
unknowable without it. Humanist's protocols are the starting point.
2. **Licensing:** the pattern catalog is CC BY-SA 4.0 (27.5% verbatim Wikipedia
text per humanist's attribution audit), not just MIT. Keep attribution; new
original content is MIT. Do not absorb humanist code into the skill — reference
or eval-harness use only.
3. **Prompt budget is a hard constraint.** Upstream reads SKILL.md on every use;
jooray hit the 800-line wall. New material goes in `references/` loaded on
demand (Matt-Payne architecture), not into SKILL.md.
4. Do not encode performed hedging, self-answered questions, or typography rules
as rhythm tells — measured to misfire on human prose (ratios < 1).

## What ships when (evidence order)

| # | Deliverable | Gate |
| --- | --- | --- |
| 0 | eval harness (this directory) | reproducible metric + judging protocol |
| 1 | rhythm pass in SKILL.md/references | blind preference ≥ upstream; beat-rate/aphoristic citations fall, not rise |
| 2 | voice profiles (`references/profiles/`) | voice-similarity preference vs no-profile baseline |
| 3 | audience pass | preference on reply/email corpus slice |
| 4 | selective-editing intensities | false-positive rate on human prose stays ~0; preference holds |
Loading
Loading