Date: 2026-11-17 · Adjudicated 2026-11-18 — all 17 answer, and every answer is now measured: 26 exchanges recorded against real AWS (account 559050205935, config/aws_cassettes/lambda-durable.json). Source coverage is lambda 85/85 (scripts/op_coverage.py).
What changed. The original 8-operation build was modelled from the botocore service model and the docs, with no authority behind it. The owner then authorised real AWS as the oracle for the gaps, and the recordings contradicted the implementation in four places: the missing-function answer (
Function not found, not an invented execution message), the existing-but- empty answer (Durable Execution does not exist), scaling config absence (a 404, not a 200 with omitted fields), and the$LATESTrejection on both scaling operations.tests/test_recorded_lambda_durable_against_offstack.pybinds Offstack to those recordings operation by operation.
What the 17 operations are
Three surfaces that arrived in the same release:
| surface | operations | what it is |
|---|---|---|
| durable executions | GetDurableExecution, GetDurableExecutionState, GetDurableExecutionHistory, CheckpointDurableExecution, StopDurableExecution, ListDurableExecutionsByFunction, SendDurableExecutionCallbackSuccess, SendDurableExecutionCallbackFailure, SendDurableExecutionCallbackHeartbeat (9) | a handler that survives interruption by replaying from checkpoints |
| capacity providers | CreateCapacityProvider, GetCapacityProvider, UpdateCapacityProvider, DeleteCapacityProvider, ListCapacityProviders, ListFunctionVersionsByCapacityProvider (6) | provisioned execution capacity, i.e. billing infrastructure |
| scaling config | GetFunctionScalingConfig, PutFunctionScalingConfig (2) | per-function concurrency config |
State 2026-11-18 — and what that does not mean
| surface | state | evidence |
|---|---|---|
| capacity providers (6) | full CRUD, plus both recorded not-found messages | happy path modelled (no provider was created against real AWS — it needs a real VPC and operator role); both 404 texts recorded |
| scaling config (2) | stored and returned, $LATEST refused, absence is a 404 | all three recorded 2026-11-18, including the qualifier pattern text |
| durable execution (9) | write side live 2026-11-19 | executions are real rows minted by Invoke on a durable-configured function; foreign/missing shapes still recorded (see below) |
The durable-execution split that matters:
- Missing function →
Function not found. The ARN is validated, then the
function is looked up. The first build never looked the function up at all and invented Durable execution not found: <arn>.
- Existing function, no execution →
Durable Execution does not exist.
Same code, different message — the distinction is the message, which is why the replay suite asserts messages and not only codes.
- Checkpoint token: validated before anything foreign. A token failing
the alphabet is a ValidationException naming the pattern; a conforming token NO execution holds is still 400 Invalid checkpoint token — for a fake AND a real function, without consulting the function, so a stale token never reports the function gone. A CURRENT token (one Offstack minted and not yet consumed) reaches row lookup. Single-use: each checkpoint rotates it, ClientToken replays the first answer.
- Callbacks keyed to minted ids. A
CallbackIdOffstack did not mint is
still refused with Invalid callback id (recorded, including conforming ids); a CALLBACK START mints the id the verbs accept, and success/failure closes the operation.
- Invoke mints the envelope. A durable-configured function (
DurableConfig
set, including {}) gets an execution row and runs with the SDK envelope as its event; the execution ARN is merged into a dict payload. Non-durable functions are untouched. Live shapes: Get returns the Execution summary, History returns Events, List returns Execution summaries, Stop returns the stop timestamp and kills the token.
ListFunctionVersionsByCapacityProvider returns an empty list rather than an invented placement, because Offstack does not model which functions run on a provider. The two not-found messages genuinely differ (GetCapacityProvider echoes the resolved ARN, the versions operation echoes the bare name) and both are recorded — collapsing them would be tidier and wrong.
Deliberately not fixed elsewhere. Offstack's shared _require appends the ARN to Function not found; the recorded durable surface answers it bare. Only the durable path was changed (_require_bare), because only the durable path was recorded. Rewriting every other Lambda operation's message on the strength of a recording that never saw them would be the guess-the-oracle error this project keeps correcting.
Why no local oracle covers any of it
Probed 2026-11-17, re-confirmed 2026-11-18 after the coverage census appeared to contradict this section by reporting moto at lambda 76/78 and MiniStack at 78/78 ("modelled!"). The census was wrong — twice over — and the original claim holds:
| oracle | what it actually does |
|---|---|
| moto 5.2.3 | GetDurableExecution, ListCapacityProviders, GetFunctionScalingConfig return werkzeug's HTML 404 page. The census scored the page "served" because the wrapped code is the string "404", which is not a 5xx. |
| MiniStack 1.5.41 | Parses a DurableExecutionArn only to reject every form tried (upstream, pair, UUID) with InvalidParameterValueException. ListCapacityProviders and GetFunctionScalingConfig fall through to the function handler: `Function not found: /2025-11-30/capacity-providers`. |
Two classifier rules were added for those disguises (_HTML_404_MESSAGE, _ROUTING_LEAK_MESSAGE). One residue is left deliberately: MiniStack's Invalid DurableExecutionArn is a modelled validation answer, so it still counts as served. That is a limit of a breadth metric, not a claim the surface works.
The behavioural contract is still larger than the operation list suggests
(Historical 2026-11-17 analysis note: this section documents the pre-2026-11-19 read-only baseline; the Invoke durable envelope, CheckpointDurableExecution, GetDurableExecutionState, and minted-ID callbacks were subsequently implemented — see Built 2026-11-19 below.)
A durable execution is not "Invoke with extra fields". Reading aws-durable-execution-sdk-python 3.0.2 (the package the one blocked sample needs), the handler's execution model requires:
- Invoke returning a durable envelope. The handler is passed
{"DurableExecutionArn": ..., "CheckpointToken": ..., "InitialExecutionState": {...}} as its event, and returns {"status": ..., "DurableExecutionArn": ..., "CheckpointToken": ...}. So the Invoke path has to mint and thread a checkpoint token, which today it does not do for any invocation.
- A checkpoint protocol with revision semantics.
CheckpointDurableExecution takes an Updates list of operations (START/SUCCEED/FAIL/RETRY/CANCEL) plus a ClientToken, and answers a revoked-token decision the SDK uses to decide whether to re-drive the whole invocation.
- Replay. On re-entry the SDK re-runs the handler from the top and skips
every operation already recorded as succeeded.
Nothing above is modelled: no execution row can be created, because one is created only by an Invoke on a durable-configured function. What IS modelled is every answer a caller can get without a live execution — and those answers are now recorded, not guessed.
It unblocks exactly one sample, and that sample is still blocked on the above. python/durable-functions-integration is the only sample that needs it. Its runner does take a lambda_endpoint (DurableFunctionCloudTestRunner.__init__), so the endpoint question is settled — but its handler imports aws_durable_execution_sdk_python, whose @durable_execution wrapper is the replay engine, so the sample's assertions are only meaningful once the checkpoint protocol above exists. Nothing else in the 43-sample corpus touches the surface.
What a request looks like today
Every route dispatches; none falls through to the unmatched-path fallback. The three shapes in one surface:
/2025-12-01/durable-executions/<arn>and.../checkpoint— the flat
form, keyed by an ARN;
/2025-12-01/functions/<name>/durable-executions— nested under the
function (ListDurableExecutionsByFunction); the flat form under /durable-executions is not what botocore sends;
/2025-11-30/capacity-providers— a different date prefix entirely.
And the honest/refusal line from the coverage census still holds: nothing reports success for work it did not do. A polling client with a FOREIGN token receives Does not exist or Invalid checkpoint token — both measured — never a plausible execution. A client holding a minted token reads live rows.
Built 2026-11-19, in this order (the plan above, executed)
Invokeminting the durable envelope for a handler configured as
durable (DurableConfig on the function, including {}).
CheckpointDurableExecution+GetDurableExecutionStatewith
token rotation and ClientToken idempotency. Revision/revoke semantics beyond single-use rotation are not modelled: the store applies updates atomically per checkpoint, which is what the SDK's retry loop depends on.
- Callbacks keyed to minted ids — a CALLBACK START mints the id the
verbs accept; foreign ids are still Invalid callback id.
What remains for the sample: the handler side runs the real SDK (aws_durable_execution_sdk_python), which is a package install plus a runner harness -- not a simulator gap. The simulator half (envelope in the Invoke payload, pollable history, checkpoint/state/callbacks) is green in tests/test_lambda_durable_invoke.py, test_lambda_durable_write_side.py, and the unchanged recorded suite.
Want a live walkthrough or evaluation setup for Offstack? Message George Vranjesevic or reach out at george@developmentsnapshot.com.