feat(workflow-executor): audit trail for ai-filled and ai-submitted action forms (PRD-513)#1695
Open
Scra3 wants to merge 1 commit into
Conversation
1 new issue
|
…ction forms (PRD-513)
Surfaces the form-fill audit data already persisted by AI-assisted/Full AI:
- record submittedBy ('ai' = Full AI executor, 'user' = AI-assisted native submit)
on the trigger-action executionResult
- new step-summary formatter for trigger-action: distinguishes an executed action
from one only submitted for approval (downstream AI must NOT treat a
pending-approval action as executed), names the submitter, lists the AI
pre-filled fields and the fields the human edited (diff prefill vs submitted)
fixes PRD-513
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
f53a663 to
c12364a
Compare
09d1a9c to
2b56b54
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Audit trail for the action-forms epic (PRD-57), on top of PRD-511/512. The raw data (AI-filled values, submitted values, submission outcome) is already persisted; this surfaces it.
Changes
submittedBydiscriminator on the trigger-actionexecutionResult:'ai'(Full AI — executor submitted) vs'user'(AI-assisted — human submitted natively).Full AI = first-hand executor data; AI-assisted = derived from the confirmation payload (per the settled architecture).
Tests
1106 tests pass. New formatter tests: pending-approval not-executed, Full AI submitted-by-AI, AI-assisted human-edit diff, skipped → null.
fixes PRD-513
Note
Add audit trail for AI-filled and AI-submitted action forms in trigger-action steps
TriggerRecordActionStepExecutionDatato include an optionalsubmittedByfield ('ai'|'user') recorded when a trigger-action step completes.TriggerRecordActionStepExecutor.doExecuteto persistsubmittedBy: 'ai'for fully automated runs andsubmittedBy: 'user'for user-confirmed flows.formatTriggerActionformatter inStepExecutionFormattersthat produces a human-readable audit summary: pending-approval state, submitter identity, AI pre-filled fields, and any fields edited by the user (diffed against AI values).Macroscope summarized 2b56b54.