# Filing the upstream issue

Two files hold the text, and **neither contains anything but the report**: no
security framing, no mention of access control or tenancy, no names, no contact
details. The threat model stays in the paper, where it is stated; the tracker gets
the API defect on its own terms.

- `UPSTREAM-ISSUE-TITLE.txt` is the title, one line, paste as is.
- `UPSTREAM-ISSUE-BODY.md` is the body, paste as is.

Where: https://github.com/langchain-ai/langchain/issues/new/choose, choosing the
bug template, label `bug`. That repository is correct for both affected packages:
`langchain-chroma` lives at `libs/partners/chroma` and `langchain-community` at
`libs/community`. The standalone `langchain-ai/langchain-chroma` repository does
not exist.

**Nikolaos presses send.** When the issue number exists, section 01 of the paper
and its footer should carry it, replacing the sentence that currently says the
issue has not been filed.

## What was checked before this was written

- Both affected versions are the latest on PyPI: `langchain-chroma` 1.2.0 and
  `langchain-community` 0.4.2.
- The defect is present on `langchain-ai/langchain` master, not only in the
  releases, read from the raw file.
- The docstring line quoted is real and appears on both `similarity_search`,
  which forwards the arguments, and `max_marginal_relevance_search`, which does
  not.
- No existing issue covers it. Four searches of the GitHub issue API, including
  the closest matches, returned nothing about Chroma and kwargs.
- PR #13260 is real and merged, and is cited as **precedent** rather than as
  proof of intent: it concerns a declared `filter` parameter not reaching the
  inner call in PGVector, which is a dropped declared argument rather than
  dropped `**kwargs`.
- The reproduction was run verbatim and produced exactly the output shown in the
  body: `0` rows under the documented name, `2` rows under the extra keyword
  argument, a `TypeError` on `similarity_search`, and `2` rows through the
  retriever.

One honest expectation to set: a maintainer may reasonably reply that `where=` is
simply the wrong parameter and callers should use `filter=`. That does not dissolve
the report, which is deliberately narrow: **a documented `**kwargs` is accepted and
silently discarded on one method while its siblings forward it.** The body asks for
either behaviour, forwarding or rejecting, and does not insist on which.
