Repository navigation
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
TL;DR: The demo pages work on Linux, with one command that fails as written. Running Tested on Linux with Node 24.18.0. Head is 8487253. Base is 13e03e9 (#1694).
Things a new reader would hit
Not run
Thanks, 林桉, for the demo pages and the clear list of what is still unproven. Commandsexport PATH=~/.local/opt/node24/bin:$PATH npm_config_cache=/tmp/pr1704/npm-cache
npm ci && npm run build && npm run test:prepare
python3 scripts/website.py check # head and base
# D01 (page block, fixture path made absolute, run from an empty folder)
npx -y [email protected] analyze-javascript-application <abs>/website/public/examples/notes-electron --json > application-evidence.json
npx -y [email protected] trace-application-feature ./feature-trace.json --json
npx -y [email protected] trace-javascript-semantics ./semantic-trace.json --json
# D02
export GHIDRA_INSTALL_DIR=.../ghidra_12.1.4_PUBLIC JAVA_HOME=.../jdk-21.0.12.1+1
npm run build:fixtures && npm run verify:fixtures
node scripts/rea.mjs search build/conformance/c "REA_C_ENTRY" --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_entry --provider ghidra --json
node scripts/rea.mjs xrefs build/conformance/c rea_entry --provider ghidra --json
# D03
npm run verify:browser
python3 scripts/website.py linksThe width check used headless Chromium and a local static server. It ran at 320 and 360 pixels. Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
8487253 to
02d29f6
Compare
|
Thanks for the thorough Linux run. I pushed commit
Validation on this Windows host: |
|
cc @N0zoM1z0 to review |
|
TL;DR: Fixed: the first demo (D01) now works from outside the checkout. Its counts and Linux digest match the evidence record. Still true: running the bare This follows my earlier comment. I tested on Linux with Node 24.18.0. Head is 02d29f6. Base is 6ff4d4a (#1752). The earlier run used head 8487253 and base 13e03e9 (#1694). The PR now sits on a new base.
Things to know
Still not run
Thanks, 林桉, for the quick follow-up and the clear notes on what changed. Commandsexport PATH=~/.local/opt/node24/bin:$PATH npm_config_cache=/tmp/p1704b/npm-cache
npm ci && npm run build && npm run test:prepare
python3 scripts/website.py check # head and base, in a uv venv with website/requirements.txt
python3 scripts/website.py links
# D01: the page block, from an empty folder, /absolute/path/to/rea set to the checkout
npx -y [email protected] analyze-javascript-application /absolute/path/to/rea/website/public/examples/notes-electron --json > application-evidence.json
npx -y [email protected] trace-application-feature ./feature-trace.json --json
npx -y [email protected] trace-javascript-semantics ./semantic-trace.json --json
# D01 probe, run in the checkout
npx -y [email protected] --version
# D02
export GHIDRA_INSTALL_DIR=.../ghidra_12.1.4_PUBLIC JAVA_HOME=.../jdk-21.0.12.1+1
npm run build:fixtures && npm run verify:fixtures
node scripts/rea.mjs search build/conformance/c "REA_C_ENTRY" --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_entry --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_branch --provider ghidra --json
node scripts/rea.mjs xrefs build/conformance/c rea_entry --provider ghidra --json
# D03
npm run verify:browserThe two Test setup
🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
02d29f6 to
7dfd2b6
Compare
|
Follow-up after the latest review:
Validation on the rebased branch:
The PR is now mergeable at the Git level; GitHub is still waiting for checks to be reported. |
dandgabr
left a comment
There was a problem hiding this comment.
Consolidated review
- [P2] Point language controls only to published demo pages.
website/public/demos/index.htmladvertises 19 localized/demos/destinations in itshreflanglinks and language picker, but the PR tree contains only the Englishwebsite/public/demos/index.html; none of the localized demo pages exist. Search engines and users selecting another language therefore reach missing pages. Generate the localized pages or remove unavailable destinations from the alternates and picker.
|
@greptileai review |
[Low impact] Adds demo links to documentation and website. Do not merge until the fixture restores the language route and page output required by FindingsFix with agent prompt### Issue 1
scripts/fixtures/browser-verifier-site.mjs:undefined-15
`/portfolio-demo` replaces the language route, but `verifyScenarioEnvironment()` still fetches `/scenario-request-language` and reads `<pre id="language">`. That URL now returns the HTML fallback, so the JSON read fails and `npm run verify:browser` stops before the new demo comparison.
Restore the language route, header echo and page output alongside the new demo.
### Issue 2
scripts/verify-agent-experience.mjs:168-170
The new CSV text checks do not affect whether `notes-export` passes. This scenario uses `notesClaims()`, and `agentEvaluationPassed()` accepts `factualCorrectness === "passed"` without checking `answerHeuristicsMet`. The required JSON answer also permits only the existing six claims, with no place for `notes.csv`, `id,title` or runtime limits.
An answer omitting all those new facts still passes. Add them to the closed claim rules and answer shape instead of adding unused text checks.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.SummaryAdds a linked portfolio of three starter demos and a separate evidence record.
Whitespace checks passed. Website checks were blocked by the installed Python version, and no browser was available for a visual check. Replacement-PR status could not be verified without GitHub access. Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["Loopback demo: two variants"] --> B["Capture each page through CLI"]
B --> C["Check steps, captured data and result text"]
C --> D["Compare saved captures"]
D --> E["Remove temporary JSON files"]
E --> F["Require aligned steps and changed DOM"]
Reviews (10) · Last reviewed commit: "fix(verify): restore demo and agent fixt..." · Reviewed by Greptile |
|
Review findings addressed at their producing boundaries and consumers. Latest changes were reviewed from source; tests and provider runs were skipped at the maintainer's request. Findings requiring separate decisions or verification remain open. The new reading page had no shared theme region and its English messages were absent from gettext catalogs. The page now uses the shared theme/header/footer generator, and all 18 language catalogs were regenerated; translated README editions also retain the canonical demos links. Current source: 4361618. Validation: source inspection only; tests and checks were skipped at the user's explicit request. The example assumed Linux symbol spelling. D02 now explains the macOS _rea_entry/_rea_branch/_rea_leaf spellings and the option to pass a provider-returned address to xrefs. Current source: 4361618. Validation: source inspection only; tests and checks were skipped at the user's explicit request. Inline script differences were sufficient to mark the DOM changed, without establishing the visible result. The verifier now reads the captured final #result output element, requires the expected text for each variant, and reports those observed strings before accepting the comparison. Current source: 4361618. Validation: source inspection only; tests and checks were skipped at the user's explicit request. D03 now states that a Windows source checkout needs the package-matched native addon used by the JavaScript worker, explains that ordinary runtime builds do not create it, and links the existing Windows native setup notes before the browser command. The English message and all 18 catalogs were regenerated. Current source: 4361618. Validation: source inspection only; tests and checks were skipped at the user's explicit request. |
|
Edit: new results on head 78f92ef are in #1704 (comment). TL;DR: The three demos work on Linux. The site check fails on head as pushed, since two page lines are missing from the translations. One command fixes that. This follows my earlier comment. I tested head 0d4e352 as pushed. It is based on 97268f4 (#2704). GitHub says it conflicts with main. I compared against main d69acc3, which has since moved on.
D01: The root digest is 0ee325d4…56f7bb, the Linux digest the evidence record lists. The application graph has 32 nodes and 45 edges, and the feature trace covers all 32 and 45. The semantic graph has 183 nodes. The page and record say 29, 42 and 180. Main d69acc3 gives the same 32, 45 and 183. My last comment measured 29 and 42, so the analyzer likely changed. I did not find which commit. The D02: The D03: Baseline Turkish README: Catalogs: The two missing sentences are the Bash-shell note and the "build the REA runtime first" line. Conflicts: 44 files exist on head, base and main. A three-way text merge conflicts in 21. They are Still not run
Thanks, 林桉, for the follow-up commits and the report of what is still unproven. The box was shared. Load average (the one-minute mean of runnable tasks, on 24 threads) was 9 to 13 near the end. Timings are not benchmarks. The page counts from Test setup
Commandsnpm ci && npm run build && npm run test:prepare
python3 scripts/website.py check
python3 scripts/website.py translations extract # in a separate copy of head
node scripts/check-doc-facts.mjs
node scripts/run-development-tests.mjs focused tests/boundary/filesystem/productCatalog.test.ts
node scripts/run-development-tests.mjs focused tests/boundary/browser/browserProcessStartup.test.ts tests/evaluation/model-evals/agentEvaluationReport.test.ts
# D01: the page block, from an empty folder, with node scripts/rea.mjs and an absolute fixture path
# D02
npm run build:fixtures && npm run verify:fixtures
node scripts/rea.mjs function build/conformance/c rea_branch --provider ghidra --json
# D03
npm run verify:browserI did not use the published npm package this time. The checkout CLI gave the same digest as last time. 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
0d4e352 to
78f92ef
Compare
Follow-up: latest demo review addressedThanks for the latest Linux verification. I rebased Changes in this update
Validation on the rebased branch
The historical D01/D02 provider observations in the evidence record are unchanged; this update does not claim a new Linux Ghidra run, agent transcript or other external-provider verification. |
|
TL;DR: The site check and the doc-facts check now pass. The browser demo check now fails on head 78f92ef, because one line uses a variable that no longer exists. The earlier head was 0d4e352. Edit: I ran new results on head 8b3aded, here. They add D03 on Node 26, Node 22 for the test files, doc-facts and D01, and a conflict check against main. The other items under Still not run below have not run yet. This follows my earlier result on head 0d4e352. Head is now 78f92ef. Its base is main 3e88e21 (#3605). I ran the same commands again.
D03, the new problem. The run stops with Fixed since my last result. The site check now covers 1,780 source messages in 19 catalogs. It then verifies 402 HTML pages and 26,527 local references. These counts match what 014-code reported. The doc-facts check no longer reports the missing Turkish link. D01: The root digest is 0ee325d4…56f7bb, the same as before. The application graph has 32 nodes and 45 edges. The feature trace covers all 32 and 45. The semantic graph has 183 nodes and 110 relations. The D02: The Still not run
Thanks, 014-code, for regenerating the 19 catalogs and adding the Turkish link. The box was shared. Timings are not benchmarks. The site check needs CairoSVG 2.9.1 and polib 1.2.0. I put both in a throwaway Python environment. Test setup
Commandsnpm ci && npm run build && npm run test:prepare
python3 scripts/website.py check
node scripts/check-doc-facts.mjs
node scripts/run-development-tests.mjs focused tests/boundary/filesystem/productCatalog.test.ts tests/boundary/browser/browserProcessStartup.test.ts tests/evaluation/model-evals/agentEvaluationReport.test.ts
# D01, from an empty folder, with node scripts/rea.mjs and an absolute fixture path
node scripts/rea.mjs analyze-javascript-application <checkout>/website/public/examples/notes-electron --json > application-evidence.json
node scripts/rea.mjs trace-application-feature ./feature-trace.json --json
node scripts/rea.mjs trace-javascript-semantics ./semantic-trace.json --json
# D02
npm run build:fixtures && npm run verify:fixtures
node scripts/rea.mjs search build/conformance/c "REA_C_ENTRY" --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_entry --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_branch --provider ghidra --json
node scripts/rea.mjs xrefs build/conformance/c rea_entry --provider ghidra --json
# D03
REA_BROWSER_EXECUTABLE=/usr/bin/chromium-browser npm run verify:browserI used the checkout CLI, not the published npm package. I extracted the head with git archive from the mirror. Its dependencies came from an install on a tree with the same lockfile. 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
78f92ef to
9f0ed21
Compare
| response.setHeader("content-type", "application/json"); | ||
| response.setHeader("cache-control", "no-store"); | ||
| response.end(JSON.stringify(request.headers["accept-language"] ?? null)); | ||
| if (requestUrl.pathname === "/portfolio-demo") { |
There was a problem hiding this comment.
Browser verifier stops before demos
/portfolio-demo replaces the language route, but verifyScenarioEnvironment() still fetches /scenario-request-language and reads <pre id="language">. That URL now returns the HTML fallback, so the JSON read fails and npm run verify:browser stops before the new demo comparison.
Restore the language route, header echo and page output alongside the new demo.
Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/fixtures/browser-verifier-site.mjs
Line: 15
Comment:
**Browser verifier stops before demos**
`/portfolio-demo` replaces the language route, but `verifyScenarioEnvironment()` still fetches `/scenario-request-language` and reads `<pre id="language">`. That URL now returns the HTML fallback, so the JSON read fails and `npm run verify:browser` stops before the new demo comparison.
Restore the language route, header echo and page output alongside the new demo.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.| ["notes.csv"], | ||
| ["id,title"], | ||
| ["runtime", "not executed", "not observed"], |
There was a problem hiding this comment.
The new CSV text checks do not affect whether notes-export passes. This scenario uses notesClaims(), and agentEvaluationPassed() accepts factualCorrectness === "passed" without checking answerHeuristicsMet. The required JSON answer also permits only the existing six claims, with no place for notes.csv, id,title or runtime limits.
An answer omitting all those new facts still passes. Add them to the closed claim rules and answer shape instead of adding unused text checks.
Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/verify-agent-experience.mjs
Line: 168-170
Comment:
**New answer checks are ignored**
The new CSV text checks do not affect whether `notes-export` passes. This scenario uses `notesClaims()`, and `agentEvaluationPassed()` accepts `factualCorrectness === "passed"` without checking `answerHeuristicsMet`. The required JSON answer also permits only the existing six claims, with no place for `notes.csv`, `id,title` or runtime limits.
An answer omitting all those new facts still passes. Add them to the closed claim rules and answer shape instead of adding unused text checks.
---
For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.9f0ed21 to
8b3aded
Compare
Follow-up: verifier review findings fixedThanks for the concrete findings. I rebased the branch onto the latest upstream Fixes
Validation
The full |
|
TL;DR: Both fixes the author described are in the code, and the other checks from my last result still pass. The browser demo check, This follows my earlier result on head 78f92ef. Head is now 8b3aded. Its base is main 1b97b0f (#4274). Main has since moved to 3537e58. I ran the same commands again.
D03, the new problem. The run stops at A diagnostic, not the pushed head. In my own copy I put those removed pieces back and left everything else alone. The two fixes.
Conflicts with main. Main was at 3537e58. I ran
Still not run
Thanks, 014-code, for the quick rebase and for removing the stale The box was shared. Timings are not benchmarks. The site check needs CairoSVG 2.9.1 and polib 1.2.0. I put both in a throwaway Python environment. Test setup
Commandsnpm ci --ignore-scripts && npm run prepare && npm run build:cached && npm run test:prepare
python3 scripts/website.py check
node scripts/check-doc-facts.mjs
node scripts/run-development-tests.mjs focused tests/boundary/filesystem/productCatalog.test.ts tests/boundary/browser/browserProcessStartup.test.ts tests/evaluation/model-evals/agentEvaluationReport.test.ts
node scripts/run-development-tests.mjs focused tests/boundary/mcp/agentKnownAnswerMcp.test.ts
grep -rn demoResults scripts src tests
node --check scripts/verify-real-browser.mjs
node --check scripts/verify-agent-experience.mjs
# Notes fixture: import createAgentEvaluationFixtures from dist/evaluation/AgentEvaluationFixtures.js,
# call it on a temp folder, then compare the sha256 of notesElectron with notesElectronSha256
# D01, from an empty folder, with node scripts/rea.mjs and an absolute fixture path
node scripts/rea.mjs analyze-javascript-application <checkout>/website/public/examples/notes-electron --json > application-evidence.json
node scripts/rea.mjs trace-application-feature ./feature-trace.json --json
node scripts/rea.mjs trace-javascript-semantics ./semantic-trace.json --json
# D02
npm run build:fixtures && npm run verify:fixtures
node scripts/rea.mjs search build/conformance/c "REA_C_ENTRY" --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_entry --provider ghidra --json
node scripts/rea.mjs function build/conformance/c rea_branch --provider ghidra --json
node scripts/rea.mjs xrefs build/conformance/c rea_entry --provider ghidra --json
# D03, on the head and on the base 1b97b0f3
REA_BROWSER_EXECUTABLE=/usr/bin/chromium-browser npm run verify:browser
# conflicts, in a scratch repository fetched from a mirror of the repository
git merge-tree --write-tree --name-only refs/heads/main refs/heads/prI used the checkout CLI, not the published npm package. I extracted each tree with git archive from a mirror. The diagnostic run used a copy of 🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊 |
|
@014-code thanks for the PR — there are 2 open review threads here:
Could you address or reply to these? Once they're resolved and CI is green we can take another look. |
|
@014-code also, this branch has merge conflicts with |
Summary
Add a README-linked D01-D03 demo portfolio and record what was actually reproduced for issue #778. Refs #778.
Problem and expected behavior
REA already has source-owned examples and verifier lanes, but new users need a compact path from an analyst question to a checked answer across JavaScript/Electron, native analysis and browser behavior. The page distinguishes verified results from provider, agent and measurement gaps so this PR does not imply that issue #778 is complete.
Change and scope
renderer.js->preload.js->main.js->csv.jsdata flow, the CSV header and the static-analysis limits. The agent evaluation verifier now expects the analysis, feature trace and semantic query sequence.close_binarycleanup. The local Windows host lacked a C compiler and configured Ghidra, IDA or Hopper, so no native result is claimed.compare-web-captures, asserting aligned steps, a changed result and a DOM difference.Contract and boundary impact
Evidence and regression coverage
changedand a changed DOM artifact.b8b2d376-d5a4-495a-b558-dedfc0884d1d.Exported 2 notes, changedExported 3 notes, one changed DOM artifact.Validation performed
npm run build:cached- passed as part ofverify:browser.npm run check:fast- passed.npm run verify:windows-native:artifact- passed for Windows x64, package 6.4.0.npm run verify:browser- passed with Node.js 24.18.0, npm 11.16.0 and Chrome 154.0.8037.99; run ID above.python scripts/website.py check- passed: 20 HTML pages, 437 local references, metadata/sitemap checks and 7 maintenance tests.oxfmt --checkon all 9 changed files andgit diff --check- passed. Full-repositorynpm run format:checkflags even unchangedCONTRIBUTING.mdin this Windows checkout withcore.autocrlf=true; the changed files pass the scoped check.check:fast- passed.Compatibility, safety, and release