Repository navigation
test(auth): audit admin access lifecycle proof - #381
Conversation
|
Warning Review limit reachedNext included review available in 32 minutes. View limit detailsLimit details: You’ve used the included review currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (29)
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. Comment |
|
@coderabbitai full review |
|
Change
WS-QUAL-003-13 — Admin access lifecycle proof audit.
Current head:
d30808f1ee91fa6c38150b8bdbe54f9036009650.Integrated main:
003cc6e2643ae1296166fd77018b313169935c24.Goal / Intent And Planning Context
Audit behavior, not test count or coverage. Retain a representative signed-token API journey and independently diagnosable PostgreSQL transaction/concurrency proof. One PR contains reviewed checkpoints.
Durable scope, design, assertion inventory and acceptance criteria.
What Changed / Why
Design / Alternatives Rejected
Real signed ASGI requests prove API composition, not deployed-network E2E. Real PostgreSQL proves locking and rollback; mocks do not substitute for those boundaries. Do not hide the old scenario in large helpers, remove tests by count alone, or claim incidental event totals prove each operation.
Scope Control / Product Behavior
Only the declared test/support, inventory/map, scanner, lane-catalogue and audit documentation paths change relative to main. Grant-read/validation owner files and the roadmap update are explicit scope refinements in the record. No production behavior, migration, workflow, threshold, timeout or dependency changes. Product PR377 and checker-documentation PR383 are integrated and preserved. No local spreadsheet exports exist.
Evidence / Acceptance Criteria Proof
c219f8bc8dadb37d7413a2c77c8fc59150197bfehas the exact main/head parents and tree7446e223d5eb124ea4eefb176ec91e76de010891, identical to the current head.actor_id, and the first route commit may be independent rate control. The staged-state assertions rejected that premature fault injection. Both were repaired and executed successfully before final synchronization.Test Delta
The three removed large functions were 1,041/485/280 lines.
test_auth.pyshrinks from 5,822 to 3,877 lines; its remaining families are explicitly out of scope. The new owner has 47 named functions / 103 expanded cases, all files below 500 lines, tests at most 120 and helpers at most 100. Independent cases replace behavior hidden inside loops; this is not a claim of net test-count reduction. Debt entries fall 78→75 with no new or grown debt.Impact-Routed Reviewer Results
Implementation reviews closed at clean
225ffd2bcf382e7c86a63f574c97b967afc07b3fover67a2f1bd7dbbff76d2635d1f084c479de339558f:All three low corrections are resolved: exact persisted grant fields (
SEC-ADMIN-IMPL-001), precise access-administrator survivor (TD13-MAP-001), and overview/roadmap reconciliation (DOC-QUAL13-001). The old CLI finding was withdrawn after reproducing the real statement order.Strict branch protection then required integrating documentation-only PR383.
backend/,.ci/,.github/and this audit's records are byte-identical between 225ffd2 and d30808f; the audit roadmap paragraph is also unchanged. CI/docs independently verified that compatibility. The retained QA/security receipts apply to that unchanged cone; they are not relabeled new-head reviews. Final CI/docs replay at clean d30808f is PASS WITH LOW RISKS / PASS, with independently verified exact-head artifact hashes, complete node custody, coverage and cleanup. No blocking finding remains. These summaries mirror, rather than own, private reviewer evidence.External Review / CI Integrity
CodeRabbit: not fresh. The full-review retry was rate-limited; its green check is not substantive approval. No review threads exist. All required GitHub checks pass; no workflow, test-selection, threshold, timeout or dependency weakening occurred.
Remaining Risks / Human Review Focus
CI-QUAL13-TIMING-001, low).Human Merge Ownership
Human approval and explicit approval to merge this PR remain required. No agent review or passing check authorizes merge.