Skip to content

AGY Studio v2.1.0

Choose a tag to compare

@github-actions github-actions released this 01 Dec 01:59
· 90 commits to main since this release

Long-term maintenance (LTS) consolidation release: introduces automatic host-drift safe-mode circuit breaking against newer unverified Antigravity Desktop builds (2.36.0 verified baseline), one-command pause/resume (studio:off / studio:on) without uninstalling, canonical daemon protobuf wire decoding with standalone-hook drift guards, cleared oversize module/CSS ratchets ({}), pruned dead UI styles, and a concise maintenance runbook.

Added

  • [cross] Host-Drift Safe-Mode Tripwire, One-Switch off/on & LTS Maintenance Runbook (studio/{daemon/host-tripwire.mjs,host/contracts.mjs,cli.mjs}, core/{daemon.mjs,daemon/prefs-bundle.mjs,daemon/remote-bridge.mjs}, studio/daemon/auto-compact-runner.mjs, install.mjs, package.json, docs/MAINTENANCE.md, .github/workflows/ci.yml, test/lts-consolidation.test.mjs): Bumped VERIFIED_HOST_BASELINES.latestVerifiedVersion to 2.36.0; added runHostDriftTripwire() (auto-probing newer host versions once on daemon startup and automatically engaging read-only safeMode when critical DOM/Fiber/SQLite contracts break, disabling UI injection, Remote write RPCs, and background /compact dispatch while staying passive when offline); added npm run studio:off / studio:on and node studio/cli.mjs safe-mode [status|off|on] with paused / safeMode / hostBaseline diagnostics in runDoctor(); exported getAntigravityAppFingerprint from install.mjs for offline version probing; added docs/MAINTENANCE.md and a weekly Monday CI schedule.

Changed

  • [cross] Canonical Protobuf Wire Primitives & Standalone Hook Drift Guard (studio/daemon/lib/proto-wire.mjs, studio/daemon/{opus-gate-service,resume-detector,bg-task-status}.mjs, studio/plugin/maga-{anchors/hooks/anchor-guard,opus-gate/hooks/gate-check}.mjs, test/lts-consolidation.test.mjs): Extracted parseProtoFields, parseProtoFieldsLast, readUtf8, getSafeCid, and readJsonSafe into studio/daemon/lib/proto-wire.mjs for daemon SQLite decoders, hardened wireType 1/5 bounds checks in standalone plugin hooks, and added golden/truncated protobuf buffer equivalence tests asserting zero drift between daemon and standalone hooks.
  • [cross] Dead CSS Pruning & Centralized Row-1 Legacy Pill Cleanup (user/custom.css, studio/styles/projects-{detail-composer,detail-lists,grid-modal}.css, studio/modules/{opus-gate-pill,anchors-pill,resume-banner,auto-compact}.mjs): Pruned 28 verified-dead CSS classes with zero JS/HTML/test references while preserving shared keyframes, and consolidated redundant legacy Row-1 pill DOM removal solely into cleanupLegacyRow1Pills (autonomy-pill.mjs + studio/entry.mjs).
  • [cross] Phase 1 Codebase Modularization & Size-Ratchet Clearance (remote/pwa/src/styles{,.css}/*, core/install/{paths,state,service}.mjs, install.mjs, user/custom.css, studio/{build.mjs,styles/*}, test/{size-baseline.json,studio,ui,audit-regressions,remote-phase2}.test.mjs): Modularized remote/pwa/src/styles.css into ordered @import partials under remote/pwa/src/styles/, extracted core/install/{paths,state,service}.mjs from install.mjs with full public export parity and host read-only boundary compliance, moved the contiguous user/custom.css tail (L1515–8945) byte-identically into 9 ordered studio/styles/*.css partials prepended to STYLE_FILES in studio/build.mjs while keeping user/custom.css tracked as the 3-way-merge user-layer template, widened the :has() CSS static guard across all studio/styles/*.css, and cleared test/size-baseline.json oversizeRatchet to {}.
  • [cross] Lossless Milestone Handoff, Async Continuation Titling & Old-Chat Lineage Strip (studio/daemon/{handoff-transcript,handoff-lineage,anchors-service,race-service}.mjs, core/daemon/overview-skills.mjs, studio/modules/{anchors-pill,autonomy-pill,handoff-lineage-bar}.mjs, studio/{core/dom,shared/autonomy-icons,entry}.mjs, studio/styles/{autonomy-pill,anchors-pill}.css, user/src/{entry,core/runtime-ctx,modules/projects/handoff-launch}.mjs, test/{anchors,handoff-upgrade}.test.mjs): Replaced the lossy 512 KB tail-only transcript slice in createMilestoneHandoff() with reverse 256 KB chunk scanning (extractLosslessHandoffTranscript()), capturing Turn-1 original goal, full latest CHECKPOINT, priority-budgeted post-checkpoint turns (up to ~36–40 KB total prompt, keeping the last 3 turns and trimming oldest assistant replies first), active brain/<cid>/*.md artifacts, and a redacted file/command-exit ledger strictly free of thinking/rawThinking and tool stdout under a nonce-scoped <untrusted_reference id="..."> fence; upgraded the handoff popover input to an auto-growing 2,000-char <textarea> with aligned auto-continue semantics and a pre-launch size/checkpoint/turns trust meta line; added nonce-verified handoff-lineage.json tracking with immediate chain-aware fallback titling (· 续 / · 续2) plus non-blocking Gemini Flash async title refinement; and mounted #agy-handoff-lineage-bar above the old conversation's composer with a direct jump button while calming #agy-autonomy-pill to ↪ 已交接 until compaction G grows again.

Fixed

  • [cross] Suppress False-Positive Resume / 继续任务 After Completed /compact (studio/daemon/resume-detector.mjs, test/studio.test.mjs): Stopped collectResumeState() from flagging completed bare /compact steps (STEP_USER_INPUT with /compact text or compact SlashCommandScopeItem, including headless RPC convo.compact without PLANNER_RESPONSE) as interrupted: true, reason: 'unanswered' when followed by a completed STEP_CHECKPOINT (step_type = 23), while preserving unanswered detection for /compact <prompt> follow-ups, normal user messages, and failed or checkpoint-less /compact attempts.
  • [cross] Background Auto-Compact Runner, Fail-Closed Quiet-Boundary Guard & Commit-Time Ledger (core/daemon/{host-tap,remote-bridge}.mjs, core/daemon.mjs, studio/daemon/{auto-compact-service,auto-compact-runner}.mjs, studio/plugin/maga-auto-compact/hooks/compact-check.mjs, studio/modules/auto-compact.mjs, user/src/modules/remote-tap.mjs, test/auto-compact.test.mjs): Added a daemon-side background consumer (createAutoCompactRunner) using an extracted, Remote-Gateway-independent host-tap.mjs RPC bridge so parallel/background and hidden-window chats auto-compact while Prompt Cache is hot instead of expiring after the 5-minute TTL; introduced strict fail-closed classifyQuietBoundary() (blocking mid-task breather pauses during active non-daemon commands, subagents/workflows, approvals/ask_question/exit_plan_mode, short/conditioned timers, or active child conversations while allowing idle boundaries, daemon servers, unconditional long timers/crons, and parked swarm workers) enforced authoritatively by the daemon after a 3.5s settle grace; moved autoCount and 120s cooldown tracking from Stop-hook write time to commitAutoCompactRequest with 60s step_type = 23 checkpoint verification and unconfirmed rollback/backoff; and added visibilitychange refresh plus multi-step settle retries in the foreground controller.
  • [cross] Exclude Subagent Conversations from Standalone Review Proposals & Fleet Cockpit (studio/plugin/maga-opus-gate/hooks/gate-check.mjs, studio/plugin/maga-anchors/hooks/anchor-guard.mjs, studio/daemon/{opus-gate-service,inbox-service}.mjs, test/subagent-review-exclusion.test.mjs): Added dual-layer child/subagent exclusion (payload parentConversationId + read-only SQLite trajectory_metadata_blob parentId/rootId check matching maga-auto-compact) so subagents no longer generate standalone opus-gate-proposals, auto review continuations, action_loop review escalations, or G>=3 handoff notices, and collectReviewItems / getOpusGateStatus suppress any legacy/finished subagent proposals and REVISE/HOLD verdicts while preserving .agents/locks.json PreToolUse guards and active subagent blocking approval/question bubble-up.
  • [cross] Decision Inbox Worktree Collision Precision & Cluster Aggregation (studio/daemon/{inbox-git-scan,inbox-service}.mjs, studio/modules/decision-inbox.mjs, remote/pwa/src/inbox-view.mjs, test/inbox-collision.test.mjs): Replaced naive baseBranch...HEAD pairwise path-intersection alerts with true git merge-base fork-point diffing (git diff --raw --no-abbrev -z), identical-blob filtering (eliminating cherry-pick/squash/stacked/sibling false positives), and in-memory git merge-tree --write-tree real-conflict verification (with Git < 2.38 graceful fallback); collapsed connected colliding worktrees per repository into a single cluster card with collision mode badges (Live Edit / Merge Conflict), involved-branch pills, and subset-stable dismissal (resolving files stays dismissed; new colliding files resurface).