Skip to content

Commit 477334e

Browse files
committed
AGENTS.md: fix facts contradicted by the repository
The Makefile appends subcmd.tcl before main.tcl when building modulecmd.tcl, the documentation is built in doc/build and there is no init/tcsh.in script. An assistant relying on the previous statements looks for files and output where none exist. Stop naming a specific modulefiles.N fixture directory and a specific model in the Assisted-by example, as both get outdated: modulefiles.5 now exists and the example model is copied verbatim into trailers whatever model assisted. Assisted-by: Claude:claude-fable-5-2 Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
1 parent 543d061 commit 477334e

2 files changed

Lines changed: 9 additions & 8 deletions

File tree

‎AGENTS.md‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ library in `lib/`).
3333

3434
```
3535
init -> util -> envmngt -> report -> interp -> mfcmd -> modscan ->
36-
modfind -> modeval -> modspec -> cache -> coll -> main -> subcmd
36+
modfind -> modeval -> modspec -> cache -> coll -> subcmd -> main
3737
```
3838

3939
Always edit the individual source file in `tcl/` (e.g. `tcl/main.tcl.in`,
@@ -91,7 +91,7 @@ script/mb profile
9191
## Docs
9292

9393
```sh
94-
cd doc && make html # requires Sphinx >= 1.0; output in doc/_build/html
94+
cd doc && make html # requires Sphinx >= 1.0; output in doc/build
9595
```
9696

9797
In `.rst` files, make a section title's underline exactly as long as the
@@ -120,7 +120,7 @@ added or its text edited.
120120
- `util.tcl` — generic helpers
121121
- `syntaxdb.tcl` — generated Nagelfar syntax DB for linting (do not hand-edit)
122122
- `init/` — per-shell init/wrapper scripts (`bash.in`, `csh.in`, `fish.in`,
123-
`tcsh.in`, `zsh.in`, `pwsh.ps1.in`, `perl.pm.in`, `r.R.in`, `ruby.rb.in`,
123+
`zsh.in`, `pwsh.ps1.in`, `perl.pm.in`, `r.R.in`, `ruby.rb.in`,
124124
`cmake.in`, ...) and shell completion scripts
125125
(`bash_completion.in`, `fish_completion`, `tcsh_completion.in`,
126126
`zsh-functions/_module.in`)
@@ -136,8 +136,8 @@ added or its text edited.
136136
numbered/prefixed (e.g. `470-variant.exp`); `script/mt 50/470` targets it.
137137
`modulefiles*/` subdirectories hold fixture modulefiles used by the tests.
138138
Add fixture modulefiles for a *new* test under the highest-numbered
139-
`modulefiles.N` directory (e.g. `modulefiles.4`; check for a higher one
140-
first) rather than the default `modulefiles/` directory — many existing
139+
`modulefiles.N` directory (list `testsuite/` to find it) rather than
140+
the default `modulefiles/` directory — many existing
141141
tests (`aliases`, `avail`, `spider`, `scan_eval`, ...) enumerate a
142142
modulepath's *entire* content, so adding to the heavily shared default dir
143143
changes their expected output. Even a numbered dir gets referenced
@@ -196,8 +196,9 @@ added or its text edited.
196196
- The project follows the Linux kernel's policy on AI coding assistants (see
197197
"AI coding assistants" in `CONTRIBUTING.rst`): never add a
198198
`Signed-off-by:` trailer on behalf of the AI — only the human committer
199-
signs off — and disclose AI involvement with an `Assisted-by:` trailer,
200-
e.g. `Assisted-by: Claude:claude-sonnet-5`.
199+
signs off — and disclose AI involvement with an `Assisted-by:` trailer
200+
naming the model that did the work, in the form
201+
`Assisted-by: Claude:<model-id>`.
201202

202203
## Pull request descriptions
203204

‎CONTRIBUTING.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Build the docs in the ``doc`` directory using Sphinx::
238238
cd doc
239239
make html
240240

241-
Open ``_build/html/index.html`` in your browser to view the docs.
241+
Open ``build/index.html`` in your browser to view the docs.
242242

243243
Read more about `Sphinx`_.
244244

0 commit comments

Comments
 (0)