Replies: 3 comments 2 replies
|
Looks great. A suggestion from our evolving mode conversations. Make the unit of audit a single attempt. For today that's just the process run. In a long-running process, there are many attempts (what we have been calling 'episodes'). Regarding 'to be suspended/restarted from a savepoint', I don't think we need this. Since we've been discussing breaking long running work into episodes, they will write their progress to the blackboard. The audit tells us why the last attempt died. The blackboard tells the next attempt where to start. Seems easier than making actions resumable. +1 to filesystem capture as the first durability experiment. |
|
thanks @Stuckya |
|
This is great. I am going to try to capture some formatted markdown with the problem statement, the existing landscape within the agent framework, the gaps that we currently have that I can quickly identify, and what some of the external landscape looks like. +1 to the episode as the unit of audit, the blackboard carrying continuation state instead of resumable actions, and filesystem capture as the first durability experiment. Problem statementTwo consumers for the same record:
The second depends on the first. Every improvement loop in the literature consumes the records an audit trail provides (table further down), so the record model should cover both uses from the start. What we already haveThe event layer covers most of the capture list:
The hook point also already exists. Gaps I can quickly identify
One more, operational: External landscape
What evolving mode needs recordedReduced from the self-improvement literature (Reflexion arXiv:2303.11366, ExpeL arXiv:2308.10144, trace-based prompt optimization like GEPA arXiv:2507.19457, trajectory evals, classical action-model learning from execution failures arXiv:2103.05682):
There are two distinct feedback targets. Numeric planner learning (success rates, observed costs) is deterministic aggregation, needs no payload capture, and fits GOAP well since costs and conditions are already part of the action model. Knowledge-level learning (heuristics distilled from episodes by eval passes) is a text artifact that needs provenance, confidence, and a lifecycle. Proposed shapePhases, riskiest first:
Non-goals: process-graph serialization, resumable actions (episodes plus blackboard, as agreed above), re-execution replay in v1, replacing the OTel observability layer. DICE as one feedback-store implementationdice is a good fit for phase 4, and the coupling works out cleanly because dice already depends on embabel-agent. The audit SPI (record model, sink, listener) lives in embabel-agent, dice or a small integration module implements the sink/feedback side, and the framework never references dice. Any other store can implement the same SPI. What a proposition store adds to the evolving loop: heuristics stored as propositions get confidence, decay, reinforcement, contradiction handling, and provenance back to the episodes that produced them. One caveat from reading the dice model with this use in mind - reinforcement today counts evidence merges and retrieval, and decay is age/access based, so a frequently retrieved but harmful heuristic would stay fresh. For heuristics, reinforcement needs to be linked to episode outcomes (reinforce when injected and the episode succeeded, contradict when implicated in a failure... which is what we should get from the audit trail). There is some working prior art from me here on the governance side in arc-mem which is a governed working-memory layer built on dice and embabel-agent. Promoted propositions carry an activation score, a trust/authority tier (top tier human-only), and membership in a hard-bounded active set injected into every prompt, behind a gated promotion pipeline (confidence, dedup, conflict, trust, budget). It governs conversational working memory rather than planner heuristics, so generalizing it is still an open question... but at least two lessons transfer here... ---
title: Evolving mode feedback loop
---
flowchart LR
EP[episode journal] --> AGG[numeric aggregation]
EP --> REF[eval passes / distillation]
AGG -.-> COST[learned action costs]
REF --> HP[heuristic store with provenance]
HP --> GOV[governed promotion, bounded set]
GOV --> RUN[next episode]
COST -.-> RUN
RUN --> EP
RUN -- outcome-linked reinforce/contradict --> HP
|
Uh oh!
There was an error while loading. Please reload this page.
To explain agent behavior properly, it's usually required to track:
a. action execution chain
b. blackboard state
c. LLM Invocations
d. tool Invocations
e. external events
An observability framework provides a solid foundation for tracking.
Blackboard state tracking on a granular level per object requires some additional effort.
Auditing / History tracking would also allow for action replay.
An auditing framework can serve as a low-level foundation for Proposition revisions management.
An auditing framework can serve as a foundation for Evolving Mode, to adjust conditions/heuristics based on history.
Additional thoughts:
a. capture agent audit in file system for further analysis/replay
b. long-running actions - is it possible scenario? - to be suspended/restarted from a savepoint?
@johnsonr , @alexheifetz @azanux @Stuckya @jimador @jasperblues - FYI
All reactions