Skip to content

build(deps): bump picomatch from 4.0.3 to 4.0.4 in the npm_and_yarn group across 1 directory#1

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/npm_and_yarn-3f9ee708be
Open

build(deps): bump picomatch from 4.0.3 to 4.0.4 in the npm_and_yarn group across 1 directory#1
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/npm_and_yarn-3f9ee708be

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot Bot commented on behalf of github Mar 26, 2026

Bumps the npm_and_yarn group with 1 update in the / directory: picomatch.

Updates picomatch from 4.0.3 to 4.0.4

Release notes

Sourced from picomatch's releases.

4.0.4

This is a security release fixing several security relevant issues.

What's Changed

Full Changelog: micromatch/picomatch@4.0.3...4.0.4

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps the npm_and_yarn group with 1 update in the / directory: [picomatch](https://github.com/micromatch/picomatch).


Updates `picomatch` from 4.0.3 to 4.0.4
- [Release notes](https://github.com/micromatch/picomatch/releases)
- [Changelog](https://github.com/micromatch/picomatch/blob/master/CHANGELOG.md)
- [Commits](micromatch/picomatch@4.0.3...4.0.4)

---
updated-dependencies:
- dependency-name: picomatch
  dependency-version: 4.0.4
  dependency-type: indirect
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Mar 26, 2026
cjangrist added a commit that referenced this pull request May 2, 2026
…ed sentinel detection

Two MEDIUM-consensus items from the round 6 hh synthesis. Both touch
small isolated functions; no behavioral risk to the happy path.

## (1) close_unbalanced_fence: count only line-start fences

Pre-fix: regex `/```/g` counts ALL triple-backticks anywhere — including
literal ``` inside prose (e.g., "use the ``` syntax for code blocks") and
inside fenced code blocks (e.g., a markdown tutorial that quotes fence
syntax in its example). A correctly-balanced snippet with literal ``` in
content gets an odd count → spurious closing fence appended → broken
markdown for the user.

Fix: change regex to `/^[ ]{0,3}```/gm` per CommonMark spec — only count
fences at start of line with up to 3 spaces of indent (the actual
markdown fence definition).

Verified with 8 unit cases:
  - line-start fence → 2 (counted)
  - 2-space indent → 2 (counted)
  - 4-space indent (too far per CommonMark) → 0 (correctly ignored)
  - inline literal "use the ``` syntax" → 0 (correctly ignored)
  - tutorial nesting (outer fence wrapping ```bash example) → 4
  - unbalanced from truncation → 1
  - no fences → 0
  - CRLF line endings → 2

## (2) detect_grounded_sentinel: bounded substring fallback

Pre-fix: R1H1 already handles wrap chars + trailing punct (e.g.,
"**[no usable content]**" or "[no usable content]."). But if the model
emits the sentinel inside a short prose framing — "This page is
[no usable content]." — exact-match still fails and the literal
sentinel string + framing leaks to users.

Fix: after exact-match, fall back to a length-bounded substring match.
Cap at 200 chars so a short prose-framed sentinel matches but a long
article rhetorically mentioning the bracketed phrase does not.

Verified with 10 unit cases:
  R1H1 cases (must still pass):
  - "[no usable content]" → matches (exact)
  - "[no usable content]." → matches (R1H1)
  - "**[no usable content]**" → matches (R1H1)

  R6 prose-framed cases (newly fixed):
  - "This page is [no usable content]." → matches
  - "Body content: [navigation only]" → matches
  - "Found: [page not found]" → matches
  - "Result: [login required]." → matches

  Counterexamples (must NOT match):
  - 300+ char article mentioning "[no usable content]" rhetorically
    → undefined (above 200-char cap)
  - "legit prose without sentinel" → undefined
  - "the page is no usable content" (no brackets) → undefined

Production smoke (fresh "markdown fenced code block syntax tutorial
backticks bash python" — query specifically loaded with literal ```
references in tutorial-style results): 16/16 grounded (100%), 25.3s
wall, 0 retries, 0 timeouts.

Refs:
  tmp/2026-05-02-10-39-01_*/synthesis_round6.md (R6 mediums #1 + #2)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants