Repository navigation
Conversation
…1009) The walk's candidate channel: for each property it is not certain of, the set of values the real build may hold there, or "anything". - A write the walk takes for certain records its value's candidates. - A write under a gate it could not decide (skipped, unsupported, or a property group or Choose arm it marks instead of walking) keeps the name's earlier candidates and adds the would-be value's; so does a write it took on a gate it decided on doubtful values. - A value that only splices plain references is the product of their candidates, expanded as the walk expands it, capped at 16; one that calls a property function is its written value when every name it reads is certain, and "anything" otherwise. - Refused writes, stale content and unrecorded uncertain names are "anything". Nothing decides on candidates yet. The read probe reports them, and two differentials hold them to MSBuild: `fsproj_candidates_diff` generates projects whose gates write alternative values (gates decided, undecidable, reading the generated names, and Choose arms) and evaluates each under several values of a global that steers the undecidable gates, so MSBuild takes both arms; `fsproj_global_perturbation_diff` checks the same containment over its routes and the real SDK chain. Five deliberately broken channels (dropping the earlier candidates on each of the four write paths, and truncating the product) each fail the first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… of #1009) A gate the walk decides on a value it holds after content it could not see raises no diagnostic, so the candidate channel treated the write it skipped as one MSBuild skips too. The channel now asks what the rest of the walk asks: whether a gate is decided from certain inputs (`directory_build::decided_from_certain_inputs`), and whether the walk is inside a group, `<Choose>` branch or import whose gate was not (`reach_doubted`, `directory_build::reached_for_certain`). A skipped group or an untaken `<Choose>` branch behind such a gate widens the candidates of every name it writes. Records live in their own map, so a name the walk is otherwise certain of can hold one; a binding drops it, and `go_stale` drops every record through the `fresh` list rather than a scan of the table. Also: - a candidate is "anything" past 4 KiB, so a value that splices a name twice cannot double without bound; - a write the walk takes for certain from certain names records nothing and expands nothing a second time; - the probe answers "anything" for the `MSBuildThisFile*` names, whose value at the end of the evaluation is not the one the walk holds; - the probe-only accessor is gated on `test-support`, and the probe's docs link no private module. The differential now imports sibling files under every kind of gate and probes the current file's names, a pinned case covers a stale gate on a write, a group and two `<Choose>` shapes, and its anti-vacuity census counts two MSBuild values under one candidate set. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Rebased onto #1040, which marks the names a stale-gated skip may write: the channel's own widening now covers only gates the walk did not decide from certain inputs and that leave no mark (a refused-but-bound or SDK-tainted read), on a property's own gate, a skipped group, and the branches of a `<Choose>` MSBuild may take instead (once each: the undecided arms' marks already widen theirs). A name the walk holds exactly, by the very test on which the end of the walk commits a value or an unset (`State::held_exactly`), has that value as its one candidate whatever is recorded, so the channel and the walk cannot disagree about certainty; a refused name with a clean overwrite is one. Only plain splices are expanded speculatively, their length bounded before they are built, which also keeps an undefined name the walk knows is undefined from turning a set into "anything"; no candidate is ever past the byte budget, a held value included. An imported document that opts a caller global out of protection withdraws the channel: MSBuild keeps the opt-out past the import and the walk does not (#1041), so a value it holds of the global, or computes from it, may be wrong. The probe reports the withdrawal. `THIS_FILE_NAMES` now names `this_file_seeds`' bindings, so it is used without `test-support`. The differentials hold two absolute properties beside containment: a value the walk commits is its only candidate (one past the budget, none), and no candidate is past the budget. `fsproj_candidates_diff` gains a refused-but- bound gate name, over-budget values, a rare opted-out import, and pinned cases for an optional first append, four undecided `<Choose>`s and the withdrawal; `fsproj_stale_gate_diff` holds the channel on every stale-gate route, and `fsproj_global_perturbation_diff` on the SDK chain. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ce (part of #1009) MSBuild expands `TreatAsLocalProperty`, which the walk reads as text (#1045): a root whose list holds an expansion may opt out a caller global the walk keeps protected, so the channel withdraws, as for a literal imported opt-out (#1041). A group skipped on a gate whose evaluation raised a diagnostic is widened by its provenance pass alone, not again by the fallback for gates that leave no mark. `MSBuildAllProjects`, which MSBuild adds to once the evaluation has finished, joins the `MSBuildThisFile*` names the probe declines at the end of the walk (#1043). The byte budget is checked against a held value's length before it is copied, and against the text alone before a speculative expansion collects its references, in saturating arithmetic. The differentials' "a committed value is its only candidate" allows the channel to keep none where the value's escaped spelling may be past the budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… disk (part of #1009) - One table's records hold at most 1 MiB of candidate text together, past which a further record is "anything": each name's are bounded, copies of one set were not. - A speculative expansion runs without the file system, so a skipped write's Unix path adjustment adds nothing to the evaluation's read set; one that would probe is "anything". - A taken write's held value is length-checked before it is copied. - The splice bound counts the bytes outside the references, so a copy of a value at the budget keeps its candidates. - A widened group skips a child whose own gate rules it out on every input. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1009) Only the read probe consumes the candidate channel yet, so the walk tracks candidates only when a probe asks for property reads: no other evaluation, the LSP's included, pays for them. Stage 2 turns tracking on where it judges on candidates. - Widening an untaken branch skips a group, or a nested `<Choose>` branch, that a gate rules out on every input, so it reads none of their children. - A write skipped on a decided gate keeps the name's candidates as they were, held or recorded, though the verdict may change its trust. - `fsproj_global_perturbation_diff` holds the served walk's candidates (no startup directory) to every startup directory's MSBuild value. - `fsproj_candidates_diff` pins the shape of #1046 (a literal import of a file an earlier import reached on a stale path): MSBuild's value is the file's, and the channel names no other. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1009) The read probe promises it changes nothing about the walk, and tracking candidates added to the evaluation's read set: a gate the channel judged for itself could probe an `Exists` the walk's own evaluation short-circuits past. Every question only the channel asks (whether a skipped group or branch, a nested `<When>`, or a child's own gate rules a write out) is now decided without the file system (`directory_build::decision_without_files`), an `Exists` leaving it undecided, so it widens instead. And the walk's own test of a property's gate is again asked only of a gate reading a stale value; the channel's broader one runs only while it tracks. Both generated differentials now assert the contract on every evaluation: the walk probed for candidates publishes what the unprobed walk does, read set included. Their gates include `Exists` operands the walk short-circuits past. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…1009) An SDK the walk cannot resolve imports `Sdk.targets` after the body, unseen, and that may rewrite what the body wrote: with no resolver the walk commits `OutputPath = base` where MSBuild ends with `base/net8.0/` (#1048, the walk's own gap). The channel withdraws at such a root, entry or nested, and at the unmodelled `<Sdk Name>` element, rather than name the value the walk holds. The candidate-only `<Choose>` scans run only while the channel tracks, and a write skipped on a decided gate records nothing for a name the walk still holds exactly, so such names spend none of the table's record budget. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tory (part of #1009) The walk's own expansions take a relative path the Unix adjustment probes to miss (`Relative::MissForProjectText`), a documented assumption its committed values share. A value expanded only to name candidates need not make it: where the walk declines (a skipped write), MSBuild started beside `obj` ends with `obj/foo` for `obj\foo`, which the channel left out. Speculative expansions now treat every probe, relative or absolute, as undecided (`properties::substitute_undecided`, the mode a target's expansion uses), so such a value is "anything". A skipped body whose source is far past the byte budget is not collected only to be dropped, and "anything" is stored as the absence of a record, which reads the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… refusal (part of #1009) - A project MSBuild rejects holds no value: the probe names no candidate, as its read of the same name declines. - A write the walk takes on a gate it doubts is expanded as speculatively as an untaken one, assuming nothing of MSBuild's working directory: a literal `obj\foo` is `obj/foo` to MSBuild started beside `obj`. - A toolset seed into the slot a refused write left is not the build's value (#1049, the walk's own gap): the channel withdraws there. - A widened group records nothing for a name the walk holds exactly, so such names spend none of the record budget. - The working-directory tests run on Unix only, where MSBuild adjusts the path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…art of #1009) `MSBuildExtensionsPath` is seeded below the overridable names, into the same kind of slot a refused write may have left (#1049): the channel withdraws there as it does for them. The seed test covers both names. The candidate sweep's unprobed baseline is now the served evaluation (`common::parse_fsproj_with_imports`), which also holds the reuse of imported documents to the evaluation that asks every time. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
Merged
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…jection (#1099) MSBuild's registration of a `<UsingTask>` refuses, rejecting the project, without an expression throwing: a `TaskName` that expands to empty; children under a `TaskFactory` that expands to empty, `AssemblyTaskFactory` or `TaskHostFactory`; the `AssemblyFile` written (else the `AssemblyName`) expanding to empty; a body's `Evaluate`, or a parameter's `Output` or `Required`, that `Boolean.TryParse` does not read (written empty, it reads as absent); a `ParameterType` that expands to empty or names no type it takes. `rejection::judge_registration` judges each where MSBuild registers the task: certain on a certain value reached for certain; possible on a doubted value, an item list or metadatum MSBuild expands into it, or a type outside the ones probed to resolve (`PARAMETER_TYPES`); no site on a value the walk holds none of (#1051) or an expression it does not model (#1094). A new `RejectionCause::UsingTaskRegistration` names the attribute and value; the LSP renders it. Tests: - `using_task_registration_diff`: every rule's corners pinned against design-time evaluation, MSBuild's verdict and the walk's claim alike, and a sweep over every place, the hostile value alphabet and a spelling table, each written literally, through a certain, a doubted and a refused property; a rejection resting on a value the walk holds none of is shown to through a certain property. Census `using_task_registration`. - `condition_diff`'s UsingTask grid takes back the `Evaluate` rows it left out for #1099. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…only certain ones - The body is the last child if it is a `<Task>`, and the parameters the first if it is a `<ParameterGroup>`, as `ProjectUsingTaskElement` reads them. A body written before the parameters is neither, and nothing of either is registered. - A step is reached for certain only past every earlier step the walk is certain MSBuild passes. That means a certain value the rule takes, or, for a name that must not be empty, literal text beside bare references. A refusal after a step MSBuild may stop at is possible, because the walk cannot name its cause. - The factory check claims a refusal only over children the loader takes. A child a parse configuration may skip is a possible refusal. - The loader keys a parameter group's names in a set. Tests: - `composite_sweep` generates whole `<UsingTask>`s: every attribute, the children in either order, parameters whose names fold to one, and each value drawn. A certain rejection's cause is held to MSBuild's error code, and an MSB1025 collision is graded as a rejection. - The doubted source writes a second value, drawn independently, under its undecided gate. A rejection resting on it is counted as the #1051 gap and shown to rest there. - Hand rows: both child orders, a parameter MSBuild may stop at before one it refuses, and an unrecognised child. Plus `a_child_a_parse_configuration_may_skip_needs_no_certain_factory`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…ues, across tasks - `State::registrations_pass` says whether MSBuild certainly registered every UsingTask judged so far, and it carries into the next task. A doubted value the walk takes no longer lets a later task's refusal be named as MSBuild's first. - A step passes for certain only on a value the walk holds for certain that the rule takes, or a boolean function on certain operands. The literal text fallback is gone: text beside a reference does not show that MSBuild expands the reference without throwing (an item transform a doubted name holds may throw). - Whether the body is expanded is read from the value the `Evaluate` step holds for certain, so `false$(Missing)` skips the body as MSBuild does. - The task name is shared (`Arc<str>`) across a task's refusals. `first_repeat` counts its equality scan too. Tests: - `INLINE`'s assembly is a literal, so a refusal in its children is MSBuild's first. A new row shows a toolset-path assembly leaving the refusal possible. - New rows: an earlier task MSBuild may stop at, a name with literal text and a doubted transform, and a certainly false `Evaluate` before a refused parameter. - The composite draws `$(F)`, `Prefix$(T)` and `false$(Missing)`. `F` and `T` hold values the walk doubts, and a rejection resting on those values is counted as #1051's gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…n waits on earlier registrations - `judge_using_task` tracks two things apart: whether MSBuild reaches the task (`entry`), and whether it certainly passes each step should it reach them (`ok`). A task whose condition is undecided but whose every step passes leaves `registrations_pass` set, because MSBuild reaches the next task whether it registered this one or skipped it. - A UsingTask's condition is judged as reached only past every earlier registration, so an illegal condition after a task MSBuild may stop at is only possible. - A refused value is shared (`Arc<str>`), since property reads clone the rejection. Tests: - Hand rows: a later task's illegal condition after a parameter type MSBuild may refuse, and a skippable valid task before a refused flag. - The composite draws a condition for a quarter of its tasks: true, false, undecided, illegal, or throwing. A certain illegal-condition claim must point at `Condition`; its code is `condition_diff`'s to grade. - A composite rejection excused as #1051's gap is graded again with `F` and `T` holding only the walk's values, which shows the doubted value caused it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…jection (#1099) MSBuild's registration of a `<UsingTask>` refuses, rejecting the project, without an expression throwing: a `TaskName` that expands to empty; children under a `TaskFactory` that expands to empty, `AssemblyTaskFactory` or `TaskHostFactory`; the `AssemblyFile` written (else the `AssemblyName`) expanding to empty; a body's `Evaluate`, or a parameter's `Output` or `Required`, that `Boolean.TryParse` does not read (written empty, it reads as absent); a `ParameterType` that expands to empty or names no type it takes. `rejection::judge_registration` judges each where MSBuild registers the task: certain on a certain value reached for certain; possible on a doubted value, an item list or metadatum MSBuild expands into it, or a type outside the ones probed to resolve (`PARAMETER_TYPES`); no site on a value the walk holds none of (#1051) or an expression it does not model (#1094). A new `RejectionCause::UsingTaskRegistration` names the attribute and value; the LSP renders it. Tests: - `using_task_registration_diff`: every rule's corners pinned against design-time evaluation, MSBuild's verdict and the walk's claim alike, and a sweep over every place, the hostile value alphabet and a spelling table, each written literally, through a certain, a doubted and a refused property; a rejection resting on a value the walk holds none of is shown to through a certain property. Census `using_task_registration`. - `condition_diff`'s UsingTask grid takes back the `Evaluate` rows it left out for #1099. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…only certain ones - The body is the last child if it is a `<Task>`, and the parameters the first if it is a `<ParameterGroup>`, as `ProjectUsingTaskElement` reads them. A body written before the parameters is neither, and nothing of either is registered. - A step is reached for certain only past every earlier step the walk is certain MSBuild passes. That means a certain value the rule takes, or, for a name that must not be empty, literal text beside bare references. A refusal after a step MSBuild may stop at is possible, because the walk cannot name its cause. - The factory check claims a refusal only over children the loader takes. A child a parse configuration may skip is a possible refusal. - The loader keys a parameter group's names in a set. Tests: - `composite_sweep` generates whole `<UsingTask>`s: every attribute, the children in either order, parameters whose names fold to one, and each value drawn. A certain rejection's cause is held to MSBuild's error code, and an MSB1025 collision is graded as a rejection. - The doubted source writes a second value, drawn independently, under its undecided gate. A rejection resting on it is counted as the #1051 gap and shown to rest there. - Hand rows: both child orders, a parameter MSBuild may stop at before one it refuses, and an unrecognised child. Plus `a_child_a_parse_configuration_may_skip_needs_no_certain_factory`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…ues, across tasks - `State::registrations_pass` says whether MSBuild certainly registered every UsingTask judged so far, and it carries into the next task. A doubted value the walk takes no longer lets a later task's refusal be named as MSBuild's first. - A step passes for certain only on a value the walk holds for certain that the rule takes, or a boolean function on certain operands. The literal text fallback is gone: text beside a reference does not show that MSBuild expands the reference without throwing (an item transform a doubted name holds may throw). - Whether the body is expanded is read from the value the `Evaluate` step holds for certain, so `false$(Missing)` skips the body as MSBuild does. - The task name is shared (`Arc<str>`) across a task's refusals. `first_repeat` counts its equality scan too. Tests: - `INLINE`'s assembly is a literal, so a refusal in its children is MSBuild's first. A new row shows a toolset-path assembly leaving the refusal possible. - New rows: an earlier task MSBuild may stop at, a name with literal text and a doubted transform, and a certainly false `Evaluate` before a refused parameter. - The composite draws `$(F)`, `Prefix$(T)` and `false$(Missing)`. `F` and `T` hold values the walk doubts, and a rejection resting on those values is counted as #1051's gap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Smaug123
added a commit
that referenced
this pull request
Nov 25, 2026
…n waits on earlier registrations - `judge_using_task` tracks two things apart: whether MSBuild reaches the task (`entry`), and whether it certainly passes each step should it reach them (`ok`). A task whose condition is undecided but whose every step passes leaves `registrations_pass` set, because MSBuild reaches the next task whether it registered this one or skipped it. - A UsingTask's condition is judged as reached only past every earlier registration, so an illegal condition after a task MSBuild may stop at is only possible. - A refused value is shared (`Arc<str>`), since property reads clone the rejection. Tests: - Hand rows: a later task's illegal condition after a parameter type MSBuild may refuse, and a skippable valid task before a refused flag. - The composite draws a condition for a quarter of its tasks: true, false, undecided, illegal, or throwing. A certain illegal-condition claim must point at `Condition`; its code is `condition_diff`'s to grade. - A composite rejection excused as #1051's gap is graded again with `F` and `T` holding only the walk's values, which shows the doubted value caused it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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 #1009 (stage 1 of option 2). Stage 2, the judgement over candidates, closes it.
The candidate channel
For each property the walk is not certain of, this tracks the set of values the real build may hold there, or "anything". Nothing decides on it yet: stage 1 changes no verdict. The channel is tracked only when a read probe asks for property reads, so no other evaluation pays for it, the LSP's included. Stage 2 turns it on where it judges.
Certainty is the walk's. A name the walk holds exactly (
State::held_exactly, the test on whichread_propertycommits a value or an unset) has that value as its only candidate, whatever is recorded. The channel and the walk therefore cannot disagree about which names are certain. A refused name with a clean overwrite counts as held exactly; a stale or refused one the walk doesn't hold reads as "anything".Records, for names the walk does not hold exactly:
<Choose>branch not taken) on a gate that is undecided for a reason leaving no mark widens the name. "No mark" means a refused-but-bound or SDK-tainted read, since msbuild: a skip decided on a stale value leaves its writes in doubt (#1037) #1040 already marks stale-gated skips stale and diagnostics unpin.The table drops every record at a latch.
Speculative expansion applies only to plain splices (
$(A)x$(B)), as products of the spliced names' candidates. It never touches the file system and assumes nothing of MSBuild's working directory, so a value whose Unix path adjustment would probe is "anything".Bounds: 16 candidates and 4,096 escaped bytes per name, 1 MiB of records per evaluation, each product's length bounded before it is built.
Withdrawal. The channel names nothing at all past content where the walk's own value may be wrong:
<Sdk>element, whoseSdk.targetsruns unseen after the body (msbuild: an unresolved SDK's Sdk.targets goes unseen after the body, and the walk commits what the body wrote #1048);The probe reports it (
EvaluationReads::candidates_withdrawn). It also names nothing past a rejection, and nothing at the end of the walk forMSBuildThisFile*andMSBuildAllProjects(msbuild: the end-of-walk table commits MSBuildThisFile* names MSBuild leaves unset #1043).#1041: I chose to decline soundly. Once an imported document unprotects a caller global, the channel withdraws, so neither the global nor anything computed from it gets a singleton. A rare route in the generator (1 import step in 40) and a pinned test cover it.
Tests
Each check below was seen failing before its fix, either on the code as it stood or with the fix reverted:
tests/fsproj_candidates_diff.rs(generator): projects whose gates write alternative values (gates decided, undecidable, reading generated names, refused-but-bound, with short-circuitedExists),<Choose>s, sibling imports, over-budget values and the rare opted-out import, each evaluated under three globals. Per evaluation:tests/fsproj_candidates_diff.rs(pinned cases): an optional first append; four undecided<Choose>s widening once each; a skipped group widening once; a copy at the budget; speculative expansions that probe nothing; widened groups skipping impossible children; both opt-out withdrawals; the unresolved SDK; the rejected project; both working-directory cases; both toolset seeds (on the real SDK); msbuild: a duplicate skip discharged against an import followed on a stale path may hide a real first import #1046's shape.tests/fsproj_stale_gate_diff.rs(msbuild: a skip decided on a stale value leaves its writes in doubt (#1037) #1040's generator) holds the same containment, committed-implies-singleton and probe-contract checks on every stale-gate route.tests/fsproj_global_perturbation_diff.rsholds containment (served and supplied walks) and committed-implies-singleton over its routes and the real SDK chain.Fresh-seed soaks of 6,000–10,000 projects per generator pass.
Manifests
None moved.
fsproj_msbuild_corpus_diff,sdk_chain_decline_attributionandtools/ci/project-corpus-gate.shpass unchanged, as expected for a channel nothing consumes yet.Review
Codex ran eight rounds. Each soundness finding got a failing test first, then a fix:
I stopped after round 8 on a doom-loop judgement. From round 5 on, each soundness finding was a narrow route where the walk's own value is wrong, now filed against the walk. The channel withdraws on each, by construction, because its certainty is the walk's. What remains is precision only, declined and filed:
<Choose>'s arms widening from each other's records (msbuild candidates: an undecided <Choose>'s arms widen from each other's records #1047);Found along the way (filed)
MSBuildThisFile*names MSBuild leaves unset.TreatAsLocalPropertyis read as text.Sdk.targetsgoes unseen after the body.🤖 Generated with Claude Code