feat(DRC-2641): run history view + metadata Activity runs#1242
Open
feat(DRC-2641): run history view + metadata Activity runs#1242
Conversation
Signed-off-by: Kent <iamcxa@gmail.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
Signed-off-by: Kent <iamcxa@gmail.com>
…641) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
Timeline self-fetches runs in cloudMode using useApiConfig. No props threading needed from Cloud wrapper. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
- Add triggered_by field to Run model ("user" | "recce_ai")
- submit_run accepts triggered_by parameter
- HTTP handlers hardcode triggered_by="user" to prevent spoofing
- generate_run_name supports lineage_diff and schema_diff types
- Run list response includes error field
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kent <iamcxa@gmail.com>
- _create_metadata_run helper creates Run records for schema_diff and lineage_diff without going through submit_run (no task handler) - run_check now creates Run for metadata-only types instead of short-circuiting (so they appear in Activity) - create_check auto-runs metadata-only types via manifest read - Add triggered_by to run_check and create_check tool schemas Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
- Skip actor badge for preset checks in CheckCard and CheckDetailOss - deriveRunStatus: finished+error=error, finished+no error=success - RunTimelineEntry shows "by AI" label for recce_ai triggered runs - BaseRun type includes triggered_by field - Update CheckCard actor badge tests for preset skip Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
Previously _export_state_to_session set checks=[] to avoid conflicts with Cloud DB. Now includes agent-created checks so Cloud can import them into the DB for PR comment checklist display. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Signed-off-by: Kent <iamcxa@gmail.com>
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.
Summary
triggered_byfield ("user" | "recce_ai") for run attribution_create_metadata_runcreates Activity entries for schema_diff/lineage_diffrun_checkandcreate_checknow produce Run records for ALL check typestriggered_byparameter added torun_checkandcreate_checkderiveRunStatusmaps finished+error to error statusKey changes
recce/models/types.pyRun.triggered_byfieldrecce/apis/run_func.pysubmit_runacceptstriggered_by, name gen for lineage/schemarecce/apis/run_api.pyrecce/apis/check_api.pytriggered_by="user"recce/mcp_server.py_create_metadata_run, metadata runs in run_check/create_checkDepends on
Test plan
🤖 Generated with Claude Code