Skip to content

feat(analysis-view): select retained JavaScript metadata and native facts - #4265

Merged
N0zoM1z0 merged 7 commits into
mainfrom
feat/javascript-retained-facts
Oct 16, 2026
Merged

N0zoM1z0 merged 7 commits into
mainfrom
feat/javascript-retained-facts

Conversation

@N0zoM1z0

@N0zoM1z0 N0zoM1z0 commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Read retained JavaScript application metadata, native facts and processing gaps by exact Evidence paths, selected properties and pages, using existing CLI/MCP inspect_analysis_view. Preserve original node/observation identities, null versus missing, source-map references, full per-row Evidence and source coverage independently of page exhaustion. Optional property-name discovery avoids returning unselected values. Both adapters share the projector and coverage owner; no executor, cache or target authority is added.

Fixes #4190; part of #4027. Code mode remains deferred by #4091.

Validation

Updated to main 1b97b0f37 after #4274 merged; merge 2ca63f4d9 preserves this feature's implementation. The earlier unrelated ADB CI assertion is fixed upstream and now passes locally.

  • 114 distinct focused cases across seven files passed across documented invocations, plus 106 Python cases, full static checks, docs/metadata, five consistency cases and test discovery. Two unchanged contract-order fixture attempts exceeded their 20-second limit on busy CPU 15. Profiling located default-SDK eager catalog compilation; complete fixture assertions passed, then the original test passed in 11.446 s on one CPU 10 with the same deadline. All failures and controls remain recorded.
  • 18 version-labelled real Joplin workflows, including four fresh current-runtime export/view normal/interruption controls, passed independent export oracles. All nine view controls have exact complete CLI/MCP Evidence parity. Latest normal 12 observations and original per-row Evidence are unchanged; parent/coverage reflect semantic unknowns 41,161→41,162. Interrupted 11-row results match the prior complete answer.
  • All local resource runs use one CPU / 8 GiB, report CPU/time/process-family cgroup memory and verify cleanup; no OOM. Largest new gate peak 5,169,971,200 B includes file cache. Historical agent trials remain pinned separately; no new model trials were run.

Cost tradeoff: latest normal retrieval 4.241 s export/projection versus 0.153 s view, but selected structured BPE 8,947 versus17,421. The generic view contract/Evidence wrapper can cost more context. Seven earlier actual Terra/high Codex trials retain worse field-discovery and slower partial-task outcomes too. No universal token/latency benefit, peak-context reduction or billing claim.

Executed sources, reproduction scripts, all attempts, compact results and limitations.

Verification is Linux x64 static CLI/stdio MCP on shipped Joplin 3.7.21. Live Electron/browser, native-provider execution and macOS/Windows provider behavior are unverified. Downloadable apps, full Evidence and raw large transcripts/profiles are excluded. The earlier runner review fixes preserve actual CLI version and primary/cleanup errors; historical harnesses remain reconstructible.

Final merge evidence: merged as d9d085a15e17bce525a316a48c7e3eeae1f60423. At merge, all 41 status checks succeeded, including all 36 CI jobs. Both exact-head reviews were clear and both prior threads resolved. The first Windows lane attempt exceeded an unchanged 15-second CLI deadline despite complete Evidence output; one unchanged-source lane rerun passed, including curated tests, Node Inspector, packaging and Node 22 path controls. That first failure remains in attempt 1. All 16 authored source hashes, the entire tracked tree versus tested 8ea84cc6, required coauthor and #4190 closure were verified after merge.

Author readiness

Human owner: @N0zoM1z0

The session authorized implementation, validation, ready PRs and merging, including waiving manual declarations. The agent reviewed the diff/evidence. A human final-diff review is not asserted; declarations remain unchecked.

  • I reviewed the final diff and relevant existing code, understand the change and its edge cases, and take responsibility for the complete PR, including AI-assisted work.
  • I checked the evidence above, confirmed it supports the current change, and recorded meaningful validation gaps.
  • I declare this PR ready for initial maintainer review.

Before merge

  • Scope, shared ownership, caller choices, Evidence and local validation reviewed by the agent.
  • Current-main integration and reproducible real-application checks recorded without discarding negative results.
  • Current-head CI and automated reviews completed; attributable findings addressed.

N0zoM1z0 and others added 4 commits October 15, 2026 20:53
Page original application observations by exact retained locations and
node kinds, selecting property values while preserving canonical identities,
Evidence and source coverage. Share module/fact coverage at one owner.

Checkpoint for #4190; no PR or integration claim yet. Public filesystem
and portable/retained parity, existing view/service regressions, static/docs
and SDK-converted schema/presentation checks passed. Completed real Joplin
controls match export-and-filter facts; token and agent tradeoffs remain
under evaluation. Follow up the observed property-discovery friction.

Co-authored-by: Kaoru0822 <[email protected]>
Preserve opt-in field names and exact observation provenance. Retain real
Joplin export/view controls and qualified Codex CLI pilot results, including
negative token and latency outcomes and historical harness failures.

Co-authored-by: Kaoru0822 <[email protected]>
Preserve the measured feature checkpoints and refresh integration against
main 2202e3f before final validation.

Co-authored-by: Kaoru0822 <[email protected]>
Record the integrated 101-case suite and paired real-Joplin controls while
preserving earlier source versions, negative token results and agent trials.

Co-authored-by: Kaoru0822 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T04:26:07.807581Z 8ea84cc New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@greptile-apps

greptile-apps Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5 Tier: plus

[Medium impact] The PR appears safe to merge based on the reviewed changes; no blocking issue was found.

Summary

Adds javascript-facts to inspect_analysis_view for exact path and kind filters, selected properties, optional property-name discovery, and paged observations.

  • JavaScript analysis views return selected facts with their original Evidence.
  • The retained-facts verifier compares selected views with exported Evidence.
  • The Joplin study records comparisons of retained-facts workflows.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart LR
  CLI[CLI JSON request] --> Service[Shared analysis view service]
  MCP[MCP request] --> Service
  Service --> Source{Evidence source}
  Source -->|Retained| Ledger[Exact session lookup]
  Source -->|Inline| Authenticate[Authenticate complete Evidence]
  Ledger --> Project[Select matching observations and properties]
  Authenticate --> Project
  Project --> Result[Rows with original Evidence]
  Project --> Coverage[Source coverage separate from page exhaustion]
Loading

Reviews (3) · Last reviewed commit: "docs(verification): recheck retained fac..." · Reviewed by Greptile

Probe the selected Codex CLI before a trial and retain command, recording
and cleanup diagnostics without replacing the original failure. Preserve
completed trials on cleanup-time cancellation and verify eight controlled
entrypoint scenarios with production runtime roots and error contracts.

Co-authored-by: Kaoru0822 <[email protected]>
N0zoM1z0 and others added 2 commits October 16, 2026 03:50
Integrate main after the upstream lifecycle and ADB snapshot-test corrections landed. Preserve the existing retained-facts implementation and revalidate the shared CLI/MCP and real-application workflows.

Co-authored-by: Kaoru0822 <[email protected]>
Record114 focused cases across explicit invocations,106 Python cases and four fresh real-Joplin export/view controls after lifecycle integration. Preserve earlier trials, failed fixture attempts, source/runtime pins and the default-client schema compilation diagnostic.

Co-authored-by: Kaoru0822 <[email protected]>
@N0zoM1z0
N0zoM1z0 merged commit d9d085a into main Oct 16, 2026
75 of 77 checks passed
@N0zoM1z0
N0zoM1z0 deleted the feat/javascript-retained-facts branch October 16, 2026 04:46
@morluto morluto added area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior enhancement New feature or request labels Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Query retained application metadata and native facts by exact path

2 participants