docs: reconcile project status and local stack operations

Refresh entry points and progress checkpoints, document schema revision 0006, and consolidate the final ElevenLabs/GapGPT profile and host prerequisites.

Preserve dated activation evidence and distinguish implementation, targeted validation, incomplete full-suite checks and remaining human acceptance gates.

Validation: 409 local Markdown link targets resolved and staged whitespace checks passed.
This commit is contained in:
amirhosein mazaheri
2026-10-20 09:00:55 +03:30
parent 42400495af
commit 9b5be918d4
15 changed files with 817 additions and 377 deletions
+26 -3
View File
@@ -43,7 +43,7 @@ Proposed field limits: deferred text message 8000 characters; assistant name 120
| D02 | GET `/documents` | Admin | 200 | MVP |
| D03 | GET `/documents/{document_id}` | Admin | 200 | MVP |
| D04 | POST `/documents/{document_id}/retry` | Admin | 202 | MVP |
| D05 | DELETE `/documents/{document_id}?expected_revision=N` | Admin | 202 | Deferred |
| D05 | DELETE `/documents/{document_id}` | Admin | 202 | User-authorized server import (2026-10-18) |
| D06 | GET `/documents/{document_id}/extraction-review` | Admin | 200 | MVP |
| D07 | POST `/documents/{document_id}/extraction-review/decisions` | Admin | 200 | MVP |
| K01 | GET `/knowledge-selection` | Admin | 200 | MVP |
@@ -183,9 +183,9 @@ paths, models or reviewer fields. Rejecting keeps zero publication and a safe
failure reason. Lost worker ownership cannot attach candidates; an admin cannot
approve a fresh OCR response using an old digest.
### D05 — Delete (deferred HTTP/UI)
### D05 — Delete (enabled HTTP/UI, 2026-10-18)
Required `expected_revision` is the current knowledge revision; required idempotency key. Transaction locks selection and document. Mark deleted and inactive; if formerly active, increment knowledge revision and access epoch and invalidate sessions. Physical cleanup is not promised by this response.
JSON body: `{"expected_revision": N}` (positive strict integer; extra fields rejected). Required `expected_revision` is the current knowledge revision; required idempotency key. The authenticated administrator route requires Origin/CSRF validation and uses a bounded 1024-byte JSON body. Transaction locks selection and document. Mark deleted and inactive; if formerly active, increment knowledge revision and access epoch and invalidate sessions. Physical cleanup is not promised by this response.
```json
{"document_id":"10000000-0000-4000-8000-000000000001","deleted":true,"knowledge_revision":3,"access_epoch":2,"cleanup_status":"pending_policy"}
@@ -922,3 +922,26 @@ for this explicitly requested capability. It does not authorize promotion.
Provider secrets and tuned OpenAI speech settings stay server-side. Selection adds
no tables/migrations or document-content versioning.
## Server source import amendment (2026-10-18)
The user explicitly authorized importing deployed document deletion, S2S diagnostics
and model settings. D05 HTTP/UI is enabled under its existing soft-deletion,
revision/epoch, replay and retention rules. The deployed request sends the
revision in the JSON body, not the historical query placeholder. This amendment
records that intentional contract and its Angular consumer.
F01 adds `models`, an array of `{id, label, model}` public identifiers. Roles are
`embedding`, `ocr`, and, when enabled/selectable, `dialogue`, `stt`, `tts`,
`openai` and `gemini`. It contains no credentials or service URLs and does not
promise that provider readiness has passed. The settings UI displays deployed
models; its Live card uses the existing permitted provider selector for the next
conversation. This does not add F02 model/credential editing or a selectable
arbitrary-model API. Existing model profile/revision pinning remains intact.
See [import evidence](../guides/server-source-sync-20261018.md).
## User-authorized evidence admission amendment (2026-10-18)
`search_knowledge` and shared search inspection now return up to ten whole eligible source chunks (previously five), within the unchanged 12,000-character text budget. Cutoff filtering may yield fewer. Schema and source identities are unchanged. Retrieval-policy fingerprint includes `whole-10-12000`; calibration reports must match. Current-turn source reporting remains mandatory; source order does not establish relevance. Local voice enables a bounded extractive output gate before TTS; unsupported text becomes a fixed insufficient-evidence response. See [grounding correction and validation](../guides/strict-grounding-20261018.md).
@@ -103,6 +103,7 @@ Composite FK to users. CHECK expires_at > created_at. Index expires_at for clean
| revision | bigint 1 | Settings optimistic revision |
| knowledge_revision | bigint 1 | Selected-set revision |
| access_epoch | bigint 1 | Invalidation counter for removals |
| voice_models | jsonb NOT NULL, empty object | Object-valued schema preparation added by 0006; public model display uses deployment settings |
| updated_by | uuid nullable | Actor; scoped FK to users |
| updated_at | timestamptz | Last configuration/selection mutation |
@@ -518,3 +519,23 @@ close-on-interruption policy fields are frozen too. No schema migration is neede
old rows/snapshots are not rewritten and credentials/secret-derived hashes are
excluded. Replays retain their original profile; changed/missing effective state
rejects stream admission. See [Phase 2 evidence](../evaluation/local-s2s/phase-02.md).
### Model-settings schema amendment (documented 2026-10-20)
The imported forward revision `0006_voice_model_settings` follows
`0005_live_owner_chain` and adds `organization_settings.voice_models jsonb
NOT NULL DEFAULT '{}'`, with `CHECK (jsonb_typeof(voice_models)='object')`.
It does not add a table or document-content version. Existing rows receive the
empty object; existing embedding/session profile metadata is not rewritten.
Current Live reservation admission requires revision 0006. Ingestion compatibility
also recognizes the new head; its broader compatibility allowance does not imply
that older schemas satisfy Live admission. Apply online forward migrations before
starting the updated API, preserving all applied revisions.
The column is schema preparation: current F01 public model inventory is derived
from deployment settings through the model catalog, not arbitrary values in this
column. F02/model mutation endpoints remain deferred. No provider credentials
belong in this JSON object. Downgrade removes the column and is not a routine
recovery procedure. See [current status](../current-status.md) and
[source-import evidence](../guides/server-source-sync-20261018.md).