hooks: Thread remote-url through post-commit Agent Trace flow#49
Open
stefanskoricdev wants to merge 2 commits into
Open
hooks: Thread remote-url through post-commit Agent Trace flow#49stefanskoricdev wants to merge 2 commits into
stefanskoricdev wants to merge 2 commits into
Conversation
Add required --vcs-remote-url option to sce hooks post-commit, validated at parse time as non-empty. The value is threaded from the hook script through the runtime into the Agent Trace DB, persisted to the nullable agent_traces.vcs_remote_url column. The embedded post-commit hook template resolves the origin remote URL from git and forwards it via --vcs-remote-url when available; missing URLs fail validation at the CLI boundary without blocking git commit completion under hook script policy. New DB migrations 006 and 007 add the nullable column and a lookup index on vcs_remote_url. Co-authored-by: SCE <sce@crocoder.dev>
6ca1ef6 to
b1b829e
Compare
Drop the redundant `vcs_` prefix from the post-commit `--vcs-remote-url` flag, internal struct fields, DB column, and migration identifiers. The `remote_url` column on `agent_traces` is already scoped to VCS context by the table it lives in, making the prefix unnecessary. Changes span: - CLI flag: `--vcs-remote-url` → `--remote-url` - Rust struct fields: `vcs_remote_url` → `remote_url` - DB column: `agent_traces.vcs_remote_url` → `agent_traces.remote_url` - Index: `idx_agent_traces_vcs_remote_url` → `idx_agent_traces_remote_url` - Migration IDs: `006_add_agent_traces_vcs_remote_url` → `006_add_agent_traces_remote_url` (and `007` similarly) - Post-commit hook script flag invocation - Validation error message text - All corresponding context documentation Co-authored-by: SCE <sce@crocoder.dev>
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.
No description provided.