dongjoon-hyun commented on code in PR #60670:
URL: https://github.com/apache/spark/pull/60670#discussion_r4658977359


##########
AGENTS.md:
##########
@@ -12,25 +12,13 @@ for that directory's scope. A directory may carry these 
instructions as `CLAUDE.
 `AGENTS.md`, so check **both** names. Where both exist, one is a symlink to 
the other, and reading
 either one is sufficient.
 
-New instructions go in `AGENTS.md` or the `.agents/` directory beside it. Keep 
a rule in
-`AGENTS.md` if most tasks need it, or if an agent could break it without 
noticing it is in that
-situation. Move procedures and reference material to `.agents/`, behind a 
pointer that starts with
-its trigger. When adding instructions to a directory that has neither file, 
create `AGENTS.md` as
-the real file and add a `CLAUDE.md` symlink beside it (`ln -s AGENTS.md 
CLAUDE.md`). After editing
-agent docs, run `dev/agent_docs_lint.py --strict`, which CI also runs: it 
checks the pairing, that
-every pointer resolves and every `.agents/` file has one, and Codex's 32 KiB 
budget per chain.
+Before editing agent docs (an `AGENTS.md`, `CLAUDE.md` or `.agents/` file): 
read
+`.agents/agent-docs.md`.
 
 ## Pre-flight Checks
 
-Before the first code edit or running test in a session, ensure a clean 
working environment. DO NOT skip these checks:
-
-1. Run `git remote -v` to identify the personal fork and upstream 
(`apache/spark`). If unclear, ask the user to configure their remotes following 
the standard convention (`origin` for the fork, `upstream` for `apache/spark`).
-2. If the latest commit on `<upstream>/master` is more than a day old (check 
with `git log -1 --format="%ci" <upstream>/master`), run `git fetch <upstream> 
master`.
-3. If there are uncommitted changes (check with `git status`), ask the user to 
stash them before proceeding.
-4. Switch to the appropriate branch:
-   - **Existing PR**: resolve the PR branch name via `gh api 
repos/apache/spark/pulls/<number> --jq '.head.ref'`, then look for a local 
branch matching that name. If found, switch to it and inform the user. If not 
found, ask whether to fetch it or if there is a local branch under a different 
name.
-   - **New edits**: ask the user to choose: create a new git worktree from 
`<upstream>/master` with `--no-track` and work from there (recommended), or 
create and switch to a new branch from `<upstream>/master` with `--no-track`.
-   - **Running tests**: use `<upstream>/master`.
+Before the first code edit or running test in a session, follow 
`.agents/pre-flight.md`. DO NOT

Review Comment:
   This still applies at cd63c59: L20 points to `.agents/pre-flight.md`, so 
almost every session still needs one more read before its first edit. With the 
four steps inline, the root would be 6717 bytes, still under the 8 KiB target. 
Could you keep them inline, or share why the separate file is preferred?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to