Skip to content

emulator: substrate bookkeeping fields render as response members AWS does not publish #756

Closed

Description

@scttfrdmn

#738's audit of 158 json tag lines turned up a second, larger class it deliberately left alone:
roughly 96 lines render members AWS does not publish at all. They fall into two groups.

Substrate's own bookkeeping, on a type that reaches the wire. AccountID, Region and
CreatedAt appear on response structs across many plugins — WAFv2WebACL, WAFv2IPSet,
CloudTrailTrail and others — because the same struct is both the persisted record and the
response shape. AWS publishes none of them.

Fields that are substrate concepts. DynamoDB's TTLAttribute and Tags sit inside the
TableDescription that CreateTable and DescribeTable return; AWS keeps a table's tags behind
ListTagsOfResource and its TTL behind DescribeTimeToLive.

Why this was not folded into #738

Every AWS SDK drops members it does not know, so nothing decodes wrong and no consumer's code
breaks — the defect is cosmetic, visible only to a caller reading a raw response body or a
recorded event. #738's nine defects were the opposite: names an SDK reads and gets nothing for.
Mixing the two would have made a live-bug fix hostage to a large cosmetic sweep.

It is still worth doing. A consumer diffing substrate's raw response against a recorded AWS one
sees noise, and a member that is not in the API model is a place where substrate's shape and
AWS's can drift without a test noticing.

The shape of the work

The fix is not a tag deletion — the field is needed in state. It is a split between the persisted
record and the wire shape, either by a per-plugin render function (the renderImage /
fsxToWire pattern already in the tree) or by json:"-" plus a separate state encoding where
the field is not needed on read-back. Which one is right differs per plugin, so this needs an
inventory before an approach.

Acceptance criteria

  • An inventory of every response-reaching field that is not in the AWS API model, with the
    plugin and the operation that exposes it.
  • An approach chosen per plugin (render function vs. split encoding) with the reason recorded.
  • No member absent from the API model reaches a response body, or the exception is named in
    docs/services.md with its reason.
  • A test that fails if a new bookkeeping field is added to a wire-reaching struct.

Filed out of #738, which fixed the nine wrong names and named this class as out of scope.

Activity

  1. added a commit that references this issue on Sep 19, 2026
  2. added this to the v0.120.0 milestone on Sep 19, 2026
  3. scttfrdmn commented on Sep 20, 2026

    @scttfrdmn
    OwnerAuthor

    The inventory, taken

    AC1 and AC4 are met; AC2 and AC3 are not, and are v0.121.0 work. Details at the end.

    Why it needed a reachability pass, and how one was actually run

    The inventory is not a grep. The rule one wants is "no bookkeeping field reaches an
    AWSResponse.Body"
    , and deciding that means telling a marshal into a response from a marshal into
    state.Set — through 500-plus bare-identifier json.Marshal(x) calls and the 60-odd per-plugin
    response helpers that wrap them (ecrJSONResponse and siblings). That is a type-and-dataflow
    question, and substrate depends on neither golang.org/x/tools nor any vendored analysis, so
    answering it precisely would mean adding a dependency to serve one check. That is why this issue
    never moved.

    So it was answered by observation instead. Every plugin's HandleRequest was temporarily
    instrumented with a deferred hook that walked the response body it was about to return, recording
    service | operation | member | JSON pointer; then the suite was run. The instrumentation was
    deliberately not committed — it is a measurement, not a fixture.

    Deliberately per-plugin rather than at PluginRegistry.RouteRequest (emulator/types.go:374-386):
    that is the only non-plugin caller of HandleRequest, and most tests call p.HandleRequest
    directly and bypass it, so a single hook there would have seen a fraction of the traffic.

    Result: 213 wire-visible observations across 31 services and 97 operations. Of those, 194
    across 25 services and 86 operations are members AWS publishes nowhere
    ; 17 are members AWS does
    publish; 2 are false positives.

    This is a floor, not a ceiling — it sees only what the suite exercises. The committed check
    therefore asserts the declaration surface, which is the upper bound and exactly decidable.

    ECR calibrates it. After #1090, ECR's only remaining bookkeeping-named wire member is
    createdAt, which API_Repository publishes. The pass reports exactly that and nothing else,
    which is the known-good answer this issue's plan wanted it checked against.

    Per service

    Leak = a member AWS publishes on no shape the operation returns.

    service ops obs leaks not a leak
    acm 1 3 AccountID, Region published: CreatedAt
    appsync 4 8 accountId, region —
    backup 2 5 AccountID, Region, UpdatedAt —
    batch 1 3 accountID, region published: createdAt
    bedrock-runtime 1 2 accountID, region —
    budgets 2 6 AccountId, CreatedAt, Region —
    cloudtrail 4 12 AccountID, CreatedAt, Region —
    codebuild 5 10 accountID, region —
    codedeploy 3 6 accountID, region —
    codepipeline 1 2 accountID, region —
    cognito-idp 11 22 AccountID, Region —
    dynamodb 2 2 — false positive: CreatedAt, Region
    ec2 1 1 — published: region
    ecr 3 3 — published: createdAt
    ecs 13 31 AccountID, Region, ever_tagged published: createdAt
    efs 7 18 AccountID, CreatedAt, Region, ever_tagged —
    emrserverless 2 4 accountID, region —
    firehose 1 3 AccountId, Region published: CreateTimestamp
    glue 12 34 AccountID, CreatedAt, Region —
    health 1 1 — published: region
    iam 3 3 Region —
    omics 1 2 accountID, region —
    organizations 2 2 — published: AccountId
    quicksight 1 2 AccountID, Region —
    ram 1 4 accountID, region —
    redshift-data 1 2 — published: CreatedAt, UpdatedAt
    sagemaker 3 6 AccountID, Region —
    sesv2 1 3 AccountId, CreatedAt, Region —
    sso 3 3 AccountID published: AccountId
    transfer 2 5 AccountID, CreatedAt, Region —
    wafv2 2 5 AccountID, CreatedAt, Region —

    The ten pages read, so a leak is not confused with a member

    A wrong "published" call hides a real leak, so every AWS-plausible spelling was checked against the
    operation's own page rather than classified by eye. Genuinely published — not leaks: ECR
    Repository.createdAt, ECS Service.createdAt, Batch JobDetail.createdAt, ACM
    CertificateDetail.CreatedAt, Firehose DeliveryStreamDescription.CreateTimestamp, Redshift Data
    DescribeStatement.CreatedAt and UpdatedAt, Organizations CreateAccountStatus.AccountId, SSO
    AccountAssignment.AccountId, EC2 SpotPlacementScore.region, Health Event.region.

    The same reads settled the co-located members the other way, which is the payoff: Firehose's
    DeliveryStreamDescription publishes no AccountId and no Region; ACM's CertificateDetail
    publishes no AccountID and no Region; AppSync's GraphqlApi publishes neither accountId nor
    region; and SES v2's GetEmailIdentity response publishes none of the three it emits. Each of
    those is a leak sitting beside a published member on the same shape.

    EFS is the sharpest case in the inventory. FileSystemDescription publishes CreationTime;
    substrate emits CreatedAt. The leak is a near-miss of a real member, not an obvious extra — the
    kind a consumer reads as a typo in their own code rather than as an emulator divergence.

    Spelling is a sound classifier for two-thirds of the set. AWS JSON APIs spell an account
    identifier AccountId or accountId. AccountID, accountID, account_id, ever_tagged, r and
    a appear in no AWS API model, so any of those on the wire is certain without a page read.
    AccountId/accountId/Region/region/CreatedAt/createdAt are the ones that need checking.

    One unverified: Budgets' AccountId/CreatedAt/Region are listed as leaks on the spelling and
    shape argument, but the Budgets API reference page is not machine-retrievable, so unlike the other
    ten this trio has not been confirmed against its page. Worth a read before Budgets is fixed.

    Two false positives, and a limitation worth recording: DynamoDB's /Items/[]/CreatedAt and
    /Items/[]/Meta/M/Region are caller-supplied item attributes — note the M in the second, a
    DynamoDB map attribute value. In a schemaless service the pass cannot distinguish caller data from
    substrate's own fields, so DynamoDB must be read by hand.

    The committed deliverable

    scripts/check-wire-bookkeeping.sh + scripts/wire-bookkeeping-baseline.txt, in the shape of
    scripts/check-discarded-unmarshal.sh, wired as make wire-bookkeeping-check beside
    discarded-unmarshal-check — and as a CI job (Wire Bookkeeping Drift). The CI wiring is not
    decoration: discarded-unmarshal-check is a make-only target that no workflow runs, and a baseline
    nothing executes is a TODO list rather than a ratchet, which is how this inventory stayed untaken.

    The measured declaration surface is 330 fields across 146 struct types in 67 files — correcting
    this issue's plan, which estimated "343 fields across ~40 files". Two deliberate exclusions account
    for most of the difference and both are recorded in the script:

    • organizations_account_test.go's orgCreateStatus.AccountID is a test's decode target, not
      wire surface — and it reads CreateAccountStatus.AccountId, which AWS publishes.
    • Three structs declare CreatedTime, and both ELB generations publish CreatedTime as a real
      member, so a field of that name is the service's data. (CloudFrontDistribution.CreatedTime is a
      divergence — CloudFront publishes LastModifiedTime — but that is a wrong member, not a
      bookkeeping leak, and belongs to its own issue.)

    The baseline is keyed file → type → Go field → rendered tag, with no line numbers: line
    citations in this repo drift constantly, and file+type+field is stable across every edit that is not
    the fix itself.

    Two findings that shape how a fix should be written:

    • AccountID renders ten different ways — AccountID, AccountId, accountID, accountId,
      account_id, a, plus ,omitempty variants of four. One AccountID renders as json:"a" and one
      Region as json:"r", so the Go identifier is the only stable key and a tag-name scan would miss
      both.
    • json:"-" is used on none of the 330. The one tag that would keep a bookkeeping field out of a
      response without removing it from state has never been reached for.

    The baseline is an inventory of defects, not a suppression list — which is the one place this
    departs from check-discarded-unmarshal.sh, whose ALLOWED_FILES entries each argue for their own
    retention. Here every line is expected to be deleted, so the check fails in both directions: a
    field missing from the baseline is new leak surface, and a baseline line the tree no longer has is a
    stale record. Fixing a service must shrink the file in the same commit. That is what stops the
    inventory rotting the way a plain TODO list does.

    Acceptance criteria

    • An inventory of every response-reaching field not in the AWS API model, with the plugin and
      the operation that exposes it.
      Above — service, operation, member and JSON pointer for all
      213 observations, with the floor/ceiling caveat stated.
    • An approach chosen per plugin (render function vs. split encoding) with the reason recorded.
      v0.121.0. ECR: Repository responses leak six substrate fields, two statuses disagree with the page, and three collections read no cursor #1090's ECR fix is the worked precedent for the render-function arm.
    • No member absent from the API model reaches a response body, or the exception is named in
      docs/services.md with its reason.
      v0.121.0 — 25 services to go. The exceptions that will
      need naming are the eleven published members above, since a reader of a fix will otherwise ask
      why createdAt survived.
    • A test that fails if a new bookkeeping field is added to a wire-reaching struct. A script
      and CI job rather than a Go test, following this repo's precedent for rules a linter cannot
      state (check-discarded-unmarshal.sh, check-doc-versions.sh): the rule is lexical, and the
      four existing checks of this kind all live in scripts/. Verified to fail in both directions
      before being committed.

    Out of scope, and not caught by this check

    This issue's body names a second group — "fields that are substrate concepts", DynamoDB's
    TTLAttribute and Tags inside TableDescription. Both are still present and still wire-visible
    (emulator/dynamodb_types.go:100, :106, on DynamoDBTable), and their own doc comments already
    record the divergence. A five-name field ratchet does not catch them, because the defect there is
    a substrate concept wearing a plausible name rather than a known bookkeeping field. Group 2 needs its
    own enumeration and is not covered by anything landing here — worth stating plainly so the check is
    not mistaken for complete coverage of this issue's original scope.

    Also note the denominators differ: this issue opens from #738's "roughly 96 lines", which counted
    unpublished-member lines including group 2. The 330 here counts the five bookkeeping field names
    only, and includes fields reachable only from state.Set. Neither number is wrong; they measure
    different things.

  4. added 2 commits that reference this issue on Sep 20, 2026
  5. scttfrdmn commented on Sep 20, 2026

    @scttfrdmn
    OwnerAuthor

    Moving to v0.121.0 with two of four acceptance criteria shipped in v0.120.0.

    What shipped (PR #1219)

    • AC1 — the inventory. Taken by observation rather than by grep, because the rule "no bookkeeping
      field reaches an AWSResponse.Body"
      is a type-and-dataflow question and substrate vendors no
      analysis library: every plugin's HandleRequest was temporarily instrumented over the body it was
      about to return and the suite run. 213 wire-visible observations across 31 services and 97
      operations, 194 of them (25 services, 86 operations) members AWS publishes nowhere.
      The full
      service-by-service list is at emulator: substrate bookkeeping fields render as response members AWS does not publish #756 (comment 5746620648). That pass is a floor, not a ceiling — it
      sees only what the suite exercises.
    • AC4 — the test that fails when a new bookkeeping field gains wire-visible ground.
      scripts/check-wire-bookkeeping.sh + scripts/wire-bookkeeping-baseline.txt, run as
      make wire-bookkeeping-check and as a CI job — the CI wiring being the load-bearing part, since
      discarded-unmarshal-check is a make-only target no workflow runs, and a baseline nothing executes
      is a TODO list rather than a ratchet. It asserts the declaration surface, the exactly-decidable upper
      bound: 330 fields across 146 struct types in 67 files (correcting the planned estimate of 343
      across ~40 files). The baseline is an inventory of defects, not a suppression list, so the check fails
      in both directions — a new field is new leak surface, a stale line is a stale record — and a fix
      must shrink the file in the same commit.

    ECR calibrated the pass: after #1090 its only remaining bookkeeping-named wire member is createdAt,
    which API_Repository publishes, and the pass reports exactly that and nothing else.

    What remains, and why it is v0.121.0 work

    • AC2 — an approach chosen per plugin (render function vs. split encoding) with the reason recorded.
    • AC3 — no member absent from the API model reaches a response body, or the exception is named in
      docs/services.md with its reason.

    Both are the 194-observation fix itself, service by service. v0.120.0 was scoped to fidelity of
    refusals
    , and deliberately to the reachability pass plus a make target, not to fixing all 330
    sites
    — the inventory was the thing this issue had been blocked on since it was filed, and it now
    exists as a ratchet that cannot silently grow. Fixing the services it names starts from a committed
    baseline rather than from a re-derivation.

  6. modified the milestones: v0.120.0, v0.121.0 on Sep 20, 2026
  7. added
    area: consistency
    on Sep 20, 2026
  8. scttfrdmn commented on Sep 20, 2026

    @scttfrdmn
    OwnerAuthor

    Two of Batch's three baseline lines are real leak surface and the third is a false positive of the
    five-name heuristic, found while implementing #1236.

    scripts/wire-bookkeeping-baseline.txt records:

    emulator/batch_plugin.go	BatchJob	AccountID	accountID
    emulator/batch_plugin.go	BatchJob	CreatedAt	createdAt
    emulator/batch_plugin.go	BatchJob	Region	region
    

    AccountID and Region are substrate's own scoping and AWS publishes neither, so both are the
    class this issue is about. createdAt is a published member, on both shapes a BatchJob is
    rendered into:

    • JobDetail (DescribeJobs) publishes "* createdAt ** The Unix timestamp (in milliseconds) for
      when the job was created. … This is specifically at the time SubmitJob was called."*, Type: Long, Required: No
      (API_JobDetail, read
      2026-09-20).
    • JobSummary (ListJobs) publishes "createdAt": number in the Response Syntax
      (API_ListJobs).

    So fixing Batch under this issue means deleting two of the three lines, not three: the
    wire struct that replaces BatchJob on the response side has to keep createdAt and drop
    accountID/region. Filing a json:"-" on it, or reading the third line as owing a deletion,
    would remove a member the reference publishes.

    The header already records the same shape of exception one level up — "CreatedTime is deliberately
    absent. Three structs declare it, and both ELB generations publish CreatedTime as a real member"
    —
    so CreatedAt is not uniformly bookkeeping either; it is bookkeeping on the services that spell a
    published CreationTime that way (EFS is the case the header names) and data on Batch.

    #1236 needed this decided because batchJobSummary is exactly the wire struct this issue asks for,
    and it carries createdAt. Rather than baselining a published member, check-wire-bookkeeping.sh
    gained a per-site exclusion list — keyed file + type + field, with the published-member argument
    stated at the site — holding one entry, batch_list_jobs.go batchJobSummary.CreatedAt. The three
    BatchJob lines are untouched, so this issue's inventory is unchanged; the count is still 330.

  9. added a commit that references this issue on Sep 20, 2026
  10. added 3 commits that reference this issue on Sep 30, 2026
  11. scttfrdmn commented on Sep 30, 2026

    @scttfrdmn
    OwnerAuthor

    AC2 — the approach, chosen per plugin, with the reason

    The criterion asks for "an approach chosen per plugin (render function vs. split encoding) with the
    reason recorded"
    . The honest answer is that the choice is not per plugin — it is forced, and the
    same one everywhere.
    That is worth stating as the finding rather than dressed up as 23 independent
    decisions, and the reason is recorded once below. What is genuinely per service is a short list of
    extra work each one owes beyond the mechanical projection, and that is the table.

    Why "split encoding" is not available

    emulator/ecr_wire.go states the rule this issue has to live under:

    json:"-" and retyping a field in place both change the format of every recorded run, because
    MemoryStateManager snapshots those bytes and a replay reads them back.

    Every record in the table below is written to state. So all three of the cheap fixes are out for all
    of them:

    "Split encoding" in Go means a second struct with different tags, which is the render function. So
    the two options the criterion offers are the same option here, and the answer for every service is
    project, via a <service>_wire.go on the pattern of emulator/ecr_wire.go (#1090),
    emulator/apigateway_wire.go (#529), emulator/appsync_wire.go (#1121) and now
    emulator/efs_wire.go (#1304).

    The one case where the answer could have been delete — a field nothing reads and nothing has
    persisted — does not occur. Checked per service: every account/Region read in these plugins is
    reqCtx.AccountID / reqCtx.Region, so no reader blocks deletion; the writer does.

    Three services are already done and are simply not recorded

    Found while measuring, and this is the cheapest work left in the issue:

    service records already projects? owes
    appsync AppSyncGraphQLApi (2 lines) yes — every one of the 21 response sites calls a …ToWire (#1121) one wire-bookkeeping-projected.txt line citing TestAppSyncWire_GraphqlAPIAnswersArn, which already asserts "region", "accountId" and "AccountID" are absent from the raw bytes of all four graphqlApi operations
    apigateway 8 records, 17 lines yes — apigateway_wire.go (#529) a raw-bytes assertion; apigateway_wire_test.go asserts members but never absence
    apigatewayv2 7 records, 14 lines yes — apigatewayv2_wire.go same
    dynamodb DynamoDBTable, DynamoDBStreamCursor (3 lines) dynamodb_wire.go (#1013) same, plus the hand read below

    That is 36 declared lines — 12% of the 306 still counted as reachable — closable without touching
    a single plugin. The inventory's appsync row is stale for the same reason: the instrumented pass
    predates #1121.

    And IAM is a misclassification, not a leak

    The inventory lists iam | 3 ops | 3 obs | leaks: Region. It does not. The only two wire-visible
    Region fields in emulator/iam*.go are IAMRoleLastUsed.Region and IAMSLRRoleUsage.Region, and
    API_RoleLastUsed and API_RoleUsageType each publish Region — "the name of the AWS Region in
    which the role was last used" and "where the service-linked role is being used". Both are excluded as
    of #1306. IAM's three remaining baseline lines (IAMAccessKey.AccountID, IAMRole.EverTagged,
    IAMUser.EverTagged) were not observed reaching a body, which is the floor-not-ceiling caveat
    doing its job rather than a clean bill: AccessKeyMetadata publishes no AccountId, so if that one
    ever reaches a response it is a leak.

    So the observed-leak count is 25 − EFS (#1304) − IAM (reclassified) − AppSync (already projected) =
    22 services
    needing a new wire file.

    The 22, with what each owes beyond the mechanical projection

    Decision is project for every row; the column that varies is the second one.

    service records to project beyond dropping the bookkeeping members
    acm ACMCertificate #1305 — CreatedAt must become epoch seconds on the way out; check IssuedAt, NotBefore, NotAfter at the same time
    firehose FirehoseDeliveryStream #1305 — CreateTimestamp is published but RFC3339; LastUpdateTimestamp is published and absent
    redshift-data RedshiftDataStatement #1305 — CreatedAt and UpdatedAt are both published members, both wrong type. No bookkeeping leak besides AccountID/Region
    sso SSOAccountAssignment, SSOInstance, SSOPermissionSet a rename, not a deletion. AccountID is a wrong spelling of the AccountId API_AccountAssignment publishes. Same shape as AppSync's apiArn→arn: the value is right, the member name is wrong, so the projection republishes it rather than dropping it
    budgets Budget read the page first. The AccountId/CreatedAt/Region trio is the one classification in the inventory never confirmed against its reference, because the Budgets API reference is not machine-retrievable. Do not project on the spelling argument alone
    dynamodb DynamoDBTable, DynamoDBStreamCursor hand read. The pass's two DynamoDB findings are caller-supplied item attributes (/Items/[]/CreatedAt, /Items/[]/Meta/M/Region — note the M). A schemaless service defeats the instrumentation, so this one cannot be driven off the measurement
    ecs ECSCluster, ECSService, ECSTask, ECSTaskDefinition largest single win: 13 operations, 31 observations. ECSService.CreatedAt already uses EpochSeconds — the model for the others
    glue GlueConnection, GlueCrawler, GlueDatabase, GlueJob, GlueJobRun, GlueTable second largest: 12 operations, 34 observations, 6 records, and CreatedAt on five of them
    cognito-idp CognitoGroup, CognitoIdentityPool, CognitoUser, CognitoUserPool, CognitoUserPoolClient 11 operations; the widest record count after Glue
    backup BackupPlan, BackupSelection, BackupVault the only UpdatedAt in the observed set
    cloudtrail CloudTrailTrail —
    codebuild CodeBuildBuild, CodeBuildProject —
    codedeploy CodeDeployApp, CodeDeployDeployment, CodeDeployGroup —
    codepipeline CodePipelineExecution, CodePipelineState —
    batch BatchJob CreatedAt is published (JobDetail.createdAt, Long/epoch-ms) and stays
    bedrock-runtime BedrockModelInvocationJob —
    emrserverless EMRServerlessApp, EMRServerlessJobRun —
    omics OmicsRun —
    quicksight QuickSightDataSet, QuickSightDataSource —
    ram RAMResourceShare —
    sagemaker SageMakerApp, SageMakerTrainingJob —
    sesv2 SESv2CapturedEmail, SESv2Identity GetEmailIdentity publishes none of the three members it emits — verified
    transfer TransferServer, TransferUser —
    wafv2 WAFv2IPSet, WAFv2WebACL —

    (24 rows: the 22 plus batch and redshift-data, which are listed because they still leak
    AccountID/Region even though their CreatedAt is published.)

    What every row also owes, identically

    1. A raw-JSON test asserting the absence of every unpublished member on every site that answers
      the record — including the single-resource filtered arms of a Describe, which is where fix(#756): render EFS responses from the published shape #1304
      undercounted EFS nine when it was ten.
    2. Every assertion carries a presence anchor, so an absence assertion cannot pass vacuously on a
      response that failed. fix(#756): render EFS responses from the published shape #1304 shipped an ever_tagged assertion that was vacuous until the test was
      made to tag the resource first — EverTagged is set only by TagResource, never by
      create-with-tags.
    3. A scripts/wire-bookkeeping-projected.txt line per record, citing that test by name. The check
      refuses a citation naming a test the tree does not define, which is what keeps the third column a
      citation rather than a comment.
    4. EverTagged stays on the record wherever TaggingPlugin reads it across the service boundary, and
      the projection is the only thing that hides it.
    5. Members the reference publishes that substrate reports nowhere get added in the same pass — EFS
      gained CreationTime, SizeInBytes and two OwnerIds that way, two of them out of the very
      AccountID that was leaking.

    Status

    • AC2 — an approach chosen per plugin with the reason recorded. This comment. The finding is
      that the choice is forced rather than free, and the reason is the replay invariant.
    • AC3 — no unpublished member reaches a response body. 306 still reachable as of fix(#756): stop filing published members as bookkeeping leaks #1306;
      36 of those are the four already-projecting services above, and the rest are the 22.

    Denominator history, so the number is readable: 330 declared at AC1 → 330/13/317 after EFS (#1304) →
    319/13/306 after #1306 removed eleven lines that were filing published members as defects.

  12. 47 remaining items

  13. added 4 commits that reference this issue on Oct 3, 2026
  14. scttfrdmn commented on Oct 3, 2026

    @scttfrdmn
    OwnerAuthor

    AC3: the 3-line block is discharged, leaving 37 still reachable

    PR Service Shape Still reachable
    #1346 IAM (IAMRole, IAMUser, IAMAccessKey) Already projected; citation only 67 → 64
    #1347 KMS (KMSKey) Already projected; citation only → 61
    #1348 MSK (MSKCluster) Already projected; citation only → 58
    #1350 S3 (S3Bucket) Already projected; citation only → 55
    #1352 Secrets Manager (SecretState) Already projected; citation only → 52
    #1353 SSM (SSMParameter) Already projected; citation only → 49
    #1354 ACM (ACMCertificate) Leak, plus #1305's ACM dates → 46
    #1355 Budgets (Budget) Leak → 43
    #1356 CloudTrail (CloudTrailTrail) Leak, two shapes → 40
    #1357 IAM Identity Center (three records) Leak, plus #1345's dates → 37
    319 declared, 273 projected across 114 records, 9 internal across 6 records, 37 still reachable
    

    Found along the way

    What remains: 37 lines

    • Files of two or one line: athena, batch, bedrock_runtime, cloudfront, ec2_capacity_reservations,
      ec2_fleet, firehose, fsx, omics, ram, redshiftdata, route53, scheduler, and the
      remaining iam/lambda/sqs EverTagged lines.
    • The five records feat(#756): discharge records no AWS response renders, through a third inventory #1337 showed reach AWS responses: STSSessionCredentials, CFNStackState,
      CFNChangeSet, DynamoDBStreamCursor, kinesisIterator.

    Leaving this issue open.

  15. scttfrdmn commented on Oct 3, 2026

    @scttfrdmn
    OwnerAuthor

    Correction to the remainder list in the comment above: IAM is not remaining. #1346 cited
    IAMRole, IAMUser and IAMAccessKey. The exact 37, recomputed from the three inventory files:

    Lines Records
    2 each AthenaQuery, BatchJob, BedrockModelInvocationJob, CloudFrontDistribution, EC2CapacityReservation, EC2Fleet, FirehoseDeliveryStream, FSxFileSystem, OmicsRun, RAMResourceShare, RedshiftDataStatement, SchedulerRecord
    1 each LambdaFunction and SQSQueue (EverTagged), and Route53HostedZone
    #1337's five CFNStackState + CFNChangeSet (5 lines), DynamoDBStreamCursor (2), kinesisIterator (2), STSSessionCredentials (1)
  16. added 6 commits that reference this issue on Oct 3, 2026
  17. scttfrdmn commented on Oct 3, 2026

    @scttfrdmn
    OwnerAuthor

    AC3 is met, so every acceptance criterion is now checked and I'm closing this.

    scripts/check-wire-bookkeeping.sh on main (b7b1f12): 319 declared, 310 projected across 134 records, 9 internal across 6 records, 0 still reachable. Every declared bookkeeping field (AccountID / Region / CreatedAt / UpdatedAt / EverTagged, in every spelling) is now in one of two places:

    • Projected: a raw-bytes test is cited in scripts/wire-bookkeeping-projected.txt. It reads the member back from the stored record first, then walks every routed operation's response for it at any depth.
    • Internal: recorded in scripts/wire-bookkeeping-internal.txt (feat(#756): discharge records no AWS response renders, through a third inventory #1337), because no AWS response renders it. Each entry has an anchor the check verifies exists in the tree.

    Zero is now enforced, not just reported. Since #1367, the check fails and names any record that declares a bookkeeping field and that neither file discharges, so --write cannot admit a new record silently.

    The tail since the last update:

    Scope: this issue is about substrate's bookkeeping members. Published-shape gaps that are not bookkeeping stay tracked in #1199. That covers members AWS publishes that substrate omits, and non-bookkeeping members AWS does not publish.

    Filed along the way: #1360 (CloudFront InvalidationBatch), #1364 (Omics CANCELLED), #1365 (147 discarded json.Marshal errors) and #1366 (CloudFormation state keys unscoped by account/Region).

  18. added a commit that references this issue on Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: consistency

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions