Skip to content

feat(core): rename meta.required_provider to meta.provider, keeping backward compatibility #369

Open

Description

@refeed

The policy metadata key meta.required_provider should be simply meta.provider. The engine reads
the key in src/tirith/core/core.py (start_policy_evaluation_from_dict, around line 370) and
echoes it into the result metadata a few lines below.

Tasks

  • Accept both keys: provider preferred, required_provider still working so every existing
    policy keeps functioning unchanged (optionally a deprecation note in --verbose output).
  • Keep the result metadata consistent whichever spelling the policy used.
  • Tests covering both spellings, and precedence when both are present.
  • Update the README, docs and example policies to the new key.

Activity

  1. brandonwilliams33 commented on Oct 13, 2026

    @brandonwilliams33

    I want to do this issue.Can you assign it to me?

  2. refeed commented on Oct 14, 2026

    @refeed
    MemberAuthor

    sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions