You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1f62d3d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(skills): make the resilience the adapter configures actually fire
Review findings on the PR, verified against current code. Seven were real;
four were not, and are listed at the bottom with the check that settled them.
**The provider-adapter example configured resilience that could never
trigger.** The pipeline classifies by exception type — its `ShouldHandle`
matches `ProviderException`, `InfrastructureException` and
`TimeoutRejectedException`. The example translated SDK exceptions in a
`try/catch` *around* `Pipeline.ExecuteAsync`, so the pipeline saw raw
`LiveKit.RoomAlreadyExistsException` and `HttpRequestException`, matched
nothing, and retried nothing. Every adapter written from this skill would
have shipped four configured policies and zero live ones.
Translation now happens inside the callback, so the pipeline sees a typed
`ProviderException` and `IsClientError` decides retry. The outer catch keeps
a job the callback cannot do: Polly's own outcomes — `BrokenCircuitException`,
`TimeoutRejectedException`, `RateLimiterRejectedException` — carry no `Error`
and would surface as 500; wrapped in a bare `ProviderException` they inherit
`dependency_unavailable` → 503. Caller cancellation is rethrown unchanged so
it still maps to 499. The 88-line fence was extracted from the markdown
verbatim and compiled against the real `ProviderException` and
`IProviderResilience<TPort>`.
**`maxAttempts` survived the rename in four documented config samples** —
both `add-provider-adapter` blocks, ADR-0032's Implementation Notes and
Standards 09. The sweep covered `.cs` and `appsettings.json` and stopped
there, so the corpus taught a key the binder no longer reads. ADR-0032's
Amendment 2 records the change; its Decision section is byte-identical to
`main` (same md5).
**The container_name correction was appended and its contradiction left in
place.** Two lines apart, the delivery record said projects still cannot run
concurrently and then "so compose projects isolate". The second sentence is
the one the first was written to replace.
**`make dev` does not do what the skill said.** It is `docker compose up -d`
plus a status line — it does not start the API or the web app and it runs no
migrations. The skill claimed it "wraps docker-compose + dotnet + pnpm" and
that its first run applies migrations and seeds Keycloak. The host commands
are now spelled out; the seed steps are labelled as `scripts/seed.sh`'s
Phase 02a placeholder, which is what they are.
Also: the ports table's last row was orphaned below the paragraph that
followed it, breaking the table; `ToLower()` is culture-sensitive and
`ToLowerInvariant()` is what the documented lowercase contract needs;
`add-mediatr-handler` enqueued an unversioned `EnrollmentCreatedIntegrationEvent`
while its own pitfalls section requires the `V1` suffix; and
`SensitiveTokenCatalog` had `authheader` but not `authenticationheader`.
Not changed, with the reason:
- **"Normalize Polly exceptions to 503 instead of 500"** — already true.
`ProviderException`'s default `Error` is `lockey_dependency_unavailable`
and `HttpStatusMap` maps it to `ServiceUnavailable`. Verified in the source
rather than assumed; the adapter restructure above preserves it.
- **"Clarify that the approval deferral covers the two-approval rule"** — it
already does. The deferral sentence follows both clauses of the same bullet.
- **"Condense the entity-equality section, move rationale to ADR-0023"** — a
restructuring preference, not a defect. The section is accurate, and the
measurements it carries are the reason the rule is believed; moving them
into an ADR that must then be amended to change them makes the rule harder
to maintain, not easier.
- **"Restructure the catalogue assertion into nested bullets"** — style only.
227 tests green (was 224), build 0/0, format clean, all 80 skill C# fences
parse except the `<Name>` templates that predate this branch.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments