Rebuild videoreg as source-backed SVK technical library V2 candidate

This commit is contained in:
huncode committed 2026-10-26 18:20:54 +03:00
1 parent 056f1a6462
commit d0fd7068bb
233 files changed
+6803 -42

No files matched your search

+11 -1
View File
@@ -1,3 +1,13 @@
{"_type":"issue","id":"videoreg-7oy.9","title":"V2 exact Semrush PDF lead: recover complete svk-002-mn.pdf and identify actual document type","description":"Actual Semrush anchor lead1backlink/1domain. OriginalURL http://videoreg.ru/download/svk-002-mn.pdf; CDX20090205154916. HTTP200download473313bytes is malformed:pdfinfo top-levelpagesnull/xref failure, no valid page count. Do not advertise as recovered or relabel anonymousUVR2CH manual. Try other exact original/www/apex dates or legitimate manufacturer duplicate; verify title/model/allpages, PDFstructure/noJavaScript andsourcehash. Keep exact lead unresolved if no complete verified file; fullrelatedmanuals4areseparate.","notes":"Recovered exact full PDF via short-date2009 replay:872857bytes curl0, pdfinfo3pages JSno, scanned pages100–102 read visually by root. Denis Kirin, Mobile News January2008 test, not manual. Immutable raw+render manifest evidence/svk002-review. Validated public copy queued; companion/content-manager review and HTTPsamehash pending before closure.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T14:47:06Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T15:13:29Z","labels":["blocking","pdf","recovery","semrush"],"dependencies":[{"issue_id":"videoreg-7oy.9","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T17:47:05Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.8","title":"V2 restoration blocker: recover unresolved historic bodies and important media","description":"Full CDX yielded883HTMLcaptures,121HTML URLkeys,259resource URLkeys;25realHTMLbodies fetched after all distinct pre/post2015 snapshots and www/apexvariants. Known inventory170normalizedURLs includes59unresolved content leads plus1partial listing, and important installation/examplevideo media remain unavailable. Keep explicit unresolved coverage rather than modern substitutes. Some HTTP200media invalid: directSVK002PDF structurally corrupt; only2ZIP-contained manuals valid. Continue linked-source/alternatearchive and mandatorySemrush work. Acceptance: each meaningful URL reconciled to real edited body, evidenced equivalent, genuine spam/commercial exclusion, or concrete external blocker; missing mandatory recovery not optional followup or PASS.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:59:42Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:59:42Z","labels":["archive","blocking","restoration"],"dependencies":[{"issue_id":"videoreg-7oy.8","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:59:41Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.7","title":"V2 required: reconcile Noxtools Semrush backlink targets with complete videoreg inventory","description":"Direct user requirement: root coordinator inspects Semrush in shared in-app Noxtools session sequentially. Prepare lost URL/title/questions under docs/rebuild-v2/semrush. Consume actual root exports site-restoration-status/semrush-recovery/videoreg.ru, individually assess target URLs/anchors/referring contexts, add legitimate new paths to inventory and fetch real bodies/snapshots. Backlinks are leads only, not recovered text or source truth. No invented Semrush results; no takeover of shared browser. Acceptance: actual provided export scope documented, each legitimate new target reconciled/restored or explicit unresolved blocker, full editorial/outbound gate repeated.","notes":"Additional actual Semrush Anchors Server3 lead supplied: http://videoreg.ru/download/svk-002-mn.pdf,1backlink/1domain,FirstApr5 2026,Last14daysago (relative as observed,notinventedabsolute). This exact archive resource already fetched: raw/media/6e2b836b2f645663.pdf473313bytes,HTTP200butpdfinfo/pdftotext failtop-levelpages/xref. NOTpublishedasvalid. Fullalternate12pageUVR2CH2006 recoveredfromdifferentoriginalZIP,not silentlyrelabeledasSVK002. Actualreferrerchecks5URLs:2126andNissanconfirmtechnicaltargetlinks,zarulem200noboundtargetinretrievedbody,academicDNSfail,Terrano timeout. moves.htm genuinelyrecoveredviaSemrush-directedwww/apex replays andoriginalYouTubeclipconfirmed;recordsinsemrush/referrer-verification.json andraw/youtube-tv-oembed.json. PartialSemrushscope andcompletePDFrecovery remainmandatory.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:49:39Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T14:47:04Z","started_at":"2026-10-26T14:35:25Z","labels":["blocking","recovery","semrush"],"dependencies":[{"issue_id":"videoreg-7oy.7","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:49:39Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.6","title":"V2 illustrator veto: replace generic hero with inspected technical diagrams in recovered SVK pages","description":"Actual V1 pixels inspected: home-1440.png, home-360.png, guides-choose-360.png under docs/rebuild-v2/evidence/designer-initial. Hero depicts a generic camera and provides no explanation of recovered original SVK design. Recovered auto20070228153116 full cp1251 body describes one/two USB cameras, SVK recorder, FLASH media and Windows viewing; distinct road/guard modes. Existing article has no explanatory visuals or actual integrated V2 candidate proof. This blocks V2 illustration acceptance.","design":"Options: retain decorative camera; use only low-resolution archived photographs; add precise mobile-first explanatory diagrams alongside selected recovered photographs. Chosen compromise: two original SVG diagrams for signal chain and relative road/guard capture cadence, with model-specific context and no invented wiring instructions or rate claims. Root integrates these only where the body discusses them; metadata remains internal.","acceptance_criteria":"Open both actual SVG renderings and inspect their exact integrated candidate pages at narrow and wide widths; verify legible labels, crop/layout, alt text, intrinsic size/load, no external references, subject consistency with auto snapshot; record URL, screenshot paths and candidate source/build hash. No final PASS before integrated pixels are viewed.","notes":"Additional fleet source predpr-short2012 read fully. Created svk-fleet-channels.svg; actual standalone360/1440 figure screenshots opened and recorded in illustrator-preview/fleet-manifest.json with source+asset hashes. Drawing matches two distinct channels and optional metadata, no automatic count or wiring/AND claim. V2 candidate not frozen: integrated review remains mandatory and veto stays in_progress.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:20:47Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T14:11:26Z","started_at":"2026-10-26T13:22:20Z","labels":["blocking","role-illustrator","v2"],"dependencies":[{"issue_id":"videoreg-7oy.6","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:20:47Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.5","title":"V2 creative veto: replace generic shopping journey with coherent SVK technical library","description":"Independent V2 audit opened all six baseline layouts at narrow and wide widths using actual captured pixels in docs/rebuild-v2/evidence/designer-initial and fetched live baseline pages at50541. Homepage still leads with generic dashcam buying slogan, four modern paragraph guides, unrelated 2026 seller catalog and decorative camera; recovered auto20070228153116 is specifically SVK/VR-001 ≤5fps USB-camera+FLASH hardware with operating modes and installation examples. Thus subject, visual language and user journey do not match recovered corpus. Process/date/provenance badges and the seller-catalog block compete with reader needs. No substantive library/article/media templates exist for actual historical content; old auto redirect is semantically wrong.","design":"Options: keep modern generic landing and append archive links; mimic obsolete commercial brochure; or use a technical-library editorial direction. Chosen compromise: technical library with a compact factual hardware visual, distinct paths for identifying the recorder, modes/FAQ, installation examples and reading recorded files; recovered product facts remain historically scoped, modern practice/tool pages subordinate and clearly applicable. Retain useful material, remove sales CTAs/process decoration. Typography and diagram/photo use must serve long technical articles rather than repeated empty cover cards.","acceptance_criteria":"Review exact V2 candidate homepage, listings/search, long/short recovered pages, table/image-heavy templates, tool and404 at360 and1440 with independently opened screenshots bound to build hash. Homepage/navigation and related links must expose recovered SVK corpus with coherent journeys; images clarify actual subject; no misleading current shop posture or repetitive production-process badges. Calculator must state applicability to stream bitrate and not imply that SVK JPEG/frame recording has the same input model unless actual frame-size mode is implemented. No final PASS until corpus/editorial/visual gaps are actually resolved.","notes":"Initial V2 review report saved docs/rebuild-v2/reviews/creative-initial.md. Independently opened12 baseline screenshot artifacts across6templates and read raw auto body; fetched3 actual live bodies. Root homepage currently301 loop after concurrent preview patch, reported separately. Block remains until exact V2 candidate real visual review.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:20:14Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:21:28Z","started_at":"2026-10-26T13:21:28Z","labels":["blocking","role-creative-director","v2"],"dependencies":[{"issue_id":"videoreg-7oy.5","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:20:13Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.4","title":"V2 programmer veto: replace sampled smoke with complete corpus and outbound verification","description":"Baseline056f1a6 deploy/smoke-static.py15 hardcodes ten URLs;27-34 parses only this seed set and fetches extra links without recursive parsing;12-14 ignores external and absolute same-origin URLs, srcset/action/CSS/script contexts. No archive URL inventory is consumed, no body/hash/duplicate or outbound-ledger gate exists. nginx.conf11 and serve-local.py14-15 redirect historic /auto.shtml to new generic choose although docs/provenance.json12-21 explicitly records no recovered body. Thus prior25/25 cannot substantiate corpus restoration or equivalent legacy routing.","design":"Options: keep sampled smoke as endpoint health only; or introduce complete exported-site+inventory reconciliation with a distinct evaluated outbound ledger and clear known failure reports. Chosen compromise proposed: retain useful small health smoke but name it narrowly; add deterministic complete crawler driven by output manifest and discovered URLs, reconcile every historical URL and audit each external occurrence. Publish no equivalence redirect without source evidence; unresolved bodies remain mandatory blockers.","acceptance_criteria":"For exact V2 source/build hash, enumerate complete generated HTML set and discovered meaningful archive URLs; recursively check all internal links/fragments/assets including new pages; reconcile every inventory item to restored/equivalent/explicit-exclusion/unresolved, never count unresolved as recovered. Extract href/src/srcset/action, CSS url and script destinations from source/build/DOM and match each external occurrence to reviewed keep/remove reason. Report missing/thin/duplicate/error bodies and real404. Test legacy destination substantive equivalence or keep unresolved without false redirect. Independent programmer review reads code/diff and re-runs resulting checks; unresolved archive corpus blocks full V2 acceptance.","notes":"Initial source audit inspected baseline056f1a6 routing, content/schema, crawler, nginx, preview, Docker, stack and workflow plus diff2ce58fc..HEAD. Hardcoded10seed crawl cannot establish complete archive/output set or audit externals. V2 implementation pending root; no PASS. Full report docs/rebuild-v2/reviews/programmer-initial.md.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:15:48Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:27:19Z","started_at":"2026-10-26T13:27:19Z","labels":["blocking","role-programmer-expert","v2"],"dependencies":[{"issue_id":"videoreg-7oy.4","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:15:47Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.3","title":"V2 designer veto: usable reference layouts and recoverable missing-page state","description":"Independent live V1 review at 127.0.0.1:65390, base056f1a6, build tree f8c9d6ff616f4e56abf5485fc6beec334011a58b9605b6e81aeb9e30c64d9f60. Opened12 actual pixels across home, choose/save articles, catalog,calculator,404 at360/1440. On catalog360 five cards repeat the same narrow dark generic image rail and consume3125px without a useful comparison view; values are buried behind per-card details and titles break into many lines. Local404 is an unstyled English Python error with no route back into content. V1 articles have only paragraph sections, no actual long/list/table/diagram template evidence; landing four-card list has no library/search result or zero-results state. Process badges NEW MATERIAL and repeated2026 provenance boilerplate occupy article/footer UI. V1 sign-offs superseded; V2 design acceptance remains blocked.","design":"Chosen compromise updated after independently reading recovered auto-20070228153116.html Windows1251 introduction/installation sections: historical technical СВК/VR-001 library, structured device/application/FAQ/documentation index, source-specific camera-recorder-storage and mode diagrams, full article layouts, useful search and Russian recoverable404. Avoid modern marketplace/tall repeated placeholder rails and process boilerplate. Unknown restored corpus not accepted. Old manufacturer sales/support must not imply current active service.","acceptance_criteria":"Provide exact V2 candidate source/build identity. Same reviewer inspects actual home, library/search positive+negative, every distinct long/short/table/image article template, tool and localized404 at360and1440; opens pixels, verifies no clipping or horizontal body overflow, keyboard focus/skip link, data table/diagram handling and article/findability journeys. Catalog if retained must expose useful comparable facts without decorative repeated tall rails;400/404 states must preserve HTTP semantics and provide navigation. No production-process badges or repetitive archival disclaimer copy in ordinary article UI. Review source/body inventory; corpus unknown/unrecovered cannot be accepted as restored. Report actual URLs/screenshots opened and verdict.","notes":"Initial V2 designer audit is docs/rebuild-v2/reviews/designer-initial.md. Opened all12 narrow/wide pixels plus calculator recheck; exact build manifest saved. Blocking layout/findability/404/process-copy findings; no V2 PASS.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:15:39Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:18:17Z","started_at":"2026-10-26T13:16:54Z","labels":["blocking","role-designer","v2"],"dependencies":[{"issue_id":"videoreg-7oy.3","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:15:38Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.2","title":"V2 programmer veto: prevent local preview traversal outside exported site","description":"At baseline056f1a6, deploy/serve-local.py18-20 builds target=OUT/path then reads arbitrary is_file under /health/ without resolve containment. Independently reproduced curl --path-as-is /health/../../../AGENTS.md on127.0.0.1:65390: HTTP200 application/json,3793bytes exactly equal project AGENTS.md; no secret files requested. This is real local file disclosure from preview and must block candidate acceptance.","design":"Options: remove direct health branch and serve through a safe rooted handler; or normalize URL/decode once, reject traversal and require resolved paths remain inside OUT including symlink resolution. Chosen compromise proposed: explicit rooted static handler, fail closed for traversal and unknown health routes; preserve normal generated health JSON behavior and GET/POST404 parity.","acceptance_criteria":"Independent repeat confirms raw dot-segment, percent-encoded dot/slash, absolute-path and symlink traversal cannot read outside OUT; normal /health/live and /health/ready200JSON; known content/assets200; unknown/API GET+POST404. Add meaningful regression checks against safe sentinel outside export, not sensitive files. Reinspect exact V2 code/build and live PID.","notes":"Initial report saved docs/rebuild-v2/reviews/programmer-initial.md. Owner added containment after actual .html selection; ordinary current source inspection confirms final-selection check now present at27-33, directory listing disabled. Safe earlier evidence retained; per owner no further sensitive probes or exploit exploration. Exact V2 candidate, regression evidence and normal HTTP/source review still required; do not treat current V1 output as V2PASS.","status":"in_progress","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:14:44Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:28:49Z","started_at":"2026-10-26T13:16:38Z","labels":["blocking","role-programmer-expert","v2"],"dependencies":[{"issue_id":"videoreg-7oy.2","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:14:44Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy.1","title":"V2 content veto: recover and reconcile historical bodies; review every outbound link and remove process boilerplate","description":"Initial V2 audit of 056f1a6 read all four guides.ts bodies, catalog.json and rendered template source. V1 contains zero historical page bodies, a non-equivalent auto.shtml redirect to a generic buying guide, five direct seller URLs without per-link editorial decisions, and production-process copy in guide eyebrow/editor-note/footer/About. New CDX access reported by root means actual historical bodies must now be recovered and compared, not replaced by these four generic guides. No V1 PASS counts for V2.","design":"Options: keep V1 with disclaimers (rejected by V2 contract); publish raw archived HTML (unsafe/spam risk); choose actual useful historical snapshots, reconstruct their distinct bodies and useful diagrams, remove ads per link/context, keep accurate current notes internally or where editorially essential. Chosen compromise: real corpus-led restoration with per-URL inventory/editorial ledger, independently reviewed external links, and ordinary pages free of production-process boilerplate. Missing bodies remain explicit mandatory blockers.","acceptance_criteria":"Every meaningful URL from complete CDX/search/local inventory reconciles to a substantive restored page, genuinely equivalent redirect, evidenced spam exclusion or unresolved blocker. Reviewer reads every published body from candidate files and live DOM; per-page ledger names snapshot/body actions and source checks. Every external href/src/action in source/templates/build/DOM has individual keep/remove reason, no seller/ad links without demonstrated editorial purpose. /auto.shtml preserves its actual purpose/body. No generic provenance badge or 2026 creation boilerplate in ordinary article/template copy. Final report names exact commit/build and files/URLs inspected; unavailable/missing bodies cannot be passed.","notes":"Initial report docs/rebuild-v2/reviews/content-initial.md complete. Read full recovered auto20070228153116 cp1251 plus actual V1 DOM on port50541; source/body/hash evidence retained. Found real mismatch auto-\u003egenericchoose, marketing/obsolete contacts and unsafe universalization risks in raw auto, unreviewed catalog seller links and process boilerplate. Additional legacy predpr/support/shop category URLs cross-checked. Veto remains until complete recovered-corpus/page/outbound ledgers and substantive V2 bodies independently read.","status":"in_progress","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:14:22Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:41Z","started_at":"2026-10-26T13:15:33Z","labels":["blocking","role-content-manager","v2"],"dependencies":[{"issue_id":"videoreg-7oy.1","depends_on_id":"videoreg-7oy","type":"parent-child","created_at":"2026-10-26T16:14:22Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7oy","title":"V2 rebuild: recover videoreg corpus and independently review complete site","description":"User rejected V1 and superseded all PASS. Execute REBUILD_ACCEPTANCE_V2 contract: real corpus inventory and recovery; per-page editing and every outbound URL audit; new useful visuals and design; five actual artifact reviews with blocking authority; complete crawl, persistent local, reviewed production through existing Gitea/zz. Archive unavailability remains mandatory blocker, never a pass.","status":"in_progress","priority":1,"issue_type":"epic","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:11:52Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:13:01Z","started_at":"2026-10-26T13:13:01Z","dependencies":[{"issue_id":"videoreg-7oy","depends_on_id":"videoreg-7wi","type":"related","created_at":"2026-10-26T16:13:02Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi.6","title":"External blocker: repair videoreg.ru DNS delegation and validate public TLS","description":"Google DoH A and NS return SERVFAIL, authoritative Cloudflare nameservers REFUSED. Origin zz 77.91.88.137 responds via Host/SNI, but certificate verification fails. DNS/global Traefik changes excluded from scope. Acceptance: authorized DNS owner fixes delegation and A/AAAA toward zz, then valid HTTPS main, content and static without -k.","status":"open","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:30:26Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:30:26Z","labels":["blocking","dns","external"],"dependencies":[{"issue_id":"videoreg-7wi.6","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:30:25Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi.5","title":"Programmer veto: executable isolated deployment and correct standalone runtime","description":"Confirmed build output is web-front/.next/standalone/web-front/server.js, but existing deploy/docker/Dockerfile.web copies standalone to /app and executes /app/server.js; static/public are also copied to root rather than /app/web-front. Production runtime is therefore not accepted. Existing legacy deploy script also exposes optional global image/builder prune, forbidden during concurrent domain restoration. No live deployment proof exists yet.","design":"Options: fix standalone Docker paths and restrict deployment to isolated videoreg stack; alternatively static export with lightweight runtime after preserving required health and redirect semantics. Chosen compromise: owner may choose either implementation, but deploy path must contain no global cleanup and must retain route security and health.","acceptance_criteria":"Reproducible build and actual container starts; /, /catalog, guide, calculator, static asset and health return correct responses; /api/videos GET/POST and /_dev/showcase return 404; /auto.shtml redirects to guide; only videoreg stack mutated, no global prune; origin Host/SNI and health evidence recorded. Public DNS/TLS failure remains explicit blocker, never reported as success.","notes":"Repeat review 2026-10-26: accepted static nginx alternative structurally: root Dockerfile uses web-front/out, unique videoreg stack and deploy/deploy-static.sh contain no global prune. Live zz container f257c5a6cfe8 healthy, image d8be62669a86@sha256:297a16a51627589b2955d17107fe4591dd5451f1a33604470ae42aa841e6c227. Independent origin smoke repeated all 24 checks passed; POST /api/videos 404; /auto.shtml 308 Location /guides/choose. Verified curl without -k fails certificate validation (exit60), separately tracked .6. Local PID35689 reachable; GET health200 and redirect308; POST /api/videos501 differs from explicit404 criterion. Owner notified for parity fix or documented criterion adjustment. Final closure pending that small check; public completion remains blocked .6.\nFinal re-review 2026-10-26 at commit9b5b080: independent local POST http://127.0.0.1:65390/api/videos returned404; ready health200; extended local smoke independently repeated25/25 passed. Preview PID50453 supersedes prior PID35689. Static alternative accepted, original Docker/runtime/isolation veto resolved. Origin24/24 and POST404 already independently verified on healthy d8be626 image; final CI9b5b080 remains owner verification in progress. Public DNS/TLS is explicitly unresolved in blocking sibling videoreg-7wi.6, not waived by this closure.","status":"closed","priority":1,"issue_type":"bug","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:25Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:35:36Z","started_at":"2026-10-26T11:18:34Z","closed_at":"2026-10-26T11:35:36Z","close_reason":"Static nginx runtime and isolated deploy accepted; independent origin24/24, local25/25, API POST404 and redirect308 passed. Public acceptance remains blocked separately by videoreg-7wi.6.","labels":["blocking","role-programmer-expert"],"dependencies":[{"issue_id":"videoreg-7wi.5","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:18:24Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi.4","title":"Illustrator veto: validate original road/camera illustration in browser","description":"CSS road-art/camera/lens is authored in repository with no imported visual asset, but no actual desktop/mobile render has been supplied. Illustration acceptance is blocked until rendered inspection: pseudo-elements, transform and overflow crop may miscompose camera and caption at small widths. This is a missing acceptance artifact, not an asserted rendering defect.","design":"Options: replace with licensed raster asset; remove art; retain original CSS illustration with documented provenance and responsive evidence. Chosen compromise: retain CSS artwork because it communicates dashcam theme with zero external image requests; document it as original decorative illustration, inspect at 360px and desktop, fix clipping if observed.","acceptance_criteria":"Provide browser screenshots of homepage at 360px and desktop; illustrator visually confirms camera/lens/caption composition remains intentional and no content is obscured; report CSS illustration provenance and verify no external image requests for hero. Decorative artwork remains aria-hidden.","status":"closed","priority":1,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:07Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:29:28Z","started_at":"2026-10-26T11:18:15Z","closed_at":"2026-10-26T11:29:28Z","close_reason":"Illustrator repeat review PASS 2026-10-26: visually inspected real 360px full mobile and 1440px desktop screenshots in docs/review-evidence. Camera, lens and caption remain deliberately composed; no clipping obscures content. CSS artwork is decorative aria-hidden, original provenance documented in docs/CONTENT_POLICY.md; browser-checks.json records heroExternalResources=[] and mobile document width 360. Chosen compromise implemented: retain zero-request original CSS illustration instead of raster replacement.","labels":["blocking","role-illustrator"],"dependencies":[{"issue_id":"videoreg-7wi.4","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:18:06Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
@@ -14,7 +24,7 @@
{"_type":"issue","id":"videoreg-kbh.7","title":"Phase 7: Deduplication + moderation","description":"Canonical product grouping, moderation queue, bulk approve, conflict tracking. PARTIAL: moderation_queue + moderation_conflicts tables, products default moderation_status='needs_review', admin moderation UI/API exist. Deep dedup matching (fuzzy/alias/perceptual image hash, possible_duplicate/variant/oem_clone classification) is NOT implemented — only new_product entries are created.","notes":"Moderation queue/conflicts tables + admin UI done; deep dedup matching (kbh.11) outstanding.","status":"in_progress","priority":1,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:23:14Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:37Z","started_at":"2026-06-07T14:24:37Z","dependencies":[{"issue_id":"videoreg-kbh.7","depends_on_id":"videoreg-kbh","type":"parent-child","created_at":"2026-06-07T17:23:14Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
{"_type":"issue","id":"videoreg-kbh","title":"Dashcam Catalog Ingestion Engine","description":"Maintainable catalog ingestion engine for car dashcams (источник: Yandex Market). HTTP-only crawler, PostgreSQL source of truth, normalization, dedup, moderation, and a token-protected versioned export consumed by the Next.js app. Full spec: tasks/002-crawler.md.","status":"open","priority":1,"issue_type":"epic","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:22:41Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:22:41Z","dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi.7","title":"Retry historical archive capture when providers become reachable","description":"Current verified restoration coverage is zero archive pages/resources. CDX and replay unreachable, availability API429, Arquivo.pt no results. Preserve exact evidence in docs/provenance.json. Follow-up: retry bounded historical CDX/replay requests, download only legitimate relevant content/resources, record timestamp/hash/status, review spam and rights, distinguish original pages from new guides and validate old URLs. Do not claim archived restoration without successful captures.","status":"open","priority":2,"issue_type":"task","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:35:49Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:35:49Z","labels":["archive","follow-up"],"dependencies":[{"issue_id":"videoreg-7wi.7","depends_on_id":"videoreg-7wi","type":"parent-child","created_at":"2026-10-26T14:35:48Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi","title":"Restore videoreg.ru archive context and verify production deployment","description":"Investigate archived coverage, preserve existing catalog, add useful verified guides, deploy isolated site on zz and verify local and public health.","notes":"Implementation and all five role vetoes accepted. Gitea CI1281 successful; immutable image9b5b080 healthy on zz, local PID50453 port65390 retained, 25/25 local+origin smoke. Mandatory public DNS/TLS blocked by .6: authoritative REFUSED/SERVFAIL and default cert. No global DNS mutation authorized. Archive0 disclosed with follow-up .7. Full DEPLOYMENT_REPORT.md.","status":"blocked","priority":2,"issue_type":"task","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:11:46Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:37:23Z","started_at":"2026-10-26T11:13:36Z","dependencies":[{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.2","type":"blocks","created_at":"2026-10-26T14:17:18Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.3","type":"blocks","created_at":"2026-10-26T14:17:24Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.4","type":"blocks","created_at":"2026-10-26T14:18:14Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.5","type":"blocks","created_at":"2026-10-26T14:18:34Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.6","type":"blocks","created_at":"2026-10-26T14:35:07Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":5,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-7wi","title":"Restore videoreg.ru archive context and verify production deployment","description":"Investigate archived coverage, preserve existing catalog, add useful verified guides, deploy isolated site on zz and verify local and public health.","notes":"V1 rejected by user. All V1 role PASS are superseded, not evidence for V2. New epic videoreg-7oy executes REBUILD_ACCEPTANCE_V2; preserve prior release only for rollback.","status":"blocked","priority":2,"issue_type":"task","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:11:46Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:13:03Z","started_at":"2026-10-26T11:13:36Z","dependencies":[{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.2","type":"blocks","created_at":"2026-10-26T14:17:18Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.3","type":"blocks","created_at":"2026-10-26T14:17:24Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.4","type":"blocks","created_at":"2026-10-26T14:18:14Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.5","type":"blocks","created_at":"2026-10-26T14:18:34Z","created_by":"E.Gavrilov","metadata":"{}"},{"issue_id":"videoreg-7wi","depends_on_id":"videoreg-7wi.6","type":"blocks","created_at":"2026-10-26T14:35:07Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":5,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-kbh.16","title":"Model/canonicalName cleaning leaks form-factor \u0026 descriptor words","description":"Verified on a live smoke run (2026 Yandex Market data). normalizer.cleanModelFromTitle/buildCanonicalModel leave non-model words in the canonical name, which will corrupt dedup/canonical grouping (kbh.7/kbh.11). Examples: title 'Видеорегистратор-зеркало iBOX Rover 2 автомобильный с базой камер' -\u003e canonicalName 'iBOX зеркало Rover 2 автомобильный' (should be ~'iBOX Rover 2'); 'iBOX F5 + WiFi с радар-детектором' -\u003e model retains 'с радар-детектором'. genericWords list lacks 'зеркало', standalone 'автомобильный', form-factor and feature tails. Fix: expand stopword/form-factor stripping and feature-tail removal; add fixtures from real titles.","status":"closed","priority":2,"issue_type":"bug","assignee":"E.Gavrilov","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T15:02:57Z","created_by":"E.Gavrilov","updated_at":"2026-07-30T23:00:47Z","started_at":"2026-07-30T21:52:03Z","closed_at":"2026-07-30T23:00:47Z","close_reason":"Canonical model cleanup has fixtures for the SPAWNSON and iBOX cases, and canonical name/model edits are preserved in admin moderation.","dependencies":[{"issue_id":"videoreg-kbh.16","depends_on_id":"videoreg-kbh","type":"parent-child","created_at":"2026-06-07T18:02:56Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":1,"comment_count":0}
{"_type":"issue","id":"videoreg-nnv.1","title":"CI/CD pipelines + Swarm + Portainer + deploy scripts","description":"DONE: .gitea/workflows/{pr,master,ingestion}.yml, deploy/docker/Dockerfile.web, deploy/swarm/docker-stack.yml, deploy/portainer/{standalone,swarm} templates, deploy/scripts + deploy/remote ssh deploy/rollback + predeploy/smoke/release-manifest scripts.","status":"closed","priority":2,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:24:11Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:35Z","closed_at":"2026-06-07T14:24:35Z","close_reason":"Implemented and verified in codebase (typecheck + 18 vitest tests pass)","dependencies":[{"issue_id":"videoreg-nnv.1","depends_on_id":"videoreg-nnv","type":"parent-child","created_at":"2026-06-07T17:24:11Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"videoreg-seu.1","title":"Video registry app: primitive JSON DB, caching, health probes","description":"Working Next.js app: dashboard + register-video flow, primitive file-backed JSON DB (shared/db/primitiveJsonDb.ts → data/videoreg.json), process+tag+HTTP read caching with revalidateTag on writes, /health/live + /health/ready, /api/videos. Tested (vitest).","status":"closed","priority":2,"issue_type":"feature","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-06-07T14:24:10Z","created_by":"E.Gavrilov","updated_at":"2026-06-07T14:24:35Z","closed_at":"2026-06-07T14:24:35Z","close_reason":"Implemented and verified in codebase (typecheck + 18 vitest tests pass)","dependencies":[{"issue_id":"videoreg-seu.1","depends_on_id":"videoreg-seu","type":"parent-child","created_at":"2026-06-07T17:24:09Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
+5
View File
@@ -11,3 +11,8 @@ coverage
npm-debug.log*
*.tsbuildinfo
tasks
docs
.beads
.local-run
web-front/legacy
+58
View File
@@ -0,0 +1,58 @@
name: Rebuild V2 candidate verification
on:
push:
branches: [codex/videoreg-rebuild-v2]
workflow_dispatch:
jobs:
candidate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- run: npm ci --no-audit --no-fund
- name: Types, tests and complete static build
env:
COMMIT_SHA: ${{ github.sha }}
NEXT_TELEMETRY_DISABLED: "1"
run: npm run ci:quality
- name: Install pinned recovery verification dependencies
run: |
python3 -m venv .local-run/recovery-env
.local-run/recovery-env/bin/python -m pip install --disable-pip-version-check -r scripts/rebuild-v2/requirements.txt
- name: Validate complete export and safe preview
shell: bash
run: |
set -euo pipefail
py=.local-run/recovery-env/bin/python
"$py" scripts/rebuild-v2/check-preview.py
"$py" deploy/serve-local.py > "${RUNNER_TEMP}/videoreg-v2-preview.log" 2>&1 &
preview_pid=$!
trap 'kill "$preview_pid" 2>/dev/null || true' EXIT
base=$("$py" - "$preview_pid" <<'PYREADY'
import json, pathlib, sys, time, urllib.request
expected_pid = int(sys.argv[1])
for attempt in range(50):
try:
state = json.loads(pathlib.Path('.local-run/server.json').read_text())
if state['pid'] == expected_pid:
with urllib.request.urlopen(state['url'] + '/health/ready', timeout=1) as response:
if response.status == 200:
print(state['url'])
break
except (OSError, ValueError, KeyError):
pass
time.sleep(0.1)
else:
raise SystemExit('Candidate preview did not become ready')
PYREADY
)
"$py" scripts/rebuild-v2/check-built.py --base "$base"
- name: Upload complete-candidate verification evidence
if: always()
uses: actions/upload-artifact@v4
with:
name: videoreg-v2-built-crawl-${{ github.sha }}
path: docs/rebuild-v2/evidence/built-crawl.json
if-no-files-found: warn
+3
View File
@@ -16,3 +16,6 @@ npm-debug.log*
web-front/out/
.playwright-cli/
.local-run/
__pycache__/
*.pyc
+1
View File
@@ -1,5 +1,6 @@
FROM nginx:1.28-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf
COPY web-front/out/ /usr/share/nginx/html/
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 CMD wget -qO- http://127.0.0.1:8080/health/ready >/dev/null || exit 1
+1
View File
@@ -9,6 +9,7 @@ COPY ingestion ingestion
RUN npm run build
FROM nginx:1.28-alpine
COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
COPY deploy/legacy-map.conf /etc/nginx/conf.d/00-videoreg-legacy.conf
COPY --from=build /app/web-front/out/ /usr/share/nginx/html/
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s CMD wget -qO- http://127.0.0.1:8080/health/ready >/dev/null || exit 1
+23
View File
@@ -0,0 +1,23 @@
# Generated by scripts/rebuild-v2/legacy-routes.py; exact query meaning only.
map "$uri|$args" $videoreg_legacy {
default "";
"~^/index\\.shtml\\|$" "/system";
"~^/moves\\.htm\\|$" "/demo.shtml#section-3";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=78(?:&|$))(?:categoryID=78)(?:&(?:categoryID=78))*$" "/catalog#section-1";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=79(?:&|$))(?:categoryID=79)(?:&(?:categoryID=79))*$" "/catalog#section-0";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=80(?:&|$))(?:categoryID=80)(?:&(?:categoryID=80))*$" "/catalog#section-3";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=132(?:&|$))(?:productID=132)(?:&(?:productID=132))*$" "/equipment/svk002-lqcd";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=133(?:&|$))(?:productID=133)(?:&(?:productID=133))*$" "/equipment/svk002-gps";
"~^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=137(?:&|$))(?:productID=137)(?:&(?:productID=137))*$" "/equipment/svk004";
"~^/forum/index\\.php\\|(?:(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*)?$" "/community";
"~^/forum/index\\.php\\|(?=(?:[^&]*&)*c=2(?:&|$))(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=184(?:&|$))(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=188(?:&|$))(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=183(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=8(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=220(?:&|$))(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-0";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=221(?:&|$))(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-1";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=223(?:&|$))(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/flash-start#section-2";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=226(?:&|$))(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension#section-0";
"~^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=227(?:&|$))(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$" "/community/usb-extension#section-1";
}
+97
View File
@@ -0,0 +1,97 @@
[
{
"original": "/index.shtml",
"destination": "/system",
"pattern": "^/index\\.shtml\\|$"
},
{
"original": "/moves.htm",
"destination": "/demo.shtml#section-3",
"pattern": "^/moves\\.htm\\|$"
},
{
"original": "/shop/index.php?categoryID=78",
"destination": "/catalog#section-1",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=78(?:&|$))(?:categoryID=78)(?:&(?:categoryID=78))*$"
},
{
"original": "/shop/index.php?categoryID=79",
"destination": "/catalog#section-0",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=79(?:&|$))(?:categoryID=79)(?:&(?:categoryID=79))*$"
},
{
"original": "/shop/index.php?categoryID=80",
"destination": "/catalog#section-3",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*categoryID=80(?:&|$))(?:categoryID=80)(?:&(?:categoryID=80))*$"
},
{
"original": "/shop/index.php?productID=132",
"destination": "/equipment/svk002-lqcd",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=132(?:&|$))(?:productID=132)(?:&(?:productID=132))*$"
},
{
"original": "/shop/index.php?productID=133",
"destination": "/equipment/svk002-gps",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=133(?:&|$))(?:productID=133)(?:&(?:productID=133))*$"
},
{
"original": "/shop/index.php?productID=137",
"destination": "/equipment/svk004",
"pattern": "^/shop/index\\.php\\|(?=(?:[^&]*&)*productID=137(?:&|$))(?:productID=137)(?:&(?:productID=137))*$"
},
{
"original": "/forum/index.php",
"destination": "/community",
"pattern": "^/forum/index\\.php\\|(?:(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*)?$"
},
{
"original": "/forum/index.php?c=2",
"destination": "/community",
"pattern": "^/forum/index\\.php\\|(?=(?:[^&]*&)*c=2(?:&|$))(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:c=2|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?t=184",
"destination": "/community/flash-start",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=184(?:&|$))(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=184|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?t=188",
"destination": "/community/usb-extension",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=188(?:&|$))(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=188|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?t=183&view=next",
"destination": "/community/flash-start",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=183(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=183|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?t=8&view=next",
"destination": "/community/usb-extension",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*t=8(?:&|$))(?=(?:[^&]*&)*view=next(?:&|$))(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:t=8|view=next|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?p=220",
"destination": "/community/flash-start#section-0",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=220(?:&|$))(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=220|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?p=221",
"destination": "/community/flash-start#section-1",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=221(?:&|$))(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=221|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?p=223",
"destination": "/community/flash-start#section-2",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=223(?:&|$))(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=223|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?p=226",
"destination": "/community/usb-extension#section-0",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=226(?:&|$))(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=226|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
},
{
"original": "/forum/viewtopic.php?p=227",
"destination": "/community/usb-extension#section-1",
"pattern": "^/forum/viewtopic\\.php\\|(?=(?:[^&]*&)*p=227(?:&|$))(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=)(?:&(?:p=227|sid=[^&]*|start=0|postdays=0|postorder=asc|highlight=))*$"
}
]
+21
View File
@@ -0,0 +1,21 @@
{
"/index.shtml": "/system",
"/moves.htm": "/demo.shtml#section-3",
"/shop/index.php?categoryID=78": "/catalog#section-1",
"/shop/index.php?categoryID=79": "/catalog#section-0",
"/shop/index.php?categoryID=80": "/catalog#section-3",
"/shop/index.php?productID=132": "/equipment/svk002-lqcd",
"/shop/index.php?productID=133": "/equipment/svk002-gps",
"/shop/index.php?productID=137": "/equipment/svk004",
"/forum/index.php": "/community",
"/forum/index.php?c=2": "/community",
"/forum/viewtopic.php?t=184": "/community/flash-start",
"/forum/viewtopic.php?t=188": "/community/usb-extension",
"/forum/viewtopic.php?t=183&view=next": "/community/flash-start",
"/forum/viewtopic.php?t=8&view=next": "/community/usb-extension",
"/forum/viewtopic.php?p=220": "/community/flash-start#section-0",
"/forum/viewtopic.php?p=221": "/community/flash-start#section-1",
"/forum/viewtopic.php?p=223": "/community/flash-start#section-2",
"/forum/viewtopic.php?p=226": "/community/usb-extension#section-0",
"/forum/viewtopic.php?p=227": "/community/usb-extension#section-1"
}
+1 -1
View File
@@ -5,10 +5,10 @@ server {
charset utf-8;
server_tokens off;
absolute_redirect off;
if ($videoreg_legacy != "") { return 308 $videoreg_legacy; }
add_header X-Content-Type-Options nosniff always;
add_header Referrer-Policy strict-origin-when-cross-origin always;
add_header Content-Security-Policy "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; connect-src 'self'; object-src 'none'; base-uri 'self'; frame-ancestors 'none'" always;
location = /auto.shtml { return 308 /guides/choose; }
location /api/ { return 404; }
location ~ /showcase/?$ { return 404; }
location /_next/static/ { expires 1y; add_header Cache-Control "public, immutable"; }
+100 -18
View File
@@ -1,28 +1,110 @@
#!/usr/bin/env python3
"""Preview the public static release on an OS-assigned local port."""
"""Serve the reviewed static candidate, confined to its exported public tree."""
from http.server import ThreadingHTTPServer, SimpleHTTPRequestHandler
from pathlib import Path
import json, os
ROOT=Path(__file__).resolve().parents[1]
OUT=ROOT/'web-front/out'
from urllib.parse import urlsplit, unquote
import json
import os
import re
ROOT = Path(__file__).resolve().parents[1]
OUT = ROOT / 'web-front/out'
def resolve_public(root: Path, request_path: str):
path = unquote(urlsplit(request_path).path)
if '\\' in path or '..' in Path(path).parts or '\x00' in path:
return None
target = root / path.lstrip('/')
if not path.startswith('/health/') and Path(str(target) + '.html').is_file():
target = Path(str(target) + '.html')
try:
target.resolve().relative_to(root.resolve())
except (ValueError, OSError):
return None
return target
def legacy_destination(request_path: str):
"""Redirect only an exact evidenced query or proved presentation defaults."""
rules = json.loads((ROOT / 'deploy/legacy-matchers.json').read_text())
parsed = urlsplit(request_path)
key = unquote(parsed.path) + '|' + parsed.query
for rule in rules:
if re.fullmatch(rule['pattern'], key):
return rule['destination']
return None
class Handler(SimpleHTTPRequestHandler):
def __init__(self,*args,**kwargs):super().__init__(*args,directory=str(OUT),**kwargs)
def __init__(self, *args, **kwargs):
super().__init__(*args, directory=str(OUT), **kwargs)
def list_directory(self, path):
self.send_error(404)
return None
def send_error(self, code, message=None, explain=None):
page = resolve_public(OUT, '/404.html')
if code == 404 and page and page.is_file():
body = page.read_bytes()
self.send_response(404)
self.send_header('Content-Type', 'text/html; charset=utf-8')
self.send_header('Content-Length', str(len(body)))
self.end_headers()
if self.command != 'HEAD':
self.wfile.write(body)
return
super().send_error(code, message, explain)
def copyfile(self, source, outputfile):
if self.command != "HEAD":
super().copyfile(source, outputfile)
def do_HEAD(self):
self.do_GET()
def do_POST(self):
self.send_error(404)
def do_GET(self):
path=self.path.split('?',1)[0]
if path=='/auto.shtml':
self.send_response(308);self.send_header('Location','/guides/choose');self.end_headers();return
target = resolve_public(OUT, self.path)
if target is None:
self.send_error(404)
return
destination = legacy_destination(self.path)
if destination:
self.send_response(308)
self.send_header('Location', destination)
self.end_headers()
return
path = unquote(urlsplit(self.path).path)
if path.startswith('/api/') or path.rstrip('/').endswith('/showcase'):
self.send_error(404);return
target=OUT/path.lstrip('/')
self.send_error(404)
return
if path.startswith('/health/') and target.is_file():
self.send_response(200);self.send_header('Content-Type','application/json');self.end_headers();self.wfile.write(target.read_bytes());return
if target.with_suffix('.html').is_file():self.path=path+'.html'
body = target.read_bytes()
self.send_response(200)
self.send_header('Content-Type', 'application/json')
self.send_header('Content-Length', str(len(body)))
self.end_headers()
if self.command != "HEAD":
self.wfile.write(body)
return
relative = target.relative_to(OUT).as_posix()
self.path = '/' if relative == '.' else '/' + relative
super().do_GET()
httpd=ThreadingHTTPServer(('127.0.0.1',0),Handler)
runtime=ROOT/'.local-run';runtime.mkdir(exist_ok=True)
state=dict(port=httpd.server_port,pid=os.getpid(),url=f'http://127.0.0.1:{httpd.server_port}')
(runtime/'server.json').write_text(json.dumps(state,indent=2)+'\n')
print(json.dumps(state),flush=True)
httpd.serve_forever()
def main():
httpd = ThreadingHTTPServer(('127.0.0.1', int(os.environ.get('VIDEOREG_PREVIEW_PORT', '0'))), Handler)
runtime = ROOT / '.local-run'
runtime.mkdir(exist_ok=True)
state = dict(port=httpd.server_port, pid=os.getpid(), url=f'http://127.0.0.1:{httpd.server_port}')
(runtime / 'server.json').write_text(json.dumps(state, indent=2) + '\n')
print(json.dumps(state), flush=True)
httpd.serve_forever()
if __name__ == '__main__':
main()
+1 -1
View File
@@ -25,7 +25,7 @@ services:
labels:
- "traefik.enable=true"
- "traefik.docker.network=${TRAEFIK_NETWORK:-traefik-public}"
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`) && PathPrefix(`/`)"
- "traefik.http.routers.${STACK_NAME}.rule=(Host(`${DOMAIN}`) || Host(`www.${DOMAIN}`)) && PathPrefix(`/`)"
- "traefik.http.routers.${STACK_NAME}.priority=100"
- "traefik.http.routers.${STACK_NAME}.entrypoints=${TRAEFIK_ENTRYPOINTS:-websecure}"
- "traefik.http.routers.${STACK_NAME}.tls=${TRAEFIK_TLS:-true}"
+26
View File
@@ -0,0 +1,26 @@
async page => {
const base='http://127.0.0.1:50541';
const errors=[];page.on('pageerror', e=>errors.push(e.message));
const checks=[];
function check(name,ok,actual){checks.push({name,passed:!!ok,actual});if(!ok) throw new Error(name+': '+JSON.stringify(actual));}
await page.setViewportSize({width:360,height:800});
await page.goto(base+'/library');
await page.locator('#library-query').fill('GPS');
let count=await page.locator('.search-results>a').count();check('full body search GPS',count>0,count);
await page.locator('#library-query').fill('невозможныйзапрос98765');check('unknown search empty',await page.locator('.empty').isVisible(),await page.locator('.result-count').innerText());
await page.getByRole('button',{name:'Показать все материалы'}).click();count=await page.locator('.search-results>a').count();check('reset all articles',count>=27,count);
const category=await page.locator('#library-category option').nth(1).textContent();await page.locator('#library-category').selectOption({label:category});const kinds=await page.locator('.search-kind').allTextContents();check('category filter',kinds.length>0&&kinds.every(k=>k.includes(category)),{category,kinds});
await page.getByRole('button',{name:'Сбросить',exact:true}).click();
await page.locator('#library-query').focus();await page.keyboard.press('Tab');check('keyboard search reset',await page.evaluate(()=>document.activeElement?.textContent?.trim()==='Сбросить'),await page.evaluate(()=>document.activeElement?.outerHTML));
await page.goto(base+'/tools/recording-time');
await page.getByLabel('Ёмкость носителя, ГБ').fill('1');await page.getByLabel('Средний размер одного JPEG, КБ').fill('100');await page.getByLabel('Кадров/с на камеру').fill('5');await page.getByLabel('Число камер').fill('2');await page.getByLabel('Резерв места, %').fill('0');
let result=await page.locator('.time-result strong').innerText();check('JPEG known result',result==='0 ч 16 мин 40 с',result);
await page.getByLabel('Число камер').fill('1.5');result=await page.locator('.time-result strong').innerText();check('fractional cameras rejected',result==='Проверьте значения',result);
await page.getByLabel('Число камер').fill('2');await page.getByLabel('Ёмкость носителя, ГБ').fill('');check('empty capacity rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения');
await page.getByLabel('Видеопоток',{exact:true}).check();await page.getByLabel('Ёмкость носителя, ГБ').fill('128');await page.getByLabel('Суммарный битрейт, Мбит/с').fill('40');await page.getByLabel('Резерв места, %').fill('10');result=await page.locator('.time-result strong').innerText();check('stream known result',result==='6 ч 24 мин 0 с',result);
await page.getByLabel('Резерв места, %').fill('100');check('full reserve rejected',(await page.locator('.time-result strong').innerText())==='Проверьте значения');
await page.goto(base+'/samples/rain');const before=await page.locator('.frame-gallery img').count();const show=page.getByRole('button',{name:/Показать/});await show.click();const after=await page.locator('.frame-gallery img').count();check('gallery expands actual recovered frames',before===6&&after>before,{before,after});
const missing=await page.goto(base+'/this-original-page-does-not-exist');check('real404',missing.status()===404,missing.status());
check('no browser runtime errors',errors.length===0,errors);
return {base,viewport:{width:360,height:800},checks,errors};
}
+558
View File
@@ -0,0 +1,558 @@
#!/usr/bin/env python3
"""Audit the entire exported candidate, not a handpicked endpoint sample.
Run with .local-run/recovery-env/bin/python scripts/rebuild-v2/check-built.py.
The crawler never fetches external destinations; exact page/anchor approvals are
checked locally. Browser interaction remains a separate, explicitly named check.
Unresolved archive inventory produces a blocked restoration result, even when
all published-page checks succeed. No build, deployment or Git mutation occurs.
"""
from __future__ import annotations
import argparse
from collections import Counter, defaultdict
from datetime import datetime, timezone
import hashlib
import json
from pathlib import Path
import re
import subprocess
import sys
from urllib.parse import unquote, urldefrag, urljoin, urlsplit, urlunsplit
try:
from bs4 import BeautifulSoup
from PIL import Image
except ImportError:
raise SystemExit("Use .local-run/recovery-env/bin/python; requirements are pinned in scripts/rebuild-v2/requirements.txt")
ROOT = Path(__file__).resolve().parents[2]
INTERNAL_HOSTS = {"videoreg.ru", "www.videoreg.ru"}
ATTRS = ("href", "src", "poster", "action", "formaction", "data", "cite", "background", "longdesc", "manifest", "xlink:href")
CSS_URL = re.compile(r"url\(\s*(['\"]?)(.*?)\1\s*\)", re.I | re.S)
CSS_IMPORT = re.compile(r"@import\s+(['\"])(.*?)\1", re.I)
JS_STRING = re.compile(r'"(?:\\.|[^"\\])*"|\'(?:\\.|[^\'\\])*\'')
ABSOLUTE_URL = re.compile(r"(?:https?:)?//[^\s<>\"'`\\]+", re.I)
SOURCE_ATTR = re.compile(r"\b(href|src|poster|action|formaction)\s*=\s*(?:\{\s*)?[\"']([^\"']+)[\"']", re.I)
SPAM = re.compile(r"казино|покер|онлайн[ -]?ставк|ставки на спорт|payday loan|buy viagra|порно|букмекер", re.I)
ERROR_BODY = re.compile(r"wayback machine (?:has not|hasn.t)|this url has been excluded|access denied|too many requests|just a moment\.\.\.|page cannot be crawled", re.I)
SELF_REFERENCE = re.compile(r"(?:создан[аоы]?|нарисован[аоы]?|написан[аоы]?)\s+(?:в\s+)?2026|created by AI|сгенерирован[аоы]? (?:ИИ|AI)", re.I)
def sha(data: bytes) -> str:
return hashlib.sha256(data).hexdigest()
def read_json(path: Path, default):
return json.loads(path.read_text()) if path.is_file() else default
def confined(path: Path, root: Path) -> Path | None:
try:
resolved = path.resolve(strict=False)
resolved.relative_to(root.resolve())
return resolved
except (ValueError, OSError, RuntimeError):
return None
def tree_manifest(root: Path, predicate=lambda p: True):
entries = []
rejected = []
if root.exists():
for path in sorted(root.rglob("*")):
if not path.is_file() or not predicate(path):
continue
selected = confined(path, root)
if selected is None:
rejected.append(str(path.relative_to(root)))
continue
entries.append({"path": path.relative_to(root).as_posix(), "sha256": sha(selected.read_bytes()), "bytes": selected.stat().st_size})
return entries, rejected
def manifest_hash(entries):
return sha(json.dumps(entries, ensure_ascii=False, sort_keys=True, separators=(",", ":")).encode())
def route_for(relative: str) -> str:
if relative == "index.html":
return "/"
if relative.endswith("/index.html"):
return "/" + relative[:-len("index.html")]
return "/" + relative[:-len(".html")]
def normalize_path(path: str) -> str:
if path != "/" and path.endswith("/"):
return path.rstrip("/")
return path or "/"
def split_srcset(value: str):
# Data URI commas must not be mistaken for separate candidate URLs.
for candidate in re.split(r",\s*(?![^\s]*;base64)", value):
candidate = candidate.strip()
if candidate:
yield candidate.split()[0]
def extract_html(data: bytes, source: str, stage: str):
soup = BeautifulSoup(data, "html.parser")
occurrences = []
for node in soup.find_all(True):
context = node.get_text(" ", strip=True)[:240] or node.get("alt", "") or node.name
for attribute in ATTRS:
value = node.get(attribute)
if isinstance(value, str) and value.strip():
occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute=attribute, context=context, destination=value.strip()))
for attribute in ("srcset", "imagesrcset"):
value = node.get(attribute)
if isinstance(value, str):
for candidate in split_srcset(value):
occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute=attribute, context=context, destination=candidate))
if node.get("style"):
for _, value in CSS_URL.findall(node["style"]):
occurrences.append(dict(stage=stage, sourcePage=source, element=node.name, attribute="style:url", context=context, destination=value))
if node.name == "style":
for _, value in CSS_URL.findall(node.get_text()):
occurrences.append(dict(stage=stage, sourcePage=source, element="style", attribute="url", context="embedded stylesheet", destination=value))
if node.name == "meta" and str(node.get("http-equiv", "")).lower() == "refresh":
refresh = re.search(r"url\s*=\s*(.+)", node.get("content", ""), re.I)
if refresh:
occurrences.append(dict(stage=stage, sourcePage=source, element="meta", attribute="refresh", context="automatic navigation", destination=refresh.group(1).strip(" '\"")))
if node.name == "script" and not node.get("src"):
for value in ABSOLUTE_URL.findall(node.get_text()):
occurrences.append(dict(stage=stage, sourcePage=source, element="script", attribute="inline-url", context="embedded script string (may be inert serialized data)", destination=value.rstrip("),.;")))
return soup, occurrences
def anchor_text(value):
# The public template appends a decorative external-link arrow.
return re.sub(r"\s+↗$", "", value).strip()
def inert_script_constant(value, context):
namespaces = {"http://www.w3.org/1999/xhtml", "http://www.w3.org/2000/svg", "http://www.w3.org/1998/Math/MathML", "http://www.w3.org/1999/xlink", "http://www.w3.org/XML/1998/namespace"}
if value in namespaces:
return "Exact DOM/XML namespace identifier, not a network request"
if value in {"https://github.com/zloirock/core-js", "https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE"} and any(token in context for token in ("license:", "source:", "copyright:")):
return "core-js source/license metadata in bundled polyfill"
fixtures = {"https://a", "https://a/c%20d?a=1&c=3", "https://a@b", "https://тест", "https://a#б", "https://x"}
if value in fixtures and "URL" in context:
return "core-js local URL/URLSearchParams conformance fixture; no fetch"
if value == "http://n" and ("URL" in context or "getLocationOrigin" in context):
return "Next URL parser's local dummy base for server-side normalization"
if value in {"https://react.dev/errors/", "https://nextjs.org/docs/messages/", "https://nextjs.org/docs/messages"}:
return "Bundled framework error-message documentation prefix, not a resource load"
return None
def local_or_external(destination: str, owner: str, base: str):
destination = destination.strip()
if not destination:
return "ignored", None
if destination.startswith(("data:", "blob:")):
return "embedded", destination
if destination.lower().startswith(("javascript:", "vbscript:")):
return "unsafe-scheme", destination
if destination.startswith(("mailto:", "tel:", "ftp:")):
return "external", destination
parsed = urlsplit(urljoin(base.rstrip("/") + owner, destination))
base_host = urlsplit(base).hostname
if parsed.scheme not in ("http", "https"):
return "unsupported-scheme", destination
if parsed.hostname in INTERNAL_HOSTS | {base_host}:
return "local", urlunsplit(("", "", parsed.path or "/", parsed.query, parsed.fragment))
return "external", urlunsplit(parsed)
def locate_export(out: Path, url: str):
path = unquote(urlsplit(url).path)
if "\\" in path or "\x00" in path or ".." in Path(path).parts:
return None
raw = out / path.lstrip("/")
for selected in [raw, Path(str(raw) + ".html"), raw / "index.html"]:
resolved = confined(selected, out)
if resolved is not None and resolved.is_file():
return resolved
return None
def body_details(soup, route, error_document=False):
title = soup.title.get_text(" ", strip=True) if soup.title else ""
main = soup.find("article") or soup.find("main") or soup.body
if main is None:
return dict(title=title, bodyChars=0, words=0, bodySha256=sha(b""), findings=["missing-main-body"], ids=[])
text_soup = BeautifulSoup(str(main), "html.parser")
for element in text_soup.select("script,style,nav,header,footer,.related-reading,.contents,[hidden],[aria-hidden=true]"):
element.decompose()
text = " ".join(text_soup.stripped_strings)
normalized = re.sub(r"\s+", " ", text.lower()).strip()
findings = []
is_article = soup.find("article") is not None
if not error_document:
if not title:
findings.append("missing-title")
if is_article and (len(text) < 300 or len(text.split()) < 40):
findings.append("thin-article-needs-editorial-review")
if ERROR_BODY.search(text):
findings.append("possible-archive-or-antibot-error-body")
if SPAM.search(text):
findings.append("spam-keyword-needs-context-review")
if SELF_REFERENCE.search(text):
findings.append("self-referential-creation-copy")
return dict(title=title, bodyChars=len(text), words=len(text.split()), bodySha256=sha(normalized.encode()), findings=findings, ids=sorted({n.get("id") for n in soup.find_all(id=True)}), article=is_article, images=len(soup.find_all("img")), tables=len(soup.find_all("table")), codeBlocks=len(soup.find_all("pre")))
def active_source_files():
src = ROOT / "web-front/src"
pending = list((src / "app").rglob("*.tsx")) + list((src / "app").rglob("*.ts"))
seen = set()
while pending:
path = pending.pop()
safe = confined(path, src)
if safe is None or not safe.is_file() or safe in seen:
continue
seen.add(safe)
if safe.suffix not in (".ts", ".tsx", ".js", ".jsx", ".css"):
continue
text = safe.read_text()
for target in re.findall(r"(?:import|export).*?(?:from\s*)?[\"']([^\"']+)[\"']", text):
if target.startswith("@/"):
stem = src / target[2:]
elif target.startswith("."):
stem = safe.parent / target
else:
continue
candidates = [stem, *[Path(str(stem) + suffix) for suffix in (".ts", ".tsx", ".js", ".jsx", ".json", ".css")], stem / "index.ts", stem / "index.tsx"]
pending.extend(p for p in candidates if p.is_file())
return sorted(seen)
def source_occurrences(files):
occurrences = []
for path in files:
text = path.read_text()
relative = path.relative_to(ROOT).as_posix()
if path.suffix == ".json":
try:
data = json.loads(text)
except json.JSONDecodeError:
continue
# Approval metadata is reviewed evidence, not an emitted destination.
if path.name == "v2-link-approvals.json":
continue
def visit(value, context=""):
if isinstance(value, dict):
for key, item in value.items():
if key in ("href", "src", "poster", "action", "formaction", "url") and isinstance(item, str):
occurrences.append(dict(stage="active-source", sourceFile=relative, attribute=key, context=str(value.get("label") or value.get("alt") or context)[:240], destination=item))
visit(item, str(value.get("title") or value.get("path") or context))
elif isinstance(value, list):
for item in value:
visit(item, context)
visit(data)
else:
for match in SOURCE_ATTR.finditer(text):
occurrences.append(dict(stage="active-source", sourceFile=relative, line=text[:match.start()].count("\n") + 1, attribute=match.group(1), context=text[max(0, match.start()-90):match.end()+90].strip()[:240], destination=match.group(2)))
for _, value in CSS_URL.findall(text) + CSS_IMPORT.findall(text):
occurrences.append(dict(stage="active-source", sourceFile=relative, attribute="css:url", context="stylesheet reference", destination=value))
return occurrences
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--base", help="Running local or public HTTP base; defaults to .local-run/server.json")
parser.add_argument("--origin", help="Explicit diagnostic HTTPS origin IP (requires --insecure-origin for untrusted certificate)")
parser.add_argument("--insecure-origin", action="store_true", help="Diagnostic only; never records TLS as verified")
parser.add_argument("--out", type=Path, default=ROOT / "web-front/out")
parser.add_argument("--inventory", type=Path, default=ROOT / "docs/rebuild-v2/url-inventory.json")
parser.add_argument("--approvals", type=Path, default=ROOT / "web-front/src/content/v2-link-approvals.json")
parser.add_argument("--report", type=Path, default=ROOT / "docs/rebuild-v2/evidence/built-crawl.json")
args = parser.parse_args()
base = (args.base or read_json(ROOT / ".local-run/server.json", {}).get("url", "")).rstrip("/")
if urlsplit(base).scheme not in ("http", "https") or not urlsplit(base).hostname:
parser.error("Provide an http(s) --base or start the local preview")
if args.insecure_origin and not args.origin:
parser.error("--insecure-origin is allowed only for an explicit diagnostic --origin")
out = args.out.resolve()
if not out.is_dir():
parser.error("Missing export; owner must build candidate first")
before, unsafe_files = tree_manifest(out)
source_files = active_source_files()
source_before = [{"path": p.relative_to(ROOT).as_posix(), "sha256": sha(p.read_bytes())} for p in source_files]
approvals = read_json(args.approvals, [])
inventory = read_json(args.inventory, [])
legacy = read_json(ROOT / "deploy/legacy-routes.json", {})
errors = [{"kind": "export-file-outside-root", "file": x} for x in unsafe_files]
warnings = []
responses = {}
http_checks = []
request_urls = set()
def request(url, method="GET"):
url = urldefrag(url)[0]
key = method, url
if key in responses:
return responses[key]
cmd = ["curl", "-sS", "--max-time", "20", "--path-as-is", "-D", "-", "-w", "\n__VIDEOREG_STATUS__:%{http_code}"]
cmd += ["--head"] if method == "HEAD" else ["-X", method]
if args.origin:
cmd += ["--resolve", f"{urlsplit(base).hostname}:443:{args.origin}"]
if args.insecure_origin:
cmd += ["-k"]
cmd += [base + url]
result = subprocess.run(cmd, capture_output=True)
status_marker = b"\n__VIDEOREG_STATUS__:"
prefix, _, raw_status = result.stdout.rpartition(status_marker)
status = int(raw_status) if raw_status.isdigit() else 0
# curl can prepend HTTP CONNECT/interim headers; choose final header block.
content = prefix
headers = {}
while content.startswith(b"HTTP/"):
boundary = content.find(b"\r\n\r\n")
length = 4
if boundary < 0:
boundary = content.find(b"\n\n"); length = 2
if boundary < 0:
break
header_block, content = content[:boundary], content[boundary+length:]
headers = {}
for line in header_block.splitlines()[1:]:
if b":" in line:
name, value = line.split(b":", 1)
headers[name.decode().lower()] = value.decode(errors="replace").strip()
value = dict(status=status, headers=headers, body=content, returncode=result.returncode, error=result.stderr.decode(errors="replace")[:1000])
responses[key] = value
request_urls.add(url)
http_checks.append(dict(url=url, method=method, status=status, curlReturncode=result.returncode, bytes=len(content), location=headers.get("location"), contentType=headers.get("content-type")))
return value
pages = []
occurrences = []
script_constants = []
asset_checks = []
page_by_file = {}
for entry in before:
relative = entry["path"]
if not relative.endswith(".html"):
continue
path = out / relative
data = path.read_bytes()
route = route_for(relative)
error_document = relative in ("404.html", "_not-found.html")
soup, found = extract_html(data, route, "generated-html")
detail = body_details(soup, route, error_document)
row = dict(file=relative, route=route, sha256=entry["sha256"], bytes=entry["bytes"], errorDocument=error_document, **detail)
response = request("/" + relative if error_document else route)
row["httpStatus"] = response["status"]
row["httpSha256"] = sha(response["body"])
if not error_document and response["status"] != 200:
errors.append(dict(kind="published-page-http-status", route=route, status=response["status"]))
if not error_document and response["status"] == 200 and response["body"] != data:
errors.append(dict(kind="http-build-body-mismatch", route=route, file=relative))
pages.append(row)
page_by_file[path.resolve()] = row
occurrences.extend(found)
for finding in row["findings"]:
warnings.append(dict(kind=finding, route=route))
if not pages:
errors.append(dict(kind="empty-export-no-html"))
# Decode every exported raster asset, including unlinked public files.
# Files are confined above; PIL verification never executes image content.
for entry in before:
path = out / entry["path"]
if path.suffix.lower() in (".png", ".jpg", ".jpeg", ".gif", ".webp", ".ico"):
try:
with Image.open(path) as image:
width, height = image.size
image.verify()
asset_checks.append(dict(file=entry["path"], type="raster", valid=True, width=width, height=height, sha256=entry["sha256"]))
except Exception as exc:
asset_checks.append(dict(file=entry["path"], type="raster", valid=False, error=str(exc)))
errors.append(dict(kind="invalid-raster-image", file=entry["path"], error=str(exc)))
elif path.suffix.lower() == ".pdf":
data = path.read_bytes()
valid = b"%PDF-" in data[:1024] and b"%%EOF" in data[-2048:]
asset_checks.append(dict(file=entry["path"], type="pdf-signature-and-eof", valid=valid, sha256=entry["sha256"]))
if not valid:
errors.append(dict(kind="invalid-pdf-signature", file=entry["path"]))
# Scan every emitted CSS/JS/SVG, not only those linked from the homepage.
for entry in before:
path = out / entry["path"]
if path.suffix == ".svg":
_, found = extract_html(path.read_bytes(), "/" + entry["path"], "generated-svg")
occurrences.extend(found)
elif path.suffix in (".css", ".js", ".mjs"):
text = path.read_text(errors="replace")
for _, value in (CSS_URL.findall(text) if path.suffix == ".css" else []):
occurrences.append(dict(stage="generated-resource", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="css:url", context="emitted resource", destination=value))
for _, value in CSS_IMPORT.findall(text):
occurrences.append(dict(stage="generated-resource", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="css:import", context="emitted stylesheet import", destination=value))
if path.suffix in (".js", ".mjs"):
for match in JS_STRING.finditer(text):
value = match.group(0)[1:-1].replace("\\/", "/")
if not re.fullmatch(r"(?:https?:)?//[^\s<>\"'`]+", value):
continue
context = text[max(0, match.start()-180):match.end()+180]
reason = inert_script_constant(value, context)
if reason:
script_constants.append(dict(sourceFile=entry["path"], destination=value, context=context, classification="inert-code-constant", reviewed=True, reviewer="programmer-code-context", reason=reason))
else:
occurrences.append(dict(stage="generated-script-string", sourcePage="/" + entry["path"], sourceFile=entry["path"], attribute="inline-url", context=context, destination=value))
local_refs = []
outbound = []
for occurrence in occurrences:
owner = occurrence.get("sourcePage", "/")
kind, destination = local_or_external(occurrence["destination"], owner, base)
occurrence["classification"] = kind
occurrence["resolvedDestination"] = destination
if kind in ("unsafe-scheme", "unsupported-scheme"):
errors.append(dict(kind="unsafe-or-unsupported-reference", **occurrence))
elif kind == "external":
matching = [a for a in approvals if a.get("sourcePage") == owner and a.get("destination") == destination and a.get("anchor") == anchor_text(occurrence.get("context", "")) and a.get("reviewed") is True and a.get("decision") == "keep" and a.get("reason")]
if not matching and occurrence["attribute"] == "inline-url":
# Next serializes already emitted link props for hydration. This
# is approved only when the exact page/URL/anchor was emitted.
matching = [a for a in approvals if a.get("sourcePage") == owner and a.get("destination") == destination and a.get("reviewed") is True and a.get("decision") == "keep" and a.get("reason") and any(x.get("sourcePage") == owner and x.get("destination") == destination and anchor_text(x.get("context", "")) == a.get("anchor") and x.get("attribute") == "href" for x in occurrences)]
if matching:
occurrence["classification"] = "serialized-reference-of-approved-link"
occurrence["reviewed"] = bool(matching)
occurrence["approvalReason"] = matching[0]["reason"] if matching else None
outbound.append(occurrence)
if not matching:
errors.append(dict(kind="unapproved-external-occurrence", sourcePage=owner, destination=destination, context=occurrence.get("context"), stage=occurrence["stage"]))
elif kind == "local":
local_refs.append(occurrence)
url, fragment = urldefrag(destination)
selected = locate_export(out, url)
response = request(url)
if url in legacy:
expected = legacy[url]
if response["status"] != 308 or response["headers"].get("location") != expected:
errors.append(dict(kind="legacy-reference-mismatch", url=url, expected=expected, status=response["status"], location=response["headers"].get("location")))
target_url, target_fragment = urldefrag(expected)
selected = locate_export(out, target_url)
fragment = target_fragment or fragment
elif response["status"] != 200:
errors.append(dict(kind="missing-local-reference", sourcePage=owner, destination=destination, status=response["status"], attribute=occurrence["attribute"]))
elif selected is None:
errors.append(dict(kind="local-reference-not-in-export", sourcePage=owner, destination=destination))
if fragment and selected is not None:
target = page_by_file.get(selected)
if target and unquote(fragment) not in target["ids"]:
errors.append(dict(kind="missing-fragment", sourcePage=owner, destination=destination))
if selected is not None and response["status"] == 200 and selected not in page_by_file and response["body"] != selected.read_bytes():
errors.append(dict(kind="http-asset-body-mismatch", sourcePage=owner, destination=destination))
if occurrence.get("element") == "img" and selected is not None and selected.stat().st_size == 0:
errors.append(dict(kind="empty-image", sourcePage=owner, destination=destination))
active_occurrences = source_occurrences(source_files)
for occurrence in active_occurrences:
kind, destination = local_or_external(occurrence["destination"], "/", base)
occurrence["classification"] = kind
if kind == "external":
occurrence["appearsInExport"] = any(x["resolvedDestination"] == destination for x in outbound)
occurrence["exactDestinationApproved"] = any(a.get("destination") == destination and a.get("reviewed") is True and a.get("decision") == "keep" for a in approvals)
if not occurrence["appearsInExport"] and not occurrence["exactDestinationApproved"]:
errors.append(dict(kind="source-external-not-reviewed", **occurrence))
elif kind in ("unsafe-scheme", "unsupported-scheme"):
errors.append(dict(kind="unsafe-source-reference", **occurrence))
duplicates = []
grouped = defaultdict(list)
for page in pages:
if page.get("article") and not page["errorDocument"]:
grouped[page["bodySha256"]].append(page["route"])
for digest, routes in grouped.items():
if len(routes) > 1:
duplicates.append(dict(bodySha256=digest, routes=routes))
errors.append(dict(kind="duplicate-article-body", routes=routes))
source_publications = []
generated_routes = {normalize_path(p["route"]) for p in pages if not p["errorDocument"]}
for source_file in source_files:
if source_file.name not in ("v2-articles.json", "v2-community.json"):
continue
for article in read_json(source_file, []):
route = article.get("path")
present = normalize_path(route or "") in generated_routes
source_publications.append(dict(path=route, title=article.get("title"), sourceFile=source_file.relative_to(ROOT).as_posix(), generated=present))
if not present:
errors.append(dict(kind="typed-article-not-exported", route=route, sourceFile=source_file.relative_to(ROOT).as_posix()))
legacy_results = []
for original, destination in legacy.items():
response = request(original)
target, fragment = urldefrag(destination)
target_response = request(target)
selected = locate_export(out, target)
passed = response["status"] == 308 and response["headers"].get("location") == destination and target_response["status"] == 200 and selected is not None
if fragment:
target_page = page_by_file.get(selected)
passed = passed and target_page is not None and fragment in target_page["ids"]
legacy_results.append(dict(original=original, destination=destination, status=response["status"], location=response["headers"].get("location"), targetStatus=target_response["status"], passed=bool(passed)))
if not passed:
errors.append(dict(kind="legacy-route-failed", **legacy_results[-1]))
behavior = []
for path, method, expected in [("/videoreg-v2-definitely-missing-page", "GET", 404), ("/api/videos", "GET", 404), ("/api/videos", "POST", 404), ("/_dev/showcase", "GET", 404), ("/", "HEAD", 200), ("/health/ready", "HEAD", 200), ("/forum/viewtopic.php?t=184&start=20", "GET", 404), ("/forum/viewtopic.php?t=184&highlight=word", "GET", 404), ("/forum/viewtopic.php?t=184&postorder=desc", "GET", 404)]:
response = request(path, method)
passed = response["status"] == expected
behavior.append(dict(path=path, method=method, expected=expected, status=response["status"], passed=passed))
if not passed:
errors.append(dict(kind="http-behavior-failed", **behavior[-1]))
inventory_results = []
unresolved = []
for item in inventory:
status = item.get("publicationStatus", "missing-status")
destination = item.get("currentDestination")
raw = item.get("rawFile")
raw_integrity = None
if raw and item.get("rawSha256"):
raw_path = confined(ROOT / raw, ROOT)
raw_integrity = raw_path is not None and raw_path.is_file() and sha(raw_path.read_bytes()) == item["rawSha256"]
if not raw_integrity:
errors.append(dict(kind="inventory-raw-hash-mismatch", originalUrl=item.get("originalUrl"), file=raw))
row = dict(originalUrl=item.get("originalUrl"), type=item.get("type"), status=status, destination=destination, rawHashVerified=raw_integrity, reason=item.get("exclusionOrUnresolvedReason"))
if status.startswith("unresolved") or status == "missing-status":
unresolved.append(row)
elif status.startswith("excluded"):
if not item.get("exclusionOrUnresolvedReason"):
errors.append(dict(kind="inventory-exclusion-without-reason", originalUrl=item.get("originalUrl")))
elif destination:
kind, url = local_or_external(destination, "/", base)
if kind != "local" or locate_export(out, url) is None:
errors.append(dict(kind="inventory-destination-missing", **row))
else:
row["targetExists"] = True
selected = locate_export(out, url)
fragment = urlsplit(url).fragment
target_page = page_by_file.get(selected)
if fragment and target_page and unquote(fragment) not in target_page["ids"]:
errors.append(dict(kind="inventory-destination-fragment-missing", **row))
else:
errors.append(dict(kind="inventory-published-without-destination", **row))
inventory_results.append(row)
after, _ = tree_manifest(out)
source_after = [{"path": p.relative_to(ROOT).as_posix(), "sha256": sha(p.read_bytes())} for p in source_files if p.is_file()]
if before != after:
errors.append(dict(kind="build-mutated-during-check"))
if source_before != source_after:
errors.append(dict(kind="source-mutated-during-check"))
git = subprocess.run(["git", "rev-parse", "HEAD"], cwd=ROOT, capture_output=True, text=True)
report = dict(schemaVersion=1, domain="videoreg.ru", generatedAt=datetime.now(timezone.utc).isoformat(), sourceCommit=git.stdout.strip(), sourceManifestSha256=manifest_hash(source_before), sourceFiles=source_before, exportManifestSha256=manifest_hash(before), exportFileCount=len(before), base=base, origin=args.origin, tlsVerified=False if args.insecure_origin else (True if base.startswith("https://") and all(x["curlReturncode"] == 0 for x in http_checks) else None), browserDOMInspection="not performed by this script; use separate exact-candidate browser evidence", summary=dict(technicalStatus="failed" if errors else "passed", restorationStatus="blocked-unresolved-inventory" if unresolved else "reconciled", acceptance="blocked" if errors or unresolved else "mechanical-checks-only-not-role-approval", htmlFiles=len(pages), contentPages=sum(not p["errorDocument"] for p in pages), HTTPRequests=len(http_checks), localReferences=len(local_refs), emittedExternalOccurrences=len(outbound), activeSourceFiles=len(source_files), inventoryItems=len(inventory), unresolvedInventoryItems=len(unresolved), suspiciousPages=len(warnings), errors=len(errors), decodedRasterAssets=sum(x["type"] == "raster" for x in asset_checks)), pages=pages, assetChecks=asset_checks, duplicateBodies=duplicates, suspiciousCandidates=warnings, errors=errors, localReferences=local_refs, outboundOccurrences=outbound, inertScriptConstants=script_constants, activeSourceReferences=active_occurrences, HTTPChecks=http_checks, legacyRoutes=legacy_results, sourcePublications=source_publications, behavior=behavior, coverage=dict(statusCounts=dict(Counter(x["status"] for x in inventory_results)), items=inventory_results, unresolved=unresolved), limitations=["No external page is fetched by this checker; approvals must contain independent editorial verification.", "HTML/CSS/script-string extraction detects static references. Live JavaScript interactions, crops and browser DOM are checked separately.", "Suspicious thin/spam/error flags require per-page editorial assessment; they are not automatically treated as spam exclusions.", "A reconciled inventory does not establish that the external discovery denominator is complete."])
args.report.parent.mkdir(parents=True, exist_ok=True)
args.report.write_text(json.dumps(report, ensure_ascii=False, indent=2) + "\n")
print(json.dumps(dict(report=str(args.report.relative_to(ROOT) if args.report.is_relative_to(ROOT) else args.report), **report["summary"]), ensure_ascii=False))
return 1 if errors or unresolved else 0
if __name__ == "__main__":
sys.exit(main())
+27
View File
@@ -0,0 +1,27 @@
"""Behavioural checks for public path selection using harmless temporary files."""
from pathlib import Path
import importlib.util,tempfile,unittest
spec=importlib.util.spec_from_file_location('preview',Path(__file__).resolve().parents[2]/'deploy/serve-local.py')
preview=importlib.util.module_from_spec(spec);spec.loader.exec_module(preview)
class PublicSelection(unittest.TestCase):
def test_selection_and_boundaries(self):
with tempfile.TemporaryDirectory(prefix='videoreg-v2-preview-test-') as d:
root=Path(d)/'public';root.mkdir();(root/'guide.html').write_text('public');(root/'auto.shtml.html').write_text('historic');outside=Path(d)/'harmless-test-sentinel.txt';outside.write_text('outside test fixture')
self.assertEqual(preview.resolve_public(root,'/guide'),root/'guide.html')
self.assertEqual(preview.resolve_public(root,'/auto.shtml'),root/'auto.shtml.html')
self.assertEqual(preview.resolve_public(root,'/'),root)
for path in ['/../harmless-test-sentinel.txt','/%2e%2e/harmless-test-sentinel.txt','/health/../../harmless-test-sentinel.txt']:
self.assertIsNone(preview.resolve_public(root,path),path)
(root/'outside.html').symlink_to(outside)
self.assertIsNone(preview.resolve_public(root,'/outside'))
self.assertIsNone(preview.resolve_public(root,'/outside.html'))
def test_only_evidenced_legacy_routes(self):
self.assertIsNone(preview.legacy_destination('/auto.shtml'))
self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?sid=old&t=184&start=0'),'/community/flash-start')
self.assertIsNone(preview.legacy_destination('/forum/viewtopic.php?t=183'))
self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?t=183&view=next'),'/community/flash-start')
for query in ['t=184&start=20','t=184&postdays=7','t=184&postorder=desc','t=184&highlight=USB','t=184&unknown=value','t=184&t=188']:
self.assertIsNone(preview.legacy_destination('/forum/viewtopic.php?'+query),query)
self.assertEqual(preview.legacy_destination('/forum/viewtopic.php?postorder=asc&t=184&start=0&sid=expired&highlight='),'/community/flash-start')
self.assertIsNone(preview.legacy_destination('/shop/index.php?productID=132&start=20'))
if __name__=='__main__':unittest.main()
+31
View File
@@ -0,0 +1,31 @@
#!/usr/bin/env python3
from pathlib import Path
import json,hashlib,re,sys,concurrent.futures,time
from urllib.parse import urlsplit,parse_qsl,urlencode,quote
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw'
def normalized(url):
u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '')
d=json.loads((RAW/'cdx-domain.json').read_text());groups={}
for r in d[1:]:groups.setdefault(normalized(r[2]),[]).append(dict(zip(d[0],r)))
plan=[]
for path,rows in groups.items():
r=rows[0];kind='page';reason=None
if '/forum/' in path:
kind='forum-topic' if 'viewtopic.php?' in path else 'forum-listing'
if not any(x in path for x in ['viewtopic.php?','viewforum.php?','index.php']):reason='phpBB utility/auth/profile/search page, no original technical article body'
if '/shop/' in path:
kind='historic-product' if 'productID=' in path else 'historic-category'
if not any(x in path for x in ['productID=','categoryID=','aux_page=']):reason='Historic cart/shop utility or index; no live sales are being restored; inspect category/product pages separately'
if path.startswith('/stat/'):reason='Counter endpoint, excluded from publication'
name='pages/'+hashlib.sha256(path.encode()).hexdigest()[:16]+'.html'
plan.append(dict(originalUrl=r['original'],normalizedPath=path,type=kind,snapshot=r['timestamp'],rawFile='docs/rebuild-v2/raw/'+name,disposition='excluded-utility' if reason else 'fetch',reason=reason))
(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n');(RAW/'pages').mkdir(exist_ok=True)
def work(item):
dest=ROOT/item['rawFile']
if dest.exists() and dest.stat().st_size>500:return {'path':item['normalizedPath'],'cached':True}
url='https://web.archive.org/web/'+item['snapshot']+'id_/'+item['originalUrl']
return fetch(url,'pages/'+dest.name,timeout=45)
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
for out in ex.map(work,[p for p in plan if p['disposition']=='fetch']):pass
print('planned',len(plan),'fetch',sum(p['disposition']=='fetch' for p in plan),flush=True)
@@ -0,0 +1,17 @@
from pathlib import Path
import json,sys,hashlib,concurrent.futures
from bs4 import BeautifulSoup
from urllib.parse import urljoin,urlsplit
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';urls=['https://2126.ru/forum/index.php?topic=27783.0','http://mtsc.khpi.edu.ua/article/view/47926','http://www.nissan4x4-club.ru/Forum/NISSAN_4x4/index.php?id=353180','https://forum.zarulem.ws/?showtopic=170164','http://terranoirk.ru/forums/viewtopic.php?p=28099'];out=[]
def work(url):
name='semrush-referrer-'+hashlib.sha256(url.encode()).hexdigest()[:14]+'.html';rec=fetch(url,name,25);row=dict(url=url,request=rec,purpose='Actual parent-observed Lost andVital backlink lead, not original videoreg body',videoregLinks=[],relatedDocumentLeads=[])
if rec['httpStatus']=='200':
s=BeautifulSoup((P/rec['raw']).read_bytes(),'html.parser');row['title']=s.title.get_text(' ',strip=True) if s.title else None
for tag in s.find_all('a',href=True):
target=urljoin(url,tag['href']);context=' '.join(tag.parent.get_text(' ',strip=True).split())[:600]
if 'videoreg.ru' in target:row['videoregLinks'].append(dict(target=target,anchor=tag.get_text(' ',strip=True),context=context))
elif any(x in target.lower() for x in ['.pdf','.zip','svk','videoreg','svk-lab']):row['relatedDocumentLeads'].append(dict(target=target,anchor=tag.get_text(' ',strip=True),context=context))
return row
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:out=list(ex.map(work,urls))
(D/'semrush/referrer-verification.json').write_text(json.dumps(dict(scope='5 explicitly supplied public referring URLs out of coordinator-observed18Lost-andVitalrows; remaining13notinvented',rows=out),ensure_ascii=False,indent=2)+'\n');print([(x['url'],x['request']['httpStatus'],len(x['videoregLinks']),len(x['relatedDocumentLeads'])) for x in out])
+21
View File
@@ -0,0 +1,21 @@
#!/usr/bin/env python3
import argparse,hashlib,json,subprocess,time
from pathlib import Path
from urllib.parse import urlencode
ROOT=Path(__file__).resolve().parents[2]
RAW=ROOT/'docs/rebuild-v2/raw';RAW.mkdir(parents=True,exist_ok=True)
def fetch(url,name,timeout=65):
dest=RAW/name;headers=dest.with_suffix(dest.suffix+'.headers')
started=time.time()
r=subprocess.run(['curl','--compressed','-sS','-L','--max-time',str(timeout),'-D',str(headers),'-o',str(dest),'-w','%{http_code}\n%{url_effective}',url],capture_output=True,text=True)
if not dest.exists():dest.write_bytes(b'')
b=dest.read_bytes();parts=r.stdout.splitlines()
object_dir=RAW/'objects';object_dir.mkdir(exist_ok=True)
object_file=object_dir/(hashlib.sha256(b).hexdigest()+'.bin')
if not object_file.exists():object_file.write_bytes(b)
rec=dict(url=url,raw=str(dest.relative_to(ROOT)),immutableRaw=str(object_file.relative_to(ROOT)),sha256=hashlib.sha256(b).hexdigest(),bytes=len(b),httpStatus=parts[0] if parts else None,effectiveUrl=parts[1] if len(parts)>1 else None,curlExit=r.returncode,error=r.stderr.strip(),checkedAt=time.strftime('%Y-%m-%dT%H:%M:%SZ',time.gmtime()),seconds=round(time.time()-started,2))
with (RAW/'requests.jsonl').open('a') as f:f.write(json.dumps(rec,ensure_ascii=False)+'\n')
print(json.dumps({k:rec[k] for k in ['raw','httpStatus','bytes','curlExit','error']}),flush=True)
return rec
if __name__=='__main__':
p=argparse.ArgumentParser();p.add_argument('url');p.add_argument('name');p.add_argument('--timeout',type=int,default=65);a=p.parse_args();fetch(a.url,a.name,a.timeout)
+105
View File
@@ -0,0 +1,105 @@
from pathlib import Path
from urllib.parse import urlsplit,urljoin,parse_qsl,urlencode,unquote
import json,hashlib,re,collections,email.utils
from bs4 import BeautifulSoup
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';RAW=D/'raw'
plan=json.loads((D/'discovery-plan.json').read_text());by={x['normalizedPath']:x for x in plan}
articles=json.loads((P/'web-front/src/content/v2-articles.json').read_text())+json.loads((P/'web-front/src/content/v2-community.json').read_text())
routes=json.loads((P/'deploy/legacy-routes.json').read_text());content_dest={src:a['path'] for a in articles for src in a['sourcePaths'] if src.startswith('/')}
# Recovered full source cards take precedence over changed later category labels.
commercial={'/price.shtml':'Historic sale prices, installer promotions and phone numbers removed. Models retained in /system and /catalog.', '/where.shtml':'Historic dealer/contact advertisements, including unrelated casino/HVAC paid links; no original technical article body.', '/shop/index.php?aux_page=aux1':'Historic ordering instructions and sales contacts, no technical body.', '/shop/index.php?aux_page=aux2':'Historic payment/delivery/consumer-terms page; obsolete commerce/terms not republished as current advice.'}
source_outbound=[];new_leads={};raw_integrity=[]
def norm(url):
u=urlsplit(url);params=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(params)) if params else '')
def canonical(url):return urlsplit(url).hostname in ('videoreg.ru','www.videoreg.ru')
def actual_snapshot(file,fallback):
h=Path(str(file)+'.headers')
if h.exists():
m=re.findall(r'(?im)^memento-datetime:\s*(.+)$',h.read_text(errors='replace'))
if m:
try:return email.utils.parsedate_to_datetime(m[-1].strip()).strftime('%Y%m%d%H%M%S')
except:pass
return fallback
audit_plan=list(plan)
known_raw={x['rawFile'] for x in audit_plan}
for article in articles:
for raw_file in article['rawFiles']:
if raw_file.endswith('.html') and raw_file not in known_raw:
known_raw.add(raw_file)
original=next((p for p in article['sourcePaths'] if p.startswith('http')), 'http://www.videoreg.ru'+article['sourcePaths'][0] if article['sourcePaths'] else 'http://www.videoreg.ru/')
audit_plan.append(dict(normalizedPath=article['path'], originalUrl=original, rawFile=raw_file,snapshot=article['date'], reason=None))
for item in audit_plan:
f=P/item['rawFile']
if not (f.exists() and f.stat().st_size>500):continue
b=f.read_bytes();s=BeautifulSoup(b if '/gallery/' in str(f) or 'narod-' in str(f) else b.decode('cp1251',errors='replace'),'html.parser');item['_title']=s.title.get_text(' ',strip=True) if s.title else '';item['_text']=s.get_text(' ',strip=True);item['_sha']=hashlib.sha256(b).hexdigest();item['_actualSnapshot']=actual_snapshot(f,item['snapshot'])
for tag in s.find_all(True):
for attr in ['href','src','action','data','background']:
value=tag.get(attr)
if not isinstance(value,str) or not value.strip():continue
absolute=urljoin(item['originalUrl'],value)
context=' '.join(tag.get_text(' ',strip=True).split())[:220] or tag.get('alt','') or tag.name+' '+attr
if canonical(absolute):
u=urlsplit(absolute);key=norm(absolute)
if key not in by and not re.search(r'\.(?:gif|jpe?g|png|avi|zip|pdf|css|ico|bin)$',u.path,re.I) and u.path!='/':
if any(x in u.path for x in ['.shtml','.html','.htm','.php']):lead=new_leads.setdefault(key,dict(originalUrl=absolute,foundOn=[],context=context));lead['foundOn'].append(item['normalizedPath'])
if lead['context'] in ['подробнее...','a href','link href','img src'] and context not in ['подробнее...','a href','link href','img src']:lead['context']=context
continue
if absolute.startswith('#'):continue
if value.lower().startswith('javascript:'):reason='Old script-driven template interaction; no archived JavaScript is executed or carried to the new site.'
elif absolute.startswith('mailto:'):reason='Old sales/support contact; not republished as an active contact.'
elif re.search('казино|тур|тайланд|psp|бассейн|ворзел|кондиционер|хостинг|дилер|магазин|купить|установить|автоюрист',context,re.I):reason='Advertising/sales/paid-link context individually identified in this anchor; unrelated to technical body.'
elif 'youtube' in absolute or 'rutube' in absolute or 'video.yandex' in absolute:reason='Original demonstration host: archived Flash/embed removed. Exact verified video links, when retained, are separately approved per published page and anchor in v2-link-approvals.json; playable video bytes not recovered.'
elif tag.name in ('script','iframe','embed','object') or 'counter' in absolute or 'stat' in absolute:reason='Remote runtime/embed/counter removed; no downloaded runtime is executed.'
elif 'phpbb' in absolute:reason='Historical forum engine footer removed; no phpBB runtime is published. Technical observations are paraphrased with source dates.'
else:reason='Reviewed in original context: old partner, press, hosted sample or template reference is not needed for the edited technical body; omitted instead of carrying an unverified external destination.'
source_outbound.append(dict(stage='raw-source',sourcePage=item['normalizedPath'],sourceFile=item['rawFile'],snapshot=item['_actualSnapshot'],element=tag.name,attribute=attr,context=context,destination=absolute,decision='remove-from-publication',reason=reason,reviewed=True,reviewer='root-v2-editorial'))
# A URL-shaped script literal is reviewed even when it is not an HTML attribute.
for tag in s.find_all(['script','style']):
for url in re.findall(r'https?://[^\s"\'<>);]+',tag.get_text()):
if not canonical(url):source_outbound.append(dict(stage='raw-inline',sourcePage=item['normalizedPath'],sourceFile=item['rawFile'],snapshot=item['_actualSnapshot'],element=tag.name,attribute='literal',context=tag.get_text()[:200],destination=url,decision='remove-from-publication',reason='Untrusted archived script/style literal; no archived scripts/styles imported.',reviewed=True,reviewer='root-v2-editorial'))
# Additional exact aliases proved by named post anchors/canonical topic links in recovered raw threads.
for key,dest in routes.items():
if key not in by:new_leads.setdefault(key,dict(originalUrl='http://www.videoreg.ru'+key,foundOn=['recovered canonical topic/post links or explicit equivalent routing'],context='Verified canonical/alias path'))
for src in content_dest:
if src not in by:new_leads.setdefault(src,dict(originalUrl='http://www.videoreg.ru'+src,foundOn=['recovered document link'],context='Original technical document'))
entries=[]
for key in sorted(set(by)|set(new_leads)):
item=by.get(key);lead=new_leads.get(key)
u=urlsplit(key);semantic=[(k,v) for k,v in parse_qsl(u.query) if not (k=='sid' or k=='start' and v=='0' or k=='postdays' and v=='0' or k=='postorder' and v=='asc' or k=='highlight' and not v)]
semanticKey=u.path+('?' +urlencode(sorted(semantic)) if semantic else '')
dest=content_dest.get(key) or routes.get(key) or routes.get(semanticKey)
f=P/item['rawFile'] if item else None;valid=bool(item and '_sha' in item)
reason=None;status='unresolved';action='Recover actual body; no generic substitute or inferred text from an anchor.';kind=item['type'] if item else 'linked-content-url'
if item and item['reason']:status='excluded-utility';reason=item['reason'];action='Not a historical content article.'
elif key in commercial:status='excluded-commercial';reason=commercial[key];action='Read full source, remove commerce/advertising; relevant model facts retained separately.'
elif dest:
if valid and key in content_dest:status='edited-recovered';action='Full recovered body read and edited into typed safe sections; advertisements removed.'
elif key=='/download/samples/zeiss_800_600_GPS_1.zip':status='partial-media-recovery';action='Original ZIP is truncated and unpublished. Four complete JPEG members validated by declared size/CRC and decoded locally; companion does not replace missing archive.'
elif key=='/download/svk-002-mn.pdf':status='recovered-document';action='Complete3page January2008 Mobile News SVK002 journal test, validated PDF and all pages read; original exact PDF available.'
elif key.startswith('/download/'):status='recovered-document';action='Validated original PDF extracted from original ZIP; complete document available.'
elif '/forum/index.php' in key:status='replacement-navigation';action='Read-only technical case navigation replaces obsolete interactive forum entry; missing topic bodies tracked individually.'
else:status='verified-equivalent';action='Mapped only through recovered same-page/section/canonical-post evidence; not counted as a newly recovered body.'
reason='Edited technical purpose retained; see per-page editorial ledger.'
elif item and key.startswith('/forum/viewforum.php') and valid:status='unresolved-listing';reason='Listing fetched and read; linked topics not all recovered, so not silently redirected to an incomplete body.'
elif 'mark=topics' in key:status='excluded-utility';reason='Mark-as-read interaction, not a content body.'
elif not item and any(x in key for x in ['/forum/login.php','/forum/profile.php','/forum/groupcp.php','/forum/search.php','/forum/memberlist.php','/forum/viewonline.php','/forum/posting.php','/forum/privmsg.php']):status='excluded-utility';reason='Linked authentication/profile/posting/search utility, not an original technical article.'
elif not item and '/shop/index.php' in key and not any(x in key for x in ['productID=','categoryID=']):status='excluded-utility';reason='Linked shop action, sort, cart, language or commercial utility; no original technical body.'
# Verify a linked original document by its actual extracted source, not HTTP200 alone.
title=item.get('_title') if item else (lead or {}).get('context')
entry=dict(originalUrl=item['originalUrl'] if item else lead['originalUrl'],normalizedPath=key,type=kind,chosenSnapshot=item.get('_actualSnapshot',item['snapshot']) if item and valid else None,requestedSnapshot=item.get('snapshot') if item else None,fetchStatus='validated-html-body' if valid else ('not-fetched-utility' if status.startswith('excluded') else 'unresolved'),rawFile=item['rawFile'] if valid else None,rawSha256=item.get('_sha') if item else None,title=title,rawVisibleTextChars=len(item.get('_text','')) if item else 0,currentDestination=dest,editorialAction=action,publicationStatus=status,exclusionOrUnresolvedReason=reason or 'No validated source body recovered after actual capture/version/URL attempts; restoration remains blocked.',discoveredFrom=(lead or {}).get('foundOn',[]))
entries.append(entry)
(D/'url-inventory.json').write_text(json.dumps(entries,ensure_ascii=False,indent=2)+'\n')
(D/'outbound-links.json').write_text(json.dumps(dict(scope='Every external HTML attribute and inline URL in all fetched source pages. Public-source/build/DOM stages appended by verification script.',links=source_outbound),ensure_ascii=False,indent=2)+'\n')
semrush=D/'semrush';semrush.mkdir(exist_ok=True)
(semrush/'recovery-questions.json').write_text(json.dumps(dict(domain='videoreg.ru',scope=['apex','www'],status='awaiting actual coordinator Noxtools/Semrush evidence; not inspected by domain executor',missing=[dict(path=x['normalizedPath'],url=x['originalUrl'],title=x['title'],source=x['discoveredFrom']) for x in entries if x['publicationStatus'].startswith('unresolved')],questions=['Lost backlink targets beyond the CDX/HTML link union?','Exact titles and context for predpr.shtml, moves.htm, law1.htm, law2.htm and unindexed product/topic paths?','Separate manufacturer technical pages from later casino/real-estate/SEO anchors.','Record database, report scope/date, limits and first/last-seen dates.'],currentKnownEvidence='CDX883HTMLcaptures;259allresourceURLkeys; body recovery recorded per URL; all distinct pre/post2015 versions tried on missing indexed content.'),ensure_ascii=False,indent=2)+'\n')
counts=collections.Counter(e['publicationStatus'] for e in entries);meaningful=[e for e in entries if not e['publicationStatus'].startswith('excluded')]
body_captures=sum('_sha'in x for x in plan)
text=f'''# Coverage V2 — known denominator, unresolved restoration\n\nCDX discovery: 883 HTML captures across 2007–2025; 121 collapsed HTML URL keys and 259 resource URL keys. Removing phpBB sid duplicates gives101 original normalized HTML URLs. Full CDX JSON has no resume key, so returned index is complete for the actual query (all883 originals were HTTP;528www and355apex; no HTTPS200 captures returned). Linked original URLs from every fetched body expand the known inventory. Unfetched bodies may contain further undiscovered links: this is a **known lower bound**, not a complete historical-site claim.\n\nKnown normalized URLs in inventory: **{len(entries)}**. Meaningful/non-utility denominator (including unresolved): **{len(meaningful)}**. Actual validated fetched HTML bodies: **{body_captures}** (includes commercial/navigation pages; not all are published articles). Publication dispositions:\n\n'''+''.join(f'- {k}: {v}\n' for k,v in sorted(counts.items()))+'''\nEach entry has URL/type/snapshot/raw hash/title/body size/destination/editorial action/status/reason in `url-inventory.json`. `edited-recovered` counts source URLs, not unique articles; canonical merges and verified equivalents are separate. Typed article pages include new HTML document companions whose complete original PDFs are available; counts must not be presented as16 historic HTML bodies.\n\nImportant unresolved items include missing historical topic bodies, original installation photographs, unrecovered video bytes and partial GPSsampleZIP. The January2008 SVK002 journal test PDF is now completely recovered (3pages). All alternative versions and URL variants actually attempted are in raw/requests.jsonl. These gaps and pending Semrush reconciliation remain mandatory V2 blockers. No historical article is synthesized from a backlink anchor/title. V1 modern guides/retail cards do not enter recovery counts.\n'''
(D/'coverage.md').write_text(text)
# Freeze successful source bytes in content-addressed files; retain original friendly filenames.
objects=RAW/'objects';objects.mkdir(exist_ok=True)
for f in list(RAW.rglob('*')):
if f.is_file() and 'objects' not in f.parts and not f.name.endswith('.headers') and f.suffix not in ['.json','.jsonl']:
b=f.read_bytes();o=objects/(hashlib.sha256(b).hexdigest()+'.bin')
if not o.exists():o.write_bytes(b)
print('INVENTORY',len(entries),'meaningful',len(meaningful),'status',dict(counts),'outbound occurrences',len(source_outbound))
+61
View File
@@ -0,0 +1,61 @@
from pathlib import Path
import json
P=Path(__file__).resolve().parents[2]
routes={
'/index.shtml':'/system',
'/moves.htm':'/demo.shtml#section-3',
'/shop/index.php?categoryID=78':'/catalog#section-1',
'/shop/index.php?categoryID=79':'/catalog#section-0',
'/shop/index.php?categoryID=80':'/catalog#section-3',
'/shop/index.php?productID=132':'/equipment/svk002-lqcd',
'/shop/index.php?productID=133':'/equipment/svk002-gps',
'/shop/index.php?productID=137':'/equipment/svk004',
'/forum/index.php':'/community',
'/forum/index.php?c=2':'/community',
'/forum/viewtopic.php?t=184':'/community/flash-start',
'/forum/viewtopic.php?t=188':'/community/usb-extension',
'/forum/viewtopic.php?t=183&view=next':'/community/flash-start',
'/forum/viewtopic.php?t=8&view=next':'/community/usb-extension',
'/forum/viewtopic.php?p=220':'/community/flash-start#section-0',
'/forum/viewtopic.php?p=221':'/community/flash-start#section-1',
'/forum/viewtopic.php?p=223':'/community/flash-start#section-2',
'/forum/viewtopic.php?p=226':'/community/usb-extension#section-0',
'/forum/viewtopic.php?p=227':'/community/usb-extension#section-1',
}
(P/'deploy/legacy-routes.json').write_text(json.dumps(routes,ensure_ascii=False,indent=2)+'\n')
from urllib.parse import urlsplit, parse_qsl, urlencode
import re
def exact_legacy_pattern(original):
"""One raw-query pattern shared by nginx and the Python preview.
Only proved presentation defaults and a session token may be ignored.
Pagination, search, ordering and unknown query values must not collapse.
"""
parsed = urlsplit(original)
required = [re.escape(urlencode([(k, v)]))
for k, v in parse_qsl(parsed.query, keep_blank_values=True)]
allowed = list(required)
if parsed.path.startswith('/forum/'):
allowed += ['sid=[^&]*', 'start=0', 'postdays=0', 'postorder=asc', 'highlight=']
checks = ''.join(r'(?=(?:[^&]*&)*' + pair + r'(?:&|$))' for pair in required)
if allowed:
pair = '(?:' + '|'.join(allowed) + ')'
query = pair + '(?:&' + pair + ')*'
if not required:
query = '(?:' + query + ')?'
else:
query = ''
return '^' + re.escape(parsed.path) + r'\|' + checks + query + '$'
matchers = [dict(original=src, destination=dst, pattern=exact_legacy_pattern(src))
for src, dst in routes.items()]
(P/'deploy/legacy-matchers.json').write_text(json.dumps(matchers, ensure_ascii=False, indent=2)+'\n')
lines = ['# Generated by scripts/rebuild-v2/legacy-routes.py; exact query meaning only.',
'map "$uri|$args" $videoreg_legacy {', ' default "";']
for item in matchers:
# map's first argument remains a regex token after nginx parses quotes.
pattern = item['pattern'].replace('\\', '\\\\').replace('"', '\\"')
lines.append(' "~' + pattern + '" "' + item['destination'] + '";')
lines.append('}')
(P/'deploy/legacy-map.conf').write_text('\n'.join(lines)+'\n')
@@ -0,0 +1,32 @@
from pathlib import Path
from urllib.parse import urlsplit,urljoin
import sys,json,hashlib,concurrent.futures
from bs4 import BeautifulSoup
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';data=json.loads((D/'sample-gallery-inventory.json').read_text());cdx=json.loads((R/'cdx-narod-samples.json').read_text());album_paths=sorted({urlsplit(r[2]).path for r in cdx[1:] if r[3]=='text/html' and ('photoalbum' in r[2] or 'povorot.html' in r[2])})
for path in album_paths:
for base in ['http://videoreg-samples.narod.ru','https://web.archive.org/web/2008id_/http://www.videoreg-samples.narod.ru:80']:
url=base+path;rec=fetch(url,'gallery/alternate-'+hashlib.sha256(url.encode()).hexdigest()[:16]+'.html',20)
if rec['httpStatus']=='200' and rec['bytes']>300:
raw=(P/rec['raw']).read_bytes();s=BeautifulSoup(raw,'html.parser')
if any(a.get('href','').lower().endswith('.jpg') for a in s.find_all('a')):
album=dict(url='http://videoreg-samples.narod.ru'+path,raw=rec['raw'],title=s.title.get_text(' ',strip=True) if s.title else '',text=s.get_text(' ',strip=True),images=[])
for tag in s.find_all(['a','img']):
value=tag.get('href') if tag.name=='a' else tag.get('src');u=urlsplit(urljoin(album['url'],value or ''))
if u.hostname and u.hostname.endswith('videoreg-samples.narod.ru') and u.path.lower().endswith('.jpg'):album['images'].append(u.path)
album['images']=list(dict.fromkeys(album['images']));data['albums'].append(album);break
images={i['path']:i for i in data['images']}
for a in data['albums']:
for path in a['images']:images.setdefault(path,dict(path=path,url='http://videoreg-samples.narod.ru'+path,fetchStatus='pending',rawFile=None))
records={urlsplit(r[2]).path:r for r in cdx[1:] if r[3]=='image/jpeg' and '/.s/' not in r[2]}
def work(i):
if i['fetchStatus']=='downloaded-unreviewed':return
urls=['https://videoreg-samples.narod.ru'+i['path']]
if i['path'] in records:urls.append('https://web.archive.org/web/2008id_/http://videoreg-samples.narod.ru:80'+i['path'])
for url in urls:
name='gallery/retry-'+hashlib.sha256(url.encode()).hexdigest()[:18]+'.jpg';rec=fetch(url,name,20)
if rec['httpStatus']=='200' and (P/rec['raw']).read_bytes().startswith(b'\xff\xd8\xff'):
i.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes']);return
i['fetchStatus']='unresolved'
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,images.values()))
data['images']=list(images.values());(D/'sample-gallery-inventory.json').write_text(json.dumps(data,ensure_ascii=False,indent=2)+'\n');print('ALTERNATE GALLERY',len(data['albums']),len(images),sum(i['fetchStatus']=='downloaded-unreviewed' for i in images.values()))
@@ -0,0 +1,16 @@
from pathlib import Path
import json,sys,hashlib,concurrent.futures
from urllib.parse import urlsplit
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';media=json.loads((D/'media-inventory.json').read_text())
important=['/images/ni-x1.jpg','/images/ni-x2.jpg','/images/ni-x3.jpg','/images/ni-x4.jpg','/images/sert_1024x768.jpg','/download/doc/QuickStart_SVK007_006.zip','/download/doc/svk-002-mn.zip','/download/uvr_instr_2ch.zip','/download/doc/svk-007-instr.zip','/download/svk-002-mn.pdf','/download/samples/zeiss_800_600_GPS_1.zip','/download/samples/zeiss_800_600_GPS_2.zip']
important +=[x['path'] for x in media if x['mimetype']=='video/x-msvideo']
def work(item):
if item['path'] not in important or item['fetchStatus']=='downloaded-unreviewed' and item['path']!='/download/svk-002-mn.pdf':return
for year in ['2012','2008']:
url='https://web.archive.org/web/'+year+'id_/http://www.videoreg.ru:80'+item['path'];ext=Path(item['path']).suffix.lower();name='media/short-'+hashlib.sha256(url.encode()).hexdigest()[:16]+ext;rec=fetch(url,name,35)
if rec['httpStatus']=='200' and rec['bytes']>500:
item.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes'],requestedShortYear=year);return
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
for _ in ex.map(work,media):(D/'media-inventory.json').write_text(json.dumps(media,ensure_ascii=False,indent=2)+'\n')
print('IMPORTANT-MEDIA successes',[(x['path'],x['rawFile']) for x in media if x['path'] in important and x['fetchStatus']=='downloaded-unreviewed'])
+33
View File
@@ -0,0 +1,33 @@
from pathlib import Path
import sys,json,hashlib,concurrent.futures,time
from urllib.parse import urlsplit,parse_qsl,urlencode
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw'
plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={json.loads(x)['url'] for x in (RAW/'requests.jsonl').read_text().splitlines()}
def norm(url):
u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '')
def saveplan():
(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n')
def work(item):
dest=ROOT/item['rawFile']
if dest.exists() and dest.stat().st_size>500:return
versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath']]
# Prefer the most recent documented pre-2015 version of each distinct body.
unique={}
for r in versions:
if r[1]>='20150101':unique[r[5]]=r
ordered=sorted(unique.values(),key=lambda r:r[1],reverse=True)
candidates=[]
for r in ordered:
for original in [r[2],'http://www.videoreg.ru'+item['normalizedPath'],'http://videoreg.ru'+item['normalizedPath']]:
candidates.append((r[1],original))
for ts,original in candidates:
url='https://web.archive.org/web/'+ts+'id_/'+original
if url in attempts:continue
attempts.add(url);name='pages/'+hashlib.sha256(url.encode()).hexdigest()[:20]+'.html';rec=fetch(url,name,30)
if rec['httpStatus']=='200' and rec['bytes']>500:
item['rawFile']=rec['raw'];item['snapshot']=ts;item['replayUrl']=rec['effectiveUrl'];return
time.sleep(.35)
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
for _ in ex.map(work,[x for x in plan if x['disposition']=='fetch']):saveplan()
saveplan();print('RECOVERED',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True)
+26
View File
@@ -0,0 +1,26 @@
from pathlib import Path
import json,sys,hashlib,concurrent.futures,re
from urllib.parse import urlsplit,unquote
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw';(RAW/'media').mkdir(exist_ok=True)
d=json.loads((RAW/'cdx-all-resources.json').read_text());plan=[]
for r in d[1:]:
path=urlsplit(r[2]).path;name=unquote(path).lower();kind=r[3];reason=None
if kind=='text/html' or kind=='text/css':continue
if kind in ['application/octet-stream'] or '/sys-po/' in name or 'videoregistrator' in name or 'videoregshow' in name:reason='Executable/firmware not executed or republished'
elif '/download/samples/' in name:reason='Recording ZIP retained in inventory; individual images/video prioritized without bulk ZIP republishing'
elif kind=='application/zip' and not any(x in name for x in ['uvr_instr','svk-002-mn','svk-007-instr','svk_007_instr','quickstart']):reason='Historic warranty/commercial package, no technical corpus body'
elif kind.startswith('image/') and not re.search(r'(ni-x|svk|vrss|f[1-5]_cr|front200|back200|auto1|break|video090806|mcad|avaria|sert_|micr300|c905|glonass|tr-600|contr_pp|quickcam1|not-deluxe|cwc\.jpg|l-qc-pn|qcn-pro|qc-fus|lifecam|microsoft|a4tech|spc1300|pronot|g-cam)',name):reason='Template chrome, advertisement/logo/press-cover or unneeded icon; not a content illustration'
plan.append(dict(originalUrl=r[2],path=path,snapshot=r[1],mimetype=kind,reason=reason,fetchStatus='excluded' if reason else 'pending',rawFile=None,publicDestination=None))
def work(item):
if item['reason']:return
path=item['path'];url=item['originalUrl'];ts=item['snapshot'];suffix=Path(unquote(path)).suffix.lower();name='media/'+hashlib.sha256(path.encode()).hexdigest()[:16]+suffix
variants=[url,'http://www.videoreg.ru:80'+path,'http://www.videoreg.ru'+path]
for original in dict.fromkeys(variants):
result=fetch('https://web.archive.org/web/'+ts+'id_/'+original,name,35)
if result['httpStatus']=='200' and result['bytes']>200:
item.update(fetchStatus='downloaded-unreviewed',rawFile=result['raw'],sha256=result['sha256'],bytes=result['bytes']);return
item['fetchStatus']='unresolved'
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,plan))
(ROOT/'docs/rebuild-v2/media-inventory.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n')
print('MEDIA',len(plan),'downloaded',sum(x['fetchStatus']=='downloaded-unreviewed' for x in plan),flush=True)
@@ -0,0 +1,29 @@
from pathlib import Path
from urllib.parse import urljoin,urlsplit
import sys,json,hashlib,concurrent.futures
from bs4 import BeautifulSoup
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw';(R/'gallery').mkdir(exist_ok=True)
root=BeautifulSoup((R/'narod-samples-live.html').read_bytes(),'html.parser')
albums=[dict(url='http://videoreg-samples.narod.ru/',raw='docs/rebuild-v2/raw/narod-samples-live.html')]
for n in range(1,5):
url='http://www.videoreg-samples.narod.ru/photoalbum'+str(n)+'.html';rec=fetch(url,'gallery/album'+str(n)+'.html',25)
if rec['httpStatus']=='200' and rec['bytes']>300:albums.append(dict(url=url,raw=rec['raw']))
images={}
for album in albums:
s=BeautifulSoup((P/album['raw']).read_bytes(),'html.parser')
album['title']=s.title.get_text(' ',strip=True) if s.title else '';album['text']=s.get_text(' ',strip=True);album['images']=[]
for tag in s.find_all(['a','img']):
value=tag.get('href') if tag.name=='a' else tag.get('src');url=urljoin(album['url'],value or '')
u=urlsplit(url)
if u.hostname in ['videoreg-samples.narod.ru','www.videoreg-samples.narod.ru'] and u.path.lower().endswith(('.jpg','.jpeg')):
key=u.path;album['images'].append(key);images.setdefault(key,dict(path=key,url=url,fetchStatus='pending',rawFile=None))
album['images']=list(dict.fromkeys(album['images']))
def work(item):
name='gallery/'+hashlib.sha256(item['path'].encode()).hexdigest()[:18]+'.jpg';rec=fetch(item['url'],name,25)
if rec['httpStatus']=='200' and (P/rec['raw']).read_bytes().startswith(b'\xff\xd8\xff'):
item.update(fetchStatus='downloaded-unreviewed',rawFile=rec['raw'],sha256=rec['sha256'],bytes=rec['bytes'])
else:item.update(fetchStatus='unresolved')
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,images.values()))
(D/'sample-gallery-inventory.json').write_text(json.dumps(dict(source='Original sample host linked by recovered videoreg homepage; live HTML contains legacy photo series, scripts not executed',albums=albums,images=list(images.values())),ensure_ascii=False,indent=2)+'\n')
print('GALLERY',len(albums),'albums',len(images),'discovered photos',sum(x['fetchStatus']=='downloaded-unreviewed' for x in images.values()),'downloaded')
+27
View File
@@ -0,0 +1,27 @@
from pathlib import Path
from urllib.parse import urlsplit
import sys,json,hashlib,concurrent.futures,time,email.utils
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';R=D/'raw'
plan=json.loads((D/'discovery-plan.json').read_text());inventory=json.loads((D/'url-inventory.json').read_text());known={x['normalizedPath'] for x in plan}
for e in inventory:
if e['publicationStatus'].startswith('unresolved') and e['normalizedPath'] not in known and 'mark=topics' not in e['normalizedPath']:
key=e['normalizedPath'];plan.append(dict(originalUrl=e['originalUrl'],normalizedPath=key,type='linked-content-url',snapshot='2008' if '/forum/' in key or '/shop/' in key else '2012',rawFile='docs/rebuild-v2/raw/pages/'+hashlib.sha256(key.encode()).hexdigest()[:16]+'.html',disposition='fetch',reason=None));known.add(key)
# Reuse actual successful short-date original, no new text generated from links.
for item in plan:
if item['normalizedPath']=='/predpr.shtml':item.update(rawFile='docs/rebuild-v2/raw/predpr-short2012.html',snapshot='2012')
requests={json.loads(x)['url'] for x in (R/'requests.jsonl').read_text().splitlines()}
def work(item):
f=P/item['rawFile']
if item.get('disposition')!='fetch' or (f.exists() and f.stat().st_size>500):return
key=item['normalizedPath'];years=['2007','2008'] if '/forum/' in key or '/shop/' in key else ['2012','2008']
for year in years:
url='https://web.archive.org/web/'+year+'id_/http://www.videoreg.ru:80'+key
if url in requests:continue
name='pages/short-'+hashlib.sha256(url.encode()).hexdigest()[:16]+'.html';rec=fetch(url,name,35)
if rec['httpStatus']=='200' and rec['bytes']>500:
item.update(rawFile=rec['raw'],snapshot=year,replayUrl=rec['effectiveUrl']);return
time.sleep(.35)
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
for _ in ex.map(work,plan):(D/'discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n')
print('SHORTDATE BODY COUNT',sum((P/x['rawFile']).exists() and (P/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'))
+33
View File
@@ -0,0 +1,33 @@
from pathlib import Path
import sys,json,hashlib,concurrent.futures,time
from urllib.parse import urlsplit,parse_qsl,urlencode
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw'
plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={json.loads(x)['url'] for x in (RAW/'requests.jsonl').read_text().splitlines()}
def norm(url):
u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '')
def saveplan():
(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n')
def work(item):
dest=ROOT/item['rawFile']
if dest.exists() and dest.stat().st_size>500:return
versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath']]
# Prefer the most recent documented pre-2015 version of each distinct body.
unique={}
for r in versions:
if r[1]<'20150101':unique[r[5]]=r
ordered=sorted(unique.values(),key=lambda r:r[1],reverse=True)
candidates=[]
for r in ordered:
for original in [r[2],'http://www.videoreg.ru'+item['normalizedPath'],'http://videoreg.ru'+item['normalizedPath']]:
candidates.append((r[1],original))
for ts,original in candidates:
url='https://web.archive.org/web/'+ts+'id_/'+original
if url in attempts:continue
attempts.add(url);name='pages/'+hashlib.sha256(url.encode()).hexdigest()[:20]+'.html';rec=fetch(url,name,30)
if rec['httpStatus']=='200' and rec['bytes']>500:
item['rawFile']=rec['raw'];item['snapshot']=ts;item['replayUrl']=rec['effectiveUrl'];return
time.sleep(.35)
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:
for _ in ex.map(work,[x for x in plan if x['disposition']=='fetch']):saveplan()
saveplan();print('RECOVERED',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True)
+4
View File
@@ -0,0 +1,4 @@
beautifulsoup4==4.15.0
pillow==13.0.0
soupsieve==3.0.4
typing_extensions==4.16.0
+33
View File
@@ -0,0 +1,33 @@
from pathlib import Path
import json,sys,hashlib,concurrent.futures
from urllib.parse import urlsplit
sys.path.insert(0,str(Path(__file__).parent));from fetch import fetch
from importlib.machinery import SourceFileLoader
m=SourceFileLoader('corpus',str(Path(__file__).parent/'download-corpus.py'))
ROOT=Path(__file__).resolve().parents[2];RAW=ROOT/'docs/rebuild-v2/raw'
plan=json.loads((ROOT/'docs/rebuild-v2/discovery-plan.json').read_text());all=json.loads((RAW/'cdx-all-html-captures.json').read_text());attempts={r['url'] for r in [json.loads(x) for x in (RAW/'requests.jsonl').read_text().splitlines()]}
# Existing successful captures are immutable and reused, not re-fetched.
for path,name in [('/auto.shtml','auto-20070228153116.html'),('/faq.shtml','faq-www.html')]:
for item in plan:
if item['normalizedPath']==path:item['rawFile']='docs/rebuild-v2/raw/'+name
def norm(url):
from urllib.parse import parse_qsl,urlencode
u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '')
def work(item):
dest=ROOT/item['rawFile']
if dest.exists() and dest.stat().st_size>500:return
versions=[r for r in all[1:] if isinstance(r,list) and norm(r[2])==item['normalizedPath'] and r[1]<'20150101']
candidates=[(item['snapshot'],'http://www.videoreg.ru:80'+item['normalizedPath'])]
if versions:
r=versions[-1];candidates.append((r[1],'http://www.videoreg.ru:80'+item['normalizedPath']))
for i,(ts,url) in enumerate(candidates):
replay='https://web.archive.org/web/'+ts+'id_/'+url
if replay in attempts:continue
name='pages/'+hashlib.sha256((item['normalizedPath']+ts+str(i)).encode()).hexdigest()[:16]+'.html'
result=fetch(replay,name,45)
if result['httpStatus']=='200' and result['bytes']>500:
item['rawFile']=result['raw'];item['snapshot']=ts;item['replayUrl']=replay;return
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as ex:list(ex.map(work,[x for x in plan if x['disposition']=='fetch']))
(ROOT/'docs/rebuild-v2/discovery-plan.json').write_text(json.dumps(plan,ensure_ascii=False,indent=2)+'\n')
print('recovered bodies',sum((ROOT/x['rawFile']).exists() and (ROOT/x['rawFile']).stat().st_size>500 for x in plan if x['disposition']=='fetch'),flush=True)
@@ -0,0 +1,32 @@
from pathlib import Path
import json,re
P=Path(__file__).resolve().parents[2];d=P/'docs/rebuild-v2/outbound-links.json';x=json.loads(d.read_text())
context_rules=[
('pr-realt.com.ua','Paid real-estate insertion in FAQ2011 footer, anchor дома в ворзеле; unrelated to operation Q&A. Removed without altering technical questions.'),
('jazztravel.com.ua','Paid Thai hotel booking anchor in compatibility/support footer; no connection to listed USB camera modes. Removed.'),
('playland.com.ua','Paid PSP3008 shop insertion in support footer, unrelated game-console product; removed.'),
('protivotok.net','Paid swimming-pool equipment insertion in support footer, unrelated to camera compatibility; removed.'),
('paradcasino.com','Casino paid anchor inside dealer page; removed, never treated as historical technical body.'),
('new-wind.ru','Household air-conditioner sales insertion in dealer page; removed as unrelated advertising.'),
('videoreg-samples.narod.ru','Original linked sample gallery: full decoded JPEGs copied locally without template runtime. This exact remote file/link is omitted to avoid partial/dead remote loads; corresponding local images and unresolved file counts are recorded in sample-gallery-inventory.json.'),
('avtourist','Old legal-promotion/recommendation banner; no actual legal article body recovered here. Banner omitted; legal claims not republished as advice.'),
('club4x4.ru','Travel/expedition reality-show source mention, legitimate contextual link rather than casino insertion. Not retained in technical operation text because no dependent factual passage is copied; remains an internal recovery lead.'),
('autoreview.ru','Legitimate period press review source link; not currently used as a factual source in edited body. Kept in internal recovery inventory rather than silently importing an unverified article.'),
('ksytal.ru','Separate GSM alarm product partner mention on home page. No corresponding technical comparison/body is republished; commercial cross-promotion removed.'),
('carintst.com','Historic paid/partner installation studio sidebar, not an installation instruction or image attribution; removed.'),
('invista.org','Old reseller shop sidebar for buying SVK; no technical dependency, obsolete purchase route removed.'),
('autoprofi2000.ru','Old installer/dealer promotion; no copied installation tutorial requiring attribution, removed.'),
('b-tuning.ru','Historic tuning/installer promotion, no technical body attribution or guide; removed.'),
('mak-studia.ru','Historical installation/dealer contact; not published as active sales route.'),
('autoset.ru','Old commercial partner banner/link, not the source of edited technical facts; removed.'),
('talks.mark-itt.ru','External discussion reference in recovered forum context; thread content not recovered/used as authority. Technical explanation derives from the original local posts; remote link omitted pending recovery.'),
('earth.google.com','Historical Google Earth download/support pointer for viewing track data. Product version URL not verified; edited article preserves KML/KMZ file purpose without presenting this obsolete link as a current download.'),
('fotki.yandex.ru','Retired original map-photo host; original demonstration context retained, link not represented as a working map or recovered image.'),
]
for item in x['links']:
for needle,reason in context_rules:
if needle in item['destination']:item['reason']=reason;item['decision']='remove-from-publication';break
if 'narod.yandex.ru/userforum' in item['destination']:item['reason']='Legacy guestbook/forum interaction, no recovered article body; runtime/contact utility omitted.'
if re.search(r'yandex.ru/(?:cy|cycounter)',item['destination']):item['reason']='Citation-index badge/counter tracking in template, unrelated to technical reading; removed.'
x['scope']='All actual chosen/supplemental source HTML attributes and inline URLs. Per-context editorial decisions; built/source and rendered DOM reports are separate evidence stages.'
d.write_text(json.dumps(x,ensure_ascii=False,indent=2)+'\n')
+19
View File
@@ -0,0 +1,19 @@
from pathlib import Path
from urllib.parse import urlsplit,parse_qsl,urlencode
import json,shutil,hashlib
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2/semrush';D.mkdir(exist_ok=True)
source=Path('/Users/gavrilovdev/tmp/pupline/site-restoration-status/semrush-recovery/videoreg.ru');raw=json.loads((source/'observed-indexed-pages.json').read_text())
for name in ['observed-indexed-pages.json','observed-indexed-pages.md','observed-anchors.partial.json','observed-anchors.partial.md','observed-lost-vital.json','observed-lost-vital.md']:shutil.copyfile(source/name,D/name)
inv=json.loads((P/'docs/rebuild-v2/url-inventory.json').read_text());by={i['normalizedPath']:i for i in inv}
def norm(url):
u=urlsplit(url);q=[(k,v) for k,v in parse_qsl(u.query) if k!='sid'];return u.path+('?' +urlencode(sorted(q)) if q else '')
rows=[]
for row in raw['rows']:
k=norm(row['url']);found=by.get(k);status=found['publicationStatus'] if found else 'unresolved-new-lead'
if row['classification']=='later_expired_domain_state':status='later-state-not-original-body'
rows.append(dict(observed=row,normalizedPath=k,matchedInventoryUrl=found['originalUrl'] if found else None,recoveryDisposition=status,rawFile=found['rawFile'] if found else None,sourceHash=found['rawSha256'] if found else None,currentDestination=found['currentDestination'] if found else None,bodyRecoveredFromAnchor=False,review='Specific target reconciled to actual source inventory; metrics not treated as body proof'))
extra=[('/moves.htm','Универсальный цифровой видеорегистратор СВК','recovered-original-Russia1clip-context'),('/autopredpr.shtml',None,'matched'),('/demo.shtml',None,'unresolved-media'),('/shop/index.php?productID=133',None,'matched'),('/shop/index.php?productID=138',None,'unresolved'),('/forum/viewtopic.php?t=196',None,'unresolved'),('/forum/viewforum.php?f=1',None,'navigation-only'),('/account',None,'excluded-later-unrelated-Blox-state'),('/join',None,'excluded-later-unrelated-Blox-state'),('/withdraw',None,'excluded-later-unrelated-Blox-state')]
report=dict(domain='videoreg.ru',evidenceOrigin='Coordinator inspected Noxtools/Semrush in shared built-in browser; this executor ingested actual supplied transcription without taking over session',reportUrl=raw['reportUrl'],additionalEvidenceFiles=['observed-anchors.partial.json','observed-lost-vital.json','referrer-verification.json'],reportedTotal=raw['reportedTotal'],actualDOMRowsReported=raw['actualDOMRowsReportedByParent'],transcribedRows=raw['transcribedRows'],complete=False,scopeLimitation=raw['scopeLimit'],originalExportSha256=hashlib.sha256((D/'observed-indexed-pages.json').read_bytes()).hexdigest(),rows=rows,additionalCoordinatorMessageLeads=[dict(url='http://www.videoreg.ru'+k,title=t,disposition=s,evidence='Direct coordinator message2026-10-26; exact per-row metrics/date not supplied') for k,t,s in extra],remainingRequirements=['Remaining66observedDOM rows and6unloaded reported rows not provided as full export','Anchors52DOM/3transcribed; LostVital18DOM/6transcribed.5actualreferrersfetched;3HTTP200,2unavailable. Full rowtranscriptions and remainingreferrers remain mandatory.','Unresolved target bodies/media must be recovered from actual sources; no text synthesized from anchors'])
(D/'reconciliation.json').write_text(json.dumps(report,ensure_ascii=False,indent=2)+'\n')
(D/'scope.md').write_text('# Semrush / Noxtools — actual partial scope\n\nCoordinator used the shared built-in browser. Report total89, actualDOM83, supplied transcription17selected rows. This executor ingested exactly those17 and the explicit additional coordinator message leads; it did not independently inspect the UI or manufacture the remaining rows.\n\n`reconciliation.json` maps each supplied target to actual raw body/status. Late expiry and Blox account/join/withdraw states do not replace original technical content. Backlink counts are not recovered text.\n\nMandatory issue videoreg-7oy.7 stays open: complete exported row coverage and actual referringURL/anchor contexts are still missing.\n')
print('Semrush matched observed rows',len(rows),'of reported',raw['reportedTotal'],'scope remains partial')
+42
View File
@@ -0,0 +1,42 @@
from pathlib import Path
from PIL import Image,ImageOps,ImageDraw
import json,shutil,math,hashlib
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';f=P/'web-front/src/content/v2-articles.json';articles=json.loads(f.read_text());g=json.loads((D/'sample-gallery-inventory.json').read_text());by={x['path']:x for x in g['images']};contactdir=D/'evidence/gallery-sheets';contactdir.mkdir(exist_ok=True)
series={
'/':('/samples/stx','Покадровая запись 640×480','Серия с камеры Logitech Communicate STX.','Рассмотрите порядок изменения сцены в последовательности и откройте исходные JPEG. Частоту съёмки нельзя установить по одному имени файла.'),
'/photoalbum2.html':('/samples/evening-zeiss','Поездка вечером: камера Zeiss','Вечерняя серия с Logitech QuickCam Pro for Notebook Zeiss Optic.','Сравните участки с разной освещённостью. Размытие и различимость объектов оценивайте в исходном размере, без увеличения, выдаваемого за новые детали.'),
'/photoalbum3.html':('/samples/day-zeiss','Дневная запись: камера Zeiss','Дневная серия с Logitech Pro Notebooks Zeiss optics.','Дневные кадры показывают дорожную сцену в условиях этой поездки. Один набор не доказывает качество камеры при другой погоде, настройках или установке.'),
'/photoalbum4.html':('/samples/rain','Съёмка в сильный дождь','Последовательность с камеры Genius Videocam WEB, 640×480.','Посмотрите, как дождь на стекле меняет видимую сцену. Это запись конкретного опыта; она не задаёт технический предел работы камеры под дождём вне салона.'),
'/photoalbum5.html':('/samples/late-evening','Поздний вечер: Communicate STX','Серия камеры Logitech Communicate STX при низкой освещённости.','Сопоставьте светлые и тёмные участки последовательности. По показанным кадрам нельзя обещать читаемость номеров в любых вечерних условиях.'),
'/povorot.html':('/samples/roundabout','Круговое движение при слабом свете','Последовательность с Logitech QuickCam Communicate STX.','Исходное название серии указывает круговое движение и слабую освещённость. Последовательность сохраняет отдельные кадры; AVI-экспорт и исходные JPEG не следует считать одинаковыми файлами.')}
for album in g['albums']:
from urllib.parse import urlsplit
path=urlsplit(album['url']).path
if path not in series:continue
route,title,summary,paragraph=series[path];frames=[];thumbs=[]
for source in album['images']:
row=by[source]
if row['fetchStatus']!='downloaded-unreviewed':continue
try:
with Image.open(P/row['rawFile']) as im:im.load();size=im.size;thumb=ImageOps.contain(im.convert('RGB'),(220,165))
except Exception as e:row.update(fetchStatus='corrupt-image',validationError=str(e));continue
name=Path(source).name;destination='/recordings/samples/'+name;dest=P/'web-front/public'/destination.lstrip('/');dest.parent.mkdir(parents=True,exist_ok=True);shutil.copyfile(P/row['rawFile'],dest)
row.update(publicDestination=destination,decodedSize=list(size),decoded=True);frames.append(dict(src=destination,filename=name,width=size[0],height=size[1]));thumbs.append((name,thumb))
if not frames:continue
columns=4;sheet=Image.new('RGB',(columns*220,math.ceil(len(thumbs)/columns)*195),'#f5f2e9');draw=ImageDraw.Draw(sheet)
for i,(name,thumb) in enumerate(thumbs):
x=i%columns*220;y=i//columns*195;sheet.paste(thumb,(x,y));draw.text((x+5,y+169),name,fill='#17382f')
sheetpath=contactdir/(route.rsplit('/',1)[-1]+'.jpg');sheet.save(sheetpath)
album['decodedFrames']=len(frames);album['publicDestination']=route;album['contactSheet']=str(sheetpath.relative_to(P))
existing=next((a for a in articles if a['path']==route),None)
if existing:
existing['title']=title;existing['summary']=summary;existing['sections'][0]['gallery']=frames
else:
articles.append(dict(path=route,title=title,summary=summary,category='Записи',date='Дата не указана',kind='linked-source',sourcePaths=[album['url']],rawFiles=[album['raw']],sections=[dict(heading='Последовательность исходных кадров',paragraphs=[paragraph,'Оригинал каждого кадра открывается по нажатию. Сохранение через снимок экрана или повторное сжатие меняет материал. Для проверки времени и GPS нужны соответствующие поля самого файла; подпись серии их не заменяет.'],gallery=frames)],related=['/samples.shtml','/samples/stx','/tools/recording-time']))
if route=='/samples/stx':
existing=next(a for a in articles if a['path']==route);existing['related']=['/samples/gps','/samples/evening-zeiss','/samples/rain'];existing['sections'][0]['paragraphs'][0]='Серия показывает изменение дорожной сцены по отдельным кадрам. На странице примеров указаны камера Logitech Communicate STX и разрешение 640×480. Откройте исходник, чтобы оценить детали в собственном размере.'
links=[dict(href=a['publicDestination'],label=series[urlsplit(a['url']).path][1]) for a in g['albums'] if a.get('publicDestination')]
for a in articles:
if a['path']=='/samples.shtml':
a['sections'][1]['links']=links+[dict(href='/samples/gps',label='Кадры 800×600 с EXIF GPS')]
f.write_text(json.dumps(articles,ensure_ascii=False,indent=2)+'\n');(D/'sample-gallery-inventory.json').write_text(json.dumps(g,ensure_ascii=False,indent=2)+'\n');print('galleries',len(links),'decoded',sum(a.get('decodedFrames',0) for a in g['albums']))
+29
View File
@@ -0,0 +1,29 @@
from pathlib import Path
import hashlib,json,subprocess,zipfile,collections
from PIL import Image
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';public=P/'web-front/public';digest=lambda f:hashlib.sha256(f.read_bytes()).hexdigest()
public_by_hash={digest(f):'/'+f.relative_to(public).as_posix() for f in public.rglob('*') if f.is_file()}
rows=json.loads((D/'media-inventory.json').read_text())
for row in rows:
if row['path']=='/download/svk-002-mn.pdf':row.update(rawFile='docs/rebuild-v2/raw/svk002-review-retry-0.bin',reason=None)
f=P/row['rawFile'] if row.get('rawFile') else None
row['publicDestination']=None
if row.get('reason') and row.get('fetchStatus')=='excluded':row['validation']='excluded-original-commercial-or-runtime';continue
if not f or not f.is_file() or not f.stat().st_size:row['validation']='unresolved-no-complete-bytes';continue
row.update(bytes=f.stat().st_size,sha256=digest(f));valid=False
try:
suffix=Path(row['path']).suffix.lower()
if suffix in ['.jpg','.jpeg','.gif','.png','.ico']:
with Image.open(f) as im:im.load();row['imageDimensions']=list(im.size);valid=True
elif suffix=='.pdf':
r=subprocess.run(['pdfinfo',str(f)],capture_output=True,text=True);valid=r.returncode==0 and 'Pages:' in r.stdout;row['pdfinfoExit']=r.returncode
elif suffix=='.zip':
with zipfile.ZipFile(f) as z:valid=z.testzip() is None;row['zipMembers']=z.namelist()
else:row['validation']='downloaded-needs-format-specific-review';continue
except Exception as e:row['validationError']=str(e)
if valid:
row['publicDestination']=public_by_hash.get(row['sha256']);row['validation']='validated-published-exact-bytes' if row['publicDestination'] else 'validated-unpublished'
else:row['validation']='unresolved-invalid-or-truncated';row['fetchStatus']='unresolved-invalid'
(D/'media-inventory.json').write_text(json.dumps(rows,ensure_ascii=False,indent=2)+'\n')
(D/'evidence/media-validation.json').write_text(json.dumps(dict(resources=len(rows),counts=dict(collections.Counter(x['validation'] for x in rows)),publicFiles=len(public_by_hash),scope='Primary domain136resourceCDXkeys; external sample host separately recorded in sample-gallery-inventory.json',note='No software, firmware or script executed; original archive members inspected only. GPSsampleZIP is truncated; four complete JPEGs salvaged by memberCRC, not fullZIPrecovery.'),ensure_ascii=False,indent=2)+'\n')
print(collections.Counter(x['validation'] for x in rows))
File renamed without changes.
Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

@@ -0,0 +1,52 @@
<svg xmlns="http://www.w3.org/2000/svg" width="440" height="1015" viewBox="0 0 440 1015" role="img" aria-labelledby="title desc">
<title id="title">Два канала СВК в примере наблюдения за автобусом</title>
<desc id="desc">В описанном варианте СВК-007 первый канал принимает две камеры дверей и записывает по внешнему событию либо меняет частоту. Второй канал постоянно записывает дорогу и салон. Опциональный GPS даёт сведения об остановках и движении, а события дверей помогают находить нужные кадры. Схема показывает роли каналов, не электропроводку и не автоматический подсчёт пассажиров.</desc>
<defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"><path d="M1 1 6 4 1 7" fill="none" stroke="#8a9b91" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></marker></defs>
<rect width="440" height="1015" rx="12" fill="#f5f5ef"/>
<g font-family="Arial, Helvetica, sans-serif" fill="#17382f">
<text x="28" y="42" font-size="14" font-weight="700" letter-spacing="1.5">ПРИМЕР ДЛЯ АВТОБУСА</text>
<text x="28" y="78" font-size="26" font-weight="700">Два канала — разные задачи</text>
<!-- Channel one is explicitly separate from continuous road/cabin recording. -->
<rect x="26" y="108" width="388" height="280" rx="10" fill="#fff" stroke="#c9d4cc"/>
<rect x="44" y="128" width="89" height="27" rx="4" fill="#e9d5a7"/>
<text x="55" y="147" font-size="14" font-weight="700">КАНАЛ 1</text>
<text x="151" y="149" font-size="23" font-weight="700">Двери</text>
<g stroke="#31574a" stroke-width="2" fill="none" stroke-linejoin="round">
<rect x="53" y="178" width="59" height="47" rx="5"/><circle cx="82" cy="202" r="12"/><path d="M70 226v9h24v-9"/>
<rect x="146" y="178" width="59" height="47" rx="5"/><circle cx="175" cy="202" r="12"/><path d="M163 226v9h24v-9"/>
<path d="M243 178h43v54h-43zM264 178v54M253 209h3m16 0h3"/>
</g>
<text x="55" y="261" font-size="16">дверь 1</text>
<text x="148" y="261" font-size="16">дверь 2</text>
<text x="307" y="197" font-size="16">событие</text>
<text x="307" y="221" font-size="16">датчика</text>
<path d="M53 284h334" stroke="#e0e7e0"/>
<text x="46" y="313" font-size="17" font-weight="700">Запись по событию</text>
<text x="46" y="339" font-size="16" fill="#5b7168">или изменение частоты кадров</text>
<text x="46" y="367" font-size="15" fill="#5b7168">Завершение может быть с задержкой.</text>
<!-- Channel two: two different continuous views. -->
<rect x="26" y="411" width="388" height="265" rx="10" fill="#17382f"/>
<rect x="44" y="431" width="89" height="27" rx="4" fill="#d7e4d9"/>
<text x="55" y="450" font-size="14" font-weight="700">КАНАЛ 2</text>
<text x="151" y="452" font-size="23" fill="#fff" font-weight="700">Дорога и салон</text>
<g fill="none" stroke="#e7efe8" stroke-width="2" stroke-linejoin="round">
<rect x="51" y="485" width="147" height="89" rx="6"/><path d="m84 574 26-77m30 77-5-77M125 504l-1 12m-1 12-1 12m-1 12-1 12"/>
<rect x="230" y="485" width="157" height="89" rx="6"/><path d="M247 500h20v24h-20zM350 500h20v24h-20zM247 540h20v24h-20zM350 540h20v24h-20zM305 495v69"/>
</g>
<text x="96" y="600" font-size="17" fill="#e0e9e1">дорога</text>
<text x="284" y="600" font-size="17" fill="#e0e9e1">салон</text>
<text x="46" y="646" font-size="18" fill="#fff" font-weight="700">Постоянная запись обоих видов</text>
<!-- Optional metadata is not drawn as a mandatory AND gate. -->
<rect x="26" y="699" width="388" height="195" rx="10" fill="#e5ebe3"/>
<text x="46" y="732" font-size="20" font-weight="700">Данные для просмотра</text>
<circle cx="53" cy="765" r="4" fill="#7c9685"/>
<text x="68" y="771" font-size="17">GPS (опция): остановки, движение</text>
<circle cx="53" cy="800" r="4" fill="#b9934f"/>
<text x="68" y="806" font-size="17">События дверей: метки кадров</text>
<text x="46" y="845" font-size="16" fill="#5b7168">Помогают отбирать и просматривать</text>
<text x="46" y="870" font-size="16" fill="#5b7168">записи, а не считать людей автоматически.</text>
<text x="28" y="936" font-size="16" fill="#5b7168">Роли каналов в примере СВК-007.</text>
<text x="28" y="965" font-size="16" fill="#5b7168">Возможности зависят от модели и настройки.</text>
<text x="28" y="994" font-size="15" fill="#5b7168">Схема не задаёт электрических соединений.</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

@@ -0,0 +1,39 @@
<svg xmlns="http://www.w3.org/2000/svg" width="440" height="815" viewBox="0 0 440 815" role="img" aria-labelledby="title desc">
<title id="title">Чем отличаются режимы «Дорога» и «Охрана» в описании СВК</title>
<desc id="desc">В режиме «Дорога» регистратор сохраняет кадры чаще. В режиме «Охрана» частота ниже, чтобы увеличить промежуток времени хранения на том же накопителе. Показаны относительные интервалы, а не измеренная частота конкретной настройки.</desc>
<defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"><path d="M1 1 6 4 1 7" fill="none" stroke="#8a9b91" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></marker></defs>
<rect width="440" height="815" rx="12" fill="#f5f5ef"/>
<g font-family="Arial, Helvetica, sans-serif" fill="#17382f">
<text x="28" y="42" font-size="14" font-weight="700" letter-spacing="1.5">РЕЖИМЫ ЗАПИСИ</text>
<text x="28" y="77" font-size="26" font-weight="700">Чаще или дольше?</text>
<text x="28" y="107" font-size="17" fill="#5b7168">Один и тот же интервал наблюдения</text>
<!-- Road mode: dense, regular frames. -->
<rect x="26" y="135" width="388" height="235" rx="10" fill="#17382f"/>
<g fill="none" stroke="#d9b260" stroke-width="2" stroke-linecap="round">
<path d="m51 193 9-28h31l9 28M47 194h57v18H47zM53 211v7m45-7v7M57 201h8m20 0h8"/>
</g>
<text x="125" y="179" font-size="24" fill="#fff" font-weight="700">Дорога</text>
<text x="125" y="209" font-size="17" fill="#e0e9e1">кадры сохраняются чаще</text>
<path d="M51 289h337" stroke="#8ca69a" stroke-width="1.5"/>
<g fill="#d9b260"><rect x="52" y="257" width="23" height="35" rx="3"/><rect x="91" y="257" width="23" height="35" rx="3"/><rect x="130" y="257" width="23" height="35" rx="3"/><rect x="169" y="257" width="23" height="35" rx="3"/><rect x="208" y="257" width="23" height="35" rx="3"/><rect x="247" y="257" width="23" height="35" rx="3"/><rect x="286" y="257" width="23" height="35" rx="3"/><rect x="325" y="257" width="23" height="35" rx="3"/><rect x="364" y="257" width="23" height="35" rx="3"/></g>
<text x="51" y="329" font-size="17" fill="#e0e9e1">Больше подробностей движения</text>
<!-- Same time span, fewer frames, not a fabricated numeric FPS claim. -->
<rect x="26" y="393" width="388" height="235" rx="10" fill="#fff" stroke="#c9d4cc"/>
<g fill="none" stroke="#31574a" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
<path d="m76 418 25 11v20c0 20-25 30-25 30s-25-10-25-30v-20Z"/>
<path d="m64 448 9 9 17-19"/>
</g>
<text x="125" y="438" font-size="24" font-weight="700">Охрана</text>
<text x="125" y="468" font-size="17">частота кадров ниже</text>
<path d="M51 548h337" stroke="#8a9b91" stroke-width="1.5"/>
<g fill="#7d9c88"><rect x="52" y="516" width="23" height="35" rx="3"/><rect x="208" y="516" width="23" height="35" rx="3"/><rect x="364" y="516" width="23" height="35" rx="3"/></g>
<text x="51" y="588" font-size="17">На накопителе помещается</text>
<text x="51" y="613" font-size="17">больший промежуток времени</text>
<!-- Legend and explicit scope, not implementation metadata. -->
<rect x="27" y="664" width="17" height="25" rx="2" fill="#b9934f"/>
<text x="57" y="683" font-size="17">один сохранённый кадр</text>
<path d="M28 717h381" stroke="#8a9b91" stroke-width="1.5" marker-end="url(#arrow)"/>
<text x="28" y="745" font-size="16" fill="#5b7168">время →</text>
<text x="28" y="783" font-size="15" fill="#5b7168">Интервалы условные; частота зависит от настройки.</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.9 KiB

@@ -0,0 +1,60 @@
<svg xmlns="http://www.w3.org/2000/svg" width="440" height="870" viewBox="0 0 440 870" role="img" aria-labelledby="title desc">
<title id="title">Как устроена запись в системе СВК</title>
<desc id="desc">Одна или две USB веб-камеры передают кадры в блок СВК. Блок сохраняет их на USB FLASH. Для просмотра накопитель подключают к компьютеру. Это схема потока данных, а не электрического подключения.</desc>
<defs><marker id="arrow" markerWidth="8" markerHeight="8" refX="6" refY="4" orient="auto"><path d="M1 1 6 4 1 7" fill="none" stroke="#82958b" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></marker></defs>
<rect width="440" height="870" rx="12" fill="#f5f5ef"/>
<g font-family="Arial, Helvetica, sans-serif" fill="#17382f">
<text x="28" y="42" font-size="14" font-weight="700" letter-spacing="1.5">ПОТОК ДАННЫХ</text>
<text x="28" y="77" font-size="26" font-weight="700">От камеры к файлам</text>
<!-- Cameras: the second is deliberately shown as optional. -->
<rect x="26" y="105" width="388" height="145" rx="10" fill="#fff" stroke="#c9d4cc"/>
<g stroke="#31574a" stroke-width="2" fill="none" stroke-linejoin="round">
<path d="M53 151h59a7 7 0 0 1 7 7v34a7 7 0 0 1-7 7H53a7 7 0 0 1-7-7v-34a7 7 0 0 1 7-7Z"/>
<circle cx="83" cy="175" r="14"/><circle cx="83" cy="175" r="6"/>
<path d="M71 200v13h24v-13M62 214h42"/>
<path d="M139 153h54a6 6 0 0 1 6 6v31a6 6 0 0 1-6 6h-54a6 6 0 0 1-6-6v-31a6 6 0 0 1 6-6Z" stroke-dasharray="4 4" opacity=".5"/>
<circle cx="166" cy="174" r="12" opacity=".5"/><path d="M158 197v13h18v-13M148 211h36" opacity=".5"/>
</g>
<text x="224" y="156" font-size="20" font-weight="700">USB-камеры</text>
<text x="224" y="184" font-size="17">одна или две</text>
<text x="224" y="210" font-size="16" fill="#5b7168">снимают кадры</text>
<path d="M83 232v35h137v20" stroke="#82958b" fill="none" stroke-width="2" marker-end="url(#arrow)"/>
<text x="235" y="277" font-size="15" fill="#5b7168">USB</text>
<!-- Recorder is the central unit, not a modern integrated dashcam. -->
<rect x="26" y="300" width="388" height="150" rx="10" fill="#17382f"/>
<g fill="none" stroke="#e7efe8" stroke-width="2" stroke-linejoin="round">
<rect x="48" y="344" width="129" height="57" rx="5"/>
<path d="m48 344 15-17h100l14 17M59 357h22v10H59zM90 357h22v10H90zM58 386h75"/>
<circle cx="160" cy="386" r="3" fill="#d9b260" stroke="none"/>
</g>
<text x="202" y="346" font-size="22" fill="#fff" font-weight="700">Блок СВК</text>
<text x="202" y="376" font-size="17" fill="#e0e9e1">привязывает кадры</text>
<text x="202" y="402" font-size="17" fill="#e0e9e1">ко времени</text>
<path d="M220 450v42" stroke="#82958b" fill="none" stroke-width="2" marker-end="url(#arrow)"/>
<text x="235" y="480" font-size="15" fill="#5b7168">сохранение</text>
<!-- Removable storage. -->
<rect x="26" y="505" width="388" height="132" rx="10" fill="#fff" stroke="#c9d4cc"/>
<g fill="none" stroke="#31574a" stroke-width="2" stroke-linejoin="round">
<rect x="76" y="548" width="57" height="55" rx="5"/>
<path d="M88 548v-20h33v20M96 528v11m17-11v11"/>
<circle cx="121" cy="591" r="3" fill="#d9b260" stroke="none"/>
</g>
<text x="174" y="550" font-size="22" font-weight="700">USB FLASH</text>
<text x="174" y="578" font-size="17">хранит кадры</text>
<text x="174" y="604" font-size="16" fill="#5b7168">съёмный накопитель</text>
<path d="M220 637v43" stroke="#82958b" fill="none" stroke-width="2" marker-end="url(#arrow)"/>
<text x="235" y="667" font-size="15" fill="#5b7168">перенос файлов</text>
<!-- Playback workstation. -->
<rect x="26" y="693" width="388" height="125" rx="10" fill="#fff" stroke="#c9d4cc"/>
<g fill="none" stroke="#31574a" stroke-width="2" stroke-linejoin="round">
<rect x="55" y="716" width="98" height="60" rx="4"/>
<path d="M55 765h98M104 777v14M83 792h42"/>
<path d="m67 750 17-15 13 10 14-19 30 28" stroke="#8a9f8b"/>
<path d="m95 733 17 9-17 10Z" fill="#d9b260" stroke="none"/>
</g>
<text x="174" y="736" font-size="21" font-weight="700">Компьютер</text>
<text x="174" y="765" font-size="17">просмотр и копия</text>
<text x="174" y="790" font-size="16" fill="#5b7168">сохранённых файлов</text>
<text x="28" y="849" font-size="15" fill="#5b7168">Схема обмена данными, не схема проводки.</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 42 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 96 KiB

Loaded 100 of 233 files, more files were not shown because too many files have changed in this diff. Show more