Host passport
OS, kernel, time, uptime, CPU, RAM, disks.
hostnamectl || true uname -a cat /etc/os-release date -Is uptime nproc free -h df -hT lsblk -f
Это следующий практический пакет после SP-16. Он превращает SP-03 из плана в точную read-only процедуру: собрать факты о Work, сохранить evidence, найти конфликты и подготовить основание для immutable START_PROJECT.
Не устанавливать пакеты, не менять nginx/systemd/Docker/config, не писать в production paths. Сначала только доказательства.
Его можно создать только после того, как runtime facts заполнены VERIFIED, а SP-02 technology shortlist reconciled against actual Work.
OS, kernel, time, uptime, CPU, RAM, disks.
hostnamectl || true uname -a cat /etc/os-release date -Is uptime nproc free -h df -hT lsblk -f
Python, Node, npm/pnpm, uv/pip, Docker/Compose.
python3 --version || true python --version || true node --version || true npm --version || true pnpm --version || true uv --version || true pip3 --version || true docker --version || true docker compose version || true
Find repo/project root, services.html, work-ai-index.html, compose/pyproject/package files.
find /mnt /opt /srv /var/www /home -maxdepth 4 -type d -name .git 2>/dev/null | sed 's#/.git$##' | sort find /mnt /opt /srv /var/www /home -maxdepth 5 -type f \( -name 'work-ai-index.html' -o -name 'services.html' \) 2>/dev/null find /mnt /opt /srv /var/www /home -maxdepth 4 -type f \( -name 'compose.yml' -o -name 'docker-compose.yml' -o -name 'pyproject.toml' -o -name 'package.json' \) 2>/dev/null
Git remote, branch, commit, status, top-level project map.
git status --short --branch git remote -v git rev-parse HEAD git log -5 --oneline --decorate find . -maxdepth 2 -type f | sort | sed -n '1,240p' test -f pyproject.toml && sed -n '1,220p' pyproject.toml || true test -f requirements.txt && sed -n '1,220p' requirements.txt || true test -f package.json && cat package.json || true
Listeners, systemd, Docker containers, compose stacks.
ss -lntup || true
systemctl --type=service --state=running --no-pager || true
docker ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}' || true
docker compose ls || true
Redis/Valkey/Postgres/SQLite/other state stores.
command -v redis-cli >/dev/null && redis-cli --version || true
command -v valkey-cli >/dev/null && valkey-cli --version || true
command -v psql >/dev/null && psql --version || true
command -v sqlite3 >/dev/null && sqlite3 --version || true
docker ps --format '{{.Names}} {{.Image}}' | grep -Ei 'redis|valkey|postgres|sqlite|mysql|mariadb' || true
Nginx/server_name/root/proxy_pass/location for work.mathchast.com.
nginx -T 2>/dev/null | sed -n '1,320p' || true find /etc/nginx -maxdepth 3 -type f -print 2>/dev/null | sort grep -RniE 'work\.mathchast\.com|server_name|root |proxy_pass|location ' /etc/nginx 2>/dev/null | head -n 400
Services page, service routing, global AI index/generator.
grep -RniE 'work-ai-index|services|Сервисы|service' . --exclude-dir=.git | head -n 400 find . -maxdepth 4 -type f \( -name '*.html' -o -name '*.py' -o -name '*.js' -o -name '*.ts' \) | sort | sed -n '1,500p'
Logging libraries, journal/container config, SSE/WebSocket/EventSource patterns.
grep -RniE 'logging|structlog|loguru|winston|pino|sse|websocket|EventSource' . --exclude-dir=.git | head -n 400
journalctl --disk-usage || true
docker ps --format '{{.Names}}' | while read n; do echo '###' $n; docker inspect "$n" --format '{{json .HostConfig.LogConfig}}' 2>/dev/null; done || true
Scripts, services, rsync/scp/systemd/docker deploy conventions.
find . -maxdepth 4 -type f \( -iname '*deploy*' -o -iname '*publish*' -o -name '*.service' -o -name '*.sh' \) | sort grep -RniE 'rsync|scp|nginx|systemctl|docker compose|deploy|publish' . --exclude-dir=.git | head -n 500
DNS + HEAD requests for Work root, work-ai-index, services.
getent hosts work.mathchast.com || true curl -sSIL --max-time 20 https://work.mathchast.com/ || true curl -sSIL --max-time 20 https://work.mathchast.com/work-ai-index.html || true curl -sSIL --max-time 20 https://work.mathchast.com/services.html || true
| ID | Fact | Status | Meaning |
|---|---|---|---|
| FACT-R01 | work_project_root | UNVERIFIED | Exact path to Work project root. |
| FACT-R02 | git_remote | UNVERIFIED | Canonical repository remote. |
| FACT-R03 | git_branch | UNVERIFIED | Current branch. |
| FACT-R04 | git_commit | UNVERIFIED | Current commit hash. |
| FACT-R05 | primary_runtime | UNVERIFIED | Python/Node/other. |
| FACT-R06 | runtime_version | UNVERIFIED | Exact version. |
| FACT-R07 | web_framework | UNVERIFIED | Existing Work backend/frontend framework. |
| FACT-R08 | worker_queue | UNVERIFIED | Existing background task system. |
| FACT-R09 | redis_valkey | UNVERIFIED | Presence/version/ownership. |
| FACT-R10 | database | UNVERIFIED | Existing DB/state store. |
| FACT-R11 | logging_stack | UNVERIFIED | Logger/event transport. |
| FACT-R12 | reverse_proxy | UNVERIFIED | Nginx/other and site mapping. |
| FACT-R13 | deploy_method | UNVERIFIED | Verified publish path/mechanism. |
| FACT-R14 | rollback_method | UNVERIFIED | Known-good rollback approach. |
| FACT-R15 | services_catalog_source | UNVERIFIED | File/route/generator. |
| FACT-R16 | work_ai_index_source | UNVERIFIED | File/route/generator. |
| FACT-R17 | auth_model | UNVERIFIED | Admin/operator access model. |
| FACT-R18 | dataset_public_root | UNVERIFIED | Actual public storage/route convention. |
| Artifact | Purpose |
|---|---|
| evidence/server2_host_passport.txt | RD-01 raw sanitized output |
| evidence/runtime_inventory.txt | RD-02 raw sanitized output |
| evidence/work_location_candidates.txt | RD-03 |
| evidence/work_repo_inventory.txt | RD-04 |
| evidence/service_inventory.txt | RD-05 |
| evidence/stateful_services_inventory.txt | RD-06 |
| evidence/nginx_work_routes.txt | RD-07 |
| evidence/work_catalog_routes.txt | RD-08 |
| evidence/logging_inventory.txt | RD-09 |
| evidence/deploy_inventory.txt | RD-10 |
| evidence/live_work_http.txt | RD-11 |
| runtime_passport.json | Normalized VERIFIED facts |
| runtime_conflicts.json | Planning vs runtime conflicts |
| architecture_candidates_reconciled.json | SP-02 candidate statuses after discovery |
| ID | Redaction rule |
|---|---|
| RED-01 | Never copy password/token/API key/cookie/private key values. |
| RED-02 | Environment variable names may be recorded; values must be redacted. |
| RED-03 | If command output includes secrets, sanitize before saving evidence. |
| RED-04 | Private paths may be recorded inside internal evidence, but never copied to public dataset output. |
| RED-05 | Do not cat secret stores, .env files, SSH keys or credentials files. |
| ADR | Decision |
|---|---|
| ADR-CRAWLER | Choose Crawlee vs Scrapy or another already-present compatible core after equal spike. |
| ADR-STATE | Choose persistent job state/queue using existing Work infrastructure first. |
| ADR-LOGGING | Choose live event transport + structured logging. |
| ADR-RENDERER | Choose existing renderer or Jinja-like template layer. |
| ADR-DEPLOY | Bind to real Work deploy/rollback mechanism. |
| ID | Criterion |
|---|---|
| A-17-01 | All RD-01…RD-11 executed read-only or explicitly marked blocked. |
| A-17-02 | Work project root and repository are VERIFIED. |
| A-17-03 | Active branch and commit are VERIFIED. |
| A-17-04 | Primary runtime and versions are VERIFIED. |
| A-17-05 | Queue/state/logging/deploy systems are VERIFIED or explicitly proven absent. |
| A-17-06 | Reverse proxy/domain mapping is VERIFIED. |
| A-17-07 | Services catalog and work-ai-index update mechanisms are located. |
| A-17-08 | No secret values are stored in evidence. |
| A-17-09 | Conflicts with SP-01…SP-16 are recorded explicitly. |
| A-17-10 | Architecture candidate statuses are reconciled. |
| A-17-11 | START_PROJECT remains uncreated until all critical runtime facts above are verified. |
WHEN ALL CRITICAL RUNTIME FACTS ARE VERIFIED: 1. reconcile SP-02 candidates; 2. run equal bounded crawler spikes; 3. create ADR-CRAWLER / ADR-STATE / ADR-LOGGING / ADR-RENDERER / ADR-DEPLOY; 4. resolve planning ↔ runtime conflicts; 5. create immutable: START_PROJECT_AUTONOMOUS_SITE_RESEARCH_PIPELINE_YYYY-MM-DD.html 6. initialize /razraba canonical state; 7. start Active Window 01 from SP-16.