# Programmer expert — V2 candidate code review Reviewer: `/root/programmer_expert`. Reviewed Git `69607c52fd5bd27a873515d9811148b312f4aa99` against `7b3f497`. Candidate source `401f0b06436f6eeeabe2635a32e6467cc5b9ff34de7fedfbe4badb7c7ac414f7`; declared build `bc774f70f86b9d0b9ab25631e2457da0451827c1e7fc6204243bc289301e756f`. Read-only inspection of application; this report is the only changed artifact. Frozen generated output inspected directly: `/tmp/progcode-v2-frozen-401f0b06436f`; its `build-identity.json` contains the same source hash and 14 articles. Local candidate recorded at `http://127.0.0.1:64524` (PID 28007). I inspected source/output and recorded browser evidence rather than claiming a new independent live browser run. ## Verdict **One small, real code block remains: unknown WordPress shortlink IDs can resolve inherited object properties.** Everything else reviewed below is acceptable for this measured candidate. Fix the shortlink guard and test it before calling the candidate code-accepted; regenerate source/build identity and identify the replacement candidate. This is not a demand to deploy before code acceptance. The mandatory expanded archive research issue `webprogcode-v2.6` remains open. A code review cannot turn partial Semrush evidence (174 reported / 100 observed, plus 13 known dated leads) into complete restoration. No full-site PASS is issued. ## V2-PE-4: restrict shortlink lookup to own validated entries (P2, blocking candidate code acceptance) File: `web/app/Shortlinks.jsx:4`. Current predicate `if(id&&links[id])` accepts inherited properties of the imported JSON object. The values for `constructor`, `toString` and `__proto__` are truthy even though none is a recovered WordPress ID. `location.replace` then coerces the function/object to a URL and navigates away from the home page, usually to a nonsensical relative path and 404. This is a concrete routing error, not an asserted open-redirect vulnerability. Reproduced without mutating source: ```js const links = JSON.parse(await readFile('web/data/shortlinks.json')); for (const id of ['constructor', 'toString', '__proto__', 'missing']) { console.log(id, Object.hasOwn(links,id), Boolean(id && links[id]), typeof links[id]); } // constructor false true function // toString false true function // __proto__ false true object // missing false false undefined ``` Compromise: keep the static client redirect for the 14 verified IDs. Require an own property and a string local article path (or numeric ID plus own-property lookup). Do not invent redirects for unknown values. Removal criteria: all 14 known IDs resolve to their exact existing article paths; `constructor`, `toString`, `__proto__`, an unknown number and malformed ID stay on the requested home URL with no redirect. Exercise at least the prototype cases in the actual built browser. Then repeat source/build identity and limited frozen-candidate regression checks. ## What was read and independently checked - Entire `web/scripts/publication-sanitizer.mjs:1-9` and `prepare-publication.mjs:1-43`; `web/package.json` build runs preparation before Next export. Parser-based allowlist removes active tags, handlers and unsafe link schemes; image publication is limited to local `/visuals/`. The hostile fixture executes assertions on the actual sanitizer; I additionally called it directly for script/event/protocol-relative/remote-image input and escaped code. Escaped `