Skip to content

feat: say the length and the rule when a data owner requests a log - #9627

Merged
koenvanderveen merged 2 commits into
devfrom
atlaie/enclave-msg-log-request-length
Nov 20, 2026
Merged

koenvanderveen merged 2 commits into
devfrom
atlaie/enclave-msg-log-request-length

Conversation

@atlaie

@atlaie atlaie commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • When a DO calls request_stderr or request_stdout on an enclave job, we previously printed Requested stderr.txt of job 'j' for [...], without the length. Now we print how much of the log was asked for (n_chars), and that the enclave shares the log once every DO made the same request, with the same readers and the same n_chars. The docstrings say the same.

Guidelines

High level

  • 🟢 Split: no need to split.
  • 🟢 Size: say the length and the sharing rule when a DO requests a log.

Mid level

  • 🟢 User-facing code
  • 🟢 Error handling
  • 🟢 State versioning
  • 🟠 Function structure: request_log now builds the message itself; move the formatting into a helper, so request_log stays high level.
  • 🟢 Tests

Low level

  • 🟢 Naming
  • 🟢 Code style

Security

No change.

Testing

  • test_log_request_says_length_and_rule checks the message with and without n_chars.

Asana task

Original description

request_stderr / request_stdout now confirm the length asked for, and say when the enclave shares the log:

Requested the first 1,000 characters of stderr.txt (n_chars=1000) of job 'j' for ds@x.com.
   The enclave shares it once every data owner makes the same request: the same readers and the same n_chars.

The docstrings say the same. Messages and docstrings only; no behaviour change.

This is the message half of the ticket. Showing one data owner another's request would change what the enclave shares, so that half is left as a design question for eng.

One of five small PRs from the 13 Nov enclave test; each merges cleanly with the others and with #9576.

Asana: https://app.asana.com/0/0/1220519960542215/f

🤖 Generated with Claude Code

No rush: after the release.

request_stderr / request_stdout print the length asked for (n_chars) and
say the enclave shares the log once every data owner makes the same
request: the same readers and the same n_chars. The docstrings say so too.

Messages, display and docstrings only; no behaviour change.
Asana: https://app.asana.com/0/0/1220519960542215/f

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@koenvanderveen
koenvanderveen marked this pull request as ready for review November 20, 2026 14:00
@koenvanderveen
koenvanderveen merged commit 632aab6 into dev Nov 20, 2026
22 checks passed
@koenvanderveen
koenvanderveen deleted the atlaie/enclave-msg-log-request-length branch November 20, 2026 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants