Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
1aca6a8
fix(packaging): ship manager discovery and canary baseline
hhyykk Nov 13, 2026
e0b33f1
fix(desktop): gate publication on native Windows tests
hhyykk Nov 13, 2026
ac86a48
fix(release): include new update note in draft patch
hhyykk Nov 13, 2026
8c1aa6a
fix(kunluncode): enforce MCP pin under optimized Python
hhyykk Nov 13, 2026
4cf2e43
fix(usage): reject malformed UTF-8 requests
hhyykk Nov 13, 2026
8782182
perf(usage): use indexed month ranges for breakdowns
hhyykk Nov 13, 2026
bb3dc2d
fix(desktop): safely resume updater asset uploads
hhyykk Nov 14, 2026
2a5c43e
fix(desktop): stop when release backup inventory fails
hhyykk Nov 14, 2026
1475a28
fix(desktop): abort replacement when manifest lookup fails
hhyykk Nov 14, 2026
8b6a224
fix(desktop): resume incomplete release artifacts safely
hhyykk Nov 14, 2026
f67ad4a
fix(kunluncode): preserve state across install timeouts
hhyykk Nov 14, 2026
38781ba
fix(chat): separate manager Goal conversation identity
hhyykk Nov 14, 2026
13e8bb8
fix(chat): validate managed result pages and details
hhyykk Nov 14, 2026
5374ba9
test(desktop): wait for complete updater feed requests
hhyykk Nov 14, 2026
2dd7607
Merge main into review fixes branch
hhyykk Nov 14, 2026
75b59ba
fix(chat): validate history message fields
hhyykk Nov 14, 2026
db1ee10
fix(chat): verify direct session read identity
hhyykk Nov 14, 2026
5c18b37
Merge remote-tracking branch 'origin/main' into codex/review-8703-win…
hhyykk Nov 14, 2026
4a8aa9c
fix(chat): reject duplicate history message IDs
hhyykk Nov 14, 2026
e3ac2fc
fix(chat): verify team execution readbacks
hhyykk Nov 14, 2026
d07df2c
fix(chat): validate team inventory pages
hhyykk Nov 14, 2026
657de03
test(desktop): read complete readiness probe requests
hhyykk Nov 14, 2026
44c2189
merge: integrate current main with review recovery fixes
hhyykk Nov 17, 2026
1600fa8
test(dashboard): forward original team operation requests
hhyykk Nov 17, 2026
f24737b
fix(usage): bootstrap fresh D1 databases through recorded migrations
hhyykk Nov 17, 2026
9da2110
fix(chat): route timeline controls with the conversation key
hhyykk Nov 17, 2026
6817fe2
merge: include upstream Todo-less settlement verification
hhyykk Nov 17, 2026
9762c76
fix(chat): preserve expanded queue body typography and evidence
hhyykk Nov 17, 2026
9110e34
merge: include shared queue browser regression repair
hhyykk Nov 17, 2026
a1a17f1
merge: prefer upstream queue and historical storage fixes
hhyykk Nov 17, 2026
55a820b
fix(chat): preserve live turns when queue restoration is refused
hhyykk Nov 17, 2026
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
98 changes: 86 additions & 12 deletions .github/workflows/desktop-release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ jobs:
run: |
set -euo pipefail
mkdir -p dist/previous-desktop
mapfile -t assets < <(
gh release view "${RELEASE_TAG}" \
--repo "${GITHUB_REPOSITORY}" \
--json assets \
--jq '.assets[].name | select(. == "DESKTOP-SHA256SUMS" or (startswith("LoopX") and (endswith(".dmg") or endswith(".zip") or endswith(".exe") or endswith(".msi"))))'
)
release_id="$(gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_TAG}" --jq '.id')"
[[ "${release_id}" =~ ^[0-9]+$ ]]
asset_list="$(gh api --paginate "repos/${GITHUB_REPOSITORY}/releases/${release_id}/assets?per_page=100" \
--jq '.[].name | select(. == "DESKTOP-SHA256SUMS" or (startswith("LoopX") and (endswith(".dmg") or endswith(".zip") or endswith(".exe") or endswith(".msi"))))')"
assets=()
if [ -n "${asset_list}" ]; then mapfile -t assets <<<"${asset_list}"; fi
for asset in "${assets[@]}"; do
gh release download "${RELEASE_TAG}" \
--repo "${GITHUB_REPOSITORY}" \
Expand Down Expand Up @@ -385,18 +385,90 @@ jobs:
cd dist/desktop
sha256sum --check DESKTOP-SHA256SUMS

- name: Resume desktop release without replacing assets
if: github.event_name == 'release'
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.identity.outputs.release-tag }}
RELEASE_VERSION: ${{ steps.identity.outputs.release-version }}
SOURCE_REF: ${{ github.sha }}
run: |
set -euo pipefail
shopt -s nullglob
if [ "$RELEASE_TAG" != "v$RELEASE_VERSION" ] && [ "$RELEASE_TAG" != "$RELEASE_VERSION" ]; then
echo "::error::Desktop release version does not match its tag" >&2
exit 1
fi
python scripts/desktop_release_artifacts.py verify-checksums \
--dist-dir dist/desktop --version "$RELEASE_VERSION" \
--checksum-file dist/desktop/DESKTOP-SHA256SUMS
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
verify_ref() {
local actual
actual="$(gh api "repos/$GITHUB_REPOSITORY/commits/$RELEASE_TAG" --jq '.sha')"
if [ "$actual" != "$SOURCE_REF" ]; then
echo "::error::Desktop release tag does not match the build commit" >&2
return 1
fi
}
read_assets() {
local release_id
release_id="$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$RELEASE_TAG" --jq '.id')"
[[ "$release_id" =~ ^[0-9]+$ ]]
remote_assets="$(gh api --paginate "repos/$GITHUB_REPOSITORY/releases/$release_id/assets?per_page=100" --jq '.[].name')"
}
check_asset() {
local artifact="$1" name matches
name="${artifact##*/}"
[[ "$name" =~ ^[A-Za-z0-9._+-]+$ ]]
matches="$(LC_ALL=C grep -Fixc -- "$name" <<<"$remote_assets" || true)"
asset_exists=0
if [ "$matches" -eq 0 ]; then return; fi
if [ "$matches" -ne 1 ] || ! grep -Fxq -- "$name" <<<"$remote_assets"; then
echo "::error::Desktop release asset name collision: $name" >&2
return 1
fi
gh release download "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" --pattern "$name" --dir "$tmpdir" --clobber
if ! cmp -s "$artifact" "$tmpdir/$name"; then
echo "::error::Desktop release asset differs: $name" >&2
return 1
fi
asset_exists=1
}
binaries=(dist/desktop/*.dmg dist/desktop/*.zip dist/desktop/*.exe dist/desktop/*.msi)
manifest=dist/desktop/DESKTOP-SHA256SUMS
verify_ref
read_assets
for artifact in "${binaries[@]}" "$manifest"; do check_asset "$artifact"; done
for artifact in "${binaries[@]}"; do
if ! grep -Fxq -- "${artifact##*/}" <<<"$remote_assets"; then
gh release upload "$RELEASE_TAG" "$artifact" --repo "$GITHUB_REPOSITORY"
fi
done
read_assets
for artifact in "${binaries[@]}"; do
check_asset "$artifact"
if [ "$asset_exists" -ne 1 ]; then echo "::error::Missing uploaded desktop artifact" >&2; exit 1; fi
done
check_asset "$manifest"
if [ "$asset_exists" -eq 0 ]; then gh release upload "$RELEASE_TAG" "$manifest" --repo "$GITHUB_REPOSITORY"; fi
read_assets
check_asset "$manifest"
if [ "$asset_exists" -ne 1 ]; then echo "::error::Missing uploaded desktop manifest" >&2; exit 1; fi
verify_ref

- name: Replace complete desktop binary set
if: github.event_name == 'workflow_dispatch'
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.identity.outputs.release-tag }}
run: |
set -euo pipefail
if gh release view "${RELEASE_TAG}" \
--repo "${GITHUB_REPOSITORY}" \
--json assets \
--jq 'any(.assets[]; .name == "DESKTOP-SHA256SUMS")' \
| grep -qx true
then
release_id="$(gh api "repos/${GITHUB_REPOSITORY}/releases/tags/${RELEASE_TAG}" --jq '.id')"
[[ "${release_id}" =~ ^[0-9]+$ ]]
asset_list="$(gh api --paginate "repos/${GITHUB_REPOSITORY}/releases/${release_id}/assets?per_page=100" --jq '.[].name')"
if grep -Fxq DESKTOP-SHA256SUMS <<<"${asset_list}"; then
gh release delete-asset "${RELEASE_TAG}" DESKTOP-SHA256SUMS \
--repo "${GITHUB_REPOSITORY}" \
--yes
Expand All @@ -410,6 +482,7 @@ jobs:
--clobber

- name: Replace desktop checksum manifest last
if: github.event_name == 'workflow_dispatch'
env:
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ steps.identity.outputs.release-tag }}
Expand Down Expand Up @@ -438,6 +511,7 @@ jobs:
--repo "${GITHUB_REPOSITORY}" \
--pattern "${asset}" \
--dir dist/published-desktop
cmp "dist/desktop/${asset}" "dist/published-desktop/${asset}"
done
python scripts/desktop_release_artifacts.py verify-checksums \
--dist-dir dist/published-desktop \
Expand Down
132 changes: 115 additions & 17 deletions .github/workflows/desktop-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ jobs:
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.release.tag_name || 'main' }}
ref: ${{ github.sha }}
- id: identity
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
Expand Down Expand Up @@ -216,14 +216,15 @@ jobs:
path: dist/updater/*
if-no-files-found: error
publish:
needs: [identity, build-macos, build-windows, validate]
needs: [identity, build-macos, build-windows, validate, windows-desktop-tests]
# A skipped Windows build is valid only on stable, where the feed is
# Darwin-only. A main release must have its Windows artifact.
if: >-
always()
&& needs.identity.result == 'success'
&& needs.build-macos.result == 'success'
&& needs.validate.result == 'success'
&& needs.windows-desktop-tests.result == 'success'
&& (needs.identity.outputs.channel != 'main' || needs.build-windows.result == 'success')
runs-on: ubuntu-latest
permissions:
Expand All @@ -250,33 +251,130 @@ jobs:
SOURCE_REF: ${{ needs.identity.outputs.ref }}
EVENT_NAME: ${{ github.event_name }}
CHANNEL: ${{ needs.identity.outputs.channel }}
VERSION: ${{ needs.identity.outputs.version }}
run: |
set -euo pipefail
# Stable builds intentionally have no Windows artifact. Without
# nullglob, Bash passes the unmatched pattern to `gh`, which exits
# before the feed and channel pointer are published.
shopt -s nullglob
if [ "$EVENT_NAME" != release ]; then
gh release create "$RELEASE_TAG" --prerelease --target "$SOURCE_REF" --title "Desktop main $SOURCE_REF" --notes "Signed App and matching runtime preview."
python - "$VERSION" "$RELEASE_TAG" "$CHANNEL" <<'PY'
import json
import sys
from pathlib import Path
from scripts.desktop_update_feed import build

version, tag, channel = sys.argv[1:]
if channel == "stable":
expected_tag = "v" + version
elif channel == "main" and version.startswith("0.0.0-main."):
expected_tag = "desktop-main-" + version.removeprefix("0.0.0-main.").replace(".", "-")
else:
raise SystemExit("invalid desktop release identity")
if tag != expected_tag or json.loads(Path("dist/updater/desktop-updater.json").read_text()) != build(Path("dist/updater"), version, tag, channel):
raise SystemExit("desktop release feed does not match its identity and artifacts")
PY
tmpdir="$(mktemp -d)"
trap 'rm -rf "$tmpdir"' EXIT
verify_ref() {
local actual
actual="$(gh api "repos/$GITHUB_REPOSITORY/commits/$RELEASE_TAG" --jq '.sha')"
if [ "$actual" != "$SOURCE_REF" ]; then
echo "::error::Desktop release tag does not match the build commit" >&2
return 1
fi
}
if ! gh api --include "repos/$GITHUB_REPOSITORY/releases/tags/$RELEASE_TAG" > "$tmpdir/release-probe"; then
if [ "$EVENT_NAME" != release ] && grep -Eq '^HTTP/[0-9.]+ 404([[:space:]]|$)' "$tmpdir/release-probe"; then
if gh api --include "repos/$GITHUB_REPOSITORY/commits/$RELEASE_TAG" > "$tmpdir/tag-probe"; then
verify_ref
elif ! grep -Eq '^HTTP/[0-9.]+ 404([[:space:]]|$)' "$tmpdir/tag-probe"; then
echo "::error::Cannot inspect desktop release tag $RELEASE_TAG" >&2
exit 1
fi
gh release create "$RELEASE_TAG" --prerelease --target "$SOURCE_REF" --title "Desktop main $SOURCE_REF" --notes "Signed App and matching runtime preview."
else
echo "::error::Cannot inspect desktop release $RELEASE_TAG" >&2
exit 1
fi
fi
for artifact in dist/updater/*.gz dist/updater/*.sig dist/updater/*.exe; do
gh release upload "$RELEASE_TAG" "$artifact"
read_assets() {
local release_id tag="$1"
release_id="$(gh api "repos/$GITHUB_REPOSITORY/releases/tags/$tag" --jq '.id')"
[[ "$release_id" =~ ^[0-9]+$ ]]
remote_assets="$(gh api --paginate "repos/$GITHUB_REPOSITORY/releases/$release_id/assets?per_page=100" --jq '.[].name')"
}
check_asset() {
local artifact="$1" name matches
name="${artifact##*/}"
[[ "$name" =~ ^[A-Za-z0-9._-]+$ ]]
matches="$(LC_ALL=C grep -Fixc -- "$name" <<<"$remote_assets" || true)"
asset_exists=0
if [ "$matches" -eq 0 ]; then return; fi
if [ "$matches" -ne 1 ] || ! grep -Fxq -- "$name" <<<"$remote_assets"; then
echo "::error::Desktop release asset name collision: $name" >&2
return 1
fi
gh release download "$RELEASE_TAG" --pattern "$name" --dir "$tmpdir" --clobber
if ! cmp -s "$artifact" "$tmpdir/$name"; then
echo "::error::Desktop release asset differs: $name" >&2
return 1
fi
asset_exists=1
}
artifacts=(dist/updater/*.gz dist/updater/*.sig dist/updater/*.exe)
feed=dist/updater/desktop-updater.json
verify_ref
read_assets "$RELEASE_TAG"
# Reject every conflict before uploading any missing file.
for artifact in "${artifacts[@]}" "$feed"; do check_asset "$artifact"; done
for artifact in "${artifacts[@]}"; do
name="${artifact##*/}"
if ! grep -Fxq -- "$name" <<<"$remote_assets"; then
gh release upload "$RELEASE_TAG" "$artifact"
fi
done
gh release upload "$RELEASE_TAG" dist/updater/desktop-updater.json --clobber
read_assets "$RELEASE_TAG"
for artifact in "${artifacts[@]}"; do
check_asset "$artifact"
if [ "$asset_exists" -ne 1 ]; then echo "::error::Missing uploaded desktop artifact" >&2; exit 1; fi
done
check_asset "$feed"
if [ "$asset_exists" -eq 0 ]; then gh release upload "$RELEASE_TAG" "$feed"; fi
read_assets "$RELEASE_TAG"
for artifact in "${artifacts[@]}" "$feed"; do
check_asset "$artifact"
if [ "$asset_exists" -ne 1 ]; then echo "::error::Incomplete desktop release" >&2; exit 1; fi
done
verify_ref
# Channel pointers are independent of repository Latest, which also
# serves separately versioned plugin releases. Advance only after the
# immutable signed assets and feed are completely uploaded.
pointer="desktop-$CHANNEL"
gh release view "$pointer" >/dev/null 2>&1 || gh release create "$pointer" --prerelease --latest=false --target "$SOURCE_REF" --title "Desktop $CHANNEL channel" --notes "Pointer to the latest complete signed desktop build."
pointer_assets="$(gh release view "$pointer" --json assets --jq '.assets[].name')"
if ! gh api --include "repos/$GITHUB_REPOSITORY/releases/tags/$pointer" > "$tmpdir/pointer-probe"; then
if grep -Eq '^HTTP/[0-9.]+ 404([[:space:]]|$)' "$tmpdir/pointer-probe"; then
gh release create "$pointer" --prerelease --latest=false --target "$SOURCE_REF" --title "Desktop $CHANNEL channel" --notes "Pointer to the latest complete signed desktop build."
else
echo "::error::Cannot inspect desktop channel $pointer" >&2
exit 1
fi
fi
read_assets "$pointer"
pointer_assets="$remote_assets"
pointer_matches="$(LC_ALL=C grep -Fixc desktop-updater.json <<<"$pointer_assets" || true)"
if [ "$pointer_matches" -gt 1 ] || { [ "$pointer_matches" -eq 1 ] && ! grep -Fxq desktop-updater.json <<<"$pointer_assets"; }; then
echo "::error::Desktop channel feed name collision" >&2
exit 1
fi
decision=advance
if grep -Fxq desktop-updater.json <<<"$pointer_assets"; then
mkdir -p dist/current-pointer
gh release download "$pointer" --pattern desktop-updater.json --dir dist/current-pointer
decision="$(python scripts/desktop_update_feed.py \
--channel-pointer-decision "$CHANNEL" \
--current-feed dist/current-pointer/desktop-updater.json \
--candidate-feed dist/updater/desktop-updater.json)"
gh release download "$pointer" --pattern desktop-updater.json --dir dist/current-pointer --clobber
if cmp -s dist/current-pointer/desktop-updater.json dist/updater/desktop-updater.json; then
decision=retain
else
decision="$(python scripts/desktop_update_feed.py \
--channel-pointer-decision "$CHANNEL" \
--current-feed dist/current-pointer/desktop-updater.json \
--candidate-feed dist/updater/desktop-updater.json)"
fi
fi
if [ "$decision" = advance ]; then
gh release upload "$pointer" dist/updater/desktop-updater.json --clobber
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,11 @@ jobs:
npm run smoke:chat-upgrade
npm run smoke:delegation-search
npm run smoke:task-inspector-route
npm run smoke:manager-goal-routing
LOOPX_PERSONAL_WORKSPACE_PACKAGED=1 npm run smoke:manager-goal-routing-browser
npm run smoke:managed-goal-result-schema
npm run smoke:conversation-find
npm run smoke:conversation-history
- name: Qualify packaged team evidence and feedback recovery
if: matrix.shard == 2
working-directory: apps/presentation/dashboard
Expand All @@ -204,6 +208,7 @@ jobs:
LOOPX_USAGE_PING: "0"
run: |
python -m pip install --disable-pip-version-check -e ".[test]"
npm --prefix apps/presentation/dashboard run smoke:bound-conversation
node apps/presentation/dashboard/smoke/team-task-revalidation-smoke.mjs
- name: Preserve synthetic original-task recovery views
if: always() && matrix.shard == 2
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:
- "apps/presentation/dashboard/**"
- "scripts/chat_bundle.py"
- "scripts/verify_installed_chat.py"
- "scripts/verify_installed_runtime.py"
- "README.md"
- "scripts/release_artifacts.py"
- "scripts/runtime_artifact.py"
Expand Down Expand Up @@ -137,7 +138,7 @@ jobs:
dist/packages/*.whl
test "$("${RUNNER_TEMP}/loopx-wheel/bin/loopx" --version)" = \
"loopx ${RELEASE_TAG#v}"
"${RUNNER_TEMP}/loopx-wheel/bin/python" - <<'PY'
"${RUNNER_TEMP}/loopx-wheel/bin/python" -I - <<'PY'
from loopx.control_plane.effect_program import SettlementIdentity
from loopx.control_plane.effect_runtime import (
collect_effect_runtime_readiness,
Expand Down Expand Up @@ -226,9 +227,11 @@ jobs:
- name: Verify installed frontend and sdist rebuild
run: |
python scripts/verify_installed_chat.py --python "${RUNNER_TEMP}/loopx-wheel/bin/python"
python scripts/verify_installed_runtime.py --python "${RUNNER_TEMP}/loopx-wheel/bin/python"
python -m pip wheel --no-deps dist/packages/*.tar.gz --wheel-dir "${RUNNER_TEMP}/sdist-wheel"
"${RUNNER_TEMP}/loopx-wheel/bin/python" -m pip install --force-reinstall --no-deps "${RUNNER_TEMP}"/sdist-wheel/*.whl
python scripts/verify_installed_chat.py --python "${RUNNER_TEMP}/loopx-wheel/bin/python"
python scripts/verify_installed_runtime.py --python "${RUNNER_TEMP}/loopx-wheel/bin/python"

- name: Resolve browser fixture correction without rebuilding product bytes
env:
Expand Down Expand Up @@ -570,6 +573,7 @@ jobs:
path: |
output/playwright/personal-workspace/acceptance-results.json
output/playwright/personal-workspace/qualification.json
output/playwright/personal-workspace/attached-host-pending-queue*.png
if-no-files-found: error
retention-days: 7

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/update-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@ jobs:

- name: Package reviewable draft
if: steps.generate.outputs.changed == 'true'
run: git diff --binary > update-note.patch
env:
NOTE_FILE: ${{ steps.generate.outputs.note_file }}
run: |
git add --intent-to-add -- "$NOTE_FILE"
git diff --binary > update-note.patch

- name: Upload update-note draft
if: steps.generate.outputs.changed == 'true'
Expand Down
Loading
Loading