技能 2026-10-27 10:10 UTC
avoid-ai-writing
由提交人 conorbronsdon 提交,主要更新类型为:代码维护与功能优化。提交说明:Vale port: draft pattern-export contract with a pinned sample and com…。
Commit提交信息原文
Vale port: draft pattern-export contract with a pinned sample and compatibility fixture (refs #94) (#420) * Vale port: draft pattern-export contract, a pinned deterministic sample and compatibility fixture (#94) docs/vale-export-proposal.md proposes a versioned export contract and states the coverage boundary by detector group, the JS-versus-Vale semantic gaps, and three packaging options with their costs. The sample exports one rule (ai-utm-source, two patterns) from a hash-verified detector/patterns.js, as plain frozen data with no RegExp objects; scripts/vale-export-sample.js regenerates it byte-for-byte and the test fails if the source or sample drifts. Ten compatibility cases pair raw regex matches with real analyzeText findings. No Vale style, no export API, no package change, and no claim of Vale parity. The existing contributor's first claim on #94 is untouched. Implemented by Codex (gpt-5.6-sol); reviewed and committed by Claude, who reproduced the sample and source hash, checked the Tier 2 and Tier 3 semantics against the detector, confirmed the live #94 thread and the remote head, and ran two mutations (one-byte source change, tampered sample flags): both fail the test. Co-Authored-By: Codex (gpt-5.6-sol) <noreply@openai.com> Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> * Vale export fixtures: pin LF line endings so the byte-exact test passes on Windows checkouts Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> --------- Co-authored-by: Codex (gpt-5.6-sol) <noreply@openai.com> Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>