Skip to content

Hygiene: tsconfig.tsbuildinfo is tracked and churns every build; stale log files in web source tree; CWD-relative logger defaults; dead ValidateRequest.filename; AGENTS.md utils tree missing path_utils.py #149

Open

Description

@falbany

Hygiene sweep (all git/read verified)

  1. tsconfig.tsbuildinfo tracked in git — written by "build": "tsc -b && vite build" (package.json:7); tsc -b always emits it. Not covered by any .gitignore (git check-ignore → NOT IGNORED), committed historically and drifting on every local build. Fix: git rm --cached src/profiles/web/tsconfig.tsbuildinfo + add *.tsbuildinfo to src/profiles/web/.gitignore.

  2. Stray logs in the package source dir — src/profiles/web/profiles.log (Oct 15, legacy CWD-relative write), test-output.log + test-output2.log (Nov 3 manual npm test > … redirections, no script references them). They are untracked and ignored, but they signal a latent foot-gun: LoggerFactory.__init__ (core/telemetry/diagnostics.py:163) and configure_logger (diagnostics.py:281) still default to log_path="profiles.log" (CWD-relative) — any future caller of get_logger() without an explicit path reintroduces CWD log litter. Fix: delete the three files; change both signature defaults to log_path=None resolving to default_log_path() (mirroring app.py:120).

  3. ValidateRequest.filename is a dead contract field — declared in routes/config.py:39-41, dutifully sent by the client (client.ts:225-236), but validate_config_endpoint only uses payload.content (config.py:360-368). Drop it (or actually use it in issue messages).

  4. AGENTS.md tree missing src/profiles/utils/path_utils.py — the Utils Layer section lists only file_utils.py, network.py, search_parser.py, shortcut.py, while path_utils.py (home of normalize_user_path, imported by the config routes) exists — exactly the stale-import-path hazard the AGENTS.md "Keep in sync" note warns about. Add it to the tree.

Activity

  1. added
    code-quality
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-quality

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions