Repository navigation
fix(cymbal): resolve sourcemap references as urls, not paths - #99987
Conversation
|
😎 Merged successfully - details. |
🤖 CI report✅ Trunk lane — non-backend lane (
|
| File | Comment lines | Added lines |
|---|---|---|
rust/cymbal/src/core/symbolication/symbol_store/sourcemap.rs |
27 | 189 |
This check does not block merging. It updates on every push and clears when the share drops.
|
Reviews (1): Last reviewed commit: "fix(cymbal): resolve sourcemap reference..." | Re-trigger Greptile |
There was a problem hiding this comment.
Not approved — escalated to a human reviewer.
Re-add the stamphog label to request another review once you have addressed this.
The diff itself is a well-tested, contained fix by an owning-team author, but the PR description discloses an unusual provenance story — an agent recreated another PR's patch, attributed the commit to a different named person than the actual submitter, and had it signed with "the maintainer's SSH key" to get a verified badge. That kind of commit authorship/signing-key custody claim needs a human to verify before merge; it's not something a diff read can confirm or rule out.
- Author wrote 0% of the modified lines and has 7 merged PRs in these paths (familiarity MODERATE).
- PR description states the commit author was preserved as a third party ("Chad Wells") distinct from the actual PR submitter (hpouillot), and that it was signed with "the maintainer's SSH key" to obtain a verified-signature badge — this needs human confirmation that key custody and authorship attribution are legitimate before merging.
- The code itself touches sourcemap URL resolution (a fetch path for external URLs); host validation via ensure_fetchable_host is preserved and applied to the final resolved URL, and the change is well covered by new tests, so this is not itself a blocker.
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 258L, 1F substantive — within ceiling |
| tier | ✓ | T1-agent / T1c-medium (258L, 1F, single-area, fix) |
| stamphog 2.0.0b4 | .stamphog/policy.yml @ f0fdfce · reviewed head f0fdfce |
There was a problem hiding this comment.
Approved.
This touches the sourcemap-fetching path used during error-tracking symbolication, but the resolved URL still passes through the unchanged host-validation check before any fetch, so the fix doesn't weaken the existing SSRF protection; author is on the owning team-error-tracking, satisfying the independent-assurance bar for this risky-adjacent surface, and the change is well covered by new tests matching the described bug scenarios.
- Author wrote 0% of the modified lines and has 7 merged PRs in these paths (familiarity MODERATE).
- 👍 on the PR from greptile-apps[bot].
Gate mechanics and policy version
| Gate | Result | |
|---|---|---|
| prerequisites | ✓ | all clear |
| deny-list | ✓ | no deny categories matched |
| size | ✓ | 258L, 1F substantive — within ceiling |
| tier | ✓ | T1-agent / T1c-medium (258L, 1F, single-area, fix) |
| stamphog 2.0.0b4 | .stamphog/policy.yml @ f0fdfce · reviewed head f0fdfce |
Problem
JavaScript stack frames stay minified when
sourceMappingURLreferences contain query strings or parent-relative paths.Path-only resolution percent-encodes query delimiters, preserves stale base queries, and resolves
../from the wrong directory.This PR replaces #90230 because repository policy requires signed commits.
Changes
Url::joinhandles absolute, protocol-relative, root-relative, and directory-relative URL references.How did you test this code?
cargo fmt -p cymbal -- --check.👉 Stay up-to-date with PostHog coding conventions for a smoother review.
Automatic notifications
Docs update
None.
🤖 Agent context
Autonomy: Human-driven (agent-assisted)
Human input selected #90230 as the source and requested a signed replacement PR.
The agent reapplied the existing public patch onto current
master, ran local checks, pushed the branch, and opened this PR.Skills invoked:
/error-tracking,/writing-tests,/writing-code-comments,/pr,/writing-pr-descriptions,/reviewing-with-coderabbit, and/running-ci-preflight.CodeRabbit was installed but signed out, so the PR opened without a local CodeRabbit pass.