fix(scheduled-task): keep Agent tasks visible in Maka catalog #5737
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 323 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.346
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5737"
general
weight: 0.35
liugddx
Summary
Agent-created scheduled tasks persist
execution.toolMode, but the Runtime Host ScheduledTask decoder rejected that field. Catalog queries could therefore returninternal_failure, leaving Maka's Scheduled tasks page empty or stale even though the task had been stored.Preserve and validate optional
toolModeacross task mutations and catalog reads, including legacy records that omit it. Advance the compatibility epoch from 189 to 190 because older peers reject the field. Preserve the latest upstream time and time-zone formatting.The ScheduledTask tool now checks the same Host catalog for the newly created ID before reporting success. If verification fails, it reports the task ID and advises querying before retrying to avoid duplicates. Agent task creation rejects only missing or whitespace-only working directories, while valid Host paths including filesystem root remain supported. Successful creation reports the stored Agent execution directory.
Verification
0 9 5and next run2026-10-02 09:00in Asia/Shanghai. The same Runtime Host query returnedtoolMode: directand the expected project working directory. This verifies creation and catalog visibility; it does not verify a future scheduled firing.@maka/core,@maka/storage,@maka/runtime, and@maka/runtime-hostsuccessfully.git diff --check, and the protocol epoch check against upstream main passed.AI use
Tool(s) and scope: Codex assisted with diagnosis, implementation, regression tests, Dev UI verification, review response, and conflict resolution. The commit includes a
Generated-by: Codextrailer.Checklist
Does this PR entail a change in behavior?