Skip to content

AGY Studio v2.0.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 13:35
· 130 commits to main since this release

Turns AGY Studio into a complete transparent cockpit & zero-invasive Agent Control Plane for Google Antigravity Desktop 2.0: introduces Deterministic Evidence Receipts & SHA-pinned Headless Worktree Landing, 3-Tier Autonomy Profiles (Solo / Guarded / Fleet) & the 4-in-1 Row-1 Autonomy Capsule (#agy-autonomy-pill), the global ⌘J/Ctrl+J Decision & Landing Inbox (Desktop + read-only Remote PWA), Worktree Fork & Race Arena for side-by-side multi-model races, unified single-step command styling, hot desktop module extraction, and rebuilt bilingual EN/ZH v2.0 READMEs with real-production-module visual suites.

Added

  • [cross] Pragmatic Worktree Fork & Race Arena (studio/daemon/{race-service,race-git}.mjs, studio/modules/fork-race.mjs, studio/styles/fork-race.css, user/src/modules/projects/{handoff-launch,index,detail-view,workspace-ui,worktree-ui}.mjs, user/src/entry.mjs, core/daemon/{overview-skills,worktrees}.mjs, studio/plugin/maga-git-workflow/lib/worktree-core.mjs, studio/daemon/receipt-service.mjs, studio/{entry,build,core/dom,host/contracts}.mjs, test/fork-and-race.test.mjs): Added desktop-only Worktree Fork & Race engine (prepareForkAndRace, bindRaceContenderCid, listRaces, getRaceStatus, landRaceWinner, pruneRace, strictly excluded from Remote Gateway) using a read-only lossless baseline snapshot (git stash create + filtered untracked regular files folded via isolated temp GIT_INDEX_FILE without mutating the source worktree) and zero-CoT Milestone Handoff briefs; extended handoff-launch.mjs with an exclusive serial input lock, fresh-fiber I10 fail-soft model switching with postcondition read-back, inter-contender default-model isolation, and anti-CID-theft abort guards; added Pure-DOM #agy-fork-race-modal side-by-side ReceiptV1 comparison arena (window.__agyOpenForkRace, MagaKernel, zero :has(), light/dark tokens, EN/ZH i18n) with Project Detail entry triggers and atomic CAS-claimed winner landing that prunes losing worktrees/branches only after the winner lands cleanly.
  • [cross] Global ⌘J/Ctrl+J Decision & Landing Inbox (studio/daemon/{inbox-service,inbox-git-scan}.mjs, studio/modules/decision-inbox.mjs, studio/styles/decision-inbox.css, studio/modules/autonomy-pill.mjs, studio/styles/autonomy-pill.css, studio/core/dom.mjs, studio/build.mjs, studio/entry.mjs, core/daemon/{overview-skills,remote-bridge}.mjs, core/daemon/remote/studio-bridge.mjs, remote/gateway/ws-server.mjs, remote/pwa/src/{inbox-view,app,workspace-shell,ws-client}.mjs, remote/pwa/src/styles/{inbox-view,desktop-workbench}.css, test/decision-inbox.test.mjs): Added zero-LLM, zero-CoT-leakage InboxItemV1 two-layer daemon aggregation (lock verified against primary-checkout .agents/locks.json, approval, question with subagent/Swarm bubble-up, swarm_alert multi-worktree file-collision detection + stalled background task alerts excluding scheduled timers, review pending Opus Gate proposals & unresolved REVISE/HOLD verdicts, and landable clean linked worktrees with buildEvidenceReceipt summaries under a 20s daemon-wide concurrency-capped --no-optional-locks Git cache), desktop keyboard-first #agy-decision-inbox (⌘J/Ctrl+J IME-safe toggle, j/k/↑/↓, Enter/a safe Jump-and-Act without blind DOM clicking, r receipt/review, m SHA-40 CAS inline headless landing, d dismiss, Esc close, synced to #agy-autonomy-pill via agy:autonomy-inbox-count), and strict read-only allowlist-sanitized Remote PWA studio.inbox view (desktop overlay + mobile tab, zero innerHTML/inline styles, zero write-merge exposure).
  • [cross] 3-Tier Autonomy Profiles (Solo / Guarded / Fleet), 4-in-1 Unified Row-1 Capsule (#agy-autonomy-pill), Settings Subtraction Refactor & Anchor Pillar 2 Retirement (studio/shared/prefs-schema.mjs, studio/modules/{autonomy-pill,studio-prefs,resume-banner,opus-gate-pill,auto-compact,anchors-pill,footer-unified,studio-settings,settings/{views,events}}.mjs, studio/styles/{autonomy-pill,footer-capsules,anchors-pill,studio-settings}.css, studio/plugin/maga-anchors/, studio/daemon/anchors-service.mjs, studio/core/dom.mjs, test/autonomy-profiles.test.mjs): Added first-class autonomyProfile: 'solo' | 'guarded' | 'fleet' (default 'guarded') with lossless migration of legacy studio-prefs.json and non-destructive custom-override tracking; consolidated Row-1's 4 separate status pills into one calm <div> capsule (#agy-autonomy-pill, sole OWN_ROW1_PILL_IDS member, priority reviewing > resume > review > compact > handoff > idle, responsive full/compact/tight/icon with Row-1 overflow protection, unified #agy-autonomy-menu popover, and Wave 2 inboxCount extension slot) while shrinking footer-capsules.css below the 2,000-line ceiling; hoisted autonomy controls into a top-of-L1 3-card Profile selector + default-collapsed Advanced Overrides drawer in Settings; and retired heuristic Pillar 2 anchor proposals (anchorsProposalsEnabled / anchors.local.md queue, adding doctor detection and safe marker-guarded cleanup) while preserving 100% of G compaction tracking, 1-click Milestone Handoff, .agents/locks.json force_ask guards, and action-loop escalation.
  • [cross] Deterministic Evidence Receipts & Headless Worktree Landing (studio/daemon/{receipt-service,receipt-transcript}.mjs, studio/modules/receipt-drawer.mjs, studio/styles/receipt-drawer.css, core/daemon/{overview-skills,remote-bridge}.mjs, core/daemon/remote/studio-bridge.mjs, remote/gateway/ws-server.mjs, remote/pwa/src/{viewer-drawer,ws-client,app,workspace-shell}.mjs, remote/pwa/src/styles/receipt-viewer.css, user/src/modules/projects/{detail-view,workspace-ui,worktree-ui}.mjs, test/evidence-receipts.test.mjs): Added zero-LLM, zero-CoT-leakage ReceiptV1 evidence builder (with Wave 2 fingerprint, compact summary, split self/withDescendants SQLite token costs, Opus Gate review stamps, G compaction generation, workspace-scoped & exit-code-masking-aware transcript_full.jsonl test verification passed/failed/unverified_after_edit/no_tests, and 1-click PR Markdown export), desktop-only SHA-pinned CAS headless worktree landing (git merge-tree --write-tree conflict pre-check, merge --no-ff & hook-respecting squash with atomic rollback, foreign-CID guard & atomic update-ref -d cleanup), Desktop Receipt Drawer + Project Detail triggers with inline diff/verification confirmation, and read-only Pure-DOM Remote PWA convo.receipt tab.

Changed

  • [cross] Distinct Autonomy Profile SVG Icons & High-Contrast Capsule Styling (studio/shared/autonomy-icons.mjs, studio/modules/{autonomy-pill,settings/views}.mjs, studio/styles/{autonomy-pill,studio-settings}.css, test/autonomy-profiles.test.mjs): Added sidebar-style 16×16 stroke SVG icons for Solo (focus reticle), Guarded (shield check), Fleet (3-node formation), and contextual dock actions (review, resume, compact, handoff) via Pure DOM createElementNS across #agy-autonomy-pill, #agy-autonomy-menu (header chip, 3-way switcher, quick-action buttons), and Studio Settings L1 profile cards; replaced low-contrast dark-mode slate #64748B / --muted-foreground styling on Guarded and sibling profiles with tinted high-contrast light/dark surfaces (Guarded blue #2563EB/#60A5FA, Fleet violet #6D4AE6/#A78BFA, Solo crisp stone #5C5A55/#C7C4BC) and highlighted pending Decision Inbox badges (data-has-inbox="1") in warm terracotta/coral.
  • [cross] AGY Studio v2.0 Bilingual READMEs & Native EN/ZH Real-Production-Module Visual Suites (README.md, README.zh-CN.md, docs/images/*, docs/images/zh/*): Rebuilt both EN/ZH READMEs around a whole-to-local pain-point narrative and generated matching 15-asset English (docs/images/*, 4.46 MB) and Simplified Chinese (docs/images/zh/*, 4.24 MiB / 4.45 MB, data-ag-ux-lang="zh-CN" + 95% CJK optical scale) visual suites (11 animated WebPs all at q=84 + 4 HiDPI PNGs each, pure 16px transparent rounded windows clean on GitHub Light & Dark) by mounting actual production stylesheets and runtime modules (studio/styles/*.css, user/custom.css, vendor/agy-capsule/{motion_themes,effort_bar}.mjs, studio/modules/{capsule-picker,usage-card-core,decision-inbox,receipt-drawer,fork-race,settings/views}.mjs, studio/shared/autonomy-icons.mjs, user/src/modules/sidebar-status.mjs) inside a read-only CDP-token-calibrated external Chrome stage — covering full-window Vanilla vs. Studio wipe (compare-vanilla-vs-studio-v2.webp), Overview AGENTS.md / 20-segment dual-pool quota with elapsed-time cursors & click-linked Token Usage, 4-stop Bottom Dock cinema tour (demo-dock-tour-v2.webp) + 1-click 50/50 subagent split, Model Menu elemental physical effort bar & 3D Orchestrator switch, 5-state anti-jump sidebar & live Settings drawer, non-destructive in-bubble edit, Control Plane walkthrough (demo-cockpit-v2.webp, ⌘J Decision Inbox, Deterministic Evidence Receipts, Worktree Fork & Race Arena, 3-Tier Autonomy Safeguards), and Project Detail Worktrees + Projects Hub; retired stale pre-2.0 assets (opus-gate-v2.png, demo-handoff-v2.webp, demo-silent-resume-v2.webp, demo-effort-ribbon-v2.webp, demo-subagent-split-v2.webp).
  • [cross] Hot Desktop Module Extraction & Hermetic Lifecycle Tests (user/src/modules/projects/{index,detail-view}.mjs, user/src/modules/sidebar-recents.mjs, user/src/modules/sidebar/{recent-row-menu,hide-native-projects}.mjs, studio/host/contracts.mjs, test/studio.test.mjs): Extracted createProjectDetailView, createSidebarRecentRowMenu, and createSidebarHideNativeProjects verbatim out of the two hot-path renderer modules (projects/index.mjs: 1,951 -> 1,281 lines; sidebar-recents.mjs: 1,913 -> 1,380 lines) with symmetric listener/timer/observer disposal (teardown now also unconditionally unbinds non-recent #ag-recent-row-menu document/window listeners), registered all extracted submodules in Stage 5 module/contract checks, and added hermetic JSDOM lifecycle tests.

Fixed

  • [cross] v2.0 Pre-Release Audit Hardening, Step-Stream WeakMap Cache & Shared Modal/Git De-Bloat (studio/shared/modal-kit.mjs, studio/modules/{receipt-drawer,fork-race,decision-inbox}.mjs, user/src/modules/step-stream.mjs, user/src/entry.mjs, user/src/modules/projects/handoff-launch.mjs, core/daemon/git-exec.mjs, studio/daemon/{receipt-service,race-git,inbox-git-scan,inbox-service,anchors-service}.mjs, test/{evidence-receipts,fork-and-race,sidebar-overview-stream,anchors}.test.mjs): Extracted shared Pure-DOM modal-kit.mjs (dom, fmtRelTime, defaultCommitMessage, bindBackdropDismiss) and reused usage-card-core.mjs fmtTokens across Receipt Drawer, Fork & Race, and Decision Inbox while fixing drag-out backdrop dismissal on Receipt Drawer and Fork & Race and blocking Escape mid-landing in Receipt Drawer; added WeakMap settled-step caching (with tail-4 re-check) and composerOnly topic gating to step-stream.mjs syncCustomDomFlags to eliminate redundant subtree scans on 300+ step threads; hardened receipt-service.mjs rollbackMain (merge --abort + non-destructive reset --merge preserving unrelated main edits) and withAsyncFileLock live foreign-PID expiry recovery; eliminated blocking execFileSync in anchors-service.mjs via pure-FS .git root/worktree resolution; unified hasIndexLock/hasInProgressGitOp into core/daemon/git-exec.mjs and sha1Short in inbox-git-scan.mjs; and guarded handoff-launch.mjs post-scope timeouts as status: 'uncertain' without rolling back an already-submitted contender.
  • [cross] Decision Inbox Active-Run Landable Guards, Real-Time Bidirectional Sync & Reflog Cache Invalidation (studio/daemon/{inbox-service,inbox-git-scan,receipt-service,race-service,bg-task-status,opus-gate-service}.mjs, studio/shared/live-conversations.mjs, core/daemon/remote/disk-fallback.mjs, studio/modules/{decision-inbox,opus-gate-pill,receipt-drawer,fork-race}.mjs, remote/pwa/src/inbox-view.mjs, test/decision-inbox.test.mjs): Suppressed landable items in the fast uncached layer whenever ANY conversation or child subagent bound to that worktree is RUNNING/WAITING/notFullyIdle/blocked (plus a 60s cooldown for freshly mutated unbound CLI worktrees) and enforced a fail-closed server-side worktree_conversation_active / active_state_check_failed guard across landWorktreeFromReceipt, landRaceWinner, Receipt Drawer, and Fork & Race (sharing collectLiveActiveConversationCids() with waitingSubagents + undefined-vs-[] distinction, surfacing degraded: true on unreadable existing conversation_summaries.db, and ignoring caller CIDs bound to other worktrees); added logs/HEAD reflog and symbolic ref target stamps to computeRepoFastSignature so commits on nested branches (<type>/<slug>) bust the 20s Git scan cache immediately; replaced fake 0s ago receipt.generatedAt timestamps with real headCommitTs / worktree / chat modification time; suppressed duplicate review:proposal items during active runs/subagents, dropped stale REVISE/HOLD verdicts on removed worktrees, prevented stall false positives for busy subagent children, daemons, streaming task logs, and long notificationTimeoutSeconds commands, and prioritized active/waiting conversations before the 200-item cap; wired bidirectional agy:decision-state-changed sync + strict CAS (ts + rollback on RPC error / proposal_updated notice) between #agy-autonomy-pill and #agy-decision-inbox alongside a lightweight adaptive (3s open / 10s closed) fastOnly live-status delta watcher, and surfaced gitScannedAt age in Remote PWA Inbox.
  • [cross] Autonomy Popover Handoff Focus Sync, Dark Contextual Hover & Backdrop Drag-Out Polish (studio/modules/{autonomy-pill,decision-inbox}.mjs, studio/styles/autonomy-pill.css, test/{autonomy-profiles,decision-inbox}.test.mjs): Synced Handoff launch/copy button disabled states and feedback banners in-place while .agy-am-input is focused (plus focusout deferred catch-up) so streaming-to-idle transitions immediately unlock Cmd+Enter and click; added matching dark-mode :hover / [data-menu-open="1"] rules for warn / review / danger / compact pills; gated pointerDownIn* refresh-deferral strictly on primary button (e.button === 0); and prevented modal drag-out text selections onto .agy-inbox-backdrop from accidentally closing #agy-decision-inbox.
  • [cross] Autonomy Popover Click-Loss, Flicker, 8Hz MagaKernel Flush Storm & Windows Full-Window Flicker (studio/entry.mjs, studio/modules/{autonomy-pill,opus-gate-pill,auto-compact,anchors-pill,resume-banner,decision-inbox,receipt-drawer,fork-race}.mjs, studio/styles/{autonomy-pill,decision-inbox,receipt-drawer,fork-race}.css, user/src/modules/step-stream.mjs, test/{autonomy-profiles,decision-inbox}.test.mjs): Stopped the infinite ~8 Hz MagaKernel composer flush loop caused by unconditional emitChange() calls in opus-gate-pill, auto-compact, and anchors-pill write() hooks (adding signal-signature deduplication and gating kernel.markDirty('composer') strictly on actual #agy-autonomy-pill visual changes); refactored #agy-autonomy-menu from unconditional pop.replaceChildren() rebuilds to a persistent DOM skeleton with delegated clicks, in-place leaf/attribute updates, cardsSig-gated context-card reconciliation, and a mousedown→mouseup pointer guard so button clicks are never dropped and hover/active states never flicker; eliminated Windows Electron full-window flicker by adding contain: layout style, clamping #agy-autonomy-menu cleanly against --ag-win-top-bar, persisting full-viewport modal backdrops across re-renders (decision-inbox, receipt-drawer, fork-race), and disabling full-screen backdrop-filter: blur() on html[data-agy-platform="win32"] and reduced-motion modes; fixed Home / missing dual-pool quota (preserving global quotaState across routes), wired getInboxCount and reset-profile managed plugin sync, stopped Escape propagation from #agy-autonomy-menu, aligned step-stream.mjs data-maga-has-tools flags with dom-flags.mjs, and repaired missing/overridden hover & card CSS rules.
  • [win] Windows 8.3 Path Resolution in Evidence Receipts & Dual-OS Test Stability (studio/daemon/receipt-transcript.mjs, test/{decision-inbox,fork-and-race}.test.mjs): Resolved native real paths (realpathSync.native) inside normalizeCmpPath and toRepoRelativePath whenever platform === process.platform so Windows 8.3 short paths (e.g. RUNNER~1 in os.tmpdir()) match long Git worktree paths during transcript command scoping; switched test/decision-inbox.test.mjs to fileURLToPath + realpathSync.native; and normalized Git core.autocrlf \r\n endings in test/fork-and-race.test.mjs.
  • [cross] Unified Standalone Single-Step & Command Row Styling (studio/styles/typography.css, user/src/modules/step-stream.mjs, studio/core/dom-flags.mjs, test/sidebar-overview-stream.test.mjs, test/studio.test.mjs): Fixed standalone single-step execution rows (e.g. a single ungrouped run_command rendered by Antigravity as <div role="button" aria-expanded> inside [data-step-rows="true"] > [data-step-index] with a nested chevron wrapper instead of a <button data-testid="tool-group-collapsible">) escaping the quiet 12.5px leading-▸ disclosure chrome; extended CSS & DOM-flag coverage to standalone l4 triggers/static headers and progress-updates-collapsible / j4 sibling disclosures, wired space-preserving label extraction into worked-for inline summaries and running-orbit indicators, prevented expanded standalone step outputs from misclassifying pure-tool blocks as prose, and harmonized expanded tool-group card typography to 12.5px.