diff options
| author | aur-build <aur-build@localhost> | 2026-11-19 17:09:59 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-19 17:09:59 +0000 |
| commit | e757979f1a2afdbe7146066345bb9acd19d3b151 (patch) | |
| tree | 30d5f5fbccd25ea7bf01c5202684af463b74e7d3 /src/sandbox/loopback.rs | |
| parent | 94c318f13264bb3c00a9f3057ba2e1aafb57c9e4 (diff) | |
| download | aur-build-e757979f1a2afdbe7146066345bb9acd19d3b151.tar.gz aur-build-e757979f1a2afdbe7146066345bb9acd19d3b151.zip | |
comments: say why, not what
Every module-level `//!` header is gone, and the comments that remained
either re-explained the line below them or had grown into paragraphs.
Density went from one comment line per 6.7 lines of code to one per 10.
827 insertions against 2194 deletions across 86 files.
What survived: the invariants (I1-I12), the design cross-references into
DESIGN.md, and the notes recording a bug that was found and fixed — those
are the comments that carry weight, because they answer a question the
code cannot answer about itself. What did not: restating a function
signature in prose, and narration of the statement underneath.
Diffstat (limited to 'src/sandbox/loopback.rs')
| -rw-r--r-- | src/sandbox/loopback.rs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/sandbox/loopback.rs b/src/sandbox/loopback.rs index 8e9f52d..8a3c229 100644 --- a/src/sandbox/loopback.rs +++ b/src/sandbox/loopback.rs @@ -1,16 +1,3 @@ -//! The loopback backend: run sandbox commands as local subprocesses. -//! -//! This is today's behavior wearing the new interface — same `Config::child_env` -//! shim protocol (§16a), same captured output, same process as the hub. It is -//! what `cargo test` exercises and what a single machine with devtools runs; -//! the shim suite passing unchanged through this file is what makes the seam a -//! pure refactor rather than a re-architecture. -//! -//! Isolation here is *none*: the "sandbox" is the hub's own user. That is -//! honest — the loopback backend is for development, tests, and the local -//! chroot deployment where §14's sudo rules are the boundary — and the Kata -//! backend is where the machine boundary lives. - use std::fs; use std::io::Read; use std::path::PathBuf; |
