feat(sdk): add CheckContext.repoRoot for zoned runs (TV2.3) - #26
Merged
Conversation
Additive SDK field that unblocks per-zone execution (TV2.2) and the cross-language proof check-clippy (TV3.2). cwd is the zone root; repoRoot is the repository root for checks that need repo-level context. Single-zone today, so the runner and doctor set repoRoot = cwd. All check makeContext test helpers mirror it (repoRoot = cwd) so existing suites pass unchanged.
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.
TV2.3 — SDK `CheckContext.repoRoot`
Additive SDK field that unblocks Phase V2 per-zone execution (TV2.2) and the Phase V3 cross-language proof (`check-clippy`, TV3.2). First step of the v2 multi-language work toward running Sentiness on non-JS projects (e.g. Rust).
Change
Scope
Strictly additive (OCP). No behavior change for single-zone projects — it only threads a new field that future zoned execution will populate differently.
Validation
Deviations from spec
The TV2.3 spec mentions updating a shared `_test-utils` `makeContext`; in practice each check test owns a local `makeContext` helper (no shared one exists), so each was updated individually. End state is equivalent.