Repository navigation
test(postgres): preserve admitted profile action semantics - #201297
vincentkoc wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. What this changesThis PR makes conformance tests expect admitted personal-profile actions to survive role changes and uncertain role commits. 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 updates stale conformance expectations to match the merged admission contract while preserving role-reader and durability checks. No actionable defect found; it remains a draft with PostgreSQL CI running. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGateway admission captures a personal action's role ceiling and profile identity; state workers perform preference writes while separate authority readers track transaction settlement. flowchart TD
A[Gateway request] --> B[Personal profile admission]
B --> C[Retained action and identity]
C --> D[Preference state worker]
D --> E[SQLite or PostgreSQL]
E --> F[Role authority publication]
F --> G[Independent role readers]
Technical reviewBest possible solution: Keep this focused expectation correction and land it once the draft is ready and required checks pass. Do we have a high-confidence way to reproduce the issue? Source and five hosted failure annotations establish that the old tests require revocation behavior the current admission owner intentionally removed; no local execution was performed. Is this the best way to solve the issue? Updating the existing assertions is the smallest complete fix and preserves the separate transaction-settlement coverage without restoring obsolete production behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7eb33ccb25f7. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests -1. Total -1 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:22 AM ET / 15:22 UTC. |
|
Superseded by #201273, landed as This candidate also passed all 50 CI jobs at |
What Problem This Solves
PostgreSQL conformance still expects a retained personal-profile request to lose authority when a role changes. #201083 intentionally changed that contract: admission fixes the request's role/scope ceiling, while cancellation and profile identity remain live.
Five cases now fail on the existing main inputs in https://github.com/openclaw/openclaw/actions/runs/44328056076/job/134885857495. Its tested merge changes no profile-authority source or test.
User Impact
Test-only correction. No production, schema/version, DDL, migration, persisted format, configuration, or public API change.
Why This Change Was Made
Require the admitted action and its preference write to survive role commit, rollback, and an uncertain role commit. Keep every role-reader pending, revoked, restored, and uncertain assertion, plus the dropped-COMMIT reply and real PostgreSQL persistence check. Test names now distinguish admitted action lifetime from role-reader fencing.
The existing real-RPC sibling test verifies the other half of the contract: a new request is refused after role revocation. This conformance fixture has no named role policy, so it does not invent that assertion here.
Evidence
de5debf39d7f52378def6719cb325c6c483bec16: all five corrected SQLite/PostgreSQL cases pass, with role-reader settlement and durability controls retained. https://github.com/openclaw/openclaw/actions/runs/44332641314/job/134901978436. The full exact-head CI run is green: all50 jobs completed, including all four PostgreSQL shards, with no failures. Independent owner review, structured P0-P2 review and exact-head ClawSweeper review found no actionable findings or remaining rank-up moves.