diff --git a/DBUS-AUDIT.md b/DBUS-AUDIT.md index 60152e5..56f6716 100644 --- a/DBUS-AUDIT.md +++ b/DBUS-AUDIT.md @@ -124,6 +124,15 @@ Required before claiming hardware readiness: ## Execution order after this audit +Run `20261108T202529Z` passed adapter builds and reached package download in Core +Stage, past the previous lock failure. The package command exited successfully but +its output failed JSON decoding. nspawn defaults to a read-only PTY for nonterminal +callers, multiplexing stderr (including download-mode pacman-key diagnostics) into +stdout. The package adapter now explicitly uses `--console=pipe` to preserve its +JSON stdout channel. Runtime confirmation awaits the next normal pipeline. +Failure diagnostics were collected, but their completion marker contained CRCRLF; +the probe now accepts repeated CR before LF rather than timing out after collection. + Run `20261108T173013Z` passed catalog signature checks, extension enable and nano resolution. Stage then failed acquiring the compose lock. The read-only observer also owns that lock for up to 10s plus 2s termination; mutation previously tried diff --git a/src/service/packages.rs b/src/service/packages.rs index a87aa1a..61d2599 100644 --- a/src/service/packages.rs +++ b/src/service/packages.rs @@ -66,7 +66,9 @@ impl Sandbox { pub fn invoke(&self, worker: &Worker, mode: &str, request: &Value, offline: bool) -> Result { storage::atomic(&self.path.join("request.json"), request)?; - let mut args = vec!["--quiet".to_owned(), "--settings=no".into(), "--register=no".into(), + // Preserve JSON stdout independently from pacman-key/libalpm stderr. + // nspawn's default read-only console multiplexes both through a PTY. + let mut args = vec!["--quiet".to_owned(), "--console=pipe".into(), "--settings=no".into(), "--register=no".into(), format!("--directory={}", self.root.display()), format!("--bind-ro={}:/run/archipelago-package-sandbox", self.path.join("sandbox-marker").display()), format!("--bind-ro={}:/run/package-transaction.py", self.path.join("package-transaction.py").display()),