learning_ai_common_plat/docs
Saravana Achu Mac 8f541c9f87 chore(audit): unblock workspace lint pipeline + 13 mechanical fixes
The first `pnpm -r exec eslint .` run was bailing at the very first
package (design-tokens), hiding any lint state in the rest of the 69
workspace packages. This commit fixes the structural blockers so the
pipeline runs end-to-end, then sweeps the small, low-risk lint errors
in the next 4 packages it surfaces. Real lint debt that remains
(85 errors, mostly @typescript-eslint/no-unused-vars across many
unrelated packages) is cataloged in docs/AUDIT_PLATFORM.md for follow-
up by package owners.

Structural fixes (eslint config):
  - eslint.config.js (root):
      • New flat-config block for **/*.cjs and **/scripts/**/*.{js,cjs}
        with Node globals (process, console, require, module, __dirname)
        and no-console disabled. CLI scripts legitimately print to
        stdout. This alone clears the 45 errors in design-tokens'
        validate-tokens.cjs.
      • Added XMLHttpRequest + ProgressEvent to browser globals so
        feedback-client compiles.
  - packages/ui/eslint.config.js:
      • Added @typescript-eslint/parser — the package-local override
        replaced (didn't merge with) the root config, so TS syntax was
        being parsed by espree and erroring on every `interface` /
        type import.
      • Added ignores for dist/** (root's ignores aren't inherited).
      • Extended the files glob to .storybook/**/*.{ts,tsx}.

Mechanical lint fixes (no behaviour change):
  - design-tokens/scripts/{validate,token-coverage}.cjs: empty catch
    binding (catch (e) → catch).
  - feedback-client/src/index.ts:
      • captureScreen(): preserve caught error via `{ cause: err }`
        on the rethrown Error (preserve-caught-error rule, real bug —
        previous chain dropped the original stack).
      • captureElement(): rename unused parity params mimeType/quality
        to _mimeType/_quality and document why they exist.
  - logger/__tests__/logger.test.ts: drop unused `LoggerConfig` import.
  - extraction-service/{lib/circuit-breaker,modules/extract/{sidecar-
    monitor,usage}}.test.ts: drop 3 unused vitest/type imports.
  - tracker-web/__tests__/tracker-proxy.test.ts: rename unused local
    `url` → `_url`.

New: docs/AUDIT_PLATFORM.md
  Tooling-backed audit summary (pnpm install / typecheck / test / lint
  results), classification of remaining lint debt by rule, and an
  ordered hand-off plan for package owners to clear the rest with
  `pnpm --filter <pkg> lint:fix` followed by an eyeball review.

Verified before commit:
  - `pnpm typecheck` → pass (all 69 packages compile)
  - `pnpm test`      → pass (~2,200 tests across 18+ suites)
  - `pnpm lint`      → 85 pre-existing errors surfaced (none introduced
    by this commit; all in unrelated packages — see AUDIT_PLATFORM.md
    section P).

Out of scope (left untouched in working tree):
  - In-progress nomgap-on-Vercel migration: docker-compose.ecosystem.yml,
    products/nomgap/product.json, services/platform-service/src/
    modules/flags/seed.ts.
  - pnpm-lock.yaml: my `pnpm install -r` regenerated it (+2.9k/-8.5k
    lines) — not part of the audit, owner should commit deliberately.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-04 14:21:34 -07:00
..
_MobileApps docs: add Apple App Store + Google Play Store release guides 2026-04-04 23:37:25 -07:00
architecture docs(inventory): refresh platform and workspace capability maps 2026-03-05 22:59:45 -08:00
audits docs(audits): mobile app readiness audit + companion targets implementation prompt 2026-03-27 08:19:32 -07:00
design docs: complete Platform Acceleration Roadmap (all 4 phases) — move to completed/ 2026-03-19 22:13:21 -07:00
design-system docs: design system audit, onboarding guide, and AGENTS.md updates 2026-03-03 21:55:02 -08:00
design-system-agents docs(design-system): rewrite agent prompts with parallel-safety, pre-flight checks, build gates, rollback recipes 2026-03-27 17:43:03 -07:00
devops refactor(scripts): move 5 Gitea scripts into scripts/gitea/ subdirectory 2026-04-13 00:02:55 -07:00
ecosystem docs(runtime): record Cowork checkpoint drill-in 2026-04-04 17:29:44 -07:00
guides ci: update CI/CD configuration 2026-03-03 12:08:22 -08:00
MCP+A2A docs: Update EXECUTION_CHECKLIST.md with Phase 15 completion 2026-03-05 22:07:53 -08:00
pnpm docs(pnpm): add MindLyst to migration tracker, update Gitea registry status 2026-03-24 08:28:11 -07:00
roadmaps docs(roadmaps): detailed 2026-04-17 plans for event bus, RAG, agent runtime, approval queue 2026-04-17 09:36:44 -07:00
session-logs docs: reorganize docs/ into category folders with roadmaps/{completed,partial,not-started} 2026-03-01 23:17:15 -08:00
workstreams docs(workstreams): align checklist with service consolidation 2026-02-15 08:58:58 -08:00
AUDIT_PLATFORM.md chore(audit): unblock workspace lint pipeline + 13 mechanical fixes 2026-05-04 14:21:34 -07:00
BROADCAST_SURVEY_API_REFERENCE.md docs(broadcasts,surveys): Complete API reference documentation 2026-03-03 08:28:15 -08:00
CROSS_REPO_DRY_AUDIT.md docs: fix 10 inaccuracies in DRY audit + roadmap after thorough review 2026-03-20 07:15:07 -07:00
DASHBOARD_UI_COVERAGE_ROADMAP.md docs: fix 10 bugs in dashboard UI coverage roadmap — self-audit corrections 2026-03-21 17:35:30 -07:00
DASHBOARD_UI_GAP_ANALYSIS.md docs(admin-web): update gap analysis — all Q1-Q4 TODOs resolved, 0 partially exposed pages 2026-03-21 23:15:24 -07:00
DESIGN_SYSTEM_AUDIT.md docs(audit): add Round 3 hardcoded hex elimination findings to DESIGN_SYSTEM_AUDIT.md 2026-03-29 10:40:47 -07:00
DESIGN_SYSTEM_REMEDIATION_PLAYBOOK.md docs: agent-executable design system remediation playbook — 5 phases, 20 tasks, code templates, verification commands 2026-03-27 16:08:27 -07:00
DESIGN_SYSTEM_REMEDIATION_ROADMAP.md docs(audit): mark all design system remediation roadmap items complete 2026-03-29 01:47:06 -07:00
ECOSYSTEM_CONSISTENCY_AUDIT.md docs: add ecosystem consistency audit — 20 findings across 13 repos 2026-03-21 20:21:06 -07:00
ECOSYSTEM_CROSS_POLLINATION_OPPORTUNITIES.md docs: create canonical ecosystem docs home 2026-04-03 15:25:00 -07:00
learning_ai_common_plat_INVENTORY.md chore(deploy): remove railway deployment artifacts 2026-04-03 17:05:15 -07:00
MOBILE_DRY_REFACTORING_ROADMAP.md docs: Add post-implementation review fixes section to roadmap 2026-03-20 23:16:19 -07:00
PROTOTYPE_DEPLOYMENT.md Add host-side prototype smoke test command 2026-03-14 06:23:18 +00:00
UNIFIED_BYTELYST_PORTAL_PRD.md fix(docs): self-audit Portal PRD + roadmap — 15 findings corrected 2026-03-21 20:57:28 -07:00
UNIFIED_BYTELYST_PORTAL_ROADMAP.md fix(docs): self-audit Portal PRD + roadmap — 15 findings corrected 2026-03-21 20:57:28 -07:00
WORKSPACE_INVENTORY.md docs: update workspace + common-plat inventory with accurate scan data 2026-03-21 10:52:31 -07:00
WORKSPACE_TODO_AUDIT.md fix(exports): strip data payload from list endpoint + update audit doc 2026-03-22 01:23:08 -07:00