You've already forked agentic-coding-workflow
feat(workspace,jobs): emit sync_aborted_on_restart audit + enrich worktree.pruned metadata
- workspace.ResetStuckSyncStatuses now returns affected IDs so app.New can record one workspace.sync_aborted_on_restart audit per reset row - worktree_prune audit metadata gains workspace_id and path alongside existing branch - updated fakeRepo + integration test for new ResetStuckSyncStatuses signature - add TestWorktreePrune_AuditMetadataContainsWorkspaceIDAndPath
This commit is contained in:
@@ -15,11 +15,12 @@ import (
|
||||
// MainPath come from a JOIN performed in the production adapter (workspace
|
||||
// + project), not from the worktrees table directly.
|
||||
type WorktreeRow struct {
|
||||
ID uuid.UUID
|
||||
OwnerID uuid.UUID
|
||||
Branch string
|
||||
MainPath string
|
||||
Path string
|
||||
ID uuid.UUID
|
||||
WorkspaceID uuid.UUID
|
||||
OwnerID uuid.UUID
|
||||
Branch string
|
||||
MainPath string
|
||||
Path string
|
||||
}
|
||||
|
||||
// WorktreePruneRepo is the minimal repository surface used by this runner.
|
||||
@@ -128,7 +129,9 @@ func (r *WorktreePrune) executionPhase(ctx context.Context) {
|
||||
TargetType: "worktree",
|
||||
TargetID: w.ID.String(),
|
||||
Metadata: map[string]any{
|
||||
"branch": w.Branch,
|
||||
"workspace_id": w.WorkspaceID.String(),
|
||||
"branch": w.Branch,
|
||||
"path": w.Path,
|
||||
},
|
||||
}); rerr != nil {
|
||||
r.log.Warn("worktree_prune.audit_failed", "worktree_id", w.ID, "err", rerr.Error())
|
||||
|
||||
Reference in New Issue
Block a user