Skip to content

fix(analysis): restore desktop context after re-analysis - #1452

Open
outlier27-cell wants to merge 39 commits into
tt-a1i:devfrom
outlier27-cell:codex/desktop-reanalysis-continuity-20261122
Open

outlier27-cell wants to merge 39 commits into
tt-a1i:devfrom
outlier27-cell:codex/desktop-reanalysis-continuity-20261122

Conversation

@outlier27-cell

@outlier27-cell outlier27-cell commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Current head ceabbbf25f812098129f60599488f02e923a1865: contributor review confirmed; CI completed with 29 successful jobs and 2 configured skips. The same-named method finding review thread is resolved; the PR is ready for maintainer review.

Latest follow-up and synchronization

Head ceabbbf25f812098129f60599488f02e923a1865 includes dev 79c9342947e5a15c434cb5c90ca614cc48a8f40a. A review follow-up links complexity findings to functions only when file, qualified name, and complete declaration range match uniquely. Same-name static and instance methods each retain their own finding; ambiguous declarations remain unlinked. Atlas unit tests passed 13/13, and the real desktop Chrome re-analysis test restored each finding after an unchanged re-analysis. The ZIP was rebuilt with Node 22. Earlier personal confirmations and CI records below apply only to their named heads. The contributor personally confirmed this head and PR explanation; its CI and reviewer response are tracked separately.

Personal review: the accountable contributor confirmed head 758611d97a09ec31a215d7ac629de9d47fc3e9f4 and the PR explanation and validation evidence on 2026-11-26. This is not maintainer scope agreement or approval.

Latest follow-up and synchronization

Head 758611d97a09ec31a215d7ac629de9d47fc3e9f4 includes dev 79c9342947e5a15c434cb5c90ca614cc48a8f40a. Integrated upstream output recovery and rebuilt the ZIP. Standalone Chrome passed at b4d4114; a separate Windows workbench suite failed at Chrome profile cleanup. CI and integration after output recovery are required. Earlier personal confirmations and CI records below apply only to their named heads. The contributor personally confirmed head 758611d97a09ec31a215d7ac629de9d47fc3e9f4 and its explanation; current CI and maintainer review are tracked separately.

Latest dev synchronization

Head b4d4114c5d9b447a3dc317bae30a7d0130c7c9df merges dev 88f26d239e0e1d688fdb05b6e21df0b096bc00a4. The ZIP was rebuilt. The standalone browser conflict preserves both the upstream width-settling wait and the branch return-to-overview wait; the standalone Chrome test passed. The separate workbench test reached teardown but failed with Windows Chrome profile EBUSY cleanup. Prior continuity regressions passed at the preceding head; current-head CI is required. The contributor's earlier confirmations apply to the heads named below; this new head awaits personal review and its own CI.

Latest review follow-up

Head 650a696 bounds both graceful Chrome shutdown attempts by the existing five-second exit deadline, so a nonresponsive DevTools command cannot delay forced cleanup. The full desktop Chrome re-analysis test passed in isolation; this test-only follow-up leaves the ZIP unchanged. The previous remote CI failed on the independently reproduced upstream lifecycle empty-legend regression; draft #1493 proposes the shared fix. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Latest review follow-up

Head 2f5cb9d merges dev 79ae742; only the generated ZIP conflicted. Canonical Node 22 ZIP: 446 entries, SHA-256 6d1aa83292261dd6ded6de8e7e677873319b8c769e9fe5481b8656a49b1685b9; the unpacked Atlas binding smoke passed. Atlas unit tests and the full desktop Chrome re-analysis regression passed at c685b92; this upstream change does not modify Code Analysis. Upstream update-notice browser tests on Windows failed in Chrome profile cleanup; three delivery timing failures passed when rerun in isolation. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Latest review follow-up

Head 888d544 merges dev c685b92 and adds as and angle-bracket assertion regression cases. The only conflict was the generated ZIP. Atlas and definition metadata suites passed 17 tests on the merged tree. The full real Chrome re-analysis test passed after updating its Windows Chrome cleanup hook; an earlier run failed during temporary-profile cleanup. The canonical Node 22 ZIP has 445 entries, SHA-256 40ab32a9e344df18f2247ed8f2129947cf4fcf1784af7bdd360e7dbf3406eaed, and its unpacked Atlas smoke passed. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Latest review follow-up

Head f28251e merges dev e24ca83 and fixes wrapped anonymous function initializers by applying the extractor wrapper rules to parentheses, as, satisfies, and type assertions. The only merge conflict was the generated ZIP. The regression failed before the fix, then passed for parentheses and satisfies; unchanged stable bindings and both wrong-selection cases passed the full real Chrome re-analysis test after an initial Windows profile-cleanup failure. On the merged tree before the final wrapper adjustment, Atlas, definition metadata, and inherited delivery-update suites passed 32 tests; the wrapper-specific regression passed after that adjustment. The rebuilt Node 22 ZIP has 445 entries, SHA-256 f13451a3974eb425da841a298d9f38ace0c793d1e7c6525702c2f45369951588; its unpacked Atlas smoke passed. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Latest review follow-up

Head 0deb954 restores an unchanged anonymous function expression only when its unique top-level variable binding can be recovered from the captured source and its measured digest matches. Named inner expressions, ambiguous scopes and unavailable or mismatched source remain ineligible. No raw-facts schema changes. The real Chrome re-analysis suite passed including both false-selection regressions and the stable-binding control; the Atlas and definition metadata suites passed 17 tests. The rebuilt Node 22 ZIP contains 445 entries, SHA-256 5f9331068cb0b7b61404621de8eb2768f5d096752ca98dbd22e0597b36d274a0; a test against the unpacked ZIP passed. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Latest review follow-up

Head 8907de8 requires function-backed 3D findings to match their original unique stable function identity on re-analysis; order-dependent callback findings now become unavailable rather than opening a different finding. Named JavaScript function expressions are conservatively ineligible for restoration because their captured expression omits the enclosing binding. Real Chrome tests reproduced both reported failures before the fix and passed afterward; an unchanged stable function finding still restores. Atlas and definition metadata suites passed 16 tests. Canonical Node 22 ZIP: 445 entries, SHA-256 dae6aade7608beac3aa3ceb9afba075735de4eda825e38c9afe1112d391a3f52. CI status for this historical update is superseded by the current-head result above.

The contributor personally confirmed the then-current head 8907de8c6cd3e9b6c06467a5d230ec885047804f and its PR explanation. Earlier confirmations below apply to their stated commits. CI results and older confirmations below apply to their stated commits.

Earlier desktop captures

Synthetic two-component fixture at 1500 x 950, after re-analysis at head 7366cf97d. The automated browser test separately exercises the selected indicator, finding, source and removed-dependency paths; this overview image does not itself depict each path. The contributor personally reviewed the restored-view flows on this head, including duplicate same-line source positions and the unavailable-selection notice.

Desktop re-analysis fixture

Indicator fallback follow-up

Head 7366cf97d returns to the parent component with an unavailable-selection notice when the previously selected indicator no longer exists. The expanded desktop Chrome regression passed locally. The canonical Node 22 archive has 445 entries (SHA-256 590e39724a78f2afd4544c44f9817b62f0a745f811489aeeec4b70b25e9cfaae). CI at 7366cf9 completed with 27 successful checks and 3 configured skips; the contributor confirmed that head; the contributor also personally reviewed the duplicate-source and unavailable-selection visual states.

Latest reading-state review follow-up

Head 3c2159e3d restores findings search and filters, indicator details and exact source references after re-analysis. A removed undrawn dependency now falls back to the overview rather than being labelled as drawn. The live desktop Chrome regression covers selected source, filters, indicator, dependency evidence and removed dependency; it passed in isolation after a Windows profile cleanup lock. The canonical Node 22 archive has 445 entries, SHA-256 c72635f241a3a30382809551e492b6784dd3b275db6f42b1aecfef50f6f7bfc6. CI at that earlier head passed; the later 7366cf9 confirmation and visual review are recorded above.

Problem and value

After desktop Re-analyze, the reader could lose the current component, finding, file search, or focus. This PR is the frontend-only continuity slice requested in maintainer review: it saves navigation state in history.state and restores it after a successful reload.

If the exact source evidence item is no longer available, the reader reports that the selection is unavailable instead of opening another block with the same file name. Atlas module restoration uses the module grouping path and root-file identity rather than a generated ID that can change after a naming collision.

AI assistance and accountability

  • AI use: Codex assisted with investigation, implementation, tests, and the PR description.
  • Accountable contributor: @outlier27-cell
  • Problem origin: desktop use and the maintainer's review of the initial combined PR.
  • I reviewed the submitted changes and explanation, understand their impact, and can answer questions about them. Validation results and gaps are recorded below.

Personal confirmation for earlier head cbd0cc2c988dfa011c199e65fb9de74035327623: the accountable contributor personally reviewed the changes, PR explanation and validation evidence.

The contributor confirmed earlier heads, including 66535c313; that confirmation does not cover the current split and synchronization.

Stability impact

  • This PR changes browser navigation and the local service reload handoff only. It makes no finding, task-schema, retained-history or persisted analysis-artifact change.
  • Missing or ambiguous source selections produce an unavailable-selection notice. The retained verification baseline proposal is being handled separately, including its compatibility and repository-identity questions.

Tests run

  • Base 9b6cf46f3195f4a0805c3226e352c92b0fd4cbb0; candidate cbd0cc2c988dfa011c199e65fb9de74035327623.
  • Desktop Chrome review and workbench browser tests passed after separating the retained-history tests. The added collision case passed in the browser; one run reported a Windows Chrome profile cleanup failure, and the same test passed on an isolated rerun.
  • The duplicate-source browser fixture passed with two occurrences in the same file and line: restoring the second occurrence retains its exact highlighted range.
  • The earlier CI found the task-browser test still expected refresh to return to the overview. The follow-up returns to the overview before that unrelated test section; the affected real-Chrome test passed locally. That earlier revision remote CI completed with 28 successful checks and 3 configured skips.

Visual evidence

Browser tests exercise the existing desktop views and keyboard focus. Earlier screenshots refer to their named revisions; personal perceptual review of the earlier head is recorded below; the latest head needs review.

Generated artifacts

Rebuilt the canonical Node 22.23.2 archify.zip from the synchronized split tree: 445 entries; SHA-256 589a0c938115a9e6eac54d06a82206e97472a60c644a925ca65e01b08b2deb97.

Personal confirmation for head 7366cf97d926125987f9fd52b36c988aaabe2224: the accountable contributor personally reviewed the current changes and PR description.

Perceptual visual review at 7366cf97d926125987f9fd52b36c988aaabe2224: the accountable contributor personally reviewed the same-file, same-line duplicate-source selection and the unavailable-selection notice after re-analysis.

Review follow-up: 7e159da

Restore the exact source entry by its role, owner and dependency target; clear the hidden external-only filter when no sources remain; and preserve off-diagram and 3D selections by stable identity. Add the missing Chinese mismatch message.

Local validation: CLI code-analysis test; desktop Chrome reanalysis flow, including changed import target, duplicate source entry, and off-diagram path; Atlas browser test (3D assertions depend on WebGL availability). One earlier Windows Chrome profile cleanup failed; an isolated rerun passed. The Atlas-modal state handoff is simulated where the toolbar is covered; the same regression also exercises a real browser pointer on the accessible toolbar.

Canonical ZIP: 445 entries, SHA-256 0ee1719bb265bbc080174aedbc8475309dceb80f02f9ddcbfc75e06c8e0c28cd. The contributor personally reviewed and confirmed head 7e159da4cc26acf4810268896d46dafb7cc7d93d and this PR description.

Current CI follow-up

Run 45566619619 is not green: the standalone Atlas return-to-overview assertion failed, and the separate Story reduced-motion decoded-video frame assertion failed; the WebM artifact job also failed after the browser job. The standalone assertion was reproduced locally on both this head and the prior head; a proposed click-stability change did not consistently pass and was discarded. A rerun request was rejected because the contributor account lacks repository admin rights. Subsequent CI runs passed the previously failing browser checks.

Test-only follow-up 6e6c5890a waits for the target to be visible, hit-testable and stable before issuing real Chrome pointer events. The standalone browser regression passed twice locally; it does not change runtime code or ZIP. CI at that earlier head reported a Windows lock-helper failure; the contributor personally reviewed and confirmed this follow-up and the PR description.

On new head 6e6c5890a, the previous standalone browser and Story browser shards passed. Run 45569284197 has a different Windows Node 22 failure: the file-lock helper did not become ready; the same named Windows test passed locally in isolation. Other checks are still running. A local integration candidate combining #1421 and #1452 passed the re-analysis, workbench and standalone Chrome tests; it is not a published merge.

Review follow-up: 914e732

  • Preserve the Java root build module when an earlier-sorting source is added; root-file modules still use the file identity. Apply this rule to the diagram, Atlas and 3D selection.
  • Restore a uniquely named 3D function across a declaration-line shift, while retaining line disambiguation for repeated names; preserve expanded evidence and focus after returning from source.
  • Exercise the 3D re-analysis handoff, Java root selection, expanded evidence return and Chinese verification messages. Restrict the browser test's stability wait to the two return transitions.

Local validation passed: Java root real re-analysis; desktop Chrome re-analysis including 3D and source return; standalone browser twice; Atlas browser; CLI and localization tests. Canonical ZIP: 445 entries, SHA-256 0b43d32b9aadc992b365bcabca5e4ae8064e0a45b6fe2d741f5b90a0f4c37ff6. The contributor has confirmed the previous head; personal review of that earlier follow-up was pending at the time. The prior CI's Windows lock-helper failure is recorded above; CI on this head completed with 28 successful checks and 3 configured skips.

Review follow-up: 3448efa

Atlas now carries an explicit root-build-group marker, allowing Java root modules to retain selection as their files change in both 2D and 3D. The 3D function payload distinguishes stable names from order-numbered anonymous callbacks; ambiguous callbacks show the unavailable-selection notice instead of selecting a different function. This deliberately does not restore anonymous callback selection without an independent identity.

Desktop Chrome regression passed for a newly inserted same-call callback, a uniquely named shifted function, and a Java root module in diagram, 2D and 3D. The test now fails if its supposedly unique fixture is not unique instead of reporting a WebGL skip. Nine Atlas unit tests passed. Canonical ZIP: 445 entries, SHA-256 536f38cc9b77c50571f6ba0b100331f5e83384d6b3e45055646763124b12d840. At that earlier revision, CI and personal review were pending.

Test-only CI follow-up 5b4da0f13 extends the Windows file-lock helper's maximum startup wait from five to thirty seconds after consecutive CI readiness failures; it still requires the actual lock and checks cleanup failure and recovery. The targeted Windows test passed locally. This does not change the shipped ZIP. CI at that earlier head completed with 29 successful checks and 2 configured skips.

Review follow-up: 1d71f83

Superseding the name-based distinction above, 3D re-analysis now binds a function selection to its captured definition SHA-256 when that digest is unique within the same file in both analyses. A missing, changed or ambiguous digest is reported as unavailable. This handles explicitly named methods resembling generated names and Java anonymous-class or JS callback renumbering without trusting display names.

Desktop Chrome coverage passed for a quoted <anonymous> method shifted by a blank line, an inserted same-call callback, identical ambiguous callbacks, and an inserted Java anonymous class; Atlas and source-range unit tests passed (13). Two local Java test runs failed during Windows Chrome profile cleanup; after graceful browser shutdown the isolated rerun passed. Canonical ZIP: 445 entries, SHA-256 a1465a26c6daf6ba74204a3a6c670299566a253cf47caa775d894926bbec2ff0. At that earlier revision, CI and personal review were pending.

Review follow-up: ded8e35

Superseding the digest-only rule above, restoration now requires the same stable qualified name and a unique full-definition digest in the same file. Order-numbered anonymous names are not automatically restored; missing or changed definitions are reported unavailable. Where present, the full definition digest includes Python decorators rather than only the metrics range. Explicitly named JS methods such as <anonymous> remain eligible.

Desktop Chrome regressions passed for copying a function body to another binding, quoted names, JS callbacks and Java anonymous classes; 14 Atlas and source-range unit tests passed, including the Python full-definition digest check. Canonical ZIP: 445 entries, SHA-256 1ff32a246fe7a40f0e05355cc206f84e3d8fa9ef649337ea419f93015cb6f2e2. Personal review of that earlier revision was pending at the time.

Earlier CI run 45576913661 is not green: the Story reduced-motion decoded-video frame test failed, and the downstream WebM artifact check failed. The same Story assertion failed on an earlier run and passed on an intervening run; these tests are outside this PR. The contributor account cannot rerun jobs because GitHub requires repository admin rights. The #1421 integration candidate passed Java, re-analysis and standalone browser tests; its workbench test hit a Windows Chrome profile cleanup failure, then passed in isolation.

The Story browser test was run separately on local Windows Chrome after the CI failure: all 9 subtests passed, including decoded Stage video advancement under reduced motion. This does not replace the failed GitHub run.

Review follow-up: 4933ec8

Java static and instance initializer names, including the first unsuffixed initializer and nested names, are treated as order-dependent and are not automatically restored. The real-browser regression inserts an identical initializer before the selection and verifies it is not confused with the old one. A second case verifies that two identical stable-name bindings are rejected as ambiguous. Both Java and desktop re-analysis browser tests passed. Canonical ZIP: 445 entries, SHA-256 42617a4cd21e9e685004687fea19b3bb061de49dadf556b7f4512b552298ee1e. CI at that earlier head completed with 29 successful checks and 2 configured skips.

Test-only follow-up 56c2fcacd uses an actual Java fixture to check static, instance and nested initializer identities in the Atlas payload without WebGL. All 11 Atlas unit tests passed locally. The shipped ZIP is unchanged. CI at that earlier head completed with 29 successful checks and 2 configured skips.

Test-only follow-up 95d0efbe3 asserts that static and instance initializer records themselves exist, separately from nested methods, and that their identities are order-dependent. The 11 Atlas unit tests passed locally; ZIP is unchanged. Current-head CI completed with 29 successful checks and 2 configured skips; Devin reports 0 unresolved bugs and flags. Personal review of current head 95d0efbe3ef762cfef9d3312444d1e95e4ac9c8b is confirmed.

Personal confirmation: the accountable contributor personally reviewed head 95d0efbe3ef762cfef9d3312444d1e95e4ac9c8b and its PR explanation.

Personal confirmation: the accountable contributor personally reviewed head 8907de8c6cd3e9b6c06467a5d230ec885047804f and its PR explanation.

Personal confirmation: the accountable contributor personally reviewed head 650a696b34de5ee3e706125aa55b307b5455166f and its PR explanation.

Personal confirmation: the accountable contributor personally reviewed head ceabbbf25f812098129f60599488f02e923a1865 and its PR explanation.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

Explain Change →

Summary

Problem: After re-analysis, the desktop reader lost its context: component, finding, file search, focus, and the source evidence item. Change: the PR stores navigation state in history.state, reloads instead of using ?analysis=open, restores the exact source item or shows an unavailable notice, and restores Atlas modules by grouping path and root file. Compatibility: the PR states no changes to finding, task-schema, retained-history, or persisted-artifact contracts. Base: dev at 9b6cf46. Head: not established. Author-reported: browser tests passed; CI reportedly passed (28 successful, 3 skipped) on current head, not observed here. Perceptual review is pending.

The overlay now captures reader and Atlas state before re-analysis. After the server reloads and completes analysis, the overlay restores selections that remain available and reports when saved context is unavailable. Browser tests cover restored reading, focus, Atlas selection, and file search.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Merge Risk: Low · up to cbd0c · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Failed 2

Failed Failed checks: 2 warnings

Check name Status Explanation Resolution
Contribution Scope Warning Checked PR #1452 (tt-a1i/archify, base dev, head ceabbbf). Provider-reported author: outlier27-cell. Strengths: - The problem is clear. Desktop Re-analyze loses the component, finding, file search, … Warn once, with these specific missing facts. Update the PR description to address each item. 1. Split or justify scope. Move the 3D identity rules, Java initializer identity, TypeScript wrapper handling, and complexity-finding linkage into…
Validation Evidence Warning Summary: The PR has broad automated and browser evidence. One concrete visible-behavior gap remains at the evaluated head. The PR body and an open CodeRabbit thread both state that perceptual revi… Smallest remediation (owner: contributor @outlier27-cell): 1. Complete and record a perceptual review at head ceabbbf25f812098129f60599488f02e923a1865. Cover the restored-view flows: a same-named method finding restored after re-analysis,…
Full details: Contribution Scope

Explanation

Checked PR #1452 (tt-a1i/archify, base dev, head ceabbbf). Provider-reported author: outlier27-cell. Strengths: - The problem is clear. Desktop Re-analyze loses the component, finding, file search, or focus. - The description cites a maintainer review comment as the scope source for a "frontend-only continuity slice". - It has an unavailable-selection failure path and an AI disclosure with accountable contributor. Scope problems (the verdict basis): 1. The "frontend-only" slice has grown. The branch adds identity-matching rules for 3D functions, Java initializers, TypeScript assertion wrappers, and definition digests (commits 4933ec8, 8907de8, 0deb954, f28251e, 95d0efb, 56c2fca). The description says these rules "became more conservative" across follow-ups. None of these is a restoration behavior the maintainer review requested. No maintainer scope decision for them is recorded. 2. The stability claim conflicts with the latest head. The description says the PR "makes no finding ... change". Head ceabbbf ("link same-named method findings by range") changes how findings link to functions in overlay/atlas.mjs (+15 lines) and adds tests. That is finding-linkage behavior, not navigation. 3. Other PRs' work is integrated. Commit 8276438 (output recovery and task locking, from #1472) touches bin/serve.mjs, bin/check.mjs and lib/output.mjs. The description also mentions a local integration candidate combining #1421 and #1452. CONTRIBUTING requires that consolidation link both PRs and state which contributions are retained. 4. User-visible text changed. The i18n label moved to "Task JSON from a retained run" and the mismatch message changed. The compatibility impact is not stated. A bot review thread says the caller key was not updated, and its status is only "addressed" by a commit reference. 5. Rollback is not described. The reload handoff in bin/serve.mjs changes, and no rollback or fallback path for it is stated beyond the unavailable notice. 6. The description is very long. Superseded CI and personal-confirmation blocks repeat across many heads. The latest scope and compatibility facts are hard to find. Standing prior FAIL: its details are unavailable. I cannot refute its claims, so PASS is not allowed. The maintainer-review link could not be opened from this environment. That limits verification of the claimed scope decision. Evidence limits: the diff against origin/dev was not available. The changed-file evidence comes from commit stats on the local branch.

Resolution

Warn once, with these specific missing facts. Update the PR description to address each item. 1. Split or justify scope. Move the 3D identity rules, Java initializer identity, TypeScript wrapper handling, and complexity-finding linkage into a separate PR, or record a maintainer scope decision that covers them. Name the decision by link. 2. Correct the stability claim. State whether finding-to-function linkage changed, and describe its compatibility impact. Remove "makes no finding change" if it is not accurate. 3. Link integrated PRs. For the #1472 output-recovery commits and the #1421 candidate, link each PR and state what is retained. Preserve attribution as CONTRIBUTING requires. 4. State compatibility for the i18n label and message changes. Confirm the caller uses the renamed key. 5. State rollback and failure behavior for the reload handoff and the restoration fallback. 6. Shorten the description to the latest head, its scope, and its evidence. Remove superseded blocks. Do not require the PR to close every item of a tracking issue. Re-run this check after the description and scope are updated.

Full details: Validation Evidence

Explanation

Summary: The PR has broad automated and browser evidence. One concrete visible-behavior gap remains at the evaluated head. The PR body and an open CodeRabbit thread both state that perceptual review of the current head is pending. The check requires a warning for concrete coverage gaps, so this run returns FAIL. Evaluated head: ceabbbf25f812098129f60599488f02e923a1865 (provider-reported; matches local HEAD). Target dev, source codex/desktop-reanalysis-continuity-20261122, author outlier27-cell. Evidence by type - Observed locally at head: The head commit ceabbbf2 changes overlay/atlas.mjs (finding-to-function linking by file, qualified name, and declaration range), test/atlas.test.mjs, test/code-analysis-review-browser.test.mjs, and archify.zip. The new Atlas test (same-named methods link each finding to its own declaration range) and the browser same-method scenario exist in code. atlas.test.mjs has 13 test( blocks, which is consistent with the reported 13/13. I did not execute tests. - Author-reported, not verified here: CI at this head (29 successful, 2 skipped); the real desktop Chrome re-analysis pass; the Node 22 ZIP rebuild; and the contributor's personal confirmation of this head and its PR explanation. Per the check, these are author reports. The personal confirmation covers the PR explanation, not perceptual review of visuals. - Reused evidence: Perceptual review of restored-view flows (duplicate-source, unavailable-selection notice) is recorded only at 7366cf97d. The body's "Visual evidence" section says "the latest head needs review." Visible restoration behavior changed after that revision (3D function restore, Java root selection, Atlas finding linking). The earlier review does not cover these flows. - Open review thread: CodeRabbit's atlas.js thread (discussion resolved, code status unknown) states that final-head perceptual review is pending. Resolving the thread does not establish that review. Claim accuracy gaps - The ZIP is described as canonical with 445 entries for earlier heads. The committed archify.zip at ceabbbf2 has 447 entries by zipfile count. Earlier commits also show 447. I cannot tell whether the discrepancy is a counting method difference or a stale figure. The body gives no count for this head. - The "Stability impact" section says the PR changes "browser navigation and the local service reload handoff only." The head commit changes atlas.mjs finding-to-function linking, which is Atlas data output. The statement is incomplete for the current head. - The body repeats many superseded "Latest follow-up" blocks with different heads. This makes the current evidence set hard to audit, though the head-named statements are individually attributable. Not a gap: Pending or unverified CI is not counted as a failure. The check accepts author-reported CI as an author claim and relies on required checks for final-head CI. Assessment: Evidence supports the code-level claims at the head. Perceptual review of the visible restored-view behavior at this head is missing. Its absence is a concrete coverage gap for visible behavior, so the check returns FAIL.

Resolution

Smallest remediation (owner: contributor @outlier27-cell): 1. Complete and record a perceptual review at head ceabbbf25f812098129f60599488f02e923a1865. Cover the restored-view flows: a same-named method finding restored after re-analysis, a 3D function restore, duplicate-source selection, and the unavailable-selection notice. Name the reviewed revision and artifacts in the PR. Browser reruns are not needed unless the head changes. 2. Reconcile the ZIP claim. State the entry count and SHA-256 for ceabbbf25. Explain the 445 vs 447 difference, or correct the figure. 3. Correct the "Stability impact" statement so it lists the Atlas finding-linking change in atlas.mjs. 4. Consolidate or remove superseded head sections so the current evidence set is clear. Required GitHub CI and branch protection still apply to the final head.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@tt-a1i

tt-a1i commented Nov 24, 2026

Copy link
Copy Markdown
Owner

Both pain points around Re-analyze are real, and the general direction is worthwhile. Because the PR combines two separable slices with very different contract surfaces (pure browser UI state restoration vs. a new on-disk retention store and task schema field), please split this into two PRs per CONTRIBUTING.md:

PR 1 (scope agreed — ready to move forward cleanly): Desktop Re-analyze context restoration

Pure frontend continuity via history.state with no schema/artifact contract changes. While preparing it, please address two edge cases:

  1. Restore exact source location, not just filename (overlay/client/overlay.js): Clicking the first link matching a filename opens the wrong block for duplicate-code findings with two blocks in the same file, and skips restoration from component/dependency/PR Files views. Persist the evidence item identity (or show the unavailable-selection notice if unmatched).
  2. Use a stable module key in Atlas (overlay/client/atlas.js): Generated module IDs can acquire numeric suffixes when a colliding module name is added (graphs/module.mjs), causing a still-present module to be reported as removed. Restore by stable grouping identity/path instead of the generated ID.
  • (Non-blocking) Consider clearing stale history.state.analysisRefresh even if mounting fails in serve.mjs.

PR 2 (follow-up once PR 1 is separated): Retained verification baselines + source.analysisSha256

The 6-capture / 4 MiB retention idea is reasonable, but please address three fail-closed issues and confirm reverse compatibility (existing validators reject the new source.analysisSha256 field) in the follow-up:

  1. Isolate retained history per repository (lib/verification-history.mjs): Filtering only by repository.root (usually .) and sourceKind allows reusing an output directory across two different repositories to match a task from Repo A against Repo B. Bind history to repository identity, not just relative scope.
  2. Use one digest identity for retention and matching (lib/verification-history.mjs): Retention deduplicates with full analysisDigest (including externalEvidence), while matching uses taskAnalysisDigest (excluding externalEvidence). Two captures differing only in supplemental bytes are both retained, making a digest-bearing task match both and fail with wrong-task-snapshot.
  3. Keep PR verification pinned to base/findings.json (bin/verify-change.mjs): Avoid falling back from a missing PR base/findings.json to an unrelated adjacent ../analysis.previous/findings.json.

Also note the Nov 24 CI run has failing browser/WebM checks that will need a clean pass on latest dev with final-head personal confirmation.

…sktop-reanalysis-continuity-20261122

# Conflicts:
#	archify.zip
#	archify/modules/code-analysis/bin/serve.mjs
#	archify/modules/code-analysis/overlay/page.mjs
@outlier27-cell outlier27-cell changed the title fix(analysis): preserve desktop context and task baselines across re-analysis fix(analysis): restore desktop context after re-analysis Nov 25, 2026
@outlier27-cell
outlier27-cell marked this pull request as ready for review November 25, 2026 03:51
devin-ai-integration[bot]

This comment was marked as resolved.

coderabbitai[bot]

This comment was marked as resolved.

@outlier27-cell
outlier27-cell marked this pull request as draft November 25, 2026 04:25
@outlier27-cell
outlier27-cell marked this pull request as ready for review November 25, 2026 06:39
devin-ai-integration[bot]

This comment was marked as resolved.

@outlier27-cell
outlier27-cell marked this pull request as draft November 25, 2026 06:48
@outlier27-cell
outlier27-cell marked this pull request as ready for review November 25, 2026 12:50
devin-ai-integration[bot]

This comment was marked as resolved.

@outlier27-cell
outlier27-cell marked this pull request as draft November 25, 2026 13:29
@outlier27-cell
outlier27-cell marked this pull request as ready for review November 26, 2026 02:46
devin-ai-integration[bot]

This comment was marked as resolved.

@outlier27-cell
outlier27-cell marked this pull request as draft November 26, 2026 02:54
@outlier27-cell
outlier27-cell marked this pull request as ready for review November 26, 2026 03:06
@tt-a1i

tt-a1i commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Scope confirmed — keeping the targeted Atlas projection changes (overlay/atlas.mjs unique (file, qualifiedName, declarationRange) matching and atlas3d.js unique 3D function identity restoration) inside #1452 makes sense because they directly enable restoring the exact selected 3D function and complexity finding after Re-analyze without changing analysis rules, extractors, or persisted schemas.

Please sync with latest dev (rebuilding archify.zip after recent dev merges) and wait for green CI so we can do final review and merge.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants