Skip to content

AGY Studio v1.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 08:01
· 213 commits to main since this release

Introduced the experimental Anti-Drift Anchors & One-Click Milestone Handoff (maga-anchors) 3-pillar suite, decoupled --channel stable|edge end-user installers, expanded Remote Control with Artifact & Git Diff viewers, and added declarative Host Contract probes alongside worktree governance materialization.

Added

  • [cross] Release Channel Decoupling (--channel stable|edge), Tag-Aware Provenance & OSS Contributor Onboarding (install.sh, install.ps1, studio/deploy-meta.mjs, CONTRIBUTING.md, .github/pull_request_template.md, docs/INSTALL_AGENT.md): Decoupled end-user installs from main HEAD by adding --channel stable|edge (-Channel on Windows, defaulting to stable via GitHub releases/latest with package.json-major-guarded git ls-remote fallback and detached-tag / origin/main checkout without broken git pull --ff-only); added exact v* tag recognition in deploy-meta.mjs so clean release-tag checkouts emit no misleading non-main warnings; updated AI & source install instructions; and added CONTRIBUTING.md plus .github/pull_request_template.md separating external Fork/PR contribution rules from maintainer worktree/smoke workflows.
  • [cross] One-Click Automated Milestone Handoff (studio/daemon/anchors-service.mjs, user/src/modules/projects/handoff-launch.mjs, user/src/entry.mjs, studio/modules/anchors-pill.mjs, studio/styles/anchors-pill.css, studio/host/contracts.mjs): Upgraded the G >= 3 Anchors Handoff popover from copy-only fallback to full 1-click desktop chat creation & navigation (一键新建并交接, with optional 1-line nextStep, unsent draft chip without clearing source composer, and secondary 仅复制 button): daemon packages async --no-optional-locks git branch/HEAD/dirty-file snapshots, prioritized CHECKPOINT + post-compaction visible USER_INPUT / PLANNER_RESPONSE.content excerpts (strictly zero thinking/CoT via I12), hardened <untrusted_reference> tag sanitization, and optional idle anchor flushing; desktop renderer checks newConvoResourceSelector scope fail-closed before submit, rolls back with source draft restoration on pre-submit failures, verifies new conversation postcondition without double-submitting (uncertain state on timeout), and probes hasNewConvoResourceSelector in npm run probe:host.
  • [cross] Anti-Drift Anchors, Compaction Generation Badge & Deterministic Lock Plugin (studio/plugin/maga-anchors/, studio/daemon/anchors-service.mjs, studio/modules/anchors-pill.mjs, studio/styles/anchors-pill.css): Added managed maga-anchors 3-pillar anti-drift system: (1) live G compaction generation badge on the context ring + G >= 3 zero-model-token user_markdown nudge & user-initiated Milestone Handoff (CreateConversation with <untrusted_reference> sanitization and read-back verification); (2) out-of-band UTF-8-safe transcript_full.jsonl tail scanner pairing verbatim user corrections with redacted CoT comprehension checks on an approval card (Accept/Edit/Reject -> Stop-flushed .agents/rules/anchors.local.md under a 400-token Evict-to-Admit budget, with zero CoT ever written to rules or streamed to Remote); and (3) zero-LLM .agents/locks.json PreToolUse force_ask guard + >= 3 repeated-failure action-loop escalation to opus-gate debug.
  • [cross] Worktree Local Governance Materialization, Repo-Wide Size Ratchet & Host Contract Probe (studio/plugin/maga-git-workflow/lib/worktree-core.mjs, studio/host/contracts.mjs, studio/probe-host.mjs, test/size-baseline.json, studio/capture-chrome-fixture.mjs): Automatically materializes untracked local governance files (AGENTS.md, GEMINI.md, ENV.md, .agents/{skills,rules}) as isolated copies into sibling worktrees with SHA-256-verified cleanup on wt:clean (preventing symlink write-through into primary checkouts), blocks agent self-tampering of .agents/locks.json, replaces hardcoded size lists with a git ls-files repo-wide < 2,000-line guard + monotonic shrink-only test/size-baseline.json ratchet, stamps hostVersion into Chrome layout fixtures, and adds read-only npm run probe:host.
  • [remote] Remote Control Phase 0 & Phase 1 — Artifact & Git Diff Drawer, Dynamic Skills & 30-Day Usage (core/daemon/remote/{artifacts-bridge,git-bridge,studio-bridge}.mjs, remote/gateway/ws-server.mjs, remote/pwa/src/{viewer-drawer,overview-panel,timeline-view,workspace-shell}.mjs, user/src/modules/remote-tap-helpers.mjs): Added mobile/web Artifact Markdown & live Git status/diff inspection drawer (viewer-drawer.mjs), dynamic skill slash discovery, 30-day usage breakdown in Remote Overview, and modularized remote-tap.mjs (8ece99e).
  • [cross] Real-Machine Chrome DOM Geometry Fixtures & Dual-OS Regression Suite (studio/cdp-probe.mjs, studio/capture-chrome-fixture.mjs, test/fixtures/{darwin,win32}/chrome-layout.json, test/windows.test.mjs): Added npm run capture:chrome-fixture to capture sanitized, privacy-free Electron .bg-sidebar / sidebar-track / control rect snapshots over CDP and exercise chrome-geometry.mjs + computeSettingsDrawerTopInset against both macOS and Windows layouts in npm test.
  • [cross] Live Smoke Verification & Release Tag Pre-Push Gate (studio/smoke-live.mjs, .githooks/guard-release-tag.mjs, .githooks/pre-push, studio/setup-hooks.mjs): Added npm run smoke:live to verify doctor + live CDP invariants and stamp GitHub Commit Statuses (smoke/darwin, smoke/win32), and extended .githooks/pre-push on refs/tags/v* to block stranded unmerged remote branches (MAGA_ALLOW_STRANDED_TAG=1) and missing dual-OS live smoke checks (MAGA_SKIP_SMOKE=1).
  • [cross] Automated Tag GitHub Release Packaging (.github/workflows/ci.yml, studio/pack-release.mjs): Added release CI job on v* tags (needs: [stranded-branches, test]) that validates package.json version alignment, packs and checksum-verifies macOS .tar.gz + Windows .zip, extracts CHANGELOG.md notes via extractChangelogNotes, and creates/updates the GitHub Release idempotently.

Changed & Fixed

  • [cross] Pre-Release Audit Hardening (user/src/modules/projects/handoff-launch.mjs, studio/plugin/maga-anchors/hooks/anchor-guard.mjs, test/anchors.test.mjs): Cancelled late scopeGuard submissions after handoff launch timeout (launch_cancelled), switched flushQueuedAnchorWritesForRepo to atomic queue claiming (renameSync) so concurrent anchor accepts cannot be clobbered, resolved existing parent prefixes in normalizeRelCompare for symlinked nonexistent targets, and inspected ReplacementChunks for multi_replace_file_content.
  • [cross] Domain-Neutral anchors/SKILL.md Example & Core De-Jargon Governance Test (studio/plugin/maga-anchors/skills/anchors/SKILL.md, test/host-contracts-and-gov.test.mjs): Replaced the ML-specific .agents/locks.json schema example in anchors/SKILL.md with a domain-neutral engineering example (noting compatibility with experiment aliases and excludeFiles basename matching), and added a hermetic governance test asserting tracked core, studio, user/src, remote, vendor, and install.mjs sources remain free of ML research jargon.
  • [cross] Anti-Drift Anchors Pre-Release Hardening, Settings Kill Switch & Docs (studio/plugin/maga-anchors/hooks/anchor-guard.mjs, studio/daemon/anchors-service.mjs, studio/modules/{anchors-pill,settings/{views,events}}.mjs, README{,.zh-CN}.md): Persisted incremental transcriptCheckpoints accumulation in anchor-guard.mjs + getAnchorsStatus so G >= 3 nudges and status work reliably even when node:sqlite is unavailable; resolved .agents/locks.json upward from the edited target file's directory (dirname(absTarget)) so cross-repo absolute edits cannot slip past repository locks; added an anchorsMode (Off / Semi-auto) segmented control under Conversation Settings with reactive pill/menu hide and plugin sync; replaced the hardcoded ENV.md exemption with schema-driven excludeFiles / exclude_files; localized G >= 3 inline user_markdown notices via user/config.json modules.i18n and balanced EN/ZH CORRECTION_CUE_RE patterns; and documented Experimental Anti-Drift Anchors (with a general non-ML .agents/locks.json example) plus Remote Artifact/Git Diff drawers in both READMEs.
  • [cross] Anchors Handoff Pill Layout & Row 1 Container Invariant (studio/modules/anchors-pill.mjs, studio/styles/anchors-pill.css, test/anchors.test.mjs): Changed #agy-anchors-pill from a top-level <button> to a <div> wrapper containing button.agy-anchors-go (matching #agy-resume-pill, #agy-opus-gate-pill, and #agy-auto-compact-pill) so it no longer hijacks .agy-composer-footer > div:first-child > button:first-of-type (28×28 square + button styles, text overflow onto Turbo, and pushing + to Row 2); aligned Row 1 capsule styling & Light/Dark popover tokens, ensured clicking G >= 3 always renders handoff controls even before status RPC returns, and added a class-wide OWN_ROW1_PILL_IDS non-button container regression test.
  • [win] Windows CI Test Stability (test/host-contracts-and-gov.test.mjs, test/studio.test.mjs): Normalized \r\n line endings when reading Git-checked-out tracked AGENTS.md under default core.autocrlf=true, and replaced the hardcoded 30ms post-mutation sleep in the MagaKernel dirty-topic routing test with a bounded condition wait so windows-latest CI no longer flakes under timer jitter.
  • [cross] Governance & Hermetic Test Hygiene (core/daemon/win-service.mjs, studio/daemon/git-workflow-service.mjs, install.mjs, studio/rules/fast-io.md, studio/plugin/maga-opus-gate/rules/AGENTS.md, test/{windows,git-guardrails,install,audit-regressions}.test.mjs): Injected fsImpl into Windows service helpers and blocked raw Windows drive writes on POSIX hosts; isolated ANTI_CLAUDE_STATE_DIR in CLI guardrail tests so live git-workflow-events.json stays test-free; preserved/sanitized localOnlyPaths in setGitWorkflowPolicy; made fast-io.md and maga-opus-gate rules project-neutral; retired dead upstream SKILL.md and rules/claude-execution-sync.md; and updated README Windows footers.
  • [cross] Remote Control Quota Bars & Epoch Reset Countdowns (remote/pwa/src/overview-panel.mjs, remote/pwa/src/ui-helpers.mjs, core/daemon/remote/studio-bridge.mjs): Rendered quota/usage progress bars via CSSOM for strict CSP compliance and normalized epoch reset countdown formatting.
  • [cross] Remote Control Native Slash Commands (user/src/modules/remote-tap.mjs): Encoded /compact and slash commands sent from Remote Control as native SlashCommandScopeItem payload chunks.