(janitor/comments) remove noise comments across the gastown service - #6791
Conversation
Comment-only cleanup across services/gastown (container runtime, worker entry point, handlers, tRPC, utils, db tables, and tests). Deletes section banners that duplicate describe titles or route paths, step-by- step test narration of setup/execution/assertions, restated function and type labels, commented-out code, obsolete history notes (refactor numbers, "REMOVE after debugging" markers), and apology comments. All race-condition, invariant, security, auth-topology, spec-reference, and external-behavior comments are retained, as are all lint/TS suppressions and the catch-block comments required by the no-empty lint rule. Co-authored-by: kiloconnect[bot] <240665456+kiloconnect[bot]@users.noreply.github.com>
| 'open', | ||
| input.convoyTitle, | ||
| null, // body | ||
| null, |
There was a problem hiding this comment.
SUGGESTION: Unlabeled positional null arguments reduce readability
This INSERT passes four positional null values for body, rig_id, parent_bead_id, and assignee_agent_bead_id. The labels for three of them were removed here while the adjacent rig_id label was kept, so each bare null can now only be mapped back to the column list by position. Consider restoring the body, parent_bead_id, and assignee_agent_bead_id labels (or labeling all four) for consistency.
Reply with @kilocode-bot fix it to have Kilo Code address this issue.
Code Review SummaryStatus: 1 Issue Found | Recommendation: Address before merge Executive SummaryComment-only cleanup across Overview
Issue Details (click to expand)SUGGESTION
Files Reviewed (32 files)
Fix these issues in Kilo Cloud Reviewed by deepseek-v4.1-flash · Input: 0 · Output: 0 · Cached: 0 Review guidance: REVIEW.md from base branch |
Package or topic area cleaned
services/gastown— the container runtime (container/), worker entry point + handlers + tRPC + utils + db tables (src/), and integration/unit tests (test/). Thesrc/dos/Town DO area was already cleaned by #6153 and was deliberately left untouched here, along with its high-value invariant/race-condition comments.Files touched
32 files, 6 insertions(+), 503 deletions(-) (~380 comment lines removed, remainder is resulting blank-line whitespace):
container/src/:process-manager.ts,control-server.ts,git-manager.ts,types.tscontainer/plugin/:client.ts,index.ts,types.tssrc/:gastown.worker.ts,dos/Town.do.ts(header history + banners only),db/tables/{beads,agent-metadata}.table.ts,handlers/{mayor-tools,mayor,org-towns,rig-agents,town-eviction,towns,wasteland-tools}.handler.ts,trpc/{router,schemas}.ts,util/platform-pr.util.tstest/integration/:convoy-dag,gupp-nudge,http-api,mayor-idle,reconciler,review-failure,rig-alarm,rig-do,town-container,town-deletionteststest/unit/:conversation,convoy-branchestestsCategories of noise removed
// ── X ───,// ═══,// -- X --) restating route paths, describe titles, function names, or type namesRemove a git worktree.,Fetch pending nudges...,Sling result (bead + assigned agent),// Agent,// MayorStatus, ...)container/plugin/index.tsThese are no-ops now but kept for clarity)Verify the bead belongs to this rigabove an adjacent ownership check)Important comments intentionally retained
process-manager.ts, reconciler)reconciliation-spec.md §...,Rule 1/3/5/6numbering), issue references (Bug: Polecat heartbeats don't restore working status after dispatch timeout race #1358, fix(gastown): Container token refresh fires every minute on idle towns due to in-memory throttle #1409, fix(gastown): No circuit breaker on dispatch failures — dead container causes 70h runaway loop (+ spend) #1653, bug(gastown): create_landing_mr loops infinitely when convoy branches have no PR URL #2260, ...)eslint-disable/@ts-expect-errorsuppressions (all still hide real DO-RPC typing limitations)no-emptylint rule ("Client disconnected — will be cleaned up by webSocketClose", "Already closed", "Ignore non-JSON client messages")Follow-up refactor candidates
None recorded — no removed comment was load-bearing for understanding the adjacent code.
Validation performed
pnpm typecheck(services/gastown): passesoxlintonsrc): 0 errors; repo-widelint-all.sh: identical error set before and after the change (31 pre-existing errors incontainer/+test/style rules and a pre-existingapps/extensiontsconfig error)pnpm test(unit): 315/315 passpnpm test:integration: identical pass/fail profile before and after (52 pre-existing environmental failures in both runs)oxfmt --check: clean on the changed files (repo-wide check on the clean tree was already clean)// Ignore→// Ignore non-JSON client messages)Auto-merge on approval.