claw-ctx v6.8.0
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: falserestores the v6.7.3 join order;ContextQualityEvaluator.evaluategains an optionalrubricBlocks?(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[];_assembleRoleAwareat the assembly layer (after cache lookups);ctx_buildreturnsroleConflicts/roleBreakdown(observational, non-breaking)._rlGovernanceCache/_crossDomainCachekeys untouched; hot-cache string entries wrapped as metadata (content never dropped). - Config:
roleAwareInjection(default true) androleOverrides.
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