Skip to content

docs(fidelity): state the position on error message text (#487) - #488

Merged
scttfrdmn merged 1 commit into
mainfrom
docs/message-fidelity
Aug 2, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
docs/message-fidelity

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Refs #487

docs/fidelity.md committed to verifying "request/response shapes, error codes,
pagination, and IAM condition keys" and never mentioned error message text. That
is not a false claim, but a reader could reasonably have assumed more than substrate
delivers, and the gap was nowhere stated.

The new subsection says it plainly:

  • Codes and HTTP statuses are verified and are the contract — botocore and
    aws-sdk-go-v2 dispatch on Error.Code and never on message text.
  • Message text is faithful only where a source supplies it — a captured real-AWS
    response or a reimplementation that snapshot-tests against real AWS — reproduced
    verbatim (typos and stray whitespace included) with its source named in the code
    comment. Elsewhere it is substrate's own and reads as such.
  • Why the remainder is closed incrementally rather than swept: the reference
    describes error conditions rather than quoting the strings AWS sends, so a blind
    rewrite would replace recognisably substrate-shaped text with invented text that
    reads as authoritative — and you could no longer tell which messages had been
    researched.
  • The practical advice: assert on Error.Code and the status, not on message text.
    That holds against real AWS too, where wording is not a stable contract.

#487 carries the measured counts (1090 Message: literals in non-test emulator/
code; seven files with provenance notes; 219 "X is required", 214 "... not found").

VitePress build and check-doc-versions.sh pass.

The page committed to verifying "request/response shapes, error codes, pagination,
and IAM condition keys" and never mentioned message text. No false claim, but a
reader could reasonably assume more than substrate delivers: codes and statuses are
verified, while message text is faithful only where a capture or a parity-tested
reimplementation supplies it.

Also records why the remainder is closed incrementally rather than swept — the
reference describes error conditions rather than quoting AWS's strings, so a blind
rewrite would replace recognisably substrate-shaped text with invented text that
reads as authoritative.

Refs #487
@scttfrdmn scttfrdmn added type: docs Documentation only fidelity labels Aug 2, 2026
@codecov

codecov Bot commented Aug 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit fc8790e into main Aug 2, 2026
16 checks passed
@scttfrdmn scttfrdmn mentioned this pull request Aug 2, 2026
@scttfrdmn
scttfrdmn deleted the docs/message-fidelity branch August 2, 2026 06:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fidelity type: docs Documentation only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant