Skip to content

Overnight: foundations and services - #1

Closed
rotmanjanez wants to merge 85 commits into
mainfrom
night
Closed

rotmanjanez wants to merge 85 commits into
mainfrom
night

Conversation

@rotmanjanez

@rotmanjanez rotmanjanez commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

Overnight run of 2026-11-23: one commit per piece, each verified on the merged tree (bober format fixed point, bober check clean, bober test). Nothing here touches main.

What is on the branch

Round 1 — groundwork

  • Generator: constraints, defaults, error members and each operation's IAM actions come from the Smithy models and AWS's authorization reference; validation answers in AWS's aggregate form.
  • IAM policy evaluator (core/auth/policy.bob): identity, resource, trust, boundary and session policies; 658 cases recorded from IAM's policy simulator.
  • Tapes: request sequences recorded from real AWS, normalised, replayed against the in-process gateway; a step known to differ carries a marker that fails once it stops differing.

Round 2 — enforcement and four services

  • IAM is enforced on every request (root exempt from identity policies); STS evaluates trust policies.
  • SQS, DynamoDB, SNS, EventBridge. SNS → SQS and EventBridge → SQS/SNS deliver inside the request by a direct handler call, as the service principal.
  • stack.bob builds the whole gateway; main.bob only serves it.

Round 3 — closing differences, S3 groundwork, two more services

  • IAM/STS: 56 of the 63 tape markers closed; permissions boundaries; policy tags; dates in whole seconds; lists in AWS's order.
  • restXml codec with Smithy's protocol tests (139 run, 45 skipped with reasons) and S3's generated API.
  • Blobs: refcounted chunks of unlinked temporary files, mapped, referenced from tree records, freed with the last record; joining and copying cost no copying. Descending scans. Presigned URLs, unsigned and aws-chunked payloads, anonymous requests.
  • The stack tested as a whole under IAM (stack.test.bob). It found that deliveries ignored the target's resource policy; they are now decided by it, as on AWS.
  • Secrets Manager and SSM Parameter Store.

Round 4 — S3, Logs, KMS

  • S3 on the blob store: buckets, objects, listing, copy, multipart, bucket policies with enforcement, anonymous and presigned requests, tagging, versioning. Seven tapes recorded from real S3 (289 steps).
  • CloudWatch Logs: groups, streams, events, the filter pattern language, metric and subscription filters, resource policies; four tapes from the real service.
  • KMS: symmetric and HMAC keys, aliases, real encryption (XChaCha20-Poly1305; std has no AES-GCM), key policies, grants, rotation.
  • IAM groups; DynamoDB legacy parameters, reserved words, descending Query, a PartiQL subset, idempotency tokens.

Round 5 — S3 held to its tapes, KMS in use, two more services

  • S3 answers every recorded step as S3 did but five, which were marked. CRC32C and CRC64NVME; SigV2 presigned URLs; a body limit per service.
  • S3 bucket configuration (public access block, ownership, ACLs as disabled, encryption, CORS, lifecycle, website, logging, request payment, object lock, notifications), CORS preflights and headers, and notifications delivered to SQS and SNS inside the request; two more tapes (134 steps).
  • A KMS key's policy decides, as on AWS; AWS managed keys (alias/aws/…); Secrets Manager and SSM SecureString encrypt under KMS as the caller.
  • Generator facts for what AWS answers beyond its models: 37 tape markers closed.
  • IAM instance profiles, OIDC and SAML providers, account summary, alias and password policy; three more tapes.
  • Kinesis Data Streams: streams, records, iterators, resharding, consumers, resource policies.
  • DynamoDB Streams (behind DynamoDB's signing name, records appended with each write); SQS receive attempt ids and message move tasks.

Round 6 — a fifth protocol, three more services, services using each other

  • restJson1 beside restXml over one HTTP binding (core/protocol/rest.bob), with Smithy's protocol tests (176 run, 91 skipped with reasons).
  • Unsigned internal endpoints: LocalStack's health, info and init paths, a state reset, and named in-memory snapshots under /_boberstack/snapshots/ (save, list, restore, delete).
  • Step Functions: state machines, all eight state types, JSONPath, intrinsic functions, Retry and Catch, history; tasks call SQS, SNS, DynamoDB and EventBridge as the machine's role. An execution runs to its end inside StartExecution.
  • Route 53: hosted zones, record sets changed as atomic batches, tags; two tapes from the real service.
  • CloudWatch: metrics, statistics, metric math, metric alarms that notify SNS, tags; served as awsQuery and as awsJson 1.0.
  • Server-side encryption under KMS for S3 objects, SQS queues, SNS topics and DynamoDB tables: the key's policy decides for the caller and for the delivering service.
  • More deliveries inside the request: S3 → EventBridge, EventBridge → Kinesis, Logs and other buses, Logs subscription filters → Kinesis, DynamoDB → Kinesis.
  • IAM: access key state and last use, login profiles, service-linked roles, the policy simulator, account authorization details, the credential report; three more tapes.

Round 7 — three more services, callbacks, tapes held tighter

  • Firehose: delivery streams to S3, each put written as one object at once under AWS's key layout and prefix expressions; other destination kinds stored and described; Logs subscription filters, EventBridge targets and SNS subscriptions deliver into it.
  • ACM: requested certificates issued at once (self-signed, Ed25519), imported certificates read from their DER, tags, options, account configuration, domain validations; checked against real ACM.
  • SES: the classic API and v2 over one state; identities, sending, templates, configuration sets and event destinations, tags, quota; messages stored and served at /_aws/ses in LocalStack's shape.
  • Step Functions: callbacks (.waitForTaskToken, SendTaskSuccess/Failure/Heartbeat) by replay of recorded outcomes, activities, nested executions (.sync, .sync:2), versions and aliases, TestState, SDK error names, Kinesis.
  • CloudWatch: dashboards, composite alarms, anomaly detectors stored, validation in AWS's words; four tapes from the real service. The awsQuery codec writes whole doubles as AWS does (1.0) and omits an empty <Message>.
  • Route 53: health checks, a change PENDING to its first read, access denied; two more tapes.
  • S3: all five markers closed (signature mismatch in S3's words, opaque tokens and unordered answers handled at tape level), configuration refusals taped, an oversized body answered as each service answers it.
  • IAM and Logs: fault namespaces, statement positions and context key order in the simulator, log groups by class: 11 markers closed.

Round 8 — CloudFormation, Lambda's control plane, roles checked, depth

  • CloudFormation: JSON templates (parameters, mappings, conditions, intrinsics, outputs, exports and imports), stacks made, updated and deleted inside the request by the other services' handlers, rollback with AWS's event sequence, change sets (what aws cloudformation deploy uses), a stack's role, TemplateURL read from S3 as the caller, a stack's tags given to its resources, paging. Resources of SQS, SNS, S3, Logs, DynamoDB, IAM, SSM, Lambda, KMS, Kinesis, Secrets Manager, EventBridge, Scheduler, Step Functions, CloudWatch and Firehose, tagged aws:cloudformation:… as AWS tags them. Event sequence, id formats and change-set answers recorded from real CloudFormation.
  • Lambda: the control plane without execution — functions (zip from the request or S3, image), versions, aliases, resource policies that decide, tags, concurrency, URLs, event source mappings (source and role permissions checked), layers, event invoke configs, provisioned concurrency; the stored zip is served back. Invoke answers an honest function error.
  • A service acts as a role only if the role exists and trusts it, and whoever names the role must be allowed iam:PassRole (Step Functions, Logs, EventBridge, Firehose, SNS, Lambda, CloudFormation, Scheduler); Firehose refuses an untrusted role at create time.
  • KMS: Ed25519 signing keys (Sign, Verify, GetPublicKey; an OpenSSL verification of a KMS signature passes). ACM: SearchCertificates.
  • CloudWatch Logs Insights: StartQuery/GetQueryResults complete at once in the Insights language (fields, filter, stats with by and bin, parse, sort, limit, dedup), compile errors in AWS's words, query definitions; a tape from the real service. Metric filters publish their metrics to CloudWatch inside PutLogEvents, so alarms on them move.
  • CloudWatch: alarms on metric math, AT_LEAST composite rules, GetMetricData paging, metric streams and insight rules as state; one more tape.
  • EventBridge: state machine targets, dead-letter attributes, archives and replays, another account's bus as a target, connections and API destinations as state. EventBridge Scheduler: schedules and groups, validated and stored.
  • S3: flags read as S3 reads them, metrics/inventory/analytics/intelligent-tiering configurations, replication, Object Lock retention and legal hold with governance bypass, object attributes, conditional requests and ranges; five more tapes.
  • SES: identity attributes, sending authorization policies that decide across accounts, the suppression list, SNS notifications for each message, account settings, contact lists, receipt rules as state.
  • Route 53: limits, reusable delegation sets, CIDR collections, TestDNSAnswer; validation names members as AWS does. Three more tapes.
  • Step Functions: RedriveExecution, version and alias ARNs everywhere, an even split by alias weight, Lambda tasks through Lambda's handler with AWS's error names. Distributed Map: map runs, ItemReader over S3 (JSON, JSONL, CSV, listings) as the execution role, ItemSelector, ItemBatcher, tolerated failures, ResultWriter, child executions kept and listed by the run.
  • Resource policies are parsed when they are set by every service that stores one; a stored one that does not parse grants nothing instead of failing the request. IAM ChangePassword.

State at d1acf77: # 59 of 59 files passed; 22 services, 49 tapes.

Known differences from AWS

  • No timers or background work: delays, visibility timeouts, retention, iterator expiry and scheduled deletion are evaluated against the time of the request; long polls do not wait; TTL and lifecycle rules delete nothing; schedules (EventBridge rules and Scheduler) never fire; everything asynchronous on AWS is in its final state at once (stacks, certificates, replays, Insights queries, Route 53 changes after their first read); a Step Functions Wait does not wait, and alarms are evaluated when data arrives or they are read.
  • Lambda functions are not run: Invoke answers a function error saying so, a Step Functions Lambda task therefore fails, and function URLs serve nothing.
  • CloudFormation: JSON templates only (std has no YAML reader); resource types beyond those listed in the module's comment fail their resource and roll the stack back; resources are made one after another; a changed property always replaces its resource; a failed update fails the request instead of ending UPDATE_ROLLBACK_COMPLETE.
  • KMS encrypts with XChaCha20-Poly1305 in a format of its own; of the asymmetric keys only Ed25519 exists (std has no RSA or ECDSA), and sts:AssumeRoleWithWebIdentity is missing for the same reason. ACM issues self-signed Ed25519 certificates and cannot export a private key.
  • S3 reads a request's body into memory; object bodies are stored as given, whatever encryption the object names; every object is STANDARD.
  • SES: identities are verified at once and the account has production access; nothing is received; event destinations other than SNS publish nothing.
  • Firehose validates a request before authorizing it, where AWS authorizes first; ZIP and Snappy compression are not applied.
  • Step Functions: a Distributed Map is processed inline inside the request (MaxConcurrency means nothing, InputType: MANIFEST is missing), JSONata is refused. Route 53: no private zones, no DNS server. CloudWatch: percentiles are exact where AWS approximates.
  • 21 tape markers remain, each with its reason in the tape: IAM 10 (whitespace of AWS-managed policy documents, OIDC dates in milliseconds, three simulator cases), CloudWatch 7 (enum order in validation messages, two message wordings), Route 53 3 (two XML-schema messages, one health check default), Logs 1 (field discovery takes minutes on AWS).
  • SNS delivers to SQS and Firehose only; notifications are unsigned.

Not verified against AWS

The account's organization denies SQS, DynamoDB, SNS, EventBridge, Scheduler, Step Functions, Secrets Manager, SSM, KMS, Kinesis, Firehose, Lambda and parts of IAM (group writes, login profiles, account aliases, SAML providers, service-linked roles, a key's last use), SES (receipt rules, contact lists), S3 (archive storage classes) and EC2 (so Route 53 private zones) by service control policy. For those only what AWS answers before authorization (validation) and the denial itself (code, status, sentence form) could be observed; everything else rests on the models and the documentation, and each module's comment says which messages are guesses. IAM, STS, S3 (eu-north-1), CloudWatch Logs, CloudWatch, Route 53, ACM and CloudFormation are recorded from the real service; SES only through reads and failing requests.

Still to come

  • More services, and KMS behind SQS, SNS and S3
  • IAM login profiles, access key state, service-linked roles, policy simulation
  • S3 notifications to EventBridge
  • Firehose, SES, ACM, CloudFormation, Lambda's control plane, Scheduler, Logs Insights
  • Role trust and iam:PassRole for roles services act as
  • Decisions for the morning: running Lambda functions; delayed work (timers); streaming S3 bodies; YAML templates; where the JSON value type lives (CloudFormation imports it from Step Functions)

🤖 Generated with Claude Code

The gateway authenticates a request, runs its service under one store-wide
lock and commits the trees it opened on success. IAM and STS are handler
classes over their generated interfaces; IAM serves every AWS-managed
policy and version from models/iam-managed-policies.jsonl, held in the
binary outside the state trees. The awsJson 1.0 and 1.1 codec passes
Smithy's protocol tests, as the awsQuery one does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@rotmanjanez
rotmanjanez marked this pull request as draft November 22, 2026 23:47
rotmanjanez and others added 28 commits November 23, 2026 01:30
…NS and EventBridge APIs

The codecs check a model's length, range and pattern constraints, its required
members and enums while decoding, and answer every violation of a request in
one fault, as AWS words and orders them (core/protocol/model). The generator
tags members with their shapes' constraints for the services whose answers
were established against AWS: IAM (unquoted values, patterns left to its
handlers), STS and EventBridge. SQS, DynamoDB and SNS answer in their own
words and keep hand-written checks.

Members with Smithy defaults take them when a request leaves them out. Errors
with members besides a message get a class of them, which their maker takes
and the codec writes. Each operation's IAM actions, from AWS's service
authorization reference (models/auth.sh), are set on the Caller before its
handler runs; Caller.allow allows everything for now.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
core/auth/policy.bob parses identity, resource and trust policies once,
with IAM's MalformedPolicyDocument messages, and evaluates a request
against identity, resource, boundary and session policies under AWS's
same- and cross-account logic, with every condition operator, IfExists,
ForAllValues/ForAnyValue and policy variables; denied() renders AWS's
AccessDenied message. policy.cases.json holds 658 decisions recorded by
policy.cases.sh from iam simulate-custom-policy; seven where real
enforcement differs from the simulator carry the enforced decision and
the reason.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
tools/tape/main.bob records a scenario of steps against real AWS, signed
by SigV4 from the environment's credentials, and writes it as a tape with
nothing of the account in it. tools/tape/tape.bob documents the format and
replays a tape against a Gateway, comparing status, headers and the body
as a tree. Tapes of IAM users, roles, policies and AWS managed policies,
and of STS, each step that BoberStack answers otherwise marked with why.

client.sign signs any request, for the recorder and the replay.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ther

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…its caller

Caller.allow evaluates the caller's identity-based policies, session policies
and the resource policy, through an Identify hook the gateway is given, IAM's
from main.bob, and answers with the service's own access denied, a fact of
smithygen's table. The account's root is exempt. IAM's handlers allow before
they read or change anything; STS's AssumeRole evaluates the trust policy,
with TagSession and SetSourceIdentity when asked for, and GetFederationToken
and GetSessionToken keep the session's policies and kind on its credential.
Trust and identity documents are validated by the policy parser.

The tape tool sends a step as credentials captured earlier, which a tape holds
only as captures, and does not compare the random id of IAM's linked
authorization details. New tapes, iam/enforcement and sts/sessions, cover
users narrow, of no policy, explicitly denied and bounded, role sessions with
and without session policies, and trust policies not naming the caller.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Tables with their secondary indexes, tags and time to live; items with
condition, update and projection expressions; Query and Scan over tables
and indexes, paged; batches and transactions. Items sort by an
order-preserving encoding of their keys, so a Query is one range of the
store, and an item's index entries commit with it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Topics standard and FIFO, with attributes, tags and permissions; subscriptions
with AWS's confirmation state for each protocol; filter policies validated and
matched in attribute or body scope; Publish and PublishBatch, delivered to
subscribed queues by a direct call of SQS within the request, as AWS's JSON
notification or raw, with dead-letter queues for refused deliveries.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…e request

Event buses with the default one there from the start, their resource policies and tags; rules of an event pattern or
a schedule (validated and stored, never fired); targets with Input, InputPath and InputTransformer; TestEventPattern;
and PutEvents, which matches each event against its bus's rules and delivers it by calling the SQS and SNS handlers
directly, or on to another bus of the account and region, a refused delivery to the target's dead-letter queue.
Event patterns are validated in EventBridge's own words, as it answered them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…hole-second dates

IAM and STS stamp dates to the second, so the replay no longer forgives a
fraction of one. Lists come in AWS's orders: access keys and policy
versions newest first, attachments and the account's policies in the order
made, AWS's policies by date, tags of the latest call first. Permissions
boundaries are set on create and by Put/Delete, counted, listed, and
honoured when a caller is authorized. Policy tags, the errors of AWS's own
policies, tag-key validation and the token sizes of STS sessions follow
what AWS answered. 56 of 63 differences are closed; the rest say why.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…orms

A store's entry may hold a blob: bytes in chunks of unlinked temporary files,
mapped, refcounted, and freed with the last record or handle that reaches
them; joining blobs and holding one under two keys copy nothing. Store.scan
and Table.scan page descending too. The gateway takes presigned URLs,
UNSIGNED-PAYLOAD, aws-chunked bodies (signed chunks and trailers checked,
trailing headers made headers), and anonymous requests for the service that
opts in; a service may answer the gateway's faults in its own form.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…er service

Service principals now carry the action they perform, so SNS and EventBridge
deliver only where a queue's or topic's policy allows them. Handlers authorize
only the actions a request needs, on the ARNs AWS names, with the condition
keys sns:Protocol, sns:Endpoint, dynamodb:LeadingKeys, dynamodb:Attributes,
events:source, events:detail-type, events:TargetArn, aws:ResourceTag,
aws:RequestTag and aws:TagKeys. Another account's queue or topic is looked up
without creating that account's state; a queue of another account is
subscribed pending and sent its confirmation. stack.test.bob drives all of it
through one gateway.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
SQS takes AttributeNames as open strings, an awsJson error of an
undeclared code names coral's InvalidParameterValueException in its
__type, and DynamoDB's AttributeValue union says AWS's messages.

core/protocol/restxml routes a request by method, path labels, query
literals and required members, decodes its bindings and XML body, and
writes outputs and errors as S3 and the wrapped restXml services do.
smithygen generates restXml APIs, their routes, and the protocol test
vectors; services/s3/api.bob is the S3 API, with no handler yet.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, parameters, paths and tags

Both APIs are generated from their Smithy models. Neither service is in
the validations table, because both authorize before they validate. A
generated enum whose name collides with an import, such as SSM's Fault,
is now declared with a trailing $.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…STS refuses GetSessionToken to a role session

Groups: every operation, in services/iam/groups.bob, mixed into the Handler as ...Groups ahead of
...api.Unimplemented; members take their groups' inline and attached policies, DeleteUser refuses a member
and DeleteGroup one with members or policies. The helpers the operations share move to
services/iam/common.bob.

Tapes from AWS: iam/groups (what the organization allows of groups), iam/boundaries and iam/dependent
(tags at creation need iam:Tag*, a boundary at creation needs nothing more); sts/assume-role step 13 now
runs as the role session.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…rtiQL; enums in AWS's order

Enum values in validation messages are listed in the order AWS lists them, by the low five bits of their
String.hashCode; an unknown awsQuery action is answered in the AWSFault namespace; SQS's access denied is
worded "linked", as IAM's. The tapes' steps these differed on no longer do.

DynamoDB: a descending Query reads the descending scan, paged exactly by Limit and ExclusiveStartKey on
tables and indexes; reserved words are refused as AWS refuses them, the list kept in reserved.bob;
Expected, AttributeUpdates, KeyConditions, QueryFilter, ScanFilter, AttributesToGet and
ConditionalOperator, with AWS's validation and the error for mixing them with expressions;
TransactWriteItems' ClientRequestToken, answered for 10 minutes; point-in-time recovery stored; and
ExecuteStatement, BatchExecuteStatement and ExecuteTransaction for SELECT, INSERT, UPDATE and DELETE.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The tape tool now sends S3 requests by path and query, signs them over their
headers, unsigned or presigned (expired, tampered), captures headers, and keeps
an object's bytes as size and sha256. It writes the account's canonical user as
${owner}, zeroes organizations ARNs, and refuses a tape that holds either.

Seven tapes recorded against S3 in eu-north-1: buckets, objects, reads,
listing, copy, multipart and versioning.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s, metric and subscription filters

Retention applies at each request; subscription filters are stored and never
delivered. The tape tool keeps a volatile number's form as JSON and fixes
${now} for the whole run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Symmetric and HMAC keys with their aliases, tags, key policies, rotation and
scheduled deletion; Encrypt, Decrypt, ReEncrypt, data keys, MACs and random
bytes, sealed by XChaCha20-Poly1305 in a blob that names its key and material.
Every operation is authorised against the key policy, of KMS's condition keys,
or a grant. Other services may encrypt for their callers through keyArn,
encryptAs and decryptAs.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…licies, tagging

Buckets are global by name and live in their owner's regional tree; requests
name them in the path or the host. Bodies under 64 KiB are held in the tree,
larger ones as blobs that GetObject streams. Bucket policies decide access for
other accounts and anonymous requests, which the gateway now sends to S3.
restXml gains S3's unwrapped GetBucketLocation output and its HostId.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… order closed

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Amendments add to a model the members and enum values AWS answers that it
lacks (Logs' eventId and searchStatistics, IAM's boundary type Policy);
unconstrained exempts members whose constraints AWS leaves to the service
(Logs' TagResource resourceArn and ListLogGroups' pattern); deniedMessages
names the member of an access denied's message (Logs' Message). The codecs
quote no value of a blob or of a sensitive member in a validation message,
as AWS does. Logs gives a token after the last page of a search by pattern
or class, and after ListLogGroups' last page, as AWS does.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…it per service

S3's enums are strings, its date-times written to the millisecond, its request ids a UUID's first 16 hex digits,
and ListObjectVersions interleaves versions and delete markers in key order. PutObject and UploadPart check the
checksums given, CRC32C and CRC64NVME among them, and an object put without one has CRC64NVME. Ranges and
partNumber, conditionals, listing's encoding and limits, copy directives, multipart uploads completed or aborted
twice, and versioning's delete markers answer as S3 did. The 204 of PutBucketPolicy and PutBucketTagging is the
generator's. Three listing steps differ, with reasons.

The gateway takes SigV2 presigned URLs, and limits a body by its service: S3's 5 GiB, else 10 MiB.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…topics; access rules on tape

Public access block, ownership controls, ACLs, default encryption, CORS, lifecycle, website, logging, request
payment, accelerate, object lock and notification configurations, each as S3 answers them in eu-north-1. A
preflight is answered by the bucket's CORS rules, and an answer to an origin names the rule it matched.
Objects made and removed notify the bucket's queues and topics within the request, as s3.amazonaws.com on behalf
of the bucket, as their policies allow. A bucket policy is validated as S3 validates it, and refused while it is
public and Block Public Access blocks it.

The access and configuration tapes replay but for what S3 answers of every request, which the change of S3's
common answers closes.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…crypt under KMS

A resource policy can now be exclusive, as a key policy is: within its account the
root and identity-based policies allow only where it allows the account.
alias/aws/* keys are made on first use with KeyManager AWS and AWS's key policy,
usable only through their service. Secrets Manager seals each version under the
secret's key with SecretARN and SecretVersionId as context, decrypting as the
caller and re-encrypting the current versions when the key changes; SSM encrypts
a SecureString under its key with PARAMETER_ARN as context, returning ciphertext
unless WithDecryption.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
rotmanjanez and others added 29 commits November 23, 2026 04:54
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ases, TestState, waiting nested executions

Activity tasks are recorded as ActivityScheduled, ActivityStarted with the
worker's name, ActivitySucceeded and ActivityFailed, and GetActivityTask hands
the longest waiting task. A task token carries a random secret the execution
keeps. PublishStateMachineVersion, ListStateMachineVersions,
DeleteStateMachineVersion, the alias operations, publishing on create and
update, executions started by a version or an alias (weighted between two
versions), and TestState for one state with its inspection data. A nested
.sync execution that waits keeps its parent RUNNING; the request that ends it
continues the parent.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…m:PassRole allows

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…archCertificates

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A random serial beginning with a zero byte was written as it came, and such a certificate is not valid DER.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…y the handlers of SQS, SNS, S3 and Logs

Parameters, conditions, mappings, outputs and exports, the intrinsic functions, dependency order and
AWS's refusals of a cycle and an unresolved reference; rollback, deletion in reverse with Retain,
update by replacement, events as AWS writes them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…Object Lock retention and legal hold, object attributes

A configuration's flags are true for "true" or "1", any case, trimmed, and false otherwise, as S3 takes "maybe".
Metrics, inventory, analytics and intelligent-tiering configurations are stored, returned and listed by continuation
token; replication is kept on a versioned bucket; a torrent is refused as in eu-north-1. A bucket created with Object
Lock is versioned and locked; retention and legal hold are kept per version and stop its deletion, GOVERNANCE yielding
to one who bypasses it with s3:BypassGovernanceRetention. GetObjectAttributes answers ETag, size, storage class,
checksum and part count. Website configuration is said to be served by nothing, and the gateway says where
CloudWatch's limit differs. Tapes more and lock recorded against S3.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ression list, notifications to SNS of each message

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…and replays, buses of other accounts, connections

A state machine target starts an execution as a session of the target's role,
of the event as its input. A delivery the target refuses reaches the
dead-letter queue with ERROR_CODE, ERROR_MESSAGE, RULE_ARN and TARGET_ARN.
Archives keep the events put on their bus that match their pattern, with their
count and size; StartReplay puts them again, with replay-name, to the bus's
rules or those it names, within the request. A bus of another account is a
target as its policy allows. Connections and API destinations are kept as
state, a connection's secrets left out of what describes it; nothing is sent
to an API destination.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, reusable delegation sets and CIDR collections

A generator table names the members that AWS's validation messages name otherwise than the model, as resourceId for
an Id, tagged @model.Named and read by restXml. Hosted zone, account and delegation set limits are AWS's defaults;
TestDNSAnswer answers REFUSED, as AWS answers it of a zone no parent delegates to. A tape's capture last:<path> takes
what follows the last / of an id.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Functions from a zip, given or read from S3 as the caller, or an image, under a role that must exist and trust
lambda.amazonaws.com; their configuration, versions published only on change, aliases with routing, resource policies
built as AWS builds them and enforced, tags, reserved concurrency, account settings, function URL configs and event
source mappings, which nothing polls. Invoke authorizes and resolves the function, then answers 200 with
X-Amz-Function-Error: Unhandled and an errorType NotImplemented, as nothing runs a function. Lambda now shows in the
health endpoint.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…nguage, compile errors in AWS's words, query definitions, records by pointer, and a tape step retried until its body says so

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…EAST rules, paging

On PutLogEvents, each metric filter of the log group puts a datum to CloudWatch for each event it
matches, within the request and on the account's behalf as CloudWatch Logs does, with no role:
its value the transformation's number or the field it names, its dimensions of fields, its unit,
and its default value for a batch of which no event matches. Alarms on those metrics move.

A composite alarm's rule takes AT_LEAST(n, state, (alarms)), of a count or a percentage, of a state
or NOT one, with AWS's errors; DeleteAlarms deletes one composite alarm at a time and names the
children still in a rule, as AWS does, and ChildrenOf and ParentsOf list a composite by name alone.
An alarm on metric math is evaluated on its query that returns data, as data is put to its metrics.
GetMetricData pages by MaxDatapoints of all its results, DescribeAlarmHistory by MaxRecords, each
with a NextToken; the history is of the AlarmTypes asked. A tape of AT_LEAST, alarms for a metric,
actions disabled and enabled, and the history of a composite alarm, from eu-north-1.

Metric streams and Contributor Insights rules are kept as put, started or stopped, enabled or
disabled, with failures for rules not found; nothing is streamed and no rule reads a log.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…dated, never fired

Schedules are created, replaced whole, described, listed by group, prefix and state, and deleted; schedule groups
take tags, the default one is always there, and deleting a group deletes its schedules at once. Expressions are
checked as EventBridge checks a rule's, now exported, at() by its form; the role must trust
scheduler.amazonaws.com and be passable by the caller. There are no timers: nothing ever fires.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ated; untrusted roles and missing iam:PassRole tested for Step Functions, EventBridge, SNS and Firehose; IAM ChangePassword

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…roles, tables, parameters, subscriptions and queue policies

CreateChangeSet leaves a new stack REVIEW_IN_PROGRESS; a change set is CREATE_COMPLETE with its Add, Modify
and Remove changes, or FAILED when nothing changes; executing one creates or updates the stack. A stack's
RoleARN must be passable and is acted as by cloudformation.amazonaws.com.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… sends, restore and attributes as S3 answers

Conditional GET, HEAD, PUT, copy and CompleteMultipartUpload, ranges and partNumber reads are taped against S3 and
answered as it does. A write to a locked bucket takes the lock headers or else the bucket's default retention; a locked
bucket's versioning cannot be changed; lock headers to a bucket without Object Lock, or one without the other, are
refused in S3's words. The generator takes the XML names AWS sends where its model names them otherwise, for S3's
analytics and intelligent-tiering lists. RestoreObject refuses a STANDARD object; GetObjectAttributes refuses an
attribute or none as S3 does. Tapes conditions, retention and attributes recorded against S3.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…son1, one action per send, account settings and configuration set options

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… of a machine's versions and aliases, an even split by weight, RedriveExecution; EventBridge's other-account bus and untrusting role tested

DescribeStateMachine of a version's ARN describes the version; ListExecutions
of a version's or alias's ARN lists the executions started by it;
DeleteStateMachine deletes the machine's versions and aliases with it. An alias
of two versions picks by a count of its starts, not at random: of each 100 in a
row, exactly the first's weight run the first version, spread evenly.

RedriveExecution takes a failed execution again from the task whose failure
ended it, and a failed or aborted one otherwise again from its start, its
steps replayed: its history kept, an ExecutionRedriven event with the count,
the events after it numbered on; redriveCount, redriveDate and redriveStatus
described; a running, succeeded or EXPRESS execution refused.

A bus of another account takes a target's events once its policy allows the
sender, and a state machine target whose role does not trust EventBridge sends
the event to the dead-letter queue with what refused it.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s, provisioned concurrency, event invoke configs, code served

A function's role is passed as iam:PassRole checks it for lambda.amazonaws.com and must trust Lambda, by STS's
passRole and actAs. An event source mapping's queue or stream is read through SQS, Kinesis or DynamoDB Streams as the
function's role, so that it must exist and the role be allowed to read it, with AWS's InvalidParameterValueException
wording. An existing function's tags are aws:ResourceTag condition context.

Layers: versions published from a zip or S3, got by name or ARN, listed, deleted, with permissions and their policy; a
function's layers must exist and are answered with their sizes. Provisioned concurrency configs, READY as soon as put;
event invoke configs with their destinations; runtime management and recursion configs; GetFunctionCodeSigningConfig
answering none.

GetFunction's and GetLayerVersion's Location is the zip served by an unsigned endpoint of this server,
/_boberstack/lambda/.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…SES, each refusing in its own words; a stored one that does not parse grants nothing instead of failing the request; ChangePassword without a policy as the account allows users to

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…n role, failures named as AWS names them

lambda:invoke (also .waitForTaskToken), aws-sdk:lambda:invoke and a function's
ARN as a Task's Resource call Lambda's handler as the session of the role. A
refusal fails the task as Lambda.ResourceNotFoundException and the like,
Lambda.AWSLambdaException where access is denied, its cause as AWS words it; a
function's error fails it with the payload's errorType, Lambda.Unknown if none,
the payload its cause, and is the aws-sdk task's output. Since no function runs
here, every function that exists ends in its error. A function's ARN as the
Resource records LambdaFunctionScheduled, Started and Succeeded or Failed.

ListExecutions filters by redriveFilter, its items carry the version, alias
and redrive count and date, and a mapRunArn finds no map run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…, identities with a DKIM key of their own

A send naming a contact list and topic skips the contacts unsubscribed from either; receipt rules are kept, none
followed.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… it, and IAM, KMS, Kinesis, Logs, rule, state machine and secret resources

AWS::Lambda::Function, Version, Alias, Permission, Url, EventSourceMapping and LayerVersion are made and deleted
by the Lambda handler, with Ref and Fn::GetAtt as documented; a function's inline ZipFile is stored in a zip as
index.py or index.js. AWS::IAM::Policy, ManagedPolicy and User, AWS::KMS::Key and Alias, AWS::SNS::TopicPolicy,
AWS::S3::BucketPolicy, AWS::Events::Rule with its Targets, AWS::StepFunctions::StateMachine with its
DefinitionSubstitutions, AWS::Kinesis::Stream, AWS::Logs::LogStream and AWS::SecretsManager::Secret, its
GenerateSecretString too, are made by their handlers.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…tems read from S3 and results written there

A Map whose ItemProcessor's ProcessorConfig Mode is DISTRIBUTED makes a map run,
listed by ListMapRuns, described by DescribeMapRun with its item and execution
counts, its limits kept by UpdateMapRun; MapRunStarted and MapRunSucceeded or
MapRunFailed are in the execution's history, its child executions run within
the run, their events not kept. Its ItemReader reads an S3 object, JSON, JSONL
or CSV with its header row or given headers, or an S3 listing, at most
MaxItems, through S3's handler as the execution role; ItemSelector and
ItemBatcher shape the children's input; ToleratedFailurePercentage and
ToleratedFailureCount, or their paths, decide whether the run fails with
States.ExceedToleratedFailureThreshold. Its ResultWriter writes
SUCCEEDED_0.json, FAILED_0.json and manifest.json under the prefix and the
run's id, the state's output then the run's ARN and ResultWriterDetails.
ListExecutions of a map run's ARN lists none. S3 is wired into Step Functions.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… described and their histories read

Each child execution of a DISTRIBUTED Map's run is kept once it ends, an
execution of the machine's name, a slash and the state's label: ListExecutions
of the map run's ARN lists them, with statusFilter and paging, each with its
itemCount and the run's ARN; DescribeExecution gives the run's ARN, and
GetExecutionHistory the child's own events. The ResultWriter's files name the
children by the same ARNs. MaxConcurrency is kept and shown by DescribeMapRun,
and changes nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
… tags given to its resources, alarms and delivery streams

A TemplateURL, path-style or virtual-hosted, of amazonaws.com or of this server, is read by the S3 handler as the
caller. A resource's Tags, and then the stack's, are given to each create call that takes tags.
AWS::CloudWatch::Alarm and AWS::KinesisFirehose::DeliveryStream are made by their handlers, and IAM policies are
attached to Users as well as Roles. DescribeStacks, ListStacks and DescribeStackEvents give 100 at a time and a
NextToken for the rest, refusing one they did not give.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ion: tags, Scheduler schedules and groups

AWS::IAM::Group (with Policies and ManagedPolicyArns) and AWS::IAM::InstanceProfile (with Roles) are made by IAM's
handler and undone on delete; AWS::IAM::Policy and AWS::IAM::ManagedPolicy take Groups, and AWS::IAM::User Groups.
Each resource that takes tags is given aws:cloudformation:stack-name, stack-id and logical-id after its own and the
stack's, but a KMS key, whose handler refuses aws: tags of any caller. AWS::Scheduler::ScheduleGroup and
AWS::Scheduler::Schedule are made by Scheduler's handler, now built before CloudFormation's. The module's notes say
which lists are paged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant