Compare commits

...

14 Commits

Author SHA1 Message Date
john 1e7004dffe fix(wechat): apply agent timeout and Page Data review to all users
Memind CI / Test, build, and release guards (push) Failing after 10m39s
Remove per-user gray gates so WeChat MP always honors agentReplyTimeoutMs and enables Page Data Aider review when the feature flag is on.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-05 09:32:27 +08:00
john 089a44fb11 docs: close codex/flux-schnell-workflow-kind after main rollback release
Memind CI / Test, build, and release guards (push) Successful in 4m25s
Register the abandoned flux branch as non-reusable after 103 returned to main @ 6a48e0a.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-04 20:48:49 +08:00
john 6a48e0ad91 merge: native goosed remount for Portal release
Memind CI / Test, build, and release guards (push) Successful in 4m59s
2026-08-03 16:50:54 +08:00
john c2189ee30d fix(release): restart native goosed pool after Portal live swap on 103
103 production uses launchd goosed-native instead of Docker bind mounts;
fall back to kickstarting native services when docker compose is unavailable.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:50:54 +08:00
john 2cc98b9392 merge: retrigger CI on host runner
Memind CI / Test, build, and release guards (push) Successful in 7m3s
2026-08-03 16:12:39 +08:00
john 2f4dd39181 ci: retrigger on host-mode runner
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:12:36 +08:00
john 4e66c43350 merge: retrigger CI after runner wrapper
Memind CI / Test, build, and release guards (push) Failing after 2s
2026-08-03 16:11:09 +08:00
john 85872e1e84 ci: retrigger after runner wrapper fix
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:11:06 +08:00
john 93aa7c1cfa merge: retrigger CI after runner recovery
Memind CI / Test, build, and release guards (push) Failing after 8s
2026-08-03 16:06:09 +08:00
john 49c2671845 ci: retrigger workflow after runner and Colima recovery
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 16:06:07 +08:00
john 5cebd1121e merge: map Gitea workflows as non-runtime for release gate
Memind CI / Test, build, and release guards (push) Failing after 7s
2026-08-03 15:50:29 +08:00
john 492bf6fbb4 fix(release-gate): treat Gitea workflow files as non-runtime impact paths
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 15:50:26 +08:00
john 1d1af888e9 merge: fix CI for macOS self-hosted runner and AUTH-08 flake
Memind CI / Test, build, and release guards (push) Failing after 5s
2026-08-03 15:47:27 +08:00
john 4ebe7c76aa fix(ci): support memind-ci-mac runner and stabilize acceptance HTTP server
The self-hosted macOS runner cannot run apt-get or install Linux-only Sharp
packages; gate CI on sqlite availability and platform-specific Sharp setup.
Also wait for ephemeral Express listen before fetch to avoid AUTH-08 flakes.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 15:47:11 +08:00
6 changed files with 87 additions and 20 deletions
+20 -11
View File
@@ -33,21 +33,30 @@ jobs:
- name: Install system test dependencies
run: |
apt-get update
apt-get install --yes --no-install-recommends sqlite3
rm -rf /var/lib/apt/lists/*
if command -v apt-get >/dev/null 2>&1; then
apt-get update
apt-get install --yes --no-install-recommends sqlite3
rm -rf /var/lib/apt/lists/*
elif command -v brew >/dev/null 2>&1; then
if ! command -v sqlite3 >/dev/null 2>&1; then
brew install sqlite
fi
fi
command -v sqlite3
- name: Install locked dependencies
run: |
npm ci --include=optional
SHARP_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-linux-arm64'].version")"
LIBVIPS_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-libvips-linux-arm64'].version")"
if [[ ! -d node_modules/@img/sharp-linux-arm64 || ! -d node_modules/@img/sharp-libvips-linux-arm64 ]]; then
npm install --no-save --package-lock=false \
"@img/sharp-linux-arm64@${SHARP_ARM64_VERSION}" \
"@img/sharp-libvips-linux-arm64@${LIBVIPS_ARM64_VERSION}"
else
echo "Locked Sharp ARM64 optional packages are already installed"
if [[ "$(uname -s)" == "Linux" ]]; then
SHARP_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-linux-arm64'].version")"
LIBVIPS_ARM64_VERSION="$(node -p "require('./package-lock.json').packages['node_modules/@img/sharp-libvips-linux-arm64'].version")"
if [[ ! -d node_modules/@img/sharp-linux-arm64 || ! -d node_modules/@img/sharp-libvips-linux-arm64 ]]; then
npm install --no-save --package-lock=false \
"@img/sharp-linux-arm64@${SHARP_ARM64_VERSION}" \
"@img/sharp-libvips-linux-arm64@${LIBVIPS_ARM64_VERSION}"
else
echo "Locked Sharp ARM64 optional packages are already installed"
fi
fi
node -e "import('sharp').then((sharp) => sharp.default({ create: { width: 1, height: 1, channels: 4, background: '#000' } }).png().toBuffer())"
+18
View File
@@ -410,3 +410,21 @@ Portal,避免在线修改稳定 `.env`,并确保稳定 8081 与其他用户
- 保留本地分支名仅用于审计追溯。
- 不要从该分支继续开发、merge、cherry-pick 或发布。
- 后续管理后台 UI 只能在 memind_adm 5174 开发。
## `codex/flux-schnell-workflow-kind`
**状态:禁止再次引用。分支未并入 `main`;103 曾短暂从该分支发布 `ea5b732` 后已回退到 `main` 整包发布。**
审计日期:2026-08-04
分支 HEAD(已删除):`ea5b732`
`origin/main` 对应提交:`6a48e0a`103 生产 release `20260804-204137-6a48e0a`
### 原始用途
为 Portal admin 配置 ComfyUI `flux_schnell` workflowKind103 曾从该功能分支单包发布。
### 最终处置
- Flux 服务已下线;本地分支已删除。
- **不要** merge、cherry-pick 或从 `ea5b732` 构建 runtime/artifact。
- 103 生产 manifest 已回到 `main` @ `6a48e0a`
+10 -1
View File
@@ -98,8 +98,17 @@ function buildApp(workspaceRoot, pool = createPool('public')) {
return app;
}
async function request(app, method, url, { body, headers } = {}) {
async function listenEphemeral(app) {
const server = app.listen(0);
await new Promise((resolve, reject) => {
server.once('listening', resolve);
server.once('error', reject);
});
return server;
}
async function request(app, method, url, { body, headers } = {}) {
const server = await listenEphemeral(app);
try {
const { port } = server.address();
const response = await fetch(`http://127.0.0.1:${port}${url}`, {
+1
View File
@@ -55,6 +55,7 @@ const CRITICAL_IMPACT_RULES = Object.freeze([
const NON_RUNTIME_PATHS = Object.freeze([
/^(?:AGENTS|README|CHANGELOG)\.md$/i,
/^ops\/README\.md$/i,
/^\.gitea\/workflows\//i,
/^\.runtime\//i,
/^docs\//i,
/^\.cursor\//i,
+36 -2
View File
@@ -438,8 +438,42 @@ remount_goosed_after_live_swap() {
local ready=0
if [[ ! -x "${docker_bin}" || ! -f "${compose_file}" ]]; then
echo "goosed remount failed: docker or ${compose_file} is unavailable" >&2
return 1
say "重启 native goosed 以刷新 Portal/MindSpace bind mount"
mkdir -p "${APP_DIR}"
printf '%s\n' "${marker_value}" > "${marker_host}"
local gui="gui/$(id -u)"
local port
for port in $(seq 18006 18014); do
launchctl kickstart -k "${gui}/cn.tkmind.goosed-native-${port}" >/dev/null 2>&1 || true
done
for _ in $(seq 1 60); do
local healthy=1
if [[ "$(cat "${marker_host}" 2>/dev/null || true)" != "${marker_value}" ]]; then
healthy=0
fi
if [[ ! -f "${APP_DIR}/mindspace-sandbox-mcp.mjs" ]]; then
healthy=0
fi
for port in $(seq 18006 18014); do
if [[ "$(curl -skS -m 5 "https://127.0.0.1:${port}/status" 2>/dev/null || true)" != "ok" ]]; then
healthy=0
fi
done
if [[ "${healthy}" -eq 1 ]]; then
ready=1
break
fi
sleep 2
done
rm -f "${marker_host}"
if [[ "${ready}" -ne 1 ]]; then
echo "goosed remount failed: native goosed pool did not become healthy on the new live directory" >&2
return 1
fi
return 0
fi
mkdir -p "${APP_DIR}"
+2 -6
View File
@@ -2584,10 +2584,7 @@ export function createWechatMpService({
artifacts,
forcePageData,
}) => {
const enabledForUser =
config.pageDataAiderReviewEnabled &&
isWechatMediaGrayUser(user, config.pageDataAiderReviewUsers);
if (!enabledForUser) return { action: 'skip', reason: 'disabled' };
if (!config.pageDataAiderReviewEnabled) return { action: 'skip', reason: 'disabled' };
if (typeof pageDataDeliveryReviewer?.reviewIfNeeded !== 'function') {
const error = new Error('微信 Page Data 强制 Aider 审核服务不可用');
error.code = 'PAGE_DATA_REVIEW_UNAVAILABLE';
@@ -2617,8 +2614,7 @@ export function createWechatMpService({
const runIntentMessage = async ({ inbound, intent, user }) => {
const wechatIntent = await resolveWechatIntent(intent, { openid: inbound.fromUserName });
const mediaAnalysisEnabled = isWechatMediaGrayUser(user, config.mediaAnalysisGrayUsers);
const reliabilityEnabled = isWechatMediaGrayUser(user, config.reliabilityGrayUsers);
const agentReplyTimeoutMs = reliabilityEnabled ? config.agentReplyTimeoutMs : 0;
const agentReplyTimeoutMs = config.agentReplyTimeoutMs;
const resetCandidate =
intent.msgType === 'text' || intent.msgType === 'voice' ? intent.agentText : '';
const isPageDataRequest = isWechatPageDataTask(resetCandidate);