v1.3.0 — Complete 8-Operator Implementation
All 8 TSCG paper operators now implemented and tested
What's new in v1.3.0
Three operators — CFL, CFO, CCP — were previously paper-only. They now have working implementations:
- CFL (Constraint-First Layout): prepends
[ANSWER:function_call]at position 0 (Claude-only) - CFO (Causal-Forward Ordering): heuristic
read → transform → writeclass sort - CCP (Causal Closure Principle): appends
[CLOSURE:tool(req-params)]at recency position
Pipeline (execution order)
SDM → CAS → CFO → DRO → TAS → CFL → SAD → CCP
Mathematically equivalent to paper Figure 1 composition order (documented inline in _engine.ts).
Model safety guards
CFL and SAD-F are auto-disabled on non-Claude targets (GPT/Gemini/Llama echo-back protection).
Profiles (3)
| Profile | Active principles |
|---|---|
conservative |
SDM only |
balanced (default) |
SDM, CAS, CFO, DRO, TAS, CCP |
aggressive |
All 8 on Claude; 6 on non-Claude |
Tests
47/47 green in packages/core. New: 13 tests covering the 8-operator closure assertion, CFL/CFO/CCP behavior, and regression guards against phantom operators (DTR/SCO/ATA/RKE/CSP).
Paper alignment
Appendix F Table 17 rewritten to match the 3 implementation profiles. This closes the 8-vs-5 operator discrepancy between published paper and npm package.
npm
Publish pending — run from packages/core/:
pnpm publish --access publicTarball verified via --dry-run: 22.7 kB, 7 files.