Skip to content

Commit bd2ff64

Browse files
karkarlCopilot
andcommitted
Merge origin/main into permissions MVVM pilot
Resolve Permissions ownership conflicts while preserving argument-bound exec approval semantics and current-main behavior. Co-authored-by: Copilot App <[email protected]> Copilot-Session: d01a60a1-e002-4e6c-b3a2-3ced75fb5b66
2 parents aaebf76 + 4206611 commit bd2ff64

287 files changed

Lines changed: 37166 additions & 4816 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.gitattributes‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
.github/workflows/*.lock.yml linguist-generated=true merge=ours
1+
.github/workflows/*.lock.yml linguist-generated=true merge=ours
2+
*.md text eol=lf
3+
*.excalidraw text eol=lf
4+
docs/diagrams/*.svg text eol=lf

‎.github/workflows/ci.yml‎

Lines changed: 29 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -42,48 +42,6 @@ jobs:
4242
with:
4343
fetch-depth: 0
4444

45-
- name: Detect gateway LKG drift from npm latest
46-
id: gateway_lkg_drift
47-
continue-on-error: true
48-
shell: pwsh
49-
run: |
50-
$sourcePath = "src/OpenClaw.SetupEngine/GatewayLkgVersion.cs"
51-
$source = Get-Content -LiteralPath $sourcePath -Raw
52-
$match = [regex]::Match($source, 'LkgVersion\s*=\s*"([^"]+)"')
53-
if (-not $match.Success) {
54-
throw "Unable to parse LKG version from $sourcePath"
55-
}
56-
57-
$pinned = $match.Groups[1].Value
58-
$latest = (Invoke-RestMethod -Uri "https://registry.npmjs.org/openclaw/latest" -TimeoutSec 30).version
59-
if ([string]::IsNullOrWhiteSpace($latest)) {
60-
throw "Unable to resolve npm latest version for openclaw."
61-
}
62-
if ($latest -notmatch '^[0-9]+\.[0-9]+\.[0-9]+([.\-+][A-Za-z0-9.\-]+)*$') {
63-
throw "Resolved npm latest version has unexpected format: $latest"
64-
}
65-
66-
"pinned=$pinned" >> $env:GITHUB_OUTPUT
67-
"latest=$latest" >> $env:GITHUB_OUTPUT
68-
69-
if ($pinned -ne $latest) {
70-
"drifted=true" >> $env:GITHUB_OUTPUT
71-
Write-Host "::warning::Gateway LKG drift detected: pinned $pinned, npm latest $latest. Run gateway-lkg-update workflow to refresh the standing draft PR."
72-
Write-Error "Gateway LKG drift detected (pinned $pinned, npm latest $latest)."
73-
"### :warning: Gateway LKG drift detected" >> $env:GITHUB_STEP_SUMMARY
74-
"" >> $env:GITHUB_STEP_SUMMARY
75-
"- Pinned LKG: $pinned" >> $env:GITHUB_STEP_SUMMARY
76-
"- npm latest: $latest" >> $env:GITHUB_STEP_SUMMARY
77-
"- Action: run `gateway-lkg-update` to refresh the standing draft PR." >> $env:GITHUB_STEP_SUMMARY
78-
exit 1
79-
} else {
80-
"drifted=false" >> $env:GITHUB_OUTPUT
81-
Write-Host "Gateway LKG is current ($pinned)."
82-
"### Gateway LKG is current" >> $env:GITHUB_STEP_SUMMARY
83-
"" >> $env:GITHUB_STEP_SUMMARY
84-
"- Pinned LKG: $pinned" >> $env:GITHUB_STEP_SUMMARY
85-
}
86-
8745
- name: Setup .NET 10
8846
uses: actions/setup-dotnet@v6
8947
with:
@@ -116,6 +74,10 @@ jobs:
11674
throw "GitVersion SemVer '$actual' did not match tag '$expected'."
11775
}
11876
77+
- name: Validate documentation
78+
shell: pwsh
79+
run: ./scripts/validate-docs.ps1
80+
11981
- name: Restore dependencies
12082
run: dotnet restore
12183

@@ -348,7 +310,7 @@ jobs:
348310
include:
349311
- name: setup-connect
350312
timeout_minutes: 45
351-
filter: "FullyQualifiedName~OpenClaw.E2ETests.Setup.SetupAndConnectTests|FullyQualifiedName~OpenClaw.E2ETests.Setup.MxcSetupAndConnectTests"
313+
filter: "FullyQualifiedName~OpenClaw.E2ETests.Setup.SetupAndConnectTests|FullyQualifiedName~OpenClaw.E2ETests.Setup.MxcSetupAndConnectTests|FullyQualifiedName~OpenClaw.E2ETests.Setup.MirroredWslPortLeaseTests|FullyQualifiedName~OpenClaw.E2ETests.Setup.SshOwnershipAdversarialProofTests|FullyQualifiedName~OpenClaw.E2ETests.Setup.TrayExecutableResolutionTests"
352314
- name: revocation-recovery
353315
timeout_minutes: 25
354316
filter: FullyQualifiedName~OpenClaw.E2ETests.Setup.RevocationAndRecoveryTests
@@ -446,6 +408,29 @@ jobs:
446408
exit 1
447409
}
448410
}
411+
412+
$sshOwnershipProofNames = @(
413+
"UnownedListenerIsRejectedThenOwnedTunnelRecoversWithoutRepairing",
414+
"InitialHandshakeListenerReplacementWithholdsCredentialFrame",
415+
"InitialNodeHandshakeListenerReplacementWithholdsCredentialFrame"
416+
)
417+
foreach ($sshOwnershipProofName in $sshOwnershipProofNames) {
418+
$sshOwnershipProof = @(
419+
$trx.TestRun.Results.UnitTestResult |
420+
Where-Object { $_.testName -like "*$sshOwnershipProofName*" }
421+
) | Select-Object -First 1
422+
if ($null -eq $sshOwnershipProof) {
423+
Write-Error "E2E shard '${{ matrix.name }}' did not report the SSH ownership proof test '$sshOwnershipProofName'. Check the setup-connect filter before merging."
424+
exit 1
425+
}
426+
427+
$sshOwnershipOutcome = [string]$sshOwnershipProof.outcome
428+
if ($sshOwnershipOutcome -ne "Passed") {
429+
Write-Error "SSH ownership E2E proof '$sshOwnershipProofName' had outcome '$sshOwnershipOutcome'; this proof must pass and may not skip."
430+
exit 1
431+
}
432+
Write-Host "SSH ownership E2E proof passed: $sshOwnershipProofName"
433+
}
449434
}
450435
451436
- name: Upload E2E Test Results & Logs
@@ -527,7 +512,7 @@ jobs:
527512

528513
build-msix:
529514
needs: [test, e2etests]
530-
if: false # Paused for alpha.4; ship Inno setup and portable ZIP artifacts only.
515+
if: false # MSIX distribution is paused; ship Inno setup and portable ZIP artifacts only.
531516
runs-on: ${{ matrix.rid == 'win-arm64' && 'windows-11-arm' || 'windows-latest' }}
532517
continue-on-error: true
533518
strategy:

‎.github/workflows/copilot-setup-steps.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ jobs:
2121
- name: Checkout repository
2222
uses: actions/checkout@v7
2323
- name: Install gh-aw extension
24-
uses: github/gh-aw-actions/setup-cli@6f8e8ef27dc666d7945cf450b3a16b8872092c94 # v0.83.3
24+
uses: github/gh-aw-actions/setup-cli@029204130cb73f6ba684e56428c7f3e9319b708c # v0.84.1
2525
with:
2626
version: v0.72.1

‎.github/workflows/gateway-lkg-update.yml‎

Lines changed: 0 additions & 141 deletions
This file was deleted.

0 commit comments

Comments
 (0)