Repository navigation
Conversation
The substrate's independent-spawn feature pulls IPC and serde_json into the platform graph, which failed the dependency-isolation gate for the default HAL. Select it only through the facade feature again and gate its re-exports and identity contract test to match. Inside the defining crate, #[macro_export] task_local! must be invoked by textual scope; the crate:: path is a deny-by-default future-compat error. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01C9h9oBYzdNGAaLFouVpewr
zackees
force-pushed
the
feat/canonical-independent-spawn
branch
from
September 14, 2026 18:43
01891c7 to
8e43256
Compare
Collaborator
Author
|
Closing: superseded by #263. The decision is now final: This PR exists to publish
Any of these capabilities that applications still need should come back as facade-owned wrappers. |
zackees
added a commit
that referenced
this pull request
Sep 14, 2026
* fix!: treat running-process as a third-party backend 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 * test(dylint): record re-export fixture diagnostics 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 --------- Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
This was referenced Sep 17, 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.
Implements the canonical kernal-api delegation layer for running-process.
Validation:
Merge-prep fixes (rebased on e0666e0)
independent-spawnenables platformipc+serde_json, so selecting it in the base dependency putinterprocess/serde_jsonin the default graph (compilation-boundary-dependenciesRED). It is again selected only through the facadeindependent-spawnfeature; its root re-exports andtests/canonical_independent_spawn.rsare gated to match, and the policy test now asserts the opt-in wiring.foreground,SpawnMode-independent aliases, and the other reviewed namespaces are unchanged.task_local!: in-crate tests invoked the#[macro_export]macro ascrate::task_local!, which is the deny-by-defaultmacro_expanded_macro_exports_accessed_by_absolute_pathserror; they now use textual scope. Externalkernal_api::task_local!use is unaffected.Local:
ci/check_compilation_boundary_dependencies.pypasses; lib tests,facade_policy(default andindependent-spawn),canonical_independent_spawn,spawn_mode_facadepass;cargo fmt --checkclean. (current_executable_exposes_a_gnu_build_idwas skipped locally: it also exists on main and depends on the host linker emitting a GNU build ID.)