МАТЧАСТЬMASTER PLAN 16 · PILOT / RAMP / LEARNING LOOP

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

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

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

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

[16.0.7] Сохранён исходный default publish_mode=direct. Он определяет режим уже разрешённого выпуска и не даёт сам по себе права на production. Разработка, тесты и staging идут по команде запуска плана; production, платные интеграции и увеличение партии требуют существующего явного разрешения нужного масштаба. Повторно разрешение на уже согласованное действие не запрашивать.

[16.0.13] Текущий production current — физический каталог; не применять команду замены symlink, пока не разработан и не проверен переход. REL-06/08 обязаны сначала доказать activation/rollback в отдельном staging root. Failure injection выполняется в staging; намеренно повреждённый релиз не отправлять на живой сайт.

[16.0.18] Корректно остановленная плохая статья подтверждает защиту, но не успех уровня 1. PASS_ADVANCE требует хотя бы одной реально выпущенной статьи с полным provenance и финальными gates. Когорты 5/20/100 не открываются только по общему числу обработанных заданий.

Mathchast / Pilot · Ramp · Learning / 16

PROVE
ONE.
THEN SCALE.

Масштаб — не количество одновременно запущенных задач. Масштаб — способность сохранять качество, объяснимость и восстановление при росте нагрузки.

Финальная ветка production chain: одна реальная статья проходит всё целиком, затем 5, затем 20 production-ready, затем 100 по команде — с измеримыми gates между ступенями.

1 → 5 → 20 → 100. ADVANCE ONLY WHEN THE PREVIOUS LEVEL IS MEASURABLY GREEN.
Real articles → full chain → production outcomes → learning memory → calibrated policies → next ramp level.

Production proof,
not demo proof.

Нужно доказать, что весь Trade Engine работает на реальных темах, сохраняет quality gates, переживает индивидуальные failures, укладывается в ресурсы и формирует полезную learning memory вместо простого накопления логов.

PILOT
One real article.

Не synthetic happy path. Полный путь Radar → release → index/traffic learning с реальными evidence, images, QA and smoke.

RAMP
Controlled growth.

Каждая ступень имеет exit gates по quality, latency, cost, failure isolation and operator burden.

LEARNING
Outcomes become memory.

Результаты возвращаются в source value, ranking, research, Writer instructions, QA, images, linking and release policies.

FAILURE ISOLATION
One article ≠ whole batch.

Сбой одной статьи не должен останавливать 99 остальных, если shared infrastructure remains healthy.

Core ruleНельзя перейти к 100, если на 5 или 20 ошибки скрываются ручной работой оператора. Ручная компенсация учитывается как operational cost/failure, а не как «успех».

Use existing events,
versions and outcomes.

LEARNING / RAMP AUDIT 1. Inspect: task_event / workflow history platform.audit_event article / article_version release history source/radar metrics candidate scores Research Pack metrics Writer/QA/Image/Knowledge/SEO reports Project State / Work health 2. Inspect existing analytics / traffic / index data paths. 3. Search repo/DB: metric, analytics, outcome, traffic, index, learning, calibration, experiment, pilot, batch, benchmark, throughput, cost. 4. Identify which signals already have stable IDs/version refs. 5. Reuse event/report artifacts instead of copying every field into a new "learning database". 6. Add only missing durable outcome relations. 7. Classify: REUSE → EXTEND → WRAP → MIGRATE → NEW
✓
Every learning signal should retain article/candidate/source/release/model/config lineage.
✓
Use existing Work/Project State metrics for operational load where trustworthy.
×
Не создавать generic data warehouse before concrete learning questions are defined.

One article.
No skipped stages.

PILOT CHAIN Source Radar ↓ Trend / Novelty / Opportunity + WHY NOW ↓ Article Duplicate Guard ↓ Research Pack v1 ↓ Writer ├─ READY └─ NEED_MORE_RESEARCH → Pack v2 → Writer ↓ Article Contract & Builder ↓ Fact Gate ↓ Originality Gate ↓ Image Director ↓ Knowledge Linking ↓ SEO / Indexability ↓ Release Queue ↓ Staging / Production Smoke ↓ Released public URL ↓ Index / traffic / operational outcomes ↓ Learning record
REAL TOPIC
Выбрать реальную полезную тему из Radar, а не заранее подготовленный идеальный fixture.
NO BYPASS
Нельзя вручную пропустить failed gate «только для пилота». Пилот должен выявлять contract gaps.
OBSERVE
Записать ручные вмешательства, retries, unclear UI, missing artifacts and operator decisions as pilot findings.
DONE
Pilot считается успешным только после public production smoke and durable downstream learning event.

Success has
many dimensions.

DimensionPilot acceptance evidence
correctnessAll gates/reports coherent; no critical unsupported claims or broken release state.
provenanceCandidate → pack → writer → article version → release → URL lineage reconstructable.
recoverabilityAt least one controlled retry/failure path tested without data corruption.
operationsWork shows blocker/state/artifacts/next action accurately.
costResearch/model/image/operator costs measured sufficiently to estimate scale behavior.
latencyStage durations and queue waits measured, no unknown multi-hour black boxes.
publishPublic URL passes production smoke, sitemap/indexing notification path completes or retries cleanly.
learningPost-release outcome record linked back to candidate/source/config/model versions.

Scale in gates.
Never in hope.

LEVEL A — 1 article goal: prove full chain and observability LEVEL B — 5 articles goal: prove concurrency, diversity, failure isolation, operator workload and mixed paths LEVEL C — 20 production-ready articles goal: prove sustained queue behavior, backpressure, QA consistency, image/research capacity, release batching and learning summaries LEVEL D — 100 on command goal: prove orchestration at target batch scale without 100-way simultaneous overload Advance only after: quality stable critical failures understood manual intervention bounded resources safe recovery proven metrics trustworthy
100 on command ≠ 100 concurrentКоманда на 100 создаёт управляемый batch. Scheduler/backpressure сам решает безопасную параллельность по stage/resource limits.

Five should not
all be happy paths.

MIX
Выбрать разные topic/source/language/research complexity profiles where available.
FORCE PATHS
В наборе желательно естественно получить или controlled-test: NEED_MORE_RESEARCH, UPDATE_EXISTING/FOLLOW_UP, QA fix, image retry and one non-fatal stage failure.
CONCURRENCY
Проверить, что writer/image/research/release bottlenecks queue safely instead of stampeding resources.
OPERATOR
Измерить ручные касания/article and decisions requiring human attention.
EXIT
5/5 не обязаны быть опубликованы; важно, чтобы каждая завершилась корректным RELEASED / STOPPED / REVIEW state without poisoning others.

Twenty exposes
systemic bottlenecks.

QUEUE HEALTH
No uncontrolled growth from stuck leases/retries; aging jobs visible.
QUALITY DRIFT
Fact/originality/image/linking/SEO failure rates remain within reviewed bounds; no degradation hidden by volume.
RESOURCE
Storage, DB, workers, local Qwen, web/research and release paths stay inside safe envelope.
RELEASE
Batch/preflight/release isolation proven; a failed item does not invalidate unrelated production-ready items.
OPERATOR BURDEN
Human review/repair workload is measurable and does not scale linearly with every routine article.
LEARNING
At least several repeated patterns produce concrete policy/instruction/calibration improvements.

Orchestrate one hundred.
Throttle by reality.

USER COMMAND: 100 ARTICLES batch created ↓ candidates selected / ordered ↓ stage schedulers enforce: source/research concurrency Writer claim capacity local Qwen capacity image capacity DB / disk constraints release batch policy strong-model budgets per-article retry budgets ↓ articles progress independently ↓ batch view: queued active waiting research review failed ready released stopped ↓ completion report + learning summary
BACKPRESSURE
Every expensive stage needs bounded concurrency/queue depth; overload slows intake rather than crashing the platform.
PRIORITY
Opportunity/WHY NOW and aging/timeliness may inform ordering, but starvation must be controlled.
CANCEL
Batch or individual article can be paused/cancelled through canonical state transitions.
PARTIAL SUCCESS
Batch completion is a distribution of outcomes, not one boolean.

Track gate outcomes,
not vanity throughput.

AreaKey measures
CandidatePromoted→Duplicate Guard outcomes, research avoided, later duplicate reversals.
ResearchCritical-claim coverage, loops/article, source diversity, unresolved conflicts.
WriterREADY rate, research requests, invalid-output rate, downstream QA fix rate.
Fact QACritical unsupported/misstated claims, rewrite cycles, stale facts.
OriginalitySource-closeness/own-corpus failures and fix rate.
ImagesAttempts/slot, factual/diversity/rights failures.
KnowledgeUseful links/article, ambiguity rejects, broken links.
SEOIndexability/canonical/schema/render failures.
ReleaseSmoke fail/rollback rate, batch isolation, IndexNow retry rate.
HumanManual interventions/article and minutes/decision where measurable.

No single "quality score" should hide critical failure classes. Use a compact scoreboard with hard blockers and distributions.

Measure accepted output,
not raw calls.

RESEARCH
Search/fetch/extraction/strong-model usage, bytes/time, extra research waves.
WRITER
Luna/external task effort, retries, failed claims, manual operator setup.
LOCAL AI
Qwen resource time + validation + fallback cost per accepted local-worker output.
IMAGES
Generation/redraw attempts, provider/local resource cost, failed asset attempts.
PLATFORM
DB/storage/CPU/GPU queue utilization and disk growth.
HUMAN
Approvals, reviews, incident recovery and manual corrections.
UNIT
Report cost/time per released/accepted article and by stage; failed/stopped articles count too.

Outcome memory
must change decisions.

LEARNING RECORD candidate_id / cluster article_id / version release_id source set / source classes trend / novelty / opportunity versions Duplicate Guard decision Research Pack versions + loops Writer mode / instructions version QA outcomes / rewrite reasons image outcomes knowledge/link outcomes SEO outcomes release/smoke outcomes indexing status traffic/engagement metrics when available operator interventions cost / latency summary config_hash model/policy versions observed_at
LONG TERM
Selected claims, Research Packs, Article Packages, candidate/reject history and learning records are durable long-term memory.
RAW
Raw HTML/text remains under branch 3 retention policy; learning record should not depend on keeping every raw page forever.
VERSIONED
Outcome is interpreted against exact policy/model/config versions active at decision time.

Feed outcomes
back to owners.

SubsystemLearning examples
Source RadarWhich source types produce promoted/released articles vs noise/failures.
Trend / OpportunityWhich score patterns lead to useful articles, dead ends, or weak outcomes.
Duplicate GuardLate own-corpus/originality reversals reveal false-new / false-duplicate patterns.
ResearchRepeated QA gaps reveal missing question/source strategies.
WriterRepeated fact/originality failures improve canonical instructions, not random per-task prompts.
Qwen routingProduction disagreement/fallback samples trigger task-route regression/rebenchmark.
ImagesFrequent retries identify weak production mode/provider/slot patterns.
KnowledgeRepeated missing terms/destinations guide knowledge-page creation.
SEOIndexability/render failures guide template/gate improvements.
ReleaseSmoke/rollback patterns improve preflight/runbooks.
No auto-tuning without boundsLearning can recommend or update explicitly approved low-risk settings, but must not silently rewrite critical thresholds/models across the system without versioned evaluation.

Separate immediate quality
from delayed performance.

IMMEDIATE
QA/release/indexability success available at publication time.
DELAYED
Indexing/traffic/engagement/search performance arrive over days/weeks and should update the same learning record over time.
NO FALSE CAUSALITY
Traffic is affected by topic demand, competition, seasonality and distribution; do not treat one article result as proof a Writer prompt or source is globally better.
COHORTS
Compare cohorts by policy/model/source/topic/time only when sample size and confounders make interpretation useful.

Change one thing
when possible.

POLICY / MODEL EXPERIMENT hypothesis target subsystem baseline version candidate version eligible traffic/article cohort metrics hard safety bounds start/end or sample rule rollback rule result decision: ADOPT REJECT EXTEND NEED_MORE_DATA Always preserve: config_hash model/prompt/policy version article/candidate cohort IDs
CANARY
Risky changes start on bounded cohort/shadow route before global rollout.
SAFETY
Experiments never relax critical fact/security/release hard bounds just to improve throughput.
REPRODUCE
Historical article/candidate replay can validate ranking/QA changes before live cohort.

Red flags block
the next level.

QUALITY
Critical unsupported claims, duplicate leakage, originality failures or wrong-image facts escaping gates.
RELEASE
Unexplained smoke/rollback failures or inability to restore known-good production.
STATE
Lost/duplicated tasks, stale claims, non-idempotent retries or Work projection diverging from backend.
RESOURCE
Disk/DB/worker saturation without safe backpressure.
OPERATOR
Routine success requires heavy manual SSH/DB fixes or hidden expert knowledge.
METRICS
If quality/cost/failure metrics are not trustworthy, scaling stops until observability is repaired.

Do not scale
without a checkpoint.

ramp-report.json / Work review level = 1 | 5 | 20 | 100 cohort ids started / completed outcomes: released stopped review failed quality summary cost summary latency summary resource summary operator burden top blockers rollback/incidents learning changes proposed learning changes adopted known risks decision: PASS_ADVANCE PASS_HOLD FIX_AND_REPEAT STOP approved_by? config/policy versions
HOLD
`PASS_HOLD` means current scale works but there is insufficient reason/evidence to increase yet.
REPEAT
After significant fix, repeat the same ramp level rather than assuming the previous evidence still proves the changed system.

Capacity is configured.
Safety remains hard.

Setting familyPurpose
ramp.levelCurrent approved operational scale: pilot/5/20/100.
batch.max_requested_articlesUser-command intake bound; target supports 100 after proof.
batch.stage_concurrencyPer-stage limits; derived from measured resource envelopes.
batch.backpressure_policyQueue/slowdown behavior under load.
learning.outcome_refreshWhen delayed indexing/traffic outcomes are refreshed.
learning.min_sample_for_changeGuard against overreacting to single examples; domain-specific.
experiment.canary_fractionBounded rollout for approved experimental policies.
ramp.advance_policyRequired reviewed gates for moving to next level.

Measure flow,
quality and recovery.

FLOW
Articles/candidates per stage, age, throughput, completion and stop reasons.
QUALITY
All gate outcomes and escaped-defect incidents by article/policy/model cohort.
RECOVERY
Retry success, blocker age, rollback success, stale claim recovery and incident time-to-resolve.
CAPACITY
Queue depths, stage concurrency, DB/storage/GPU/CPU pressure and backpressure activation.
COST
Per accepted/released/stopped article and by stage/model/provider.
LEARNING
Recommendations generated/adopted/rejected, calibration changes and before/after cohort results.

One real article.
Then five.

PIL-01

Audit outcome telemetry

Map existing stage reports/events/release history/traffic-index data and define minimum learning relations without duplicate warehouse.
DONE: full-chain lineage fields and metric sources proven.
PIL-02

Freeze pilot scorecard

Quality/cost/latency/resource/operator/recovery measures and explicit stop/go criteria for level 1.
DONE: pilot cannot be declared success by intuition alone.
PIL-03

Select one real candidate

Use actual Radar/Opportunity output with ordinary production constraints; record selection reason and baseline state.
DONE: real article enters chain without manual pre-baked evidence.
PIL-04

Run full-chain pilot

Candidate → Research → Writer → Builder → QA → Images → Knowledge → SEO → Release → smoke → learning.
DONE: public known-good release or correctly stopped terminal outcome with complete lineage.
PIL-05

Review pilot gaps

Classify every manual intervention, retry, missing metric, unclear state, contract break and operational workaround.
DONE: fixes assigned to owning branches; no hidden workaround remains.
PIL-06

Repeat level 1 after fixes

If material contracts changed, run another real article before advancing.
DONE: pilot scorecard PASS_ADVANCE.
PIL-07

Run five-article cohort

Mixed complexity/source/language/article relations; concurrency/backpressure/failure-isolation/operator burden measured.
DONE: 5-level report reviewed; failures isolated and explainable.
PIL-08

Activate learning loop v1

Persist outcome records and generate bounded recommendations to source/ranking/research/writer/QA/image/link/release owners.
DONE: at least one evidence-backed improvement flows through versioned change process.
PIL-09

Run twenty-article cohort

Sustained production-ready workload with queue/resource/cost/quality/release/batch metrics.
DONE: 20-level report PASS_ADVANCE or explicit HOLD/FIX.
PIL-10

Prove 100-command orchestration

Submit 100-article batch with bounded concurrency/backpressure and per-item isolation; no requirement for simultaneous completion.
DONE: batch progresses safely under measured envelope.
PIL-11

100-level production review

Quality/cost/operator/resource/recovery/learning review, escaped defects, incidents and capacity bottlenecks.
DONE: target-scale operating policy accepted or reduced explicitly.
PIL-12

Checkpoint + handoff

Project State/HANDOFF records current approved scale, measured envelopes, known risks, learning backlog and next exact execution priorities.
DONE: checkpoint 16 PASS.
Execution ruleВ практической реализации после PIL-05 возвращаться в конкретную owning branch/task code для fixes. Не лечить всё внутри «pilot script», иначе production contracts останутся сломанными.

Scale should expose
problems, not hide them.

TestExpected result
one article needs more researchOnly that article waits/resumes; cohort continues.
one Writer failsBounded retry/fallback/terminal state; other items unaffected.
one image slot repeatedly failsOnly owning article/slot blocks or degrades by policy.
one release item fails preflightHealthy unrelated ready items retain their states.
shared production smoke failsAtomic snapshot rollback follows release policy; batch state remains reconstructable.
Qwen queue overloadedBackpressure/fallback; platform does not launch unbounded local inference.
disk reaches high watermarkIntake/staging policy slows/blocks before critical exhaustion.
100 commandCreates controlled batch, not 100 simultaneous heavy jobs.
learning proposes threshold changeVersioned evaluation/approval; no silent global mutation.
traffic weak on one articleNo immediate global policy reversal from one sample.
metrics stale/missingRamp advancement blocked until measurement repaired.
material fix after level PASSRelevant level can be repeated; old proof is not blindly reused.
×
Не считать throughput главным успехом, если quality gates ухудшились.
×
Не считать ручное исправление десятков статей нормальным production throughput.
×
Не auto-tune critical policies from tiny samples.
×
Не повышать ramp level, если rollback/recovery ещё не доказаны.

The engine is
production-proven.

CHECKPOINT 16 PASS WHEN: ✓ one real article completed the full chain without skipped gates ✓ pilot lineage is reconstructable from Radar to public release/outcome ✓ manual interventions are measured and owned ✓ material pilot fixes were re-proven on a fresh article ✓ 5-article cohort proved mixed-path concurrency and failure isolation ✓ 20 production-ready cohort proved sustained queue/resource/quality stability ✓ 100-command batch is safely orchestrated with bounded concurrency ✓ one article failure does not kill unrelated batch items ✓ backpressure works for expensive stages ✓ operator burden is measured and bounded ✓ per-stage cost/latency/resource metrics are trustworthy ✓ quality does not silently decline with throughput ✓ release rollback and recovery remain proven under ramp ✓ learning record links outcomes to candidate/article/model/policy/config versions ✓ learning recommendations route back to owning subsystem ✓ no critical policy auto-tunes without bounded evaluation ✓ delayed indexing/traffic outcomes can update learning memory ✓ ramp reports use PASS_ADVANCE / PASS_HOLD / FIX_AND_REPEAT / STOP ✓ current approved operating scale is visible in Work/Project State ✓ HANDOFF records known envelopes, risks and next exact execution priorities

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

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

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