fix(suggest-validator): ECMAScript flavor, named groups, and error-state rules - #25
fix(suggest-validator): ECMAScript flavor, named groups, and error-state rules#25iteuscher wants to merge 1 commit into
Conversation
…y regex syntax requirements for ECMAScript, emphasize the importance of naming capture groups, and introduce error state handling in validation rules. Update examples to reflect these changes and improve overall clarity of the validation process.
|
And now a word from our sponsor, Claude.... Fix regex flavor, add named capture groups and error-state guidance to
|
| Scenario | Unpinned | Pinned to 1.0 |
|---|---|---|
| v1 success / error | works | works |
| v2, exit_code unchanged | works | 0 matches → silent pass |
| v2, exit_code renamed | 0 matches → silent pass | 0 matches → silent pass |
- Flavor incompatibility confirmed in both directions.
- Phase 4's Node snippet was executed as written.
Notes
Docs only — no schema, framework, or fetcher changes. The skill remains read-only by design.
Related: the metadata.error field currently reports a trailing INFO log line rather than the failure reason on runs where a fetcher catches its own exception. That's tracked separately and does not affect this change — the error rule here keys off exit_code, which is correct today.
Summary
(?<name>…), verify matches in Node withgsflags).schema_versionis a silent-pass hazard.exit_code, so failed collections are not mistaken for compliance Failures.Test plan
.claude/skills/suggest-validator/SKILL.mdPhase 3 / 3b / 4 for clarityexit_codeon a failed runMade with Cursor