МАТЧАСТЬMASTER PLAN 5 · TREND & OPPORTUNITY ENGINE

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

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

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

Уточнения для этой главы
Mathchast / Trend · Novelty · Opportunity / 5

DON'T
CHASE
NOISE.

Не просто находить популярное. Вычислять, что реально меняется, что действительно ново и почему именно сейчас это стоит внимания.

Radar даёт observations. Этот слой превращает историю наблюдений в объяснимые кандидаты — без полного research, без написания статьи и без фиктивной уверенности.

TREND ≠ NOVELTY ≠ OPPORTUNITY. WHY NOW IS REQUIRED.
Observations + memory + existing coverage → explainable candidate → Article Duplicate Guard → Research Pack.

Из сигналов —
в редакционный шанс.

Система должна находить не просто высокие числа, а материализующиеся темы, события и углы: где есть движение, новизна относительно мировой и собственной памяти, реальная полезность для читателя и достаточная причина действовать сейчас.

TREND
Что движется?

Скорость, ускорение, breadth, persistence и качество подтверждающих источников во времени.

NOVELTY
Что действительно ново?

Не только новая URL. Новый факт, объект, комбинация, capability, evidence или существенное изменение относительно long memory.

OPPORTUNITY
Стоит ли писать?

Полезность, редакционный fit, evidence availability, coverage gap, потенциальная долговечность/своевременность и стоимость следующего шага.

WHY NOW
Объясни момент.

Каждый promoted candidate обязан иметь машинно-проверяемые supporting observations и короткое человеческое объяснение, почему он интересен именно сейчас.

No stage labelНе вводить отдельную обязательную классификацию «слишком рано / идеально / слишком поздно». Хранить реальные сигналы и объяснение WHY NOW; downstream принимает решение по данным и policy.

Сначала найти
готовые сигналы.

TREND / OPPORTUNITY CAPABILITY AUDIT 1. Inspect branch 3 memory: fingerprints / dedup embeddings / retrieval topic / entity memory article duplicate decisions editorial history 2. Inspect branch 4 Radar: observation schema source/object identity source-native counters/deltas source health discovery provenance 3. Search repo / DB for: trend, score, ranking, novelty, candidate, opportunity, velocity, momentum, burst, growth, topic history, editorial priority, recommendation. 4. Inspect Work docs/UI for any existing ranking logic. 5. Inspect tests and consumers. 6. Classify each capability: REUSE → EXTEND → WRAP → MIGRATE → NEW 7. Only after audit freeze physical tables/modules.
✓
Reuse long memory instead of creating «trend memory» beside it.
✓
Reuse Radar observations as source evidence; не копировать их в новую opaque event store.
✓
Existing article corpus and duplicate decisions participate in opportunity/coverage gap signals.
×
Не создавать один «AI score», который невозможно объяснить или воспроизвести.

Evidence from
different directions.

FamilyExamplesMeaning
velocitynew observations / time, releases, commits, discussions, posts, references.Насколько быстро растёт активность.
accelerationchange of velocity across windows.Начинается ли рост, стабилен ли он или затухает.
breadthindependent sources, regions, languages, source types.Это один echo chamber или реально широкий сигнал.
persistencesignal present across multiple windows.Однодневный spike против устойчивого движения.
source qualitytrusted/primary sources, project/vendor activity, direct releases/docs.Вес подтверждений, а не просто их количество.
semantic noveltydistance from old topics/entities/articles/candidates.Насколько содержание новое относительно long memory.
evidence noveltynew claims/releases/data not seen before.Даже знакомая тема может стать новой из-за новых фактов.
coverage gapour corpus freshness/depth vs candidate.Есть ли редакционный пробел у Mathchast.
reader intentpractical problem, decision, build/use case, comparison need.Есть ли понятная читательская ценность.
timelinessrelease/event/change recency and decay.Почему сейчас, а не через полгода.
durabilityevergreen utility beyond spike.Насколько статья останется полезной после события.
researchabilitysource diversity, primary evidence, conflicts, access.Можно ли собрать надёжный Research Pack.
cost/riskdeep-fetch cost, language barrier, legal/access uncertainty.Цена следующего шага и вероятность тупика.
Signal disciplineRaw counters должны храниться отдельно от normalized features и итоговых scores. Иначе невозможно позже проверить, почему score изменился после новой модели или новых весов.

Не один snapshot.
Несколько окон.

EXAMPLE FEATURE WINDOWS (final durations are configurable / benchmarked) short → recent burst / release / breaking change medium → sustained growth / repeated discussion long → baseline / seasonal / historical comparison For each candidate cluster: current value previous comparable value delta velocity acceleration breadth persistence source mix confidence Never compare: a 24h source against a 30d baseline without normalization.
BASELINE
Baseline должен учитывать неодинаковую частоту источников и пропуски collection. Radar outage не должен выглядеть как падение интереса.
SEASONALITY
Если история достаточна — учитывать повторяющиеся сезонные spikes. На старте хранить данные, не выдумывать сложную seasonal model до benchmark.
DECAY
Event-driven signals естественно затухают; decay policy зависит от signal type и versioned в Settings.
HISTORY
История feature/scores versioned. Нельзя хранить только «последний score», иначе система потеряет собственную память движения.

Three dimensions.
No magic number.

TREND SCORE
Movement.

Velocity + acceleration + breadth + persistence + source-quality confidence. Не означает автоматически «писать».

NOVELTY SCORE
Difference.

Semantic/evidence novelty относительно worldwide memory, previous candidates, existing articles and known entities/topics.

OPPORTUNITY SCORE
Editorial value.

Reader utility + coverage gap + timing + durability + researchability − cost/risk, с configurable policy weights.

CONFIDENCE
Know uncertainty.

Score без confidence вводит в заблуждение. Хранить missing-data penalties, source diversity и known uncertainty отдельно.

VERSION
Каждый score имеет model/formula version + feature snapshot/hash.
EXPLAIN
Хранить top positive/negative contributors и supporting observations; не только число 0–100.
CALIBRATION
На старте использовать простую объяснимую formula/weights. Сложную learned ranker добавлять только после накопления outcomes.
NO UNIVERSAL THRESHOLD
Thresholds зависят от policy/profile и должны benchmark/tune. Не объявлять 73 «правильным» только потому, что выглядит точно.

Group evidence.
Don't merge meaning.

OBSERVATIONS ↓ exact/object dedup already handled by Radar semantic retrieval / topic / entity overlap ↓ candidate cluster ├─ anchor topic/event/entity set ├─ supporting observations ├─ source diversity ├─ time-series features ├─ known related old clusters └─ unresolved splits/merges ↓ score + WHY NOW Cluster is not an article yet.
MERGE
Объединять observations, если они описывают один развивающийся объект/событие/идею. Multi-source confirmation повышает breadth, а не создаёт пять candidates.
SPLIT
Если внутри общего topic появляются разные reader intents/angles или отдельные events — разрешать split с parent relation.
ENTITY MEMORY
Использовать 3.3.3 Topic/Entity Memory для устойчивых aliases/relations; не строить второй topic graph.
CLUSTER HISTORY
Stable cluster identity/history нужна, чтобы не считать тот же растущий сюжет «новой темой» каждый Radar pass.

Compare against
long memory.

WORLD MEMORY
Previous observations/clusters, fingerprints, embeddings, entities/topics и rejected candidates участвуют в novelty checks.
OUR CORPUS
Existing Mathchast articles and article update history показывают, закрыта ли тема уже хорошо.
EVIDENCE RATIO
Измерять долю действительно нового evidence относительно уже известного cluster/article memory.
NEW ANGLE
Знакомый объект может дать новую ценную статью при новом reader intent, capability, failure mode, comparison или substantial change.
TIME CHANGE
Release, regulation, price/availability shift, major update, new evidence или changed practical reality могут переоткрыть старую тему.
Important boundaryNovelty Score не заменяет `Article Duplicate Guard`. Здесь оценивается «насколько новый opportunity signal». Guard позже принимает editorial decision: NEW / FOLLOW_UP / UPDATE_EXISTING / DUPLICATE_REJECT / NEED_REVIEW.

Every candidate
must explain timing.

WHY NOW CONTRACT summary: 1–3 concise sentences because: - signal contributor + time window + observation refs - signal contributor + time window + observation refs - optional counter-signal / uncertainty change: what materially changed since previous known state coverage: what Mathchast currently lacks or has stale confidence: HIGH / MEDIUM / LOW or calibrated numeric confidence expires_or_recheck: when the timing claim should be recalculated
✓
WHY NOW должен ссылаться на реальные observations/history, а не быть свободной маркетинговой фразой.
✓
Контрсигналы сохраняются: например burst высокий, но только из одного источника.
✓
Если объяснение не строится из доступных данных — candidate остаётся low-confidence/needs review, а не получает выдуманную уверенность.

Use AI for ambiguity.
Not arithmetic.

Luna/Sol может самостоятельно исследовать сложную emerging тему или непонятный сайт, если deterministic pipeline не умеет достаточно хорошо понять смысл — но strong-model review должен быть ограниченным, воспроизводимым и основанным на evidence.

TRIGGERS
Ambiguous cluster, unknown terminology, conflicting meanings, high-value unfamiliar source, low-confidence semantic split/merge, unexplained high activity.
INPUT
Compact evidence: candidate cluster, selected observations/links, topic/entity memory, current scores/features, uncertainty questions.
OUTPUT
Clarified concept/angle, recommended split/merge, additional source/search requests, confidence and rationale. Не готовая статья.
NO HIDDEN OVERRIDE
ИИ не должна молча заменить deterministic score. Её result — versioned review signal / structured recommendation.
COST CONTROL
Escalation только для небольшой ambiguous/high-value доли candidates, с quotas/settings и metrics.

A candidate is
an explainable package.

candidate/ ├── candidate_id ├── cluster_id + cluster_version ├── title_hint / topic label ├── entities/topics ├── reader_intent_hints[] ├── possible_angles[] ├── supporting_observation_ids[] ├── trend_score + version ├── novelty_score + version ├── opportunity_score + version ├── confidence ├── why_now ├── feature_snapshot / hash ├── existing_coverage_refs[] ├── related_previous_candidates[] ├── uncertainty / conflicts[] ├── suggested_next_action └── config_hash
NOT ARTICLE BRIEF
Title/angle здесь provisional. Research Pack позже может materially изменить framing.
IMMUTABLE VERSION
Candidate evaluation version pin-ится. Новый Radar data создаёт re-evaluation/version, а не silently rewrites old decision inputs.
LIFECYCLE
OBSERVED → SCORED → PROMOTED / WATCH / REJECT_LOW_VALUE / NEED_REVIEW → re-evaluate when material signals change.
WATCH
Полезное состояние для emerging темы с недостаточной confidence/evidence. Это не фиксированный stage-label «слишком рано»; это operational queue state.

Opportunity found.
Now choose article action.

PROMOTED CANDIDATE ↓ Article Duplicate Guard (3.3.4) Signals reused: exact / near duplicate article embedding similarity topic / entity overlap reader intent claim overlap new evidence ratio new angle time / event change existing article freshness editorial history previous rejected candidates Decision: NEW FOLLOW_UP UPDATE_EXISTING DUPLICATE_REJECT NEED_REVIEW Only NEW / FOLLOW_UP / UPDATE path that requires evidence work proceeds to the next expensive stage.
Cost gateTrend engine не должен сам запускать полный Research Pack. Сначала candidate проходит editorial duplicate/update decision, чтобы не тратить Luna и web/research на материал, который уже существует.

Scores improve
from outcomes.

REJECT HISTORY
Low-value/rejected candidates остаются в long memory с reason и feature snapshot; повторный promotion требует material change.
ARTICLE OUTCOME
После публикации сохранять связь candidate → article → index/traffic/engagement/updates, когда эти данные появятся.
CALIBRATION
Сравнивать predicted opportunity с фактическими outcomes; корректировать weights/thresholds как versioned policy.
NO RETROACTIVE LIE
Новая formula не переписывает исторический score. Можно пересчитать отдельно и хранить new model version.
EXPLORATION
Оставить controlled quota для необычных/low-history candidates, иначе ranking навсегда будет усиливать только знакомые темы.

Tune with evidence.
Not hardcoded guesses.

Setting familyPolicy
trend.feature_windowsShort/medium/long durations; benchmark per signal family.
trend.decay_policySignal-type decay curves/half-life, versioned.
trend.score_weightsExplainable weights/profile; no hidden model constants.
novelty.retrieval_limitsHow much long memory/corpus is compared before escalation.
opportunity.weightsUtility, gap, timing, durability, researchability, cost/risk.
candidate.promotion_thresholdsBenchmark/tune; may be policy profiles but resolve to explicit values.
candidate.watch_recheckWhen WATCH candidates are re-evaluated without new high-priority event.
strong_model.review_budgetQuota/rate/cost bound for ambiguity escalation.
candidate.exploration_quotaControlled capacity for unusual candidates outside dominant ranking.

Нет смысла задавать окончательные численные thresholds до representative replay/benchmark. План фиксирует contracts и измерения, а не выдумывает ложную точность.

See score drift.
See cost drift.

VOLUME
clusters evaluated, promoted, WATCH, rejected, strong-model review count.
DISTRIBUTIONS
Trend/Novelty/Opportunity/confidence distributions by source type/topic/language, with version labels.
CONTRIBUTORS
Top feature contributors and missing-data penalties for every promoted candidate.
STABILITY
Score changes across re-evaluations; detect wild oscillation from tiny observation changes.
FUNNEL
Radar observations → clusters → promoted candidates → Duplicate Guard outcomes → Research starts.
COST
CPU/embedding retrieval/strong-model usage per candidate and per promoted result.
TRACE
candidate_id, cluster_version, feature hash, model/formula versions, config_hash, supporting observation ids.

Simple first.
Replay before trust.

TOP-01

Audit existing ranking logic

Repo/DB/Work search; map reusable memory, Radar data and existing scoring/ranking code.
DONE: reuse matrix + authority boundaries proven.
TOP-02

Freeze cluster contract

Stable cluster identity/version, observation membership, split/merge history, entity/topic reuse.
DONE: replay does not recreate same story as new cluster.
TOP-03

Build feature extraction

Velocity, acceleration, breadth, persistence, source quality, novelty, coverage gap, timing and confidence features.
DONE: deterministic fixtures produce expected features.
TOP-04

Implement score v1

Explainable Trend / Novelty / Opportunity formulas with versioned feature snapshot and contributors.
DONE: same inputs + config → same scores.
TOP-05

Implement WHY NOW

Structured explanation from features + observation refs + change vs previous state + confidence.
DONE: every promoted candidate has traceable why_now.
TOP-06

Candidate lifecycle

SCORED / PROMOTED / WATCH / REJECT_LOW_VALUE / NEED_REVIEW, immutable versions and re-evaluation triggers.
DONE: old reject persists until material change.
TOP-07

Strong-model escalation pilot

Structured review only for ambiguous/high-value cases; evidence-limited input and versioned output.
DONE: no opaque AI overwrite of deterministic score.
TOP-08

Wire Duplicate Guard

Pass promoted candidate with scores/why-now/features to 3.3.4 and persist resulting editorial decision relation.
DONE: duplicate/update decisions block unnecessary research.
TOP-09

Historical replay benchmark

Replay representative past Radar history; inspect precision, missed candidates, duplicates, score stability and source/language bias.
DONE: benchmark report + initial tuned policy.
TOP-10

Work + checkpoint

Candidate list/explanations/history/funnel metrics; sync HANDOFF/Project State and next exact branch.
DONE: checkpoint 5 PASS.
Split ruleЕсли TOP-03/04 окажутся слишком широкими из-за независимых time-series, semantic novelty и corpus-gap contracts — вынести их в 5.x подпланы. Но сначала audit/replay должен доказать, что такая глубина нужна.

Rankings must
survive replay.

TestExpected result
single-source viral spikeTrend may rise, but breadth/confidence prevents fake certainty.
same story across mirrorsSyndication does not multiply breadth as independent evidence.
steady multi-source growthVelocity/persistence/breadth produce explainable positive trend.
old topic + major new releaseNovelty recognizes new evidence/time change rather than blanket duplicate.
high trend, no reader utilityOpportunity can remain low despite Trend Score.
low trend, high practical noveltyCandidate can remain WATCH/exploration instead of being silently lost.
Radar outageMissing observations are not interpreted as organic trend collapse.
formula version changeHistorical score remains; new version is stored separately.
same inputs/configDeterministic score and feature hash reproduce exactly.
cluster re-runStable identity preserved; no duplicate candidate history.
ambiguous term/siteEscalates to structured strong-model review, not full article writing.
promoted existing coverageDuplicate Guard can return UPDATE_EXISTING/DUPLICATE_REJECT before Research Pack.
non-English signalsTopic remains eligible; language itself is not a negative opportunity feature.
×
Не считать score quality доказанным только потому, что формула технически работает.
×
Не обучать learned ranker до появления достаточных outcome labels.
×
Не использовать количество источников без mirror/syndication normalization.
×
Не скрывать missing data внутри нормального-looking score.

Opportunity is
measurable and traceable.

CHECKPOINT 5 PASS WHEN: ✓ existing ranking/scoring logic audited reuse-first ✓ stable candidate cluster identity/history exists ✓ time-window features survive replay ✓ Trend Score is versioned + explainable ✓ Novelty Score uses worldwide + own-corpus memory ✓ Opportunity Score is separate from Trend ✓ confidence / missing-data state is explicit ✓ every promoted candidate has evidence-backed WHY NOW ✓ no fixed "too early / perfect / too late" stage label exists ✓ strong-model review is limited and structured ✓ candidate versions are immutable/reproducible ✓ rejected/WATCH candidates have durable re-evaluation memory ✓ promoted candidates pass through Article Duplicate Guard ✓ unnecessary research is stopped by duplicate/update decisions ✓ historical replay benchmark has been reviewed ✓ Work exposes candidates / contributors / funnel / history ✓ HANDOFF points to Research Pack as next exact branch

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

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

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