Skip to Content
DocsOntologyRuntime Closed Loop

Runtime Closed Loop

Namespace: https://ecosystem.ai/ontology/runtime#

Concepts for ecosystem-runtime: score offers, log contacts, accept feedback, and learn.

Sequence

Client → POST /invocations → InvocationResponse (final_result by rank) → ContactLog written (uuid) Client → POST /response (uuid + offer_name) → ResponseFeedback → ResponseLog written (response_uuid, embeds ContactLog)

Same uuid ties invocation, contact log, and response.

API classes

ClassRole
InvocationRequest/invocations body: campaign, subcampaign, customer, channel, numberOffers, paramsJson (string)
InvocationResponseReturn: uuid, final_result, explore/cache, in_params
FinalResultEntryRanked row: rank + slim OfferResult + result_full
OfferResultSlim offer: uuid, offerName, scores, cost/price
PersonalityOfferResultTrait-oriented result_full (Spend Personality)
ProductOfferResultProduct + bandit result_full (recommenders)
ResponseFeedback/response body: uuid + offers_accepted
AcceptedOfferAccepted slim offer row

Matching accepted offers: prefer offer_name (also offer / offer_treatment_code).

Logging

ClassStore (typical)Role
ContactLoglogging.ecosystemruntimeInvocation log: uuid, predictor, api_params, params, final_result, stats, scoring_data
ResponseLoglogging.ecosystemruntime_responseFeedback log: uuid, responseUuid, embedsContactLog, response payload
ServerInfonestedhostname, address, port, version
InvocationStatsnesteddurations, epsilon, model, error

Links: hasFinalResult, scoringData → open CustomerFeatureDocument; embedsContactLog; hasResponsePayload; respondsTo

Campaign context

ClassRole
CampaignContextIsolated runtime unit (campaign / predictor name)
GlobalSettingsProperties: plugins, logging, offer matrix, param lookup, corpora
FeatureLookupConfigOpen customer/feature DB lookup
DynamicEngagementConfigAlgorithm + contextual variables corpora
OptionOptions-store arm; optionKey joins OfferMatrixEntry
ScoringParamsInternal pipeline bag for plugins

Links: hasOfferMatrix (fixed rows), hasFeatureLookup (open docs), hasDynamicEngagement, plugin uses*

Plugins

ClassConfig key
PrePredictPluginplugin.prescore
PostPredictPluginplugin.postscore
RewardPluginplugin.reward

Full tables: Runtime Catalog · Concept Index

Download: /ontology/runtime.ttl · shapes: /ontology/runtime-shapes.ttl

Last updated on