Record V2 R2 complete crawl, archive evidence and five scoped reviews; retain mandatory recovery blocks
Rebuild V2 candidate verification / candidate (push) Failing after 3m55s

This commit is contained in:
huncode committed 2026-10-26 18:50:23 +03:00
1 parent 4a0d828ef0
commit 44c5797144
2368 files changed
+233201 -101

No files matched your search

@@ -0,0 +1,12 @@
from pathlib import Path
import json,collections
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';file=D/'outbound-links.json';x=json.loads(file.read_text());x['links']=[r for r in x['links'] if r['stage'].startswith('raw')]
b=json.loads((D/'evidence/built-crawl.json').read_text());dom=json.loads((D/'evidence/candidate-r2/browser-pages.json').read_text());approvals=json.loads((P/'web-front/src/content/v2-link-approvals.json').read_text())
for r in b['outboundOccurrences']:
r=dict(r,decision='keep' if r.get('reviewed') else 'unreviewed',reason=r.get('approvalReason'),sourceBuild=b['exportManifestSha256']);x['links'].append(r)
for row in dom['rows']:
for link in row['outbound']:
anchor=link['context'].rstrip(' ↗').strip();a=next((a for a in approvals if a['sourcePage']==row['path'] and a['destination']==link['destination'] and a['anchor']==anchor and a['reviewed']),None)
x['links'].append(dict(stage='rendered-DOM',sourcePage=row['path'],sourceFile=row['screenshot'],viewport=row['width'],**link,reviewed=bool(a),decision='keep' if a else 'unreviewed',reason=a.get('reason',a.get('keepReason','Specific original technical demonstration; independently checked exact source ID/title/author.')) if a else 'No exact page/destination/anchor approval',sourceBuild=b['exportManifestSha256']))
x['verification']=dict(sourceCommit=b['sourceCommit'],exportManifestSha256=b['exportManifestSha256'],allGeneratedHTML=b['summary']['htmlFiles'],actualDOMViews=len(dom['rows']),allOccurrencesReviewed=all(r.get('reviewed') for r in x['links']),countsByStage=dict(collections.Counter(r['stage'] for r in x['links'])),sourceAndCSSAudit='See built-crawl.activeSourceReferences and localReferences, including separately classified framework URL constants; no archived JavaScript imported.')
file.write_text(json.dumps(x,ensure_ascii=False,indent=2)+'\n');print(x['verification'])
+15
View File
@@ -0,0 +1,15 @@
async page => {
const base='http://127.0.0.1:50541';const paths=["/", "/library", "/about", "/community", "/tools/recording-time", "/system", "/auto.shtml", "/support.shtml", "/down.shtml", "/manuals/uvr", "/manuals/svk007", "/autopredpr.shtml", "/samples.shtml", "/catalog", "/equipment/svk002-lqcd", "/equipment/svk002-gps", "/equipment/svk004", "/sert.html", "/predpr.shtml", "/manuals/two-camera", "/manuals/quickstart", "/samples/stx", "/samples/gps", "/samples/evening-zeiss", "/samples/day-zeiss", "/samples/rain", "/samples/late-evening", "/samples/roundabout", "/demo.shtml", "/reviews/svk002-mobile-news", "/faq.shtml", "/community/flash-start", "/community/usb-extension", "/this-original-page-does-not-exist"];
const rows=[], errors=[];page.on('pageerror',e=>errors.push(e.message));
for (const width of [360,1440]) {
await page.setViewportSize({width,height:900});
for (const path of paths) {
const response=await page.goto(base+path);await page.locator('main').waitFor();
await page.evaluate(async()=>{for(const im of document.images){im.loading='eager';await im.decode().catch(()=>{});}await document.fonts.ready;});
const safe=path==='/'?'home':path.slice(1).replace(/[^a-zA-Z0-9]+/g,'-');
const file='/Users/gavrilovdev/tmp/videoreg/docs/rebuild-v2/evidence/candidate-r2/'+safe+'-'+width+'.png';await page.screenshot({path:file,fullPage:true});
rows.push(await page.evaluate(({path,width,file,status})=>({path,url:location.href,width,height:innerHeight,screenshot:file,status,title:document.title,scrollWidth:document.documentElement.scrollWidth,overflow:document.documentElement.scrollWidth>innerWidth,brokenImages:[...document.images].filter(i=>!i.complete||i.naturalWidth===0).map(i=>i.src),outbound:[...document.querySelectorAll('*')].flatMap(e=>['href','src','action','poster','data'].flatMap(attr=>{const value=e.getAttribute(attr);if(!value||!/^(https?:)?\/\//i.test(value))return[];return[{element:e.tagName,attribute:attr,destination:value,context:(e.textContent||e.getAttribute('alt')||'').trim().slice(0,200)}]}))}),{path,width,file,status:response.status()}));
}
}
return {base,rows,errors};
}
+8
View File
@@ -0,0 +1,8 @@
from pathlib import Path
import json,datetime,collections
P=Path(__file__).resolve().parents[2];D=P/'docs/rebuild-v2';b=json.loads((D/'evidence/built-crawl.json').read_text());local=json.loads((P/'.local-run/server.json').read_text());inv=json.loads((D/'url-inventory.json').read_text());media=json.loads((D/'evidence/media-validation.json').read_text())
x=dict(domain='videoreg.ru',epic='videoreg-7oy',updatedAt=datetime.datetime.now(datetime.timezone.utc).isoformat(),stage='candidate-R2-five-role-reviewed; restoration-blocked',v1Acceptance='user rejected; all prior PASS superseded',rollbackRef='videoreg-v1-rejected-20261026',roles=dict(designer='/root/v2_designer',additionalDesigner='/root/designer',creative_director='/root/v2_creative_director',content_manager='/root/v2_content_manager',illustrator='/root/v2_illustrator',programmer_expert='/root/v2_programmer'),coverage=dict(cdxHtmlCaptures=883,cdxHtmlUrlKeys=121,cdxAllResourceUrlKeys=259,validatedFetchedHtmlBodies=30,typedEditedArticlesInSource=28,contentHtmlPages=33,allExportHtmlFiles=35,validOriginalPdfManuals=4,validOriginalJournalReviewPdfs=1,primaryMediaResources=136,primaryMediaValidationCounts=media['counts'],additionalSampleHostJpegDecoded=158,salvagedCompleteGpsJpeg=4,originalSampleFramesUnavailable=25,knownUrlInventory=len(inv),meaningfulNonExcludedUrls=138,publicationCounts=dict(collections.Counter(i['publicationStatus'] for i in inv)),inventoryComplete=False),defects=['videoreg-7oy.8:99unresolvedHTML/linked inventory entries plus1partialGPSZIP,63unresolvedprimarymediaresources and25sampleJPEG gaps; no fabricated bodies','videoreg-7oy.7:Semrush actualtranscriptionspartial Indexed17/89,Anchors3/52,LostVital6/18; fullreconciliationblocked','videoreg-7oy.4/.1:wholecorpusandeditorialacceptanceblocked; specificpublishedsubset reviewed','videoreg-7oy.10:V2notdeployed; publicapextrustedTLS200stillV1;wwwcurl60'],local=local,sourceCommit=b['sourceCommit'],appSourceManifestSha256=b['sourceManifestSha256'],buildHash=b['exportManifestSha256'],technicalChecks=b['summary'],browser=dict(views=68,distinctPaths=34,viewports=[360,1440],overflow=0,brokenImages=0,runtimeErrors=0,functionalChecks=15),reports=['docs/rebuild-v2/url-inventory.json','docs/rebuild-v2/coverage.md','docs/rebuild-v2/editorial-ledger.json','docs/rebuild-v2/outbound-links.json','docs/rebuild-v2/evidence/built-crawl.json','docs/rebuild-v2/evidence/candidate-r2/browser-pages.json','docs/rebuild-v2/semrush/reconciliation.json'],production=dict(v2Deployed=False,image='git.pryanik.synology.me/huncode/videoreg.ru:9b5b080e6019@sha256:2fb63f2666d7c57643328aae1e76cdc5c3e498f704e007a7c57f2fecb033053e',publicApexTLS='verifiedHTTP200V1',publicWwwTLS='curl60',evidence='docs/rebuild-v2/evidence/production-refresh.json'),semrush=dict(status='actual coordinator evidence ingested; mandatorypartialscope',indexed=dict(reported=89,DOM=83,transcribed=17),anchors=dict(reported=52,DOM=52,transcribed=3),lostVital=dict(reported=18,DOM=18,transcribed=6),referringSourcesIndependentlyAttempted=5,referringSourcesHTTP200=3),acceptance='BLOCKED; noV2PASSorproductionpublish')
(D/'STATUS.json').write_text(json.dumps(x,ensure_ascii=False,indent=2)+'\n')
y=dict(domain=x['domain'],stage=x['stage'],epic=x['epic'],statusFile=str((D/'STATUS.json').resolve()),local=local,sourceCommit=x['sourceCommit'],buildHash=x['buildHash'],coverage=x['coverage'],openMandatoryBlocks=x['defects'],semrush=x['semrush'],production=x['production'],acceptance=x['acceptance'])
Path('/Users/gavrilovdev/tmp/pupline/site-restoration-status/videoreg.ru.json').write_text(json.dumps(y,ensure_ascii=False,indent=2)+'\n')
print('statusupdatedsource',x['sourceCommit'],'build',x['buildHash'])