Skip to content

refactor(gateway): fix anti-slop findings in core, api and computers - #46

Merged
nixuuu merged 3 commits into
devfrom
refactor/quality-area-a-v2
Nov 4, 2026
Merged

nixuuu merged 3 commits into
devfrom
refactor/quality-area-a-v2

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 4, 2026

Copy link
Copy Markdown
Member

Code-quality phase 2, area A (docs/code-quality.md): apps/gateway except store/bots/connectors — core, api, computers, updates, worker-link, attachments, gateway root and tests. 321 non-size lint findings → 0 (318 fixes; 3 justified disables in core/worker-ssh.ts: the ambient *.sh reference and two terminal-control sanitizers). Typed core values and error causes; linked-computer values decoded at the link boundary; GatewayCore bot-thread actions and linkedAgents.botTool now return JSON-compatible results, so six casts in bots/platform.ts are gone. Rebased on #44/#45, keeping #44's heartbeat behaviour exactly. No behaviour, proto or API changes. Size findings (22) are phase 3.

Checks: every linked-computer/queue integration file ×20 (1 900 passes, 0 failures), two full check:tmp runs 830 pass / 0 fail, install, gen:check, typecheck, format:check, web build.

@nixuuu
nixuuu merged commit 6f3efd6 into dev Nov 4, 2026
2 checks passed
nixuuu added a commit that referenced this pull request Nov 4, 2026
Phase 4 of the code-quality refactor (docs/code-quality.md); phases 1–3
are merged (#29, #39–#43, #46, #47–#52) and the whole repo passes `bun
run lint` and `bun run format:check`.

- CI: "Lint" (`bun run lint`: oxlint + anti-slop + size limits) and
"Formatting" (`bun run format:check`: oxfmt) right after the typecheck.
- Root `check` script runs them too.
- AGENTS.md: lint + format in the hand-over checklist and a short "Code
quality" section (boundary parsing over casts, `// SAFETY:` for
remaining assertions, 400/120 size limits never disabled, no repo-wide
`oxlint --fix`).
- docs/code-quality.md: status — all phases done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant