From 7122070c42b13c6ac195c4958fbc8d7792294bf5 Mon Sep 17 00:00:00 2001 From: atlaie Date: Fri, 13 Nov 2026 16:47:42 +0100 Subject: [PATCH] feat: say in the Requested row that the submitter always gets outputs/ Before approving an enclave job, a data owner sees that the enclave shares outputs/ with the submitter whatever the request. Messages, display and docstrings only; no behaviour change. Asana: https://app.asana.com/0/0/1220519893879771/f Co-Authored-By: Claude Opus 5.5 --- .../syft-enclave/src/syft_enclaves/enclave_job_info.py | 4 +++- packages/syft-enclave/tests/test_read_permissions.py | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/packages/syft-enclave/src/syft_enclaves/enclave_job_info.py b/packages/syft-enclave/src/syft_enclaves/enclave_job_info.py index 3b6c586d6ca..c11d53d4758 100644 --- a/packages/syft-enclave/src/syft_enclaves/enclave_job_info.py +++ b/packages/syft-enclave/src/syft_enclaves/enclave_job_info.py @@ -222,7 +222,9 @@ def read_permission_rows(self) -> list[tuple[str, str]]: The enclave shows the approval of every party and what all approved. A data owner shows its own approval. """ - rows = [("Requested", format_read_permissions(self.requested_read_permissions))] + requested = format_read_permissions(self.requested_read_permissions) + # The enclave shares the outputs with the submitter whatever the request. + rows = [("Requested", f"{requested}; the submitter always gets outputs/")] if self.current_user_email == self.datasite_owner_email: return rows + self._party_rows() if self._approval_file.exists(): diff --git a/packages/syft-enclave/tests/test_read_permissions.py b/packages/syft-enclave/tests/test_read_permissions.py index 413f05721d6..581c6425add 100644 --- a/packages/syft-enclave/tests/test_read_permissions.py +++ b/packages/syft-enclave/tests/test_read_permissions.py @@ -617,7 +617,8 @@ def test_display_on_enclave_shows_every_party(): rows = dict(enclave.jobs["j"].read_permission_rows()) # The request survives the distribution, which writes the approval files. assert rows["Requested"] == ( - f"returncode.txt ({ds.email}), stdout.txt ({ds.email})" + f"returncode.txt ({ds.email}), stdout.txt ({ds.email}); " + "the submitter always gets outputs/" ) assert rows[f"Approved by {do1.email}"] == f"returncode.txt ({ds.email})" assert rows[f"Approved by {do2.email}"] == "(pending)" @@ -633,7 +634,10 @@ def test_display_on_data_owner_shows_own_approval(): job = do1.jobs["j"] assert job.read_permission_rows() == [ - ("Requested", f"returncode.txt ({ds.email})"), + ( + "Requested", + f"returncode.txt ({ds.email}); the submitter always gets outputs/", + ), ("Approved by you", f"returncode.txt ({ds.email})"), ("Approved by all", "needs the approval of every party"), ]