diff --git a/AGENTS.md b/AGENTS.md index 62732904dd3a..3587c99fcf4a 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -2,15 +2,15 @@ ## Pre-flight Checks -Before the first code read, edit, or test in a session, ensure a clean working environment. DO NOT skip these 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 `/master` is more than a day old (check with `git log -1 --format="%ci" /master`), run `git fetch 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/databricks-eng/runtime/pulls/ --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. + - **Existing PR**: resolve the PR branch name via `gh api repos/apache/spark/pulls/ --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 `/master` and work from there (recommended), or create and switch to a new branch from `/master`. - - **Reading code or running tests**: use `/master`. + - **Running tests**: use `/master`. ## Development Notes