Следующее решение владельца
Чтобы закрыть U01, достаточно прислать это разрешение:
Разрешаю один read-only проход PostgreSQL catalog-only по D29 P0: только метаданные схем, таблиц, колонок, ключей, FK, constraints, индексов и версий миграций; без пользовательских строк, секретов, записи, блокировок, миграций и изменения прав. Опубликовать только обезличенный отчёт и receipt.
Consultant context pack
Fresh read-only inventory for an AI consultant. D29 remains a research proposal. This page is the single shareable context URL for review before any P1 or implementation work.
Shared dialogue: open the chronological dialogue log
Date: 2026-09-26 ? Status: READ_ONLY_COMPLETE_WITH_UNKNOWN
[1] How to read this page
- Evidence is split between local workspace, remote Work tree, and runtime application roots.
- Absence from Work does not prove absence from runtime.
- Runtime claims are based on read-only SSH systemd/source inspection and GET requests.
- No source, database, migration, worker, index, publication or deployment change was performed.
- No POST, PUT, PATCH or DELETE live endpoint was called.
[2] Runtime state
| Component | State | Unit state | Observed command/path | Evidence |
|---|---|---|---|---|
| Editor API | active / running | enabled | 127.0.0.1:8134; uvicorn app.main:app | E01 |
| Editor worker | inactive / dead | disabled | worker_entrypoint.py; --dry-run | E02 |
| D15 writer worker | inactive / dead | disabled | python -m d15_writer.worker | E03 |
| Profile API | active / running | enabled | profile_api.py | E04 |
| Scrapegraph | active / running | enabled | scrapegraph-helper.py | E05 |
| Backup timers | active / waiting | enabled | backup, scrape, mail, caretaker, trash cleanup | E06 |
Runtime roots: /mnt/ssd_projects/apps/mathchast_editor, /mnt/ssd_projects/apps/d15_writer, /mnt/data10tb/sites/mathchast/profile-api.
[3] Live probes
| Probe | URL | HTTP | Observation |
|---|---|---|---|
| D29 plan | https://work.mathchast.com/docs/d29-rag-plan.html | 200 | UTF-8 HTML; SHA captured |
| Editor health | https://work.mathchast.com/api/editor/v1/health | 200 | JSON; GET only |
| D22 health | https://work.mathchast.com/api/editor/v1/d22/health | 200 | JSON; GET only |
| Public root | https://mathchast.com/ | 200 | Next markers and /_next/static/ |
| Public about | https://mathchast.com/about/ | 200 | Next markers and /_next/static/ |
| Profile status | https://mathchast.com/profile-api/v1/status | 200 | JSON; GET only |
[4] Local/live comparison
Selected local scope: services/, d22-backend/, public-site/app/, public-site/components/, tools/, deploy/.
Comparison target: same relative paths below /mnt/data10tb/sites/mathchast/work.
- Algorithm: SHA-256.
- Local files: 2013.
- Same: 0.
- Different: 0.
- Remote missing: 2013.
- Interpretation: NOT_COMPARABLE; deployed editor source is in a separate runtime root and has no verified local checkout mapping.
[
{
"url": "https://work.mathchast.com/docs/d29-rag-plan.html",
"status": 200,
"bytes": 104269,
"sha256": "b71b5207496d25bd9b6c6523b9c6764af154ea0d8991d81b1cb1f6cfd9ad9c46"
},
{
"url": "https://mathchast.com/",
"status": 200,
"bytes": 42037,
"sha256": "008fb249a6e43ca5a8b1c54f0b118e174c257a276560d4d1a216d97c9db1c063"
},
{
"url": "https://mathchast.com/about/",
"status": 200,
"bytes": 20134,
"sha256": "bd37059c10497de388c26117f9d08e552a5c3d43b265a32af255c5bd3b6907cd"
}
]
[5] API and schema registry
Runtime API families
| Family | Observed route examples |
|---|---|
| catalog | GET /api/editor/v1/catalog; GET /api/editor/v1/catalog/content |
| articles/workspace/versions | GET /api/editor/v1/articles; GET /api/editor/v1/articles/{article_id}/workspace; GET /api/editor/v1/articles/{article_id}/versions |
| scrape | GET/POST /api/editor/v1/scrape/jobs; GET/POST /api/editor/v1/scrape/batches; GET /api/editor/v1/scrape/storage |
| translation | GET/POST /api/editor/v1/translate/jobs; POST /api/editor/v1/translate/bulk |
| work-files | GET /api/editor/v1/work/files; POST /api/editor/v1/work/files/upload; POST /api/editor/v1/work/files/promote |
| d22 | GET /api/editor/v1/d22/health; GET/POST /api/editor/v1/d22/jobs |
| session | GET /api/editor/v1/session; POST /api/editor/v1/session/unlock |
| reviews | POST /api/editor/v1/reviews |
| GET /api/editor/v1/mail/status; GET /api/editor/v1/mail/messages |
Local API routes
[
{
"methods": [
"GET"
],
"path": "/api/editor/v1/health",
"source": "d22-backend/main.py"
},
{
"methods": [
"GET",
"POST"
],
"path": "/api/editor/v1/d22/jobs",
"source": "d22-backend/d22_receiver_api.py"
},
{
"methods": [
"GET"
],
"path": "/api/editor/v1/d22/health",
"source": "d22-backend/d22_receiver_api.py"
},
{
"methods": [
"GET"
],
"path": "/api/editor/v1/foundation/catalog",
"source": "services/foundation_api.py"
},
{
"methods": [
"GET"
],
"path": "/api/editor/v1/foundation/articles",
"source": "services/foundation_api.py"
},
{
"methods": [
"POST"
],
"path": "/api/editor/v1/foundation/transfer-to-raw",
"source": "services/foundation_api.py"
}
]
Public profile routes observed in local Next.js
[
"/profile-api/v1/status",
"/profile-api/v1/account/me",
"/profile-api/v1/account/register",
"/profile-api/v1/account/login",
"/profile-api/v1/account/logout",
"/profile-api/v1/account/delete",
"/profile-api/v1/account/logout-all",
"/profile-api/v1/consent",
"/profile-api/v1/withdraw",
"/profile-api/v1/events",
"/profile-api/v1/offer-dismiss",
"/profile-api/v1/offer-status"
]
Local schema evidence
services/007_project_scope.sql defines platform.project. services/d15_writer/schema.sql defines editorial.d15_writer_task and editorial.d15_writer_task_event. Live DB schema and applied migration state are UNKNOWN.
[6] Identifier and relation map
| Identifier | Where observed | Status |
|---|---|---|
job_id | D22, scrape, translation, save-internet, popularity, video routes | observed |
article_id | article workspace, annotations, versions, previews | observed |
version_id | article version preview/restore | observed |
source_id | scrape source registry | observed |
batch_id | batch scrape routes | observed |
page_key | D22 page view/assets | observed |
platform.project | local SQL migration 007 | local_schema_only |
editorial.d15_writer_task | local D15 schema | local_schema_only |
editorial.d15_writer_task_event | local D15 schema | local_schema_only |
Observed relations
- article_id -> workspace, annotations, versions, previews
- job_id -> D22 pages/catalog, scrape graph/preview, translation review, save-internet library
- batch_id -> scrape batch state
- source_id -> source registry
- D15 task -> task events in local schema
[7] D29 compatibility
| D29 area | Current evidence | Compatibility | Blocking evidence |
|---|---|---|---|
| Canonical article identity and versions | Article/version routes exist | PARTIAL | Canonical ID semantics and live constraints UNKNOWN |
| Ingestion/source registry | Scrape jobs, batches, sources, D22 and save-internet families exist | PARTIAL | Durable event model not verified |
| RAG knowledge index | Hermes RAG root and Open WebUI Chroma DB observed; D29 integration not proven | PARTIAL | RAG exists; D29 ownership, corpus and freshness still require evidence |
| Worker execution | API active; editor and D15 workers inactive/disabled | BLOCKED | No production worker execution evidence |
| Publication/release gate | Promote/release-package routes exist; public site is live | PARTIAL | Exact publication path UNKNOWN |
| Public Next.js data source | Live HTML has Next markers; local static content exists | PARTIAL | Runtime build/source and content provenance UNKNOWN |
| Backups and restore | Timers and dated .backups artifacts exist | PARTIAL | Restore drill unverified |
| Privacy/retention/access | Profile API active; client routes exist | PARTIAL | Live tables, retention and access evidence UNKNOWN |
[8] Critical UNKNOWN and BLOCKED register
| ID | Status | Question | Basis |
|---|---|---|---|
U01 | UNKNOWN | What live PostgreSQL database, schema, tables and constraints back the runtime editor API? | No live DB read-only schema query performed; local SQL is not proof of live state. |
U02 | BLOCKED | Can local source be matched to deployed runtime source by SHA-256? | Runtime root differs from local/Work roots; Work-relative comparison found 2013 remote-missing paths. |
U03 | BLOCKED | Is the editor worker operational? | systemd inactive/dead and disabled; configured command includes --dry-run. |
U04 | UNKNOWN | What exact publication job copies approved content into the public Next.js artifact? | Public site is live, but runtime public-site source path absent and no publication trace was executed/read. |
U05 | UNKNOWN | Which RAG index/vector store and ingestion freshness policy exist in production? | No verified RAG service/index found in inspected runtime roots. |
U06 | UNKNOWN | Are backup artifacts restorable and has restore been tested? | Timers and backup files exist; no restore test evidence. |
U07 | UNKNOWN | What are authorization boundaries and tenant ownership for article/job identifiers? | Route inventory alone does not establish auth or ownership. |
U08 | UNKNOWN | Which local files are authoritative for the runtime checkout? | Several local implementations and separate server runtime tree coexist. |
Protected paths not inspectable
/mnt/data10tb/sites/mathchast/work/articles-published/mnt/data10tb/sites/mathchast/work/articles-to-publish/raw/mnt/data10tb/sites/mathchast/work/release-packages/mnt/data10tb/sites/mathchast/work/.trash
[9] Backup evidence
- Backup timers were observed as active/waiting and enabled.
- Remote Work
.backupsexists. - A dated D15 backup set and a pre-writer database dump were observed.
- Successful restore into an isolated target was not demonstrated.
[10] Proposed P1 and required permissions
- Map exact deployed runtime source to a local checkout and compare hashes.
- Use a dedicated read-only database role for tables, columns, indexes, constraints and migration history.
- Trace approved work file/release package to the public Next.js artifact.
- Inspect worker queue, lease state and recent logs without starting workers.
- Identify RAG/index implementation, corpus source and freshness evidence.
- Validate backup manifests and plan an isolated restore drill.
Required permissions: read-only SSH/runtime access; read-only DB role; protected Work/release manifest inspection; worker queue/log inspection; separate approval for any restore drill; separate approval before any implementation or publication change.
P1 has not started. Owner decision is required.
[11] Machine-readable appendix
The full source artifacts remain available locally and can be published separately if needed:
inventory.jsonlocal-live-diff.jsonapi-schema-registry.jsonidentifier-map.jsonunknowns.jsonreceipt.mdp1-proposal.md
Inventory JSON
{
"schema": "d29-p0.inventory.v1",
"date": "2026-09-26",
"status": "READ_ONLY_COMPLETE_WITH_UNKNOWN",
"scope": {
"local_workspace": "H:\\__=PYTON_PROJECTS=\\CLI_Freeman\\18_MathChast",
"remote_work": "/mnt/data10tb/sites/mathchast/work",
"remote_runtime_editor": "/mnt/ssd_projects/apps/mathchast_editor",
"remote_runtime_writer": "/mnt/ssd_projects/apps/d15_writer",
"remote_profile_api": "/mnt/data10tb/sites/mathchast/profile-api",
"public_urls": [
"https://mathchast.com/",
"https://work.mathchast.com/"
]
},
"evidence": [
{
"id": "E01",
"basis": "systemctl show mathchast-editor-api.service",
"finding": "active/running, enabled, uvicorn app.main:app on 127.0.0.1:8134"
},
{
"id": "E02",
"basis": "systemctl show mathchast-editor-worker.service",
"finding": "inactive/dead, disabled, entrypoint includes --dry-run"
},
{
"id": "E03",
"basis": "systemctl show d15-writer-worker.service",
"finding": "inactive/dead, disabled"
},
{
"id": "E04",
"basis": "systemctl show mathcast-profile-api.service",
"finding": "active/running, enabled"
},
{
"id": "E05",
"basis": "systemctl show mathchast-scrapegraph.service",
"finding": "active/running, enabled"
},
{
"id": "E06",
"basis": "systemctl show backup timers",
"finding": "backup, scrape-backup, mail-offsite-backup, caretaker, trash-cleanup timers active/waiting and enabled"
},
{
"id": "E07",
"basis": "HTTP GET live endpoints",
"finding": "D29 page 200; editor health endpoints 200; public root/about 200; profile status 200"
},
{
"id": "E08",
"basis": "local source and runtime scan",
"finding": "local Next.js source exists; runtime public-site under Work is absent; runtime editor app has 116 non-excluded files and 59 code files"
},
{
"id": "E09",
"basis": "local SQL scan",
"finding": "local migrations define platform.project and editorial.d15_writer_task plus event table; live DB schema not queried"
},
{
"id": "E10",
"basis": "remote backup scan",
"finding": "remote Work .backups exists and contains dated D15 artifacts including a 1.3 MB pre-writer database dump"
}
],
"local_components": [
"d22-backend",
"services",
"public-site",
"deploy",
"tools"
],
"runtime_components": [
"mathchast-editor-api",
"mathchast-editor-worker",
"d15-writer-worker",
"mathcast-profile-api",
"mathchast-scrapegraph"
],
"public_data_source": {
"observed": "Next.js output with __next_f and /_next/static/",
"local_source": "public-site/app plus public-site/content",
"server_source": "UNKNOWN: /mnt/data10tb/sites/mathchast/public-site absent",
"content_origin": "UNKNOWN: runtime publication input not independently proven"
},
"database": {
"local_schema_files": [
"services/007_project_scope.sql",
"services/008_source_job.sql",
"services/d15_writer/schema.sql",
"services/d15_writer/schema_v2_agent_layer.sql"
],
"live_schema": "UNKNOWN",
"live_connection": "NOT_ATTEMPTED"
}
}