Files
hermes-agent/hermes_cli/config_issues.py
kshitijk4poor adebe1f8be fix(config): gate the readers main added since the rebase; adopt main's lint rules
Rebasing onto current main brought in direct config.yaml readers that the
seam's reader gate (scripts/check_config_yaml_readers.py) now rejects:

- gateway/session_config.py: the session `config.get mtime` getter uses
  config_exists/config_version + the TUI's _version_token, like
  tui_gateway/methods_config.py already does.
- hermes_cli/profiles.py: _strip_multiplex_flag checks config_exists.
- hermes_cli/config_backups.py: the byte comparison sits inside the
  supports_file_tooling()-gated block; marked like its siblings there.
- hermes_cli/update_receipt.py: _bare_collection_enabled runs in the bare
  bootstrap interpreter with no config stack; presence stat marked.

Main also turned on UP006/RUF100/B009 since the branch base: builtin
generics in the seam's new modules, stale noqa comments dropped, and the
newly unused typing imports removed.
2026-10-25 18:54:09 -07:00

19 lines
559 B
Python

"""The issue record config validation emits (``hermes config check``, doctor, startup warnings).
Its own module so the facade (``hermes_cli.config``) and its check siblings share it without
a facade import from the siblings."""
from dataclasses import dataclass
@dataclass
class ConfigIssue:
"""A detected config structure problem."""
severity: str # "error", "warning"
message: str
hint: str
def _issue(issues: list[ConfigIssue], severity: str, message: str, hint: str) -> None:
issues.append(ConfigIssue(severity, message, hint))