Skip to content

claw-ctx v6.8.0

Choose a tag to compare

@petercheng petercheng released this 31 Aug 14:47
· 3 commits to main since this release

Release Highlights

  • Role-Aware Injection (ADR: role-aware-injection): five-role context package semantics (Authority > Exemplar > Constraint > Rubric > Metadata) from arXiv 2604.04258v1 applied to the injection pipeline.
  • Priority-based assembly: injection segments now carry role + priority; assembly orders by priority (Authority first) and records same-topic conflicts instead of joining by injection order - low-priority signals (RL experience, CI signals) can no longer override high-priority governance constraints.
  • Conservative conflict handling: both segments retained, conflict logged; nothing dropped.
  • Backward compatible: roleAwareInjection: false restores the v6.7.3 join order; ContextQualityEvaluator.evaluate gains an optional rubricBlocks? (behavior unchanged when omitted).

What's Changed

Added

  • src/context-role.ts: RoleHint, source-to-role classification, sortRoleHints, detectRoleConflicts, roleBreakdown, resolveRoleAssembly.
  • Engine injectors emit RoleHint[]; _assembleRoleAware at the assembly layer (after cache lookups); ctx_build returns roleConflicts / roleBreakdown (observational, non-breaking). _rlGovernanceCache / _crossDomainCache keys untouched; hot-cache string entries wrapped as metadata (content never dropped).
  • Config: roleAwareInjection (default true) and roleOverrides.

Tests

  • 1168 -> 1195 (+23): context-role.test.ts (17) + role-aware-injection.test.ts (6); benchmarks 22/22 PASS; dependency audit 0 vulnerabilities (openclaw 2026.8.1, CI matrix Node 22/24).

Reference

  • Paper review: docs/research/papers/2026-08-31-Context-Engineering.md (arXiv 2604.04258v1).

Full Changelog: v6.7.3...v6.8.0