Skip to main content

Serverless Function Ontology

Cloud Computing Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 11 November 2026
Audio Overview
KIRETH RESEARCH — SEMANTIC LIBRARY
SERVERLESS FUNCTION ONTOLOGY — FLOW ALGEBRA v1.0
Category: Computational Entities > Cloud Computing Entities
Authors: Mark Anthony Higgins — Sky Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/cloud-computing-entities/serverless-function-ontology.html
Prepared: 11 November 2026
Status: Constructed, topic-level Flow Algebra mapping; not a verified transcription of the webpage's embedded ontology.

1. PURPOSE
Represent an event-triggered, provider-managed function as an entity with code, configuration, invocation inputs, runtime state, permissions, outputs and operational constraints. Distinguish the logical function from each transient execution instance.

2. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: incoming event/request, deployment metadata, invocation context and observations.
R_t: relationships among function, trigger, runtime, dependency, identity, resource, output and monitoring event.
B_t: runtime, memory, timeout, concurrency, authentication, network and policy boundaries.
K_t: available knowledge about platform capabilities, handler contracts, retries and dependencies.
E_t = expand(I_t, R_t)
V_t = {x in E_t | satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, observation_(t+1))
The argmax is a conceptual ranking of eligible actions, not a guarantee of globally optimal execution.

3. ENTITY MODEL
ServerlessFunction: function_id, version, handler, runtime, deployment_artifact, configuration, permissions, trigger_bindings.
FunctionVersion: immutable deployment identity or digest, compatibility contract, release timestamp.
Trigger: event source, event type, filter, delivery contract and authentication context.
Invocation: invocation_id, event_id, payload, received_at, deadline, attempt, correlation_id.
ExecutionEnvironment: runtime instance, resource limits, lifecycle and isolation properties.
Dependency: service endpoint, secret reference, storage or messaging resource.
ExecutionResult: status, response, side effects, duration, error category and trace identifiers.
Policy: allowed principals, actions, resource scopes, concurrency and network restrictions.

4. RELATIONSHIP GRAPH
Trigger --invokes--> ServerlessFunction
ServerlessFunction --has_version--> FunctionVersion
Invocation --targets--> FunctionVersion
Invocation --runs_in--> ExecutionEnvironment
ServerlessFunction --uses--> Dependency
Invocation --subject_to--> Policy
Invocation --produces--> ExecutionResult
ExecutionResult --emits--> TelemetryEvent
Invocation --correlates_with--> EventSourceRecord

5. CORE FLOW PATHWAYS
FLOW A — Deployment
Source artifact -> validate handler/runtime -> resolve dependency declarations -> evaluate deployment policy -> publish version -> bind authorised trigger -> record provenance.

FLOW B — Invocation admission
Receive event -> validate event envelope -> authenticate caller where applicable -> verify trigger policy -> check concurrency and deadline -> admit or reject invocation.

FLOW C — Execution
Admitted invocation -> initialise or reuse runtime environment -> load configuration/secrets securely -> execute handler -> call authorised dependencies -> record output and side effects -> emit telemetry.

FLOW D — Failure and retry
Classify error -> determine whether retry is supported by trigger semantics -> enforce retry budget/backoff -> deduplicate or compensate side effects where designed -> dead-letter or surface terminal failure.

FLOW E — Scaling
Observe queued invocations and concurrency -> compare to provider and account quotas -> request additional execution capacity -> throttle or queue when limits apply -> update observed state.

FLOW F — Retirement
Disable trigger -> drain or account for in-flight invocations -> revoke unused permissions -> retain required logs and artefact provenance -> retire version according to policy.

6. INFERENCE RULES
IF trigger is unauthorised THEN reject before handler execution.
IF payload violates handler schema THEN return or record validation failure.
IF invocation exceeds its configured deadline THEN classify as timeout; do not assume side effects were rolled back.
IF delivery is at-least-once THEN duplicate invocations are possible; require idempotency for non-repeatable effects.
IF concurrency reaches a hard quota THEN throttle, queue or reject according to platform semantics.
IF a function requires persistent local state THEN use an explicit external state store; runtime reuse is not guaranteed.
IF dependency access is denied THEN fail closed and preserve diagnostic context without leaking secrets.
IF retry budget is exhausted THEN move to configured terminal failure handling.

7. MINI RECURSION ENGINE
INPUT: invocation, function_version, policy, max_steps, max_attempts
visited = set()
steps = 0
WHILE steps < max_steps:
    state = observe(invocation)
    signature = (invocation.id, invocation.attempt, state.phase)
    IF signature in visited: RETURN STOP_CYCLE
    visited.add(signature)
    candidates = expand(state, relationships)
    eligible = filter(candidates, policy, deadline, quota, permissions)
    IF eligible is empty: RETURN BLOCKED_WITH_REASON
    action = rank(eligible, knowledge)
    result = execute_or_simulate(action)
    record_provenance(action, result)
    IF result.success: RETURN COMPLETED
    IF not retryable(result) or invocation.attempt >= max_attempts:
        RETURN TERMINAL_FAILURE
    invocation = next_attempt(invocation, result)
    steps += 1
RETURN BOUNDED_STOP

8. OPERATIONAL BOUNDARIES AND CONDITIONAL GUARANTEES
Safety: authorisation and resource checks precede controlled actions when implemented correctly.
Termination: the model's decision loop stops within max_steps; this does not guarantee a remote call returns before an external timeout.
Delivery: at-most-once, at-least-once and other delivery semantics depend on the specific trigger and provider.
Exactly-once effects are not implied by an invocation identifier; durable deduplication and transaction design may be needed.
Execution environments may be ephemeral, cold-started or reused; never rely on in-memory state persisting across invocations.
Availability, latency and scaling are bounded by provider behaviour, network dependencies and quotas.
Secrets and personal data must be redacted from logs and traces.

9. SEMANTIC EQUIVALENCE
'Function-as-a-Service function' ~ 'serverless function' when the model describes provider-managed, event-driven execution.
'Invocation' != 'function deployment': an invocation is a single execution attempt or request; a deployment identifies executable code/configuration.
'Retry' != 'replay-safe': a retried event can repeat side effects.
'Cold start' != 'failure': it is runtime initialisation that may affect latency.

10. WORKED EXECUTION TRACE
Example: an object-storage upload event invokes an image metadata extractor.
1) Object-created event E42 is received with object reference and event ID.
2) Trigger policy permits the event; schema and object reference are checked.
3) Function version V3 starts within memory and timeout budgets.
4) Handler reads the object, extracts metadata and writes a metadata record using event ID E42 as an idempotency key.
5) The output is recorded with correlation ID and execution duration.
6) A duplicate delivery of E42 is detected by the durable idempotency record and avoids a second write.
Outcome: conditional success given accessible storage, valid input, correct permissions and durable deduplication.

11. PROVENANCE AND CITATION
Topic source: https://kirethresearch.org/booksai-core/entity-graph/computational-entities/cloud-computing-entities/serverless-function-ontology.html
Authors credited: Mark Anthony Higgins — Sky Recursive AI.
Use under the applicable Kireth Research Open Research Licence; retain source citation and verify the published licence terms before redistribution.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ