Skip to content

Replace the agent docs with a short repository map and agent guide - #117

Merged
pchakraborty merged 2 commits into
release/MAPL-v3from
feature/pchakrab/radiation-agent-docs
Nov 12, 2026
Merged

pchakraborty merged 2 commits into
release/MAPL-v3from
feature/pchakrab/radiation-agent-docs

Conversation

@pchakraborty

Copy link
Copy Markdown
Contributor

Description

  • docs/ARCHITECTURE.md is now a short repository map in the style of matklad's ARCHITECTURE.md: bird's-eye view, codemap, how Radiation is put together (children and run order, the composite reading its children's exports through its own imports, shared settings, the refresh and every-step update, scheme selection), contracts with the rest of GEOS (imports, exports including RADLW/RADSW to Moist and RADLW/RADLWC to Turbulence; Radiation neither provides nor subscribes to any service), invariants, cross-cutting concerns, and an appendix on the aerosol-optics protocol with the AERO state. It names modules and routines, describes only what changes rarely, and has no status or to-dos.
  • AGENTS.md keeps what changes and what to do: rules (bugs and questions go to issues; do not edit generated *___.h; MAPL3 error macros; porting follows the GEOSgcm_GridComp AGENTS.md), status and to-dos, known traps (each phrased as what goes wrong), build and test. Verified against 856688c.
  • Removed docs/decisions.md (the reasons were inferred, not recorded decisions) and GEOSirrad_GridComp/ARCHITECTURE.md and GEOSsolar_GridComp/ARCHITECTURE.md. What was worth keeping moved to the two files above.

The open questions and observations from the removed documents are not in this PR; they are collected separately to be filed as issues. Same approach as GEOS-ESM/GOCART#503 and GEOS-ESM/GEOSgcm_GridComp#1577; the PRs are independent.

Testing

Documentation only; nothing built or run.

docs/ARCHITECTURE.md is now a short map (codemap, structure, refresh and every-step update, scheme selection, contracts, invariants, cross-cutting concerns, appendix on aerosol optics from AERO); AGENTS.md keeps rules, status, known traps and build and test. Remove docs/decisions.md and the IRRAD and SOLAR ARCHITECTURE.md files; what was worth keeping moved to the two files.
@pchakraborty pchakraborty added 0 diff The changes in this pull request have verified to be zero-diff with the target branch. documentation Improvements or additions to documentation labels Nov 11, 2026
AGENTS.md: the "restricted to IRRAD only" comment is in Physics' CMakeLists.txt. ARCHITECTURE.md: the children clip the provider's aerosol fields (extinction times albedo and times asymmetry) as received, before any division, as in MAPL2; SOLAR's loops add per-band internals as well as exports.
@pchakraborty
pchakraborty marked this pull request as ready for review November 12, 2026 14:31
@pchakraborty
pchakraborty requested a review from a team as a code owner November 12, 2026 14:31
@pchakraborty
pchakraborty merged commit 6cc6501 into release/MAPL-v3 Nov 12, 2026
5 checks passed
@pchakraborty
pchakraborty deleted the feature/pchakrab/radiation-agent-docs branch November 12, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

0 diff The changes in this pull request have verified to be zero-diff with the target branch. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant