Skip to content

hooks: Thread remote-url through post-commit Agent Trace flow#49

Open
stefanskoricdev wants to merge 2 commits into
mainfrom
feat/post-commit-vcs-remote-url
Open

hooks: Thread remote-url through post-commit Agent Trace flow#49
stefanskoricdev wants to merge 2 commits into
mainfrom
feat/post-commit-vcs-remote-url

Conversation

@stefanskoricdev
Copy link
Copy Markdown
Contributor

No description provided.

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>
@stefanskoricdev stefanskoricdev force-pushed the feat/post-commit-vcs-remote-url branch from 6ca1ef6 to b1b829e Compare May 22, 2026 11:00
@stefanskoricdev stefanskoricdev marked this pull request as ready for review May 22, 2026 11:00
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>
@stefanskoricdev stefanskoricdev changed the title hooks: Thread --vcs-remote-url through post-commit Agent Trace flow hooks: Thread remote-url through post-commit Agent Trace flow May 22, 2026
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