Skip to content

fix(ci): repair Linux-only compile breaks stacking since 2b03f32 - #2

Merged
sambai-dev merged 2 commits into
mainfrom
fix/ci-hostile-config-init
Aug 24, 2026
Merged

fix(ci): repair Linux-only compile breaks stacking since 2b03f32#2
sambai-dev merged 2 commits into
mainfrom
fix/ci-hostile-config-init

Conversation

@sambai-dev

Copy link
Copy Markdown
Owner

Summary

Three independent breaks, each masked by the previous compiler error, all invisible on Windows dev boxes because the affected code is #[cfg(target_os = "linux")] / Linux-test-only:

  1. coop-exec lib (E0599) — cancel token added in 2b03f32 reached naive.rs but not linux_sandbox's SuperviseCtx; supervise() called ctx.is_cancelled() on a struct without the flag. → carry the token on SuperviseCtx + mirror accessor (121b323)
  2. hostile suite (E0063) — Config gained retention_hours/sweep_interval_secs but only tests/api.rs was updated. → complete initializer (c41d155)
  3. hostile suite (E0382) — cfg.jobs_root cloned after state moved into spawn_workers. → snapshot before move (7fe78ab)

Verification

  • cargo check/clippy -p coop-exec --target x86_64-unknown-linux-gnu: clean
  • cargo fmt --check: clean (matches CI gate)
  • clippy --workspace --all-targets -D warnings + cargo test --workspace verified by CI on this branch (libsqlite3-sys blocks full cross-check from Windows)

spawn_workers consumes AppState, so cloning cfg.jobs_root after
the call borrows a moved value (E0382) - third latent break in
the hostile suite unmasked progressively as earlier compile
errors were fixed. Snapshot before the move.
sibling_workdir_not_readable failed on CI with PROBE-HITS 2: the
privileged-container server materialized jobs_root implicitly via
the workdir create_dir_all at default 0755 because only main()
locked it down - build_app callers (embedders, the hostile suite)
skipped the hardening, so nobody-user jobs could enumerate
sibling workdir names through the parent. Enforce create+0700 in
build_app so every entry point gets tenant isolation.
@sambai-dev
sambai-dev merged commit 4c3f02f into main Aug 24, 2026
2 checks passed
@sambai-dev
sambai-dev deleted the fix/ci-hostile-config-init branch August 24, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant