Repository navigation
[3363 by Claude Opus 5.5] Fix the 0.9.0 release validation gate failure on main (baseline 43bd2d72d2e69337df42ec6b6abec7113d9229ed). - #3365
Conversation
…n't run here: this container has no Docker. Rebuilding app/launcher and rerunning the SQLite smoke as a normal user against rootful Docker still has to happen on the validation host. Upstream `main` is still at `43bd2d72d`, so none of this was already fixed. Disk pressure didn't block this task.
1. Zero-warning lint (`usageTrackingWrapper.ts`)
- `executeWithUsageTracking` now takes `(agent, executeFn, options)`, where `options` is `{ timeoutMs?, alias?, skipUsageTracking? }` (new exported `UsageTrackingOptions` type).
- Defaults are unchanged: alias falls back to the agent and skip defaults to false. Usage accounting, cancellation and return values behave as before.
- I updated the 8 agent call sites that passed extra arguments, plus the test calls. Two test files had silently broken: root `tsc` doesn't check `test/`, so their old-style calls showed up as assertion failures.
- `npm run lint --workspaces --if-present -- --max-warnings 0` passes, as do root lint and the root and core typechecks. All 31 affected agent/usage test files pass.
2. Cleanup of root-owned data in both smoke scripts
- `smoke-test-sqlite-startup.sh` and `smoke-test-images.sh` now create a private `mktemp` root. They remove it with the existing `remove_smoke_root` helper, which the preview and desktop smokes already use. It checks the exact directory, its owner and mode `0700`, then runs a cleanup container with no network and minimal privileges that mounts only that root.
- I widened the helper's allowed name patterns to cover the two new directory names.
- Cleanup failures are now reported and turn a passing run into a failure. The image smoke used to hide them (`2>/dev/null || true`).
- One behaviour change: the image smoke's data directory is now a fresh temporary directory per run under `RUNNER_TEMP`/`TMPDIR`, not the fixed `/tmp/${STACK}-data`. Leftover containers and networks from earlier runs are still cleaned up.
3. False negative in the failure check
- The `docker logs … | grep -Fq` check is replaced by `container_logs_contain` (new `scripts/lib/smoke-container-logs.sh`), which reads the complete log before searching it.
- The check that no database service starts after a migration failure is kept.
4. Migration error messages (launcher)
- The migration container now gets `TINI_SUBREAPER=1`. Both tini processes still reap child processes, and the inner one stops printing the "not running as PID 1" warning.
- The error message now picks the actual `Error:` line, skipping tini notices and Node's source-location line. It is one line, cut to 500 characters, and raw output is never included. Sync and async startup share this code.
- I added a CHANGELOG "Fixed" entry for this.
New tests
- `test/imageSmokeCleanup.test.mjs` runs both real scripts against a fake Docker that leaves a protected `data/web-push` directory. It checks the root is removed, the original failure exit code is kept, the cleanup container's exact arguments, and that a failed cleanup is reported.
- The same file includes a control proving the old pipe really fails under `pipefail` with 4 MiB of log after the match, and that the new helper finds the match.
- `test/orchestratorMigrationPhase.test.mjs` has new sync and async cases for the error-message selection and length limit.
- The desktop helper's boundary tests cover the new directory names, and I added near-miss names it must still refuse.
- The new tests fail against the baseline scripts and launcher, and pass now. The 18 affected test files, the desktop smoke test (7/7) and `releaseValidation` all pass.
Not tested here
- The test that deletes real root-owned data with rootful Docker is skipped unless `PREVIEW_SMOKE_CLEANUP_IMAGE` is set, so it didn't run here.
I left runner routing, storage thresholds, worktrees and web-push directory permissions unchanged. There are no visual changes, so no preview.
|
/review fable astra |
|
✅ AI Code Review Complete requested by @integry Posted 2 reviews: |
🔍 AI Code Review — fableOverall EvaluationThe PR fixes the 0.9.0 release-gate lint failure by replacing the five positional parameters of I traced the options refactor through all five agents and ✅ Behavior-preserving options refactor — ✅ Migration error surfaced instead of init noise — ✅ Smoke cleanup regressions drive the real scripts — Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S1: 🟢 Continue removing stack resources after one failure
S2: 🟢 Run both smokes against a real rootful daemon before releaseThe author notes the real-Docker checks could not run in the implementation container, and none of the current-head checks exercise S3: 🟢 Fallback when the migration error is not
|
🔍 AI Code Review — astraOverall EvaluationReady to merge within the supplied scope. The options refactor addresses the lint failure while preserving the shown timeout, alias, and skip-tracking values. The smoke-harness changes reuse bounded cleanup and improve failure diagnostics. ✅ Preserved tracking semantics — Options retain the original defaults, and the changed callers preserve their previous arguments without changing execution callbacks. ✅ Bounded cleanup — Both smoke harnesses adopt the existing ownership, directory identity, and path checks. Added tests exercise protected-directory cleanup and refusal boundaries. ✅ Reliable log assertions — Capturing logs before matching removes the early-reader-exit failure under The authoritative checks report 38 passed and no failures or pending checks. This review used static analysis only; no commands were run. The supplied issue description is truncated, so requirements beyond its visible portion could not be assessed. Merge blockersNo merge blockers. SuggestionsThese are optional follow-ups and are not sent to S5: 🟢 Clarify the diagnostic length limit
S6: 🟢 Record real Docker validationThe added fake-engine tests provide useful coverage, but do not establish actual container ownership and nested-init behavior. Recording a smoke run against rebuilt images, as an ordinary user with rootful Docker, would strengthen release evidence. This is an optional validation follow-up, not evidence of a current failing check or code blocker. ScoreThe changes preserve the visible usage-tracking contract and add focused regression coverage for the smoke fixes. Current checks are green, and static review found no merge-blocking regression. Score: 9/10 🤖 Review Details
Copy and edit to choose records from this review: 🤖 Review by ProPR |
…erify` and all 156 affected test files pass. I did not merge, tag, publish or deploy. I fixed both issues on this PR. Lint, typecheck, `release:verify` and all 156 affected test files pass. I did not merge, tag, publish or deploy. ## 1. Retired Gemini 3.6/3.7 Flash now run on Gemini 3.8 Flash This works the same way as the Gemini 3.1 Pro → Argon change: - **Saved selections:** the 3.6/3.7 Flash IDs and their low/medium/high variants now launch on 3.8 Flash. A selection with no effort of its own gets medium; a saved effort is kept and, if 3.8 Flash didn't support it, it would drop to the nearest supported level. The aliases (`flash36`/`flash37`, `antigravity-flash37-high`, …) and the `llm-antigravity-flash36`/`flash37` labels select 3.8 Flash too. - **CLI ID launched:** `toAntigravityCliModelId` now only launches current catalog models. Every old selection launches `gemini-3.8-flash-<effort>`, for example `antigravity-gemini-3.7-flash-high` → `gemini-3.8-flash-high` and `antigravity-gemini-3.6-flash` → `gemini-3.8-flash-medium`. - **On startup:** agents that list either model switch to 3.8 Flash, keeping any saved reasoning setting unless 3.8 Flash already has its own. 3.8 Flash appears once in the list. - **Other saved references:** agent run triggers, plan labels, queued epic selections, task-submission defaults, native goals, the MCP model choices and the summarization model setting now accept old IDs and resolve them to 3.8 Flash. Before, each of these required an exact match in the agent's model list and failed. A shared helper, `agentSupportsSavedModel`, does this check. - **Selection and fan-out:** the models are already gone from the catalog, and the startup step removes them from `supportedModels`. Multi-model and matrix runs are built from that list, so neither can pick them. - **Old run reports:** a run that reports `Gemini 3.7 Flash (Medium)` or `gemini-3.6-flash-low` still matches its request, but only at the same effort. The three old tests that asserted the retired models still launch now assert 3.8 Flash and the exact CLI ID. I added a **Retired models** bullet to the 0.9.0 changelog. **Other CLIs pinned in this release:** the installed CLIs match the pins (agy 1.4.0, claude 2.1.293, codex 0.160.0, vibe 2.25.8, opencode 1.18.31). - `opencode models` lists exactly the 7 catalog models. - The live Antigravity list in your output matches the catalog exactly once 3.6/3.7 are removed. - No other agent type has retained or runtime-only models; its remaining old IDs already route to current models. - `agy models` needs sign-in here. The binary still contains the 3.6/3.7 names, so your live E2E output is what shows they're no longer served. - I couldn't check which models the Claude and Codex servers still serve without signing in. ## 2. Failure reasons name the real error A new shared helper, `agentFailureLine`, skips the entrypoint preamble, the config-directory listing and the launch-command line. It returns the first error line, or the first remaining line if there is none, as one line of at most 500 characters. The launcher fix in #3365 was the model. It now feeds the failure reason for issue tasks, PR follow-ups, native goals and agent runs, plus the issue/PR failure comments, so every agent type is covered. Secrets are now removed from every stored task-state reason and last-error message. The full output is still kept in the logs, and the automatic retry check still sees it. With your exact Antigravity output, the reason is now `error: invalid model selection (--model "gemini-3.7-flash-medium" …) …`; there are regression tests for that and for the secret redaction. ## Validation - `npm run lint --workspaces --if-present -- --max-warnings 0` and root `eslint src/ --max-warnings 0` pass. - Typechecks pass for root, api and UI; shared and core build cleanly. - 156 affected test files pass. `managedDiagnostics` failed in my first batch only because I had set `LOG_LEVEL=silent`, which hides the log output it checks; it passes without that setting. - `EXPECTED_VERSION=0.9.0 RELEASE_TAG=v0.9.0 RELEASE_CANDIDATE=true npm run release:verify` passes. There's no visual change, so I made no preview. PR: #3368 Comment by: @integry (ID: 6484354107) Model: Claude Opus 5.5
AI Implementation Summary
Closes #3363
Branch:
3363/claude-opus-5-5-fix-the-0-9-0-release-val-20261028-1640-dgtCommits: ✅ Changes committed (447cc53)
AI Processing Completed
Execution Details:
Summary:
The release-gate fixes are in place, but the real-Docker checks couldn't run here: this container has no Docker. Rebuilding app/launcher and rerunning the SQLite smoke as a normal user against rootful Docker still has to happen on the validation host. Upstream
mainis still at43bd2d72d, so none of this was already fixed. Disk pressure didn't block this task.1. Zero-warning lint (
usageTrackingWrapper.ts)executeWithUsageTrackingnow takes(agent, executeFn, options), whereoptionsis{ timeoutMs?, alias?, skipUsageTracking? }(new exportedUsageTrackingOptionstype).tscdoesn't checktest/, so their old-style calls showed up as assertion failures.npm run lint --workspaces --if-present -- --max-warnings 0passes, as do root lint and the root and core typechecks. All 31 affected agent/usage test files pass.2. Cleanup of root-owned data in both smoke scripts
smoke-test-sqlite-startup.shandsmoke-test-images.shnow create a privatemktemproot. They remove it with the existingremove_smoke_roothelper, which the preview and desktop smokes already use. It checks the exact directory, its owner and mode0700, then runs a cleanup container with no network and minimal privileges that mounts only that root.2>/dev/null || true).RUNNER_TEMP/TMPDIR, not the fixed/tmp/${STACK}-data. Leftover containers and networks from earlier runs are still cleaned up.3. False negative in the failure check
docker logs … | grep -Fqcheck is replaced bycontainer_logs_contain(newscripts/lib/smoke-container-logs.sh), which reads the complete log before searching it.4. Migration error messages (launcher)
TINI_SUBREAPER=1. Both tini processes still reap child processes, and the inner one stops printing the "not running as PID 1" warning.Error:line, skipping tini notices and Node's source-location line. It is one line, cut to 500 characters, and raw output is never included. Sync and async startup share this code.New tests
test/imageSmokeCleanup.test.mjsruns both real scripts against a fake Docker that leaves a protecteddata/web-pushdirectory. It checks the root is removed, the original failure exit code is kept, the cleanup container's exact arguments, and that a failed cleanup is reported.pipefailwith 4 MiB of log after the match, and that the new helper finds the match.test/orchestratorMigrationPhase.test.mjshas new sync and async cases for the error-message selection and length limit.releaseValidationall pass.Not tested here
PREVIEW_SMOKE_CLEANUP_IMAGEis set, so it didn't run here.I left runner routing, storage thresholds, worktrees and web-push directory permissions unchanged. There are no visual changes, so no preview.
Detailed Logs:
069ecc7e-9a6f-443a-bf07-a8b136ea0373Log files stored at:
/usr/src/app/logs/executions/issue-3363-2026-10-28T17-00-09-618Z-conversation.json/usr/src/app/logs/executions/issue-3363-2026-10-28T17-00-09-618Z-output.txtLatest Conversation Messages
This PR was created automatically by ProPR after processing issue #3363.
💡 Need changes?
Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!