Repository navigation
fix(persona): 保留不确定语气并审查后来的手写更正 (PE-21) - #133
Merged
Merged
Conversation
Handwritten review now also sees later corrections that fall outside the generation budget, and a reask names the defect. A correction quote that is itself uncertain never licenses a deletion. Automatic sentences must keep the certainty of their source: prompts cover uncertainty, condition, scope and frequency; a deterministic closed-class check rejects dropped epistemic modals at precheck and on cited proof spans.
… range (PE-22) - _proof_uncertainty_issues: a modal constrains only its own proposition. A single cited clause is bound by the citation; a bundled citation or the current-text fallback needs a lexical link covering most of the focus, else no verdict and the semantic check decides. A reported request is constrained only by a clause with the same asking verb; text after a consequence link in a hedged clause is not doubted. Candidate wording that says it cannot tell (EPISTEMIC_LIMIT) keeps the doubt. - _hedge_kept: a hedge reaches a later focus only while no clause with its own subject or opening connective intervenes, so an unrelated hedge no longer excuses other claims. - Quantifier ranges: foci with closed-class quantifiers (first time, only, all, every time, never, always ...) carry `quantifiers` and need focus-level `quantifier_checks` (scope_check shape plus candidate/source quantifier). Code checks fields, that both quantifier and range are in this focus and in the same clause of an own bound source, and rejects dates, occasion markers, entry names or another clause's qualifier as the range. - Prompts: persona_check_v36, persona_generate_v23; older files kept.
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.
PE-21:全自动阶段 P 线第一步,修 persona 的两类剩余失败(依据:DECISIONS.md 2026-11-10「全自动阶段计划」、2026-10-21 #130 的“剩余问题”)。
手写句被后来的记忆更正后仍被保留
material.handwritten_evidence(每句按相关度最多 40 条),只供审查,不进入生成和普通检查。发布与确认时同样按出处指纹复核。persona_handwritten_v2列出“明确更正”的具体形式。保护没有放宽:所列形式都已落在 v1 的定义内,判定仍要求同一内容、同一范围、本人肯定陈述。代码新增一条更严的护栏:更正引文含不确定语气时不许可删除。自动句丢掉不确定语气及限定
persona_generate_v22、persona_check_v35要求保留不确定语气、条件、频率或数量与适用范围。UNCERTAINTY只是认识情态词这一封闭语法类,不含话题、人物或样本词。_uncertainty_issues在预筛中比对:每条相关绑定记忆中最接近该分句的子句都不确定,而候选没有同类表达时拒绝。_proof_uncertainty_issues对模型实际引用的片段再判一次。scope_check。未改动
发布流程、
DEFAULT_PUBLISH_MODE(仍为all_manual)、模型调用用途。旧提示词文件保留。提示词 SHA-256
ee16097d6fd06206ed8d68eb43bddb5dc424c0e05e5c9c40c85cecc7ef8b8952173d34366eb713357f9cce3e7b8f939321f77a7b77c5214d8f801d3e8c6998c04ce888d3f592e0eef17a9c4b7cb77bec82f64e60cceac2d1f5a0bcef37fe8aef验证
tests/test_persona_uncertainty.py、tests/test_persona_handwritten_coverage.py(确定性测试和假模型集成测试)。test_persona_streaming.py::test_future_deadline_closes_stream_worker_and_preserves_shared_client在未改动的15e8cf7上单独运行同样失败,与本 PR 无关。运行命令(在本 PR head 上)
不合并,等规划者审查。