[LFXV2-1413] docs: add FGA contract documentation for voting service#27
Merged
Conversation
🤖 Generated with [Claude Code](https://claude.ai/code) Signed-off-by: Andres Tobon <andrest2455@gmail.com>
There was a problem hiding this comment.
Pull request overview
Adds a dedicated contract doc describing how the voting service publishes access-control sync messages to fga-sync (OpenFGA tuples), intended to be kept in sync with any future message-construction changes.
Changes:
- Add
docs/fga-contract.mddescribing FGA sync message shape, subjects, and per-objectdatacontents. - Document relations/references + skip/delete behavior for
voteandvote_response. - Summarize publish triggers per operation/object type.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Change "Auth0 sub" to "Auth0 username" for vote_response relations to match the actual VoteResponseData.Username field semantics. Generated with [Claude Code](https://claude.ai/code) Signed-off-by: Andres Tobon <andrest2455@gmail.com>
prabodhcs
approved these changes
Apr 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docs/fga-contract.mddocumenting all FGA sync messages sent by the voting servicevoteandvote_responseobject types: relations set, references, triggers, and skip conditionsTicket
LFXV2-1413