Skip to content

Refactor provider contracts to capability-based contracts + require capability advertisement #42

Closed

Description

@blindzero

#Summary

Providers must explicitly advertise supported capability IDs (string list).
Capability list MUST NOT be empty; missing/empty => validation failure.
Split provider contract tests into per-capability suites (Core capabilities only).

Define Core capability IDs:

  • Identity:
    • IdLE.Identity.Read
    • IdLE.Identity.List
    • IdLE.Identity.EnsureAttribute
    • IdLE.Identity.Disable
    • IdLE.Identity.Enable
  • Entitlement:
    • IdLE.Entitlement.List
    • IdLE.Entitlement.Grant
    • IdLE.Entitlement.Revoke

Add plan/validation rule: if a workflow/step requires a capability that is not advertised => fail fast with clear message.

Acceptance Criteria:

  • A provider exposes metadata including Capabilities (non-empty string array).
  • Contract tests exist per core capability and only apply when provider advertises that capability.
  • Plan validation fails deterministically if required capability missing.
  • Existing Mock provider updated to advertise its capabilities.

Tests updated/added accordingly.

Activity

  1. self-assigned this
    on Jan 1, 2026
  2. added a commit that references this issue on Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions