Repository navigation
Conversation
[Medium impact] The reviewed changes appear safe to merge, with no new actionable issue identified. SummaryPreserves proven destructuring dependencies after later property writes.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["Read-aware value owner"] --> B["Query-owned source capture"]
B --> C["Path presence in destructuring IR"]
C --> D["Graph projection"]
D --> E["Resolved dependency remains traversable"]
Reviews (9) · Last reviewed commit: "fix(ci): repair website validation prere..." · Reviewed by Greptile |
|
Current-head checkpoint, verified2026-11-04. Head New exact-head local evidence: all six original coverage shards, the original global/domain/contracts threshold merge and complete inventory/timing passed: 40,041passed /465original conditional skips /0failed /2984files exactly once on Linux arm64, tree A separate current-main Latest hosted CI41563466821 remains20success/20conditional skips/0failed/0unfinished, actual merge |
4459a64 to
ad9a67f
Compare
Apply only the three-file patch from PR morluto#8045 as a CI prerequisite for morluto#7716. Implementation credit remains with its original author. Original-commit: 96a8021 Co-authored-by: wunianze666-netizen <wunianze666@gmail.com>
7ab0d76 to
95dcf4f
Compare
Preserve the shared read-position proof through destructuring IR and graph projection. Rebuild the existing PR7716 fix on the current retained-Evidence and feature-trace owners.
Adopt the two-file test-only prerequisite from PR8060, preserving its original integrity and metadata assertions. Production freshness policy is unchanged. Co-authored-by: SahinurDEV <68515168+SahinurDEV@users.noreply.github.com>
The current clean main fails Knip on this unused exported alias. Runtime helper creation, cache ownership and cleanup are unchanged.
95dcf4f to
c8a0309
Compare
Comments Outside DiffThese findings could not be posted inline.
|
|
TL;DR: All 7 changed test files pass at head 33f8d4e on three Node versions. With the changed source files put back to the merge base, 11 destructuring tests fail on each version. So the tests pin the fix. Findings
CI on head 33f8d4e, read live with
Not run
Test setupCommandsnpm ci --offline
npm run test:prepare
xvfb-run -a npm run test:focused -- src/application/javascript/JavaScriptSemanticGraphDestructuring.test.ts src/artifacts/NodeSeaArtifactReader.test.ts src/artifacts/pyinstaller/PyInstallerBoundaries.test.ts src/domain/javascript/javascriptSemanticValues.memo.test.ts tests/acceptance/applications/javascriptDestructuringCapture.test.ts tests/boundary/filesystem/inesArtifact.test.ts
node --test website/worker.test.mjs🤖 Written and tested with Claude Code (Sonnet 5.5, verified by Opus 5.5), posted with my OK 🦊 |
|
Thanks for the cross-version red/green run. I checked the two remaining probes from your note with Codex assistance, on Node 24.22.1 / npm 11.16.0.
This was a local JS compatibility and regression check. The PR head is unchanged and full hosted qualification is still outstanding. |
|
Thanks for this. Its semantic part was prepared on top of current main (its 10 new tests fail on base), but it was taken out of #10538. Review found that each destructuring read evaluates the whole source object to get one path's presence, with a fresh query cache per read, so |
* fix(javascript): retain proven property presence at reads The read-time IR and projection boundary builds on the destructuring work in #7716. This change adds an indexed own-slot proof and uses it for ordinary member reads as well. Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com> * fix(javascript): retain destructuring proof in read order --------- Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com>
Reuse the capture-lifetime approach from #7716 for ordinary array-read proof. Co-authored-by: SII-YDD <38822679+SII-YDD@users.noreply.github.com>
|
Closing as superseded by the read-time destructuring changes on main, including #12551 and #12563. The original graph matrix, compiled CLI and stdio MCP acceptance, and cold/prewarmed cache controls passed against current main. The original issue #7559 is already closed. Thanks @SII-YDD for the reproducer and acceptance coverage. #12576 adds a later sibling case outside the original scope. The unrelated carrier fixtures are tracked in #10155. |
Summary
Fixes #7559. Keep an already-proven JavaScript destructuring dependency traversable after a later property write. Current head
33f8d4e305d7b285ada89c5f8caa619547c4c414integrates main79766ca96a22ee0b6e04c3681546d492702b4ae7; the obsolete Darwin-helper type change is now upstream and no longer in this PR's diff.Problem and expected behavior
Node captures
"strict". Previously the whole-program object value widened after the write, the earlierdestructuresedge becamecandidate, and default backward provenance omitted it. Later writes must not invalidate a proven earlier read.Change and scope
The existing read-aware value owner supplies each selected path's
sourcePresenceto destructuring IR. Graph projection consumes that fact, with its existing fallback for older operations.computeDirectInitializerPositionaccepts direct RHS reads of=object/array pattern assignments and reuses the shared ordering/activation proof. There is no second write inventory or source-line ordering heuristic.Presence collection uses query-owned captures; existing callers retain their state-owned cache policy. The temporary cache is shared during evaluation, then released. This addresses the effective automated P1 finding, not a maintainer priority designation. Depth/cycle/dependency proofs remain intact. Each operation retains one presence enum; source objects are still evaluated per read, so this does not claim a CPU optimization or a new asymptotic time bound.
Deferred/repeated reads, effectful defaults, custom iterators and uncertain aliases remain conservative. Aggregate uninitialized-binding unknowns remain; this is not temporal SSA recovery or a promise that the entire trace becomes unambiguous.
Verified published-head diff: 13 files, 510 insertions /10 deletions against pinned main79766ca9 (the newer unpublished c3647ad integration has11 files):
6079b0fby @SahinurDEV; original credited commits remain ancestors. One existing iNES fixture similarly makes its two same-size fault injections observably distinct using mtime. Production freshness policies and original integrity assertions are unchanged.watch_dirarray (independent TOML parsing proves identical configuration), and explicitly await three Node test registrations to satisfy the original typed-Promise gate. Original worker assertions remain; a private wrong-content-type control still executes all3 cases and exits1 (2pass/1fail), then production bytes are restored. These are baseline CI repairs, not JavaScript algorithm or deployment behavior changes.Contract and boundary impact
Semantic owner: read-aware values → destructuring IR → semantic graph. This existing read-only static-analysis capability changes no public schema, persisted format, target execution or provider authority; advance scope decision is not applicable. Caller-selected paths, source bytes, Evidence identities, shared retained-Evidence owners and cleanup remain preserved. No real external decompiler or native macOS-helper verification is claimed.
Evidence and validation
AI assistance: Codex assisted implementation, investigation and validation. Node24.22.1 / npm11.16.0, isolated HOME/TMP/XDG, no GitHub/model credentials in project processes. Tested integration tree:
2df0ec8a173e4b2c4bb41fd13378b402a5a65107.test:focusedcommand below — 387 passed /2 existing platform skips. This includes 38 destructuring cases, capture memo/depth/cycle consumers, actual compiled CLI/stdio MCP capture, iNES/carrier integrity fixtures, current Inspector and cleanup boundaries. Controlled engine fixtures are not real engine evidence.candidatedependencies become correctlyresolved; no resolved-to-candidate changes or resolutions for runtime-absent properties were observed. Thirty pre-read-write cases remain conservative. This is a bounded presence oracle, not a real-world accuracy rate or proof for arbitrary JavaScript.npm run check:fast,npm run check,npm run check:ci,npm run check:ci:deep,npm run docs:check— passed on this integration tree.npm run verify:test-discoveryfinds 2984 test files exactly once. Original commit hooks passed without changing that tree; the original pre-push hook runs in a credential-free wrapper.33f8d4e305d7b285ada89c5f8caa619547c4c414/tree2df0ec8a173e4b2c4bb41fd13378b402a5a65107, all six original covered shards, the original global/domain/contracts threshold merge, complete inventory and timing gates passed: 40,041 passed /465 original conditional skips /0failed /2984 files exactly once. Source audit remains clean with7086 raw blob matches and the three declared Windows.cmdline-ending equivalents. Original thresholds and selectors were unchanged. This is Linux arm64 local evidence; the earlier80ee/2d11 diagnostics were not reused and this does not replace full hosted qualification.node --test website/worker.test.mjs— all3 original cases pass on macOS and on the exact current Linux head. Latest-mainformat:checkoriginally failed the one TOML file;checkadditionally identified the three floating test Promises. Both checks pass after the two-file prerequisite repair; no formatter exclusion, lint-rule change or test assertion was introduced.CI required, Website checks, Apple controls and applicable package/recovery lanes succeeded. Portable: 40,241 passed /270 skipped /2,984 files; Source: 22,822 passed /16 skipped /1,228 files, included in the portable aggregation rather than an additional total. Website's three Node cases executed. Hosted Apple separately ran58 cases and a412-pass/5-skip boundary group; these groups are not summed or claimed as real external decompiler evidence. Actual checkout merge20209e1daebda81daed3bb313e68c4f0845330c8has maind496d803a4f50dc82248db0630042894c1136d00and this head as parents, tree84821f2095ea9d1e120351c4365df41547bef623. This is distinct from the locally tested tree. Classification remains fast / full portable selection / CI_FULL=false: remote deep/coverage/full qualification remains unexecuted, skips are not passes, and human readiness is PENDING. Draft and human-owned declarations stay unchanged.Earlier red/green and retained-memory evidence
Before the production correction, the expanded 38-case graph matrix produced8 failures/30 passes on main and the compiled public workflow failed on its missing dependency. The fixed workflow passes; its conservative controls remain.
The prior capture strategy kept one complete object per read. A bounded darwin-arm64 Node24.22.1 retained-heap control (state/IR alive after explicit GC, 2,048 fields /64 reads) measured15,802,216→3,198,936 bytes for
a809→80ee. It still transiently evaluates64 objects. This historical same-algorithm measurement is not a new-main measurement, peak/RSS reduction, production OOM reproduction or generic performance claim. Cold/prewarmed ownership regressions retain their16→0 state-cache full-object-access assertions.The historical local macOS public-workflow attempt failed before analysis because the Swift SDK reports
SwiftBridgingmodule redefinition; an independent minimal Foundation compile reproduced it. The SDK was not changed. Actual Linux CLI/MCP execution above is separate evidence.Related alternative #8142 remains open; no maintainer choice or approval is implied.
Exact related-test selection
Additional main-drift check (2026-11-04): a separate unpublished/uncommitted combination of current main
c3647ade1e557c4179a8b825a37e0c2193cd2526and this head, tree42da795be09144fe4bc5c91fe906c2e1f47d6bfc, passes45 Linux graph/seed/compiled CLI-MCP cases, including the empty endpoint regression. Its pinned-toolchaincheck:fast,check,check:ci,docs:checkand discovery2991 pass on macOS; the97 source cases pass there, but three compiled public cases still stop at the known host SwiftBridging SDK conflict. This supersedes the earlier incomplete supplementary cold Linux typed-lint attempt without calling that attempt a pass. Native Node64 pattern-default/alias-order controls found no new unsafe resolution; they are not a global accuracy/performance claim. Main now supplies the equivalent website prerequisites under maintainer commit9ebbe67e; that11-file local integration is distinct from this published13-file/pinned-base comparison. No empty commit was added to refresh CI.Author readiness
Human owner: @SII-YDD