Repository navigation
test: align profile conformance with admitted action lifetime - #201273
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesUpdates profile conformance expectations so admitted actions survive role changes while role readers remain fenced. Example: An admitted action writes synthetic.authority=false after its profile role changes to member.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR correctly aligns existing conformance tests with the merged admission-time authority contract; no actionable patch defects were found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe conformance suite exercises personal-profile admission, state-worker preference writes, and role-authority settlement across SQLite and PostgreSQL. flowchart TD
A[Personal profile admission] --> B[Retained identity binding]
B --> C[Preference state worker]
C --> D[SQLite or PostgreSQL]
E[Profile role mutation] --> D
D --> F[Role authority readers]
F --> G[Pending revoked or uncertain status]
Technical reviewBest possible solution: Keep the focused expectation update and preserve the independent role-reader settlement checks. Do we have a high-confidence way to reproduce the issue? Current-main tests still expect role changes to invalidate an action whose production guard now binds identity only; the PR reports matching failures, but no tests were run in this review. Is this the best way to solve the issue? This is the smallest complete repair: update the obsolete expectations using existing fixtures and retain the distinct commit, rollback, uncertain-outcome, and reader contracts. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b0b88a8fab94. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests 0. Total 0 across 1 file. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 10:11 AM ET / 15:11 UTC. |
|
Merged via squash auto-merge.
|
What Problem This Solves
PostgreSQL conformance still expected an already-admitted personal-profile action to lose authority when its role changed. That contradicts the admission-time role contract introduced in #201083 and fails five SQLite/PostgreSQL cases on scheduled main CI.
User Impact
No runtime behavior changes. The conformance suite now distinguishes admitted action continuity from role-reader revocation.
Why This Change Was Made
Update the existing action expectations and the persisted preference value after the allowed write. Keep the real COMMIT, rollback, lost-reply, pending/revoked/uncertain reader, and durable role checks intact.
Evidence
e43b1461..9fe624c5): no actionable correctness or security findings; high confidence.Related: #201083