singularity-forge/packages/native/src/__tests__
TÂCHES 60885610ac feat(gsd): unified rule registry, event journal, journal query tool, and tool naming convention (#1928)
Unify dispatch rules and hooks into a flat rule registry, add structured event journal with causal tracing, expose journal query as an LLM tool, and adopt gsd_concept_action tool naming.

- RuleRegistry class absorbs dispatch rules + hooks into UnifiedRule objects with common when/where/then shape
- post-unit-hooks.ts refactored from 524 lines → 90-line thin facade delegating to the registry
- Event journal emits structured JSONL events with per-iteration flowId grouping and causedBy chains
- gsd_journal_query LLM-callable tool for AI self-debugging of autonomous runs
- 4 DB tools renamed to gsd_concept_action pattern with backward-compatible aliases
- 164 new tests, zero regressions

Closes #1763, closes #1764, closes #1766

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 18:47:41 -06:00
..
clipboard.test.mjs feat: add native clipboard module with arboard backend (#228) 2026-03-13 12:48:27 -06:00
diff.test.mjs feat: add native Rust diff engine for edit tool 2026-03-13 14:11:40 -06:00
fd.test.mjs perf: optimize discovery and interactive hot paths 2026-03-14 16:03:44 -05:00
glob.test.mjs feat: add native glob and fs_cache modules with gitignore-aware discovery (#226) 2026-03-13 12:45:56 -06:00
grep.test.mjs perf: optimize discovery and interactive hot paths 2026-03-14 16:03:44 -05:00
highlight.test.mjs fix: repair native module test assertions 2026-03-13 13:06:47 -06:00
html.test.mjs feat: add html-to-markdown native module 2026-03-13 12:40:42 -06:00
image.test.mjs feat: add native image module — decode, encode, and resize via Rust image crate 2026-03-13 12:51:49 -06:00
json-parse.test.mjs feat: native Rust streaming JSON parser (#266) 2026-03-13 16:21:58 -06:00
ps.test.mjs fix: repair native module test assertions 2026-03-13 13:06:47 -06:00
text.test.mjs feat(gsd): unified rule registry, event journal, journal query tool, and tool naming convention (#1928) 2026-03-21 18:47:41 -06:00
truncate.test.mjs feat: native Rust output truncation module (#268) 2026-03-13 16:48:49 -06:00
ttsr.test.mjs feat: add native Rust TTSR regex engine via RegexSet 2026-03-13 13:57:12 -06:00
xxhash.test.mjs Fix execute-task loop detection: adaptive reconciliation instead of hard stop (#342) 2026-03-14 07:26:10 -06:00