This commit is contained in:
zyp
2026-11-25 17:25:46 +08:00
parent c27f84cf91
commit 066a5023b7
11 changed files with 767 additions and 53 deletions
@@ -16,6 +16,7 @@ GROUPS = (
('work', ('directions', 'progress', 'responses', 'followups'), 3600),
('person', ('behaviors', 'portrait'), 3200),
)
MAX_UNCHANGED_SLICES = 8
BEHAVIOR_CONTRACT = '''共同业务口径:attitude是履责表现,不是心理态度测试。根据已发生的测试、审核、拜访、沟通、问题处理等记录,归纳执行环节与业务侧重是允许的行为描述;不要求员工在原文另写“我关注/重视”或第三方另作态度评价。不能把这种有限归纳误判为编造内在动机,也不能从动作推断人格、主观意愿或责任心。标题“聚焦/关注/参与某项工作”仅概括工作主题,不声称主导、独立或全部完成,完成范围以正文明确断言为准。
应先承认记录明确记载的实际动作及结果,不将同一记录中保留的通用要求误读为员工未执行;未来计划与实际执行分别转述,不自行制造两者的对立或缺口。生成时优先写具体执行方式和结果,少用“关注、重视、积极”等可被误读的抽象词。核验只能指出明确事实冲突,不能为标题添加隐藏的心理或主导含义。'''
@@ -49,7 +50,9 @@ def progress(checkpoint):
candidate = checkpoint.get('candidate') or {}
cache = checkpoint.get('grounding_cache') or {}
parts = checkpoint.get('generation_parts') or {}
content = {'candidate': candidate, 'parts': parts, 'verified': cache}
content = {'candidate': candidate, 'parts': parts, 'verified': cache,
'context_scans':checkpoint.get('context_scans') or {}, 'context_limits':checkpoint.get('context_limits') or {},
'verification_batch_size':checkpoint.get('verification_batch_size',0)}
token = hashlib.sha256(json.dumps(content, ensure_ascii=False, sort_keys=True).encode()).hexdigest()
return {'token': token, 'phase': checkpoint.get('workflow_phase', 'generating'),
'verified': checkpoint.get('verified_current',0),