Skip to content

docs(repo): AGENTS.md, recording the traps that are invisible until they bite - #146

Merged
hyperpolymath merged 2 commits into
mainfrom
docs-agents
Oct 15, 2026
Merged

hyperpolymath merged 2 commits into
mainfrom
docs-agents

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What this changes

An AGENTS.md at the repository root -- the agents.md convention that coding agents (Vibe, Claude Code, Codex and the rest) load automatically at startup -- recording the two traps this session measured the hard way, so the next agent does not have to:

  1. renv.lock and ci.yml's two hardcoded R-package verification lists are coupled. Removing a package from the lock fails CI at install verification, nowhere near the code that stopped using it. MEASURED on refactor(dada2): assemble the taxonomy CSVs in base R, dropping dplyr entirely JoshuaJewell/MetaManifold-WebUI#57: dplyr left the lock and both checks ("Install R packages" and "Verify R packages visible from RCall") failed until the lists were updated in the same PR. The instruction is mechanical: any lock change greps .github/workflows/ci.yml for the package name and updates both lists in the same commit. Plus the corollary: tibble cannot leave the lock while dada2 is in it (dada2 -> ggplot2 -> tibble is dada2's own chain), and the lock's Requirements arrays are not evidence -- only a handful of records carry one.

  2. Commit signing needs the SSH agent, not a passphrase prompt. A non-interactive shell has no askpass, so signing fails with a misleading error unless the agent's fixed socket (/tmp/lcb-ssh-agent.sock, exported by ~/.profile when it exists) is reachable. The instruction: check the agent with ssh-add -l; never work around a signing failure with commit.gpgsign=false.

The root-shape allowlist in test/unit/test_install_pins.jl gains AGENTS.md: the convention only loads it from the root, so it cannot live under .github/ with the other health files, and the bidirectional root check would otherwise (correctly) refuse it.

How to run its tests

julia --project=. test/unit/test_install_pins.jl   # 223/223, root shape 24/24

Documentation only otherwise: no code, workflow or config change. The commit is signed.

What this leaves out

Nothing upstreaming: this file is fork tooling (upstream has no agents.md convention in use, and its own CONTRIBUTING already governs PRs there). The same coupling exists in upstream's ci.yml and is documented in the comments of JoshuaJewell#57 itself.

Versions tested

Julia 1.13.1 locally (CI pins 1.12.5). Nothing else touched.


Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe vibe@mistral.ai

…hey bite

Instructions for coding agents, loaded at startup by the agents.md
convention. Two things this session measured the hard way:

- renv.lock and ci.yml's two hardcoded R-package verification lists are
  coupled: removing a package from the lock fails CI at install
  verification, nowhere near the code that stopped using it
  (JoshuaJewell#57). Any lock change must grep
  .github/workflows/ci.yml for the package name and update both lists in
  the same commit. And tibble cannot leave the lock while dada2 is in
  it: dada2 -> ggplot2 -> tibble is dada2's own chain, and the lock's
  Requirements arrays are not evidence against it.
- commit signing needs the SSH agent (the fixed socket at
  /tmp/lcb-ssh-agent.sock, exported by ~/.profile when it exists); a
  non-interactive shell cannot prompt for the passphrase, and disabling
  signing to work around it is how unsigned commits happen.

The root-shape allowlist gains AGENTS.md: the convention only loads it
from the root, so it cannot live under .github/ with the other health
files.

Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 44 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 7ba7e12f-2d39-4fc8-b15f-bfd439a69813
📥 Commits

Reviewing files that changed from the base of the PR and between 8f916cd and b3c5e1f.

📒 Files selected for processing: 2
  • AGENTS.md
  • test/unit/test_install_pins.jl
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath enabled auto-merge (squash) October 15, 2026 08:51
@sonarqubecloud

Copy link
Copy Markdown

@hyperpolymath hyperpolymath moved this from Todo to In Progress in MetaManifold Work Board Oct 15, 2026
@hyperpolymath
hyperpolymath merged commit 7d5e9a4 into main Oct 15, 2026
13 checks passed
@hyperpolymath
hyperpolymath deleted the docs-agents branch October 15, 2026 09:19
@github-project-automation github-project-automation Bot moved this from In Progress to Done in MetaManifold Work Board Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant