fix(decisions): make queue CLI cwd-independent - #224
Merged
Conversation
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
Make the documented Decision Queue V2 script entrypoint portable when invoked by absolute path from an arbitrary working directory, and add a subprocess regression that exercises that exact path.
Why
The installed portfolio-intelligence workflow invokes the canonical producer by absolute path. Python previously placed only
src/onsys.path, sofrom src.security_admissionfailed before a digest could reach the consumer.Review Of What Was Built
Cleanup Review
No global wrapper, dependency change, generated output, or unrelated refactor was added.
Verification Summary
pytest tests/test_portfolio_decision_queue.py -q: 16 passed.ruff check .: passed./tmp: passed.responses; required GitHub CI remains the authoritative full-suite gate.Shipped Summary
The branch makes the canonical producer callable exactly as documented without relying on caller cwd or an ambient
PYTHONPATH.Next Phase
Wait for required CI, address any merge-relevant failure, merge through the normal protected route, and read back remote main.
Remaining Roadmap
The installed ContractLens structural-plus-semantic canary is being verified separately; no additional GHRA scope is planned.