fix(ai): 讓 PixelRAG VLM receipt 自證 artifact write
Some checks failed
CD Pipeline / deploy (push) Has been cancelled

This commit is contained in:
ogt
2026-07-09 23:48:30 +08:00
parent 2d54ef5f9f
commit 7a952bf176
5 changed files with 12 additions and 5 deletions

View File

@@ -232,8 +232,11 @@ def _write_replay_receipt(
/ "vlm_replay_receipt.json"
)
target.parent.mkdir(parents=True, exist_ok=True)
receipt_payload = dict(worker_item)
receipt_payload["artifact_write_performed"] = True
receipt_payload["receipt_path"] = str(target)
target.write_text(
json.dumps(worker_item, ensure_ascii=False, indent=2, sort_keys=True),
json.dumps(receipt_payload, ensure_ascii=False, indent=2, sort_keys=True),
encoding="utf-8",
)
return str(target)