Skip to content

Commit 88582dc

Browse files
committed
docs(ofrep): say which side of the corrected declaring rules each withholding is on
Appendix F gained a sixth declaring rule and a corrected numeric-coercion note (spec@4cab0320, spec@045950ca). Three of this suite's withholdings are affected and none of them is affected the same way, so each now says which. @numeric-coercion is unchanged and correct. The corrected note says a provider that attempts the coercion and gets a direction wrong declares the tag and lets the scenario fail; this provider never coerces at all, keeps the two JSON types apart end to end, and is the kind the note still says should withhold. Worth stating because the flagd adoption in this repository now reads the opposite way from the same rule, and a reader comparing the two files deserves to know that is the rule working rather than two suites disagreeing. @large-integers had no note at all, which the sixth rule's second consequence makes a defect in its own right: a capability withheld for a backend gap is temporary, and without a note saying why it outlives its reason. Its single scenario asks for huge-integer-flag, flagd-testbed v3.8.0 seeds none, so not one of the tag's scenarios reaches this provider -- the mirror image of @Variants two entries above, where seven of eight rows do and the tag is declared. @disabled-flags is the one decision here the correction says should change, and this commit does not change it, because a documentation pass that moves a count is no longer a documentation pass. The note records the argument in full instead: this provider does attempt the behaviour and fails on one unconditional index, so the appendix's preferred shape is to declare the tag, accept four failing rows and record the defect as an untracked deviation. The self-test carve-out added in the same revision licenses a withholding for an identified defect, but is explicit that an adoption has none. The next change to this file is that one. Signed-off-by: Simon Schrottner <simon.schrottner@flagsmith.com>
1 parent 3e50e8f commit 88582dc

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

‎providers/openfeature-provider-ofrep/tests/tck/test_ofrep_conformance.py‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,16 @@
133133
# as normative OpenFeature. The honest record is the undeclared tag and the three
134134
# skips it produces.
135135
#
136+
# This withholding survives the correction that appendix made at spec@045950ca,
137+
# and it is worth saying which side of it this is on, because the flagd adoption
138+
# in this repository reads the opposite way. That note now says a provider which
139+
# *attempts* the coercion and gets a direction wrong declares the tag and lets
140+
# the scenario fail -- flagd's RPC resolver narrows 0.5 to 0 and does exactly
141+
# that -- and that withholding is for a provider which cannot attempt it at all.
142+
# This provider is the second kind: it never widens or narrows anything, the two
143+
# JSON types stay apart end to end, and there is no coercion here to get wrong.
144+
# Same rule, different provider, opposite answer.
145+
#
136146
# DISABLED_FLAGS is withheld as well, new at spec@009afe06, and this one is a
137147
# provider defect rather than an architecture. Which is the opposite of what the
138148
# appendix predicts, so it is worth being exact about.
@@ -174,6 +184,23 @@
174184
# record is the undeclared tag, the four skips it produces, and this note saying
175185
# the gap is a bug somebody can fix rather than a fact of the protocol.
176186
#
187+
# **That reasoning does not survive spec@045950ca, and this is the one decision
188+
# in these suites that the corrected appendix says should change.** It is left
189+
# standing here only because the pass that found it was a documentation pass and
190+
# changing it moves a count. The difference from the numeric-coercion note above
191+
# is that this provider *does* attempt the behaviour: it resolves a disabled flag
192+
# and gets it wrong on one unconditional index, which is the case the appendix
193+
# tells an adopter to declare and let fail, with a KnownDeviation.untracked
194+
# beside it -- "withdrawing the capability replaces a failing scenario with a
195+
# skip and hides a defect behind something that looks deliberate". The self-test
196+
# carve-out in that same revision, which does license a withholding for an
197+
# identified defect, is explicit that an adoption has none: this suite exists to
198+
# report on a provider, and a skip here is a claim about that provider.
199+
#
200+
# So the next change to this file declares @disabled-flags, accepts four failing
201+
# rows, and records the `data["variant"]` defect as an untracked deviation -- and
202+
# files it, which is what makes the deviation tracked and the failures temporary.
203+
#
177204
# Not declared, and why. Each is a fact about the provider, established by
178205
# reading it -- OFREPProvider is stateless: it holds a requests.Session and a
179206
# rate-limit timestamp, and nothing else survives between evaluations.
@@ -240,6 +267,30 @@
240267
# the same declare-what-nothing-exercises error the reserved tag below is
241268
# kept out for.
242269
#
270+
# LARGE_INTEGERS
271+
# The one withholding in this list that is about the backend rather than the
272+
# provider, and until this pass the one with no reason written down at all.
273+
# Appendix F's sixth declaring rule (spec@4cab0320) is what decides it:
274+
# exactly one scenario carries the tag, it asks for `huge-integer-flag`, and
275+
# flagd-testbed v3.8.0 seeds no such flag -- so not one of the tag's
276+
# scenarios can be put to this provider, and nothing about the capability
277+
# can be established either way. Contrast VARIANTS above, where seven of
278+
# eight rows do reach the provider and the tag is declared on their strength.
279+
#
280+
# Nothing in this path would narrow the value: a JSON number decodes through
281+
# `json.loads` into an unbounded Python `int` and the type check at
282+
# ofrep/__init__.py:249-256 admits it unchanged. The suite cannot show that,
283+
# which is the point -- a declaration would be a claim with no evidence
284+
# behind it in either direction.
285+
#
286+
# No KnownDeviation, in either shape: the gap is the fixture's, and an entry
287+
# would attribute it to the provider. And per the same rule's second
288+
# consequence this withholding is temporary in a way the ones above are not.
289+
# open-feature/flagd-testbed#392 adds the flag; declare the tag when the
290+
# image carries it, or this outlives its reason and starts reading as a
291+
# claim about the provider. Both flagd suites here withhold it on the same
292+
# ground and say so in the same terms.
293+
#
243294
# CACHING
244295
# Reserved in the Capability enum; no scenario carries the tag. Declaring a
245296
# capability nothing exercises would be a claim with no evidence behind it.

0 commit comments

Comments
 (0)