Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 32261ca95a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if ! first_match="$(cd "$REPO_ROOT" && rg --files "${SOURCE_METADATA_GLOBS[@]}" | head -n 1)"; then | ||
| first_match="" |
There was a problem hiding this comment.
Fail fast when metadata scan command errors
Both check_repo_metadata and scrub_repo_metadata treat any rg failure as “no matches” by resetting the captured output to empty, so if rg is missing or errors, the script reports the source scope as clean and exits successfully. In that environment bash scripts/env-integrity.sh check|scrub (and therefore dev-setup.sh) silently disables the AppleDouble guardrail instead of failing, which defeats the integrity check it was added to enforce.
Useful? React with 👍 / 👎.
Summary
Fixes GUI/runtime breakage caused by metadata contamination in generated environments and tightens NLX diagnose response handling so degraded health is surfaced correctly instead of EXEC_ERROR.
Root Cause (Evidence-backed)
._*) polluted generated paths on external-drive workflows, breaking env/runtime assumptions./api/nlx/rundiagnose path treated valid nonzero health output as execution failure.openBinaryFile), blocking safe commits.What Changed (minimal scope)
scripts/env-integrity.sh(check|scrub) for AppleDouble detection/scrubbing in generated dirs and source-scope guard.scripts/dev-setup.shwith:--repair-env.venvbash scripts/dev-setup.sh --repair-env.errorType=none) while preserving parse failure handling.dashboard/src/engine/__tests__/nlxService.test.ts(new)dashboard/src/engine/__tests__/nlxErrorSanitizer.test.ts.pre-commit-config.yamlscripts/env-integrity.shDownstream Impact / Dependency Analysis
poetry run python -I -W ignore -c 'import pydantic, typer'in env-integrity checks.Verification (Operator-grade receipts)
Local receipt bundle:
/tmp/nlx-pr-closeout-20260302-041533Key receipts:
06_local_verification_and_migration_sim.txtbash scripts/dev-setup.sh✅bash scripts/env-integrity.sh check✅poetry run nlx list-tasks✅poetry run nlx diagnose(degraded health line; exit 1 expected) ✅npm --prefix dashboard run -s build✅npm --prefix dashboard run -s test✅ (200 tests)/tmp✅07b_dashboard_api_runtime_probe_repeat.txt/api/nlx/rundiagnosereturnsok:true,badge:DEGRADED,errorType:none✅/api/nlx/runlistTasksreturns success ✅08b_shellcheck_repro_exact.txt+08c_precommit_root_cause_fix_validation.txtRisk
risk:medSecurity / Compliance