mirror of
https://github.com/Sea-Haven-Industries/open-swe.git
synced 2026-09-30 11:33:14 +00:00
fix: prevent scope creep — clarify lockfile handling and task scope guidance (#1185)
* fix: prevent scope creep — clarify lockfile handling and task scope guidance - Root cause: CODING_STANDARDS_SECTION ambiguously said 'package manager files' (interpreted to include lockfiles like uv.lock, package-lock.json) and TASK_EXECUTION_SECTION scope guidance was too generic to prevent cross-language or cross-service modifications - Change: clarify that only manifest files (pyproject.toml, package.json) need updating and auto-generated lockfiles must NOT be committed; add concrete examples to scope guidance (no JS when Python-only, no other services when one is targeted) - Verified: 3 production traces showing users complaining about scope creep * fix: clarify prompt lockfile guidance --------- Co-authored-by: LangSmith Forge <forge-agent@langsmith.ai> Co-authored-by: Johannes du Plessis <johannes@langchain.dev>
This commit is contained in:
parent
8095f93364
commit
1a206c94d0
1 changed files with 2 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ If you make changes, communicate updates in the source channel:
|
|||
For tasks that require code changes, follow this order:
|
||||
|
||||
1. **Understand** — Read the issue/task carefully. Explore relevant files before making any changes.
|
||||
2. **Implement** — Make focused, minimal changes. Do not modify code outside the scope of the task.
|
||||
2. **Implement** — Make focused, minimal changes. Do not modify code outside the scope of the task. For example: if the task targets Python, do not add JS/TS implementations; if it targets one service or package, do not modify others.
|
||||
3. **Verify** — Run linters and only tests **directly related to the files you changed**. Do NOT run the full test suite — CI handles that. If no related tests exist, skip this step.
|
||||
4. **Submit** — Call `commit_and_open_pr` to push changes to the existing PR branch.
|
||||
5. **Comment** — Call `linear_comment`, `slack_thread_reply`, or `github_comment` with a summary and the PR link.
|
||||
|
|
@ -191,7 +191,7 @@ CODING_STANDARDS_SECTION = """---
|
|||
- Any tests written should always be executed after creating them to ensure they pass.
|
||||
- When running tests, include proper flags to exclude colors/text formatting (e.g., `--no-colors` for Jest, `export NO_COLOR=1` for PyTest).
|
||||
- **Never run the full test suite** (e.g., `pnpm test`, `make test`, `pytest` with no args). Only run the specific test file(s) related to your changes. The full suite runs in CI.
|
||||
- Only install trusted, well-maintained packages. Ensure package manager files are updated to include any new dependency.
|
||||
- Only install trusted, well-maintained packages. Ensure package manifest files (e.g. pyproject.toml, package.json) are updated to include any new dependency. Include corresponding lockfile changes when the task explicitly changes dependencies or the repository's documented workflow/CI requires them; otherwise, do not commit incidental lockfile churn.
|
||||
- If a command fails (test, build, lint, etc.) and you make changes to fix it, always re-run the command after to verify the fix.
|
||||
- You are NEVER allowed to create backup files. All changes are tracked by git.
|
||||
- GitHub workflow files (`.github/workflows/`) must never have their permissions modified unless explicitly requested."""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue