Drop the local duplicate ETL commit (already on main as 3222713e), keep
CONTEXT.md deleted and move its installation terms into GLOSSARY.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
161 lines
10 KiB
Markdown
161 lines
10 KiB
Markdown
# Project state
|
||
|
||
Updated: 2026-10-06. This is a current snapshot, not a release diary. Stable commands
|
||
and invariants are in [AGENTS.md](AGENTS.md); prior snapshots remain in Git.
|
||
|
||
## Current contracts
|
||
|
||
- Document-first installation ticket #43 provides offline `tht workspace prepare`
|
||
and `tht workspace validate` through a native two-executable bundle. Build and
|
||
test instructions are in [the host CLI guide](tools/tht/README.md). Local validation
|
||
reuses runtime workspace/catalog parsers and explicitly defers runtime Evidence,
|
||
database binding and readiness checks. Ticket #44 adds `tht installation prepare`,
|
||
explicit `installation credentials`, and `installation validate --workspaces PATH`
|
||
for protected application documents, canonical model settings and schema-v1
|
||
database bootstrap inputs. These commands do not start services or import Catalog
|
||
bindings. Ticket #45 adds host `installation preflight` and `installation plan`
|
||
with release/image checks, canonical external diagnostics and private input seals;
|
||
see [the preflight reference](docs/install/installation-preflight.md).
|
||
Ticket #46 adds the maintainer release producer and the first public
|
||
[Linux amd64 prerelease](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.1),
|
||
with Docker Hub core/frontend images and a downloadable native operator bundle.
|
||
See [publication instructions](docs/install/publishing-images.md) and
|
||
[verification evidence](docs/reports/2026-09-28-installation-prerelease.md).
|
||
Ticket #47 delivers `installation apply --plan PATH`: fresh checks, immutable
|
||
pulls, local operator UID, resumable volume initialization, Catalog/Memory migrations
|
||
and service/authentication health. Tests cover the public native command with closed
|
||
stdin and Linux volume/private-secret behavior using published images. Platform success
|
||
explicitly leaves workspace readiness false. The earlier
|
||
[preview.5 release](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.5)
|
||
publishes amd64/arm64 images and native bundles. Its unmodified arm64 archive passed
|
||
apply/retry, UI/admin login and live user revocation in a Linux consumer without host
|
||
language runtimes; see [verification evidence](docs/reports/2026-10-06-installation-apply.md).
|
||
Ticket #48 now adds authenticated binding import after platform health: exact prepared
|
||
repository verification, ordinary local admin login/CSRF, existing encrypted secret
|
||
storage, optimistic versions and container-side Catalog connection tests. Durable
|
||
Catalog import receipts survive administrative deletion; reruns stop on divergence.
|
||
Source/native command, authenticated client, concurrent/recovery and real PostgreSQL
|
||
tests cover this increment. These changes are included from preview.6 onward.
|
||
Ticket #49 adds existing durable Catalog Sync Runs and preprocessing to apply,
|
||
preserving human review (exit 3), curated content and Memory. Named one-shot checks
|
||
cover workspace diagnostics, workflow configuration and Pi/default-model smoke.
|
||
Reports distinguish platform, binding, workspace readiness and manual functional
|
||
acceptance. This increment is included from preview.6 onward.
|
||
Ticket #50 adds an explicit `prepare-source-installation.mjs` producer from an
|
||
isolated committed worktree. Source bundles pin local application image IDs and
|
||
upstream Docker Hub digests; the same native plan/apply path verifies provenance,
|
||
shares journal/locks and never falls back to a build. Ticket #51 adds guarded
|
||
interrupted preprocessing recovery, fencing of delayed/orphan workers and preserved
|
||
pending schema review even during binding retry. The current
|
||
[preview.7 release](https://git.tylconsulting.it/mptyl/ThothII/releases/tag/installation-v0.1.0-install-preview.7)
|
||
includes these increments and fixes local session identity persistence for the
|
||
mapped operator UID. It publishes amd64/arm64 images and native bundles, with
|
||
anonymous pull and image smoke checks. See the
|
||
[completion and acceptance report](docs/reports/2026-10-06-installation-completion.md)
|
||
for consumer results and the next user steps. Real-host acceptance and curated
|
||
examples remain pending; no Windows/Omarchy/macOS acceptance is claimed.
|
||
|
||
- React supports full/embedded rendering independently of local/OIDC/upstream auth,
|
||
with EN/IT UI and immutable session interaction language. See
|
||
[application shell](docs/architecture/application-shell.md) and
|
||
[localization](docs/operations/shell-and-localization.md).
|
||
- PostgreSQL Metadata Catalog owns database identity, binding, schema, descriptions,
|
||
sensitivity and relationships for all core consumers. Workspace schema v4 contains
|
||
identity and optional Evidence only. Installation schema v2 is the authored model
|
||
catalog source. See [overview](docs/architecture/overview.md) and
|
||
[model configuration](docs/general/pi-configuration.md).
|
||
- The harness owns workflow persistence; chat is not the durable session record.
|
||
Memory uses PostgreSQL authority and derived Qdrant dense/BM25 search. Editable
|
||
Evidence has local archive authority and manual consolidation. File save, search
|
||
activation and Git publication have distinct outcomes. See
|
||
[Memory](docs/gestione-memory.md), [Evidence](docs/contracts/curated-evidence-v4.md)
|
||
and [consolidated release evidence](docs/reports/knowledge-archives-release.md).
|
||
- Reference preprocessing must not clear Memory. Use the installation-scoped
|
||
`tht --installation /absolute/path/thothii-installation.yaml workspace preprocess run`
|
||
and its [contract](docs/contracts/workspace-preprocessing-cli.md).
|
||
- DWH sessions are read-only. SSH tunnels support database-management diagnostics
|
||
and metadata synchronization, not NL→SQL session creation; use direct or REST
|
||
transport for sessions.
|
||
|
||
## Installation and workspace boundaries
|
||
|
||
Fresh standalone installations follow the document-first procedures in
|
||
[Italian](docs/install/standalone-manual-it.md) or
|
||
[English](docs/install/standalone-manual-en.md). The guides retain a separate manual
|
||
source path; do not mix its setup commands with a released-bundle installation.
|
||
The [Compose reference](docs/operations/compose-reference.md) is for maintainers,
|
||
not another quick start. Document-first apply runs Catalog and Memory migrations
|
||
before bringing up application services.
|
||
|
||
Descriptors, authentication, provider credentials, certificates and runtime bindings
|
||
stay in protected installation-local paths. Do not copy secrets into examples or
|
||
workspace Git. Legacy runtime snapshots may use absolute paths and protected
|
||
`harness/.env`; do not silently relocate them.
|
||
|
||
PSD authoring is separate at `/Users/mp/projects/tht-workspace-psd`. Its GitHub
|
||
repository was copied to private Gitea
|
||
[workspace_psd](https://git.tylconsulting.it/mptyl/workspace_psd), preserving both
|
||
branches. It is a copy, not automatic synchronization. Running installations were
|
||
not repointed to a different workspace remote.
|
||
|
||
## Recorded deployments and server authority
|
||
|
||
Use the ordered [server handoff](docs/operations/server-codex-handoff.md) for
|
||
coordinated ThothII/Omics upgrades. Omics integration uses GitHub
|
||
`Dallavilla-Tiziano/omics_portal`, with no Gitea relay prerequisite. Omics uses
|
||
embedded/upstream identity, not another ThothII OIDC login. Read
|
||
[upstream authentication](docs/install/authentication-upstream.md) before changes.
|
||
|
||
Last recorded application deliveries (not a fresh runtime attestation):
|
||
|
||
- [Coordinated ThothII/Omics release](docs/reports/2026-09-26-server-release-execution.md):
|
||
core/frontend `497ab840-preflight`, Omics proxy fix `928f7e9f` with existing web
|
||
image retained. Automated acceptance passed; on September 27 the operator confirmed
|
||
browser access, UI controls and session start/stop/resume. Functional browser
|
||
acceptance passed; remaining extended checks are handed off in the
|
||
[server acceptance follow-up](docs/reports/2026-09-27-server-acceptance-handoff.md).
|
||
- [Session dialogs](docs/reports/2026-09-14-session-dialogs-release.md):
|
||
`b1723c34-session-dialogs-20260914`, frontend-only.
|
||
- [Session layout/Memory fix](docs/reports/2026-09-14-session-layout-memory-fix.md):
|
||
`49333a2d-session-memory-fix`, core/frontend.
|
||
|
||
Keep those reports and rollback instructions while operator gates remain open.
|
||
A later deployment does not prove every earlier acceptance item passed.
|
||
|
||
## Remaining acceptance and design gates
|
||
|
||
- The first installation acceptance uses an ad hoc
|
||
[Chinook workspace without Evidence](docs/testing/chinook-installation-smoke.md),
|
||
backed by a separate local PostgreSQL test container. Its fixture import,
|
||
read-only credentials, offline validation, platform apply, binding import and full
|
||
workspace readiness were verified using source and published preview.7 bundles.
|
||
A human-reviewed question and Windows/WSL2 host acceptance remain pending. Evidence
|
||
acceptance and the three curated examples are separate later work.
|
||
- Fresh-machine installation acceptance, including real DWH/model endpoints, remains
|
||
a separate operator exercise, ordered Windows/WSL2, then Omarchy, then macOS.
|
||
- Real IdP/portal login, logout, embedded interaction and PSD semantic acceptance
|
||
follow the [manual matrix](docs/testing/authentication-manual-acceptance.md) and
|
||
delivery reports; synthetic tests do not close them.
|
||
- [Security hardening](docs/plans/2026-09-08-security-hardening-prd.md) is a draft.
|
||
Revalidate SEC01–12 and obtain design approval before implementation or real
|
||
server/IdP/DWH mutation.
|
||
- Optional NER remains opt-in; labeled Italian quality, benchmark and licensing
|
||
acceptance are not implied by document cleanup.
|
||
- Semantic aliases, value descriptions, synonyms/concepts, dialect and multi-schema
|
||
extensions remain explicit design work. Current sensitivity delivery follows the
|
||
Catalog contract; additional policies require their own acceptance.
|
||
- Legacy database UI fallback (`?db-ui=legacy`, dev/staging) and prototype removal
|
||
remain subject to owner acceptance.
|
||
|
||
## Documentation maintenance
|
||
|
||
MkDocs publishes only 22 product/operator pages and five approved assets.
|
||
Architecture, contracts, ADRs, plans, research, tests and release evidence are
|
||
excluded from HTML and search. The repository itself is public: editorial exclusion
|
||
is not confidentiality.
|
||
|
||
The [cleanup record](docs/maintenance/2026-09-15-documentation-cleanup.md) records
|
||
retired sources and retained gates. Main contains source; Actions generates the
|
||
`pages` branch. The live site requires the separate explicit deployment described
|
||
in [public manual publication](docs/operations/public-docs-publication.md).
|