Repository navigation
feat: a fault mapping can withhold the fault's name from the problem - #96
Merged
Merged
Conversation
FaultResponse.WithoutFaultName() answers a member without naming it, for causes a client must not tell apart: a sign-in's unknown user and wrong password, mapped to 401 and withheld, answer alike without a mapping to one member at the boundary. The problem has no fault and no rule, and a fault set member's description no longer stands in as its detail, since it names the member as surely; the occurrence's own detail is kept. IFaultFeature gains NameWithheld, a default member, so the host still logs the fault and sees that the client is not told. The document's problem schema is shared and keeps fault optional; a response whose every fault withholds its name ends its description with "The problem names no fault." The startup warning for two fault types that write one name counts only the members that write it (Found-By: VA, the sibling of the problem's fault member). Decision 111 records it; decision 64's index row points to it. Stacked on feat/catch-async-valuetask for the record's number. Seven probe seeds that patch the changed lines are regenerated: C03 shared-status-types, C05 stays-the-errors, C06 description-as-detail and no-description-no-detail, C08 leave-one-out-fixes, C14 declared-describes- fault and declared-problem. Closes #85 Co-Authored-By: Claude Opus 5.5 <[email protected]>
CaffeinatedCoder
added a commit
that referenced
this pull request
Oct 28, 2026
The fault feature carries both NameWithheld (#96) and Cause; the changelog keeps both entries and the roadmap drops both items; the two prober seeds this branch edited are deleted, as #108 retired the prober. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #85
Stacked on #94 (
feat/catch-async-valuetask), for the decision record's number: 0110 is that PR's, and this record is 0111. Once #94 merges, this PR's base becomesrelease/2.3.0.Problem
Every problem
ToHttpResult()writes names its fault. A sign-in that answers 401 for an unknown user and for a wrong password still says which one it was. Decision 64 had the boundary map both to one member of its own fault type, and named an opt-in that withholds the name as the additive way.Change
FaultResponse.WithoutFaultName()in the mapping, besideWithTypeandWithTitle;FaultResponse.NamesFaultreads it. Since the mapping answers member by member, it covers chosen members and a whole type alike.faultand norule. A fault set member's description no longer stands in as itsdetail, because the description names the member as surely as its name does. The occurrence's own detail is kept.IFaultFeature.NameWithheld, a default member: the host still sees the fault, and sees that the client isn't told.faultoptional.Tests
WithheldFaultNameTests:faultand norule.NameWithheld.WithTypeandWithTitlekeep the choice in either order.ComposedFaultResponseTests: a shared name that one type withholds logs no warning.SignInSampleTests: the README's withheld sign-in answers alike, withoutfault.WithTypedropping the choice.prober seedsover the five probes whose seeds changed (C03, C05, C06, C08, C14; 23 seeds): running, the result is added here when it finishes.🤖 Generated with Claude Code