Repository navigation
ref(nav3): [Part 1] Gather nav data keys in one package and simplify ArgumentSanitizer - #6702
Open
0xadam-brown wants to merge 1 commit into
Open
0xadam-brown wants to merge 1 commit into
0xadam-brown wants to merge 1 commit into
Conversation
This was referenced Nov 20, 2026
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, public contract, reach. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
📲 Install BuildsAndroid
|
This was referenced Nov 20, 2026
0xadam-brown
marked this pull request as ready for review
November 20, 2026 15:19
0xadam-brown
requested review from
markushi and
runningcode
and removed request for
a team
November 20, 2026 15:19
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want fixes drafted automatically? Bugbot Autofix can create code changes for findings. A team admin can enable Autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit d03d53a. Configure here.
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-6
branch
from
November 24, 2026 10:21
fcdfd79 to
c5cc387
Compare
0xadam-brown
changed the base branch from
main
to
feat/nav3-serial-name-mappers-base
November 24, 2026 10:22
5 of 9 tasks
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-6
branch
from
November 25, 2026 15:30
c5cc387 to
19c6402
Compare
0xadam-brown
changed the base branch from
feat/nav3-serial-name-mappers-base
to
feat/nav3-serial-name-stack-base
November 25, 2026 15:33
0xadam-brown
marked this pull request as draft
November 25, 2026 15:33
This was referenced Nov 25, 2026
…gumentSanitizer The keys and values the Sentry UI shows (context, breadcrumb, and transaction keys, the /unknown name, and the argument drop reasons and limits) now live in one internal contract package, which the lifecycle package may import. A test pins each displayed string. ArgumentSanitizer recurses directly instead of through visit/exit helpers, checks a CharSequence's length before copying it, and has its own test suite.
0xadam-brown
force-pushed
the
feat/nav3-serial-name-mappers-6
branch
from
November 27, 2026 15:16
19c6402 to
328049c
Compare
4 of 9 tasks
0xadam-brown
marked this pull request as ready for review
November 27, 2026 17:23
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

PR Stack (Nav3 SerialName Mapper)
This stack replaces the
SerialNamehalf of #6696.SerialNameAndPropertieswill follow in its own stack.📜 Description
Groundwork for the rest of the stack. No behavior change.
One home for what the Sentry UI shows
The Nav3 integration writes the captured back stack into a
Navigationcontext,from/tofields into breadcrumbs, andargumentsinto transaction data. Those keys, the/unknownname, and the argument drop reasons are what users see and search in Sentry, so changing one is a user-facing change.They used to be private constants spread over the backstack and lifecycle packages. This PR moves them into one internal
contractpackage, and adds a test that pins each displayed string. Part 2 addsunknown_entry_reasonto the same place.The lifecycle package may import only this package from the rest of the module.
PackageBoundariesTestenforces that, and also that the contract package imports nothing else from the module.A simpler argument sanitizer
A custom mapper may return arguments with each entry.
ArgumentSanitizerbounds them before they're recorded:Arguments that break a rule are dropped and replaced by a
dropped_by_sentryreason.The rules are unchanged. The code now recurses directly instead of going through visit/enter/exit helpers, and checks a
CharSequence's length before copying it. The sanitizer's tests now live together inArgumentSanitizerTest.💡 Motivation and Context
An earlier version of this PR added an
ArgumentSource/ArgumentSinkpipeline, so that the properties mapper could feed its encoder's output through the same limits.SerialNamerecords no properties, so nothing in this stack needs it. It can come back with theSerialNameAndPropertiesstack, next to the encoder that uses it.The contract package gives Part 2 and Part 3 one place to add the values they record. It also lets the mapper's kotlinx package avoid importing its parent package.
addresses: JAVA-787 (link)
💚 How did you test it?
NavDataContractTestpins every displayed key and valueArgumentSanitizerTestcovers each limit, drop reason, and supported value type📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
Continue with Part 2: Record why back stack entries are /unknown.
#skip-changelog
🤖 Generated with Claude Code