Skip to content

prompt-score: strip pasted prose blocks so quoted reviews don't inflate#258

Merged
Koukyosyumei merged 1 commit into
mainfrom
check-ph
Jul 4, 2026
Merged

prompt-score: strip pasted prose blocks so quoted reviews don't inflate#258
Koukyosyumei merged 1 commit into
mainfrom
check-ph

Conversation

@Koukyosyumei

Copy link
Copy Markdown
Collaborator

Validating v2 against 300 real logged prompts showed the score was still a strong length proxy (Pearson r(score, log-words) 0.78) and the top of the distribution was dominated by prompts that paste a long review / feedback / another agent's prose and add a thin ask. The artifact segmenter strips machine output (logs, traces, diffs, fences) but not pasted natural language, so that quoted prose was counted as authored craft, crediting the quoted author, not the human. This is the prose analogue of the original log-paste bug.

strip_quoted_prose removes long or multi-line quoted spans (straight, curly, and Japanese quotes) before feature extraction; short quotes (a term, a line of UI copy) are kept as concrete grounding. Removed prose no longer feeds grounding / diversity / length or language detection, and instead credits only the saturating evidence signal; a thin ask around a pasted block is flagged MostlyPaste.

On the 300-prompt corpus this cut r(score, log-words) 0.78 -> 0.66, collapsed the 300+-authored-word bucket from 20 prompts to 4 (their pasted content is gone), and dropped the pasted-review prompts out of the top band. Notably, 8 of 10 'Japanese' prompts were English asks quoting Japanese reviews — they now correctly detect as English and score on the ask. English calibration byte-identical. 54 module + 5 integration tests green; clippy clean both configs.

Validating v2 against 300 real logged prompts showed the score was still a
strong length proxy (Pearson r(score, log-words) 0.78) and the top of the
distribution was dominated by prompts that paste a long review / feedback /
another agent's prose and add a thin ask. The artifact segmenter strips machine
output (logs, traces, diffs, fences) but not pasted natural language, so that
quoted prose was counted as authored craft, crediting the quoted author, not
the human. This is the prose analogue of the original log-paste bug.

strip_quoted_prose removes long or multi-line quoted spans (straight, curly,
and Japanese quotes) before feature extraction; short quotes (a term, a line of
UI copy) are kept as concrete grounding. Removed prose no longer feeds
grounding / diversity / length or language detection, and instead credits only
the saturating evidence signal; a thin ask around a pasted block is flagged
MostlyPaste.

On the 300-prompt corpus this cut r(score, log-words) 0.78 -> 0.66, collapsed
the 300+-authored-word bucket from 20 prompts to 4 (their pasted content is
gone), and dropped the pasted-review prompts out of the top band. Notably, 8 of
10 'Japanese' prompts were English asks quoting Japanese reviews — they now
correctly detect as English and score on the ask. English calibration
byte-identical. 54 module + 5 integration tests green; clippy clean both
configs.
@Koukyosyumei Koukyosyumei merged commit 3f5c694 into main Jul 4, 2026
5 checks passed
@Koukyosyumei Koukyosyumei deleted the check-ph branch July 4, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant