Skip to content

AI Fix for Issue #168: AI Fix for Issue #154: feat: Make issue trigger label configurable - #175

Closed
propr-dev[bot] wants to merge 1 commit into
mainfrom
ai-fix/168-ai-fix-for-issue-154-feat-20251027-1407-claude-sonnet-4-5-20250929-y43
Closed

propr-dev[bot] wants to merge 1 commit into
mainfrom
ai-fix/168-ai-fix-for-issue-154-feat-20251027-1407-claude-sonnet-4-5-20250929-y43

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Oct 27, 2025

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #168

Model Used: claude-sonnet-4-5-20250929
Status: ⚠️ Analysis Completed
Branch: ai-fix/168-ai-fix-for-issue-154-feat-20251027-1407-claude-sonnet-4-5-20250929-y43
Commits: ✅ Changes committed (5eab52c)


🤖 AI Processing Failed

Execution Details:

📁 Detailed Logs:
Execution logs generated:

  • Conversation: 16 messages
  • Session: 3e8161ec-eb25-4a9a-b37d-af6bfb1051a5
  • Raw Output: 77,613 characters

Log files stored at:

  • conversation: /tmp/claude-logs/issue-168-2025-10-27T14-08-43-966Z-conversation.json
  • output: /tmp/claude-logs/issue-168-2025-10-27T14-08-43-966Z-output.txt
💬 Latest Conversation Messages
ASSISTANT: [content unavailable]


Powered by Claude Code v1.0.0


This PR was created automatically by Claude Code after processing issue #168.

… trigger la

Implemented by Claude Code using claude-sonnet-4-5-20250929 model.

Implementation attempted - see PR comments for details.
@propr-dev propr-dev Bot added the gitfix label Oct 27, 2025
@integry integry closed this Oct 27, 2025
@integry
integry deleted the ai-fix/168-ai-fix-for-issue-154-feat-20251027-1407-claude-sonnet-4-5-20250929-y43 branch June 16, 2026 10:53
propr-dev Bot pushed a commit that referenced this pull request Nov 17, 2026
…: a new picomatch advisory, GHSA-fc5q-39xc-vjpf, was published with no fixed release. Locally, both audit gates the job runs (`npm run audit:runtime` and `npm run desktop:audit:packaging`) now pass, and so do the related test suites. CI hasn't run on the change yet.

I fixed the failing check. No code on this branch caused it: a new picomatch advisory, GHSA-fc5q-39xc-vjpf, was published with no fixed release. Locally, both audit gates the job runs (`npm run audit:runtime` and `npm run desktop:audit:packaging`) now pass, and so do the related test suites. CI hasn't run on the change yet.

**Cause.** The advisory covers every `picomatch` up to 4.0.7, which is the latest release. Patterns like `+(*)` or `+(*a)` make picomatch build a regex that takes exponentially long to fail. I reproduced it: about 35 seconds on a 29-character string, on both 2.3.2 and 4.0.7. `main` has the same problem, so other open branches will fail the same way. Both copies in our tree are affected: 4.0.7 (used by `vite`, `vitest`, `tinyglobby`) and 2.3.2 (used by `micromatch`, `anymatch` and `readdirp`, which `fast-glob`, Repomix and `chokidar` use).

**Fix.** I followed the same approach the repo already uses for `braces`: I didn't add an audit exception. Instead both picomatch copies now install from patched versions stored in the repo:
- **The patch:** a small check in `lib/parse.js` treats any `+(…)`/`*(…)` pattern containing a bare `*` or `+` as plain text, using picomatch's existing handling for patterns it already considers risky. All the attack patterns now finish in under 2 ms.
- **`vendor/picomatch`:** 4.0.7 plus the patch, used by everything that needs picomatch 4.
- **`vendor/picomatch-v2`:** 2.3.2 plus the same patch, used by `anymatch`, `micromatch` and `readdirp` (overridden in `package.json`). I kept these on the 2.x code because the 4.x line changed path handling that `micromatch` and `fast-glob` rely on.
- **Version numbers:** both versions must sort above 4.0.7 or the audit still flags them, so the 2.x one is named `4.0.8-v2.3.2-extglobguard.1`.
- **Lockfile:** npm 10 and npm 11 both kept collapsing the 2.x consumers onto the 4.x copy. I wrote those three lockfile entries by hand. They stay unchanged through `npm install` and lockfile-only installs on both npm versions, and a clean `npm ci` installs the right copy for each package.

Other changes:
- **Signed-RPM acceptance:** its allowlist and Dockerfile now include the two new tarballs.
- **New test:** `test/vendoredPicomatch.test.mjs` checks that the source, tarball, lockfile and installed copies match, and that normal matching still works.
- **Docs and notices:** README provenance notes in each vendored folder, a section in `docs/dependency-audit-exceptions.md`, a CHANGELOG Security entry, and a regenerated `THIRD_PARTY_LICENSES.md` (new picomatch row, and the date moves to today).

**Behaviour change and remaining risk.** I ran picomatch's own test suite against both patched copies. Four assertions now fail, and each one checks that a vulnerable pattern (`+(*)c`, `*(a*|b)`, `*/*(W*, *)*`) still matches. Those patterns now match only their literal text, and no glob in this repo uses one. Nested repeats like `+(a*(a))` are still slow. I left them alone because picomatch's own tests require the same shape (`*(f*(o))`) to keep working, and upstream tracks that case separately (issue #175).

Once picomatch publishes fixed releases, the vendored copies can be removed; the vendored READMEs list the steps.

PR: #3630
Comment by: @propr-dev[bot] (ID: 6955352684)
Model: Claude Opus 5.5
motherskitchenblr2 pushed a commit to motherskitchenblr2/propr that referenced this pull request Nov 23, 2026
…: a new picomatch advisory, GHSA-fc5q-39xc-vjpf, was published with no fixed release. Locally, both audit gates the job runs (`npm run audit:runtime` and `npm run desktop:audit:packaging`) now pass, and so do the related test suites. CI hasn't run on the change yet.

I fixed the failing check. No code on this branch caused it: a new picomatch advisory, GHSA-fc5q-39xc-vjpf, was published with no fixed release. Locally, both audit gates the job runs (`npm run audit:runtime` and `npm run desktop:audit:packaging`) now pass, and so do the related test suites. CI hasn't run on the change yet.

**Cause.** The advisory covers every `picomatch` up to 4.0.7, which is the latest release. Patterns like `+(*)` or `+(*a)` make picomatch build a regex that takes exponentially long to fail. I reproduced it: about 35 seconds on a 29-character string, on both 2.3.2 and 4.0.7. `main` has the same problem, so other open branches will fail the same way. Both copies in our tree are affected: 4.0.7 (used by `vite`, `vitest`, `tinyglobby`) and 2.3.2 (used by `micromatch`, `anymatch` and `readdirp`, which `fast-glob`, Repomix and `chokidar` use).

**Fix.** I followed the same approach the repo already uses for `braces`: I didn't add an audit exception. Instead both picomatch copies now install from patched versions stored in the repo:
- **The patch:** a small check in `lib/parse.js` treats any `+(…)`/`*(…)` pattern containing a bare `*` or `+` as plain text, using picomatch's existing handling for patterns it already considers risky. All the attack patterns now finish in under 2 ms.
- **`vendor/picomatch`:** 4.0.7 plus the patch, used by everything that needs picomatch 4.
- **`vendor/picomatch-v2`:** 2.3.2 plus the same patch, used by `anymatch`, `micromatch` and `readdirp` (overridden in `package.json`). I kept these on the 2.x code because the 4.x line changed path handling that `micromatch` and `fast-glob` rely on.
- **Version numbers:** both versions must sort above 4.0.7 or the audit still flags them, so the 2.x one is named `4.0.8-v2.3.2-extglobguard.1`.
- **Lockfile:** npm 10 and npm 11 both kept collapsing the 2.x consumers onto the 4.x copy. I wrote those three lockfile entries by hand. They stay unchanged through `npm install` and lockfile-only installs on both npm versions, and a clean `npm ci` installs the right copy for each package.

Other changes:
- **Signed-RPM acceptance:** its allowlist and Dockerfile now include the two new tarballs.
- **New test:** `test/vendoredPicomatch.test.mjs` checks that the source, tarball, lockfile and installed copies match, and that normal matching still works.
- **Docs and notices:** README provenance notes in each vendored folder, a section in `docs/dependency-audit-exceptions.md`, a CHANGELOG Security entry, and a regenerated `THIRD_PARTY_LICENSES.md` (new picomatch row, and the date moves to today).

**Behaviour change and remaining risk.** I ran picomatch's own test suite against both patched copies. Four assertions now fail, and each one checks that a vulnerable pattern (`+(*)c`, `*(a*|b)`, `*/*(W*, *)*`) still matches. Those patterns now match only their literal text, and no glob in this repo uses one. Nested repeats like `+(a*(a))` are still slow. I left them alone because picomatch's own tests require the same shape (`*(f*(o))`) to keep working, and upstream tracks that case separately (issue integry#175).

Once picomatch publishes fixed releases, the vendored copies can be removed; the vendored READMEs list the steps.

PR: integry#3630
Comment by: @propr-dev[bot] (ID: 6955352684)
Model: Claude Opus 5.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants