OptionalBuildNumber of times the orchestrator has dispatched Database Schema Builder. Incremented by the deterministic intercept in DatabaseDesignerAgent each time Intercept 3 fires. Prevents infinite retry when the builder fails — the framework discards a failed sub-agent's newPayload, so DatabaseDesignerResult never propagates back; without this counter the intercept would re-fire every turn until the agent run is killed.
Reset to 0 when Intercept 2 fires (user re-approves, triggering fresh validation).
OptionalcallerPopulated by the calling agent in subagent mode.
Contains the pre-researched entity spec and invocation metadata.
Ignored when mode !== 'subagent'.
OptionalDatabaseFinal outcome written by the Schema Builder sub-agent.
OptionalentityExisting entity research written by the Schema Designer after it queries the Database Research Agent in Step 1. Used to surface potential duplicates or FK targets to the user. Key matches SubAgentOutputMapping in .database-designer.json.
OptionalFunctionalNatural-language requirements document produced by the Requirements Analyst sub-agent (standalone mode only). Markdown format.
OptionalmodeOperating mode set by whoever initiates the agent run.
'standalone': full conversational flow (default when omitted)'subagent': fast path — caller provides callerContext.tableSpecs,
Requirements Analyst is skippedOptionalSchemaSchema design artefacts produced by the Schema Designer sub-agent.
OptionalValidationValidation outcome written by the Schema Validator sub-agent.
Root payload passed through the entire Database Designer agent chain.
Standalone mode (default)
The user converses directly with Database Designer. The Requirements Analyst and Schema Designer sub-agents populate the first two sections sequentially before the code-based Validator and Builder take over.
Subagent mode (
mode === 'subagent')Invoked by another agent (e.g. Planning Designer) that has already determined what entity is needed. The caller provides
callerContext.tableSpecsand the orchestrator skips Requirements Analyst, routing directly to Schema Designer.