refactor(engine): thread mutation context through remaining engine source (3/5) - #3431
refactor(engine): thread mutation context through remaining engine source (3/5)#3431gsxdsm wants to merge 1 commit into
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
| Filename | Overview |
|---|---|
| packages/engine/src/agent-heartbeat.ts | Builds an actor-bearing heartbeat run context and threads it through task tools, recovery writes, moves, and logs. |
| packages/engine/src/auth/fallback-model-observer.ts | Tightens the observer seam so fallback task-log writes require an explicit mutation context. |
| packages/engine/src/execution/reviewer.ts | Hoists one reviewer run context and reuses it across pause gates, tools, fallback reporting, retries, and task writes. |
| packages/engine/src/execution/session-token-usage.ts | Derives attribution for token-usage persistence from the supplied run, agent, or role context. |
| packages/engine/src/execution/task-revert.ts | Requires AI undo-task creation to carry the initiating mutation context through its structural store seam. |
| packages/engine/src/workflows/workflow-graph-executor.ts | Threads workflow execution identity through graph-owned durable mutations. |
| packages/engine/src/scheduler.ts | Adds explicit mutation attribution to scheduler-controlled state transitions and diagnostics. |
| packages/engine/src/merger.ts | Propagates merge-lane mutation identity through task updates, logging, tools, and fallback-model observation. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
S[Scheduler and recovery lanes] --> C[Run mutation context]
A[Agent and reviewer sessions] --> C
W[Workflow and merge execution] --> C
C --> T[TaskStore mutation]
T --> D[Durable task state]
T --> U[Attributed audit evidence]
Reviews (22): Last reviewed commit: "refactor(engine): thread the mutation co..." | Re-trigger Greptile
4ddad9e to
ee04d50
Compare
e26a7ef to
d407a8d
Compare
ee04d50 to
bfcf3b5
Compare
d407a8d to
5ce4b60
Compare
bfcf3b5 to
4b02e41
Compare
5ce4b60 to
8c23e8c
Compare
|
@coderabbitai review |
|
ff02870 to
2127d7d
Compare
725bb17 to
e7dc008
Compare
2127d7d to
1e03e16
Compare
e7dc008 to
6486c9f
Compare
1e03e16 to
14d1a33
Compare
6486c9f to
0f9d741
Compare
14d1a33 to
621502b
Compare
0f9d741 to
c568bd3
Compare
621502b to
55db108
Compare
ThreatCrush Security Scan4473 finding(s) HIGH/CRITICAL: 43 | MEDIUM: 3941 | LOW: 489
…and 4423 more. Full results in the Security tab. Snippets are redacted; ThreatCrush never prints matched credential material. |
9b25cb8 to
a96ae2d
Compare
a805739 to
efb30c4
Compare
0b1be96 to
b94b919
Compare
2375db8 to
be34c66
Compare
b94b919 to
5b6895f
Compare
7b2c8f9 to
ec48f2f
Compare
…e source (3/5) Fusion-Task-Id: FN-8821 Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
ec48f2f to
51bb436
Compare
Stack 3/5 — 54 files. Base:
identity/2-engine-executor.Completes the atomic engine-source conversion started in 2/5: heartbeat, agent tools, scheduling, healing, merge, missions, workflows, and the shared
util/run-audithelpers. Engine typecheck goes green here.🤖 Generated with Claude Code