Forge actions
Tier: Premium MX · part of StrataForge (Guildmaster)
forge <action> <parameters>Forge gives Guildmaster new abilities without changing Guildmaster. A module brings an ability with it when it is installed: a Lambda that does the work, and a row in your deployment's forge actions table that names it, says what it returns, and carries instructions for Guildmaster on what to do with the artifact it leaves. You type forge and the action's name; Guildmaster runs it, waits for the result, and follows the instructions. Nothing in Guildmaster is edited when a module adds an action, and nothing leaves your account.
Review your LLM providers, including Amazon Bedrock, for data flight and sufficient isolation for your organization's needs when implementing AI. Learn more: Data protection in Amazon Bedrock
Using it
| You type | What happens |
|---|---|
forge sketch | runs StrataDraw's sketch action (your latest saved sketch) and waits up to 30 seconds |
forge sketch 45 | the same, waiting up to 45 seconds |
forge sketch 45 page=blocks | with a parameter the action declares |
forge sketch 0 | starts it and does not wait |
<parameters> are an optional number of seconds to wait (none: 30; 0: start and do not wait; at most 900), then any name=value pairs the action declares; anything it does not declare is refused. Without forge, Guildmaster can still find an action that fits what you asked for and run it.
The same from a workspace terminal:
strataforge forge find sketch # the few actions that fit, never the whole list
strataforge forge show sketch # its parameters, result and instructions
strataforge forge run sketch 45 # run it and wait
strataforge forge status sketch <run> # look at a run you did not wait forExample. Draw the dashboard you want in StrataDraw and save it. In StrataForge, type forge sketch 45. StrataDraw's Lambda finds your newest saved sketch, Guildmaster receives the image with StrataDraw's instructions ("describe it as StrataBI rows with column widths out of 12"), and answers with the layout. In our deployment that took 19 seconds.

forge sketch hands it your latest StrataDraw sketch; it answers in rows and widths. Real time, on Kimi K3.1 (Bedrock).What happens when you run one
A forge run is a StrataBI tile run, so it uses what StrataBI already has:
- StrataForge checks the parameters against the action's row, and asks you first when the module marked the action as one to confirm.
- It invokes the module's Lambda with the event a StrataBI tile run gets, plus a
forgeblock: who you are (your verified StrataBI user), the conversation, the workspace and the model. - The Lambda writes its result where the event says, under StrataBI's run results, and reports through StrataBI's status writer.
- StrataForge reads the run's row in StrataBI's tile status table every 1.5 seconds until it has succeeded or failed, or your wait is over. Nothing is held open: the wait is a loop in your workspace.
- On success it reads the artifact (an image, JSON, text or a table) and hands it to Guildmaster with the action's instructions. An image goes to models that read images.
The artifact is an ordinary StrataBI result: it expires with StrataBI's results (about two days). Every run is recorded in StrataForge's audit log.
Making a forge action (module authors)
When Guildmaster writes the module for you, it first looks at modules like it that you already have, including their source if it is in your workspace. See Learning from modules you already have.
- The Lambda. Handle
event["forge"]: readforge.userand the parameters (event["inputs"]["inputs"], nested as StrataBI nests a page's inputs), write the result tostatus_context.result_s3_key, and reportSUCCEEDEDorFAILEDthrough the status writer. A module's tile helpers already do this; a Lambda can serve tiles and forge alike. - The row. From the module's own OpenTofu, beside its registry row:
resource "aws_dynamodb_table_item" "forge_sketch" {
count = var.forge_actions ? 1 : 0
table_name = "${var.name_prefix}_forge_actions"
hash_key = "action"
item = jsonencode({
action = { S = "sketch" }
module_id = { S = local.module_id }
function_name = { S = aws_lambda_function.fn["draw"].function_name }
description = { S = "The developer's latest StrataDraw sketch, as an image." }
instruction = { S = "This image captures the developer's intent for a dashboard layout. Describe it as StrataBI rows with column widths out of 12. Build nothing unless asked." }
inputs = { M = { page = { M = { type = { S = "string" }, enum = { L = [{ S = "any" }, { S = "draw" }, { S = "blocks" }] }, default = { S = "any" } } } } }
result = { M = { kind = { S = "image" }, format = { S = "png" }, name = { S = "sketch.png" } } }
timeout_seconds = { N = "60" }
confirm = { BOOL = false }
status = { S = "active" }
})
}- Permissions. The install needs item rights on
*_forge_actionsinstratabi-module.json. - The manual. Say in the module's
llm_context.txtwhat the action is for, so Guildmaster knows when to reach for it. The row's instructions say what to do with one result.
| Row field | Meaning |
|---|---|
action | the name you type, unique in the deployment |
function_name | the module's Lambda (it must belong to this deployment) |
description | one line: what it returns |
instruction | what Guildmaster does with the artifact |
inputs | the parameters it takes: type, choices, default, required |
result | image (PNG), json, text (Markdown) or table (CSV) |
confirm | ask the developer before every run, for actions that change anything |
Controls
- Read-only to StrataForge. Only module installs write the forge actions table; StrataForge may only read it.
- Only your deployment's Lambdas, never StrataBI's own status writer; only the forge rows of the status table and the forge result folder.
- Yours alone. A run is answered only to the user it ran for, and only users StrataBI's access rules give the module can see or run its actions.
- Instructions guide, they do not grant. An action's instructions say what to do with its result. They cannot add tools, loosen confirmations or approve anything: approvals are enforced in code.
- Off when you want.
forge = falsein StrataForge's settings removes the table and every right that goes with it.
Install StrataForge (with forge) before a module that registers actions; a module installed where the table does not exist sets forge_actions = false.
Limits
A wait of at most 900 seconds; results up to 3.7 MB for an image and 200 KB for text. Next: long actions, and several at once, on StrataForge's job workers.
Related: StrataDraw · Guildmaster · StrataForge · Async artifacts · Build a module
Shaleio