Repository navigation
feat(os-update): delivery type for the install command CU-17tkuw67mjh - #3352
Conversation
OS_UPDATE_INSTALL carries one command per device and request with every update the device has to install. The engine is transport only: the agent answers DONE once it has written the command down; the outcome of each update is not a result of the delivery. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
🦩 flamingo Code Review1 finding: 🔴 0 action required · 🟠 0 recommended · 🔵 1 informational Advisory: findings do not block the merge. Rules cited:
🔵 Informational (1)
✅ What this change does well
Inline comments: 1 new 1 possible problem checked and ruled out
🤖 Prompt for AI agents: fix every findingNext: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both. Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-04 14:55 UTC · reviewed from Semen Lisak's machine |
🦩 flamingo Code Review / security✅ No findings on the current head. Advisory: findings do not block the merge.
Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-12-04 14:58 UTC · reviewed from Semen Lisak's machine |
…gs CU-17tkuw67mjh Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
yevhenii-flamingo
left a comment
There was a problem hiding this comment.
Two small follow-ups on the Java conventions.
|
|
||
| import static java.lang.String.format; | ||
|
|
||
| // One command per device and request, with every update the device has to install by it. |
There was a problem hiding this comment.
Could we use short class Javadocs for the seed, spec, and message? That would keep the one-command-per-device-and-request contract and the meaning of DONE where callers can find them.
| private final JsonMapper mapper = new JsonMapper(); | ||
|
|
||
| @Test | ||
| void typePayloadAndSubject_installCommandOfOneMachine() { |
There was a problem hiding this comment.
Could we use the three-part test name here, e.g. deliverySpec_forOneMachine_usesOsUpdateInstallContract? That makes the single-machine condition and expected result clear in the test list.
What
The delivery type that carries the "install these OS updates" command to the agent (Windows). Transport only: no sender, no domain status, no config here.
DeliveryType.OS_UPDATE_INSTALL.OsUpdateInstallMessage(the body the agent gets):deliverytype,targetId,dispatchId,sequence), copied back by the agent in its resultrequestIdidentifiersOsUpdate.identifierof every update the device has to install by this commandOsUpdateInstallDeliverySpec: subjectmachine.<machineId>.os-update-install; everything else is the default ofDeliverySpec(nowireForm, the default deliverable statuses, not for every machine).OsUpdateInstallDeliverySeed:machineId,requestId,identifiers;targetId=requestId, so the row ofmachine_deliveryis one per device and request.Contract with the agent
machine.<machineId>.delivery.result:DONEonce it has written the command down, not once the updates are installed.FAILED+error= the command could not be taken.delivery.dispatchId.Not here
openframe.delivery.enabled.OS_UPDATE_INSTALLis set; its policy (openframe.delivery.types.OS_UPDATE_INSTALL:max-attempts: 5,result-timeout-seconds: 30,reconnect-window-seconds: 86400) goes into the tenant configs together with the lib bump, because a service on an older lib does not know the enum value.Tests
OsUpdateInstallDeliverySpecTest(type, subject, request, wire form). The unit run of data-nats, machine-delivery and client-core with their dependencies is green.Change-Set: feat-os-update-install-delivery
🤖 Generated with Claude Code
https://claude.ai/code/session_01EnBSFTsNdA8c4yRH3Lehi4
Change set
flamingo-stack/feat-os-update-install-delivery: this pull request is the only one in it so far. Another pull request joins by naming this one in aDepends-Online, or by carrying the sameChange-Setline.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.