From 2676e474a185b54df225463019742d42852cf3fa Mon Sep 17 00:00:00 2001 From: "E.Gavrilov" Date: Mon, 26 Oct 2026 19:43:57 +0300 Subject: [PATCH] Fail closed on incomplete frozen-release source sets and mismatched role attestations --- .beads/issues.jsonl | 2 +- deploy/release-artifact.py | 12 +- scripts/rebuild-v2/check-release-artifact.py | 221 +++++++++++++++++++ 3 files changed, 232 insertions(+), 3 deletions(-) create mode 100644 scripts/rebuild-v2/check-release-artifact.py diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index 9e99db5..42023af 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -8,7 +8,7 @@ {"_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":"R2 same-reviewer verification completed for exactsource4a0d828ef070d305bea57d6a5d16d612fc16a0e2 app72adaeab317c83069c2ca92599940955372768776367da42b26ed0a7d521e822 exportadb919f431cb965359d7297194dbec7115c19dc8f0ddbe8340f303a2f1531603. Opened all7changed actual R2 screenshots plus5nativegallery crops. Rehashed68ss+18appsourcefiles;61R1pixel-identical,182publicassetblobs unchanged, all3SVG/CSS/articleJSON/figuregallerysourceunchanged. No new illustration defect; .6 stays scopedclosed. FinalR2evidence illustrator-final-r2/verdict.json +delta-manifest.json and appended illustrator-candidate.md. Whole-site/corpus acceptance explicitly NOT granted; mandatory unresolved99corpus remains separate.","status":"closed","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-26T15:45:58Z","started_at":"2026-10-26T13:22:20Z","closed_at":"2026-10-26T15:33:30Z","close_reason":"Same illustrator verified exactcandidate integrated diagrams/photos at360/1440, alt/ratios/load and gallery6→30 actualframes. Subject-specific illustration finding resolved; whole-site/corpus acceptance remains blocked separately.","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":"R2 exactsource4a0d828, appSHA72adaeab, exportadb919f. Independent view28R1pixels,7newR2pixels; actual-byte comparison25/28reviewedviewsidentical,3changedreviewedviewsallreopened.14liveHTTPpageschecked. Historical technical-library direction/modelscoping/subjectvisuals/JPEGvsstream journey resolved. Genuine R1home formula ambiguity fixed with explicit full denominator+reserve and actually viewed360/1440+source/liveHTML. Report docs/rebuild-v2/reviews/creative-candidate.md and creative-r1/r2evidence. Close onlycreative-direction veto; overall corpus99+Semrush mandatoryblocks remain open, no site/publication PASS.","status":"closed","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-26T15:39:34Z","started_at":"2026-10-26T13:21:28Z","closed_at":"2026-10-26T15:39:34Z","close_reason":"Same creative reviewer verified exact R2 library direction, meaningful imagery, scoped models/JPEGtool and corrected homepage formula; role-specific veto resolved. Mandatory unresolved corpus/Semrush and overall publication remain blocked separately.","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":"{}"}],"comments":[{"id":"01a17904-98d3-7138-b7f9-88e224c36378","issue_id":"videoreg-7oy.5","author":"E.Gavrilov","text":"New bounded-publication decision (not full-restoration PASS): ALLOW exact reviewed28-material library source4a0d828/app72adae/exportadb919, after independent18/18active-sourcehash match and live point-of-use body/link checks on home/library/about/documents/demo/samples/GPS/catalog/manuals/journal/tool plus3real404 paths. Actual doc actions checked PDF200; no fabricated lost-software/AVI/ZIP offer or full-history/current-sale guarantee found. New report docs/rebuild-v2/reviews/creative-limited-release.md; evidence creative-limited-release/point-of-use.json. Prior full visual review remains only hash-proven unchanged evidence. Full .1/.4/.7/.8 recovery and .10 runtime/TLS blocks remain mandatory; other role decisions and real pending conditions not waived.","created_at":"2026-10-26T16:21:47Z"}],"dependency_count":0,"dependent_count":0,"comment_count":1} {"_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":"Exact independent review source d0fd706, app manifest bd8027c94de4dd943fcbd5f42dd2f907746b2ac63d3d9174401859180b3aff24 and export4c1c42a4465165e33e947fdf595804d63d4735aefb5f6aba2f419118d143d1dd matched owner. Complete checker now implemented and independently repeated:35HTML33content130HTTP1116refs168raster15external occurrences,0technicalerrors,all28typedarticlesexported.238inventoryitems still99unresolved: restoration remains mandatoryBLOCKED; not relabelled follow-up. Exactreport docs/rebuild-v2/reviews/programmer-candidate.md and independent evidence programmer-built-crawl.json. No final V2PASS.\nR2 same-reviewer delta audit: actualdiff d0fd706..4a0d828 read; formula includesreserve+cams, fullbodysearch includescode+linklabels. Independent R2crawl exactappSHA72adaeab... andexportadb919f4... matched:35HTML130HTTP1116refs168rasters0errors99unresolved. See programmer-candidate.md R2appendix and programmer-built-crawl-r2.json. .4 remainsBLOCKED mandatorycorpus; noV2PASS.\nOfflineCI tooling implemented and locally verified: vendored36purePythonfiles withupstreamlicenses/SHAmanifest; Python-S/noPillow Sharp0.34.5 fullraw168rasters andpositive+corruptfixture pass; defaultPillow full168crosscheck pass;35HTML131HTTP0technicalerrors. sourceCommit derivedactualhealth4a0d828, repositoryHead separate44c5797, builtGit appmanifest==current72adae..., exportadb919... unchanged. Inventory258/119unresolved remainsBLOCKED. programmer-candidate.md offlineCIappendix and programmer-offline-deps.json. ActualGitearunnerrerun stillrequired; nofakeCIpass.\nNEW programmer limited-release boundary decision: ALLOW exactreviewedR2source4a0d828/app72adae/exportadb919 useful33routes; nofullrecoveryPASS. Actualunknown138/topic196/malformed/account andmissingGPSZIP/AVI404; all9PDFZIPexactbytes/ZIPCRCcleanPDFonly. See programmer-limited-release.md and programmer-limited-release.json. Content.13andruntime.10 stillpending; R3notimplicitlycovered. Preferredconcretepipeline frozenreviewedexporttar+strictmanifest inGit, existingGitea nativeamd64 image withbasehtmlcleanup+exactimagepublictree+sameDigestSwarm; oldARMimage andCIexportfd1notinterchangeable. Fullcorpus119unresolved .1/.4/.7/.8remainmandatoryOPEN/BLOCKED.","status":"blocked","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-26T16:28:51Z","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.\nFresh V2 candidate designer audit: docs/rebuild-v2/reviews/designer-candidate.md. Exact source d0fd7068bbdf6f810f3ff39c649a0464177a8642, source manifest bd8027c94de4dd943fcbd5f42dd2f907746b2ac63d3d9174401859180b3aff24, export4c1c42a4465165e33e947fdf595804d63d4735aefb5f6aba2f419118d143d1dd. Actually opened36 pixels:30 candidate images of15 distinct routes at360/1440 plus6 independent search/table/gallery states. Read CSS, actual article/table/code/gallery/search source. Independently tested GPS15/zero0/reset28 both widths, skip focus/target, keyboard table scroll0to40 and gallery6to30. Concrete layout/findability/404/process-copy veto resolved. Scope explicitly excludes whole-site PASS:99 corpus entries unresolved; .8/.1/.7 and production parity remain mandatory blockers, not optional follow-up.\nR2 same-role designer delta re-review appended to designer-candidate.md. Exactsource4a0d828ef070d305bea57d6a5d16d612fc16a0e2 appSHA72adaeab317c83069c2ca92599940955372768776367da42b26ed0a7d521e822 exportadb919f431cb965359d7297194dbec7115c19dc8f0ddbe8340f303a2f1531603. Opened all7 changed R2 pixels: home360/1440, stx/evening/day/rain/roundabout360. Formula with reserve and camera count readable both widths, galleries fit. Actual2-file diff read, allsource/screenshot hashes match; R2 functional report15pass reviewed as owner evidence. No material design regression; scoped issue remains closed;99 unresolved recovery entries still block whole-site V2.\nOriginal veto author /root/v2_designer independently completed R2 same-reviewer verification; docs/rebuild-v2/reviews/designer-original-reviewer-final.md. Exact source4a0d828ef070d305bea57d6a5d16d612fc16a0e2 sourceManifest72adaeab317c83069c2ca92599940955372768776367da42b26ed0a7d521e822 exportadb919f431cb965359d7297194dbec7115c19dc8f0ddbe8340f303a2f1531603. Actually opened30 R2 full-page screenshots15URLs×360/1440 plus5 independently captured search/empty/table-right images; verified18 source files and68 screenshot hashes, independently recomputed both manifest hashes. Own live checks: GPS15/empty0/reset28 both widths, keyboard reset, focused table ArrowRight scroll, code322px/body360, gallery30, skip-link, true Russian404. All four original concrete design findings resolved for recovered subset, .3 may remain scoped closed. Whole-site restoration remains BLOCKED by99 unresolved inventory entries and mandatory Semrush/content/runtime gates; no broadPASS or deployment performed.\nNew bounded publication decision by original /root/v2_designer: docs/rebuild-v2/reviews/designer-limited-release.md. BLOCK exact R2 only until point-of-use clarity fixes: partial gallery available/original counts before grid, GPS4 images not full corruptZIP, explicit absent EXE/USB.BIN and originalAVI paths, short selected-library boundary About. Actual R2 HTML and4 additional mobile screenshots inspected; prior own35pixel/live exact-R2 design checks remain applicable to unchanged layouts. No extra independent layout defect or missing-history-only perpetual stop. .3 original design findings remain scoped resolved; whole restoration .1/.4/.7/.8 and production.10 mandatory open. Await exact R3 rendered disclosures before boundedALLOW; in-flight source drafts not accepted instead of render.","status":"closed","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-26T16:27:20Z","started_at":"2026-10-26T13:16:54Z","closed_at":"2026-10-26T15:32:34Z","close_reason":"Scoped V2 design criteria resolved on exact d0fd706 candidate after independent36-image review and live search/table/keyboard/gallery checks. Whole-site V2 remains blocked by99 unresolved recovery entries and mandatory content/runtime gates.","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.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.\nFresh V2 candidate designer audit: docs/rebuild-v2/reviews/designer-candidate.md. Exact source d0fd7068bbdf6f810f3ff39c649a0464177a8642, source manifest bd8027c94de4dd943fcbd5f42dd2f907746b2ac63d3d9174401859180b3aff24, export4c1c42a4465165e33e947fdf595804d63d4735aefb5f6aba2f419118d143d1dd. Actually opened36 pixels:30 candidate images of15 distinct routes at360/1440 plus6 independent search/table/gallery states. Read CSS, actual article/table/code/gallery/search source. Independently tested GPS15/zero0/reset28 both widths, skip focus/target, keyboard table scroll0to40 and gallery6to30. Concrete layout/findability/404/process-copy veto resolved. Scope explicitly excludes whole-site PASS:99 corpus entries unresolved; .8/.1/.7 and production parity remain mandatory blockers, not optional follow-up.\nR2 same-role designer delta re-review appended to designer-candidate.md. Exactsource4a0d828ef070d305bea57d6a5d16d612fc16a0e2 appSHA72adaeab317c83069c2ca92599940955372768776367da42b26ed0a7d521e822 exportadb919f431cb965359d7297194dbec7115c19dc8f0ddbe8340f303a2f1531603. Opened all7 changed R2 pixels: home360/1440, stx/evening/day/rain/roundabout360. Formula with reserve and camera count readable both widths, galleries fit. Actual2-file diff read, allsource/screenshot hashes match; R2 functional report15pass reviewed as owner evidence. No material design regression; scoped issue remains closed;99 unresolved recovery entries still block whole-site V2.\nOriginal veto author /root/v2_designer independently completed R2 same-reviewer verification; docs/rebuild-v2/reviews/designer-original-reviewer-final.md. Exact source4a0d828ef070d305bea57d6a5d16d612fc16a0e2 sourceManifest72adaeab317c83069c2ca92599940955372768776367da42b26ed0a7d521e822 exportadb919f431cb965359d7297194dbec7115c19dc8f0ddbe8340f303a2f1531603. Actually opened30 R2 full-page screenshots15URLs×360/1440 plus5 independently captured search/empty/table-right images; verified18 source files and68 screenshot hashes, independently recomputed both manifest hashes. Own live checks: GPS15/empty0/reset28 both widths, keyboard reset, focused table ArrowRight scroll, code322px/body360, gallery30, skip-link, true Russian404. All four original concrete design findings resolved for recovered subset, .3 may remain scoped closed. Whole-site restoration remains BLOCKED by99 unresolved inventory entries and mandatory Semrush/content/runtime gates; no broadPASS or deployment performed.\nNew bounded publication decision by original /root/v2_designer: docs/rebuild-v2/reviews/designer-limited-release.md. BLOCK exact R2 only until point-of-use clarity fixes: partial gallery available/original counts before grid, GPS4 images not full corruptZIP, explicit absent EXE/USB.BIN and originalAVI paths, short selected-library boundary About. Actual R2 HTML and4 additional mobile screenshots inspected; prior own35pixel/live exact-R2 design checks remain applicable to unchanged layouts. No extra independent layout defect or missing-history-only perpetual stop. .3 original design findings remain scoped resolved; whole restoration .1/.4/.7/.8 and production.10 mandatory open. Await exact R3 rendered disclosures before boundedALLOW; in-flight source drafts not accepted instead of render.\n\nOriginal designer /root/v2_designer independently verified R3 selected-library boundary: ALLOW_LIMITED_PUBLICATION. Source 78274fbe09c0fd7d0b8d94830db1f31fa76b1db9, export 4d998c25dd09d5b6d08e011e235fb7212568dcc60dd37da24a3194655de02e01. Opened 24 actual 360/1440 screenshots; five partial counts/no-continuity, GPS corrupt ZIP, unavailable EXE/USB.BIN/AVI and About scope readable at point of use. Independently verified manifests/68 screenshot hashes and 63 local links. docs/rebuild-v2/reviews/designer-limited-release.md and limited-approvals/designer.json. fullHistoricalRestorationAccepted=false; 119 unresolved/Semrush/full .1/.4/.7/.8 and production .10 not accepted.","status":"closed","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-26T16:42:00Z","started_at":"2026-10-26T13:16:54Z","closed_at":"2026-10-26T15:32:34Z","close_reason":"Scoped V2 design criteria resolved on exact d0fd706 candidate after independent36-image review and live search/table/keyboard/gallery checks. Whole-site V2 remains blocked by99 unresolved recovery entries and mandatory content/runtime gates.","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":"closed","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-26T15:25:45Z","started_at":"2026-10-26T13:16:38Z","closed_at":"2026-10-26T15:25:45Z","close_reason":"Exact-candidate review d0fd706: inspected final resolve_public selected-file containment, safe temporary-fixture check-preview2/2 independently passed (ordinary path/root, raw+encoded dot segments and direct/extensionless outside symlink fixture). Normal live HTTP full crawl130 checks passed, HEAD200/API GET+POST404/unknown404. Candidate export containment scan rejected no outside-root files. Initial disclosure fixed for reviewed candidate; full V2 acceptance remains blocked by .4 corpus99 unresolved.","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} diff --git a/deploy/release-artifact.py b/deploy/release-artifact.py index 741caae..14cc137 100644 --- a/deploy/release-artifact.py +++ b/deploy/release-artifact.py @@ -28,7 +28,12 @@ def checked_manifest(path,approvals): for field in ['sourceCommit','appSourceManifestSha256','exportManifestSha256','archiveSha256']: require(bool(re.fullmatch('[0-9a-f]{'+('40' if field=='sourceCommit' else '64')+'}',m.get(field,''))),'Invalid '+field) require(hash_manifest(m['files'])==m['exportManifestSha256'],'Export manifest mismatch') - require(hash_manifest(m['appSourceFiles'])==m['appSourceManifestSha256'],'App manifest mismatch') + app_rows=m.get('appSourceFiles',[]) + require(isinstance(app_rows,list) and app_rows and len({r['path'] for r in app_rows})==len(app_rows),'Nonempty unique app source set required') + deploy_rows=m.get('deploymentFiles',[]) + require(isinstance(deploy_rows,list) and len(deploy_rows)==len(DEPLOY_FILES) and {r['path'] for r in deploy_rows}==set(DEPLOY_FILES),'Exact unique deployment source set required') + require(bool(re.fullmatch('[0-9a-f]{40}',m.get('deploymentSourceCommit',m['sourceCommit']))),'Invalid deployment revision') + require(hash_manifest(app_rows)==m['appSourceManifestSha256'],'App manifest mismatch') for field in ['appSourceFiles','deploymentFiles']: for row in m[field]: f=rooted(row['path']);require(f.is_file() and sha(f.read_bytes())==row['sha256'],'Working source changed: '+row['path']) @@ -40,7 +45,10 @@ def checked_manifest(path,approvals): found=set();agents=set() for ref in m.get('roleApprovals',[]): f=rooted(ref['path']);require(sha(f.read_bytes())==ref['sha256'],'Changed role approval');a=json.loads(f.read_text());role=a.get('role') - require(role in ROLES and role not in found,'Missing/duplicate/unknown role');found.add(role);agents.add(a.get('agent')) + require(role in ROLES and role not in found,'Missing/duplicate/unknown role');found.add(role) + agent=a.get('agent');require(isinstance(agent,str) and bool(agent.strip()),'Actual nonempty agent required');agents.add(agent) + role_sources=[a[k] for k in ['sourceManifestSha256','appSourceManifestSha256'] if k in a] + require(role_sources and all(v==m['appSourceManifestSha256'] for v in role_sources),'Role app source manifest mismatch') require(a.get('decision')=='ALLOW_LIMITED_PUBLICATION' and a.get('fullHistoricalRestorationAccepted') is False,'Role veto or wrong scope: '+str(role)) require(a.get('candidateSourceCommit')==m['sourceCommit'] and a.get('exportManifestSha256')==m['exportManifestSha256'],'Role reviewed another artifact') report=rooted(a['reportPath']);require(sha(report.read_bytes())==a['reportSha256'],'Changed role report') diff --git a/scripts/rebuild-v2/check-release-artifact.py b/scripts/rebuild-v2/check-release-artifact.py new file mode 100644 index 0000000..fdadb60 --- /dev/null +++ b/scripts/rebuild-v2/check-release-artifact.py @@ -0,0 +1,221 @@ +"""Review the nondeploying release verifier using only temporary fixtures. + +Git source reads are stubbed with fixture blobs. No Git, Docker, registry, +production or real export mutation occurs. Failing negative tests identify a +verifier gap; they do not authorize bypassing an approval gate. +""" +from pathlib import Path +from types import SimpleNamespace +from unittest.mock import patch +import copy +import hashlib +import importlib.util +import io +import json +import tarfile +import tempfile +import unittest + +spec = importlib.util.spec_from_file_location('release_artifact_subject', Path(__file__).resolve().parents[2] / 'deploy/release-artifact.py') +subject = importlib.util.module_from_spec(spec) +spec.loader.exec_module(subject) + + +class ReleaseVerifier(unittest.TestCase): + def setUp(self): + self.directory = tempfile.TemporaryDirectory(prefix='videoreg-release-review-fixture-') + self.root = Path(self.directory.name) + self.root_patch = patch.object(subject, 'ROOT', self.root) + self.root_patch.start() + self.source_revision = '1' * 40 + self.delivery_revision = '2' * 40 + self.blobs = {} + self.app_rows = [] + app_path = 'web-front/src/app/page.tsx' + self.write(app_path, b'fixture source') + self.blobs[(self.source_revision, app_path)] = b'fixture source' + self.app_rows.append(dict(path=app_path, sha256=subject.sha(b'fixture source'))) + self.deploy_rows = [] + for path in subject.DEPLOY_FILES: + body = ('fixture deployment ' + path).encode() + self.write(path, body) + self.blobs[(self.delivery_revision, path)] = body + self.deploy_rows.append(dict(path=path, sha256=subject.sha(body))) + self.git_patch = patch.object(subject.subprocess, 'run', self.git_read) + self.git_patch.start() + self.payload = {'index.html': b'
reviewed fixture
', 'nested/a.txt': b'nested fixture'} + self.rows = [dict(path=path, sha256=subject.sha(data), bytes=len(data)) for path, data in sorted(self.payload.items(), key=lambda item: Path(item[0]))] + self.manifest = dict(schemaVersion=1, scope='reviewed-corpus-only', historicalRestorationComplete=False, + publicationDecision='ALLOW_LIMITED_PUBLICATION', sourceCommit=self.source_revision, + appSourceManifestSha256=subject.hash_manifest(self.app_rows), appSourceFiles=self.app_rows, + deploymentSourceCommit=self.delivery_revision, deploymentFiles=self.deploy_rows, + exportManifestSha256=subject.hash_manifest(self.rows), files=self.rows, + archivePath='release/export.tar', archiveSha256='', roleApprovals=[]) + self.write('release/export.tar', self.archive_bytes()) + self.manifest['archiveSha256'] = subject.sha((self.root / 'release/export.tar').read_bytes()) + for role in sorted(subject.ROLES): + report_path = 'reviews/' + role + '.md' + self.write(report_path, ('fixture report: ' + role).encode()) + approval = dict(role=role, agent='/fixture/' + role, decision='ALLOW_LIMITED_PUBLICATION', + fullHistoricalRestorationAccepted=False, candidateSourceCommit=self.source_revision, + appSourceManifestSha256=self.manifest['appSourceManifestSha256'], + exportManifestSha256=self.manifest['exportManifestSha256'], + reportPath=report_path, reportSha256=subject.sha((self.root/report_path).read_bytes())) + path = 'approvals/' + role + '.json' + self.write(path, json.dumps(approval).encode()) + self.manifest['roleApprovals'].append(dict(path=path, sha256=subject.sha((self.root/path).read_bytes()))) + self.save() + + def tearDown(self): + self.git_patch.stop() + self.root_patch.stop() + self.directory.cleanup() + + def write(self, relative, data): + path = self.root / relative + path.parent.mkdir(parents=True, exist_ok=True) + path.write_bytes(data) + + def git_read(self, args, **kwargs): + assert args[:2] == ['git', 'show'], args + revision, path = args[2].split(':', 1) + body = self.blobs.get((revision, path)) + return SimpleNamespace(returncode=0 if body is not None else 1, stdout=body or b'', stderr=b'fixture git source unavailable' if body is None else b'') + + def save(self): + self.write('release/manifest.json', json.dumps(self.manifest).encode()) + + def edit_approval(self, index, **changes): + ref = self.manifest['roleApprovals'][index] + path = self.root / ref['path'] + approval = json.loads(path.read_text()) + approval.update(changes) + path.write_text(json.dumps(approval)) + ref['sha256'] = subject.sha(path.read_bytes()) + self.save() + + def checked(self, approvals=True): + self.save() + return subject.checked_manifest('release/manifest.json', approvals) + + def archive_bytes(self, members=None): + data = io.BytesIO() + with tarfile.open(fileobj=data, mode='w') as archive: + for name, body, kind in members or [(path, value, tarfile.REGTYPE) for path, value in self.payload.items()]: + info = tarfile.TarInfo(name) + info.type = kind + if kind == tarfile.REGTYPE: + info.size = len(body) + archive.addfile(info, io.BytesIO(body)) + else: + if kind in (tarfile.SYMTYPE, tarfile.LNKTYPE): + info.linkname = '../fixture-outside' + archive.addfile(info) + return data.getvalue() + + def tar(self, data, expected=None, extract=None): + return subject.tar_rows(io.BytesIO(data), expected or {row['path']: row for row in self.rows}, extract) + + def test_valid_five_roles_and_separate_delivery_revision(self): + self.assertEqual(self.checked()['deploymentSourceCommit'], self.delivery_revision) + + def test_pending_five_decisions_rejected_for_publication(self): + self.manifest['publicationDecision'] = 'PENDING_FIVE_SCOPED_DECISIONS' + with self.assertRaises(ValueError): self.checked() + + def test_prepare_only_does_not_invent_publication_approval(self): + self.manifest['publicationDecision'] = 'PENDING_FIVE_SCOPED_DECISIONS' + self.manifest['roleApprovals'] = [] + self.assertEqual(self.checked(False)['publicationDecision'], 'PENDING_FIVE_SCOPED_DECISIONS') + + def test_missing_role_rejected(self): + self.manifest['roleApprovals'].pop() + with self.assertRaises(ValueError): self.checked() + + def test_duplicate_agent_rejected(self): + self.edit_approval(0, agent='/fixture/shared') + self.edit_approval(1, agent='/fixture/shared') + with self.assertRaises(ValueError): self.checked() + + def test_empty_agent_rejected(self): + self.edit_approval(0, agent='') + with self.assertRaises(ValueError): self.checked() + + def test_veto_rejected(self): + self.edit_approval(0, decision='BLOCK') + with self.assertRaises(ValueError): self.checked() + + def test_full_history_claim_rejected(self): + self.edit_approval(0, fullHistoricalRestorationAccepted=True) + with self.assertRaises(ValueError): self.checked() + + def test_wrong_candidate_revision_rejected(self): + self.edit_approval(0, candidateSourceCommit='3'*40) + with self.assertRaises(ValueError): self.checked() + + def test_wrong_candidate_export_rejected(self): + self.edit_approval(0, exportManifestSha256='3'*64) + with self.assertRaises(ValueError): self.checked() + + def test_wrong_candidate_app_manifest_rejected(self): + self.edit_approval(0, appSourceManifestSha256='3'*64) + with self.assertRaises(ValueError): self.checked() + + def test_changed_report_rejected(self): + self.write('reviews/designer.md', b'changed fixture report') + with self.assertRaises(ValueError): self.checked() + + def test_changed_working_source_rejected(self): + self.write(self.app_rows[0]['path'], b'changed fixture source') + with self.assertRaises(ValueError): self.checked() + + def test_empty_app_source_set_rejected(self): + self.manifest['appSourceFiles'] = [] + self.manifest['appSourceManifestSha256'] = subject.hash_manifest([]) + with self.assertRaises(ValueError): self.checked() + + def test_empty_deployment_set_rejected(self): + self.manifest['deploymentFiles'] = [] + with self.assertRaises(ValueError): self.checked() + + def test_omitted_deployment_file_rejected(self): + self.manifest['deploymentFiles'].pop() + with self.assertRaises(ValueError): self.checked() + + def test_duplicate_deployment_file_rejected(self): + self.manifest['deploymentFiles'].append(copy.deepcopy(self.manifest['deploymentFiles'][0])) + with self.assertRaises(ValueError): self.checked() + + def test_valid_extract_into_fresh_temporary_directory(self): + output = self.root / 'fixture-extraction' + output.mkdir() + self.assertEqual(self.tar(self.archive_bytes(), extract=output), self.rows) + self.assertEqual((output/'index.html').read_bytes(), self.payload['index.html']) + + def test_changed_archive_file_rejected(self): + members = [('index.html', b'changed', tarfile.REGTYPE), ('nested/a.txt', self.payload['nested/a.txt'], tarfile.REGTYPE)] + with self.assertRaises(ValueError): self.tar(self.archive_bytes(members)) + + def test_missing_archive_file_rejected(self): + with self.assertRaises(ValueError): self.tar(self.archive_bytes([('index.html', self.payload['index.html'], tarfile.REGTYPE)])) + + def test_unexpected_archive_file_rejected(self): + with self.assertRaises(ValueError): self.tar(self.archive_bytes([('extra.txt', b'fixture', tarfile.REGTYPE)])) + + def test_duplicate_archive_file_rejected(self): + members = [('index.html', self.payload['index.html'], tarfile.REGTYPE)]*2 + with self.assertRaises(ValueError): self.tar(self.archive_bytes(members)) + + def test_unsafe_tar_member_types_and_names_rejected(self): + for name, kind in [('../fixture.txt', tarfile.REGTYPE), ('/fixture.txt', tarfile.REGTYPE), ('fixture-link', tarfile.SYMTYPE), ('fixture-hardlink', tarfile.LNKTYPE), ('fixture-pipe', tarfile.FIFOTYPE)]: + with self.subTest(name=name, kind=kind): + with self.assertRaises(ValueError): self.tar(self.archive_bytes([(name, b'fixture', kind)])) + + def test_oversized_archive_member_rejected_before_read(self): + info = tarfile.TarInfo('big.bin'); info.size = 26*1024*1024 + stream = info.tobuf() + b'\0'*1024 + with self.assertRaises(ValueError): self.tar(stream, {'big.bin':dict(path='big.bin',bytes=info.size,sha256=subject.sha(b''))}) + + +if __name__ == '__main__': + unittest.main(verbosity=2)