STATIYA_POLUCHATEL_1
EXEC-18 · START_PROJECT TEMPLATE
PRE-START_PROJECT / TEMPLATE ONLY

Шаблон START_PROJECT и протокол его заполнения

Этот файл нужен, чтобы после runtime discovery не импровизировать структуру стартового документа. Он заранее фиксирует обязательные разделы, но запрещает подставлять неподтверждённые значения.

12bootstrap sections
15runtime facts required
5mandatory ADRs
0guessed values allowed

01 / Главное правило

Это не START_PROJECT.

Это только шаблон. Настоящий immutable START_PROJECT создаётся после EXEC-17 и утверждения архитектурных ADR.

Запрещено заполнять неизвестное догадками.

Если runtime fact не доказан, он остаётся OPEN и блокирует финальную генерацию bootstrap snapshot.

02 / Обязательные разделы START_PROJECT

S01
PROJECT IDENTITY

Project name, purpose, owner, canonical repo, verified project_root, implementation host.

S02
PRODUCT CONTRACT

Accepted immutable product decisions merged from SP-01…SP-16.

S03
VERIFIED RUNTIME

Only facts proven by EXEC-17 evidence.

S04
ARCHITECTURE ADRS

Crawler, state/queue, logging transport, renderer, deploy adapter.

S05
SECURITY BOUNDARY

Admin access, SSRF, robots, rate limits, browser sandbox, secret policy.

S06
CANONICAL DATA CONTRACTS

crawl_plan, request, classifier result, identity, job state, dataset manifest.

S07
PROJECT STRUCTURE

Verified modules/folders plus /razraba working-state layout.

S08
TEST / RELEASE GATES

GATE-01…GATE-10, release blockers and benchmark reference.

S09
SOURCE REGISTRY

All planning/runtime/ADR/benchmark evidence references.

S10
ACTIVE WINDOW 01

Nearest bounded implementation tasks only.

S11
ROLLBACK

Code/config/deploy rollback paths.

S12
OPEN ITEMS

Explicit unresolved items; no guesses.

03 / Runtime facts required before instantiation

FactRequired status
repo_rootVERIFIED
git_remoteVERIFIED
git_branchVERIFIED
git_commitVERIFIED
runtimeVERIFIED
web_frameworkVERIFIED_OR_PROVEN_ABSENT
worker_queueVERIFIED_OR_PROVEN_ABSENT
state_storeVERIFIED_OR_PROVEN_ABSENT
logging_stackVERIFIED_OR_PROVEN_ABSENT
reverse_proxyVERIFIED
deploy_methodVERIFIED
rollback_methodVERIFIED
services_catalog_sourceVERIFIED
work_ai_index_sourceVERIFIED_OR_NOT_APPLICABLE
auth_modelVERIFIED

04 / Required architecture ADRs

ADRAreaOptions/directionEvidence
ADR-01Crawler coreCrawlee / Scrapy / existing equivalentEvidence from equal bounded spike.
ADR-02Persistent state + queueExisting Work infrastructure firstResume/transaction evidence.
ADR-03Live logs transportExisting mechanism / SSE / WebSocket / pollingRuntime compatibility + UI needs.
ADR-04RendererExisting template layer / Jinja-likeStatic deterministic rendering + escaping tests.
ADR-05Deploy adapterExisting Work deployment methodAtomicity + rollback + live verification.

05 / Forbidden fill behavior

IDRule
F-18-01Do not invent project_root.
F-18-02Do not invent Python/Node versions.
F-18-03Do not choose Crawlee/Scrapy without spike evidence.
F-18-04Do not assume Redis/Valkey/Postgres exists.
F-18-05Do not invent nginx/document-root paths.
F-18-06Do not assume how services.html or work-ai-index are generated.
F-18-07Do not copy secrets into START_PROJECT.
F-18-08Do not include speculative modules/files that do not exist yet unless clearly marked planned.
F-18-09Do not include hundreds of future tasks.
F-18-10Do not mutate START_PROJECT after implementation begins.

06 / Source registry schema

FieldMeaning
source_idStable reference ID.
titleArtifact/evidence title.
path_or_urlLocation.
version_or_dateVersion/date.
domain_areaProduct/runtime/security/testing/etc.
authorityAccepted / verified / reference-only.
statusACTIVE / SUPERSEDED / CONFLICT / EXECUTION_REQUIRED.
supersedes[]Older sources replaced by this source.
conflicts_with[]Explicit conflicts.
accepted_decisions[]Decisions supported by source.
notesShort plain-language note.

07 / Active Window task contract

FieldMeaning
task_idStable ID.
titleOne bounded change.
statusREADY / IN_PROGRESS / BLOCKED / DONE.
inputExact inputs/evidence/files.
process_componentOne component.
what_it_doesPlain language.
what_it_readsFiles/state/config.
what_it_writesFiles/state/artifacts.
outputConcrete deliverable.
next_consumerNext task/component.
acceptanceExecutable criteria.
verificationExact test/command/browser check.
rollback_riskHow to undo + main risk.
dependenciesOnly real task IDs.
source_refsSP/ADR/runtime refs.

08 / Bootstrap machine template

{
  "project": {
    "name": "Autonomous Site Research Pipeline",
    "project_id": "AUTONOMOUS_SITE_RESEARCH_PIPELINE",
    "status": "BOOTSTRAP",
    "owner": "<OWNER>",
    "created_at": "<DATE>",
    "immutable_after_start": true
  },
  "runtime": {
    "project_root": "<VERIFIED>",
    "git_remote": "<VERIFIED>",
    "git_branch": "<VERIFIED>",
    "git_commit": "<VERIFIED>",
    "host": "<VERIFIED>",
    "runtime": "<VERIFIED>"
  },
  "architecture": {
    "crawler_core": "<ADR-01>",
    "state_queue": "<ADR-02>",
    "logging_transport": "<ADR-03>",
    "renderer": "<ADR-04>",
    "deploy_adapter": "<ADR-05>"
  },
  "active_window": {
    "window_id": "AW01",
    "task_count": "<=30",
    "tasks": "<REAL TASKS BASED ON VERIFIED REPO>"
  }
}

09 / Instantiation protocol

StepAction
1Complete EXEC-17 and sanitize evidence.
2Fill runtime_passport.json with VERIFIED facts only.
3Run equal crawler candidate spikes.
4Approve ADR-01…ADR-05.
5Resolve every planning↔runtime conflict.
6Resolve exact repo/module/folder names for first active window.
7Generate START_PROJECT from this template.
8Validate that no UNVERIFIED placeholder remains in critical sections.
9Freeze START_PROJECT file checksum/version.
10Initialize /razraba live state separately.
11Begin AW01-01 or adjusted first real task from canonical state.

10 / Validation before freeze

IDCheck
V-18-01No critical placeholder remains UNVERIFIED.
V-18-02Every architecture choice links to an ADR.
V-18-03Every runtime fact links to evidence.
V-18-04No secret values are present.
V-18-05Repo/root/branch/commit are exact.
V-18-06Active Window has <=30 bounded tasks.
V-18-07Every task has acceptance + verification + rollback.
V-18-08Source registry includes SP-01…SP-16, EXEC-17, ADRs and benchmark reference.
V-18-09Open questions are explicit; no silent guesses.
V-18-10Generated START_PROJECT is marked immutable/bootstrap.

11 / Next exact action

EXECUTE:
Statiya_poluchatel_1_17_RUNTIME_DISCOVERY_EXECUTION_PACKET.html

THEN:
runtime evidence
→ candidate spikes
→ ADR-01…ADR-05
→ conflict review
→ instantiate:
START_PROJECT_AUTONOMOUS_SITE_RESEARCH_PIPELINE_YYYY-MM-DD.html
→ freeze checksum/version
→ initialize /razraba
→ begin Active Window 01