Add full shell, replaceable Omics adapter and bilingual interaction
Implement approved specification #32 and tickets #33-#37. Keep host authentication server-verified and pin session interaction language. Compile scoped base selectors for browser compatibility and retain full gutters during CSS pruning.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: tht-sessione
|
||||
description: Orchestrator of the Thoth NL->SQL workflow, phases 1-8 (question clarification, memories, rewriting, schema linking, synthesis, CTE plan, final SQL, datamart). Use when working a natural-language question inside a Thoth session.
|
||||
description: Orchestrator of the Thoth NL-to-SQL workflow, phases 1-8 (question clarification, memories, rewriting, schema linking, synthesis, CTE plan, final SQL, datamart). Use when working a natural-language question inside a Thoth session.
|
||||
---
|
||||
|
||||
# Thoth session workflow (phases 1-8)
|
||||
@@ -17,11 +17,19 @@ confirmation and is persisted directly — an option without a payload only asks
|
||||
Continue records the complete join set), `reviewer_confirm` (gate on an artifact / phase transition). Free text
|
||||
arrives via the "Altro/Other" option or by prefixing `!` in chat.
|
||||
|
||||
**Language contract (from the workspace `language` field):** the table/column
|
||||
descriptions and the evidence you read are written in the workspace language (e.g.
|
||||
`it` for PSD). **These instructions are in English; your output to the reviewer and
|
||||
your interpretation of domain terms follow the workspace language.** When in doubt
|
||||
about a domain term, ask the reviewer.
|
||||
**Language contract:** the session manifest's `interaction_language` controls all
|
||||
new reviewer questions, explanations, option labels and rationales, including prose
|
||||
you generate inside review artifacts. It remains authoritative throughout the session,
|
||||
including resume and steering from a browser using a different UI locale. The gate
|
||||
injects this persisted language into each model turn; the language of these instructions
|
||||
and examples does not select the output language.
|
||||
|
||||
`workspace.language` controls workspace-owned documents, catalog descriptions, Evidence
|
||||
and interpretation of domain terms. Preserve quoted source content and prior decisions
|
||||
verbatim. Keep SQL, identifiers, literal values and workspace artifacts unchanged by
|
||||
the interaction preference. Ask about ambiguous domain terms in the interaction language.
|
||||
For a legacy manifest without the field, run `tht session ensure-interaction-language
|
||||
<id> --json` before interacting: it pins workspace language once and accepts no override.
|
||||
|
||||
## Phase map (advance cheat-sheet)
|
||||
|
||||
@@ -153,7 +161,8 @@ When launched with `/riprendi-sessione <id>` you have NO prior conversation —
|
||||
persisted state is your only context. Bootstrap before doing anything else:
|
||||
|
||||
1. `tht session show <id> --json` → read `phase` (the current phase N), `status`, and
|
||||
the manifest (`question`, `database`, `schema`).
|
||||
the manifest (`question`, `database`, `schema`, `interaction_language`). If language
|
||||
is absent, run `tht session ensure-interaction-language <id> --json` and use its value.
|
||||
2. Load the artifacts produced so far with `tht session documents <id> --json`, which
|
||||
returns their keys and contents directly: `question.md` (revised question),
|
||||
`schema_linking.json` (F4 output), `ctes/*.sql` + `cte_tests.json` (F6),
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
---
|
||||
name: tht-sessione
|
||||
description: Orchestrator of the Thoth NL->SQL workflow, phases 1-8 (question clarification, memories, rewriting, schema linking, synthesis, CTE plan, final SQL, datamart). Use when working a natural-language question inside a Thoth session.
|
||||
description: Orchestrator of the Thoth NL-to-SQL workflow, phases 1-8 (question clarification, memories, rewriting, schema linking, synthesis, CTE plan, final SQL, datamart). Use when working a natural-language question inside a Thoth session.
|
||||
---
|
||||
|
||||
# Thoth session workflow (phases 1-8)
|
||||
@@ -17,11 +17,19 @@ confirmation and is persisted directly — an option without a payload only asks
|
||||
Continue records the complete join set), `reviewer_confirm` (gate on an artifact / phase transition). Free text
|
||||
arrives via the "Altro/Other" option or by prefixing `!` in chat.
|
||||
|
||||
**Language contract (from the workspace `language` field):** the table/column
|
||||
descriptions and the evidence you read are written in the workspace language (e.g.
|
||||
`it` for PSD). **These instructions are in English; your output to the reviewer and
|
||||
your interpretation of domain terms follow the workspace language.** When in doubt
|
||||
about a domain term, ask the reviewer.
|
||||
**Language contract:** the session manifest's `interaction_language` controls all
|
||||
new reviewer questions, explanations, option labels and rationales, including prose
|
||||
you generate inside review artifacts. It remains authoritative throughout the session,
|
||||
including resume and steering from a browser using a different UI locale. The gate
|
||||
injects this persisted language into each model turn; the language of these instructions
|
||||
and examples does not select the output language.
|
||||
|
||||
`workspace.language` controls workspace-owned documents, catalog descriptions, Evidence
|
||||
and interpretation of domain terms. Preserve quoted source content and prior decisions
|
||||
verbatim. Keep SQL, identifiers, literal values and workspace artifacts unchanged by
|
||||
the interaction preference. Ask about ambiguous domain terms in the interaction language.
|
||||
For a legacy manifest without the field, run `tht session ensure-interaction-language
|
||||
<id> --json` before interacting: it pins workspace language once and accepts no override.
|
||||
|
||||
## Phase map (advance cheat-sheet)
|
||||
|
||||
@@ -151,7 +159,8 @@ When launched with `/riprendi-sessione <id>` you have NO prior conversation —
|
||||
persisted state is your only context. Bootstrap before doing anything else:
|
||||
|
||||
1. `tht session show <id> --json` → read `phase` (the current phase N), `status`, and
|
||||
the manifest (`question`, `database`, `schema`).
|
||||
the manifest (`question`, `database`, `schema`, `interaction_language`). If language
|
||||
is absent, run `tht session ensure-interaction-language <id> --json` and use its value.
|
||||
2. Load the artifacts produced so far with `tht session documents <id> --json`, which
|
||||
returns their keys and contents directly: `question.md` (revised question),
|
||||
`schema_linking.json` (F4 output), `ctes/*.sql` + `cte_tests.json` (F6),
|
||||
|
||||
@@ -12,8 +12,10 @@ The rewritten question must:
|
||||
3. Replace ambiguous terms with the concepts clarified in Phase 1, citing the
|
||||
evidence that defines them when it exists (evidence id in parentheses).
|
||||
4. Make the expected output explicit: count, list, aggregate, trend.
|
||||
5. Stay in the workspace language, in a form a second reviewer would understand
|
||||
without having seen the conversation.
|
||||
5. Write the persisted question document in the workspace language, in a form a second
|
||||
reviewer would understand without having seen the conversation. Explanations and
|
||||
choices addressed to the reviewer use the manifest's interaction_language; preserve
|
||||
domain terms, identifiers and quoted values in either presentation.
|
||||
|
||||
Format of the proposal to the reviewer:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user