Repository navigation
fix!: treat running-process as a third-party backend - #263
Merged
Merged
Conversation
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
Collaborator
Author
|
Merge prep: CI on b98b4d4 passes everything this change touches: |
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
This was referenced Sep 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Decision
running-processis 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 withpub use running_process::X as Ychanges only the spelling: the re-export still resolves to the backend definition, so clients receive the backend type and inherit its versioning.Changes
independent-spawnre-exports, is replaced with kernal-api-ownedSpawnMode,SpawnLifetime,IndependentBackend,SpawnOptions,LaunchSpec,Readiness,SpawnExit,SpawnHandle, andspawn_with_options. Conversions are private, andSpawnHandlekeeps the substrate handle in a private field. A scan of sister repos in~/devfound no users of these items.kernal_api_boundarynow rejects any exportedpub useof an owned crate from the facade owner, including renames, globs, and braced lists. The new UI fixtureui/facade_public_reexport.rscovers 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.tests/facade_policy.rsforbidspub use running_processjust likepub use tokioand drops the exception approvals.Breaking change
kernal_api::{SpawnMode, SpawnOptions, SpawnHandle, ...}are no longer the same types as theirrunning_processcounterparts.Verification (local)
independent-spawnsuite: 168 lib tests,facade_policy(16), andspawn_mode_facade(3) pass.spawn_mode_facadenow exercises the documented rejection paths through kernal-api names only.clippy --lib --tests --features independent-spawn -D warningsandcargo fmt --checkare clean.blake3cross-toolchain problem.ui/facade_public_reexport.stderris 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