Primary input
The normal user path starts with one source URL. Optional controls may exist in the UI only when they materially help a particular source; the user should not need technical knowledge of sitemaps or crawling.
Этот документ превращает согласованные ответы владельца в жёсткий продуктовый контракт. Он намеренно не выбирает crawler-библиотеки, базу данных, очередь или конкретный deploy stack: эти решения должны опираться на reuse research и live discovery Work.
The normal user path starts with one source URL. Optional controls may exist in the UI only when they materially help a particular source; the user should not need technical knowledge of sitemaps or crawling.
A single task researches and builds one dataset from one resource/domain. A second resource is a separate task with its own source identity and article IDs.
Primarily article/project portals in DIY and maker topics: woodworking, metalworking, electronics, chips/devices, CNC/CAM, 3D printing and adjacent practical technical publishing.
The human-facing article card is intentionally minimal: sequence number, original article title and link to the original page.
A valid article is a standalone content page with several meaningful sentences and at least one content image. A project write-up or short technical note can qualify.
A page that is effectively only a link/embed to a video, without meaningful written material, is excluded.
If the mechanism cannot confidently decide whether a page is a real article, it is excluded rather than contaminating the dataset.
One HTML batch contains up to 30 valid article records. If the entire source contains fewer than 30, one final partial batch is valid.
After the first up to 30 valid articles are collected and checked, the process stops at an OWNER GATE. The user sees the staged result and decides whether to continue.
After approval, the mechanism continues until it concludes the chosen source corpus is exhausted according to the preflight traversal plan.
The operator sees live logs almost continuously. They must be readable enough that a screenshot or copied snippet can be sent to another AI to diagnose a problem.
The same logical article must appear once even if discovered from multiple sitemap/category/archive/feed paths.
The final HTML series is not a loose list of pages. It keeps stable per-source IDs, batch identity, machine-readable manifests and traversal links so another AI can navigate it directly.
The successful result is already live on Work. The service page links to completed datasets; each dataset has its own master index.
Long-term detailed log history is not a requirement for MVP. Current-run logs, copy/export and a compact run summary are enough. Job state/checkpoints are separate and must survive failures.
Automatic periodic refresh is deferred. The initial data model must not block a future mode that checks an existing dataset for newly published articles.
Статья — самостоятельная контентная страница ресурса, где есть осмысленный письменный материал (обычно несколько содержательных предложений или больше) и хотя бы одно контентное изображение. Страница может быть короткой: важна самостоятельная полезная письменная единица, а не большой объём текста.
| Пример | Описание | Решение |
|---|---|---|
| Short project article | A page with 4–8 meaningful sentences explaining what was made/done + one or more photos. | INCLUDE |
| Long tutorial | Step-by-step or explanatory article with text and images. | INCLUDE |
| Maker note / shop tip | Compact standalone written note that explains a technique or result and has an image. | INCLUDE |
| Product/project write-up | A self-contained page where an author explains a practical build, device, tool, method or experiment. | INCLUDE |
| Video shell | A page whose useful content is essentially only an embedded/external video. | EXCLUDE |
| Category/archive | Listing of other articles; not a standalone article. | EXCLUDE |
| Forum thread/index | Discussion container rather than editorial/project article. | EXCLUDE |
| Service/navigation page | About, tag page, search result, pagination landing, login, subscription, author index. | EXCLUDE |
| Unclear borderline page | Too little text, ambiguous role, uncertain article identity. | EXCLUDE |
| Duplicate/canonical alias | Same logical article found via another URL, redirect or canonical alias. | EXCLUDE_AS_DUPLICATE |
Короткий shop tip из нескольких нормальных предложений может быть полезной статьёй, а длинная category page — нет. Финальный классификационный механизм будет спроектирован в SP-06.
Рекомендуемый контракт: до подтверждения пользователя они не считаются production dataset. После «Продолжить» весь корпус доводится до консистентного финального состояния и только тогда публично деплоится как завершённая база.
URL принят, job создан.
Исследуется структура ресурса и строится traversal plan.
Собираются первые до 30 валидных статей.
Preview готов, требуется кнопка «Продолжить».
Полный обход после подтверждения.
Проверяются дубли, ID, batches, manifests, ссылки и полнота выбранного traversal plan.
Финальные файлы публикуются на Work.
Проверяются реальные production URL после deploy.
Только после successful live verification.
Источник исследован не полностью из-за явно зафиксированного ограничения.
Задача не может продолжаться без исправления.
Корпус исследован, но валидных статей по принятому определению не найдено.
sequence_number · original title · canonical URL / OPEN ↗.
Stable source/article/batch IDs, ordering method, current/previous/next links, master index pointer, canonical URL and verification/discovery metadata. Это служебная связность базы, а не анализ содержания статьи.
Логи идут в отдельном UI-окне практически постоянно, пока job активен.
Не только stack trace: этап, действие, URL/счётчик, результат, причина предупреждения/ошибки.
Скриншот должен содержать достаточно информации, чтобы другая ИИ могла предложить исправление.
Помимо скрина желательно одним действием копировать текущий лог или диагностический пакет.
Долговременный архив всех логов не является MVP-требованием.
Отсутствие log archive не означает потерю прогресса: checkpoint/job state хранится отдельно.
| ID | Критерий | Проверяемое условие |
|---|---|---|
| A-01 | Single URL start | Given a normal source homepage/article portal URL, the user can create a new source job without entering sitemap addresses or crawler rules. |
| A-02 | Plan before crawl | Before mass collection the UI shows a preflight traversal plan: discovered source structures and the intended route/order. If no credible route is found, the job does not silently proceed. |
| A-03 | Live operational visibility | While the job is active, the operator can see stage, current action, counts/progress, warnings/errors and whether the job is RUNNING, WAITING_FOR_OWNER, PARTIAL, FAILED or DONE. |
| A-04 | First 30 checkpoint | The process stops after the first up to 30 valid records are internally checked. The user can review the preview and press Continue. No full public dataset is declared complete before this gate. |
| A-05 | Article precision | The preview contains only pages matching the accepted article definition. Video-only, category, service and clearly irrelevant pages are absent. |
| A-06 | Uncertain exclusion | Borderline pages are excluded by default and must not appear merely to fill a batch to 30. |
| A-07 | Deduplication | A logical article appears once even if discovered from several navigation surfaces. Canonical/redirect aliases do not create extra records. |
| A-08 | Source exhaustion | After Continue, the job finishes only when it reaches a defensible end of the preflight-defined source corpus or explicitly reports a partial/blocking condition. |
| A-09 | Batch contract | All valid records are emitted into ordered HTML batches of max 30. There are no gaps or duplicate sequence IDs. A final batch may contain 1–29 records. |
| A-10 | Human result | Every record visibly exposes at least sequence number, original title and working original URL. |
| A-11 | AI result | Every batch and master index expose machine-readable metadata sufficient for an AI to understand source, range, ordering, current/previous/next relationships and canonical URLs without scraping the visual layout. |
| A-12 | Deploy integrity | Before DONE, every production HTML/asset URL created for the dataset is checked live. Broken deployment means DONE is forbidden. |
| A-13 | Diagnostic logs | On error, a screenshot/copy of the visible log contains enough context for an AI to identify the failing stage and the relevant URL/action/error. |
| A-14 | Recovery | A server/process interruption does not force a complete restart of an already approved long crawl; the job resumes from a safe checkpoint. |
| Сценарий | Требуемое поведение |
|---|---|
| Source has 0 valid articles | Finish with NO_VALID_ARTICLES / not DONE_AS_DATASET. Show why candidates were rejected. |
| Source has 1–29 articles | Create one partial batch; still show the owner preview gate before finalizing. |
| Exactly 30 articles | First batch is also the whole corpus. Owner reviews it; after Continue run final validation and deploy. |
| Article has text but no image | Exclude under current product definition. |
| Article has an image but only a title/caption | Exclude. |
| A source mixes articles with videos | Collect written article pages; exclude video-only pages. |
| A source uses infinite scroll | Implementation detail is delegated to crawl/preflight subplans; product requirement remains finite, explainable source exhaustion. |
| Dates are missing | Do not block product. Ordering is selected by the preflight strategy and documented separately. |
| Sitemap is incomplete | Preflight may combine credible source structures. The final plan must disclose the traversal strategy; silent assumptions are not allowed. |
| Page redirects | Treat redirect/canonical destination as the logical page; do not create an extra record. |
| Same title, different URLs/content | Do not dedupe by title alone. Title equality is insufficient to prove duplicate identity. |
| robots/login/protection blocks pages | Do not bypass access controls. Report PARTIAL/BLOCKED according to later security/crawl contracts. |
Сервис сейчас не строит полнотекстовый RAG и не скачивает статьи в локальную библиотеку. Цель — качественно и воспроизводимо получить карту статей ресурса и опубликовать связанную HTML-базу ссылок.
| ID | Риск | Почему опасно | Базовая мера |
|---|---|---|---|
| R-01 | False positives | Non-article pages pollute the dataset. | First-30 gate + strict uncertain=exclude + benchmark against known resources. |
| R-02 | False negatives | Short valid notes are missed. | Define article around meaningful written content rather than minimum word count only; tune with benchmark. |
| R-03 | Wrong ordering | IDs become unstable or misleading. | Ordering strategy belongs to preflight and must be deterministic/documented before public deploy. |
| R-04 | Incomplete source discovery | Dataset looks complete but misses whole archive branches. | Preflight maps sitemaps/archives/categories before mass crawl and final validation checks coverage against the chosen traversal plan. |
| R-05 | Half-deployed dataset | Work exposes inconsistent master/batch pages. | Stage internally; deploy only validated corpus; verify live URLs before DONE. |
| R-06 | Crawler restart cost | Long source must be scanned again after failure. | Persistent job state/checkpoints; logs may be ephemeral but progress state is not. |
| R-07 | Luna context overload | Coding AI loses requirements when given every document at once. | Each implementation task receives only relevant source refs/contracts and a bounded scope. |
Следующая AI-сессия не должна загружать в active context все будущие планы. Для каждой bounded-задачи ей передаются только релевантные source refs, принятые решения и проверяемый scope.
Теперь можно исследовать готовые crawler/sitemap/parser/job/logging/HTML generation компоненты относительно уже фиксированного product contract.
Нужно узнать реальный repo/project root, deploy target, domain/routes, storage/queue и существующие Work-компоненты. Только runtime-факты.
После SP-02/SP-03 можно детально спроектировать механику исследования нового ресурса и формирования объяснимого traversal plan.
Перейти к Statiya_poluchatel_1_02_REUSE_SKILLS_RESEARCH.html. Архитектуру crawler пока не замораживать.