-
Notifications
You must be signed in to change notification settings - Fork 0
fix(lint): clear all 109 findings, decided site by site #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -668,7 +668,9 @@ func (s *PrepSubsystem) broadcastComplete(agent, workspaceDir, finalStatus strin | |
|
|
||
| func (s *PrepSubsystem) onAgentComplete(agent, workspaceDir, outputFile string, exitCode int, processStatus, output string) { | ||
| if output != "" { | ||
| fs.Write(outputFile, output) | ||
| if r := fs.Write(outputFile, output); !r.OK { | ||
| core.Warn("agentic: failed to write agent output", "path", outputFile, "reason", r.Value) | ||
| } | ||
| } | ||
|
|
||
| repoDir := WorkspaceRepoDir(workspaceDir) | ||
|
|
@@ -930,7 +932,11 @@ var dispatch = func(s *PrepSubsystem, ctx context.Context, callRequest *mcp.Call | |
| Runs: 1, | ||
| } | ||
| preserveStatusNote(workspaceDir, workspaceStatus) // keep VZ→OCI downgrade note (SP2.4) | ||
| writeStatusResult(workspaceDir, workspaceStatus) | ||
| // Reported: the status file is what the monitor polls, so a silent write | ||
| // failure leaves the workspace looking stuck indefinitely. | ||
| if r := writeStatusResult(workspaceDir, workspaceStatus); !r.OK { | ||
| core.Warn("agentic: failed to write workspace status", "reason", r.Value) | ||
| } | ||
|
Comment on lines
+937
to
+939
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | 🏗️ Heavy lift Handle status persistence failures before completing state-changing work. All listed callers treat a failed
📍 Affects 7 files
🤖 Prompt for AI Agents |
||
| if s.ServiceRuntime != nil { | ||
| if runnerResult := s.Core().Service("runner"); runnerResult.OK { | ||
| if runnerSvc, ok := runnerResult.Value.(workspaceTracker); ok { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Apply the comment-format rule to all newly added Go comments.
The listed comments explain internal control flow instead of showing usage with real values. Replace each comment with a usage example or remove it.
As per coding guidelines, Go comments must be usage examples showing how to use the code with real values, rather than descriptive explanations.
📍 Affects 8 files
go/pkg/agentic/dispatch.go#L935-L936(this comment)go/pkg/agentic/dispatch_sync.go#L110-L111go/pkg/agentic/prep.go#L443-L444go/pkg/agentic/prep.go#L468-L469go/pkg/agentic/prep.go#L474-L475go/pkg/agentic/prep.go#L491-L491go/pkg/agentic/prep.go#L493-L494go/pkg/agentic/prep.go#L833-L836go/pkg/agentic/prep.go#L913-L914go/pkg/runner/runner.go#L340-L341go/pkg/runner/runner.go#L415-L416go/pkg/runner/runner.go#L433-L433go/pkg/runner/runner.go#L478-L479go/pkg/runner/runner.go#L500-L501go/pkg/agentic/queue.go#L479-L480go/pkg/agentic/resume.go#L101-L102go/pkg/agentic/status.go#L218-L219go/pkg/agentic/pr.go#L151-L152🤖 Prompt for AI Agents
Source: Coding guidelines