[0aa8c331] chore(conventions): fix or waive real lint suppressions in roboco/ (#725) (#734)

Co-authored-by: roboco-app[bot] <302741806+roboco-app[bot]@users.noreply.github.com>
Co-authored-by: Backend Developer 1 <be-dev-1@roboco.tech>
This commit is contained in:
roboco-app[bot]
2026-07-30 07:04:46 +00:00
committed by GitHub
co-authored by roboco-app[bot] <302741806+roboco-app[bot]@users.noreply.github.com> Backend Developer 1
parent e1f5e0950e
commit 9f07183b01
7 changed files with 43 additions and 11 deletions
+19
View File
@@ -107,3 +107,22 @@ waivers:
not a production component — the same pattern already used by the
pre-existing use-agents.test.tsx / use-observability.test.tsx hook
tests colocated under hooks/__tests__/.
- path: roboco/api/routes/prompter_live.py
rule: no_lint_suppressions
reason: >-
preview_live_batch's `session_id` path parameter is unused in the
function body (the endpoint is a pure precompute) but must stay in the
signature under that exact name for FastAPI to bind the
`/live/{session_id}/preview-batch` path — renaming or dropping it
breaks routing, so the ARG001 suppression is a permanent framework
constraint, not silenced debt.
- path: roboco/foundation/policy/lifecycle.py
rule: no_lint_suppressions
reason: >-
The module-load-time `_run_all_lifecycle_validators` import sits below
other module code deliberately: its validators live in
`roboco.foundation._validate_lifecycle`, a sibling of
`foundation/_validate.py`, and `roboco.foundation.__init__` eagerly
imports `_validate` — importing it at the top of this file would
create a real import cycle. The E402 suppression documents a genuine
circular-import constraint, not silenced debt.