feat: reconcile granted ops run closes
Assistant: codex Assistant-Model: gpt-5.6-sol Assistant-Session: 01a06bfe-2a55-7ed3-bacd-879977b099bf
This commit is contained in:
parent
b72fdb5452
commit
b63131e863
21 changed files with 1240 additions and 43 deletions
|
|
@ -173,6 +173,9 @@ def _ops_summary(row: OpsRun) -> dict[str, Any]:
|
|||
}
|
||||
if execution_evidence:
|
||||
compact_result["execution_evidence"] = execution_evidence
|
||||
repository_transaction = dict(result.get("repository_transaction") or {})
|
||||
if repository_transaction:
|
||||
compact_result["repository_transaction"] = repository_transaction
|
||||
return {
|
||||
"id": str(row.id),
|
||||
"state": row.state,
|
||||
|
|
@ -185,7 +188,12 @@ def _ops_summary(row: OpsRun) -> dict[str, Any]:
|
|||
"approach_hint": row.approach_hint,
|
||||
"harness_profile_ref": row.harness_profile_ref,
|
||||
"execution_refs": dict(row.execution_refs or {}),
|
||||
"repository_grant": (
|
||||
dict(row.repository_grant) if row.repository_grant is not None else None
|
||||
),
|
||||
"execution_evidence": execution_evidence,
|
||||
"repository_transaction": repository_transaction,
|
||||
"close_intent_digest": row.close_intent_digest,
|
||||
"created_at": row.created_at.isoformat() if row.created_at else None,
|
||||
"updated_at": row.updated_at.isoformat() if row.updated_at else None,
|
||||
"result": compact_result,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue