Skip to content

fix: centralize regex sources and harden scan flows#52

Merged
FanaticPythoner merged 2 commits into
masterfrom
fix/issue-51-centralize-regex-sources-and-harden-scan-ripgrep-and-command-error-flows
May 31, 2026
Merged

fix: centralize regex sources and harden scan flows#52
FanaticPythoner merged 2 commits into
masterfrom
fix/issue-51-centralize-regex-sources-and-harden-scan-ripgrep-and-command-error-flows

Conversation

@FanaticPythoner

Copy link
Copy Markdown
Owner

Regex construction routes runtime, tests, workflow checks, release
checks, perf harnesses, and evidence tooling through a typed registry
while preserving scan parity.

Regex registry:

  • add shared fragments, named patterns, tag placeholders, default regex
    constants, builder helpers, and typed registry errors
  • replace duplicated literals in detection, utils, attributes,
    highlights, icons, tree, stream scanning, config, webpack, perf,
    release, workflow, parity, and test code
  • add an equivalence harness that covers 81/81 baseline sources,
    73/73 behavior cases, and zero non-registry regex literals

Scan and command flow:

  • extend candidate workspace scans to JavaScript-compatible custom
    $TAGS regexes with balanced structure and zero-width tails
  • keep PCRE2-only backreference regexes on raw ripgrep normalization
  • wrap registered commands in a shared async boundary and return
    persistence, reveal, export, and migration work
  • roll back workspace-state writes before refresh work when
    multi-entry writes fail

Ripgrep and evidence:

  • return RipgrepError for option, executable, spawn, JSON, cleanup,
    and cancellation failures
  • prevent stale search cleanup from clearing newer active searches
  • add registry, scan parity, ripgrep, workflow, release, and perf
    coverage plus accuracy and candidate-scan artifacts
  • ignore generated accuracy JSON and local settings exports

Fixes #51

Regex construction routes runtime, tests, workflow checks, release
checks, perf harnesses, and evidence tooling through a typed registry
while preserving scan parity.

Regex registry:
- add shared fragments, named patterns, tag placeholders, default regex
  constants, builder helpers, and typed registry errors
- replace duplicated literals in detection, utils, attributes,
  highlights, icons, tree, stream scanning, config, webpack, perf,
  release, workflow, parity, and test code
- add an equivalence harness that covers 81/81 baseline sources,
  73/73 behavior cases, and zero non-registry regex literals

Scan and command flow:
- extend candidate workspace scans to JavaScript-compatible custom
  $TAGS regexes with balanced structure and zero-width tails
- keep PCRE2-only backreference regexes on raw ripgrep normalization
- wrap registered commands in a shared async boundary and return
  persistence, reveal, export, and migration work
- roll back workspace-state writes before refresh work when
  multi-entry writes fail

Ripgrep and evidence:
- return RipgrepError for option, executable, spawn, JSON, cleanup,
  and cancellation failures
- prevent stale search cleanup from clearing newer active searches
- add registry, scan parity, ripgrep, workflow, release, and perf
  coverage plus accuracy and candidate-scan artifacts
- ignore generated accuracy JSON and local settings exports

Fixes #51
Branch staging applies staged and unstaged source patches separately, retains
source-base snapshots, and merges fallback snapshot content against updated
target files.

Regex evidence resolves a CI-safe baseline, registers CodeQL workflow assertion
patterns, and keeps busy-command icon assertions aligned with static product
icons.
@FanaticPythoner FanaticPythoner self-assigned this May 30, 2026
@FanaticPythoner FanaticPythoner added the enhancement New feature or request label May 30, 2026
@FanaticPythoner FanaticPythoner merged commit b624123 into master May 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Centralize regex sources and harden scan, ripgrep, and command error flows

1 participant