Repository navigation
Upgrading: nothing migrates. run-audit.py now fails an unfinished run whose Phase 6.5 saved no review sheet or pattern-hits file; a finalized run without them reads N/A (see UPGRADE-GUIDE.md).
The run audit checks the humanizer's review sheet and pattern-hits file
- In the humanizer before/after, one of three trimmed samples saved the article and report but skipped
phase-6.5-review-sheet.htmlandphase-6.5-pattern-hits.json, and nothing noticed.scripts/run-audit.pynow checks both once Phase 6.5 is complete: the sheet must exist, and the pattern-hits file must be a flat{pattern id: count}object. An unfinished run without them fails, with the remedy (a missing sheet needs no re-run:build_review_sheet.pybuilds it from the saved article). A finalized run without them reads N/A, because a finalized run is history.agents/06.5-humanizer.mdmarks both files required and saves them before the report, and the orchestrator's Gate 6.5 names them.docs/QUALITY-CONTRACT.mdlists both checks, and its guard test reads them.tests/test_run_audit.pyadds 3 plants; they fail on the old script. - The humanizer eval scores a non-critical
companions_savedcheck per sample, so the decision rule is unchanged. It also gains a criticaldraft_rewrittencheck: every keep-check passes on the untouched draft, so a humanizer that changed nothing would have passed. A sample now fails when more than 70% of the draft's sentences come through word for word (the real samples kept 19 to 33%). Re-scored, both arms still pass 3 of 3, the trimmed arm shows its one skipped pair of files, and the decision is still to keep the trim.
The humanizer's keyword and structure check can run in code
scripts/text-metrics.py --file <phase-6.5 draft> --keyword "<primary keyword>" --compare-to <phase-6 draft>adds apreservationblock: what the later draft lost against the earlier one. It checks the primary keyword's count (within ±2, the humanizer's own tolerance), each keyword placement (title, first 100 words, H2s carrying the keyword, conclusion), and the count of question headers, numbered lists and tables, and names each loss inpreservation.lost. Phase 6's SEO scorecard and meta tags, which follow the article in the same file, are cut before counting, so their tables and keyword mentions are not taken for article content. Bullet lists, definition sentences and the readability grade are reported, not judged: the definition count is a heuristic that also fires on stock openers a humanizer should rewrite, so the manifest's named definition snippets stay the humanizer's to keep. Exit codes are unchanged: 0 when measured, 1 when a file cannot be read.
A before/after check for the humanizer's instructions
evals/humanizer/runs only the Phase 6.5 humanizer on one fixed, deliberately machine-sounding draft, several times per version of its instructions, and scores each output the same way: nothing lost (--compare-toabove), no figure the draft and brand facts do not hold, every source link kept, length within 20%, the brand's avoid-words gone, and ContentForge's own AI-tell scan below HIGH.score_humanizer.py --compareapplies a rule fixed before any run: a changed version is kept only if it passes the critical checks at least as often and its AI-tell signals are no worse. Running it is paid and needs--yes-spend(2 USD cap per sample); scoring is free.tests/test_humanizer_eval.pyplants a fault for each check and tests the runner with a stand-in session.
The humanizer's instructions push less hard (kept only if the before/after above shows no loss)
- Step 6 now runs
text-metrics.py --compare-toinstead of asking the humanizer to recount keywords and structure by hand, and the orchestrator's Gate 6.5 reads the samepreservation.ok. Shouting that newer models do not need is gone from the humanizer: "CRITICAL" on three step headings, "MUST BE PRESERVED", "HARD RULE", "MAY run ONE validation pass" and similar. The rules themselves are unchanged, including never inventing a number, date, source, quote or example.