Skip to content

docs: rewrite AGENTS.md with verified commands and CI requirements#767

Open
jcpsimmons wants to merge 1 commit into
mainfrom
docs/refresh-agents-md
Open

docs: rewrite AGENTS.md with verified commands and CI requirements#767
jcpsimmons wants to merge 1 commit into
mainfrom
docs/refresh-agents-md

Conversation

@jcpsimmons

@jcpsimmons jcpsimmons commented Jul 1, 2026

Copy link
Copy Markdown

Why

AGENTS.md had drifted badly from the codebase and would mislead anyone (human or agent) following it: Kotlin 1.8.21 (actual 2.1.21), target SDK 33 (actual 36), Compose BOM 2023.03.00 (actual 2025.10.00), a make install-local-sdk target that does not exist, instructions to branch off a develop branch that does not exist, the wrong test naming convention, and no mention of the location module. It also said nothing about most of the checks that actually gate PRs here, like the conventional-commit title lint.

What

A full verification pass and rewrite. Every command and claim was checked against the repo (Makefile, gradle files, buildSrc/Versions.kt, lefthook.yml, workflows, scripts).

New:

  • "CI: what gates your PR" section covering all eight PR checks: title lint, pinned ktlint (and why it is pinned), per-module Android Lint, apiCheck and fixing it with ./gradlew apiDump, unit test matrix and Codecov upload behavior, instrumentation tests, snapshot publish (and why it cannot pass on fork PRs), and the binary size report
  • Dependency policy section: Versions.kt as the single source, the deliberate Segment strict pin, the minSdk 21 support commitment, the AGP/compatibility-workflow coupling
  • A note that the location module is missing from the lint and unit-test CI matrices, so it needs local runs
  • CLAUDE.md pointer file so Claude Code loads the same guidance

Fixes: toolchain versions, local-Maven publish command (./gradlew publishToMavenLocal), branch-off-main workflow, test naming convention (methodName_givenCondition_expectResult), project structure including location.

No internal information; verified suitable for a public repo.


Note

Low Risk
Documentation-only changes to contributor/agent guidance; no runtime, API, or build logic is modified.

Overview
Rewrites AGENTS.md so agent and contributor guidance matches the repo after a verification pass against Makefile, Gradle, Versions.kt, hooks, and workflows. Outdated toolchain numbers, a nonexistent make install-local-sdk target, branching off develop, and the old test naming style are corrected; location/ is added to the module map with a note that CI does not lint or unit-test it yet.

New or expanded sections include golden rules (build after changes, apiDump, no drive-by version bumps), a Toolchain block, CI: what gates your PR (eight checks: conventional PR title, pinned ktlint, Android Lint modules, apiCheck/apiDump, unit tests and Codecov, sample instrumentation, snapshot publish on forks, binary size report), Dependency policy (Versions.kt, Segment pin, minSdk 21, AGP workflow coupling), tighter Testing / Git workflow (branch from main, lefthook, semantic-release), and trimmed architecture/sample/release notes. Long redundant build/test/debug sections are removed in favor of the verified command list.

Adds CLAUDE.md as a short pointer to AGENTS.md (with @AGENTS.md) so Claude Code loads the same guidance.

Reviewed by Cursor Bugbot for commit 969c5e5. Bugbot is set up for automated code reviews on this repo. Configure here.

The previous doc had drifted badly from the codebase: Kotlin 1.8.21
(actual 2.1.21), target SDK 33 (actual 36), Compose BOM 2023.03.00
(actual 2025.10.00), a make install-local-sdk target that does not
exist, instructions to branch off a develop branch that does not exist,
the wrong test naming convention, and no mention of the location
module.

Every command and claim in this version was verified against the repo.
New: a CI section covering everything that gates a PR (conventional
commit title lint, pinned ktlint, per-module Android Lint, apiCheck and
how to update dumps, Codecov upload behavior, instrumentation tests,
snapshot publish, binary size report), a dependency policy section
explaining the deliberate pins, and a CLAUDE.md pointer so Claude Code
loads the same guidance.
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Sample app builds 📱

Below you will find the list of the latest versions of the sample apps. It's recommended to always download the latest builds of the sample apps to accurately test the pull request.


@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.89%. Comparing base (b5cf24d) to head (969c5e5).
⚠️ Report is 25 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #767      +/-   ##
============================================
- Coverage     69.07%   67.89%   -1.18%     
- Complexity      838      901      +63     
============================================
  Files           149      159      +10     
  Lines          4601     4968     +367     
  Branches        628      670      +42     
============================================
+ Hits           3178     3373     +195     
- Misses         1189     1341     +152     
- Partials        234      254      +20     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
  • java_layout: docs/refresh-agents-md (1782942024)

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
  • kotlin_compose: docs/refresh-agents-md (1782942033)

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

📏 SDK Binary Size Comparison Report

No changes detected in SDK binary size ✅

@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown

Build available to test
Version: docs-refresh-agents-md-SNAPSHOT
Repository: https://central.sonatype.com/repository/maven-snapshots/

@jcpsimmons jcpsimmons marked this pull request as ready for review July 1, 2026 21:47
@jcpsimmons jcpsimmons requested a review from a team as a code owner July 1, 2026 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant