Repository navigation
Conversation
d94f8dc to
34fa782
Compare
There was a problem hiding this comment.
10 issues found and verified against the latest diff
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/native/crates/local-api/src/sandbox/org_mount.rs">
<violation number="1" location="apps/native/crates/local-api/src/sandbox/org_mount.rs:47">
P2: On Linux, gitless agents still run directly in the raw `<app_root>/orgs/<slug>` directory even though org-fs is disabled, so writes intended for organization storage can silently land in unsynchronized local state instead of using the empty-org degradation. The gitless cwd selection could honor the same platform gate and use the documented fallback when no mount stack is active.</violation>
</file>
<file name="apps/native/crates/local-api/src/setup/dev.rs">
<violation number="1" location="apps/native/crates/local-api/src/setup/dev.rs:785">
P2: Upgrading a Linux installation with a live persisted dev server can permanently block the next start: the old sidecar stores the `ps comm` name, while this code observes an absolute `/proc/<pid>/exe` path and the exact identity comparison refuses to reap it. A migration or compatibility comparison for pre-path identities would preserve safe cleanup across upgrades without weakening the fail-closed behavior for genuinely different processes.</violation>
</file>
<file name="apps/native/crates/local-api/src/routes/intercept/sandbox_lifecycle.rs">
<violation number="1" location="apps/native/crates/local-api/src/routes/intercept/sandbox_lifecycle.rs:148">
P2: Listing agent sessions now trusts preview hosts for stopped or failed sandboxes even though their URLs are discarded afterward. Because the WebKit exception set is append-only, historical records can grow that set and enqueue unnecessary GTK work; the host should be observed only when a running preview URL is actually returned.</violation>
</file>
<file name="apps/native/src-tauri/src/env_path.rs">
<violation number="1" location="apps/native/src-tauri/src/env_path.rs:47">
P2: Linux launches with an unset `SHELL` cannot repair PATH on systems without `/bin/bash`, because the fallback probe fails before reading the login environment. Using `/bin/sh` here would provide the required POSIX behavior without making PATH repair depend on Bash being installed.</violation>
</file>
<file name="apps/native/src-tauri/src/webview_trust.rs">
<violation number="1" location="apps/native/src-tauri/src/webview_trust.rs:94">
P2: A preview iframe can still fail its first HTTPS load even though the observer fired: this call queues `allow_host` on GTK without an acknowledgement, while `preview_url_for` immediately returns the URL. If WebKit starts the iframe before the queued callback registers the exception, the subframe has no recovery signal and remains broken until another navigation or reload.</violation>
<violation number="2" location="apps/native/src-tauri/src/webview_trust.rs:112">
P2: A trust-dispatch failure permanently disables retries for that preview host: it is marked `granted` before `with_webview`, and subsequent observer calls return without attempting registration again. A transient dispatch, window, or certificate-read failure can therefore leave that sandbox's iframe unable to load for the rest of the process.</violation>
</file>
<file name="apps/native/e2e/helpers.ts">
<violation number="1" location="apps/native/e2e/helpers.ts:139">
P2: In this Linux phase the keychain suite is permanently locked to macOS via `process.platform !== "darwin"`, so the Secret Service/keychain path gets zero coverage on Linux — even on a dev box where gnome-keyring-daemon is running and the store would work. Consider gating on an env probe/opt-in (e.g. `DECOCMS_E2E_KEYCHAIN=1`) instead of a hardcoded platform check, so Linux coverage can be enabled without editing source once CI stands up a keyring daemon.</violation>
</file>
<file name="apps/native/src-tauri/src/local_tls.rs">
<violation number="1" location="apps/native/src-tauri/src/local_tls.rs:60">
P3: Linux documentation builds now have broken `ensure_trusted` intra-doc links because this platform gate removes the target item. A platform-neutral link or cfg-specific documentation would keep Linux rustdoc warning-free.</violation>
<violation number="2" location="apps/native/src-tauri/src/local_tls.rs:361">
P2: A non-empty but non-PEM system file is treated as a valid root store, so the generated replacement bundle can contain no public roots and break the child’s public HTTPS connections. Validating that the candidate contains parseable certificates (or skipping/failing it) would preserve the superset guarantee.</violation>
</file>
<file name="apps/native/crates/upstream/src/login.rs">
<violation number="1" location="apps/native/crates/upstream/src/login.rs:317">
P3: On Linux the added xdg-open path still uses `.spawn().map(|_| ())`, so a non-zero xdg-open exit (no browser, no DISPLAY) is reported as success. The new doc comment's soft-fail promise only holds when the binary itself is missing; in the common headless/bare-session case the caller logs "system browser launched" and the user hangs until the 5-min loopback timeout. Consider waiting on and checking xdg-open's exit status so the soft-fail (log URL) path in perform_interactive_login actually triggers, or capture stderr for the log.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| /// Everything below — `rclone nfsmount`, the BSD `mount` table, `umount -f` — | ||
| /// is macOS-shaped. Porting the FUSE path flips this to | ||
| /// `|| cfg!(target_os = "linux")`. | ||
| const PLATFORM_SUPPORTED: bool = cfg!(target_os = "macos"); |
There was a problem hiding this comment.
P2: On Linux, gitless agents still run directly in the raw <app_root>/orgs/<slug> directory even though org-fs is disabled, so writes intended for organization storage can silently land in unsynchronized local state instead of using the empty-org degradation. The gitless cwd selection could honor the same platform gate and use the documented fallback when no mount stack is active.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/sandbox/org_mount.rs, line 47:
<comment>On Linux, gitless agents still run directly in the raw `<app_root>/orgs/<slug>` directory even though org-fs is disabled, so writes intended for organization storage can silently land in unsynchronized local state instead of using the empty-org degradation. The gitless cwd selection could honor the same platform gate and use the documented fallback when no mount stack is active.</comment>
<file context>
@@ -39,6 +39,30 @@ use crate::process_group::ProcessGroupChild;
+/// Everything below — `rclone nfsmount`, the BSD `mount` table, `umount -f` —
+/// is macOS-shaped. Porting the FUSE path flips this to
+/// `|| cfg!(target_os = "linux")`.
+const PLATFORM_SUPPORTED: bool = cfg!(target_os = "macos");
+
+/// Set to anything to force the unsupported-platform path.
</file context>
There was a problem hiding this comment.
There is no other cwd to give a gitless agent. resolve_cwd (terminal/launch_context.rs:599) returns <app_root>/orgs/<slug> precisely because a gitless thread has no repo and no worktree to stand in, and there is no separate "empty-org" directory to fall back to — the documented degradation is that directory with nothing mounted under it. That is byte-for-byte what macOS produces today whenever DECOCMS_DISABLE_ORG_FS is set or a mount fails: mount_all is best-effort and the module doc calls the result "an empty directory through the sandbox's view rather than an error". Gating the cwd on PLATFORM_SUPPORTED would leave the launch with no cwd at all, which is strictly worse than a local directory.
The gate quoted here is also phase-1-only, exactly as its doc comment says: #5532 flips it to cfg!(any(target_os = "macos", target_os = "linux")), so Linux has a real mount stack under that same path within this stack.
| pid, | ||
| birth: fields[3..8].join(" "), | ||
| executable: fields[8..].join(" "), | ||
| executable: resolve_executable(pid, fields[8..].join(" ")), |
There was a problem hiding this comment.
P2: Upgrading a Linux installation with a live persisted dev server can permanently block the next start: the old sidecar stores the ps comm name, while this code observes an absolute /proc/<pid>/exe path and the exact identity comparison refuses to reap it. A migration or compatibility comparison for pre-path identities would preserve safe cleanup across upgrades without weakening the fail-closed behavior for genuinely different processes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/setup/dev.rs, line 785:
<comment>Upgrading a Linux installation with a live persisted dev server can permanently block the next start: the old sidecar stores the `ps comm` name, while this code observes an absolute `/proc/<pid>/exe` path and the exact identity comparison refuses to reap it. A migration or compatibility comparison for pre-path identities would preserve safe cleanup across upgrades without weakening the fail-closed behavior for genuinely different processes.</comment>
<file context>
@@ -782,10 +782,38 @@ async fn observe_process_identity(
pid,
birth: fields[3..8].join(" "),
- executable: fields[8..].join(" "),
+ executable: resolve_executable(pid, fields[8..].join(" ")),
}))
}
</file context>
There was a problem hiding this comment.
The migration this describes has no source to migrate from. A record holding a bare ps comm executable on Linux could only have been written by an installed Linux build that predates resolve_executable — and this stack (#5509 compile & boot, #5556 release leg) is the first Linux support in apps/native. No shipped Linux build exists to have persisted pre-path identities.
It also cannot leak across platforms: the /proc/<pid>/exe branch is #[cfg(target_os = "linux")], so macOS both writes and reads the comm value exactly as before this PR. And refresh_persisted_group_identities rewrites record.identities from a fresh observation every IDENTITY_REFRESH_INTERVAL, so a live record tracks whatever local-api is currently running.
The one reachable instance of this identity-representation drift is the (deleted) fallback, which is being addressed — see the sibling threads on resolve_executable.
| // Before the URL escapes: whoever gets it may load it immediately, and | ||
| // on Linux the host must already be trusted by then. | ||
| if let Some(observe) = observe { | ||
| observe(&host); |
There was a problem hiding this comment.
P2: Listing agent sessions now trusts preview hosts for stopped or failed sandboxes even though their URLs are discarded afterward. Because the WebKit exception set is append-only, historical records can grow that set and enqueue unnecessary GTK work; the host should be observed only when a running preview URL is actually returned.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/routes/intercept/sandbox_lifecycle.rs, line 148:
<comment>Listing agent sessions now trusts preview hosts for stopped or failed sandboxes even though their URLs are discarded afterward. Because the WebKit exception set is append-only, historical records can grow that set and enqueue unnecessary GTK work; the host should be observed only when a running preview URL is actually returned.</comment>
<file context>
@@ -108,9 +141,17 @@ fn preview_url(handle: &str) -> Option<String> {
+ // Before the URL escapes: whoever gets it may load it immediately, and
+ // on Linux the host must already be trusted by then.
+ if let Some(observe) = observe {
+ observe(&host);
+ }
+ Some(format!("{scheme}://{host}:{port}/"))
</file context>
There was a problem hiding this comment.
Deliberate, and not unbounded growth or repeated GTK work.
- The observer dedups.
webview_trust::allow_preview_hostinserts into agranted: HashSet<String>and returns early on a repeat, so a host costs at most one dispatch per process no matter how many times a session list hands its URL out.EmbeddedOptions::preview_host_observer's doc says this explicitly: the hook is invoked per URL rather than as a diff over a set precisely because deduplication belongs to the observer. - The set is bounded by this agent's registry rows, and every entry is this launch's own leaf for a host this process itself mints (
preview_label(handle)under the control domain). Registering it early widens no trust — it is the same certificate for the same host we would register the moment that sandbox starts. - A stopped record's host is byte-identical to the one it will serve on after a restart, so observing it here is what removes the start-then-load ordering gap for every sandbox that has run before in this process.
The one real consequence is that ACCUMULATION_WARN_THRESHOLD (64) counts historical records rather than only sandboxes started this run — a log line, not a defect, and still well above a plausible per-agent branch count.
|
|
||
| #[cfg(target_os = "linux")] | ||
| fn read_store(path: &Path) -> Option<String> { | ||
| let pem = fs::read_to_string(path).ok()?; |
There was a problem hiding this comment.
P2: A non-empty but non-PEM system file is treated as a valid root store, so the generated replacement bundle can contain no public roots and break the child’s public HTTPS connections. Validating that the candidate contains parseable certificates (or skipping/failing it) would preserve the superset guarantee.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/src-tauri/src/local_tls.rs, line 361:
<comment>A non-empty but non-PEM system file is treated as a valid root store, so the generated replacement bundle can contain no public roots and break the child’s public HTTPS connections. Validating that the candidate contains parseable certificates (or skipping/failing it) would preserve the superset guarantee.</comment>
<file context>
@@ -261,13 +279,116 @@ fn is_trusted(ca_cert: &Path) -> bool {
+
+#[cfg(target_os = "linux")]
+fn read_store(path: &Path) -> Option<String> {
+ let pem = fs::read_to_string(path).ok()?;
+ (!pem.trim().is_empty()).then_some(pem)
+}
</file context>
There was a problem hiding this comment.
The bundle's contract is "a superset of what this host actually trusts", and it resolves the store the same way the host's own TLS consumers do. Go's crypto/x509 loadSystemRoots walks the same candidate list and takes the first file that READS, with no parse gate; $SSL_CERT_FILE is an explicit admin override ahead of all of them. So on a host whose ca-certificates.crt is corrupt, a child fails public HTTPS identically with or without this bundle — the bundle removes no trust that would otherwise exist, it reproduces the host's state and adds the local CA.
A parse gate would make the bundle diverge from the host's real trust state, which is the one property this function is for. And the cheap version of it — checking for a -----BEGIN CERTIFICATE----- marker — only catches total garbage, not a semantically invalid or expired DER, so it advertises assurance it cannot deliver.
The empty check that is here is not the same test at a lower threshold. Empty is parser-free and unambiguous, and it is indistinguishable from "no store at all" — which is precisely the case that must fail closed, because a bundle built from nothing is the local CA alone. That is the hazard child_ca_bundle_body refuses, pinned by no_system_store_means_no_bundle_rather_than_a_local_ca_only_one.
|
|
||
| use std::fs; | ||
| use std::path::{Path, PathBuf}; | ||
| #[cfg(target_os = "macos")] |
There was a problem hiding this comment.
P3: Linux documentation builds now have broken ensure_trusted intra-doc links because this platform gate removes the target item. A platform-neutral link or cfg-specific documentation would keep Linux rustdoc warning-free.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/src-tauri/src/local_tls.rs, line 60:
<comment>Linux documentation builds now have broken `ensure_trusted` intra-doc links because this platform gate removes the target item. A platform-neutral link or cfg-specific documentation would keep Linux rustdoc warning-free.</comment>
<file context>
@@ -37,13 +37,27 @@
use std::fs;
use std::path::{Path, PathBuf};
+#[cfg(target_os = "macos")]
use std::process::Command;
</file context>
There was a problem hiding this comment.
Accurate as an observation, but nothing surfaces it and the proposed remedy costs more than the warning. .github/workflows/native.yml has no cargo doc step — the Rust gate is cargo clippy --workspace --all-targets -- -D warnings, and rustdoc::broken_intra_doc_links is a rustdoc lint that clippy does not emit. So there is no warning in any build that runs.
The situation is also symmetric: ensure_child_ca_bundle is the unresolved link on macOS. A cfg split of the module header would therefore need two copies of the same prose maintained forever, and the header exists specifically to state both arms of the trust story side by side. Platform rule-drift between two near-identical copies is a failure mode this stack has already been reviewed for; trading it for a lint nobody runs is the wrong direction.
If it is worth closing at all, it is by demoting the two cross-platform mentions from intra-doc links to plain code spans — one character each, no duplication. Noted as a follow-up, not changing it here.
| #[cfg(not(target_os = "macos"))] | ||
| const OPENER: &str = "xdg-open"; | ||
|
|
||
| std::process::Command::new(OPENER) |
There was a problem hiding this comment.
P3: On Linux the added xdg-open path still uses .spawn().map(|_| ()), so a non-zero xdg-open exit (no browser, no DISPLAY) is reported as success. The new doc comment's soft-fail promise only holds when the binary itself is missing; in the common headless/bare-session case the caller logs "system browser launched" and the user hangs until the 5-min loopback timeout. Consider waiting on and checking xdg-open's exit status so the soft-fail (log URL) path in perform_interactive_login actually triggers, or capture stderr for the log.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/upstream/src/login.rs, line 317:
<comment>On Linux the added xdg-open path still uses `.spawn().map(|_| ())`, so a non-zero xdg-open exit (no browser, no DISPLAY) is reported as success. The new doc comment's soft-fail promise only holds when the binary itself is missing; in the common headless/bare-session case the caller logs "system browser launched" and the user hangs until the 5-min loopback timeout. Consider waiting on and checking xdg-open's exit status so the soft-fail (log URL) path in perform_interactive_login actually triggers, or capture stderr for the log.</comment>
<file context>
@@ -300,12 +300,21 @@ pub(crate) async fn mint_session_from_access_token(
+ #[cfg(not(target_os = "macos"))]
+ const OPENER: &str = "xdg-open";
+
+ std::process::Command::new(OPENER)
.arg(url)
.stdin(std::process::Stdio::null())
</file context>
There was a problem hiding this comment.
Disagree — waiting on xdg-open is not safe here.
open_system_browser is a blocking fn called inline from perform_interactive_login (login.rs:135), itself awaited on the Tokio runtime from the auth_login Tauri command (src-tauri/src/commands.rs:84). .wait() there blocks a runtime thread, and xdg-open has no guaranteed prompt exit: with no desktop portal handler it falls through to the generic $BROWSER path and execs the browser in the foreground, returning only when the browser exits. So on exactly the bare sessions this comment targets, waiting would block for the browser's whole lifetime and wait_for_callback would never run — login breaks for those users rather than degrading. try_wait() right after spawn reports nothing useful either, so there is no correct wait point.
This also matches the reference implementation it mirrors, login.ts::defaultOpenBrowser (apps/api/src/cli/commands/auth/login.ts:227-240), which resolves on spawn and treats only the spawn error as failure — on every platform, xdg-open included. The macOS open path had the same fire-and-forget shape before this PR; the Linux branch did not change the contract.
On the reachability of the headless case: this is only reached from the Tauri window's own IPC command, so a display server is already present. The authorize URL is logged either way (debug! at login.rs:134 on the success path, warn! with the URL at login.rs:137-141 on spawn failure).
There was a problem hiding this comment.
All reported issues were addressed across 34 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found and verified against the latest diff
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:166">
P1: PRs can become unmergeable, or branch protection can continue checking only a stale/missing base check, because each required native job is now a matrix without a stable aggregator check. Adding non-matrix `rust-checks`, `contract-suite`, and `tauri-build` aggregator jobs that depend on the corresponding matrices and fail when either leg fails would preserve the required check names while gating both targets.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
All reported issues were addressed across 34 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 34 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:767">
P1: A failure in the `changes` gate can currently make the required checks pass without running any matrix leg: `if: always()` still schedules this aggregator, and `success|skipped` accepts the dependent job's skip even when `changes` itself failed. The aggregator should require `needs.changes.result == 'success'` before accepting a skipped matrix.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 34 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:451">
P2: The new Linux contract leg does not test the Linux keyring path: every `describeLocalApiKeychain` suite is skipped on Ubuntu, while the job still reports success. Provisioning a D-Bus Secret Service for this leg, or explicitly separating/labeling the skipped keychain coverage, would keep the Linux support gate from appearing more complete than it is.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macos-latest, ubuntu-22.04] |
There was a problem hiding this comment.
P2: The new Linux contract leg does not test the Linux keyring path: every describeLocalApiKeychain suite is skipped on Ubuntu, while the job still reports success. Provisioning a D-Bus Secret Service for this leg, or explicitly separating/labeling the skipped keychain coverage, would keep the Linux support gate from appearing more complete than it is.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/native.yml, line 451:
<comment>The new Linux contract leg does not test the Linux keyring path: every `describeLocalApiKeychain` suite is skipped on Ubuntu, while the job still reports success. Provisioning a D-Bus Secret Service for this leg, or explicitly separating/labeling the skipped keychain coverage, would keep the Linux support gate from appearing more complete than it is.</comment>
<file context>
@@ -325,14 +432,24 @@ jobs:
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [macos-latest, ubuntu-22.04]
+ runs-on: ${{ matrix.os }}
timeout-minutes: 30
</file context>
There was a problem hiding this comment.
The leg is not silently green on that coverage. describeLocalApiKeychain (apps/native/e2e/helpers.ts:153) is a named skipIf predicate specifically so the suite reports as visibly skipped in bun test output rather than vanishing, and its doc comment states both the cause (CI Linux runners have no session bus and no unlocked keyring daemon) and the remedy (stand up gnome-keyring-daemon in the job, not relax the suite). That is the "explicitly separate/label the skipped keychain coverage" option; provisioning a Secret Service is deferred, not implied to be covered.
There was a problem hiding this comment.
All reported issues were addressed across 34 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
2 issues found across 34 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:188">
P2: The ubuntu `test` leg's job-level `timeout-minutes: 60` conflicts with the accumulated per-step budgets and the leg's real compile cost. That leg runs `Build the test binaries` (capped at 40 min) plus 8 per-crate steps totaling ~90 min of step timeout. Since the job is hard-cancelled at 60 min wall-clock, a cold build that takes 25–35 min (the PR's own measured range) leaves only ~25–30 min for all 8 test steps — so the last steps, and in particular `cargo test -p deco` (the final step carrying this port's `cfg(linux)` assertion), will routinely be cancelled before they run. That silently narrows exactly the Linux gate this PR is built to add. Consider raising the job-level timeout or dropping the low-value `local-api tests — whole crate` step (see the other comment) to keep the budget viable on a cold cache.</violation>
<violation number="2" location=".github/workflows/native.yml:866">
P1: A failed or cancelled `changes` gate can currently let the required check pass: this aggregator accepts a skipped matrix without checking `needs.changes.result`, so the dependent job is skipped and the script exits 0. Requiring `needs.changes.result == 'success'` before accepting a skipped leg would preserve path-based skips while preventing merges with no validation.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| # glib, soup) from source, once for clippy's dev profile and again for | ||
| # test's — where macOS links system frameworks and finishes in ~3 min. | ||
| # A cold cache ran 25-35 min and was killed mid-`cargo test` at 30. | ||
| timeout-minutes: 60 |
There was a problem hiding this comment.
P2: The ubuntu test leg's job-level timeout-minutes: 60 conflicts with the accumulated per-step budgets and the leg's real compile cost. That leg runs Build the test binaries (capped at 40 min) plus 8 per-crate steps totaling ~90 min of step timeout. Since the job is hard-cancelled at 60 min wall-clock, a cold build that takes 25–35 min (the PR's own measured range) leaves only ~25–30 min for all 8 test steps — so the last steps, and in particular cargo test -p deco (the final step carrying this port's cfg(linux) assertion), will routinely be cancelled before they run. That silently narrows exactly the Linux gate this PR is built to add. Consider raising the job-level timeout or dropping the low-value local-api tests — whole crate step (see the other comment) to keep the budget viable on a cold cache.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/native.yml, line 188:
<comment>The ubuntu `test` leg's job-level `timeout-minutes: 60` conflicts with the accumulated per-step budgets and the leg's real compile cost. That leg runs `Build the test binaries` (capped at 40 min) plus 8 per-crate steps totaling ~90 min of step timeout. Since the job is hard-cancelled at 60 min wall-clock, a cold build that takes 25–35 min (the PR's own measured range) leaves only ~25–30 min for all 8 test steps — so the last steps, and in particular `cargo test -p deco` (the final step carrying this port's `cfg(linux)` assertion), will routinely be cancelled before they run. That silently narrows exactly the Linux gate this PR is built to add. Consider raising the job-level timeout or dropping the low-value `local-api tests — whole crate` step (see the other comment) to keep the budget viable on a cold cache.</comment>
<file context>
@@ -140,19 +140,52 @@ jobs:
+ # glib, soup) from source, once for clippy's dev profile and again for
+ # test's — where macOS links system frameworks and finishes in ~3 min.
+ # A cold cache ran 25-35 min and was killed mid-`cargo test` at 30.
+ timeout-minutes: 60
steps:
- name: Checkout repository
</file context>
| timeout-minutes: 60 | |
| timeout-minutes: 90 |
There was a problem hiding this comment.
Stale — that structure no longer exists. There is no --no-run build step and no eight per-crate steps with individual timeouts. The ubuntu leg is split across two runners (task: lint / task: test, native.yml:176-182), and the test leg has exactly one timed step, cargo test (Linux) at 25 min, under the 60-min job cap. Measured on run 30857492932: that step took 5m25s (22:14:42 to 22:20:07).
There was a problem hiding this comment.
Review completed against the latest diff
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 34 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:188">
P3: The job-level `timeout-minutes: 60` is the real ceiling for the Linux test leg, but the per-step budgets are set as if each is independently achievable — their worst-case sum (40 + 10 + 10 + 4×12 + 12 + 10) is ~110 min. On a cold cache where the `--no-run` build uses a large share of the 60-minute budget, the later per-crate/per-module steps get clipped by the job cap, which is precisely the partial-coverage, mid-run-stop outcome the diff is trying to eliminate. Consider raising the job timeout to match the sum of its bounded steps, or moving the `--no-run` build into its own job, so the per-step timeouts (not the job cap) are what actually bound each step.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| # glib, soup) from source, once for clippy's dev profile and again for | ||
| # test's — where macOS links system frameworks and finishes in ~3 min. | ||
| # A cold cache ran 25-35 min and was killed mid-`cargo test` at 30. | ||
| timeout-minutes: 60 |
There was a problem hiding this comment.
P3: The job-level timeout-minutes: 60 is the real ceiling for the Linux test leg, but the per-step budgets are set as if each is independently achievable — their worst-case sum (40 + 10 + 10 + 4×12 + 12 + 10) is ~110 min. On a cold cache where the --no-run build uses a large share of the 60-minute budget, the later per-crate/per-module steps get clipped by the job cap, which is precisely the partial-coverage, mid-run-stop outcome the diff is trying to eliminate. Consider raising the job timeout to match the sum of its bounded steps, or moving the --no-run build into its own job, so the per-step timeouts (not the job cap) are what actually bound each step.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At .github/workflows/native.yml, line 188:
<comment>The job-level `timeout-minutes: 60` is the real ceiling for the Linux test leg, but the per-step budgets are set as if each is independently achievable — their worst-case sum (40 + 10 + 10 + 4×12 + 12 + 10) is ~110 min. On a cold cache where the `--no-run` build uses a large share of the 60-minute budget, the later per-crate/per-module steps get clipped by the job cap, which is precisely the partial-coverage, mid-run-stop outcome the diff is trying to eliminate. Consider raising the job timeout to match the sum of its bounded steps, or moving the `--no-run` build into its own job, so the per-step timeouts (not the job cap) are what actually bound each step.</comment>
<file context>
@@ -140,19 +140,52 @@ jobs:
+ # glib, soup) from source, once for clippy's dev profile and again for
+ # test's — where macOS links system frameworks and finishes in ~3 min.
+ # A cold cache ran 25-35 min and was killed mid-`cargo test` at 30.
+ timeout-minutes: 60
steps:
- name: Checkout repository
</file context>
There was a problem hiding this comment.
Stale — that structure no longer exists. There is no --no-run build step and no eight per-crate steps with individual timeouts. The ubuntu leg is split across two runners (task: lint / task: test, native.yml:176-182), and the test leg has exactly one timed step, cargo test (Linux) at 25 min, under the 60-min job cap. Measured on run 30857492932: that step took 5m25s (22:14:42 to 22:20:07).
There was a problem hiding this comment.
1 issue found across 35 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:875">
P1: A failure in the `changes` gate is currently converted into a green required check: because the aggregator runs with `always()` and accepts `rust-checks-os.result == skipped`, a failed gate skips the matrix and still reports success. The aggregators would need to require `needs.changes.result == 'success'` before treating a skipped matrix as an intentional irrelevant-paths pass; apply the same guard to `contract-suite` and `tauri-build`.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
1 issue found across 35 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/native/crates/local-api/src/process_group.rs">
<violation number="1" location="apps/native/crates/local-api/src/process_group.rs:715">
P2: When the `ps` probe is unavailable or returns a non-self PGID, this fallback kills only the shell PID, but the `sh -c "sleep 30"` fixture may retain `sleep` as a child. Since this test's unanchored `wait` checks only the direct child, it can pass while leaking a background process; a single-process fixture or descendant-aware fallback would make the cleanup assertion reliable.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| let target = if leads_own_group { | ||
| format!("-{pid}") | ||
| } else { | ||
| pid.to_string() |
There was a problem hiding this comment.
P2: When the ps probe is unavailable or returns a non-self PGID, this fallback kills only the shell PID, but the sh -c "sleep 30" fixture may retain sleep as a child. Since this test's unanchored wait checks only the direct child, it can pass while leaking a background process; a single-process fixture or descendant-aware fallback would make the cleanup assertion reliable.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/process_group.rs, line 715:
<comment>When the `ps` probe is unavailable or returns a non-self PGID, this fallback kills only the shell PID, but the `sh -c "sleep 30"` fixture may retain `sleep` as a child. Since this test's unanchored `wait` checks only the direct child, it can pass while leaking a background process; a single-process fixture or descendant-aware fallback would make the cleanup assertion reliable.</comment>
<file context>
@@ -697,8 +697,25 @@ mod tests {
+ let target = if leads_own_group {
+ format!("-{pid}")
+ } else {
+ pid.to_string()
+ };
let _ = std::process::Command::new("kill")
</file context>
There was a problem hiding this comment.
The premise does not hold: sh -c "sleep 30" never has a sleep descendant. Both dash (Ubuntu's /bin/sh) and bash-as-sh exec the sole simple command in place, so the pid returned by spawn() IS the sleep — ps -o comm= -p <pid> reports sleep, and nothing in the process table has it as ppid. There is no descendant for the pid-only fallback to orphan.
That is not incidental. The one test in this file that genuinely needs a descendant (leader_exit_and_closed_stdio_do_not_hide_a_live_group_descendant) has to construct one explicitly with sleep 30 >/dev/null 2>&1 & echo $! precisely because a plain sh -c fixture execs.
On the probe itself: it is not a portability hedge for hosts lacking ps, it guards a real race. process_group(0) is applied in the child, so there is a window after spawn() returns in which pid leads no group yet and -pid would address whatever group already owns that id. The probe is what proves the fixture is its own leader before the group form is used. Turning an absent ps into a test failure would trade a leak that cannot occur for a spurious failure; ps is POSIX-mandated and present on both CI platforms.
Separately, the negative target is now written kill -KILL -- -<pid>. The -- is load-bearing on Linux: without it procps-ng parses the leading - as a signal spec, is left with an empty pid list, and signals the caller's own process group. See process_util::group_signal_argv.
There was a problem hiding this comment.
All reported issues were addressed across 35 files
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
There was a problem hiding this comment.
2 issues found across 35 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/native/crates/local-api/src/process_group.rs">
<violation number="1" location="apps/native/crates/local-api/src/process_group.rs:712">
P3: When `ps` cannot prove the process group, this test kills only the shell and leaks its `sleep 30` descendant. A failed/missing `ps` therefore leaves orphaned processes across test runs; using a fixture that `exec`s the long-lived process or explicitly cleaning the descendant would keep the fallback safe without leaking.</violation>
</file>
<file name="apps/native/crates/harness/src/watchdog.rs">
<violation number="1" location="apps/native/crates/harness/src/watchdog.rs:55">
P2: The watchdog writes its PID list through a predictable temporary path, allowing another local process to redirect or interfere with enumeration and potentially overwrite an unrelated file. Creating the per-anchor file with `mktemp` (and retaining the fail-closed behavior if creation fails) would avoid this temp-file race.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| # BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS | ||
| # never showed it. A file keeps the enumeration free of any process this | ||
| # script creates to read it. | ||
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" |
There was a problem hiding this comment.
P2: The watchdog writes its PID list through a predictable temporary path, allowing another local process to redirect or interfere with enumeration and potentially overwrite an unrelated file. Creating the per-anchor file with mktemp (and retaining the fail-closed behavior if creation fails) would avoid this temp-file race.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/harness/src/watchdog.rs, line 55:
<comment>The watchdog writes its PID list through a predictable temporary path, allowing another local process to redirect or interfere with enumeration and potentially overwrite an unrelated file. Creating the per-anchor file with `mktemp` (and retaining the fail-closed behavior if creation fails) would avoid this temp-file race.</comment>
<file context>
@@ -24,55 +24,75 @@
+# BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS
+# never showed it. A file keeps the enumeration free of any process this
+# script creates to read it.
+members_file="${TMPDIR:-/tmp}/decocms-anchor-$$"
+trap 'rm -f "$members_file"' EXIT
+
</file context>
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" | |
| members_file="$(mktemp "${TMPDIR:-/tmp}/decocms-anchor.XXXXXX")" || while :; do sleep 60; done |
There was a problem hiding this comment.
Stale: members_file no longer exists. The anchor rewrite that introduced it was reverted in 6c66125a; PARENT_LIVENESS_WATCHDOG is back to members="$(/usr/bin/pgrep -g "$$" . 2>/dev/null)" (watchdog.rs:641 and :661), so there is no temp path, no > truncation, no TMPDIR dependency and no EXIT trap.
The rewrite's premise — that a command substitution adds a subshell pid to the enumeration — is false for a single-command substitution on either platform: the shell execs pgrep directly and pgrep omits itself. Measured, and now recorded at watchdog.rs:30-34.
The temp-file version was a regression for the reasons raised here plus two more: it leaked the file on SIGKILL (the EXIT trap does not run), and an unwritable TMPDIR could park cleanup forever. A pipe cannot fail either way.
| .ok() | ||
| .and_then(|out| String::from_utf8(out.stdout).ok()) | ||
| .is_some_and(|out| out.trim().parse::<u32>() == Ok(pid)); | ||
| let target = if leads_own_group { |
There was a problem hiding this comment.
P3: When ps cannot prove the process group, this test kills only the shell and leaks its sleep 30 descendant. A failed/missing ps therefore leaves orphaned processes across test runs; using a fixture that execs the long-lived process or explicitly cleaning the descendant would keep the fallback safe without leaking.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/process_group.rs, line 712:
<comment>When `ps` cannot prove the process group, this test kills only the shell and leaks its `sleep 30` descendant. A failed/missing `ps` therefore leaves orphaned processes across test runs; using a fixture that `exec`s the long-lived process or explicitly cleaning the descendant would keep the fallback safe without leaking.</comment>
<file context>
@@ -697,8 +697,25 @@ mod tests {
+ .ok()
+ .and_then(|out| String::from_utf8(out.stdout).ok())
+ .is_some_and(|out| out.trim().parse::<u32>() == Ok(pid));
+ let target = if leads_own_group {
+ format!("-{pid}")
+ } else {
</file context>
There was a problem hiding this comment.
The premise does not hold: sh -c "sleep 30" never has a sleep descendant. Both dash (Ubuntu's /bin/sh) and bash-as-sh exec the sole simple command in place, so the pid returned by spawn() IS the sleep — ps -o comm= -p <pid> reports sleep, and nothing in the process table has it as ppid. There is no descendant for the pid-only fallback to orphan.
That is not incidental. The one test in this file that genuinely needs a descendant (leader_exit_and_closed_stdio_do_not_hide_a_live_group_descendant) has to construct one explicitly with sleep 30 >/dev/null 2>&1 & echo $! precisely because a plain sh -c fixture execs.
On the probe itself: it is not a portability hedge for hosts lacking ps, it guards a real race. process_group(0) is applied in the child, so there is a window after spawn() returns in which pid leads no group yet and -pid would address whatever group already owns that id. The probe is what proves the fixture is its own leader before the group form is used. Turning an absent ps into a test failure would trade a leak that cannot occur for a spurious failure; ps is POSIX-mandated and present on both CI platforms.
Separately, the negative target is now written kill -KILL -- -<pid>. The -- is load-bearing on Linux: without it procps-ng parses the leading - as a signal spec, is left with an empty pid list, and signals the caller's own process group. See process_util::group_signal_argv.
| // remoteImageLoads is deliberately NOT gating: it fetches a real asset | ||
| // over the public internet, so a runner with no egress fails it for | ||
| // reasons that say nothing about this app. The property it exists to | ||
| // protect — that the packaged CSP does not block remote images — is | ||
| // still gated, by noCspViolations below: a CSP block raises a | ||
| // securitypolicyviolation, whereas an unreachable CDN does not. Its | ||
| // result is still reported, so a real regression is visible. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
There was a problem hiding this comment.
1 issue found across 36 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/native/crates/harness/src/watchdog.rs">
<violation number="1" location="apps/native/crates/harness/src/watchdog.rs:55">
P2: The watchdog can truncate an arbitrary file in the shared temp directory because this predictable `$$` path is opened with `>` rather than exclusive creation. Creating the list with `mktemp` (and parking on creation failure to preserve fail-closed cleanup) would prevent symlink/path-collision writes.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| # BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS | ||
| # never showed it. A file keeps the enumeration free of any process this | ||
| # script creates to read it. | ||
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" |
There was a problem hiding this comment.
P2: The watchdog can truncate an arbitrary file in the shared temp directory because this predictable $$ path is opened with > rather than exclusive creation. Creating the list with mktemp (and parking on creation failure to preserve fail-closed cleanup) would prevent symlink/path-collision writes.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/harness/src/watchdog.rs, line 55:
<comment>The watchdog can truncate an arbitrary file in the shared temp directory because this predictable `$$` path is opened with `>` rather than exclusive creation. Creating the list with `mktemp` (and parking on creation failure to preserve fail-closed cleanup) would prevent symlink/path-collision writes.</comment>
<file context>
@@ -24,55 +24,75 @@
+# BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS
+# never showed it. A file keeps the enumeration free of any process this
+# script creates to read it.
+members_file="${TMPDIR:-/tmp}/decocms-anchor-$$"
+trap 'rm -f "$members_file"' EXIT
+
</file context>
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" | |
| members_file="$(mktemp "${TMPDIR:-/tmp}/decocms-anchor-XXXXXX")" || while :; do sleep 60; done |
There was a problem hiding this comment.
Stale: members_file no longer exists. The anchor rewrite that introduced it was reverted in 6c66125a; PARENT_LIVENESS_WATCHDOG is back to members="$(/usr/bin/pgrep -g "$$" . 2>/dev/null)" (watchdog.rs:641 and :661), so there is no temp path, no > truncation, no TMPDIR dependency and no EXIT trap.
The rewrite's premise — that a command substitution adds a subshell pid to the enumeration — is false for a single-command substitution on either platform: the shell execs pgrep directly and pgrep omits itself. Measured, and now recorded at watchdog.rs:30-34.
The temp-file version was a regression for the reasons raised here plus two more: it leaked the file on SIGKILL (the EXIT trap does not run), and an unwritable TMPDIR could park cleanup forever. A pipe cannot fail either way.
There was a problem hiding this comment.
3 issues found across 37 files
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="apps/native/crates/harness/src/watchdog.rs">
<violation number="1" location="apps/native/crates/harness/src/watchdog.rs:55">
P2: Crash recovery can become permanently wedged for an invalid `TMPDIR`, while a pre-created PID-based symlink can redirect each enumeration write to an attacker-selected file. Creating the path with `mktemp` using a `/tmp` fallback would avoid both the symlink/collision risk and dependence on a writable inherited directory.</violation>
</file>
<file name=".github/workflows/native.yml">
<violation number="1" location=".github/workflows/native.yml:791">
P1: A failed or cancelled `changes` gate is treated the same as an intentionally irrelevant PR: the skipped matrix result makes this required check pass without running any legs. The aggregators would be safer if they first required `needs.changes.result == 'success'`, while still allowing a skipped matrix only after a successful changes gate; the same guard is needed in `contract-suite` and `tauri-build`.</violation>
</file>
<file name="apps/native/crates/local-api/src/process_group.rs">
<violation number="1" location="apps/native/crates/local-api/src/process_group.rs:733">
P2: When `ps` is unavailable or its output is not parseable, this fallback kills only the shell PID even though the `sleep 30` fixture can have a separate descendant, allowing cleanup to finish with an orphaned process. A process-tree-safe fallback or explicit descendant cleanup would avoid leaking fixtures when the probe fails.</violation>
</file>
Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.
Re-trigger cubic
| # BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS | ||
| # never showed it. A file keeps the enumeration free of any process this | ||
| # script creates to read it. | ||
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" |
There was a problem hiding this comment.
P2: Crash recovery can become permanently wedged for an invalid TMPDIR, while a pre-created PID-based symlink can redirect each enumeration write to an attacker-selected file. Creating the path with mktemp using a /tmp fallback would avoid both the symlink/collision risk and dependence on a writable inherited directory.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/harness/src/watchdog.rs, line 55:
<comment>Crash recovery can become permanently wedged for an invalid `TMPDIR`, while a pre-created PID-based symlink can redirect each enumeration write to an attacker-selected file. Creating the path with `mktemp` using a `/tmp` fallback would avoid both the symlink/collision risk and dependence on a writable inherited directory.</comment>
<file context>
@@ -24,55 +24,75 @@
+# BSD `pgrep` omits its ancestors, which hides the subshell and is why macOS
+# never showed it. A file keeps the enumeration free of any process this
+# script creates to read it.
+members_file="${TMPDIR:-/tmp}/decocms-anchor-$$"
+trap 'rm -f "$members_file"' EXIT
+
</file context>
| members_file="${TMPDIR:-/tmp}/decocms-anchor-$$" | |
| members_file="$(mktemp "${TMPDIR:-/tmp}/decocms-anchor-XXXXXX" 2>/dev/null || mktemp /tmp/decocms-anchor-XXXXXX)" || while :; do sleep 60; done |
There was a problem hiding this comment.
Stale: members_file no longer exists. The anchor rewrite that introduced it was reverted in 6c66125a; PARENT_LIVENESS_WATCHDOG is back to members="$(/usr/bin/pgrep -g "$$" . 2>/dev/null)" (watchdog.rs:641 and :661), so there is no temp path, no > truncation, no TMPDIR dependency and no EXIT trap.
The rewrite's premise — that a command substitution adds a subshell pid to the enumeration — is false for a single-command substitution on either platform: the shell execs pgrep directly and pgrep omits itself. Measured, and now recorded at watchdog.rs:30-34.
The temp-file version was a regression for the reasons raised here plus two more: it leaked the file on SIGKILL (the EXIT trap does not run), and an unwritable TMPDIR could park cleanup forever. A pipe cannot fail either way.
| .ok() | ||
| .and_then(|out| String::from_utf8(out.stdout).ok()) | ||
| .is_some_and(|out| out.trim().parse::<u32>() == Ok(pid)); | ||
| let target = if leads_own_group { |
There was a problem hiding this comment.
P2: When ps is unavailable or its output is not parseable, this fallback kills only the shell PID even though the sleep 30 fixture can have a separate descendant, allowing cleanup to finish with an orphaned process. A process-tree-safe fallback or explicit descendant cleanup would avoid leaking fixtures when the probe fails.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At apps/native/crates/local-api/src/process_group.rs, line 733:
<comment>When `ps` is unavailable or its output is not parseable, this fallback kills only the shell PID even though the `sleep 30` fixture can have a separate descendant, allowing cleanup to finish with an orphaned process. A process-tree-safe fallback or explicit descendant cleanup would avoid leaking fixtures when the probe fails.</comment>
<file context>
@@ -697,8 +718,25 @@ mod tests {
+ .ok()
+ .and_then(|out| String::from_utf8(out.stdout).ok())
+ .is_some_and(|out| out.trim().parse::<u32>() == Ok(pid));
+ let target = if leads_own_group {
+ format!("-{pid}")
+ } else {
</file context>
There was a problem hiding this comment.
The premise does not hold: sh -c "sleep 30" never has a sleep descendant. Both dash (Ubuntu's /bin/sh) and bash-as-sh exec the sole simple command in place, so the pid returned by spawn() IS the sleep — ps -o comm= -p <pid> reports sleep, and nothing in the process table has it as ppid. There is no descendant for the pid-only fallback to orphan.
That is not incidental. The one test in this file that genuinely needs a descendant (leader_exit_and_closed_stdio_do_not_hide_a_live_group_descendant) has to construct one explicitly with sleep 30 >/dev/null 2>&1 & echo $! precisely because a plain sh -c fixture execs.
On the probe itself: it is not a portability hedge for hosts lacking ps, it guards a real race. process_group(0) is applied in the child, so there is a window after spawn() returns in which pid leads no group yet and -pid would address whatever group already owns that id. The probe is what proves the fixture is its own leader before the group form is used. Turning an absent ps into a test failure would trade a leak that cannot occur for a spurious failure; ps is POSIX-mandated and present on both CI platforms.
Separately, the negative target is now written kill -KILL -- -<pid>. The -- is load-bearing on Linux: without it procps-ng parses the leading - as a signal spec, is left with an empty pid list, and signals the caller's own process group. See process_util::group_signal_argv.
harness and upstream pass and the test binaries build, so local-api is the crate. Split it by module, process-spawning ones first and single-threaded, each bounded — the step left at null names the module the way the per-crate split named the crate. Co-Authored-By: Claude Fable 5 <[email protected]>
These tests create and kill process groups, and the killer signals every pid pgrep returns. procps and BSD pgrep disagree about what a group contains, so a group that on macOS holds only the fixture can on Linux include the runner — which is what a 50-minute job with an incomplete step and no log upload looks like. setsid bounds it to the test's own group so a failure can report itself. Co-Authored-By: Claude Fable 5 <[email protected]>
procps documents `pgrep -g 0` as pgrep's OWN process group, so a zero id would enumerate the caller's group and signal every member — under cargo test that is the runner. BSD pgrep takes 0 literally and matches nothing, so the same call is a silent no-op on macOS. Also never signal our own pid, whatever enumeration returned. Co-Authored-By: Claude Fable 5 <[email protected]>
cleanup_warning_deadline_does_not_release_an_unreaped_owner ends with kill -KILL -<pid>, i.e. address the process GROUP with that id. When the fixture's process_group(0) has not taken effect the id owns no group, and on Linux the signal reaped the test binary itself — exit 137, the fixture left behind as an orphan, and the runner dead before it could upload a log. Address the group only once the fixture provably leads it. Co-Authored-By: Claude Fable 5 <[email protected]>
They write a helper script and exec it immediately; on Linux a concurrent fork inherits the open write descriptor and the exec fails ETXTBSY. macOS does not enforce that, so it surfaces only here and only intermittently. Co-Authored-By: Claude Fable 5 <[email protected]>
cleanup_warning_deadline_does_not_release_an_unreaped_owner is SIGKILLed part-way through on a GitHub ubuntu runner — exit 137 with the shell's Killed line, the OOM-killer's signature. It survives setsid, so it is not this suite killing its own runner, and it reproduces with ~20 GiB free, so it is not disk. Diagnosing it needs a Linux box to watch; macOS keeps running it every build. Also collapses the per-crate bisection scaffolding back into one step now that it has done its job, keeping the two platform-specific mitigations it found. Co-Authored-By: Claude Fable 5 <[email protected]>
The anchor enumerated its group inside a command substitution. That forks a subshell which inherits the group, and procps-ng pgrep omits only itself — so on Linux the subshell was reported as a member on every pass, the group never looked empty, and the anchor looped at ~20Hz spawning pgrep, kill and sleep until the machine gave out. BSD pgrep omits its ancestors, which hid the subshell and is why macOS never saw it. That is one spinning shell per spawned task on Linux, so it would have shipped as a user-facing resource leak, not just a CI failure. Enumeration now writes to a file, keeping it free of any process the script creates to read it. Un-ignores the process-group test quarantined in the previous commit: it was a victim of this, starved by earlier tests' anchors, not a defect of its own. Co-Authored-By: Claude Fable 5 <[email protected]>
remoteImageLoads fetches a real asset from assets.decocache.com, so a runner without egress fails the whole smoke for a reason that says nothing about the app — it has now done so twice. The property it protects, that the packaged CSP does not block remote images, stays gated by noCspViolations: a CSP block raises a securitypolicyviolation, an unreachable CDN does not. Its result is still reported. Also re-ignores the process-group test on Linux. The anchor-spin fix did not resolve it — it reproduces after that fix, which is what the previous commit assumed would cover it. Co-Authored-By: Claude Fable 5 <[email protected]>
slow_git_group_is_term_kill_reaped_before_owner_finalizes destabilises a GitHub ubuntu runner the same way its process_group sibling does — the test process is SIGKILLed before the failure detail can flush. Both drive the TERM-then-KILL group reap, so they are cross-referenced as one investigation rather than two unrelated quarantines. macOS runs both every build. Co-Authored-By: Claude Fable 5 <[email protected]>
The kill point kept moving later — past 1000 completed tests — as individual suspects were excluded, which is accumulation in one long-lived test process, not a bad test. So run local-api as several processes and let each chunk's memory be reclaimed. That also removes both Linux quarantines: if the cause is accumulation, those two tests never needed excluding, and leaving them ignored would hide working coverage. Chunk coverage is asserted: 509 + 103 + 51 + 162 = 825, the whole crate. Co-Authored-By: Claude Fable 5 <[email protected]>
…t on assert_process_group_gone allowed one second for the group to disappear, but the anchor runs up to 20 TERM rounds at 50ms — a full second — before it even begins KILL rounds. The deadline was exactly the escalation budget, so the assertion raced the behaviour it was checking; macOS won that race and Linux lost it. Co-Authored-By: Claude Fable 5 <[email protected]>
The assertion probes kill -0 -<git_pid>, the process group whose id is the fake git's pid. Under the anchor design git is not its own group leader, so that group should not exist and the probe should fail at once — as it does on macOS. On Linux it keeps succeeding, and 15s (fifteen times the anchor's own escalation) does not clear it, so either the workload is not joining the anchor's group there or a member survives the KILL round. Every other assertion this test makes about the sweep passes on Linux; it is specifically the group-is-gone proof that does not hold. Reproducing needs a Linux box to watch ps -o pid,pgid,comm during the sweep. Co-Authored-By: Claude Fable 5 <[email protected]>
These two spawn a real process group and then observe or reap it, and on a GitHub ubuntu runner that reliably kills the test process. With the git reap proof they are one symptom set — Linux process-group observation and teardown — rather than three unrelated failures, and they are cross-referenced as such. macOS runs all three every build, and the pure parsing and resolve_executable tests around them still run on Linux. Co-Authored-By: Claude Fable 5 <[email protected]>
With the suite chunked into separate processes every other chunk passes and this test alone still SIGKILLs its own — so the accumulation was real and this test is independently hostile on Linux. The comment records the ignore / un-ignore / re-ignore sequence and why, so the same experiment does not get run a third time. Co-Authored-By: Claude Fable 5 <[email protected]>
…rewrite Verified in a real Linux container rather than inferred from CI, which had been dying before it could report anything. The git reap test failed because procps-ng kill(1) inverts its exit status for a negative pid: under strace a live group gives kill(-N,0)=0 then exit(1), and a dead one gives ESRCH then exit(0). The probe therefore read backwards on Linux and waited out its budget on a group that had been gone for 200ms. It now asks pgrep -g, which answers the same way on both platforms. ps snapshots confirm the product code was right: the workload does join the anchor's group, and the group is fully torn down in ~340ms. The anchor rewrite is reverted. Its premise — that a command substitution adds a subshell pid to the enumeration — is false for a single-command substitution on both platforms, and the original exits in tens of milliseconds. The replacement was a regression: it leaked its temp file on SIGKILL, took a predictable path, and could park cleanup forever if TMPDIR were unwritable, where the original writes to a pipe and cannot. The procps-vs-BSD note and the $$ skip are kept, now citing the measurement. All four Linux quarantines are removed: they pass on Linux. Co-Authored-By: Claude Fable 5 <[email protected]>
These two pass on a real Linux kernel — 5/5 each in a container with native /proc, procps and process groups — but still SIGKILL a GitHub-hosted runner mid-chunk. So the exclusion is about the runner environment, not the Linux port: the behaviour under test is confirmed working. The note records the zombie lead and is explicit that it did not reproduce on demand. Co-Authored-By: Claude Fable 5 <[email protected]>
It passes on a real Linux kernel (5/5 in a container) and still SIGKILLs a GitHub runner mid-chunk, with every other chunk of the crate passing there — so it is this test against that runner, not accumulation, which the chunking already disproved. A CI exclusion, not a port gap. Co-Authored-By: Claude Fable 5 <[email protected]>
…roken there The ubuntu leg this branch adds is the first thing ever to run main's PTY watchdog test on Linux, and it fails: tty_vhangup detaches the controlling terminal from the whole session when the PTY master closes, which is exactly what an owner SIGKILL does. reap_terminal enumerates only through ps -t <tty> and reads its exit 1 as an empty tty, so it signals nothing and then releases the lifetime fence with the wrapper, workload and descendant all still running. macOS keeps the session-to-tty association, so the same reap works there. Reproduced 3/3 against pristine origin/main in a container, so this predates the Linux port. The same ps -t primitive backs signal_terminal_members in production, where it reports success for the hung-up case — the interactive path is fine because Studio still holds the master; crash recovery is not. Ignored rather than fixed: enumerating by session id instead of tty is a design change to the PTY watchdog, platform-branched because macOS ps prints sess 0, and it belongs to that feature's owners. Co-Authored-By: Claude Fable 5 <[email protected]>
…erminal The crash-recovery fence released while the workload was still alive on Linux. When the owner is SIGKILLed it closes the PTY master, and Linux's `tty_vhangup` then detaches the controlling terminal from the WHOLE session: every member's tty becomes `?`. `reap_terminal` enumerated only via `ps -t <tty>` and treated exit 1 as "the tty is empty, we are done", so it signalled nothing, ran `cleanup_control` and exited 0 — releasing the shared child-lifetime fence over a wrapper, a workload and its descendant that were all still running and still forking. Reproduces 3/3 against pristine main; it predates the Linux port and only surfaced when the ubuntu CI leg was added. macOS is unaffected: BSD keeps the session→terminal association, so `ps -t` still lists the members there. Enumeration is now split out of the reaper and platform-branched. On Linux the session id survives the hangup, so the reaper unions `ps -t` and `ps -s` and concludes "empty" only after every witness has spoken; a hung-up tty is not a witness (its `ps` exit 1 is indistinguishable from "matched nothing"), and once the slave node is gone the witness is latched off for the rest of the teardown so a recycled pts index cannot be mistaken for the original. macOS keeps exactly the tty path it had. `signal_terminal_members` had the same blindness — it returned success for the hung-up case — and now shares the rule. A zombie is not a live member, or the reaper never terminates: `ps -s` keeps listing orphaned zombies that `ps -t` used to drop, and `kill -0` answers for them. But on Linux state `Z` alone does not mean "no code is running" — a thread-group leader that exits while its threads run stays `Z` forever — so a `Z` row with more than one unreleased task is settled from the per-task view (`ps -L -o stat=`), which separates a husk from a live process that the row spec cannot. BSD has no thread-count keyword and no such state, so it keeps the plain rule. Also fixes a second defect found on the way: the tty was validated only against `??`, but Linux spells "no controlling terminal" `?`, and `ps -t '?'` does not fail — it exits 0 listing every ttyless process on the machine. Post-hangup, Interrupt/Term/Kill would have signalled all of them. Indeterminate still parks forever rather than releasing the fence — that property is preserved on every path, including the new ones. Removes the Linux-scoped ignore this stack added to `pty_watchdog_fences_every_owner_sigkill_startup_phase`, and adds two platform-gated tests: the Linux row-classification rule (mutation-killed against both weaker rules) and the macOS latch releasing rather than parking. Known macOS gap, unchanged from before and documented in place: a survivor that outlives the wrapper is not enumerable by any BSD selector, so the fence releases without proof. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
e055888 to
c55196b
Compare
`kill -SIG -<pgid>` is not portable. procps-ng reads any leading `-` token as a signal spec wherever it appears, so a bare negative pid leaves it holding an EMPTY pid list — and it then signals the CALLER's own process group instead of the group asked for. Measured with the target in its own group and a canary in the caller's, identical on procps-ng 3.3.17 (Ubuntu 22.04, Debian 11, RHEL 8-9) AND 4.0.4 (Ubuntu 24.04): kill -KILL -<pgid> target survives, CALLER'S GROUP IS SIGKILLED kill -KILL -- -<pgid> rc 0, target killed, caller untouched BSD kill(1) accepts the negative form, which is why macOS never showed any of this, and why the claim in harness/Cargo.toml that shelling out to kill(1) is "POSIX-portable" held up for two years — it is true only for positive pids. That claim is corrected here; it is what licensed the pattern. Two shipping paths were affected on Linux: - `terminal-session::signal_child` — the terminal's Ctrl-C / stop button. It never delivered SIGINT to the foreground job, and on Ubuntu kill(1) exits 0, so Studio reported the interrupt as delivered while nothing happened: a user could not stop a runaway command. Fixed by dropping `run_kill` for the crate's own `signal_non_anchor_members`, which is `pgrep -g` plus one kill per POSITIVE pid — portable everywhere tested, and consistent with how the TERM and KILL arms already worked. Semantic delta: an already-empty foreground group now returns Ok, not Err. - `local-api::process_util::kill_group` — dev-server teardown and persisted-orphan reaping. Reaping a stale dev server SIGTERMed then SIGKILLed Studio's own group and left the server running. Fixed with `--`, factored into `group_signal_argv` with a unit test so the separator cannot be dropped silently. This is also what killed the GitHub runner. The three tests excluded as "ignored on the runner, passes on a real kernel" were signalling their own process group; because `setsid --wait` does not fork when the caller is not already a group leader, cargo IS the session leader, so the tests SIGKILLed cargo and the test binary while the fixture survived. That matches the CI logs exactly (exit 137, orphaned sh+sleep pairs, three runs). All three are fixed and re-enabled, so `apps/native` now has no Linux-scoped ignores at all. The workflow comments that blamed accumulation and credited `setsid` with protection it cannot provide are corrected: excluding three self-killing tests one at a time produces precisely the moving kill point that was read as accumulation. None of this was visible because `terminal-session` was never in the Linux test list. It is added here. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
From the bot review backlog on this stack. Only the findings that survived an adversarial pass are here; the rest were stale, already fixed, or wrong, and are answered on the PRs. CI integrity: - The three aggregator jobs carrying the required check names accepted a `skipped` leg without looking at the gate. If `changes` failed or was cancelled, all three legs skipped, the aggregators exited 0, and the checks branch protection watches went green with no macOS or Linux job having run. They now fail unless `needs.changes.result == 'success'`. `changes` has no `if:` and no `needs`, so `skipped` is unreachable and the "required check that never runs blocks the merge forever" trap this pattern exists to avoid is not resurrected; check names are unchanged. - Both ubuntu legs shared one rust-cache entry — rust-cache keys on `GITHUB_JOB`, not on matrix values, so the `test` leg restored the `lint` leg's cache with a full match and its post step saved nothing. Keyed on `matrix.task` now; the comment claiming each leg saved its own cache was false. - The `setup::` chunk re-ran the whole `routes::setup::` subtree, because cargo test filters are substring matches and `routes` declares `pub mod setup`. Skipped explicitly. Measured: the four invocations are now an exact partition of the crate (no gap, no overlap), where before 21 tests ran twice. Correctness: - The git process-group tripwire proved nothing. It probed `pgrep -g <git pid>`, but `ProcessGroupChild::spawn` puts the child in the ANCHOR's group, so git is never a group leader and the probe exited 1 on its first call — the assertion passed vacuously. It now reads the real pgid via `ps -o pgid=`, with `assert_ne!(pgid, pid)` so the old shape cannot come back. Same family as the negative-pid `kill` defect fixed earlier in this stack: pgid semantics assumed rather than measured. - The same tests' liveness probes treated a `pgrep` failure as "the group is empty", i.e. failed open on the one question they exist to answer. They now fail closed. - Two 15s poll loops spun on `yield_now()` while forking `pgrep` per iteration on a runtime thread; they sleep 25ms instead. Accuracy — this repo treats a false comment as a defect: - `LocalTls::ca_pem` carries the in-memory issuer so the child CA bundle no longer depends on re-reading `ca-cert.pem`, which `ensure()` never reads on the reuse path. The doc names the one consumer still taking the on-disk path (`NODE_EXTRA_CA_CERTS`, via `TlsFiles`) rather than claiming everything now uses the in-memory copy; closing that one needs a per-boot cert file and is left as a follow-up. - The AppImage check greps for libfuse.so.2; it does not prove static linkage, so the step is renamed for what it gates. Measured on a static-PIE binary: 22-entry dynamic section, ZERO DT_NEEDED — so "reject any DT_NEEDED" would pass it, and only "require no dynamic section" would reject it. Naming it "statically linked" oversold it. - The Linux boot smoke launches the extracted `AppRun`, not the inner binary — only `AppRun` exports the WebKit exec and library paths. - `gatingKeys` named two keys the selftest bundle never emits, so real gating failures were logged as `[INFO]`. It now mirrors the bundle's `gating` array exactly. Coverage: - `src-tauri/selftest/bundle.js` is `include_str!`-ed into the shell and is what the smoke gates on, but no freshness input covered it: editing it and running the smoke reported "found fresh bundle" and smoked the previously embedded selftest. Added, along with `fetch-rclone.sh` and the per-platform Tauri config overlay. - Added a Linux-gated test for the selftest origin rule — the only test over `control_origin_for` was `cfg(not(linux))`, so nothing pinned the platform whose behaviour it describes. - `vite.config.ts` now points the Linux dev proxy at the plaintext listener; local-api is not TLS there under `tauri dev`. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
| // The overlay sets bundle.targets/category/icon, so editing it changes the | ||
| // AppImage — the staleness guard must treat it as a build input or a | ||
| // packaging-only change smokes green against the previous bundle. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
| // The Tauri CLI merge-patches the platform overlay over the config | ||
| // above, so `bundle.targets`/`category`/`icon` edits change the artifact | ||
| // without touching anything else listed here. Per-platform (see | ||
| // `SmokeTarget.configOverlayPath`) — it is committed everywhere. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
| // `beforeBuildCommand` runs this, and `externalBin` bundles what it | ||
| // fetches, on BOTH platforms — so a re-pinned RCLONE_VERSION changes the | ||
| // bundle while leaving every other input untouched. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
| // The selftest script itself, `include_str!`-ed into the shell by | ||
| // `src-tauri/src/selftest.rs` — and the thing this smoke reads its | ||
| // verdict from. It lives in `src-tauri/selftest/`, which no walk below | ||
| // covers (`src-tauri/src` does not reach it), so without this line | ||
| // editing a check and re-running smokes the PREVIOUSLY embedded | ||
| // selftest and reports "found fresh bundle": the exact stale-bundle | ||
| // false-green this guard exists to prevent. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
| // across the whole boot (`setup.rs`'s captor script). The remote image | ||
| // load is REPORTED but NOT gating — it is network-dependent, so a | ||
| // runner without egress fails it for reasons unrelated to the app. The | ||
| // CSP property it protects is gated by `noCspViolations` instead: a CSP | ||
| // block raises a `securitypolicyviolation`, an unreachable CDN does not. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
| // Must match the scheme local-api actually listens on, which follows the | ||
| // shell's control origin. Linux keeps that origin plain http unless | ||
| // DECOCMS_LINUX_SECURE_ORIGIN=1 (see src-tauri/src/setup.rs), so defaulting to | ||
| // https there makes every proxied path fail: `secure: false` on a proxy entry | ||
| // only skips certificate validation, it still opens a TLS handshake against a | ||
| // plaintext socket. The page origin is unaffected — `nativeTlsFiles` above | ||
| // reads a macOS-only path, so Vite already serves plain http on Linux. |
There was a problem hiding this comment.
A comment that takes a paragraph to justify a workaround is a signal the code is wrong, not the comment — fix the code, don't explain it away (CLAUDE.md).
|
Superseded by #5556, which merged the complete Linux stack including phase 1 compile/boot, phase 2 org filesystem support, and phase 3 release/download work. The stacked phase branches no longer carry an independent production delta. |
Summary
Phase 1 of Linux support for the desktop app: the port compiles, boots, signs in, and runs agents on Linux. Full plan (18 work items across 3 phases) lands here as
apps/native/docs/linux-support-plan.md. Phases 2 (org-FS mount) and 3 (release pipeline, AppImage on the update channel, web download surface) follow separately.Scope decision: v1 Linux distribution is AppImage + the existing tauri updater channel. AUR/apt/COPR deferred; Flatpak/Snap out of scope.
Every change is cfg/OS-gated — macOS runtime behavior and produced artifacts are unchanged.
What's here
DECOCMS_LINUX_SECURE_ORIGIN, since a fatal boot path on Linux has no cask to reinstall from;show_boot_failurenames the variable.SSL_CERT_FILE, fail-closed:SSL_CERT_FILEreplaces the root store, so nothing is exported unless a system bundle was found. Otherwise codex would silently lose the public internet.org/, with aDECOCMS_DISABLE_ORG_FSruntime escape.APPIMAGEenv var. The plugin rewrites$APPIMAGEin place and has no such guard, so a dev/deb/rpm binary would overwrite itself.tauri.linux.conf.json5overlay targeting appimage; the PNG sizes Linux bundlers need.rust-checks,tauri-buildandcontract-suite; the root test runner now discoversapps/native/scripts, which no workflow executed before.debug && macos) separated from namespace choice (debug), pinned by a four-quadrant test instead of resting on an incidental cfg constant.Testing
macOS gates green:
cargo test --workspace1092 pass / 0 fail,cargo clippy --workspace --all-targets -D warningsclean,cargo fmt --checkclean,bun run check/lint/fmt:check/knipclean.Known verification gap: no
cfg(target_os = "linux")code compiles on a macOS host — roughly ten cfg blocks plus all ofwebview_trust.rs. It was audited by hand against vendored crate sources (webkit2gtk =2.0.2matches wry's exact pin;allow_tls_certificate_for_hostandconnect_load_failed_with_tls_errorsare both gated onv2_6, and the signal's closure signature matches). The new ubuntu legs in this PR are the first real check — expect iteration.Four tests never execute on macOS and rely on the ubuntu leg: the two in
webview_trust,env_path::unix::tests::fallback_dirs_use_linux_locations, and a cfg(linux) assertion indev.rs.🤖 Generated with Claude Code
Summary by cubic
Adds phase 1 Linux support for the desktop app: AppImage builds compile, boot, sign in, and run agents on Linux. Also fixes a Linux group‑signal bug so Ctrl‑C and teardown work reliably; macOS behavior and shipped artifacts are unchanged, and PTY crash‑recovery on Linux is fixed by reaping sessions by ID.
New Features
DECOCMS_LINUX_SECURE_ORIGIN.SSL_CERT_FILEwhen a system store is found; Node/Bun also getNODE_EXTRA_CA_CERTS.xdg-open; PATH repair and the ripgrep hint include Linux; preview iframes enabled via a preview‑host observer.DECOCMS_DISABLE_ORG_FS; updater runs only whenAPPIMAGEis set.Build & CI
tauri.linux.conf.json5targeting AppImage and Linux icons; pinnedwebkit2gtk = "=2.0.2"withv2_6;rclonefetch includes Linux slugs and resolves inside the AppImage.AppRun, pins@tauri-apps/cli2.11.4, requests software rendering for headless Linux, dumps stdout/stderr, includesselftest/bundle.js,fetch-rclone.sh, and the Linux config in freshness inputs, and fixes self‑test gating keys; no longer gates on public CDN egress.apps/native/scriptsunit tests; runterminal-sessiontests on Linux.pgrep -g, refuse group0, skip own pid, verify leadership before signaling, usekill -- -<pgid>for group targets, and deliver Ctrl‑C by enumerating pids and signaling each positive pid.rust-checks,tauri-build, andcontract-suite; split Linux lint/test, free runner disk, cap link parallelism, chunklocal-apitests, serializeupstreamtests on Linux; CI aggregators now fail unlesschangessucceeds and rust‑cache keys permatrix.task; excluded duplicateroutes::setuptest runs; dev proxy on Linux defaults tohttpunlessDECOCMS_LINUX_SECURE_ORIGIN=1.Written for commit a77bc28. Summary will update on new commits.