Repository navigation
The worker's proposal-run test sets up the pod's whole artifacts host, so its deny run always reaches the approval gate - #1268
Merged
misterjohannesson merged 1 commit intoNov 28, 2026
Conversation
Its setup installed only the publish function, so the gate's question to the host about a new version went to whatever host the VM held. In the umbrella's run that was the daemon's, left by the gateway suite, whose about/2 calls Troupe.Gateway.Plane; no such process runs in the worker suite, so the publish call's task crashed before it reached the approval gate, and the deny test saw a turn_ended with no approval_decided. The setup now installs the pod's host first and lays the test's publish over it. Signed-off-by: Martin Johannesson <martin.johannesson@it-minds.dk>
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The worker's
ProposalRunTesttest "the same run without them is denied at the publish" failed once in the rootmix checkon the chunk head d711e6c (Result: 360/361 passed): the replay held aturn_endedand noapproval_decided. The cause is in the test. The product's event order is fine, and #1265 is not involved.What was there
The setup installed only the publish function (
Troupe.Artifacts.install/1). Before the gate asks anyone about a new version, it asks the host what the plane says of it (PublishArtifact.publication/2callsTroupe.Artifacts.about/2), and that question went to whateveraboutthe VM held. In the umbrella run the gateway suite runs first, in the same VM, and leaves the daemon's host installed. ItsTroupe.Gateway.Artifacts.about/2callsTroupe.Gateway.Plane, and that process does not run in the worker suite. The failing run's own log shows this:So the call's task crashed before
Approvals.request, the turn ended on the next scripted step, and no decision was written. Whether it fails depends on the seed: only when this test runs before any worker test that puts the pod's host back, such as this module's ownon_exit. Only the deny test is hit. Its call names anid, which is the case where the daemon'saboutasks the plane. The allow test never asks.Both shapes in the brief were checked and ruled out. In deny mode,
approval_decidedis appended bySession.Approvalsthrough a synchronousLog.appendbefore it replies to the tool, so it always comes before that call'stool_call_completedand the turn'sturn_ended. A passing run's log shows 9tool_call_started, 10approval_requested, 11approval_decided, 12tool_call_completed, then 16turn_ended. No earlierturn_endedexists for the wait to pass on. #1265's changes tomanager.ex(cost reports) andagent/server.ex(compaction) are not on this path.What changed
The setup installs the pod's whole host first (
Troupe.Worker.Artifacts.install/0), then lays the test's publish over it. The gate now asks the pod'sabout, which answers:no_linkwithout a link, whatever ran before. The test file is the only file changed. No product code changed and no decision was taken.Verified
The leaked host reproduces the failure deterministically when the setup is preceded by
Troupe.Gateway.Artifacts.install(), as the gateway suite leaves it. The injection was temporary and is not committed:TOTAL pass=0 fail=5 of 5, eachResult: 2/3 passed, the same assertion and the sameTroupe.Gateway.PlaneexitTOTAL pass=20 fail=0 of 20, eachResult: 3 passedBefore the fix and without the injection, the failure did not reproduce in the worker suite alone: the file 12 of 12 under load, the whole worker suite 4 of 4 under load (
Result: 361 passedeach). It needs the gateway suite before it in the same VM.Gates on the branch:
Finished in 120.8 seconds (1.4s async, 119.4s sync)/Result: 361 passedmix credo --strict:21559 mods/funs, found no issues.mix format --check-formattedon the changed file: cleanelixir scripts/decision-citations.exs --base origin/development-2026-11-28-2:1 file(s) changed since origin/development-2026-11-28-2, none adds a decision number to codeDecisions read:
mix troupe.decisions --forthe test file names 253 (terms become config overrides at the pod). This change does not touch that.Left
Other suites' tests that install only a publish function (gateway
proposal_answer_test.exs, several core tests) rely the same way on whateveraboutthe VM holds. None of them was seen failing, and none is on this pod path, so they are untouched.