carlos / platform Public

instance-control-memory-1291

Prompts

Human

<task-notification> <task-id>bxd0b8pfm</task-id> <tool-use-id>toolu_01Y7pZ1tDJcBZPBPg6HXQUTQ</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/95f33cc2-8998-4fa5-abb8-8043c3daeffb/tasks/bxd0b8pfm.output</output-file> <status>completed</status> <summary>Background command "Run Astra's review of the memory fix" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>a87d09395a8771aef</task-id> <tool-use-id>toolu_015qXWPCQhrNEnB8bynQ5seG</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/95f33cc2-8998-4fa5-abb8-8043c3daeffb/tasks/a87d09395a8771aef.output</output-file> <status>completed</status> <summary>Agent "Implement instance-control memory fix" finished</summary> <note>A task-notification fires each time this agent stops with no live background children of its own. The user can send it another message and resume it, so the same task-id may notify more than once.</note> <result>**Status:** R1 fixed and committed as dde07131 "instance-control: renderer accepts the 64M and 256M anchors (#1291 R1)", on top of 8316ed89. Not pushed. Astra's findings file is still untracked in the worktree; I didn't commit it. **Change:** - The claims and build-worker rewrites now go through `replaceClaimControlMemory`. It accepts the current 256M line or the v0.40.1 64M line, and has the #1291 heal comment. - The adopt pass's controlChanged expression moved unchanged into `claimControlStale` in systemunits.go, so a test can call it. **Gates:** - Targeted tests (`TestClaimUnit*`, `TestPlan9Fix1*`, `TestControlUnitsShape`): PASS. - I also ran the 105 tests in files that call `ensureSystemUnits`. 104 pass; `TestClaimReviewControlEntryKeepsServiceLifetime` fails. - Census re-proposed under the same NAME, with `ensureSystemUnitsWithGuard` added to the claims file. Both census tests PASS. - `make code-health`: PASS. - darwin and windows builds: OK. **TDD evidence:** - (a) `TestClaimUnitRendererAcceptsLegacyMemoryTemplate` failed for claims and build worker before the fix and passes now. Off and demo box keep 64M. - (b) `TestClaimUnitLegacyRendererUpgradeHealsAtAdopt` simulates the old renderer by leaving only the 64M anchor. It shows the wrong render for claims and build worker, and checks that `claimControlStale` flags exactly those two modes and not a current render. I added it after the seam existed, so I never saw it fail. **Concerns:** - `TestClaimReviewControlEntryKeepsServiceLifetime` fails with "hostwrite: lifecycle provider unavailable". It tests claim-entry startup, not unit rendering, so I believe it was already failing, but I didn't confirm that on main. - The "old template" in the tests is today's unit with the #1291 change undone. The test fails if that comment or line changes. - On upgrade, control still runs with the wrong memory line until the next adopt pass. That is the ruling, not something this fix closes. - Follow-up for #1291 is unchanged: one registry child per start, or a cap on how many run at once.</result> <usage><subagent_tokens>108491</subagent_tokens><tool_uses>20</tool_uses><duration_ms>498884</duration_ms></usage> </task-notification>

Human

<task-notification> <task-id>b7epmj0du</task-id> <tool-use-id>toolu_01KMSwk8uKgtgZb98peorqNK</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/95f33cc2-8998-4fa5-abb8-8043c3daeffb/tasks/b7epmj0du.output</output-file> <status>completed</status> <summary>Background command "Run Astra's round 2 review of the memory fix" completed (exit code 0)</summary> </task-notification>

Human

<task-notification> <task-id>b5vwzbqmo</task-id> <tool-use-id>toolu_01AWL9AcyDRyWRgY2irZoaDH</tool-use-id> <output-file>/home/paulca/.cache/tmp/claude-1001/-home-paulca-amadan-net-carlos-platform/95f33cc2-8998-4fa5-abb8-8043c3daeffb/tasks/b5vwzbqmo.output</output-file> <status>completed</status> <summary>Background command "Commit findings, record census, wait for CI" completed (exit code 0)</summary> </task-notification>