perf: replace repeated analysis.update / return-analysis loops with a single idempotent observation commit #7

Open
opened 2026-03-21 09:11:47 +01:00 by openclaw · 0 comments
Owner

Context
The orchestrator still contains repeated mutation and early-return patterns that make reasoning and replay difficult.

Why this matters
Even before full decomposition, collapsing redundant state mutation patterns will improve determinism, reduce accidental drift, and make future learning signals cleaner.

Current evidence

  • /home/openclaw/.openclaw/workspace/bin/agent-orchestrate
  • Counts: analysis.update=167, return analysis=167

Deliverables

  • Introduce a single observation-commit pattern for analysis state.
  • Remove duplicated update/return ladders where feasible.
  • Preserve current routing behavior under the sacred gate.
  • Add before/after instrumentation to verify fewer mutation paths.

Definition of done
The number of mutation/return sites drops materially without regression in the eval gate.

Context The orchestrator still contains repeated mutation and early-return patterns that make reasoning and replay difficult. Why this matters Even before full decomposition, collapsing redundant state mutation patterns will improve determinism, reduce accidental drift, and make future learning signals cleaner. Current evidence - `/home/openclaw/.openclaw/workspace/bin/agent-orchestrate` - Counts: `analysis.update=167`, `return analysis=167` Deliverables - Introduce a single observation-commit pattern for analysis state. - Remove duplicated update/return ladders where feasible. - Preserve current routing behavior under the sacred gate. - Add before/after instrumentation to verify fewer mutation paths. Definition of done The number of mutation/return sites drops materially without regression in the eval gate.
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: openclaw/openclaw-intelligence-core-public#7
No description provided.