Repository navigation
Log Muse import risk decision traces in Actions - #60335
Merged
Merged
Conversation
cortinico
marked this pull request as ready for review
November 27, 2026 16:30
javache
approved these changes
Nov 27, 2026
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.
Summary:
The Meta import risk workflow currently logs only its final high/low/unknown status. When Muse returned high for #60330, we could not see the model's stated reason or cited paths in the Actions run.
Log a structured, bounded Muse decision trace beside the status: model id, deterministic force signals, model requiresMetaImport boolean, the validated short reason, and up to ten cited changed-file paths (plus the total count). Incomplete assessments log a specific failure category such as a missing patch, HTTP status, or invalid model decision. The log never includes the raw PR diff, unvalidated model response, model reasoning internals, or API credential. This changes diagnostics only; labeling decisions are unchanged.
This PR is independent of #60330 and can be reviewed/merged separately.
Changelog:
[INTERNAL] [ADDED] - Log structured Muse import-risk decisions for CI debugging.
Test Plan:
npx --yes jest@29.7.0 --config '{"transform":{},"testEnvironment":"node","testRegex":"metaImportRisk-test.js$","modulePathIgnorePatterns":["/scripts/releases/__tests__/__fixtures__/"]}' --runInBand .github/workflow-scripts/__tests__/metaImportRisk-test.js— 17 tests passed.npx --yes prettier@3.10.0 --check .github/workflows/meta-import-risk.yml .github/workflow-scripts/metaImportRisk.js .github/workflow-scripts/__tests__/metaImportRisk-test.js— passed.ruby -e "require 'yaml'; YAML.load_file('.github/workflows/meta-import-risk.yml'); puts 'YAML valid'"— passed.git diff --cached --check— passed before commit.