Skip to content

Latest commit

 

History

History
65 lines (46 loc) · 5.37 KB

File metadata and controls

65 lines (46 loc) · 5.37 KB

CliMA Developer Guides: Agent Entry Point

Read this file first. It is the agent entry point for the shared engineering guidelines. Each guide applies across the CliMA ecosystem unless stated otherwise.

In consumer repos, these guides live at docs/dev-guides/ and are supplied by a git subtree from the canonical source https://github.com/CliMA/DeveloperGuides. The consumer's root AGENTS.md references this file and the repo-specific guide. Edit shared guides in the canonical repo, not in the subtree copy.

Before you act: agent autonomy

Local, reversible work (editing files, running tests, formatting, committing to the current branch) needs no permission. Get explicit user approval before any irreversible, externally visible, or scientifically consequential action:

  • Git/GitHub: git push, force-push, rebasing or amending pushed commits, git reset --hard or git clean with uncommitted changes, deleting branches, opening/merging/closing PRs, commenting on issues or PRs, tagging or pushing releases.
  • Versioning and dependencies: bumping version in Project.toml, editing Manifest.toml, changing [compat] or [deps], Pkg.update().
  • Reproducibility data: editing reference counters, MSE tolerances, or checksum/golden files in reproducibility-test directories. Change these only for a user-confirmed output change.
  • CI and infrastructure: editing .buildkite/pipeline.yml or .github/workflows/*, adding or removing CI jobs, disabling tests, skipping hooks (--no-verify).
  • Public API and user-visible behavior: renaming or removing exported symbols, renaming diagnostics or changing their units, changing or removing user-visible config keys.

The full enumeration and the allowed-without-approval list are in workflow/agent_autonomy.md. When in doubt, ask.

Guides

Architecture

Performance

Code Quality

Infrastructure

Workflow

  • onboarding.md: install Julia, clone a CliMA repo, set up Revise/Infiltrator/JuliaFormatter, first PR loop.
  • running_on_gpu.md: run a model on GPU — install Julia, add CUDA.jl, CUDA runtime compatibility, CLIMACOMMS_DEVICE, verify the device.
  • agent_autonomy.md: actions that require explicit user approval.
  • debugging.md: interactive debugging recipes for numerical instabilities, dispatch, and Field plotting.
  • review.md: PR review instructions and checklist.
  • ci_triage.md: checklist for "passes locally, fails on CI" failure modes.
  • cross_repo_issue_pr_search.md: org-scoped GitHub search to find and filter issues/PRs across CliMA.

Self-correction

If this index is stale or missing a guide, update it here and in the matching README.md overview.