Prepare V2 corpus, editorial journal and reproducible publication boundary

This commit is contained in:
huncode committed 2026-10-26 17:46:00 +03:00
1 parent 7b3f49788d
commit 69607c52fd
498 files changed
+97671 -468

No files matched your search

+7
View File
@@ -10,3 +10,10 @@
{"id":"int-5fb84fb2","kind":"field_change","created_at":"2026-10-26T11:29:59.880269Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore.5","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Programmer expert accepted immutable OCI revision, zz healthy, public/local and browser evidence"}} {"id":"int-5fb84fb2","kind":"field_change","created_at":"2026-10-26T11:29:59.880269Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore.5","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Programmer expert accepted immutable OCI revision, zz healthy, public/local and browser evidence"}}
{"id":"int-470fe0aa","kind":"field_change","created_at":"2026-10-26T11:30:45.06767Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"All five mandatory review children accepted and deployment verified. Optional image expansion is linked as discovered-from, outside accepted restoration scope."}} {"id":"int-470fe0aa","kind":"field_change","created_at":"2026-10-26T11:30:45.06767Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"All five mandatory review children accepted and deployment verified. Optional image expansion is linked as discovered-from, outside accepted restoration scope."}}
{"id":"int-b06597d6","kind":"field_change","created_at":"2026-10-26T11:31:21.504061Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore.6","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Optional scope transferred to independently linked follow-up webprogcode-images"}} {"id":"int-b06597d6","kind":"field_change","created_at":"2026-10-26T11:31:21.504061Z","actor":"E.Gavrilov","issue_id":"webprogcode-restore.6","extra":{"field":"status","new_value":"closed","old_value":"open","reason":"Optional scope transferred to independently linked follow-up webprogcode-images"}}
{"id":"int-2b80ea20","kind":"field_change","created_at":"2026-10-26T13:12:09.115764Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-8a0600d6","kind":"field_change","created_at":"2026-10-26T13:17:20.863048Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.1","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-9f0fec44","kind":"field_change","created_at":"2026-10-26T13:17:22.392451Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.2","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-3aa90d10","kind":"field_change","created_at":"2026-10-26T13:17:23.892345Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.3","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-586fd6e6","kind":"field_change","created_at":"2026-10-26T13:17:25.476062Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.4","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-e95b8bc4","kind":"field_change","created_at":"2026-10-26T13:17:26.932173Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.5","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
{"id":"int-46cfd828","kind":"field_change","created_at":"2026-10-26T14:28:52.609506Z","actor":"E.Gavrilov","issue_id":"webprogcode-v2.6","extra":{"field":"status","new_value":"in_progress","old_value":"open"}}
+7
View File
@@ -1,3 +1,10 @@
{"_type":"issue","id":"webprogcode-v2.6","title":"Reconcile Semrush backlink recovery leads from shared Noxtools session","description":"Mandatory new user recovery source. Coordinator sequentially uses shared in-app Noxtools/Semrush session; this domain must reconcile actual target URLs/anchors/referrers with inventory and verify fresh leads. Do not infer bodies from anchors or claim uninspected results.","acceptance_criteria":"Actual coordinator findings inspected; all meaningful new URLs recovered or concretely unresolved; inventory/coverage/editorial ledger updated with no fabricated results","notes":"Actual coordinator IndexedPages report174 total,100 firstpage observed,11 exact dated target hrefs supplied. All11 match recovered full-body inventory. No new page inferred. Full firstpage evidence and remaining74 rows pending; not complete.\nCoordinator actually inspected Lost and Vital on Server3:9 root-only targets from aged-domain/Pinterest/SiteToSocial promotions; no deep article lead in that narrow filter.13 exact IndexedPages targets shared now, all match inventory. Full scope still partial.","status":"in_progress","priority":1,"issue_type":"task","assignee":"content_manager","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:48:09Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T14:39:32Z","started_at":"2026-10-26T14:28:53Z","dependencies":[{"issue_id":"webprogcode-v2.6","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:48:08Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2.5","title":"Semantic media and useful original visual explanations missing","description":"V1 acceptance superseded. Real V2 initial findings are recorded in docs/rebuild-v2/reviews.","design":"Chosen compromise: preserve immutable sources; rebuild useful edited publication and prove against exact candidate rather than old sign-off.","acceptance_criteria":"Exact original recovery attempted and article-specific accurate diagrams integrated; inspect actual mobile/desktop pixels","status":"in_progress","priority":2,"issue_type":"task","assignee":"illustrator","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:17:26Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:27Z","started_at":"2026-10-26T13:17:27Z","labels":["blocking","illustrator","v2"],"dependencies":[{"issue_id":"webprogcode-v2.5","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:17:26Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2.4","title":"V2 editorial and visual direction not inspected","description":"V1 acceptance superseded. Real V2 initial findings are recorded in docs/rebuild-v2/reviews.","design":"Chosen compromise: preserve immutable sources; rebuild useful edited publication and prove against exact candidate rather than old sign-off.","acceptance_criteria":"Direct inspection of all distinct candidate pages and imagery, coherent programmer journal journeys","status":"in_progress","priority":2,"issue_type":"task","assignee":"creative_director","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:17:25Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:25Z","started_at":"2026-10-26T13:17:25Z","labels":["blocking","creative_director","v2"],"dependencies":[{"issue_id":"webprogcode-v2.4","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:17:24Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2.3","title":"Complete corpus/outbound boundary and V2 release identity","description":"V1 acceptance superseded. Real V2 initial findings are recorded in docs/rebuild-v2/reviews.","design":"Chosen compromise: preserve immutable sources; rebuild useful edited publication and prove against exact candidate rather than old sign-off.","acceptance_criteria":"Inventory denominator, deterministic sanitizer plus hostile fixtures, per-occurrence outbound audit, full site crawl and exact healthy deployment","status":"in_progress","priority":2,"issue_type":"task","assignee":"programmer_expert","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:17:23Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:24Z","started_at":"2026-10-26T13:17:24Z","labels":["blocking","programmer_expert","v2"],"dependencies":[{"issue_id":"webprogcode-v2.3","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:17:23Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2.2","title":"Every historical body requires substantive editorial correction","description":"V1 acceptance superseded. Real V2 initial findings are recorded in docs/rebuild-v2/reviews.","design":"Chosen compromise: preserve immutable sources; rebuild useful edited publication and prove against exact candidate rather than old sign-off.","acceptance_criteria":"All14 bodies edited; broken code/safety claims corrected; exact sources, semantic media and full ledger; no unresolved meaningful URL","status":"in_progress","priority":2,"issue_type":"task","assignee":"content_manager","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:17:22Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:22Z","started_at":"2026-10-26T13:17:22Z","labels":["blocking","content_manager","v2"],"dependencies":[{"issue_id":"webprogcode-v2.2","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:17:21Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2.1","title":"Reader journeys, long article navigation and genuine branded 404","description":"V1 acceptance superseded. Real V2 initial findings are recorded in docs/rebuild-v2/reviews.","design":"Chosen compromise: preserve immutable sources; rebuild useful edited publication and prove against exact candidate rather than old sign-off.","acceptance_criteria":"V2 screenshots and interaction evidence of distinct narrow/wide templates, TOC and keyboard navigation; no process boilerplate","status":"in_progress","priority":2,"issue_type":"task","assignee":"designer","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:17:20Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:17:21Z","started_at":"2026-10-26T13:17:21Z","labels":["blocking","designer","v2"],"dependencies":[{"issue_id":"webprogcode-v2.1","depends_on_id":"webprogcode-v2","type":"parent-child","created_at":"2026-10-26T16:17:19Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-v2","title":"V2 full archival and editorial rebuild of progcode.ru","description":"V1 rejected by user; previous approvals superseded. Apply REBUILD_ACCEPTANCE_V2.md: exhaustive URL inventory, real bodies, complete outbound review, new design/illustrations, five actual reviews and exact build deployment.","acceptance_criteria":"Every meaningful discovered URL reconciled; all bodies edited; outbound links individually reviewed; five V2 role vetoes cleared after exact candidate inspection; local and public deployment verified","status":"in_progress","priority":2,"issue_type":"epic","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T13:12:07Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T13:12:09Z","started_at":"2026-10-26T13:12:09Z","dependencies":[{"issue_id":"webprogcode-v2","depends_on_id":"webprogcode-restore","type":"discovered-from","created_at":"2026-10-26T16:12:08Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-restore.5","title":"Deploy can silently target runner Docker","description":"Initial role veto. Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","acceptance_criteria":"Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","status":"closed","priority":2,"issue_type":"task","assignee":"programmer_expert","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:30Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:30:00Z","started_at":"2026-10-26T11:18:31Z","closed_at":"2026-10-26T11:30:00Z","close_reason":"Programmer expert accepted immutable OCI revision, zz healthy, public/local and browser evidence","labels":["blocking","programmer_expert"],"dependencies":[{"issue_id":"webprogcode-restore.5","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:29Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"webprogcode-restore.5","title":"Deploy can silently target runner Docker","description":"Initial role veto. Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","acceptance_criteria":"Require remote target secrets; image commit, zz health, public TLS, old URLs, static and local PID checks","status":"closed","priority":2,"issue_type":"task","assignee":"programmer_expert","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:30Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:30:00Z","started_at":"2026-10-26T11:18:31Z","closed_at":"2026-10-26T11:30:00Z","close_reason":"Programmer expert accepted immutable OCI revision, zz healthy, public/local and browser evidence","labels":["blocking","programmer_expert"],"dependencies":[{"issue_id":"webprogcode-restore.5","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:29Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-restore.4","title":"Recovered image references absent and unused assets shipped","description":"Initial role veto. Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","acceptance_criteria":"Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","status":"closed","priority":2,"issue_type":"task","assignee":"illustrator","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:27Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:27:39Z","started_at":"2026-10-26T11:18:28Z","closed_at":"2026-10-26T11:27:39Z","close_reason":"Illustrator accepted after editorial assets removed from public/output and image provenance verified","labels":["blocking","illustrator"],"dependencies":[{"issue_id":"webprogcode-restore.4","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:26Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"webprogcode-restore.4","title":"Recovered image references absent and unused assets shipped","description":"Initial role veto. Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","acceptance_criteria":"Map available archive featured images with source caption; disclose missing inline images; exclude unused public media/editorial assets","status":"closed","priority":2,"issue_type":"task","assignee":"illustrator","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:27Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:27:39Z","started_at":"2026-10-26T11:18:28Z","closed_at":"2026-10-26T11:27:39Z","close_reason":"Illustrator accepted after editorial assets removed from public/output and image provenance verified","labels":["blocking","illustrator"],"dependencies":[{"issue_id":"webprogcode-restore.4","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:26Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
{"_type":"issue","id":"webprogcode-restore.3","title":"Historical security claims need specific corrections","description":"Initial role veto. Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","acceptance_criteria":"Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","status":"closed","priority":2,"issue_type":"task","assignee":"content_manager","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:25Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:27:02Z","started_at":"2026-10-26T11:18:26Z","closed_at":"2026-10-26T11:27:02Z","close_reason":"Same role agents accepted after browser evidence and targeted content corrections","labels":["blocking","content_manager"],"dependencies":[{"issue_id":"webprogcode-restore.3","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:25Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"webprogcode-restore.3","title":"Historical security claims need specific corrections","description":"Initial role veto. Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","design":"Alternatives: reject entire restoration, or address the concrete gap while preserving archive. Chosen compromise: Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","acceptance_criteria":"Preserve original with dated TLS and Windows corrections before body, primary references, clean excerpts","status":"closed","priority":2,"issue_type":"task","assignee":"content_manager","owner":"gavrilovdev@yandex-team.ru","created_at":"2026-10-26T11:18:25Z","created_by":"E.Gavrilov","updated_at":"2026-10-26T11:27:02Z","started_at":"2026-10-26T11:18:26Z","closed_at":"2026-10-26T11:27:02Z","close_reason":"Same role agents accepted after browser evidence and targeted content corrections","labels":["blocking","content_manager"],"dependencies":[{"issue_id":"webprogcode-restore.3","depends_on_id":"webprogcode-restore","type":"parent-child","created_at":"2026-10-26T14:18:25Z","created_by":"E.Gavrilov","metadata":"{}"}],"dependency_count":0,"dependent_count":0,"comment_count":0}
+5
View File
@@ -8,3 +8,8 @@ web/node_modules
web/out web/out
README.md README.md
*.log *.log
docs
provenance
verification
.beads
+4
View File
@@ -7,3 +7,7 @@
.local-service.json .local-service.json
.playwright-cli/ .playwright-cli/
# Anonymous HTTP response headers stay local; body hashes/results are versioned.
docs/rebuild-v2/raw/**/*.headers
docs/rebuild-v2/raw/*.headers
+2 -1
View File
@@ -18,7 +18,8 @@ ENV SERVER_ROOT=/public \
SERVER_PORT=8080 \ SERVER_PORT=8080 \
SERVER_LOG_LEVEL=warn \ SERVER_LOG_LEVEL=warn \
SERVER_DIRECTORY_LISTING=false \ SERVER_DIRECTORY_LISTING=false \
SERVER_COMPRESSION=true SERVER_COMPRESSION=true \
SERVER_ERROR_PAGE_404=/public/404.html
COPY --from=builder /app/out /public COPY --from=builder /app/out /public
+103
View File
@@ -0,0 +1,103 @@
from pathlib import Path
from bs4 import BeautifulSoup
from urllib.parse import urlsplit,unquote
import json,re,collections,hashlib
r=Path(__file__).resolve().parents[1];doc=r/'docs/rebuild-v2';ledger=json.load(open(doc/'editorial-ledger.json'));edited=json.load(open(r/'web/data/articles-v2.json'));review={}
for page in ledger['pages']:
for link in page['outboundLinks']:review[(page['slug'],link['url'])]=link
resources={
'https://dlang.org/spec/spec.html':'Полный справочник семантики D: читатель проверяет правила языка.',
'https://dlang.org/phobos/index.html':'Индекс стандартной библиотеки Phobos по теме блога.',
'https://dub.pm/':'Первичная документация сборщика и менеджера зависимостей DUB.',
'https://www.php.net/manual/ru/':'Первичный русскоязычный справочник PHP.',
'https://dev.1c-bitrix.ru/api_help/':'Первичный справочник API Bitrix, по которому проверяются версии и ограничения.',
'https://webpack.js.org/plugins/provide-plugin/':'Первичная документация ProvidePlugin, раскрывает контракт подключения jQuery.',
'https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/parse':'Контракт функции JSON.parse и ограничения чисел, непосредственно относится к инструменту.',
'https://curl.se/docs/sslcerts.html':'Первичное объяснение проверки TLS и доверия сертификатам.'}
# Each final publication link has an article-specific reviewed context, not a domain-wide allow list.
allApproved=collections.defaultdict(list)
for (slug,url),decision in review.items():allApproved[url].append((slug,decision.get('reason','')))
records=[];unreviewed=[]
def external(url):return urlsplit(url).scheme in ['http','https'] and urlsplit(url).hostname not in ['progcode.ru','www.progcode.ru','127.0.0.1','localhost']
def scan(text,file,phase,slug=None):
soup=BeautifulSoup(text,'html.parser')
for i,tag in enumerate(soup.find_all(True)):
for attribute in ['href','src','action']:
url=tag.get(attribute)
if not url or not external(url):continue
context=tag.get_text(' ',strip=True)[:250] or tag.get('alt','') or tag.name+' '+attribute
rec={'sourceFile':file,'phase':phase,'occurrence':i,'element':tag.name,'attribute':attribute,'anchorContext':context,'destination':url,'editorialReviewed':True}
if phase=='raw':
inside=tag.find_parent(class_=lambda c: c and ('entry-content' in c.split()))
if tag.find_parent(id='comments') or tag.find_parent(class_=lambda c:c and ('comment-body' in c.split() or 'comment-content' in c.split())):decision='remove';reason='Комментарий исключён целиком: не авторский материал; здесь встречаются оплаченные/нерелевантные вставки. Текст комментариев не переносится.'
elif not inside:decision='remove';reason='Сторонняя зависимость, шаблон/виджет/трекинг/партнёрская ссылка исторической оболочки. Новая оболочка автономна и не публикует этот ресурс.'
else:
slugHere=slug;d=review.get((slugHere,url))
if d:decision='keep';reason=d['reason']
else:
replacement=next((z for z in ledger['pages'] if z['slug']==slugHere),{})
removed=next((z for z in replacement.get('removedLinks',[]) if z['url']==url),None)
decision='remove-or-update';reason=removed.get('reason') if removed else 'Исходная ссылка не перенесена: редактура оставляет только непосредственно обоснованные первичные ссылки из полного ledger; исходная формулировка вычитана без рекламного/лишнего перехода.'
rec.update(decision=decision,reason=reason)
elif tag.name=='link' and tag.get('rel') and 'canonical' in tag.get('rel'):rec.update(decision='keep',reason='Canonical собственного сайта, не внешняя коммерческая ссылка.')
else:
d=review.get((slug,url)) if slug else None
if d:rec.update(decision='keep',reason=d['reason'])
elif url in resources:rec.update(decision='keep',reason=resources[url])
elif url in allApproved and phase in ['build','source-template','dom']:
# Match the rendered page's actual slug; only shared source attribution on that page qualifies.
candidates=[x for x in allApproved[url] if not slug or x[0]==slug]
if candidates:rec.update(decision='keep',reason=candidates[0][1])
else:rec.update(decision='unreviewed',editorialReviewed=False,reason='Нужна проверка именно этого контекста.');unreviewed.append(rec)
else:rec.update(decision='unreviewed',editorialReviewed=False,reason='Нет индивидуального решения по этому переходу.');unreviewed.append(rec)
records.append(rec)
for match in re.finditer(r'url\([\"\']?(https?://[^)\"\']+)',text):
records.append({'sourceFile':file,'phase':phase,'attribute':'css-url','destination':match.group(1),'anchorContext':text[max(0,match.start()-60):match.end()+60],'decision':'remove' if phase=='raw' else 'unreviewed','reason':'Историческое оформление не публикуется.' if phase=='raw' else 'Неожиданный внешний CSS resource.','editorialReviewed':phase=='raw'})
for article in edited:scan(article['contentHtml'],'web/data/articles-v2.json#'+article['slug'],'edited-body',article['slug'])
meta=json.load(open(doc/'article-source-metadata.json'));rawPaths={}
for slug,x in meta.items():rawPaths[x['raw']]=slug
# Inspect all immutable source captures, including discarded templates and spam-bearing comments.
for base in [r/'provenance',doc/'raw']:
for path in base.glob('*.html'):
slug=rawPaths.get(str(path.relative_to(r)))
if not slug:
name=unquote(path.stem);slug=next((a['slug'] for a in edited if a['slug']==name),None)
scan(path.read_text(errors='replace'),str(path.relative_to(r)),'raw',slug)
for path in (r/'web/app').rglob('*'):
if path.suffix not in ['.jsx','.css']:continue
text=path.read_text();scan(text,str(path.relative_to(r)),'source-template')
# JSX strings used by resource arrays or URL-bearing inline script must also be inventoried.
for url in sorted(set(re.findall(r'https?://[^\s\"\'<>`]+',text))):
if not external(url):continue
if any(x['sourceFile']==str(path.relative_to(r)) and x['destination']==url for x in records):continue
reason=resources.get(url)
records.append({'sourceFile':str(path.relative_to(r)),'phase':'source-template','attribute':'url-literal','destination':url,'anchorContext':text[max(0,text.find(url)-80):text.find(url)+len(url)+80],'decision':'keep' if reason else 'unreviewed','reason':reason or 'Не классифицировано','editorialReviewed':bool(reason)})
for path in (r/'web/out').rglob('*.html'):
rel=unquote(str(path.relative_to(r/'web/out')));slug=next((a['slug'] for a in edited if '/'+a['slug']+'/' in '/'+rel or rel.startswith(a['legacyPath'].strip('/'))),None);scan(path.read_text(),str(path.relative_to(r)),'build',slug)
# Actual browser DOM evidence is supplied by full crawl; compare approved contexts again.
for domfile in sorted((doc/'evidence').glob('candidate-*/dom-links.json')):
if json.load(open(domfile.parent/'manifest.json')).get('sourceHash')!=json.load(open(r/'web/public/build-identity.json'))['sourceHash']:continue
for page in json.load(open(domfile)):
slug=next((a['slug'] for a in edited if a['slug'] in unquote(page['path'])),None)
for i,l in enumerate(page.get('links',[])):
if not external(l['url']):continue
d=review.get((slug,l['url'])) if slug else None;reason=d.get('reason') if d else resources.get(l['url']);rec={'sourcePage':page['path'],'sourceFile':str(domfile.relative_to(r)),'phase':'dom','occurrence':i,'attribute':l.get('attribute'),'anchorContext':l.get('context'),'destination':l['url'],'decision':'keep' if reason else 'unreviewed','reason':reason or 'Нет решения по DOM контексту','editorialReviewed':bool(reason)};records.append(rec)
# Inspect every URL literal in actual bundled JS separately from network-bearing anchors.
parserConstants={'https://a','https://a/c%20d?a=1&c=3','https://a@b','https://тест','https://a#б','https://x','http://n'}
for path in (r/'web/out').rglob('*.js'):
text=path.read_text()
for m in re.finditer(r'https?://[^\s\"\'<>`\\]+',text):
url=m.group(0).rstrip(');,}');reason=None;network=False
if url in resources:reason=resources[url];network=True
elif url in parserConstants:reason='Константа теста/базы URL parser в bundle; не сетевой запрос и не редакционная ссылка.'
elif url.startswith('http://www.w3.org/'):reason='Стандартный XML/SVG/MathML namespace identifier, не загрузка ресурса.'
elif url.startswith('https://nextjs.org/docs/'):reason='Встроенная ссылка Next.js на документацию конкретной диагностики/ошибки; не рекламная вставка и не автоматический запрос.'
elif url=='https://react.dev/errors/':reason='Справочник кодов ошибок React в bundled error builder; не автоматическая внешняя загрузка.'
elif url in ['https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE','https://github.com/zloirock/core-js']:reason='Сохранённые license/homepage metadata bundled core-js, не рекламный виджет.'
records.append({'sourceFile':str(path.relative_to(r)),'phase':'compiled-script','offset':m.start(),'attribute':'URL-literal','anchorContext':text[max(0,m.start()-90):m.end()+90],'destination':url,'decision':'keep-reference' if reason else 'unreviewed','reason':reason or 'Новый URL требует ручной проверки контекста.','editorialReviewed':bool(reason),'networkRelevant':network})
result={'schemaVersion':2,'decisionMethod':'Per article, anchor and purpose; never a domain-wide whitelist. Raw comments/templates excluded as regions and every occurrence recorded.','counts':dict(collections.Counter(x['phase'] for x in records)),'unreviewed':sum(not x['editorialReviewed'] for x in records),'occurrences':records}
(doc/'outbound-links.json').write_text(json.dumps(result,ensure_ascii=False,indent=2)+'\n');print('outbound rows',len(records),'unreviewed',result['unreviewed']);print([(x.get('sourcePage',x['sourceFile']),x['destination']) for x in records if not x['editorialReviewed']][:20])
# Final HTTP inspection queue, one URL per purpose-reviewed destination.
urls=sorted({x['destination'] for x in records if x['phase'] in ['edited-body','source-template','build','dom'] and x['decision']=='keep'})
(doc/'outbound-check-queue.json').write_text(json.dumps(urls,indent=2)+'\n')
+7
View File
@@ -0,0 +1,7 @@
from pathlib import Path
import json,subprocess,hashlib,concurrent.futures
r=Path(__file__).resolve().parents[1];d=r/'docs/rebuild-v2';urls=json.load(open(d/'outbound-check-queue.json'));out=d/'raw/outbound';out.mkdir(exist_ok=True)
def check(u):
n=hashlib.sha256(u.encode()).hexdigest()[:16];p=out/(n+'.txt');q=subprocess.run(['curl','-sSL','--max-time','18','--max-filesize','3000000','-o',str(p),'-w','%{http_code}\n%{url_effective}',u],text=True,capture_output=True);lines=q.stdout.splitlines();b=p.read_bytes() if p.exists() else b'';x={'url':u,'httpStatus':int(lines[0]) if lines and lines[0].isdigit() else None,'resolvedURL':lines[-1] if lines else None,'transportExit':q.returncode,'transportError':q.stderr,'raw':str(p.relative_to(r)) if p.exists() else None,'sha256':hashlib.sha256(b).hexdigest() if b else None,'bodyBytes':len(b)};print(x['httpStatus'],u,x['transportExit'],flush=True);return x
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool:results=list(pool.map(check,urls))
(d/'outbound-http-results.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n')
+52
View File
@@ -0,0 +1,52 @@
from pathlib import Path
from bs4 import BeautifulSoup
from urllib.parse import unquote,urlsplit,quote,urljoin
import json,urllib.request,urllib.error,hashlib,sys,collections
r=Path(__file__).resolve().parents[1] if Path(__file__).parent.name=='deploy' else Path('/Users/gavrilovdev/tmp/progcode.ru');out=r/'web/out';base=sys.argv[1].rstrip('/');inv=json.load(open(r/'docs/rebuild-v2/url-inventory.json'));articles=json.load(open(r/'web/data/articles.json'));results=[];links=set();missing=[];unreviewed=[];bodies={};suspicious=[]
htmlfiles=sorted(out.rglob('*.html'))
def request(path):
url=base+quote(unquote(path),safe='/%?=&:#')
try:
with urllib.request.urlopen(url,timeout=20) as response:return response.status,response.read()
except urllib.error.HTTPError as e:return e.code,e.read()
for p in htmlfiles:
rel=str(p.relative_to(out));route='/'+rel[:-10] if rel.endswith('index.html') else '/'+rel
status,body=request(route);assert status==200,(route,status)
s=BeautifulSoup(body,'html.parser');article=s.select_one('.article-content');chars=len(article.get_text(' ',strip=True)) if article else None
if article and chars<80:missing.append({'path':route,'reason':'thin/empty article body','chars':chars})
for a in s.select('[href],[src],form[action]'):
for k in ['href','src','action']:
v=a.get(k,'');u=urlsplit(v)
if u.netloc and u.hostname not in ['progcode.ru','www.progcode.ru','127.0.0.1','localhost']:continue
if v.startswith(('mailto:','tel:')):continue
if v.startswith('/') or not u.scheme:
actual=urlsplit(urljoin(base+route,v));dest=actual.path
if actual.fragment:
target=s if unquote(dest)==unquote(route) else BeautifulSoup(request(dest)[1],'html.parser')
if not target.find(id=unquote(actual.fragment)):missing.append({'path':route,'fragment':v})
links.add(dest)
for tag in s.find_all(True):
if any(k.lower().startswith('on') for k in tag.attrs):suspicious.append({'path':route,'tag':str(tag)[:160]})
text=s.get_text(' ',strip=True)
if any(word in text.lower() for word in ['costofcial','cialissverige','не удалось восстановить встроенные','иллюстрация из архивного снимка','данный вирус практически никакой угрозы']):suspicious.append({'path':route,'reason':'spam/process/unsafe assertion'})
if route.startswith('/articles/'):
slug=unquote(route.strip('/').split('/')[-1]);bodies[slug]=hashlib.sha256(str(article).encode()).hexdigest() if article else None
results.append({'path':route,'status':status,'htmlSha256':hashlib.sha256(body).hexdigest(),'bodyChars':chars,'images':len(s.select('img'))})
for path in sorted(links):
status,b=request(path)
if status!=200:missing.append({'path':path,'status':status})
reconciled=[]
for item in inv['urls']:
if item['publicationStatus']=='excluded':continue
dest=item['currentDestination'];status,b=request(dest)
if status!=200:missing.append({'inventory':item['originalURL'],'destination':dest,'status':status})
# Also verify the original path for useful dated/taxonomy/standalone pages.
path=item['normalizedPath']
if item['type'] not in ['wordpress-shortlink','article-modern-alias']:
status,b=request(path+'/') if path!='/' else request('/')
if status!=200:missing.append({'originalPath':path,'status':status})
reconciled.append(item['originalURL'])
status,b=request('/unknown/nested/progcode-v2-not-a-page/');assert status==404 and b'ProgCode' in b or status==404 and b'progcode' in b
assert len(set(bodies.values()))==len(bodies)==14,'Duplicate/missing canonical bodies'
result={'base':base,'generatedHTML':len(results),'uniqueInternalTargets':len(links),'inventoryRowsChecked':len(reconciled),'canonicalArticleBodies':len(bodies),'missing':missing,'suspicious':suspicious,'branded404':status==404,'pages':results}
print(json.dumps(result,ensure_ascii=False,indent=2));assert not missing and not suspicious
+18
View File
@@ -0,0 +1,18 @@
from pathlib import Path
import urllib.request,urllib.parse,json,time,concurrent.futures,hashlib
r=Path('/Users/gavrilovdev/tmp/progcode.ru/docs/rebuild-v2/raw');r.mkdir(parents=True,exist_ok=True)
queries={
'domain-all':'https://web.archive.org/cdx/search/cdx?url=progcode.ru&matchType=domain&output=json&collapse=urlkey&showResumeKey=true&limit=5000',
'clean-snapshots':'https://web.archive.org/cdx/search/cdx?url=progcode.ru&matchType=domain&output=json&filter=statuscode:200&filter=mimetype:text/html&collapse=digest&showResumeKey=true&limit=5000',
'www-html':'https://web.archive.org/cdx/search/cdx?url=www.progcode.ru/*&output=json&filter=statuscode:200&filter=mimetype:text/html&collapse=urlkey&showResumeKey=true&limit=5000',
}
def fetch(item):
name,url=item;record={'query':url,'attemptedAt':time.time()}
for attempt in range(2):
try:
with urllib.request.urlopen(url,timeout=55) as resp:b=resp.read();record['http']=resp.status
(r/(name+'.json')).write_bytes(b);record.update(result='downloaded',bytes=len(b),sha256=hashlib.sha256(b).hexdigest());print(name,record,flush=True);return name,record
except Exception as e:record['error']=str(e);time.sleep(2)
print(name,record,flush=True);return name,record
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool:results=dict(pool.map(fetch,queries.items()))
(r/'discovery-results.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n')
+23
View File
@@ -0,0 +1,23 @@
from pathlib import Path
import json,urllib.request,urllib.parse,concurrent.futures,hashlib,time
root=Path(__file__).resolve().parents[1];out=root/'docs/rebuild-v2/raw';out.mkdir(exist_ok=True,parents=True)
old=json.load(open(root/'provenance/cdx-20261026.json'));h=old[0];rows=[dict(zip(h,r)) for r in old[1:]]
wanted=[];seen=set()
for row in rows:
original=row['original'];p=urllib.parse.urlsplit(original);path=urllib.parse.unquote(p.path)
if p.query or row['timestamp']>='20230101':continue
if path in ['/','/page/2/','/контакты/','/полезные-ссылки/','/wp.html'] or __import__('re').match('/20\d\d/\d\d/\d\d/',path):
if path in seen:continue
seen.add(path);wanted.append({'original':original,'timestamp':row['timestamp'],'kind':'article' if __import__('re').match('/20\d\d/\d\d/\d\d/',path) else 'page'})
for path in ['/feed/','/sitemap.xml','/sitemap_index.xml','/wp-sitemap.xml']:
wanted.append({'original':'https://progcode.ru'+path,'timestamp':'20220101000000','kind':'discovery'})
def fetch(rec):
rec=dict(rec);url='https://web.archive.org/web/'+rec['timestamp']+'id_/'+rec['original'];name=hashlib.sha256(url.encode()).hexdigest()[:20]+'.html';rec['requestedSnapshot']=url
try:
with urllib.request.urlopen(url,timeout=50) as res:b=res.read();rec.update(http=res.status,resolvedSnapshot=res.url)
(out/name).write_bytes(b);rec.update(result='downloaded',raw='docs/rebuild-v2/raw/'+name,sha256=hashlib.sha256(b).hexdigest(),bytes=len(b))
except Exception as e:rec.update(result='fetch-failed',error=str(e))
print(rec['result'],rec['original'],rec.get('bytes',rec.get('error')),flush=True)
return rec
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as p:results=list(p.map(fetch,wanted))
(out/'fetch-results.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n')
+9 -2
View File
@@ -1,7 +1,14 @@
import http.server,os,json,functools import http.server,os,json,functools
from pathlib import Path from pathlib import Path
r=Path(__file__).resolve().parents[1] r=Path(__file__).resolve().parents[1]
handler=functools.partial(http.server.SimpleHTTPRequestHandler,directory=str(r/'web/out')) static=Path(os.environ.get('PROGCODE_STATIC_ROOT',str(r/'web/out'))).resolve()
class Handler(http.server.SimpleHTTPRequestHandler):
def send_error(self,code,message=None,explain=None):
if code==404 and (static/'404.html').exists():
b=(static/'404.html').read_bytes();self.send_response(404);self.send_header('Content-Type','text/html; charset=utf-8');self.send_header('Content-Length',str(len(b)));self.end_headers()
if self.command!='HEAD':self.wfile.write(b)
else:super().send_error(code,message,explain)
handler=functools.partial(Handler,directory=str(static))
s=http.server.ThreadingHTTPServer(('127.0.0.1',0),handler) s=http.server.ThreadingHTTPServer(('127.0.0.1',0),handler)
(r/'.local-service.json').write_text(json.dumps(dict(pid=os.getpid(),port=s.server_port,url='http://127.0.0.1:'+str(s.server_port)),indent=2)) (r/'.local-service.json').write_text(json.dumps(dict(pid=os.getpid(),port=s.server_port,url='http://127.0.0.1:'+str(s.server_port),staticRoot=str(static)),indent=2))
s.serve_forever() s.serve_forever()
+64
View File
@@ -0,0 +1,64 @@
from pathlib import Path
from urllib.parse import urlsplit,unquote,quote
from bs4 import BeautifulSoup
import json,re,hashlib,collections
r=Path(__file__).resolve().parents[1];doc=r/'docs/rebuild-v2';data=r/'web/data'
cdx=json.load(open(doc/'raw/domain-all.json'));h=cdx[0];rows=[dict(zip(h,x)) for x in cdx[1:]]
fetched=json.load(open(doc/'raw/fetch-results.json'));fetchby={unquote(urlsplit(x['original']).path).rstrip('/') or '/':x for x in fetched}
arts=json.load(open(data/'articles.json'));manifest=json.load(open(r/'provenance/manifest.json'))['articles'];routes={};articleMeta={};shortlinks={};rawFor={};allhref=[]
for a in arts:
rec=next(x for x in manifest if unquote(x['slug'])==a['slug']);legacy=unquote(urlsplit(rec['original']).path);key=legacy.rstrip('/');f=fetchby.get(key);p=r/f['raw'] if f and f['result']=='downloaded' else r/'provenance'/Path(rec['file']).name
raw=p.read_text();s=BeautifulSoup(raw,'html.parser');body=s.select_one('.entry-content');cats=[x.get_text(' ',strip=True) for x in s.select('.entry-categories a')];tags=[x.get_text(' ',strip=True) for x in s.select('.entry-tags a')];refs=[unquote(urlsplit(x.get('href','')).path).rstrip('/')+'/' for x in s.select('.entry-categories a,.entry-tags a')]
articleMeta[a['slug']]={'categories':cats,'tags':tags,'taxonomyPaths':refs,'raw':str(p.relative_to(r)),'rawSha256':hashlib.sha256(p.read_bytes()).hexdigest(),'bodySize':len(body.get_text(' ',strip=True)) if body else 0,'snapshot':(f.get('resolvedSnapshot') if f and f['result']=='downloaded' else rec['source']),'legacyPath':legacy}
for tag in s.select('link[rel=shortlink]'):
q=urlsplit(tag.get('href','')).query
if q.startswith('p='):shortlinks[q[2:]]='/articles/'+a['slug']+'/'
routes[key]={'type':'article','slug':a['slug']};rawFor[key]=articleMeta[a['slug']]
for link in s.select('a[href]'):
u=urlsplit(link['href']);path=unquote(u.path)
if u.hostname in ['progcode.ru','www.progcode.ru'] and re.match(r'/20\d\d/\d\d/\d\d/',path):allhref.append(path.rstrip('/')+'/')
# Query aliases are explicit data; home routes only known ids, never unknown pages.
(data/'shortlinks.json').write_text(json.dumps(shortlinks,ensure_ascii=False,indent=2)+'\n')
meaningful=set();inventory=[];counts=collections.Counter()
for row in rows:
u=urlsplit(row['original']);path=unquote(u.path);key=path.rstrip('/') or '/';query=u.query;mime=row['mimetype'];t='asset';action='exclude';reason='Ресурс оформления/служебный endpoint, не самостоятельная статья.';destination=None;pub='excluded';raw=None;title='';bodySize=None
if key in rawFor:
t='article' if not query else 'article-comment-alias';action='restore-edited-body';destination='/articles/'+routes[key]['slug']+'/';pub='planned';reason='Полное тело сохранено и проходит редактуру; комментарии, включая спам, исключены.';raw=rawFor[key];meaningful.add(key)
elif path.startswith('/articles/editorial-'):
t='synthetic-editorial';reason='Поздняя сгенерированная серия подтверждается исходным генератором репозитория; не историческая публикация. Не возвращается под видом архива.'
elif path.startswith('/articles/'):
slug=path.strip('/').split('/')[-1];known=next((a for a in arts if a['slug']==slug),None)
if known:t='article-modern-alias';destination='/articles/'+slug+'/';action='equivalent';pub='planned';reason='Современный адрес той же подтверждённой исторической статьи.'
else:t='unknown-modern';reason='Поздний маршрут без подтверждённого исторического тела; не оригинальный корпус.'
elif key=='/' and query.startswith('p='):
t='wordpress-shortlink';destination=shortlinks.get(query[2:]);action='equivalent-client-redirect' if destination else 'exclude';pub='planned' if destination else 'excluded';reason='Подтверждённый rel=shortlink исходной статьи.' if destination else 'Идентификатор не подтверждён исходным rel=shortlink.'
elif key=='/' and not query:
t='home';action='redesign';pub='planned';destination='/';reason='Полный индекс подтверждённых статей и маршруты чтения.';meaningful.add(key)
elif key in ['/контакты','/полезные-ссылки']:
t='standalone-empty-original';action='meaningful-equivalent';pub='planned';destination='/about/' if key=='/контакты' else '/resources/';reason='Повторно полученный снимок имеет пустую entry-content. Вместо мёртвой формы — сведения об авторе; вместо пустого списка — проверенные справочники по темам.';meaningful.add(key);routes[key]={'type':'about' if key=='/контакты' else 'resources'}
elif key.startswith(('/category/','/tag/','/author/')) or re.fullmatch('/20\d\d/\d\d',key) or key=='/page/2':
t='taxonomy';action='equivalent-filtered-index';pub='planned';destination=path.rstrip('/')+'/';reason='Индекс с фактическим набором подходящих статей по исходной таксономии/дате/автору.';meaningful.add(key)
if key not in routes:
matches=[a['slug'] for a in arts if key+'/' in articleMeta[a['slug']]['taxonomyPaths']]
if '/author/' in key:matches=[a['slug'] for a in arts];matches=matches[-4:] if key.endswith('/page/2') else matches
if re.fullmatch('/20\d\d/\d\d',key):matches=[a['slug'] for a in arts if a['date'].startswith(key[1:].replace('/','-'))]
if key=='/page/2':matches=[a['slug'] for a in arts][-4:]
title=key.split('/')[-1].replace('-',' ')
routes[key]={'type':'index','title':('Статьи за '+key[1:].replace('/',' · ')) if re.fullmatch('/20\d\d/\d\d',key) else 'DarkRiDDeR' if '/author/' in key else 'Ранние заметки' if key=='/page/2' else title,'slugs':matches}
elif key in ['/feed','/comments/feed'] or '/feed' in key:
t='feed';reason='Машинный RSS/комментарии, не отдельная публикация. Статьи доступны в полном индексе.'
elif key=='/wp.html':
t='wordpress-service-page';reason='Служебный WordPress endpoint не является публикацией (отдельно проверяется raw, публикация не планируется).'
# For available discovery captures attach exact evidence.
f=fetchby.get(key)
if not raw and f and f.get('result')=='downloaded':
p=r/f['raw'];s=BeautifulSoup(p.read_text(),'html.parser');b=s.select_one('.entry-content');raw={'raw':f['raw'],'rawSha256':f['sha256'],'snapshot':f.get('resolvedSnapshot'),'bodySize':len(b.get_text(' ',strip=True)) if b else 0};title=s.title.get_text(' ',strip=True) if s.title else ''
if raw:bodySize=raw.get('bodySize')
inv={'originalURL':row['original'],'normalizedPath':key,'type':t,'chosenSnapshot':raw.get('snapshot') if raw else 'https://web.archive.org/web/'+row['timestamp']+'id_/'+row['original'],'snapshotDate':row['timestamp'],'fetchStatus':'validated-local-or-fresh-raw' if raw else f.get('result') if f else 'not-required-for-disposition','rawFile':raw.get('raw') if raw else None,'rawHash':raw.get('rawSha256') if raw else None,'title':title,'bodySize':bodySize,'currentDestination':destination,'editorialAction':action,'publicationStatus':pub,'reason':reason,'cdxStatus':row['statuscode'],'mimetype':mime}
inventory.append(inv);counts[t]+=1
# Cross-check links discovered in raw: never let a dated article evade inventory.
unknown=sorted(set(allhref)-{a['legacyPath'] for a in articleMeta.values()})
for path in unknown:print('UNRECONCILED ARTICLE LINK',path)
(doc/'url-inventory.json').write_text(json.dumps({'discovery':{'domainRows':len(rows),'snapshotRows':len(json.load(open(doc/'raw/clean-snapshots.json')))-1,'pagination':'limit5000, showResumeKey=true; response exhausted below limit with no resume token','historicalArticlePaths':14,'meaningfulCanonicalPages':len(meaningful),'countsByType':dict(counts),'unreconciledDatedArticleLinks':unknown},'urls':inventory},ensure_ascii=False,indent=2)+'\n')
(data/'archive-routes.json').write_text(json.dumps(routes,ensure_ascii=False,indent=2)+'\n');(doc/'article-source-metadata.json').write_text(json.dumps(articleMeta,ensure_ascii=False,indent=2)+'\n')
print('rows',len(rows),'meaningful',len(meaningful),'articles',len(arts),'routes',len(routes),'emptyTaxonomies',[(k,v.get('title')) for k,v in routes.items() if v.get('type')=='index' and not v['slugs']]);print('shortlinks',shortlinks)
+18
View File
@@ -0,0 +1,18 @@
from pathlib import Path
import json,hashlib,re,subprocess,concurrent.futures
r=Path(__file__).resolve().parents[1];out=r/'docs/rebuild-v2/raw/media';out.mkdir(exist_ok=True)
items=[]
for a in json.load(open(r/'provenance/extracted-articles.json')):
for i in a['images']:
src=i['src'];items.append({'article':a['slug'],'original':src,'url':'https://web.archive.org/web/20220314193523id_/'+src,'role':'historical-inline'})
# Primary source of the translated interview carries the actual same screenshot.
for host in ['https://blog.dlang.org','https://dlang.org/blog']:
items.append({'article':'о-tilix-и-d-интервью-с-геральдом-нанном','original':'http://dlang.org/blog/wp-content/uploads/2017/08/tilix-screenshot-2-1024x589.png','url':host+'/wp-content/uploads/2017/08/tilix-screenshot-2-1024x589.png','role':'primary-source-equivalent'})
def run(x):
x=dict(x);p=out/(hashlib.sha256(x['url'].encode()).hexdigest()[:20]+'.bin');q=subprocess.run(['curl','-sSL','--max-time','25','-o',str(p),'-w','%{http_code}\n%{url_effective}',x['url']],capture_output=True,text=True);meta=q.stdout.splitlines();x.update(http=meta[0] if meta else None,resolved=meta[-1] if meta else None,exit=q.returncode)
b=p.read_bytes() if p.exists() else b'';valid=b.startswith((b'\x89PNG',b'\xff\xd8\xff',b'GIF8'));x.update(validImage=valid,bytes=len(b),raw=str(p.relative_to(r)) if p.exists() else None,sha256=hashlib.sha256(b).hexdigest());print('image',valid,x['article'],x['original'],flush=True)
if valid:
ext='.png' if b.startswith(b'\x89PNG') else '.jpg' if b.startswith(b'\xff') else '.gif';dest=r/'web/public/visuals/v2'/('recovered-'+hashlib.sha256(b).hexdigest()[:12]+ext);dest.write_bytes(b);x['publishedAsset']='/visuals/v2/'+dest.name
return x
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool:results=list(pool.map(run,items))
(r/'docs/rebuild-v2/media-recovery.json').write_text(json.dumps(results,ensure_ascii=False,indent=2)+'\n')
+1
View File
@@ -0,0 +1 @@
beautifulsoup4==4.14.3
+14
View File
@@ -0,0 +1,14 @@
from pathlib import Path
import json,subprocess,concurrent.futures,hashlib,time
r=Path(__file__).resolve().parents[1];p=r/'docs/rebuild-v2/raw/fetch-results.json';rows=json.load(open(p))
def fetch(a):
if a['result']=='downloaded':return a
a=dict(a);url=a['requestedSnapshot'];n=hashlib.sha256(url.encode()).hexdigest()[:20];dest=r/'docs/rebuild-v2/raw'/(n+'.html');headers=dest.with_suffix('.headers')
q=subprocess.run(['curl','-sSL','--retry','1','--retry-delay','2','--max-time','45','-D',str(headers),'-o',str(dest),'-w','%{http_code}\n%{url_effective}',url],text=True,capture_output=True)
info=q.stdout.splitlines();a['curlExit']=q.returncode;a['http']=int(info[0]) if info and info[0].isdigit() else 0;a['resolvedSnapshot']=info[-1] if info else url
if q.returncode==0 and a['http']==200:
b=dest.read_bytes();a.update(result='downloaded',raw=str(dest.relative_to(r)),sha256=hashlib.sha256(b).hexdigest(),bytes=len(b));a.pop('error',None)
else:a.update(result='fetch-failed',error=q.stderr or 'HTTP '+str(a['http']))
print(a['result'],a['original'],a.get('bytes',a.get('error')),flush=True);return a
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as pool:result=list(pool.map(fetch,rows))
p.write_text(json.dumps(result,ensure_ascii=False,indent=2)+'\n')
+42
View File
@@ -0,0 +1,42 @@
{
"domain": "progcode.ru",
"epic": "webprogcode-v2",
"stage": "frozen-candidate-review",
"v1Approvals": "superseded by user rejection",
"rollback": "rollback/progcode-v1-20261026",
"roles": {
"designer": "/root/designer",
"content_manager": "/root/content_manager",
"programmer_expert": "/root/programmer_expert",
"creative_director": "/root/creative_director",
"illustrator": "/root/illustrator"
},
"coverage": {
"cdxRecords": 445,
"snapshots": 639,
"historicalArticlePaths": 14,
"meaningfulCanonicalPages": 61,
"reconciled": 61
},
"currentDefects": [
"Final same-reviewer exact-candidate verification pending",
"Semrush coverage partial174/100 observed, exact11 targets received",
"V2 deployment withheld until actual quality/recovery gates"
],
"local": {
"pid": 28007,
"port": 64524,
"url": "http://127.0.0.1:64524",
"staticRoot": "/private/tmp/progcode-v2-frozen-401f0b06436f"
},
"sourceHash": "401f0b06436f6eeeabe2635a32e6467cc5b9ff34de7fedfbe4badb7c7ac414f7",
"buildHash": "bc774f70f86b9d0b9ab25631e2457da0451827c1e7fc6204243bc289301e756f",
"semrush": {
"issue": "webprogcode-v2.6",
"reportTotal": 174,
"observedRows": 100,
"exactTargetsShared": 11,
"matchedKnownArticleBodies": 11,
"complete": false
}
}
@@ -0,0 +1,318 @@
{
"использование-jquery-в-webpack": {
"categories": [
"JavaScript",
"Интернет"
],
"tags": [
"javascript",
"jquery",
"js",
"webpack"
],
"taxonomyPaths": [
"/category/javascript/",
"/category/интернет/",
"/tag/javascript/",
"/tag/jquery/",
"/tag/js/",
"/tag/webpack/"
],
"raw": "provenance/%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-jquery-%D0%B2-webpack.html",
"rawSha256": "f5d24279be3246246244c7a7b42b683570de996487e4b27cb08b28ec7f0d40ea",
"bodySize": 1740,
"snapshot": "https://web.archive.org/web/20190823072154id_/https://progcode.ru/2019/01/12/%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-jquery-%D0%B2-webpack/",
"legacyPath": "/2019/01/12/использование-jquery-в-webpack/"
},
"bitrix-api-add-foto-editor": {
"categories": [
"Bitix",
"PHP"
],
"tags": [
"Bitrix",
"PHP"
],
"taxonomyPaths": [
"/category/bitix/",
"/category/php/",
"/tag/bitrix/",
"/tag/php/"
],
"raw": "provenance/bitrix-api-add-foto-editor.html",
"rawSha256": "0e99f8b400062bcde400d284326b21a11206d707d4334fb9b7ca11e4662495d0",
"bodySize": 1739,
"snapshot": "https://web.archive.org/web/20181109173706id_/http://progcode.ru:80/2018/10/19/bitrix-api-add-foto-editor/",
"legacyPath": "/2018/10/19/bitrix-api-add-foto-editor/"
},
"о-tilix-и-d-интервью-с-геральдом-нанном": {
"categories": [
"DLang",
"Интернет"
],
"tags": [
"DLang",
"Tilix",
"интернет"
],
"taxonomyPaths": [
"/category/dlang/",
"/category/интернет/",
"/tag/dlang/",
"/tag/tilix/",
"/tag/интернет/"
],
"raw": "docs/rebuild-v2/raw/3b10fcbae8016b7aa458.html",
"rawSha256": "f1f02726a03cce111470306e5e6ef9eff5f160d34e184a7faea5a9020986a1e6",
"bodySize": 21510,
"snapshot": "https://web.archive.org/web/20170828084638id_/http://progcode.ru:80/2017/08/25/%D0%BE-tilix-%D0%B8-d-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B2%D1%8C%D1%8E-%D1%81-%D0%B3%D0%B5%D1%80%D0%B0%D0%BB%D1%8C%D0%B4%D0%BE%D0%BC-%D0%BD%D0%B0%D0%BD%D0%BD%D0%BE%D0%BC/",
"legacyPath": "/2017/08/25/о-tilix-и-d-интервью-с-геральдом-нанном/"
},
"bitrix-api-функция-для-генерации-кода-элемент": {
"categories": [
"Bitix",
"PHP",
"Интернет"
],
"tags": [
"Bitrix",
"PHP"
],
"taxonomyPaths": [
"/category/bitix/",
"/category/php/",
"/category/интернет/",
"/tag/bitrix/",
"/tag/php/"
],
"raw": "docs/rebuild-v2/raw/d83fcca6ae2674ced819.html",
"rawSha256": "17aa7198445a6f6c3a166528d7b300a3e1be53417c76320e388559b9605cb02b",
"bodySize": 464,
"snapshot": "https://web.archive.org/web/20171123002427id_/http://progcode.ru:80/2017/08/15/bitrix-api-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F-%D0%B4%D0%BB%D1%8F-%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8-%D0%BA%D0%BE%D0%B4%D0%B0-%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82/",
"legacyPath": "/2017/08/15/bitrix-api-функция-для-генерации-кода-элемент/"
},
"bitrix-api-создание-добавление-торгового-пре": {
"categories": [
"Bitix",
"PHP",
"Интернет"
],
"tags": [
"Bitrix",
"PHP",
"интернет",
"торговые предложения"
],
"taxonomyPaths": [
"/category/bitix/",
"/category/php/",
"/category/интернет/",
"/tag/bitrix/",
"/tag/php/",
"/tag/интернет/",
"/tag/торговые-предложения/"
],
"raw": "docs/rebuild-v2/raw/c534f70525d4b3228cce.html",
"rawSha256": "ea9085b34e43ee2dc83be73fc66665bff4e88256cd41aee68d59c10c31bdece3",
"bodySize": 2068,
"snapshot": "https://web.archive.org/web/20171121191620id_/http://progcode.ru:80/2017/08/14/bitrix-api-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D1%82%D0%BE%D1%80%D0%B3%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%B5/",
"legacyPath": "/2017/08/14/bitrix-api-создание-добавление-торгового-пре/"
},
"firefox-увеличение-ожидания-загрузки-timeout-стр": {
"categories": [
"Интернет"
],
"tags": [
"firefox",
"интернет"
],
"taxonomyPaths": [
"/category/интернет/",
"/tag/firefox/",
"/tag/интернет/"
],
"raw": "docs/rebuild-v2/raw/046b5fd93f13d918ea9a.html",
"rawSha256": "63ebad6e0df5c5b92f09e79eecc1bed9c7e2b17a5afe5ef1b863360abc47dd41",
"bodySize": 1189,
"snapshot": "https://web.archive.org/web/20171205065748id_/http://progcode.ru:80/2017/08/04/firefox-%D1%83%D0%B2%D0%B5%D0%BB%D0%B8%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F-%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B8-timeout-%D1%81%D1%82%D1%80/",
"legacyPath": "/2017/08/04/firefox-увеличение-ожидания-загрузки-timeout-стр/"
},
"ошибка-php-ssl-certificate-error-unable-to-get-local-issuer-certificate": {
"categories": [
"PHP",
"SSL"
],
"tags": [],
"taxonomyPaths": [
"/category/php/",
"/category/ssl/"
],
"raw": "docs/rebuild-v2/raw/8ce64b8e9b5268955629.html",
"rawSha256": "c1737f9b1f19ea75a572dfc4c9cdb6529456574473eb2f2b5ac9d5b20a0b2552",
"bodySize": 945,
"snapshot": "https://web.archive.org/web/20171108044821id_/http://progcode.ru:80/2017/07/12/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0-php-ssl-certificate-error-unable-to-get-local-issuer-certificate/",
"legacyPath": "/2017/07/12/ошибка-php-ssl-certificate-error-unable-to-get-local-issuer-certificate/"
},
"dconf-2017-под-капотом-мусорщика-ди-дмитрий-ол": {
"categories": [
"DLang",
"DMD"
],
"tags": [
"DLang",
"GC",
"компилятор"
],
"taxonomyPaths": [
"/category/dlang/",
"/category/dmd/",
"/tag/dlang/",
"/tag/gc/",
"/tag/компилятор/"
],
"raw": "docs/rebuild-v2/raw/69712f05c22e95635556.html",
"rawSha256": "d229acf702ae9b0b2d516945648f82e4de807dd469fda2a8c381a7821052a2ad",
"bodySize": 12944,
"snapshot": "https://web.archive.org/web/20170626000031id_/http://progcode.ru:80/2017/06/24/dconf-2017-%D0%BF%D0%BE%D0%B4-%D0%BA%D0%B0%D0%BF%D0%BE%D1%82%D0%BE%D0%BC-%D0%BC%D1%83%D1%81%D0%BE%D1%80%D1%89%D0%B8%D0%BA%D0%B0-%D0%B4%D0%B8-%D0%B4%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9-%D0%BE%D0%BB/",
"legacyPath": "/2017/06/24/dconf-2017-под-капотом-мусорщика-ди-дмитрий-ол/"
},
"пишем-аналог-функции-php-preg_match_all-на-языке-прог": {
"categories": [
"DLang"
],
"tags": [
"compile-time",
"DLang",
"регулярные выражения"
],
"taxonomyPaths": [
"/category/dlang/",
"/tag/compile-time/",
"/tag/dlang/",
"/tag/регулярные-выражения/"
],
"raw": "docs/rebuild-v2/raw/6889eb972802d1b70892.html",
"rawSha256": "9ad570baeab3aa76eda2edfd5dd0567a2f7385d20e4de4d4417c37b51f2e795a",
"bodySize": 10276,
"snapshot": "https://web.archive.org/web/20170621095951id_/http://progcode.ru:80/2017/06/17/%D0%BF%D0%B8%D1%88%D0%B5%D0%BC-%D0%B0%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B8-php-preg_match_all-%D0%BD%D0%B0-%D1%8F%D0%B7%D1%8B%D0%BA%D0%B5-%D0%BF%D1%80%D0%BE%D0%B3/",
"legacyPath": "/2017/06/17/пишем-аналог-функции-php-preg_match_all-на-языке-прог/"
},
"новый-движок-ctfe": {
"categories": [
"DLang",
"DMD"
],
"tags": [
"CTFE",
"DLang",
"DMD"
],
"taxonomyPaths": [
"/category/dlang/",
"/category/dmd/",
"/tag/ctfe/",
"/tag/dlang/",
"/tag/dmd/"
],
"raw": "docs/rebuild-v2/raw/5baf8c8bb3bb6f04528e.html",
"rawSha256": "8c925d800e94cf18fd73f1bf9548e081f794c2a14bee40fcb49774e96d7359db",
"bodySize": 5959,
"snapshot": "https://web.archive.org/web/20170622220843id_/http://progcode.ru:80/2017/05/26/%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9-%D0%B4%D0%B2%D0%B8%D0%B6%D0%BE%D0%BA-ctfe/",
"legacyPath": "/2017/05/26/новый-движок-ctfe/"
},
"особенности-vibe-d": {
"categories": [
"DLang",
"Vibe.d",
"Интернет"
],
"tags": [
"DLang",
"vibe.d",
"веб-сервисы",
"интернет",
"сайты"
],
"taxonomyPaths": [
"/category/dlang/",
"/category/vibe-d/",
"/category/интернет/",
"/tag/dlang/",
"/tag/vibe-d/",
"/tag/веб-сервисы/",
"/tag/интернет/",
"/tag/сайты/"
],
"raw": "docs/rebuild-v2/raw/400977552ea67bd25ac6.html",
"rawSha256": "5dda4df24b0c806bc342124316f4d571f1cb90667640f80f0a0bfc184d71e144",
"bodySize": 17572,
"snapshot": "https://web.archive.org/web/20170622180833id_/http://progcode.ru:80/2017/05/23/%D0%BE%D1%81%D0%BE%D0%B1%D0%B5%D0%BD%D0%BD%D0%BE%D1%81%D1%82%D0%B8-vibe-d/",
"legacyPath": "/2017/05/23/особенности-vibe-d/"
},
"вирус-самопроизвольный-запуск-брауз": {
"categories": [
"Windows",
"Вирусы"
],
"tags": [
"Windows",
"вирус",
"планировщик задач"
],
"taxonomyPaths": [
"/category/windows/",
"/category/вирусы/",
"/tag/windows/",
"/tag/вирус/",
"/tag/планировщик-задач/"
],
"raw": "docs/rebuild-v2/raw/b3d775d819ef94011fcd.html",
"rawSha256": "71a71a890a17cebc4265d168a2781a586d31fa4f8d63f5688d708cd2be289d5b",
"bodySize": 2325,
"snapshot": "https://web.archive.org/web/20170623025132id_/http://progcode.ru:80/2017/05/20/%D0%B2%D0%B8%D1%80%D1%83%D1%81-%D1%81%D0%B0%D0%BC%D0%BE%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA-%D0%B1%D1%80%D0%B0%D1%83%D0%B7/",
"legacyPath": "/2017/05/20/вирус-самопроизвольный-запуск-брауз/"
},
"компиляция-64-x-разрядных-программ-на-dmd-по": {
"categories": [
"DLang",
"DMD",
"Windows"
],
"tags": [
"DLang",
"DMD",
"Win64",
"Windows",
"компилятор"
],
"taxonomyPaths": [
"/category/dlang/",
"/category/dmd/",
"/category/windows/",
"/tag/dlang/",
"/tag/dmd/",
"/tag/win64/",
"/tag/windows/",
"/tag/компилятор/"
],
"raw": "docs/rebuild-v2/raw/f5372652ac97f6fed1a0.html",
"rawSha256": "3ec07d53658a0ccef0024c50b7869ed95ea1f2a9e2f38ea1bb5e81eb08d3c1cb",
"bodySize": 2456,
"snapshot": "https://web.archive.org/web/20170623024952id_/http://progcode.ru:80/2017/05/04/%D0%BA%D0%BE%D0%BC%D0%BF%D0%B8%D0%BB%D1%8F%D1%86%D0%B8%D1%8F-64-x-%D1%80%D0%B0%D0%B7%D1%80%D1%8F%D0%B4%D0%BD%D1%8B%D1%85-%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC-%D0%BD%D0%B0-dmd-%D0%BF%D0%BE/",
"legacyPath": "/2017/05/04/компиляция-64-x-разрядных-программ-на-dmd-по/"
},
"привет-мир": {
"categories": [
"Без рубрики"
],
"tags": [],
"taxonomyPaths": [
"/category/без-рубрики/"
],
"raw": "docs/rebuild-v2/raw/608f919585e9e8c3f753.html",
"rawSha256": "1a66e32c905d06f42ed126ba9cff90adbada311070d90d687bc24df92d58ff53",
"bodySize": 212,
"snapshot": "https://web.archive.org/web/20170624052133id_/http://progcode.ru:80/2017/05/03/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80/",
"legacyPath": "/2017/05/03/привет-мир/"
}
}
+13
View File
@@ -0,0 +1,13 @@
{
"sourceHash": "401f0b06436f6eeeabe2635a32e6467cc5b9ff34de7fedfbe4badb7c7ac414f7",
"buildHash": "bc774f70f86b9d0b9ab25631e2457da0451827c1e7fc6204243bc289301e756f",
"staticRoot": "/tmp/progcode-v2-frozen-401f0b06436f",
"local": {
"pid": 28007,
"port": 64524,
"url": "http://127.0.0.1:64524",
"staticRoot": "/private/tmp/progcode-v2-frozen-401f0b06436f"
},
"publicationReport": "web/data/publication-report.json",
"stage": "frozen-for-final-review"
}
+25
View File
@@ -0,0 +1,25 @@
# V2: measured recovery coverage
445 distinct CDX URL records and639 digest-collapsed snapshots were discovered across domain/www and http/https scopes. Each query requested up to5000 records with showResumeKey; responses ended below limit without a continuation token. The count445 is not a count of articles.
## Corpus denominator
Exactly14 unique historical dated article paths are confirmed. All14 have full saved bodies and substantive per-page editorial revisions. 12 early article captures were downloaded again during V2; 2 use validated immutable previously saved raw after repeated fresh/alternate attempts failed. HTTP failures do not count as new downloads. Raw and body hashes are in article-source-metadata.json and url-inventory.json.
There are61 meaningful canonical historical pages:14 articles,44 taxonomy/date/author/pagination indexes,2 standalone pages and home. Both standalone captures have empty entry-content: /контакты/ gets author/about information, /полезные-ссылки/ gets reviewed primary reference navigation. These are honest meaningful equivalents, not invented recovered prose. No dated article link found in raw sources remains unreconciled.
## Candidate checks
Frozen output contains81 HTML files. Complete crawl checked all of them, 117 internal targets and 78 nonexcluded inventory/alias rows. Canonical article bodies14; duplicate canonical bodies0; missing targets0; suspicious published output findings0. Unknown nested URL gives a branded HTTP404. Known legacy article paths give the same complete article, not a redirect to home.
Every later synthetic /articles/editorial-* URL and service/login/feed/comment/media endpoint has a documented disposition. Original raw comments/templates include paid/irrelevant cialis, construction and locksmith anchors; those regions are not published and every observed URL occurrence is internally recorded.
## Media
All13 missing inline image URLs were attempted; response bytes were validated as actual image formats rather than counting HTTP200 error pages. Useful semantic replacements now cover GC pools, scheduler diagnosis, Tilix sessions and FileInput processing. Seven decorative Vibe section icons are replaced by one meaningful fibers/I/O explanation. The actual saved Bitrix field preview is shown at native resolution beside an accurate FileInput workflow. New diagrams are not called original screenshots. Reader captions explain the subject, not restoration work.
## Mandatory expanded research still open
Semrush/Noxtools IndexedPages reports174 total; coordinator observed100 firstpage rows and shared13 exact dated targets, all already covered by full article bodies. Lost and Vital on Server3 showed9 root-only promotional/link-farm rows and no deep article targets in that narrow filter. This is not proof about the uninspected remainder. Full referrer/report evidence and remaining indexed-page scope are still pending; Beads webprogcode-v2.6 remains open. No body is inferred from an anchor, and unavailable snapshots are not marked restored without actual saved content.
See url-inventory.json, editorial-ledger.json, media-recovery.json and outbound-links.json for URL/page/occurrence decisions. Exact same-role V2 acceptance and deployment are separate gates; V1 approvals are superseded.
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,45 @@
npm warn Unknown user config "store-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "cache-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
> progcode@1.0.0 build
> node scripts/prepare-publication.mjs && next build
{"sourceHash":"4b4a38a2c5144d9d4f086725ef9b6fff0d5a8c6153a2f198473776cf282cf8c7","articles":14,"hostileFixturePassed":true}
▲ Next.js 16.2.6 (Turbopack)
- Experiments (use with caution):
· cpus: 2
Creating an optimized production build ...
✓ Compiled successfully in 1751ms
Running TypeScript ...
Finished TypeScript in 99ms ...
Collecting page data using 2 workers ...
Generating static pages using 2 workers (0/80) ...
Generating static pages using 2 workers (20/80)
Generating static pages using 2 workers (40/80)
Generating static pages using 2 workers (60/80)
✓ Generating static pages using 2 workers (80/80) in 450ms
Finalizing page optimization ...
Route (app)
┌ ○ /
├ ○ /_not-found
├ ● /[...path]
│ ├ /2019/01/12/использование-jquery-в-webpack
│ ├ /2018/10/19/bitrix-api-add-foto-editor
│ ├ /2017/08/25/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+57 more paths]
├ ○ /about
├ ● /articles/[slug]
│ ├ /articles/использование-jquery-в-webpack
│ ├ /articles/bitrix-api-add-foto-editor
│ ├ /articles/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+11 more paths]
├ ○ /resources
└ ○ /tools
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
@@ -0,0 +1,45 @@
npm warn Unknown user config "store-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "cache-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
> progcode@1.0.0 build
> node scripts/prepare-publication.mjs && next build
{"sourceHash":"401f0b06436f6eeeabe2635a32e6467cc5b9ff34de7fedfbe4badb7c7ac414f7","articles":14,"hostileFixturePassed":true}
▲ Next.js 16.2.6 (Turbopack)
- Experiments (use with caution):
· cpus: 2
Creating an optimized production build ...
✓ Compiled successfully in 1565ms
Running TypeScript ...
Finished TypeScript in 186ms ...
Collecting page data using 2 workers ...
Generating static pages using 2 workers (0/80) ...
Generating static pages using 2 workers (20/80)
Generating static pages using 2 workers (40/80)
Generating static pages using 2 workers (60/80)
✓ Generating static pages using 2 workers (80/80) in 343ms
Finalizing page optimization ...
Route (app)
┌ ○ /
├ ○ /_not-found
├ ● /[...path]
│ ├ /2019/01/12/использование-jquery-в-webpack
│ ├ /2018/10/19/bitrix-api-add-foto-editor
│ ├ /2017/08/25/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+57 more paths]
├ ○ /about
├ ● /articles/[slug]
│ ├ /articles/использование-jquery-в-webpack
│ ├ /articles/bitrix-api-add-foto-editor
│ ├ /articles/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+11 more paths]
├ ○ /resources
└ ○ /tools
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
+45
View File
@@ -0,0 +1,45 @@
npm warn Unknown user config "store-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "cache-dir". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
npm warn Unknown user config "public-hoist-pattern". This will stop working in the next major version of npm. See `npm help npmrc` for supported config options.
> progcode@1.0.0 build
> node scripts/prepare-publication.mjs && next build
{"sourceHash":"90bfeacd5b7c6f8c32b14bb47ec4c7bc57da2df1792357e86052dfe12b287145","articles":14,"hostileFixturePassed":true}
▲ Next.js 16.2.6 (Turbopack)
- Experiments (use with caution):
· cpus: 2
Creating an optimized production build ...
✓ Compiled successfully in 1090ms
Running TypeScript ...
Finished TypeScript in 56ms ...
Collecting page data using 2 workers ...
Generating static pages using 2 workers (0/80) ...
Generating static pages using 2 workers (20/80)
Generating static pages using 2 workers (40/80)
Generating static pages using 2 workers (60/80)
✓ Generating static pages using 2 workers (80/80) in 225ms
Finalizing page optimization ...
Route (app)
┌ ○ /
├ ○ /_not-found
├ ● /[...path]
│ ├ /2019/01/12/использование-jquery-в-webpack
│ ├ /2018/10/19/bitrix-api-add-foto-editor
│ ├ /2017/08/25/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+57 more paths]
├ ○ /about
├ ● /articles/[slug]
│ ├ /articles/использование-jquery-в-webpack
│ ├ /articles/bitrix-api-add-foto-editor
│ ├ /articles/о-tilix-и-d-интервью-с-геральдом-нанном
│ └ [+11 more paths]
├ ○ /resources
└ ○ /tools
○ (Static) prerendered as static content
● (SSG) prerendered as static HTML (uses generateStaticParams)
Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 542 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 445 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 86 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 114 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 139 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 435 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 470 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 301 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 138 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 529 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 419 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 393 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 855 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 143 KiB

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