8.8 KiB
V2 — initial programmer review
- Reviewer:
/root/v2_programmer. - Date: 26 October 2026.
- V2 epic:
videoreg-7oy. - Verdict: BLOCKED — no V2 acceptance. All V1 PASS statements are superseded.
- Source baseline actually read:
056f1a6462d62b28ed693ee4829a5e5a00903202oncodex/videoreg-rebuild-v2. - Diff actually read:
git diff 2ce58fc..HEADfor routing, crawler, nginx, build and CI changes; then working-tree diff ofdeploy/serve-local.pyafter owner's immediate remediation. - Existing export inspected, not a V2 candidate:
web-front/.next/BUILD_ID = 9K3OS2az4V5tCSK6khINV, 94 files. SHA-256 of sorted JSON(relativePath,fileSHA256)pairs:9fca8c537be05d07325a3f7b6726e9fa484a00aa4eb99a89ef4304276e3db9c6. - Initial live preview:
http://127.0.0.1:65390(V1 export). Immediate server-remediation follow-up:http://127.0.0.1:50541, PID 38899 (still V1 export). No screenshots were used or claimed by this programmer review.
Actual source inspection
| File and lines at inspection | What was read / implication |
|---|---|
deploy/serve-local.py:8–22 baseline; :15–38 current working tree |
Request parsing, health direct file read, extension fallback, and delegation to SimpleHTTPRequestHandler. Confirmed a file-root escape in initial code; current owner changes add decoded path rejection and selected-file containment. |
deploy/smoke-static.py:7–15, :22–39 |
Only ten hardcoded seed URLs are parsed. New discovered targets are requested once but not recursively parsed. Only root-relative href/src are gathered; no archive reconciliation or outbound occurrence audit exists. |
deploy/nginx.conf:10–18 |
CSP, static routing, API/demo 404, hardcoded /auto.shtml redirect, fallback and 404. The historic redirect is not backed by recovered source semantics in the initial evidence. |
web-front/next.config.ts:1–3, Dockerfile:1–5, package.json:scripts |
Static Next export and nginx image; original server-only demo routes moved out of app. Build/test scripts do not currently run a complete corpus/outbound gate. |
.gitea/workflows/master.yml:47–92, :104–132 |
SHA-derived image tag, static build and basic output checks, push, remote Docker, site-specific stack deploy. Workflow ends after asynchronous stack submission/listing; independent actual runtime/content checks remain necessary. |
deploy/deploy-static.sh:3–10, deploy/stack.yml:1–38 |
IMAGE quoting/character validation, only videoreg stack, one replica, update rollback and separate router/service/network. No global prune or bootstrap in active path. Stack healthcheck requests /, whereas image healthcheck requests /health/ready. |
web-front/src/app/guides/[slug]/page.tsx:1–6 |
Fixed static params, unknown slug uses notFound; source strings are rendered through React JSX rather than raw HTML. Existing guide source schema supports paragraphs only, not recovered rich article structure. |
web-front/src/content/guides.ts:1–117 |
Read all four complete new guide bodies and source URLs. They are newly written content, not evidence of recovered historic corpus. |
web-front/src/app/layout.tsx:4–10, about/page.tsx:1–2, catalog/page.tsx:1–5 |
Current public copy and provenance/process text; source/external links in templates need occurrence-level review under V2. |
web-front/src/entities/dashcam-catalog/model/schema.ts:3–83 |
Zod validates catalog shape/date/URLs; this is not an editorial endorsement or a context-level outbound review. |
web-front/src/widgets/dashcam-catalog/ui/DashcamCatalog.tsx:56–107 |
Snapshot cards and seller hrefs rendered directly from typed source data, same generic SVG for all products. External seller links require assessed context, not an automatic whitelist. |
web-front/src/app/tools/recording-time/Calculator.tsx:1–3, companion page |
Input conversion/range checks, formula, output and client-side validation. Actual V2 positive/negative browser behavior remains to be checked on the candidate. |
web-front/src/app/health/ready/route.ts:1–5 |
Catalog validation at build plus static commit stamp. It does not establish actual article corpus/content correctness. |
docs/provenance.json:2–39 |
Initial evidence records zero recovered pages and no retrieved body for /auto.shtml. This cannot establish equivalence to the new choose guide. |
Blocking issue: videoreg-7oy.2 — preview rooted file serving
Initial confirmed defect: baseline deploy/serve-local.py:18–20 accepts a /health/ path, joins it to the export root and reads any resulting file without resolving containment.
A safe independent check requested only the project's nonsecret AGENTS.md:
curl --path-as-is http://127.0.0.1:65390/health/../../../AGENTS.md
Observed HTTP 200/application-json; 3793 bytes matched the project's AGENTS.md exactly, SHA-256 745f183e77a3a207da64f7cb58e456d20f35e3ce255af9b48535d45c5bdb0e17. No credential, private key or other sensitive file was requested.
The first owner fix blocked raw and percent-encoded .. paths. A temporary, explicitly nonsecret sentinel under /tmp demonstrated that extensionless .html selection occurred after the first containment check; the temporary symlink in the export was removed immediately after this check. This was recorded in the issue and sent to the owner.
The owner then updated the actual selected-file path check (deploy/serve-local.py:27–33 in the inspected working tree). Normal source inspection confirms the intended final candidate is checked after .html fallback and directory listings are disabled. This is improvement evidence, not final V2 acceptance. Per the owner's scope, no further file probes or security exploration are being performed in this initial audit.
Options considered:
- Remove the special direct-read health branch and use one safe rooted static handler.
- Decode/normalize once, reject traversal, resolve and contain the actual selected final file including fallback/symlinks before every read.
Chosen engineering compromise: preserve a small preview with health JSON and normal extensionless pages, but use explicit rooted final selection and meaningful regression checks against a safe sentinel. The issue stays open pending the exact candidate's ordinary source/tests/HTTP reinspection; the whole V2 audit stays blocked independently by .4.
Blocking issue: videoreg-7oy.4 — complete corpus/outbound verification
The V1 smoke's 25 successful requests do not measure restoration completeness. The source has a fixed list, ignores every external URL, does not recursively parse newly found pages, and cannot compare the export against the recovered archive corpus. It does not detect thin/duplicate/error article bodies or missed historical pages.
/auto.shtml is also forced to a new choose guide, while the initial recorded evidence contains no original body. A topical match is insufficient proof of a genuinely equivalent destination.
Options considered:
- Retain the small script as a narrowly named health/endpoint check only.
- Add a deterministic complete artifact and corpus gate using the actual export manifest plus every discovered meaningful original URL, with occurrence-level outbound decisions.
Chosen compromise proposed to the owner: keep useful quick health checks, add the complete gate, and do not publish a claimed equivalent redirect without substantive source comparison. Missing bodies remain unresolved and block V2 rather than becoming optional follow-up or inferred restoration.
Acceptance conditions recorded in Beads:
- Exact candidate source/build hashes identify the checked export and rendered pages.
- Enumerate all generated HTML and reconcile every discovered archive content URL to restored content, genuinely equivalent destination, documented spam exclusion or explicit unresolved recovery.
- Crawl every internal route/fragment/asset recursively, including any additions absent from V1 seeds.
- Extract source/build/rendered-DOM external href/src/srcset/action and CSS/script URLs; every occurrence has context, keep/remove reason and reviewed status.
- Check missing, duplicate, thin and archive-error bodies, legacy destination meaning, unknown404 and normal tool input failure modes.
- Read implementation/diff and run checks independently on the exact V2 candidate. No archive-unavailable or DNS-unavailable condition can manufacture a PASS.
Conditions retained for later review
The active static deployment path is site-specific and avoids the old global-cleanup scripts. This is useful existing engineering, not evidence that V2 content/design is accepted. Final review must additionally inspect the actual deployed build identity and content after all role reviews, while explicitly retaining any real public DNS/TLS blocker.
No product code was edited by this reviewer. Beads issues and this report are the review artifacts; the owning executor integrates and synchronizes them with the candidate.