Repository navigation
refactor: delete verified dead surface - #1106
Conversation
…orphan schemas, test-only paths)
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 10, 2026, 2:54 PM ET / 18:54 UTC. ClawSweeper reviewWhat this changesThe PR deletes 12 unused workflow, repair, schema, command, and test surfaces while removing the stale workflow caller argument that would otherwise target a deleted input. Merge readinessKeep open. The prior workflow-dispatch blocker is fixed on the current PR head, and the source audit plus real GitHub dispatch proof support this cleanup; no blocking patch defect was found. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper’s GitHub workflows turn reviewed issues into repair jobs and publish review results through separate queue-backed automation. This PR removes unused internal seams while preserving the active issue-intake, repair, and publication paths. flowchart LR
A[Sweep candidates] --> B[Issue intake workflow]
B --> C[Repair jobs]
D[Review queue] --> E[Publication worker]
E --> F[GitHub review state]
G[Unused legacy surfaces] --> H[Removal in this PR]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the single workflow-owned model configuration and merge with the caller guard so future sweep dispatches cannot reintroduce the removed input. Do we have a high-confidence way to reproduce the issue? Not applicable: this is deletion-focused cleanup, and the relevant validation is that retained automation paths still accept their dispatches. Is this the best way to solve the issue? Yes. Removing ignored duplicate surfaces while retaining the live owners and adding a dispatch-caller guard is the narrowest maintainable solution. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 59904fe97f88. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Summary
Delete 12 independently verified dead surfaces while preserving the live owner for each behavior. This removes 1,428 net lines (61 additions, 1,489 deletions) and does not add a compatibility layer for code that had no production callers.
The accepted P1 review caught a would-be outage before merge: deleting the issue-implementation workflow's ignored
modelinput left the viable-issue caller sendingmodel=internal. GitHub rejects workflow-dispatch payloads containing undeclared inputs, so that caller would have stopped every viable issue-implementation dispatch. This head removes the retained argument and adds a regression guard over the sweep workflow's issue-implementation dispatches.Dead-surface evidence and live replacements
Each grep below was run at this commit and returned no matches for the deleted surface.
modelinputs in issue-implementation intake and spam scanning.git grep -n -E 'github\.event\.inputs\.model|inputs\.model' -- .github/workflows/repair-issue-implementation-intake.yml .github/workflows/spam-scanner.ymlrepair:import-ghcrawlandrepair:import-low-signal.git grep -n -E 'repair:import-ghcrawl|repair:import-low-signal' -- package.json src scripts test .githubrepair:import-gitcrawlandrepair:import-gitcrawl-low-signal.prompts/repair/review-result.md.git grep -n 'review-result.md' -- . ':!node_modules'src/repair/review-results.ts, invoked byrepair:review-results, plusschema/repair/codex-result.schema.json.schema/assist-artifact.schema.json.git grep -n 'assist-artifact.schema.json' -- . ':!node_modules'validateAssistArtifactinsrc/assist-artifact.ts.schema/repair/job.schema.json.git grep -n 'schema/repair/job.schema.json' -- . ':!node_modules'src/repair/lib.ts, with canonical types and intent policy indomain-types.tsandjob-intent.ts.schema/repair/recovery-advisor.schema.json.git grep -n 'recovery-advisor.schema.json' -- . ':!node_modules'execute-fix-artifact.tsandtarget-validation.ts.readSpooledActionEvents.git grep -n 'readSpooledActionEvents' -- src test scripts .githubreadAllSpooledActionEvents; affected safety tests now exercise that real path.clusterIntakeIntent.git grep -n 'clusterIntakeIntent' -- src test scripts .githubacceptClusterIntakeIntent, including receipt authentication and semantic validation.compactGeneratedBranchHistoryand its colocated test.git grep -n -E 'compactGeneratedBranchHistory|compact-generated-branch' -- src test scripts .github package.jsoncompactTargetHistoryWithPlumbingintarget-validation.ts, used byexecute-fix-artifact.tsand covered on the live repair path.coordinateExactReviewBatch/publishExactReviewBatchand prototype tests.git grep -n -E 'coordinateExactReviewBatch|publishExactReviewBatch' -- src test scripts .githubexact-review-batch-cli.ts,exact-review-batch-publish.yml, and the Worker-backedExactReviewPublicationBatchStoreprotocol.commitFindingPrTitle/normalizeGithubPrTitle.git grep -n -E 'commitFindingPrTitle|normalizeGithubPrTitle|from.*pr-title' -- src test scripts .githubfix_artifact.pr_titleundercodex-result.schema.json, with the GitHub hard ceiling retained inexecute-fix-validation.ts.stateWriterProgressReporter.git grep -n -E 'stateWriterProgressReporter|state-writer-progress-reporter' -- src test scripts .githubexactReviewBatchStateWriterProgressReporterused byexact-review-batch-cli.ts.The issue-implementation workflow guard intentionally changes its dispatch-input expectation from 10 to 9. That test guarded the ignored
modelinput deleted here; the new count preserves the guard for the remaining inputs.Workflow caller audit
The full
.github,scripts, andsrccaller inventory found:.github/workflows/sweep.yml:4728: vision-fit issue-implementation dispatch; already omittedmodel..github/workflows/sweep.yml:4771: viable issue-implementation dispatch; fixed here by removing-f model=internal.scripts/dispatch-issue-implementation-candidates.mjs:76: strict-bug issue-implementation dispatch; already omittedmodel.src/repair/spam-comment-intake.ts:31,240: the spam scanner's repository-dispatch payload type and builder; already send only the target/comment identifiers andmax_comments, with nomodelfield.There is no direct
gh workflow run spam-scanner.ymlcaller. Because no spam caller retained a deletedmodelargument and none was changed, no spam-scanner live dispatch was required.Caller grep proof (exit 1/no matches):
Behavior proof
modelinputs.enabled=falseand a unique nonexistent report path so execution fails closed before any repair/status step.8b87b7f4e3.failureon the intentional report-path HTTP 404, while queue-status publication, repair-worker dispatch, and dispatch recording were all skipped.2026-08-10T18:43:50Z, conclusionfailure(intentional fail-closed proof).modeland needed no fix.Dispatch proof command:
Validation:
pnpm run build:allpnpm run test:no-buildpnpm run lintpnpm run format:checkpnpm run check:active-surfacepnpm run check:dashboard-queue-boundarypnpm run check:limitsautoreview --mode local --max-priority P1 --prompt <scope>— clean, no accepted/actionable findingsautoreview --mode branch --base origin/main --max-priority P1 --prompt <scope>— clean, no accepted/actionable findingsBay impact
None. This changes no dashboard code, dashboard data contract, queue/status telemetry, or observer surface, so OpenClaw Bay needs no update.