# Spec Loading Configuration — Integration Builder Load this reference at the start of the requirements phase. ## Progressive Disclosure The requirements spec uses a split-file architecture. Load progressively — not all at once. Table of contents: groups, required items, domain file index. Read this FIRST in Phase 2. Core questions every integration needs. Single-flow — infer flow_count=1, skip. Sync mode, endpoint type, routing, security, org API keys. Source system, component search, connection setup. Destination system. Immediate retry — every flow needs an error handling decision. Sync flows cannot use delayed retry. Defaults to concurrency 1. Load for FIFO, throttling, or singleton. Batching does not apply to ai_agent flows. Load on any batching signal, even without the word "batch": an initial or historical load of records, large or unbounded volume, per-record independence, or one unit of downstream work per record. Skip when none are present — the flow processes its whole payload in one execution. Load if webhook auto-registration or resource setup is needed. Load for polling flows or persistent state needs. Payload shape, config page elements, transformations. ## Spec Features (v4.1) - **`scope`**: `integration` (asked once) or `flow` (asked per flow) - **`maps_to`**: SDK property each answer maps to — use during code generation - **`default`**: Suggested default value for inference - **`note`**: Contextual info — share relevant parts when presenting choices - **`info` on groups**: Group-level context — mention when entering that section - **`{ in: [a, b] }` condition**: Item applicable when answer matches any listed value - **`agent_context`**: Curated narration backbone (2-4 sentences). When present, base your narration on this content. - **`implications`**: Per-option consequence map. When present, you must cover each option's downstream effects. - **`docs`**: Prismatic doc URLs. Fetch on demand per doc-fetch protocol. - **`cookbook_section`**: Heading pointer into answer-to-code-cookbook.md for code generation. - **`references`**: Skill reference file paths with phase and condition gating — load just-in-time. - **`on_answer`**: Per-choice follow-up actions — execute immediately after writing answer. ## Doc-Fetch Protocol | Situation | Action | |-----------|--------| | Presenting a question | Use `agent_context` and `implications` — do not fetch docs | | User asks follow-up beyond context | Fetch the item's `docs` URL | | Code gen: cookbook sufficient | Use `cookbook_section` — do not fetch docs | | Code gen: cookbook doesn't cover pattern | Fetch the item's `docs` URL | | Build/deploy error | Fetch docs to verify current API | | Component actions/connections | Fetch `https://prismatic.io/docs/components/${key}.md` |