refactor(kernel): relocate non-foundational stragglers before packaging (#1490 W-pre) - #1491
Merged
Merged
Conversation
W-pre of #1490: kernel's file set becomes its public API before it moves to packages/. Three files drifted into the sink because R1 pushes shared code down, not because they are foundational: - audio-probe-support -> src/contracts/ (capability policy consumed by platform plugins and interactor registration) - input-validation -> src/contracts/ (lowest-rank consumer is contracts/gesture-input) - observability-redaction -> src/commands/observability/runtime/ (colocated with its only consumer, diagnostics-format) Pure moves; no behavior change. Kernel retains errors, device, snapshot, contracts, collections, rect, redaction, daemon-error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FUv7bvbWNryuXgSBuqTtep
Size Report
Startup median (7 runs, lower is better):
Top changed chunks: no changes in the largest emitted chunks. |
Member
Author
|
Reviewed exact head |
|
This was referenced Jul 30, 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.
Summary
W-pre of #1490: kernel's file set becomes its public API before it moves to
packages/. Three files drifted into the layering sink because R1 pushes shared code down, not because they are foundational — each relocates to the zone its consumers earn:audio-probe-support.ts→src/contracts/— capability policy ("which devices support host audio probing"), consumed by the platform audio backend, the Apple plugin, interactor registration, and the Apple capability parity test. Contracts is the lowest rank shared by all consumers.input-validation.ts→src/contracts/—readOptionalIntegeroverAppError; its lowest-rank consumer iscontracts/gesture-input.ts(plus commands and a daemon handler above).observability-redaction.ts→src/commands/observability/runtime/— colocated with its single consumer,diagnostics-format.ts.Pure
git mv+ import rewrites; no behavior change, no re-exports left behind. Kernel retains exactly its package-ready vocabulary:errors,device,snapshot,contracts,collections,rect,redaction,daemon-error— all with zero internal imports (R1), ready for the W0@agent-device/kernelpilot.Validation
pnpm check:affected --run— all runnable checks passed: format, lint, typecheck (root + examples/sdk), layering (R1–R10 green, R6 at 7, R9 at 102), build,check:fallow(no issues in 11 changed files), vitest-related, and the full provider-integration project (41 files, 150 tests).unit-coreoversrc/contracts+src/commands/observability(90 tests), affected-check selector suites (27/27).Part of #1490 (W-pre checkbox). Next up per the issue sequencing: W0 lands after #1489 (P1) merges.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FUv7bvbWNryuXgSBuqTtep
Generated by Claude Code