Repository navigation
feat(governance): hold approval gated changes off the entity until approved (#4673) - #32038
Conversation
…ed (#4673) [WIP] Pending-hold model with an opt-in workflow hook node (resolvePendingChangeTask). - PendingApprovalChangeStore: per-entity, accumulating, ChangeDescription-shaped hold (entity_extension-backed; never touches the row/version history); effective() unions hold with the entity's persisted change description. - ApprovalGate (PUT/PATCH): when a workflow that opts in (contains a resolvePendingChange hook) gates a covered field (description/tags/owners/domains) and its filter doesn't exclude the entity, revert the field to approved (nothing persists, no ChangeEvent) and record the proposal as a hold. Post-commit, trigger the workflow directly via triggerWithSignal (no synthetic event -> no alert/webhook/search leak). Skips governance-bot; fails open. - resolvePendingChangeTask hook node (schema + NodeSubType + WorkflowNodeDefinitionInterface subtype registration + wrapper + impl + NodeFactory). Node-configured action: commit (apply held change as governance-bot -> the one real ChangeEvent), discard (clear hold), hold (leave held). Author places it at the status transition; presence is the opt-in signal. - checkChangeDescription + FilterEntityImpl evaluate effective() so "what changed" nodes see the held proposal. - Seed workflows unchanged; no migration (no existing node config changed) - adoption is opt-in by adding the hook. v0.1 creates go through create() -> never held. Tests: - Unit (run, green): PendingApprovalChangeStoreTest + GovernanceApprovalRegistryTest (10 pass). - IT (authored, compiles): PendingApprovalChangeIT - hold->approve->commit / reject->discard. WIP - remaining: run the IT end-to-end (stack) incl. resolving seeded-vs-custom workflow coexistence; surface the held change on the approval task for reviewers. Verified: openmetadata-service compiles + 10 unit tests green; integration-tests test-compiles. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…lter support - Hold approval-gated changes per (entity, requester); each requester's edit forms its own hold in pending_approval_change and its own approval task. - Attribute the approval task's requester and creator to the editor of the run. - Supersede only the same requester's prior task for hook workflows. - Evaluate each edit's change on the trigger: the held change carried on the gate signal, otherwise the persisted change description; run the exclusion filter against the proposed entity so the trigger and gate agree. - Fire a hook workflow only on the gate's held-change signal. - Emit JsonLogic from the event-trigger exclude filter; persist a cleared filter. - Add tests for the trigger decision and the requester/creator resolution. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…held-change test coverage - Reject mutually-exclusive tags at the edit when tags are gated, before the change is held, so the conflict never reaches the review workflow's commit node. - On commit, merge held tags into the entity's current tags with the held change taking precedence, dropping a conflicting current tag and keeping non-conflicting ones. - Tolerate a held-only change (only fieldsUpdated set) in the change-description check. - Add CheckChangeDescriptionTaskImpl coverage for held changes, and integration tests for per-requester holds resolved independently, the task creator, and mutual exclusivity. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…workflows - Hold an explicit removal of a gated scalar field (a PATCH remove) so a destructive edit is reviewed instead of written straight through; an omitted collection is still left alone so a PUT that leaves it out is not mistaken for a change. - Reject a hook workflow whose resolvePendingChangeTask nodes all only hold the change: with no commit or discard anywhere the edit would stay held forever. - Add integration tests for clearing a gated field and for the hold only rejection. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…circuit hook checks - Remove the unused user parameter from ApprovalGate.submitPending and update its caller; the real editor already comes from the held trigger recorded at hold time. - Stop scanning after the first match in hasPendingChangeHook and targetsEntityType. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
✅ TypeScript Types Auto-UpdatedThe generated TypeScript types have been automatically updated based on JSON schema changes in this PR. |
…flow-pending-changes # Conflicts: # bootstrap/sql/migrations/native/2.1.0/mysql/schemaChanges.sql # bootstrap/sql/migrations/native/2.1.0/postgres/schemaChanges.sql # openmetadata-ui/src/main/resources/ui/src/utils/WorkflowNodeConfigUtils.ts
Accumulate a requester's held change in a single transaction: insert the first hold atomically, and merge a later edit behind a row lock so two concurrent edits by the same requester each survive. Resolve (commit or discard) deletes only the hold version it read, so an edit accumulated after that read stays in place for its own review. Remove an entity's remaining holds during hard-delete cleanup, and drop the duplicated supersede comment in CreateTask. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…g-changes' into feature/approval-workflow-pending-changes
🚦 Removed from the merge queue —
|
🚦 Removed from the merge queue —
|
…hem, and retry workflow ITs test_WorkflowWithReviewersOwnersCandidates and test_WorkflowWithTeamCandidates create their table after the workflow is deployed, and test_CustomApprovalWorkflowForNewEntities waits for deployment before creating its entities, so each creation event reaches a listening workflow. Workflow ITs that wait on asynchronous results retry once (@RetryingTest(2)). A retried attempt gets its own namespace names (TestNamespaceExtension appends _rN), so it never collides with the entities an earlier attempt created.
|
| Count | Rule |
|---|---|
| 31 | react-hooks/exhaustive-deps |
| 3 | openmetadata-imports/no-lower-layer-page-imports |
| 1 | openmetadata-imports/no-api-calls-in-iteration |
| 1 | openmetadata-imports/no-cross-page-imports |
All findings
| Location | Rule | Message | |
|---|---|---|---|
| 🟡 | src/components/DataAssets/AssetsSelectionModal/AssetSelectionModal.interface.ts:53:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:897:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'getEntityFeedCount', 'isVersionsView', and 'openAssetDrawer'. Either include them or remove the dependency array. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:935:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProductAssets', 'fetchDataProductContract', and 'fetch |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:948:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:948:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/DataProducts/DataProductsDetailsPage/DataProductsDetailsPage.component.tsx:990:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'handleTabChange' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:358:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'domain.fullyQualifiedName' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:360:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 469) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:360:9 |
react-hooks/exhaustive-deps |
The 'handleTabChange' function makes the dependencies of useCallback Hook (at line 638) change on every render. To fix this, wrap the definition of 'handleTabCh |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:748:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'closeSubDomainDrawer' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:947:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'activeTab', 'addSubDomain', 'getEntityFeedCount', 'isVersionsView', 'onAddDataProduct', 'onDeleteSubDomain', and ' |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:977:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchActiveAnnouncement', 'fetchActivityCount', 'fetchDataProducts', 'fetchDomainAssets', and 'fetchTaskCounts'. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:990:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has an unnecessary dependency: 'isSubDomain'. Either exclude it or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:998:5 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'tabs'. Either include it or remove the dependency array. |
| 🟡 | src/components/Domain/DomainDetails/DomainDetails.component.tsx:998:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a complex expression in the dependency array. Extract it to a separate variable so it can be statically checked. |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:71:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:72:1 |
openmetadata-imports/no-lower-layer-page-imports |
Pages are route-level composition modules. Move the shared implementation/type to a lower layer instead of importing a page from here. |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:725:9 |
react-hooks/exhaustive-deps |
The 'updateTaskData' function makes the dependencies of useCallback Hook (at line 830) change on every render. To fix this, wrap the definition of 'updateTaskDa |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:1277:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'onTaskDropdownClick', 'taskHandler.approvedValue', and 'taskHandler.rejectedValue'. Either exclude them or rem |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:1312:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'isPartOfAssigneeTeam' and 'task'. Either exclude them or remove the dependency array. |
| 🟡 | src/components/Entity/Task/TaskTab/TaskTabNew.component.tsx:1375:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has unnecessary dependencies: 'onTaskResolve' and 'task'. Either exclude them or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:593:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 'isGlossary', 'onAddGlossaryTerm', and 'selectedData'. Either include them or remove the dependency array. If ' |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:673:6 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'showModal'. Either include it or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:732:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has missing dependencies: 'handleAddGlossaryTermClick' and 't'. Either include them or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:774:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'handleBreadcrumb'. Either include it or remove the dependency array. |
| 🟡 | src/components/Glossary/GlossaryHeader/GlossaryHeader.component.tsx:793:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'fetchCurrentGlossaryInfo' and 'isVersionView'. Either include them or remove the dependency array. |
| 🟡 | src/components/WorkflowDefinitions/WorkflowBuilder/NodeConfigSidebar.tsx:170:39 |
openmetadata-imports/no-api-calls-in-iteration |
Avoid issuing one API request per item. Fetch at the data owner, use a bulk endpoint, or use useQueries with an intentional concurrency policy. |
| 🟡 | src/components/WorkflowDefinitions/WorkflowBuilder/NodeConfigSidebar.tsx:223:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'node'. Either include it or remove the dependency array. |
| 🟡 | src/components/WorkflowDefinitions/WorkflowBuilder/NodeConfigSidebar.tsx:367:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has a missing dependency: 'node'. Either include it or remove the dependency array. If 'setBackendConfig' needs the current value of 'node' |
| 🟡 | src/hooks/useWorkflowActions.ts:235:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has a missing dependency: 'workflowMetadata'. Either include it or remove the dependency array. |
| 🟡 | src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:134:1 |
openmetadata-imports/no-cross-page-imports |
Page features must not import another page feature. Move shared code to components, hooks, interfaces, or pure utilities. |
| 🟡 | src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:819:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has an unnecessary dependency: 'entityType'. Either exclude it or remove the dependency array. |
| 🟡 | src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:1280:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'handleImportWebsocketResponse' and 'handleResetImportJob'. Either include them or remove the dependency array. |
| 🟡 | src/pages/EntityImport/BulkEntityImportPage/BulkEntityImportPage.tsx:1355:6 |
react-hooks/exhaustive-deps |
React Hook useMemo has a missing dependency: 'filterColumns'. Either include it or remove the dependency array. |
| 🟡 | src/pages/WorkflowDefinitions/WorkflowBuilder/WorkflowBuilder.tsx:367:6 |
react-hooks/exhaustive-deps |
React Hook useEffect has missing dependencies: 'edges' and 'nodes'. Either include them or remove the dependency array. |
| 🟡 | src/pages/WorkflowDefinitions/WorkflowBuilder/WorkflowBuilder.tsx:431:5 |
react-hooks/exhaustive-deps |
React Hook useCallback has missing dependencies: 't' and 'workflowLogic'. Either include them or remove the dependency array. |
Fix locally (fast - only checks files changed in this branch):
make ui-checkstyle-changed# Conflicts: # .github/playwright/impact-map.generated.json
Resolves import conflicts in EntityCsv, TaskWorkflowHandler and EntityCsvTest: FormatterUtil moved to events.ChangeEvents (#35032). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
Code Review ✅ Approved 15 closed / 15 findings🔴 High risk · Approval-gated entity writes, reviewer authorization, and persistence migrations could incorrectly publish or block metadata changes if decisions or application drift. Approval-gated change requests hold gated edits as revisioned change requests outside the entity until an eligible reviewer approves or rejects them, so unapproved values never reach search, lineage, or notifications. This session resolved fixes for orphaned holds on entity deletion, a held-change write ordering risk, MySQL merge handling, weak version tokens, bulk admission failures, and several UI refresh and indicator issues. No open findings remain. ✅ 15 closed✅ Bug: Pending holds orphaned when a governed entity is deleted
✅ Quality: Duplicated comment block in CreateTask supersede logic
✅ Edge Case: Held change persisted before write can orphan on write failure
✅ Bug: insertIfAbsent==0 check drops merges on MySQL (found-rows)
✅ Edge Case: updated_at millisecond token is a weak version guard
...and 10 more closed from earlier reviews VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|
|
🚦 Removed from the merge queue —
|



What changed
Adds approval-gated change requests to governance workflows. When a workflow opts in (by carrying a
resolvePendingChangeTaskhook), a human edit that touches a gated field on a governed entity is not written to the entity. The whole request is stored as a durable, revisioned change request, the entity is left untouched (no version bump, no ChangeEvent, nothing indexed), and a review task is opened. The change is published only when an eligible reviewer, who is not the requester, approves that exact revision; on rejection it is discarded. Consumers keep seeing the published value until then; the reviewer sees exactly what is proposed.Resolves https://github.com/open-metadata/openmetadata-collate/issues/4673
Why
The existing governance workflows react to a change after it is already persisted. There was no way to require approval before a change becomes visible: a tag, a description, or a status edit landed immediately, got indexed, and fired downstream events, and only then went through review. This PR moves the gate to the edit itself so an unapproved change never reaches search, lineage, or notifications.
The flow
Architecture
ApprovalGateChangeRequestService. Custom properties are matched per property (extension.<name>). Bot changes are never held. Fails closed: if rules cannot be resolved the write is refused with 503 and nothing is published.MutationPlanner/MutationOpsChangeRequestServiceChangeRequestDelivery/ChangeRequestRecoverySchedulerApprovalDecisionServiceChangeApplyServicechange_applicationrow and a normal ChangeEvent.GovernanceApprovalRegistryFilterEntityImpl/EventBasedEntityTriggerResolvePendingChangeImplcommitapplies the approved revision,discardrejects the request.CreateTask/TaskWorkflowHandler/TaskResourcechangeRequestRevision), and routes resolve through the decision service.WorkflowEventConsumer.isBotChangeupdatedByuser is a bot is excluded from all workflows.ChangeRequestResourceWorkflowDefinitionRepositoryData model
New tables in
bootstrap/sql/migrations/native/2.1.0(MySQL + Postgres). The earlierpending_approval_changetable from this PR is removed; it never shipped in a release.change_requestactiveInterceptKey), status, reviewing workflow, linked task, delivery statechange_revisionapproval_decisionchange_applicationNothing pending is stored on the entity row, its version history, or the search index.
Per requester change requests
CONFLICTEDinstead of overwriting it.CONFLICTED, nothing applied. A non-gated field changed since submit → that operation is dropped and the newer value kept (recorded inchange_application).Mutual exclusivity
Two mutually exclusive tags in one gated edit are rejected up front (400), as the entity updater would reject them. At apply, the change goes through the normal repository patch, so the repository's own tag validation applies against the current entity.
Entity agnostic
The gate works on
EntityInterfacethroughGovernanceApprovalRegistry.gatingRules(entityType), so any entity type with a hook workflow is gated the same way. Only the approval task's assignees depend on the entity (reviewers or owners, per the approval node's config). Several hook workflows may target one entity type (usually scoped by filter); a single request touching fields gated by two different workflows is rejected with 400 so each change has exactly one reviewing workflow.Validation and safety
eventBasedEntitytrigger onUpdated, use a JSON Logic filter, and resolve the request (commitordiscard) on every terminal path. Otherwise it is rejected at create time, so a request can never stay pending forever.updatedByis a bot user) are excluded from workflows: never held, and reactive event workflows do not start for them. A bot impersonating a user is gated as that user. Workflow automation writes as the acting user withgovernance-botas impersonator and is exempt, as before.Response contract
A held PUT or PATCH returns 202 Accepted with the published (unchanged) entity, its ETag,
X-OpenMetadata-Pending-Change: <changeRequestId>andX-OpenMetadata-Change: entityNoChange; an edit that publishes still returns 200. Bulk asset writes (tag, glossary term, domain and data product; add and remove) hold each gated asset as its own change request and report them withX-OpenMetadata-Pending-Change-Count: N: 202 when every asset was held, 200 otherwise (the async tag job start carries the count; dry runs submit nothing). CSV import reports held rows asPending approval: change request <id>and counts them innumberOfRowsPendingApproval(also on dry runs, without submitting).Review from creation
A hook workflow whose trigger also lists
Createdreviews an asset from its creation: until the asset is Approved its edits publish and join one review task (the workflow's own status steps move it, e.g. In Review → Approved or Rejected; the next edit of a Rejected asset starts a new review), and once it is Approved its edits are held as change requests while it keeps its status. A hook workflow that triggers only onUpdatedholds every gated edit. Saving aCreatedhook workflow requires a step that sets the status to Approved.Schema
resolvePendingChangeTask.jsondefines the hook node:config.actionis an enum ofcommit/discard.governance/changeRequest/*schemas (changeRequest,changeRevision,mutationOp,approvalDecision,changeApplication) andapi/governance/withdrawChangeRequest.resolveTaskgains an optionalchangeRequestRevision;csvImportResultgainsnumberOfRowsPendingApproval.UI
ResolvePendingChangeFormand workflow builder wiring for theresolvePendingChangeTasknode./v1/changeRequests, and a toast when a save is held for approval (pendingChangeInterceptor).Testing
WorkflowDefinitionResourceIT)ChangeRequest*IT)ChangeRequestReviewLifecycle.spec.ts)GlobalSettingslane, because an Enforce workflow gates its entity type server-wide while it exists.GovernanceApprovalRegistryTest(rules, plusApprovalGateadmission: gated/ungated, whole-request holding, custom properties, two workflows, bots, impersonation),MutationPlannerTest,MutationOpsTest,WorkflowEventConsumerTest(bot exclusion),CreateTaskTest,FilterEntityImplTest,EntityCsvTest.Verified end to end against a live server through the REST API: held edits, revisions, approval and rejection, self-approval refusal, gated and ungated drift, withdraw and cancel, visibility, concurrent edits by one requester, two requesters, tags, custom properties, glossary term upsert, CSV import (dry run and real), impersonation, and bot exclusion.
Tests executed on this revision
main, includingEntityRepository,ETagResponseFilter,RestUtilcheck-i18nChangeRequestAdmissionIT16,ChangeRequestApplyIT11,ChangeRequestDecisionIT6,ChangeRequestSubmitIT5,ChangeRequestLifecycleIT4,ChangeRequestResourceIT7,ChangeRequestDaoIT4,ChangeRequestImportAndBulkIT5,WorkflowDefinitionResourceIT#test_creationReview*4ChangeRequestAdmissionIT,ChangeRequestApplyIT,ChangeRequestSubmitIT,GlossaryResourceIT#entityStatus_*GlossaryTermApprovalWorkflowunchanged (no holds)ChangeRequestReviewLifecycle.spec.ts,GlobalSettingslane, local Docker stack (MySQL + Elasticsearch)--repeat-each=3; no workflows or glossaries left behindNew tests:
ApprovalGateBulkResponseTest,MutationOpsTest#proposedChangesNameTagsByFqnAndShowTextUnquoted,ETagResponseFilterTest#heldEditResponseGetsETagOfTheUnchangedEntity,ChangeRequestServiceTest$Override#aConflictingOverrideKeepsTheReviewTaskOpen, three creation-review cases inGovernanceApprovalRegistryTest,ChangeRequestAdmissionIT(202 for held PATCH/PUT, 200 for published),ChangeRequestImportAndBulkIT(bulk 202 / 200 and the async tag count),WorkflowDefinitionResourceIT#test_creationReview*(4), UI tests for the change summary, the bulk toast and legacy trigger filters.🤖 Generated with Claude Code
Greptile Summary
The PR adds approval-gated entity changes that remain outside persisted entity state until governance workflows commit or discard them.
Confidence Score: 5/5
The PR appears safe to merge.
No blocking failure remains; row-level accumulation locking, monotonic hold versions, and compare-and-delete resolution address all previously reported concurrency failures.
Important Files Changed
Sequence Diagram
sequenceDiagram participant Editor participant Gate as ApprovalGate participant Store as Pending Change Store participant Workflow participant Entity Editor->>Gate: Edit gated field Gate->>Store: Accumulate held diff Gate-->>Entity: Persist approved value only Gate->>Workflow: Signal held change alt Approved Workflow->>Store: Read held snapshot and version Workflow->>Entity: Apply held change Workflow->>Store: Delete if version unchanged else Rejected Workflow->>Store: Delete if version unchanged endReviews (4): Last reviewed commit: "fix(governance): make the pending-change..." | Re-trigger Greptile
Context used: