From 4304b0f336ddba7b4ec6780795059ff2066d105b Mon Sep 17 00:00:00 2001 From: aur-build Date: Thu, 19 Nov 2026 17:33:17 +0000 Subject: comments: keep only what the code cannot show MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Stripped every comment that described what an item does, documented its arguments or fields, or cited the design docs (§n, I-n, m-n, decision n). 2247 comments down to 83. What survives: the section dividers that segment the large modules, the secret-handling warnings, the agent wire-frame directions, and the few notes without which the code they attach to reads as redundant, reorderable, or unsound. --- src/sandbox/wire.rs | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/sandbox/wire.rs') diff --git a/src/sandbox/wire.rs b/src/sandbox/wire.rs index 8f03063..a0d06ca 100644 --- a/src/sandbox/wire.rs +++ b/src/sandbox/wire.rs @@ -2,13 +2,8 @@ use std::io::{self, BufRead, Write}; use serde::{Deserialize, Serialize}; -/// Refuse absurd frames before allocating for them. Blobs ride as hex inside -/// the frame, so this bounds a real package at ~2 GiB of hex — far above -/// anything legitimate, far below "accept whatever the sandbox sends". pub const MAX_FRAME_BYTES: u32 = 2 * 1024 * 1024 * 1024; -/// One protocol frame. `req` correlates a reply with a request; unsolicited -/// frames (`Ping`, `Hello`, `HelloAck`) carry none. #[derive(Debug, Clone, Serialize, Deserialize)] #[serde(tag = "t", rename_all = "snake_case")] pub enum Frame { @@ -51,8 +46,6 @@ pub fn write_frame(w: &mut impl Write, f: &Frame) -> io::Result<()> { w.flush() } -/// Read one frame. `Ok(None)` means a clean close, which for a sandbox means -/// the lease expired and the build should requeue. pub fn read_frame(r: &mut impl BufRead) -> io::Result> { let mut len = [0u8; 4]; match r.read_exact(&mut len) { -- cgit v1.2.3