Skip to content

test: bind root grantor to mutation session - #279

Merged
Joncallim merged 5 commits into
codex/pr198-root-reconciler-grant-optionsfrom
codex/pr198-root-grantor-session
Jul 27, 2026
Merged

test: bind root grantor to mutation session#279
Joncallim merged 5 commits into
codex/pr198-root-reconciler-grant-optionsfrom
codex/pr198-root-grantor-session

Conversation

@Joncallim

Copy link
Copy Markdown
Owner

Scope

Fixes the grant-option mutation harness so its expected ACL grantor comes from the exact psql session that issues GRANT ... WITH GRANT OPTION.

The transactional session emits both session_user and current_user before the grant. The harness derives the catalog grantor from current_user, requires the full category/object/privilege/grantor/grantee entry, and retains session_user in the evidence so SET ROLE is visible.

No production assertion or ACL changed.

Validation

  • bash -n scripts/ci/prove-migration-0027-root-reconciler-privilege-mutations.sh
  • npm test -- --run __tests__/project-root-reconciliation.test.ts (21 passed)
  • npm test (1,630 passed, 19 skipped)
  • npx eslint --max-warnings=0 __tests__/project-root-reconciliation.test.ts
  • npx tsc --noEmit
  • git diff --check

Live role-backed mutation execution remains mandatory Web CI coverage.

@Joncallim
Joncallim marked this pull request as ready for review July 27, 2026 21:05
@Joncallim
Joncallim merged commit d58e392 into codex/pr198-root-reconciler-grant-options Jul 27, 2026
3 checks passed
@Joncallim
Joncallim deleted the codex/pr198-root-grantor-session branch August 2, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant