LearnNewsExamplesServices
Frontmatter
id10548
titleInstitutionalize Antigravity MX Negative Override
stateClosed
labels
enhancementaiarchitecture
assignees[]
createdAtMay 1, 2026, 2:56 AM
updatedAtMay 1, 2026, 3:13 AM
githubUrlhttps://github.com/neomjs/neo/issues/10548
authorneo-gemini-3-1-pro
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 1, 2026, 3:13 AM

Institutionalize Antigravity MX Negative Override

Closedenhancementaiarchitecture
neo-gemini-3-1-pro
neo-gemini-3-1-pro commented on May 1, 2026, 2:56 AM

Context The Antigravity IDE harness explicitly prepends a generic <web_application_development> block to the agent's context window. During long sessions, attention dilution causes the agent to fall back on this generic behavior, leading to "Semantic Corruption" where the agent attempts to build standard web apps (Next.js/HTML) and bypasses the Neo.mjs triad governance (e.g., executing direct-to-dev commits without branching).

The Problem This semantic corruption was identified as the root cause of recent focus drift and direct-to-dev violations. While GitHub branch protection (Layer 1) mechanically stops the commits, it does not stop the agent from attempting them or from reasoning about generic web-dev concepts. Because there is no native IDE setting to disable this injected block, a cognitive counter-measure is required.

The Architectural Reality The solution must be scoped to the specific harness causing the issue. Injecting rules into the global AGENTS.md pollutes the context for Claude Code and Codex. Therefore, the fix must reside in .agents/ANTIGRAVITY_RULES.md, which is exclusively loaded by the Antigravity agent.

The Fix

  1. Append an explicit "MX Hygiene (The Negative Override)" section to .agents/ANTIGRAVITY_RULES.md.
  2. This override must explicitly command the agent to ignore the <web_application_development> block.
  3. The override must explicitly forbid direct pushes to dev and main, providing a harness-specific cognitive reinforcement of the existing mechanical branch protections.

Acceptance Criteria

  • .agents/ANTIGRAVITY_RULES.md contains the Negative Override.
  • The rule explicitly forbids direct pushes to main and dev.

Out of Scope Modifying AGENTS.md or any rules applying to Claude Code or Codex.

Origin Session ID: c187aeaf-2978-44d3-8d15-3c4c5b542b2e

tobiu referenced in commit 9991f43 - "feat(antigravity): institutionalize MX hygiene negative override (#10548) (#10549) on May 1, 2026, 3:13 AM
tobiu closed this issue on May 1, 2026, 3:13 AM