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 bd49bf8
Browse filesBrowse the repository at this point in the historyBrowse files
refactor(contracts): share the inventory composition assertions with the test fake
Move assertProviderOutcome and assertSourceFamily from
src/platform-runtime-device-inventory.ts into @agent-device/contracts/device
(device-inventory.ts, exported through ./device). The test fake in
device-selection previously restated the provider flow without the outcome
assertion, so a malformed provider outcome surfaced as a TypeError or fell
through instead of the provider_inventory_contract_violation AppError. Both
the production composer and the fake now call the same validators, and a
fixture test pins the fail-closed behavior on the fake.
The fake's local path keeps its per-family filter: the local option is a
flat whole-inventory discoverer fanned out per family, so filtering there is
the adapter to the per-family source contract rather than a contract the
fake would assert against itself.
0 commit comments