Repository navigation
Commit b47ba2c
fix(plugin-approvals): require warn on ApprovalServiceOptions logger sink (#10937)
Drops the `?` from `warn` on ApprovalServiceOptions['logger'] so a sink
declaring an optional `error` always has a guaranteed durability-report
channel (#9754, #10556). `error` stays optional. This is the thirteenth of
the card's thirteen mechanical repairs -- held out of #10691 to serialize
against PR #10547, which owned this file while open; that fence cleared
when #10739 merged.
Deletes the now-stale row from the shrink-only
scripts/optional-error-sink-contract.baseline.json (the checker itself
named the row as no-longer-red). The other two rows -- plugin-security's
default-sink design call and service-settings' no-fallback design call --
are untouched; both remain escalated to the maintainer.
No construction site needed a widening fix: the sole non-test call
(ApprovalsServicePlugin.start) passes ctx.logger, whose warn is already
required by the core Logger contract.
Part of #10556.
Claude-Session: https://claude.ai/code/session_0f14f70b-575c-5f2b-a235-4000a55db042
Co-authored-by: Claude <noreply@anthropic.com>1 parent 9d101d2 commit b47ba2c
3 files changed
Lines changed: 46 additions & 12 deletions
File tree
- .changeset
- packages/plugins/plugin-approvals/src
- scripts
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
| 539 | + | |
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
0 commit comments