Commit f206385
committed
fix(rest): the record-share family carries a demoted producer code on
`respondSharingError` asks `classifiedRefusalAnswer` — the flat `/data` door's
own classification, which already holds the demoted producer spelling — and
re-dressed only `status`, `code` and the message into the nested ADR-0112 D5
envelope. The author's own code was dropped one line below the local that
carried it: nothing invalid shipped, since the closed `code` still carried the
member the status derives, which is what made the loss silent and
one-directional.
The pair is carried, not recomputed. `refusal.body.declaredCode` is the shared
rule's OUTPUT (`thrownCodeFields` = `resolveThrownHttpError` +
`demotedDeclaredCode`), so "presence means demotion" arrives with the value; the
resolver's RAW `declaredCode` is deliberately not read, because it is set for a
REGISTERED spelling too and forwarding it would put two spellings of one fact on
every registered refusal.
The comment that explained the omission is repaired in the same change. It said
`sendError`'s `extra` would not accept the field — true when written, false
since `db8c288` (PR #12403) added `declaredCode` to the writer's `Pick`. Left
alone it reads as "blocked upstream, nothing to do here" to the next author,
which is the direction that costs a repair rather than an understanding.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UjujZN219uFzBhSYfMykCddeclaredCode (#12510)1 parent 9a2f3df commit f206385
3 files changed
Lines changed: 551 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9581 | 9581 | | |
9582 | 9582 | | |
9583 | 9583 | | |
9584 | | - | |
| 9584 | + | |
| 9585 | + | |
| 9586 | + | |
| 9587 | + | |
| 9588 | + | |
| 9589 | + | |
| 9590 | + | |
| 9591 | + | |
9585 | 9592 | | |
9586 | 9593 | | |
9587 | 9594 | | |
| |||
9651 | 9658 | | |
9652 | 9659 | | |
9653 | 9660 | | |
9654 | | - | |
9655 | | - | |
9656 | | - | |
9657 | | - | |
9658 | | - | |
9659 | | - | |
9660 | | - | |
| 9661 | + | |
| 9662 | + | |
| 9663 | + | |
| 9664 | + | |
| 9665 | + | |
| 9666 | + | |
| 9667 | + | |
| 9668 | + | |
| 9669 | + | |
| 9670 | + | |
| 9671 | + | |
| 9672 | + | |
| 9673 | + | |
| 9674 | + | |
| 9675 | + | |
| 9676 | + | |
| 9677 | + | |
| 9678 | + | |
| 9679 | + | |
| 9680 | + | |
| 9681 | + | |
| 9682 | + | |
| 9683 | + | |
| 9684 | + | |
| 9685 | + | |
| 9686 | + | |
| 9687 | + | |
| 9688 | + | |
| 9689 | + | |
| 9690 | + | |
| 9691 | + | |
| 9692 | + | |
| 9693 | + | |
| 9694 | + | |
| 9695 | + | |
| 9696 | + | |
| 9697 | + | |
| 9698 | + | |
| 9699 | + | |
| 9700 | + | |
| 9701 | + | |
9661 | 9702 | | |
9662 | 9703 | | |
9663 | 9704 | | |
9664 | | - | |
| 9705 | + | |
| 9706 | + | |
| 9707 | + | |
| 9708 | + | |
| 9709 | + | |
| 9710 | + | |
| 9711 | + | |
9665 | 9712 | | |
9666 | 9713 | | |
9667 | 9714 | | |
| |||
0 commit comments