diff --git a/.github/MISSIONS/copilot-to-copilot-fix-marketplace-integrity-gate-2026-05-13.md b/.github/MISSIONS/copilot-to-copilot-fix-marketplace-integrity-gate-2026-05-13.md new file mode 100644 index 0000000..633fdd1 --- /dev/null +++ b/.github/MISSIONS/copilot-to-copilot-fix-marketplace-integrity-gate-2026-05-13.md @@ -0,0 +1,16 @@ +Parent_Agent: copilot +Child_Agent: copilot +Mission_Objective: Resolve Marketplace Integrity workflow failure for this PR by satisfying the mission protocol gate after it failed due to a non-trivial change in .github/scripts/validate-registry-paths.sh without a mission file. +Context_Links: + - Current pull request branch: copilot/fix-syntax-error-validate-registry-paths + - Workflow: Marketplace Integrity + - Trigger file: .github/scripts/validate-registry-paths.sh +Success_Criteria: + - Add a valid mission file under .github/MISSIONS with all mandatory keys populated. + - Ensure mission protocol validation passes for the current BASE_SHA...HEAD_SHA range. +Result_Payload: + - Mission file committed in this branch. + - CI mission protocol gate no longer fails due to missing mission file. +Validation_Steps: + - Run bash .github/scripts/validate-mission-protocol.sh with BASE_SHA and HEAD_SHA for this PR range. + - Confirm the Marketplace Integrity workflow passes on this branch. diff --git a/.github/scripts/validate-registry-paths.sh b/.github/scripts/validate-registry-paths.sh index 7a8cc4c..6f39912 100644 --- a/.github/scripts/validate-registry-paths.sh +++ b/.github/scripts/validate-registry-paths.sh @@ -28,10 +28,7 @@ fi TMPFILE=$(mktemp) trap 'rm -f "$TMPFILE"' EXIT -python3 - "$REGISTRY" >"$TMPFILE" <<'PYEOF' || { - echo "ERROR: Path extractor (python3) failed. Check that Python 3 is available and registry.json is valid JSON." >&2 - exit 1 -} +if ! python3 - "$REGISTRY" >"$TMPFILE" <<'PYEOF' import json import sys @@ -57,6 +54,10 @@ with open(sys.argv[1]) as fh: for p in extract_paths(data): print(p) PYEOF +then + echo "ERROR: Path extractor (python3) failed. Check that Python 3 is available and registry.json is valid JSON." >&2 + exit 1 +fi mapfile -t PATHS <"$TMPFILE"