NaCl BA Workflow For Codex
Create workflow decomposition for an existing business process in the graph.
Workflow artifacts remain Russian by default unless the user explicitly
requests another supported output language.
Read ../nacl-core/SKILL.md, ../references/migration-rules.md,
../references/verification-vocabulary.md, and
../references/ba-codex-contract.md before executing the workflow.
Mandatory Graph Execution Contract
This is a graph writer. Apply the BA graph writer contract before Phase 6:
resolve configuration, inspect BA schema/query references, check graph tooling,
load the target BusinessProcess, existing roles, entities, and workflow
steps, then show the confirmed step table and relationship set. If graph tools
or the target process are unavailable, report BLOCKED and provide a
graph-ready plan.
Graph writes are allowed only after the user confirms steps, stereotypes,
performers, artifacts, decisions, and flow. After writing, read back
ba_workflow_steps-equivalent data plus relationship counts before reporting
success.
Input
Requires a BusinessProcess ID such as BP-001.
Pre-Checks
When graph read tools are available:
- Load the target
BusinessProcess, its trigger, result, decomposition flag,
and owner.
- Load existing roles and entities available for binding.
- Check existing workflow steps and ask whether to continue editing, rebuild,
or stop.
If the process is missing or not decomposable, report BLOCKED.
Workflow
- Phase 1: ask the user for ordered steps: who does what, in what order, and
what documents are used. Assign {BP}-S{NN} IDs.
- Phase 2: propose stereotypes:
Бизнес-функцияorАвтоматизируется. - Phase 3: bind each step to exactly one performer.
- Phase 4: bind documents and entities as inputs, outputs, or modifications.
- Phase 5: capture decision points, branches, exceptions, and flow order.
- Phase 6: after confirmation, write workflow nodes and relationships when
graph write tools are available, then query graph data for a canonical table
and diagram.
Stop after every phase and ask the user whether to proceed.
Phase 6 must persist WorkflowStep nodes and HAS_STEP, NEXT_STEP,
PERFORMED_BY, READS, PRODUCES, and MODIFIES relationships. Decision
diamonds are represented as WorkflowStep records with decision semantics.
Workflow Rules
- The graph is authoritative; diagrams are generated views.
- The user provides facts: steps, order, performers, documents, and branching.
- The agent structures IDs, tables, stereotypes, bindings, and diagrams.
- Maximum of 12 steps before proposing subprocess decomposition.
- Do not add steps absent from the user's description.
- IDs follow
{BP}-S{NN}for steps and source-compatible decision or exception
suffixes when branches are modeled.
Capabilities
May Do
- Query target process, roles, entities, and existing workflow steps.
- Structure user-provided steps into canonical workflow tables.
- Propose stereotypes, performer bindings, artifact bindings, and decisions.
- Write confirmed workflow nodes and relationships when graph write tools are
available.
- Generate a diagram from graph evidence.
Must Not Do
- Invent workflow steps or branches.
- Bind performers, artifacts, or decisions without confirmation.
- Write graph data before all relevant phase confirmations.
- Treat a generated diagram as authoritative over graph data.
- Modify project files unless the user explicitly requests diagram file output.
Conditional Tools And Actions
- Pre-checks require graph read tools.
- Workflow writes require graph write tools and explicit confirmation.
- Diagram generation requires graph read evidence after writes.
- Optional board output requires filesystem write access and user request.
Blocked Or Unverified Reporting
- Use
BLOCKEDwhen the target process, graph tools, or confirmation is
unavailable.
- Use
PARTIALLY_VERIFIEDwhen graph writes complete but diagram or read-back
checks are incomplete.
- Use
UNVERIFIEDwhen proposed workflow structure cannot be checked against
graph state.
- Use
FAILEDwith a reason when read-back verification contradicts confirmed
workflow writes.
Source Comparison
- Source Claude skill path:
../../nacl-ba-workflow/SKILL.md
Preserved Methodology
- Business-process workflow decomposition.
- Phase gates for steps, stereotypes, performers, artifacts, decisions, and
graph output.
- Human facts and agent structuring.
- Graph as authoritative source with generated diagram view.
Removed Claude Mechanics
- Non-Codex frontmatter fields.
- Assumed graph tool availability.
- Platform-specific execution wording.
- Unconditional diagram generation.
Codex Replacement Behavior
- Treat graph and file operations as conditional.
- Gate every phase transition and graph write with explicit confirmation.
- Report missing prerequisites with closed verification statuses.
- Keep slash command text as compatibility trigger text.