symfonic.agent.postgres_receipt_reconciliation¶
postgres_receipt_reconciliation ¶
Host-authenticated PG v1 receipt evidence, issued before public Agent effects.
Persist the opaque handle before run/stream. Reconciliation never resumes a turn or returns an AgentResult. The host authority supplies authenticated_principal, scope, executable_versions, journal, receipt_domain and require_access(principal, scope). Its exact domain must be the journal's owned domain. Fresh processes must use the same PostgreSQL URI with explicit host, port, role and database; options must match and environment-derived defaults are refused. Userinfo password rotation is permitted. URI aliases deliberately refuse rather than guess identity.
prepare_postgres_receipt_handle
async
¶
prepare_postgres_receipt_handle(agent: Any, prompt: str, *, invocation: Any, authority: Any, attachments: tuple[Any, ...] = (), history: tuple[Any, ...] = (), state: Any = None, session_id: str = '', output_type: Any = None) -> str
Issue before effects and pin the exact next public run/stream request.
The preflight performs only a read; an existing claim refuses. The host must persist the result before dispatch. UNKNOWN never authorizes a retry.
Source code in src/symfonic/agent/postgres_receipt_reconciliation.py
131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | |
reconcile_postgres_receipt
async
¶
Read accepted PG completion metadata; publication alone remains UNKNOWN.