From 898fdd137148836b2e52666a2b5e0d591ec308c3 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 01:54:27 +0000 Subject: [PATCH 1/5] Align library pins with the stack repair commits Why: Backend still built against the pre-repair intent, native, and squad commits, so the host would not see the closed P0 and HTTP guard fixes. Evidence: GOWORK=off go test -count=1 ./... passed with no code changes. Impact: The backend module now tracks the same intent, native, squad, error-code, and logging commits as the Dev integration pins. Refs: R1-d Co-authored-by: Cursor --- deps/agent-intent | 2 +- deps/agent-native | 2 +- deps/agent-squad | 2 +- deps/error-code-system | 2 +- deps/logging-system | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/deps/agent-intent b/deps/agent-intent index 7d9d505..3130190 160000 --- a/deps/agent-intent +++ b/deps/agent-intent @@ -1 +1 @@ -Subproject commit 7d9d505d6523ecbf3b103c64d766f463769f4015 +Subproject commit 3130190acb396589d6022c243bbe07ce7c31c881 diff --git a/deps/agent-native b/deps/agent-native index c6d867c..694b08c 160000 --- a/deps/agent-native +++ b/deps/agent-native @@ -1 +1 @@ -Subproject commit c6d867cde7d87696feaf3073f097ca15b0145273 +Subproject commit 694b08cdbef5d52496f4425c9a22d1b77df14c23 diff --git a/deps/agent-squad b/deps/agent-squad index 5cbac00..8e987bf 160000 --- a/deps/agent-squad +++ b/deps/agent-squad @@ -1 +1 @@ -Subproject commit 5cbac00b994223b6aa76afd9bc70277b8b49e985 +Subproject commit 8e987bf535efbbbf317147542e858217f2bb3504 diff --git a/deps/error-code-system b/deps/error-code-system index dbeed2f..a3ee67b 160000 --- a/deps/error-code-system +++ b/deps/error-code-system @@ -1 +1 @@ -Subproject commit dbeed2f1b67eb417ce089e7033a228578fbbeb03 +Subproject commit a3ee67bba269e1276c14e22c026171ecf2cf6190 diff --git a/deps/logging-system b/deps/logging-system index 2c5716f..49b5d8b 160000 --- a/deps/logging-system +++ b/deps/logging-system @@ -1 +1 @@ -Subproject commit 2c5716fdcffbc4696fc0371afc70f39c44174201 +Subproject commit 49b5d8be604d05e4246dffa0d10fa1c2b7ad45d7 -- 2.54.0 From e14feb03219e3810a7fb919270b6fcc39b61f984 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 10:19:56 +0000 Subject: [PATCH 2/5] Add a CI workflow that vets and tests the backend module Why: This repo had no workflow, so pull requests could not show a vet or test result. Evidence: The job checks out submodules over HTTPS and runs GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... on Go 1.27 with GOPROXY=https://goproxy.cn,direct. Impact: SUBMODULE_TOKEN must be set by the owner before checkout can succeed. Refs: feature/agent-stack-r0-r1 Co-authored-by: Cursor --- .gitea/workflows/ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..83aeb86 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,22 @@ +name: ci +on: + push: + branches: [main] + pull_request: + branches: [main] +jobs: + vet-and-test: + runs-on: ubuntu-latest + env: + GOPROXY: https://goproxy.cn,direct + steps: + - name: Configure submodule auth over HTTPS + run: git config --global url."https://weichen:${{ secrets.SUBMODULE_TOKEN }}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/" + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions/setup-go@v5 + with: + go-version: "1.27" + - name: Vet and test + run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... -- 2.54.0 From ef0a1bef0f7bee626e59f160be51fb0e5f6aa692 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 10:20:54 +0000 Subject: [PATCH 3/5] Pin the three agent libraries to their pull request heads Why: Backend must call the library commits that include the hold fixes and the CI checkout change. Evidence: intent 7f7879b06b053f0a62746309b79e0e1b9a00f42d, native 91c155618487e21edeb4f1d3cc27e985aae2b0d2, squad e928ea3c0fa649cbbbad22a93a1bc0a12dee5f7d. Impact: The three gitlinks match the open pull request heads. Other pins are unchanged. Refs: feature/agent-stack-r0-r1 Co-authored-by: Cursor --- deps/agent-intent | 2 +- deps/agent-native | 2 +- deps/agent-squad | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deps/agent-intent b/deps/agent-intent index 3130190..7f7879b 160000 --- a/deps/agent-intent +++ b/deps/agent-intent @@ -1 +1 @@ -Subproject commit 3130190acb396589d6022c243bbe07ce7c31c881 +Subproject commit 7f7879b06b053f0a62746309b79e0e1b9a00f42d diff --git a/deps/agent-native b/deps/agent-native index 694b08c..91c1556 160000 --- a/deps/agent-native +++ b/deps/agent-native @@ -1 +1 @@ -Subproject commit 694b08cdbef5d52496f4425c9a22d1b77df14c23 +Subproject commit 91c155618487e21edeb4f1d3cc27e985aae2b0d2 diff --git a/deps/agent-squad b/deps/agent-squad index 8e987bf..e928ea3 160000 --- a/deps/agent-squad +++ b/deps/agent-squad @@ -1 +1 @@ -Subproject commit 8e987bf535efbbbf317147542e858217f2bb3504 +Subproject commit e928ea3c0fa649cbbbad22a93a1bc0a12dee5f7d -- 2.54.0 From 26474b4752cea7744eac0d73fbce514a53ccd5b5 Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 10:31:43 +0000 Subject: [PATCH 4/5] Clone the repo in CI without GitHub-hosted actions Why: The runner cannot reach github.com, so a checkout action would time out before vet or test. Evidence: The Go 1.27.1 tarball is available from mirrors.aliyun.com. Checkout uses the job token and GITHUB_SHA. Impact: Submodule checkout still requires SUBMODULE_TOKEN. A missing secret fails the job with that message. Refs: feature/agent-stack-r0-r1 Co-authored-by: Cursor --- .gitea/workflows/ci.yml | 31 +++++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 83aeb86..b67a8fe 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -10,13 +10,28 @@ jobs: env: GOPROXY: https://goproxy.cn,direct steps: - - name: Configure submodule auth over HTTPS - run: git config --global url."https://weichen:${{ secrets.SUBMODULE_TOKEN }}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/" - - uses: actions/checkout@v4 - with: - submodules: recursive - - uses: actions/setup-go@v5 - with: - go-version: "1.27" + - name: Checkout + env: + TOKEN: ${{ secrets.GITHUB_TOKEN }} + SUBMODULE_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} + run: | + set -euo pipefail + git init -q + git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git" + git -c http.extraheader="AUTHORIZATION: token ${TOKEN}" fetch --depth=1 origin "${GITHUB_SHA}" + git checkout -q --detach FETCH_HEAD + if [ -z "${SUBMODULE_TOKEN}" ]; then + echo "SUBMODULE_TOKEN is not configured" >&2 + exit 1 + fi + git config --global url."https://weichen:${SUBMODULE_TOKEN}@git-home.u1680832.nyat.app:30319/".insteadOf "ssh://git@git-ssh.u1680832.nyat.app:31411/" + git -c fetch.recurseSubmodules=false submodule update --init --recursive + - name: Install Go 1.27.1 + run: | + set -euo pipefail + curl -fsSL -o "$RUNNER_TEMP/go.tgz" https://mirrors.aliyun.com/golang/go1.27.1.linux-amd64.tar.gz + tar -C /usr/local -xzf "$RUNNER_TEMP/go.tgz" + ln -sfn /usr/local/go/bin/go /usr/local/bin/go + ln -sfn /usr/local/go/bin/gofmt /usr/local/bin/gofmt - name: Vet and test run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... -- 2.54.0 From b365fd0f22dd0d9b2b47699681f46b1e23fe0c8d Mon Sep 17 00:00:00 2001 From: weichen Date: Sat, 3 Oct 2026 12:46:10 +0000 Subject: [PATCH 5/5] Install house-style Python packages before backend CI Why: TestLintErrorContinues imports the house-style linter, which needs python-docx, python-pptx, and openpyxl. Evidence: Actions run 678 failed that test with ModuleNotFoundError: No module named docx after submodules checked out. Impact: The packages come from the Tsinghua PyPI mirror. The test command is unchanged. Refs: feature/agent-stack-r0-r1 Co-authored-by: Cursor --- .gitea/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index b67a8fe..7eb7aca 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -33,5 +33,7 @@ jobs: tar -C /usr/local -xzf "$RUNNER_TEMP/go.tgz" ln -sfn /usr/local/go/bin/go /usr/local/bin/go ln -sfn /usr/local/go/bin/gofmt /usr/local/bin/gofmt + - name: Install house-style Python packages + run: python3 -m pip install --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple python-docx python-pptx openpyxl - name: Vet and test run: GOWORK=off go vet ./... && GOWORK=off go test -count=1 ./... -- 2.54.0