Reconcile proven completed inputs without replay and hide internal fact notices

This commit is contained in:
aiagent
2026-10-20 00:52:29 -07:00
parent 885d6a842e
commit 43c99e78e2
12 changed files with 173 additions and 34 deletions
+12
View File
@@ -0,0 +1,12 @@
"""Stable internal notice rendering shared by transport and human projection."""
def fact_answer_notice(n):
"""Render the complete immutable fact-answer input, including its receipt ID."""
d=n['decision'];event=n['event']
if event.get('kind')!='fact_answered':
raise ValueError('Fact-answer notice required')
return ('[workbench-decision:'+n['notification_id']+']\n'
+'主控对本决策的事实核实答复:'+str(d.get('title',''))+'\n'+str(event.get('answer',''))
+'\n关联请求:'+str(event.get('request_id',''))+';决策:#/decisions?decision='+str(d.get('id',''))
+'\n先读取本决策当前版本与历史;该答复是项目事实资料,不是人类批准。仅可解释或维护本决策,不执行项目方案、代码或系统操作。')