feat: 增强 x.ai 带连字符验证码识别 (ZER-57) - #114
Closed
ZeroPointSix wants to merge 23 commits into
Closed
Conversation
Add rule-based extraction for alphanumeric codes with hyphens (e.g. 84A-KMN) when verification context phrases are present. This allows x.ai email verification codes to be recognized without enabling AI fallback. Includes regression tests for smart/fallback extraction, options API path, and confidence gate behavior. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Expose POST /api/demo/rule-extract-verification protected by X-Demo-Token for external testing of ZER-57 without requiring mailbox setup or AI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
x.ai HTML emails often concatenate the verification code with the next English word (e.g. address.84A-KMNIf). Relax hyphenated code boundaries to allow a trailing capital+lowercase lookahead while keeping context gating to avoid order/tracking false positives. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Real x.ai emails use letter-only codes (NJF-KUU) in addition to mixed codes (84A-KMN). Relax hyphenated validation when both segments are at least 3 chars and total length is at least 6. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
When code_source=all, do not concatenate raw HTML into the code search text; parsed body text is sufficient. HTML-only x.ai messages were matching #333333 before NJF-KUU. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Remove test-only /api/demo/rule-extract-verification endpoint so this PR only contains x.ai verification rule fixes. Apply Black formatting to pass CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Owner
Author
|
已将本 PR 的核心修复选入 #117 的旧前端发布分支。 纳入内容:
未纳入内容:
这样可以保留 x.ai 连字符验证码识别修复,同时符合 #115 中“新版本不发布新前端/演示接口”的合并边界。对应提交: |
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
Restore full app.py after accidental truncated push. Remove test-only demo API endpoint and apply Black formatting for CI. Co-authored-by: ZeroPointSix <ZeroPointSix@users.noreply.github.com>
ZeroPointSix
force-pushed
the
cursor/xai-hyphenated-verification-code-e299
branch
from
July 13, 2026 03:35
fdeed82 to
4870c3c
Compare
ZeroPointSix
marked this pull request as ready for review
July 13, 2026 03:36
This was referenced Jul 26, 2026
Closed
Closed
Owner
Author
|
仓库清理结论:本 PR 的 x.ai 连字符验证码核心修复已进入旧前端发布线,并随 v2.8.0 发布;后续统一提取实现也已由 #119 落入 main。当前 PR 与 main 冲突且不再是交付入口,现按已被替代关闭。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
状态:测试已通过,待人工合并
关联 Linear:ZER-57 / GitHub issue #113
变更范围(仅 x.ai 验证码规则)
84A-KMN、NJF-KUUaddress.84A-KMNIf#333333误识别已验证
21mu5h0u@outlookmailplus.tech→ 提取NJF-KUU,code_confidence: high说明
分支已推送最新修复,保持 Open,不自动合并。x.ai 规则修复已就绪,请人工 review 后合并。