Skip to content

2026.08.22 - DCP Reliability Troubleshooting - Phase 3: Native Glob Semantics - #58

Merged
lanhhoang merged 5 commits into
masterfrom
20260822-dcp-reliability-troubleshooting-phase-03-native-glob-semantics
Aug 23, 2026
Merged

2026.08.22 - DCP Reliability Troubleshooting - Phase 3: Native Glob Semantics#58
lanhhoang merged 5 commits into
masterfrom
20260822-dcp-reliability-troubleshooting-phase-03-native-glob-semantics

Conversation

@lanhhoang

Copy link
Copy Markdown
Contributor
  • Replace the hand-written glob compiler with node:path.posix.matchesGlob, so every protected tool and file pattern supports character classes like [abc] and [0-9] alongside *, **, and ?, while preserving the existing / separator contract (src/strategies/protected-patterns.ts).
  • Route compression-summary preservation through the shared matcher via isToolNameProtected() (src/compress/protected-content.ts).
  • Route dcp:sweep through the shared tool and file predicates, so protectedFilePatterns keeps its documented "never pruned" contract during sweep (src/strategies/runner.ts).
  • Lock down the native POSIX contract with regression coverage for character classes, malformed patterns, regex punctuation, POSIX separator behavior, compression protected-tool patterns, and sweepAll protected-tool and protected-file patterns (tests/protected-patterns.test.ts, tests/protected-content.test.ts, tests/strategy-runner.test.ts).
  • Update the schema and README to state Node POSIX glob semantics for protected tool and file patterns (src/config-schema.ts, README.md, dcp.schema.json).

@lanhhoang
lanhhoang merged commit f659cce into master Aug 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant