env_mismatchPending
kind: outcomeclient_missingPending
kind: outcomelist_databasesPending
kind: recipe_ref- outcome: success → choose_database
- default → unknown_failure
choose_databasePending
kind: outcomeserver_startingPending
kind: outcomeunknown_failurePending
kind: outcomealready_connectsPending
kind: outcomecheck_connection (entry)In progress
kind: diagnostic- match "\(1 row\)" → already_connects
- match "Connection refused|could not connect|No such file or directory" → check_server_ready
- match "password authentication failed|no password supplied|role .* does not exist" → auth_or_role_failure
- match "database .* does not exist" → list_databases
- match "too many clients" → inspect_connections
- match "command not found|not recognized as" → client_missing
- default → unknown_failure
free_connectionsPending
kind: outcomecheck_server_readyPending
kind: diagnostic- match "accepting connections" → env_mismatch
- match "rejecting connections" → server_starting
- default → server_not_running
server_not_runningPending
kind: outcomeinspect_connectionsPending
kind: recipe_ref- outcome: success → free_connections
- default → unknown_failure
auth_or_role_failurePending
kind: outcome