Configure CIP argument keys

Prev Next

Keep CIP and Runtime write arguments manifest-driven. Declare association and write field names on the Business Entity; do not hardcode provider foreign-key vocabulary in platform configuration or prompts.

Runtime classifies capability-execute arguments into platform meta, caller identity, association seeds, and write body before CIP runs. Integrators bind caller identity explicitly and own the seed and body names through published datasource fields.

Prerequisites

Where it lives

Concern Manifest location
Caller identity values CIP template expression {{actor.identityAttributes.<key>}}
Association / FK seed names foreignKeys[].fields (+ targetDatasource)
Writable body attributes exposed + fieldMappings.attributes
Dimension source fields dimensions.*.field
CIP parameter placeholders execution.cip bodyTemplate / step parameters
Inputs whose value is a system key x-aifabrix-refersTo on the CIP operation input property

Platform meta keys (orchestration only — never CRM body fields) include examples such as objective, scope, datasource, idempotencyKey, prior mutation refs, fkSeedFields, and association anchor identifiers. Those travel for Runtime planning; they must not be forwarded as vendor field values.

Caller identity is a separate governed input. Bind an administrator-configured identity key from the verified bearer token with {{actor.identityAttributes.<key>}}. Request JSON, chat context, and user_attributes cannot supply this root. If the verified token lacks the referenced key, Runtime stops before sending the provider request.

Builder MCP

Manifest keys foreignKeys, exposed, execution
Help topics section, dependencyGraph, goldenExample
Repair hooks fieldMappings, exposure

Changing foreign keys or exposed write surfaces affects ABAC, protection, and capability certification — read dependencyGraph before patch.

How to set

  1. List every association parameter the capability needs on foreignKeys[].fields with a clear targetDatasource.
{
  "foreignKeys": [
    {
      "name": "primaryCompany",
      "fields": ["companyExternalId"],
      "targetDatasource": "example-companies"
    }
  ]
}
  1. Bind caller identity when the operation acts on the signed-in person's own record. Put the configured identity key in the CIP path, query, or body template, for example {{actor.identityAttributes.hr.employeeId}}. Keep provider field names in the manifest; do not ask the model to infer identity from a display name or email search.

  2. Align CIP templates so bodyTemplate parameter names match declared fields — not invented vendor aliases in Python or env maps.

  3. Advertise writable attributes from exposed + mappings. Exclude platform identity keys, platform meta keys, association seeds, dimension source fields, and omit / readonly surfaces from invent-your-own write proposals.

  4. Declare inputs that name a system. When an operation input holds a system key, for example an operation that validates an existing system or creates a new one, mark that input property with x-aifabrix-refersTo (schema 2.9.25 or later) instead of describing it only in prose. Use existingSystem when the value must name a system the caller can see and newSystemKey when the value is the key of a system to create, which must not already exist.

{
  "input": {
    "type": "object",
    "properties": {
      "systemKey": { "type": "string", "x-aifabrix-refersTo": "existingSystem" }
    }
  }
}

The keyword is allowed on an input property or one level down on a property of a nested object input, only on type: string, and an operation may declare several such inputs. Runtime takes a declared input's value only from a stated identifier or the model's own argument, never from a system named in prose; a required input that is still empty is asked from the person. A declared input that equals the host system's own key is kept, not stripped as a routing key. The operation still enforces the caller's access to the named system.

  1. Prefer stamped fkSeedFields on continuation after a prior create so the next planned capability seeds only declared association fields.

  2. Validate:

aifabrix datasource validate <datasourceKey>
aifabrix validate <systemKey>
aifabrix verify-trust <systemKey>

Check request-body bindings after an integration update

When a CIP request body or header uses an operation input, bind it through the declared parameter namespace, for example {{parameters.fileContent}} for a declared fileContent input. A bare {{fileContent}} is not an equivalent binding. Keep the template, input declaration and test payload aligned. On Dataplane 2.1.23, an unresolved body/header placeholder or a whole body that renders empty is refused before the provider request is sent.

For file writes, also verify the content type and read back the stored bytes. A successful mapping test alone does not prove that the outbound request carried the intended content. See Connected System tests for upgrading and revalidating affected Microsoft integrations.

Defaults and examples

Argument class Source of names Forwarded to CIP write body?
Platform meta Product Runtime contract No
Caller identity Verified token via actor.identityAttributes binding Only where the CIP template binds it
Association seeds foreignKeys[].fields / stamped fkSeedFields Only as declared association fields
Write body exposed + mappings Yes (writable attributes only)
Declared system input CIP input property with x-aifabrix-refersTo Yes, as the declared input; bound only from a stated identifier

Illustrative checklist for a create-then-associate plan:

  1. Create returns a record identity the Runtime can anchor.
  2. Stamped seeds carry only manifest FK field names.
  3. Update/associate CIP parameters reuse those names.
  4. No provider-specific association field is hardwired in product code or shared configs.

Validate

An enabled dimension field is excluded from model-invented write proposals, but remains part of the required write input. Use an already governed value or ask the person for a missing value, then evaluate it against current grants. Do not remove required input or relax policy to bypass that refusal. Published owner-configured path values remain compiler-bound; legacy artifacts missing those facts need normal republication.

aifabrix datasource validate <datasourceKey>
aifabrix validate <systemKey>

Integration and E2E tests should prove association writes using the published field names. Failures that mention missing association seeds usually mean the manifest omitted foreignKeys[].fields or CIP parameters drifted from those names.

Common mistakes

Mistake Fix
Hardcoding a CRM association field name in product config Declare it on foreignKeys[].fields
Sending idempotencyKey into the vendor body Keep platform meta off the write body
Taking caller identity from request or chat data Bind a verified token key with actor.identityAttributes
Falling back when an identity key is absent Stop before the provider request; fix identity configuration or claims
Letting the model invent FK fields Exclude seeds and identity keys from write proposals
Different names in CIP template vs foreignKeys Align parameter names to the manifest
Describing a system-key input only in prose Declare it with x-aifabrix-refersTo on a type: string input property
Confusing observer flags with argument keys Observers watch metadata changes; they do not name CIP args

Related

Limits

Exact platform meta key sets and planner stamps vary by Runtime release. This page teaches the neutrality law: manifest owns provider field names. Do not paste lab vendor association keys into public examples — use neutral names that match your published datasource.