МАТЧАСТЬMASTER PLAN 12 · KNOWLEDGE BASE & INTERNAL LINKING

Порядок выполнения уточнён

Эта глава входит в готовый комплект из 26 документов. Статус реализации хранится в журнале; требования главы сами по себе не являются выполненной работой.

[12.1] KNW-01 — карточка выполнения. Весь план и его состояние.

Уточнения для этой главы

[12.0.8] Каждый downstream шаг создаёт новый запечатанный пакет с parent hash. После изменения текста, подписи, картинки или связей инвалидировать относящиеся к ним QA/SEO/approval результаты. На выпуск передаются проверки именно итогового hash, а не раннего текста.

[12.0.11] На первом проходе разрешено ноль knowledge/related ссылок, если подходящих опубликованных целей нет. Резервирование URL не означает доступную страницу. Новая цель допустима лишь в том же атомарном release; sitemap и ссылки строятся из состава выбранного release.

Mathchast / Knowledge Base & Internal Linking / 12

TURN
ARTICLES INTO
KNOWLEDGE.

Портал должен помнить термины, сущности и связи между материалами — не только хранить отдельные статьи.

Knowledge Base создаёт canonical terms/aliases/pages, а Internal Linking связывает новые материалы с этой системой и обновляет старый корпус плановыми волнами.

ONE TERM REGISTRY. LINK NEW ARTICLES NOW. RELINK OLD CORPUS IN CONTROLLED WAVES.
Canonical terms + aliases + knowledge pages + relation graph → contextual internal links → SEO stage.

Mini-Wikipedia
inside Mathchast.

Система должна понимать устойчивые термины и сущности портала, иметь для них canonical identity, aliases, disambiguation and optional knowledge page, а затем использовать эти знания для полезных contextual links.

TERM AUTHORITY
Canonical identity.

Один термин/сущность получает stable ID, canonical name, aliases, language variants and relation to topic/entity memory.

KNOWLEDGE PAGE
Not every term needs one.

Knowledge page создаётся только когда есть достаточная reusable reader value; registry существует шире, чем public glossary.

NEW ARTICLE
Link before publish.

Новая статья проходит linking stage до SEO/release и получает contextual links к knowledge pages/related articles.

OLD CORPUS
Wave-based relinking.

Старые статьи перелинковываются плановыми партиями, а не непрерывно при каждом изменении dictionary.

BoundaryKnowledge linking отвечает за meaning/context graph. Финальные canonical/meta/schema/sitemap/indexability принадлежат следующей SEO ветке.

Reuse memory.
Don't clone taxonomy.

KNOWLEDGE CAPABILITY AUDIT 1. Inspect branch 3: Topic / Entity Memory aliases / canonicalization embeddings / retrieval relation history 2. Inspect existing article taxonomy: category / tags / topics / terms current internal links related-article blocks 3. Inspect existing public pages: glossaries / tags / categories / topic pages any knowledge/reference pages 4. Inspect current HTML/components: link components / term markup / related content blocks 5. Search repo/DB: term, alias, entity, glossary, knowledge, internal_link, related_article, taxonomy, slug. 6. Inspect migrations/consumers/tests. 7. Classify: REUSE → EXTEND → WRAP → MIGRATE → NEW 8. Only then choose physical schema/module names.
✓
Reuse Topic/Entity Memory IDs where semantics match; no second canonical entity graph.
✓
Reuse current article/category/tag authority; Knowledge Base augments it, not replaces it silently.
×
Не создавать автоматом public page для каждого noun/entity detected in text.

Stable terms.
Many surface forms.

knowledge term (logical) term_id canonical_name term_type aliases[] language_variants[] topic_id? entity_id? short_definition disambiguation status = ACTIVE | MERGED | DEPRECATED | HIDDEN public_page_policy knowledge_page_id? parent/related terms[] created_at / updated_at source/provenance refs schema_version
ALIASES
Abbreviations, spelling variants, transliterations, old names and language variants map to canonical identity.
DISAMBIGUATION
Одинаковая surface form может иметь несколько meanings; linker must not choose by string match alone.
MERGE
Duplicate terms merge through explicit history/redirect relation; old IDs/URLs remain resolvable where needed.
TYPE
Tool/process/material/standard/project/company/concept/component/etc — registry can use existing entity/topic types before inventing new enums.

Reusable value
earns a page.

SignalInterpretation
appears across many articlesStrong candidate for reusable explanation.
needs recurring definitionKnowledge page can reduce repeated boilerplate.
high ambiguity / comparison needCentral page helps disambiguate and orient readers.
stable evergreen conceptGood reference-page candidate.
temporary event/product minor variantOften better as article/entity only, no standalone page.
thin definition onlyDo not create low-value page just for SEO inventory.
PAGE CONTRACT
Canonical term, definition, aliases, key relations, related articles/topics, update history and source/evidence relations.
ARTICLE-LIKE QA
Knowledge pages still require factual verification; they are not exempt because content is short.
LIFECYCLE
DRAFT → VERIFIED → ACTIVE → DEPRECATED/MERGED; public availability follows SEO/indexability later.

Link where it
helps understanding.

ARTICLE TERM OCCURRENCE ↓ candidate term/entity match ↓ disambiguate from local context ↓ resolve destination: knowledge page? canonical related article? no link? ↓ link policy: first useful mention? repeated mention suppression existing nearby link? section context link density destination quality/status ↓ insert stable link relation ↓ render through Builder/package slot
FIRST USE
Обычно линковать первое meaningful occurrence, не каждое повторение слова.
NO OVERLINK
Link density and duplicate destination rules prevent article from turning into glossary spam.
CONTEXT
Same term string can stay unlinked if current usage is unrelated/ambiguous.
DESTINATION
Link only to ACTIVE/approved destination with stable public intent; no links to hidden/draft pages.

Contextual graph.
Not random "read more".

RELATIONS
parent/follow_up/update, same entity, complementary intent, prerequisite concept, comparison, deeper technical detail.
DUPLICATE AWARE
Do not recommend near-duplicate article when update/follow-up relation already explains the connection better.
FRESHNESS
Prefer current authoritative article version; stale/deprecated destinations excluded or clearly handled.
RELEVANCE
Embeddings/topic/entity overlap may generate candidates, but final link reason should be interpretable.

Store intent
and destination.

internal link (logical) link_id source_article_id / version source_block_id source_text_locator term_id? relation_type destination_type = knowledge | article | category | other destination_id anchor_text link_reason confidence status = PROPOSED | APPROVED | ACTIVE | REMOVED created_by = code | AI | human policy_version config_hash
STABLE ID
Destination resolves by logical ID; public URL may be assigned/changed later without losing relation history.
ANCHOR
Anchor text follows actual sentence context; avoid forced keyword-stuffed anchors.
REMOVAL
Removed link retains history/reason so wave processor does not re-add the same bad relation blindly.

Relink deliberately.
Not continuously.

TRIGGERS FOR A RELINK WAVE new important knowledge page term merge / alias correction major taxonomy change large corpus gap periodic maintenance broken/stale link cleanup WAVE: select bounded article set pin corpus + dictionary version propose changes validate ambiguity / density / destination build candidate article versions if HTML changes targeted QA if substantive text changes release in controlled batch record wave outcome
NO HOT LOOP
Dictionary edit does not immediately rewrite thousands of old pages.
BATCH SIZE
Wave size configurable and tuned from build/release cost; one article failure does not abort whole wave.
IDEMPOTENT
Re-running same wave inputs should not duplicate links or oscillate anchor placement.
ROLLBACK
Changes use article version/release history, so bad wave can be rolled back without losing prior content.

Link new content
before release.

IMAGE-BOUND VERIFIED ARTICLE PACKAGE ↓ extract/reuse term refs ↓ resolve canonical terms/entities ↓ propose knowledge links ↓ propose related-article links ↓ apply density / ambiguity / destination rules ↓ bind link relations into package ↓ render candidate HTML ↓ link validation ↓ KNOWLEDGE-LINKED ARTICLE PACKAGE ↓ SEO & INDEXABILITY ENGINE
PROSE
Pure link insertion should not alter prose semantics. If sentence rewrite is required for clarity, create new article version and re-run relevant QA.
BROKEN DEST
Unresolved destination blocks that link only, not the entire article, unless knowledge link is policy-required.
MANIFEST
Package records dictionary version, linker version, relation hashes and applied-link report.

One main category.
Topics stay flexible.

CATEGORY
Article keeps one main category; category tree remains controlled editorial structure.
TOPICS/TAGS
Topics/tags/terms can be richer graph metadata and linking inputs.
NEW BRANCH
System may propose new public branch/category, but does not create endless taxonomy automatically.
KNOWLEDGE PAGE
Knowledge page is not a substitute for creating arbitrary category hierarchy.

Resolve meaning
before linking.

CONTEXT
Block/paragraph context, nearby entities, article topic and Research Pack entity refs inform term resolution.
AMBIGUOUS
If multiple terms remain plausible, leave unlinked or escalate; wrong internal link is worse than no link.
ALIASES
Alias match with high confidence can resolve automatically only when no conflicting entity/term context exists.
LEARNING
Confirmed resolutions feed alias/context memory; rejected mappings remain remembered.

Good links reduce
reader friction.

GatePass condition
destination statusTarget active/approved and resolvable.
semantic relevanceDestination actually explains/deepens current context.
ambiguityTerm/entity meaning resolved sufficiently.
densityNo excessive link count/visual clutter.
duplicate targetRepeated links to same destination controlled by policy.
anchor qualityNatural context, not forced keyword stuffing.
freshnessNo links to stale/deprecated/removed article versions.
reciprocityReverse link is optional and purposeful, never automatic symmetry.

Linking policy
is configurable.

Setting familyPurpose
knowledge.page_creation_policyWhen a term earns a public knowledge page.
linking.max_links_per_articleDensity bound; benchmark/tune by article length/type.
linking.max_same_destinationRepeated destination control.
linking.first_mention_policyDefault contextual placement behavior.
linking.disambiguation_thresholdAuto-link vs leave unlinked/review boundary.
linking.related_article_limitBound related-content recommendations.
linking.relink_wave_sizeOld-corpus batch size.
linking.relink_schedulePeriodic/triggered maintenance policy, not hot-loop behavior.

Measure usefulness,
not just edge count.

REGISTRY
Active terms, aliases, ambiguous/unresolved terms, merges, public knowledge pages.
LINKS
Links/article, unique destinations, broken/stale links, repeated-destination suppression.
COVERAGE
Articles with zero useful knowledge links, terms repeatedly unlinked due to missing destination.
WAVES
Articles scanned/changed/skipped/failed, links added/removed, rollback count.
QUALITY
Rejected proposals, disambiguation review outcomes, manual removals, bad-link reasons.
TRACE
article/version, term/destination IDs, dictionary version, linker version, wave id, config_hash.

Build registry.
Link one article.

KNW-01

Audit taxonomy + memory

Topic/entity memory, existing categories/tags/topics/terms, current internal links, related blocks, public glossary/topic pages and tests.
DONE: reuse matrix + authority boundaries proven.
KNW-02

Freeze term registry contract

Canonical ID, aliases, language variants, disambiguation, merge/deprecate status, topic/entity relation.
DONE: duplicate/alias fixtures resolve consistently.
KNW-03

Knowledge page lifecycle

Policy for when terms earn public pages; DRAFT/VERIFIED/ACTIVE/MERGED semantics and evidence requirements.
DONE: thin-term spam cannot auto-create pages.
KNW-04

Implement term resolver

Use package term refs + contextual detection + aliases + entity/topic memory; leave ambiguous matches unresolved.
DONE: known ambiguous fixtures do not mislink.
KNW-05

Link proposal engine

Knowledge + related-article candidates with explainable reason, destination status, density and duplicate-target policy.
DONE: proposals are traceable and bounded.
KNW-06

Package linker

Bind approved link relations to stable block/text locators without semantic prose change; emit link report/manifest.
DONE: rerun is idempotent.
KNW-07

Related article graph

Parent/follow-up/update/complementary/prerequisite relations with freshness and duplicate-awareness.
DONE: random similarity alone cannot force a relation.
KNW-08

New article pilot

Image-bound verified Article Package → knowledge links → related links → validated knowledge-linked package.
DONE: no broken/ambiguous/overlinked output.
KNW-09

Relink wave engine

Bounded old-corpus selection, pinned dictionary/corpus version, proposal/apply/report, isolated failures and rollback path.
DONE: repeated wave is idempotent.
KNW-10

Old corpus pilot wave

Small representative batch across categories/ages; measure changes, bad proposals, build/release cost and link density.
DONE: wave report reviewed and policy tuned.
KNW-11

Work + checkpoint

Term registry, knowledge pages, proposed/active links and relink waves visible in Work; HANDOFF/Project State sync.
DONE: checkpoint 12 PASS.
Split ruleЕсли knowledge-page production itself becomes a large editorial pipeline, вынести её в 12.x. Term registry and linker contracts должны остаться общими и не раздваиваться.

Wrong link
is worse than no link.

TestExpected result
same alias, two meaningsNo auto-link until context resolves sufficiently.
repeated term 8 timesPolicy prevents 8 duplicate links.
draft knowledge pageNot used as public destination.
merged termOld identity redirects/resolves to canonical term; history retained.
stale related articleExcluded or routed to current canonical article.
new article rerunNo duplicate link insertion.
relink wave rerunIdempotent output under same inputs/policy.
one old article fails buildWave continues; failure isolated and reported.
sentence rewrite needed to linkCreates new article version and triggers appropriate QA, not silent text mutation.
destination removedBroken-link monitor/report catches relation.
keyword-stuffed anchor proposalAnchor quality gate rejects/replaces.
thin term proposed as knowledge pageCreation policy rejects until reusable value exists.
×
Не линковать каждое вхождение каждого термина.
×
Не создавать тысячи thin knowledge pages ради SEO.
×
Не переписывать старый корпус непрерывно при каждом alias update.
×
Не создавать новый category branch автоматически из каждого нового topic cluster.

Knowledge graph
is usable and controlled.

CHECKPOINT 12 PASS WHEN: ✓ existing topic/entity/taxonomy/linking systems audited reuse-first ✓ one canonical term registry exists ✓ aliases / language variants / disambiguation are versioned ✓ duplicate terms can merge without losing history ✓ knowledge-page creation requires reusable value ✓ new articles are linked before SEO/release ✓ links use logical destination IDs, not brittle raw URLs ✓ ambiguous terms can remain intentionally unlinked ✓ link density / same-destination limits exist ✓ related-article relations are explainable and freshness-aware ✓ NEW/FOLLOW_UP/UPDATE relations are reused ✓ old corpus relinking happens in bounded waves ✓ wave reruns are idempotent and failures isolated ✓ sentence-changing link fixes reopen article QA as needed ✓ category tree remains controlled, not auto-exploded ✓ broken/stale link monitoring exists ✓ real new-article linking pilot passes ✓ real old-corpus relink pilot passes ✓ Work exposes registry/pages/links/waves ✓ HANDOFF points to SEO & Indexability next

Продолжить выполнение

Следующий шаг выбирает журнал задач. Все главы уже подготовлены.

[12.1] KNW-01 — карточка выполнения