fix(worker): resolve release-authority helpers from the checkout, not the data home - #256
Merged
Merged
Conversation
… the data home fm-worker-authority.py sourced bin/fm-backend.sh and bin/fm-account-directory.sh relative to --home, which is FM_HOME - a data home that ships no bin/. Every authority-receipt therefore died at rc 127 inside the endpoint probe and was reported as 'endpoint authority did not prove the exact task endpoint absent', so no release receipt has ever been mintable on a real deployment and all four pilot workers sat assigned with no release path. The helpers now resolve from the checkout that ships the tool, the same way fm-worker-lifecycle.py already resolves the authority tool itself via ROOT. The new endpoint test drives the real endpoint_evidence through the real fm-backend.sh against a binless home with a tmux stub at the system boundary; reverting the helper resolution to the home turns it red. The existing account authority test passed $ROOT as the home, which hid exactly this defect; it now passes a binless home too.
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.
What
fm-worker-authority.py resolved bin/fm-backend.sh and bin/fm-account-directory.sh under --home (FM_HOME). A production FM_HOME is a data home with no bin/, so the subprocess died rc 127 and every authority-receipt refused with 'endpoint authority did not prove the exact task endpoint absent' before any endpoint was probed. The release lane has therefore never produced a receipt on a real deployment; all four pilot workers sit assigned with no release path.
Fix
Resolve both helpers from the checkout that ships the tool (module-level ROOT), matching how fm-worker-lifecycle.py resolves fm-worker-authority.py itself.
Verification