Skip to content

Orchestration Session Execution

Description

Records the state of an orchestration session command or other execution.

Table Definition
CREATE TABLE "orchestration_session_exec" (
"orchestration_session_exec_id" VARCHAR PRIMARY KEY NOT NULL,
"exec_nature" TEXT NOT NULL,
"session_id" VARCHAR NOT NULL,
"session_entry_id" VARCHAR,
"parent_exec_id" VARCHAR,
"namespace" TEXT,
"exec_identity" TEXT,
"exec_code" TEXT NOT NULL,
"exec_status" INTEGER NOT NULL,
"input_text" TEXT,
"exec_error_text" TEXT,
"output_text" TEXT,
"output_nature" TEXT CHECK(json_valid(output_nature) OR output_nature IS NULL),
"narrative_md" TEXT,
"elaboration" TEXT CHECK(json_valid(elaboration) OR elaboration IS NULL),
FOREIGN KEY("session_id") REFERENCES "orchestration_session"("orchestration_session_id"),
FOREIGN KEY("session_entry_id") REFERENCES "orchestration_session_entry"("orchestration_session_entry_id"),
FOREIGN KEY("parent_exec_id") REFERENCES "orchestration_session_exec"("orchestration_session_exec_id")
)

Columns

NameTypeDefaultNullableChildrenParentsComment
orchestration_session_exec_idVARCHARfalseorchestration_session_execorchestration_session_exec primary key
exec_natureTEXTfalsethe nature of orchestration_session_exec row (e.g. shell, SQL, etc.)
session_idVARCHARfalseorchestration_sessionorchestration_session row this state describes
session_entry_idVARCHARtrueorchestration_session_entryorchestration_session_entry row this state describes (optional)
parent_exec_idVARCHARtrueorchestration_session_execif this row is a child of a parent execution
namespaceTEXTtruean arbitrary grouping strategy
exec_identityTEXTtruean arbitrary identity of this execution
exec_codeTEXTfalsethe shell command, SQL or other code executed
exec_statusINTEGERfalsenumerical description of result
input_textTEXTtrueif STDIN or other technique to send in content was used
exec_error_textTEXTtruetext representation of error from exec
output_textTEXTtrueSTDOUT or other result in text format
output_natureTEXTtruehints about the nature of the output
narrative_mdTEXTtruea block of Markdown text with human-friendly narrative of execution
elaborationTEXTtrueany elaboration needed for the execution

Constraints

NameTypeDefinition
orchestration_session_exec_idPRIMARY KEYPRIMARY KEY (orchestration_session_exec_id)
- (Foreign key ID: 0)FOREIGN KEYFOREIGN KEY (parent_exec_id) REFERENCES orchestration_session_exec (orchestration_session_exec_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 1)FOREIGN KEYFOREIGN KEY (session_entry_id) REFERENCES orchestration_session_entry (orchestration_session_entry_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
- (Foreign key ID: 2)FOREIGN KEYFOREIGN KEY (session_id) REFERENCES orchestration_session (orchestration_session_id) ON UPDATE NO ACTION ON DELETE NO ACTION MATCH NONE
sqlite_autoindex_orchestration_session_exec_1PRIMARY KEYPRIMARY KEY (orchestration_session_exec_id)
-CHECKCHECK(json_valid(output_nature) OR output_nature IS NULL)
-CHECKCHECK(json_valid(elaboration) OR elaboration IS NULL)

Indexes

NameDefinition
sqlite_autoindex_orchestration_session_exec_1PRIMARY KEY (orchestration_session_exec_id)

Relations

er