Skip to content

fix!: treat running-process as a third-party backend - #263

Merged
zackees merged 2 commits into
mainfrom
fix/running-process-third-party
Sep 14, 2026
Merged

zackees merged 2 commits into
mainfrom
fix/running-process-third-party

Conversation

@zackees

@zackees zackees commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Decision

running-process is a third-party backend, exactly like Tokio. No kernal-api public API may re-export, alias, or name its types, and there are no approved exceptions. Renaming with pub use running_process::X as Y changes only the spelling: the re-export still resolves to the backend definition, so clients receive the backend type and inherit its versioning.

Changes

  • Facade-owned independent spawn. Main's only remaining exposure, the feat: re-export canonical independent spawn contract #217 independent-spawn re-exports, is replaced with kernal-api-owned SpawnMode, SpawnLifetime, IndependentBackend, SpawnOptions, LaunchSpec, Readiness, SpawnExit, SpawnHandle, and spawn_with_options. Conversions are private, and SpawnHandle keeps the substrate handle in a private field. A scan of sister repos in ~/dev found no users of these items.
  • Machine enforcement, lint. kernal_api_boundary now rejects any exported pub use of an owned crate from the facade owner, including renames, globs, and braced lists. The new UI fixture ui/facade_public_reexport.rs covers the feat: expose canonical running-process capability aliases #258 shape (pub use running_process::StreamKind as CaptureStream) and the legal private/pub(crate)/unreachable forms.
  • Machine enforcement, policy test. tests/facade_policy.rs forbids pub use running_process just like pub use tokio and drops the exception approvals.
  • Docs. AGENTS, ARCHITECTURE, README, and DYLINT now state the no-exceptions rule.

Breaking change

kernal_api::{SpawnMode, SpawnOptions, SpawnHandle, ...} are no longer the same types as their running_process counterparts.

Verification (local)

  • independent-spawn suite: 168 lib tests, facade_policy (16), and spawn_mode_facade (3) pass. spawn_mode_facade now exercises the documented rejection paths through kernal-api names only.
  • clippy --lib --tests --features independent-spawn -D warnings and cargo fmt --check are clean.
  • The lint change compiles on the pinned nightly, and its unit tests pass.
  • Not run locally, left to CI:
    • lint UI tests: this host cannot start the dylint driver;
    • Windows/macOS cross clippy: a local blake3 cross-toolchain problem.
  • ui/facade_public_reexport.stderr is intentionally not committed yet; I will add the exact expected output from the CI run.

Supersedes #258.

🤖 Generated with Claude Code

https://claude.ai/code/session_01C9h9oBYzdNGAaLFouVpewr

running-process now follows the same boundary rule as Tokio and every other
implementation crate: no kernal-api public API re-exports, aliases, or names
its types, and there are no approved exceptions. A `pub use ... as ...`
rename changes only the spelling; the re-export still resolves to the
backend definition, so clients received the backend type and its versioning.

- Replace the independent-spawn re-exports with facade-owned SpawnMode,
  SpawnLifetime, IndependentBackend, SpawnOptions, LaunchSpec, Readiness,
  SpawnExit, SpawnHandle, and spawn_with_options. Conversions are private;
  SpawnHandle keeps the substrate handle in a private field.
- kernal_api_boundary: reject exported `pub use` of any owned crate from
  the facade owner, including renames, globs, and braced lists, with a UI
  fixture covering the #258 alias shape.
- facade_policy: forbid `pub use running_process` like `pub use tokio` and
  drop the independent-spawn exception approvals.
- AGENTS, ARCHITECTURE, README, DYLINT: state the no-exceptions rule.

BREAKING CHANGE: kernal_api's independent-spawn types are no longer the
running_process types; callers that relied on type identity must use the
kernal_api types.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01C9h9oBYzdNGAaLFouVpewr
Seven exported re-exports are rejected (plain, renamed, renamed Tokio,
glob, each braced-list leaf, nested public module); private, pub(crate),
and unreachable re-exports produce none.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_01C9h9oBYzdNGAaLFouVpewr
@zackees

zackees commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator Author

Merge prep: CI on b98b4d4 passes everything this change touches: dylints (boundary lint unit + UI tests, including the new re-export fixture, plus cargo dylint --all-features --all-targets over kernal-api), compilation-boundary-dependencies, each-feature (independent-spawn), all six supported-targets, macos-arm-archive, and tauri-webview-smoke. The remaining 22 red jobs are the same set that fails on main (rust-native wasm tests, extension2 private-source native proofs, and threaded-rust-artifact).

@zackees
zackees merged commit 08c7d57 into main Sep 14, 2026
51 of 73 checks passed
zackees added a commit that referenced this pull request Sep 14, 2026
Resolves README.md and ARCHITECTURE.md by keeping #263's private-backend wording at running-process 4.10.14.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_012FxAHje2teWgtGeYd6Bx3G
@zackees
zackees deleted the fix/running-process-third-party branch November 5, 2026 05:51
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