Skip to content

Log Muse import risk decision traces in Actions - #60335

Merged
cortinico merged 1 commit into
react:mainfrom
cortinico:codex/log-muse-risk-trace
Nov 27, 2026
Merged

cortinico merged 1 commit into
react:mainfrom
cortinico:codex/log-muse-risk-trace

Conversation

@cortinico

Copy link
Copy Markdown
Contributor

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.
  • Live Muse output cannot be exercised locally without the repository Actions secret; verify a new triage run after this workflow reaches main.

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 27, 2026
@cortinico
cortinico marked this pull request as ready for review November 27, 2026 16:30
@cortinico
cortinico merged commit 3b49389 into react:main Nov 27, 2026
94 of 98 checks passed
@cortinico
cortinico deleted the codex/log-muse-risk-trace branch November 27, 2026 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants