You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maka.apache.org by "Astro-Han (via GitHub)" <gi...@apache.org> on 2026/08/20 10:14:29 UTC
[I] ScheduledTaskExecutionTemplate.backend is durable state nothing reads [maka]
Astro-Han opened a new issue, #3306:
URL: https://github.com/apache/maka/issues/3306
### Problem
`ScheduledTaskExecutionTemplate.backend` is durable state that nothing reads.
The template freezes how an Automation should run — cwd, connection slug, model, thinking level, permission mode, collaboration and orchestration mode — and `backend` alongside them. But the fire path never consults it: `HostScheduledTaskCoordinator` builds the execution session from `execution.llmConnectionSlug`, `execution.model`, `execution.permissionMode` and the two modes, and passes no backend at all (`packages/runtime-host/src/server/scheduled-task-coordinator.ts`, `#createSession`).
After #3249 it is not merely unread but unreadable: session creation no longer accepts a backend from any caller, so there is no longer a parameter the template's copy could be passed to. The field is now pure weight — persisted, encoded on the wire, validated by two decoders, consumed by nobody.
One write path also still copies a legacy value into new records. `executionTemplateFromHeader` takes `header.backend` verbatim and does not pass through `normalizeExecution`, so an Automation created from a session whose durable header still says `'fake'` (#3211) freezes that retired value into a brand-new template. This is unreachable in practice — the creating tool runs inside a turn, and a `'fake'` session cannot start one — but it is the same defect #3249 closed for session creation, left open in the Automation writer.
Found while reviewing #3249; raised by @M4n5ter there and split out as a separate change because it touches a durable record and the wire contract.
### Desired outcome
New canonical Automation records do not carry `backend`, and stored records that do are still readable.
Concretely: drop the field from `ScheduledTaskExecutionTemplate` and stop writing it in `executionTemplateFromHeader`, while the protocol decoder keeps tolerating the key on records written by older builds. No migration — the same position #3226 and #3249 took for session headers. Nothing reads the value, so no behavior changes either way.
### Alternatives or workarounds
- **Do nothing.** No user-visible symptom today. The cost is that the field rots: the next person to read a stored Automation reasonably assumes `backend` selects something, and the `'fake'` copy path stays open.
- **Enforce it at fire time instead** — have the fire path read the template's backend and refuse retired values. This keeps a field whose only remaining purpose would be to police itself, and re-introduces a backend choice on a surface that no longer has one. Not recommended, but it is the other coherent answer.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] ScheduledTaskExecutionTemplate.backend is durable state nothing reads [maka]
Posted by "Astro-Han (via GitHub)" <gi...@apache.org>.
Astro-Han closed issue #3306: ScheduledTaskExecutionTemplate.backend is durable state nothing reads
URL: https://github.com/apache/maka/issues/3306
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] ScheduledTaskExecutionTemplate.backend is durable state nothing reads [maka]
Posted by "c020627 (via GitHub)" <gi...@apache.org>.
c020627 commented on issue #3306:
URL: https://github.com/apache/maka/issues/3306#issuecomment-5356704253
Taking this one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org
Re: [I] ScheduledTaskExecutionTemplate.backend is durable state nothing reads [maka]
Posted by "yihanzhu (via GitHub)" <gi...@apache.org>.
yihanzhu commented on issue #3306:
URL: https://github.com/apache/maka/issues/3306#issuecomment-5355960020
I'd like to take this one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@maka.apache.org
For additional commands, e-mail: commits-help@maka.apache.org