Skip to content

docs(website): add reproducible starter demos - #1704

Open
014-code wants to merge 7 commits into
morluto:mainfrom
014-code:docs/issue-778-demo-portfolio
Open

014-code wants to merge 7 commits into
morluto:mainfrom
014-code:docs/issue-778-demo-portfolio

Conversation

@014-code

Copy link
Copy Markdown
Contributor

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

  • D01 documents the six-file Electron Notes fixture, its CLI analysis and feature trace, the renderer.js -> preload.js -> main.js -> csv.js data flow, the CSV header and the static-analysis limits. The agent evaluation verifier now expects the analysis, feature trace and semantic query sequence.
  • D02 documents fixture generation and integrity checks, Ghidra CLI/MCP reproduction steps and the required close_binary cleanup. The local Windows host lacked a C compiler and configured Ghidra, IDA or Hopper, so no native result is claimed.
  • D03 adds a deterministic loopback page with baseline and changed results. The real-browser verifier captures both through the public CLI and compares them with compare-web-captures, asserting aligned steps, a changed result and a DOM difference.
  • Link the new public page from the README and guide hub. Add a separate evidence record for digests, run IDs, cleanup, blockers and unmeasured resource costs.

Contract and boundary impact

  • Semantic owner and earliest changed stage: documentation and verifier fixtures only.
  • CLI and MCP/tool-catalog contract: none; the verifier exercises existing public commands.
  • Provider, bridge, target-format, or platform compatibility: no provider behavior changed. D03 uses the real Chrome provider; D02 provider execution remains unavailable locally.
  • Evidence, artifact, provenance, or reconstruction contract: no contract change; the page distinguishes static evidence, real browser captures, unknowns and unverified claims.
  • Process execution, authorization, cleanup, or containment impact: D03 launches only the source-owned loopback fixture; the verifier terminates its owned Chrome processes and removes profiles and comparison inputs.
  • Generated metadata, package, or installation impact: none.

Evidence and regression coverage

  • Tests added or updated: extend the agent experience scenario and real-browser verifier for D01/D03; the D03 check requires real CLI captures, aligned comparison status changed and a changed DOM artifact.
  • Base reproduction or other evidence: source-backed D01 CLI Evidence and complete feature trace; D03 real Chrome capture and CLI comparison, run b8b2d376-d5a4-495a-b558-dedfc0884d1d.
  • User-visible output: baseline Exported 2 notes, changed Exported 3 notes, one changed DOM artifact.
  • Remaining proof gaps: no real D01 agent transcript, no D02 native-provider result, no walkthrough recording or clean-user setup run, and no measured time/CPU/RSS/disk budget. These are stated on the page and in the evidence record.

Validation performed

  • npm run build:cached - passed as part of verify: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.
  • Scoped oxfmt --check on all 9 changed files and git diff --check - passed. Full-repository npm run format:check flags even unchanged CONTRIBUTING.md in this Windows checkout with core.autocrlf=true; the changed files pass the scoped check.
  • Pre-commit format/lint hooks and pre-push check:fast - passed.

Compatibility, safety, and release

  • Breaking changes or migration steps: none.
  • Real Hopper/Ghidra, browser, or OS coverage: real Chrome on Windows; no local Ghidra/IDA/Hopper run.
  • Package or release metadata impact: none.
  • Security, privacy, process, or containment review: fixture traffic is loopback-only; temporary comparison inputs and provider-owned browser resources were cleaned up. No external application or private target was used.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits.
Repo admins can enable using credits for code reviews in their settings.

@CassieFox23

CassieFox23 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

TL;DR: The demo pages work on Linux, with one command that fails as written. Running npx [email protected] inside a checkout exits 127, because the checkout is itself rea-agents 6.4.0. A run of 6.3.0 in the same folder works. The other demo steps gave the numbers the page promises.

Tested on Linux with Node 24.18.0. Head is 8487253. Base is 13e03e9 (#1694).

Check Result
python3 scripts/website.py check, head Passed, exit 0. 20 pages, 437 local references, 7 tests.
python3 scripts/website.py check, base Passed, exit 0. 19 pages, 421 local references.
D01, five commands as written, run inside the checkout Failed. The first npx exits 127 with rea: command not found. The later steps then fail on empty JSON.
D01, same commands from another folder, absolute fixture path All exit 0 in 5.6 seconds. Application graph 29 nodes and 42 edges. Feature trace 29 and 42. Semantic graph 180 nodes and 108 relations. Property invoke query is ambiguous with one seed and one unknown. A literal notes:export query finds no seed.
D01, root artifact digest Differs from the evidence record. Linux gives 0ee325d4…56f7bb. The record says 3c11d593…4396e. A CRLF copy of the six files gives the recorded digest.
D01 with the head build (node scripts/rea.mjs) Exit 0. Same digest and counts as the npm package.
D02, npm run build:fixtures and verify:fixtures Exit 0 both, using gcc 16.2.1. Binary hash starts d290ed8a.
D02, three Ghidra 12.1.4 commands All exit 0, about 9.7 seconds each. The string is at 0x4021fb. rea_entry prints REA_C_ENTRY and calls rea_branch.
D02, MCP calls from open to close Every call succeeded. close_binary gave no error. No Ghidra process stayed running.
D03, npm run verify:browser Exit 0 in 106 seconds. Baseline Exported 2 notes, changed Exported 3 notes, aligned, changed, one changed DOM artifact. Run ID starts 64260ab8.
Links and assets Every local file, GitHub file and heading anchor the new pages use exists in the head tree.
Width at 320 px No page overflow on /demos/ or /guides/. Page width equals window width.

Things a new reader would hit

  • D01 inside a checkout: the page says to start from a repository checkout. There, npx [email protected] picks the checkout itself and looks for a rea command that is not installed. This needs the exact name and version, so it holds only while the checkout is 6.4.0. From any other folder it works. node scripts/rea.mjs also works. Main is at 6.4.0 too, so this holds today.
  • D01 digest: the recorded digest comes from Windows line endings. A Linux checkout has a different digest. The graph counts match anyway. Evidence IDs also change with the folder path, so they cannot be matched from another checkout.
  • D02 never reaches the leaf: the page asks for the calls from rea_entry to the leaf. The three commands show rea_branch only. Running function on rea_branch shows rea_leaf.
  • D02 xrefs: the CLI takes a name. The MCP xrefs call rejected rea_entry and wanted an address. Of the three CLI addresses, one is the call in main. The other two fall in .eh_frame_hdr and .eh_frame.
  • D03: the $env: line is PowerShell and fails in bash with exit 127. The page labels it for Windows. Linux found /usr/bin/chromium-browser without it. The page does not say where to look. The two result strings appear only inside the demoPortfolioComparison block of the JSON report.
  • Links: the evidence record link on the demo page points at main, which returns 404 until this merges. The separate python3 scripts/website.py links audit reported only that one missing link.
  • Wide code: three code blocks on /demos/ are wider than the screen. They scroll inside their own box. The existing JavaScript guide does the same.

Not run

  • npm run check:fast, the full test suite and the formatter check.
  • The agent evaluation for D01 (verify-agent-experience). It needs an agent login, and the page says it is unverified.
  • Windows and macOS, and the IDA and Hopper providers.
  • Any timing, CPU or memory budget. The box was shared. The load average (runnable tasks, one-minute mean) was 6 to 9 on 24 threads.

Thanks, 林桉, for the demo pages and the clear list of what is still unproven.

Commands
export 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 links

The 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) 🦊

@014-code
014-code force-pushed the docs/issue-778-demo-portfolio branch from 8487253 to 02d29f6 Compare October 11, 2026 07:58
@014-code

Copy link
Copy Markdown
Contributor Author

Thanks for the thorough Linux run. I pushed commit 02d29f6a with follow-up documentation fixes.

  • D01 now shows two supported paths: run the pinned [email protected] package from outside the checkout with an absolute fixture path, or run the checkout source with node scripts/rea.mjs after npm ci and npm run build.
  • The evidence record identifies the published root digest as the Windows CRLF result, records the Linux LF digest and matching graph counts, and explains that byte-level digests and path-dependent Evidence IDs can differ across checkouts.
  • D02 now includes the rea_branch query to show the call to rea_leaf. It also distinguishes CLI xrefs, which resolves a symbol name, from MCP xrefs, which takes an address and requires it explicitly for Ghidra.

Validation on this Windows host: python scripts/website.py check passed for 20 pages and 438 local references, including all 7 website regression tests; oxfmt --check and git diff --check passed. I did not rerun the Linux npm workflow or the Ghidra 12.1.4 provider workflow. D03’s PowerShell setting is already labeled Windows-only, so it needed no change.

@morluto

morluto commented Oct 11, 2026

Copy link
Copy Markdown
Owner

cc @N0zoM1z0 to review

@CassieFox23

CassieFox23 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

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 npx call inside a checkout fails, and the page now warns about it.

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.

Check Result
python3 scripts/website.py check, head Passed, exit 0. 20 pages, 438 local references, 7 tests.
python3 scripts/website.py check, base Passed, exit 0. 19 pages, 422 local references. The difference of 16 is the same as last time. Both counts are one higher because the new base gained one reference.
D01, the five page commands from an empty folder, absolute fixture path All exit 0 in 7.9 seconds (5.6 last time). Application graph 29 nodes and 42 edges. Feature trace 29 and 42. Semantic graph 180 nodes and 108 relations. Property invoke query is ambiguous with one seed and one unknown.
D01, root artifact digest 0ee325d4…56f7bb. It equals the Linux digest the evidence record now lists.
D01, same five commands with node scripts/rea.mjs from the checkout root All exit 0. Same digest and counts as the npx run.
D01, npx -y [email protected] --version inside the checkout Exit 127, rea: command not found. The warning on the page is still needed.
D02, npm run build:fixtures and verify:fixtures Exit 0 both. Source hash 703a84cb, same as last time.
D02, four Ghidra 12.1.4 commands, with the new rea_branch query All exit 0, 7.9 to 8.4 seconds each (9.7 last time). The rea_branch query shows the call to rea_leaf.
D02, MCP calls with the address taken from the rea_entry result Every call succeeded, including close_binary. The xrefs reply lists the same three addresses as the CLI. MCP xrefs rejects the name rea_entry, as the page now says.
D03, npm run verify:browser Exit 0 in 92 seconds (106 last time). Exported 2 notes, then Exported 3 notes, aligned, changed, one changed DOM artifact.
Links Same as before: one missing link, the evidence record on main, which returns 404 until this merges.
Width at 320 and 360 px No page overflow on /demos/, /guides/ or the home page. The first code block on /demos/ is wider now, because of the longer path. It scrolls inside its own box.

Things to know

  • Binary hash: the D02 binary hash differs from last time (ef9404e9, was d290ed8a). The source is the same. The binary holds the build folder path. I did not prove that this is the cause.
  • Timing: these timings come from a shared box. Load average (the one-minute mean of runnable tasks) was 1 to 1.5 on 24 threads at each start. They are not benchmarks.
  • Evidence IDs: mine differ from the record's. The record now says they can.

Still not run

  • npm run check:fast, the full test suite and the formatter check.
  • The agent evaluation verify-agent-experience, which this PR extends with a new case. It needs an agent login.
  • Windows and macOS, and the IDA and Hopper providers.
  • Any CPU or memory budget.
  • The full five-command D01 block inside a checkout. The page no longer tells readers to do that. The one-line --version probe covers it.

Thanks, 林桉, for the quick follow-up and the clear notes on what changed.

Commands
export 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:browser

The two node --input-type=module steps that write the trace inputs are the page's own. The width check used headless Chromium and a local static server at 320 and 360 pixels.

Test setup
  • Box: Nobara 44 (Fedora 44 base), Linux 7.2.9
  • CPU: AMD Ryzen 9 5900X, 12 cores / 24 threads
  • RAM: 32 GB DDR4-3600
  • Node: 24.18.0
  • Head / base: 02d29f6 / 6ff4d4a (docs: celebrate 80,000 GitHub stars 🎉 #1752)
  • Ghidra: 12.1.4 (Apache-2.0)
  • gcc: 16.2.1
  • Chromium: 154.0.8037.57. License: BSD-3-Clause.
  • rea-agents: 6.4.0 from npm (MIT)

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

@014-code
014-code force-pushed the docs/issue-778-demo-portfolio branch from 02d29f6 to 7dfd2b6 Compare October 12, 2026 03:41
@014-code

Copy link
Copy Markdown
Contributor Author

Follow-up after the latest review:

  • Rebases docs/issue-778-demo-portfolio onto the current main at a1b5d51a.
  • The rebase completed without conflicts. The branch now points to 7dfd2b6d.
  • Synced website/public/demos/index.html with the current website generator, including the language alternate links and language picker shared blocks.
  • The PR still contains the same nine scoped files and the original D01-D03 documentation and verifier changes.

Validation on the rebased branch:

  • npm run check:fast passed locally and in the push precheck.
  • Scoped oxfmt --check passed for all nine changed files.
  • git diff --check passed.
  • python scripts/website.py check reaches the shared HTML check, but exits on translation-source drift already present on the current main (website/locales/messages.pot and locale .po files). This PR does not modify those locale files.

The PR is now mergeable at the Git level; GitHub is still waiting for checks to be reported.

@dandgabr dandgabr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consolidated review

  • [P2] Point language controls only to published demo pages. website/public/demos/index.html advertises 19 localized /demos/ destinations in its hreflang links and language picker, but the PR tree contains only the English website/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.

@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 4/5 Tier: apex

[Low impact] Adds demo links to documentation and website.

Do not merge until the fixture restores the language route and page output required by verifyScenarioEnvironment().

Findings

  1. P1 Browser verifier stops before demos ▶
  2. P2 New answer checks are ignored ▶
Fix 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.

Summary

Adds a linked portfolio of three starter demos and a separate evidence record.

  • Readers can trace the Notes app’s Export notes action across its Electron files.
  • Readers can prepare a native fixture and follow a recipe for inspecting its functions.
  • The browser verifier compares baseline and changed captures from a loopback demo page.
  • The README and guide hub point readers to the three-demo portfolio.

014-code leaves the missing agent transcript, native-provider run, recordings, clean-user setup and resource measurements for follow-up. The earlier macOS symbol thread was manually resolved without explanation.

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"]
Loading

Reviews (10) · Last reviewed commit: "fix(verify): restore demo and agent fixt..." · Reviewed by Greptile

Comment thread website/public/demos/index.html Resolved
Comment thread scripts/verify-real-browser.mjs Resolved
Comment thread website/public/demos/index.html Resolved
Comment thread website/public/demos/index.html Resolved
@morluto

morluto commented Oct 13, 2026

Copy link
Copy Markdown
Owner

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.

  1. thread 1

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.

  1. thread 1

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.

  1. thread 1

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.

  1. thread 1

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.

@morluto morluto added documentation Improvements or additions to documentation i18n Translations and localization workflow area: build Build, CI, packaging, and publishing P3: low Low priority, nice to have labels Oct 13, 2026
Comment thread website/public/demos/index.html Resolved
Comment thread website/public/demos/index.html Resolved
Comment thread scripts/verify-real-browser.mjs Resolved
@CassieFox23

CassieFox23 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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.

Check Node 24.18.0 Node 26.11.1
python3 scripts/website.py check, head as pushed Failed, exit 1: "Translation sources changed" not run
Same check, head after translations extract (my copy) Passed, exit 0 not run
Same check, main d69acc3 Passed, exit 0 not run
node scripts/check-doc-facts.mjs, head Failed, exit 1: README_tr.md links differ from README.md not run
Same check, main d69acc3 Passed, exit 0 not run
productCatalog.test.ts, head 1 failed, with the same README_tr.md message. On main: 10 passed not run
The other two related test files, head 11 passed 11 passed
D01, the five page commands with the checkout CLI All exit 0, 3.8 s All exit 0, 4.1 s
D02, fixtures and four Ghidra 12.1.4 commands All exit 0, 8.9 to 9.4 s per Ghidra command not run
D03, npm run verify:browser Exit 0, 97 s Exit 0, 113 s

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 invoke query is still ambiguous.

D02: The rea_branch query shows the call to rea_leaf. The string is at 0x40246a (0x4021fb last time). The binary holds the build folder path, which may explain it. This is unverified.

D03: Baseline Exported 2 notes, changed Exported 3 notes, aligned, changed, one changed DOM artifact. The report names both strings now. Main's verifier also passes.

Turkish README: README_tr.md has no link to docs/rust-binaries.md. The base 97268f4 lacks it too, and main has it. So this failure comes from the base, not from this PR. I did not run the checker on the base. The file merges cleanly with main.

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 scripts/verify-real-browser.mjs, scripts/verify-agent-experience.mjs, messages.pot and the 18 .po catalogs. The catalogs are generated. The two new files cannot conflict. The merged result is untested.

Still not run

  • npm run check:fast, the full suite and the formatter check.
  • The agent evaluation verify-agent-experience, which needs an agent login.
  • Node 22, Windows, macOS, IDA and Hopper.
  • D02 MCP calls. Any CPU or memory budget.
  • Why browser / real-browser fails on main CI but passed here. The lint error in ManagedCilDecoding.test.ts, a file this PR does not touch.

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 website.py check (382 pages on head, 363 on main) are not comparable with my last comment's 20, and I did not trace why.

Test setup
Commands
npm 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:browser

I 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) 🦊

@014-code
014-code force-pushed the docs/issue-778-demo-portfolio branch from 0d4e352 to 78f92ef Compare October 15, 2026 07:31
@014-code

Copy link
Copy Markdown
Contributor Author

Follow-up: latest demo review addressed

Thanks for the latest Linux verification. I rebased docs/issue-778-demo-portfolio onto the current upstream main (3e88e2170) and pushed commit 78f92ef987.

Changes in this update

  • Regenerated the gettext source catalog and all 19 locale catalogs after the shared Demos page changed. This removes the translation-source drift reported by website.py check and includes the new page messages and current source locations.
  • Regenerated the localized website output used by the website checks, so the Demos page is available through the language routes advertised by its hreflang and language picker blocks.
  • Added the canonical Demos link to all 19 translated README editions, including the missing Turkish link reported by the review.
  • Synced the English Demos page with the current shared theme, navigation, footer and language-picker blocks.
  • Kept the D01 historical evidence internally consistent: the recorded 29-node/42-edge application graph and 180-node/108-relation semantic graph remain explicitly pinned to REA source revision 0ecf3f2438ec and the published Evidence IDs. New analyzer counts from later REA revisions are not substituted into that historical record without new Evidence IDs.

Validation on the rebased branch

  • npm run check:fast passed.
  • npm run build:cached passed.
  • npm run test:local -- src/application/WorkflowEvidence.test.ts: 13 tests passed.
  • node scripts/check-doc-facts.mjs passed.
  • Scoped oxfmt --check passed for the Demos page, evidence record and 19 translated README files.
  • PYTHONUTF8=1 python scripts/website.py check passed: 16 tests, 402 generated HTML pages, 26,527 local references and 362 indexable pages.
  • git diff --check passed.

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.

Comment thread scripts/verify-real-browser.mjs Resolved
Comment thread scripts/verify-agent-experience.mjs Resolved
@CassieFox23

CassieFox23 commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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.

Check Node 24.18.0 Node 26.11.1
python3 scripts/website.py check, head as pushed Passed, exit 0. Was exit 1 on 0d4e352. not run
node scripts/check-doc-facts.mjs Passed, exit 0. Was exit 1 on 0d4e352. not run
productCatalog.test.ts and the other two test files 22 passed. Was 1 failed on 0d4e352. 22 passed
D01: the five page commands with the checkout CLI All exit 0, 1.9 s for the first not run
D02: fixtures and four Ghidra 12.1.4 commands All exit 0, 10 to 11 s per Ghidra command not run
D03: npm run verify:browser Failed, exit 1. Was exit 0 on 0d4e352. not run

D03, the new problem. The run stops with ReferenceError: demoResults is not defined. It comes from scripts/verify-real-browser.mjs, line 368, which reads demoResults[variant] = observedResult;. On 0d4e352 that file declared const demoResults = {}; at line 305 and used it again at line 477. On 78f92ef both are gone, and only the assignment is left. A merge with main probably dropped them. That cause is unverified. The check ran 40 s and failed on its first demo variant, so the browser comparison never ran.

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 invoke query is still ambiguous. The page still says 29 nodes and 42 edges. The author says the page pins those numbers to an older REA revision and its Evidence IDs on purpose. I read that note and did not test it.

D02: The rea_branch query shows the call to rea_leaf. The string sits at 0x40246a, the same as last time.

Still not run

  • npm run check:fast, the full suite and the formatter check.
  • D03 on Node 26 (ran: it fails at the browser environment step, not at the demoResults line), and the rest of D03 past the failing line.
  • The agent evaluation verify-agent-experience, which needs an agent login.
  • Node 22 (ran only the three test files, doc-facts and D01), Windows, macOS, IDA and Hopper.
  • D02 MCP calls. A merge of the new head with current main. Partly run: the conflict list only. 21 files conflict, and the merged tree was not built.

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
Commands
npm 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:browser

I 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) 🦊

@014-code
014-code force-pushed the docs/issue-778-demo-portfolio branch from 78f92ef to 9f0ed21 Compare October 16, 2026 03:49
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") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 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.

Comment on lines +168 to +170
["notes.csv"],
["id,title"],
["runtime", "not executed", "not observed"],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 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.

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.

@014-code
014-code force-pushed the docs/issue-778-demo-portfolio branch from 9f0ed21 to 8b3aded Compare October 16, 2026 03:59
@014-code

Copy link
Copy Markdown
Contributor Author

Follow-up: verifier review findings fixed

Thanks for the concrete findings. I rebased the branch onto the latest upstream main (1b97b0f3) and pushed 8b3adedae.

Fixes

  • Removed the stale demoResults[variant] assignment from scripts/verify-real-browser.mjs. The captured result is already validated against the expected text and the two captures are passed to runScenarioComparisonCli; there was no consumer for a separate demoResults object. The browser verifier can now continue through both variants, comparison, cleanup and report generation.
  • Restored the Notes agent scenario to the archive target returned by createAgentEvaluationFixtures() (notes-electron.asar) together with its matching notesElectronSha256. The temporary unpacked-directory override was pairing a directory path with the archive digest, so valid Evidence was rejected as source_subject_mismatch. The existing fixture helper and claim rubric now own both the path and digest consistently.
  • Reconciled the branch with current main; the PR is Git-level mergeable again.

Validation

  • npm ci completed successfully with 0 audit vulnerabilities.
  • npm run build:cached passed.
  • npm run check:fast passed, including the push precheck after the final rebase.
  • node --check scripts/verify-real-browser.mjs passed.
  • node --check scripts/verify-agent-experience.mjs passed.
  • git diff --check passed.
  • tests/evaluation/model-evals/agentEvaluationReport.test.ts passed (6 tests).

The full npm run verify:browser command was attempted on this Windows host but stopped at the existing Windows verifier prerequisite before entering the browser scenario: the checkout has no packaged native/windows/build/manifest.json and .node artifact. Linux CI or a host with the verified Windows native artifact is required to exercise the real browser lane here. The previous local focused boundary run also had unrelated host-sensitive failures in the Windows process-signal fixture and MCP provider setup; neither reached these changed lines.

@CassieFox23

Copy link
Copy Markdown
Contributor

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, npm run verify:browser, still fails on head 8b3aded. It now stops earlier, because the rebase removed a test-page route that main added. The head also conflicts with current main in 21 generated files.

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.

Check Head 78f92ef Head 8b3aded
python3 scripts/website.py check Passed, exit 0 Passed, exit 0. Same counts: 1,780 messages, 19 catalogs, 402 pages, 26,527 references
node scripts/check-doc-facts.mjs Passed, exit 0 Passed, exit 0 on Node 22, 24 and 26
productCatalog.test.ts and the other two test files 22 passed on Node 24 and 26 22 passed on Node 22, 24 and 26
D01: the five page commands with the checkout CLI All exit 0 All exit 0 on Node 22, 24 and 26. Same graph: 32 nodes, 45 edges, same digest
D02: fixtures and four Ghidra 12.1.4 commands All exit 0 All exit 0. String at 0x40246a, same as before
D03: npm run verify:browser Failed, exit 1, demoResults not defined, after 40 s Failed, exit 1 on Node 24 and 26, after 13 s. New error, below
D03 on the PR's base, main 1b97b0f not run Passed, exit 0, 122 s
grep -rn demoResults over scripts, src and tests One hit, line 368 No hits
Merge with main 3537e58 not run 21 files conflict

D03, the new problem. The run stops at scripts/verify-real-browser.mjs line 299 with AssertionError: 'object' !== 'string', raised in scripts/lib/browser-scenario-environment-e2e.mjs line 139. The diff of scripts/fixtures/browser-verifier-site.mjs against 1b97b0f deletes the /scenario-request-language route and the #language element. The environment script, which this PR does not touch, still fetches that route at line 123. The same script passes on 1b97b0f, so the rebase caused this, not main. GitHub's own run on 8b3aded ends with the same assertion; I read that log and did not rerun it.

A diagnostic, not the pushed head. In my own copy I put those removed pieces back and left everything else alone. npm run verify:browser then passed on Node 24, exit 0, in 110 s. The demo step ran. The baseline shows "Exported 2 notes". The changed variant shows "Exported 3 notes". The captures align. The comparison reports changed, with one changed DOM artifact. These are the numbers from my 2026-10-14 run. I tried this once, on Node 24 only.

The two fixes.

  • demoResults: The assignment is gone, and no file under scripts, src or tests mentions it. node --check passes on verify-real-browser.mjs on Node 22, 24 and 26. The pushed head fails before it reaches that line, so a browser run on the pushed head cannot show this fix. The patched run above does.
  • Notes fixture path: verify-agent-experience.mjs no longer copies the unpacked folder, so the path and digest come from the fixture helper. The helper gives notes-electron.asar, 3,329 bytes, and its fresh sha256 matches the digest it reports. agentKnownAnswerMcp.test.ts passed 6 of 6 on Node 22, 24 and 26. I did not run verify-agent-experience.mjs itself.

Conflicts with main. Main was at 3537e58. I ran git merge-tree --write-tree in a scratch repository. It exits 1 and lists 21 files:

  • docs/readme/README_el.md
  • website/locales/messages.pot
  • website/locales/<language>/messages.po for ar, de, el, es, fa, fr, id, it, ja, ko, pl, pt-BR, ru, th, tr, uk, vi, zh-CN and zh-TW

scripts/verify-real-browser.mjs merges cleanly. I did not build the merged tree.

Still not run

  • npm run check:fast, the full suite and the formatter check.
  • verify-agent-experience, which needs an agent login.
  • D03 on Node 22, and D03 past the environment step on the head as pushed. The patched run above is a modified copy on Node 24 only.
  • A build or test of the head merged with main. Only the conflict list ran.
  • Windows, macOS, IDA and Hopper.
  • D02 MCP calls and the pinned npx [email protected] package commands. The checkout is 6.5.0 and I did not check that gap.

Thanks, 014-code, for the quick rebase and for removing the stale demoResults line and the Notes folder copy.

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
Commands
npm 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/pr

I 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 scripts/fixtures/browser-verifier-site.mjs with the three removed pieces from 1b97b0f put back, and I restored the original afterwards.

🤖 Generated with Claude Code (Sonnet 5.5, verified by Opus 5.5) 🦊

@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@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.
cc @gensokyo-dev @dandgabr

@morluto

morluto commented Nov 24, 2026

Copy link
Copy Markdown
Owner

@014-code also, this branch has merge conflicts with main — please resolve those along with the open threads.

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

area: build Build, CI, packaging, and publishing documentation Improvements or additions to documentation i18n Translations and localization workflow P3: low Low priority, nice to have

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants