Skip to content

Multiple Policy Provider Support#80

Merged
jeronstone merged 16 commits into
mainfrom
stone-policy-dict
Aug 25, 2025
Merged

Multiple Policy Provider Support#80
jeronstone merged 16 commits into
mainfrom
stone-policy-dict

Conversation

@jeronstone

Copy link
Copy Markdown
Contributor

Adds registry for policy providers. Right now, PP IDs are just uint64s, can change to a string / bytestring / some other identifier.

Closes #28

@jeronstone jeronstone added this to the BSL v1.1.0 milestone Aug 18, 2025
@jeronstone jeronstone self-assigned this Aug 18, 2025
@jeronstone jeronstone requested a review from a team as a code owner August 18, 2025 13:19
@jeronstone jeronstone added the bug Something isn't working label Aug 18, 2025
@jeronstone jeronstone added this to BSL Aug 18, 2025
@jeronstone jeronstone added the CRIT-1 Defect makes the software unusable for mission operations. label Aug 18, 2025
@github-project-automation github-project-automation Bot moved this to Todo in BSL Aug 18, 2025
@jeronstone jeronstone modified the milestones: BSL v1.1.0, BSL v1.0.0 Aug 18, 2025

@BrianSipos BrianSipos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated behavior looks good. Only comments are about avoiding copies and const correctness.

Comment thread src/backend/PolicyProvider.c Outdated
Comment thread src/backend/PolicyProvider.c Outdated
Comment thread src/backend/PublicInterfaceImpl.c Outdated
Comment thread src/backend/PublicInterfaceImpl.h Outdated
Comment thread src/backend/PolicyProvider.c Outdated
Comment thread src/backend/PublicInterfaceImpl.h Outdated
Comment thread src/backend/PolicyProvider.c
Comment thread src/backend/PolicyProvider.c Outdated
Comment thread src/backend/PublicInterfaceImpl.c Outdated
@BrianSipos BrianSipos moved this from Todo to In Progress in BSL Aug 19, 2025

@BrianSipos BrianSipos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good except for the finalize. It could be good to have a unit test function that registers two PPs, creates dummy actions from each, and verifies that the finalize gives the correct action to the correct PP.

@BrianSipos BrianSipos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Source looks good, one comment about docs to check.

Comment thread src/backend/PublicInterfaceImpl.h Outdated
@jeronstone jeronstone merged commit 56d6ec0 into main Aug 25, 2025
12 checks passed
@jeronstone jeronstone deleted the stone-policy-dict branch August 25, 2025 15:22
@github-project-automation github-project-automation Bot moved this from In Progress to Done in BSL Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CRIT-1 Defect makes the software unusable for mission operations.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Allow for multiple policy providers in one BSL context

2 participants