Define the purpose
Name the AI or workflow, the decision it makes, the approved source and fields, and what must remain excluded.
Four simple steps
Define what an AI or workflow needs. Refinery reads the current source, checks whether the data is fit for that purpose, and returns only what may safely be used.
Name the AI or workflow, the decision it makes, the approved source and fields, and what must remain excluded.
Refinery retrieves current PostgreSQL facts for the exact approved scope. Previous answers and cached assumptions are not enough.
Freshness, completeness, identity, evidence, classification, and policy are evaluated for this exact purpose.
Trusted data is returned with evidence. Limited data carries its condition. Unsafe or uncertain data is blocked with a reason and next step.
Three possible gateway decisions
The objective is not to maximize data access. It is to return only what the declared AI or workflow may safely use and make the reason visible when it cannot.
The data is current, in scope, policy-allowed, and supported by the evidence required for this exact purpose.
The data may be used only with a clear limitation, redaction, expiry, or required human oversight.
The data is stale, conflicted, disallowed, or insufficiently proven. No raw fallback value is silently returned.
When something is wrong
Only eligible low-risk issues may enter the repair path. Identity conflicts, destructive changes, ambiguous financial facts, unsupported connectors, and missing authority stay blocked.
Identify the exact invalid or missing value using current source evidence and an agreed rule.
Prepare one bounded correction with its reason, subject, expected current value, and supporting evidence.
Require the applicable policy or a named human decision. Ordinary chat and model confidence grant no authority.
Attempt the change only through the certified governed connector path for the exact approved subject.
Read the authoritative source again. A successful API response alone does not prove that the data changed correctly.
Keep durable proof connecting the subject, authority, attempt, fresh readback, timing, and outcome.
Start read-only
We will map the decision, approved source, current risk, and evidence needed before discussing any governed repair.