photon_platform.clerk.doctor¶
Workspace, toolchain, Press manifest, agent symlink, and managed-service diagnostics.
Attributes¶
Functions¶
|
Compare |
|
Audit workspace |
|
Audit Python/uv virtual environments across workspace orgs and repositories. |
|
Run an end-to-end health audit of the PHOTON / GEOMETOR workspace and services. |
|
Audit Python toolchain, managed web services, agents, Press manifest, and fleet health. |
Module Contents¶
- photon_platform.clerk.doctor.CONTEXT_MAX_BYTES = 20000¶
- photon_platform.clerk.doctor.EXPECTED_PYTHON_MINOR = '3.13'¶
- photon_platform.clerk.doctor.check_press_manifest_alignment(projects_dir: pathlib.Path) dict[str, Any]¶
Compare
geometor/press/resources/shelf.yamlagainst livegeometor/directories.
- photon_platform.clerk.doctor.check_context_health(projects_dir: pathlib.Path, *, max_bytes: int = CONTEXT_MAX_BYTES) dict[str, Any]¶
Audit workspace
GEMINI.mdhierarchy, symlinks, and root hygiene.- Parameters:
projects_dir – Workspace root (e.g.
~/PROJECTS).max_bytes – Soft byte ceiling for
GEMINI.mdfiles (Antigravity truncates at 24 KB).
- Returns:
Structured dictionary describing context-file health and any hygiene findings.
- photon_platform.clerk.doctor.check_venv_health(projects_dir: pathlib.Path, *, expected_python: str = EXPECTED_PYTHON_MINOR) dict[str, Any]¶
Audit Python/uv virtual environments across workspace orgs and repositories.
Flags empty stub
.venvdirectories (zero installed distributions), virtual environments targeting an unexpected Python minor version (unless explicitly pinned via.python-version), legacyvenv/directories, and broken.venvsymlinks.- Parameters:
projects_dir – Workspace root (e.g.
~/PROJECTS).expected_python – Expected default Python
major.minorversion.
- Returns:
Structured dictionary summarizing virtual-environment health.
- photon_platform.clerk.doctor.run_doctor(config: photon_platform.clerk.config.ClerkConfig | None = None) dict[str, Any]¶
Run an end-to-end health audit of the PHOTON / GEOMETOR workspace and services.
- Parameters:
config – Optional
ClerkConfigoverride.- Returns:
Structured JSON-serializable diagnostic report.