# SFTP acceptance: completion, identity and synchronization

This packet accompanies the SFTP section in Hesela's existing
[backup verification analysis](https://hesela.com/analyses/backup-verification-is-not-a-restore-test/#sftp-acceptance).
It contains constructed local-file experiments, not field failure rates.

## What the evidence establishes

Two selected clients and two selected servers are crossed: Ubuntu OpenSSH
9.6p1 (package 1:9.6p1-3ubuntu13.20) and source-built upstream 10.6p2.
The same 18 cases run in each pairing, making 72 observations. A fresh repeat
reproduced all result arrays and 216 before/source/after binary payloads.
The original one-build 18-case capture is retained separately as history.

A wrong resumed prefix survived exit 0 and the expected length.
Injected remote fsync/EIO also coexisted with exit 0, including exact-byte
overwrites. Denied WRITE left zero bytes with the selected 9.6p1 client,
but 8192 bytes with the selected 10.6p2 client. The latter retained the
2048-byte prefix and extended it with 6144 zero-valued bytes. Both failed.

Server policy denied WRITE only; FSETSTAT remained permitted. This was
not a read-only server or an operating-system permission bypass.
Unsupported fsync advertisement and attempted-but-failed synchronization
are distinct controls. Source generation, full content, sync outcome
and restore acceptance remain separate obligations.

## Verify without OpenSSH

Download reproduction.zip and verify its SHA-256 against manifest.json.
After extracting, run from the sftp-resume directory:

```sh
python3 -B verify.py
python3 -B -m unittest -v test_evidence
python3 -B -O -m unittest -v test_evidence
python3 -B version-scope/check.py
python3 -B -m unittest discover -s version-scope -p test_version_scope.py
python3 -B -O -m unittest discover -s version-scope -p test_version_scope.py
```

All saved-evidence checks use the Python standard library. The manifest maps
every archive member to its hash and pins the exact research-source commit.
The archive excludes private publication handoffs and acceptance scratch.
Original experimental code, observations, fixtures and native logs are unmodified.
The generator is content/research/sftp-publication/package.py in the project.

The two README files inside the archive are frozen research-stage records.
Their historical publication-status wording is not a statement about this
site's current release or independent review. The top-level README covers
the earlier single-build study; version-scope/README.md covers both builds.

## Repeat native operations

The inner READMEs document fresh output directories, compiler requirements,
the disposable fsync fault injector and version-specific binary identities.
The second build comes from an official checksum-verified archive. Build
only the client/server tools in fresh scratch; do not replace installed
software or run probes against real backups. Changing the environment requires
a new explicitly versioned capture, not overwriting the frozen evidence.

## Scope

One Linux host; quiescent regular files; direct SFTP pipes without SSH
transport. Initial partial files were constructed. EIO was deliberately
injected in the disposable server process. No power loss, media failure,
network interruption, concurrent writer, full application recovery,
independent peer replication or all-version guarantee is established.

Primary-source URLs and locators are in sources.json. Exact binary hashes,
package identities, build flags and original source receipts are inside
the archive. No upstream source distribution or executable is redistributed.
