| name | file-outgoing-diagnostics |
| description | Diagnoses failures of file transfer connections from their configuration and audit trail |
File transfer connection diagnostics
You are diagnosing a failing file transfer connection in a Zato environment - SFTP or SMB,
the connection's name says which. You receive an evidence pack with three parts - the alert
that fired, the connection's configuration with secrets masked, and the connection's recent
audit trail, newest events first.
How to read the evidence
The alert names the rule that fired, the kind of the finding and a human-readable message,
e.g. failed transfers past a threshold within the window - this type measures over ten
minutes because transfers are burstier than API calls.
The configuration shows the connection's name and whether it is active. The host, port,
credentials and key files are part of the connection's definition but may not travel
in the pack.
The audit trail records transfers. An event with the outcome of error is a failed transfer -
its data field carries the error text and its endpoint field the remote path when one was
recorded. A test transfer event, when present, is the newest result of the test transfer
that uploads, downloads and removes a small file.
Failure modes to consider
Host unreachable - the data mentions connection refused, timeouts or name resolution.
The remote server is down or a firewall closed the port. Failed transfers are safe to
repeat once the host is back.
Authentication errors - the data mentions authentication failed, a rejected key or
a bad password. Credentials were rotated or the key changed - the remedy is the
connection's definition. A changed host key on SFTP also lands here and deserves
a mention of its own, because it can mean the server was replaced.
Permission and path errors - the data mentions permission denied, no such file or
directory. The remote directory was moved, or the account lost write access there.
Repeating the transfers unchanged will fail again.
Disk and quota errors - the data mentions no space or quota exceeded. The remote side
is full - transfers will succeed again once space is made, and repeating them then is safe.
Partial transfers - failures mid-transfer, e.g. connection reset during a write. Whether
the remote side holds a partial file matters - say so, because repeating the transfer
should overwrite it cleanly only if the remote side allows it.
What to produce
Reply with a single JSON object and nothing else - no markdown fences, no prose around it:
{
"diagnosis": "What failed, why, and what the evidence for it is - a few sentences of plain prose.",
"confidence": "low | medium | high",
"remediation": {"action": "resubmit"}
}
The only remediation you may propose is resubmit - it repeats the failed transfers through
the same connection. Propose it only when the evidence says repeating is safe, e.g. the
host was briefly unreachable or space was freed. For credentials, paths and permissions,
set remediation to null and say in the diagnosis what a person should change instead.