Files

8.1 KiB

Programmer expert — initial V2 audit

Reviewer: /root/programmer_expert. Verdict: BLOCKED. Previous V1 PASS is superseded.

Inspected candidate: Git 7b3f497 on 2026-10-26; article-data SHA-256 3d9b3437d7bbaeb02d14bf39a637350f70cbb9b8c835b6ffe85a5d14054f146f. Inspected existing V1 static output web/out directly (34 HTML files), not an assertion that a new V2 build exists. Read the complete REBUILD_ACCEPTANCE_V2.md. No live production verification was performed in this audit. Local URL recorded by .local-service.json: http://127.0.0.1:52964, PID 30743; this report does not attest its current process liveness.

Sources actually inspected

  • Diff git diff aad9890..HEAD -- .gitea/workflows/deploy.yml web/lib/articles.js web/app/articles/[slug]/page.jsx, plus change summary.
  • web/app/[...path]/page.jsx:1-8, canonical article route web/app/articles/[slug]/page.jsx:1-62, web/next.config.mjs:1-14, web/lib/articles.js:1-4.
  • Entire deploy/smoke.py:1-26, deploy/local-server.py:1-7, .gitea/workflows/deploy.yml:1-114, deploy/stack.example.yml, Dockerfile.
  • Every contentHtml in web/data/articles.json; every external href/src/action parsed from those bodies and all 34 generated HTML files. Templates/CSS were inspected via source searches and diff. Current generated HTML has no on* attributes or javascript:/data:text/html URLs found by the attribute scan; this is not a blanket security certification.
  • provenance/cdx-20261026.json, manifest.json, restoration.json, extracted body export; raw Bitrix code excerpts and other raw source links cross-checked. All 19 <pre> code blocks parsed from the extracted historical export match published code text exactly (6 jQuery, 1 photo editor, 1 element slug, 1 trade offer, 9 regex, 1 CTFE). This confirms preservation of those blocks, not full editorial accuracy or complete corpus coverage.

V2-PE-1 — corpus reconciliation and legacy destinations are incomplete (blocking)

Evidence: CDX rows provenance/cdx-20261026.json:3-4 contain /контакты/ and /полезные-ссылки/ with 200 historical captures. Neither destination exists under web/out. web/app/[...path]/page.jsx:5-6 generates only the 14 articles.json legacy article paths. There is no decision mapping these known meaningful pages to restored content, equivalent destination, justified exclusion, or unresolved recovery item. deploy/smoke.py:5-6 derives its denominator from the already selected articles, so the successful 31-route result cannot discover these omissions. V2 url-inventory.json and coverage denominator were absent when this audit began. Old categories/month listings also need deliberate disposition; do not infer all are missing articles. CDX additionally contains the site's later synthetic /articles/editorial-* material, which must be distinguished from the historical corpus, not blindly republished.

Options: restore historical standalone pages; provide genuinely equivalent curated navigation/contact content where verified; explicitly exclude obsolete private contact details with reason; mark unavailable source as unresolved. Chosen acceptable compromise: inventory every discovered meaningful URL with an explicit disposition, preserve historic article URLs, recover the useful links page or a meaningful equivalent, and document any privacy-driven exclusion. Do not redirect unrelated pages to home/about.

Removal criteria: committed URL inventory and coverage report with reproducible discovery/deduplication; generated-route comparison against that inventory; no unexplained missing meaningful URL. Unknown URLs remain real 404. Any unavailable required body stays an open blocker, not a completed restoration.

Reproduce omissions:

python3 - <<'PY'
import json
from pathlib import Path
from urllib.parse import unquote,urlsplit
rows=json.load(open('provenance/cdx-20261026.json'))
for row in rows[1:]:
    path=unquote(urlsplit(row[2]).path)
    if path in ['/контакты/','/полезные-ссылки/']:
        print(row[1],path,(Path('web/out')/path.strip('/')/'index.html').exists())
PY

V2-PE-2 — outbound acceptance has no complete review or reproducible restoration boundary (blocking)

Evidence: web/data/articles.json:46 retains 32 interview links (including http://dblog-ext.info/interviews/gerald-interview.html and unrelated-image destination http://pic.pimg.tw/superhbin/1205243571.png); line 131 retains https://yadi.sk/i/dftROrt33KLww6; line 216 retains old HTTP Microsoft SDK destinations. These are unreviewed, not claimed confirmed spam. Some are legitimate historical attribution; their purpose, redirected target and continued usefulness require individual decisions. The actual generated output contains 70 unique external noncanonical URLs, 183 external URL occurrences including canonical links; article bodies contain 53 external occurrences / 52 unique URLs. No per-link purpose ledger existed. deploy/smoke.py:11-13 ignores external links, and line 19 only rejects two tracker substrings, so it cannot substantiate V2's complete spam-removal claim.

The runtime sink web/app/articles/[slug]/page.jsx:58 trusts committed HTML directly, and web/lib/articles.js:1-3 applies no transformation. That is acceptable only with an explicit verified offline content boundary. The actual V1 restore/sanitization script is not in this repository. The older web/scripts/buildDatabase.mjs:6-11 expects absent .webarchive inputs and represents a different generator. Therefore raw-to-published sanitization and its allowed attributes/URL schemes cannot be reproduced from the repository today. This is a reproducibility and trust-boundary gap, not evidence of an exploitable current XSS.

Options: maintain hand-reviewed publication JSON with exhaustive ledger and a fail-closed content audit; or commit a deterministic sanitizer/importer plus editorial overlays. Chosen acceptable compromise: retain immutable raw files, commit the import/cleaning rules or equivalent reproducible audit, and individually classify each outbound occurrence in the final candidate. Remove paid/irrelevant/injected links with repaired prose; preserve justified sources. No domain whitelist may substitute for purpose review.

Removal criteria: outbound-links.json covers body/template/CSS/script/build/DOM URL occurrences with context, purpose and keep/remove decision; no unreviewed external destination remains; generated HTML and rendered DOM reconcile with approved ledger; hostile fixture import proves active attributes/scripts and unsafe URL schemes cannot enter publication; source-to-body report accounts for lost media and substantive sections. The reviewer must inspect the new code and candidate, not trust counts alone.

V2-PE-3 — V1 deployment evidence cannot accept a V2 candidate (blocking release gate)

Workflow now correctly fails without manager/user (.gitea/workflows/deploy.yml:94-96) and tags images by revision. Keep that fix. However the final step (:111-114) only submits docker stack deploy; it does not wait for convergence or validate deployed revision. Existing production-service evidence refers to V1 4ee9c0ef81c1, not a completed V2 build. This is not a new claim that V1 is down.

Compromise: retain the existing site-specific Gitea/Swarm mechanism and add either a bounded convergence check in CI or a recorded post-deploy verification command. No global infrastructure mutation is needed. Removal: after V2 editorial/visual/code gates pass, verify the exact reviewed source/build hash in deployed OCI revision and digest, service healthy, TLS chain and public content, full inventory crawl, correct 404, plus live local PID/URL. Do not close this gate from a successful Docker submission or old screenshots.

Next review inputs

Send the V2 inventory/coverage, full outbound ledger, reproducible sanitizer/auditor and focused diff, candidate source/build hashes, final generated output and fresh local/production checks. These findings are acceptance blocks; they are not optional follow-up. Parent should assign linked Beads IDs to PE-1/2/3 and record the chosen compromises there. This agent changed only this report.