返回 DeepSeek-Reasonix
background_evidence.go
根目录 / internal / agent / background_evidence.go
1 package agent
2
3 import (
4 "context"
5 "strings"
6
7 "reasonix/internal/evidence"
8 "reasonix/internal/jobs"
9 )
10
11 // publishBackgroundEvidence retains host-only workspace context so persisted
12 // task metadata classifies paths without treating checkout ancestors as scope.
13 func publishBackgroundEvidence(ctx context.Context, ledger *evidence.Ledger, workspaceRoot string) {
14 if ledger == nil {
15 return
16 }
17 summary := ledger.Summary()
18 summary.WorkspaceRoot = strings.TrimSpace(workspaceRoot)
19 jobs.PublishEvidence(ctx, summary)
20 }
21
21 lines GO