Repository navigation
feat(pm-aggregator): add identity role registry (#9604) - #11760
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 10 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4bbff9a4d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| test("persists upsert and removal with monotonic registry revisions", async () => { | ||
| const { dir, store: registry } = await store(); | ||
| expect(await registry.roleFor("unknown")).toBe("read-only"); | ||
| const first = await registry.set("access|user-1", "owner", "drew"); |
There was a problem hiding this comment.
Add generated invariant coverage for the identity registry
The new registry introduces parsing, serialization, and mutation-state invariants, but its tests exercise only hand-picked examples. This violates the testing doctrine in AGENTS.md, which requires property-based coverage for meaningful parser/serializer/state-machine invariants and explicitly says example tests do not replace it. Add generated identity/role inputs and mutation sequences checked against a map/revision oracle, covering identity uniqueness, revision progression, persistence/reload equivalence, and the read-only default.
AGENTS.md reference: AGENTS.md:L38-L42
Useful? React with 👍 / 👎.
Summary
The Access enforcement result now retains verified identity claims so mapping audit events identify the authenticated
sub, not only the standing dashboard author.Evidence
bun test test/identity-registry.test.ts test/access-identity.test.ts— 20 pass;bun test test/events.test.ts— passed in the combined targeted run (57 tests total).git diff --checkpasses.bun run typecheckcould not run because@types/bunis missing from this worktree.Merge Danger
Door: Two-way; file-backed registry changes can be reverted.
Blast Radius: Low; only the new owner-gated registry API and identity enforcement result shape are affected.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.