Skip to content

feat: a fault mapping can withhold the fault's name from the problem - #96

Merged
CaffeinatedCoder merged 1 commit into
release/2.3.0from
feat/withheld-fault-name
Oct 28, 2026
Merged

CaffeinatedCoder merged 1 commit into
release/2.3.0from
feat/withheld-fault-name

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

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 becomes release/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, beside WithType and WithTitle; FaultResponse.NamesFault reads it. Since the mapping answers member by member, it covers chosen members and a whole type alike.
  • The problem of a withheld member has no fault and no rule. A fault set member's description no longer stands in as its detail, 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.
  • The document: a response whose every fault withholds its name ends its description with "The problem names no fault." The shared schema keeps fault optional.
  • The startup warning for two fault types writing one name counts only the members that write it.
  • Decision 111 records it, and decision 64's index row points to it.
  • Docs: the AspNetCore README's "Faults a client must not tell apart" shows the second way as compiled code. The changelog is updated and the roadmap item removed.
  • Probe corpus: seven seeds that patch the changed lines are regenerated (C03, C05, C06 ×2, C08, C14 ×2).

Tests

  • WithheldFaultNameTests:
    • Two withheld members, one of them with a rule, answer byte for byte alike, with no fault and no rule.
    • The occurrence's detail is kept, and a named member still names itself.
    • The host sees the name, the rule and NameWithheld.
    • The document describes a status with every fault withheld as naming none, and keeps the plain description where a named member shares the status.
    • A whole fault set withheld writes no member description.
    • WithType and WithTitle keep 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, without fault.
  • Seeded and caught, one failing test each:
    • The rule still written.
    • The description kept.
    • The document's sentence never written.
    • The same-name check unfiltered.
    • WithType dropping the choice.
    • The feature not flagged.
  • Full suite: 18,286 passed. AspNetCore packs with package validation against 2.2.0.
  • prober seeds over 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

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 CaffeinatedCoder added this to the 2.3.0 milestone Oct 28, 2026
@CaffeinatedCoder CaffeinatedCoder added enhancement New feature or request stacked Base is another open PR; merge in order, CI does not run until it targets a release package/aspnetcore Affects CodoMetis.TypeKit.AspNetCore labels Oct 28, 2026
Base automatically changed from feat/catch-async-valuetask to release/2.3.0 October 28, 2026 20:40
@CaffeinatedCoder
CaffeinatedCoder merged commit 24f0aa8 into release/2.3.0 Oct 28, 2026
15 checks passed
@CaffeinatedCoder
CaffeinatedCoder deleted the feat/withheld-fault-name branch October 28, 2026 21:08
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request package/aspnetcore Affects CodoMetis.TypeKit.AspNetCore stacked Base is another open PR; merge in order, CI does not run until it targets a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant