Skip to content

Treat an absent verified field as unknown, not as unverified - #18

Merged
garethx merged 1 commit into
mainfrom
fix/verified-field-absent
Aug 13, 2026
Merged

Treat an absent verified field as unknown, not as unverified#18
garethx merged 1 commit into
mainfrom
fix/verified-field-absent

Conversation

@garethx

@garethx garethx commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

From the n8n session's live-testing notes, which report /requests listings that omit verified.

The finding does not reproduce here — checked against the live project, every model in the listing carries the field. But it exposes a real fragility in the check I added in #16: it read the field with .get(), so an absent one counted as a failure.

That is the wrong direction to be wrong in. "The API did not say" would be reported as "your source is accepting forgeries", sending someone to re-paste a signing secret that was never the problem — on the one check whose entire job is telling them what is true.

Requests are now judged only where they report themselves, counts are over what was judged rather than what was returned, and a listing that reports nothing is called unconfirmed rather than failed.

Two tests, mutation-checked: reverting to .get() fails both. 321 tests, ruff clean.

The n8n session measured `/requests` listings that omit `verified`. It is
present on this project — checked, every model in the listing carries it — so
the finding does not reproduce here. It still exposes a real fragility: the
check read the field with `.get()`, so an absent one counted as a failure.

That is the wrong direction to be wrong in. "The API did not say" would have
been reported as "your source is accepting forgeries", sending someone to
re-paste a signing secret that was never the problem, on the one check whose
whole job is telling them what is actually true.

Requests are now judged only where they report themselves, counts are over what
was judged rather than what was returned, and a listing that reports nothing is
called unconfirmed.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@garethx
garethx merged commit 4942c42 into main Aug 13, 2026
8 checks passed
@garethx
garethx deleted the fix/verified-field-absent branch August 13, 2026 11:36
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