Variable WORKFLOW_KNOWLEDGEConst Experimental
WORKFLOW_KNOWLEDGE: {
authority: readonly [
"Use discovered canonical tool schemas; these workflow descriptions never grant authorization.",
"Bind every step to the current principal, tenant and target. Recheck credentials and RBAC on each action.",
"Persist resource, operation and command references from canonical responses. Model prose cannot create a verified observation.",
"After a lost mutation response reconcile the durable command/operation before retry; never infer failure from a timeout.",
"The human approval inbox and approving principal are distinct from the agent. AwaitingApproval is a successful handoff, not a published result.",
"Keep bootstrap secrets, cloud credentials, signing keys and private environment values outside model context.",
"Large JSON resources can arrive as incomplete text windows. Echo nextCursor as cursor for the same URI and concatenate text per URI before parsing. Bound pages and reject repeated cursors; a first chunk is not the complete process catalog or job result.",
];
knowledgeVersion: "2026-10-21.1";
qualification: "contract-guidance-only";
schemaVersion: "honua.agent-workflow-knowledge/v1";
workflows: readonly [
{
actions: readonly [
"honua_agent_inspect_local",
"honua_agent_install_local",
"honua_agent_connect",
"honua_agent_status",
];
failureRule: "Installation output alone is not a verified or human-paired connection.";
id: "local-bootstrap";
inputReferences: readonly ["host installation profile"];
intent: "Evaluate Honua locally from one persistent MCP registration.";
observedOutcomes: readonly [
"Docker readiness",
"authenticated server MCP negotiation",
"separate human pairing where required",
];
outputReferences: readonly [
"verified target id",
"credential id without credential value",
];
preconditions: readonly [
"Host-selected installation directory",
"Local Docker and compatible Compose",
"Explicit authorization to install",
];
},
{
actions: readonly [
"honua_workspace_get",
"honua_workspace_set_context when changing selection or task; retain expectedRevision",
"honua_workspace_create_turn before execution; capture the submitted contextRevision",
"honua_workspace_get_turn for the active prompt instead of rereading a later selection",
"For a human browser-file selection, read honua_workspace_conversation and the exact human honua_workspace_get_turn; bind that workspaceId and turnId with honua_agent_connect before an agent import task",
"honua_workspace_get_draft and honua_workspace_patch_draft for an existing publish-layer form",
"honua_workspace_submit_draft with a persistent commandId",
"honua_workspace_get_command before retrying a submission with an unknown outcome",
"honua_workspace_append_message for conversation text, never for verified operation receipts",
];
failureRule: "Do not invent browser/workspace references, overwrite dirty forms or retarget an existing turn after navigation. A Studio task binds its real draft id/generation/package key; a workflow-package task binds its immutable package id/version/content hash. A local custom-code run is not a server workflow-package task. Native chat supplies request bindings through its backend; external clients must use the discovered explicit workspace tool contracts and must not assume automatic header binding.";
id: "shared-workspace-context";
inputReferences: readonly [
"workspace id",
"view id",
"target id",
"context revision",
"selected service/layer references",
"task reference from an actual canonical response",
];
intent: "Continue the same authorized GIS task through chat, Console forms and Studio.";
observedOutcomes: readonly [
"current authorized selection",
"frozen prompt target",
"shared form revision",
"canonical command state",
];
outputReferences: readonly [
"immutable turn id",
"shared draft id and revision",
"command id",
"canonical operation/proposal id",
];
preconditions: readonly [
"Discovered honua_workspace_* tools",
"Actual paired workspace and explicit browser view references",
"Current workspace membership, target and resource authorization",
];
},
{
actions: readonly [
"Discover connection/import tools",
"For a browser-file import, create the task only from the bound turn's browserFileSelection id, name, byte length and SHA-256; persist intentId and reconcile unknown outcomes with honua_workspace_get_dataset_import_intent",
"The human Console uploads and prepares the original browser file; the bound agent then reads the exact prepared task and authority descriptor before honua_workspace_submit_dataset_import. Preparation alone is not submission",
"For an installed local Docker target register its catalog through the discovered secret-reference-only connection tool using the host-allowed env:HONUA_LOCAL_DB_PASSWORD reference; never request or reveal the password",
"Verify the returned connection actually targets the ingest catalog before publication; an imported table with no registered connection is not ready to publish",
"Validate source schema and geometry/CRS",
"Execute canonical import or connection",
"Publish via discovered service/layer tool",
"Query the published layer",
];
failureRule: "An accepted job or publish request is not successful ingestion or query verification.";
id: "data-and-services";
inputReferences: readonly [
"connection/source reference",
"upload/artifact reference",
"destination schema",
];
intent: "Connect or import data, publish a service and verify a query.";
observedOutcomes: readonly [
"terminal import outcome",
"stored target CRS verified against canonical table metadata, distinct from the detected source CRS",
"service catalog entry",
"query result with expected schema and representative data",
];
outputReferences: readonly [
"import job id",
"service id",
"layer id or protocol-neutral source reference",
];
preconditions: readonly [
"Verified current target",
"Caller import/connect and publish permissions",
"Explicit source and destination",
];
},
{
actions: readonly [
"Discover Studio tool schemas",
"Create/edit draft under current policy",
"Validate",
"Save immutable version",
"Read/reopen saved version",
"Publish using canonical publication tool",
"Verify published audience access",
];
failureRule: "On conflict reread/reconcile against current revision. On AwaitingApproval preserve proposal id and hand off to the human inbox; do not claim publication.";
id: "studio-map-and-publication";
inputReferences: readonly [
"draft id and revision",
"service/layer/style references",
"intended audience",
];
intent: "Compose/style a map or app, save/reopen its version and publish it for an audience.";
observedOutcomes: readonly [
"saved content reread",
"unrelated edits preserved",
"Published or AwaitingApproval receipt",
"audience access checked after Published",
];
outputReferences: readonly [
"draft id",
"version id",
"publication operation/proposal id",
"published app/map reference",
];
preconditions: readonly [
"Actual service/layer references",
"Shared target and selection",
"Current draft revision",
"Caller draft/publish permissions",
];
},
{
actions: readonly [
"For built-in asynchronous jobs read the complete honua://catalog/processes resource; select executionKind=Job with Async support and its typed inputs",
"Snapshot inputs and graph/code immutably",
"Validate/build in the selected adapter",
"Run with bounded resources",
"Read sanitized diagnostics",
"Correct and rerun as a new snapshot when needed",
"Import output with normal artifact/import tools",
"Query/map the imported output",
];
failureRule: "Do not mix built-in/custom-code graphs or claim syntax-valid code executed. A run artifact is not an imported layer.";
id: "processes";
inputReferences: readonly [
"graph definition or isolated code snapshot",
"input artifact/layer ids",
"adapter/runtime version",
];
intent: "Run a built-in process graph or develop separately sandboxed Python/.NET code and map its output.";
observedOutcomes: readonly [
"failed and corrected run statuses",
"cancellation status when requested",
"output schema/CRS",
"query/map evidence",
];
outputReferences: readonly [
"snapshot/build/run ids",
"diagnostic references",
"output artifact id",
"imported layer reference",
];
preconditions: readonly [
"Discovered Processes capabilities",
"Input resource references",
"Explicit built-in versus custom-code execution mode",
];
},
{
actions: readonly [
"Describe environment",
"Plan aws-ecs via private canonical executor",
"Bind separate signed approval to exact saved-plan digest",
"Apply exact approved plan",
"Emit and verify secretless handoff",
"Generate scoped metadata Git change set",
"Create scoped review commit/PR through create_scoped_gitops_pull_request with the exact configured base",
"Propose config recovery through revert_scoped_gitops_pull_request; separate humans review/merge/approve",
"Request version update or recovery through server-owned ops/proposals",
];
failureRule: "ECS provisioning does not qualify ECS version rollback/recovery. Lambda/EKS require real adapters and separate proof. Metadata change-set generation does not write Git; optional scoped PR/revert adapters write only deterministic review branches and never merge or submit deployment. Syntax/contract tests do not establish live cloud qualification.";
id: "cloud-git-and-recovery";
inputReferences: readonly [
"ECS provisioning operation and plan digest",
"separate approval receipt",
"server metadata release package",
"current and candidate revision",
"known-good revision/recovery policy",
];
intent: "Optionally provision ECS, version scoped GIS configuration, and operate Honua through canonical governed actions.";
observedOutcomes: readonly [
"exact-plan executor outcome",
"authenticated handoff",
"scoped Git diff and commit reread",
"terminal server deployment outcome",
"prior revision restored and rejected candidate quarantined only when qualified recovery is proven",
];
outputReferences: readonly [
"provision binding",
"verified handoff receipt",
"Git commit/PR ids",
"canonical proposal/deploy operation ids",
"recovery evidence",
];
preconditions: readonly [
"Optional private DevOps configured by host",
"Per-action credential/RBAC check",
"Explicit ECS target/environment",
"Human-reviewed plan and configured approval",
];
},
{
actions: readonly [
"Read canonical health/findings",
"Inspect supported operation schema and protection capability",
"Create scoped server proposal",
"Hand proposal to separate human approval inbox",
"Observe canonical operation and verify actual service state",
];
failureRule: "Agent cannot approve its own proposal. Missing adapter/protection evidence is unsupported or unqualified; do not synthesize a rollback or call private experimental rollback.";
id: "day2-operations";
inputReferences: readonly [
"target id",
"findings/evidence refs",
"current/candidate/prior revisions where applicable",
];
intent: "Inspect health and propose version/recovery operations without a parallel execution or approval loop.";
observedOutcomes: readonly [
"AwaitingApproval or canonical execution outcome",
"version/health reread",
"recovery qualification bound to exact backend and server artifact",
];
outputReferences: readonly [
"proposal id",
"operation id",
"approval/audit reference",
"observed service revision",
];
preconditions: readonly [
"Authenticated server target",
"Discovered honua_ops_* and honua_propose_* capabilities",
"Caller operation permissions",
];
},
];
} = ...
Type Declaration
Readonlyauthority: readonly [
"Use discovered canonical tool schemas; these workflow descriptions never grant authorization.",
"Bind every step to the current principal, tenant and target. Recheck credentials and RBAC on each action.",
"Persist resource, operation and command references from canonical responses. Model prose cannot create a verified observation.",
"After a lost mutation response reconcile the durable command/operation before retry; never infer failure from a timeout.",
"The human approval inbox and approving principal are distinct from the agent. AwaitingApproval is a successful handoff, not a published result.",
"Keep bootstrap secrets, cloud credentials, signing keys and private environment values outside model context.",
"Large JSON resources can arrive as incomplete text windows. Echo nextCursor as cursor for the same URI and concatenate text per URI before parsing. Bound pages and reject repeated cursors; a first chunk is not the complete process catalog or job result.",
]
ReadonlyknowledgeVersion: "2026-10-21.1"
Readonlyqualification: "contract-guidance-only"
ReadonlyschemaVersion: "honua.agent-workflow-knowledge/v1"
Readonlyworkflows: readonly [
{
actions: readonly [
"honua_agent_inspect_local",
"honua_agent_install_local",
"honua_agent_connect",
"honua_agent_status",
];
failureRule: "Installation output alone is not a verified or human-paired connection.";
id: "local-bootstrap";
inputReferences: readonly ["host installation profile"];
intent: "Evaluate Honua locally from one persistent MCP registration.";
observedOutcomes: readonly [
"Docker readiness",
"authenticated server MCP negotiation",
"separate human pairing where required",
];
outputReferences: readonly [
"verified target id",
"credential id without credential value",
];
preconditions: readonly [
"Host-selected installation directory",
"Local Docker and compatible Compose",
"Explicit authorization to install",
];
},
{
actions: readonly [
"honua_workspace_get",
"honua_workspace_set_context when changing selection or task; retain expectedRevision",
"honua_workspace_create_turn before execution; capture the submitted contextRevision",
"honua_workspace_get_turn for the active prompt instead of rereading a later selection",
"For a human browser-file selection, read honua_workspace_conversation and the exact human honua_workspace_get_turn; bind that workspaceId and turnId with honua_agent_connect before an agent import task",
"honua_workspace_get_draft and honua_workspace_patch_draft for an existing publish-layer form",
"honua_workspace_submit_draft with a persistent commandId",
"honua_workspace_get_command before retrying a submission with an unknown outcome",
"honua_workspace_append_message for conversation text, never for verified operation receipts",
];
failureRule: "Do not invent browser/workspace references, overwrite dirty forms or retarget an existing turn after navigation. A Studio task binds its real draft id/generation/package key; a workflow-package task binds its immutable package id/version/content hash. A local custom-code run is not a server workflow-package task. Native chat supplies request bindings through its backend; external clients must use the discovered explicit workspace tool contracts and must not assume automatic header binding.";
id: "shared-workspace-context";
inputReferences: readonly [
"workspace id",
"view id",
"target id",
"context revision",
"selected service/layer references",
"task reference from an actual canonical response",
];
intent: "Continue the same authorized GIS task through chat, Console forms and Studio.";
observedOutcomes: readonly [
"current authorized selection",
"frozen prompt target",
"shared form revision",
"canonical command state",
];
outputReferences: readonly [
"immutable turn id",
"shared draft id and revision",
"command id",
"canonical operation/proposal id",
];
preconditions: readonly [
"Discovered honua_workspace_* tools",
"Actual paired workspace and explicit browser view references",
"Current workspace membership, target and resource authorization",
];
},
{
actions: readonly [
"Discover connection/import tools",
"For a browser-file import, create the task only from the bound turn's browserFileSelection id, name, byte length and SHA-256; persist intentId and reconcile unknown outcomes with honua_workspace_get_dataset_import_intent",
"The human Console uploads and prepares the original browser file; the bound agent then reads the exact prepared task and authority descriptor before honua_workspace_submit_dataset_import. Preparation alone is not submission",
"For an installed local Docker target register its catalog through the discovered secret-reference-only connection tool using the host-allowed env:HONUA_LOCAL_DB_PASSWORD reference; never request or reveal the password",
"Verify the returned connection actually targets the ingest catalog before publication; an imported table with no registered connection is not ready to publish",
"Validate source schema and geometry/CRS",
"Execute canonical import or connection",
"Publish via discovered service/layer tool",
"Query the published layer",
];
failureRule: "An accepted job or publish request is not successful ingestion or query verification.";
id: "data-and-services";
inputReferences: readonly [
"connection/source reference",
"upload/artifact reference",
"destination schema",
];
intent: "Connect or import data, publish a service and verify a query.";
observedOutcomes: readonly [
"terminal import outcome",
"stored target CRS verified against canonical table metadata, distinct from the detected source CRS",
"service catalog entry",
"query result with expected schema and representative data",
];
outputReferences: readonly [
"import job id",
"service id",
"layer id or protocol-neutral source reference",
];
preconditions: readonly [
"Verified current target",
"Caller import/connect and publish permissions",
"Explicit source and destination",
];
},
{
actions: readonly [
"Discover Studio tool schemas",
"Create/edit draft under current policy",
"Validate",
"Save immutable version",
"Read/reopen saved version",
"Publish using canonical publication tool",
"Verify published audience access",
];
failureRule: "On conflict reread/reconcile against current revision. On AwaitingApproval preserve proposal id and hand off to the human inbox; do not claim publication.";
id: "studio-map-and-publication";
inputReferences: readonly [
"draft id and revision",
"service/layer/style references",
"intended audience",
];
intent: "Compose/style a map or app, save/reopen its version and publish it for an audience.";
observedOutcomes: readonly [
"saved content reread",
"unrelated edits preserved",
"Published or AwaitingApproval receipt",
"audience access checked after Published",
];
outputReferences: readonly [
"draft id",
"version id",
"publication operation/proposal id",
"published app/map reference",
];
preconditions: readonly [
"Actual service/layer references",
"Shared target and selection",
"Current draft revision",
"Caller draft/publish permissions",
];
},
{
actions: readonly [
"For built-in asynchronous jobs read the complete honua://catalog/processes resource; select executionKind=Job with Async support and its typed inputs",
"Snapshot inputs and graph/code immutably",
"Validate/build in the selected adapter",
"Run with bounded resources",
"Read sanitized diagnostics",
"Correct and rerun as a new snapshot when needed",
"Import output with normal artifact/import tools",
"Query/map the imported output",
];
failureRule: "Do not mix built-in/custom-code graphs or claim syntax-valid code executed. A run artifact is not an imported layer.";
id: "processes";
inputReferences: readonly [
"graph definition or isolated code snapshot",
"input artifact/layer ids",
"adapter/runtime version",
];
intent: "Run a built-in process graph or develop separately sandboxed Python/.NET code and map its output.";
observedOutcomes: readonly [
"failed and corrected run statuses",
"cancellation status when requested",
"output schema/CRS",
"query/map evidence",
];
outputReferences: readonly [
"snapshot/build/run ids",
"diagnostic references",
"output artifact id",
"imported layer reference",
];
preconditions: readonly [
"Discovered Processes capabilities",
"Input resource references",
"Explicit built-in versus custom-code execution mode",
];
},
{
actions: readonly [
"Describe environment",
"Plan aws-ecs via private canonical executor",
"Bind separate signed approval to exact saved-plan digest",
"Apply exact approved plan",
"Emit and verify secretless handoff",
"Generate scoped metadata Git change set",
"Create scoped review commit/PR through create_scoped_gitops_pull_request with the exact configured base",
"Propose config recovery through revert_scoped_gitops_pull_request; separate humans review/merge/approve",
"Request version update or recovery through server-owned ops/proposals",
];
failureRule: "ECS provisioning does not qualify ECS version rollback/recovery. Lambda/EKS require real adapters and separate proof. Metadata change-set generation does not write Git; optional scoped PR/revert adapters write only deterministic review branches and never merge or submit deployment. Syntax/contract tests do not establish live cloud qualification.";
id: "cloud-git-and-recovery";
inputReferences: readonly [
"ECS provisioning operation and plan digest",
"separate approval receipt",
"server metadata release package",
"current and candidate revision",
"known-good revision/recovery policy",
];
intent: "Optionally provision ECS, version scoped GIS configuration, and operate Honua through canonical governed actions.";
observedOutcomes: readonly [
"exact-plan executor outcome",
"authenticated handoff",
"scoped Git diff and commit reread",
"terminal server deployment outcome",
"prior revision restored and rejected candidate quarantined only when qualified recovery is proven",
];
outputReferences: readonly [
"provision binding",
"verified handoff receipt",
"Git commit/PR ids",
"canonical proposal/deploy operation ids",
"recovery evidence",
];
preconditions: readonly [
"Optional private DevOps configured by host",
"Per-action credential/RBAC check",
"Explicit ECS target/environment",
"Human-reviewed plan and configured approval",
];
},
{
actions: readonly [
"Read canonical health/findings",
"Inspect supported operation schema and protection capability",
"Create scoped server proposal",
"Hand proposal to separate human approval inbox",
"Observe canonical operation and verify actual service state",
];
failureRule: "Agent cannot approve its own proposal. Missing adapter/protection evidence is unsupported or unqualified; do not synthesize a rollback or call private experimental rollback.";
id: "day2-operations";
inputReferences: readonly [
"target id",
"findings/evidence refs",
"current/candidate/prior revisions where applicable",
];
intent: "Inspect health and propose version/recovery operations without a parallel execution or approval loop.";
observedOutcomes: readonly [
"AwaitingApproval or canonical execution outcome",
"version/health reread",
"recovery qualification bound to exact backend and server artifact",
];
outputReferences: readonly [
"proposal id",
"operation id",
"approval/audit reference",
"observed service revision",
];
preconditions: readonly [
"Authenticated server target",
"Discovered honua_ops_* and honua_propose_* capabilities",
"Caller operation permissions",
];
},
]