Platform boundary Dylint: structural scanner, owner enforcement, exact migration baseline (#152) - #351
Merged
Conversation
This was referenced Sep 25, 2026
Merged
…ring the owner (#152) Replace the text scan and the kernal-api package exemption with a token-tree scanner that follows every out-of-line module whatever cfg guards it. Only the modules declared by the exactly shaped root host selector are native locations; the wasm guest tree accepts guest-target predicates only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… it (#152) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Loading an already-loaded file again by its absolute path made UI diagnostics name $SRC_DIR/$DIR instead of the file rustc was given. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
…oundary (#152) Records the 1006 existing violations in zccache's former baseline format (path, kind, construct, ordinal; # total header). The repository scan rejects new, stale, duplicate and unsorted entries; the resolving pass skips only baselined occurrences. Docs no longer claim zero debt. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Ignore per-lint Cargo homes and target dirs, exclude the lints from the workspace, format-check them in CI, and take the scan's nightly from the lint's rust-toolchain.toml, asserting the dylints job pin agrees. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Canonicalizing only the side that exists split macOS's /var -> /private/var, failing only_the_owner_library_root_may_select there. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
zackees
force-pushed
the
feat/152-platform-boundary-enforcement
branch
from
September 25, 2026 23:06
a4c5ab7 to
b17149a
Compare
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.
Part of #152 (detector + baseline slice; the migration to zero follows in per-capability PRs).
kernal_api_platform_boundary; the owner package is no longer exempt, cfg-elided out-of-line modules are scanned, every manifest is classified (native / guest / lint).src/baseline.txt, zccache's former format): 1006 occurrences keyed by path, kind, construct, ordinal. New, stale, duplicate and unsorted entries fail; the resolving pass skips only baselined hits.$SRC_DIR/$DIRmismatches).workspace.exclude, lint fmt check in CI, scan nightly read from the lint'srust-toolchain.tomlwith a test that the dylints job pin agrees.Local validation: both lint crates' tests + UI (22+5, 6+5), RED probe (added
#[cfg(windows)]to a baselined file → rejected as new), CI unittest guards (85),cargo fmt --check, default clippy. The local resolvingcargo dylintpass could not finish: vendored openssl-sys fails to build on this NixOS host (no lint diagnostics emitted); CI's full mode covers it.🤖 Generated with Claude Code