Repository navigation
powershell: methods with a glued return-type bracket; script: scope-name audit fix (Part of #3303) - #6386
Conversation
…ipped names (Part of #3303) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #6386 @ 6d795c8: 2 failed check(s) == crucible-audit (full-precision) (failure) -- real == crucible-audit (zero-dependency) (failure) -- real |
) Drift is powershell/core only (+16 functions, build.psm1 hashes, Callbacks & Closures). Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
No description provided. |
|
No description provided. |
A/B experiment arm A for #4479 (protocol docs/agents/self-scan-ab-protocol.md). Part of #3303.
Root cause
Two separate causes behind the recall drop on the 15 build scripts:
[string]ToString() {,[array]GetTests() {) were missed.func_startandargsrequired\s+after the closing]. Changed to\s*in both.function script:Write-Logasscript:Write-Log, while the engine deliberately steps over the scope qualifier and names itWrite-Log(existing, tested behaviour). The audit's_get_node_namenow stripsglobal|script|local|private:for powershell function names, so those are no longer counted as misses.Local
tree_sitter_accuracy_audit.py --lang powershellagainst the pinned crucible: args_exact_match 444 -> 474 of 487 comparable, no regressions, extra_functions still 0.Class / Sibling gaps
Class: a typed-method declaration with any return-type bracket shape (simple, dotted, nested generic) x any gap between
]and the name (none, spaces, tab) x any modifier (none, hidden, static, both). The new test is parametrized over that whole grid for bothfunc_startandargs, plus false-positive guards ([int]$x = 1,[Parameter(Mandatory)],[CmdletBinding()]+param() and all four scope qualifiers. Sibling gaps left alone: remainingargscount mismatches on multi-lineparam(...)blocks (e.g. Start-PSBuild real=20 got=0); not in this issue's scope.Not run (cost cap for the experiment)
Golden bless, crucible_check, ratchets and the full pr_gates were NOT run. The tree-sitter baseline file was not regenerated. Ran only the powershell extraction tests (263 passed), ruff format, and the powershell tree-sitter audit.
🤖 Generated with Claude Code