Skip to content

fix(roadmap): remove stray files of the implement step - #3094

Merged
dan-petty merged 7 commits into
mainfrom
fix/3092-step-removes-stray-files
Nov 1, 2026
Merged

dan-petty merged 7 commits into
mainfrom
fix/3092-step-removes-stray-files

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The implement step stopped on files that the agent wrote itself. In 4 of 13 stops of 2026-11-01 the agent left a scratch file in the checkout root. The step staged it, gave it to ruff and mypy, and could commit it.

Before the exit checks, and again after the extra turn, the step now lists the untracked files that git does not ignore. It deletes each one that the group does not allow. The group allows:

  • a path that it names in a code span;
  • a file under its change folder;
  • a file under src/, tests/, docs/ or openspec/.

A nested git repository is removed with its files. A fix step keeps its new files.

The step writes the names of the removed files to the Job log, to StepOutcome.removed, to the table of the command and to the message of the extra turn. The eval of the job counts a removed file in diff_scope and no_scratch. The prompt says that the step deletes such a file.

A scratch file inside src/, tests/, docs/ or openspec/ is not removed. The plan cannot list every fixture or helper module, and a deleted helper breaks the commit. The normal checks handle these files.

Closes #3092

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 1, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

  • Full devops ci on the branch before the archive: test ran 4m 10s (241 s of pytest), 16007 passed. Two failures and one error are not from this change: tests/ai/test_tool_executor_contract.py (popeye is on the host PATH, issue test(floor): every test sees the same tokenizer cache, mounts, process table, PATH and programs on every host, and no skip depends on the host #2165) and tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run (the host has every tool installed, so the text "not installed" is absent). All other checks passed, including openspec, docs, typecheck, lint and format.
  • devops ci fail-to-pass --base origin/main: the new tests fail on the base (2 failed, 1 errored: tests/roadmap/test_roadmap_implement_strays.py cannot import implement_strays on the base). The run also lists the existing tests of the touched files that pass on the base.

Review findings

Fixed:

  • Major, spec: the kept-test rule was narrower than the issue. The step now keeps every unnamed file under src/, tests/, docs/ and openspec/, so a mirrored test path is kept. The proposal states why the rule differs from the issue.
  • Major, integrity: the step deleted fixtures, conftest.py and unnamed modules without a sign. It now deletes only files outside the four project directories and a nested git repository. Replay tests cover tests/data.json, tests/conftest.py and src/helper.py.
  • Major, integrity: Path.unlink raised IsADirectoryError for a nested git repository. The step now removes a directory entry with shutil.rmtree (a symbolic link is unlinked). A replay test runs git init sub.

Limit: a scratch file inside src/, tests/, docs/ or openspec/ is not removed. It goes to ruff and mypy as before. All four incidents of the issue were files in the checkout root.

@dan-petty
dan-petty marked this pull request as ready for review November 1, 2026 19:15
@dan-petty

Copy link
Copy Markdown
Owner Author

Advisory pre-merge review (automated; a person decides).

Recommendation: merge-after-minor-fixes. The change does what the four incidents of issue #3092 need, and no finding is above minor. A person should decide on the two scope notes below before the merge.

Severity Where Problem Evidence Fix
minor src/devops_cli/roadmap/implement_step.py, _extra_ask (line 1089) The agent learns about removed files only when an extra turn runs for another reason. Criterion 3 of the issue ("The agent is told which files were removed") is met in part. _extra_ask returns None at once when failure is None and no task is unticked. The removed note is part only of implement_tick_turn and implement_repair_turn. In the common case the step removes the file, the checks pass, and no turn follows. State in the PR body that the agent is told only when an extra turn runs. The Job log and the report are the record in the other case.
minor src/devops_cli/roadmap/implement_strays.py, _PROJECT_DIRECTORIES (line 30) The rule is narrower than the issue. Any unnamed new file under src/, tests/, docs/ and openspec/ is kept. The issue asks to remove every untracked file that the group does not name. The third "What should happen" bullet (ruff and mypy take only group paths) is not done. The PR still says Closes #3092. stray_files: if not name.endswith("/") and next(iter(path.parts), "") in _PROJECT_DIRECTORIES: continue. The proposal states this limit. All four incident files in the issue are bare names in the root, so the incidents are covered. The owner should accept the narrower rule. Or file a follow-up issue for scratch files inside the four project directories and for the ruff and mypy path limit.
minor tests/roadmap/test_roadmap_implement_strays.py The branch of _delete that unlinks a symbolic link has no test. grep -n 'symlink|symbolic' on the test file returns no line. Add one replay test: a link to a directory outside the checkout is removed and the target stays.
minor implement_strays.py:49, stray_files A group that names a directory or a glob in a code span does not protect the files below it. The match is exact. A probe with k8s/apps/foo/ and scripts/*.sh in the group text deleted k8s/apps/foo/a.yaml and scripts/x.sh. This agrees with named_files in step_files.py, which reads only file names. Optional: treat a span that ends with / as a prefix. Or say in the design that a group must name each new file.
minor implement_step.py:915-930, _remove_strays Only untracked files are listed (ls-files --others). A scratch file that the agent stages with git add is not listed and reaches ruff, mypy and the commit as before. The command is git ls-files --others --exclude-standard -z. The prompt says the shell allows git. The case is rare. Optional: also list added files of the index against the start commit.
nit implement_step.py, _remove_strays (if inputs.fix is not None: return) A fix step has no stray rule. The issue makes no such exception. The spec scenario "A fix step" states it. Name the exception in the PR body.
nit render_outcome (about line 1284) The table row lists every removed name with no limit. The log and the agent message use removed_text, which has a cap. escape_text(", ".join(outcome.removed)). Optional: reuse removed_text.

Points that I checked and found good:

  • The new tests fail on base and pass on head. On base (0dbd092) the new strays test file fails at collection, and the two new tests of other files fail. On head, 305 tests of the 9 changed test files pass.
  • Mutation checks: removing removed=outcome.removed or the _remove_strays call in _extra_turn makes a test fail. The new tests assert real behavior.
  • No test is removed, skipped or weakened. The path edits in old tests keep their intent.
  • ruff check, ruff format --check and mypy --strict on the changed source files pass.
  • Symlinks are unlinked, not followed. -z avoids path quoting problems. Strays of the extra turn are removed before _foreign_change, so they cause no false stop.
  • The title is a Conventional Commit with no !. The change folder is archived in the last commit. The proposal has a ## Feasibility section. All 20 check runs on the head are done: 18 passed and 2 were skipped. Generated docs are in sync. I found no private data.

Checks that I ran: read of the diff and the proposal; ruff, mypy --strict; the 9 changed test modules on head and on base; two mutation checks; a probe of stray_files with a directory span; devops docs generate --sync-readme (no diff); a search of the change folder for email addresses and .lan names. I did not run the full devops ci.

@dan-petty
dan-petty merged commit 40e65a1 into main Nov 1, 2026
20 checks passed
@dan-petty
dan-petty deleted the fix/3092-step-removes-stray-files branch November 1, 2026 19:24
dan-petty pushed a commit that referenced this pull request Nov 1, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.37.3](v0.37.2...v0.37.3)
(2026-11-01)


### Bug Fixes

* **roadmap:** decode the log excerpt of an ended Job
([#3093](#3093))
([2b957bf](2b957bf)),
closes [#3091](#3091)
* **roadmap:** remove stray files of the implement step
([#3094](#3094))
([40e65a1](40e65a1)),
closes [#3092](#3092)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
dan-petty added a commit that referenced this pull request Nov 17, 2026
This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [ast-grep-cli](https://ast-grep.github.io/)
([source](https://redirect.github.com/ast-grep/ast-grep),
[changelog](https://redirect.github.com/ast-grep/ast-grep/blob/main/CHANGELOG.md))
| `==0.51.2` → `==0.51.3` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/ast-grep-cli/0.51.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ast-grep-cli/0.51.2/0.51.3?slim=true)
|
| [diff-cover](https://redirect.github.com/Bachmann1234/diff-cover) |
`==11.0.1` → `==11.0.2` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/diff-cover/11.0.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/diff-cover/11.0.1/11.0.2?slim=true)
|
| [fastapi](https://redirect.github.com/fastapi/fastapi)
([changelog](https://fastapi.tiangolo.com/release-notes/)) | `==0.162.5`
→ `==0.162.7` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/fastapi/0.162.7?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/fastapi/0.162.5/0.162.7?slim=true)
|
| [httpcore2](https://redirect.github.com/pydantic/httpx2)
([changelog](https://redirect.github.com/pydantic/httpx2/blob/main/src/httpcore2/CHANGELOG.md))
| `==2.16.0` → `==2.16.2` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/httpcore2/2.16.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/httpcore2/2.16.0/2.16.2?slim=true)
|
| [httpx2](https://redirect.github.com/pydantic/httpx2)
([changelog](https://redirect.github.com/pydantic/httpx2/blob/main/src/httpx2/CHANGELOG.md))
| `==2.16.0` → `==2.16.2` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/httpx2/2.16.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/httpx2/2.16.0/2.16.2?slim=true)
|
| [lizard](http://www.lizard.ws)
([source](https://redirect.github.com/terryyin/lizard)) | `==1.26.0` →
`==1.26.1` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/lizard/1.26.1?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/lizard/1.26.0/1.26.1?slim=true)
|
|
[pydantic-settings](https://redirect.github.com/pydantic/pydantic-settings)
([changelog](https://redirect.github.com/pydantic/pydantic-settings/releases))
| `==2.16.2` → `==2.16.3` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/pydantic-settings/2.16.3?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/pydantic-settings/2.16.2/2.16.3?slim=true)
|
| [syrupy](https://redirect.github.com/syrupy-project/syrupy) |
`==7.0.0` → `==7.0.2` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/syrupy/7.0.2?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/syrupy/7.0.0/7.0.2?slim=true)
|
| [ty](https://redirect.github.com/astral-sh/ty)
([changelog](https://redirect.github.com/astral-sh/ty/blob/main/CHANGELOG.md))
| `==0.0.101` → `==0.0.104` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/ty/0.0.104?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/ty/0.0.101/0.0.104?slim=true)
|
| [types-pyyaml](https://redirect.github.com/python/typeshed)
([changelog](https://redirect.github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/PyYAML.md))
| `==6.0.12.20261111` → `==6.0.12.20261113` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/types-pyyaml/6.0.12.20261113?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/types-pyyaml/6.0.12.20261111/6.0.12.20261113?slim=true)
|

---

### Release Notes

<details>
<summary>ast-grep/ast-grep (ast-grep-cli)</summary>

###
[`v0.51.3`](https://redirect.github.com/ast-grep/ast-grep/blob/HEAD/CHANGELOG.md#0513)

[Compare
Source](https://redirect.github.com/ast-grep/ast-grep/compare/0.51.2...0.51.3)

- feat(cli): load built-in outline rules from project config
[`#2978`](https://redirect.github.com/ast-grep/ast-grep/pull/2978)
- fix(cli): replace npm binaries atomically in postinstall
[`#3083`](https://redirect.github.com/ast-grep/ast-grep/pull/3083)
- chore(deps): update rust crate inquire to v0.9.5
[`#3097`](https://redirect.github.com/ast-grep/ast-grep/pull/3097)
- fix(config): allow range rule with only one column on a single line
[`#3091`](https://redirect.github.com/ast-grep/ast-grep/pull/3091)
- Revert "chore(deps): update dependency node to v26
([#&#8203;3069](https://redirect.github.com/ast-grep/ast-grep/issues/3069))"
[`#3095`](https://redirect.github.com/ast-grep/ast-grep/pull/3095)
- chore(deps): update dependency python to 3.15
[`#2996`](https://redirect.github.com/ast-grep/ast-grep/pull/2996)
- chore(deps): update rust crate tree-sitter-scala to v0.26.13
[`#3086`](https://redirect.github.com/ast-grep/ast-grep/pull/3086)
- chore(deps): update dependency
[@&#8203;ast-grep/napi](https://redirect.github.com/ast-grep/napi) to
v0.51.2
[`#3089`](https://redirect.github.com/ast-grep/ast-grep/pull/3089)
- chore(deps): update rust crate libloading to v0.9.1
[`#3093`](https://redirect.github.com/ast-grep/ast-grep/pull/3093)
- ci(pyo3): build Python 3.15 wheels on Linux and Windows
[`#3094`](https://redirect.github.com/ast-grep/ast-grep/pull/3094)
- chore(deps): update rust crate napi to v3.16.2
[`#3087`](https://redirect.github.com/ast-grep/ast-grep/pull/3087)
- chore(deps): update rust crate napi-derive to v3.7.1
[`#3088`](https://redirect.github.com/ast-grep/ast-grep/pull/3088)
- chore(npm): require Node.js 20 or later
[`4fd48c5`](https://redirect.github.com/ast-grep/ast-grep/commit/4fd48c52c7eee7d80297079bb752394b0ee36f41)
- fix: bump pyo3 version
[`c7e005c`](https://redirect.github.com/ast-grep/ast-grep/commit/c7e005c685241c21fcd36d69ca38e037c9da7c0a)

</details>

<details>
<summary>Bachmann1234/diff-cover (diff-cover)</summary>

###
[`v11.0.2`](https://redirect.github.com/Bachmann1234/diff_cover/releases/tag/v11.0.2):
Version 11.0.2

[Compare
Source](https://redirect.github.com/Bachmann1234/diff-cover/compare/v11.0.1...v11.0.2)

#### What's Changed

- Fix LCOV parsing for function names containing commas by
[@&#8203;zombieli](https://redirect.github.com/zombieli) in
[Bachmann1234/diff_cover#655](https://redirect.github.com/Bachmann1234/diff_cover/pull/655)

#### New Contributors

- [@&#8203;zombieli](https://redirect.github.com/zombieli) made their
first contribution in
[Bachmann1234/diff_cover#655](https://redirect.github.com/Bachmann1234/diff_cover/pull/655)

**Full Changelog**:
<Bachmann1234/diff_cover@v11.0.1...v11.0.2>

</details>

<details>
<summary>fastapi/fastapi (fastapi)</summary>

###
[`v0.162.7`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.162.7)

[Compare
Source](https://redirect.github.com/fastapi/fastapi/compare/0.162.6...0.162.7)

> FastAPI includes an official skill that helps coding agents use new
features and recommended patterns for your installed version. Install it
with `uvx library-skills` in your project. See [Develop with
AI](https://fastapi.tiangolo.com/ai-development/).

##### Fixes

- 🐛 Fix async yield dependency cleanup on cancellation. PR
[#&#8203;16739](https://redirect.github.com/fastapi/fastapi/pull/16739)
by [@&#8203;tiangolo](https://redirect.github.com/tiangolo).

##### Internal

- 🔒️ Generate GH actions workflow lockfile and bump Zizmor. PR
[#&#8203;16736](https://redirect.github.com/fastapi/fastapi/pull/16736)
by [@&#8203;YuriiMotov](https://redirect.github.com/YuriiMotov).

###
[`v0.162.6`](https://redirect.github.com/fastapi/fastapi/releases/tag/0.162.6)

[Compare
Source](https://redirect.github.com/fastapi/fastapi/compare/0.162.5...0.162.6)

> FastAPI includes an official skill that helps coding agents use new
features and recommended patterns for your installed version. Install it
with `uvx library-skills` in your project. See [Develop with
AI](https://fastapi.tiangolo.com/ai-development/).

##### Breaking Changes

- 💥 Drop support for Python 3.10. PR
[#&#8203;16737](https://redirect.github.com/fastapi/fastapi/pull/16737)
by [@&#8203;tiangolo](https://redirect.github.com/tiangolo).

</details>

<details>
<summary>pydantic/httpx2 (httpcore2)</summary>

###
[`v2.16.2`](https://redirect.github.com/pydantic/httpx2/releases/tag/v2.16.2)

[Compare
Source](https://redirect.github.com/pydantic/httpx2/compare/v2.16.1...v2.16.2)

##### 🩹 Type aliases evaluate at runtime again

`httpx2` and `httpcore2` 2.16.2 are a patch release with one fix. You
will notice it if your code, or a library you depend on, uses the
aliases in `httpx2._types` inside a runtime typing construct. On 2.16.1,
`import mistralai.client` failed on Python 3.11 to 3.13.

```console
pip install --upgrade httpx2==2.16.2
```

- **`Optional[QueryParamTypes]` and `QueryParamTypes | None` work
again**
([#&#8203;1346](https://redirect.github.com/pydantic/httpx2/pull/1346)).
In 2.16.1 `URLTypes`, `QueryParamTypes`, `HeaderTypes`, `CookieTypes`,
`TimeoutTypes`, `ProxyTypes` and `AuthTypes` were strings.
`Optional[...]` raised `SyntaxError` for `QueryParamTypes` and
`HeaderTypes`, and `| None` raised `TypeError` for all seven. They are
`Union[...]` objects again, as in 2.16.0.

`httpcore2` has no changes. It is bumped to stay in lockstep with
`httpx2`.

**Full changelog:**
[v2.16.1...v2.16.2](https://redirect.github.com/pydantic/httpx2/compare/v2.16.1...v2.16.2)

###
[`v2.16.1`](https://redirect.github.com/pydantic/httpx2/releases/tag/v2.16.1)

[Compare
Source](https://redirect.github.com/pydantic/httpx2/compare/v2.16.0...v2.16.1)

##### 🚦 Concurrent HTTP/2 uploads no longer stall

`httpx2` and `httpcore2` 2.16.1 are a patch release. Every change is a
fix. You will notice it most if you run several HTTP/2 uploads over one
connection, where requests could hang until the read timeout.

```console
pip install --upgrade httpx2==2.16.1
```

- **Uploads sharing an HTTP/2 connection finish instead of waiting for
the read timeout**
([#&#8203;1163](https://redirect.github.com/pydantic/httpx2/pull/1163)).
Once the flow control window was exhausted, a waiting upload could miss
the `WINDOW_UPDATE` that another task had already read, then block on a
read the server had nothing to answer. `httpcore2` now rechecks the
window after acquiring the read lock.
- **A missing `Host` header raises `LocalProtocolError`**
([#&#8203;1319](https://redirect.github.com/pydantic/httpx2/pull/1319)).
An HTTP/2 request sent directly to an `httpcore2` connection without
`Host` raised `IndexError` before.

##### 🧭 Redirects, proxies and Digest auth

- **A redirect with an invalid `Location` returns the response when
redirects are not followed**
([#&#8203;1064](https://redirect.github.com/pydantic/httpx2/pull/1064)).
`httpx2` raised `RemoteProtocolError` and discarded the response. You
now get the response with its headers, and `response.next_request` is
`None`.
- **`*.example.com` in `NO_PROXY` matches subdomains**
([#&#8203;1277](https://redirect.github.com/pydantic/httpx2/pull/1277)).
The entry never matched before, so those requests still went through the
proxy. It now behaves like `.example.com`.
- **Digest challenges with mixed-case parameter names are accepted**
([#&#8203;1315](https://redirect.github.com/pydantic/httpx2/pull/1315)).
A challenge such as `Digest Realm="r", Nonce="n"` raised `ProtocolError`
before. Whitespace around `=` is allowed too.

##### 📦 Signed releases

- **The publish workflow generates PEP 740 attestations**
([#&#8203;1339](https://redirect.github.com/pydantic/httpx2/pull/1339)).
Every distribution is signed before `uv publish` uploads it. Releases
since the move to `uv publish` had no provenance on PyPI.

**Full changelog:**
[v2.16.0...v2.16.1](https://redirect.github.com/pydantic/httpx2/compare/v2.16.0...v2.16.1)

</details>

<details>
<summary>terryyin/lizard (lizard)</summary>

###
[`v1.26.1`](https://redirect.github.com/terryyin/lizard/blob/HEAD/CHANGELOG.md#1261)

[Compare
Source](https://redirect.github.com/terryyin/lizard/compare/1.26.0...1.26.1)

##### Bug Fixes

- C/C++, Java, C#, JavaScript, and TypeScript: count the `?` of a
ternary between comparisons (`a < b ? c > d : e`); it was read as part
of a type argument list, so the CCN was one too low (PR
[#&#8203;572](https://redirect.github.com/terryyin/lizard/issues/572))
- Python: count the lines of prefixed triple-quoted strings (`return
f"""..."""`) and of f-string literal chunks in NLOC instead of reading
them as comments, which could make NLOC negative; a variable named `f`,
`r` or `b` before a standalone docstring no longer makes it look
prefixed (PR
[#&#8203;568](https://redirect.github.com/terryyin/lizard/issues/568))
- JSX and TSX: `//` in element text (`<p>Visit https://example.com</p>`)
no longer swallows the closing tag and the functions after it (PR
[#&#8203;567](https://redirect.github.com/terryyin/lizard/issues/567))
- JSX and TSX: no empty text token between two adjacent child elements,
which crashed `-Eduplicate` with `IndexError` (PR
[#&#8203;571](https://redirect.github.com/terryyin/lizard/issues/571))
- Rust: the `||` of a closure without parameters is one token again (PR
[#&#8203;569](https://redirect.github.com/terryyin/lizard/issues/569))
- API: `FunctionInfo.cognitive_complexity` is present as `0` for
functions without cognitive complexity, matching the CLI (issue
[#&#8203;570](https://redirect.github.com/terryyin/lizard/issues/570))

</details>

<details>
<summary>pydantic/pydantic-settings (pydantic-settings)</summary>

###
[`v2.16.3`](https://redirect.github.com/pydantic/pydantic-settings/releases/tag/v2.16.3)

[Compare
Source](https://redirect.github.com/pydantic/pydantic-settings/compare/v2.16.2...v2.16.3)

#### Highlights

This patch release fixes a security issue in the default secrets source,
a regression from 2.14.2 that dropped nested secrets on Kubernetes, and
a `CliApp.serialize` round-trip bug with `CliUnknownArgs`.

##### Security

- **`SecretsSettingsSource` no longer follows symlinks that resolve
outside `secrets_dir`**
([#&#8203;1138](https://redirect.github.com/pydantic/pydantic-settings/pull/1138),
fixes
[#&#8203;1137](https://redirect.github.com/pydantic/pydantic-settings/issues/1137)).
A secret file that is a symbolic link to a file outside `secrets_dir`
was read into the matching field, so anyone who could place a link in
`secrets_dir` could make the application load any file it can read. This
is the plain-source counterpart of GHSA-4xgf-cpjx-pc3j, whose fix in
2.14.2 covered only `NestedSecretsSettingsSource`. Links that stay
inside `secrets_dir`, such as the Kubernetes secret volume layout
(`passwd` linking to `..data/passwd`), still work.

##### Behavior changes

- A secret file that resolves outside `secrets_dir` is now skipped with
a warning instead of being read
([#&#8203;1138](https://redirect.github.com/pydantic/pydantic-settings/pull/1138)).
If you deliberately point secret files at targets elsewhere on disk,
move or copy the targets into `secrets_dir`, or point `secrets_dir` at
the directory that holds them.
- `NestedSecretsSettingsSource` skips hidden entries (names starting
with `.`) again, as it did before 2.14.2, and stops with a
`SettingsError` after 10,000 entries
([#&#8203;1070](https://redirect.github.com/pydantic/pydantic-settings/pull/1070)).

##### Bug fixes

**Secrets**

- With `secrets_nested_subdir=True`, a directory reached through a
second symlink is loaded again
([#&#8203;1070](https://redirect.github.com/pydantic/pydantic-settings/pull/1070),
fixes
[#&#8203;1061](https://redirect.github.com/pydantic/pydantic-settings/issues/1061)).
Since 2.14.2, only the name that sorted first was walked, so the
standard Kubernetes secret volume layout (`db` linking to `..data/db`)
silently lost its nested secrets.
- A symlink loop inside `secrets_dir` is skipped instead of aborting the
load with `RuntimeError` on Python 3.11 and 3.12
([#&#8203;1070](https://redirect.github.com/pydantic/pydantic-settings/pull/1070),
[#&#8203;1138](https://redirect.github.com/pydantic/pydantic-settings/pull/1138)).

**CLI**

- `CliApp.serialize` keeps each level's `CliUnknownArgs` before that
level's subcommand token
([#&#8203;1050](https://redirect.github.com/pydantic/pydantic-settings/pull/1050),
fixes
[#&#8203;1048](https://redirect.github.com/pydantic/pydantic-settings/issues/1048)).
They were emitted after the last subcommand, so parsing the output again
moved a parent's unknown args onto the subcommand.

<details>
<summary><b>All changes</b></summary>

#### What's Changed
* Fix CliApp.serialize moving a parent unknown args into the subcommand
by
@&#8203;XXXXXQ-02[https://github.com/pydantic/pydantic-settings/pull/1050](https://redirect.github.com/pydantic/pydantic-settings/pull/1050)l/1050
* Load nested secrets reached through a second directory link by
@&#8203;digit[https://github.com/pydantic/pydantic-settings/pull/1070](https://redirect.github.com/pydantic/pydantic-settings/pull/1070)l/1070
* Prevent SecretsSettingsSource from following symlinks outside
secrets_dir by
@&#8203;twotnguy[https://github.com/pydantic/pydantic-settings/pull/1138](https://redirect.github.com/pydantic/pydantic-settings/pull/1138)l/1138

#### New Contributors
* @&#8203;XXXXXQ-0206 made their first
contributi[https://github.com/pydantic/pydantic-settings/pull/1050](https://redirect.github.com/pydantic/pydantic-settings/pull/1050)l/1050
* @&#8203;twotnguyen made their first
contributi[https://github.com/pydantic/pydantic-settings/pull/1138](https://redirect.github.com/pydantic/pydantic-settings/pull/1138)l/1138

**Full Changelog**:
<pydantic/pydantic-settings@v2.16.2...v2.16.3>

</details>

</details>

<details>
<summary>syrupy-project/syrupy (syrupy)</summary>

###
[`v7.0.2`](https://redirect.github.com/syrupy-project/syrupy/blob/HEAD/CHANGELOG.md#v702-2026-11-16)

[Compare
Source](https://redirect.github.com/syrupy-project/syrupy/compare/v7.0.1...v7.0.2)

###
[`v7.0.1`](https://redirect.github.com/syrupy-project/syrupy/blob/HEAD/CHANGELOG.md#v701-2026-11-14)

[Compare
Source](https://redirect.github.com/syrupy-project/syrupy/compare/v7.0.0...v7.0.1)

</details>

<details>
<summary>astral-sh/ty (ty)</summary>

###
[`v0.0.104`](https://redirect.github.com/astral-sh/ty/blob/HEAD/CHANGELOG.md#00104)

[Compare
Source](https://redirect.github.com/astral-sh/ty/compare/0.0.103...0.0.104)

Released on 2026-11-13.

##### Bug fixes

- Narrow class objects in equality and membership checks
([#&#8203;30393](https://redirect.github.com/astral-sh/ruff/pull/30393))
- Preserve literals outside a protocol when simplifying unions
([#&#8203;30398](https://redirect.github.com/astral-sh/ruff/pull/30398))
- Respect implicit `__hash__ = None` when a class defines `__eq__`
([#&#8203;30145](https://redirect.github.com/astral-sh/ruff/pull/30145))

##### LSP server

- Fix completion after an alias in a parenthesized import
([#&#8203;30394](https://redirect.github.com/astral-sh/ruff/pull/30394))
- Suppress completions while typing multiline import aliases
([#&#8203;30397](https://redirect.github.com/astral-sh/ruff/pull/30397))

##### Contributors

- [@&#8203;lerebear](https://redirect.github.com/lerebear)
- [@&#8203;carljm](https://redirect.github.com/carljm)

###
[`v0.0.103`](https://redirect.github.com/astral-sh/ty/blob/HEAD/CHANGELOG.md#00103)

[Compare
Source](https://redirect.github.com/astral-sh/ty/compare/0.0.102...0.0.103)

Released on 2026-11-13.

##### Bug fixes

- Avoid spurious syntax warnings when applying fixes
([#&#8203;30404](https://redirect.github.com/astral-sh/ruff/pull/30404))
- Fix a panic checking class decorators with inferred return types
([#&#8203;30399](https://redirect.github.com/astral-sh/ruff/pull/30399))
- Infer nested classes as read-only attributes
([#&#8203;29346](https://redirect.github.com/astral-sh/ruff/pull/29346))
- Infer value types for bare `Final` and `ClassVar`
([#&#8203;30293](https://redirect.github.com/astral-sh/ruff/pull/30293))
- Preserve excluded types when inferring type variable upper bounds
([#&#8203;30237](https://redirect.github.com/astral-sh/ruff/pull/30237))
- Preserve inherited value types on repeated bare ClassVar annotations
([#&#8203;30396](https://redirect.github.com/astral-sh/ruff/pull/30396))
- Respect return constraints when promoting literal arguments
([#&#8203;30153](https://redirect.github.com/astral-sh/ruff/pull/30153))

##### LSP server

- Resolve pytest fixtures registered through pytest_plugins
([#&#8203;29588](https://redirect.github.com/astral-sh/ruff/pull/29588))

##### Contributors

- [@&#8203;carljm](https://redirect.github.com/carljm)
- [@&#8203;abalakh](https://redirect.github.com/abalakh)
- [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood)

###
[`v0.0.102`](https://redirect.github.com/astral-sh/ty/blob/HEAD/CHANGELOG.md#00102)

[Compare
Source](https://redirect.github.com/astral-sh/ty/compare/0.0.101...0.0.102)

Released on 2026-11-12.

##### Breaking changes

- Split `invalid-return-type` into 3 focussed rules; rename `empty-body`
and `unsound-return`
([#&#8203;29947](https://redirect.github.com/astral-sh/ruff/pull/29947))

##### Bug fixes

- Avoid runaway inference for nested calls with union parameters
([#&#8203;30220](https://redirect.github.com/astral-sh/ruff/pull/30220))
- Fix a panic when simplifying recursive wide unions
([#&#8203;30141](https://redirect.github.com/astral-sh/ruff/pull/30141))
- Fix a stack overflow when inferring calls that return recursive
aliases
([#&#8203;30149](https://redirect.github.com/astral-sh/ruff/pull/30149))
- Keep callable-local type variables out of enclosing constraints
([#&#8203;30241](https://redirect.github.com/astral-sh/ruff/pull/30241))
- Preserve Self for unary operators on bounded type variables
([#&#8203;30242](https://redirect.github.com/astral-sh/ruff/pull/30242))
- Preserve descriptor write contracts in overrides and protocols
([#&#8203;30252](https://redirect.github.com/astral-sh/ruff/pull/30252))

##### Diagnostic improvements

- Rename `call-abstract-method` to `abstract-method-call`
([#&#8203;30287](https://redirect.github.com/astral-sh/ruff/pull/30287))
- Rename `call-non-callable` to `not-callable`
([#&#8203;30284](https://redirect.github.com/astral-sh/ruff/pull/30284))
- Rename `call-top-callable` to
`call-to-function-with-unknown-signature`
([#&#8203;30285](https://redirect.github.com/astral-sh/ruff/pull/30285))
- Rename `dataclass-field-order` to `invalid-dataclass-field-order`
([#&#8203;30289](https://redirect.github.com/astral-sh/ruff/pull/30289))
- Rename `implicit-concatenated-string-type-annotation` to
`implicit-string-concatenation-in-annotation`; improve documentation
([#&#8203;30286](https://redirect.github.com/astral-sh/ruff/pull/30286))
- Warn by default for a single overload
([#&#8203;30214](https://redirect.github.com/astral-sh/ruff/pull/30214))

##### Memory usage improvements

- Check unused stub parameters in the surrounding inference
([#&#8203;30251](https://redirect.github.com/astral-sh/ruff/pull/30251))

##### Other changes

- Cache alias-preserving binary unions
([#&#8203;30094](https://redirect.github.com/astral-sh/ruff/pull/30094))
- Share use-def layouts for stub function parameters
([#&#8203;30248](https://redirect.github.com/astral-sh/ruff/pull/30248))
- Skip unused parameter bindings in stub bodies
([#&#8203;30330](https://redirect.github.com/astral-sh/ruff/pull/30330))

##### Contributors

- [@&#8203;MichaReiser](https://redirect.github.com/MichaReiser)
- [@&#8203;charliermarsh](https://redirect.github.com/charliermarsh)
- [@&#8203;carljm](https://redirect.github.com/carljm)
- [@&#8203;AlexWaygood](https://redirect.github.com/AlexWaygood)

</details>

---

### Configuration

📅 **Schedule**: (in timezone UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config
help](https://redirect.github.com/renovatebot/renovate/discussions) if
that's undesired.

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4yMzkuMSIsInVwZGF0ZWRJblZlciI6IjQ0LjIzOS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJzY29wZS9kZXBzIiwidHlwZS9jaG9yZSJdfQ==-->

---------

Co-authored-by: dan-petty-renovate[bot] <357470286+dan-petty-renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Petty <contact@danielpetty.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(roadmap): scratch files in the checkout fail the step's own ruff and mypy run, and nothing removes them

1 participant