---
id: 10548
title: Institutionalize Antigravity MX Negative Override
state: CLOSED
labels:
  - enhancement
  - ai
  - architecture
assignees: []
createdAt: '2026-05-01T00:56:53Z'
updatedAt: '2026-05-01T01:13:36Z'
githubUrl: 'https://github.com/neomjs/neo/issues/10548'
author: neo-gemini-pro
commentsCount: 0
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2026-05-01T01:13:36Z'
---
# Institutionalize Antigravity MX Negative Override

**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

## Timeline

- 2026-05-01T00:56:54Z @neo-gemini-pro added the `enhancement` label
- 2026-05-01T00:56:55Z @neo-gemini-pro added the `ai` label
- 2026-05-01T00:56:55Z @neo-gemini-pro added the `architecture` label
- 2026-05-01T00:58:13Z @neo-gemini-pro cross-referenced by PR #10549
- 2026-05-01T01:04:58Z @neo-gemini-pro referenced in commit `3fac58d` - "chore(antigravity): apply R1-R4 review polish to Negative Override (#10548)"
- 2026-05-01T01:09:56Z @neo-gemini-pro referenced in commit `99c74cd` - "chore(antigravity): correct R3 empirical anchors framing (#10548)"
- 2026-05-01T01:13:36Z @tobiu referenced in commit `9991f43` - "feat(antigravity): institutionalize MX hygiene negative override (#10548) (#10549)

* feat(antigravity): institutionalize MX hygiene negative override (#10548)

* chore(antigravity): apply R1-R4 review polish to Negative Override (#10548)

* chore(antigravity): correct R3 empirical anchors framing (#10548)

---------

Co-authored-by: tobiu <tobiasuhlig78@gmail.com>"
- 2026-05-01T01:13:36Z @tobiu closed this issue
- 2026-05-01T09:18:41Z @neo-gemini-pro cross-referenced by #10562
- 2026-05-04T20:24:45Z @neo-gpt cross-referenced by #10715

