-
Notifications
You must be signed in to change notification settings - Fork 6
feat(auth): add project role grant mutations #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Abiorh001
wants to merge
10
commits into
main
Choose a base branch
from
codex/ws-auth-001-10c-project-role-grant-mutations
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4745d37
docs(auth): activate and harden AUTH-10C contract
Abiorh001 eb8b296
feat(auth): add project role grant mutations
Abiorh001 2fea7b6
fix(auth): close AUTH-10C review gaps
Abiorh001 2fe3806
fix(auth): harden mutation ordering and invalidation proof
Abiorh001 6c18200
fix(auth): map unique races and cancellation safely
Abiorh001 31682f8
test(auth): prove project role mutation persistence and waiting rollback
Abiorh001 0d05b70
test(auth): prove unique-race and cancellation recovery
Abiorh001 9081161
docs(auth): record AUTH-10C review evidence
Abiorh001 833dd6e
docs(auth): fix AUTH-10C evidence hygiene
Abiorh001 cbe6cc1
docs(auth): bind AUTH-10C exact review head
Abiorh001 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
71 changes: 71 additions & 0 deletions
71
...tream-authorization-service/reviews/WS-AUTH-001-10C-internal-review-evidence.md
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,71 @@ | ||
| # Internal Review Evidence: WS-AUTH-001-10C | ||
|
|
||
| ## Chunk And Reviewed Code | ||
|
|
||
| `WS-AUTH-001-10C` — Project Role Grant Mutations. Risk: L1 authorization, | ||
| concurrency, and audit. Trusted-main start base is | ||
| `bcf1292e1a591e3e84bf8ee212ee7191d80741fa`; signed start run is | ||
| `30014637065`. | ||
|
|
||
| Reviewed code SHA: `833dd6e5352e1774ffd8c669346c65e61e3e7ac1` | ||
| Reviewed at: 2026-07-23T16:05:00Z | ||
| Reviewer run IDs: /root/auth10b1_final_core, /root/auth10b1_final_security_qa, /root/auth10b1_final_ops_docs_ci | ||
|
|
||
| ## Implemented Contract | ||
|
|
||
| - Activates exactly the covered-Project-Manager issue and revoke actions and | ||
| their two strict `/api/v1/projects/.../role-grants` mutation routes. | ||
| - Binds idempotency, PREP, current caller/target/project/grant facts, lexical | ||
| principal locks, deterministic absence serialization, and one route commit. | ||
| - Persists one immutable qualification snapshot per issued exact role; revoke | ||
| remains possible after target suspension or identity-link revocation. | ||
| - Appends ordered typed success evidence and the revoke-only future-obligation | ||
| invalidation projection through the shared authority mutation completion path. | ||
| - Adds no migration, schema revision, worker, assignment, review-reconciliation, | ||
| automated grant, replacement-role, or authority-substitution behavior. | ||
|
|
||
| ## Deterministic Evidence | ||
|
|
||
| ```text | ||
| Focused project-role schema/advisory/rate/invalidation/cancellation tests — passed | ||
| Crossed-principal lexical profile/link order in both directions — passed | ||
| Python compile of authorization tests — passed | ||
| Ruff on changed authorization tests and implementation — passed | ||
| git diff --check — passed | ||
| Markdown links and stale wording scans — passed | ||
| ``` | ||
|
|
||
| The PostgreSQL proof covers durable issue/revoke evidence, revocation after | ||
| target lifecycle loss, the real named partial-unique-index fallback through the | ||
| public route, loser residue, observed database lock waiting, production | ||
| cancellation rollback, and a completed same-key retry. It runs in GitHub with | ||
| the repository database fixture. The repository-wide suite and coverage remain | ||
| GitHub-owned because this workstation's full run takes approximately four hours. | ||
|
|
||
| ## Integrity And Review | ||
|
|
||
| No test was deleted, skipped, xfailed, or weakened. The exact OpenAPI inventory | ||
| is 76 routes with hash | ||
| `c8f9852035446ea59b0e929b1bd8c8cfc7df5bf838ceb544c04e899f90169318` | ||
| and 74 protected operations with hash | ||
| `9278d0183ffb87947ee4857e0325483ba7bf07feac0c38a88432840b10c2b0c3`. | ||
| No workflow, dependency, shard, command, threshold, or coverage setting changed. | ||
|
|
||
| | Reviewer | Result | Blocking findings | | ||
| |---|---|---| | ||
| | Senior engineering | PASS | none | | ||
| | Architecture | PASS | none | | ||
| | Reuse/dedup | PASS | none | | ||
| | Security/auth | PASS | none | | ||
| | QA/test | PASS | none | | ||
| | Test delta | PASS | none | | ||
| | Product/ops | PASS | none | | ||
| | Docs | PASS | none | | ||
| | CI integrity | PASS | none | | ||
|
|
||
| The repair loop closed lifecycle attribution, real unique-index fallback, | ||
| complete residue, database-observed cancellation, committed retry, and lexical | ||
| crossed-principal proof gaps. | ||
|
|
||
| Open sub-agent sessions: none | ||
| Valid findings addressed: yes | ||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Reviewer session identifiers look inherited from a different chunk without a declared reassignment.
The run IDs are
/root/auth10b1_final_core,/root/auth10b1_final_security_qa,/root/auth10b1_final_ops_docs_ci, but this evidence is for chunkWS-AUTH-001-10C, not10b1. When reviewer-pool session identifiers are carried over from a different chunk/initiative, the evidence must explicitly state the sessions were reassigned, bind to the exact reviewed commit SHA, and map every reviewer track (the table lists nine tracks against three sessions). Add the reassignment statement and the track→session mapping, or use freshauth10c_*identifiers.Based on learnings: reused
/root/…-style reviewer-pool session identifiers may be inherited across reviewers only if the evidence explicitly states the session was reassigned, binds to the exact reviewed commit SHA, and maps every reviewer track covered.🤖 Prompt for AI Agents
Source: Learnings